@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,187 @@
|
|
|
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
|
+
"use strict";
|
|
6
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
7
|
+
var tslib_1 = require("tslib");
|
|
8
|
+
var core_1 = require("@angular/core");
|
|
9
|
+
var kendo_angular_l10n_1 = require("@progress/kendo-angular-l10n");
|
|
10
|
+
var filter_service_1 = require("./filter.service");
|
|
11
|
+
var util_1 = require("./util");
|
|
12
|
+
var core_2 = require("@angular/core");
|
|
13
|
+
var kendo_licensing_1 = require("@progress/kendo-licensing");
|
|
14
|
+
var package_metadata_1 = require("./package-metadata");
|
|
15
|
+
/**
|
|
16
|
+
* Represents the [Kendo UI Filter component for Angular]({% slug overview_filter %}).
|
|
17
|
+
* The Filter component can be used to apply any user defined filter criteria.
|
|
18
|
+
* @example
|
|
19
|
+
* ```
|
|
20
|
+
* @Component({
|
|
21
|
+
* selector: 'my-app',
|
|
22
|
+
* template: `
|
|
23
|
+
* <kendo-filter [filters]="filters" (valueChange)="onValueChange($event)"></kendo-filter>
|
|
24
|
+
* `
|
|
25
|
+
* })
|
|
26
|
+
* export class AppComponent {
|
|
27
|
+
*
|
|
28
|
+
* public filters: FilterExpression[] = [
|
|
29
|
+
* {
|
|
30
|
+
* name: 'country',
|
|
31
|
+
* label: 'Country',
|
|
32
|
+
* filter: 'string',
|
|
33
|
+
* operators: ['eq', 'neq'],
|
|
34
|
+
* },
|
|
35
|
+
* {
|
|
36
|
+
* name: 'budget',
|
|
37
|
+
* filter: 'number'
|
|
38
|
+
* }
|
|
39
|
+
* ];
|
|
40
|
+
*
|
|
41
|
+
* onValueChange(e: CompositeFilterDescriptor){
|
|
42
|
+
* console.log(e)
|
|
43
|
+
* }
|
|
44
|
+
* }
|
|
45
|
+
* ```
|
|
46
|
+
*/
|
|
47
|
+
var FilterComponent = /** @class */ (function () {
|
|
48
|
+
function FilterComponent(filterService, localization, cdr) {
|
|
49
|
+
this.filterService = filterService;
|
|
50
|
+
this.localization = localization;
|
|
51
|
+
this.cdr = cdr;
|
|
52
|
+
/**
|
|
53
|
+
* Fires every time the Filter component value is updated.
|
|
54
|
+
* That is each time a Filter Group or Filter Expression is added, removed, or updated.
|
|
55
|
+
*/
|
|
56
|
+
this.valueChange = new core_1.EventEmitter();
|
|
57
|
+
kendo_licensing_1.validatePackage(package_metadata_1.packageMetadata);
|
|
58
|
+
this.direction = localization.rtl ? 'rtl' : 'ltr';
|
|
59
|
+
}
|
|
60
|
+
Object.defineProperty(FilterComponent.prototype, "filters", {
|
|
61
|
+
get: function () {
|
|
62
|
+
return this.filterService.filters;
|
|
63
|
+
},
|
|
64
|
+
/**
|
|
65
|
+
* Specifies the available user-defined filters. At least one filter should be provided.
|
|
66
|
+
*/
|
|
67
|
+
set: function (_filters) {
|
|
68
|
+
if (core_1.isDevMode() && (!util_1.isArray(_filters) || _filters.length === 0)) {
|
|
69
|
+
throw new Error("Pass at least one user-defined filter through the [filters] input property. See http://www.telerik.com/kendo-angular-ui/components/filter/#data-binding");
|
|
70
|
+
}
|
|
71
|
+
this.filterService.filters = _filters.map(function (filterExpression) {
|
|
72
|
+
var clonedFilter = Object.assign({}, filterExpression);
|
|
73
|
+
if (!clonedFilter.title) {
|
|
74
|
+
clonedFilter.title = clonedFilter.field;
|
|
75
|
+
}
|
|
76
|
+
return clonedFilter;
|
|
77
|
+
});
|
|
78
|
+
},
|
|
79
|
+
enumerable: true,
|
|
80
|
+
configurable: true
|
|
81
|
+
});
|
|
82
|
+
Object.defineProperty(FilterComponent.prototype, "value", {
|
|
83
|
+
get: function () {
|
|
84
|
+
return this.filterService.value;
|
|
85
|
+
},
|
|
86
|
+
/**
|
|
87
|
+
* Sets the initial `value` of the Filter component.
|
|
88
|
+
*/
|
|
89
|
+
set: function (value) {
|
|
90
|
+
var clonedValue = JSON.parse(JSON.stringify(value));
|
|
91
|
+
this.normalizeValue(clonedValue);
|
|
92
|
+
this.filterService.value = clonedValue;
|
|
93
|
+
},
|
|
94
|
+
enumerable: true,
|
|
95
|
+
configurable: true
|
|
96
|
+
});
|
|
97
|
+
FilterComponent.prototype.ngOnInit = function () {
|
|
98
|
+
var _this = this;
|
|
99
|
+
if (this.filters.length === 0) {
|
|
100
|
+
throw new Error("Pass at least one user-defined filter through the [filters] input property. See http://www.telerik.com/kendo-angular-ui/components/filter/#data-binding");
|
|
101
|
+
}
|
|
102
|
+
this.localizationSubscription = this.localization.changes.subscribe(function (_a) {
|
|
103
|
+
var rtl = _a.rtl;
|
|
104
|
+
_this.direction = rtl ? 'rtl' : 'ltr';
|
|
105
|
+
_this.cdr.detectChanges();
|
|
106
|
+
});
|
|
107
|
+
};
|
|
108
|
+
FilterComponent.prototype.ngOnDestroy = function () {
|
|
109
|
+
if (this.localizationSubscription) {
|
|
110
|
+
this.localizationSubscription.unsubscribe();
|
|
111
|
+
}
|
|
112
|
+
};
|
|
113
|
+
/**
|
|
114
|
+
* @hidden
|
|
115
|
+
*/
|
|
116
|
+
FilterComponent.prototype.getCurrentFilter = function () {
|
|
117
|
+
return this.value;
|
|
118
|
+
};
|
|
119
|
+
/**
|
|
120
|
+
* @hidden
|
|
121
|
+
*/
|
|
122
|
+
FilterComponent.prototype.onValueChange = function () {
|
|
123
|
+
this.valueChange.emit(this.filterService.value);
|
|
124
|
+
};
|
|
125
|
+
FilterComponent.prototype.normalizeFilter = function (filterDescriptor) {
|
|
126
|
+
var foundFilter = this.filterService.filters.find(function (filter) { return filter.field === filterDescriptor.field; });
|
|
127
|
+
if (core_1.isDevMode() && !foundFilter) {
|
|
128
|
+
throw new Error("There is no user-defined filter with '" + filterDescriptor.field + "' field provided through the [filters] input property.");
|
|
129
|
+
}
|
|
130
|
+
if (core_1.isDevMode() && foundFilter.editor === 'boolean' && (!filterDescriptor.value && filterDescriptor.value !== false)) {
|
|
131
|
+
console.warn("Provide a value for the boolean '" + filterDescriptor.field + "' user-defined filter as the operator is always set to 'eq'.");
|
|
132
|
+
}
|
|
133
|
+
if (filterDescriptor.operator && foundFilter.operators && !foundFilter.operators.some(function (operator) { return operator === filterDescriptor.operator; })) {
|
|
134
|
+
throw new Error("The user-defined filter with field '" + filterDescriptor.field + "' is missing the '" + filterDescriptor.operator + "' operator.");
|
|
135
|
+
}
|
|
136
|
+
if (foundFilter.editor === 'boolean') {
|
|
137
|
+
filterDescriptor.operator = 'eq';
|
|
138
|
+
}
|
|
139
|
+
if (foundFilter.editor === 'date' && filterDescriptor.value) {
|
|
140
|
+
filterDescriptor.value = new Date(filterDescriptor.value);
|
|
141
|
+
}
|
|
142
|
+
if (!filterDescriptor.value && filterDescriptor.value !== false) {
|
|
143
|
+
filterDescriptor.value = null;
|
|
144
|
+
}
|
|
145
|
+
};
|
|
146
|
+
FilterComponent.prototype.normalizeValue = function (item) {
|
|
147
|
+
var _this = this;
|
|
148
|
+
item.filters.forEach(function (item) {
|
|
149
|
+
if (item.filters) {
|
|
150
|
+
_this.normalizeValue(item);
|
|
151
|
+
}
|
|
152
|
+
else {
|
|
153
|
+
_this.normalizeFilter(item);
|
|
154
|
+
}
|
|
155
|
+
});
|
|
156
|
+
};
|
|
157
|
+
tslib_1.__decorate([
|
|
158
|
+
core_1.HostBinding('attr.dir'),
|
|
159
|
+
tslib_1.__metadata("design:type", String)
|
|
160
|
+
], FilterComponent.prototype, "direction", void 0);
|
|
161
|
+
tslib_1.__decorate([
|
|
162
|
+
core_1.Input(),
|
|
163
|
+
tslib_1.__metadata("design:type", Array),
|
|
164
|
+
tslib_1.__metadata("design:paramtypes", [Array])
|
|
165
|
+
], FilterComponent.prototype, "filters", null);
|
|
166
|
+
tslib_1.__decorate([
|
|
167
|
+
core_1.Input(),
|
|
168
|
+
tslib_1.__metadata("design:type", Object),
|
|
169
|
+
tslib_1.__metadata("design:paramtypes", [Object])
|
|
170
|
+
], FilterComponent.prototype, "value", null);
|
|
171
|
+
tslib_1.__decorate([
|
|
172
|
+
core_1.Output(),
|
|
173
|
+
tslib_1.__metadata("design:type", core_1.EventEmitter)
|
|
174
|
+
], FilterComponent.prototype, "valueChange", void 0);
|
|
175
|
+
FilterComponent = tslib_1.__decorate([
|
|
176
|
+
core_1.Component({
|
|
177
|
+
selector: 'kendo-filter',
|
|
178
|
+
template: "\n <ng-container kendoFilterLocalizedMessages\n i18n-editorDateTodayText=\"kendo.filter.editorDateTodayText|The text of the Today button of the Date editor\"\n editorDateTodayText=\"Today\"\n\n i18n-editorDateToggleText=\"kendo.filter.editorDateToggleText|The title of the Toggle button of the Date editor.\"\n editorDateToggleText=\"Toggle calendar\"\n\n i18n-editorNumericDecrement=\"kendo.filter.editorNumericDecrement|The title of the Decrement button of the Numeric editor\"\n editorNumericDecrement=\"Decrement\"\n\n i18n-editorNumericIncrement=\"kendo.filter.editorNumericIncrement|The title of the Increment button of the Numeric editor\"\n editorNumericIncrement=\"Increment\"\n\n i18n-filterExpressionOperators=\"kendo.filter.filterExpressionOperators|The text of the Filter Expression Operators drop down\"\n filterExpressionOperators=\"Operators\"\n\n i18n-filterExpressionFilters=\"kendo.filter.filterExpressionFilters|The text of the Filter Expression filters drop down\"\n filterExpressionFilters=\"Fields\"\n\n i18n-remove=\"kendo.filter.remove|The text of the Remove button\"\n remove=\"Remove\"\n\n i18n-addFilter=\"kendo.filter.addFilter|The text of the Add Filter button\"\n addFilter=\"Add Filter\"\n\n i18n-addGroup=\"kendo.filter.addGroup|The text of the Add Group button\"\n addGroup=\"Add Group\"\n\n i18n-filterAndLogic=\"kendo.filter.filterAndLogic|The text of the And filter logic\"\n filterAndLogic=\"And\"\n\n i18n-filterOrLogic=\"kendo.filter.filterOrLogic|The text of the Or filter logic\"\n filterOrLogic=\"Or\"\n\n i18n-filterEqOperator=\"kendo.filter.filterEqOperator|The text of the equal filter operator\"\n filterEqOperator=\"Is equal to\"\n\n i18n-filterNotEqOperator=\"kendo.filter.filterNotEqOperator|The text of the not equal filter operator\"\n filterNotEqOperator=\"Is not equal to\"\n\n i18n-filterIsNullOperator=\"kendo.filter.filterIsNullOperator|The text of the is null filter operator\"\n filterIsNullOperator=\"Is null\"\n\n i18n-filterIsNotNullOperator=\"kendo.filter.filterIsNotNullOperator|The text of the is not null filter operator\"\n filterIsNotNullOperator=\"Is not null\"\n\n i18n-filterIsEmptyOperator=\"kendo.filter.filterIsEmptyOperator|The text of the is empty filter operator\"\n filterIsEmptyOperator=\"Is empty\"\n\n i18n-filterIsNotEmptyOperator=\"kendo.filter.filterIsNotEmptyOperator|The text of the is not empty filter operator\"\n filterIsNotEmptyOperator=\"Is not empty\"\n\n i18n-filterStartsWithOperator=\"kendo.filter.filterStartsWithOperator|The text of the starts with filter operator\"\n filterStartsWithOperator=\"Starts with\"\n\n i18n-filterContainsOperator=\"kendo.filter.filterContainsOperator|The text of the contains filter operator\"\n filterContainsOperator=\"Contains\"\n\n i18n-filterNotContainsOperator=\"kendo.filter.filterNotContainsOperator|The text of the does not contain filter operator\"\n filterNotContainsOperator=\"Does not contain\"\n\n i18n-filterEndsWithOperator=\"kendo.filter.filterEndsWithOperator|The text of the ends with filter operator\"\n filterEndsWithOperator=\"Ends with\"\n\n i18n-filterGteOperator=\"kendo.filter.filterGteOperator|The text of the greater than or equal filter operator\"\n filterGteOperator=\"Is greater than or equal to\"\n\n i18n-filterGtOperator=\"kendo.filter.filterGtOperator|The text of the greater than filter operator\"\n filterGtOperator=\"Is greater than\"\n\n i18n-filterLteOperator=\"kendo.filter.filterLteOperator|The text of the less than or equal filter operator\"\n filterLteOperator=\"Is less than or equal to\"\n\n i18n-filterLtOperator=\"kendo.filter.filterLtOperator|The text of the less than filter operator\"\n filterLtOperator=\"Is less than\"\n\n i18n-filterIsTrue=\"kendo.filter.filterIsTrue|The text of the IsTrue boolean filter option\"\n filterIsTrue=\"Is True\"\n\n i18n-filterIsFalse=\"kendo.filter.filterIsFalse|The text of the IsFalse boolean filter option\"\n filterIsFalse=\"Is False\"\n\n i18n-filterBooleanAll=\"kendo.filter.filterBooleanAll|The text of the (All) boolean filter option\"\n filterBooleanAll=\"(All)\"\n\n i18n-filterAfterOrEqualOperator=\"kendo.filter.filterAfterOrEqualOperator|The text of the after or equal date filter operator\"\n filterAfterOrEqualOperator=\"Is after or equal to\"\n\n i18n-filterAfterOperator=\"kendo.filter.filterAfterOperator|The text of the after date filter operator\"\n filterAfterOperator=\"Is after\"\n\n i18n-filterBeforeOperator=\"kendo.filter.filterBeforeOperator|The text of the before date filter operator\"\n filterBeforeOperator=\"Is before\"\n\n i18n-filterBeforeOrEqualOperator=\"kendo.filter.filterBeforeOrEqualOperator|The text of the before or equal date filter operator\"\n filterBeforeOrEqualOperator=\"Is before or equal to\"\n\n i18n-filterFieldAriaLabel=\"kendo.filter.filterFieldAriaLabel|The text of the filter field aria label\"\n filterFieldAriaLabel=\"field\"\n\n i18n-filterOperatorAriaLabel=\"kendo.filter.filterOperatorAriaLabel|The text of the filter operator aria label\"\n filterOperatorAriaLabel=\"operator\"\n\n i18n-filterValueAriaLabel=\"kendo.filter.filterValueAriaLabel|The text of the filter value aria label\"\n filterValueAriaLabel=\"value\"\n\n i18n-filterAriaLabel=\"kendo.filter.filterAriaLabel|The text of the filter row aria label\"\n filterAriaLabel=\"filter\"\n\n i18n-filterToolbarAriaLabel=\"kendo.filter.filterToolbarAriaLabel|The text of the filter toolbar aria label\"\n filterToolbarAriaLabel=\"filter settings\"\n >\n </ng-container>\n <div class=\"k-widget k-filter\" [attr.dir]=\"direction\">\n <ul class='k-filter-container'>\n <li class='k-filter-group-main'>\n <kendo-filter-group\n [currentItem]=\"getCurrentFilter()\"\n (valueChange)=\"onValueChange()\"\n >\n </kendo-filter-group>\n </li>\n </ul>\n </div>\n",
|
|
179
|
+
providers: [filter_service_1.FilterService]
|
|
180
|
+
}),
|
|
181
|
+
tslib_1.__metadata("design:paramtypes", [filter_service_1.FilterService,
|
|
182
|
+
kendo_angular_l10n_1.LocalizationService,
|
|
183
|
+
core_2.ChangeDetectorRef])
|
|
184
|
+
], FilterComponent);
|
|
185
|
+
return FilterComponent;
|
|
186
|
+
}());
|
|
187
|
+
exports.FilterComponent = FilterComponent;
|
|
@@ -0,0 +1,93 @@
|
|
|
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
|
+
"use strict";
|
|
6
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
7
|
+
var tslib_1 = require("tslib");
|
|
8
|
+
var core_1 = require("@angular/core");
|
|
9
|
+
var kendo_angular_l10n_1 = require("@progress/kendo-angular-l10n");
|
|
10
|
+
var aria_label_directive_1 = require("./aria-label.directive");
|
|
11
|
+
var boolean_editor_component_1 = require("./editors/boolean-editor.component");
|
|
12
|
+
var date_editor_component_1 = require("./editors/date-editor.component");
|
|
13
|
+
var numeric_editor_component_1 = require("./editors/numeric-editor.component");
|
|
14
|
+
var text_editor_component_1 = require("./editors/text-editor.component");
|
|
15
|
+
var filter_expression_operators_component_1 = require("./filter-expression-operators.component");
|
|
16
|
+
var filter_expression_component_1 = require("./filter-expression.component");
|
|
17
|
+
var filter_group_component_1 = require("./filter-group.component");
|
|
18
|
+
var filter_component_1 = require("./filter.component");
|
|
19
|
+
var custom_messages_component_1 = require("./localization/custom-messages.component");
|
|
20
|
+
var localized_messages_directive_1 = require("./localization/localized-messages.directive");
|
|
21
|
+
var shared_module_1 = require("./shared.module");
|
|
22
|
+
/**
|
|
23
|
+
* Represents the [NgModule]({{ site.data.urls.angular['ngmoduleapi'] }})
|
|
24
|
+
* definition for the Filter component.
|
|
25
|
+
*
|
|
26
|
+
* @example
|
|
27
|
+
*
|
|
28
|
+
* ```
|
|
29
|
+
* // Import the Filter module
|
|
30
|
+
* import { FilterModule } from '@progress/kendo-angular-filter';
|
|
31
|
+
*
|
|
32
|
+
* // The browser platform with a compiler
|
|
33
|
+
* import { platformBrowserDynamic } from '@angular/platform-browser-dynamic';
|
|
34
|
+
*
|
|
35
|
+
* import { NgModule } from '@angular/core';
|
|
36
|
+
*
|
|
37
|
+
* // Import the app component
|
|
38
|
+
* import { AppComponent } from './app.component';
|
|
39
|
+
*
|
|
40
|
+
* // Define the app module
|
|
41
|
+
* _@NgModule({
|
|
42
|
+
* declarations: [AppComponent], // declare app component
|
|
43
|
+
* imports: [BrowserModule, FilterModule], // import Filter module
|
|
44
|
+
* bootstrap: [AppComponent]
|
|
45
|
+
* })
|
|
46
|
+
* export class AppModule { }
|
|
47
|
+
*
|
|
48
|
+
* // Compile and launch the module
|
|
49
|
+
* platformBrowserDynamic().bootstrapModule(AppModule);
|
|
50
|
+
*
|
|
51
|
+
* ```
|
|
52
|
+
*/
|
|
53
|
+
var FilterModule = /** @class */ (function () {
|
|
54
|
+
function FilterModule() {
|
|
55
|
+
}
|
|
56
|
+
FilterModule = tslib_1.__decorate([
|
|
57
|
+
core_1.NgModule({
|
|
58
|
+
imports: [shared_module_1.SharedModule],
|
|
59
|
+
declarations: [filter_component_1.FilterComponent,
|
|
60
|
+
numeric_editor_component_1.FilterNumericEditorComponent,
|
|
61
|
+
text_editor_component_1.FilterTextEditorComponent,
|
|
62
|
+
filter_expression_component_1.FilterExpressionComponent,
|
|
63
|
+
filter_group_component_1.FilterGroupComponent,
|
|
64
|
+
filter_expression_operators_component_1.FilterExpressionOperatorsComponent,
|
|
65
|
+
boolean_editor_component_1.FilterBooleanEditorComponent,
|
|
66
|
+
date_editor_component_1.FilterDateEditorComponent,
|
|
67
|
+
localized_messages_directive_1.LocalizedMessagesDirective,
|
|
68
|
+
custom_messages_component_1.CustomMessagesComponent,
|
|
69
|
+
aria_label_directive_1.AriaLabelValueDirective
|
|
70
|
+
],
|
|
71
|
+
exports: [filter_component_1.FilterComponent,
|
|
72
|
+
numeric_editor_component_1.FilterNumericEditorComponent,
|
|
73
|
+
text_editor_component_1.FilterTextEditorComponent,
|
|
74
|
+
filter_expression_component_1.FilterExpressionComponent,
|
|
75
|
+
filter_group_component_1.FilterGroupComponent,
|
|
76
|
+
filter_expression_operators_component_1.FilterExpressionOperatorsComponent,
|
|
77
|
+
boolean_editor_component_1.FilterBooleanEditorComponent,
|
|
78
|
+
date_editor_component_1.FilterDateEditorComponent,
|
|
79
|
+
localized_messages_directive_1.LocalizedMessagesDirective,
|
|
80
|
+
custom_messages_component_1.CustomMessagesComponent,
|
|
81
|
+
aria_label_directive_1.AriaLabelValueDirective],
|
|
82
|
+
providers: [
|
|
83
|
+
kendo_angular_l10n_1.LocalizationService,
|
|
84
|
+
{
|
|
85
|
+
provide: kendo_angular_l10n_1.L10N_PREFIX,
|
|
86
|
+
useValue: 'kendo.filter'
|
|
87
|
+
}
|
|
88
|
+
]
|
|
89
|
+
})
|
|
90
|
+
], FilterModule);
|
|
91
|
+
return FilterModule;
|
|
92
|
+
}());
|
|
93
|
+
exports.FilterModule = FilterModule;
|
|
@@ -0,0 +1,47 @@
|
|
|
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
|
+
"use strict";
|
|
6
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
7
|
+
var tslib_1 = require("tslib");
|
|
8
|
+
var core_1 = require("@angular/core");
|
|
9
|
+
/**
|
|
10
|
+
* @hidden
|
|
11
|
+
*/
|
|
12
|
+
var FilterService = /** @class */ (function () {
|
|
13
|
+
function FilterService() {
|
|
14
|
+
this.value = { filters: [], logic: 'or' };
|
|
15
|
+
this.filters = [];
|
|
16
|
+
this.isEditorDisabled = false;
|
|
17
|
+
}
|
|
18
|
+
FilterService.prototype.addFilterGroup = function (item) {
|
|
19
|
+
var filterGroup = { logic: 'or', filters: [] };
|
|
20
|
+
item.filters.push(filterGroup);
|
|
21
|
+
};
|
|
22
|
+
FilterService.prototype.addFilterExpression = function (item) {
|
|
23
|
+
var filterExpression = { operator: 'eq', value: null, field: null };
|
|
24
|
+
item.filters.push(filterExpression);
|
|
25
|
+
};
|
|
26
|
+
FilterService.prototype.remove = function (item, positionIndex, parentItem) {
|
|
27
|
+
var _this = this;
|
|
28
|
+
if (!parentItem) {
|
|
29
|
+
parentItem = this.value;
|
|
30
|
+
}
|
|
31
|
+
if (item === parentItem) {
|
|
32
|
+
parentItem.filters = [];
|
|
33
|
+
return;
|
|
34
|
+
}
|
|
35
|
+
var index = parentItem.filters.indexOf(item);
|
|
36
|
+
if (index >= 0 && index === positionIndex) {
|
|
37
|
+
parentItem.filters = parentItem.filters.filter(function (i) { return i !== item; });
|
|
38
|
+
return;
|
|
39
|
+
}
|
|
40
|
+
parentItem.filters.forEach(function (filter) { return filter.filters && _this.remove(item, positionIndex, filter); });
|
|
41
|
+
};
|
|
42
|
+
FilterService = tslib_1.__decorate([
|
|
43
|
+
core_1.Injectable()
|
|
44
|
+
], FilterService);
|
|
45
|
+
return FilterService;
|
|
46
|
+
}());
|
|
47
|
+
exports.FilterService = FilterService;
|
|
@@ -0,0 +1,37 @@
|
|
|
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
|
+
"use strict";
|
|
6
|
+
/**
|
|
7
|
+
* Generated bundle index. Do not edit.
|
|
8
|
+
*/
|
|
9
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
10
|
+
var tslib_1 = require("tslib");
|
|
11
|
+
tslib_1.__exportStar(require("./main"), exports);
|
|
12
|
+
var aria_label_directive_1 = require("./aria-label.directive");
|
|
13
|
+
exports.AriaLabelValueDirective = aria_label_directive_1.AriaLabelValueDirective
|
|
14
|
+
var boolean_editor_component_1 = require("./editors/boolean-editor.component");
|
|
15
|
+
exports.FilterBooleanEditorComponent = boolean_editor_component_1.FilterBooleanEditorComponent
|
|
16
|
+
var date_editor_component_1 = require("./editors/date-editor.component");
|
|
17
|
+
exports.FilterDateEditorComponent = date_editor_component_1.FilterDateEditorComponent
|
|
18
|
+
var numeric_editor_component_1 = require("./editors/numeric-editor.component");
|
|
19
|
+
exports.FilterNumericEditorComponent = numeric_editor_component_1.FilterNumericEditorComponent
|
|
20
|
+
var text_editor_component_1 = require("./editors/text-editor.component");
|
|
21
|
+
exports.FilterTextEditorComponent = text_editor_component_1.FilterTextEditorComponent
|
|
22
|
+
var filter_expression_operators_component_1 = require("./filter-expression-operators.component");
|
|
23
|
+
exports.FilterExpressionOperatorsComponent = filter_expression_operators_component_1.FilterExpressionOperatorsComponent
|
|
24
|
+
var filter_expression_component_1 = require("./filter-expression.component");
|
|
25
|
+
exports.FilterExpressionComponent = filter_expression_component_1.FilterExpressionComponent
|
|
26
|
+
var filter_group_component_1 = require("./filter-group.component");
|
|
27
|
+
exports.FilterGroupComponent = filter_group_component_1.FilterGroupComponent
|
|
28
|
+
var filter_service_1 = require("./filter.service");
|
|
29
|
+
exports.FilterService = filter_service_1.FilterService
|
|
30
|
+
var custom_messages_component_1 = require("./localization/custom-messages.component");
|
|
31
|
+
exports.CustomMessagesComponent = custom_messages_component_1.CustomMessagesComponent
|
|
32
|
+
var localized_messages_directive_1 = require("./localization/localized-messages.directive");
|
|
33
|
+
exports.LocalizedMessagesDirective = localized_messages_directive_1.LocalizedMessagesDirective
|
|
34
|
+
var messages_1 = require("./localization/messages");
|
|
35
|
+
exports.Messages = messages_1.Messages
|
|
36
|
+
var shared_module_1 = require("./shared.module");
|
|
37
|
+
exports.SharedModule = shared_module_1.SharedModule
|
|
@@ -0,0 +1,46 @@
|
|
|
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
|
+
"use strict";
|
|
6
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
7
|
+
var tslib_1 = require("tslib");
|
|
8
|
+
var core_1 = require("@angular/core");
|
|
9
|
+
var kendo_angular_l10n_1 = require("@progress/kendo-angular-l10n");
|
|
10
|
+
var messages_1 = require("./messages");
|
|
11
|
+
/**
|
|
12
|
+
* Custom component messages override default component messages
|
|
13
|
+
* ([see example]({% slug globalization_filter %}#toc-localization)).
|
|
14
|
+
*/
|
|
15
|
+
var CustomMessagesComponent = /** @class */ (function (_super) {
|
|
16
|
+
tslib_1.__extends(CustomMessagesComponent, _super);
|
|
17
|
+
function CustomMessagesComponent(service) {
|
|
18
|
+
var _this = _super.call(this) || this;
|
|
19
|
+
_this.service = service;
|
|
20
|
+
return _this;
|
|
21
|
+
}
|
|
22
|
+
CustomMessagesComponent_1 = CustomMessagesComponent;
|
|
23
|
+
Object.defineProperty(CustomMessagesComponent.prototype, "override", {
|
|
24
|
+
get: function () {
|
|
25
|
+
return true;
|
|
26
|
+
},
|
|
27
|
+
enumerable: true,
|
|
28
|
+
configurable: true
|
|
29
|
+
});
|
|
30
|
+
var CustomMessagesComponent_1;
|
|
31
|
+
CustomMessagesComponent = CustomMessagesComponent_1 = tslib_1.__decorate([
|
|
32
|
+
core_1.Component({
|
|
33
|
+
providers: [
|
|
34
|
+
{
|
|
35
|
+
provide: messages_1.Messages,
|
|
36
|
+
useExisting: core_1.forwardRef(function () { return CustomMessagesComponent_1; })
|
|
37
|
+
}
|
|
38
|
+
],
|
|
39
|
+
selector: 'kendo-filter-messages',
|
|
40
|
+
template: ""
|
|
41
|
+
}),
|
|
42
|
+
tslib_1.__metadata("design:paramtypes", [kendo_angular_l10n_1.LocalizationService])
|
|
43
|
+
], CustomMessagesComponent);
|
|
44
|
+
return CustomMessagesComponent;
|
|
45
|
+
}(messages_1.Messages));
|
|
46
|
+
exports.CustomMessagesComponent = CustomMessagesComponent;
|
|
@@ -0,0 +1,37 @@
|
|
|
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
|
+
"use strict";
|
|
6
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
7
|
+
var tslib_1 = require("tslib");
|
|
8
|
+
var core_1 = require("@angular/core");
|
|
9
|
+
var kendo_angular_l10n_1 = require("@progress/kendo-angular-l10n");
|
|
10
|
+
var messages_1 = require("./messages");
|
|
11
|
+
/**
|
|
12
|
+
* @hidden
|
|
13
|
+
*/
|
|
14
|
+
var LocalizedMessagesDirective = /** @class */ (function (_super) {
|
|
15
|
+
tslib_1.__extends(LocalizedMessagesDirective, _super);
|
|
16
|
+
function LocalizedMessagesDirective(service) {
|
|
17
|
+
var _this = _super.call(this) || this;
|
|
18
|
+
_this.service = service;
|
|
19
|
+
return _this;
|
|
20
|
+
}
|
|
21
|
+
LocalizedMessagesDirective_1 = LocalizedMessagesDirective;
|
|
22
|
+
var LocalizedMessagesDirective_1;
|
|
23
|
+
LocalizedMessagesDirective = LocalizedMessagesDirective_1 = tslib_1.__decorate([
|
|
24
|
+
core_1.Directive({
|
|
25
|
+
providers: [
|
|
26
|
+
{
|
|
27
|
+
provide: messages_1.Messages,
|
|
28
|
+
useExisting: core_1.forwardRef(function () { return LocalizedMessagesDirective_1; })
|
|
29
|
+
}
|
|
30
|
+
],
|
|
31
|
+
selector: '[kendoFilterLocalizedMessages]'
|
|
32
|
+
}),
|
|
33
|
+
tslib_1.__metadata("design:paramtypes", [kendo_angular_l10n_1.LocalizationService])
|
|
34
|
+
], LocalizedMessagesDirective);
|
|
35
|
+
return LocalizedMessagesDirective;
|
|
36
|
+
}(messages_1.Messages));
|
|
37
|
+
exports.LocalizedMessagesDirective = LocalizedMessagesDirective;
|
|
@@ -0,0 +1,168 @@
|
|
|
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
|
+
"use strict";
|
|
6
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
7
|
+
var tslib_1 = require("tslib");
|
|
8
|
+
var core_1 = require("@angular/core");
|
|
9
|
+
var kendo_angular_l10n_1 = require("@progress/kendo-angular-l10n");
|
|
10
|
+
/**
|
|
11
|
+
* @hidden
|
|
12
|
+
*/
|
|
13
|
+
var Messages = /** @class */ (function (_super) {
|
|
14
|
+
tslib_1.__extends(Messages, _super);
|
|
15
|
+
function Messages() {
|
|
16
|
+
return _super !== null && _super.apply(this, arguments) || this;
|
|
17
|
+
}
|
|
18
|
+
tslib_1.__decorate([
|
|
19
|
+
core_1.Input(),
|
|
20
|
+
tslib_1.__metadata("design:type", String)
|
|
21
|
+
], Messages.prototype, "filterExpressionOperators", void 0);
|
|
22
|
+
tslib_1.__decorate([
|
|
23
|
+
core_1.Input(),
|
|
24
|
+
tslib_1.__metadata("design:type", String)
|
|
25
|
+
], Messages.prototype, "filterExpressionFilters", void 0);
|
|
26
|
+
tslib_1.__decorate([
|
|
27
|
+
core_1.Input(),
|
|
28
|
+
tslib_1.__metadata("design:type", String)
|
|
29
|
+
], Messages.prototype, "remove", void 0);
|
|
30
|
+
tslib_1.__decorate([
|
|
31
|
+
core_1.Input(),
|
|
32
|
+
tslib_1.__metadata("design:type", String)
|
|
33
|
+
], Messages.prototype, "addGroup", void 0);
|
|
34
|
+
tslib_1.__decorate([
|
|
35
|
+
core_1.Input(),
|
|
36
|
+
tslib_1.__metadata("design:type", String)
|
|
37
|
+
], Messages.prototype, "addFilter", void 0);
|
|
38
|
+
tslib_1.__decorate([
|
|
39
|
+
core_1.Input(),
|
|
40
|
+
tslib_1.__metadata("design:type", String)
|
|
41
|
+
], Messages.prototype, "filterAndLogic", void 0);
|
|
42
|
+
tslib_1.__decorate([
|
|
43
|
+
core_1.Input(),
|
|
44
|
+
tslib_1.__metadata("design:type", String)
|
|
45
|
+
], Messages.prototype, "filterOrLogic", void 0);
|
|
46
|
+
tslib_1.__decorate([
|
|
47
|
+
core_1.Input(),
|
|
48
|
+
tslib_1.__metadata("design:type", String)
|
|
49
|
+
], Messages.prototype, "filterEqOperator", void 0);
|
|
50
|
+
tslib_1.__decorate([
|
|
51
|
+
core_1.Input(),
|
|
52
|
+
tslib_1.__metadata("design:type", String)
|
|
53
|
+
], Messages.prototype, "filterNotEqOperator", void 0);
|
|
54
|
+
tslib_1.__decorate([
|
|
55
|
+
core_1.Input(),
|
|
56
|
+
tslib_1.__metadata("design:type", String)
|
|
57
|
+
], Messages.prototype, "filterIsNullOperator", void 0);
|
|
58
|
+
tslib_1.__decorate([
|
|
59
|
+
core_1.Input(),
|
|
60
|
+
tslib_1.__metadata("design:type", String)
|
|
61
|
+
], Messages.prototype, "filterIsNotNullOperator", void 0);
|
|
62
|
+
tslib_1.__decorate([
|
|
63
|
+
core_1.Input(),
|
|
64
|
+
tslib_1.__metadata("design:type", String)
|
|
65
|
+
], Messages.prototype, "filterIsEmptyOperator", void 0);
|
|
66
|
+
tslib_1.__decorate([
|
|
67
|
+
core_1.Input(),
|
|
68
|
+
tslib_1.__metadata("design:type", String)
|
|
69
|
+
], Messages.prototype, "filterIsNotEmptyOperator", void 0);
|
|
70
|
+
tslib_1.__decorate([
|
|
71
|
+
core_1.Input(),
|
|
72
|
+
tslib_1.__metadata("design:type", String)
|
|
73
|
+
], Messages.prototype, "filterStartsWithOperator", void 0);
|
|
74
|
+
tslib_1.__decorate([
|
|
75
|
+
core_1.Input(),
|
|
76
|
+
tslib_1.__metadata("design:type", String)
|
|
77
|
+
], Messages.prototype, "filterContainsOperator", void 0);
|
|
78
|
+
tslib_1.__decorate([
|
|
79
|
+
core_1.Input(),
|
|
80
|
+
tslib_1.__metadata("design:type", String)
|
|
81
|
+
], Messages.prototype, "filterNotContainsOperator", void 0);
|
|
82
|
+
tslib_1.__decorate([
|
|
83
|
+
core_1.Input(),
|
|
84
|
+
tslib_1.__metadata("design:type", String)
|
|
85
|
+
], Messages.prototype, "filterEndsWithOperator", void 0);
|
|
86
|
+
tslib_1.__decorate([
|
|
87
|
+
core_1.Input(),
|
|
88
|
+
tslib_1.__metadata("design:type", String)
|
|
89
|
+
], Messages.prototype, "filterGteOperator", void 0);
|
|
90
|
+
tslib_1.__decorate([
|
|
91
|
+
core_1.Input(),
|
|
92
|
+
tslib_1.__metadata("design:type", String)
|
|
93
|
+
], Messages.prototype, "filterGtOperator", void 0);
|
|
94
|
+
tslib_1.__decorate([
|
|
95
|
+
core_1.Input(),
|
|
96
|
+
tslib_1.__metadata("design:type", String)
|
|
97
|
+
], Messages.prototype, "filterLteOperator", void 0);
|
|
98
|
+
tslib_1.__decorate([
|
|
99
|
+
core_1.Input(),
|
|
100
|
+
tslib_1.__metadata("design:type", String)
|
|
101
|
+
], Messages.prototype, "filterLtOperator", void 0);
|
|
102
|
+
tslib_1.__decorate([
|
|
103
|
+
core_1.Input(),
|
|
104
|
+
tslib_1.__metadata("design:type", String)
|
|
105
|
+
], Messages.prototype, "filterIsTrue", void 0);
|
|
106
|
+
tslib_1.__decorate([
|
|
107
|
+
core_1.Input(),
|
|
108
|
+
tslib_1.__metadata("design:type", String)
|
|
109
|
+
], Messages.prototype, "filterIsFalse", void 0);
|
|
110
|
+
tslib_1.__decorate([
|
|
111
|
+
core_1.Input(),
|
|
112
|
+
tslib_1.__metadata("design:type", String)
|
|
113
|
+
], Messages.prototype, "filterBooleanAll", void 0);
|
|
114
|
+
tslib_1.__decorate([
|
|
115
|
+
core_1.Input(),
|
|
116
|
+
tslib_1.__metadata("design:type", String)
|
|
117
|
+
], Messages.prototype, "filterAfterOrEqualOperator", void 0);
|
|
118
|
+
tslib_1.__decorate([
|
|
119
|
+
core_1.Input(),
|
|
120
|
+
tslib_1.__metadata("design:type", String)
|
|
121
|
+
], Messages.prototype, "filterAfterOperator", void 0);
|
|
122
|
+
tslib_1.__decorate([
|
|
123
|
+
core_1.Input(),
|
|
124
|
+
tslib_1.__metadata("design:type", String)
|
|
125
|
+
], Messages.prototype, "filterBeforeOperator", void 0);
|
|
126
|
+
tslib_1.__decorate([
|
|
127
|
+
core_1.Input(),
|
|
128
|
+
tslib_1.__metadata("design:type", String)
|
|
129
|
+
], Messages.prototype, "filterBeforeOrEqualOperator", void 0);
|
|
130
|
+
tslib_1.__decorate([
|
|
131
|
+
core_1.Input(),
|
|
132
|
+
tslib_1.__metadata("design:type", String)
|
|
133
|
+
], Messages.prototype, "editorNumericDecrement", void 0);
|
|
134
|
+
tslib_1.__decorate([
|
|
135
|
+
core_1.Input(),
|
|
136
|
+
tslib_1.__metadata("design:type", String)
|
|
137
|
+
], Messages.prototype, "editorNumericIncrement", void 0);
|
|
138
|
+
tslib_1.__decorate([
|
|
139
|
+
core_1.Input(),
|
|
140
|
+
tslib_1.__metadata("design:type", String)
|
|
141
|
+
], Messages.prototype, "editorDateTodayText", void 0);
|
|
142
|
+
tslib_1.__decorate([
|
|
143
|
+
core_1.Input(),
|
|
144
|
+
tslib_1.__metadata("design:type", String)
|
|
145
|
+
], Messages.prototype, "editorDateToggleText", void 0);
|
|
146
|
+
tslib_1.__decorate([
|
|
147
|
+
core_1.Input(),
|
|
148
|
+
tslib_1.__metadata("design:type", String)
|
|
149
|
+
], Messages.prototype, "filterFieldAriaLabel", void 0);
|
|
150
|
+
tslib_1.__decorate([
|
|
151
|
+
core_1.Input(),
|
|
152
|
+
tslib_1.__metadata("design:type", String)
|
|
153
|
+
], Messages.prototype, "filterOperatorAriaLabel", void 0);
|
|
154
|
+
tslib_1.__decorate([
|
|
155
|
+
core_1.Input(),
|
|
156
|
+
tslib_1.__metadata("design:type", String)
|
|
157
|
+
], Messages.prototype, "filterValueAriaLabel", void 0);
|
|
158
|
+
tslib_1.__decorate([
|
|
159
|
+
core_1.Input(),
|
|
160
|
+
tslib_1.__metadata("design:type", String)
|
|
161
|
+
], Messages.prototype, "filterAriaLabel", void 0);
|
|
162
|
+
tslib_1.__decorate([
|
|
163
|
+
core_1.Input(),
|
|
164
|
+
tslib_1.__metadata("design:type", String)
|
|
165
|
+
], Messages.prototype, "filterToolbarAriaLabel", void 0);
|
|
166
|
+
return Messages;
|
|
167
|
+
}(kendo_angular_l10n_1.ComponentMessages));
|
|
168
|
+
exports.Messages = Messages;
|
package/dist/npm/main.js
ADDED
|
@@ -0,0 +1,10 @@
|
|
|
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
|
+
"use strict";
|
|
6
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
7
|
+
var filter_component_1 = require("./filter.component");
|
|
8
|
+
exports.FilterComponent = filter_component_1.FilterComponent;
|
|
9
|
+
var filter_module_1 = require("./filter.module");
|
|
10
|
+
exports.FilterModule = filter_module_1.FilterModule;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/**-----------------------------------------------------------------------------------------
|
|
2
|
+
* Copyright © 2021 Progress Software Corporation. All rights reserved.
|
|
3
|
+
* Licensed under commercial license. See LICENSE.md in the project root for more information
|
|
4
|
+
*-------------------------------------------------------------------------------------------*/
|
|
5
|
+
"use strict";
|
|
6
|
+
/**
|
|
7
|
+
* Represents the FilterOperator type.
|
|
8
|
+
*/
|
|
9
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|