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

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 (90) hide show
  1. package/bundles/kendo-angular-filter.umd.js +5 -0
  2. package/package.json +41 -108
  3. package/schematics/ngAdd/index.js +5 -2
  4. package/schematics/ngAdd/index.js.map +1 -1
  5. package/dist/cdn/js/kendo-angular-filter.js +0 -20
  6. package/dist/cdn/main.js +0 -5
  7. package/dist/es/aria-label.directive.js +0 -30
  8. package/dist/es/editors/boolean-editor.component.js +0 -61
  9. package/dist/es/editors/date-editor.component.js +0 -45
  10. package/dist/es/editors/numeric-editor.component.js +0 -45
  11. package/dist/es/editors/text-editor.component.js +0 -45
  12. package/dist/es/filter-expression-operators.component.js +0 -48
  13. package/dist/es/filter-expression.component.js +0 -136
  14. package/dist/es/filter-group.component.js +0 -84
  15. package/dist/es/filter.component.js +0 -185
  16. package/dist/es/filter.module.js +0 -91
  17. package/dist/es/filter.service.js +0 -45
  18. package/dist/es/index.js +0 -21
  19. package/dist/es/localization/custom-messages.component.js +0 -44
  20. package/dist/es/localization/localized-messages.directive.js +0 -35
  21. package/dist/es/localization/messages.js +0 -166
  22. package/dist/es/main.js +0 -6
  23. package/dist/es/model/filter-expression.js +0 -7
  24. package/dist/es/package-metadata.js +0 -15
  25. package/dist/es/shared.module.js +0 -35
  26. package/dist/es/util.js +0 -136
  27. package/dist/es2015/aria-label.directive.d.ts +0 -15
  28. package/dist/es2015/aria-label.directive.js +0 -29
  29. package/dist/es2015/editors/boolean-editor.component.d.ts +0 -37
  30. package/dist/es2015/editors/boolean-editor.component.js +0 -72
  31. package/dist/es2015/editors/date-editor.component.d.ts +0 -20
  32. package/dist/es2015/editors/date-editor.component.js +0 -56
  33. package/dist/es2015/editors/numeric-editor.component.d.ts +0 -20
  34. package/dist/es2015/editors/numeric-editor.component.js +0 -56
  35. package/dist/es2015/editors/text-editor.component.d.ts +0 -20
  36. package/dist/es2015/editors/text-editor.component.js +0 -52
  37. package/dist/es2015/filter-expression-operators.component.d.ts +0 -24
  38. package/dist/es2015/filter-expression-operators.component.js +0 -59
  39. package/dist/es2015/filter-expression.component.d.ts +0 -43
  40. package/dist/es2015/filter-expression.component.js +0 -174
  41. package/dist/es2015/filter-group.component.d.ts +0 -36
  42. package/dist/es2015/filter-group.component.js +0 -145
  43. package/dist/es2015/filter.component.d.ts +0 -77
  44. package/dist/es2015/filter.component.js +0 -298
  45. package/dist/es2015/filter.module.d.ts +0 -37
  46. package/dist/es2015/filter.module.js +0 -88
  47. package/dist/es2015/filter.service.d.ts +0 -17
  48. package/dist/es2015/filter.service.js +0 -46
  49. package/dist/es2015/index.d.ts +0 -21
  50. package/dist/es2015/index.js +0 -21
  51. package/dist/es2015/index.metadata.json +0 -1
  52. package/dist/es2015/localization/custom-messages.component.d.ts +0 -15
  53. package/dist/es2015/localization/custom-messages.component.js +0 -36
  54. package/dist/es2015/localization/localized-messages.directive.d.ts +0 -13
  55. package/dist/es2015/localization/localized-messages.directive.js +0 -31
  56. package/dist/es2015/localization/messages.d.ts +0 -158
  57. package/dist/es2015/localization/messages.js +0 -160
  58. package/dist/es2015/main.d.ts +0 -7
  59. package/dist/es2015/main.js +0 -6
  60. package/dist/es2015/model/filter-expression.d.ts +0 -60
  61. package/dist/es2015/model/filter-expression.js +0 -7
  62. package/dist/es2015/package-metadata.d.ts +0 -9
  63. package/dist/es2015/package-metadata.js +0 -15
  64. package/dist/es2015/shared.module.d.ts +0 -9
  65. package/dist/es2015/shared.module.js +0 -32
  66. package/dist/es2015/util.d.ts +0 -147
  67. package/dist/es2015/util.js +0 -136
  68. package/dist/fesm2015/index.js +0 -1316
  69. package/dist/fesm5/index.js +0 -1076
  70. package/dist/npm/aria-label.directive.js +0 -32
  71. package/dist/npm/editors/boolean-editor.component.js +0 -63
  72. package/dist/npm/editors/date-editor.component.js +0 -47
  73. package/dist/npm/editors/numeric-editor.component.js +0 -47
  74. package/dist/npm/editors/text-editor.component.js +0 -47
  75. package/dist/npm/filter-expression-operators.component.js +0 -50
  76. package/dist/npm/filter-expression.component.js +0 -138
  77. package/dist/npm/filter-group.component.js +0 -86
  78. package/dist/npm/filter.component.js +0 -187
  79. package/dist/npm/filter.module.js +0 -93
  80. package/dist/npm/filter.service.js +0 -47
  81. package/dist/npm/index.js +0 -37
  82. package/dist/npm/localization/custom-messages.component.js +0 -46
  83. package/dist/npm/localization/localized-messages.directive.js +0 -37
  84. package/dist/npm/localization/messages.js +0 -168
  85. package/dist/npm/main.js +0 -10
  86. package/dist/npm/model/filter-expression.js +0 -9
  87. package/dist/npm/package-metadata.js +0 -17
  88. package/dist/npm/shared.module.js +0 -37
  89. package/dist/npm/util.js +0 -138
  90. package/dist/systemjs/kendo-angular-filter.js +0 -5
