igniteui-angular 21.0.0-rc.0 → 21.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (29) hide show
  1. package/grids/grid/README.md +29 -11
  2. package/lib/core/styles/components/list/_list-theme.scss +35 -31
  3. package/package.json +1 -1
  4. package/styles/igniteui-angular-dark.css +1 -1
  5. package/styles/igniteui-angular.css +1 -1
  6. package/styles/igniteui-bootstrap-dark.css +1 -1
  7. package/styles/igniteui-bootstrap-light.css +1 -1
  8. package/styles/igniteui-dark-green.css +1 -1
  9. package/styles/igniteui-fluent-dark-excel.css +1 -1
  10. package/styles/igniteui-fluent-dark-word.css +1 -1
  11. package/styles/igniteui-fluent-dark.css +1 -1
  12. package/styles/igniteui-fluent-light-excel.css +1 -1
  13. package/styles/igniteui-fluent-light-word.css +1 -1
  14. package/styles/igniteui-fluent-light.css +1 -1
  15. package/styles/igniteui-indigo-dark.css +1 -1
  16. package/styles/igniteui-indigo-light.css +1 -1
  17. package/styles/maps/igniteui-angular-dark.css.map +1 -1
  18. package/styles/maps/igniteui-angular.css.map +1 -1
  19. package/styles/maps/igniteui-bootstrap-dark.css.map +1 -1
  20. package/styles/maps/igniteui-bootstrap-light.css.map +1 -1
  21. package/styles/maps/igniteui-dark-green.css.map +1 -1
  22. package/styles/maps/igniteui-fluent-dark-excel.css.map +1 -1
  23. package/styles/maps/igniteui-fluent-dark-word.css.map +1 -1
  24. package/styles/maps/igniteui-fluent-dark.css.map +1 -1
  25. package/styles/maps/igniteui-fluent-light-excel.css.map +1 -1
  26. package/styles/maps/igniteui-fluent-light-word.css.map +1 -1
  27. package/styles/maps/igniteui-fluent-light.css.map +1 -1
  28. package/styles/maps/igniteui-indigo-dark.css.map +1 -1
  29. package/styles/maps/igniteui-indigo-light.css.map +1 -1
@@ -19,7 +19,7 @@ The grid is exported as as an `NgModule`, thus all you need to do in your applic
19
19
 
20
20
  import { IgxGridModule } from 'igniteui-angular';
21
21
  // Or
22
- import { IgxGridModule } from 'igniteui-angular/grid';
22
+ import { IgxGridModule } from 'igniteui-angular/grids/grid';
23
23
 
