@progress/kendo-angular-filter 1.0.0-next.202203251456 → 1.0.0-next.202204011458

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 (43) hide show
  1. package/aria-label.directive.d.ts +18 -0
  2. package/bundles/kendo-angular-filter.umd.js +1 -1
  3. package/editors/boolean-editor.component.d.ts +40 -0
  4. package/editors/date-editor.component.d.ts +23 -0
  5. package/editors/numeric-editor.component.d.ts +23 -0
  6. package/editors/text-editor.component.d.ts +23 -0
  7. package/esm2015/aria-label.directive.js +28 -0
  8. package/esm2015/editors/boolean-editor.component.js +84 -0
  9. package/esm2015/editors/date-editor.component.js +67 -0
  10. package/esm2015/editors/numeric-editor.component.js +67 -0
  11. package/esm2015/editors/text-editor.component.js +59 -0
  12. package/esm2015/filter-expression-operators.component.js +68 -0
  13. package/esm2015/filter-expression.component.js +219 -0
  14. package/esm2015/filter-group.component.js +206 -0
  15. package/esm2015/filter.component.js +415 -0
  16. package/esm2015/filter.module.js +117 -0
  17. package/esm2015/filter.service.js +44 -0
  18. package/esm2015/kendo-angular-filter.js +8 -0
  19. package/esm2015/localization/custom-messages.component.js +41 -0
  20. package/esm2015/localization/localized-messages.directive.js +36 -0
  21. package/esm2015/localization/messages.js +95 -0
  22. package/esm2015/main.js +16 -0
  23. package/esm2015/model/filter-expression.js +8 -0
  24. package/esm2015/package-metadata.js +15 -0
  25. package/esm2015/shared.module.js +50 -0
  26. package/esm2015/util.js +136 -0
  27. package/fesm2015/kendo-angular-filter.js +1622 -0
  28. package/filter-expression-operators.component.d.ts +27 -0
  29. package/filter-expression.component.d.ts +48 -0
  30. package/filter-group.component.d.ts +41 -0
  31. package/filter.component.d.ts +82 -0
  32. package/filter.module.d.ts +53 -0
  33. package/filter.service.d.ts +20 -0
  34. package/kendo-angular-filter.d.ts +9 -0
  35. package/localization/custom-messages.component.d.ts +18 -0
  36. package/localization/localized-messages.directive.d.ts +16 -0
  37. package/localization/messages.d.ts +161 -0
  38. package/main.d.ts +17 -0
  39. package/model/filter-expression.d.ts +60 -0
  40. package/package-metadata.d.ts +9 -0
  41. package/package.json +2 -6
  42. package/shared.module.d.ts +19 -0
  43. package/util.d.ts +147 -0
