@progress/kendo-angular-grid 19.0.0-develop.3 → 19.0.0-develop.30
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/adaptiveness/adaptive-mode.d.ts +12 -0
- package/adaptiveness/adaptive-renderer.component.d.ts +84 -0
- package/codemods/template-transformer/index.js +94 -0
- package/codemods/utils.js +553 -0
- package/codemods/v19/grid-kendogridgroupbinding.js +51 -0
- package/column-menu/column-chooser.component.d.ts +4 -0
- package/column-menu/column-list.component.d.ts +10 -3
- package/column-menu/column-menu-item.component.d.ts +48 -3
- package/column-menu/column-menu-item.directive.d.ts +5 -2
- package/column-menu/column-menu.component.d.ts +4 -2
- package/columns/column-base.d.ts +5 -0
- package/columns/span-column.component.d.ts +2 -2
- package/common/adaptiveness.service.d.ts +50 -0
- package/common/single-popup.service.d.ts +3 -1
- package/common/toolbar-tool-base.directive.d.ts +26 -0
- package/directives.d.ts +12 -5
- package/dragdrop/drag-hint.service.d.ts +3 -2
- package/editing/add-command-tool.directive.d.ts +7 -6
- package/editing/cancel-command-tool.directive.d.ts +38 -0
- package/editing/edit-command-tool.directive.d.ts +38 -0
- package/editing/edit.service.d.ts +1 -1
- package/editing/remove-command-tool.directive.d.ts +39 -0
- package/editing/save-command-tool.directive.d.ts +38 -0
- package/editing/toolbar-editing-tool-base.directive.d.ts +29 -0
- package/editing-directives/editing-directive-base.d.ts +4 -1
- package/editing-directives/external-editing.directive.d.ts +3 -1
- package/esm2022/adaptiveness/adaptive-mode.mjs +5 -0
- package/esm2022/adaptiveness/adaptive-renderer.component.mjs +1108 -0
- package/esm2022/column-menu/column-chooser.component.mjs +13 -11
- package/esm2022/column-menu/column-list.component.mjs +51 -8
- package/esm2022/column-menu/column-menu-autosize-all.component.mjs +1 -1
- package/esm2022/column-menu/column-menu-autosize.component.mjs +1 -1
- package/esm2022/column-menu/column-menu-chooser.component.mjs +1 -1
- package/esm2022/column-menu/column-menu-container.component.mjs +1 -1
- package/esm2022/column-menu/column-menu-filter.component.mjs +1 -1
- package/esm2022/column-menu/column-menu-item.component.mjs +123 -12
- package/esm2022/column-menu/column-menu-item.directive.mjs +14 -5
- package/esm2022/column-menu/column-menu-lock.component.mjs +1 -1
- package/esm2022/column-menu/column-menu-position.component.mjs +1 -1
- package/esm2022/column-menu/column-menu-sort.component.mjs +1 -1
- package/esm2022/column-menu/column-menu-stick.component.mjs +1 -1
- package/esm2022/column-menu/column-menu.component.mjs +68 -44
- package/esm2022/column-resizing/column-handle.directive.mjs +2 -2
- package/esm2022/columns/column-base.mjs +9 -0
- package/esm2022/columns/columns-container.mjs +1 -1
- package/esm2022/columns/span-column.component.mjs +9 -9
- package/esm2022/common/adaptiveness.service.mjs +72 -0
- package/esm2022/common/single-popup.service.mjs +9 -3
- package/esm2022/common/toolbar-tool-base.directive.mjs +81 -0
- package/esm2022/directives.mjs +18 -3
- package/esm2022/dragdrop/drag-hint.service.mjs +7 -4
- package/esm2022/editing/add-command-tool.directive.mjs +12 -15
- package/esm2022/editing/cancel-command-tool.directive.mjs +64 -0
- package/esm2022/editing/edit-command-tool.directive.mjs +59 -0
- package/esm2022/editing/form/form-formfield.component.mjs +1 -1
- package/esm2022/editing/remove-command-tool.directive.mjs +60 -0
- package/esm2022/editing/remove-command.directive.mjs +1 -0
- package/esm2022/editing/save-command-tool.directive.mjs +64 -0
- package/esm2022/editing/toolbar-editing-tool-base.directive.mjs +94 -0
- package/esm2022/editing-directives/editing-directive-base.mjs +5 -2
- package/esm2022/editing-directives/external-editing.directive.mjs +28 -14
- package/esm2022/excel/excel-command-tool.directive.mjs +12 -17
- package/esm2022/filtering/cell/autocomplete-filter-cell.component.mjs +1 -1
- package/esm2022/filtering/cell/boolean-filter-cell.component.mjs +1 -1
- package/esm2022/filtering/cell/date-filter-cell.component.mjs +1 -1
- package/esm2022/filtering/cell/filter-cell-operators.component.mjs +1 -1
- package/esm2022/filtering/filter-input.directive.mjs +14 -2
- package/esm2022/filtering/menu/boolean-filter-menu.component.mjs +4 -2
- package/esm2022/filtering/menu/date-filter-menu-input.component.mjs +5 -1
- package/esm2022/filtering/menu/date-filter-menu.component.mjs +7 -1
- package/esm2022/filtering/menu/filter-menu-container.component.mjs +21 -10
- package/esm2022/filtering/menu/filter-menu-input-wrapper.component.mjs +27 -5
- package/esm2022/filtering/menu/filter-menu.component.mjs +44 -29
- package/esm2022/filtering/menu/numeric-filter-menu-input.component.mjs +2 -0
- package/esm2022/filtering/menu/numeric-filter-menu.component.mjs +7 -1
- package/esm2022/filtering/menu/string-filter-menu-input.component.mjs +2 -0
- package/esm2022/filtering/menu/string-filter-menu.component.mjs +11 -2
- package/esm2022/grid.component.mjs +358 -82
- package/esm2022/grid.module.mjs +114 -101
- package/esm2022/index.mjs +10 -1
- package/esm2022/localization/messages.mjs +104 -2
- package/esm2022/navigation/navigation.service.mjs +1 -1
- package/esm2022/navigation/toolbar-tool-name.mjs +17 -0
- package/esm2022/package-metadata.mjs +2 -2
- package/esm2022/pdf/pdf-command-tool.directive.mjs +12 -15
- package/esm2022/rendering/cell.component.mjs +4 -4
- package/esm2022/rendering/header/header.component.mjs +1 -1
- package/esm2022/rendering/list.component.mjs +1 -1
- package/esm2022/rendering/table-body.component.mjs +11 -3
- package/esm2022/rendering/toolbar/tools/column-chooser-tool.directive.mjs +203 -0
- package/esm2022/rendering/toolbar/tools/filter-command-tool.directive.mjs +61 -34
- package/esm2022/rendering/toolbar/tools/filter-tool-wrapper.component.mjs +29 -8
- package/esm2022/rendering/toolbar/tools/filter-toolbar-tool.component.mjs +73 -8
- package/esm2022/rendering/toolbar/tools/sort-command-tool.directive.mjs +46 -20
- package/esm2022/rendering/toolbar/tools/sort-toolbar-tool.component.mjs +24 -8
- package/esm2022/row-reordering/row-reorder.service.mjs +15 -0
- package/esm2022/selection/selection.service.mjs +11 -0
- package/esm2022/state-management/grid-state.models.mjs +26 -0
- package/esm2022/state-management/redo-command-tool.mjs +66 -0
- package/esm2022/state-management/undo-command-tool.mjs +66 -0
- package/esm2022/state-management/undo-redo.directive.mjs +178 -0
- package/esm2022/state-management/undo-redo.service.mjs +22 -0
- package/esm2022/state-management/undo-redo.stack.mjs +232 -0
- package/esm2022/utils.mjs +13 -13
- package/excel/excel-command-tool.directive.d.ts +5 -5
- package/fesm2022/progress-kendo-angular-grid.mjs +4672 -1798
- package/filtering/filter-input.directive.d.ts +1 -0
- package/filtering/menu/date-filter-menu-input.component.d.ts +1 -1
- package/filtering/menu/filter-menu-container.component.d.ts +14 -4
- package/filtering/menu/filter-menu-input-wrapper.component.d.ts +8 -3
- package/filtering/menu/filter-menu.component.d.ts +6 -3
- package/filtering/menu/numeric-filter-menu-input.component.d.ts +1 -1
- package/filtering/menu/string-filter-menu-input.component.d.ts +1 -1
- package/filtering/menu/string-filter-menu.component.d.ts +1 -0
- package/grid.component.d.ts +86 -33
- package/grid.module.d.ts +107 -100
- package/index.d.ts +9 -1
- package/localization/messages.d.ts +70 -2
- package/navigation/toolbar-tool-name.d.ts +17 -0
- package/package.json +36 -20
- package/pdf/pdf-command-tool.directive.d.ts +6 -5
- package/rendering/cell.component.d.ts +1 -1
- package/{column-menu → rendering/toolbar/tools}/column-chooser-tool.directive.d.ts +17 -6
- package/rendering/toolbar/tools/filter-command-tool.directive.d.ts +9 -1
- package/rendering/toolbar/tools/filter-tool-wrapper.component.d.ts +6 -5
- package/rendering/toolbar/tools/filter-toolbar-tool.component.d.ts +11 -2
- package/rendering/toolbar/tools/sort-command-tool.directive.d.ts +9 -1
- package/rendering/toolbar/tools/sort-toolbar-tool.component.d.ts +5 -1
- package/row-reordering/row-reorder.service.d.ts +2 -0
- package/schematics/ngAdd/index.js +4 -4
- package/selection/selection.service.d.ts +1 -0
- package/state-management/grid-state.models.d.ts +58 -0
- package/state-management/redo-command-tool.d.ts +38 -0
- package/state-management/undo-command-tool.d.ts +38 -0
- package/state-management/undo-redo.directive.d.ts +51 -0
- package/state-management/undo-redo.service.d.ts +19 -0
- package/state-management/undo-redo.stack.d.ts +104 -0
- package/utils.d.ts +11 -5
- package/esm2022/column-menu/column-chooser-tool.directive.mjs +0 -172
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
* Licensed under commercial license. See LICENSE.md in the project root for more information
|
|
4
4
|
*-------------------------------------------------------------------------------------------*/
|
|
5
5
|
import { NavigationService } from './../../navigation/navigation.service';
|
|
6
|
-
import { ChangeDetectorRef, Component, ElementRef, Input, Optional, Renderer2, TemplateRef, ViewChild } from '@angular/core';
|
|
6
|
+
import { ChangeDetectorRef, Component, ElementRef, Input, NgZone, Optional, Renderer2, TemplateRef, ViewChild } from '@angular/core';
|
|
7
7
|
import { FilterService } from "../filter.service";
|
|
8
8
|
import { ColumnComponent } from '../../columns/column.component';
|
|
9
9
|
import { SinglePopupService } from '../../common/single-popup.service';
|
|
@@ -14,12 +14,14 @@ import { ContextService } from '../../common/provider.service';
|
|
|
14
14
|
import { IdService } from '../../common/id.service';
|
|
15
15
|
import { FilterMenuContainerComponent } from './filter-menu-container.component';
|
|
16
16
|
import { IconWrapperComponent } from '@progress/kendo-angular-icons';
|
|
17
|
+
import { AdaptiveGridService } from '../../common/adaptiveness.service';
|
|
17
18
|
import * as i0 from "@angular/core";
|
|
18
19
|
import * as i1 from "../filter.service";
|
|
19
20
|
import * as i2 from "../../common/single-popup.service";
|
|
20
21
|
import * as i3 from "../../common/provider.service";
|
|
21
22
|
import * as i4 from "./../../navigation/navigation.service";
|
|
22
|
-
import * as i5 from "../../common/
|
|
23
|
+
import * as i5 from "../../common/adaptiveness.service";
|
|
24
|
+
import * as i6 from "../../common/id.service";
|
|
23
25
|
let id = 0;
|
|
24
26
|
const getId = (gridId) => `${gridId}-filter-menu-${id++}`;
|
|
25
27
|
/**
|
|
@@ -32,6 +34,8 @@ export class FilterMenuComponent {
|
|
|
32
34
|
navigationService;
|
|
33
35
|
renderer;
|
|
34
36
|
cdr;
|
|
37
|
+
adaptiveGridService;
|
|
38
|
+
zone;
|
|
35
39
|
idService;
|
|
36
40
|
filterIcon = filterIcon;
|
|
37
41
|
/**
|
|
@@ -49,13 +53,15 @@ export class FilterMenuComponent {
|
|
|
49
53
|
tabIndex = '-1';
|
|
50
54
|
popupRef;
|
|
51
55
|
popupSubs;
|
|
52
|
-
constructor(filterService, popupService, ctx, navigationService, renderer, cdr, idService) {
|
|
56
|
+
constructor(filterService, popupService, ctx, navigationService, renderer, cdr, adaptiveGridService, zone, idService) {
|
|
53
57
|
this.filterService = filterService;
|
|
54
58
|
this.popupService = popupService;
|
|
55
59
|
this.ctx = ctx;
|
|
56
60
|
this.navigationService = navigationService;
|
|
57
61
|
this.renderer = renderer;
|
|
58
62
|
this.cdr = cdr;
|
|
63
|
+
this.adaptiveGridService = adaptiveGridService;
|
|
64
|
+
this.zone = zone;
|
|
59
65
|
this.idService = idService;
|
|
60
66
|
}
|
|
61
67
|
ngOnDestroy() {
|
|
@@ -79,32 +85,41 @@ export class FilterMenuComponent {
|
|
|
79
85
|
return this.navigationService.tableEnabled;
|
|
80
86
|
}
|
|
81
87
|
toggle(anchor, template) {
|
|
82
|
-
this.
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
this.popupSubs?.unsubscribe();
|
|
88
|
-
this.popupSubs = this.popupRef.popup.instance.anchorViewportLeave.subscribe(() => {
|
|
89
|
-
this.close();
|
|
90
|
-
this.updateAria(ariaRoot);
|
|
91
|
-
});
|
|
92
|
-
this.popupSubs.add(() => this.popupRef.popup.instance.close.subscribe(() => {
|
|
93
|
-
this.popupRef = null;
|
|
94
|
-
this.updateAria(ariaRoot);
|
|
95
|
-
}));
|
|
96
|
-
const popupAriaElement = this.popupRef.popupElement.querySelector('.k-grid-filter-popup');
|
|
97
|
-
if (popupAriaElement) {
|
|
98
|
-
const popupId = getId(this.idService?.gridId());
|
|
99
|
-
this.renderer.setAttribute(popupAriaElement, 'id', popupId);
|
|
100
|
-
this.renderer.setAttribute(popupAriaElement, 'role', 'dialog');
|
|
101
|
-
this.renderer.setAttribute(popupAriaElement, 'aria-label', this.filterLabel);
|
|
102
|
-
ariaRoot && this.renderer.setAttribute(ariaRoot, 'aria-controls', popupId);
|
|
103
|
-
ariaRoot && this.renderer.setAttribute(ariaRoot, 'aria-expanded', 'true');
|
|
88
|
+
if (this.ctx.grid?.adaptiveMode === 'auto' && this.adaptiveGridService.windowSize !== 'large') {
|
|
89
|
+
if (!this.ctx.grid.isActionSheetExpanded) {
|
|
90
|
+
this.adaptiveGridService.viewType = 'filterMenu';
|
|
91
|
+
this.adaptiveGridService.column = this.column;
|
|
92
|
+
this.ctx.grid.adaptiveRenderer.actionSheet.toggle(true);
|
|
104
93
|
}
|
|
105
94
|
}
|
|
106
95
|
else {
|
|
107
|
-
this.
|
|
96
|
+
this.popupRef = this.popupService.open(anchor, template, this.popupRef);
|
|
97
|
+
// Needed as changes to 'popupRef' are not reflected
|
|
98
|
+
// automatically when the Popup is closed by clicking outside the anchor
|
|
99
|
+
const ariaRoot = this.isNavigable ? anchor.closest('.k-table-th') : anchor;
|
|
100
|
+
if (this.popupRef) {
|
|
101
|
+
this.popupSubs?.unsubscribe();
|
|
102
|
+
this.popupSubs = this.popupRef.popup.instance.anchorViewportLeave.subscribe(() => {
|
|
103
|
+
this.close();
|
|
104
|
+
this.updateAria(ariaRoot);
|
|
105
|
+
});
|
|
106
|
+
this.popupSubs.add(() => this.popupRef.popup.instance.close.subscribe(() => {
|
|
107
|
+
this.popupRef = null;
|
|
108
|
+
this.updateAria(ariaRoot);
|
|
109
|
+
}));
|
|
110
|
+
const popupAriaElement = this.popupRef.popupElement.querySelector('.k-grid-filter-popup');
|
|
111
|
+
if (popupAriaElement) {
|
|
112
|
+
const popupId = getId(this.idService?.gridId());
|
|
113
|
+
this.renderer.setAttribute(popupAriaElement, 'id', popupId);
|
|
114
|
+
this.renderer.setAttribute(popupAriaElement, 'role', 'dialog');
|
|
115
|
+
this.renderer.setAttribute(popupAriaElement, 'aria-label', this.filterLabel);
|
|
116
|
+
ariaRoot && this.renderer.setAttribute(ariaRoot, 'aria-controls', popupId);
|
|
117
|
+
ariaRoot && this.renderer.setAttribute(ariaRoot, 'aria-expanded', 'true');
|
|
118
|
+
}
|
|
119
|
+
}
|
|
120
|
+
else {
|
|
121
|
+
this.focusRoot();
|
|
122
|
+
}
|
|
108
123
|
}
|
|
109
124
|
return false;
|
|
110
125
|
}
|
|
@@ -126,7 +141,7 @@ export class FilterMenuComponent {
|
|
|
126
141
|
focusRoot() {
|
|
127
142
|
this.isNavigable ? this.navigationService.focusCell(0, this.column.leafIndex) : this.anchor.nativeElement.focus();
|
|
128
143
|
}
|
|
129
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: FilterMenuComponent, deps: [{ token: i1.FilterService }, { token: i2.SinglePopupService }, { token: i3.ContextService }, { token: i4.NavigationService }, { token: i0.Renderer2 }, { token: i0.ChangeDetectorRef }, { token: i5.IdService, optional: true }], target: i0.ɵɵFactoryTarget.Component });
|
|
144
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: FilterMenuComponent, deps: [{ token: i1.FilterService }, { token: i2.SinglePopupService }, { token: i3.ContextService }, { token: i4.NavigationService }, { token: i0.Renderer2 }, { token: i0.ChangeDetectorRef }, { token: i5.AdaptiveGridService }, { token: i0.NgZone }, { token: i6.IdService, optional: true }], target: i0.ɵɵFactoryTarget.Component });
|
|
130
145
|
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.12", type: FilterMenuComponent, isStandalone: true, selector: "kendo-grid-filter-menu", inputs: { column: "column", filter: "filter", tabIndex: "tabIndex" }, viewQueries: [{ propertyName: "anchor", first: true, predicate: ["anchor"], descendants: true, static: true }, { propertyName: "template", first: true, predicate: ["template"], descendants: true, read: TemplateRef, static: true }], ngImport: i0, template: `
|
|
131
146
|
<a #anchor
|
|
132
147
|
class="k-grid-filter-menu k-grid-header-menu"
|
|
@@ -183,9 +198,9 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImpo
|
|
|
183
198
|
</ng-template>
|
|
184
199
|
`,
|
|
185
200
|
standalone: true,
|
|
186
|
-
imports: [IconWrapperComponent, FilterMenuContainerComponent]
|
|
201
|
+
imports: [IconWrapperComponent, FilterMenuContainerComponent],
|
|
187
202
|
}]
|
|
188
|
-
}], ctorParameters: function () { return [{ type: i1.FilterService }, { type: i2.SinglePopupService }, { type: i3.ContextService }, { type: i4.NavigationService }, { type: i0.Renderer2 }, { type: i0.ChangeDetectorRef }, { type: i5.IdService, decorators: [{
|
|
203
|
+
}], ctorParameters: function () { return [{ type: i1.FilterService }, { type: i2.SinglePopupService }, { type: i3.ContextService }, { type: i4.NavigationService }, { type: i0.Renderer2 }, { type: i0.ChangeDetectorRef }, { type: i5.AdaptiveGridService }, { type: i0.NgZone }, { type: i6.IdService, decorators: [{
|
|
189
204
|
type: Optional
|
|
190
205
|
}] }]; }, propDecorators: { column: [{
|
|
191
206
|
type: Input
|
|
@@ -94,6 +94,7 @@ export class NumericFilterMenuInputComponent {
|
|
|
94
94
|
[columnLabel]="columnLabel"
|
|
95
95
|
[filterDelay]="filterDelay"
|
|
96
96
|
[autoCorrect]="true"
|
|
97
|
+
[size]="ctx.grid?.isActionSheetExpanded ? 'large' : null"
|
|
97
98
|
[value]="currentFilter?.value"
|
|
98
99
|
[format]="format"
|
|
99
100
|
[decimals]="decimals"
|
|
@@ -129,6 +130,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImpo
|
|
|
129
130
|
[columnLabel]="columnLabel"
|
|
130
131
|
[filterDelay]="filterDelay"
|
|
131
132
|
[autoCorrect]="true"
|
|
133
|
+
[size]="ctx.grid?.isActionSheetExpanded ? 'large' : null"
|
|
132
134
|
[value]="currentFilter?.value"
|
|
133
135
|
[format]="format"
|
|
134
136
|
[decimals]="decimals"
|
|
@@ -116,6 +116,9 @@ export class NumericFilterMenuComponent extends NumericFilterComponent {
|
|
|
116
116
|
<kendo-dropdownlist
|
|
117
117
|
*ngIf="extra"
|
|
118
118
|
kendoFilterMenuDropDown
|
|
119
|
+
[adaptiveTitle]="ctx.localization.get('adaptiveFilterOperatorsTitle')"
|
|
120
|
+
[adaptiveMode]="ctx.grid?.adaptiveMode"
|
|
121
|
+
[size]="ctx.grid?.isActionSheetExpanded ? 'large' : null"
|
|
119
122
|
[filterMenuDropDownLabel]="filterMenuDropDownLabel"
|
|
120
123
|
class="k-filter-and"
|
|
121
124
|
[data]="logicOperators"
|
|
@@ -141,7 +144,7 @@ export class NumericFilterMenuComponent extends NumericFilterComponent {
|
|
|
141
144
|
[menuTabbingService]="menuTabbingService"
|
|
142
145
|
[placeholder]="extraPlaceholder">
|
|
143
146
|
</kendo-grid-numeric-filter-menu-input>
|
|
144
|
-
`, isInline: true, dependencies: [{ kind: "component", type: NumericFilterMenuInputComponent, selector: "kendo-grid-numeric-filter-menu-input", inputs: ["operators", "column", "filter", "operator", "currentFilter", "filterService", "filterDelay", "isFirstDropDown", "menuTabbingService", "step", "min", "max", "spinners", "decimals", "format", "placeholder"] }, { kind: "directive", type: NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "component", type: DropDownListComponent, selector: "kendo-dropdownlist", inputs: ["customIconClass", "showStickyHeader", "icon", "svgIcon", "loading", "data", "value", "textField", "valueField", "adaptiveMode", "
|
|
147
|
+
`, isInline: true, dependencies: [{ kind: "component", type: NumericFilterMenuInputComponent, selector: "kendo-grid-numeric-filter-menu-input", inputs: ["operators", "column", "filter", "operator", "currentFilter", "filterService", "filterDelay", "isFirstDropDown", "menuTabbingService", "step", "min", "max", "spinners", "decimals", "format", "placeholder"] }, { kind: "directive", type: NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "component", type: DropDownListComponent, selector: "kendo-dropdownlist", inputs: ["customIconClass", "showStickyHeader", "icon", "svgIcon", "loading", "data", "value", "textField", "valueField", "adaptiveMode", "adaptiveTitle", "adaptiveSubtitle", "popupSettings", "listHeight", "defaultItem", "disabled", "itemDisabled", "readonly", "filterable", "virtual", "ignoreCase", "delay", "valuePrimitive", "tabindex", "tabIndex", "size", "rounded", "fillMode", "leftRightArrowsNavigation", "id"], outputs: ["valueChange", "filterChange", "selectionChange", "open", "opened", "close", "closed", "focus", "blur"], exportAs: ["kendoDropDownList"] }, { kind: "directive", type: FilterMenuDropDownListDirective, selector: "[kendoFilterMenuDropDown]", inputs: ["filterMenuDropDownLabel"] }] });
|
|
145
148
|
}
|
|
146
149
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: NumericFilterMenuComponent, decorators: [{
|
|
147
150
|
type: Component,
|
|
@@ -168,6 +171,9 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImpo
|
|
|
168
171
|
<kendo-dropdownlist
|
|
169
172
|
*ngIf="extra"
|
|
170
173
|
kendoFilterMenuDropDown
|
|
174
|
+
[adaptiveTitle]="ctx.localization.get('adaptiveFilterOperatorsTitle')"
|
|
175
|
+
[adaptiveMode]="ctx.grid?.adaptiveMode"
|
|
176
|
+
[size]="ctx.grid?.isActionSheetExpanded ? 'large' : null"
|
|
171
177
|
[filterMenuDropDownLabel]="filterMenuDropDownLabel"
|
|
172
178
|
class="k-filter-and"
|
|
173
179
|
[data]="logicOperators"
|
|
@@ -51,6 +51,7 @@ export class StringFilterMenuInputComponent {
|
|
|
51
51
|
<kendo-textbox
|
|
52
52
|
kendoFilterInput
|
|
53
53
|
[columnLabel]="columnLabel"
|
|
54
|
+
[size]="ctx.grid?.isActionSheetExpanded ? 'large' : null"
|
|
54
55
|
[filterDelay]="0"
|
|
55
56
|
[placeholder]="placeholder"
|
|
56
57
|
[ngModel]="currentFilter?.value ?? null">
|
|
@@ -75,6 +76,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImpo
|
|
|
75
76
|
<kendo-textbox
|
|
76
77
|
kendoFilterInput
|
|
77
78
|
[columnLabel]="columnLabel"
|
|
79
|
+
[size]="ctx.grid?.isActionSheetExpanded ? 'large' : null"
|
|
78
80
|
[filterDelay]="0"
|
|
79
81
|
[placeholder]="placeholder"
|
|
80
82
|
[ngModel]="currentFilter?.value ?? null">
|
|
@@ -32,7 +32,8 @@ import * as i1 from "../../common/provider.service";
|
|
|
32
32
|
* ```
|
|
33
33
|
*/
|
|
34
34
|
export class StringFilterMenuComponent extends StringFilterComponent {
|
|
35
|
-
|
|
35
|
+
ctx;
|
|
36
|
+
logicOperators = [];
|
|
36
37
|
/**
|
|
37
38
|
* @hidden
|
|
38
39
|
*/
|
|
@@ -69,6 +70,8 @@ export class StringFilterMenuComponent extends StringFilterComponent {
|
|
|
69
70
|
menuTabbingService;
|
|
70
71
|
constructor(ctx) {
|
|
71
72
|
super(null, ctx);
|
|
73
|
+
this.ctx = ctx;
|
|
74
|
+
this.logicOperators = logicOperators(this.ctx.localization);
|
|
72
75
|
}
|
|
73
76
|
get firstFilter() {
|
|
74
77
|
return setFilter(0, this.filter, (this.column || {}).field, this.operator);
|
|
@@ -103,6 +106,9 @@ export class StringFilterMenuComponent extends StringFilterComponent {
|
|
|
103
106
|
<kendo-dropdownlist
|
|
104
107
|
*ngIf="extra"
|
|
105
108
|
kendoFilterMenuDropDown
|
|
109
|
+
[adaptiveTitle]="ctx.localization.get('adaptiveFilterOperatorsTitle')"
|
|
110
|
+
[adaptiveMode]="ctx.grid?.adaptiveMode"
|
|
111
|
+
[size]="ctx.grid?.isActionSheetExpanded ? 'large' : null"
|
|
106
112
|
[filterMenuDropDownLabel]="filterMenuDropDownLabel"
|
|
107
113
|
class="k-filter-and"
|
|
108
114
|
[data]="logicOperators"
|
|
@@ -121,7 +127,7 @@ export class StringFilterMenuComponent extends StringFilterComponent {
|
|
|
121
127
|
[placeholder]="extraPlaceholder"
|
|
122
128
|
[menuTabbingService]="menuTabbingService">
|
|
123
129
|
</kendo-grid-string-filter-menu-input>
|
|
124
|
-
`, isInline: true, dependencies: [{ kind: "component", type: StringFilterMenuInputComponent, selector: "kendo-grid-string-filter-menu-input", inputs: ["operators", "column", "filter", "operator", "currentFilter", "filterService", "isFirstDropDown", "menuTabbingService", "placeholder"] }, { kind: "directive", type: NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "component", type: DropDownListComponent, selector: "kendo-dropdownlist", inputs: ["customIconClass", "showStickyHeader", "icon", "svgIcon", "loading", "data", "value", "textField", "valueField", "adaptiveMode", "
|
|
130
|
+
`, isInline: true, dependencies: [{ kind: "component", type: StringFilterMenuInputComponent, selector: "kendo-grid-string-filter-menu-input", inputs: ["operators", "column", "filter", "operator", "currentFilter", "filterService", "isFirstDropDown", "menuTabbingService", "placeholder"] }, { kind: "directive", type: NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "component", type: DropDownListComponent, selector: "kendo-dropdownlist", inputs: ["customIconClass", "showStickyHeader", "icon", "svgIcon", "loading", "data", "value", "textField", "valueField", "adaptiveMode", "adaptiveTitle", "adaptiveSubtitle", "popupSettings", "listHeight", "defaultItem", "disabled", "itemDisabled", "readonly", "filterable", "virtual", "ignoreCase", "delay", "valuePrimitive", "tabindex", "tabIndex", "size", "rounded", "fillMode", "leftRightArrowsNavigation", "id"], outputs: ["valueChange", "filterChange", "selectionChange", "open", "opened", "close", "closed", "focus", "blur"], exportAs: ["kendoDropDownList"] }, { kind: "directive", type: FilterMenuDropDownListDirective, selector: "[kendoFilterMenuDropDown]", inputs: ["filterMenuDropDownLabel"] }] });
|
|
125
131
|
}
|
|
126
132
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: StringFilterMenuComponent, decorators: [{
|
|
127
133
|
type: Component,
|
|
@@ -141,6 +147,9 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImpo
|
|
|
141
147
|
<kendo-dropdownlist
|
|
142
148
|
*ngIf="extra"
|
|
143
149
|
kendoFilterMenuDropDown
|
|
150
|
+
[adaptiveTitle]="ctx.localization.get('adaptiveFilterOperatorsTitle')"
|
|
151
|
+
[adaptiveMode]="ctx.grid?.adaptiveMode"
|
|
152
|
+
[size]="ctx.grid?.isActionSheetExpanded ? 'large' : null"
|
|
144
153
|
[filterMenuDropDownLabel]="filterMenuDropDownLabel"
|
|
145
154
|
class="k-filter-and"
|
|
146
155
|
[data]="logicOperators"
|