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.
- package/grids/grid/README.md +29 -11
- package/lib/core/styles/components/list/_list-theme.scss +35 -31
- package/package.json +1 -1
- package/styles/igniteui-angular-dark.css +1 -1
- package/styles/igniteui-angular.css +1 -1
- package/styles/igniteui-bootstrap-dark.css +1 -1
- package/styles/igniteui-bootstrap-light.css +1 -1
- package/styles/igniteui-dark-green.css +1 -1
- package/styles/igniteui-fluent-dark-excel.css +1 -1
- package/styles/igniteui-fluent-dark-word.css +1 -1
- package/styles/igniteui-fluent-dark.css +1 -1
- package/styles/igniteui-fluent-light-excel.css +1 -1
- package/styles/igniteui-fluent-light-word.css +1 -1
- package/styles/igniteui-fluent-light.css +1 -1
- package/styles/igniteui-indigo-dark.css +1 -1
- package/styles/igniteui-indigo-light.css +1 -1
- package/styles/maps/igniteui-angular-dark.css.map +1 -1
- package/styles/maps/igniteui-angular.css.map +1 -1
- package/styles/maps/igniteui-bootstrap-dark.css.map +1 -1
- package/styles/maps/igniteui-bootstrap-light.css.map +1 -1
- package/styles/maps/igniteui-dark-green.css.map +1 -1
- package/styles/maps/igniteui-fluent-dark-excel.css.map +1 -1
- package/styles/maps/igniteui-fluent-dark-word.css.map +1 -1
- package/styles/maps/igniteui-fluent-dark.css.map +1 -1
- package/styles/maps/igniteui-fluent-light-excel.css.map +1 -1
- package/styles/maps/igniteui-fluent-light-word.css.map +1 -1
- package/styles/maps/igniteui-fluent-light.css.map +1 -1
- package/styles/maps/igniteui-indigo-dark.css.map +1 -1
- package/styles/maps/igniteui-indigo-light.css.map +1 -1
package/grids/grid/README.md
CHANGED
|
@@ -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
|
|
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
|
-
//
|
|
39
|
-
import {
|
|
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
|
-
|
|
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
|
-
|
|
385
|
-
|
|
386
|
-
|
|
387
|
-
|
|
388
|
-
} from 'igniteui-angular/
|
|
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:
|
|
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
|
-
|
|
142
|
-
border-bottom:
|
|
143
|
-
|
|
144
|
-
&:last-of-type {
|
|
145
|
-
border-bottom: none;
|
|
146
|
-
}
|
|
142
|
+
&:last-of-type {
|
|
143
|
+
border-bottom: none;
|
|
147
144
|
}
|
|
145
|
+
}
|
|
148
146
|
|
|
149
|
-
|
|
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-
|
|
155
|
-
color: var-get($theme, 'item-
|
|
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
|
-
|
|
159
|
-
|
|
160
|
-
|
|
158
|
+
%igx-list__item-line-title {
|
|
159
|
+
color: var-get($theme, 'item-title-color-hover');
|
|
160
|
+
}
|
|
161
161
|
|
|
162
|
-
|
|
163
|
-
|
|
162
|
+
%igx-list__item-line-subtitle {
|
|
163
|
+
color: var-get($theme, 'item-subtitle-color-hover');
|
|
164
|
+
}
|
|
164
165
|
|
|
165
|
-
igx-
|
|
166
|
-
|
|
167
|
-
|
|
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
|
-
|
|
172
|
-
|
|
175
|
+
%igx-list__item-thumbnail {
|
|
176
|
+
color: var-get($theme, 'item-thumbnail-color-hover');
|
|
173
177
|
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
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