warning
Upgrade Quantum
This guide will help you migrating from Quantum v1 to Quantum v2.
Need to see the v1 docs? Visit this older version of the docs site (unmaintained v1.4.0 snapshot).
Overview
Angular package is built with Angular 16, contrary to v1.4.0 that was built with Angular 14.
Components
Alert
- The Alert component's action button icon (
ActionButton'siconprop) now supports bothIconPropsandstringtypes, allowing more flexible icon definitions.
Datatable
- A new Datatable component is available to render basic data tables, with a variant for when there's no data available.
Doughnut
- The Doughnut component wasn't officially released in v1, but please be aware that the Doughnut component present in the package has been removed.
Dropdown
- The
DropdownTriggercomponentdisabledprop has been removed as what's important is the disabled state of the dropdown trigger child itself.
Dropdown Select
DropdownSelectOptiontype has been renamed toDropdownSelectItemto avoid naming conflict with the DropdownSelectOption component.- The Dropdown Select component is now searchable thanks to its new
isSearchableprop (default tofalse). - The Dropdown Select component now has a minimal keyboard navigation that is not yet fully accessible.
- The Dropdown Select component now supports disabled options (new
DropdownSelectItem'sdisabledprop). - The Dropdown Select component has a new
visibleprop.
Icon
IconTypehas been renamed toIconProps.
Menu
MenuItemItemTypehas been renamed toMenuItemType.MenuItemListcomponent'senableAutoActiveprop is now set by default totrue. To maintain the previous behavior, review all instances ofMenuItemListin your codebase. If you wish to disable the new auto-active feature, explicitly setenableAutoActivetofalse. Alternatively, to take advantage of the new feature, ensure each menu item (or sub-menu item) has a uniqueidand remove any manually setactiveprops, allowing the auto-active logic to handle them automatically.
Multiselect
- The Multiselect component is now searchable thanks to its new
isSearchableprop (default tofalse). - The Multiselect component now has a minimal keyboard navigation that is not yet fully accessible.
- The Multiselect component now supports disabled options (new
MultiSelectOption'sdisabledprop). - The Multiselect component has a new
visibleprop.
Slider
- The default behavior of the
Slidercomponent has changed. If you do not explicitly set a value, it will now default to the min value instead of 0.
Split Button
- The
SplitButtoncomponent'siconprop now supports bothIconPropsandstringtypes for more flexible icon definition. - The Split Button component's options icon (
SplitButtonOptioncomponent'siconprop) now supports bothIconPropsandstringtypes for more flexible icon definition.
Tabs
- The Tabs component now support two modes supported by the
enableAutoActiveprop (default totrue):- When set to
true, the active tab is automatically updated by manipulating theactiveIdprop of the Tabs component, along with anonActiveIdChangedevent to handle active tab changes. To support this, each Tab component must have a uniqueid. - When set to
false, the active state is controlled via anactiveprop. Be careful, before Tabs generated automaticids. This has changed as you need to set id yourself.
- When set to
- To migrate, you can use the default behavior of
enableAutoActive:
- <Tabs>
- <Tab active label="Item 1"></Tab>
- <Tab label="Item 2"></Tab>
+ <Tabs activeId="tab-item-1">
+ <Tab id="tab-item-1" label="Item 1"></Tab>
+ <Tab id="tab-item-2" label="Item 2"></Tab>
</Tabs>
- The Tabs component has an extra
clickTabevent. - The Tab component has a new
activeprop. - The Tab components'
clickedTabEventhas been renamed toclickedTab.
Text Area
- The Text Area component has been renamed from
TextAreatoTextarea. The derivative types and props too:TextAreaSizeis nowTextareaSize.TextAreaSeverityis nowTextareaSeverity.
Tooltip
- The Tooltip
titleprop has been renamed totooltipTitle.
Typography
TagTypehas a stricter type fromstringto'h1' | 'h2' | 'p' | 'span'.
lightbulbSubmit an issue on GitLab