@progress/kendo-angular-grid 11.0.0-develop.79 → 11.0.0-develop.80
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/common/size-options.d.ts +9 -0
- package/esm2020/common/size-options.mjs +5 -0
- package/esm2020/filtering/base-filter-cell.component.mjs +4 -0
- package/esm2020/filtering/cell/autocomplete-filter-cell.component.mjs +18 -7
- package/esm2020/filtering/cell/boolean-filter-cell.component.mjs +20 -8
- package/esm2020/filtering/cell/date-filter-cell.component.mjs +16 -8
- package/esm2020/filtering/cell/filter-cell-operators.component.mjs +29 -18
- package/esm2020/filtering/cell/filter-cell.component.mjs +4 -1
- package/esm2020/filtering/cell/numeric-filter-cell.component.mjs +16 -8
- package/esm2020/filtering/cell/string-filter-cell.component.mjs +21 -11
- package/esm2020/filtering/filter-row.component.mjs +1 -1
- package/esm2020/filtering/shared-filtering.module.mjs +9 -4
- package/esm2020/grid.component.mjs +164 -45
- package/esm2020/grid.module.mjs +76 -75
- package/esm2020/grouping/group-header.component.mjs +6 -4
- package/esm2020/index.mjs +2 -0
- package/esm2020/layout/sizing-options.service.mjs +17 -0
- package/esm2020/localization/messages.mjs +3 -1
- package/esm2020/navigation/logical-cell.directive.mjs +5 -0
- package/esm2020/navigation/logical-row.directive.mjs +5 -1
- package/esm2020/package-metadata.mjs +1 -1
- package/esm2020/pager/pager-element.component.mjs +10 -3
- package/esm2020/pager/pager-input.component.mjs +8 -9
- package/esm2020/pager/pager-next-buttons.component.mjs +51 -75
- package/esm2020/pager/pager-numeric-buttons.component.mjs +104 -81
- package/esm2020/pager/pager-page-sizes.component.mjs +4 -0
- package/esm2020/pager/pager-prev-buttons.component.mjs +49 -71
- package/esm2020/pager/pager.component.mjs +43 -16
- package/esm2020/pager/pager.module.mjs +3 -0
- package/esm2020/rendering/footer/footer.component.mjs +5 -1
- package/esm2020/rendering/grid-table.directive.mjs +51 -0
- package/esm2020/rendering/header/header.component.mjs +16 -5
- package/esm2020/rendering/list.component.mjs +43 -11
- package/esm2020/rendering/table-body.component.mjs +8 -4
- package/esm2020/rendering/toolbar/toolbar.component.mjs +31 -5
- package/esm2020/shared.module.mjs +9 -4
- package/fesm2015/progress-kendo-angular-grid.mjs +712 -371
- package/fesm2020/progress-kendo-angular-grid.mjs +712 -371
- package/filtering/base-filter-cell.component.d.ts +5 -0
- package/filtering/cell/autocomplete-filter-cell.component.d.ts +6 -1
- package/filtering/cell/boolean-filter-cell.component.d.ts +9 -1
- package/filtering/cell/date-filter-cell.component.d.ts +4 -1
- package/filtering/cell/filter-cell-operators.component.d.ts +9 -2
- package/filtering/cell/filter-cell.component.d.ts +3 -1
- package/filtering/cell/numeric-filter-cell.component.d.ts +4 -1
- package/filtering/cell/string-filter-cell.component.d.ts +4 -1
- package/filtering/shared-filtering.module.d.ts +2 -1
- package/grid.component.d.ts +15 -3
- package/grid.module.d.ts +76 -75
- package/grouping/group-header.component.d.ts +2 -1
- package/index.d.ts +3 -0
- package/layout/sizing-options.service.d.ts +12 -0
- package/localization/messages.d.ts +5 -1
- package/navigation/logical-cell.directive.d.ts +1 -0
- package/navigation/logical-row.directive.d.ts +1 -0
- package/package.json +14 -14
- package/pager/pager-element.component.d.ts +7 -1
- package/pager/pager.component.d.ts +7 -4
- package/pager/pager.module.d.ts +5 -4
- package/rendering/footer/footer.component.d.ts +1 -0
- package/rendering/grid-table.directive.d.ts +22 -0
- package/rendering/header/header.component.d.ts +4 -1
- package/rendering/list.component.d.ts +3 -1
- package/rendering/table-body.component.d.ts +1 -0
- package/rendering/toolbar/toolbar.component.d.ts +10 -3
- package/shared.module.d.ts +5 -4
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/**-----------------------------------------------------------------------------------------
|
|
2
|
+
* Copyright © 2022 Progress Software Corporation. All rights reserved.
|
|
3
|
+
* Licensed under commercial license. See LICENSE.md in the project root for more information
|
|
4
|
+
*-------------------------------------------------------------------------------------------*/
|
|
5
|
+
/**
|
|
6
|
+
* Represents the possible size options of the Grid.
|
|
7
|
+
* @default `medium`
|
|
8
|
+
*/
|
|
9
|
+
export declare type GridSize = 'small' | 'medium' | 'none';
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
/**-----------------------------------------------------------------------------------------
|
|
2
|
+
* Copyright © 2022 Progress Software Corporation. All rights reserved.
|
|
3
|
+
* Licensed under commercial license. See LICENSE.md in the project root for more information
|
|
4
|
+
*-------------------------------------------------------------------------------------------*/
|
|
5
|
+
export {};
|
|
@@ -8,13 +8,15 @@ import { ColumnComponent } from '../../columns/column.component';
|
|
|
8
8
|
import { FilterService } from '../filter.service';
|
|
9
9
|
import { BaseFilterCellComponent, localizeOperators } from '../base-filter-cell.component';
|
|
10
10
|
import { LocalizationService } from '@progress/kendo-angular-l10n';
|
|
11
|
+
import { SizingOptionsService } from '../../layout/sizing-options.service';
|
|
11
12
|
import * as i0 from "@angular/core";
|
|
12
13
|
import * as i1 from "../filter.service";
|
|
13
14
|
import * as i2 from "../../columns/column.component";
|
|
14
15
|
import * as i3 from "@progress/kendo-angular-l10n";
|
|
15
|
-
import * as i4 from "
|
|
16
|
-
import * as i5 from "
|
|
17
|
-
import * as i6 from "
|
|
16
|
+
import * as i4 from "../../layout/sizing-options.service";
|
|
17
|
+
import * as i5 from "./filter-cell-wrapper.component";
|
|
18
|
+
import * as i6 from "@progress/kendo-angular-dropdowns";
|
|
19
|
+
import * as i7 from "../filter-input.directive";
|
|
18
20
|
const stringOperators = localizeOperators({
|
|
19
21
|
"filterContainsOperator": "contains",
|
|
20
22
|
"filterNotContainsOperator": "doesnotcontain",
|
|
@@ -31,12 +33,14 @@ const stringOperators = localizeOperators({
|
|
|
31
33
|
* @hidden
|
|
32
34
|
*/
|
|
33
35
|
export class AutoCompleteFilterCellComponent extends BaseFilterCellComponent {
|
|
34
|
-
constructor(filterService, column, localization) {
|
|
36
|
+
constructor(filterService, column, localization, sizingOptionsService) {
|
|
35
37
|
super(filterService);
|
|
36
38
|
this.localization = localization;
|
|
37
39
|
this.showOperators = true;
|
|
40
|
+
this.size = 'medium';
|
|
38
41
|
this.defaultOperators = stringOperators(this.localization);
|
|
39
42
|
this.column = column;
|
|
43
|
+
this.subs = sizingOptionsService.changes.subscribe(size => this.size = size);
|
|
40
44
|
}
|
|
41
45
|
set valueField(value) {
|
|
42
46
|
this._valueField = value;
|
|
@@ -50,8 +54,13 @@ export class AutoCompleteFilterCellComponent extends BaseFilterCellComponent {
|
|
|
50
54
|
get currentOperator() {
|
|
51
55
|
return this.currentFilter ? this.currentFilter.operator : "contains";
|
|
52
56
|
}
|
|
57
|
+
ngOnDestroy() {
|
|
58
|
+
if (this.subs) {
|
|
59
|
+
this.subs.unsubscribe();
|
|
60
|
+
}
|
|
61
|
+
}
|
|
53
62
|
}
|
|
54
|
-
AutoCompleteFilterCellComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: AutoCompleteFilterCellComponent, deps: [{ token: i1.FilterService }, { token: i2.ColumnComponent }, { token: i3.LocalizationService }], target: i0.ɵɵFactoryTarget.Component });
|
|
63
|
+
AutoCompleteFilterCellComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: AutoCompleteFilterCellComponent, deps: [{ token: i1.FilterService }, { token: i2.ColumnComponent }, { token: i3.LocalizationService }, { token: i4.SizingOptionsService }], target: i0.ɵɵFactoryTarget.Component });
|
|
55
64
|
AutoCompleteFilterCellComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.11", type: AutoCompleteFilterCellComponent, selector: "kendo-grid-autocomplete-filter-cell", inputs: { showOperators: "showOperators", column: "column", filter: "filter", data: "data", valueField: "valueField" }, usesInheritance: true, ngImport: i0, template: `
|
|
56
65
|
<kendo-grid-filter-wrapper-cell
|
|
57
66
|
[column]="column"
|
|
@@ -61,11 +70,12 @@ AutoCompleteFilterCellComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion:
|
|
|
61
70
|
<kendo-autocomplete
|
|
62
71
|
kendoFilterInput
|
|
63
72
|
[data]="data"
|
|
73
|
+
[size]="size"
|
|
64
74
|
[valueField]="valueField"
|
|
65
75
|
[value]="currentFilter?.value">
|
|
66
76
|
</kendo-autocomplete>
|
|
67
77
|
</kendo-grid-filter-wrapper-cell>
|
|
68
|
-
`, isInline: true, components: [{ type:
|
|
78
|
+
`, isInline: true, components: [{ type: i5.FilterCellWrapperComponent, selector: "kendo-grid-filter-wrapper-cell", inputs: ["showOperators"] }, { type: i6.AutoCompleteComponent, selector: "kendo-autocomplete", inputs: ["highlightFirst", "focusableId", "data", "value", "valueField", "placeholder", "popupSettings", "listHeight", "loading", "clearButton", "suggest", "disabled", "itemDisabled", "readonly", "tabindex", "tabIndex", "filterable", "virtual", "size", "rounded", "fillMode"], outputs: ["valueChange", "filterChange", "open", "opened", "close", "closed", "focus", "blur"], exportAs: ["kendoAutoComplete"] }], directives: [{ type: i7.FilterInputDirective, selector: "[kendoFilterInput]", inputs: ["filterDelay", "columnLabel", "value"] }] });
|
|
69
79
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: AutoCompleteFilterCellComponent, decorators: [{
|
|
70
80
|
type: Component,
|
|
71
81
|
args: [{
|
|
@@ -79,13 +89,14 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImpo
|
|
|
79
89
|
<kendo-autocomplete
|
|
80
90
|
kendoFilterInput
|
|
81
91
|
[data]="data"
|
|
92
|
+
[size]="size"
|
|
82
93
|
[valueField]="valueField"
|
|
83
94
|
[value]="currentFilter?.value">
|
|
84
95
|
</kendo-autocomplete>
|
|
85
96
|
</kendo-grid-filter-wrapper-cell>
|
|
86
97
|
`
|
|
87
98
|
}]
|
|
88
|
-
}], ctorParameters: function () { return [{ type: i1.FilterService }, { type: i2.ColumnComponent }, { type: i3.LocalizationService }]; }, propDecorators: { showOperators: [{
|
|
99
|
+
}], ctorParameters: function () { return [{ type: i1.FilterService }, { type: i2.ColumnComponent }, { type: i3.LocalizationService }, { type: i4.SizingOptionsService }]; }, propDecorators: { showOperators: [{
|
|
89
100
|
type: Input
|
|
90
101
|
}], column: [{
|
|
91
102
|
type: Input
|
|
@@ -7,13 +7,15 @@ import { FilterService } from '../filter.service';
|
|
|
7
7
|
import { LocalizationService } from '@progress/kendo-angular-l10n';
|
|
8
8
|
import { BooleanFilterComponent } from '../boolean-filter.component';
|
|
9
9
|
import { replaceMessagePlaceholder } from '../../utils';
|
|
10
|
+
import { SizingOptionsService } from '../../layout/sizing-options.service';
|
|
10
11
|
import * as i0 from "@angular/core";
|
|
11
12
|
import * as i1 from "../filter.service";
|
|
12
13
|
import * as i2 from "@progress/kendo-angular-l10n";
|
|
13
|
-
import * as i3 from "
|
|
14
|
-
import * as i4 from "
|
|
15
|
-
import * as i5 from "
|
|
16
|
-
import * as i6 from "
|
|
14
|
+
import * as i3 from "../../layout/sizing-options.service";
|
|
15
|
+
import * as i4 from "./filter-cell-wrapper.component";
|
|
16
|
+
import * as i5 from "@progress/kendo-angular-dropdowns";
|
|
17
|
+
import * as i6 from "../filter-input.directive";
|
|
18
|
+
import * as i7 from "../../navigation/focusable.directive";
|
|
17
19
|
/**
|
|
18
20
|
* Represents a Boolean filter-cell component.
|
|
19
21
|
*
|
|
@@ -31,9 +33,17 @@ import * as i6 from "../../navigation/focusable.directive";
|
|
|
31
33
|
* ```
|
|
32
34
|
*/
|
|
33
35
|
export class BooleanFilterCellComponent extends BooleanFilterComponent {
|
|
34
|
-
constructor(filterService, localization, cd) {
|
|
36
|
+
constructor(filterService, localization, cd, sizingService) {
|
|
35
37
|
super(filterService, localization);
|
|
36
38
|
this.cd = cd;
|
|
39
|
+
/**
|
|
40
|
+
* @hidden
|
|
41
|
+
*/
|
|
42
|
+
this.size = 'medium';
|
|
43
|
+
this.subs = sizingService.changes.subscribe((size) => this.size = size);
|
|
44
|
+
}
|
|
45
|
+
ngOnDestroy() {
|
|
46
|
+
this.subs && this.subs.unsubscribe();
|
|
37
47
|
}
|
|
38
48
|
localizationChange() {
|
|
39
49
|
super.localizationChange();
|
|
@@ -48,7 +58,7 @@ export class BooleanFilterCellComponent extends BooleanFilterComponent {
|
|
|
48
58
|
return replaceMessagePlaceholder(localizationMsg, 'columnName', columnName);
|
|
49
59
|
}
|
|
50
60
|
}
|
|
51
|
-
BooleanFilterCellComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: BooleanFilterCellComponent, deps: [{ token: i1.FilterService }, { token: i2.LocalizationService }, { token: i0.ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Component });
|
|
61
|
+
BooleanFilterCellComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: BooleanFilterCellComponent, deps: [{ token: i1.FilterService }, { token: i2.LocalizationService }, { token: i0.ChangeDetectorRef }, { token: i3.SizingOptionsService }], target: i0.ɵɵFactoryTarget.Component });
|
|
52
62
|
BooleanFilterCellComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.11", type: BooleanFilterCellComponent, selector: "kendo-grid-boolean-filter-cell", usesInheritance: true, ngImport: i0, template: `
|
|
53
63
|
<kendo-grid-filter-wrapper-cell
|
|
54
64
|
[column]="column"
|
|
@@ -58,6 +68,7 @@ BooleanFilterCellComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0
|
|
|
58
68
|
<kendo-dropdownlist
|
|
59
69
|
kendoFilterInput
|
|
60
70
|
kendoGridFocusable
|
|
71
|
+
[size]="size"
|
|
61
72
|
[columnLabel]="columnLabel"
|
|
62
73
|
[defaultItem]="defaultItem"
|
|
63
74
|
[data]="items"
|
|
@@ -68,7 +79,7 @@ BooleanFilterCellComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0
|
|
|
68
79
|
[value]="currentFilter?.value">
|
|
69
80
|
</kendo-dropdownlist>
|
|
70
81
|
</kendo-grid-filter-wrapper-cell>
|
|
71
|
-
`, isInline: true, components: [{ type:
|
|
82
|
+
`, isInline: true, components: [{ type: i4.FilterCellWrapperComponent, selector: "kendo-grid-filter-wrapper-cell", inputs: ["showOperators"] }, { type: i5.DropDownListComponent, selector: "kendo-dropdownlist", inputs: ["iconClass", "loading", "data", "value", "textField", "valueField", "popupSettings", "listHeight", "defaultItem", "disabled", "itemDisabled", "readonly", "filterable", "virtual", "ignoreCase", "delay", "valuePrimitive", "tabindex", "tabIndex", "size", "rounded", "fillMode", "id"], outputs: ["valueChange", "filterChange", "selectionChange", "open", "opened", "close", "closed", "focus", "blur"], exportAs: ["kendoDropDownList"] }], directives: [{ type: i6.FilterInputDirective, selector: "[kendoFilterInput]", inputs: ["filterDelay", "columnLabel", "value"] }, { type: i7.FocusableDirective, selector: "[kendoGridFocusable],\n [kendoGridEditCommand],\n [kendoGridRemoveCommand],\n [kendoGridSaveCommand],\n [kendoGridCancelCommand],\n [kendoGridSelectionCheckbox]\n ", inputs: ["kendoGridFocusable"] }] });
|
|
72
83
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: BooleanFilterCellComponent, decorators: [{
|
|
73
84
|
type: Component,
|
|
74
85
|
args: [{
|
|
@@ -82,6 +93,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImpo
|
|
|
82
93
|
<kendo-dropdownlist
|
|
83
94
|
kendoFilterInput
|
|
84
95
|
kendoGridFocusable
|
|
96
|
+
[size]="size"
|
|
85
97
|
[columnLabel]="columnLabel"
|
|
86
98
|
[defaultItem]="defaultItem"
|
|
87
99
|
[data]="items"
|
|
@@ -94,4 +106,4 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImpo
|
|
|
94
106
|
</kendo-grid-filter-wrapper-cell>
|
|
95
107
|
`
|
|
96
108
|
}]
|
|
97
|
-
}], ctorParameters: function () { return [{ type: i1.FilterService }, { type: i2.LocalizationService }, { type: i0.ChangeDetectorRef }]; } });
|
|
109
|
+
}], ctorParameters: function () { return [{ type: i1.FilterService }, { type: i2.LocalizationService }, { type: i0.ChangeDetectorRef }, { type: i3.SizingOptionsService }]; } });
|
|
@@ -7,13 +7,15 @@ import { FilterService } from '../filter.service';
|
|
|
7
7
|
import { LocalizationService } from '@progress/kendo-angular-l10n';
|
|
8
8
|
import { DateFilterComponent } from '../date-filter.component';
|
|
9
9
|
import { replaceMessagePlaceholder } from '../../utils';
|
|
10
|
+
import { SizingOptionsService } from '../../layout/sizing-options.service';
|
|
10
11
|
import * as i0 from "@angular/core";
|
|
11
12
|
import * as i1 from "../filter.service";
|
|
12
13
|
import * as i2 from "@progress/kendo-angular-l10n";
|
|
13
|
-
import * as i3 from "
|
|
14
|
-
import * as i4 from "
|
|
15
|
-
import * as i5 from "
|
|
16
|
-
import * as i6 from "
|
|
14
|
+
import * as i3 from "../../layout/sizing-options.service";
|
|
15
|
+
import * as i4 from "./filter-cell-wrapper.component";
|
|
16
|
+
import * as i5 from "@progress/kendo-angular-dateinputs";
|
|
17
|
+
import * as i6 from "../filter-input.directive";
|
|
18
|
+
import * as i7 from "../../navigation/focusable.directive";
|
|
17
19
|
/**
|
|
18
20
|
* Represents a date-filter cell component.
|
|
19
21
|
*
|
|
@@ -32,7 +34,7 @@ import * as i6 from "../../navigation/focusable.directive";
|
|
|
32
34
|
* ```
|
|
33
35
|
*/
|
|
34
36
|
export class DateFilterCellComponent extends DateFilterComponent {
|
|
35
|
-
constructor(filterService, localization) {
|
|
37
|
+
constructor(filterService, localization, sizingService) {
|
|
36
38
|
super(filterService, localization);
|
|
37
39
|
this.localization = localization;
|
|
38
40
|
/**
|
|
@@ -40,6 +42,10 @@ export class DateFilterCellComponent extends DateFilterComponent {
|
|
|
40
42
|
* @type {boolean}
|
|
41
43
|
*/
|
|
42
44
|
this.showOperators = true;
|
|
45
|
+
this.subs = sizingService.changes.subscribe((size) => this.size = size);
|
|
46
|
+
}
|
|
47
|
+
ngOnDestroy() {
|
|
48
|
+
this.subs && this.subs.unsubscribe();
|
|
43
49
|
}
|
|
44
50
|
/**
|
|
45
51
|
* @hidden
|
|
@@ -56,7 +62,7 @@ export class DateFilterCellComponent extends DateFilterComponent {
|
|
|
56
62
|
return replaceMessagePlaceholder(localizationMsg, 'columnName', columnName);
|
|
57
63
|
}
|
|
58
64
|
}
|
|
59
|
-
DateFilterCellComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: DateFilterCellComponent, deps: [{ token: i1.FilterService }, { token: i2.LocalizationService }], target: i0.ɵɵFactoryTarget.Component });
|
|
65
|
+
DateFilterCellComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: DateFilterCellComponent, deps: [{ token: i1.FilterService }, { token: i2.LocalizationService }, { token: i3.SizingOptionsService }], target: i0.ɵɵFactoryTarget.Component });
|
|
60
66
|
DateFilterCellComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.11", type: DateFilterCellComponent, selector: "kendo-grid-date-filter-cell", inputs: { showOperators: "showOperators" }, usesInheritance: true, ngImport: i0, template: `
|
|
61
67
|
<kendo-grid-filter-wrapper-cell
|
|
62
68
|
[column]="column"
|
|
@@ -71,6 +77,7 @@ DateFilterCellComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0"
|
|
|
71
77
|
[columnLabel]="columnLabel"
|
|
72
78
|
[value]="currentFilter?.value"
|
|
73
79
|
[format]="format"
|
|
80
|
+
[size]="size"
|
|
74
81
|
[formatPlaceholder]="formatPlaceholder"
|
|
75
82
|
[placeholder]="placeholder"
|
|
76
83
|
[activeView]="activeView"
|
|
@@ -87,7 +94,7 @@ DateFilterCellComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0"
|
|
|
87
94
|
</kendo-datepicker-messages>
|
|
88
95
|
</kendo-datepicker>
|
|
89
96
|
</kendo-grid-filter-wrapper-cell>
|
|
90
|
-
`, isInline: true, components: [{ type:
|
|
97
|
+
`, isInline: true, components: [{ type: i4.FilterCellWrapperComponent, selector: "kendo-grid-filter-wrapper-cell", inputs: ["showOperators"] }, { type: i5.DatePickerComponent, selector: "kendo-datepicker", inputs: ["cellTemplate", "monthCellTemplate", "yearCellTemplate", "decadeCellTemplate", "centuryCellTemplate", "weekNumberTemplate", "headerTitleTemplate", "navigationItemTemplate", "activeView", "bottomView", "topView", "calendarType", "animateCalendarNavigation", "disabled", "readonly", "readOnlyInput", "popupSettings", "navigation", "min", "max", "incompleteDateValidation", "focusedDate", "value", "format", "twoDigitYearMax", "formatPlaceholder", "placeholder", "tabindex", "tabIndex", "disabledDates", "title", "rangeValidation", "disabledDatesValidation", "weekNumber", "size", "rounded", "fillMode"], outputs: ["valueChange", "focus", "blur", "open", "close"], exportAs: ["kendo-datepicker"] }, { type: i5.DatePickerCustomMessagesComponent, selector: "kendo-datepicker-messages" }], directives: [{ type: i6.FilterInputDirective, selector: "[kendoFilterInput]", inputs: ["filterDelay", "columnLabel", "value"] }, { type: i7.FocusableDirective, selector: "[kendoGridFocusable],\n [kendoGridEditCommand],\n [kendoGridRemoveCommand],\n [kendoGridSaveCommand],\n [kendoGridCancelCommand],\n [kendoGridSelectionCheckbox]\n ", inputs: ["kendoGridFocusable"] }] });
|
|
91
98
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: DateFilterCellComponent, decorators: [{
|
|
92
99
|
type: Component,
|
|
93
100
|
args: [{
|
|
@@ -106,6 +113,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImpo
|
|
|
106
113
|
[columnLabel]="columnLabel"
|
|
107
114
|
[value]="currentFilter?.value"
|
|
108
115
|
[format]="format"
|
|
116
|
+
[size]="size"
|
|
109
117
|
[formatPlaceholder]="formatPlaceholder"
|
|
110
118
|
[placeholder]="placeholder"
|
|
111
119
|
[activeView]="activeView"
|
|
@@ -124,6 +132,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImpo
|
|
|
124
132
|
</kendo-grid-filter-wrapper-cell>
|
|
125
133
|
`
|
|
126
134
|
}]
|
|
127
|
-
}], ctorParameters: function () { return [{ type: i1.FilterService }, { type: i2.LocalizationService }]; }, propDecorators: { showOperators: [{
|
|
135
|
+
}], ctorParameters: function () { return [{ type: i1.FilterService }, { type: i2.LocalizationService }, { type: i3.SizingOptionsService }]; }, propDecorators: { showOperators: [{
|
|
128
136
|
type: Input
|
|
129
137
|
}] } });
|
|
@@ -6,18 +6,26 @@ import { Component, Input, Output, EventEmitter, HostBinding, ViewChild } from '
|
|
|
6
6
|
import { DropDownListComponent } from '@progress/kendo-angular-dropdowns';
|
|
7
7
|
import { Keys } from '@progress/kendo-angular-common';
|
|
8
8
|
import { LocalizationService } from '@progress/kendo-angular-l10n';
|
|
9
|
+
import { SizingOptionsService } from '../../layout/sizing-options.service';
|
|
9
10
|
import * as i0 from "@angular/core";
|
|
10
11
|
import * as i1 from "@progress/kendo-angular-l10n";
|
|
11
|
-
import * as i2 from "
|
|
12
|
-
import * as i3 from "@angular
|
|
13
|
-
import * as i4 from "
|
|
12
|
+
import * as i2 from "../../layout/sizing-options.service";
|
|
13
|
+
import * as i3 from "@progress/kendo-angular-dropdowns";
|
|
14
|
+
import * as i4 from "@progress/kendo-angular-buttons";
|
|
15
|
+
import * as i5 from "@angular/common";
|
|
16
|
+
import * as i6 from "../../navigation/focusable.directive";
|
|
14
17
|
/**
|
|
15
18
|
* Represents a component which accommodates the filter operators.
|
|
16
19
|
*/
|
|
17
20
|
export class FilterCellOperatorsComponent {
|
|
18
|
-
constructor(localization) {
|
|
21
|
+
constructor(localization, sizing) {
|
|
19
22
|
this.localization = localization;
|
|
23
|
+
this.sizing = sizing;
|
|
20
24
|
this.clearText = 'Clear';
|
|
25
|
+
/**
|
|
26
|
+
* @hidden
|
|
27
|
+
*/
|
|
28
|
+
this.size = 'medium';
|
|
21
29
|
/**
|
|
22
30
|
* The filter operators that will be displayed.
|
|
23
31
|
*/
|
|
@@ -78,15 +86,16 @@ export class FilterCellOperatorsComponent {
|
|
|
78
86
|
}
|
|
79
87
|
}
|
|
80
88
|
ngOnInit() {
|
|
81
|
-
this.
|
|
89
|
+
this.subs = this.localization.changes.subscribe(() => this.clearText = this.localization.get('filterClearButton'));
|
|
90
|
+
this.subs.add(this.sizing.changes.subscribe((size) => this.size = size));
|
|
82
91
|
}
|
|
83
92
|
ngOnDestroy() {
|
|
84
|
-
if (this.
|
|
85
|
-
this.
|
|
93
|
+
if (this.subs) {
|
|
94
|
+
this.subs.unsubscribe();
|
|
86
95
|
}
|
|
87
96
|
}
|
|
88
97
|
}
|
|
89
|
-
FilterCellOperatorsComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: FilterCellOperatorsComponent, deps: [{ token: i1.LocalizationService }], target: i0.ɵɵFactoryTarget.Component });
|
|
98
|
+
FilterCellOperatorsComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: FilterCellOperatorsComponent, deps: [{ token: i1.LocalizationService }, { token: i2.SizingOptionsService }], target: i0.ɵɵFactoryTarget.Component });
|
|
90
99
|
FilterCellOperatorsComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.11", 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: `
|
|
91
100
|
<kendo-dropdownlist
|
|
92
101
|
#dropdown
|
|
@@ -101,18 +110,19 @@ FilterCellOperatorsComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12
|
|
|
101
110
|
textField="text"
|
|
102
111
|
[popupSettings]="{ width: 'auto' }"
|
|
103
112
|
valueField="value"
|
|
113
|
+
[size]="size"
|
|
104
114
|
(keydown)="dropdownKeydown($event)">
|
|
105
115
|
</kendo-dropdownlist>
|
|
106
116
|
<button type="button"
|
|
117
|
+
kendoButton
|
|
107
118
|
kendoGridFocusable
|
|
108
119
|
*ngIf="showButton"
|
|
109
|
-
|
|
120
|
+
icon="filter-clear"
|
|
110
121
|
[title]="clearText"
|
|
122
|
+
[size]="size"
|
|
111
123
|
(click)="clearClick()"
|
|
112
|
-
(keydown)="clearKeydown($event)">
|
|
113
|
-
|
|
114
|
-
</button>
|
|
115
|
-
`, isInline: true, components: [{ type: i2.DropDownListComponent, selector: "kendo-dropdownlist", inputs: ["iconClass", "loading", "data", "value", "textField", "valueField", "popupSettings", "listHeight", "defaultItem", "disabled", "itemDisabled", "readonly", "filterable", "virtual", "ignoreCase", "delay", "valuePrimitive", "tabindex", "tabIndex", "size", "rounded", "fillMode", "id"], outputs: ["valueChange", "filterChange", "selectionChange", "open", "opened", "close", "closed", "focus", "blur"], exportAs: ["kendoDropDownList"] }], directives: [{ type: i3.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i4.FocusableDirective, selector: "[kendoGridFocusable],\n [kendoGridEditCommand],\n [kendoGridRemoveCommand],\n [kendoGridSaveCommand],\n [kendoGridCancelCommand],\n [kendoGridSelectionCheckbox]\n ", inputs: ["kendoGridFocusable"] }] });
|
|
124
|
+
(keydown)="clearKeydown($event)"></button>
|
|
125
|
+
`, isInline: true, components: [{ type: i3.DropDownListComponent, selector: "kendo-dropdownlist", inputs: ["iconClass", "loading", "data", "value", "textField", "valueField", "popupSettings", "listHeight", "defaultItem", "disabled", "itemDisabled", "readonly", "filterable", "virtual", "ignoreCase", "delay", "valuePrimitive", "tabindex", "tabIndex", "size", "rounded", "fillMode", "id"], outputs: ["valueChange", "filterChange", "selectionChange", "open", "opened", "close", "closed", "focus", "blur"], exportAs: ["kendoDropDownList"] }, { type: i4.Button, selector: "button[kendoButton], span[kendoButton], kendo-button", inputs: ["toggleable", "togglable", "selected", "tabIndex", "imageUrl", "iconClass", "icon", "disabled", "size", "rounded", "fillMode", "themeColor", "svgIcon", "role", "primary", "look"], outputs: ["selectedChange", "click"], exportAs: ["kendoButton"] }], directives: [{ type: i5.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i6.FocusableDirective, selector: "[kendoGridFocusable],\n [kendoGridEditCommand],\n [kendoGridRemoveCommand],\n [kendoGridSaveCommand],\n [kendoGridCancelCommand],\n [kendoGridSelectionCheckbox]\n ", inputs: ["kendoGridFocusable"] }] });
|
|
116
126
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: FilterCellOperatorsComponent, decorators: [{
|
|
117
127
|
type: Component,
|
|
118
128
|
args: [{
|
|
@@ -131,20 +141,21 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImpo
|
|
|
131
141
|
textField="text"
|
|
132
142
|
[popupSettings]="{ width: 'auto' }"
|
|
133
143
|
valueField="value"
|
|
144
|
+
[size]="size"
|
|
134
145
|
(keydown)="dropdownKeydown($event)">
|
|
135
146
|
</kendo-dropdownlist>
|
|
136
147
|
<button type="button"
|
|
148
|
+
kendoButton
|
|
137
149
|
kendoGridFocusable
|
|
138
150
|
*ngIf="showButton"
|
|
139
|
-
|
|
151
|
+
icon="filter-clear"
|
|
140
152
|
[title]="clearText"
|
|
153
|
+
[size]="size"
|
|
141
154
|
(click)="clearClick()"
|
|
142
|
-
(keydown)="clearKeydown($event)">
|
|
143
|
-
<span class="k-icon k-button-icon k-i-filter-clear"></span>
|
|
144
|
-
</button>
|
|
155
|
+
(keydown)="clearKeydown($event)"></button>
|
|
145
156
|
`
|
|
146
157
|
}]
|
|
147
|
-
}], ctorParameters: function () { return [{ type: i1.LocalizationService }]; }, propDecorators: { hostClasses: [{
|
|
158
|
+
}], ctorParameters: function () { return [{ type: i1.LocalizationService }, { type: i2.SizingOptionsService }]; }, propDecorators: { hostClasses: [{
|
|
148
159
|
type: HostBinding,
|
|
149
160
|
args: ['class.k-filtercell-operator']
|
|
150
161
|
}], dropdown: [{
|
|
@@ -14,6 +14,7 @@ import * as i2 from "./filter-cell-host.directive";
|
|
|
14
14
|
*/
|
|
15
15
|
export class FilterCellComponent {
|
|
16
16
|
constructor() {
|
|
17
|
+
this.size = 'medium';
|
|
17
18
|
this._templateContext = {};
|
|
18
19
|
}
|
|
19
20
|
get filter() {
|
|
@@ -36,7 +37,7 @@ export class FilterCellComponent {
|
|
|
36
37
|
}
|
|
37
38
|
}
|
|
38
39
|
FilterCellComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: FilterCellComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
39
|
-
FilterCellComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.11", type: FilterCellComponent, selector: "[kendoGridFilterCell]", inputs: { column: "column", filter: "filter" }, ngImport: i0, template: `
|
|
40
|
+
FilterCellComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.11", type: FilterCellComponent, selector: "[kendoGridFilterCell]", inputs: { column: "column", filter: "filter", size: "size" }, ngImport: i0, template: `
|
|
40
41
|
<ng-container *ngIf="isFilterable">
|
|
41
42
|
<ng-container [ngSwitch]="hasTemplate">
|
|
42
43
|
<ng-container *ngSwitchCase="false">
|
|
@@ -77,4 +78,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImpo
|
|
|
77
78
|
type: Input
|
|
78
79
|
}], filter: [{
|
|
79
80
|
type: Input
|
|
81
|
+
}], size: [{
|
|
82
|
+
type: Input
|
|
80
83
|
}] } });
|
|
@@ -7,13 +7,15 @@ import { FilterService } from '../filter.service';
|
|
|
7
7
|
import { LocalizationService } from '@progress/kendo-angular-l10n';
|
|
8
8
|
import { NumericFilterComponent } from '../numeric-filter.component';
|
|
9
9
|
import { replaceMessagePlaceholder } from '../../utils';
|
|
10
|
+
import { SizingOptionsService } from '../../layout/sizing-options.service';
|
|
10
11
|
import * as i0 from "@angular/core";
|
|
11
12
|
import * as i1 from "../filter.service";
|
|
12
13
|
import * as i2 from "@progress/kendo-angular-l10n";
|
|
13
|
-
import * as i3 from "
|
|
14
|
-
import * as i4 from "
|
|
15
|
-
import * as i5 from "
|
|
16
|
-
import * as i6 from "
|
|
14
|
+
import * as i3 from "../../layout/sizing-options.service";
|
|
15
|
+
import * as i4 from "./filter-cell-wrapper.component";
|
|
16
|
+
import * as i5 from "@progress/kendo-angular-inputs";
|
|
17
|
+
import * as i6 from "../../navigation/focusable.directive";
|
|
18
|
+
import * as i7 from "../filter-input.directive";
|
|
17
19
|
/**
|
|
18
20
|
* Represents a numeric filter cell.
|
|
19
21
|
*
|
|
@@ -30,7 +32,7 @@ import * as i6 from "../filter-input.directive";
|
|
|
30
32
|
* ```
|
|
31
33
|
*/
|
|
32
34
|
export class NumericFilterCellComponent extends NumericFilterComponent {
|
|
33
|
-
constructor(filterService, localization) {
|
|
35
|
+
constructor(filterService, localization, sizingService) {
|
|
34
36
|
super(filterService, localization);
|
|
35
37
|
this.localization = localization;
|
|
36
38
|
/**
|
|
@@ -45,6 +47,10 @@ export class NumericFilterCellComponent extends NumericFilterComponent {
|
|
|
45
47
|
* @type {boolean}
|
|
46
48
|
*/
|
|
47
49
|
this.showOperators = true;
|
|
50
|
+
this.subs = sizingService.changes.subscribe((size) => this.size = size);
|
|
51
|
+
}
|
|
52
|
+
ngOnDestroy() {
|
|
53
|
+
this.subs && this.subs.unsubscribe();
|
|
48
54
|
}
|
|
49
55
|
/**
|
|
50
56
|
* @hidden
|
|
@@ -61,7 +67,7 @@ export class NumericFilterCellComponent extends NumericFilterComponent {
|
|
|
61
67
|
return replaceMessagePlaceholder(localizationMsg, 'columnName', columnName);
|
|
62
68
|
}
|
|
63
69
|
}
|
|
64
|
-
NumericFilterCellComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: NumericFilterCellComponent, deps: [{ token: i1.FilterService }, { token: i2.LocalizationService }], target: i0.ɵɵFactoryTarget.Component });
|
|
70
|
+
NumericFilterCellComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: NumericFilterCellComponent, deps: [{ token: i1.FilterService }, { token: i2.LocalizationService }, { token: i3.SizingOptionsService }], target: i0.ɵɵFactoryTarget.Component });
|
|
65
71
|
NumericFilterCellComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.11", type: NumericFilterCellComponent, selector: "kendo-grid-numeric-filter-cell", inputs: { filterDelay: "filterDelay", showOperators: "showOperators" }, usesInheritance: true, ngImport: i0, template: `
|
|
66
72
|
<kendo-grid-filter-wrapper-cell
|
|
67
73
|
[column]="column"
|
|
@@ -82,6 +88,7 @@ NumericFilterCellComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0
|
|
|
82
88
|
[spinners]="spinners"
|
|
83
89
|
[min]="min"
|
|
84
90
|
[max]="max"
|
|
91
|
+
[size]="size"
|
|
85
92
|
[step]="step"
|
|
86
93
|
>
|
|
87
94
|
<kendo-numerictextbox-messages
|
|
@@ -91,7 +98,7 @@ NumericFilterCellComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0
|
|
|
91
98
|
</kendo-numerictextbox-messages>
|
|
92
99
|
</kendo-numerictextbox>
|
|
93
100
|
</kendo-grid-filter-wrapper-cell>
|
|
94
|
-
`, isInline: true, components: [{ type:
|
|
101
|
+
`, isInline: true, components: [{ type: i4.FilterCellWrapperComponent, selector: "kendo-grid-filter-wrapper-cell", inputs: ["showOperators"] }, { type: i5.NumericTextBoxComponent, selector: "kendo-numerictextbox", inputs: ["focusableId", "disabled", "readonly", "title", "autoCorrect", "format", "max", "min", "decimals", "placeholder", "step", "spinners", "rangeValidation", "tabindex", "tabIndex", "changeValueOnScroll", "selectOnFocus", "value", "maxlength", "size", "rounded", "fillMode"], outputs: ["valueChange", "focus", "blur"], exportAs: ["kendoNumericTextBox"] }, { type: i5.NumericTextBoxCustomMessagesComponent, selector: "kendo-numerictextbox-messages" }], directives: [{ type: i6.FocusableDirective, selector: "[kendoGridFocusable],\n [kendoGridEditCommand],\n [kendoGridRemoveCommand],\n [kendoGridSaveCommand],\n [kendoGridCancelCommand],\n [kendoGridSelectionCheckbox]\n ", inputs: ["kendoGridFocusable"] }, { type: i7.FilterInputDirective, selector: "[kendoFilterInput]", inputs: ["filterDelay", "columnLabel", "value"] }] });
|
|
95
102
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: NumericFilterCellComponent, decorators: [{
|
|
96
103
|
type: Component,
|
|
97
104
|
args: [{
|
|
@@ -116,6 +123,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImpo
|
|
|
116
123
|
[spinners]="spinners"
|
|
117
124
|
[min]="min"
|
|
118
125
|
[max]="max"
|
|
126
|
+
[size]="size"
|
|
119
127
|
[step]="step"
|
|
120
128
|
>
|
|
121
129
|
<kendo-numerictextbox-messages
|
|
@@ -127,7 +135,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImpo
|
|
|
127
135
|
</kendo-grid-filter-wrapper-cell>
|
|
128
136
|
`
|
|
129
137
|
}]
|
|
130
|
-
}], ctorParameters: function () { return [{ type: i1.FilterService }, { type: i2.LocalizationService }]; }, propDecorators: { filterDelay: [{
|
|
138
|
+
}], ctorParameters: function () { return [{ type: i1.FilterService }, { type: i2.LocalizationService }, { type: i3.SizingOptionsService }]; }, propDecorators: { filterDelay: [{
|
|
131
139
|
type: Input
|
|
132
140
|
}], showOperators: [{
|
|
133
141
|
type: Input
|
|
@@ -7,14 +7,16 @@ import { FilterService } from '../filter.service';
|
|
|
7
7
|
import { LocalizationService } from '@progress/kendo-angular-l10n';
|
|
8
8
|
import { StringFilterComponent } from "../string-filter.component";
|
|
9
9
|
import { replaceMessagePlaceholder } from '../../utils';
|
|
10
|
+
import { SizingOptionsService } from '../../layout/sizing-options.service';
|
|
10
11
|
import * as i0 from "@angular/core";
|
|
11
12
|
import * as i1 from "../filter.service";
|
|
12
13
|
import * as i2 from "@progress/kendo-angular-l10n";
|
|
13
|
-
import * as i3 from "
|
|
14
|
-
import * as i4 from "
|
|
15
|
-
import * as i5 from "@angular
|
|
14
|
+
import * as i3 from "../../layout/sizing-options.service";
|
|
15
|
+
import * as i4 from "./filter-cell-wrapper.component";
|
|
16
|
+
import * as i5 from "@progress/kendo-angular-inputs";
|
|
16
17
|
import * as i6 from "../../navigation/focusable.directive";
|
|
17
18
|
import * as i7 from "../filter-input.directive";
|
|
19
|
+
import * as i8 from "@angular/forms";
|
|
18
20
|
/**
|
|
19
21
|
* Represents a string-filter cell component
|
|
20
22
|
* ([see example]({% slug filter_row %}#toc-hiding-filter-operators)).
|
|
@@ -34,7 +36,7 @@ import * as i7 from "../filter-input.directive";
|
|
|
34
36
|
* ```
|
|
35
37
|
*/
|
|
36
38
|
export class StringFilterCellComponent extends StringFilterComponent {
|
|
37
|
-
constructor(filterService, localization) {
|
|
39
|
+
constructor(filterService, localization, sizingService) {
|
|
38
40
|
super(filterService, localization);
|
|
39
41
|
/**
|
|
40
42
|
* Determines the delay time (in milliseconds) before the filter value is submitted.
|
|
@@ -48,6 +50,12 @@ export class StringFilterCellComponent extends StringFilterComponent {
|
|
|
48
50
|
* @type {boolean}
|
|
49
51
|
*/
|
|
50
52
|
this.showOperators = true;
|
|
53
|
+
this.subs = sizingService.changes.subscribe((size) => this.size = size);
|
|
54
|
+
}
|
|
55
|
+
ngOnDestroy() {
|
|
56
|
+
if (this.subs) {
|
|
57
|
+
this.subs.unsubscribe();
|
|
58
|
+
}
|
|
51
59
|
}
|
|
52
60
|
/**
|
|
53
61
|
* @hidden
|
|
@@ -58,7 +66,7 @@ export class StringFilterCellComponent extends StringFilterComponent {
|
|
|
58
66
|
return replaceMessagePlaceholder(localizationMsg, 'columnName', columnName);
|
|
59
67
|
}
|
|
60
68
|
}
|
|
61
|
-
StringFilterCellComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: StringFilterCellComponent, deps: [{ token: i1.FilterService }, { token: i2.LocalizationService }], target: i0.ɵɵFactoryTarget.Component });
|
|
69
|
+
StringFilterCellComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: StringFilterCellComponent, deps: [{ token: i1.FilterService }, { token: i2.LocalizationService }, { token: i3.SizingOptionsService }], target: i0.ɵɵFactoryTarget.Component });
|
|
62
70
|
StringFilterCellComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.11", type: StringFilterCellComponent, selector: "kendo-grid-string-filter-cell", inputs: { filterDelay: "filterDelay", showOperators: "showOperators" }, usesInheritance: true, ngImport: i0, template: `
|
|
63
71
|
<kendo-grid-filter-wrapper-cell
|
|
64
72
|
[column]="column"
|
|
@@ -66,15 +74,16 @@ StringFilterCellComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.
|
|
|
66
74
|
[operators]="operators"
|
|
67
75
|
[defaultOperator]="operator"
|
|
68
76
|
[showOperators]="showOperators">
|
|
69
|
-
<
|
|
77
|
+
<kendo-textbox
|
|
70
78
|
kendoTextBox
|
|
79
|
+
[size]="size"
|
|
71
80
|
kendoGridFocusable
|
|
72
81
|
kendoFilterInput
|
|
73
82
|
[columnLabel]="columnLabel"
|
|
74
83
|
[filterDelay]="filterDelay"
|
|
75
|
-
[ngModel]="currentFilter?.value"
|
|
84
|
+
[ngModel]="currentFilter?.value"></kendo-textbox>
|
|
76
85
|
</kendo-grid-filter-wrapper-cell>
|
|
77
|
-
`, isInline: true, components: [{ type:
|
|
86
|
+
`, isInline: true, components: [{ type: i4.FilterCellWrapperComponent, selector: "kendo-grid-filter-wrapper-cell", inputs: ["showOperators"] }, { type: i5.TextBoxComponent, selector: "kendo-textbox", inputs: ["focusableId", "title", "disabled", "readonly", "tabindex", "value", "selectOnFocus", "showSuccessIcon", "showErrorIcon", "clearButton", "successIcon", "errorIcon", "clearButtonIcon", "size", "rounded", "fillMode", "tabIndex", "placeholder", "maxlength"], outputs: ["valueChange", "inputFocus", "inputBlur", "focus", "blur"], exportAs: ["kendoTextBox"] }], directives: [{ type: i6.FocusableDirective, selector: "[kendoGridFocusable],\n [kendoGridEditCommand],\n [kendoGridRemoveCommand],\n [kendoGridSaveCommand],\n [kendoGridCancelCommand],\n [kendoGridSelectionCheckbox]\n ", inputs: ["kendoGridFocusable"] }, { type: i7.FilterInputDirective, selector: "[kendoFilterInput]", inputs: ["filterDelay", "columnLabel", "value"] }, { type: i8.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { type: i8.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }] });
|
|
78
87
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: StringFilterCellComponent, decorators: [{
|
|
79
88
|
type: Component,
|
|
80
89
|
args: [{
|
|
@@ -86,17 +95,18 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImpo
|
|
|
86
95
|
[operators]="operators"
|
|
87
96
|
[defaultOperator]="operator"
|
|
88
97
|
[showOperators]="showOperators">
|
|
89
|
-
<
|
|
98
|
+
<kendo-textbox
|
|
90
99
|
kendoTextBox
|
|
100
|
+
[size]="size"
|
|
91
101
|
kendoGridFocusable
|
|
92
102
|
kendoFilterInput
|
|
93
103
|
[columnLabel]="columnLabel"
|
|
94
104
|
[filterDelay]="filterDelay"
|
|
95
|
-
[ngModel]="currentFilter?.value"
|
|
105
|
+
[ngModel]="currentFilter?.value"></kendo-textbox>
|
|
96
106
|
</kendo-grid-filter-wrapper-cell>
|
|
97
107
|
`
|
|
98
108
|
}]
|
|
99
|
-
}], ctorParameters: function () { return [{ type: i1.FilterService }, { type: i2.LocalizationService }]; }, propDecorators: { filterDelay: [{
|
|
109
|
+
}], ctorParameters: function () { return [{ type: i1.FilterService }, { type: i2.LocalizationService }, { type: i3.SizingOptionsService }]; }, propDecorators: { filterDelay: [{
|
|
100
110
|
type: Input
|
|
101
111
|
}], showOperators: [{
|
|
102
112
|
type: Input
|
|
@@ -58,7 +58,7 @@ FilterRowComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", ver
|
|
|
58
58
|
[logicalRowIndex]="logicalRowIndex"
|
|
59
59
|
[logicalColIndex]="lockedColumnsCount + columnIndex"
|
|
60
60
|
></td>
|
|
61
|
-
`, isInline: true, components: [{ type: i3.FilterCellComponent, selector: "[kendoGridFilterCell]", inputs: ["column", "filter"] }], directives: [{ type: i4.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { type: i4.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i5.LogicalCellDirective, selector: "[kendoGridLogicalCell]", inputs: ["logicalColIndex", "logicalRowIndex", "logicalSlaveCell", "colIndex", "colSpan", "rowSpan", "groupItem", "dataRowIndex", "dataItem", "detailExpandCell", "headerLabelText"] }, { type: i4.NgStyle, selector: "[ngStyle]", inputs: ["ngStyle"] }, { type: i4.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }] });
|
|
61
|
+
`, isInline: true, components: [{ type: i3.FilterCellComponent, selector: "[kendoGridFilterCell]", inputs: ["column", "filter", "size"] }], directives: [{ type: i4.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { type: i4.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i5.LogicalCellDirective, selector: "[kendoGridLogicalCell]", inputs: ["logicalColIndex", "logicalRowIndex", "logicalSlaveCell", "colIndex", "colSpan", "rowSpan", "groupItem", "dataRowIndex", "dataItem", "detailExpandCell", "headerLabelText"] }, { type: i4.NgStyle, selector: "[ngStyle]", inputs: ["ngStyle"] }, { type: i4.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }] });
|
|
62
62
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: FilterRowComponent, decorators: [{
|
|
63
63
|
type: Component,
|
|
64
64
|
args: [{
|