@progress/kendo-angular-filter 14.0.1 → 14.0.2-develop.2
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/esm2020/filter-expression.component.mjs +3 -3
- package/esm2020/filter.component.mjs +12 -5
- package/esm2020/package-metadata.mjs +2 -2
- package/fesm2015/progress-kendo-angular-filter.mjs +17 -10
- package/fesm2020/progress-kendo-angular-filter.mjs +17 -10
- package/filter.component.d.ts +2 -0
- package/package.json +11 -11
- package/schematics/ngAdd/index.js +3 -3
|
@@ -151,8 +151,8 @@ export class FilterExpressionComponent extends BaseFilterRowComponent {
|
|
|
151
151
|
}
|
|
152
152
|
}
|
|
153
153
|
getEditorType() {
|
|
154
|
-
const
|
|
155
|
-
return
|
|
154
|
+
const filterExpression = this.filterService.filters.find((filterExpression) => filterExpression.field === this.currentItem.field);
|
|
155
|
+
return filterExpression?.editor;
|
|
156
156
|
}
|
|
157
157
|
removeFilterExpression() {
|
|
158
158
|
this.filterService.remove(this.currentItem, this.index);
|
|
@@ -192,7 +192,7 @@ export class FilterExpressionComponent extends BaseFilterRowComponent {
|
|
|
192
192
|
}
|
|
193
193
|
setEditorTemplate() {
|
|
194
194
|
const filterExpression = this.filterService.filters.find((filter) => filter.field === this.currentItem.field);
|
|
195
|
-
this.editorTemplate = filterExpression
|
|
195
|
+
this.editorTemplate = filterExpression?.editorTemplate;
|
|
196
196
|
}
|
|
197
197
|
}
|
|
198
198
|
FilterExpressionComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: FilterExpressionComponent, deps: [{ token: i1.FilterService }, { token: i0.ChangeDetectorRef }, { token: i0.ElementRef }, { token: i2.NavigationService }, { token: i3.LocalizationService }, { token: i0.Renderer2 }], target: i0.ɵɵFactoryTarget.Component });
|
|
@@ -138,6 +138,18 @@ export class FilterComponent {
|
|
|
138
138
|
});
|
|
139
139
|
}
|
|
140
140
|
ngAfterViewInit() {
|
|
141
|
+
this.filterFieldsChanged();
|
|
142
|
+
this.filterFieldsSubscription = this.filterFields.changes.subscribe(this.filterFieldsChanged.bind(this));
|
|
143
|
+
}
|
|
144
|
+
ngOnDestroy() {
|
|
145
|
+
if (this.localizationSubscription) {
|
|
146
|
+
this.localizationSubscription.unsubscribe();
|
|
147
|
+
}
|
|
148
|
+
if (this.filterFieldsSubscription) {
|
|
149
|
+
this.filterFieldsSubscription.unsubscribe();
|
|
150
|
+
}
|
|
151
|
+
}
|
|
152
|
+
filterFieldsChanged() {
|
|
141
153
|
if (this.filterFields && this.filterFields.length > 0) {
|
|
142
154
|
this.filters = this.filterFields.map((filterField) => ({
|
|
143
155
|
...filterField,
|
|
@@ -155,11 +167,6 @@ export class FilterComponent {
|
|
|
155
167
|
this.renderer.setAttribute(firstElement, 'tabindex', '0');
|
|
156
168
|
}
|
|
157
169
|
}
|
|
158
|
-
ngOnDestroy() {
|
|
159
|
-
if (this.localizationSubscription) {
|
|
160
|
-
this.localizationSubscription.unsubscribe();
|
|
161
|
-
}
|
|
162
|
-
}
|
|
163
170
|
/**
|
|
164
171
|
* @hidden
|
|
165
172
|
*/
|
|
@@ -9,7 +9,7 @@ export const packageMetadata = {
|
|
|
9
9
|
name: '@progress/kendo-angular-filter',
|
|
10
10
|
productName: 'Kendo UI for Angular',
|
|
11
11
|
productCodes: ['KENDOUIANGULAR', 'KENDOUICOMPLETE'],
|
|
12
|
-
publishDate:
|
|
13
|
-
version: '14.0.
|
|
12
|
+
publishDate: 1697791315,
|
|
13
|
+
version: '14.0.2-develop.2',
|
|
14
14
|
licensingDocsUrl: 'https://www.telerik.com/kendo-angular-ui/my-license/'
|
|
15
15
|
};
|
|
@@ -235,8 +235,8 @@ const packageMetadata = {
|
|
|
235
235
|
name: '@progress/kendo-angular-filter',
|
|
236
236
|
productName: 'Kendo UI for Angular',
|
|
237
237
|
productCodes: ['KENDOUIANGULAR', 'KENDOUICOMPLETE'],
|
|
238
|
-
publishDate:
|
|
239
|
-
version: '14.0.
|
|
238
|
+
publishDate: 1697791315,
|
|
239
|
+
version: '14.0.2-develop.2',
|
|
240
240
|
licensingDocsUrl: 'https://www.telerik.com/kendo-angular-ui/my-license/'
|
|
241
241
|
};
|
|
242
242
|
|
|
@@ -1002,8 +1002,8 @@ class FilterExpressionComponent extends BaseFilterRowComponent {
|
|
|
1002
1002
|
}
|
|
1003
1003
|
}
|
|
1004
1004
|
getEditorType() {
|
|
1005
|
-
const
|
|
1006
|
-
return
|
|
1005
|
+
const filterExpression = this.filterService.filters.find((filterExpression) => filterExpression.field === this.currentItem.field);
|
|
1006
|
+
return filterExpression === null || filterExpression === void 0 ? void 0 : filterExpression.editor;
|
|
1007
1007
|
}
|
|
1008
1008
|
removeFilterExpression() {
|
|
1009
1009
|
this.filterService.remove(this.currentItem, this.index);
|
|
@@ -1043,7 +1043,7 @@ class FilterExpressionComponent extends BaseFilterRowComponent {
|
|
|
1043
1043
|
}
|
|
1044
1044
|
setEditorTemplate() {
|
|
1045
1045
|
const filterExpression = this.filterService.filters.find((filter) => filter.field === this.currentItem.field);
|
|
1046
|
-
this.editorTemplate = filterExpression
|
|
1046
|
+
this.editorTemplate = filterExpression === null || filterExpression === void 0 ? void 0 : filterExpression.editorTemplate;
|
|
1047
1047
|
}
|
|
1048
1048
|
}
|
|
1049
1049
|
FilterExpressionComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: FilterExpressionComponent, deps: [{ token: FilterService }, { token: i0.ChangeDetectorRef }, { token: i0.ElementRef }, { token: NavigationService }, { token: i1.LocalizationService }, { token: i0.Renderer2 }], target: i0.ɵɵFactoryTarget.Component });
|
|
@@ -1648,6 +1648,18 @@ class FilterComponent {
|
|
|
1648
1648
|
});
|
|
1649
1649
|
}
|
|
1650
1650
|
ngAfterViewInit() {
|
|
1651
|
+
this.filterFieldsChanged();
|
|
1652
|
+
this.filterFieldsSubscription = this.filterFields.changes.subscribe(this.filterFieldsChanged.bind(this));
|
|
1653
|
+
}
|
|
1654
|
+
ngOnDestroy() {
|
|
1655
|
+
if (this.localizationSubscription) {
|
|
1656
|
+
this.localizationSubscription.unsubscribe();
|
|
1657
|
+
}
|
|
1658
|
+
if (this.filterFieldsSubscription) {
|
|
1659
|
+
this.filterFieldsSubscription.unsubscribe();
|
|
1660
|
+
}
|
|
1661
|
+
}
|
|
1662
|
+
filterFieldsChanged() {
|
|
1651
1663
|
if (this.filterFields && this.filterFields.length > 0) {
|
|
1652
1664
|
this.filters = this.filterFields.map((filterField) => {
|
|
1653
1665
|
var _a;
|
|
@@ -1664,11 +1676,6 @@ class FilterComponent {
|
|
|
1664
1676
|
this.renderer.setAttribute(firstElement, 'tabindex', '0');
|
|
1665
1677
|
}
|
|
1666
1678
|
}
|
|
1667
|
-
ngOnDestroy() {
|
|
1668
|
-
if (this.localizationSubscription) {
|
|
1669
|
-
this.localizationSubscription.unsubscribe();
|
|
1670
|
-
}
|
|
1671
|
-
}
|
|
1672
1679
|
/**
|
|
1673
1680
|
* @hidden
|
|
1674
1681
|
*/
|
|
@@ -235,8 +235,8 @@ const packageMetadata = {
|
|
|
235
235
|
name: '@progress/kendo-angular-filter',
|
|
236
236
|
productName: 'Kendo UI for Angular',
|
|
237
237
|
productCodes: ['KENDOUIANGULAR', 'KENDOUICOMPLETE'],
|
|
238
|
-
publishDate:
|
|
239
|
-
version: '14.0.
|
|
238
|
+
publishDate: 1697791315,
|
|
239
|
+
version: '14.0.2-develop.2',
|
|
240
240
|
licensingDocsUrl: 'https://www.telerik.com/kendo-angular-ui/my-license/'
|
|
241
241
|
};
|
|
242
242
|
|
|
@@ -1001,8 +1001,8 @@ class FilterExpressionComponent extends BaseFilterRowComponent {
|
|
|
1001
1001
|
}
|
|
1002
1002
|
}
|
|
1003
1003
|
getEditorType() {
|
|
1004
|
-
const
|
|
1005
|
-
return
|
|
1004
|
+
const filterExpression = this.filterService.filters.find((filterExpression) => filterExpression.field === this.currentItem.field);
|
|
1005
|
+
return filterExpression?.editor;
|
|
1006
1006
|
}
|
|
1007
1007
|
removeFilterExpression() {
|
|
1008
1008
|
this.filterService.remove(this.currentItem, this.index);
|
|
@@ -1042,7 +1042,7 @@ class FilterExpressionComponent extends BaseFilterRowComponent {
|
|
|
1042
1042
|
}
|
|
1043
1043
|
setEditorTemplate() {
|
|
1044
1044
|
const filterExpression = this.filterService.filters.find((filter) => filter.field === this.currentItem.field);
|
|
1045
|
-
this.editorTemplate = filterExpression
|
|
1045
|
+
this.editorTemplate = filterExpression?.editorTemplate;
|
|
1046
1046
|
}
|
|
1047
1047
|
}
|
|
1048
1048
|
FilterExpressionComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: FilterExpressionComponent, deps: [{ token: FilterService }, { token: i0.ChangeDetectorRef }, { token: i0.ElementRef }, { token: NavigationService }, { token: i1.LocalizationService }, { token: i0.Renderer2 }], target: i0.ɵɵFactoryTarget.Component });
|
|
@@ -1647,6 +1647,18 @@ class FilterComponent {
|
|
|
1647
1647
|
});
|
|
1648
1648
|
}
|
|
1649
1649
|
ngAfterViewInit() {
|
|
1650
|
+
this.filterFieldsChanged();
|
|
1651
|
+
this.filterFieldsSubscription = this.filterFields.changes.subscribe(this.filterFieldsChanged.bind(this));
|
|
1652
|
+
}
|
|
1653
|
+
ngOnDestroy() {
|
|
1654
|
+
if (this.localizationSubscription) {
|
|
1655
|
+
this.localizationSubscription.unsubscribe();
|
|
1656
|
+
}
|
|
1657
|
+
if (this.filterFieldsSubscription) {
|
|
1658
|
+
this.filterFieldsSubscription.unsubscribe();
|
|
1659
|
+
}
|
|
1660
|
+
}
|
|
1661
|
+
filterFieldsChanged() {
|
|
1650
1662
|
if (this.filterFields && this.filterFields.length > 0) {
|
|
1651
1663
|
this.filters = this.filterFields.map((filterField) => ({
|
|
1652
1664
|
...filterField,
|
|
@@ -1664,11 +1676,6 @@ class FilterComponent {
|
|
|
1664
1676
|
this.renderer.setAttribute(firstElement, 'tabindex', '0');
|
|
1665
1677
|
}
|
|
1666
1678
|
}
|
|
1667
|
-
ngOnDestroy() {
|
|
1668
|
-
if (this.localizationSubscription) {
|
|
1669
|
-
this.localizationSubscription.unsubscribe();
|
|
1670
|
-
}
|
|
1671
|
-
}
|
|
1672
1679
|
/**
|
|
1673
1680
|
* @hidden
|
|
1674
1681
|
*/
|
package/filter.component.d.ts
CHANGED
|
@@ -77,6 +77,7 @@ export declare class FilterComponent implements OnInit, OnDestroy {
|
|
|
77
77
|
*/
|
|
78
78
|
valueChange: EventEmitter<CompositeFilterDescriptor>;
|
|
79
79
|
private localizationSubscription;
|
|
80
|
+
private filterFieldsSubscription;
|
|
80
81
|
private _value;
|
|
81
82
|
private filterFields;
|
|
82
83
|
private _filterItems;
|
|
@@ -86,6 +87,7 @@ export declare class FilterComponent implements OnInit, OnDestroy {
|
|
|
86
87
|
ngOnInit(): void;
|
|
87
88
|
ngAfterViewInit(): void;
|
|
88
89
|
ngOnDestroy(): void;
|
|
90
|
+
private filterFieldsChanged;
|
|
89
91
|
/**
|
|
90
92
|
* @hidden
|
|
91
93
|
*/
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@progress/kendo-angular-filter",
|
|
3
|
-
"version": "14.0.
|
|
3
|
+
"version": "14.0.2-develop.2",
|
|
4
4
|
"description": "Kendo UI Angular Filter",
|
|
5
5
|
"license": "SEE LICENSE IN LICENSE.md",
|
|
6
6
|
"author": "Progress",
|
|
@@ -22,20 +22,20 @@
|
|
|
22
22
|
"@angular/platform-browser": "13 - 16",
|
|
23
23
|
"@progress/kendo-data-query": "^1.5.5",
|
|
24
24
|
"@progress/kendo-licensing": "^1.0.2",
|
|
25
|
-
"@progress/kendo-angular-buttons": "14.0.
|
|
26
|
-
"@progress/kendo-angular-common": "14.0.
|
|
27
|
-
"@progress/kendo-angular-dateinputs": "14.0.
|
|
28
|
-
"@progress/kendo-angular-dropdowns": "14.0.
|
|
29
|
-
"@progress/kendo-angular-inputs": "14.0.
|
|
30
|
-
"@progress/kendo-angular-intl": "14.0.
|
|
31
|
-
"@progress/kendo-angular-l10n": "14.0.
|
|
32
|
-
"@progress/kendo-angular-icons": "14.0.
|
|
33
|
-
"@progress/kendo-angular-label": "14.0.
|
|
25
|
+
"@progress/kendo-angular-buttons": "14.0.2-develop.2",
|
|
26
|
+
"@progress/kendo-angular-common": "14.0.2-develop.2",
|
|
27
|
+
"@progress/kendo-angular-dateinputs": "14.0.2-develop.2",
|
|
28
|
+
"@progress/kendo-angular-dropdowns": "14.0.2-develop.2",
|
|
29
|
+
"@progress/kendo-angular-inputs": "14.0.2-develop.2",
|
|
30
|
+
"@progress/kendo-angular-intl": "14.0.2-develop.2",
|
|
31
|
+
"@progress/kendo-angular-l10n": "14.0.2-develop.2",
|
|
32
|
+
"@progress/kendo-angular-icons": "14.0.2-develop.2",
|
|
33
|
+
"@progress/kendo-angular-label": "14.0.2-develop.2",
|
|
34
34
|
"rxjs": "^6.5.3 || ^7.0.0"
|
|
35
35
|
},
|
|
36
36
|
"dependencies": {
|
|
37
37
|
"tslib": "^2.3.1",
|
|
38
|
-
"@progress/kendo-angular-schematics": "14.0.
|
|
38
|
+
"@progress/kendo-angular-schematics": "14.0.2-develop.2"
|
|
39
39
|
},
|
|
40
40
|
"schematics": "./schematics/collection.json",
|
|
41
41
|
"module": "fesm2015/progress-kendo-angular-filter.mjs",
|
|
@@ -4,11 +4,11 @@ const schematics_1 = require("@angular-devkit/schematics");
|
|
|
4
4
|
function default_1(options) {
|
|
5
5
|
const finalOptions = Object.assign(Object.assign({}, options), { mainNgModule: 'FilterModule', package: 'filter', peerDependencies: {
|
|
6
6
|
// peer dep of the dropdowns
|
|
7
|
-
'@progress/kendo-angular-treeview': '14.0.
|
|
8
|
-
'@progress/kendo-angular-popup': '14.0.
|
|
7
|
+
'@progress/kendo-angular-treeview': '14.0.2-develop.2',
|
|
8
|
+
'@progress/kendo-angular-popup': '14.0.2-develop.2',
|
|
9
9
|
// peer dependency of kendo-angular-inputs
|
|
10
10
|
'@progress/kendo-drawing': '^1.16.0',
|
|
11
|
-
'@progress/kendo-angular-dialog': '14.0.
|
|
11
|
+
'@progress/kendo-angular-dialog': '14.0.2-develop.2',
|
|
12
12
|
// Peer dependency of icons
|
|
13
13
|
'@progress/kendo-svg-icons': '^2.0.0'
|
|
14
14
|
} });
|