@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,27 @@
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 { EventEmitter } from '@angular/core';
6
+ import { LocalizationService } from '@progress/kendo-angular-l10n';
7
+ import { FilterDescriptor } from '@progress/kendo-data-query';
8
+ import { FilterService } from './filter.service';
9
+ import * as i0 from "@angular/core";
10
+ /**
11
+ * @hidden
12
+ */
13
+ export declare class FilterExpressionOperatorsComponent {
14
+ private filterService;
15
+ private localization;
16
+ currentItem: FilterDescriptor;
17
+ valueChange: EventEmitter<void>;
18
+ operators: {
19
+ text: string;
20
+ value: string;
21
+ }[];
22
+ constructor(filterService: FilterService, localization: LocalizationService);
23
+ messageFor(key: string): string;
24
+ operatorValueChange(value: string): void;
25
+ static ɵfac: i0.ɵɵFactoryDeclaration<FilterExpressionOperatorsComponent, never>;
26
+ static ɵcmp: i0.ɵɵComponentDeclaration<FilterExpressionOperatorsComponent, "kendo-filter-expression-operators", never, { "currentItem": "currentItem"; "operators": "operators"; }, { "valueChange": "valueChange"; }, never, never>;
27
+ }
@@ -0,0 +1,48 @@
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 { ChangeDetectorRef, EventEmitter, OnDestroy, OnInit } from '@angular/core';
6
+ import { LocalizationService } from '@progress/kendo-angular-l10n';
7
+ import { CompositeFilterDescriptor } from '@progress/kendo-data-query';
8
+ import { FilterDescriptor } from '@progress/kendo-data-query';
9
+ import { FilterService } from './filter.service';
10
+ import { FilterEditor, FilterExpression, FilterOperator } from './model/filter-expression';
11
+ import * as i0 from "@angular/core";
12
+ /**
13
+ * @hidden
14
+ */
15
+ export declare class FilterExpressionComponent implements OnInit, OnDestroy {
16
+ private filterService;
17
+ protected localization: LocalizationService;
18
+ private cdr;
19
+ static ngAcceptInputType_currentItem: FilterDescriptor | CompositeFilterDescriptor;
20
+ index: number;
21
+ currentItem: FilterDescriptor;
22
+ valueChange: EventEmitter<void>;
23
+ operators: any[];
24
+ filters: FilterExpression[];
25
+ isBoolean: boolean;
26
+ isEditorDisabled: boolean;
27
+ editorType: FilterEditor;
28
+ private localizationSubscription;
29
+ constructor(filterService: FilterService, localization: LocalizationService, cdr: ChangeDetectorRef);
30
+ ngOnInit(): void;
31
+ ngOnDestroy(): void;
32
+ normalizeOperators(filterEditor: FilterEditor, operators: FilterOperator[]): {
33
+ text: string;
34
+ value: string;
35
+ }[];
36
+ messageFor(key: string): string;
37
+ getFilterExpressionByField(name: string): FilterExpression | null;
38
+ filterValueChange(value: string): void;
39
+ protected getDefaultOperators(operatorsType: FilterEditor): {
40
+ text: string;
41
+ value: string;
42
+ }[];
43
+ getEditorType(): FilterEditor;
44
+ removeFilterExpression(): void;
45
+ private setOperators;
46
+ static ɵfac: i0.ɵɵFactoryDeclaration<FilterExpressionComponent, never>;
47
+ static ɵcmp: i0.ɵɵComponentDeclaration<FilterExpressionComponent, "kendo-filter-expression", never, { "index": "index"; "currentItem": "currentItem"; }, { "valueChange": "valueChange"; }, never, never>;
48
+ }
@@ -0,0 +1,41 @@
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 { ChangeDetectorRef, EventEmitter, OnDestroy, OnInit } from '@angular/core';
6
+ import { LocalizationService } from '@progress/kendo-angular-l10n';
7
+ import { FilterDescriptor } from '@progress/kendo-data-query';
8
+ import { CompositeFilterDescriptor } from '@progress/kendo-data-query';
9
+ import { FilterService } from './filter.service';
10
+ import * as i0 from "@angular/core";
11
+ /**
12
+ * @hidden
13
+ */
14
+ export declare class FilterGroupComponent implements OnInit, OnDestroy {
15
+ private filterService;
16
+ localization: LocalizationService;
17
+ private cdr;
18
+ static ngAcceptInputType_currentItem: FilterDescriptor | CompositeFilterDescriptor;
19
+ index: number;
20
+ currentItem: CompositeFilterDescriptor;
21
+ valueChange: EventEmitter<void>;
22
+ operators: {
23
+ text: string;
24
+ value: 'and' | 'or';
25
+ }[];
26
+ private localizationSubscription;
27
+ constructor(filterService: FilterService, localization: LocalizationService, cdr: ChangeDetectorRef);
28
+ ngOnInit(): void;
29
+ ngOnDestroy(): void;
30
+ getLogicOperators(): {
31
+ text: string;
32
+ value: 'and' | 'or';
33
+ }[];
34
+ messageFor(key: string): string;
35
+ selectedChange(logicOperator: 'or' | 'and'): void;
36
+ addFilterExpression(): void;
37
+ addFilterGroup(): void;
38
+ removeFilterGroup(): void;
39
+ static ɵfac: i0.ɵɵFactoryDeclaration<FilterGroupComponent, never>;
40
+ static ɵcmp: i0.ɵɵComponentDeclaration<FilterGroupComponent, "kendo-filter-group", never, { "index": "index"; "currentItem": "currentItem"; }, { "valueChange": "valueChange"; }, never, never>;
41
+ }
@@ -0,0 +1,82 @@
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 { OnInit, EventEmitter } from '@angular/core';
6
+ import { LocalizationService } from '@progress/kendo-angular-l10n';
7
+ import { FilterService } from './filter.service';
8
+ import { CompositeFilterDescriptor } from '@progress/kendo-data-query';
9
+ import { FilterExpression } from './model/filter-expression';
10
+ import { Direction } from './util';
11
+ import { ChangeDetectorRef } from '@angular/core';
12
+ import { OnDestroy } from '@angular/core';
13
+ import * as i0 from "@angular/core";
14
+ /**
15
+ * Represents the [Kendo UI Filter component for Angular]({% slug overview_filter %}).
16
+ * The Filter component can be used to apply any user defined filter criteria.
17
+ * @example
18
+ * ```
19
+ * @Component({
20
+ * selector: 'my-app',
21
+ * template: `
22
+ * <kendo-filter [filters]="filters" (valueChange)="onValueChange($event)"></kendo-filter>
23
+ * `
24
+ * })
25
+ * export class AppComponent {
26
+ *
27
+ * public filters: FilterExpression[] = [
28
+ * {
29
+ * name: 'country',
30
+ * label: 'Country',
31
+ * filter: 'string',
32
+ * operators: ['eq', 'neq'],
33
+ * },
34
+ * {
35
+ * name: 'budget',
36
+ * filter: 'number'
37
+ * }
38
+ * ];
39
+ *
40
+ * onValueChange(e: CompositeFilterDescriptor){
41
+ * console.log(e)
42
+ * }
43
+ * }
44
+ * ```
45
+ */
46
+ export declare class FilterComponent implements OnInit, OnDestroy {
47
+ private filterService;
48
+ private localization;
49
+ private cdr;
50
+ direction: Direction;
51
+ /**
52
+ * Specifies the available user-defined filters. At least one filter should be provided.
53
+ */
54
+ set filters(_filters: FilterExpression[]);
55
+ get filters(): FilterExpression[];
56
+ /**
57
+ * Sets the initial `value` of the Filter component.
58
+ */
59
+ set value(value: CompositeFilterDescriptor);
60
+ get value(): CompositeFilterDescriptor;
61
+ /**
62
+ * Fires every time the Filter component value is updated.
63
+ * That is each time a Filter Group or Filter Expression is added, removed, or updated.
64
+ */
65
+ valueChange: EventEmitter<CompositeFilterDescriptor>;
66
+ private localizationSubscription;
67
+ constructor(filterService: FilterService, localization: LocalizationService, cdr: ChangeDetectorRef);
68
+ ngOnInit(): void;
69
+ ngOnDestroy(): void;
70
+ /**
71
+ * @hidden
72
+ */
73
+ getCurrentFilter(): CompositeFilterDescriptor;
74
+ /**
75
+ * @hidden
76
+ */
77
+ onValueChange(): void;
78
+ private normalizeFilter;
79
+ private normalizeValue;
80
+ static ɵfac: i0.ɵɵFactoryDeclaration<FilterComponent, never>;
81
+ static ɵcmp: i0.ɵɵComponentDeclaration<FilterComponent, "kendo-filter", never, { "filters": "filters"; "value": "value"; }, { "valueChange": "valueChange"; }, never, never>;
82
+ }
@@ -0,0 +1,53 @@
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 * as i0 from "@angular/core";
6
+ import * as i1 from "./filter.component";
7
+ import * as i2 from "./editors/numeric-editor.component";
8
+ import * as i3 from "./editors/text-editor.component";
9
+ import * as i4 from "./filter-expression.component";
10
+ import * as i5 from "./filter-group.component";
11
+ import * as i6 from "./filter-expression-operators.component";
12
+ import * as i7 from "./editors/boolean-editor.component";
13
+ import * as i8 from "./editors/date-editor.component";
14
+ import * as i9 from "./localization/localized-messages.directive";
15
+ import * as i10 from "./localization/custom-messages.component";
16
+ import * as i11 from "./aria-label.directive";
17
+ import * as i12 from "./shared.module";
18
+ /**
19
+ * Represents the [NgModule]({{ site.data.urls.angular['ngmoduleapi'] }})
20
+ * definition for the Filter component.
21
+ *
22
+ * @example
23
+ *
24
+ * ```
25
+ * // Import the Filter module
26
+ * import { FilterModule } from '@progress/kendo-angular-filter';
27
+ *
28
+ * // The browser platform with a compiler
29
+ * import { platformBrowserDynamic } from '@angular/platform-browser-dynamic';
30
+ *
31
+ * import { NgModule } from '@angular/core';
32
+ *
33
+ * // Import the app component
34
+ * import { AppComponent } from './app.component';
35
+ *
36
+ * // Define the app module
37
+ * _@NgModule({
38
+ * declarations: [AppComponent], // declare app component
39
+ * imports: [BrowserModule, FilterModule], // import Filter module
40
+ * bootstrap: [AppComponent]
41
+ * })
42
+ * export class AppModule { }
43
+ *
44
+ * // Compile and launch the module
45
+ * platformBrowserDynamic().bootstrapModule(AppModule);
46
+ *
47
+ * ```
48
+ */
49
+ export declare class FilterModule {
50
+ static ɵfac: i0.ɵɵFactoryDeclaration<FilterModule, never>;
51
+ static ɵmod: i0.ɵɵNgModuleDeclaration<FilterModule, [typeof i1.FilterComponent, typeof i2.FilterNumericEditorComponent, typeof i3.FilterTextEditorComponent, typeof i4.FilterExpressionComponent, typeof i5.FilterGroupComponent, typeof i6.FilterExpressionOperatorsComponent, typeof i7.FilterBooleanEditorComponent, typeof i8.FilterDateEditorComponent, typeof i9.LocalizedMessagesDirective, typeof i10.CustomMessagesComponent, typeof i11.AriaLabelValueDirective], [typeof i12.SharedModule], [typeof i1.FilterComponent, typeof i2.FilterNumericEditorComponent, typeof i3.FilterTextEditorComponent, typeof i4.FilterExpressionComponent, typeof i5.FilterGroupComponent, typeof i6.FilterExpressionOperatorsComponent, typeof i7.FilterBooleanEditorComponent, typeof i8.FilterDateEditorComponent, typeof i9.LocalizedMessagesDirective, typeof i10.CustomMessagesComponent, typeof i11.AriaLabelValueDirective]>;
52
+ static ɵinj: i0.ɵɵInjectorDeclaration<FilterModule>;
53
+ }
@@ -0,0 +1,20 @@
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 { CompositeFilterDescriptor, FilterDescriptor } from '@progress/kendo-data-query';
6
+ import { FilterExpression } from './model/filter-expression';
7
+ import * as i0 from "@angular/core";
8
+ /**
9
+ * @hidden
10
+ */
11
+ export declare class FilterService {
12
+ value: CompositeFilterDescriptor;
13
+ filters: FilterExpression[];
14
+ isEditorDisabled: boolean;
15
+ addFilterGroup(item: CompositeFilterDescriptor): void;
16
+ addFilterExpression(item: CompositeFilterDescriptor): void;
17
+ remove(item: CompositeFilterDescriptor | FilterDescriptor, positionIndex: number, parentItem?: CompositeFilterDescriptor): void;
18
+ static ɵfac: i0.ɵɵFactoryDeclaration<FilterService, never>;
19
+ static ɵprov: i0.ɵɵInjectableDeclaration<FilterService>;
20
+ }
@@ -0,0 +1,9 @@
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
+ /**
6
+ * Generated bundle index. Do not edit.
7
+ */
8
+ /// <amd-module name="@progress/kendo-angular-filter" />
9
+ export * from './main';
@@ -0,0 +1,18 @@
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 { LocalizationService } from '@progress/kendo-angular-l10n';
6
+ import { Messages } from './messages';
7
+ import * as i0 from "@angular/core";
8
+ /**
9
+ * Custom component messages override default component messages
10
+ * ([see example]({% slug globalization_filter %}#toc-localization)).
11
+ */
12
+ export declare class CustomMessagesComponent extends Messages {
13
+ protected service: LocalizationService;
14
+ constructor(service: LocalizationService);
15
+ protected get override(): boolean;
16
+ static ɵfac: i0.ɵɵFactoryDeclaration<CustomMessagesComponent, never>;
17
+ static ɵcmp: i0.ɵɵComponentDeclaration<CustomMessagesComponent, "kendo-filter-messages", never, {}, {}, never, never>;
18
+ }
@@ -0,0 +1,16 @@
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 { LocalizationService } from '@progress/kendo-angular-l10n';
6
+ import { Messages } from './messages';
7
+ import * as i0 from "@angular/core";
8
+ /**
9
+ * @hidden
10
+ */
11
+ export declare class LocalizedMessagesDirective extends Messages {
12
+ protected service: LocalizationService;
13
+ constructor(service: LocalizationService);
14
+ static ɵfac: i0.ɵɵFactoryDeclaration<LocalizedMessagesDirective, never>;
15
+ static ɵdir: i0.ɵɵDirectiveDeclaration<LocalizedMessagesDirective, "[kendoFilterLocalizedMessages]", never, {}, {}, never>;
16
+ }
@@ -0,0 +1,161 @@
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 { ComponentMessages } from '@progress/kendo-angular-l10n';
6
+ import * as i0 from "@angular/core";
7
+ /**
8
+ * @hidden
9
+ */
10
+ export declare class Messages extends ComponentMessages {
11
+ /**
12
+ * The text of the Filter Expression `operators` drop down title.
13
+ */
14
+ filterExpressionOperators: string;
15
+ /**
16
+ * The text of the Filter Expression 'fields' drop down title.
17
+ */
18
+ filterExpressionFilters: string;
19
+ /**
20
+ * The text of the `Remove` button.
21
+ */
22
+ remove: string;
23
+ /**
24
+ * The text of the Filter Group `Add Group` button.
25
+ */
26
+ addGroup: string;
27
+ /**
28
+ * The text of the Filter Group `Add Filter` button.
29
+ */
30
+ addFilter: string;
31
+ /**
32
+ * The text of the `And` Filter Group logic.
33
+ */
34
+ filterAndLogic: string;
35
+ /**
36
+ * The text of the `Or` Filter Group logic.
37
+ */
38
+ filterOrLogic: string;
39
+ /**
40
+ * The text of the `Equal` (**Is equal to**) Filter Expression operator.
41
+ */
42
+ filterEqOperator: string;
43
+ /**
44
+ * The text of the `NotEqual` (**Is not equal to**) Filter Expression operator.
45
+ */
46
+ filterNotEqOperator: string;
47
+ /**
48
+ * The text of the `IsNull` (**Is null**) Filter Expression operator.
49
+ */
50
+ filterIsNullOperator: string;
51
+ /**
52
+ * The text of the `IsNotNull` (**Is not null**) Filter Expression operator.
53
+ */
54
+ filterIsNotNullOperator: string;
55
+ /**
56
+ * The text of the `IsEmpty` (**Is empty**) Filter Expression operator.
57
+ */
58
+ filterIsEmptyOperator: string;
59
+ /**
60
+ * The text of the `IsNotEmpty` (**Is not empty**) Filter Expression operator.
61
+ */
62
+ filterIsNotEmptyOperator: string;
63
+ /**
64
+ * The text of the `StartsWith` (**Starts with**) Filter Expression operator.
65
+ */
66
+ filterStartsWithOperator: string;
67
+ /**
68
+ * The text of the `Contains` (**Contains**) Filter Expression operator.
69
+ */
70
+ filterContainsOperator: string;
71
+ /**
72
+ * The text of the `DoesNotContain` (**Does not contain**) Filter Expression operator.
73
+ */
74
+ filterNotContainsOperator: string;
75
+ /**
76
+ * The text of the `EndsWith` (**Ends with**) string Filter Expression operator.
77
+ */
78
+ filterEndsWithOperator: string;
79
+ /**
80
+ * The text of the `GreaterOrEqualTo` (**Is greater than or equal to**) numeric Filter Expression operator.
81
+ */
82
+ filterGteOperator: string;
83
+ /**
84
+ * The text of the `Greater` (**Is greater than**) numeric Filter Expression operator.
85
+ */
86
+ filterGtOperator: string;
87
+ /**
88
+ * The text of the `LessOrEqualTo` (**Is less than or equal to**) numeric Filter Expression operator.
89
+ */
90
+ filterLteOperator: string;
91
+ /**
92
+ * The text of the `Less` (**Is less than**) numeric Filter Expression operator.
93
+ */
94
+ filterLtOperator: string;
95
+ /**
96
+ * The text of the `IsTrue` boolean Filter Expression option.
97
+ */
98
+ filterIsTrue: string;
99
+ /**
100
+ * The text of the `IsFalse` boolean Filter Expression option.
101
+ */
102
+ filterIsFalse: string;
103
+ /**
104
+ * The text of the `(All)` boolean Filter Expression option.
105
+ */
106
+ filterBooleanAll: string;
107
+ /**
108
+ * The text of the `AfterOrEqualTo` (**Is after or equal to**) date Filter Expression operator.
109
+ */
110
+ filterAfterOrEqualOperator: string;
111
+ /**
112
+ * The text of the `After` (**Is after**) date Filter Expression operator.
113
+ */
114
+ filterAfterOperator: string;
115
+ /**
116
+ * The text of the `Before` (**Is before**) date Filter Expression operator.
117
+ */
118
+ filterBeforeOperator: string;
119
+ /**
120
+ * The text of the `BeforeOrEqualTo` (**Is before or equal to**) date Filter Expression operator.
121
+ */
122
+ filterBeforeOrEqualOperator: string;
123
+ /**
124
+ * The title of the Decrement button of the Filter Expression numeric editor.
125
+ */
126
+ editorNumericDecrement: string;
127
+ /**
128
+ * The title of the Increment button of the Filter Expression numeric editor.
129
+ */
130
+ editorNumericIncrement: string;
131
+ /**
132
+ * The text of the Today button of the Filter Expression date editor.
133
+ */
134
+ editorDateTodayText: string;
135
+ /**
136
+ * The title of the Toggle button of the Filter Expression date editor.
137
+ */
138
+ editorDateToggleText: string;
139
+ /**
140
+ * The text of the filter field aria label.
141
+ */
142
+ filterFieldAriaLabel: string;
143
+ /**
144
+ * The text of the filter operator aria label.
145
+ */
146
+ filterOperatorAriaLabel: string;
147
+ /**
148
+ * The text of the filter value aria label.
149
+ */
150
+ filterValueAriaLabel: string;
151
+ /**
152
+ * The text of the filter row aria label.
153
+ */
154
+ filterAriaLabel: string;
155
+ /**
156
+ * The text of the filter toolbar aria label.
157
+ */
158
+ filterToolbarAriaLabel: string;
159
+ static ɵfac: i0.ɵɵFactoryDeclaration<Messages, never>;
160
+ static ɵdir: i0.ɵɵDirectiveDeclaration<Messages, "[kendoFilterMessages]", never, { "filterExpressionOperators": "filterExpressionOperators"; "filterExpressionFilters": "filterExpressionFilters"; "remove": "remove"; "addGroup": "addGroup"; "addFilter": "addFilter"; "filterAndLogic": "filterAndLogic"; "filterOrLogic": "filterOrLogic"; "filterEqOperator": "filterEqOperator"; "filterNotEqOperator": "filterNotEqOperator"; "filterIsNullOperator": "filterIsNullOperator"; "filterIsNotNullOperator": "filterIsNotNullOperator"; "filterIsEmptyOperator": "filterIsEmptyOperator"; "filterIsNotEmptyOperator": "filterIsNotEmptyOperator"; "filterStartsWithOperator": "filterStartsWithOperator"; "filterContainsOperator": "filterContainsOperator"; "filterNotContainsOperator": "filterNotContainsOperator"; "filterEndsWithOperator": "filterEndsWithOperator"; "filterGteOperator": "filterGteOperator"; "filterGtOperator": "filterGtOperator"; "filterLteOperator": "filterLteOperator"; "filterLtOperator": "filterLtOperator"; "filterIsTrue": "filterIsTrue"; "filterIsFalse": "filterIsFalse"; "filterBooleanAll": "filterBooleanAll"; "filterAfterOrEqualOperator": "filterAfterOrEqualOperator"; "filterAfterOperator": "filterAfterOperator"; "filterBeforeOperator": "filterBeforeOperator"; "filterBeforeOrEqualOperator": "filterBeforeOrEqualOperator"; "editorNumericDecrement": "editorNumericDecrement"; "editorNumericIncrement": "editorNumericIncrement"; "editorDateTodayText": "editorDateTodayText"; "editorDateToggleText": "editorDateToggleText"; "filterFieldAriaLabel": "filterFieldAriaLabel"; "filterOperatorAriaLabel": "filterOperatorAriaLabel"; "filterValueAriaLabel": "filterValueAriaLabel"; "filterAriaLabel": "filterAriaLabel"; "filterToolbarAriaLabel": "filterToolbarAriaLabel"; }, {}, never>;
161
+ }
package/main.d.ts ADDED
@@ -0,0 +1,17 @@
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
+ export { FilterComponent } from './filter.component';
6
+ export { FilterGroupComponent } from './filter-group.component';
7
+ export { FilterModule } from './filter.module';
8
+ export { FilterExpression } from './model/filter-expression';
9
+ export { AriaLabelValueDirective } from './aria-label.directive';
10
+ export { FilterBooleanEditorComponent } from './editors/boolean-editor.component';
11
+ export { FilterDateEditorComponent } from './editors/date-editor.component';
12
+ export { FilterNumericEditorComponent } from './editors/numeric-editor.component';
13
+ export { FilterTextEditorComponent } from './editors/text-editor.component';
14
+ export { FilterExpressionOperatorsComponent } from './filter-expression-operators.component';
15
+ export { FilterExpressionComponent } from './filter-expression.component';
16
+ export { CustomMessagesComponent } from './localization/custom-messages.component';
17
+ export { LocalizedMessagesDirective } from './localization/localized-messages.directive';
@@ -0,0 +1,60 @@
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
+ /**
6
+ * Represents the FilterOperator type.
7
+ */
8
+ export declare type FilterOperator = 'eq' | 'neq' | 'gt' | 'gte' | 'lt' | 'lte' | 'isnull' | 'isnotnull' | 'contains' | 'doesnotcontain' | 'startswith' | 'endswidth' | 'isempty' | 'isnotempty';
9
+ /**
10
+ * Represents the FilterEditor type.
11
+ */
12
+ export declare type FilterEditor = 'string' | 'number' | 'boolean' | 'date';
13
+ /**
14
+ * Represents the FilterExpression interface.
15
+ */
16
+ export interface FilterExpression {
17
+ /**
18
+ * Specifies the `field` that will be used by the user-defined filter.
19
+ */
20
+ field: string;
21
+ /**
22
+ * Specifies the `title` text that will be displayed by the user-defined filter.
23
+ * If the `title` isn't set, the value passed to `field` is used.
24
+ */
25
+ title?: string;
26
+ /**
27
+ * Specifies the user-defined filter `editor` type that will be used.
28
+ * The available options are 'string', 'number', 'boolean', and 'date'.
29
+ */
30
+ editor: FilterEditor;
31
+ /**
32
+ * Specifies the operators that will be available in the order of providing them.
33
+ * If no operators are provided, default operators are used for each filter type.
34
+ *
35
+ * The default string operators are:
36
+ * * `eq`&mdash; Is equal to
37
+ * * `neq`&mdash; Is not equal to
38
+ * * `isnull`&mdash; Is null
39
+ * * `isnotnull`&mdash; Is not null
40
+ * * `contains`&mdash; Contains
41
+ * * `doesnotcontain`&mdash; Does not contain
42
+ * * `startswith`&mdash; Starts with
43
+ * * `endswith`&mdash; Ends with
44
+ * * `isempty`&mdash; Is empty
45
+ * * `isnotempty`&mdash; Is not empty
46
+ *
47
+ * The default number and date operators are:
48
+ * * `eq`&mdash; Is equals to
49
+ * * `neq`&mdash; Is not equal to
50
+ * * `isnull`&mdash; Is null
51
+ * * `isnotnull`&mdash; Is not null
52
+ * * `gt`&mdash; Greater than
53
+ * * `gte`&mdash; Greater than or equal to
54
+ * * `lt`&mdash; Less than
55
+ * * `lte`&mdash; Less than or equal to
56
+ *
57
+ * The boolean operator is always set to `eq`
58
+ */
59
+ operators?: FilterOperator[];
60
+ }
@@ -0,0 +1,9 @@
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 { PackageMetadata } from '@progress/kendo-licensing';
6
+ /**
7
+ * @hidden
8
+ */
9
+ export declare const packageMetadata: PackageMetadata;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@progress/kendo-angular-filter",
3
- "version": "1.0.0-next.202203251456",
3
+ "version": "1.0.0-next.202204011458",
4
4
  "description": "Kendo UI Angular Filter",
