Skip to content

Commit 52d3d2b

Browse files
committed
2 parents 2fbd101 + daae1eb commit 52d3d2b

File tree

100 files changed

+7466
-5252
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

100 files changed

+7466
-5252
lines changed

CHANGELOG.md

Lines changed: 66 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,18 +4,79 @@ All notable changes for each version of this project will be documented in this
44

55
## 14.1.0
66

7+
### New Features
8+
- `IgxCombo` and `IgxSimpleComboComponent`
9+
- `filterFunction` input is added. The new property allows changing of the way filtering is done in the combos. By default filtering is made over the values in combo's data when it is a collection of primitive values, or over the values as defined in `displayKey` of the combo. If custom filtering function is provided filtering will be done as specified in the provided function.
10+
- `filteringOptions` are extended and now contains `filterable` and `filteringKey` properties. Setting `filterable` determines whether combo will be filterable. By default filtering is done over the data value when they are primitive, or over the field of the values equal to `displayKey`. `filteringKey` allows to filter data by any data related key.
11+
712
- `igxPivotGrid`
813
- Add option to template the pivot value chip content:
914
```
1015
<ng-template igxPivotValueChip let-value>
1116
{{ value.member }}
1217
</ng-template>
1318
```
14-
### New Features
15-
- `IgxCombo` and `IgxSimpleComboComponent`
16-
- `filterFunction` input is added. The new property allows changing of the way filtering is done in the combos. By default filtering is made over the values in combo's data when it is a collection of primitive values, or over the values as defined in `displayKey` of the combo. If custom filtering function is provided filtering will be done as specified in the provided function.
17-
- `filteringOptions` are extended and now contains `filterable` and `filteringKey` properties. Setting `filterable` determines whether combo will be filterable. By default filtering is done over the data value when they are primitive, or over the field of the values equal to `displayKey`. `filteringKey` allows to filter data by any data related key.
18-
- **Breaking Changes** - `filterable` property of `IgxComboComponent` is now deprecated and will be removed in future version. Use `filteringOptions.filterable` instead.
19+
- Add support for usage with igxGridState to persist state of the pivotConfiguration with an additional `pivotConfiguration` option:
20+
21+
```html
22+
<igx-pivot-grid
23+
#grid1
24+
[igxGridState]="options" ...
25+
```
26+
27+
```
28+
public options : IGridStateOptions = {
29+
pivotConfiguration: true
30+
};
31+
```
32+
33+
One known issue of the igxGridState directive is that it cannot store functions as the state is stored as string.
34+
As a result any custom functions set to `memberFunction`, `aggregator`, `formatter`, `styles` etc. will not be stored. Restoring any of these can be achieved with code on application level.
35+
Hence we have also exposed 2 new events:
36+
- `dimensionInit` - emits when a dimension from the configuration is being initialized.
37+
- `valueInit` - emits when a value from the configuration is being initialized.
38+
Which can be used to set back any custom functions you have in the configuration.
39+
The default aggregator function, like the ones from `IgxPivotNumericAggregate`, `IgxPivotDateAggregate` etc., will be restored out of the box. However if you have any custom aggregators (or other custom functions) they need to be set back in the `valueInit`event, for example:
40+
```
41+
public onValueInit(value: IPivotValue) {
42+
if (value.member === 'AmountOfSale') {
43+
value.aggregate.aggregator = IgxTotalSaleAggregate.totalSale;
44+
}
45+
}
46+
```
47+
Same applies to any custom functions on the dimension, like `memberFunction`. If it is a custom function you can set it back on the `dimensionInit` event:
48+
49+
```
50+
public onDimensionInit(dim: IPivotDimension) {
51+
if (dim.memberName === 'AllCities') {
52+
dim.memberFunction = () => 'All';
53+
}
54+
}
55+
```
56+
- `igxGridState`:
57+
Exposed a `stateParsed` event to the state directive that can be used to additionally modify the grid state before it gets applied.
58+
59+
```
60+
this.state.stateParsed.subscribe(parsedState => {
61+
parsedState.sorting.forEach(x => x.strategy = NoopSortingStrategy.instance());
62+
});
63+
```
64+
65+
- `igxGrid`
66+
- Added ability to auto-size columns to the size of their cells and header content on initialization by setting width `auto`:
67+
```
68+
<column width='auto' ...>
69+
```
70+
- Added support for restoring filtering expressions with custom filtering operands for the `IgxGridStateDirective`.
71+
72+
- Added the `IgcFormControl` directive that, when imported with its `IgcFormsModule`, is designed to seamlessly attach to form components from the Ignite UI for WebComponents package and allows using them in Angular templates and reactive forms with support for `ngModel` and `formControlName` directives. Currently the only Web Component with support through the directive is `igc-rating`.
73+
74+
### General
75+
76+
- **Breaking Changes** - `filterable` property of `IgxComboComponent` is now deprecated and will be removed in future version. Use `filteringOptions.filterable` instead.
77+
78+
### Theme Changes
79+
- **Breaking Changes** - `$disable-shadow` property of `IgxTabsComponent` theme has been removed.
1980
2081
## 14.0.0
2182

0 commit comments

Comments
 (0)