@progress/kendo-angular-grid 12.2.0-develop.6 → 13.0.0-develop.1
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/column-menu/column-chooser.component.d.ts +4 -4
- package/column-menu/column-menu-autosize-all.component.d.ts +6 -7
- package/column-menu/column-menu-autosize.component.d.ts +1 -3
- package/column-menu/column-menu-chooser.component.d.ts +7 -6
- package/column-menu/column-menu-filter.component.d.ts +7 -6
- package/column-menu/column-menu-lock.component.d.ts +7 -6
- package/column-menu/column-menu-position.component.d.ts +7 -6
- package/column-menu/column-menu-settings.interface.d.ts +5 -0
- package/column-menu/column-menu-sort.component.d.ts +7 -6
- package/column-menu/column-menu-stick.component.d.ts +3 -3
- package/column-menu/column-menu.component.d.ts +39 -5
- package/column-menu/column-menu.module.d.ts +2 -1
- package/column-resizing/column-handle.directive.d.ts +3 -3
- package/common/provider.service.d.ts +3 -1
- package/common/single-popup.service.d.ts +3 -3
- package/editing/add-command.directive.d.ts +2 -2
- package/editing/cancel-command.directive.d.ts +2 -2
- package/editing/edit-command.directive.d.ts +2 -2
- package/editing/remove-command.directive.d.ts +2 -2
- package/editing/save-command.directive.d.ts +2 -2
- package/esm2020/column-menu/column-chooser.component.mjs +17 -17
- package/esm2020/column-menu/column-menu-autosize-all.component.mjs +19 -21
- package/esm2020/column-menu/column-menu-autosize.component.mjs +9 -12
- package/esm2020/column-menu/column-menu-chooser.component.mjs +16 -15
- package/esm2020/column-menu/column-menu-filter.component.mjs +12 -11
- package/esm2020/column-menu/column-menu-lock.component.mjs +11 -10
- package/esm2020/column-menu/column-menu-position.component.mjs +12 -11
- package/esm2020/column-menu/column-menu-sort.component.mjs +14 -13
- package/esm2020/column-menu/column-menu-stick.component.mjs +7 -7
- package/esm2020/column-menu/column-menu.component.mjs +257 -17
- package/esm2020/column-menu/column-menu.module.mjs +4 -3
- package/esm2020/column-resizing/column-handle.directive.mjs +7 -7
- package/esm2020/common/provider.service.mjs +6 -3
- package/esm2020/common/single-popup.service.mjs +8 -8
- package/esm2020/editing/add-command.directive.mjs +6 -6
- package/esm2020/editing/cancel-command.directive.mjs +6 -6
- package/esm2020/editing/edit-command.directive.mjs +6 -6
- package/esm2020/editing/remove-command.directive.mjs +6 -6
- package/esm2020/editing/save-command.directive.mjs +6 -6
- package/esm2020/excel/excel-command.directive.mjs +6 -6
- package/esm2020/excel/excel.component.mjs +7 -7
- package/esm2020/filtering/boolean-filter.component.mjs +13 -13
- package/esm2020/filtering/cell/autocomplete-filter-cell.component.mjs +7 -7
- package/esm2020/filtering/cell/boolean-filter-cell.component.mjs +7 -7
- package/esm2020/filtering/cell/date-filter-cell.component.mjs +9 -9
- package/esm2020/filtering/cell/filter-cell-operators.component.mjs +7 -7
- package/esm2020/filtering/cell/numeric-filter-cell.component.mjs +10 -10
- package/esm2020/filtering/cell/string-filter-cell.component.mjs +7 -7
- package/esm2020/filtering/date-filter.component.mjs +9 -9
- package/esm2020/filtering/filter-row.component.mjs +7 -7
- package/esm2020/filtering/menu/boolean-filter-menu.component.mjs +10 -8
- package/esm2020/filtering/menu/date-filter-menu-input.component.mjs +8 -8
- package/esm2020/filtering/menu/date-filter-menu.component.mjs +9 -9
- package/esm2020/filtering/menu/filter-menu-container.component.mjs +9 -9
- package/esm2020/filtering/menu/filter-menu-input-wrapper.component.mjs +10 -8
- package/esm2020/filtering/menu/filter-menu.component.mjs +7 -7
- package/esm2020/filtering/menu/menu-tabbing.service.mjs +1 -0
- package/esm2020/filtering/menu/numeric-filter-menu-input.component.mjs +8 -8
- package/esm2020/filtering/menu/numeric-filter-menu.component.mjs +9 -9
- package/esm2020/filtering/menu/string-filter-menu-input.component.mjs +7 -7
- package/esm2020/filtering/menu/string-filter-menu.component.mjs +9 -9
- package/esm2020/filtering/numeric-filter.component.mjs +9 -9
- package/esm2020/filtering/operators/after-eq-filter-operator.component.mjs +5 -5
- package/esm2020/filtering/operators/after-filter-operator.component.mjs +5 -5
- package/esm2020/filtering/operators/before-eq-filter-operator.component.mjs +5 -5
- package/esm2020/filtering/operators/before-filter-operator.component.mjs +5 -5
- package/esm2020/filtering/operators/contains-filter-operator.component.mjs +5 -5
- package/esm2020/filtering/operators/ends-with-filter-operator.component.mjs +5 -5
- package/esm2020/filtering/operators/eq-filter-operator.component.mjs +5 -5
- package/esm2020/filtering/operators/filter-operator.base.mjs +9 -9
- package/esm2020/filtering/operators/gt-filter-operator.component.mjs +5 -5
- package/esm2020/filtering/operators/gte-filter-operator.component.mjs +5 -5
- package/esm2020/filtering/operators/is-empty-filter-operator.component.mjs +5 -5
- package/esm2020/filtering/operators/is-not-empty-filter-operator.component.mjs +5 -5
- package/esm2020/filtering/operators/is-not-null-filter-operator.component.mjs +5 -5
- package/esm2020/filtering/operators/isnull-filter-operator.component.mjs +5 -5
- package/esm2020/filtering/operators/lt-filter-operator.component.mjs +5 -5
- package/esm2020/filtering/operators/lte-filter-operator.component.mjs +5 -5
- package/esm2020/filtering/operators/neq-filter-operator.component.mjs +5 -5
- package/esm2020/filtering/operators/not-contains-filter-operator.component.mjs +5 -5
- package/esm2020/filtering/operators/starts-with-filter-operator.component.mjs +5 -5
- package/esm2020/filtering/string-filter.component.mjs +8 -8
- package/esm2020/grid.component.mjs +18 -0
- package/esm2020/grouping/group-header.component.mjs +7 -7
- package/esm2020/grouping/group-panel.component.mjs +10 -10
- package/esm2020/localization/messages.mjs +7 -1
- package/esm2020/navigation/navigation.service.mjs +8 -8
- package/esm2020/package-metadata.mjs +2 -2
- package/esm2020/pager/pager-element.component.mjs +8 -8
- package/esm2020/pager/pager-info.component.mjs +6 -6
- package/esm2020/pager/pager-input.component.mjs +6 -6
- package/esm2020/pager/pager-next-buttons.component.mjs +6 -6
- package/esm2020/pager/pager-numeric-buttons.component.mjs +6 -6
- package/esm2020/pager/pager-page-sizes.component.mjs +6 -6
- package/esm2020/pager/pager-prev-buttons.component.mjs +6 -6
- package/esm2020/pager/pager.component.mjs +7 -7
- package/esm2020/pdf/pdf-command.directive.mjs +6 -6
- package/esm2020/rendering/cell.component.mjs +8 -8
- package/esm2020/rendering/common/loading.component.mjs +7 -7
- package/esm2020/rendering/header/header.component.mjs +27 -30
- package/esm2020/rendering/list.component.mjs +7 -7
- package/esm2020/rendering/table-body.component.mjs +11 -11
- package/excel/excel-command.directive.d.ts +2 -2
- package/excel/excel.component.d.ts +3 -3
- package/fesm2015/progress-kendo-angular-grid.mjs +778 -504
- package/fesm2020/progress-kendo-angular-grid.mjs +775 -504
- package/filtering/base-filter-cell.component.d.ts +1 -1
- package/filtering/boolean-filter.component.d.ts +3 -3
- package/filtering/cell/autocomplete-filter-cell.component.d.ts +3 -3
- package/filtering/cell/boolean-filter-cell.component.d.ts +2 -2
- package/filtering/cell/date-filter-cell.component.d.ts +3 -3
- package/filtering/cell/filter-cell-operators.component.d.ts +3 -3
- package/filtering/cell/numeric-filter-cell.component.d.ts +4 -4
- package/filtering/cell/string-filter-cell.component.d.ts +2 -2
- package/filtering/date-filter.component.d.ts +3 -3
- package/filtering/filter-row.component.d.ts +3 -3
- package/filtering/menu/boolean-filter-menu.component.d.ts +2 -2
- package/filtering/menu/date-filter-menu-input.component.d.ts +3 -3
- package/filtering/menu/date-filter-menu.component.d.ts +2 -2
- package/filtering/menu/filter-menu-container.component.d.ts +3 -3
- package/filtering/menu/filter-menu-input-wrapper.component.d.ts +3 -3
- package/filtering/menu/filter-menu.component.d.ts +3 -3
- package/filtering/menu/menu-tabbing.service.d.ts +1 -0
- package/filtering/menu/numeric-filter-menu-input.component.d.ts +3 -3
- package/filtering/menu/numeric-filter-menu.component.d.ts +2 -2
- package/filtering/menu/string-filter-menu-input.component.d.ts +3 -3
- package/filtering/menu/string-filter-menu.component.d.ts +2 -2
- package/filtering/numeric-filter.component.d.ts +3 -3
- package/filtering/operators/after-eq-filter-operator.component.d.ts +2 -2
- package/filtering/operators/after-filter-operator.component.d.ts +2 -2
- package/filtering/operators/before-eq-filter-operator.component.d.ts +2 -2
- package/filtering/operators/before-filter-operator.component.d.ts +2 -2
- package/filtering/operators/contains-filter-operator.component.d.ts +2 -2
- package/filtering/operators/ends-with-filter-operator.component.d.ts +2 -2
- package/filtering/operators/eq-filter-operator.component.d.ts +2 -2
- package/filtering/operators/filter-operator.base.d.ts +3 -3
- package/filtering/operators/gt-filter-operator.component.d.ts +2 -2
- package/filtering/operators/gte-filter-operator.component.d.ts +2 -2
- package/filtering/operators/is-empty-filter-operator.component.d.ts +2 -2
- package/filtering/operators/is-not-empty-filter-operator.component.d.ts +2 -2
- package/filtering/operators/is-not-null-filter-operator.component.d.ts +2 -2
- package/filtering/operators/isnull-filter-operator.component.d.ts +2 -2
- package/filtering/operators/lt-filter-operator.component.d.ts +2 -2
- package/filtering/operators/lte-filter-operator.component.d.ts +2 -2
- package/filtering/operators/neq-filter-operator.component.d.ts +2 -2
- package/filtering/operators/not-contains-filter-operator.component.d.ts +2 -2
- package/filtering/operators/starts-with-filter-operator.component.d.ts +2 -2
- package/filtering/string-filter.component.d.ts +3 -3
- package/grouping/group-header.component.d.ts +3 -3
- package/grouping/group-panel.component.d.ts +3 -3
- package/localization/messages.d.ts +13 -1
- package/navigation/navigation.service.d.ts +3 -3
- package/package.json +16 -15
- package/pager/pager-element.component.d.ts +3 -3
- package/pager/pager-info.component.d.ts +2 -2
- package/pager/pager-input.component.d.ts +2 -2
- package/pager/pager-next-buttons.component.d.ts +2 -2
- package/pager/pager-numeric-buttons.component.d.ts +2 -2
- package/pager/pager-page-sizes.component.d.ts +2 -2
- package/pager/pager-prev-buttons.component.d.ts +2 -2
- package/pager/pager.component.d.ts +3 -3
- package/pdf/pdf-command.directive.d.ts +2 -2
- package/rendering/cell.component.d.ts +3 -3
- package/rendering/common/loading.component.d.ts +3 -3
- package/rendering/header/header.component.d.ts +1 -3
- package/rendering/list.component.d.ts +3 -3
- package/rendering/table-body.component.d.ts +3 -3
- package/schematics/ngAdd/index.js +5 -3
|
@@ -3,23 +3,23 @@
|
|
|
3
3
|
* Licensed under commercial license. See LICENSE.md in the project root for more information
|
|
4
4
|
*-------------------------------------------------------------------------------------------*/
|
|
5
5
|
import { Component, Input, ViewChild } from '@angular/core';
|
|
6
|
-
import { LocalizationService } from '@progress/kendo-angular-l10n';
|
|
7
6
|
import { DropDownListComponent } from '@progress/kendo-angular-dropdowns';
|
|
8
7
|
import { MenuTabbingService } from './menu-tabbing.service';
|
|
9
8
|
import { FilterService } from '../filter.service';
|
|
10
9
|
import { FilterInputWrapperComponent } from "../filter-input-wrapper.component";
|
|
11
10
|
import { replaceMessagePlaceholder } from '../../utils';
|
|
11
|
+
import { ContextService } from '../../common/provider.service';
|
|
12
12
|
import * as i0 from "@angular/core";
|
|
13
|
-
import * as i1 from "
|
|
13
|
+
import * as i1 from "../../common/provider.service";
|
|
14
14
|
import * as i2 from "@progress/kendo-angular-dropdowns";
|
|
15
15
|
import * as i3 from "./filter-menu-dropdownlist.directive";
|
|
16
16
|
/**
|
|
17
17
|
* @hidden
|
|
18
18
|
*/
|
|
19
19
|
export class FilterMenuInputWrapperComponent extends FilterInputWrapperComponent {
|
|
20
|
-
constructor(
|
|
20
|
+
constructor(ctx) {
|
|
21
21
|
super(null);
|
|
22
|
-
this.
|
|
22
|
+
this.ctx = ctx;
|
|
23
23
|
}
|
|
24
24
|
/**
|
|
25
25
|
* @hidden
|
|
@@ -28,7 +28,9 @@ export class FilterMenuInputWrapperComponent extends FilterInputWrapperComponent
|
|
|
28
28
|
return false;
|
|
29
29
|
}
|
|
30
30
|
ngAfterViewInit() {
|
|
31
|
-
|
|
31
|
+
const shouldFocusFirstFocusable = this.isFirstDropDown && this.filterService && this.filterService.menuTabbingService;
|
|
32
|
+
const isTabbedInterface = this.menuTabbingService?.isTabbedInterface;
|
|
33
|
+
if (shouldFocusFirstFocusable && !isTabbedInterface) {
|
|
32
34
|
this.filterService.menuTabbingService.firstFocusable = this.firstOperatorDropDown;
|
|
33
35
|
this.firstOperatorDropDown.focus();
|
|
34
36
|
}
|
|
@@ -74,12 +76,12 @@ export class FilterMenuInputWrapperComponent extends FilterInputWrapperComponent
|
|
|
74
76
|
}
|
|
75
77
|
}
|
|
76
78
|
get filterMenuDropDownLabel() {
|
|
77
|
-
const localizationMsg = this.
|
|
79
|
+
const localizationMsg = this.ctx.localization.get('filterMenuOperatorsDropDownLabel') || '';
|
|
78
80
|
const columnName = this.column ? this.column.title || this.column.field : '';
|
|
79
81
|
return replaceMessagePlaceholder(localizationMsg, 'columnName', columnName);
|
|
80
82
|
}
|
|
81
83
|
}
|
|
82
|
-
FilterMenuInputWrapperComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: FilterMenuInputWrapperComponent, deps: [{ token: i1.
|
|
84
|
+
FilterMenuInputWrapperComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: FilterMenuInputWrapperComponent, deps: [{ token: i1.ContextService }], target: i0.ɵɵFactoryTarget.Component });
|
|
83
85
|
FilterMenuInputWrapperComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.12", type: FilterMenuInputWrapperComponent, selector: "kendo-grid-filter-menu-input-wrapper", inputs: { filterService: "filterService", isFirstDropDown: "isFirstDropDown", menuTabbingService: "menuTabbingService", currentFilter: "currentFilter" }, viewQueries: [{ propertyName: "firstOperatorDropDown", first: true, predicate: DropDownListComponent, descendants: true }], usesInheritance: true, ngImport: i0, template: `
|
|
84
86
|
<kendo-dropdownlist
|
|
85
87
|
kendoFilterMenuDropDown
|
|
@@ -113,7 +115,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImpo
|
|
|
113
115
|
<ng-content></ng-content>
|
|
114
116
|
`
|
|
115
117
|
}]
|
|
116
|
-
}], ctorParameters: function () { return [{ type: i1.
|
|
118
|
+
}], ctorParameters: function () { return [{ type: i1.ContextService }]; }, propDecorators: { filterService: [{
|
|
117
119
|
type: Input
|
|
118
120
|
}], isFirstDropDown: [{
|
|
119
121
|
type: Input
|
|
@@ -8,13 +8,13 @@ import { FilterService } from "../filter.service";
|
|
|
8
8
|
import { ColumnComponent } from '../../columns/column.component';
|
|
9
9
|
import { SinglePopupService } from '../../common/single-popup.service';
|
|
10
10
|
import { filtersByField } from '../base-filter-cell.component';
|
|
11
|
-
import { LocalizationService } from "@progress/kendo-angular-l10n";
|
|
12
11
|
import { replaceMessagePlaceholder } from '../../utils';
|
|
13
12
|
import { filterIcon } from '@progress/kendo-svg-icons';
|
|
13
|
+
import { ContextService } from '../../common/provider.service';
|
|
14
14
|
import * as i0 from "@angular/core";
|
|
15
15
|
import * as i1 from "../filter.service";
|
|
16
16
|
import * as i2 from "../../common/single-popup.service";
|
|
17
|
-
import * as i3 from "
|
|
17
|
+
import * as i3 from "../../common/provider.service";
|
|
18
18
|
import * as i4 from "./../../navigation/navigation.service";
|
|
19
19
|
import * as i5 from "@progress/kendo-angular-icons";
|
|
20
20
|
import * as i6 from "./filter-menu-container.component";
|
|
@@ -22,10 +22,10 @@ import * as i6 from "./filter-menu-container.component";
|
|
|
22
22
|
* @hidden
|
|
23
23
|
*/
|
|
24
24
|
export class FilterMenuComponent {
|
|
25
|
-
constructor(filterService, popupService,
|
|
25
|
+
constructor(filterService, popupService, ctx, navigationService) {
|
|
26
26
|
this.filterService = filterService;
|
|
27
27
|
this.popupService = popupService;
|
|
28
|
-
this.
|
|
28
|
+
this.ctx = ctx;
|
|
29
29
|
this.navigationService = navigationService;
|
|
30
30
|
this.filterIcon = filterIcon;
|
|
31
31
|
this.tabIndex = '-1';
|
|
@@ -37,7 +37,7 @@ export class FilterMenuComponent {
|
|
|
37
37
|
* @hidden
|
|
38
38
|
*/
|
|
39
39
|
get filterLabel() {
|
|
40
|
-
const localizationMsg = this.localization.get('filterMenuTitle') || '';
|
|
40
|
+
const localizationMsg = this.ctx.localization.get('filterMenuTitle') || '';
|
|
41
41
|
const columnName = this.column.title || this.column.field;
|
|
42
42
|
return replaceMessagePlaceholder(localizationMsg, 'columnName', columnName);
|
|
43
43
|
}
|
|
@@ -63,7 +63,7 @@ export class FilterMenuComponent {
|
|
|
63
63
|
}
|
|
64
64
|
}
|
|
65
65
|
}
|
|
66
|
-
FilterMenuComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: FilterMenuComponent, deps: [{ token: i1.FilterService }, { token: i2.SinglePopupService }, { token: i3.
|
|
66
|
+
FilterMenuComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: FilterMenuComponent, deps: [{ token: i1.FilterService }, { token: i2.SinglePopupService }, { token: i3.ContextService }, { token: i4.NavigationService }], target: i0.ɵɵFactoryTarget.Component });
|
|
67
67
|
FilterMenuComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.12", type: FilterMenuComponent, selector: "kendo-grid-filter-menu", inputs: { column: "column", filter: "filter", tabIndex: "tabIndex" }, viewQueries: [{ propertyName: "anchor", first: true, predicate: ["anchor"], descendants: true, static: true }, { propertyName: "template", first: true, predicate: ["template"], descendants: true, read: TemplateRef, static: true }], ngImport: i0, template: `
|
|
68
68
|
<a #anchor
|
|
69
69
|
class="k-grid-filter-menu k-grid-header-menu"
|
|
@@ -117,7 +117,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImpo
|
|
|
117
117
|
</ng-template>
|
|
118
118
|
`
|
|
119
119
|
}]
|
|
120
|
-
}], ctorParameters: function () { return [{ type: i1.FilterService }, { type: i2.SinglePopupService }, { type: i3.
|
|
120
|
+
}], ctorParameters: function () { return [{ type: i1.FilterService }, { type: i2.SinglePopupService }, { type: i3.ContextService }, { type: i4.NavigationService }]; }, propDecorators: { column: [{
|
|
121
121
|
type: Input
|
|
122
122
|
}], filter: [{
|
|
123
123
|
type: Input
|
|
@@ -11,6 +11,7 @@ export class MenuTabbingService {
|
|
|
11
11
|
constructor() {
|
|
12
12
|
this.isColumnMenu = false;
|
|
13
13
|
this.isPopupOpen = false;
|
|
14
|
+
this.isTabbedInterface = false;
|
|
14
15
|
}
|
|
15
16
|
}
|
|
16
17
|
MenuTabbingService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: MenuTabbingService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
@@ -3,13 +3,13 @@
|
|
|
3
3
|
* Licensed under commercial license. See LICENSE.md in the project root for more information
|
|
4
4
|
*-------------------------------------------------------------------------------------------*/
|
|
5
5
|
import { Component, Input } from '@angular/core';
|
|
6
|
-
import { LocalizationService } from '@progress/kendo-angular-l10n';
|
|
7
6
|
import { ColumnComponent } from "../../columns/column.component";
|
|
8
7
|
import { FilterService } from '../filter.service';
|
|
9
8
|
import { replaceMessagePlaceholder } from '../../utils';
|
|
10
9
|
import { MenuTabbingService } from './menu-tabbing.service';
|
|
10
|
+
import { ContextService } from '../../common/provider.service';
|
|
11
11
|
import * as i0 from "@angular/core";
|
|
12
|
-
import * as i1 from "
|
|
12
|
+
import * as i1 from "../../common/provider.service";
|
|
13
13
|
import * as i2 from "./filter-menu-input-wrapper.component";
|
|
14
14
|
import * as i3 from "@progress/kendo-angular-inputs";
|
|
15
15
|
import * as i4 from "../filter-input.directive";
|
|
@@ -17,8 +17,8 @@ import * as i4 from "../filter-input.directive";
|
|
|
17
17
|
* @hidden
|
|
18
18
|
*/
|
|
19
19
|
export class NumericFilterMenuInputComponent {
|
|
20
|
-
constructor(
|
|
21
|
-
this.
|
|
20
|
+
constructor(ctx) {
|
|
21
|
+
this.ctx = ctx;
|
|
22
22
|
this.operators = [];
|
|
23
23
|
/**
|
|
24
24
|
* Specifies the value which is used to increment or decrement the component value.
|
|
@@ -32,18 +32,18 @@ export class NumericFilterMenuInputComponent {
|
|
|
32
32
|
this.spinners = true;
|
|
33
33
|
}
|
|
34
34
|
messageFor(key) {
|
|
35
|
-
return this.localization.get(key);
|
|
35
|
+
return this.ctx.localization.get(key);
|
|
36
36
|
}
|
|
37
37
|
/**
|
|
38
38
|
* @hidden
|
|
39
39
|
*/
|
|
40
40
|
get columnLabel() {
|
|
41
|
-
const localizationMsg = this.localization.get('filterInputLabel') || '';
|
|
41
|
+
const localizationMsg = this.ctx.localization.get('filterInputLabel') || '';
|
|
42
42
|
const columnName = this.column ? this.column.title || this.column.field : '';
|
|
43
43
|
return replaceMessagePlaceholder(localizationMsg, 'columnName', columnName);
|
|
44
44
|
}
|
|
45
45
|
}
|
|
46
|
-
NumericFilterMenuInputComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: NumericFilterMenuInputComponent, deps: [{ token: i1.
|
|
46
|
+
NumericFilterMenuInputComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: NumericFilterMenuInputComponent, deps: [{ token: i1.ContextService }], target: i0.ɵɵFactoryTarget.Component });
|
|
47
47
|
NumericFilterMenuInputComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.12", type: NumericFilterMenuInputComponent, selector: "kendo-grid-numeric-filter-menu-input", inputs: { operators: "operators", column: "column", filter: "filter", operator: "operator", currentFilter: "currentFilter", filterService: "filterService", filterDelay: "filterDelay", isFirstDropDown: "isFirstDropDown", menuTabbingService: "menuTabbingService", step: "step", min: "min", max: "max", spinners: "spinners", decimals: "decimals", format: "format" }, ngImport: i0, template: `
|
|
48
48
|
<kendo-grid-filter-menu-input-wrapper
|
|
49
49
|
[column]="column"
|
|
@@ -113,7 +113,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImpo
|
|
|
113
113
|
</kendo-grid-filter-menu-input-wrapper>
|
|
114
114
|
`
|
|
115
115
|
}]
|
|
116
|
-
}], ctorParameters: function () { return [{ type: i1.
|
|
116
|
+
}], ctorParameters: function () { return [{ type: i1.ContextService }]; }, propDecorators: { operators: [{
|
|
117
117
|
type: Input
|
|
118
118
|
}], column: [{
|
|
119
119
|
type: Input
|
|
@@ -5,13 +5,13 @@
|
|
|
5
5
|
import { Component, Input, HostBinding } from '@angular/core';
|
|
6
6
|
import { ColumnComponent } from "../../columns/column.component";
|
|
7
7
|
import { FilterService } from '../filter.service';
|
|
8
|
-
import { LocalizationService } from '@progress/kendo-angular-l10n';
|
|
9
8
|
import { NumericFilterComponent } from '../numeric-filter.component';
|
|
10
9
|
import { setFilter, logicOperators } from '../base-filter-cell.component';
|
|
11
10
|
import { replaceMessagePlaceholder } from '../../utils';
|
|
12
11
|
import { MenuTabbingService } from './menu-tabbing.service';
|
|
12
|
+
import { ContextService } from '../../common/provider.service';
|
|
13
13
|
import * as i0 from "@angular/core";
|
|
14
|
-
import * as i1 from "
|
|
14
|
+
import * as i1 from "../../common/provider.service";
|
|
15
15
|
import * as i2 from "./numeric-filter-menu-input.component";
|
|
16
16
|
import * as i3 from "@progress/kendo-angular-dropdowns";
|
|
17
17
|
import * as i4 from "@angular/common";
|
|
@@ -33,9 +33,9 @@ import * as i5 from "./filter-menu-dropdownlist.directive";
|
|
|
33
33
|
* ```
|
|
34
34
|
*/
|
|
35
35
|
export class NumericFilterMenuComponent extends NumericFilterComponent {
|
|
36
|
-
constructor(
|
|
37
|
-
super(null,
|
|
38
|
-
this.logicOperators = logicOperators(this.localization);
|
|
36
|
+
constructor(ctx) {
|
|
37
|
+
super(null, ctx);
|
|
38
|
+
this.logicOperators = logicOperators(this.ctx.localization);
|
|
39
39
|
/**
|
|
40
40
|
* The current menu filter.
|
|
41
41
|
* @type {CompositeFilterDescriptor}
|
|
@@ -69,16 +69,16 @@ export class NumericFilterMenuComponent extends NumericFilterComponent {
|
|
|
69
69
|
this.filter.logic = value;
|
|
70
70
|
}
|
|
71
71
|
get filterMenuDropDownLabel() {
|
|
72
|
-
const localizationMsg = this.localization.get('filterMenuLogicDropDownLabel') || '';
|
|
72
|
+
const localizationMsg = this.ctx.localization.get('filterMenuLogicDropDownLabel') || '';
|
|
73
73
|
const columnName = this.column ? this.column.title || this.column.field : '';
|
|
74
74
|
return replaceMessagePlaceholder(localizationMsg, 'columnName', columnName);
|
|
75
75
|
}
|
|
76
76
|
localizationChange() {
|
|
77
|
-
this.logicOperators = logicOperators(this.localization);
|
|
77
|
+
this.logicOperators = logicOperators(this.ctx.localization);
|
|
78
78
|
super.localizationChange();
|
|
79
79
|
}
|
|
80
80
|
}
|
|
81
|
-
NumericFilterMenuComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: NumericFilterMenuComponent, deps: [{ token: i1.
|
|
81
|
+
NumericFilterMenuComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: NumericFilterMenuComponent, deps: [{ token: i1.ContextService }], target: i0.ɵɵFactoryTarget.Component });
|
|
82
82
|
NumericFilterMenuComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.12", type: NumericFilterMenuComponent, selector: "kendo-grid-numeric-filter-menu", inputs: { column: "column", filter: "filter", extra: "extra", filterService: "filterService", filterDelay: "filterDelay", menuTabbingService: "menuTabbingService" }, host: { properties: { "class.k-filtercell": "this.hostClasses" } }, usesInheritance: true, ngImport: i0, template: `
|
|
83
83
|
<kendo-grid-numeric-filter-menu-input
|
|
84
84
|
[currentFilter]="firstFilter"
|
|
@@ -178,7 +178,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImpo
|
|
|
178
178
|
</kendo-grid-numeric-filter-menu-input>
|
|
179
179
|
`
|
|
180
180
|
}]
|
|
181
|
-
}], ctorParameters: function () { return [{ type: i1.
|
|
181
|
+
}], ctorParameters: function () { return [{ type: i1.ContextService }]; }, propDecorators: { hostClasses: [{
|
|
182
182
|
type: HostBinding,
|
|
183
183
|
args: ['class.k-filtercell']
|
|
184
184
|
}], column: [{
|
|
@@ -2,14 +2,14 @@
|
|
|
2
2
|
* Copyright © 2023 Progress Software Corporation. All rights reserved.
|
|
3
3
|
* Licensed under commercial license. See LICENSE.md in the project root for more information
|
|
4
4
|
*-------------------------------------------------------------------------------------------*/
|
|
5
|
-
import { LocalizationService } from '@progress/kendo-angular-l10n';
|
|
6
5
|
import { Component, Input } from '@angular/core';
|
|
7
6
|
import { ColumnComponent } from "../../columns/column.component";
|
|
8
7
|
import { FilterService } from '../filter.service';
|
|
9
8
|
import { replaceMessagePlaceholder } from '../../utils';
|
|
10
9
|
import { MenuTabbingService } from './menu-tabbing.service';
|
|
10
|
+
import { ContextService } from '../../common/provider.service';
|
|
11
11
|
import * as i0 from "@angular/core";
|
|
12
|
-
import * as i1 from "
|
|
12
|
+
import * as i1 from "../../common/provider.service";
|
|
13
13
|
import * as i2 from "./filter-menu-input-wrapper.component";
|
|
14
14
|
import * as i3 from "@progress/kendo-angular-inputs";
|
|
15
15
|
import * as i4 from "@angular/forms";
|
|
@@ -18,17 +18,17 @@ import * as i5 from "../filter-input.directive";
|
|
|
18
18
|
* @hidden
|
|
19
19
|
*/
|
|
20
20
|
export class StringFilterMenuInputComponent {
|
|
21
|
-
constructor(
|
|
22
|
-
this.
|
|
21
|
+
constructor(ctx) {
|
|
22
|
+
this.ctx = ctx;
|
|
23
23
|
this.operators = [];
|
|
24
24
|
}
|
|
25
25
|
get columnLabel() {
|
|
26
|
-
const localizationMsg = this.
|
|
26
|
+
const localizationMsg = this.ctx.localization.get('filterInputLabel') || '';
|
|
27
27
|
const columnName = this.column ? this.column.title || this.column.field : '';
|
|
28
28
|
return replaceMessagePlaceholder(localizationMsg, 'columnName', columnName);
|
|
29
29
|
}
|
|
30
30
|
}
|
|
31
|
-
StringFilterMenuInputComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: StringFilterMenuInputComponent, deps: [{ token: i1.
|
|
31
|
+
StringFilterMenuInputComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: StringFilterMenuInputComponent, deps: [{ token: i1.ContextService }], target: i0.ɵɵFactoryTarget.Component });
|
|
32
32
|
StringFilterMenuInputComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.12", type: StringFilterMenuInputComponent, selector: "kendo-grid-string-filter-menu-input", inputs: { operators: "operators", column: "column", filter: "filter", operator: "operator", currentFilter: "currentFilter", filterService: "filterService", isFirstDropDown: "isFirstDropDown", menuTabbingService: "menuTabbingService" }, ngImport: i0, template: `
|
|
33
33
|
<kendo-grid-filter-menu-input-wrapper
|
|
34
34
|
[column]="column"
|
|
@@ -72,7 +72,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImpo
|
|
|
72
72
|
</kendo-grid-filter-menu-input-wrapper>
|
|
73
73
|
`
|
|
74
74
|
}]
|
|
75
|
-
}], ctorParameters: function () { return [{ type: i1.
|
|
75
|
+
}], ctorParameters: function () { return [{ type: i1.ContextService }]; }, propDecorators: { operators: [{
|
|
76
76
|
type: Input
|
|
77
77
|
}], column: [{
|
|
78
78
|
type: Input
|
|
@@ -7,11 +7,11 @@ import { Component, Input, HostBinding } from '@angular/core';
|
|
|
7
7
|
import { ColumnComponent } from "../../columns/column.component";
|
|
8
8
|
import { StringFilterComponent } from '../string-filter.component';
|
|
9
9
|
import { FilterService } from '../filter.service';
|
|
10
|
-
import { LocalizationService } from '@progress/kendo-angular-l10n';
|
|
11
10
|
import { setFilter, logicOperators } from '../base-filter-cell.component';
|
|
12
11
|
import { replaceMessagePlaceholder } from '../../utils';
|
|
12
|
+
import { ContextService } from '../../common/provider.service';
|
|
13
13
|
import * as i0 from "@angular/core";
|
|
14
|
-
import * as i1 from "
|
|
14
|
+
import * as i1 from "../../common/provider.service";
|
|
15
15
|
import * as i2 from "./string-filter-menu-input.component";
|
|
16
16
|
import * as i3 from "@progress/kendo-angular-dropdowns";
|
|
17
17
|
import * as i4 from "@angular/common";
|
|
@@ -33,9 +33,9 @@ import * as i5 from "./filter-menu-dropdownlist.directive";
|
|
|
33
33
|
* ```
|
|
34
34
|
*/
|
|
35
35
|
export class StringFilterMenuComponent extends StringFilterComponent {
|
|
36
|
-
constructor(
|
|
37
|
-
super(null,
|
|
38
|
-
this.logicOperators = logicOperators(this.localization);
|
|
36
|
+
constructor(ctx) {
|
|
37
|
+
super(null, ctx);
|
|
38
|
+
this.logicOperators = logicOperators(this.ctx.localization);
|
|
39
39
|
/**
|
|
40
40
|
* The current menu filter.
|
|
41
41
|
* @type {CompositeFilterDescriptor}
|
|
@@ -63,16 +63,16 @@ export class StringFilterMenuComponent extends StringFilterComponent {
|
|
|
63
63
|
this.filter.logic = value;
|
|
64
64
|
}
|
|
65
65
|
get filterMenuDropDownLabel() {
|
|
66
|
-
const localizationMsg = this.localization.get('filterMenuLogicDropDownLabel') || '';
|
|
66
|
+
const localizationMsg = this.ctx.localization.get('filterMenuLogicDropDownLabel') || '';
|
|
67
67
|
const columnName = this.column ? this.column.title || this.column.field : '';
|
|
68
68
|
return replaceMessagePlaceholder(localizationMsg, 'columnName', columnName);
|
|
69
69
|
}
|
|
70
70
|
localizationChange() {
|
|
71
|
-
this.logicOperators = logicOperators(this.localization);
|
|
71
|
+
this.logicOperators = logicOperators(this.ctx.localization);
|
|
72
72
|
super.localizationChange();
|
|
73
73
|
}
|
|
74
74
|
}
|
|
75
|
-
StringFilterMenuComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: StringFilterMenuComponent, deps: [{ token: i1.
|
|
75
|
+
StringFilterMenuComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: StringFilterMenuComponent, deps: [{ token: i1.ContextService }], target: i0.ɵɵFactoryTarget.Component });
|
|
76
76
|
StringFilterMenuComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.12", type: StringFilterMenuComponent, selector: "kendo-grid-string-filter-menu", inputs: { column: "column", filter: "filter", extra: "extra", filterService: "filterService", menuTabbingService: "menuTabbingService" }, host: { properties: { "class.k-filtercell": "this.hostClasses" } }, usesInheritance: true, ngImport: i0, template: `
|
|
77
77
|
<kendo-grid-string-filter-menu-input
|
|
78
78
|
[currentFilter]="firstFilter"
|
|
@@ -140,7 +140,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImpo
|
|
|
140
140
|
</kendo-grid-string-filter-menu-input>
|
|
141
141
|
`
|
|
142
142
|
}]
|
|
143
|
-
}], ctorParameters: function () { return [{ type: i1.
|
|
143
|
+
}], ctorParameters: function () { return [{ type: i1.ContextService }]; }, propDecorators: { hostClasses: [{
|
|
144
144
|
type: HostBinding,
|
|
145
145
|
args: ['class.k-filtercell']
|
|
146
146
|
}], column: [{
|
|
@@ -7,12 +7,12 @@ import { Directive, Input } from '@angular/core';
|
|
|
7
7
|
import { ColumnComponent } from '../columns/column.component';
|
|
8
8
|
import { FilterService } from './filter.service';
|
|
9
9
|
import { BaseFilterCellComponent, localizeOperators } from './base-filter-cell.component';
|
|
10
|
-
import { LocalizationService } from '@progress/kendo-angular-l10n';
|
|
11
10
|
import { isNullOrEmptyString, extractFormat } from '../utils';
|
|
12
11
|
import { toJSON } from './operators/filter-operator.base';
|
|
12
|
+
import { ContextService } from '../common/provider.service';
|
|
13
13
|
import * as i0 from "@angular/core";
|
|
14
14
|
import * as i1 from "./filter.service";
|
|
15
|
-
import * as i2 from "
|
|
15
|
+
import * as i2 from "../common/provider.service";
|
|
16
16
|
const numericOperators = localizeOperators({
|
|
17
17
|
"filterEqOperator": "eq",
|
|
18
18
|
"filterNotEqOperator": "neq",
|
|
@@ -27,9 +27,9 @@ const numericOperators = localizeOperators({
|
|
|
27
27
|
* Represents a base numeric filter component.
|
|
28
28
|
*/
|
|
29
29
|
export class NumericFilterComponent extends BaseFilterCellComponent {
|
|
30
|
-
constructor(filterService,
|
|
30
|
+
constructor(filterService, ctx) {
|
|
31
31
|
super(filterService);
|
|
32
|
-
this.
|
|
32
|
+
this.ctx = ctx;
|
|
33
33
|
/**
|
|
34
34
|
* The default filter operator.
|
|
35
35
|
* @type {string}
|
|
@@ -48,7 +48,7 @@ export class NumericFilterComponent extends BaseFilterCellComponent {
|
|
|
48
48
|
* @default true
|
|
49
49
|
*/
|
|
50
50
|
this.spinners = true;
|
|
51
|
-
this.defaultOperators = numericOperators(this.localization);
|
|
51
|
+
this.defaultOperators = numericOperators(this.ctx.localization);
|
|
52
52
|
}
|
|
53
53
|
/**
|
|
54
54
|
* Specifies the number format used when the component is not focused.
|
|
@@ -85,7 +85,7 @@ export class NumericFilterComponent extends BaseFilterCellComponent {
|
|
|
85
85
|
extractFormat(this.column.format) : "n2";
|
|
86
86
|
}
|
|
87
87
|
ngOnInit() {
|
|
88
|
-
this.subscription = this.localization.changes.subscribe(this.localizationChange.bind(this));
|
|
88
|
+
this.subscription = this.ctx.localization.changes.subscribe(this.localizationChange.bind(this));
|
|
89
89
|
}
|
|
90
90
|
ngOnDestroy() {
|
|
91
91
|
if (this.subscription) {
|
|
@@ -94,18 +94,18 @@ export class NumericFilterComponent extends BaseFilterCellComponent {
|
|
|
94
94
|
super.ngOnDestroy();
|
|
95
95
|
}
|
|
96
96
|
localizationChange() {
|
|
97
|
-
this.defaultOperators = numericOperators(this.localization);
|
|
97
|
+
this.defaultOperators = numericOperators(this.ctx.localization);
|
|
98
98
|
if (this.operatorList.length) {
|
|
99
99
|
this.operators = toJSON(this.operatorList.toArray());
|
|
100
100
|
}
|
|
101
101
|
}
|
|
102
102
|
}
|
|
103
|
-
NumericFilterComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: NumericFilterComponent, deps: [{ token: i1.FilterService }, { token: i2.
|
|
103
|
+
NumericFilterComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: NumericFilterComponent, deps: [{ token: i1.FilterService }, { token: i2.ContextService }], target: i0.ɵɵFactoryTarget.Directive });
|
|
104
104
|
NumericFilterComponent.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "13.3.12", type: NumericFilterComponent, inputs: { column: "column", filter: "filter", operator: "operator", step: "step", min: "min", max: "max", spinners: "spinners", decimals: "decimals", format: "format" }, usesInheritance: true, ngImport: i0 });
|
|
105
105
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: NumericFilterComponent, decorators: [{
|
|
106
106
|
type: Directive,
|
|
107
107
|
args: [{}]
|
|
108
|
-
}], ctorParameters: function () { return [{ type: i1.FilterService }, { type: i2.
|
|
108
|
+
}], ctorParameters: function () { return [{ type: i1.FilterService }, { type: i2.ContextService }]; }, propDecorators: { column: [{
|
|
109
109
|
type: Input
|
|
110
110
|
}], filter: [{
|
|
111
111
|
type: Input
|
|
@@ -4,15 +4,15 @@
|
|
|
4
4
|
*-------------------------------------------------------------------------------------------*/
|
|
5
5
|
import { Component, forwardRef } from '@angular/core';
|
|
6
6
|
import { FilterOperatorBase } from './filter-operator.base';
|
|
7
|
-
import {
|
|
7
|
+
import { ContextService } from '../../common/provider.service';
|
|
8
8
|
import * as i0 from "@angular/core";
|
|
9
|
-
import * as i1 from "
|
|
9
|
+
import * as i1 from "../../common/provider.service";
|
|
10
10
|
/**
|
|
11
11
|
* Represents the `GreaterOrEqualTo` (**Is after or equal to**) [date filter](slug:filtering_grid#toc-date-filter) operator.
|
|
12
12
|
* [See example](slug:filter_row#toc-default-filter-operator).
|
|
13
13
|
*/
|
|
14
14
|
export class AfterEqFilterOperatorComponent extends FilterOperatorBase {
|
|
15
|
-
constructor(
|
|
15
|
+
constructor(ctx) { super("after-eq", ctx); }
|
|
16
16
|
/**
|
|
17
17
|
* @hidden
|
|
18
18
|
*/
|
|
@@ -23,7 +23,7 @@ export class AfterEqFilterOperatorComponent extends FilterOperatorBase {
|
|
|
23
23
|
};
|
|
24
24
|
}
|
|
25
25
|
}
|
|
26
|
-
AfterEqFilterOperatorComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: AfterEqFilterOperatorComponent, deps: [{ token: i1.
|
|
26
|
+
AfterEqFilterOperatorComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: AfterEqFilterOperatorComponent, deps: [{ token: i1.ContextService }], target: i0.ɵɵFactoryTarget.Component });
|
|
27
27
|
AfterEqFilterOperatorComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.12", type: AfterEqFilterOperatorComponent, selector: "kendo-filter-after-eq-operator", providers: [
|
|
28
28
|
{
|
|
29
29
|
provide: FilterOperatorBase,
|
|
@@ -42,4 +42,4 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImpo
|
|
|
42
42
|
selector: 'kendo-filter-after-eq-operator',
|
|
43
43
|
template: ``
|
|
44
44
|
}]
|
|
45
|
-
}], ctorParameters: function () { return [{ type: i1.
|
|
45
|
+
}], ctorParameters: function () { return [{ type: i1.ContextService }]; } });
|
|
@@ -3,16 +3,16 @@
|
|
|
3
3
|
* Licensed under commercial license. See LICENSE.md in the project root for more information
|
|
4
4
|
*-------------------------------------------------------------------------------------------*/
|
|
5
5
|
import { Component, forwardRef } from '@angular/core';
|
|
6
|
+
import { ContextService } from '../../common/provider.service';
|
|
6
7
|
import { FilterOperatorBase } from './filter-operator.base';
|
|
7
|
-
import { LocalizationService } from '@progress/kendo-angular-l10n';
|
|
8
8
|
import * as i0 from "@angular/core";
|
|
9
|
-
import * as i1 from "
|
|
9
|
+
import * as i1 from "../../common/provider.service";
|
|
10
10
|
/**
|
|
11
11
|
* Represents the `Greater` (**Is after**) [date filter](slug:filtering_grid#toc-date-filter) operator.
|
|
12
12
|
* [See example](slug:filter_row#toc-default-filter-operator).
|
|
13
13
|
*/
|
|
14
14
|
export class AfterFilterOperatorComponent extends FilterOperatorBase {
|
|
15
|
-
constructor(
|
|
15
|
+
constructor(ctx) { super("after", ctx); }
|
|
16
16
|
/**
|
|
17
17
|
* @hidden
|
|
18
18
|
*/
|
|
@@ -23,7 +23,7 @@ export class AfterFilterOperatorComponent extends FilterOperatorBase {
|
|
|
23
23
|
};
|
|
24
24
|
}
|
|
25
25
|
}
|
|
26
|
-
AfterFilterOperatorComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: AfterFilterOperatorComponent, deps: [{ token: i1.
|
|
26
|
+
AfterFilterOperatorComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: AfterFilterOperatorComponent, deps: [{ token: i1.ContextService }], target: i0.ɵɵFactoryTarget.Component });
|
|
27
27
|
AfterFilterOperatorComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.12", type: AfterFilterOperatorComponent, selector: "kendo-filter-after-operator", providers: [
|
|
28
28
|
{
|
|
29
29
|
provide: FilterOperatorBase,
|
|
@@ -42,4 +42,4 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImpo
|
|
|
42
42
|
selector: 'kendo-filter-after-operator',
|
|
43
43
|
template: ``
|
|
44
44
|
}]
|
|
45
|
-
}], ctorParameters: function () { return [{ type: i1.
|
|
45
|
+
}], ctorParameters: function () { return [{ type: i1.ContextService }]; } });
|
|
@@ -3,16 +3,16 @@
|
|
|
3
3
|
* Licensed under commercial license. See LICENSE.md in the project root for more information
|
|
4
4
|
*-------------------------------------------------------------------------------------------*/
|
|
5
5
|
import { Component, forwardRef } from '@angular/core';
|
|
6
|
+
import { ContextService } from '../../common/provider.service';
|
|
6
7
|
import { FilterOperatorBase } from './filter-operator.base';
|
|
7
|
-
import { LocalizationService } from '@progress/kendo-angular-l10n';
|
|
8
8
|
import * as i0 from "@angular/core";
|
|
9
|
-
import * as i1 from "
|
|
9
|
+
import * as i1 from "../../common/provider.service";
|
|
10
10
|
/**
|
|
11
11
|
* Represents the `LessOrEqualTo` (**Is before or equal to**) [date filter](slug:filtering_grid#toc-date-filter) operator.
|
|
12
12
|
* [See example](slug:filter_row#toc-default-filter-operator).
|
|
13
13
|
*/
|
|
14
14
|
export class BeforeEqFilterOperatorComponent extends FilterOperatorBase {
|
|
15
|
-
constructor(
|
|
15
|
+
constructor(ctx) { super("before-eq", ctx); }
|
|
16
16
|
/**
|
|
17
17
|
* @hidden
|
|
18
18
|
*/
|
|
@@ -23,7 +23,7 @@ export class BeforeEqFilterOperatorComponent extends FilterOperatorBase {
|
|
|
23
23
|
};
|
|
24
24
|
}
|
|
25
25
|
}
|
|
26
|
-
BeforeEqFilterOperatorComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: BeforeEqFilterOperatorComponent, deps: [{ token: i1.
|
|
26
|
+
BeforeEqFilterOperatorComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: BeforeEqFilterOperatorComponent, deps: [{ token: i1.ContextService }], target: i0.ɵɵFactoryTarget.Component });
|
|
27
27
|
BeforeEqFilterOperatorComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.12", type: BeforeEqFilterOperatorComponent, selector: "kendo-filter-before-eq-operator", providers: [
|
|
28
28
|
{
|
|
29
29
|
provide: FilterOperatorBase,
|
|
@@ -42,4 +42,4 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImpo
|
|
|
42
42
|
selector: 'kendo-filter-before-eq-operator',
|
|
43
43
|
template: ``
|
|
44
44
|
}]
|
|
45
|
-
}], ctorParameters: function () { return [{ type: i1.
|
|
45
|
+
}], ctorParameters: function () { return [{ type: i1.ContextService }]; } });
|
|
@@ -3,16 +3,16 @@
|
|
|
3
3
|
* Licensed under commercial license. See LICENSE.md in the project root for more information
|
|
4
4
|
*-------------------------------------------------------------------------------------------*/
|
|
5
5
|
import { Component, forwardRef } from '@angular/core';
|
|
6
|
+
import { ContextService } from '../../common/provider.service';
|
|
6
7
|
import { FilterOperatorBase } from './filter-operator.base';
|
|
7
|
-
import { LocalizationService } from '@progress/kendo-angular-l10n';
|
|
8
8
|
import * as i0 from "@angular/core";
|
|
9
|
-
import * as i1 from "
|
|
9
|
+
import * as i1 from "../../common/provider.service";
|
|
10
10
|
/**
|
|
11
11
|
* Represents the `Less than` (**Is before**) [date filter](slug:filtering_grid#toc-date-filter) operator.
|
|
12
12
|
* [See example](slug:filter_row#toc-default-filter-operator).
|
|
13
13
|
*/
|
|
14
14
|
export class BeforeFilterOperatorComponent extends FilterOperatorBase {
|
|
15
|
-
constructor(
|
|
15
|
+
constructor(ctx) { super("before", ctx); }
|
|
16
16
|
/**
|
|
17
17
|
* @hidden
|
|
18
18
|
*/
|
|
@@ -23,7 +23,7 @@ export class BeforeFilterOperatorComponent extends FilterOperatorBase {
|
|
|
23
23
|
};
|
|
24
24
|
}
|
|
25
25
|
}
|
|
26
|
-
BeforeFilterOperatorComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: BeforeFilterOperatorComponent, deps: [{ token: i1.
|
|
26
|
+
BeforeFilterOperatorComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: BeforeFilterOperatorComponent, deps: [{ token: i1.ContextService }], target: i0.ɵɵFactoryTarget.Component });
|
|
27
27
|
BeforeFilterOperatorComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.12", type: BeforeFilterOperatorComponent, selector: "kendo-filter-before-operator", providers: [
|
|
28
28
|
{
|
|
29
29
|
provide: FilterOperatorBase,
|
|
@@ -42,4 +42,4 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImpo
|
|
|
42
42
|
selector: 'kendo-filter-before-operator',
|
|
43
43
|
template: ``
|
|
44
44
|
}]
|
|
45
|
-
}], ctorParameters: function () { return [{ type: i1.
|
|
45
|
+
}], ctorParameters: function () { return [{ type: i1.ContextService }]; } });
|
|
@@ -3,18 +3,18 @@
|
|
|
3
3
|
* Licensed under commercial license. See LICENSE.md in the project root for more information
|
|
4
4
|
*-------------------------------------------------------------------------------------------*/
|
|
5
5
|
import { Component, forwardRef } from '@angular/core';
|
|
6
|
-
import {
|
|
6
|
+
import { ContextService } from '../../common/provider.service';
|
|
7
7
|
import { FilterOperatorBase } from './filter-operator.base';
|
|
8
8
|
import * as i0 from "@angular/core";
|
|
9
|
-
import * as i1 from "
|
|
9
|
+
import * as i1 from "../../common/provider.service";
|
|
10
10
|
/**
|
|
11
11
|
* Represents the `Contains` (**Contains**) filter operator. [See example](slug:filtering_grid#toc-using-the-built-in-directive).
|
|
12
12
|
* For more information and examples, refer to the article on setting [default filter operators](slug:filter_row#toc-default-filter-operator).
|
|
13
13
|
*/
|
|
14
14
|
export class ContainsFilterOperatorComponent extends FilterOperatorBase {
|
|
15
|
-
constructor(
|
|
15
|
+
constructor(ctx) { super("contains", ctx); }
|
|
16
16
|
}
|
|
17
|
-
ContainsFilterOperatorComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: ContainsFilterOperatorComponent, deps: [{ token: i1.
|
|
17
|
+
ContainsFilterOperatorComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: ContainsFilterOperatorComponent, deps: [{ token: i1.ContextService }], target: i0.ɵɵFactoryTarget.Component });
|
|
18
18
|
ContainsFilterOperatorComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.12", type: ContainsFilterOperatorComponent, selector: "kendo-filter-contains-operator", providers: [
|
|
19
19
|
{
|
|
20
20
|
provide: FilterOperatorBase,
|
|
@@ -33,4 +33,4 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImpo
|
|
|
33
33
|
selector: 'kendo-filter-contains-operator',
|
|
34
34
|
template: ``
|
|
35
35
|
}]
|
|
36
|
-
}], ctorParameters: function () { return [{ type: i1.
|
|
36
|
+
}], ctorParameters: function () { return [{ type: i1.ContextService }]; } });
|
|
@@ -3,19 +3,19 @@
|
|
|
3
3
|
* Licensed under commercial license. See LICENSE.md in the project root for more information
|
|
4
4
|
*-------------------------------------------------------------------------------------------*/
|
|
5
5
|
import { Component, forwardRef } from '@angular/core';
|
|
6
|
-
import {
|
|
6
|
+
import { ContextService } from '../../common/provider.service';
|
|
7
7
|
import { FilterOperatorBase } from './filter-operator.base';
|
|
8
8
|
import * as i0 from "@angular/core";
|
|
9
|
-
import * as i1 from "
|
|
9
|
+
import * as i1 from "../../common/provider.service";
|
|
10
10
|
/**
|
|
11
11
|
* Represents the `EndsWith` (**Ends with**) string filter operator. [See example](slug:filtering_grid#toc-using-the-built-in-directive).
|
|
12
12
|
*
|
|
13
13
|
* For more information and examples, refer to the article on setting [default filter operators](slug:filter_row#toc-default-filter-operator).
|
|
14
14
|
*/
|
|
15
15
|
export class EndsWithFilterOperatorComponent extends FilterOperatorBase {
|
|
16
|
-
constructor(
|
|
16
|
+
constructor(ctx) { super("endswith", ctx); }
|
|
17
17
|
}
|
|
18
|
-
EndsWithFilterOperatorComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: EndsWithFilterOperatorComponent, deps: [{ token: i1.
|
|
18
|
+
EndsWithFilterOperatorComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: EndsWithFilterOperatorComponent, deps: [{ token: i1.ContextService }], target: i0.ɵɵFactoryTarget.Component });
|
|
19
19
|
EndsWithFilterOperatorComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.12", type: EndsWithFilterOperatorComponent, selector: "kendo-filter-endswith-operator", providers: [
|
|
20
20
|
{
|
|
21
21
|
provide: FilterOperatorBase,
|
|
@@ -34,4 +34,4 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImpo
|
|
|
34
34
|
selector: 'kendo-filter-endswith-operator',
|
|
35
35
|
template: ``
|
|
36
36
|
}]
|
|
37
|
-
}], ctorParameters: function () { return [{ type: i1.
|
|
37
|
+
}], ctorParameters: function () { return [{ type: i1.ContextService }]; } });
|