@@ -0,0 +1,206 @@
1
+ /**-----------------------------------------------------------------------------------------
2
+ * Copyright © 2021 Progress Software Corporation. All rights reserved.
3
+ * Licensed under commercial license. See LICENSE.md in the project root for more information
4
+ *-------------------------------------------------------------------------------------------*/
5
+ import { Component, EventEmitter, Input, Output } from '@angular/core';
6
+ import { localizeOperators, logicOperators } from './util';
7
+ import * as i0 from "@angular/core";
8
+ import * as i1 from "./filter.service";
9
+ import * as i2 from "@progress/kendo-angular-l10n";
10
+ import * as i3 from "./filter-expression.component";
11
+ import * as i4 from "@angular/common";
12
+ import * as i5 from "@progress/kendo-angular-buttons";
13
+ /**
14
+ * @hidden
15
+ */
16
+ export class FilterGroupComponent {
17
+ constructor(filterService, localization, cdr) {
18
+ this.filterService = filterService;
19
+ this.localization = localization;
20
+ this.cdr = cdr;
21
+ this.index = 0;
22
+ this.currentItem = {
23
+ logic: 'or',
24
+ filters: []
25
+ };
26
+ this.valueChange = new EventEmitter();
27
+ this.operators = [];
28
+ }
29
+ ngOnInit() {
30
+ this.operators = this.getLogicOperators();
31
+ this.localizationSubscription = this.localization.changes.subscribe(() => {
32
+ this.operators = this.getLogicOperators();
33
+ this.cdr.detectChanges();
34
+ });
35
+ }
36
+ ngOnDestroy() {
37
+ if (this.localizationSubscription) {
38
+ this.localizationSubscription.unsubscribe();
39
+ }
40
+ }
41
+ getLogicOperators() {
42
+ return localizeOperators(logicOperators)(this.localization);
43
+ }
44
+ messageFor(key) {
45
+ return this.localization.get(key);
46
+ }
47
+ selectedChange(logicOperator) {
48
+ if (this.currentItem.logic !== logicOperator) {
49
+ this.currentItem.logic = logicOperator;
50
+ this.valueChange.emit();
51
+ }
52
+ }
53
+ addFilterExpression() {
54
+ this.filterService.addFilterExpression(this.currentItem);
55
+ this.valueChange.emit();
56
+ }
57
+ addFilterGroup() {
58
+ this.filterService.addFilterGroup(this.currentItem);
59
+ this.valueChange.emit();
60
+ }
61
+ removeFilterGroup() {
62
+ this.filterService.remove(this.currentItem, this.index);
63
+ this.valueChange.emit();
64
+ }
65
+ }
66
+ FilterGroupComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: FilterGroupComponent, deps: [{ token: i1.FilterService }, { token: i2.LocalizationService }, { token: i0.ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Component });
67
+ FilterGroupComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.16", type: FilterGroupComponent, selector: "kendo-filter-group", inputs: { index: "index", currentItem: "currentItem" }, outputs: { valueChange: "valueChange" }, ngImport: i0, template: `
68
+ <div class="k-filter-toolbar" role="toolbar" [attr.aria-label]="messageFor('filterToolbarAriaLabel')">
69
+ <div class="k-toolbar">
70
+ <div class="k-filter-toolbar-item">
71
+ <div class="k-widget k-button-group" role="group">
72
+ <button
73
+ *ngFor="let operator of operators"
74
+ kendoButton
75
+ [ngClass]="{'k-group-start': operator.value === 'and', 'k-group-end': operator.value === 'or'}"
76
+ [selected]="currentItem.logic === operator.value"
77
+ [title]="operator.text"
78
+ (click)="selectedChange(operator.value)"
79
+ >
80
+ {{operator.text}}
81
+ </button>
82
+ </div>
83
+ </div>
84
+ <div class="k-filter-toolbar-item">
85
+ <button
86
+ kendoButton
87
+ [title]="messageFor('addFilter')"
88
+ icon="filter-add-expression"
89
+ (click)="addFilterExpression()">
90
+ {{messageFor('addFilter')}}
91
+ </button>
92
+ </div>
93
+ <div class="k-filter-toolbar-item">
94
+ <button
95
+ kendoButton
96
+ [title]="messageFor('addGroup')"
97
+ icon="filter-add-group"
98
+ (click)="addFilterGroup()">
99
+ {{messageFor('addGroup')}}
100
+ </button>
101
+ </div>
102
+ <div class="k-filter-toolbar-item">
103
+ <button
104
+ kendoButton
105
+ icon="close"
106
+ fillMode="flat"
107
+ [title]="messageFor('remove')"
108
+ (click)="removeFilterGroup()">
109
+ </button>
110
+ </div>
111
+ </div>
112
+ </div>
113
+
114
+ <ul class="k-filter-lines" *ngIf="currentItem.filters">
115
+ <ng-container *ngFor="let item of currentItem.filters; let i = index;">
116
+ <li class="k-filter-item" *ngIf="!item['filters']">
117
+ <kendo-filter-expression (valueChange)="valueChange.emit()" [currentItem]="item" [index]="i">
118
+ </kendo-filter-expression>
119
+ </li>
120
+ <li class="k-filter-item" *ngIf="item['filters']">
121
+ <kendo-filter-group
122
+ (valueChange)="valueChange.emit()"
123
+ [currentItem]="item"
124
+ [index]="i"
125
+ >
126
+ </kendo-filter-group>
127
+ </li>
128
+ </ng-container>
129
+ </ul>
130
+ `, isInline: true, components: [{ type: i3.FilterExpressionComponent, selector: "kendo-filter-expression", inputs: ["index", "currentItem"], outputs: ["valueChange"] }, { type: FilterGroupComponent, selector: "kendo-filter-group", inputs: ["index", "currentItem"], outputs: ["valueChange"] }], directives: [{ type: i4.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { type: i5.ButtonDirective, selector: "button[kendoButton], span[kendoButton]", inputs: ["toggleable", "togglable", "selected", "tabIndex", "icon", "iconClass", "imageUrl", "disabled", "size", "rounded", "fillMode", "themeColor", "shape", "role", "primary", "look"], outputs: ["selectedChange", "click"], exportAs: ["kendoButton"] }, { type: i4.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { type: i4.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }] });
131
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: FilterGroupComponent, decorators: [{
132
+ type: Component,
133
+ args: [{
134
+ selector: 'kendo-filter-group',
135
+ template: `
136
+ <div class="k-filter-toolbar" role="toolbar" [attr.aria-label]="messageFor('filterToolbarAriaLabel')">
137
+ <div class="k-toolbar">
138
+ <div class="k-filter-toolbar-item">
139
+ <div class="k-widget k-button-group" role="group">
140
+ <button
141
+ *ngFor="let operator of operators"
142
+ kendoButton
143
+ [ngClass]="{'k-group-start': operator.value === 'and', 'k-group-end': operator.value === 'or'}"
144
+ [selected]="currentItem.logic === operator.value"
145
+ [title]="operator.text"
146
+ (click)="selectedChange(operator.value)"
147
+ >
148
+ {{operator.text}}
149
+ </button>
150
+ </div>
151
+ </div>
152
+ <div class="k-filter-toolbar-item">
153
+ <button
154
+ kendoButton
155
+ [title]="messageFor('addFilter')"
156
+ icon="filter-add-expression"
157
+ (click)="addFilterExpression()">
158
+ {{messageFor('addFilter')}}
159
+ </button>
160
+ </div>
161
+ <div class="k-filter-toolbar-item">
162
+ <button
163
+ kendoButton
164
+ [title]="messageFor('addGroup')"
165
+ icon="filter-add-group"
166
+ (click)="addFilterGroup()">
167
+ {{messageFor('addGroup')}}
168
+ </button>
169
+ </div>
170
+ <div class="k-filter-toolbar-item">
171
+ <button
172
+ kendoButton
173
+ icon="close"
174
+ fillMode="flat"
175
+ [title]="messageFor('remove')"
176
+ (click)="removeFilterGroup()">
177
+ </button>
178
+ </div>
179
+ </div>
180
+ </div>
181
+
182
+ <ul class="k-filter-lines" *ngIf="currentItem.filters">
183
+ <ng-container *ngFor="let item of currentItem.filters; let i = index;">
184
+ <li class="k-filter-item" *ngIf="!item['filters']">
185
+ <kendo-filter-expression (valueChange)="valueChange.emit()" [currentItem]="item" [index]="i">
186
+ </kendo-filter-expression>
187
+ </li>
188
+ <li class="k-filter-item" *ngIf="item['filters']">
189
+ <kendo-filter-group
190
+ (valueChange)="valueChange.emit()"
191
+ [currentItem]="item"
192
+ [index]="i"
193
+ >
194
+ </kendo-filter-group>
195
+ </li>
196
+ </ng-container>
197
+ </ul>
198
+ `
199
+ }]
200
+ }], ctorParameters: function () { return [{ type: i1.FilterService }, { type: i2.LocalizationService }, { type: i0.ChangeDetectorRef }]; }, propDecorators: { index: [{
201
+ type: Input
202
+ }], currentItem: [{
203
+ type: Input
204
+ }], valueChange: [{
205
+ type: Output
206
+ }] } });
@@ -0,0 +1,415 @@
1
+ /**-----------------------------------------------------------------------------------------
2
+ * Copyright © 2021 Progress Software Corporation. All rights reserved.
3
+ * Licensed under commercial license. See LICENSE.md in the project root for more information
4
+ *-------------------------------------------------------------------------------------------*/
5
+ import { Component, Input, Output, EventEmitter, HostBinding, isDevMode } from '@angular/core';
6
+ import { FilterService } from './filter.service';
7
+ import { isArray } from './util';
8
+ import { validatePackage } from '@progress/kendo-licensing';
9
+ import { packageMetadata } from './package-metadata';
10
+ import * as i0 from "@angular/core";
11
+ import * as i1 from "./filter.service";
12
+ import * as i2 from "@progress/kendo-angular-l10n";
13
+ import * as i3 from "./filter-group.component";
14
+ import * as i4 from "./localization/localized-messages.directive";
15
+ /**
16
+ * Represents the [Kendo UI Filter component for Angular]({% slug overview_filter %}).
17
+ * The Filter component can be used to apply any user defined filter criteria.
18
+ * @example
19
+ * ```
20
+ * @Component({
21
+ * selector: 'my-app',
22
+ * template: `
23
+ * <kendo-filter [filters]="filters" (valueChange)="onValueChange($event)"></kendo-filter>
24
+ * `
25
+ * })
26
+ * export class AppComponent {
27
+ *
28
+ * public filters: FilterExpression[] = [
29
+ * {
30
+ * name: 'country',
31
+ * label: 'Country',
32
+ * filter: 'string',
33
+ * operators: ['eq', 'neq'],
34
+ * },
35
+ * {
36
+ * name: 'budget',
37
+ * filter: 'number'
38
+ * }
39
+ * ];
40
+ *
41
+ * onValueChange(e: CompositeFilterDescriptor){
42
+ * console.log(e)
43
+ * }
44
+ * }
45
+ * ```
46
+ */
47
+ export class FilterComponent {
48
+ constructor(filterService, localization, cdr) {
49
+ this.filterService = filterService;
50
+ this.localization = localization;
51
+ this.cdr = cdr;
52
+ /**
53
+ * Fires every time the Filter component value is updated.
54
+ * That is each time a Filter Group or Filter Expression is added, removed, or updated.
55
+ */
56
+ this.valueChange = new EventEmitter();
57
+ validatePackage(packageMetadata);
58
+ this.direction = localization.rtl ? 'rtl' : 'ltr';
59
+ }
60
+ /**
61
+ * Specifies the available user-defined filters. At least one filter should be provided.
62
+ */
63
+ set filters(_filters) {
64
+ if (isDevMode() && (!isArray(_filters) || _filters.length === 0)) {
65
+ throw new Error(`Pass at least one user-defined filter through the [filters] input property. See http://www.telerik.com/kendo-angular-ui/components/filter/#data-binding`);
66
+ }
67
+ this.filterService.filters = _filters.map(filterExpression => {
68
+ let clonedFilter = Object.assign({}, filterExpression);
69
+ if (!clonedFilter.title) {
70
+ clonedFilter.title = clonedFilter.field;
71
+ }
72
+ return clonedFilter;
73
+ });
74
+ }
75
+ get filters() {
76
+ return this.filterService.filters;
77
+ }
78
+ /**
79
+ * Sets the initial `value` of the Filter component.
80
+ */
81
+ set value(value) {
82
+ const clonedValue = JSON.parse(JSON.stringify(value));
83
+ this.normalizeValue(clonedValue);
84
+ this.filterService.value = clonedValue;
85
+ }
86
+ get value() {
87
+ return this.filterService.value;
88
+ }
89
+ ngOnInit() {
90
+ if (this.filters.length === 0) {
91
+ throw new Error(`Pass at least one user-defined filter through the [filters] input property. See http://www.telerik.com/kendo-angular-ui/components/filter/#data-binding`);
92
+ }
93
+ this.localizationSubscription = this.localization.changes.subscribe(({ rtl }) => {
94
+ this.direction = rtl ? 'rtl' : 'ltr';
95
+ this.cdr.detectChanges();
96
+ });
97
+ }
98
+ ngOnDestroy() {
99
+ if (this.localizationSubscription) {
100
+ this.localizationSubscription.unsubscribe();
101
+ }
102
+ }
103
+ /**
104
+ * @hidden
105
+ */
106
+ getCurrentFilter() {
107
+ return this.value;
108
+ }
109
+ /**
110
+ * @hidden
111
+ */
112
+ onValueChange() {
113
+ this.valueChange.emit(this.filterService.value);
114
+ }
115
+ normalizeFilter(filterDescriptor) {
116
+ const foundFilter = this.filterService.filters.find((filter) => filter.field === filterDescriptor.field);
117
+ if (isDevMode() && !foundFilter) {
118
+ throw new Error(`There is no user-defined filter with '${filterDescriptor.field}' field provided through the [filters] input property.`);
119
+ }
120
+ if (isDevMode() && foundFilter.editor === 'boolean' && (!filterDescriptor.value && filterDescriptor.value !== false)) {
121
+ console.warn(`Provide a value for the boolean '${filterDescriptor.field}' user-defined filter as the operator is always set to 'eq'.`);
122
+ }
123
+ if (filterDescriptor.operator && foundFilter.operators && !foundFilter.operators.some(operator => operator === filterDescriptor.operator)) {
124
+ throw new Error(`The user-defined filter with field '${filterDescriptor.field}' is missing the '${filterDescriptor.operator}' operator.`);
125
+ }
126
+ if (foundFilter.editor === 'boolean') {
127
+ filterDescriptor.operator = 'eq';
128
+ }
129
+ if (foundFilter.editor === 'date' && filterDescriptor.value) {
130
+ filterDescriptor.value = new Date(filterDescriptor.value);
131
+ }
132
+ if (!filterDescriptor.value && filterDescriptor.value !== false) {
133
+ filterDescriptor.value = null;
134
+ }
135
+ }
136
+ normalizeValue(item) {
137
+ item.filters.forEach((item) => {
138
+ if (item.filters) {
139
+ this.normalizeValue(item);
140
+ }
141
+ else {
142
+ this.normalizeFilter(item);
143
+ }
144
+ });
145
+ }
146
+ }
147
+ FilterComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: FilterComponent, deps: [{ token: i1.FilterService }, { token: i2.LocalizationService }, { token: i0.ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Component });
148
+ FilterComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.16", type: FilterComponent, selector: "kendo-filter", inputs: { filters: "filters", value: "value" }, outputs: { valueChange: "valueChange" }, host: { properties: { "attr.dir": "this.direction" } }, providers: [FilterService], ngImport: i0, template: `
149
+ <ng-container kendoFilterLocalizedMessages
150
+ i18n-editorDateTodayText="kendo.filter.editorDateTodayText|The text of the Today button of the Date editor"
151
+ editorDateTodayText="Today"
152
+
153
+ i18n-editorDateToggleText="kendo.filter.editorDateToggleText|The title of the Toggle button of the Date editor."
154
+ editorDateToggleText="Toggle calendar"
155
+
156
+ i18n-editorNumericDecrement="kendo.filter.editorNumericDecrement|The title of the Decrement button of the Numeric editor"
157
+ editorNumericDecrement="Decrement"
158
+
159
+ i18n-editorNumericIncrement="kendo.filter.editorNumericIncrement|The title of the Increment button of the Numeric editor"
160
+ editorNumericIncrement="Increment"
161
+
162
+ i18n-filterExpressionOperators="kendo.filter.filterExpressionOperators|The text of the Filter Expression Operators drop down"
163
+ filterExpressionOperators="Operators"
164
+
165
+ i18n-filterExpressionFilters="kendo.filter.filterExpressionFilters|The text of the Filter Expression filters drop down"
166
+ filterExpressionFilters="Fields"
167
+
168
+ i18n-remove="kendo.filter.remove|The text of the Remove button"
169
+ remove="Remove"
170
+
171
+ i18n-addFilter="kendo.filter.addFilter|The text of the Add Filter button"
172
+ addFilter="Add Filter"
173
+
174
+ i18n-addGroup="kendo.filter.addGroup|The text of the Add Group button"
175
+ addGroup="Add Group"
176
+
177
+ i18n-filterAndLogic="kendo.filter.filterAndLogic|The text of the And filter logic"
178
+ filterAndLogic="And"
179
+
180
+ i18n-filterOrLogic="kendo.filter.filterOrLogic|The text of the Or filter logic"
181
+ filterOrLogic="Or"
182
+
183
+ i18n-filterEqOperator="kendo.filter.filterEqOperator|The text of the equal filter operator"
184
+ filterEqOperator="Is equal to"
185
+
186
+ i18n-filterNotEqOperator="kendo.filter.filterNotEqOperator|The text of the not equal filter operator"
187
+ filterNotEqOperator="Is not equal to"
188
+
189
+ i18n-filterIsNullOperator="kendo.filter.filterIsNullOperator|The text of the is null filter operator"
190
+ filterIsNullOperator="Is null"
191
+
192
+ i18n-filterIsNotNullOperator="kendo.filter.filterIsNotNullOperator|The text of the is not null filter operator"
193
+ filterIsNotNullOperator="Is not null"
194
+
195
+ i18n-filterIsEmptyOperator="kendo.filter.filterIsEmptyOperator|The text of the is empty filter operator"
196
+ filterIsEmptyOperator="Is empty"
197
+
198
+ i18n-filterIsNotEmptyOperator="kendo.filter.filterIsNotEmptyOperator|The text of the is not empty filter operator"
199
+ filterIsNotEmptyOperator="Is not empty"
200
+
201
+ i18n-filterStartsWithOperator="kendo.filter.filterStartsWithOperator|The text of the starts with filter operator"
202
+ filterStartsWithOperator="Starts with"
203
+
204
+ i18n-filterContainsOperator="kendo.filter.filterContainsOperator|The text of the contains filter operator"
205
+ filterContainsOperator="Contains"
206
+
207
+ i18n-filterNotContainsOperator="kendo.filter.filterNotContainsOperator|The text of the does not contain filter operator"
208
+ filterNotContainsOperator="Does not contain"
209
+
210
+ i18n-filterEndsWithOperator="kendo.filter.filterEndsWithOperator|The text of the ends with filter operator"
211
+ filterEndsWithOperator="Ends with"
212
+
213
+ i18n-filterGteOperator="kendo.filter.filterGteOperator|The text of the greater than or equal filter operator"
214
+ filterGteOperator="Is greater than or equal to"
215
+
216
+ i18n-filterGtOperator="kendo.filter.filterGtOperator|The text of the greater than filter operator"
217
+ filterGtOperator="Is greater than"
218
+
219
+ i18n-filterLteOperator="kendo.filter.filterLteOperator|The text of the less than or equal filter operator"
220
+ filterLteOperator="Is less than or equal to"
221
+
222
+ i18n-filterLtOperator="kendo.filter.filterLtOperator|The text of the less than filter operator"
223
+ filterLtOperator="Is less than"
224
+
225
+ i18n-filterIsTrue="kendo.filter.filterIsTrue|The text of the IsTrue boolean filter option"
226
+ filterIsTrue="Is True"
227
+
228
+ i18n-filterIsFalse="kendo.filter.filterIsFalse|The text of the IsFalse boolean filter option"
229
+ filterIsFalse="Is False"
230
+
231
+ i18n-filterBooleanAll="kendo.filter.filterBooleanAll|The text of the (All) boolean filter option"
232
+ filterBooleanAll="(All)"
233
+
234
+ i18n-filterAfterOrEqualOperator="kendo.filter.filterAfterOrEqualOperator|The text of the after or equal date filter operator"
235
+ filterAfterOrEqualOperator="Is after or equal to"
236
+
237
+ i18n-filterAfterOperator="kendo.filter.filterAfterOperator|The text of the after date filter operator"
238
+ filterAfterOperator="Is after"
239
+
240
+ i18n-filterBeforeOperator="kendo.filter.filterBeforeOperator|The text of the before date filter operator"
241
+ filterBeforeOperator="Is before"
242
+
243
+ i18n-filterBeforeOrEqualOperator="kendo.filter.filterBeforeOrEqualOperator|The text of the before or equal date filter operator"
244
+ filterBeforeOrEqualOperator="Is before or equal to"
245
+
246
+ i18n-filterFieldAriaLabel="kendo.filter.filterFieldAriaLabel|The text of the filter field aria label"
247
+ filterFieldAriaLabel="field"
248
+
249
+ i18n-filterOperatorAriaLabel="kendo.filter.filterOperatorAriaLabel|The text of the filter operator aria label"
250
+ filterOperatorAriaLabel="operator"
251
+
252
+ i18n-filterValueAriaLabel="kendo.filter.filterValueAriaLabel|The text of the filter value aria label"
253
+ filterValueAriaLabel="value"
254
+
255
+ i18n-filterAriaLabel="kendo.filter.filterAriaLabel|The text of the filter row aria label"
256
+ filterAriaLabel="filter"
257
+
258
+ i18n-filterToolbarAriaLabel="kendo.filter.filterToolbarAriaLabel|The text of the filter toolbar aria label"
259
+ filterToolbarAriaLabel="filter settings"
260
+ >
261
+ </ng-container>
262
+ <div class="k-widget k-filter" [attr.dir]="direction">
263
+ <ul class='k-filter-container'>
264
+ <li class='k-filter-group-main'>
265
+ <kendo-filter-group
266
+ [currentItem]="getCurrentFilter()"
267
+ (valueChange)="onValueChange()"
268
+ >
269
+ </kendo-filter-group>
270
+ </li>
271
+ </ul>
272
+ </div>
273
+ `, isInline: true, components: [{ type: i3.FilterGroupComponent, selector: "kendo-filter-group", inputs: ["index", "currentItem"], outputs: ["valueChange"] }], directives: [{ type: i4.LocalizedMessagesDirective, selector: "[kendoFilterLocalizedMessages]" }] });
274
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: FilterComponent, decorators: [{
275
+ type: Component,
276
+ args: [{
277
+ selector: 'kendo-filter',
278
+ template: `
279
+ <ng-container kendoFilterLocalizedMessages
280
+ i18n-editorDateTodayText="kendo.filter.editorDateTodayText|The text of the Today button of the Date editor"
281
+ editorDateTodayText="Today"
282
+
283
+ i18n-editorDateToggleText="kendo.filter.editorDateToggleText|The title of the Toggle button of the Date editor."
284
+ editorDateToggleText="Toggle calendar"
285
+
286
+ i18n-editorNumericDecrement="kendo.filter.editorNumericDecrement|The title of the Decrement button of the Numeric editor"
287
+ editorNumericDecrement="Decrement"
288
+
289
+ i18n-editorNumericIncrement="kendo.filter.editorNumericIncrement|The title of the Increment button of the Numeric editor"
290
+ editorNumericIncrement="Increment"
291
+
292
+ i18n-filterExpressionOperators="kendo.filter.filterExpressionOperators|The text of the Filter Expression Operators drop down"
293
+ filterExpressionOperators="Operators"
294
+
295
+ i18n-filterExpressionFilters="kendo.filter.filterExpressionFilters|The text of the Filter Expression filters drop down"
296
+ filterExpressionFilters="Fields"
297
+
298
+ i18n-remove="kendo.filter.remove|The text of the Remove button"
299
+ remove="Remove"
300
+
301
+ i18n-addFilter="kendo.filter.addFilter|The text of the Add Filter button"
302
+ addFilter="Add Filter"
303
+
304
+ i18n-addGroup="kendo.filter.addGroup|The text of the Add Group button"
305
+ addGroup="Add Group"
306
+
307
+ i18n-filterAndLogic="kendo.filter.filterAndLogic|The text of the And filter logic"
308
+ filterAndLogic="And"
309
+
310
+ i18n-filterOrLogic="kendo.filter.filterOrLogic|The text of the Or filter logic"
311
+ filterOrLogic="Or"
312
+
313
+ i18n-filterEqOperator="kendo.filter.filterEqOperator|The text of the equal filter operator"
314
+ filterEqOperator="Is equal to"
315
+
316
+ i18n-filterNotEqOperator="kendo.filter.filterNotEqOperator|The text of the not equal filter operator"
317
+ filterNotEqOperator="Is not equal to"
318
+
319
+ i18n-filterIsNullOperator="kendo.filter.filterIsNullOperator|The text of the is null filter operator"
320
+ filterIsNullOperator="Is null"
321
+
322
+ i18n-filterIsNotNullOperator="kendo.filter.filterIsNotNullOperator|The text of the is not null filter operator"
323
+ filterIsNotNullOperator="Is not null"
324
+
325
+ i18n-filterIsEmptyOperator="kendo.filter.filterIsEmptyOperator|The text of the is empty filter operator"
326
+ filterIsEmptyOperator="Is empty"
327
+
328
+ i18n-filterIsNotEmptyOperator="kendo.filter.filterIsNotEmptyOperator|The text of the is not empty filter operator"
329
+ filterIsNotEmptyOperator="Is not empty"
330
+
331
+ i18n-filterStartsWithOperator="kendo.filter.filterStartsWithOperator|The text of the starts with filter operator"
332
+ filterStartsWithOperator="Starts with"
333
+
334
+ i18n-filterContainsOperator="kendo.filter.filterContainsOperator|The text of the contains filter operator"
335
+ filterContainsOperator="Contains"
336
+
337
+ i18n-filterNotContainsOperator="kendo.filter.filterNotContainsOperator|The text of the does not contain filter operator"
338
+ filterNotContainsOperator="Does not contain"
339
+
340
+ i18n-filterEndsWithOperator="kendo.filter.filterEndsWithOperator|The text of the ends with filter operator"
341
+ filterEndsWithOperator="Ends with"
342
+
343
+ i18n-filterGteOperator="kendo.filter.filterGteOperator|The text of the greater than or equal filter operator"
344
+ filterGteOperator="Is greater than or equal to"
345
+
346
+ i18n-filterGtOperator="kendo.filter.filterGtOperator|The text of the greater than filter operator"
347
+ filterGtOperator="Is greater than"
348
+
349
+ i18n-filterLteOperator="kendo.filter.filterLteOperator|The text of the less than or equal filter operator"
350
+ filterLteOperator="Is less than or equal to"
351
+
352
+ i18n-filterLtOperator="kendo.filter.filterLtOperator|The text of the less than filter operator"
353
+ filterLtOperator="Is less than"
354
+
355
+ i18n-filterIsTrue="kendo.filter.filterIsTrue|The text of the IsTrue boolean filter option"
356
+ filterIsTrue="Is True"
357
+
358
+ i18n-filterIsFalse="kendo.filter.filterIsFalse|The text of the IsFalse boolean filter option"
359
+ filterIsFalse="Is False"
360
+
361
+ i18n-filterBooleanAll="kendo.filter.filterBooleanAll|The text of the (All) boolean filter option"
362
+ filterBooleanAll="(All)"
363
+
364
+ i18n-filterAfterOrEqualOperator="kendo.filter.filterAfterOrEqualOperator|The text of the after or equal date filter operator"
365
+ filterAfterOrEqualOperator="Is after or equal to"
366
+
367
+ i18n-filterAfterOperator="kendo.filter.filterAfterOperator|The text of the after date filter operator"
368
+ filterAfterOperator="Is after"
369
+
370
+ i18n-filterBeforeOperator="kendo.filter.filterBeforeOperator|The text of the before date filter operator"
371
+ filterBeforeOperator="Is before"
372
+
373
+ i18n-filterBeforeOrEqualOperator="kendo.filter.filterBeforeOrEqualOperator|The text of the before or equal date filter operator"
374
+ filterBeforeOrEqualOperator="Is before or equal to"
375
+
376
+ i18n-filterFieldAriaLabel="kendo.filter.filterFieldAriaLabel|The text of the filter field aria label"
377
+ filterFieldAriaLabel="field"
378
+
379
+ i18n-filterOperatorAriaLabel="kendo.filter.filterOperatorAriaLabel|The text of the filter operator aria label"
380
+ filterOperatorAriaLabel="operator"
381
+
382
+ i18n-filterValueAriaLabel="kendo.filter.filterValueAriaLabel|The text of the filter value aria label"
383
+ filterValueAriaLabel="value"
384
+
385
+ i18n-filterAriaLabel="kendo.filter.filterAriaLabel|The text of the filter row aria label"
386
+ filterAriaLabel="filter"
387
+
388
+ i18n-filterToolbarAriaLabel="kendo.filter.filterToolbarAriaLabel|The text of the filter toolbar aria label"
389
+ filterToolbarAriaLabel="filter settings"
390
+ >
391
+ </ng-container>
392
+ <div class="k-widget k-filter" [attr.dir]="direction">
393
+ <ul class='k-filter-container'>
394
+ <li class='k-filter-group-main'>
395
+ <kendo-filter-group
396
+ [currentItem]="getCurrentFilter()"
397
+ (valueChange)="onValueChange()"
398
+ >
399
+ </kendo-filter-group>
400
+ </li>
401
+ </ul>
402
+ </div>
403
+ `,
404
+ providers: [FilterService]
405
+ }]
406
+ }], ctorParameters: function () { return [{ type: i1.FilterService }, { type: i2.LocalizationService }, { type: i0.ChangeDetectorRef }]; }, propDecorators: { direction: [{
407
+ type: HostBinding,
408
+ args: ['attr.dir']
409
+ }], filters: [{
410
+ type: Input
411
+ }], value: [{
412
+ type: Input
413
+ }], valueChange: [{
414
+ type: Output
415
+ }] } });