@progress/kendo-angular-filter 0.1.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/LICENSE.md +11 -0
- package/NOTICE.txt +654 -0
- package/README.md +31 -0
- package/dist/cdn/js/kendo-angular-filter.js +150 -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 +41 -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 +121 -0
- package/dist/es/filter-group.component.js +69 -0
- package/dist/es/filter.component.js +185 -0
- package/dist/es/filter.module.js +91 -0
- package/dist/es/filter.service.js +84 -0
- package/dist/es/index.js +21 -0
- 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/dist/es/model/filter-expression.js +7 -0
- package/dist/es/package-metadata.js +15 -0
- package/dist/es/shared.module.js +37 -0
- package/dist/es/util.js +129 -0
- package/dist/es2015/aria-label.directive.d.ts +15 -0
- package/dist/es2015/aria-label.directive.js +29 -0
- package/dist/es2015/editors/boolean-editor.component.d.ts +25 -0
- package/dist/es2015/editors/boolean-editor.component.js +53 -0
- package/dist/es2015/editors/date-editor.component.d.ts +20 -0
- package/dist/es2015/editors/date-editor.component.js +56 -0
- package/dist/es2015/editors/numeric-editor.component.d.ts +20 -0
- package/dist/es2015/editors/numeric-editor.component.js +56 -0
- package/dist/es2015/editors/text-editor.component.d.ts +20 -0
- package/dist/es2015/editors/text-editor.component.js +52 -0
- package/dist/es2015/filter-expression-operators.component.d.ts +24 -0
- package/dist/es2015/filter-expression-operators.component.js +59 -0
- package/dist/es2015/filter-expression.component.d.ts +40 -0
- package/dist/es2015/filter-expression.component.js +160 -0
- package/dist/es2015/filter-group.component.d.ts +29 -0
- package/dist/es2015/filter-group.component.js +131 -0
- package/dist/es2015/filter.component.d.ts +80 -0
- package/dist/es2015/filter.component.js +298 -0
- package/dist/es2015/filter.module.d.ts +37 -0
- package/dist/es2015/filter.module.js +88 -0
- package/dist/es2015/filter.service.d.ts +43 -0
- package/dist/es2015/filter.service.js +66 -0
- package/dist/es2015/index.d.ts +21 -0
- package/dist/es2015/index.js +21 -0
- package/dist/es2015/index.metadata.json +1 -0
- package/dist/es2015/localization/custom-messages.component.d.ts +15 -0
- package/dist/es2015/localization/custom-messages.component.js +36 -0
- package/dist/es2015/localization/localized-messages.directive.d.ts +13 -0
- package/dist/es2015/localization/localized-messages.directive.js +31 -0
- package/dist/es2015/localization/messages.d.ts +158 -0
- package/dist/es2015/localization/messages.js +160 -0
- package/dist/es2015/main.d.ts +7 -0
- package/dist/es2015/main.js +6 -0
- package/dist/es2015/model/filter-expression.d.ts +60 -0
- package/dist/es2015/model/filter-expression.js +7 -0
- package/dist/es2015/package-metadata.d.ts +9 -0
- package/dist/es2015/package-metadata.js +15 -0
- package/dist/es2015/shared.module.d.ts +9 -0
- package/dist/es2015/shared.module.js +34 -0
- package/dist/es2015/util.d.ts +140 -0
- package/dist/es2015/util.js +129 -0
- package/dist/fesm2015/index.js +1282 -0
- package/dist/fesm5/index.js +1058 -0
- package/dist/npm/aria-label.directive.js +32 -0
- package/dist/npm/editors/boolean-editor.component.js +43 -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 +123 -0
- package/dist/npm/filter-group.component.js +71 -0
- package/dist/npm/filter.component.js +187 -0
- package/dist/npm/filter.module.js +93 -0
- package/dist/npm/filter.service.js +86 -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 +39 -0
- package/dist/npm/util.js +131 -0
- package/dist/systemjs/kendo-angular-filter.js +5 -0
- package/package.json +158 -0
- package/schematics/collection.json +12 -0
- package/schematics/ngAdd/index.js +12 -0
- package/schematics/ngAdd/index.js.map +1 -0
- package/schematics/ngAdd/schema.json +28 -0
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 });
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
/**-----------------------------------------------------------------------------------------
|
|
2
|
+
* Copyright © 2021 Progress Software Corporation. All rights reserved.
|
|
3
|
+
* Licensed under commercial license. See LICENSE.md in the project root for more information
|
|
4
|
+
*-------------------------------------------------------------------------------------------*/
|
|
5
|
+
"use strict";
|
|
6
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
7
|
+
/**
|
|
8
|
+
* @hidden
|
|
9
|
+
*/
|
|
10
|
+
exports.packageMetadata = {
|
|
11
|
+
name: '@progress/kendo-angular-filter',
|
|
12
|
+
productName: 'Kendo UI for Angular',
|
|
13
|
+
productCodes: ['KENDOUIANGULAR', 'KENDOUICOMPLETE'],
|
|
14
|
+
publishDate: 1642514456,
|
|
15
|
+
version: '',
|
|
16
|
+
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'
|
|
17
|
+
};
|
|
@@ -0,0 +1,39 @@
|
|
|
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 common_1 = require("@angular/common");
|
|
9
|
+
var kendo_angular_dropdowns_1 = require("@progress/kendo-angular-dropdowns");
|
|
10
|
+
var kendo_angular_inputs_1 = require("@progress/kendo-angular-inputs");
|
|
11
|
+
var kendo_angular_label_1 = require("@progress/kendo-angular-label");
|
|
12
|
+
var core_1 = require("@angular/core");
|
|
13
|
+
var kendo_angular_buttons_1 = require("@progress/kendo-angular-buttons");
|
|
14
|
+
var filter_service_1 = require("./filter.service");
|
|
15
|
+
var kendo_angular_dateinputs_1 = require("@progress/kendo-angular-dateinputs");
|
|
16
|
+
var importedModules = [
|
|
17
|
+
common_1.CommonModule,
|
|
18
|
+
kendo_angular_inputs_1.InputsModule,
|
|
19
|
+
kendo_angular_label_1.LabelModule,
|
|
20
|
+
kendo_angular_dropdowns_1.DropDownsModule,
|
|
21
|
+
kendo_angular_buttons_1.ButtonsModule,
|
|
22
|
+
kendo_angular_dateinputs_1.DateInputsModule
|
|
23
|
+
];
|
|
24
|
+
/**
|
|
25
|
+
* @hidden
|
|
26
|
+
*/
|
|
27
|
+
var SharedModule = /** @class */ (function () {
|
|
28
|
+
function SharedModule() {
|
|
29
|
+
}
|
|
30
|
+
SharedModule = tslib_1.__decorate([
|
|
31
|
+
core_1.NgModule({
|
|
32
|
+
imports: importedModules.slice(),
|
|
33
|
+
exports: importedModules.slice(),
|
|
34
|
+
providers: [filter_service_1.FilterService]
|
|
35
|
+
})
|
|
36
|
+
], SharedModule);
|
|
37
|
+
return SharedModule;
|
|
38
|
+
}());
|
|
39
|
+
exports.SharedModule = SharedModule;
|
package/dist/npm/util.js
ADDED
|
@@ -0,0 +1,131 @@
|
|
|
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
|
+
/**
|
|
8
|
+
* @hidden
|
|
9
|
+
*/
|
|
10
|
+
exports.nullOperators = ["isnull", "isnotnull", "isempty", "isnotempty"];
|
|
11
|
+
/**
|
|
12
|
+
* @hidden
|
|
13
|
+
*/
|
|
14
|
+
exports.numericOperators = [
|
|
15
|
+
{ text: "Is equal to", value: "eq" },
|
|
16
|
+
{ text: "Not equal to", value: "neq" },
|
|
17
|
+
{ text: "Greater than or equal to", value: "gte" },
|
|
18
|
+
{ text: "Greater than", value: "gt" },
|
|
19
|
+
{ text: "Less than or equal to", value: "lte" },
|
|
20
|
+
{ text: "Less than", value: "lt" },
|
|
21
|
+
{ text: "Is null", value: "isnull" },
|
|
22
|
+
{ text: "Is not null", value: "isnotnull" }
|
|
23
|
+
];
|
|
24
|
+
/**
|
|
25
|
+
* @hidden
|
|
26
|
+
*/
|
|
27
|
+
exports.stringOperators = [
|
|
28
|
+
{ text: "Is equal to", value: "eq" },
|
|
29
|
+
{ text: "Not equal to", value: "neq" },
|
|
30
|
+
{ text: "Contains", value: "contains" },
|
|
31
|
+
{ text: "Does not contain", value: "doesnotcontain" },
|
|
32
|
+
{ text: "Starts with", value: "startswith" },
|
|
33
|
+
{ text: "Ends with", value: "endswith" },
|
|
34
|
+
{ text: "Is null", value: "isnull" },
|
|
35
|
+
{ text: "Is not null", value: "isnotnull" },
|
|
36
|
+
{ text: "Is empty", value: "isempty" },
|
|
37
|
+
{ text: "Is not empty", value: "isnotempty" }
|
|
38
|
+
];
|
|
39
|
+
/**
|
|
40
|
+
* @hidden
|
|
41
|
+
*/
|
|
42
|
+
exports.booleanOperators = [
|
|
43
|
+
{ text: "Is equal to", value: "eq" },
|
|
44
|
+
{ text: "Is not equal to", value: "neq" }
|
|
45
|
+
];
|
|
46
|
+
/**
|
|
47
|
+
* @hidden
|
|
48
|
+
*/
|
|
49
|
+
exports.dateOperators = [
|
|
50
|
+
{ text: "Is equal to", value: "eq" },
|
|
51
|
+
{ text: "Not equal to", value: "neq" },
|
|
52
|
+
{ text: "Greater than or equal to", value: "gte" },
|
|
53
|
+
{ text: "Greater than", value: "gt" },
|
|
54
|
+
{ text: "Less than or equal to", value: "lte" },
|
|
55
|
+
{ text: "Less than", value: "lt" },
|
|
56
|
+
{ text: "Is null", value: "isnull" },
|
|
57
|
+
{ text: "Is not null", value: "isnotnull" }
|
|
58
|
+
];
|
|
59
|
+
/**
|
|
60
|
+
* @hidden
|
|
61
|
+
*/
|
|
62
|
+
exports.isArray = function (value) { return Array.isArray(value); };
|
|
63
|
+
/**
|
|
64
|
+
* @hidden
|
|
65
|
+
*/
|
|
66
|
+
exports.getKeyByValue = function (object, value) {
|
|
67
|
+
return Object.keys(object).find(function (key) { return object[key] === value; });
|
|
68
|
+
};
|
|
69
|
+
/**
|
|
70
|
+
* @hidden
|
|
71
|
+
*/
|
|
72
|
+
exports.defaultStringOperators = {
|
|
73
|
+
"filterEqOperator": "eq",
|
|
74
|
+
"filterNotEqOperator": "neq",
|
|
75
|
+
"filterContainsOperator": "contains",
|
|
76
|
+
"filterNotContainsOperator": "doesnotcontain",
|
|
77
|
+
"filterStartsWithOperator": "startswith",
|
|
78
|
+
"filterEndsWithOperator": "endswith",
|
|
79
|
+
"filterIsNullOperator": "isnull",
|
|
80
|
+
"filterIsNotNullOperator": "isnotnull",
|
|
81
|
+
"filterIsEmptyOperator": "isempty",
|
|
82
|
+
"filterIsNotEmptyOperator": "isnotempty"
|
|
83
|
+
};
|
|
84
|
+
/**
|
|
85
|
+
* @hidden
|
|
86
|
+
*/
|
|
87
|
+
exports.defaultNumericOperators = {
|
|
88
|
+
"filterEqOperator": "eq",
|
|
89
|
+
"filterNotEqOperator": "neq",
|
|
90
|
+
"filterGteOperator": "gte",
|
|
91
|
+
"filterGtOperator": "gt",
|
|
92
|
+
"filterLteOperator": "lte",
|
|
93
|
+
"filterLtOperator": "lt",
|
|
94
|
+
"filterIsNullOperator": "isnull",
|
|
95
|
+
"filterIsNotNullOperator": "isnotnull"
|
|
96
|
+
};
|
|
97
|
+
/**
|
|
98
|
+
* @hidden
|
|
99
|
+
*/
|
|
100
|
+
exports.defaultDateOperators = {
|
|
101
|
+
"filterEqOperator": "eq",
|
|
102
|
+
"filterNotEqOperator": "neq",
|
|
103
|
+
"filterAfterOrEqualOperator": "gte",
|
|
104
|
+
"filterAfterOperator": "gt",
|
|
105
|
+
"filterBeforeOrEqualOperator": "lte",
|
|
106
|
+
"filterBeforeOperator": "lt",
|
|
107
|
+
"filterIsNullOperator": "isnull",
|
|
108
|
+
"filterIsNotNullOperator": "isnotnull"
|
|
109
|
+
};
|
|
110
|
+
/**
|
|
111
|
+
* @hidden
|
|
112
|
+
*/
|
|
113
|
+
exports.defaultOperators = {
|
|
114
|
+
string: exports.defaultStringOperators,
|
|
115
|
+
number: exports.defaultNumericOperators,
|
|
116
|
+
date: exports.defaultDateOperators
|
|
117
|
+
};
|
|
118
|
+
/**
|
|
119
|
+
* @hidden
|
|
120
|
+
*/
|
|
121
|
+
exports.logicOperators = {
|
|
122
|
+
"filterAndLogic": 'and',
|
|
123
|
+
"filterOrLogic": 'or'
|
|
124
|
+
};
|
|
125
|
+
/**
|
|
126
|
+
* @hidden
|
|
127
|
+
*/
|
|
128
|
+
exports.isFilterEditor = function (editorType) {
|
|
129
|
+
var supportedEditorTypes = ['string', 'number', 'boolean', 'date'];
|
|
130
|
+
return supportedEditorTypes.indexOf(editorType) >= 0;
|
|
131
|
+
};
|
|
@@ -0,0 +1,5 @@
|
|
|
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
|
+
System.register("@progress/kendo-angular-filter",["@angular/core","@progress/kendo-angular-l10n","tslib","@progress/kendo-licensing","@angular/common","@progress/kendo-angular-dropdowns","@progress/kendo-angular-inputs","@progress/kendo-angular-label","@progress/kendo-angular-buttons","@progress/kendo-angular-dateinputs"],function(n){var a,l,s,d,u,p,f,c,m,g;function t(e){return e.__useDefault?e.default:e}return{setters:[function(e){a=t(e)},function(e){l=t(e)},function(e){s=t(e)},function(e){d=t(e)},function(e){u=t(e)},function(e){p=t(e)},function(e){f=t(e)},function(e){c=t(e)},function(e){m=t(e)},function(e){g=t(e)}],execute:function(){function o(e){if(i[e])return i[e].exports;var t=i[e]={i:e,l:!1,exports:{}};return r[e].call(t.exports,t,t.exports,o),t.l=!0,t.exports}var r,i;i={},o.m=r=[function(e,t){e.exports=a},function(e,t){e.exports=s},function(e,t){e.exports=l},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=r(1),i=r(0),n=r(2),a=r(4);t.localizeOperators=function(r){return function(t){return Object.keys(r).map(function(e){return{text:t.get(e),value:r[e]}})}};Object.defineProperty(l.prototype,"defaultNumericOperators",{get:function(){return t.localizeOperators(a.defaultNumericOperators)(this.localization)},enumerable:!0,configurable:!0}),Object.defineProperty(l.prototype,"defaultStringOperators",{get:function(){return t.localizeOperators(a.defaultStringOperators)(this.localization)},enumerable:!0,configurable:!0}),Object.defineProperty(l.prototype,"defaultDateOperators",{get:function(){return t.localizeOperators(a.defaultDateOperators)(this.localization)},enumerable:!0,configurable:!0}),Object.defineProperty(l.prototype,"logicOperators",{get:function(){return t.localizeOperators(a.logicOperators)(this.localization)},enumerable:!0,configurable:!0}),l.prototype.addFilterGroup=function(e){e.filters.push({logic:"or",filters:[]})},l.prototype.addFilterExpression=function(e){e.filters.push({operator:"eq",value:null,field:null})},l.prototype.remove=function(t,r,e){var o,i=this;e=e||this.value,t!==e?0<=(o=e.filters.indexOf(t))&&o===r?e.filters=e.filters.filter(function(e){return e!==t}):e.filters.forEach(function(e){return e.filters&&i.remove(t,r,e)}):e.filters=[]},n=o.__decorate([i.Injectable(),o.__metadata("design:paramtypes",[n.LocalizationService])],l);function l(e){this.localization=e,this.value={filters:[],logic:"or"},this.filters=[],this.isEditorDisabled=!1}t.FilterService=n},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.nullOperators=["isnull","isnotnull","isempty","isnotempty"],t.numericOperators=[{text:"Is equal to",value:"eq"},{text:"Not equal to",value:"neq"},{text:"Greater than or equal to",value:"gte"},{text:"Greater than",value:"gt"},{text:"Less than or equal to",value:"lte"},{text:"Less than",value:"lt"},{text:"Is null",value:"isnull"},{text:"Is not null",value:"isnotnull"}],t.stringOperators=[{text:"Is equal to",value:"eq"},{text:"Not equal to",value:"neq"},{text:"Contains",value:"contains"},{text:"Does not contain",value:"doesnotcontain"},{text:"Starts with",value:"startswith"},{text:"Ends with",value:"endswith"},{text:"Is null",value:"isnull"},{text:"Is not null",value:"isnotnull"},{text:"Is empty",value:"isempty"},{text:"Is not empty",value:"isnotempty"}],t.booleanOperators=[{text:"Is equal to",value:"eq"},{text:"Is not equal to",value:"neq"}],t.dateOperators=[{text:"Is equal to",value:"eq"},{text:"Not equal to",value:"neq"},{text:"Greater than or equal to",value:"gte"},{text:"Greater than",value:"gt"},{text:"Less than or equal to",value:"lte"},{text:"Less than",value:"lt"},{text:"Is null",value:"isnull"},{text:"Is not null",value:"isnotnull"}],t.isArray=function(e){return Array.isArray(e)},t.getKeyByValue=function(t,r){return Object.keys(t).find(function(e){return t[e]===r})},t.defaultStringOperators={filterEqOperator:"eq",filterNotEqOperator:"neq",filterContainsOperator:"contains",filterNotContainsOperator:"doesnotcontain",filterStartsWithOperator:"startswith",filterEndsWithOperator:"endswith",filterIsNullOperator:"isnull",filterIsNotNullOperator:"isnotnull",filterIsEmptyOperator:"isempty",filterIsNotEmptyOperator:"isnotempty"},t.defaultNumericOperators={filterEqOperator:"eq",filterNotEqOperator:"neq",filterGteOperator:"gte",filterGtOperator:"gt",filterLteOperator:"lte",filterLtOperator:"lt",filterIsNullOperator:"isnull",filterIsNotNullOperator:"isnotnull"},t.defaultDateOperators={filterEqOperator:"eq",filterNotEqOperator:"neq",filterAfterOrEqualOperator:"gte",filterAfterOperator:"gt",filterBeforeOrEqualOperator:"lte",filterBeforeOperator:"lt",filterIsNullOperator:"isnull",filterIsNotNullOperator:"isnotnull"},t.defaultOperators={string:t.defaultStringOperators,number:t.defaultNumericOperators,date:t.defaultDateOperators},t.logicOperators={filterAndLogic:"and",filterOrLogic:"or"},t.isFilterEditor=function(e){return 0<=["string","number","boolean","date"].indexOf(e)}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o,i=r(1),n=r(0),i=(o=r(2).ComponentMessages,i.__extends(a,o),i.__decorate([n.Input(),i.__metadata("design:type",String)],a.prototype,"filterExpressionOperators",void 0),i.__decorate([n.Input(),i.__metadata("design:type",String)],a.prototype,"filterExpressionFilters",void 0),i.__decorate([n.Input(),i.__metadata("design:type",String)],a.prototype,"remove",void 0),i.__decorate([n.Input(),i.__metadata("design:type",String)],a.prototype,"addGroup",void 0),i.__decorate([n.Input(),i.__metadata("design:type",String)],a.prototype,"addExpression",void 0),i.__decorate([n.Input(),i.__metadata("design:type",String)],a.prototype,"filterAndLogic",void 0),i.__decorate([n.Input(),i.__metadata("design:type",String)],a.prototype,"filterOrLogic",void 0),i.__decorate([n.Input(),i.__metadata("design:type",String)],a.prototype,"filterEqOperator",void 0),i.__decorate([n.Input(),i.__metadata("design:type",String)],a.prototype,"filterNotEqOperator",void 0),i.__decorate([n.Input(),i.__metadata("design:type",String)],a.prototype,"filterIsNullOperator",void 0),i.__decorate([n.Input(),i.__metadata("design:type",String)],a.prototype,"filterIsNotNullOperator",void 0),i.__decorate([n.Input(),i.__metadata("design:type",String)],a.prototype,"filterIsEmptyOperator",void 0),i.__decorate([n.Input(),i.__metadata("design:type",String)],a.prototype,"filterIsNotEmptyOperator",void 0),i.__decorate([n.Input(),i.__metadata("design:type",String)],a.prototype,"filterStartsWithOperator",void 0),i.__decorate([n.Input(),i.__metadata("design:type",String)],a.prototype,"filterContainsOperator",void 0),i.__decorate([n.Input(),i.__metadata("design:type",String)],a.prototype,"filterNotContainsOperator",void 0),i.__decorate([n.Input(),i.__metadata("design:type",String)],a.prototype,"filterEndsWithOperator",void 0),i.__decorate([n.Input(),i.__metadata("design:type",String)],a.prototype,"filterGteOperator",void 0),i.__decorate([n.Input(),i.__metadata("design:type",String)],a.prototype,"filterGtOperator",void 0),i.__decorate([n.Input(),i.__metadata("design:type",String)],a.prototype,"filterLteOperator",void 0),i.__decorate([n.Input(),i.__metadata("design:type",String)],a.prototype,"filterLtOperator",void 0),i.__decorate([n.Input(),i.__metadata("design:type",String)],a.prototype,"filterIsTrue",void 0),i.__decorate([n.Input(),i.__metadata("design:type",String)],a.prototype,"filterIsFalse",void 0),i.__decorate([n.Input(),i.__metadata("design:type",String)],a.prototype,"filterBooleanAll",void 0),i.__decorate([n.Input(),i.__metadata("design:type",String)],a.prototype,"filterAfterOrEqualOperator",void 0),i.__decorate([n.Input(),i.__metadata("design:type",String)],a.prototype,"filterAfterOperator",void 0),i.__decorate([n.Input(),i.__metadata("design:type",String)],a.prototype,"filterBeforeOperator",void 0),i.__decorate([n.Input(),i.__metadata("design:type",String)],a.prototype,"filterBeforeOrEqualOperator",void 0),i.__decorate([n.Input(),i.__metadata("design:type",String)],a.prototype,"editorNumericDecrement",void 0),i.__decorate([n.Input(),i.__metadata("design:type",String)],a.prototype,"editorNumericIncrement",void 0),i.__decorate([n.Input(),i.__metadata("design:type",String)],a.prototype,"editorDateTodayText",void 0),i.__decorate([n.Input(),i.__metadata("design:type",String)],a.prototype,"editorDateToggleText",void 0),i.__decorate([n.Input(),i.__metadata("design:type",String)],a.prototype,"filterFieldAriaLabel",void 0),i.__decorate([n.Input(),i.__metadata("design:type",String)],a.prototype,"filterOperatorAriaLabel",void 0),i.__decorate([n.Input(),i.__metadata("design:type",String)],a.prototype,"filterValueAriaLabel",void 0),i.__decorate([n.Input(),i.__metadata("design:type",String)],a.prototype,"filterAriaLabel",void 0),i.__decorate([n.Input(),i.__metadata("design:type",String)],a.prototype,"filterToolbarAriaLabel",void 0),a);function a(){return null!==o&&o.apply(this,arguments)||this}t.Messages=i},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=r(1),i=r(0),n=r(2),a=r(3),l=r(4),s=r(0),d=r(26),u=r(25),s=(Object.defineProperty(p.prototype,"filters",{get:function(){return this.filterService.filters},set:function(e){if(i.isDevMode()&&(!l.isArray(e)||0===e.length))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");this.filterService.filters=e.map(function(e){e=Object.assign({},e);return e.title||(e.title=e.field),e})},enumerable:!0,configurable:!0}),Object.defineProperty(p.prototype,"value",{get:function(){return this.filterService.value},set:function(e){e=JSON.parse(JSON.stringify(e));this.normalizeValue(e),this.filterService.value=e},enumerable:!0,configurable:!0}),p.prototype.ngOnInit=function(){var t=this;if(0===this.filters.length)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");this.localization.changes.subscribe(function(e){e=e.rtl;t.direction=e?"rtl":"ltr",t.cdr.detectChanges()})},p.prototype.ngOnDestroy=function(){this.localization.changes.unsubscribe()},p.prototype.getCurrentFilter=function(){return this.value},p.prototype.getCurrentFilterChildren=function(){return this.value.filters},p.prototype.onValueChange=function(){this.valueChange.emit(this.filterService.value)},p.prototype.normalizeFilter=function(t){var e=this.filterService.filters.find(function(e){return e.field===t.field});if(i.isDevMode()&&!e)throw new Error("There is no user-defined filter with '"+t.field+"' field provided through the [filters] input property.");i.isDevMode()&&"boolean"===e.editor&&!t.value&&!1!==t.value&&console.warn("Provide a value for the boolean '"+t.field+"' user-defined filter as the operator is always set to 'eq'."),"boolean"===e.editor&&(t.operator="eq"),"date"===e.editor&&t.value&&(t.value=new Date(t.value)),t.value||!1===t.value||(t.value=null)},p.prototype.normalizeValue=function(e){var t=this;e.filters.forEach(function(e){e.filters?t.normalizeValue(e):t.normalizeFilter(e)})},o.__decorate([i.HostBinding("attr.dir"),o.__metadata("design:type",String)],p.prototype,"direction",void 0),o.__decorate([i.Input(),o.__metadata("design:type",Array),o.__metadata("design:paramtypes",[Array])],p.prototype,"filters",null),o.__decorate([i.Input(),o.__metadata("design:type",Object),o.__metadata("design:paramtypes",[Object])],p.prototype,"value",null),o.__decorate([i.Output(),o.__metadata("design:type",i.EventEmitter)],p.prototype,"valueChange",void 0),o.__decorate([i.Component({selector:"kendo-filter",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-addExpression="kendo.filter.addExpression|The text of the Add Expression button"\n addExpression="Add Expression"\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'}),o.__metadata("design:paramtypes",[a.FilterService,n.LocalizationService,s.ChangeDetectorRef])],p));function p(e,t,r){this.filterService=e,this.localization=t,this.cdr=r,this.valueChange=new i.EventEmitter,d.validatePackage(u.packageMetadata),this.direction=t.rtl?"rtl":"ltr"}t.FilterComponent=s},function(e,t){e.exports=g},function(e,t){e.exports=m},function(e,t){e.exports=c},function(e,t){e.exports=f},function(e,t){e.exports=p},function(e,t){e.exports=u},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=r(1),i=r(12),n=r(11),a=r(10),l=r(9),s=r(0),d=r(8),u=r(3),r=r(7),r=[i.CommonModule,a.InputsModule,l.LabelModule,n.DropDownsModule,d.ButtonsModule,r.DateInputsModule],u=o.__decorate([s.NgModule({imports:r.slice(),exports:r.slice(),providers:[u.FilterService]})],p);function p(){}t.SharedModule=u},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o,i,n=r(1),a=r(0),l=r(2),r=r(5),l=(o=r.Messages,n.__extends(s,o),i=s,i=n.__decorate([a.Directive({providers:[{provide:r.Messages,useExisting:a.forwardRef(function(){return i})}],selector:"[kendoFilterLocalizedMessages]"}),n.__metadata("design:paramtypes",[l.LocalizationService])],s));function s(e){var t=o.call(this)||this;return t.service=e,t}t.LocalizedMessagesDirective=l},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o,i,n=r(1),a=r(0),l=r(2),r=r(5),l=(o=r.Messages,n.__extends(s,o),i=s,Object.defineProperty(s.prototype,"override",{get:function(){return!0},enumerable:!0,configurable:!0}),i=n.__decorate([a.Component({providers:[{provide:r.Messages,useExisting:a.forwardRef(function(){return i})}],selector:"kendo-filter-messages",template:""}),n.__metadata("design:paramtypes",[l.LocalizationService])],s));function s(e){var t=o.call(this)||this;return t.service=e,t}t.CustomMessagesComponent=l},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=r(1),i=r(0),n=r(2),r=r(3),n=(a.prototype.ngOnInit=function(){this.logicOperators=this.filterService.logicOperators},a.prototype.messageFor=function(e){return this.localization.get(e)},a.prototype.selectedChange=function(e){this.currentItem.logic!==e&&(this.currentItem.logic=e,this.valueChange.emit())},a.prototype.addFilterExpression=function(){this.filterService.addFilterExpression(this.currentItem),this.valueChange.emit()},a.prototype.addFilterGroup=function(){this.filterService.addFilterGroup(this.currentItem),this.valueChange.emit()},a.prototype.removeFilterGroup=function(){this.filterService.remove(this.currentItem,this.index),this.valueChange.emit()},o.__decorate([i.Input(),o.__metadata("design:type",Number)],a.prototype,"index",void 0),o.__decorate([i.Input(),o.__metadata("design:type",Object)],a.prototype,"currentItem",void 0),o.__decorate([i.Output(),o.__metadata("design:type",i.EventEmitter)],a.prototype,"valueChange",void 0),o.__decorate([i.Component({selector:"kendo-filter-group",template:'\n <div class="k-filter-toolbar" role="toolbar" [attr.aria-label]="messageFor(\'filterToolbarAriaLabel\')">\n <div class="k-toolbar">\n <div class="k-filter-toolbar-item">\n <div class="k-widget k-button-group" role="group">\n <button\n *ngFor="let operator of logicOperators"\n kendoButton\n [ngClass]="{\'k-group-start\': operator.value === \'and\', \'k-group-end\': operator.value === \'or\'}"\n [selected]="currentItem.logic === operator.value"\n [title]="operator.text"\n (click)="selectedChange(operator.value)"\n >\n {{operator.text}}\n </button>\n </div>\n </div>\n <div class="k-filter-toolbar-item">\n <button\n kendoButton\n [title]="messageFor(\'addExpression\')"\n icon="filter-add-expression"\n (click)="addFilterExpression()">\n {{messageFor(\'addExpression\')}}\n </button>\n </div>\n <div class="k-filter-toolbar-item">\n <button\n kendoButton\n [title]="messageFor(\'addGroup\')"\n icon="filter-add-group"\n (click)="addFilterGroup()">\n {{messageFor(\'addGroup\')}}\n </button>\n </div>\n <div class="k-filter-toolbar-item">\n <button\n kendoButton\n icon="close"\n look="flat"\n [title]="messageFor(\'remove\')"\n (click)="removeFilterGroup()">\n </button>\n </div>\n </div>\n </div>\n\n <ul class="k-filter-lines" *ngIf="currentItem.filters">\n <ng-container *ngFor="let item of currentItem.filters; let i = index;">\n <li class="k-filter-item" *ngIf="!item.filters">\n <kendo-filter-expression (valueChange)="valueChange.emit()" [currentItem]="item" [index]="i">\n </kendo-filter-expression>\n </li>\n <li class="k-filter-item" *ngIf="item.filters" >\n <kendo-filter-group\n (valueChange)="valueChange.emit()"\n [currentItem]="item"\n [index]="i"\n >\n </kendo-filter-group>\n </li>\n </ng-container>\n </ul>\n '}),o.__metadata("design:paramtypes",[r.FilterService,n.LocalizationService])],a));function a(e,t){this.filterService=e,this.localization=t,this.index=0,this.currentItem={logic:"or",filters:[]},this.valueChange=new i.EventEmitter,this.logicOperators=[]}t.FilterGroupComponent=n},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=r(1),i=r(0),n=r(2),a=r(3),l=r(4),n=(s.prototype.ngOnInit=function(){var e;this.filters=this.filterService.filters,this.currentItem.field&&(e=this.getFilterExpressionByField(this.currentItem.field),this.setOperators(e)),this.currentItem.field||(this.currentItem.field=this.filterService.filters[0].field,e=this.getFilterExpressionByField(this.filterService.filters[0].field),this.setOperators(e))},s.prototype.normalizeOperators=function(e,t){for(var r=[],o=0;o<t.length;o++)l.isFilterEditor(e)&&r.push({value:t[o],text:this.localization.get(l.getKeyByValue(l.defaultOperators[e],t[o]))});return r},s.prototype.messageFor=function(e){return this.localization.get(e)},s.prototype.getFilterExpressionByField=function(t){return this.filterService.filters.find(function(e){return e.field===t})||null},s.prototype.filterValueChange=function(e){this.currentItem.value=null,this.currentItem.field=e;e=this.getFilterExpressionByField(this.currentItem.field);this.setOperators(e),this.valueChange.emit()},s.prototype.getDefaultOperators=function(e){switch(e){case"string":return this.filterService.defaultStringOperators;case"number":return this.filterService.defaultNumericOperators;case"date":return this.filterService.defaultDateOperators}},s.prototype.getEditorType=function(){var t=this;return this.filterService.filters.find(function(e){return e.field===t.currentItem.field}).editor},s.prototype.removeFilterExpression=function(){this.filterService.remove(this.currentItem,this.index),this.valueChange.emit()},s.prototype.setOperators=function(e){var t;this.isBoolean="boolean"===e.editor,this.isBoolean||(e.operators?(t=this.normalizeOperators(e.editor,e.operators),this.operators=t,this.currentItem.operator=t[0].value):(this.operators=this.getDefaultOperators(e.editor),this.currentItem.operator=this.operators[0].value))},o.__decorate([i.Input(),o.__metadata("design:type",Number)],s.prototype,"index",void 0),o.__decorate([i.Input(),o.__metadata("design:type",Object)],s.prototype,"currentItem",void 0),o.__decorate([i.Output(),o.__metadata("design:type",i.EventEmitter)],s.prototype,"valueChange",void 0),o.__decorate([i.Component({selector:"kendo-filter-expression",template:'\n <div class="k-filter-toolbar" role="group" [attr.aria-label]="messageFor(\'filterAriaLabel\')">\n <div class="k-toolbar">\n <div class="k-filter-toolbar-item k-filter-field">\n <kendo-dropdownlist\n [kendoAriaLabelValue]="messageFor(\'filterFieldAriaLabel\')"\n [title]="messageFor(\'filterExpressionFilters\')"\n [data]="filters"\n textField="title"\n valueField="field"\n [value]="currentItem.field"\n [valuePrimitive]="true"\n (valueChange)="filterValueChange($event)">\n </kendo-dropdownlist>\n </div>\n <div *ngIf="!isBoolean" class="k-filter-toolbar-item k-filter-operator">\n <kendo-filter-expression-operators\n [currentItem]="currentItem"\n [operators]="operators"\n (valueChange)="valueChange.emit();">\n </kendo-filter-expression-operators>\n </div>\n\n <ng-container [ngSwitch]="getEditorType()">\n <kendo-filter-text-editor *ngSwitchCase="\'string\'" [currentItem]="currentItem" (valueChange)="valueChange.emit()"></kendo-filter-text-editor>\n <kendo-filter-numeric-editor *ngSwitchCase="\'number\'" [currentItem]="currentItem" (valueChange)="valueChange.emit()"></kendo-filter-numeric-editor>\n <kendo-filter-boolean-editor *ngSwitchCase="\'boolean\'" [currentItem]="currentItem" (valueChange)="valueChange.emit()"></kendo-filter-boolean-editor>\n <kendo-filter-date-editor *ngSwitchCase="\'date\'" [currentItem]="currentItem" (valueChange)="valueChange.emit()"></kendo-filter-date-editor>\n </ng-container>\n\n <div class="k-filter-toolbar-item">\n <button\n kendoButton\n icon="close"\n look="flat"\n [title]="messageFor(\'remove\')"\n (click)="removeFilterExpression()">\n </button>\n </div>\n </div>\n </div>\n '}),o.__metadata("design:paramtypes",[a.FilterService,n.LocalizationService])],s));function s(e,t){this.filterService=e,this.localization=t,this.valueChange=new i.EventEmitter,this.operators=[],this.filters=[],this.isBoolean=!1,this.isEditorDisabled=!1}t.FilterExpressionComponent=n},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=r(1),i=r(0),n=r(2),a=r(3),l=r(4),n=(s.prototype.messageFor=function(e){return this.localization.get(e)},s.prototype.operatorValueChange=function(e){this.valueChange.emit(),this.filterService.isEditorDisabled=0<=l.nullOperators.indexOf(e)},o.__decorate([i.Input(),o.__metadata("design:type",Object)],s.prototype,"currentItem",void 0),o.__decorate([i.Output(),o.__metadata("design:type",i.EventEmitter)],s.prototype,"valueChange",void 0),o.__decorate([i.Input(),o.__metadata("design:type",Array)],s.prototype,"operators",void 0),o.__decorate([i.Component({selector:"kendo-filter-expression-operators",template:'\n <kendo-dropdownlist\n [kendoAriaLabelValue]="messageFor(\'filterOperatorAriaLabel\')"\n [data]="operators"\n [title]="messageFor(\'filterExpressionOperators\')"\n [(value)]="currentItem.operator"\n (valueChange)="operatorValueChange($event)"\n [valuePrimitive]="true"\n textField="text"\n valueField="value"\n >\n </kendo-dropdownlist>\n '}),o.__metadata("design:paramtypes",[a.FilterService,n.LocalizationService])],s));function s(e,t){this.filterService=e,this.localization=t,this.valueChange=new i.EventEmitter,this.operators=[]}t.FilterExpressionOperatorsComponent=n},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=r(1),i=r(0),n=r(2),r=r(3),r=(a.prototype.isDisabled=function(){var e=this.filterService.isEditorDisabled;return e&&(this.currentItem.value=null),e},a.prototype.messageFor=function(e){return this.localization.get(e)},o.__decorate([i.Input(),o.__metadata("design:type",Object)],a.prototype,"currentItem",void 0),o.__decorate([i.Output(),o.__metadata("design:type",i.EventEmitter)],a.prototype,"valueChange",void 0),o.__decorate([i.Component({selector:"kendo-filter-text-editor",template:'\n <kendo-textbox\n [kendoAriaLabelValue]="messageFor(\'filterValueAriaLabel\')"\n class="k-filter-toolbar-item k-filter-value"\n [(value)]="currentItem.value"\n (valueChange)="valueChange.emit()"\n [disabled]="isDisabled()">\n </kendo-textbox>\n '}),o.__metadata("design:paramtypes",[n.LocalizationService,r.FilterService])],a));function a(e,t){this.localization=e,this.filterService=t,this.valueChange=new i.EventEmitter}t.FilterTextEditorComponent=r},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=r(1),i=r(0),n=r(2),r=r(3),r=(a.prototype.messageFor=function(e){return this.localization.get(e)},a.prototype.isDisabled=function(){var e=this.filterService.isEditorDisabled;return e&&(this.currentItem.value=null),e},o.__decorate([i.Input(),o.__metadata("design:type",Object)],a.prototype,"currentItem",void 0),o.__decorate([i.Output(),o.__metadata("design:type",i.EventEmitter)],a.prototype,"valueChange",void 0),o.__decorate([i.Component({selector:"kendo-filter-numeric-editor",template:'\n <kendo-numerictextbox\n [kendoAriaLabelValue]="messageFor(\'filterValueAriaLabel\')"\n class="k-filter-toolbar-item k-filter-value"\n [(value)]="currentItem.value"\n (valueChange)="valueChange.emit()"\n [disabled]="isDisabled()">\n <kendo-numerictextbox-messages\n [increment]="messageFor(\'editorNumericIncrement\')"\n [decrement]="messageFor(\'editorNumericDecrement\')">\n </kendo-numerictextbox-messages>\n </kendo-numerictextbox>\n '}),o.__metadata("design:paramtypes",[n.LocalizationService,r.FilterService])],a));function a(e,t){this.localization=e,this.filterService=t,this.valueChange=new i.EventEmitter}t.FilterNumericEditorComponent=r},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=r(1),i=r(0),n=r(2),r=r(3),r=(a.prototype.messageFor=function(e){return this.localization.get(e)},a.prototype.isDisabled=function(){var e=this.filterService.isEditorDisabled;return e&&(this.currentItem.value=null),e},o.__decorate([i.Input(),o.__metadata("design:type",Object)],a.prototype,"currentItem",void 0),o.__decorate([i.Output(),o.__metadata("design:type",i.EventEmitter)],a.prototype,"valueChange",void 0),o.__decorate([i.Component({selector:"kendo-filter-date-editor",template:'\n <kendo-datepicker\n [kendoAriaLabelValue]="messageFor(\'filterValueAriaLabel\')"\n class="k-filter-toolbar-item k-filter-value"\n [(value)]="currentItem.value"\n (valueChange)="valueChange.emit()"\n [disabled]="isDisabled()">\n <kendo-datepicker-messages\n [toggle]="messageFor(\'editorDateToggleText\')"\n [today]="messageFor(\'editorDateTodayText\')">\n </kendo-datepicker-messages>\n </kendo-datepicker>\n '}),o.__metadata("design:paramtypes",[n.LocalizationService,r.FilterService])],a));function a(e,t){this.localization=e,this.filterService=t,this.valueChange=new i.EventEmitter}t.FilterDateEditorComponent=r},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=r(1),i=r(0),r=r(2),r=(n.prototype.messageFor=function(e){return this.localization.get(e)},o.__decorate([i.Input(),o.__metadata("design:type",Object)],n.prototype,"currentItem",void 0),o.__decorate([i.Output(),o.__metadata("design:type",i.EventEmitter)],n.prototype,"valueChange",void 0),o.__decorate([i.Component({selector:"kendo-filter-boolean-editor",template:'\n <kendo-dropdownlist\n [kendoAriaLabelValue]="messageFor(\'filterValueAriaLabel\')"\n class="k-filter-toolbar-item k-filter-value"\n [(value)]="currentItem.value"\n (valueChange)="valueChange.emit()"\n [data]="items"\n [defaultItem]="defaultItem"\n [valuePrimitive]="true"\n textField="text"\n valueField="value"\n >\n </kendo-dropdownlist>\n '}),o.__metadata("design:paramtypes",[r.LocalizationService])],n));function n(e){this.localization=e,this.valueChange=new i.EventEmitter,this.items=[{text:this.localization.get("filterIsTrue"),value:!0},{text:this.localization.get("filterIsFalse"),value:!1}],this.defaultItem={text:this.localization.get("filterBooleanAll"),value:null}}t.FilterBooleanEditorComponent=r},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=r(1),r=r(0),r=(i.prototype.ngOnChanges=function(){var e=this.hostElement.nativeElement.querySelector("input")||this.hostElement.nativeElement;this.renderer.setAttribute(e,"aria-label",this.ariaLabel)},o.__decorate([r.Input("kendoAriaLabelValue"),o.__metadata("design:type",String)],i.prototype,"ariaLabel",void 0),o.__decorate([r.Directive({selector:"[kendoAriaLabelValue]"}),o.__metadata("design:paramtypes",[r.ElementRef,r.Renderer2])],i));function i(e,t){this.hostElement=e,this.renderer=t}t.AriaLabelValueDirective=r},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=r(1),i=r(0),n=r(2),a=r(23),l=r(22),s=r(21),d=r(20),u=r(19),p=r(18),f=r(17),c=r(16),m=r(6),g=r(15),v=r(14),r=r(13),n=o.__decorate([i.NgModule({imports:[r.SharedModule],declarations:[m.FilterComponent,d.FilterNumericEditorComponent,u.FilterTextEditorComponent,f.FilterExpressionComponent,c.FilterGroupComponent,p.FilterExpressionOperatorsComponent,l.FilterBooleanEditorComponent,s.FilterDateEditorComponent,v.LocalizedMessagesDirective,g.CustomMessagesComponent,a.AriaLabelValueDirective],exports:[m.FilterComponent,d.FilterNumericEditorComponent,u.FilterTextEditorComponent,f.FilterExpressionComponent,c.FilterGroupComponent,p.FilterExpressionOperatorsComponent,l.FilterBooleanEditorComponent,s.FilterDateEditorComponent,v.LocalizedMessagesDirective,g.CustomMessagesComponent,a.AriaLabelValueDirective],providers:[n.LocalizationService,{provide:n.L10N_PREFIX,useValue:"kendo.filter"}]})],h);function h(){}t.FilterModule=n},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.packageMetadata={name:"@progress/kendo-angular-filter",productName:"Kendo UI for Angular",productCodes:["KENDOUIANGULAR","KENDOUICOMPLETE"],publishDate:1642514456,version:"",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"}},function(e,t){e.exports=d},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=r(6);t.FilterComponent=o.FilterComponent;r=r(24);t.FilterModule=r.FilterModule,function(e){for(var t in e)n(t,e[t])}(t)}],o.c=i,o.d=function(e,t,r){o.o(e,t)||Object.defineProperty(e,t,{configurable:!1,enumerable:!0,get:r})},o.r=function(e){Object.defineProperty(e,"__esModule",{value:!0})},o.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return o.d(t,"a",t),t},o.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},o.p="",o(o.s=27)}}});
|
package/package.json
ADDED
|
@@ -0,0 +1,158 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@progress/kendo-angular-filter",
|
|
3
|
+
"description": "Kendo UI Angular Filter",
|
|
4
|
+
"author": "Progress",
|
|
5
|
+
"license": "SEE LICENSE IN LICENSE.md",
|
|
6
|
+
"version": "0.1.0",
|
|
7
|
+
"main": "dist/npm/index.js",
|
|
8
|
+
"module": "dist/fesm5/index.js",
|
|
9
|
+
"es2015": "dist/fesm2015/index.js",
|
|
10
|
+
"esm5": "dist/es/index.js",
|
|
11
|
+
"esm2015": "dist/es2015/index.js",
|
|
12
|
+
"jsnext:main": "dist/es/index.js",
|
|
13
|
+
"typings": "dist/es2015/index.d.ts",
|
|
14
|
+
"jsdelivr": "dist/cdn/main.js",
|
|
15
|
+
"unpkg": "dist/cdn/main.js",
|
|
16
|
+
"sideEffects": false,
|
|
17
|
+
"scripts": {
|
|
18
|
+
"test": "jest",
|
|
19
|
+
"test:watch": "jest --watch",
|
|
20
|
+
"test:ci": "ci-angular-test",
|
|
21
|
+
"e2e:ci": "ci-angular-e2e",
|
|
22
|
+
"start": "gulp start",
|
|
23
|
+
"lint": "gulp lint && gulp lint-docs && tsc --noEmit",
|
|
24
|
+
"api-check": "gulp api-check",
|
|
25
|
+
"build-package": "gulp build-package",
|
|
26
|
+
"semantic-release": "semantic-release pre && semantic-prerelease publish --public && semantic-release post"
|
|
27
|
+
},
|
|
28
|
+
"keywords": [
|
|
29
|
+
"Kendo UI",
|
|
30
|
+
"Angular"
|
|
31
|
+
],
|
|
32
|
+
"peerDependencies": {
|
|
33
|
+
"@angular/common": "8 - 13",
|
|
34
|
+
"@angular/core": "8 - 13",
|
|
35
|
+
"@progress/kendo-angular-common": "^2.0.0",
|
|
36
|
+
"@progress/kendo-licensing": "^1.0.0",
|
|
37
|
+
"@progress/kendo-angular-buttons": "^6.4.1",
|
|
38
|
+
"@progress/kendo-angular-dateinputs": "^5.3.0",
|
|
39
|
+
"@progress/kendo-angular-dropdowns": "^5.5.0",
|
|
40
|
+
"@progress/kendo-angular-inputs": "^7.5.2",
|
|
41
|
+
"@progress/kendo-angular-intl": "^3.1.2",
|
|
42
|
+
"@progress/kendo-angular-l10n": "^3.0.3",
|
|
43
|
+
"@progress/kendo-angular-label": "^3.1.1",
|
|
44
|
+
"@progress/kendo-data-query": "^1.5.5"
|
|
45
|
+
},
|
|
46
|
+
"dependencies": {
|
|
47
|
+
"@progress/kendo-schematics": "^1.1.0",
|
|
48
|
+
"tslib": "^1.9.0"
|
|
49
|
+
},
|
|
50
|
+
"devDependencies": {
|
|
51
|
+
"@angular-devkit/core": "^8.2.0",
|
|
52
|
+
"@angular-devkit/schematics": "^8.2.0",
|
|
53
|
+
"@angular/animations": "^8.2.0",
|
|
54
|
+
"@angular/common": "^8.2.0",
|
|
55
|
+
"@angular/compiler": "^8.2.0",
|
|
56
|
+
"@angular/compiler-cli": "^8.2.0",
|
|
57
|
+
"@angular/core": "^8.2.0",
|
|
58
|
+
"@angular/forms": "^8.2.0",
|
|
59
|
+
"@angular/platform-browser": "^8.2.0",
|
|
60
|
+
"@angular/platform-browser-dynamic": "^8.2.0",
|
|
61
|
+
"@angular/platform-server": "^8.2.0",
|
|
62
|
+
"@angular/router": "^8.2.0",
|
|
63
|
+
"@progress/kendo-angular-buttons": "^6.4.1",
|
|
64
|
+
"@progress/kendo-angular-dateinputs": "^5.3.0",
|
|
65
|
+
"@progress/kendo-angular-dropdowns": "^5.5.0",
|
|
66
|
+
"@progress/kendo-angular-inputs": "^7.5.2",
|
|
67
|
+
"@progress/kendo-angular-intl": "^3.1.2",
|
|
68
|
+
"@progress/kendo-angular-l10n": "^3.0.3",
|
|
69
|
+
"@progress/kendo-angular-label": "^3.1.1",
|
|
70
|
+
"@progress/kendo-angular-popup": "^4.0.2",
|
|
71
|
+
"@progress/kendo-angular-treeview": "^5.4.2",
|
|
72
|
+
"@progress/kendo-data-query": "^1.5.5",
|
|
73
|
+
"@progress/kendo-drawing": "^1.16.0",
|
|
74
|
+
"@progress/kendo-angular-common": "^2.0.0",
|
|
75
|
+
"@progress/kendo-angular-e2e": "^3.0.0",
|
|
76
|
+
"@progress/kendo-e2e": "^0.7.0",
|
|
77
|
+
"@progress/kendo-angular-jest-preset": "^2.0.0",
|
|
78
|
+
"@progress/kendo-angular-tasks": "^19.0.1",
|
|
79
|
+
"@progress/kendo-licensing": "^1.0.0",
|
|
80
|
+
"@progress/kendo-theme-bootstrap": "^4.43.1-dev.4",
|
|
81
|
+
"@progress/kendo-theme-default": "^4.43.1-dev.4",
|
|
82
|
+
"@progress/kendo-theme-material": "^4.43.1-dev.4",
|
|
83
|
+
"@telerik/semantic-prerelease": "^1.0.0",
|
|
84
|
+
"@types/jest": "^21.1.8",
|
|
85
|
+
"@types/node": "~8.9.4",
|
|
86
|
+
"@types/zone.js": "0.0.27",
|
|
87
|
+
"codelyzer": "^5.0.0",
|
|
88
|
+
"core-js": "^2.2.2",
|
|
89
|
+
"cz-conventional-changelog": "^1.1.5",
|
|
90
|
+
"ghooks": "^1.0.3",
|
|
91
|
+
"gulp": "^4.0.0",
|
|
92
|
+
"jest-cli": "^21.2.1",
|
|
93
|
+
"jest-junit": "^8.0.0",
|
|
94
|
+
"rxjs": "~6.4.0",
|
|
95
|
+
"rxjs-tslint-rules": "^4.23.1",
|
|
96
|
+
"semantic-release": "^6.3.6",
|
|
97
|
+
"tslint": "^5.0.0",
|
|
98
|
+
"typescript": "~3.4.2",
|
|
99
|
+
"validate-commit-msg": "^1.1.1",
|
|
100
|
+
"zone.js": "~0.9.1"
|
|
101
|
+
},
|
|
102
|
+
"config": {
|
|
103
|
+
"commitizen": {
|
|
104
|
+
"path": "./node_modules/cz-conventional-changelog"
|
|
105
|
+
},
|
|
106
|
+
"ghooks": {
|
|
107
|
+
"commit-msg": "validate-commit-msg"
|
|
108
|
+
},
|
|
109
|
+
"validate-commit-msg": {
|
|
110
|
+
"types": [
|
|
111
|
+
"feat",
|
|
112
|
+
"fix",
|
|
113
|
+
"docs",
|
|
114
|
+
"style",
|
|
115
|
+
"refactor",
|
|
116
|
+
"perf",
|
|
117
|
+
"test",
|
|
118
|
+
"chore",
|
|
119
|
+
"revert"
|
|
120
|
+
],
|
|
121
|
+
"warnOnFail": false,
|
|
122
|
+
"maxSubjectLength": 100
|
|
123
|
+
}
|
|
124
|
+
},
|
|
125
|
+
"jest": {
|
|
126
|
+
"preset": "@progress/kendo-angular-jest-preset"
|
|
127
|
+
},
|
|
128
|
+
"repository": {
|
|
129
|
+
"type": "git",
|
|
130
|
+
"url": "https://github.com/telerik/kendo-angular-filter.git"
|
|
131
|
+
},
|
|
132
|
+
"bugs": {
|
|
133
|
+
"url": "https://github.com/telerik/kendo-angular"
|
|
134
|
+
},
|
|
135
|
+
"@progress": {
|
|
136
|
+
"friendlyName": "Filter"
|
|
137
|
+
},
|
|
138
|
+
"homepage": "https://www.telerik.com/kendo-angular-ui/components/",
|
|
139
|
+
"release": {
|
|
140
|
+
"debug": false,
|
|
141
|
+
"branchTags": {
|
|
142
|
+
"develop": "dev"
|
|
143
|
+
},
|
|
144
|
+
"fallbackTags": {
|
|
145
|
+
"dev": "latest"
|
|
146
|
+
},
|
|
147
|
+
"analyzeCommits": "@telerik/semantic-prerelease/analyzeCommits",
|
|
148
|
+
"generateNotes": "@progress/kendo-angular-tasks/lib/generateNotes",
|
|
149
|
+
"getLastRelease": "@telerik/semantic-prerelease/getLastRelease",
|
|
150
|
+
"verifyConditions": "@telerik/semantic-prerelease/verifyConditions",
|
|
151
|
+
"verifyRelease": "@telerik/semantic-prerelease/verifyRelease"
|
|
152
|
+
},
|
|
153
|
+
"schematics": "./schematics/collection.json",
|
|
154
|
+
"files": [
|
|
155
|
+
"dist",
|
|
156
|
+
"schematics"
|
|
157
|
+
]
|
|
158
|
+
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "./node_modules/@angular-devkit/schematics/collection-schema.json",
|
|
3
|
+
"schematics": {
|
|
4
|
+
"ng-add": {
|
|
5
|
+
"description": "Adds Kendo Angular Package to the application.",
|
|
6
|
+
"factory": "./ngAdd",
|
|
7
|
+
"schema": "./ngAdd/schema.json",
|
|
8
|
+
"hidden": true,
|
|
9
|
+
"private": true
|
|
10
|
+
}
|
|
11
|
+
}
|
|
12
|
+
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
const schematics_1 = require("@angular-devkit/schematics");
|
|
4
|
+
function default_1(options) {
|
|
5
|
+
const finalOptions = Object.assign({}, options, { mainNgModule: 'FilterModule', package: 'filter', peerDependencies: {
|
|
6
|
+
// peer dep of the dropdowns
|
|
7
|
+
'@progress/kendo-angular-treeview': '^5.0.0'
|
|
8
|
+
} });
|
|
9
|
+
return schematics_1.externalSchematic('@progress/kendo-schematics', 'ng-add', finalOptions);
|
|
10
|
+
}
|
|
11
|
+
exports.default = default_1;
|
|
12
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../tooling/schematics/ngAdd/index.ts"],"names":[],"mappings":";;AAAA,2DAKoC;AAEpC,mBAAyB,OAAY;IACjC,MAAM,YAAY,qBACX,OAAO,IACV,YAAY,EAAE,cAAc,EAC5B,OAAO,EAAE,QAAQ,EACjB,gBAAgB,EAAE;YACd,4BAA4B;YAC5B,kCAAkC,EAAE,QAAQ;SAC/C,GACJ,CAAC;IAEF,OAAO,8BAAiB,CAAC,4BAA4B,EAAE,QAAQ,EAAE,YAAY,CAAC,CAAC;AACnF,CAAC;AAZD,4BAYC"}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "http://json-schema.org/schema",
|
|
3
|
+
"$id": "SchematicsKendoAngularFilter",
|
|
4
|
+
"title": "Kendo Angular Filter Options Schema",
|
|
5
|
+
"type": "object",
|
|
6
|
+
"properties": {
|
|
7
|
+
"theme": {
|
|
8
|
+
"enum": [
|
|
9
|
+
"default",
|
|
10
|
+
"bootstrap",
|
|
11
|
+
"material"
|
|
12
|
+
],
|
|
13
|
+
"default": "default",
|
|
14
|
+
"description": "The theme to apply"
|
|
15
|
+
},
|
|
16
|
+
"export": {
|
|
17
|
+
"type": "boolean",
|
|
18
|
+
"default": false,
|
|
19
|
+
"description": "Specifies if declaring module exports the component."
|
|
20
|
+
},
|
|
21
|
+
"skipInstall": {
|
|
22
|
+
"description": "Skip installing Kendo dependency packages.",
|
|
23
|
+
"type": "boolean",
|
|
24
|
+
"default": false
|
|
25
|
+
}
|
|
26
|
+
},
|
|
27
|
+
"required": []
|
|
28
|
+
}
|