@progress/kendo-angular-filter 1.0.0-next.202204011458 → 1.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cdn/js/kendo-angular-filter.js +20 -0
- package/dist/cdn/main.js +5 -0
- package/dist/es/aria-label.directive.js +30 -0
- package/dist/es/editors/boolean-editor.component.js +61 -0
- package/dist/es/editors/date-editor.component.js +45 -0
- package/dist/es/editors/numeric-editor.component.js +45 -0
- package/dist/es/editors/text-editor.component.js +45 -0
- package/dist/es/filter-expression-operators.component.js +48 -0
- package/dist/es/filter-expression.component.js +136 -0
- package/dist/es/filter-group.component.js +84 -0
- package/dist/es/filter.component.js +185 -0
- package/dist/es/filter.module.js +91 -0
- package/dist/es/filter.service.js +45 -0
- package/{esm2015/main.js → dist/es/index.js} +8 -3
- package/dist/es/localization/custom-messages.component.js +44 -0
- package/dist/es/localization/localized-messages.directive.js +35 -0
- package/dist/es/localization/messages.js +166 -0
- package/dist/es/main.js +6 -0
- package/{esm2015 → dist/es}/model/filter-expression.js +0 -1
- package/dist/es/package-metadata.js +15 -0
- package/dist/es/shared.module.js +35 -0
- package/dist/es/util.js +136 -0
- package/{aria-label.directive.d.ts → dist/es2015/aria-label.directive.d.ts} +0 -3
- package/dist/es2015/aria-label.directive.js +29 -0
- package/{editors → dist/es2015/editors}/boolean-editor.component.d.ts +0 -3
- package/dist/es2015/editors/boolean-editor.component.js +72 -0
- package/{editors → dist/es2015/editors}/date-editor.component.d.ts +0 -3
- package/dist/es2015/editors/date-editor.component.js +56 -0
- package/{editors → dist/es2015/editors}/numeric-editor.component.d.ts +0 -3
- package/dist/es2015/editors/numeric-editor.component.js +56 -0
- package/{editors → dist/es2015/editors}/text-editor.component.d.ts +0 -3
- package/dist/es2015/editors/text-editor.component.js +52 -0
- package/{filter-expression-operators.component.d.ts → dist/es2015/filter-expression-operators.component.d.ts} +0 -3
- package/dist/es2015/filter-expression-operators.component.js +59 -0
- package/{filter-expression.component.d.ts → dist/es2015/filter-expression.component.d.ts} +0 -5
- package/{esm2015 → dist/es2015}/filter-expression.component.js +26 -71
- package/{filter-group.component.d.ts → dist/es2015/filter-group.component.d.ts} +2 -7
- package/dist/es2015/filter-group.component.js +145 -0
- package/{filter.component.d.ts → dist/es2015/filter.component.d.ts} +2 -7
- package/{esm2015 → dist/es2015}/filter.component.js +34 -151
- package/dist/es2015/filter.module.d.ts +37 -0
- package/dist/es2015/filter.module.js +88 -0
- package/{filter.service.d.ts → dist/es2015/filter.service.d.ts} +0 -3
- package/{esm2015 → dist/es2015}/filter.service.js +10 -8
- package/{main.d.ts → dist/es2015/index.d.ts} +8 -4
- package/dist/es2015/index.js +21 -0
- package/dist/es2015/index.metadata.json +1 -0
- package/{localization → dist/es2015/localization}/custom-messages.component.d.ts +1 -4
- package/dist/es2015/localization/custom-messages.component.js +36 -0
- package/{localization → dist/es2015/localization}/localized-messages.directive.d.ts +0 -3
- package/dist/es2015/localization/localized-messages.directive.js +31 -0
- package/{localization → dist/es2015/localization}/messages.d.ts +0 -3
- package/dist/es2015/localization/messages.js +160 -0
- package/dist/es2015/main.d.ts +7 -0
- package/dist/es2015/main.js +6 -0
- package/{model → dist/es2015/model}/filter-expression.d.ts +0 -0
- package/{esm2015/kendo-angular-filter.js → dist/es2015/model/filter-expression.js} +1 -2
- package/{package-metadata.d.ts → dist/es2015/package-metadata.d.ts} +0 -0
- package/{esm2015 → dist/es2015}/package-metadata.js +1 -1
- package/{kendo-angular-filter.d.ts → dist/es2015/shared.module.d.ts} +3 -3
- package/dist/es2015/shared.module.js +32 -0
- package/dist/es2015/util.d.ts +147 -0
- package/{esm2015 → dist/es2015}/util.js +3 -3
- package/dist/fesm2015/index.js +1316 -0
- package/dist/fesm5/index.js +1076 -0
- package/dist/npm/aria-label.directive.js +32 -0
- package/dist/npm/editors/boolean-editor.component.js +63 -0
- package/dist/npm/editors/date-editor.component.js +47 -0
- package/dist/npm/editors/numeric-editor.component.js +47 -0
- package/dist/npm/editors/text-editor.component.js +47 -0
- package/dist/npm/filter-expression-operators.component.js +50 -0
- package/dist/npm/filter-expression.component.js +138 -0
- package/dist/npm/filter-group.component.js +86 -0
- package/dist/npm/filter.component.js +187 -0
- package/dist/npm/filter.module.js +93 -0
- package/dist/npm/filter.service.js +47 -0
- package/dist/npm/index.js +37 -0
- package/dist/npm/localization/custom-messages.component.js +46 -0
- package/dist/npm/localization/localized-messages.directive.js +37 -0
- package/dist/npm/localization/messages.js +168 -0
- package/dist/npm/main.js +10 -0
- package/dist/npm/model/filter-expression.js +9 -0
- package/dist/npm/package-metadata.js +17 -0
- package/dist/npm/shared.module.js +37 -0
- package/dist/npm/util.js +138 -0
- package/dist/systemjs/kendo-angular-filter.js +5 -0
- package/package.json +109 -38
- package/schematics/ngAdd/index.js +2 -5
- package/schematics/ngAdd/index.js.map +1 -1
- package/bundles/kendo-angular-filter.umd.js +0 -5
- package/esm2015/aria-label.directive.js +0 -28
- package/esm2015/editors/boolean-editor.component.js +0 -84
- package/esm2015/editors/date-editor.component.js +0 -67
- package/esm2015/editors/numeric-editor.component.js +0 -67
- package/esm2015/editors/text-editor.component.js +0 -59
- package/esm2015/filter-expression-operators.component.js +0 -68
- package/esm2015/filter-group.component.js +0 -206
- package/esm2015/filter.module.js +0 -117
- package/esm2015/localization/custom-messages.component.js +0 -41
- package/esm2015/localization/localized-messages.directive.js +0 -36
- package/esm2015/localization/messages.js +0 -95
- package/esm2015/shared.module.js +0 -50
- package/fesm2015/kendo-angular-filter.js +0 -1622
- package/filter.module.d.ts +0 -53
- package/shared.module.d.ts +0 -19
- package/util.d.ts +0 -147
|
@@ -0,0 +1,35 @@
|
|
|
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 };
|
|
@@ -0,0 +1,166 @@
|
|
|
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
ADDED
|
@@ -0,0 +1,6 @@
|
|
|
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';
|
|
@@ -0,0 +1,15 @@
|
|
|
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: 1649147607,
|
|
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
|
+
};
|
|
@@ -0,0 +1,35 @@
|
|
|
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
ADDED
|
@@ -0,0 +1,136 @@
|
|
|
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
|
+
}); }); }; };
|
|
@@ -3,7 +3,6 @@
|
|
|
3
3
|
* Licensed under commercial license. See LICENSE.md in the project root for more information
|
|
4
4
|
*-------------------------------------------------------------------------------------------*/
|
|
5
5
|
import { ElementRef, Renderer2 } from '@angular/core';
|
|
6
|
-
import * as i0 from "@angular/core";
|
|
7
6
|
/**
|
|
8
7
|
* @hidden
|
|
9
8
|
*/
|
|
@@ -13,6 +12,4 @@ export declare class AriaLabelValueDirective {
|
|
|
13
12
|
ariaLabel: string;
|
|
14
13
|
constructor(hostElement: ElementRef, renderer: Renderer2);
|
|
15
14
|
ngOnChanges(): void;
|
|
16
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<AriaLabelValueDirective, never>;
|
|
17
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<AriaLabelValueDirective, "[kendoAriaLabelValue]", never, { "ariaLabel": "kendoAriaLabelValue"; }, {}, never>;
|
|
18
15
|
}
|
|
@@ -0,0 +1,29 @@
|
|
|
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 };
|
|
@@ -5,7 +5,6 @@
|
|
|
5
5
|
import { ChangeDetectorRef, EventEmitter } from '@angular/core';
|
|
6
6
|
import { LocalizationService } from '@progress/kendo-angular-l10n';
|
|
7
7
|
import { FilterDescriptor } from '@progress/kendo-data-query';
|
|
8
|
-
import * as i0 from "@angular/core";
|
|
9
8
|
/**
|
|
10
9
|
* @hidden
|
|
11
10
|
*/
|
|
@@ -35,6 +34,4 @@ export declare class FilterBooleanEditorComponent {
|
|
|
35
34
|
}[];
|
|
36
35
|
ngOnDestroy(): void;
|
|
37
36
|
messageFor(key: string): string;
|
|
38
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<FilterBooleanEditorComponent, never>;
|
|
39
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<FilterBooleanEditorComponent, "kendo-filter-boolean-editor", never, { "currentItem": "currentItem"; }, { "valueChange": "valueChange"; }, never, never>;
|
|
40
37
|
}
|
|
@@ -0,0 +1,72 @@
|
|
|
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 };
|
|
@@ -6,7 +6,6 @@ import { EventEmitter } from '@angular/core';
|
|
|
6
6
|
import { LocalizationService } from '@progress/kendo-angular-l10n';
|
|
7
7
|
import { FilterDescriptor } from '@progress/kendo-data-query';
|
|
8
8
|
import { FilterService } from '../filter.service';
|
|
9
|
-
import * as i0 from "@angular/core";
|
|
10
9
|
/**
|
|
11
10
|
* @hidden
|
|
12
11
|
*/
|
|
@@ -18,6 +17,4 @@ export declare class FilterDateEditorComponent {
|
|
|
18
17
|
constructor(localization: LocalizationService, filterService: FilterService);
|
|
19
18
|
messageFor(key: string): string;
|
|
20
19
|
isDisabled(): boolean;
|
|
21
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<FilterDateEditorComponent, never>;
|
|
22
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<FilterDateEditorComponent, "kendo-filter-date-editor", never, { "currentItem": "currentItem"; }, { "valueChange": "valueChange"; }, never, never>;
|
|
23
20
|
}
|
|
@@ -0,0 +1,56 @@
|
|
|
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 };
|
|
@@ -6,7 +6,6 @@ import { EventEmitter } from '@angular/core';
|
|
|
6
6
|
import { LocalizationService } from '@progress/kendo-angular-l10n';
|
|
7
7
|
import { FilterDescriptor } from '@progress/kendo-data-query';
|
|
8
8
|
import { FilterService } from '../filter.service';
|
|
9
|
-
import * as i0 from "@angular/core";
|
|
10
9
|
/**
|
|
11
10
|
* @hidden
|
|
12
11
|
*/
|
|
@@ -18,6 +17,4 @@ export declare class FilterNumericEditorComponent {
|
|
|
18
17
|
constructor(localization: LocalizationService, filterService: FilterService);
|
|
19
18
|
messageFor(key: string): string;
|
|
20
19
|
isDisabled(): boolean;
|
|
21
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<FilterNumericEditorComponent, never>;
|
|
22
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<FilterNumericEditorComponent, "kendo-filter-numeric-editor", never, { "currentItem": "currentItem"; }, { "valueChange": "valueChange"; }, never, never>;
|
|
23
20
|
}
|