@@ -1,35 +0,0 @@
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 tslib_1 from "tslib";
6
- import { CommonModule } from '@angular/common';
7
- import { DropDownsModule } from '@progress/kendo-angular-dropdowns';
8
- import { InputsModule } from '@progress/kendo-angular-inputs';
9
- import { LabelModule } from '@progress/kendo-angular-label';
10
- import { NgModule } from '@angular/core';
11
- import { ButtonsModule } from '@progress/kendo-angular-buttons';
12
- import { DateInputsModule } from '@progress/kendo-angular-dateinputs';
13
- var importedModules = [
14
- CommonModule,
15
- InputsModule,
16
- LabelModule,
17
- DropDownsModule,
18
- ButtonsModule,
19
- DateInputsModule
20
- ];
21
- /**
22
- * @hidden
23
- */
24
- var SharedModule = /** @class */ (function () {
25
- function SharedModule() {
26
- }
27
- SharedModule = tslib_1.__decorate([
28
- NgModule({
29
- imports: importedModules.slice(),
30
- exports: importedModules.slice()
31
- })
32
- ], SharedModule);
33
- return SharedModule;
34
- }());
35
- export { SharedModule };
package/dist/es/util.js DELETED
@@ -1,136 +0,0 @@
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
- * @hidden
7
- */
8
- export var nullOperators = ["isnull", "isnotnull", "isempty", "isnotempty"];
9
- /**
10
- * @hidden
11
- */
12
- export var numericOperators = [
13
- { text: "Is equal to", value: "eq" },
14
- { text: "Not equal to", value: "neq" },
15
- { text: "Greater than or equal to", value: "gte" },
16
- { text: "Greater than", value: "gt" },
17
- { text: "Less than or equal to", value: "lte" },
18
- { text: "Less than", value: "lt" },
19
- { text: "Is null", value: "isnull" },
20
- { text: "Is not null", value: "isnotnull" }
21
- ];
22
- /**
23
- * @hidden
24
- */
25
- export var stringOperators = [
26
- { text: "Is equal to", value: "eq" },
27
- { text: "Not equal to", value: "neq" },
28
- { text: "Contains", value: "contains" },
29
- { text: "Does not contain", value: "doesnotcontain" },
30
- { text: "Starts with", value: "startswith" },
31
- { text: "Ends with", value: "endswith" },
32
- { text: "Is null", value: "isnull" },
33
- { text: "Is not null", value: "isnotnull" },
34
- { text: "Is empty", value: "isempty" },
35
- { text: "Is not empty", value: "isnotempty" }
36
- ];
37
- /**
38
- * @hidden
39
- */
40
- export var booleanOperators = [
41
- { text: "Is equal to", value: "eq" },
42
- { text: "Is not equal to", value: "neq" }
43
- ];
44
- /**
45
- * @hidden
46
- */
47
- export var dateOperators = [
48
- { text: "Is equal to", value: "eq" },
49
- { text: "Not equal to", value: "neq" },
50
- { text: "Greater than or equal to", value: "gte" },
51
- { text: "Greater than", value: "gt" },
52
- { text: "Less than or equal to", value: "lte" },
53
- { text: "Less than", value: "lt" },
54
- { text: "Is null", value: "isnull" },
55
- { text: "Is not null", value: "isnotnull" }
56
- ];
57
- /**
58
- * @hidden
59
- */
60
- export var isArray = function (value) { return Array.isArray(value); };
61
- /**
62
- * @hidden
63
- */
64
- export var getKeyByValue = function (object, value) {
65
- return Object.keys(object).find(function (key) { return object[key] === value; });
66
- };
67
- /**
68
- * @hidden
69
- */
70
- export var defaultStringOperators = {
71
- "filterEqOperator": "eq",
72
- "filterNotEqOperator": "neq",
73
- "filterContainsOperator": "contains",
74
- "filterNotContainsOperator": "doesnotcontain",
75
- "filterStartsWithOperator": "startswith",
76
- "filterEndsWithOperator": "endswith",
77
- "filterIsNullOperator": "isnull",
78
- "filterIsNotNullOperator": "isnotnull",
79
- "filterIsEmptyOperator": "isempty",
80
- "filterIsNotEmptyOperator": "isnotempty"
81
- };
82
- /**
83
- * @hidden
84
- */
85
- export var defaultNumericOperators = {
86
- "filterEqOperator": "eq",
87
- "filterNotEqOperator": "neq",
88
- "filterGteOperator": "gte",
89
- "filterGtOperator": "gt",
90
- "filterLteOperator": "lte",
91
- "filterLtOperator": "lt",
92
- "filterIsNullOperator": "isnull",
93
- "filterIsNotNullOperator": "isnotnull"
94
- };
95
- /**
96
- * @hidden
97
- */
98
- export var defaultDateOperators = {
99
- "filterEqOperator": "eq",
100
- "filterNotEqOperator": "neq",
101
- "filterAfterOrEqualOperator": "gte",
102
- "filterAfterOperator": "gt",
103
- "filterBeforeOrEqualOperator": "lte",
104
- "filterBeforeOperator": "lt",
105
- "filterIsNullOperator": "isnull",
106
- "filterIsNotNullOperator": "isnotnull"
107
- };
108
- /**
109
- * @hidden
110
- */
111
- export var defaultOperators = {
112
- string: defaultStringOperators,
113
- number: defaultNumericOperators,
114
- date: defaultDateOperators
115
- };
116
- /**
117
- * @hidden
118
- */
119
- export var logicOperators = {
120
- "filterAndLogic": 'and',
121
- "filterOrLogic": 'or'
122
- };
123
- /**
124
- * @hidden
125
- */
126
- export var isFilterEditor = function (editorType) {
127
- var supportedEditorTypes = ['string', 'number', 'boolean', 'date'];
128
- return supportedEditorTypes.indexOf(editorType) >= 0;
129
- };
130
- /**
131
- * @hidden
132
- */
133
- export var localizeOperators = function (operators) { return function (localization) { return Object.keys(operators).map(function (key) { return ({
134
- text: localization.get(key),
135
- value: operators[key]
136
- }); }); }; };
@@ -1,15 +0,0 @@
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 { ElementRef, Renderer2 } from '@angular/core';
6
- /**
7
- * @hidden
8
- */
9
- export declare class AriaLabelValueDirective {
10
- private hostElement;
11
- private renderer;
12
- ariaLabel: string;
13
- constructor(hostElement: ElementRef, renderer: Renderer2);
14
- ngOnChanges(): void;
15
- }
@@ -1,29 +0,0 @@
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 tslib_1 from "tslib";
6
- import { Directive, ElementRef, Input, Renderer2 } from '@angular/core';
7
- /**
8
- * @hidden
9
- */
10
- let AriaLabelValueDirective = class AriaLabelValueDirective {
11
- constructor(hostElement, renderer) {
12
- this.hostElement = hostElement;
13
- this.renderer = renderer;
14
- }
15
- ngOnChanges() {
16
- const target = this.hostElement.nativeElement.querySelector('input') || this.hostElement.nativeElement;
17
- this.renderer.setAttribute(target, 'aria-label', this.ariaLabel);
18
- }
19
- };
20
- tslib_1.__decorate([
21
- Input('kendoAriaLabelValue'),
22
- tslib_1.__metadata("design:type", String)
23
- ], AriaLabelValueDirective.prototype, "ariaLabel", void 0);
24
- AriaLabelValueDirective = tslib_1.__decorate([
25
- Directive({ selector: '[kendoAriaLabelValue]' }),
26
- tslib_1.__metadata("design:paramtypes", [ElementRef,
27
- Renderer2])
28
- ], AriaLabelValueDirective);
29
- export { AriaLabelValueDirective };
@@ -1,37 +0,0 @@
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 } from '@angular/core';
6
- import { LocalizationService } from '@progress/kendo-angular-l10n';
7
- import { FilterDescriptor } from '@progress/kendo-data-query';
8
- /**
9
- * @hidden
10
- */
11
- export declare class FilterBooleanEditorComponent {
12
- private localization;
13
- private cdr;
14
- currentItem: FilterDescriptor;
15
- valueChange: EventEmitter<void>;
16
- items: {
17
- text: string;
18
- value: boolean;
19
- }[];
20
- defaultItem: {
21
- text: string;
22
- value: boolean;
23
- };
24
- private localizationSubscription;
25
- constructor(localization: LocalizationService, cdr: ChangeDetectorRef);
26
- ngOnInit(): void;
27
- getDefaultItem(): {
28
- text: string;
29
- value: boolean;
30
- };
31
- getValueItems(): {
32
- text: string;
33
- value: boolean;
34
- }[];
35
- ngOnDestroy(): void;
36
- messageFor(key: string): string;
37
- }
@@ -1,72 +0,0 @@
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 tslib_1 from "tslib";
6
- import { ChangeDetectorRef, Component, EventEmitter, Input, Output } from '@angular/core';
7
- import { LocalizationService } from '@progress/kendo-angular-l10n';
8
- /**
9
- * @hidden
10
- */
11
- let FilterBooleanEditorComponent = class FilterBooleanEditorComponent {
12
- constructor(localization, cdr) {
13
- this.localization = localization;
14
- this.cdr = cdr;
15
- this.valueChange = new EventEmitter();
16
- this.items = this.getValueItems();
17
- this.defaultItem = this.getDefaultItem();
18
- }
19
- ngOnInit() {
20
- this.localizationSubscription = this.localization.changes.subscribe(() => {
21
- this.defaultItem = this.getDefaultItem();
22
- this.items = this.getValueItems();
23
- this.cdr.detectChanges();
24
- });
25
- }
26
- getDefaultItem() {
27
- return { text: this.localization.get("filterBooleanAll"), value: null };
28
- }
29
- getValueItems() {
30
- return [
31
- { text: this.localization.get("filterIsTrue"), value: true },
32
- { text: this.localization.get("filterIsFalse"), value: false }
33
- ];
34
- }
35
- ngOnDestroy() {
36
- if (this.localizationSubscription) {
37
- this.localizationSubscription.unsubscribe();
38
- }
39
- }
40
- messageFor(key) {
41
- return this.localization.get(key);
42
- }
43
- };
44
- tslib_1.__decorate([
45
- Input(),
46
- tslib_1.__metadata("design:type", Object)
47
- ], FilterBooleanEditorComponent.prototype, "currentItem", void 0);
48
- tslib_1.__decorate([
49
- Output(),
50
- tslib_1.__metadata("design:type", EventEmitter)
51
- ], FilterBooleanEditorComponent.prototype, "valueChange", void 0);
52
- FilterBooleanEditorComponent = tslib_1.__decorate([
53
- Component({
54
- selector: 'kendo-filter-boolean-editor',
55
- template: `
56
- <kendo-dropdownlist
57
- [kendoAriaLabelValue]="messageFor('filterValueAriaLabel')"
58
- class="k-filter-toolbar-item k-filter-value"
59
- [(value)]="currentItem.value"
60
- (valueChange)="valueChange.emit()"
61
- [data]="items"
62
- [defaultItem]="defaultItem"
63
- [valuePrimitive]="true"
64
- textField="text"
65
- valueField="value"
66
- >
67
- </kendo-dropdownlist>
68
- `
69
- }),
70
- tslib_1.__metadata("design:paramtypes", [LocalizationService, ChangeDetectorRef])
71
- ], FilterBooleanEditorComponent);
72
- export { FilterBooleanEditorComponent };
@@ -1,20 +0,0 @@
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
- /**
10
- * @hidden
11
- */
12
- export declare class FilterDateEditorComponent {
13
- private localization;
14
- private filterService;
15
- currentItem: FilterDescriptor;
16
- valueChange: EventEmitter<void>;
17
- constructor(localization: LocalizationService, filterService: FilterService);
18
- messageFor(key: string): string;
19
- isDisabled(): boolean;
20
- }
@@ -1,56 +0,0 @@
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 tslib_1 from "tslib";
6
- import { Component, EventEmitter, Input, Output } from '@angular/core';
7
- import { LocalizationService } from '@progress/kendo-angular-l10n';
8
- import { FilterService } from '../filter.service';
9
- /**
10
- * @hidden
11
- */
12
- let FilterDateEditorComponent = class FilterDateEditorComponent {
13
- constructor(localization, filterService) {
14
- this.localization = localization;
15
- this.filterService = filterService;
16
- this.valueChange = new EventEmitter();
17
- }
18
- messageFor(key) {
19
- return this.localization.get(key);
20
- }
21
- isDisabled() {
22
- const isDisabled = this.filterService.isEditorDisabled;
23
- if (isDisabled) {
24
- this.currentItem.value = null;
25
- }
26
- return isDisabled;
27
- }
28
- };
29
- tslib_1.__decorate([
30
- Input(),
31
- tslib_1.__metadata("design:type", Object)
32
- ], FilterDateEditorComponent.prototype, "currentItem", void 0);
33
- tslib_1.__decorate([
34
- Output(),
35
- tslib_1.__metadata("design:type", EventEmitter)
36
- ], FilterDateEditorComponent.prototype, "valueChange", void 0);
37
- FilterDateEditorComponent = tslib_1.__decorate([
38
- Component({
39
- selector: 'kendo-filter-date-editor',
40
- template: `
41
- <kendo-datepicker
42
- [kendoAriaLabelValue]="messageFor('filterValueAriaLabel')"
43
- class="k-filter-toolbar-item k-filter-value"
44
- [(value)]="currentItem.value"
45
- (valueChange)="valueChange.emit()"
46
- [disabled]="isDisabled()">
47
- <kendo-datepicker-messages
48
- [toggle]="messageFor('editorDateToggleText')"
49
- [today]="messageFor('editorDateTodayText')">
50
- </kendo-datepicker-messages>
51
- </kendo-datepicker>
52
- `
53
- }),
54
- tslib_1.__metadata("design:paramtypes", [LocalizationService, FilterService])
55
- ], FilterDateEditorComponent);
56
- export { FilterDateEditorComponent };
@@ -1,20 +0,0 @@
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
- /**
10
- * @hidden
11
- */
12
- export declare class FilterNumericEditorComponent {
13
- private localization;
14
- private filterService;
15
- currentItem: FilterDescriptor;
16
- valueChange: EventEmitter<void>;
17
- constructor(localization: LocalizationService, filterService: FilterService);
18
- messageFor(key: string): string;
19
- isDisabled(): boolean;
20
- }
@@ -1,56 +0,0 @@
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 tslib_1 from "tslib";
6
- import { Component, EventEmitter, Input, Output } from '@angular/core';
7
- import { LocalizationService } from '@progress/kendo-angular-l10n';
8
- import { FilterService } from '../filter.service';
9
- /**
10
- * @hidden
11
- */
12
- let FilterNumericEditorComponent = class FilterNumericEditorComponent {
13
- constructor(localization, filterService) {
14
- this.localization = localization;
15
- this.filterService = filterService;
16
- this.valueChange = new EventEmitter();
17
- }
18
- messageFor(key) {
19
- return this.localization.get(key);
20
- }
21
- isDisabled() {
22
- const isDisabled = this.filterService.isEditorDisabled;
23
- if (isDisabled) {
24
- this.currentItem.value = null;
25
- }
26
- return isDisabled;
27
- }
28
- };
29
- tslib_1.__decorate([
30
- Input(),
31
- tslib_1.__metadata("design:type", Object)
32
- ], FilterNumericEditorComponent.prototype, "currentItem", void 0);
33
- tslib_1.__decorate([
34
- Output(),
35
- tslib_1.__metadata("design:type", EventEmitter)
36
- ], FilterNumericEditorComponent.prototype, "valueChange", void 0);
37
- FilterNumericEditorComponent = tslib_1.__decorate([
38
- Component({
39
- selector: 'kendo-filter-numeric-editor',
40
- template: `
41
- <kendo-numerictextbox
42
- [kendoAriaLabelValue]="messageFor('filterValueAriaLabel')"
43
- class="k-filter-toolbar-item k-filter-value"
44
- [(value)]="currentItem.value"
45
- (valueChange)="valueChange.emit()"
46
- [disabled]="isDisabled()">
47
- <kendo-numerictextbox-messages
48
- [increment]="messageFor('editorNumericIncrement')"
49
- [decrement]="messageFor('editorNumericDecrement')">
50
- </kendo-numerictextbox-messages>
51
- </kendo-numerictextbox>
52
- `
53
- }),
54
- tslib_1.__metadata("design:paramtypes", [LocalizationService, FilterService])
55
- ], FilterNumericEditorComponent);
56
- export { FilterNumericEditorComponent };
@@ -1,20 +0,0 @@
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
- /**
10
- * @hidden
11
- */
12
- export declare class FilterTextEditorComponent {
13
- private localization;
14
- private filterService;
15
- currentItem: FilterDescriptor;
16
- valueChange: EventEmitter<void>;
17
- constructor(localization: LocalizationService, filterService: FilterService);
18
- isDisabled(): boolean;
19
- messageFor(key: string): string;
20
- }
@@ -1,52 +0,0 @@
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 tslib_1 from "tslib";
6
- import { Component, EventEmitter, Input, Output } from '@angular/core';
7
- import { LocalizationService } from '@progress/kendo-angular-l10n';
8
- import { FilterService } from '../filter.service';
9
- /**
10
- * @hidden
11
- */
12
- let FilterTextEditorComponent = class FilterTextEditorComponent {
13
- constructor(localization, filterService) {
14
- this.localization = localization;
15
- this.filterService = filterService;
16
- this.valueChange = new EventEmitter();
17
- }
18
- isDisabled() {
19
- const isDisabled = this.filterService.isEditorDisabled;
20
- if (isDisabled) {
21
- this.currentItem.value = null;
22
- }
23
- return isDisabled;
24
- }
25
- messageFor(key) {
26
- return this.localization.get(key);
27
- }
28
- };
29
- tslib_1.__decorate([
30
- Input(),
31
- tslib_1.__metadata("design:type", Object)
32
- ], FilterTextEditorComponent.prototype, "currentItem", void 0);
33
- tslib_1.__decorate([
34
- Output(),
35
- tslib_1.__metadata("design:type", EventEmitter)
36
- ], FilterTextEditorComponent.prototype, "valueChange", void 0);
37
- FilterTextEditorComponent = tslib_1.__decorate([
38
- Component({
39
- selector: 'kendo-filter-text-editor',
40
- template: `
41
- <kendo-textbox
42
- [kendoAriaLabelValue]="messageFor('filterValueAriaLabel')"
43
- class="k-filter-toolbar-item k-filter-value"
44
- [(value)]="currentItem.value"
45
- (valueChange)="valueChange.emit()"
46
- [disabled]="isDisabled()">
47
- </kendo-textbox>
48
- `
49
- }),
50
- tslib_1.__metadata("design:paramtypes", [LocalizationService, FilterService])
51
- ], FilterTextEditorComponent);
52
- export { FilterTextEditorComponent };
@@ -1,24 +0,0 @@
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
- /**
10
- * @hidden
11
- */
12
- export declare class FilterExpressionOperatorsComponent {
13
- private filterService;
14
- private localization;
15
- currentItem: FilterDescriptor;
16
- valueChange: EventEmitter<void>;
17
- operators: {
18
- text: string;
19
- value: string;
20
- }[];
21
- constructor(filterService: FilterService, localization: LocalizationService);
22
- messageFor(key: string): string;
23
- operatorValueChange(value: string): void;
24
- }
@@ -1,59 +0,0 @@
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 tslib_1 from "tslib";
6
- import { Component, EventEmitter, Input, Output } from '@angular/core';
7
- import { LocalizationService } from '@progress/kendo-angular-l10n';
8
- import { FilterService } from './filter.service';
9
- import { nullOperators } from './util';
10
- /**
11
- * @hidden
12
- */
13
- let FilterExpressionOperatorsComponent = class FilterExpressionOperatorsComponent {
14
- constructor(filterService, localization) {
15
- this.filterService = filterService;
16
- this.localization = localization;
17
- this.valueChange = new EventEmitter();
18
- this.operators = [];
19
- }
20
- messageFor(key) {
21
- return this.localization.get(key);
22
- }
23
- operatorValueChange(value) {
24
- this.valueChange.emit();
25
- this.filterService.isEditorDisabled = nullOperators.indexOf(value) >= 0;
26
- }
27
- };
28
- tslib_1.__decorate([
29
- Input(),
30
- tslib_1.__metadata("design:type", Object)
31
- ], FilterExpressionOperatorsComponent.prototype, "currentItem", void 0);
32
- tslib_1.__decorate([
33
- Output(),
34
- tslib_1.__metadata("design:type", EventEmitter)
35
- ], FilterExpressionOperatorsComponent.prototype, "valueChange", void 0);
36
- tslib_1.__decorate([
37
- Input(),
38
- tslib_1.__metadata("design:type", Array)
39
- ], FilterExpressionOperatorsComponent.prototype, "operators", void 0);
40
- FilterExpressionOperatorsComponent = tslib_1.__decorate([
41
- Component({
42
- selector: 'kendo-filter-expression-operators',
43
- template: `
44
- <kendo-dropdownlist
45
- [kendoAriaLabelValue]="messageFor('filterOperatorAriaLabel')"
46
- [data]="operators"
47
- [title]="messageFor('filterExpressionOperators')"
48
- [(value)]="currentItem.operator"
49
- (valueChange)="operatorValueChange($event)"
50
- [valuePrimitive]="true"
51
- textField="text"
52
- valueField="value"
53
- >
54
- </kendo-dropdownlist>
55
- `
56
- }),
57
- tslib_1.__metadata("design:paramtypes", [FilterService, LocalizationService])
58
- ], FilterExpressionOperatorsComponent);
59
- export { FilterExpressionOperatorsComponent };