24
24
  @NgModule({
25
25
  imports: [
@@ -31,12 +31,14 @@ import { IgxGridModule } from 'igniteui-angular/grid';
31
31
  export class AppModule {}
32
32
  ```
33
33
 
34
- Each of the components, directives and helper classes in the _IgxGridModule_ can be imported either through the _grid_ sub-package or through the main bundle in _igniteui-angular_. While you don't need to import all of them to instantiate and use the grid, you usually will import them (or your editor will auto-import them for you) when declaring types that are part of the grid API.
34
+ Each of the components, directives and helper classes in the _IgxGridModule_ can be imported through the per-package entry points. Prefer subpath imports for optimal tree-shaking and smaller bundles.
35
35
 
36
36
  ```typescript
37
- import { IgxGridComponent } from 'igniteui-angular/grid';
38
- // Or
39
- import { IgxGridComponent } from 'igniteui-angular'
37
+ import { IgxGridComponent } from 'igniteui-angular/grids/grid';
38
+ // Per-feature entry points (examples):
39
+ // import { IgxPaginatorModule } from 'igniteui-angular/paginator';
40
+ // import { IgxButtonModule } from 'igniteui-angular/button';
41
+ // import { IgxIconModule } from 'igniteui-angular/icon';
40
42
  ...
41
43
 
42
44
  @ViewChild('myGrid', { read: IgxGridComponent })
@@ -377,15 +379,24 @@ Here is a list of all public methods exposed by **IgxGridColumnComponent**:
377
379
 
378
380
  ## Filtering Conditions
379
381
 
380
- You will need to import the appropriate condition types from the `igniteui-angular` package.
382
+ Use the filtering operand classes to apply conditions programmatically. Import the operand that matches your column data type and use its built-in condition names.
381
383
 
382
384
  ```typescript
383
385
  import {
384
- STRING_FILTERS,
385
- NUMBER_FILTERS,
386
- DATE_FILTERS,
387
- BOOLEAN_FILTERS
388
- } from 'igniteui-angular/main';
386
+ IgxStringFilteringOperand,
387
+ IgxNumberFilteringOperand,
388
+ IgxDateFilteringOperand,
389
+ IgxBooleanFilteringOperand
390
+ } from 'igniteui-angular/core';
391
+
392
+ // Example: quick filter a column (string contains)
393
+ this.grid.filter('Name', 'John', IgxStringFilteringOperand.instance().condition('contains'));
394
+
395
+ // Example: number greater than
396
+ this.grid.filter('Quantity', 10, IgxNumberFilteringOperand.instance().condition('greaterThan'));
397
+
398
+ // Clear filter
399
+ this.grid.clearFilter('Name');
389
400
  ```
390
401
 
391
402
  ### String types
@@ -403,6 +414,13 @@ import {
403
414
  |`empty`|`(target: any)`|Returns true if `target` is either `null`, `undefined` or a string of length 0.|
404
415
  |`notEmpty`|`(target: any)`|Returns true if `target` is not `null`, `undefined` or a string of length 0.|
405
416
 
417
+ Use them via the corresponding operand, for example:
418
+
419
+ ```typescript
420
+ const contains = IgxStringFilteringOperand.instance().condition('contains');
421
+ this.grid.filter('Name', 'Ann', contains);
422
+ ```
423
+
406
424
 
407
425
  ### Number types
408
426
 
@@ -69,7 +69,7 @@
69
69
  border-radius: var-get($theme, 'border-radius');
70
70
 
71
71
  @if $variant == 'bootstrap' {
72
- border: rem(1px) solid var-get($theme, 'border-color');
72
+ border: var-get($theme, 'border-width') solid var-get($theme, 'border-color');
73
73
  }
74
74
 
75
75
  &:focus-visible {
@@ -137,43 +137,48 @@
137
137
  justify-content: center;
138
138
  border-radius: var-get($theme, 'item-border-radius');
139
139
  color: var-get($theme, 'item-text-color');
140
+ border-bottom: var-get($theme, 'border-width') solid var-get($theme, 'border-color');
140
141
 
141
- @if $bootstrap-theme or $variant == 'fluent' {
142
- border-bottom: var-get($theme, 'border-width') solid var-get($theme, 'border-color');
143
-
144
- &:last-of-type {
145
- border-bottom: none;
146
- }
142
+ &:last-of-type {
143
+ border-bottom: none;
147
144
  }
145
+ }
148
146
 
149
- &:hover {
147
+ %igx-list-item-base:not(%igx-list-item-base--selected) {
148
+ &:hover,
149
+ &:focus-within {
150
150
  %igx-list__item-lines {
151
151
  color: currentColor;
152
152
  }
153
153
 
154
- %igx-list__item-line-title {
155
- color: var-get($theme, 'item-title-color-hover');
156
- }
154
+ %igx-list-item-content:not(%igx-list-item-content--active) {
155
+ color: var-get($theme, 'item-text-color-hover');
156
+ background: var-get($theme, 'item-background-hover');
157
157
 
158
- %igx-list__item-line-subtitle {
159
- color: var-get($theme, 'item-subtitle-color-hover');
160
- }
158
+ %igx-list__item-line-title {
159
+ color: var-get($theme, 'item-title-color-hover');
160
+ }
161
161
 
162
- %igx-list__item-actions {
163
- color: var-get($theme, 'item-action-color-hover');
162
+ %igx-list__item-line-subtitle {
163
+ color: var-get($theme, 'item-subtitle-color-hover');
164
+ }
164
165
 
165
- igx-icon,
166
- igc-icon {
167
- color: var-get($theme, 'item-action-color-hover')
166
+ %igx-list__item-actions {
167
+ color: var-get($theme, 'item-action-color-hover');
168
+
169
+ igx-icon,
170
+ igc-icon {
171
+ color: var-get($theme, 'item-action-color-hover')
172
+ }
168
173
  }
169
- }
170
174
 
171
- %igx-list__item-thumbnail {
172
- color: var-get($theme, 'item-thumbnail-color-hover');
175
+ %igx-list__item-thumbnail {
176
+ color: var-get($theme, 'item-thumbnail-color-hover');
173
177
 
174
- igx-icon,
175
- igc-icon {
176
- color: var-get($theme, 'item-thumbnail-color-hover')
178
+ igx-icon,
179
+ igc-icon {
180
+ color: var-get($theme, 'item-thumbnail-color-hover')
181
+ }
177
182
  }
178
183
  }
179
184
  }
@@ -256,12 +261,6 @@
256
261
  background: var-get($theme, 'item-background');
257
262
  z-index: 2;
258
263
  gap: if($variant == 'indigo', rem(8px), rem(16px));
259
-
260
- &:hover,
261
- &:focus-within {
262
- color: var-get($theme, 'item-text-color-hover');
263
- background: var-get($theme, 'item-background-hover');
264
- }
265
264
  }
266
265
 
267
266
  %igx-list-header,
@@ -285,6 +284,11 @@
285
284
  --component-size: #{if($variant == 'indigo', 2, var(--list-size))};
286
285
  }
287
286
 
287
+ igx-icon,
288
+ igc-icon {
289
+ color: var-get($theme, 'item-thumbnail-color');
290
+ }
291
+
288
292
  &:empty {
289
293
  display: none;
290
294
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "igniteui-angular",
3
- "version": "21.0.0-rc.0",
3
+ "version": "21.0.0",
4
4
  "description": "Ignite UI for Angular is a dependency-free Angular toolkit for building modern web apps",
5
5
  "author": "Infragistics",
6
6
  "license": "SEE LICENSE IN LICENSE",