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

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 (106) hide show
  1. package/{dist/es2015/aria-label.directive.d.ts → aria-label.directive.d.ts} +3 -0
  2. package/bundles/kendo-angular-filter.umd.js +5 -0
  3. package/{dist/es2015/editors → editors}/boolean-editor.component.d.ts +3 -0
  4. package/{dist/es2015/editors → editors}/date-editor.component.d.ts +3 -0
  5. package/{dist/es2015/editors → editors}/numeric-editor.component.d.ts +3 -0
  6. package/{dist/es2015/editors → editors}/text-editor.component.d.ts +3 -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/{dist/es2015 → esm2015}/filter-expression.component.js +71 -26
  14. package/esm2015/filter-group.component.js +206 -0
  15. package/{dist/es2015 → esm2015}/filter.component.js +151 -34
  16. package/esm2015/filter.module.js +117 -0
  17. package/{dist/es2015 → esm2015}/filter.service.js +8 -10
  18. package/{dist/es2015/shared.module.d.ts → esm2015/kendo-angular-filter.js} +2 -3
  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/{dist/es/index.js → esm2015/main.js} +3 -8
  23. package/{dist/es → esm2015}/model/filter-expression.js +1 -0
  24. package/{dist/es2015 → esm2015}/package-metadata.js +1 -1
  25. package/esm2015/shared.module.js +50 -0
  26. package/{dist/es2015 → esm2015}/util.js +3 -3
  27. package/fesm2015/kendo-angular-filter.js +1622 -0
  28. package/{dist/es2015/filter-expression-operators.component.d.ts → filter-expression-operators.component.d.ts} +3 -0
  29. package/{dist/es2015/filter-expression.component.d.ts → filter-expression.component.d.ts} +5 -0
  30. package/{dist/es2015/filter-group.component.d.ts → filter-group.component.d.ts} +7 -2
  31. package/{dist/es2015/filter.component.d.ts → filter.component.d.ts} +7 -2
  32. package/filter.module.d.ts +53 -0
  33. package/{dist/es2015/filter.service.d.ts → filter.service.d.ts} +3 -0
  34. package/{dist/npm/model/filter-expression.js → kendo-angular-filter.d.ts} +3 -3
  35. package/{dist/es2015/localization → localization}/custom-messages.component.d.ts +4 -1
  36. package/{dist/es2015/localization → localization}/localized-messages.directive.d.ts +3 -0
  37. package/{dist/es2015/localization → localization}/messages.d.ts +3 -0
  38. package/{dist/es2015/index.d.ts → main.d.ts} +4 -8
  39. package/{dist/es2015/model → model}/filter-expression.d.ts +0 -0
  40. package/{dist/es2015/package-metadata.d.ts → package-metadata.d.ts} +0 -0
  41. package/package.json +38 -109
  42. package/schematics/ngAdd/index.js +5 -2
  43. package/schematics/ngAdd/index.js.map +1 -1
  44. package/shared.module.d.ts +19 -0
  45. package/util.d.ts +147 -0
  46. package/dist/cdn/js/kendo-angular-filter.js +0 -20
  47. package/dist/cdn/main.js +0 -5
  48. package/dist/es/aria-label.directive.js +0 -30
  49. package/dist/es/editors/boolean-editor.component.js +0 -61
  50. package/dist/es/editors/date-editor.component.js +0 -45
  51. package/dist/es/editors/numeric-editor.component.js +0 -45
  52. package/dist/es/editors/text-editor.component.js +0 -45
  53. package/dist/es/filter-expression-operators.component.js +0 -48
  54. package/dist/es/filter-expression.component.js +0 -136
  55. package/dist/es/filter-group.component.js +0 -84
  56. package/dist/es/filter.component.js +0 -185
  57. package/dist/es/filter.module.js +0 -91
  58. package/dist/es/filter.service.js +0 -45
  59. package/dist/es/localization/custom-messages.component.js +0 -44
  60. package/dist/es/localization/localized-messages.directive.js +0 -35
  61. package/dist/es/localization/messages.js +0 -166
  62. package/dist/es/main.js +0 -6
  63. package/dist/es/package-metadata.js +0 -15
  64. package/dist/es/shared.module.js +0 -35
  65. package/dist/es/util.js +0 -136
  66. package/dist/es2015/aria-label.directive.js +0 -29
  67. package/dist/es2015/editors/boolean-editor.component.js +0 -72
  68. package/dist/es2015/editors/date-editor.component.js +0 -56
  69. package/dist/es2015/editors/numeric-editor.component.js +0 -56
  70. package/dist/es2015/editors/text-editor.component.js +0 -52
  71. package/dist/es2015/filter-expression-operators.component.js +0 -59
  72. package/dist/es2015/filter-group.component.js +0 -145
  73. package/dist/es2015/filter.module.d.ts +0 -37
  74. package/dist/es2015/filter.module.js +0 -88
  75. package/dist/es2015/index.js +0 -21
  76. package/dist/es2015/index.metadata.json +0 -1
  77. package/dist/es2015/localization/custom-messages.component.js +0 -36
  78. package/dist/es2015/localization/localized-messages.directive.js +0 -31
  79. package/dist/es2015/localization/messages.js +0 -160
  80. package/dist/es2015/main.d.ts +0 -7
  81. package/dist/es2015/main.js +0 -6
  82. package/dist/es2015/model/filter-expression.js +0 -7
  83. package/dist/es2015/shared.module.js +0 -32
  84. package/dist/es2015/util.d.ts +0 -147
  85. package/dist/fesm2015/index.js +0 -1316
  86. package/dist/fesm5/index.js +0 -1076
  87. package/dist/npm/aria-label.directive.js +0 -32
  88. package/dist/npm/editors/boolean-editor.component.js +0 -63
  89. package/dist/npm/editors/date-editor.component.js +0 -47
  90. package/dist/npm/editors/numeric-editor.component.js +0 -47
  91. package/dist/npm/editors/text-editor.component.js +0 -47
  92. package/dist/npm/filter-expression-operators.component.js +0 -50
  93. package/dist/npm/filter-expression.component.js +0 -138
  94. package/dist/npm/filter-group.component.js +0 -86
  95. package/dist/npm/filter.component.js +0 -187
  96. package/dist/npm/filter.module.js +0 -93
  97. package/dist/npm/filter.service.js +0 -47
  98. package/dist/npm/index.js +0 -37
  99. package/dist/npm/localization/custom-messages.component.js +0 -46
  100. package/dist/npm/localization/localized-messages.directive.js +0 -37
  101. package/dist/npm/localization/messages.js +0 -168
  102. package/dist/npm/main.js +0 -10
  103. package/dist/npm/package-metadata.js +0 -17
  104. package/dist/npm/shared.module.js +0 -37
  105. package/dist/npm/util.js +0 -138
  106. 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 { Directive, forwardRef } from '@angular/core';