5
5
  "license": "SEE LICENSE IN LICENSE.md",
6
6
  "author": "Progress",
@@ -19,12 +19,8 @@
19
19
  "@progress": {
20
20
  "friendlyName": "Filter"
21
21
  },
22
- "files": [
23
- "dist",
24
- "schematics"
25
- ],
26
22
  "dependencies": {
27
- "@progress/kendo-schematics": "^2.0.0",
23
+ "@progress/kendo-schematics": "^3.0.0",
28
24
  "tslib": "^2.3.1"
29
25
  },
30
26
  "peerDependencies": {
@@ -0,0 +1,19 @@
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 * as i0 from "@angular/core";
6
+ import * as i1 from "@angular/common";
7
+ import * as i2 from "@progress/kendo-angular-inputs";
8
+ import * as i3 from "@progress/kendo-angular-label";
9
+ import * as i4 from "@progress/kendo-angular-dropdowns";
10
+ import * as i5 from "@progress/kendo-angular-buttons";
11
+ import * as i6 from "@progress/kendo-angular-dateinputs";
12
+ /**
13
+ * @hidden
14
+ */
15
+ export declare class SharedModule {
16
+ static ɵfac: i0.ɵɵFactoryDeclaration<SharedModule, never>;
17
+ static ɵmod: i0.ɵɵNgModuleDeclaration<SharedModule, never, [typeof i1.CommonModule, typeof i2.InputsModule, typeof i3.LabelModule, typeof i4.DropDownsModule, typeof i5.ButtonsModule, typeof i6.DateInputsModule], [typeof i1.CommonModule, typeof i2.InputsModule, typeof i3.LabelModule, typeof i4.DropDownsModule, typeof i5.ButtonsModule, typeof i6.DateInputsModule]>;
18
+ static ɵinj: i0.ɵɵInjectorDeclaration<SharedModule>;
19
+ }