@progress/kendo-angular-filter 0.1.7 → 1.0.0-next.202204010908
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/{dist/es2015/aria-label.directive.d.ts → aria-label.directive.d.ts} +3 -0
- package/bundles/kendo-angular-filter.umd.js +5 -0
- package/{dist/es2015/editors → editors}/boolean-editor.component.d.ts +3 -0
- package/{dist/es2015/editors → editors}/date-editor.component.d.ts +3 -0
- package/{dist/es2015/editors → editors}/numeric-editor.component.d.ts +3 -0
- package/{dist/es2015/editors → editors}/text-editor.component.d.ts +3 -0
- package/esm2015/aria-label.directive.js +28 -0
- package/esm2015/editors/boolean-editor.component.js +84 -0
- package/esm2015/editors/date-editor.component.js +67 -0
- package/esm2015/editors/numeric-editor.component.js +67 -0
- package/esm2015/editors/text-editor.component.js +59 -0
- package/esm2015/filter-expression-operators.component.js +68 -0
- package/{dist/es2015 → esm2015}/filter-expression.component.js +71 -26
- package/esm2015/filter-group.component.js +206 -0
- package/{dist/es2015 → esm2015}/filter.component.js +151 -34
- package/esm2015/filter.module.js +117 -0
- package/{dist/es2015 → esm2015}/filter.service.js +8 -10
- package/{dist/es2015/shared.module.d.ts → esm2015/kendo-angular-filter.js} +2 -3
- package/esm2015/localization/custom-messages.component.js +41 -0
- package/esm2015/localization/localized-messages.directive.js +36 -0
- package/esm2015/localization/messages.js +95 -0
- package/{dist/es/index.js → esm2015/main.js} +3 -8
- package/{dist/es → esm2015}/model/filter-expression.js +1 -0
- package/{dist/es2015 → esm2015}/package-metadata.js +1 -1
- package/esm2015/shared.module.js +50 -0
- package/{dist/es2015 → esm2015}/util.js +3 -3
- package/fesm2015/kendo-angular-filter.js +1622 -0
- package/{dist/es2015/filter-expression-operators.component.d.ts → filter-expression-operators.component.d.ts} +3 -0
- package/{dist/es2015/filter-expression.component.d.ts → filter-expression.component.d.ts} +5 -0
- package/{dist/es2015/filter-group.component.d.ts → filter-group.component.d.ts} +7 -2
- package/{dist/es2015/filter.component.d.ts → filter.component.d.ts} +7 -2
- package/filter.module.d.ts +53 -0
- package/{dist/es2015/filter.service.d.ts → filter.service.d.ts} +3 -0
- package/{dist/npm/model/filter-expression.js → kendo-angular-filter.d.ts} +3 -3
- package/{dist/es2015/localization → localization}/custom-messages.component.d.ts +4 -1
- package/{dist/es2015/localization → localization}/localized-messages.directive.d.ts +3 -0
- package/{dist/es2015/localization → localization}/messages.d.ts +3 -0
- package/{dist/es2015/index.d.ts → main.d.ts} +4 -8
- package/{dist/es2015/model → model}/filter-expression.d.ts +0 -0
- package/{dist/es2015/package-metadata.d.ts → package-metadata.d.ts} +0 -0
- package/package.json +38 -109
- package/schematics/ngAdd/index.js +5 -2
- package/schematics/ngAdd/index.js.map +1 -1
- package/shared.module.d.ts +19 -0
- package/util.d.ts +147 -0
- package/dist/cdn/js/kendo-angular-filter.js +0 -20
- package/dist/cdn/main.js +0 -5
- package/dist/es/aria-label.directive.js +0 -30
- package/dist/es/editors/boolean-editor.component.js +0 -61
- package/dist/es/editors/date-editor.component.js +0 -45
- package/dist/es/editors/numeric-editor.component.js +0 -45
- package/dist/es/editors/text-editor.component.js +0 -45
- package/dist/es/filter-expression-operators.component.js +0 -48
- package/dist/es/filter-expression.component.js +0 -136
- package/dist/es/filter-group.component.js +0 -84
- package/dist/es/filter.component.js +0 -185
- package/dist/es/filter.module.js +0 -91
- package/dist/es/filter.service.js +0 -45
- package/dist/es/localization/custom-messages.component.js +0 -44
- package/dist/es/localization/localized-messages.directive.js +0 -35
- package/dist/es/localization/messages.js +0 -166
- package/dist/es/main.js +0 -6
- package/dist/es/package-metadata.js +0 -15
- package/dist/es/shared.module.js +0 -35
- package/dist/es/util.js +0 -136
- package/dist/es2015/aria-label.directive.js +0 -29
- package/dist/es2015/editors/boolean-editor.component.js +0 -72
- package/dist/es2015/editors/date-editor.component.js +0 -56
- package/dist/es2015/editors/numeric-editor.component.js +0 -56
- package/dist/es2015/editors/text-editor.component.js +0 -52
- package/dist/es2015/filter-expression-operators.component.js +0 -59
- package/dist/es2015/filter-group.component.js +0 -145
- package/dist/es2015/filter.module.d.ts +0 -37
- package/dist/es2015/filter.module.js +0 -88
- package/dist/es2015/index.js +0 -21
- package/dist/es2015/index.metadata.json +0 -1
- package/dist/es2015/localization/custom-messages.component.js +0 -36
- package/dist/es2015/localization/localized-messages.directive.js +0 -31
- package/dist/es2015/localization/messages.js +0 -160
- package/dist/es2015/main.d.ts +0 -7
- package/dist/es2015/main.js +0 -6
- package/dist/es2015/model/filter-expression.js +0 -7
- package/dist/es2015/shared.module.js +0 -32
- package/dist/es2015/util.d.ts +0 -147
- package/dist/fesm2015/index.js +0 -1316
- package/dist/fesm5/index.js +0 -1076
- package/dist/npm/aria-label.directive.js +0 -32
- package/dist/npm/editors/boolean-editor.component.js +0 -63
- package/dist/npm/editors/date-editor.component.js +0 -47
- package/dist/npm/editors/numeric-editor.component.js +0 -47
- package/dist/npm/editors/text-editor.component.js +0 -47
- package/dist/npm/filter-expression-operators.component.js +0 -50
- package/dist/npm/filter-expression.component.js +0 -138
- package/dist/npm/filter-group.component.js +0 -86
- package/dist/npm/filter.component.js +0 -187
- package/dist/npm/filter.module.js +0 -93
- package/dist/npm/filter.service.js +0 -47
- package/dist/npm/index.js +0 -37
- package/dist/npm/localization/custom-messages.component.js +0 -46
- package/dist/npm/localization/localized-messages.directive.js +0 -37
- package/dist/npm/localization/messages.js +0 -168
- package/dist/npm/main.js +0 -10
- package/dist/npm/package-metadata.js +0 -17
- package/dist/npm/shared.module.js +0 -37
- package/dist/npm/util.js +0 -138
- package/dist/systemjs/kendo-angular-filter.js +0 -5
|
@@ -1,59 +0,0 @@
|
|
|
1
|
-
/**-----------------------------------------------------------------------------------------
|
|
2
|
-
* Copyright © 2021 Progress Software Corporation. All rights reserved.
|
|
3
|
-
* Licensed under commercial license. See LICENSE.md in the project root for more information
|
|
4
|
-
*-------------------------------------------------------------------------------------------*/
|
|
5
|
-
import * as tslib_1 from "tslib";
|
|
6
|
-
import { Component, EventEmitter, Input, Output } from '@angular/core';
|
|
7
|
-
import { LocalizationService } from '@progress/kendo-angular-l10n';
|
|
8
|
-
import { FilterService } from './filter.service';
|
|
9
|
-
import { nullOperators } from './util';
|
|
10
|
-
/**
|
|
11
|
-
* @hidden
|
|
12
|
-
*/
|
|
13
|
-
let FilterExpressionOperatorsComponent = class FilterExpressionOperatorsComponent {
|
|
14
|
-
constructor(filterService, localization) {
|
|
15
|
-
this.filterService = filterService;
|
|
16
|
-
this.localization = localization;
|
|
17
|
-
this.valueChange = new EventEmitter();
|
|
18
|
-
this.operators = [];
|
|
19
|
-
}
|
|
20
|
-
messageFor(key) {
|
|
21
|
-
return this.localization.get(key);
|
|
22
|
-
}
|
|
23
|
-
operatorValueChange(value) {
|
|
24
|
-
this.valueChange.emit();
|
|
25
|
-
this.filterService.isEditorDisabled = nullOperators.indexOf(value) >= 0;
|
|
26
|
-
}
|
|
27
|
-
};
|
|
28
|
-
tslib_1.__decorate([
|
|
29
|
-
Input(),
|
|
30
|
-
tslib_1.__metadata("design:type", Object)
|
|
31
|
-
], FilterExpressionOperatorsComponent.prototype, "currentItem", void 0);
|
|
32
|
-
tslib_1.__decorate([
|
|
33
|
-
Output(),
|
|
34
|
-
tslib_1.__metadata("design:type", EventEmitter)
|
|
35
|
-
], FilterExpressionOperatorsComponent.prototype, "valueChange", void 0);
|
|
36
|
-
tslib_1.__decorate([
|
|
37
|
-
Input(),
|
|
38
|
-
tslib_1.__metadata("design:type", Array)
|
|
39
|
-
], FilterExpressionOperatorsComponent.prototype, "operators", void 0);
|
|
40
|
-
FilterExpressionOperatorsComponent = tslib_1.__decorate([
|
|
41
|
-
Component({
|
|
42
|
-
selector: 'kendo-filter-expression-operators',
|
|
43
|
-
template: `
|
|
44
|
-
<kendo-dropdownlist
|
|
45
|
-
[kendoAriaLabelValue]="messageFor('filterOperatorAriaLabel')"
|
|
46
|
-
[data]="operators"
|
|
47
|
-
[title]="messageFor('filterExpressionOperators')"
|
|
48
|
-
[(value)]="currentItem.operator"
|
|
49
|
-
(valueChange)="operatorValueChange($event)"
|
|
50
|
-
[valuePrimitive]="true"
|
|
51
|
-
textField="text"
|
|
52
|
-
valueField="value"
|
|
53
|
-
>
|
|
54
|
-
</kendo-dropdownlist>
|
|
55
|
-
`
|
|
56
|
-
}),
|
|
57
|
-
tslib_1.__metadata("design:paramtypes", [FilterService, LocalizationService])
|
|
58
|
-
], FilterExpressionOperatorsComponent);
|
|
59
|
-
export { FilterExpressionOperatorsComponent };
|
|
@@ -1,145 +0,0 @@
|
|
|
1
|
-
/**-----------------------------------------------------------------------------------------
|
|
2
|
-
* Copyright © 2021 Progress Software Corporation. All rights reserved.
|
|
3
|
-
* Licensed under commercial license. See LICENSE.md in the project root for more information
|
|
4
|
-
*-------------------------------------------------------------------------------------------*/
|
|
5
|
-
import * as tslib_1 from "tslib";
|
|
6
|
-
import { ChangeDetectorRef, Component, EventEmitter, Input, Output } from '@angular/core';
|
|
7
|
-
import { LocalizationService } from '@progress/kendo-angular-l10n';
|
|
8
|
-
import { FilterService } from './filter.service';
|
|
9
|
-
import { localizeOperators, logicOperators } from './util';
|
|
10
|
-
/**
|
|
11
|
-
* @hidden
|
|
12
|
-
*/
|
|
13
|
-
let FilterGroupComponent = class FilterGroupComponent {
|
|
14
|
-
constructor(filterService, localization, cdr) {
|
|
15
|
-
this.filterService = filterService;
|
|
16
|
-
this.localization = localization;
|
|
17
|
-
this.cdr = cdr;
|
|
18
|
-
this.index = 0;
|
|
19
|
-
this.currentItem = {
|
|
20
|
-
logic: 'or',
|
|
21
|
-
filters: []
|
|
22
|
-
};
|
|
23
|
-
this.valueChange = new EventEmitter();
|
|
24
|
-
this.operators = [];
|
|
25
|
-
}
|
|
26
|
-
ngOnInit() {
|
|
27
|
-
this.operators = this.getLogicOperators();
|
|
28
|
-
this.localizationSubscription = this.localization.changes.subscribe(() => {
|
|
29
|
-
this.operators = this.getLogicOperators();
|
|
30
|
-
this.cdr.detectChanges();
|
|
31
|
-
});
|
|
32
|
-
}
|
|
33
|
-
ngOnDestroy() {
|
|
34
|
-
if (this.localizationSubscription) {
|
|
35
|
-
this.localizationSubscription.unsubscribe();
|
|
36
|
-
}
|
|
37
|
-
}
|
|
38
|
-
getLogicOperators() {
|
|
39
|
-
return localizeOperators(logicOperators)(this.localization);
|
|
40
|
-
}
|
|
41
|
-
messageFor(key) {
|
|
42
|
-
return this.localization.get(key);
|
|
43
|
-
}
|
|
44
|
-
selectedChange(logicOperator) {
|
|
45
|
-
if (this.currentItem.logic !== logicOperator) {
|
|
46
|
-
this.currentItem.logic = logicOperator;
|
|
47
|
-
this.valueChange.emit();
|
|
48
|
-
}
|
|
49
|
-
}
|
|
50
|
-
addFilterExpression() {
|
|
51
|
-
this.filterService.addFilterExpression(this.currentItem);
|
|
52
|
-
this.valueChange.emit();
|
|
53
|
-
}
|
|
54
|
-
addFilterGroup() {
|
|
55
|
-
this.filterService.addFilterGroup(this.currentItem);
|
|
56
|
-
this.valueChange.emit();
|
|
57
|
-
}
|
|
58
|
-
removeFilterGroup() {
|
|
59
|
-
this.filterService.remove(this.currentItem, this.index);
|
|
60
|
-
this.valueChange.emit();
|
|
61
|
-
}
|
|
62
|
-
};
|
|
63
|
-
tslib_1.__decorate([
|
|
64
|
-
Input(),
|
|
65
|
-
tslib_1.__metadata("design:type", Number)
|
|
66
|
-
], FilterGroupComponent.prototype, "index", void 0);
|
|
67
|
-
tslib_1.__decorate([
|
|
68
|
-
Input(),
|
|
69
|
-
tslib_1.__metadata("design:type", Object)
|
|
70
|
-
], FilterGroupComponent.prototype, "currentItem", void 0);
|
|
71
|
-
tslib_1.__decorate([
|
|
72
|
-
Output(),
|
|
73
|
-
tslib_1.__metadata("design:type", EventEmitter)
|
|
74
|
-
], FilterGroupComponent.prototype, "valueChange", void 0);
|
|
75
|
-
FilterGroupComponent = tslib_1.__decorate([
|
|
76
|
-
Component({
|
|
77
|
-
selector: 'kendo-filter-group',
|
|
78
|
-
template: `
|
|
79
|
-
<div class="k-filter-toolbar" role="toolbar" [attr.aria-label]="messageFor('filterToolbarAriaLabel')">
|
|
80
|
-
<div class="k-toolbar">
|
|
81
|
-
<div class="k-filter-toolbar-item">
|
|
82
|
-
<div class="k-widget k-button-group" role="group">
|
|
83
|
-
<button
|
|
84
|
-
*ngFor="let operator of operators"
|
|
85
|
-
kendoButton
|
|
86
|
-
[ngClass]="{'k-group-start': operator.value === 'and', 'k-group-end': operator.value === 'or'}"
|
|
87
|
-
[selected]="currentItem.logic === operator.value"
|
|
88
|
-
[title]="operator.text"
|
|
89
|
-
(click)="selectedChange(operator.value)"
|
|
90
|
-
>
|
|
91
|
-
{{operator.text}}
|
|
92
|
-
</button>
|
|
93
|
-
</div>
|
|
94
|
-
</div>
|
|
95
|
-
<div class="k-filter-toolbar-item">
|
|
96
|
-
<button
|
|
97
|
-
kendoButton
|
|
98
|
-
[title]="messageFor('addFilter')"
|
|
99
|
-
icon="filter-add-expression"
|
|
100
|
-
(click)="addFilterExpression()">
|
|
101
|
-
{{messageFor('addFilter')}}
|
|
102
|
-
</button>
|
|
103
|
-
</div>
|
|
104
|
-
<div class="k-filter-toolbar-item">
|
|
105
|
-
<button
|
|
106
|
-
kendoButton
|
|
107
|
-
[title]="messageFor('addGroup')"
|
|
108
|
-
icon="filter-add-group"
|
|
109
|
-
(click)="addFilterGroup()">
|
|
110
|
-
{{messageFor('addGroup')}}
|
|
111
|
-
</button>
|
|
112
|
-
</div>
|
|
113
|
-
<div class="k-filter-toolbar-item">
|
|
114
|
-
<button
|
|
115
|
-
kendoButton
|
|
116
|
-
icon="close"
|
|
117
|
-
fillMode="flat"
|
|
118
|
-
[title]="messageFor('remove')"
|
|
119
|
-
(click)="removeFilterGroup()">
|
|
120
|
-
</button>
|
|
121
|
-
</div>
|
|
122
|
-
</div>
|
|
123
|
-
</div>
|
|
124
|
-
|
|
125
|
-
<ul class="k-filter-lines" *ngIf="currentItem.filters">
|
|
126
|
-
<ng-container *ngFor="let item of currentItem.filters; let i = index;">
|
|
127
|
-
<li class="k-filter-item" *ngIf="!item.filters">
|
|
128
|
-
<kendo-filter-expression (valueChange)="valueChange.emit()" [currentItem]="item" [index]="i">
|
|
129
|
-
</kendo-filter-expression>
|
|
130
|
-
</li>
|
|
131
|
-
<li class="k-filter-item" *ngIf="item.filters" >
|
|
132
|
-
<kendo-filter-group
|
|
133
|
-
(valueChange)="valueChange.emit()"
|
|
134
|
-
[currentItem]="item"
|
|
135
|
-
[index]="i"
|
|
136
|
-
>
|
|
137
|
-
</kendo-filter-group>
|
|
138
|
-
</li>
|
|
139
|
-
</ng-container>
|
|
140
|
-
</ul>
|
|
141
|
-
`
|
|
142
|
-
}),
|
|
143
|
-
tslib_1.__metadata("design:paramtypes", [FilterService, LocalizationService, ChangeDetectorRef])
|
|
144
|
-
], FilterGroupComponent);
|
|
145
|
-
export { FilterGroupComponent };
|
|
@@ -1,37 +0,0 @@
|
|
|
1
|
-
/**-----------------------------------------------------------------------------------------
|
|
2
|
-
* Copyright © 2021 Progress Software Corporation. All rights reserved.
|
|
3
|
-
* Licensed under commercial license. See LICENSE.md in the project root for more information
|
|
4
|
-
*-------------------------------------------------------------------------------------------*/
|
|
5
|
-
/**
|
|
6
|
-
* Represents the [NgModule]({{ site.data.urls.angular['ngmoduleapi'] }})
|
|
7
|
-
* definition for the Filter component.
|
|
8
|
-
*
|
|
9
|
-
* @example
|
|
10
|
-
*
|
|
11
|
-
* ```
|
|
12
|
-
* // Import the Filter module
|
|
13
|
-
* import { FilterModule } from '@progress/kendo-angular-filter';
|
|
14
|
-
*
|
|
15
|
-
* // The browser platform with a compiler
|
|
16
|
-
* import { platformBrowserDynamic } from '@angular/platform-browser-dynamic';
|
|
17
|
-
*
|
|
18
|
-
* import { NgModule } from '@angular/core';
|
|
19
|
-
*
|
|
20
|
-
* // Import the app component
|
|
21
|
-
* import { AppComponent } from './app.component';
|
|
22
|
-
*
|
|
23
|
-
* // Define the app module
|
|
24
|
-
* _@NgModule({
|
|
25
|
-
* declarations: [AppComponent], // declare app component
|
|
26
|
-
* imports: [BrowserModule, FilterModule], // import Filter module
|
|
27
|
-
* bootstrap: [AppComponent]
|
|
28
|
-
* })
|
|
29
|
-
* export class AppModule { }
|
|
30
|
-
*
|
|
31
|
-
* // Compile and launch the module
|
|
32
|
-
* platformBrowserDynamic().bootstrapModule(AppModule);
|
|
33
|
-
*
|
|
34
|
-
* ```
|
|
35
|
-
*/
|
|
36
|
-
export declare class FilterModule {
|
|
37
|
-
}
|
|
@@ -1,88 +0,0 @@
|
|
|
1
|
-
/**-----------------------------------------------------------------------------------------
|
|
2
|
-
* Copyright © 2021 Progress Software Corporation. All rights reserved.
|
|
3
|
-
* Licensed under commercial license. See LICENSE.md in the project root for more information
|
|
4
|
-
*-------------------------------------------------------------------------------------------*/
|
|
5
|
-
import * as tslib_1 from "tslib";
|
|
6
|
-
import { NgModule } from '@angular/core';
|
|
7
|
-
import { L10N_PREFIX, LocalizationService } from '@progress/kendo-angular-l10n';
|
|
8
|
-
import { AriaLabelValueDirective } from './aria-label.directive';
|
|
9
|
-
import { FilterBooleanEditorComponent } from './editors/boolean-editor.component';
|
|
10
|
-
import { FilterDateEditorComponent } from './editors/date-editor.component';
|
|
11
|
-
import { FilterNumericEditorComponent } from './editors/numeric-editor.component';
|
|
12
|
-
import { FilterTextEditorComponent } from './editors/text-editor.component';
|
|
13
|
-
import { FilterExpressionOperatorsComponent } from './filter-expression-operators.component';
|
|
14
|
-
import { FilterExpressionComponent } from './filter-expression.component';
|
|
15
|
-
import { FilterGroupComponent } from './filter-group.component';
|
|
16
|
-
import { FilterComponent } from './filter.component';
|
|
17
|
-
import { CustomMessagesComponent } from './localization/custom-messages.component';
|
|
18
|
-
import { LocalizedMessagesDirective } from './localization/localized-messages.directive';
|
|
19
|
-
import { SharedModule } from './shared.module';
|
|
20
|
-
/**
|
|
21
|
-
* Represents the [NgModule]({{ site.data.urls.angular['ngmoduleapi'] }})
|
|
22
|
-
* definition for the Filter component.
|
|
23
|
-
*
|
|
24
|
-
* @example
|
|
25
|
-
*
|
|
26
|
-
* ```
|
|
27
|
-
* // Import the Filter module
|
|
28
|
-
* import { FilterModule } from '@progress/kendo-angular-filter';
|
|
29
|
-
*
|
|
30
|
-
* // The browser platform with a compiler
|
|
31
|
-
* import { platformBrowserDynamic } from '@angular/platform-browser-dynamic';
|
|
32
|
-
*
|
|
33
|
-
* import { NgModule } from '@angular/core';
|
|
34
|
-
*
|
|
35
|
-
* // Import the app component
|
|
36
|
-
* import { AppComponent } from './app.component';
|
|
37
|
-
*
|
|
38
|
-
* // Define the app module
|
|
39
|
-
* _@NgModule({
|
|
40
|
-
* declarations: [AppComponent], // declare app component
|
|
41
|
-
* imports: [BrowserModule, FilterModule], // import Filter module
|
|
42
|
-
* bootstrap: [AppComponent]
|
|
43
|
-
* })
|
|
44
|
-
* export class AppModule { }
|
|
45
|
-
*
|
|
46
|
-
* // Compile and launch the module
|
|
47
|
-
* platformBrowserDynamic().bootstrapModule(AppModule);
|
|
48
|
-
*
|
|
49
|
-
* ```
|
|
50
|
-
*/
|
|
51
|
-
let FilterModule = class FilterModule {
|
|
52
|
-
};
|
|
53
|
-
FilterModule = tslib_1.__decorate([
|
|
54
|
-
NgModule({
|
|
55
|
-
imports: [SharedModule],
|
|
56
|
-
declarations: [FilterComponent,
|
|
57
|
-
FilterNumericEditorComponent,
|
|
58
|
-
FilterTextEditorComponent,
|
|
59
|
-
FilterExpressionComponent,
|
|
60
|
-
FilterGroupComponent,
|
|
61
|
-
FilterExpressionOperatorsComponent,
|
|
62
|
-
FilterBooleanEditorComponent,
|
|
63
|
-
FilterDateEditorComponent,
|
|
64
|
-
LocalizedMessagesDirective,
|
|
65
|
-
CustomMessagesComponent,
|
|
66
|
-
AriaLabelValueDirective
|
|
67
|
-
],
|
|
68
|
-
exports: [FilterComponent,
|
|
69
|
-
FilterNumericEditorComponent,
|
|
70
|
-
FilterTextEditorComponent,
|
|
71
|
-
FilterExpressionComponent,
|
|
72
|
-
FilterGroupComponent,
|
|
73
|
-
FilterExpressionOperatorsComponent,
|
|
74
|
-
FilterBooleanEditorComponent,
|
|
75
|
-
FilterDateEditorComponent,
|
|
76
|
-
LocalizedMessagesDirective,
|
|
77
|
-
CustomMessagesComponent,
|
|
78
|
-
AriaLabelValueDirective],
|
|
79
|
-
providers: [
|
|
80
|
-
LocalizationService,
|
|
81
|
-
{
|
|
82
|
-
provide: L10N_PREFIX,
|
|
83
|
-
useValue: 'kendo.filter'
|
|
84
|
-
}
|
|
85
|
-
]
|
|
86
|
-
})
|
|
87
|
-
], FilterModule);
|
|
88
|
-
export { FilterModule };
|
package/dist/es2015/index.js
DELETED
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
/**-----------------------------------------------------------------------------------------
|
|
2
|
-
* Copyright © 2021 Progress Software Corporation. All rights reserved.
|
|
3
|
-
* Licensed under commercial license. See LICENSE.md in the project root for more information
|
|
4
|
-
*-------------------------------------------------------------------------------------------*/
|
|
5
|
-
/**
|
|
6
|
-
* Generated bundle index. Do not edit.
|
|
7
|
-
*/
|
|
8
|
-
export * from './main';
|
|
9
|
-
export { AriaLabelValueDirective } from './aria-label.directive';
|
|
10
|
-
export { FilterBooleanEditorComponent } from './editors/boolean-editor.component';
|
|
11
|
-
export { FilterDateEditorComponent } from './editors/date-editor.component';
|
|
12
|
-
export { FilterNumericEditorComponent } from './editors/numeric-editor.component';
|
|
13
|
-
export { FilterTextEditorComponent } from './editors/text-editor.component';
|
|
14
|
-
export { FilterExpressionOperatorsComponent } from './filter-expression-operators.component';
|
|
15
|
-
export { FilterExpressionComponent } from './filter-expression.component';
|
|
16
|
-
export { FilterGroupComponent } from './filter-group.component';
|
|
17
|
-
export { FilterService } from './filter.service';
|
|
18
|
-
export { CustomMessagesComponent } from './localization/custom-messages.component';
|
|
19
|
-
export { LocalizedMessagesDirective } from './localization/localized-messages.directive';
|
|
20
|
-
export { Messages } from './localization/messages';
|
|
21
|
-
export { SharedModule } from './shared.module';
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"__symbolic":"module","version":4,"metadata":{"FilterComponent":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Component","line":44,"character":1},"arguments":[{"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-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","providers":[{"__symbolic":"reference","name":"FilterService"}]}]}],"members":{"direction":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"HostBinding","line":176,"character":5},"arguments":["attr.dir"]}]}],"filters":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":180,"character":5}}]}],"value":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":203,"character":5}}]}],"valueChange":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Output","line":219,"character":5}}]}],"__ctor__":[{"__symbolic":"constructor","parameters":[{"__symbolic":"reference","name":"FilterService"},{"__symbolic":"reference","module":"@progress/kendo-angular-l10n","name":"LocalizationService","line":224,"character":30},{"__symbolic":"reference","module":"@angular/core","name":"ChangeDetectorRef","line":225,"character":21}]}],"ngOnInit":[{"__symbolic":"method"}],"ngOnDestroy":[{"__symbolic":"method"}],"getCurrentFilter":[{"__symbolic":"method"}],"onValueChange":[{"__symbolic":"method"}],"normalizeFilter":[{"__symbolic":"method"}],"normalizeValue":[{"__symbolic":"method"}]}},"FilterModule":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"NgModule","line":46,"character":1},"arguments":[{"imports":[{"__symbolic":"reference","name":"SharedModule"}],"declarations":[{"__symbolic":"reference","name":"FilterComponent"},{"__symbolic":"reference","name":"FilterNumericEditorComponent"},{"__symbolic":"reference","name":"FilterTextEditorComponent"},{"__symbolic":"reference","name":"FilterExpressionComponent"},{"__symbolic":"reference","name":"FilterGroupComponent"},{"__symbolic":"reference","name":"FilterExpressionOperatorsComponent"},{"__symbolic":"reference","name":"FilterBooleanEditorComponent"},{"__symbolic":"reference","name":"FilterDateEditorComponent"},{"__symbolic":"reference","name":"LocalizedMessagesDirective"},{"__symbolic":"reference","name":"CustomMessagesComponent"},{"__symbolic":"reference","name":"AriaLabelValueDirective"}],"exports":[{"__symbolic":"reference","name":"FilterComponent"},{"__symbolic":"reference","name":"FilterNumericEditorComponent"},{"__symbolic":"reference","name":"FilterTextEditorComponent"},{"__symbolic":"reference","name":"FilterExpressionComponent"},{"__symbolic":"reference","name":"FilterGroupComponent"},{"__symbolic":"reference","name":"FilterExpressionOperatorsComponent"},{"__symbolic":"reference","name":"FilterBooleanEditorComponent"},{"__symbolic":"reference","name":"FilterDateEditorComponent"},{"__symbolic":"reference","name":"LocalizedMessagesDirective"},{"__symbolic":"reference","name":"CustomMessagesComponent"},{"__symbolic":"reference","name":"AriaLabelValueDirective"}],"providers":[{"__symbolic":"reference","module":"@progress/kendo-angular-l10n","name":"LocalizationService","line":72,"character":8},{"provide":{"__symbolic":"reference","module":"@progress/kendo-angular-l10n","name":"L10N_PREFIX","line":74,"character":21},"useValue":"kendo.filter"}]}]}],"members":{}},"FilterExpression":{"__symbolic":"interface"},"FilterService":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Injectable","line":7,"character":1}}],"members":{"addFilterGroup":[{"__symbolic":"method"}],"addFilterExpression":[{"__symbolic":"method"}],"remove":[{"__symbolic":"method"}]}},"SharedModule":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"NgModule","line":22,"character":1},"arguments":[{"imports":[{"__symbolic":"reference","module":"@angular/common","name":"CommonModule","line":11,"character":4},{"__symbolic":"reference","module":"@progress/kendo-angular-inputs","name":"InputsModule","line":12,"character":4},{"__symbolic":"reference","module":"@progress/kendo-angular-label","name":"LabelModule","line":13,"character":4},{"__symbolic":"reference","module":"@progress/kendo-angular-dropdowns","name":"DropDownsModule","line":14,"character":4},{"__symbolic":"reference","module":"@progress/kendo-angular-buttons","name":"ButtonsModule","line":15,"character":4},{"__symbolic":"reference","module":"@progress/kendo-angular-dateinputs","name":"DateInputsModule","line":16,"character":4}],"exports":[{"__symbolic":"reference","module":"@angular/common","name":"CommonModule","line":11,"character":4},{"__symbolic":"reference","module":"@progress/kendo-angular-inputs","name":"InputsModule","line":12,"character":4},{"__symbolic":"reference","module":"@progress/kendo-angular-label","name":"LabelModule","line":13,"character":4},{"__symbolic":"reference","module":"@progress/kendo-angular-dropdowns","name":"DropDownsModule","line":14,"character":4},{"__symbolic":"reference","module":"@progress/kendo-angular-buttons","name":"ButtonsModule","line":15,"character":4},{"__symbolic":"reference","module":"@progress/kendo-angular-dateinputs","name":"DateInputsModule","line":16,"character":4}]}]}],"members":{}},"FilterNumericEditorComponent":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Component","line":8,"character":1},"arguments":[{"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 "}]}],"members":{"currentItem":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":25,"character":5}}]}],"valueChange":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Output","line":26,"character":5}}]}],"__ctor__":[{"__symbolic":"constructor","parameters":[{"__symbolic":"reference","module":"@progress/kendo-angular-l10n","name":"LocalizationService","line":28,"character":38},{"__symbolic":"reference","name":"FilterService"}]}],"messageFor":[{"__symbolic":"method"}],"isDisabled":[{"__symbolic":"method"}]}},"FilterTextEditorComponent":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Component","line":8,"character":1},"arguments":[{"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 "}]}],"members":{"currentItem":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":21,"character":5}}]}],"valueChange":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Output","line":22,"character":5}}]}],"__ctor__":[{"__symbolic":"constructor","parameters":[{"__symbolic":"reference","module":"@progress/kendo-angular-l10n","name":"LocalizationService","line":24,"character":38},{"__symbolic":"reference","name":"FilterService"}]}],"isDisabled":[{"__symbolic":"method"}],"messageFor":[{"__symbolic":"method"}]}},"FilterExpressionComponent":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Component","line":11,"character":1},"arguments":[{"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 fillMode=\"flat\"\n [title]=\"messageFor('remove')\"\n (click)=\"removeFilterExpression()\">\n </button>\n </div>\n </div>\n </div>\n "}]}],"members":{"index":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":57,"character":5}}]}],"currentItem":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":58,"character":5}}]}],"valueChange":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Output","line":59,"character":5}}]}],"__ctor__":[{"__symbolic":"constructor","parameters":[{"__symbolic":"reference","name":"FilterService"},{"__symbolic":"reference","module":"@progress/kendo-angular-l10n","name":"LocalizationService","line":68,"character":78},{"__symbolic":"reference","module":"@angular/core","name":"ChangeDetectorRef","line":68,"character":112}]}],"ngOnInit":[{"__symbolic":"method"}],"ngOnDestroy":[{"__symbolic":"method"}],"normalizeOperators":[{"__symbolic":"method"}],"messageFor":[{"__symbolic":"method"}],"getFilterExpressionByField":[{"__symbolic":"method"}],"filterValueChange":[{"__symbolic":"method"}],"getDefaultOperators":[{"__symbolic":"method"}],"getEditorType":[{"__symbolic":"method"}],"removeFilterExpression":[{"__symbolic":"method"}],"setOperators":[{"__symbolic":"method"}]}},"FilterGroupComponent":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Component","line":18,"character":1},"arguments":[{"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 operators\"\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('addFilter')\"\n icon=\"filter-add-expression\"\n (click)=\"addFilterExpression()\">\n {{messageFor('addFilter')}}\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 fillMode=\"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 "}]}],"members":{"index":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":86,"character":5}}]}],"currentItem":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":87,"character":5}}]}],"valueChange":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Output","line":91,"character":5}}]}],"__ctor__":[{"__symbolic":"constructor","parameters":[{"__symbolic":"reference","name":"FilterService"},{"__symbolic":"reference","module":"@progress/kendo-angular-l10n","name":"LocalizationService","line":97,"character":75},{"__symbolic":"reference","module":"@angular/core","name":"ChangeDetectorRef","line":97,"character":109}]}],"ngOnInit":[{"__symbolic":"method"}],"ngOnDestroy":[{"__symbolic":"method"}],"getLogicOperators":[{"__symbolic":"method"}],"messageFor":[{"__symbolic":"method"}],"selectedChange":[{"__symbolic":"method"}],"addFilterExpression":[{"__symbolic":"method"}],"addFilterGroup":[{"__symbolic":"method"}],"removeFilterGroup":[{"__symbolic":"method"}]}},"FilterExpressionOperatorsComponent":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Component","line":9,"character":1},"arguments":[{"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 "}]}],"members":{"currentItem":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":26,"character":5}}]}],"valueChange":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Output","line":27,"character":5}}]}],"operators":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":29,"character":5}}]}],"__ctor__":[{"__symbolic":"constructor","parameters":[{"__symbolic":"reference","name":"FilterService"},{"__symbolic":"reference","module":"@progress/kendo-angular-l10n","name":"LocalizationService","line":31,"character":76}]}],"messageFor":[{"__symbolic":"method"}],"operatorValueChange":[{"__symbolic":"method"}]}},"FilterBooleanEditorComponent":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Component","line":8,"character":1},"arguments":[{"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 "}]}],"members":{"currentItem":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":26,"character":5}}]}],"valueChange":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Output","line":27,"character":5}}]}],"__ctor__":[{"__symbolic":"constructor","parameters":[{"__symbolic":"reference","module":"@progress/kendo-angular-l10n","name":"LocalizationService","line":35,"character":38},{"__symbolic":"reference","module":"@angular/core","name":"ChangeDetectorRef","line":35,"character":72}]}],"ngOnInit":[{"__symbolic":"method"}],"getDefaultItem":[{"__symbolic":"method"}],"getValueItems":[{"__symbolic":"method"}],"ngOnDestroy":[{"__symbolic":"method"}],"messageFor":[{"__symbolic":"method"}]}},"FilterDateEditorComponent":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Component","line":8,"character":1},"arguments":[{"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 "}]}],"members":{"currentItem":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":25,"character":5}}]}],"valueChange":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Output","line":26,"character":5}}]}],"__ctor__":[{"__symbolic":"constructor","parameters":[{"__symbolic":"reference","module":"@progress/kendo-angular-l10n","name":"LocalizationService","line":28,"character":38},{"__symbolic":"reference","name":"FilterService"}]}],"messageFor":[{"__symbolic":"method"}],"isDisabled":[{"__symbolic":"method"}]}},"LocalizedMessagesDirective":{"__symbolic":"class","extends":{"__symbolic":"reference","name":"Messages"},"decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Directive","line":7,"character":1},"arguments":[{"providers":[{"provide":{"__symbolic":"reference","name":"Messages"},"useExisting":{"__symbolic":"reference","name":"LocalizedMessagesDirective"}}],"selector":"[kendoFilterLocalizedMessages]"}]}],"members":{"__ctor__":[{"__symbolic":"constructor","parameters":[{"__symbolic":"reference","module":"@progress/kendo-angular-l10n","name":"LocalizationService","line":17,"character":35}]}]}},"Messages":{"__symbolic":"class","extends":{"__symbolic":"reference","module":"@progress/kendo-angular-l10n","name":"ComponentMessages","line":6,"character":30},"members":{"filterExpressionOperators":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":10,"character":5}}]}],"filterExpressionFilters":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":15,"character":6}}]}],"remove":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":20,"character":5}}]}],"addGroup":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":25,"character":5}}]}],"addFilter":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":30,"character":5}}]}],"filterAndLogic":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":35,"character":5}}]}],"filterOrLogic":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":40,"character":5}}]}],"filterEqOperator":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":45,"character":5}}]}],"filterNotEqOperator":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":50,"character":5}}]}],"filterIsNullOperator":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":55,"character":5}}]}],"filterIsNotNullOperator":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":60,"character":5}}]}],"filterIsEmptyOperator":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":65,"character":5}}]}],"filterIsNotEmptyOperator":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":70,"character":5}}]}],"filterStartsWithOperator":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":75,"character":5}}]}],"filterContainsOperator":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":80,"character":5}}]}],"filterNotContainsOperator":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":85,"character":5}}]}],"filterEndsWithOperator":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":90,"character":5}}]}],"filterGteOperator":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":95,"character":5}}]}],"filterGtOperator":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":100,"character":5}}]}],"filterLteOperator":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":105,"character":5}}]}],"filterLtOperator":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":110,"character":5}}]}],"filterIsTrue":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":115,"character":5}}]}],"filterIsFalse":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":120,"character":5}}]}],"filterBooleanAll":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":125,"character":5}}]}],"filterAfterOrEqualOperator":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":130,"character":5}}]}],"filterAfterOperator":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":135,"character":5}}]}],"filterBeforeOperator":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":140,"character":5}}]}],"filterBeforeOrEqualOperator":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":145,"character":5}}]}],"editorNumericDecrement":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":150,"character":5}}]}],"editorNumericIncrement":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":155,"character":5}}]}],"editorDateTodayText":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":160,"character":5}}]}],"editorDateToggleText":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":165,"character":5}}]}],"filterFieldAriaLabel":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":170,"character":5}}]}],"filterOperatorAriaLabel":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":175,"character":5}}]}],"filterValueAriaLabel":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":180,"character":6}}]}],"filterAriaLabel":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":185,"character":6}}]}],"filterToolbarAriaLabel":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":190,"character":6}}]}]}},"CustomMessagesComponent":{"__symbolic":"class","extends":{"__symbolic":"reference","name":"Messages"},"decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Component","line":8,"character":1},"arguments":[{"providers":[{"provide":{"__symbolic":"reference","name":"Messages"},"useExisting":{"__symbolic":"reference","name":"CustomMessagesComponent"}}],"selector":"kendo-filter-messages","template":""}]}],"members":{"__ctor__":[{"__symbolic":"constructor","parameters":[{"__symbolic":"reference","module":"@progress/kendo-angular-l10n","name":"LocalizationService","line":19,"character":35}]}]}},"AriaLabelValueDirective":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Directive","line":5,"character":1},"arguments":[{"selector":"[kendoAriaLabelValue]"}]}],"members":{"ariaLabel":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":7,"character":5},"arguments":["kendoAriaLabelValue"]}]}],"__ctor__":[{"__symbolic":"constructor","parameters":[{"__symbolic":"reference","module":"@angular/core","name":"ElementRef","line":10,"character":29},{"__symbolic":"reference","module":"@angular/core","name":"Renderer2","line":11,"character":26}]}],"ngOnChanges":[{"__symbolic":"method"}]}}},"origins":{"FilterComponent":"./filter.component","FilterModule":"./filter.module","FilterExpression":"./model/filter-expression","FilterService":"./filter.service","SharedModule":"./shared.module","FilterNumericEditorComponent":"./editors/numeric-editor.component","FilterTextEditorComponent":"./editors/text-editor.component","FilterExpressionComponent":"./filter-expression.component","FilterGroupComponent":"./filter-group.component","FilterExpressionOperatorsComponent":"./filter-expression-operators.component","FilterBooleanEditorComponent":"./editors/boolean-editor.component","FilterDateEditorComponent":"./editors/date-editor.component","LocalizedMessagesDirective":"./localization/localized-messages.directive","Messages":"./localization/messages","CustomMessagesComponent":"./localization/custom-messages.component","AriaLabelValueDirective":"./aria-label.directive"},"importAs":"@progress/kendo-angular-filter"}
|
|
@@ -1,36 +0,0 @@
|
|
|
1
|
-
/**-----------------------------------------------------------------------------------------
|
|
2
|
-
* Copyright © 2021 Progress Software Corporation. All rights reserved.
|
|
3
|
-
* Licensed under commercial license. See LICENSE.md in the project root for more information
|
|
4
|
-
*-------------------------------------------------------------------------------------------*/
|
|
5
|
-
import * as tslib_1 from "tslib";
|
|
6
|
-
var CustomMessagesComponent_1;
|
|
7
|
-
import { Component, forwardRef } from '@angular/core';
|
|
8
|
-
import { LocalizationService } from '@progress/kendo-angular-l10n';
|
|
9
|
-
import { Messages } from './messages';
|
|
10
|
-
/**
|
|
11
|
-
* Custom component messages override default component messages
|
|
12
|
-
* ([see example]({% slug globalization_filter %}#toc-localization)).
|
|
13
|
-
*/
|
|
14
|
-
let CustomMessagesComponent = CustomMessagesComponent_1 = class CustomMessagesComponent extends Messages {
|
|
15
|
-
constructor(service) {
|
|
16
|
-
super();
|
|
17
|
-
this.service = service;
|
|
18
|
-
}
|
|
19
|
-
get override() {
|
|
20
|
-
return true;
|
|
21
|
-
}
|
|
22
|
-
};
|
|
23
|
-
CustomMessagesComponent = CustomMessagesComponent_1 = tslib_1.__decorate([
|
|
24
|
-
Component({
|
|
25
|
-
providers: [
|
|
26
|
-
{
|
|
27
|
-
provide: Messages,
|
|
28
|
-
useExisting: forwardRef(() => CustomMessagesComponent_1)
|
|
29
|
-
}
|
|
30
|
-
],
|
|
31
|
-
selector: 'kendo-filter-messages',
|
|
32
|
-
template: ``
|
|
33
|
-
}),
|
|
34
|
-
tslib_1.__metadata("design:paramtypes", [LocalizationService])
|
|
35
|
-
], CustomMessagesComponent);
|
|
36
|
-
export { CustomMessagesComponent };
|
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
/**-----------------------------------------------------------------------------------------
|
|
2
|
-
* Copyright © 2021 Progress Software Corporation. All rights reserved.
|
|
3
|
-
* Licensed under commercial license. See LICENSE.md in the project root for more information
|
|
4
|
-
*-------------------------------------------------------------------------------------------*/
|
|
5
|
-
import * as tslib_1 from "tslib";
|
|
6
|
-
var LocalizedMessagesDirective_1;
|
|
7
|
-
import { Directive, forwardRef } from '@angular/core';
|
|
8
|
-
import { LocalizationService } from '@progress/kendo-angular-l10n';
|
|
9
|
-
import { Messages } from './messages';
|
|
10
|
-
/**
|
|
11
|
-
* @hidden
|
|
12
|
-
*/
|
|
13
|
-
let LocalizedMessagesDirective = LocalizedMessagesDirective_1 = class LocalizedMessagesDirective extends Messages {
|
|
14
|
-
constructor(service) {
|
|
15
|
-
super();
|
|
16
|
-
this.service = service;
|
|
17
|
-
}
|
|
18
|
-
};
|
|
19
|
-
LocalizedMessagesDirective = LocalizedMessagesDirective_1 = tslib_1.__decorate([
|
|
20
|
-
Directive({
|
|
21
|
-
providers: [
|
|
22
|
-
{
|
|
23
|
-
provide: Messages,
|
|
24
|
-
useExisting: forwardRef(() => LocalizedMessagesDirective_1)
|
|
25
|
-
}
|
|
26
|
-
],
|
|
27
|
-
selector: '[kendoFilterLocalizedMessages]'
|
|
28
|
-
}),
|
|
29
|
-
tslib_1.__metadata("design:paramtypes", [LocalizationService])
|
|
30
|
-
], LocalizedMessagesDirective);
|
|
31
|
-
export { LocalizedMessagesDirective };
|