18.2.0-rc.0
Pre-release18.2.0
General
IFilteringExpressionsTree
,FilteringExpressionsTree
- Deprecation The
find
andfindIndex
methods have been deprecated and will be removed in a future version. AExpressionsTreeUtil
class has been added which provides the same functionality.
- Deprecation The
New Features
IgxSimpleCombo
- Introduced ability for Simple Combo to automatically select and retain valid input on "Tab" press enhancing user experience by streamlining data entry and reducing the need for manual selection improving form navigation.
IgxGrid
,IgxTreeGrid
,IgxHierarchicalGrid
- To streamline the sorting of columns with custom formats, a new
FormattedValuesSortingStrategy
has been introduced. This strategy simplifies the sorting process by allowing direct sorting based on formatted values, eliminating the need to extend theDefaultSortingStrategy
or implement a customISortingStrategy
. This enhancement improves the ease of handling sorting with custom column formatters.
- To streamline the sorting of columns with custom formats, a new
IgxCarousel
- Added support for vertical alignment. Can be configured via the
vertical
property. Defaults tofalse
. - Added support for showing/hiding the indicator controls (dots). Can be configured via the
indicators
property. Defaults totrue
.
- Added support for vertical alignment. Can be configured via the
ColumnType
,IgxColumn
- The built-in editors for columns of type
date
,dateTime
andtime
now use a default input format as per theIgxGrid
'slocale
. This is valid both for cell editors and the ones in the filtering UI for all modes -quickFilter
,excelStyle
and the Advanced filtering. - In case the
pipeArgs.displayFormat
property of a date-time column is set and contains only numeric date-time parts or such that can be handled by the editors, the built-in editors input format is inferred from it. - To configure the built-in editors, a new
editorOptions
property is added that allows to pass optional parameters. Accepts anIColumnEditorOptions
object with thedateTimeFormat
property, that is used as input format for the editors of
date
,dateTime
andtime
column data types:const editorOptions: IColumnEditorOptions = { Field? dateTimeFormat: 'MM/dd/YYYY', }
<igx-column field="sampleDate" dataType="date" [editorOptions]="editorOptions"></igx-column>
- The built-in editors for columns of type
FieldType
(IgxQueryBuilder
)- Similar to the above, the fields now accept an
editorOptions
object of typeIFieldEditorOptions
. ItsdateTimeFormat
property is used as input format for the query editors of date-time fields.
- Similar to the above, the fields now accept an
IgxDateTimeEditor
,IgxDatePicker
,IgxTimePicker
,IgxDateRangePicker
- In case the
inputFormat
property is not set, the input format is inferred from
displayFormat
if set and if it contains only numeric date-time parts.
- In case the
IgxTimePicker
- The input and display formats are now adjusted based on the locale. For instance, day period time part (AM/PM or a/p) would not be displayed for locales that do not require it.
IgxDateTimeEditor
- Added a new
defaultFormatType
property (date
|time
|dateTime
) which configures the date-time parts
according to the target type that the editor mask includes. Defaults todate
.
- Added a new
IgxTabs
- Added
activation
property to control tab selection. Inauto
mode (default), tabs are selected instantly with Arrow or Home/End keys. Inmanual
mode, tabs are focused with keys but only selected with Enter or Space.
- Added
IgxGridState
- When possible the state directive nows reuses the column that already exists on the grid when restoring the state, instead of creating new column instances every time. This removes the need to set any complex objects manually back on the column on
columnInit
. The only instance where this is still necessary is when the column (or its children in case of column groups) have nofield
property so there's no way to uniquely identify the matching column.
- When possible the state directive nows reuses the column that already exists on the grid when restoring the state, instead of creating new column instances every time. This removes the need to set any complex objects manually back on the column on
Themes
-
Palettes
- All palette colors have been migrated to the CSS relative colors syntax. This means that color consumed as CSS variables no longer need to be wrapped in an
hsl
function.
Example:
/* 18.1.x and before: */ background: hsl(var(--igx-primary-600)); /* 18.2.0+: */ background: var(--igx-primary-600);
This change also opens up the door for declaring the base (500) variants of each color in CSS from any color, including other CSS variables, whereas before the Sass
palette
function was needed to generate color shades from a base color.Example:
/* 18.1.x and before: */ $my-palette: palette($primary: #09f, ...); /* 18.2.0+: */ --ig-primary-500: #09f;
This change adds to our continuous effort to make theming configurable in CSS as much as it is in Sass.
- All palette colors have been migrated to the CSS relative colors syntax. This means that color consumed as CSS variables no longer need to be wrapped in an
Scrollbar: New CSS variables
We have introduced new CSS variables to allow for more customizable scrollbars. This enhancement utilizes the available WebKit pseudo-selectors such as ::-webkit-scrollbar-track
. However, please note that these pseudo-selectors are prefixed with -webkit-
and are only supported in WebKit-based browsers (e.g., Chrome, Safari).
List of Available CSS Variables for -webkit-
browsers:
--sb-size
: Adjusts the scrollbar size (width and height).--sb-track-bg-color
: Sets the background color of the scrollbar track.--sb-track-bg-color-hover
: Sets the background color of the scrollbar track on hover.--sb-thumb-min-height
: Sets the minimum height of the scrollbar thumb.--sb-thumb-border-radius
: Sets the border radius of the scrollbar thumb.--sb-thumb-border-size
: Sets the border size of the scrollbar thumb.--sb-thumb-border-color
: Sets the border color of the scrollbar thumb.--sb-thumb-bg-color
: Sets the background color of the scrollbar thumb.--sb-thumb-bg-color-hover
: Sets the background color of the scrollbar thumb on hover.
For Firefox users, we provide limited scrollbar styling options through the following CSS variables:
--sb-size
: Adjusts the scrollbar size.--sb-thumb-bg-color
: Sets the background color of the scrollbar thumb.--sb-track-bg-color
: Sets the background color of the scrollbar track.
General
-
IgxGrid
,IgxTreeGrid
,IgxHierarchicalGrid
,IgxPivotGrid
- Deprecation The
shouldGenerate
property has been deprecated and will be removed in a future version. Column re-creation now relies onautoGenerate
instead. Automatic migration to this is available and will be applied onng update
. Note that ifautoGenerate
is already set initially, there is no need to explicitly set it elsewhere in your code.
- Deprecation The
-
IgxCarousel
-
animationType
input property is now of typeCarouselAnimationType
.HorizontalAnimationType
can also be used, however, to accommodate the new vertical mode, which supports vertical slide animations, it is recommended to useCarouselAnimationType
. -
Behavioral Changes - the
keyboardSupport
input property now defaults tofalse
. -
Deprecation - the
keyboardSupport
input property has been deprecated and will be removed in a future version. Keyboard navigation withArrowLeft
,ArrowRight
,Home
, andEnd
keys will be supported when focusing the indicators' container viaTab
/Shift+Tab
.
-
-
IgxCombo
:- Breaking Change The deprecated
filterable
property is replaced withdisableFiltering
. - The dropdown search field placeholder is now part of the Combo's localization resources. It now also uses two resource values depending on whether filtering is active, e.g. in the default
en
locale it remains'Enter a Search Term'
, but changes to'Add Item'
whendisableFiltering
andallowCustomValues
are set to true. For that reason, the existingsearchPlaceholder
input is also deprecated in favor of the resources. - Deprecation -
filterable
from thefilteringOptions
has been deprecated in favor ofdisableFiltering
.
- Breaking Change The deprecated
-
IgxBadge
- Breaking Change The
$border-width
property has been removed from the badge theme. - New outlined variant of the badge component has been added. Users can switch to
outlined
by adding the newly createdoutlined
property to a badge.
- Breaking Change The