✨ Highlights
New APIs
- Breadcrumb: new
ariaLabelandariaLabelledByinputs to label the<nav>landmark (#2069, @manichandra) - DynamicDialog: new
environmentInjectoroption onDynamicDialogConfig, so a dialog component can resolve providers scoped to a feature or lazy-loaded route (#1638, @vis-iks) - DatePicker: new exported
DatePickerDayandDatePickerWeektypes, replacinganyacross the date-cell API (#1604, @jase88) - DOM: new
ConnectedOverlayMotionHandlerexported from@openng/optimus-ui/dom(#1958, @rene-schakmann)
Performance
- Shared styles are no longer regenerated for every component instance (#1920)
Tabsink bar updates are coalesced to one per animation frame (#1919)
Both by @demike 🙌
⚠️ Upgrade notes
No breaking changes, but a few fixes change what you may see or compile:
- DatePicker typings (#1604):
Month.datesis now typedDatePickerWeek[]instead ofDate[]. The runtime value is unchanged (it was always an array of weeks), but code typed againstDate[]needs updating.shouldSelectDate()no longer takes an argument. - Theme presets (#1857): in
definePreset,usePreset,updatePresetand$t(), a top-level token from a later preset now overrides the same token in an earlier preset'scolorScheme.light. Custom presets layered on a base preset may render differently in light mode. - Menu (#1657): items of a submenu with
visible: falseare now hidden, including items that setvisible: truethemselves. - Listbox (#1907): "select all" and Cmd/Ctrl+A no longer drop or add disabled options; a selected disabled option keeps its model value.
- Table (#1908): with a negative match mode (
notContains,notEquals,isNot,dateIsNot), the global filter now keeps a row only when none of the global filter fields match. - Lara preset (#1875): references to nonexistent tokens were replaced, which changes the hover/active background of outlined
helpanddangerbuttons and the TreeTable row hover colour. - Dialog (#1634):
aria-labelledbyis no longer set when the dialog has no header or uses a headless template.
🐛 Bug fixes
| Component | Fix | PR |
|---|---|---|
| AutoComplete | Avoid rendering null option labels
| #1639 @vis-iks |
| CascadeSelect | Inject the parent lazily to avoid a reference error on import | #1889 @Zarrakzor |
| ConfirmDialog | Don't repeat the alertdialog role on the p-dialog host
| #2084 @khayo |
| ContextMenu | Guard focus restore when no item is focusable | #2119 @geromegrignon |
| ContextMenu | Handle ArrowLeft when no item is focused | #2120 @geromegrignon |
| DatePicker | Prevent the hour jumping to 11 at the minDate boundary
| #1933 @vitopio-prete |
| Dialog | Drop dangling aria-labelledby without a header
| #1634 @jase88 |
| DOM | Exclude page scrollbars from the viewport size and fix submenu positioning offsets | #1929 @rene-schakmann |
| InputNumber | Accept the decimal key when maxFractionDigits is not set
| #2121 @geromegrignon |
| InputNumber | Style spinner buttons when disabled | #1644 @vis-iks |
| Listbox | Keep selected disabled options when toggling all | #1907 @rene-schakmann |
| Menu | Preserve entries with stable ids on model updates | #2109 @ThorstenKunz |
| Menu | Hide items of a submenu whose visible is false
| #1657 @rene-schakmann |
| Menubar | Run the item command on Enter and Space with a custom item template | #1861 @digitalcraftco |
| MeterGroup | Render the label template when label position is start
| #1630 @jase88 |
| MultiSelect | Realign the overlay when the virtual scroll panel resizes | #1930 @rene-schakmann |
| Overlay | Keep the overlay open when reopened at the end of its leave animation | #1958 @rene-schakmann |
| Paginator | Update built-in labels after setTranslation
| #2081 @DaniLlano |
| Scroller | Initialize virtual scroll when the viewport becomes measurable | #1567 @sybers |
| Scroller | Exclude absolutely positioned bottom/right offsets from the spacer size | #1814 @Bogatejc |
| Table | Preserve the expanded row footer border, including for nested tables | #1645 @vis-iks |
| Table | Make negative match modes work with the global filter | #1908 @rene-schakmann |
| Themes | Replace nonexistent token references in the Lara preset | #1875 @digitalcraftco |
| Theming | Let colorScheme.light override top-level preset tokens again
| #1857 @rene-schakmann |
| Toast | Apply breakpoints before the first message is shown | #1935 @vitopio-prete |
| Tooltip | Keep the tooltip aligned while an ancestor animates | #1804 @dominicbachmann |
| TreeSelect | Focus the tree filter input when the overlay opens | #1928 @rene-schakmann |
| TreeTable | Expand rows on ArrowRight from the scrollable view of frozen columns | #1906 @rene-schakmann |
💜 New contributors
Welcome and thank you to @Bogatejc, @ThorstenKunz, @sybers, @Zarrakzor, @demike, @khayo and @DaniLlano for their first contributions! 🎉
Full Changelog: 2.1.0...2.2.0