@progress/kendo-angular-grid 12.2.0-develop.7 → 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
|
@@ -4,13 +4,13 @@
|
|
|
4
4
|
*-------------------------------------------------------------------------------------------*/
|
|
5
5
|
import { Component, Input } from '@angular/core';
|
|
6
6
|
import { FilterService } from '../filter.service';
|
|
7
|
-
import { LocalizationService } from '@progress/kendo-angular-l10n';
|
|
8
7
|
import { DateFilterComponent } from '../date-filter.component';
|
|
9
8
|
import { replaceMessagePlaceholder } from '../../utils';
|
|
10
9
|
import { SizingOptionsService } from '../../layout/sizing-options.service';
|
|
10
|
+
import { ContextService } from '../../common/provider.service';
|
|
11
11
|
import * as i0 from "@angular/core";
|
|
12
12
|
import * as i1 from "../filter.service";
|
|
13
|
-
import * as i2 from "
|
|
13
|
+
import * as i2 from "../../common/provider.service";
|
|
14
14
|
import * as i3 from "../../layout/sizing-options.service";
|
|
15
15
|
import * as i4 from "./filter-cell-wrapper.component";
|
|
16
16
|
import * as i5 from "@progress/kendo-angular-dateinputs";
|
|
@@ -33,9 +33,9 @@ import * as i7 from "../../navigation/focusable.directive";
|
|
|
33
33
|
* ```
|
|
34
34
|
*/
|
|
35
35
|
export class DateFilterCellComponent extends DateFilterComponent {
|
|
36
|
-
constructor(filterService,
|
|
37
|
-
super(filterService,
|
|
38
|
-
this.
|
|
36
|
+
constructor(filterService, ctx, sizingService) {
|
|
37
|
+
super(filterService, ctx);
|
|
38
|
+
this.ctx = ctx;
|
|
39
39
|
/**
|
|
40
40
|
* Represents a [DatePicker](slug:overview_datepicker) filter-cell component.
|
|
41
41
|
* [See example](slug:filter_row#toc-built-in-filter-row-components).
|
|
@@ -64,18 +64,18 @@ export class DateFilterCellComponent extends DateFilterComponent {
|
|
|
64
64
|
* @hidden
|
|
65
65
|
*/
|
|
66
66
|
messageFor(key) {
|
|
67
|
-
return this.localization.get(key);
|
|
67
|
+
return this.ctx.localization.get(key);
|
|
68
68
|
}
|
|
69
69
|
/**
|
|
70
70
|
* @hidden
|
|
71
71
|
*/
|
|
72
72
|
get columnLabel() {
|
|
73
|
-
const localizationMsg = this.localization.get('filterInputLabel') || '';
|
|
73
|
+
const localizationMsg = this.ctx.localization.get('filterInputLabel') || '';
|
|
74
74
|
const columnName = this.column.title || this.column.field;
|
|
75
75
|
return replaceMessagePlaceholder(localizationMsg, 'columnName', columnName);
|
|
76
76
|
}
|
|
77
77
|
}
|
|
78
|
-
DateFilterCellComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: DateFilterCellComponent, deps: [{ token: i1.FilterService }, { token: i2.
|
|
78
|
+
DateFilterCellComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: DateFilterCellComponent, deps: [{ token: i1.FilterService }, { token: i2.ContextService }, { token: i3.SizingOptionsService }], target: i0.ɵɵFactoryTarget.Component });
|
|
79
79
|
DateFilterCellComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.12", type: DateFilterCellComponent, selector: "kendo-grid-date-filter-cell", inputs: { showOperators: "showOperators" }, usesInheritance: true, ngImport: i0, template: `
|
|
80
80
|
<kendo-grid-filter-wrapper-cell
|
|
81
81
|
[column]="column"
|
|
@@ -145,6 +145,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImpo
|
|
|
145
145
|
</kendo-grid-filter-wrapper-cell>
|
|
146
146
|
`
|
|
147
147
|
}]
|
|
148
|
-
}], ctorParameters: function () { return [{ type: i1.FilterService }, { type: i2.
|
|
148
|
+
}], ctorParameters: function () { return [{ type: i1.FilterService }, { type: i2.ContextService }, { type: i3.SizingOptionsService }]; }, propDecorators: { showOperators: [{
|
|
149
149
|
type: Input
|
|
150
150
|
}] } });
|
|
@@ -5,11 +5,11 @@
|
|
|
5
5
|
import { Component, Input, Output, EventEmitter, HostBinding, ViewChild } from '@angular/core';
|
|
6
6
|
import { DropDownListComponent } from '@progress/kendo-angular-dropdowns';
|
|
7
7
|
import { Keys } from '@progress/kendo-angular-common';
|
|
8
|
-
import { LocalizationService } from '@progress/kendo-angular-l10n';
|
|
9
8
|
import { SizingOptionsService } from '../../layout/sizing-options.service';
|
|
10
9
|
import { filterClearIcon } from '@progress/kendo-svg-icons';
|
|
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 "../../layout/sizing-options.service";
|
|
14
14
|
import * as i3 from "@progress/kendo-angular-dropdowns";
|
|
15
15
|
import * as i4 from "@progress/kendo-angular-buttons";
|
|
@@ -33,8 +33,8 @@ import * as i6 from "../../navigation/focusable.directive";
|
|
|
33
33
|
* ```
|
|
34
34
|
*/
|
|
35
35
|
export class FilterCellOperatorsComponent {
|
|
36
|
-
constructor(
|
|
37
|
-
this.
|
|
36
|
+
constructor(ctx, sizing) {
|
|
37
|
+
this.ctx = ctx;
|
|
38
38
|
this.sizing = sizing;
|
|
39
39
|
this.clearText = 'Clear';
|
|
40
40
|
this.filterClearIcon = filterClearIcon;
|
|
@@ -103,7 +103,7 @@ export class FilterCellOperatorsComponent {
|
|
|
103
103
|
}
|
|
104
104
|
}
|
|
105
105
|
ngOnInit() {
|
|
106
|
-
this.subs = this.localization.changes.subscribe(() => this.clearText = this.localization.get('filterClearButton'));
|
|
106
|
+
this.subs = this.ctx.localization.changes.subscribe(() => this.clearText = this.ctx.localization.get('filterClearButton'));
|
|
107
107
|
this.subs.add(this.sizing.changes.subscribe((size) => this.size = size));
|
|
108
108
|
}
|
|
109
109
|
ngOnDestroy() {
|
|
@@ -112,7 +112,7 @@ export class FilterCellOperatorsComponent {
|
|
|
112
112
|
}
|
|
113
113
|
}
|
|
114
114
|
}
|
|
115
|
-
FilterCellOperatorsComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: FilterCellOperatorsComponent, deps: [{ token: i1.
|
|
115
|
+
FilterCellOperatorsComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: FilterCellOperatorsComponent, deps: [{ token: i1.ContextService }, { token: i2.SizingOptionsService }], target: i0.ɵɵFactoryTarget.Component });
|
|
116
116
|
FilterCellOperatorsComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.12", type: FilterCellOperatorsComponent, selector: "kendo-grid-filter-cell-operators", inputs: { operators: "operators", showButton: "showButton", showOperators: "showOperators", value: "value" }, outputs: { valueChange: "valueChange", clear: "clear" }, host: { properties: { "class.k-filtercell-operator": "this.hostClasses" } }, viewQueries: [{ propertyName: "dropdown", first: true, predicate: ["dropdown"], descendants: true }], ngImport: i0, template: `
|
|
117
117
|
<kendo-dropdownlist
|
|
118
118
|
#dropdown
|
|
@@ -174,7 +174,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImpo
|
|
|
174
174
|
(keydown)="clearKeydown($event)"></button>
|
|
175
175
|
`
|
|
176
176
|
}]
|
|
177
|
-
}], ctorParameters: function () { return [{ type: i1.
|
|
177
|
+
}], ctorParameters: function () { return [{ type: i1.ContextService }, { type: i2.SizingOptionsService }]; }, propDecorators: { hostClasses: [{
|
|
178
178
|
type: HostBinding,
|
|
179
179
|
args: ['class.k-filtercell-operator']
|
|
180
180
|
}], dropdown: [{
|
|
@@ -4,13 +4,13 @@
|
|
|
4
4
|
*-------------------------------------------------------------------------------------------*/
|
|
5
5
|
import { Component, Input } from '@angular/core';
|
|
6
6
|
import { FilterService } from '../filter.service';
|
|
7
|
-
import { LocalizationService } from '@progress/kendo-angular-l10n';
|
|
8
7
|
import { NumericFilterComponent } from '../numeric-filter.component';
|
|
9
8
|
import { replaceMessagePlaceholder } from '../../utils';
|
|
10
9
|
import { SizingOptionsService } from '../../layout/sizing-options.service';
|
|
10
|
+
import { ContextService } from '../../common/provider.service';
|
|
11
11
|
import * as i0 from "@angular/core";
|
|
12
12
|
import * as i1 from "../filter.service";
|
|
13
|
-
import * as i2 from "
|
|
13
|
+
import * as i2 from "../../common/provider.service";
|
|
14
14
|
import * as i3 from "../../layout/sizing-options.service";
|
|
15
15
|
import * as i4 from "./filter-cell-wrapper.component";
|
|
16
16
|
import * as i5 from "@progress/kendo-angular-inputs";
|
|
@@ -33,13 +33,13 @@ import * as i7 from "../filter-input.directive";
|
|
|
33
33
|
* ```
|
|
34
34
|
*/
|
|
35
35
|
export class NumericFilterCellComponent extends NumericFilterComponent {
|
|
36
|
-
constructor(filterService,
|
|
37
|
-
super(filterService,
|
|
38
|
-
this.
|
|
36
|
+
constructor(filterService, ctx, sizingService) {
|
|
37
|
+
super(filterService, ctx);
|
|
38
|
+
this.ctx = ctx;
|
|
39
39
|
/**
|
|
40
40
|
* Determines the delay time (in milliseconds) before the filter value is submitted.
|
|
41
41
|
* A value of `0` indicates no delay. The default value is `500`.
|
|
42
|
-
* @type {boolean}
|
|
42
|
+
* @type {boolean}\
|
|
43
43
|
* @default 500
|
|
44
44
|
*/
|
|
45
45
|
this.filterDelay = 500;
|
|
@@ -59,18 +59,18 @@ export class NumericFilterCellComponent extends NumericFilterComponent {
|
|
|
59
59
|
* @hidden
|
|
60
60
|
*/
|
|
61
61
|
messageFor(key) {
|
|
62
|
-
return this.localization.get(key);
|
|
62
|
+
return this.ctx.localization.get(key);
|
|
63
63
|
}
|
|
64
64
|
/**
|
|
65
65
|
* @hidden
|
|
66
66
|
*/
|
|
67
67
|
get columnLabel() {
|
|
68
|
-
const localizationMsg = this.localization.get('filterInputLabel') || '';
|
|
68
|
+
const localizationMsg = this.ctx.localization.get('filterInputLabel') || '';
|
|
69
69
|
const columnName = this.column.title || this.column.field;
|
|
70
70
|
return replaceMessagePlaceholder(localizationMsg, 'columnName', columnName);
|
|
71
71
|
}
|
|
72
72
|
}
|
|
73
|
-
NumericFilterCellComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: NumericFilterCellComponent, deps: [{ token: i1.FilterService }, { token: i2.
|
|
73
|
+
NumericFilterCellComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: NumericFilterCellComponent, deps: [{ token: i1.FilterService }, { token: i2.ContextService }, { token: i3.SizingOptionsService }], target: i0.ɵɵFactoryTarget.Component });
|
|
74
74
|
NumericFilterCellComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.12", type: NumericFilterCellComponent, selector: "kendo-grid-numeric-filter-cell", inputs: { filterDelay: "filterDelay", showOperators: "showOperators" }, usesInheritance: true, ngImport: i0, template: `
|
|
75
75
|
<kendo-grid-filter-wrapper-cell
|
|
76
76
|
[column]="column"
|
|
@@ -138,7 +138,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImpo
|
|
|
138
138
|
</kendo-grid-filter-wrapper-cell>
|
|
139
139
|
`
|
|
140
140
|
}]
|
|
141
|
-
}], ctorParameters: function () { return [{ type: i1.FilterService }, { type: i2.
|
|
141
|
+
}], ctorParameters: function () { return [{ type: i1.FilterService }, { type: i2.ContextService }, { type: i3.SizingOptionsService }]; }, propDecorators: { filterDelay: [{
|
|
142
142
|
type: Input
|
|
143
143
|
}], showOperators: [{
|
|
144
144
|
type: Input
|
|
@@ -4,13 +4,13 @@
|
|
|
4
4
|
*-------------------------------------------------------------------------------------------*/
|
|
5
5
|
import { Component, Input } from '@angular/core';
|
|
6
6
|
import { FilterService } from '../filter.service';
|
|
7
|
-
import { LocalizationService } from '@progress/kendo-angular-l10n';
|
|
8
7
|
import { StringFilterComponent } from "../string-filter.component";
|
|
9
8
|
import { replaceMessagePlaceholder } from '../../utils';
|
|
10
9
|
import { SizingOptionsService } from '../../layout/sizing-options.service';
|
|
10
|
+
import { ContextService } from '../../common/provider.service';
|
|
11
11
|
import * as i0 from "@angular/core";
|
|
12
12
|
import * as i1 from "../filter.service";
|
|
13
|
-
import * as i2 from "
|
|
13
|
+
import * as i2 from "../../common/provider.service";
|
|
14
14
|
import * as i3 from "../../layout/sizing-options.service";
|
|
15
15
|
import * as i4 from "./filter-cell-wrapper.component";
|
|
16
16
|
import * as i5 from "@progress/kendo-angular-inputs";
|
|
@@ -34,8 +34,8 @@ import * as i8 from "@angular/forms";
|
|
|
34
34
|
* ```
|
|
35
35
|
*/
|
|
36
36
|
export class StringFilterCellComponent extends StringFilterComponent {
|
|
37
|
-
constructor(filterService,
|
|
38
|
-
super(filterService,
|
|
37
|
+
constructor(filterService, ctx, sizingService) {
|
|
38
|
+
super(filterService, ctx);
|
|
39
39
|
/**
|
|
40
40
|
* Determines the delay time (in milliseconds) before the filter value is submitted.
|
|
41
41
|
* A value of `0` indicates no delay.
|
|
@@ -60,12 +60,12 @@ export class StringFilterCellComponent extends StringFilterComponent {
|
|
|
60
60
|
* @hidden
|
|
61
61
|
*/
|
|
62
62
|
get columnLabel() {
|
|
63
|
-
const localizationMsg = this.localization.get('filterInputLabel') || '';
|
|
63
|
+
const localizationMsg = this.ctx.localization.get('filterInputLabel') || '';
|
|
64
64
|
const columnName = this.column.title || this.column.field;
|
|
65
65
|
return replaceMessagePlaceholder(localizationMsg, 'columnName', columnName);
|
|
66
66
|
}
|
|
67
67
|
}
|
|
68
|
-
StringFilterCellComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: StringFilterCellComponent, deps: [{ token: i1.FilterService }, { token: i2.
|
|
68
|
+
StringFilterCellComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: StringFilterCellComponent, deps: [{ token: i1.FilterService }, { token: i2.ContextService }, { token: i3.SizingOptionsService }], target: i0.ɵɵFactoryTarget.Component });
|
|
69
69
|
StringFilterCellComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.12", type: StringFilterCellComponent, selector: "kendo-grid-string-filter-cell", inputs: { filterDelay: "filterDelay", showOperators: "showOperators" }, usesInheritance: true, ngImport: i0, template: `
|
|
70
70
|
<kendo-grid-filter-wrapper-cell
|
|
71
71
|
[column]="column"
|
|
@@ -105,7 +105,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImpo
|
|
|
105
105
|
</kendo-grid-filter-wrapper-cell>
|
|
106
106
|
`
|
|
107
107
|
}]
|
|
108
|
-
}], ctorParameters: function () { return [{ type: i1.FilterService }, { type: i2.
|
|
108
|
+
}], ctorParameters: function () { return [{ type: i1.FilterService }, { type: i2.ContextService }, { type: i3.SizingOptionsService }]; }, propDecorators: { filterDelay: [{
|
|
109
109
|
type: Input
|
|
110
110
|
}], showOperators: [{
|
|
111
111
|
type: Input
|
|
@@ -7,12 +7,12 @@ import { Component, 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 dateOperators = localizeOperators({
|
|
17
17
|
"filterEqOperator": "eq",
|
|
18
18
|
"filterNotEqOperator": "neq",
|
|
@@ -27,9 +27,9 @@ const dateOperators = localizeOperators({
|
|
|
27
27
|
* @hidden
|
|
28
28
|
*/
|
|
29
29
|
export class DateFilterComponent 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. Defaults to `contains`.
|
|
35
35
|
* @type {string}
|
|
@@ -58,7 +58,7 @@ export class DateFilterComponent extends BaseFilterCellComponent {
|
|
|
58
58
|
* @default false
|
|
59
59
|
*/
|
|
60
60
|
this.weekNumber = false;
|
|
61
|
-
this.defaultOperators = dateOperators(this.localization);
|
|
61
|
+
this.defaultOperators = dateOperators(this.ctx.localization);
|
|
62
62
|
}
|
|
63
63
|
/**
|
|
64
64
|
* The current filter for the associated column field.
|
|
@@ -98,7 +98,7 @@ export class DateFilterComponent extends BaseFilterCellComponent {
|
|
|
98
98
|
extractFormat(this.column.format) : "d";
|
|
99
99
|
}
|
|
100
100
|
ngOnInit() {
|
|
101
|
-
this.subscription = this.localization.changes.subscribe(this.localizationChange.bind(this));
|
|
101
|
+
this.subscription = this.ctx.localization.changes.subscribe(this.localizationChange.bind(this));
|
|
102
102
|
}
|
|
103
103
|
ngOnDestroy() {
|
|
104
104
|
if (this.subscription) {
|
|
@@ -107,13 +107,13 @@ export class DateFilterComponent extends BaseFilterCellComponent {
|
|
|
107
107
|
super.ngOnDestroy();
|
|
108
108
|
}
|
|
109
109
|
localizationChange() {
|
|
110
|
-
this.defaultOperators = dateOperators(this.localization);
|
|
110
|
+
this.defaultOperators = dateOperators(this.ctx.localization);
|
|
111
111
|
if (this.operatorList.length) {
|
|
112
112
|
this.operators = toJSON(this.operatorList.toArray());
|
|
113
113
|
}
|
|
114
114
|
}
|
|
115
115
|
}
|
|
116
|
-
DateFilterComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: DateFilterComponent, deps: [{ token: i1.FilterService }, { token: i2.
|
|
116
|
+
DateFilterComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: DateFilterComponent, deps: [{ token: i1.FilterService }, { token: i2.ContextService }], target: i0.ɵɵFactoryTarget.Component });
|
|
117
117
|
DateFilterComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.12", type: DateFilterComponent, selector: "kendo-grid-date-filter-base", inputs: { column: "column", filter: "filter", operator: "operator", format: "format", min: "min", max: "max", formatPlaceholder: "formatPlaceholder", placeholder: "placeholder", activeView: "activeView", bottomView: "bottomView", topView: "topView", weekNumber: "weekNumber" }, usesInheritance: true, ngImport: i0, template: ``, isInline: true });
|
|
118
118
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: DateFilterComponent, decorators: [{
|
|
119
119
|
type: Component,
|
|
@@ -121,7 +121,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImpo
|
|
|
121
121
|
selector: 'kendo-grid-date-filter-base',
|
|
122
122
|
template: ``
|
|
123
123
|
}]
|
|
124
|
-
}], ctorParameters: function () { return [{ type: i1.FilterService }, { type: i2.
|
|
124
|
+
}], ctorParameters: function () { return [{ type: i1.FilterService }, { type: i2.ContextService }]; }, propDecorators: { column: [{
|
|
125
125
|
type: Input
|
|
126
126
|
}], filter: [{
|
|
127
127
|
type: Input
|
|
@@ -5,10 +5,10 @@
|
|
|
5
5
|
import { ColumnInfoService } from './../common/column-info.service';
|
|
6
6
|
import { Component, Input, HostBinding } from '@angular/core';
|
|
7
7
|
import { DetailTemplateDirective } from '../rendering/details/detail-template.directive';
|
|
8
|
-
import { LocalizationService } from '@progress/kendo-angular-l10n';
|
|
9
8
|
import { replaceMessagePlaceholder } from '../utils';
|
|
9
|
+
import { ContextService } from '../common/provider.service';
|
|
10
10
|
import * as i0 from "@angular/core";
|
|
11
|
-
import * as i1 from "
|
|
11
|
+
import * as i1 from "../common/provider.service";
|
|
12
12
|
import * as i2 from "./../common/column-info.service";
|
|
13
13
|
import * as i3 from "./cell/filter-cell.component";
|
|
14
14
|
import * as i4 from "@angular/common";
|
|
@@ -17,8 +17,8 @@ import * as i5 from "../navigation/logical-cell.directive";
|
|
|
17
17
|
* @hidden
|
|
18
18
|
*/
|
|
19
19
|
export class FilterRowComponent {
|
|
20
|
-
constructor(
|
|
21
|
-
this.
|
|
20
|
+
constructor(ctx, columnInfoService) {
|
|
21
|
+
this.ctx = ctx;
|
|
22
22
|
this.columnInfoService = columnInfoService;
|
|
23
23
|
this.columns = [];
|
|
24
24
|
this.groups = [];
|
|
@@ -29,12 +29,12 @@ export class FilterRowComponent {
|
|
|
29
29
|
return { ...sticky, ...column.filterStyle };
|
|
30
30
|
}
|
|
31
31
|
filterLabel(column) {
|
|
32
|
-
const localizationMsg = this.localization.get('filterInputLabel') || '';
|
|
32
|
+
const localizationMsg = this.ctx.localization.get('filterInputLabel') || '';
|
|
33
33
|
const columnName = column.title || column.field;
|
|
34
34
|
return replaceMessagePlaceholder(localizationMsg, 'columnName', columnName);
|
|
35
35
|
}
|
|
36
36
|
}
|
|
37
|
-
FilterRowComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: FilterRowComponent, deps: [{ token: i1.
|
|
37
|
+
FilterRowComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: FilterRowComponent, deps: [{ token: i1.ContextService }, { token: i2.ColumnInfoService }], target: i0.ɵɵFactoryTarget.Component });
|
|
38
38
|
FilterRowComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.12", type: FilterRowComponent, selector: "[kendoGridFilterRow]", inputs: { columns: "columns", filter: "filter", groups: "groups", detailTemplate: "detailTemplate", logicalRowIndex: "logicalRowIndex", lockedColumnsCount: "lockedColumnsCount" }, host: { properties: { "class.k-filter-row": "this.filterRowClass" } }, ngImport: i0, template: `
|
|
39
39
|
<td
|
|
40
40
|
class="k-table-td"
|
|
@@ -94,7 +94,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImpo
|
|
|
94
94
|
></td>
|
|
95
95
|
`
|
|
96
96
|
}]
|
|
97
|
-
}], ctorParameters: function () { return [{ type: i1.
|
|
97
|
+
}], ctorParameters: function () { return [{ type: i1.ContextService }, { type: i2.ColumnInfoService }]; }, propDecorators: { columns: [{
|
|
98
98
|
type: Input
|
|
99
99
|
}], filter: [{
|
|
100
100
|
type: Input
|
|
@@ -4,14 +4,14 @@
|
|
|
4
4
|
*-------------------------------------------------------------------------------------------*/
|
|
5
5
|
import { Component, Input, HostBinding, QueryList, ViewChildren } from '@angular/core';
|
|
6
6
|
import { FilterService } from '../filter.service';
|
|
7
|
-
import { LocalizationService } from '@progress/kendo-angular-l10n';
|
|
8
7
|
import { BooleanFilterComponent } from '../boolean-filter.component';
|
|
9
8
|
import { guid } from '@progress/kendo-angular-common';
|
|
10
9
|
import { BooleanFilterRadioButtonDirective } from './filter-radio-button.directive';
|
|
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 "@angular/common";
|
|
16
16
|
import * as i3 from "@progress/kendo-angular-inputs";
|
|
17
17
|
import * as i4 from "./filter-radio-button.directive";
|
|
@@ -33,8 +33,8 @@ import * as i4 from "./filter-radio-button.directive";
|
|
|
33
33
|
* ```
|
|
34
34
|
*/
|
|
35
35
|
export class BooleanFilterMenuComponent extends BooleanFilterComponent {
|
|
36
|
-
constructor(
|
|
37
|
-
super(null,
|
|
36
|
+
constructor(ctx) {
|
|
37
|
+
super(null, ctx);
|
|
38
38
|
/**
|
|
39
39
|
* The current menu filter.
|
|
40
40
|
* @type {CompositeFilterDescriptor}
|
|
@@ -50,7 +50,9 @@ export class BooleanFilterMenuComponent extends BooleanFilterComponent {
|
|
|
50
50
|
}
|
|
51
51
|
ngAfterViewInit() {
|
|
52
52
|
this.filterService.menuTabbingService.firstFocusable = this.radioButtons.first.radioButtonEl;
|
|
53
|
-
this.
|
|
53
|
+
if (!this.menuTabbingService?.isTabbedInterface) {
|
|
54
|
+
this.radioButtons.first.radioButtonEl.focus();
|
|
55
|
+
}
|
|
54
56
|
}
|
|
55
57
|
/**
|
|
56
58
|
* @hidden
|
|
@@ -88,12 +90,12 @@ export class BooleanFilterMenuComponent extends BooleanFilterComponent {
|
|
|
88
90
|
* @hidden
|
|
89
91
|
*/
|
|
90
92
|
get columnLabel() {
|
|
91
|
-
const localizationMsg = this.localization.get('filterInputLabel') || '';
|
|
93
|
+
const localizationMsg = this.ctx.localization.get('filterInputLabel') || '';
|
|
92
94
|
const columnName = this.column.title || this.column.field;
|
|
93
95
|
return replaceMessagePlaceholder(localizationMsg, 'columnName', columnName);
|
|
94
96
|
}
|
|
95
97
|
}
|
|
96
|
-
BooleanFilterMenuComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: BooleanFilterMenuComponent, deps: [{ token: i1.
|
|
98
|
+
BooleanFilterMenuComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: BooleanFilterMenuComponent, deps: [{ token: i1.ContextService }], target: i0.ɵɵFactoryTarget.Component });
|
|
97
99
|
BooleanFilterMenuComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.12", type: BooleanFilterMenuComponent, selector: "kendo-grid-boolean-filter-menu", inputs: { filter: "filter", filterService: "filterService", menuTabbingService: "menuTabbingService" }, host: { properties: { "class.k-filtercell": "this.hostClasses" } }, viewQueries: [{ propertyName: "radioButtons", predicate: BooleanFilterRadioButtonDirective, descendants: true }], usesInheritance: true, ngImport: i0, template: `
|
|
98
100
|
<ul class="k-radio-list k-reset">
|
|
99
101
|
<li *ngFor="let item of items">
|
|
@@ -135,7 +137,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImpo
|
|
|
135
137
|
</ul>
|
|
136
138
|
`
|
|
137
139
|
}]
|
|
138
|
-
}], ctorParameters: function () { return [{ type: i1.
|
|
140
|
+
}], ctorParameters: function () { return [{ type: i1.ContextService }]; }, propDecorators: { hostClasses: [{
|
|
139
141
|
type: HostBinding,
|
|
140
142
|
args: ['class.k-filtercell']
|
|
141
143
|
}], filter: [{
|
|
@@ -8,11 +8,11 @@ import { ColumnComponent } from "../../columns/column.component";
|
|
|
8
8
|
import { FilterService } from '../filter.service';
|
|
9
9
|
import { SinglePopupService } from '../../common/single-popup.service';
|
|
10
10
|
import { filter } from 'rxjs/operators';
|
|
11
|
-
import { LocalizationService } from '@progress/kendo-angular-l10n';
|
|
12
11
|
import { replaceMessagePlaceholder } from '../../utils';
|
|
12
|
+
import { ContextService } from '../../common/provider.service';
|
|
13
13
|
import * as i0 from "@angular/core";
|
|
14
14
|
import * as i1 from "../../common/single-popup.service";
|
|
15
|
-
import * as i2 from "
|
|
15
|
+
import * as i2 from "../../common/provider.service";
|
|
16
16
|
import * as i3 from "./filter-menu-input-wrapper.component";
|
|
17
17
|
import * as i4 from "@progress/kendo-angular-dateinputs";
|
|
18
18
|
import * as i5 from "../filter-input.directive";
|
|
@@ -20,9 +20,9 @@ import * as i5 from "../filter-input.directive";
|
|
|
20
20
|
* @hidden
|
|
21
21
|
*/
|
|
22
22
|
export class DateFilterMenuInputComponent {
|
|
23
|
-
constructor(popupService,
|
|
23
|
+
constructor(popupService, ctx) {
|
|
24
24
|
this.popupService = popupService;
|
|
25
|
-
this.
|
|
25
|
+
this.ctx = ctx;
|
|
26
26
|
this.operators = [];
|
|
27
27
|
}
|
|
28
28
|
ngOnDestroy() {
|
|
@@ -36,15 +36,15 @@ export class DateFilterMenuInputComponent {
|
|
|
36
36
|
.subscribe(e => e.preventDefault());
|
|
37
37
|
}
|
|
38
38
|
messageFor(key) {
|
|
39
|
-
return this.
|
|
39
|
+
return this.ctx.localization.get(key);
|
|
40
40
|
}
|
|
41
41
|
get columnLabel() {
|
|
42
|
-
const localizationMsg = this.
|
|
42
|
+
const localizationMsg = this.ctx.localization.get('filterInputLabel') || '';
|
|
43
43
|
const columnName = this.column ? this.column.title || this.column.field : '';
|
|
44
44
|
return replaceMessagePlaceholder(localizationMsg, 'columnName', columnName);
|
|
45
45
|
}
|
|
46
46
|
}
|
|
47
|
-
DateFilterMenuInputComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: DateFilterMenuInputComponent, deps: [{ token: i1.SinglePopupService }, { token: i2.
|
|
47
|
+
DateFilterMenuInputComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: DateFilterMenuInputComponent, deps: [{ token: i1.SinglePopupService }, { token: i2.ContextService }], target: i0.ɵɵFactoryTarget.Component });
|
|
48
48
|
DateFilterMenuInputComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.12", type: DateFilterMenuInputComponent, selector: "kendo-grid-date-filter-menu-input", inputs: { operators: "operators", column: "column", filter: "filter", operator: "operator", currentFilter: "currentFilter", filterService: "filterService", menuTabbingService: "menuTabbingService", format: "format", formatPlaceholder: "formatPlaceholder", placeholder: "placeholder", min: "min", max: "max", activeView: "activeView", bottomView: "bottomView", topView: "topView", weekNumber: "weekNumber", isFirstDropDown: "isFirstDropDown" }, ngImport: i0, template: `
|
|
49
49
|
<kendo-grid-filter-menu-input-wrapper
|
|
50
50
|
[column]="column"
|
|
@@ -122,7 +122,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImpo
|
|
|
122
122
|
</kendo-grid-filter-menu-input-wrapper>
|
|
123
123
|
`
|
|
124
124
|
}]
|
|
125
|
-
}], ctorParameters: function () { return [{ type: i1.SinglePopupService }, { type: i2.
|
|
125
|
+
}], ctorParameters: function () { return [{ type: i1.SinglePopupService }, { type: i2.ContextService }]; }, propDecorators: { operators: [{
|
|
126
126
|
type: Input
|
|
127
127
|
}], column: [{
|
|
128
128
|
type: Input
|
|
@@ -6,12 +6,12 @@ import { MenuTabbingService } from './menu-tabbing.service';
|
|
|
6
6
|
import { Component, Input, HostBinding } from '@angular/core';
|
|
7
7
|
import { ColumnComponent } from "../../columns/column.component";
|
|
8
8
|
import { FilterService } from '../filter.service';
|
|
9
|
-
import { LocalizationService } from '@progress/kendo-angular-l10n';
|
|
10
9
|
import { DateFilterComponent } from '../date-filter.component';
|
|
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 "./date-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 DateFilterMenuComponent extends DateFilterComponent {
|
|
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 DateFilterMenuComponent extends DateFilterComponent {
|
|
|
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
|
-
DateFilterMenuComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: DateFilterMenuComponent, deps: [{ token: i1.
|
|
75
|
+
DateFilterMenuComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: DateFilterMenuComponent, deps: [{ token: i1.ContextService }], target: i0.ɵɵFactoryTarget.Component });
|
|
76
76
|
DateFilterMenuComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.12", type: DateFilterMenuComponent, selector: "kendo-grid-date-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-date-filter-menu-input
|
|
78
78
|
[currentFilter]="firstFilter"
|
|
@@ -182,7 +182,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImpo
|
|
|
182
182
|
</kendo-grid-date-filter-menu-input>
|
|
183
183
|
`
|
|
184
184
|
}]
|
|
185
|
-
}], ctorParameters: function () { return [{ type: i1.
|
|
185
|
+
}], ctorParameters: function () { return [{ type: i1.ContextService }]; }, propDecorators: { hostClasses: [{
|
|
186
186
|
type: HostBinding,
|
|
187
187
|
args: ['class.k-filtercell']
|
|
188
188
|
}], column: [{
|
|
@@ -8,11 +8,11 @@ import { ColumnComponent } from "../../columns/column.component";
|
|
|
8
8
|
import { FilterService } from "../filter.service";
|
|
9
9
|
import { removeFilter, filtersByField } from "../base-filter-cell.component";
|
|
10
10
|
import { isPresent, isNullOrEmptyString } from "../../utils";
|
|
11
|
-
import { LocalizationService } from '@progress/kendo-angular-l10n';
|
|
12
11
|
import { cloneFilters } from '../../common/filter-descriptor-differ';
|
|
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
|
import * as i3 from "./menu-tabbing.service";
|
|
17
17
|
import * as i4 from "@angular/forms";
|
|
18
18
|
import * as i5 from "@angular/common";
|
|
@@ -48,10 +48,10 @@ const parentLogicOfDefault = (filter, field, def = "and") => {
|
|
|
48
48
|
* @hidden
|
|
49
49
|
*/
|
|
50
50
|
export class FilterMenuContainerComponent {
|
|
51
|
-
constructor(parentService, childService,
|
|
51
|
+
constructor(parentService, childService, ctx, cd, menuTabbingService) {
|
|
52
52
|
this.parentService = parentService;
|
|
53
53
|
this.childService = childService;
|
|
54
|
-
this.
|
|
54
|
+
this.ctx = ctx;
|
|
55
55
|
this.cd = cd;
|
|
56
56
|
this.close = new EventEmitter();
|
|
57
57
|
/**
|
|
@@ -82,7 +82,7 @@ export class FilterMenuContainerComponent {
|
|
|
82
82
|
}
|
|
83
83
|
ngOnInit() {
|
|
84
84
|
this.subscription = this.childService.changes.subscribe(filter => this._childFilter = filter);
|
|
85
|
-
this.subscription.add(this.localization.changes.subscribe(() => this.cd.markForCheck()));
|
|
85
|
+
this.subscription.add(this.ctx.localization.changes.subscribe(() => this.cd.markForCheck()));
|
|
86
86
|
}
|
|
87
87
|
ngAfterViewChecked() {
|
|
88
88
|
if (!this.menuTabbingService.isColumnMenu || (this.isLast && this.isExpanded)) {
|
|
@@ -145,13 +145,13 @@ export class FilterMenuContainerComponent {
|
|
|
145
145
|
}
|
|
146
146
|
}
|
|
147
147
|
get clearText() {
|
|
148
|
-
return this.localization.get("filterClearButton");
|
|
148
|
+
return this.ctx.localization.get("filterClearButton");
|
|
149
149
|
}
|
|
150
150
|
get filterText() {
|
|
151
|
-
return this.localization.get("filterFilterButton");
|
|
151
|
+
return this.ctx.localization.get("filterFilterButton");
|
|
152
152
|
}
|
|
153
153
|
}
|
|
154
|
-
FilterMenuContainerComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: FilterMenuContainerComponent, deps: [{ token: i1.FilterService, skipSelf: true }, { token: i1.FilterService }, { token: i2.
|
|
154
|
+
FilterMenuContainerComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: FilterMenuContainerComponent, deps: [{ token: i1.FilterService, skipSelf: true }, { token: i1.FilterService }, { token: i2.ContextService }, { token: i0.ChangeDetectorRef }, { token: i3.MenuTabbingService }], target: i0.ɵɵFactoryTarget.Component });
|
|
155
155
|
FilterMenuContainerComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.12", type: FilterMenuContainerComponent, selector: "kendo-grid-filter-menu-container", inputs: { column: "column", isLast: "isLast", isExpanded: "isExpanded", menuTabbingService: "menuTabbingService", filter: "filter", actionsClass: "actionsClass" }, outputs: { close: "close" }, providers: [
|
|
156
156
|
FilterService,
|
|
157
157
|
MenuTabbingService
|
|
@@ -242,7 +242,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImpo
|
|
|
242
242
|
}]
|
|
243
243
|
}], ctorParameters: function () { return [{ type: i1.FilterService, decorators: [{
|
|
244
244
|
type: SkipSelf
|
|
245
|
-
}] }, { type: i1.FilterService }, { type: i2.
|
|
245
|
+
}] }, { type: i1.FilterService }, { type: i2.ContextService }, { type: i0.ChangeDetectorRef }, { type: i3.MenuTabbingService }]; }, propDecorators: { close: [{
|
|
246
246
|
type: Output
|
|
247
247
|
}], column: [{
|
|
248
248
|
type: Input
|