7
- import { LocalizationService } from '@progress/kendo-angular-l10n';
8
- import { Messages } from './messages';
9
- /**
10
- * @hidden
11
- */
12
- var LocalizedMessagesDirective = /** @class */ (function (_super) {
13
- tslib_1.__extends(LocalizedMessagesDirective, _super);
14
- function LocalizedMessagesDirective(service) {
15
- var _this = _super.call(this) || this;
16
- _this.service = service;
17
- return _this;
18
- }
19
- LocalizedMessagesDirective_1 = LocalizedMessagesDirective;
20
- var LocalizedMessagesDirective_1;
21
- LocalizedMessagesDirective = LocalizedMessagesDirective_1 = tslib_1.__decorate([
22
- Directive({
23
- providers: [
24
- {
25
- provide: Messages,
26
- useExisting: forwardRef(function () { return LocalizedMessagesDirective_1; })
27
- }
28
- ],
29
- selector: '[kendoFilterLocalizedMessages]'
30
- }),
31
- tslib_1.__metadata("design:paramtypes", [LocalizationService])
32
- ], LocalizedMessagesDirective);
33
- return LocalizedMessagesDirective;
34
- }(Messages));
35
- export { LocalizedMessagesDirective };
@@ -1,166 +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 { Input } from '@angular/core';
7
- import { ComponentMessages } from '@progress/kendo-angular-l10n';
8
- /**
9
- * @hidden
10
- */
11
- var Messages = /** @class */ (function (_super) {
12
- tslib_1.__extends(Messages, _super);
13
- function Messages() {
14
- return _super !== null && _super.apply(this, arguments) || this;
15
- }
16
- tslib_1.__decorate([
17
- Input(),
18
- tslib_1.__metadata("design:type", String)
19
- ], Messages.prototype, "filterExpressionOperators", void 0);
20
- tslib_1.__decorate([
21
- Input(),
22
- tslib_1.__metadata("design:type", String)
23
- ], Messages.prototype, "filterExpressionFilters", void 0);
24
- tslib_1.__decorate([
25
- Input(),
26
- tslib_1.__metadata("design:type", String)
27
- ], Messages.prototype, "remove", void 0);
28
- tslib_1.__decorate([
29
- Input(),
30
- tslib_1.__metadata("design:type", String)
31
- ], Messages.prototype, "addGroup", void 0);
32
- tslib_1.__decorate([
33
- Input(),
34
- tslib_1.__metadata("design:type", String)
35
- ], Messages.prototype, "addFilter", void 0);
36
- tslib_1.__decorate([
37
- Input(),
38
- tslib_1.__metadata("design:type", String)
39
- ], Messages.prototype, "filterAndLogic", void 0);
40
- tslib_1.__decorate([
41
- Input(),
42
- tslib_1.__metadata("design:type", String)
43
- ], Messages.prototype, "filterOrLogic", void 0);
44
- tslib_1.__decorate([
45
- Input(),
46
- tslib_1.__metadata("design:type", String)
47
- ], Messages.prototype, "filterEqOperator", void 0);
48
- tslib_1.__decorate([
49
- Input(),
50
- tslib_1.__metadata("design:type", String)
51
- ], Messages.prototype, "filterNotEqOperator", void 0);
52
- tslib_1.__decorate([
53
- Input(),
54
- tslib_1.__metadata("design:type", String)
55
- ], Messages.prototype, "filterIsNullOperator", void 0);
56
- tslib_1.__decorate([
57
- Input(),
58
- tslib_1.__metadata("design:type", String)
59
- ], Messages.prototype, "filterIsNotNullOperator", void 0);
60
- tslib_1.__decorate([
61
- Input(),
62
- tslib_1.__metadata("design:type", String)
63
- ], Messages.prototype, "filterIsEmptyOperator", void 0);
64
- tslib_1.__decorate([
65
- Input(),
66
- tslib_1.__metadata("design:type", String)
67
- ], Messages.prototype, "filterIsNotEmptyOperator", void 0);
68
- tslib_1.__decorate([
69
- Input(),
70
- tslib_1.__metadata("design:type", String)
71
- ], Messages.prototype, "filterStartsWithOperator", void 0);
72
- tslib_1.__decorate([
73
- Input(),
74
- tslib_1.__metadata("design:type", String)
75
- ], Messages.prototype, "filterContainsOperator", void 0);
76
- tslib_1.__decorate([
77
- Input(),
78
- tslib_1.__metadata("design:type", String)
79
- ], Messages.prototype, "filterNotContainsOperator", void 0);
80
- tslib_1.__decorate([
81
- Input(),
82
- tslib_1.__metadata("design:type", String)
83
- ], Messages.prototype, "filterEndsWithOperator", void 0);
84
- tslib_1.__decorate([
85
- Input(),
86
- tslib_1.__metadata("design:type", String)
87
- ], Messages.prototype, "filterGteOperator", void 0);
88
- tslib_1.__decorate([
89
- Input(),
90
- tslib_1.__metadata("design:type", String)
91
- ], Messages.prototype, "filterGtOperator", void 0);
92
- tslib_1.__decorate([
93
- Input(),
94
- tslib_1.__metadata("design:type", String)
95
- ], Messages.prototype, "filterLteOperator", void 0);
96
- tslib_1.__decorate([
97
- Input(),
98
- tslib_1.__metadata("design:type", String)
99
- ], Messages.prototype, "filterLtOperator", void 0);
100
- tslib_1.__decorate([
101
- Input(),
102
- tslib_1.__metadata("design:type", String)
103
- ], Messages.prototype, "filterIsTrue", void 0);
104
- tslib_1.__decorate([
105
- Input(),
106
- tslib_1.__metadata("design:type", String)
107
- ], Messages.prototype, "filterIsFalse", void 0);
108
- tslib_1.__decorate([
109
- Input(),
110
- tslib_1.__metadata("design:type", String)
111
- ], Messages.prototype, "filterBooleanAll", void 0);
112
- tslib_1.__decorate([
113
- Input(),
114
- tslib_1.__metadata("design:type", String)
115
- ], Messages.prototype, "filterAfterOrEqualOperator", void 0);
116
- tslib_1.__decorate([
117
- Input(),
118
- tslib_1.__metadata("design:type", String)
119
- ], Messages.prototype, "filterAfterOperator", void 0);
120
- tslib_1.__decorate([
121
- Input(),
122
- tslib_1.__metadata("design:type", String)
123
- ], Messages.prototype, "filterBeforeOperator", void 0);
124
- tslib_1.__decorate([
125
- Input(),
126
- tslib_1.__metadata("design:type", String)
127
- ], Messages.prototype, "filterBeforeOrEqualOperator", void 0);
128
- tslib_1.__decorate([
129
- Input(),
130
- tslib_1.__metadata("design:type", String)
131
- ], Messages.prototype, "editorNumericDecrement", void 0);
132
- tslib_1.__decorate([
133
- Input(),
134
- tslib_1.__metadata("design:type", String)
135
- ], Messages.prototype, "editorNumericIncrement", void 0);
136
- tslib_1.__decorate([
137
- Input(),
138
- tslib_1.__metadata("design:type", String)
139
- ], Messages.prototype, "editorDateTodayText", void 0);
140
- tslib_1.__decorate([
141
- Input(),
142
- tslib_1.__metadata("design:type", String)
143
- ], Messages.prototype, "editorDateToggleText", void 0);
144
- tslib_1.__decorate([
145
- Input(),
146
- tslib_1.__metadata("design:type", String)
147
- ], Messages.prototype, "filterFieldAriaLabel", void 0);
148
- tslib_1.__decorate([
149
- Input(),
150
- tslib_1.__metadata("design:type", String)
151
- ], Messages.prototype, "filterOperatorAriaLabel", void 0);
152
- tslib_1.__decorate([
153
- Input(),
154
- tslib_1.__metadata("design:type", String)
155
- ], Messages.prototype, "filterValueAriaLabel", void 0);
156
- tslib_1.__decorate([
157
- Input(),
158
- tslib_1.__metadata("design:type", String)
159
- ], Messages.prototype, "filterAriaLabel", void 0);
160
- tslib_1.__decorate([
161
- Input(),
162
- tslib_1.__metadata("design:type", String)
163
- ], Messages.prototype, "filterToolbarAriaLabel", void 0);
164
- return Messages;
165
- }(ComponentMessages));
166
- export { Messages };
package/dist/es/main.js DELETED
@@ -1,6 +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
- export { FilterComponent } from './filter.component';
6
- export { FilterModule } from './filter.module';
@@ -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
- /**
6
- * @hidden
7
- */
8
- export var packageMetadata = {
9
- name: '@progress/kendo-angular-filter',
10
- productName: 'Kendo UI for Angular',
11
- productCodes: ['KENDOUIANGULAR', 'KENDOUICOMPLETE'],
12
- publishDate: 1646919397,
13
- version: '',
14
- licensingDocsUrl: 'https://www.telerik.com/kendo-angular-ui/my-license/?utm_medium=product&utm_source=kendoangular&utm_campaign=kendo-ui-angular-purchase-license-keys-warning'
15
- };
@@ -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,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,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,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,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,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 };