@progress/kendo-angular-filter 1.0.0-next.202204011458 → 1.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cdn/js/kendo-angular-filter.js +20 -0
- package/dist/cdn/main.js +5 -0
- package/dist/es/aria-label.directive.js +30 -0
- package/dist/es/editors/boolean-editor.component.js +61 -0
- package/dist/es/editors/date-editor.component.js +45 -0
- package/dist/es/editors/numeric-editor.component.js +45 -0
- package/dist/es/editors/text-editor.component.js +45 -0
- package/dist/es/filter-expression-operators.component.js +48 -0
- package/dist/es/filter-expression.component.js +136 -0
- package/dist/es/filter-group.component.js +84 -0
- package/dist/es/filter.component.js +185 -0
- package/dist/es/filter.module.js +91 -0
- package/dist/es/filter.service.js +45 -0
- package/{esm2015/main.js → dist/es/index.js} +8 -3
- package/dist/es/localization/custom-messages.component.js +44 -0
- package/dist/es/localization/localized-messages.directive.js +35 -0
- package/dist/es/localization/messages.js +166 -0
- package/dist/es/main.js +6 -0
- package/{esm2015 → dist/es}/model/filter-expression.js +0 -1
- package/dist/es/package-metadata.js +15 -0
- package/dist/es/shared.module.js +35 -0
- package/dist/es/util.js +136 -0
- package/{aria-label.directive.d.ts → dist/es2015/aria-label.directive.d.ts} +0 -3
- package/dist/es2015/aria-label.directive.js +29 -0
- package/{editors → dist/es2015/editors}/boolean-editor.component.d.ts +0 -3
- package/dist/es2015/editors/boolean-editor.component.js +72 -0
- package/{editors → dist/es2015/editors}/date-editor.component.d.ts +0 -3
- package/dist/es2015/editors/date-editor.component.js +56 -0
- package/{editors → dist/es2015/editors}/numeric-editor.component.d.ts +0 -3
- package/dist/es2015/editors/numeric-editor.component.js +56 -0
- package/{editors → dist/es2015/editors}/text-editor.component.d.ts +0 -3
- package/dist/es2015/editors/text-editor.component.js +52 -0
- package/{filter-expression-operators.component.d.ts → dist/es2015/filter-expression-operators.component.d.ts} +0 -3
- package/dist/es2015/filter-expression-operators.component.js +59 -0
- package/{filter-expression.component.d.ts → dist/es2015/filter-expression.component.d.ts} +0 -5
- package/{esm2015 → dist/es2015}/filter-expression.component.js +26 -71
- package/{filter-group.component.d.ts → dist/es2015/filter-group.component.d.ts} +2 -7
- package/dist/es2015/filter-group.component.js +145 -0
- package/{filter.component.d.ts → dist/es2015/filter.component.d.ts} +2 -7
- package/{esm2015 → dist/es2015}/filter.component.js +34 -151
- package/dist/es2015/filter.module.d.ts +37 -0
- package/dist/es2015/filter.module.js +88 -0
- package/{filter.service.d.ts → dist/es2015/filter.service.d.ts} +0 -3
- package/{esm2015 → dist/es2015}/filter.service.js +10 -8
- package/{main.d.ts → dist/es2015/index.d.ts} +8 -4
- package/dist/es2015/index.js +21 -0
- package/dist/es2015/index.metadata.json +1 -0
- package/{localization → dist/es2015/localization}/custom-messages.component.d.ts +1 -4
- package/dist/es2015/localization/custom-messages.component.js +36 -0
- package/{localization → dist/es2015/localization}/localized-messages.directive.d.ts +0 -3
- package/dist/es2015/localization/localized-messages.directive.js +31 -0
- package/{localization → dist/es2015/localization}/messages.d.ts +0 -3
- package/dist/es2015/localization/messages.js +160 -0
- package/dist/es2015/main.d.ts +7 -0
- package/dist/es2015/main.js +6 -0
- package/{model → dist/es2015/model}/filter-expression.d.ts +0 -0
- package/{esm2015/kendo-angular-filter.js → dist/es2015/model/filter-expression.js} +1 -2
- package/{package-metadata.d.ts → dist/es2015/package-metadata.d.ts} +0 -0
- package/{esm2015 → dist/es2015}/package-metadata.js +1 -1
- package/{kendo-angular-filter.d.ts → dist/es2015/shared.module.d.ts} +3 -3
- package/dist/es2015/shared.module.js +32 -0
- package/dist/es2015/util.d.ts +147 -0
- package/{esm2015 → dist/es2015}/util.js +3 -3
- package/dist/fesm2015/index.js +1316 -0
- package/dist/fesm5/index.js +1076 -0
- package/dist/npm/aria-label.directive.js +32 -0
- package/dist/npm/editors/boolean-editor.component.js +63 -0
- package/dist/npm/editors/date-editor.component.js +47 -0
- package/dist/npm/editors/numeric-editor.component.js +47 -0
- package/dist/npm/editors/text-editor.component.js +47 -0
- package/dist/npm/filter-expression-operators.component.js +50 -0
- package/dist/npm/filter-expression.component.js +138 -0
- package/dist/npm/filter-group.component.js +86 -0
- package/dist/npm/filter.component.js +187 -0
- package/dist/npm/filter.module.js +93 -0
- package/dist/npm/filter.service.js +47 -0
- package/dist/npm/index.js +37 -0
- package/dist/npm/localization/custom-messages.component.js +46 -0
- package/dist/npm/localization/localized-messages.directive.js +37 -0
- package/dist/npm/localization/messages.js +168 -0
- package/dist/npm/main.js +10 -0
- package/dist/npm/model/filter-expression.js +9 -0
- package/dist/npm/package-metadata.js +17 -0
- package/dist/npm/shared.module.js +37 -0
- package/dist/npm/util.js +138 -0
- package/dist/systemjs/kendo-angular-filter.js +5 -0
- package/package.json +109 -38
- package/schematics/ngAdd/index.js +2 -5
- package/schematics/ngAdd/index.js.map +1 -1
- package/bundles/kendo-angular-filter.umd.js +0 -5
- package/esm2015/aria-label.directive.js +0 -28
- package/esm2015/editors/boolean-editor.component.js +0 -84
- package/esm2015/editors/date-editor.component.js +0 -67
- package/esm2015/editors/numeric-editor.component.js +0 -67
- package/esm2015/editors/text-editor.component.js +0 -59
- package/esm2015/filter-expression-operators.component.js +0 -68
- package/esm2015/filter-group.component.js +0 -206
- package/esm2015/filter.module.js +0 -117
- package/esm2015/localization/custom-messages.component.js +0 -41
- package/esm2015/localization/localized-messages.directive.js +0 -36
- package/esm2015/localization/messages.js +0 -95
- package/esm2015/shared.module.js +0 -50
- package/fesm2015/kendo-angular-filter.js +0 -1622
- package/filter.module.d.ts +0 -53
- package/shared.module.d.ts +0 -19
- package/util.d.ts +0 -147
|
@@ -1,206 +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 { Component, EventEmitter, Input, Output } from '@angular/core';
|
|
6
|
-
import { localizeOperators, logicOperators } from './util';
|
|
7
|
-
import * as i0 from "@angular/core";
|
|
8
|
-
import * as i1 from "./filter.service";
|
|
9
|
-
import * as i2 from "@progress/kendo-angular-l10n";
|
|
10
|
-
import * as i3 from "./filter-expression.component";
|
|
11
|
-
import * as i4 from "@angular/common";
|
|
12
|
-
import * as i5 from "@progress/kendo-angular-buttons";
|
|
13
|
-
/**
|
|
14
|
-
* @hidden
|
|
15
|
-
*/
|
|
16
|
-
export class FilterGroupComponent {
|
|
17
|
-
constructor(filterService, localization, cdr) {
|
|
18
|
-
this.filterService = filterService;
|
|
19
|
-
this.localization = localization;
|
|
20
|
-
this.cdr = cdr;
|
|
21
|
-
this.index = 0;
|
|
22
|
-
this.currentItem = {
|
|
23
|
-
logic: 'or',
|
|
24
|
-
filters: []
|
|
25
|
-
};
|
|
26
|
-
this.valueChange = new EventEmitter();
|
|
27
|
-
this.operators = [];
|
|
28
|
-
}
|
|
29
|
-
ngOnInit() {
|
|
30
|
-
this.operators = this.getLogicOperators();
|
|
31
|
-
this.localizationSubscription = this.localization.changes.subscribe(() => {
|
|
32
|
-
this.operators = this.getLogicOperators();
|
|
33
|
-
this.cdr.detectChanges();
|
|
34
|
-
});
|
|
35
|
-
}
|
|
36
|
-
ngOnDestroy() {
|
|
37
|
-
if (this.localizationSubscription) {
|
|
38
|
-
this.localizationSubscription.unsubscribe();
|
|
39
|
-
}
|
|
40
|
-
}
|
|
41
|
-
getLogicOperators() {
|
|
42
|
-
return localizeOperators(logicOperators)(this.localization);
|
|
43
|
-
}
|
|
44
|
-
messageFor(key) {
|
|
45
|
-
return this.localization.get(key);
|
|
46
|
-
}
|
|
47
|
-
selectedChange(logicOperator) {
|
|
48
|
-
if (this.currentItem.logic !== logicOperator) {
|
|
49
|
-
this.currentItem.logic = logicOperator;
|
|
50
|
-
this.valueChange.emit();
|
|
51
|
-
}
|
|
52
|
-
}
|
|
53
|
-
addFilterExpression() {
|
|
54
|
-
this.filterService.addFilterExpression(this.currentItem);
|
|
55
|
-
this.valueChange.emit();
|
|
56
|
-
}
|
|
57
|
-
addFilterGroup() {
|
|
58
|
-
this.filterService.addFilterGroup(this.currentItem);
|
|
59
|
-
this.valueChange.emit();
|
|
60
|
-
}
|
|
61
|
-
removeFilterGroup() {
|
|
62
|
-
this.filterService.remove(this.currentItem, this.index);
|
|
63
|
-
this.valueChange.emit();
|
|
64
|
-
}
|
|
65
|
-
}
|
|
66
|
-
FilterGroupComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: FilterGroupComponent, deps: [{ token: i1.FilterService }, { token: i2.LocalizationService }, { token: i0.ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Component });
|
|
67
|
-
FilterGroupComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.16", type: FilterGroupComponent, selector: "kendo-filter-group", inputs: { index: "index", currentItem: "currentItem" }, outputs: { valueChange: "valueChange" }, ngImport: i0, template: `
|
|
68
|
-
<div class="k-filter-toolbar" role="toolbar" [attr.aria-label]="messageFor('filterToolbarAriaLabel')">
|
|
69
|
-
<div class="k-toolbar">
|
|
70
|
-
<div class="k-filter-toolbar-item">
|
|
71
|
-
<div class="k-widget k-button-group" role="group">
|
|
72
|
-
<button
|
|
73
|
-
*ngFor="let operator of operators"
|
|
74
|
-
kendoButton
|
|
75
|
-
[ngClass]="{'k-group-start': operator.value === 'and', 'k-group-end': operator.value === 'or'}"
|
|
76
|
-
[selected]="currentItem.logic === operator.value"
|
|
77
|
-
[title]="operator.text"
|
|
78
|
-
(click)="selectedChange(operator.value)"
|
|
79
|
-
>
|
|
80
|
-
{{operator.text}}
|
|
81
|
-
</button>
|
|
82
|
-
</div>
|
|
83
|
-
</div>
|
|
84
|
-
<div class="k-filter-toolbar-item">
|
|
85
|
-
<button
|
|
86
|
-
kendoButton
|
|
87
|
-
[title]="messageFor('addFilter')"
|
|
88
|
-
icon="filter-add-expression"
|
|
89
|
-
(click)="addFilterExpression()">
|
|
90
|
-
{{messageFor('addFilter')}}
|
|
91
|
-
</button>
|
|
92
|
-
</div>
|
|
93
|
-
<div class="k-filter-toolbar-item">
|
|
94
|
-
<button
|
|
95
|
-
kendoButton
|
|
96
|
-
[title]="messageFor('addGroup')"
|
|
97
|
-
icon="filter-add-group"
|
|
98
|
-
(click)="addFilterGroup()">
|
|
99
|
-
{{messageFor('addGroup')}}
|
|
100
|
-
</button>
|
|
101
|
-
</div>
|
|
102
|
-
<div class="k-filter-toolbar-item">
|
|
103
|
-
<button
|
|
104
|
-
kendoButton
|
|
105
|
-
icon="close"
|
|
106
|
-
fillMode="flat"
|
|
107
|
-
[title]="messageFor('remove')"
|
|
108
|
-
(click)="removeFilterGroup()">
|
|
109
|
-
</button>
|
|
110
|
-
</div>
|
|
111
|
-
</div>
|
|
112
|
-
</div>
|
|
113
|
-
|
|
114
|
-
<ul class="k-filter-lines" *ngIf="currentItem.filters">
|
|
115
|
-
<ng-container *ngFor="let item of currentItem.filters; let i = index;">
|
|
116
|
-
<li class="k-filter-item" *ngIf="!item['filters']">
|
|
117
|
-
<kendo-filter-expression (valueChange)="valueChange.emit()" [currentItem]="item" [index]="i">
|
|
118
|
-
</kendo-filter-expression>
|
|
119
|
-
</li>
|
|
120
|
-
<li class="k-filter-item" *ngIf="item['filters']">
|
|
121
|
-
<kendo-filter-group
|
|
122
|
-
(valueChange)="valueChange.emit()"
|
|
123
|
-
[currentItem]="item"
|
|
124
|
-
[index]="i"
|
|
125
|
-
>
|
|
126
|
-
</kendo-filter-group>
|
|
127
|
-
</li>
|
|
128
|
-
</ng-container>
|
|
129
|
-
</ul>
|
|
130
|
-
`, isInline: true, components: [{ type: i3.FilterExpressionComponent, selector: "kendo-filter-expression", inputs: ["index", "currentItem"], outputs: ["valueChange"] }, { type: FilterGroupComponent, selector: "kendo-filter-group", inputs: ["index", "currentItem"], outputs: ["valueChange"] }], directives: [{ type: i4.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { type: i5.ButtonDirective, selector: "button[kendoButton], span[kendoButton]", inputs: ["toggleable", "togglable", "selected", "tabIndex", "icon", "iconClass", "imageUrl", "disabled", "size", "rounded", "fillMode", "themeColor", "shape", "role", "primary", "look"], outputs: ["selectedChange", "click"], exportAs: ["kendoButton"] }, { type: i4.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { type: i4.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }] });
|
|
131
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: FilterGroupComponent, decorators: [{
|
|
132
|
-
type: Component,
|
|
133
|
-
args: [{
|
|
134
|
-
selector: 'kendo-filter-group',
|
|
135
|
-
template: `
|
|
136
|
-
<div class="k-filter-toolbar" role="toolbar" [attr.aria-label]="messageFor('filterToolbarAriaLabel')">
|
|
137
|
-
<div class="k-toolbar">
|
|
138
|
-
<div class="k-filter-toolbar-item">
|
|
139
|
-
<div class="k-widget k-button-group" role="group">
|
|
140
|
-
<button
|
|
141
|
-
*ngFor="let operator of operators"
|
|
142
|
-
kendoButton
|
|
143
|
-
[ngClass]="{'k-group-start': operator.value === 'and', 'k-group-end': operator.value === 'or'}"
|
|
144
|
-
[selected]="currentItem.logic === operator.value"
|
|
145
|
-
[title]="operator.text"
|
|
146
|
-
(click)="selectedChange(operator.value)"
|
|
147
|
-
>
|
|
148
|
-
{{operator.text}}
|
|
149
|
-
</button>
|
|
150
|
-
</div>
|
|
151
|
-
</div>
|
|
152
|
-
<div class="k-filter-toolbar-item">
|
|
153
|
-
<button
|
|
154
|
-
kendoButton
|
|
155
|
-
[title]="messageFor('addFilter')"
|
|
156
|
-
icon="filter-add-expression"
|
|
157
|
-
(click)="addFilterExpression()">
|
|
158
|
-
{{messageFor('addFilter')}}
|
|
159
|
-
</button>
|
|
160
|
-
</div>
|
|
161
|
-
<div class="k-filter-toolbar-item">
|
|
162
|
-
<button
|
|
163
|
-
kendoButton
|
|
164
|
-
[title]="messageFor('addGroup')"
|
|
165
|
-
icon="filter-add-group"
|
|
166
|
-
(click)="addFilterGroup()">
|
|
167
|
-
{{messageFor('addGroup')}}
|
|
168
|
-
</button>
|
|
169
|
-
</div>
|
|
170
|
-
<div class="k-filter-toolbar-item">
|
|
171
|
-
<button
|
|
172
|
-
kendoButton
|
|
173
|
-
icon="close"
|
|
174
|
-
fillMode="flat"
|
|
175
|
-
[title]="messageFor('remove')"
|
|
176
|
-
(click)="removeFilterGroup()">
|
|
177
|
-
</button>
|
|
178
|
-
</div>
|
|
179
|
-
</div>
|
|
180
|
-
</div>
|
|
181
|
-
|
|
182
|
-
<ul class="k-filter-lines" *ngIf="currentItem.filters">
|
|
183
|
-
<ng-container *ngFor="let item of currentItem.filters; let i = index;">
|
|
184
|
-
<li class="k-filter-item" *ngIf="!item['filters']">
|
|
185
|
-
<kendo-filter-expression (valueChange)="valueChange.emit()" [currentItem]="item" [index]="i">
|
|
186
|
-
</kendo-filter-expression>
|
|
187
|
-
</li>
|
|
188
|
-
<li class="k-filter-item" *ngIf="item['filters']">
|
|
189
|
-
<kendo-filter-group
|
|
190
|
-
(valueChange)="valueChange.emit()"
|
|
191
|
-
[currentItem]="item"
|
|
192
|
-
[index]="i"
|
|
193
|
-
>
|
|
194
|
-
</kendo-filter-group>
|
|
195
|
-
</li>
|
|
196
|
-
</ng-container>
|
|
197
|
-
</ul>
|
|
198
|
-
`
|
|
199
|
-
}]
|
|
200
|
-
}], ctorParameters: function () { return [{ type: i1.FilterService }, { type: i2.LocalizationService }, { type: i0.ChangeDetectorRef }]; }, propDecorators: { index: [{
|
|
201
|
-
type: Input
|
|
202
|
-
}], currentItem: [{
|
|
203
|
-
type: Input
|
|
204
|
-
}], valueChange: [{
|
|
205
|
-
type: Output
|
|
206
|
-
}] } });
|
package/esm2015/filter.module.js
DELETED
|
@@ -1,117 +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 { NgModule } from '@angular/core';
|
|
6
|
-
import { L10N_PREFIX, LocalizationService } from '@progress/kendo-angular-l10n';
|
|
7
|
-
import { AriaLabelValueDirective } from './aria-label.directive';
|
|
8
|
-
import { FilterBooleanEditorComponent } from './editors/boolean-editor.component';
|
|
9
|
-
import { FilterDateEditorComponent } from './editors/date-editor.component';
|
|
10
|
-
import { FilterNumericEditorComponent } from './editors/numeric-editor.component';
|
|
11
|
-
import { FilterTextEditorComponent } from './editors/text-editor.component';
|
|
12
|
-
import { FilterExpressionOperatorsComponent } from './filter-expression-operators.component';
|
|
13
|
-
import { FilterExpressionComponent } from './filter-expression.component';
|
|
14
|
-
import { FilterGroupComponent } from './filter-group.component';
|
|
15
|
-
import { FilterComponent } from './filter.component';
|
|
16
|
-
import { CustomMessagesComponent } from './localization/custom-messages.component';
|
|
17
|
-
import { LocalizedMessagesDirective } from './localization/localized-messages.directive';
|
|
18
|
-
import { SharedModule } from './shared.module';
|
|
19
|
-
import * as i0 from "@angular/core";
|
|
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
|
-
export class FilterModule {
|
|
52
|
-
}
|
|
53
|
-
FilterModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: FilterModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
54
|
-
FilterModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: FilterModule, declarations: [FilterComponent,
|
|
55
|
-
FilterNumericEditorComponent,
|
|
56
|
-
FilterTextEditorComponent,
|
|
57
|
-
FilterExpressionComponent,
|
|
58
|
-
FilterGroupComponent,
|
|
59
|
-
FilterExpressionOperatorsComponent,
|
|
60
|
-
FilterBooleanEditorComponent,
|
|
61
|
-
FilterDateEditorComponent,
|
|
62
|
-
LocalizedMessagesDirective,
|
|
63
|
-
CustomMessagesComponent,
|
|
64
|
-
AriaLabelValueDirective], imports: [SharedModule], exports: [FilterComponent,
|
|
65
|
-
FilterNumericEditorComponent,
|
|
66
|
-
FilterTextEditorComponent,
|
|
67
|
-
FilterExpressionComponent,
|
|
68
|
-
FilterGroupComponent,
|
|
69
|
-
FilterExpressionOperatorsComponent,
|
|
70
|
-
FilterBooleanEditorComponent,
|
|
71
|
-
FilterDateEditorComponent,
|
|
72
|
-
LocalizedMessagesDirective,
|
|
73
|
-
CustomMessagesComponent,
|
|
74
|
-
AriaLabelValueDirective] });
|
|
75
|
-
FilterModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: FilterModule, providers: [
|
|
76
|
-
LocalizationService,
|
|
77
|
-
{
|
|
78
|
-
provide: L10N_PREFIX,
|
|
79
|
-
useValue: 'kendo.filter'
|
|
80
|
-
}
|
|
81
|
-
], imports: [[SharedModule]] });
|
|
82
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: FilterModule, decorators: [{
|
|
83
|
-
type: NgModule,
|
|
84
|
-
args: [{
|
|
85
|
-
imports: [SharedModule],
|
|
86
|
-
declarations: [FilterComponent,
|
|
87
|
-
FilterNumericEditorComponent,
|
|
88
|
-
FilterTextEditorComponent,
|
|
89
|
-
FilterExpressionComponent,
|
|
90
|
-
FilterGroupComponent,
|
|
91
|
-
FilterExpressionOperatorsComponent,
|
|
92
|
-
FilterBooleanEditorComponent,
|
|
93
|
-
FilterDateEditorComponent,
|
|
94
|
-
LocalizedMessagesDirective,
|
|
95
|
-
CustomMessagesComponent,
|
|
96
|
-
AriaLabelValueDirective
|
|
97
|
-
],
|
|
98
|
-
exports: [FilterComponent,
|
|
99
|
-
FilterNumericEditorComponent,
|
|
100
|
-
FilterTextEditorComponent,
|
|
101
|
-
FilterExpressionComponent,
|
|
102
|
-
FilterGroupComponent,
|
|
103
|
-
FilterExpressionOperatorsComponent,
|
|
104
|
-
FilterBooleanEditorComponent,
|
|
105
|
-
FilterDateEditorComponent,
|
|
106
|
-
LocalizedMessagesDirective,
|
|
107
|
-
CustomMessagesComponent,
|
|
108
|
-
AriaLabelValueDirective],
|
|
109
|
-
providers: [
|
|
110
|
-
LocalizationService,
|
|
111
|
-
{
|
|
112
|
-
provide: L10N_PREFIX,
|
|
113
|
-
useValue: 'kendo.filter'
|
|
114
|
-
}
|
|
115
|
-
]
|
|
116
|
-
}]
|
|
117
|
-
}] });
|
|
@@ -1,41 +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 { Component, forwardRef } from '@angular/core';
|
|
6
|
-
import { Messages } from './messages';
|
|
7
|
-
import * as i0 from "@angular/core";
|
|
8
|
-
import * as i1 from "@progress/kendo-angular-l10n";
|
|
9
|
-
/**
|
|
10
|
-
* Custom component messages override default component messages
|
|
11
|
-
* ([see example]({% slug globalization_filter %}#toc-localization)).
|
|
12
|
-
*/
|
|
13
|
-
export class CustomMessagesComponent extends Messages {
|
|
14
|
-
constructor(service) {
|
|
15
|
-
super();
|
|
16
|
-
this.service = service;
|
|
17
|
-
}
|
|
18
|
-
get override() {
|
|
19
|
-
return true;
|
|
20
|
-
}
|
|
21
|
-
}
|
|
22
|
-
CustomMessagesComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: CustomMessagesComponent, deps: [{ token: i1.LocalizationService }], target: i0.ɵɵFactoryTarget.Component });
|
|
23
|
-
CustomMessagesComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.16", type: CustomMessagesComponent, selector: "kendo-filter-messages", providers: [
|
|
24
|
-
{
|
|
25
|
-
provide: Messages,
|
|
26
|
-
useExisting: forwardRef(() => CustomMessagesComponent)
|
|
27
|
-
}
|
|
28
|
-
], usesInheritance: true, ngImport: i0, template: ``, isInline: true });
|
|
29
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: CustomMessagesComponent, decorators: [{
|
|
30
|
-
type: Component,
|
|
31
|
-
args: [{
|
|
32
|
-
providers: [
|
|
33
|
-
{
|
|
34
|
-
provide: Messages,
|
|
35
|
-
useExisting: forwardRef(() => CustomMessagesComponent)
|
|
36
|
-
}
|
|
37
|
-
],
|
|
38
|
-
selector: 'kendo-filter-messages',
|
|
39
|
-
template: ``
|
|
40
|
-
}]
|
|
41
|
-
}], ctorParameters: function () { return [{ type: i1.LocalizationService }]; } });
|
|
@@ -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 { Directive, forwardRef } from '@angular/core';
|
|
6
|
-
import { Messages } from './messages';
|
|
7
|
-
import * as i0 from "@angular/core";
|
|
8
|
-
import * as i1 from "@progress/kendo-angular-l10n";
|
|
9
|
-
/**
|
|
10
|
-
* @hidden
|
|
11
|
-
*/
|
|
12
|
-
export class LocalizedMessagesDirective extends Messages {
|
|
13
|
-
constructor(service) {
|
|
14
|
-
super();
|
|
15
|
-
this.service = service;
|
|
16
|
-
}
|
|
17
|
-
}
|
|
18
|
-
LocalizedMessagesDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: LocalizedMessagesDirective, deps: [{ token: i1.LocalizationService }], target: i0.ɵɵFactoryTarget.Directive });
|
|
19
|
-
LocalizedMessagesDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "12.2.16", type: LocalizedMessagesDirective, selector: "[kendoFilterLocalizedMessages]", providers: [
|
|
20
|
-
{
|
|
21
|
-
provide: Messages,
|
|
22
|
-
useExisting: forwardRef(() => LocalizedMessagesDirective)
|
|
23
|
-
}
|
|
24
|
-
], usesInheritance: true, ngImport: i0 });
|
|
25
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: LocalizedMessagesDirective, decorators: [{
|
|
26
|
-
type: Directive,
|
|
27
|
-
args: [{
|
|
28
|
-
providers: [
|
|
29
|
-
{
|
|
30
|
-
provide: Messages,
|
|
31
|
-
useExisting: forwardRef(() => LocalizedMessagesDirective)
|
|
32
|
-
}
|
|
33
|
-
],
|
|
34
|
-
selector: '[kendoFilterLocalizedMessages]'
|
|
35
|
-
}]
|
|
36
|
-
}], ctorParameters: function () { return [{ type: i1.LocalizationService }]; } });
|
|
@@ -1,95 +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 { Directive } from '@angular/core';
|
|
6
|
-
import { Input } from '@angular/core';
|
|
7
|
-
import { ComponentMessages } from '@progress/kendo-angular-l10n';
|
|
8
|
-
import * as i0 from "@angular/core";
|
|
9
|
-
/**
|
|
10
|
-
* @hidden
|
|
11
|
-
*/
|
|
12
|
-
export class Messages extends ComponentMessages {
|
|
13
|
-
}
|
|
14
|
-
Messages.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: Messages, deps: null, target: i0.ɵɵFactoryTarget.Directive });
|
|
15
|
-
Messages.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "12.2.16", type: Messages, selector: "[kendoFilterMessages]", inputs: { filterExpressionOperators: "filterExpressionOperators", filterExpressionFilters: "filterExpressionFilters", remove: "remove", addGroup: "addGroup", addFilter: "addFilter", filterAndLogic: "filterAndLogic", filterOrLogic: "filterOrLogic", filterEqOperator: "filterEqOperator", filterNotEqOperator: "filterNotEqOperator", filterIsNullOperator: "filterIsNullOperator", filterIsNotNullOperator: "filterIsNotNullOperator", filterIsEmptyOperator: "filterIsEmptyOperator", filterIsNotEmptyOperator: "filterIsNotEmptyOperator", filterStartsWithOperator: "filterStartsWithOperator", filterContainsOperator: "filterContainsOperator", filterNotContainsOperator: "filterNotContainsOperator", filterEndsWithOperator: "filterEndsWithOperator", filterGteOperator: "filterGteOperator", filterGtOperator: "filterGtOperator", filterLteOperator: "filterLteOperator", filterLtOperator: "filterLtOperator", filterIsTrue: "filterIsTrue", filterIsFalse: "filterIsFalse", filterBooleanAll: "filterBooleanAll", filterAfterOrEqualOperator: "filterAfterOrEqualOperator", filterAfterOperator: "filterAfterOperator", filterBeforeOperator: "filterBeforeOperator", filterBeforeOrEqualOperator: "filterBeforeOrEqualOperator", editorNumericDecrement: "editorNumericDecrement", editorNumericIncrement: "editorNumericIncrement", editorDateTodayText: "editorDateTodayText", editorDateToggleText: "editorDateToggleText", filterFieldAriaLabel: "filterFieldAriaLabel", filterOperatorAriaLabel: "filterOperatorAriaLabel", filterValueAriaLabel: "filterValueAriaLabel", filterAriaLabel: "filterAriaLabel", filterToolbarAriaLabel: "filterToolbarAriaLabel" }, usesInheritance: true, ngImport: i0 });
|
|
16
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: Messages, decorators: [{
|
|
17
|
-
type: Directive,
|
|
18
|
-
args: [{
|
|
19
|
-
selector: '[kendoFilterMessages]'
|
|
20
|
-
}]
|
|
21
|
-
}], propDecorators: { filterExpressionOperators: [{
|
|
22
|
-
type: Input
|
|
23
|
-
}], filterExpressionFilters: [{
|
|
24
|
-
type: Input
|
|
25
|
-
}], remove: [{
|
|
26
|
-
type: Input
|
|
27
|
-
}], addGroup: [{
|
|
28
|
-
type: Input
|
|
29
|
-
}], addFilter: [{
|
|
30
|
-
type: Input
|
|
31
|
-
}], filterAndLogic: [{
|
|
32
|
-
type: Input
|
|
33
|
-
}], filterOrLogic: [{
|
|
34
|
-
type: Input
|
|
35
|
-
}], filterEqOperator: [{
|
|
36
|
-
type: Input
|
|
37
|
-
}], filterNotEqOperator: [{
|
|
38
|
-
type: Input
|
|
39
|
-
}], filterIsNullOperator: [{
|
|
40
|
-
type: Input
|
|
41
|
-
}], filterIsNotNullOperator: [{
|
|
42
|
-
type: Input
|
|
43
|
-
}], filterIsEmptyOperator: [{
|
|
44
|
-
type: Input
|
|
45
|
-
}], filterIsNotEmptyOperator: [{
|
|
46
|
-
type: Input
|
|
47
|
-
}], filterStartsWithOperator: [{
|
|
48
|
-
type: Input
|
|
49
|
-
}], filterContainsOperator: [{
|
|
50
|
-
type: Input
|
|
51
|
-
}], filterNotContainsOperator: [{
|
|
52
|
-
type: Input
|
|
53
|
-
}], filterEndsWithOperator: [{
|
|
54
|
-
type: Input
|
|
55
|
-
}], filterGteOperator: [{
|
|
56
|
-
type: Input
|
|
57
|
-
}], filterGtOperator: [{
|
|
58
|
-
type: Input
|
|
59
|
-
}], filterLteOperator: [{
|
|
60
|
-
type: Input
|
|
61
|
-
}], filterLtOperator: [{
|
|
62
|
-
type: Input
|
|
63
|
-
}], filterIsTrue: [{
|
|
64
|
-
type: Input
|
|
65
|
-
}], filterIsFalse: [{
|
|
66
|
-
type: Input
|
|
67
|
-
}], filterBooleanAll: [{
|
|
68
|
-
type: Input
|
|
69
|
-
}], filterAfterOrEqualOperator: [{
|
|
70
|
-
type: Input
|
|
71
|
-
}], filterAfterOperator: [{
|
|
72
|
-
type: Input
|
|
73
|
-
}], filterBeforeOperator: [{
|
|
74
|
-
type: Input
|
|
75
|
-
}], filterBeforeOrEqualOperator: [{
|
|
76
|
-
type: Input
|
|
77
|
-
}], editorNumericDecrement: [{
|
|
78
|
-
type: Input
|
|
79
|
-
}], editorNumericIncrement: [{
|
|
80
|
-
type: Input
|
|
81
|
-
}], editorDateTodayText: [{
|
|
82
|
-
type: Input
|
|
83
|
-
}], editorDateToggleText: [{
|
|
84
|
-
type: Input
|
|
85
|
-
}], filterFieldAriaLabel: [{
|
|
86
|
-
type: Input
|
|
87
|
-
}], filterOperatorAriaLabel: [{
|
|
88
|
-
type: Input
|
|
89
|
-
}], filterValueAriaLabel: [{
|
|
90
|
-
type: Input
|
|
91
|
-
}], filterAriaLabel: [{
|
|
92
|
-
type: Input
|
|
93
|
-
}], filterToolbarAriaLabel: [{
|
|
94
|
-
type: Input
|
|
95
|
-
}] } });
|
package/esm2015/shared.module.js
DELETED
|
@@ -1,50 +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 { CommonModule } from '@angular/common';
|
|
6
|
-
import { DropDownsModule } from '@progress/kendo-angular-dropdowns';
|
|
7
|
-
import { InputsModule } from '@progress/kendo-angular-inputs';
|
|
8
|
-
import { LabelModule } from '@progress/kendo-angular-label';
|
|
9
|
-
import { NgModule } from '@angular/core';
|
|
10
|
-
import { ButtonsModule } from '@progress/kendo-angular-buttons';
|
|
11
|
-
import { DateInputsModule } from '@progress/kendo-angular-dateinputs';
|
|
12
|
-
import * as i0 from "@angular/core";
|
|
13
|
-
const importedModules = [
|
|
14
|
-
CommonModule,
|
|
15
|
-
InputsModule,
|
|
16
|
-
LabelModule,
|
|
17
|
-
DropDownsModule,
|
|
18
|
-
ButtonsModule,
|
|
19
|
-
DateInputsModule
|
|
20
|
-
];
|
|
21
|
-
/**
|
|
22
|
-
* @hidden
|
|
23
|
-
*/
|
|
24
|
-
export class SharedModule {
|
|
25
|
-
}
|
|
26
|
-
SharedModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: SharedModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
27
|
-
SharedModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: SharedModule, imports: [CommonModule,
|
|
28
|
-
InputsModule,
|
|
29
|
-
LabelModule,
|
|
30
|
-
DropDownsModule,
|
|
31
|
-
ButtonsModule,
|
|
32
|
-
DateInputsModule], exports: [CommonModule,
|
|
33
|
-
InputsModule,
|
|
34
|
-
LabelModule,
|
|
35
|
-
DropDownsModule,
|
|
36
|
-
ButtonsModule,
|
|
37
|
-
DateInputsModule] });
|
|
38
|
-
SharedModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: SharedModule, imports: [[...importedModules], CommonModule,
|
|
39
|
-
InputsModule,
|
|
40
|
-
LabelModule,
|
|
41
|
-
DropDownsModule,
|
|
42
|
-
ButtonsModule,
|
|
43
|
-
DateInputsModule] });
|
|
44
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: SharedModule, decorators: [{
|
|
45
|
-
type: NgModule,
|
|
46
|
-
args: [{
|
|
47
|
-
imports: [...importedModules],
|
|
48
|
-
exports: [...importedModules]
|
|
49
|
-
}]
|
|
50
|
-
}] });
|