@progress/kendo-angular-grid 21.1.1-develop.2 → 21.2.0-develop.10
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/codemods/utils.js +805 -394
- package/codemods/v20/grid-kendogridgroupbinding.js +8 -11
- package/esm2022/adaptiveness/adaptive-renderer.component.mjs +850 -756
- package/esm2022/aggregates/status-bar.component.mjs +13 -11
- package/esm2022/column-menu/column-chooser-content.component.mjs +133 -123
- package/esm2022/column-menu/column-list.component.mjs +64 -61
- package/esm2022/column-menu/column-menu-autosize-all.component.mjs +12 -11
- package/esm2022/column-menu/column-menu-autosize.component.mjs +12 -11
- package/esm2022/column-menu/column-menu-item.component.mjs +221 -85
- package/esm2022/column-menu/column-menu-position.component.mjs +46 -43
- package/esm2022/column-menu/column-menu.component.mjs +401 -315
- package/esm2022/databinding.directive.mjs +1 -0
- package/esm2022/editing/add-command.directive.mjs +27 -17
- package/esm2022/editing/cancel-command.directive.mjs +27 -17
- package/esm2022/editing/edit-command.directive.mjs +27 -17
- package/esm2022/editing/form/form-formfield.component.mjs +97 -70
- package/esm2022/editing/form/form.component.mjs +77 -61
- package/esm2022/editing/remove-command.directive.mjs +27 -17
- package/esm2022/editing/save-command.directive.mjs +27 -17
- package/esm2022/excel/excel-command.directive.mjs +27 -17
- package/esm2022/filtering/cell/filter-cell-operators.component.mjs +20 -17
- package/esm2022/filtering/cell/filter-cell.component.mjs +35 -33
- package/esm2022/filtering/filter-row.component.mjs +37 -29
- package/esm2022/filtering/menu/boolean-filter-menu.component.mjs +34 -31
- package/esm2022/filtering/menu/date-filter-menu-input.component.mjs +8 -7
- package/esm2022/filtering/menu/date-filter-menu.component.mjs +52 -49
- package/esm2022/filtering/menu/filter-menu-container.component.mjs +115 -92
- package/esm2022/filtering/menu/numeric-filter-menu.component.mjs +50 -47
- package/esm2022/filtering/menu/string-filter-menu.component.mjs +36 -33
- package/esm2022/filtering/multicheckbox-filter.component.mjs +54 -43
- package/esm2022/grid.component.mjs +1579 -1483
- package/esm2022/grouping/group-header.component.mjs +113 -89
- package/esm2022/grouping/group-panel.component.mjs +84 -77
- package/esm2022/index.mjs +1 -0
- package/esm2022/navigation/navigation.service.mjs +4 -4
- package/esm2022/package-metadata.mjs +2 -2
- package/esm2022/pdf/pdf-command.directive.mjs +27 -17
- package/esm2022/rendering/cell.component.mjs +411 -365
- package/esm2022/rendering/common/col-group.component.mjs +25 -15
- package/esm2022/rendering/common/loading.component.mjs +23 -19
- package/esm2022/rendering/details/detail-template.directive.mjs +6 -4
- package/esm2022/rendering/footer/footer.component.mjs +128 -112
- package/esm2022/rendering/header/header.component.mjs +414 -353
- package/esm2022/rendering/list.component.mjs +227 -204
- package/esm2022/rendering/table-body.component.mjs +553 -493
- package/esm2022/rendering/toolbar/toolbar.component.mjs +13 -11
- package/esm2022/rendering/toolbar/tools/ai-assistant/ai-assistant.component.mjs +86 -79
- package/esm2022/rendering/toolbar/tools/filter-toolbar-tool.component.mjs +54 -51
- package/esm2022/rendering/toolbar/tools/group-toolbar-tool.component.mjs +141 -118
- package/esm2022/rendering/toolbar/tools/sort-toolbar-tool.component.mjs +72 -65
- package/fesm2022/progress-kendo-angular-grid.mjs +6462 -5545
- package/filtering/menu/date-filter-menu-input.component.d.ts +1 -2
- package/filtering/menu/filter-menu-container.component.d.ts +2 -2
- package/index.d.ts +1 -0
- package/package.json +25 -26
- package/rendering/details/detail-template.directive.d.ts +6 -4
- package/schematics/ngAdd/index.js +7 -7
- package/codemods/template-transformer/index.js +0 -93
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
import { Component, HostBinding, Input } from '@angular/core';
|
|
6
6
|
import { StatusBarTemplateDirective } from './status-bar-template.directive';
|
|
7
7
|
import { CellSelectionAggregateService } from './selection-aggregate.service';
|
|
8
|
-
import {
|
|
8
|
+
import { NgTemplateOutlet } from '@angular/common';
|
|
9
9
|
import * as i0 from "@angular/core";
|
|
10
10
|
import * as i1 from "./selection-aggregate.service";
|
|
11
11
|
/**
|
|
@@ -29,27 +29,29 @@ export class StatusBarComponent {
|
|
|
29
29
|
return this.aggregateService.aggregates;
|
|
30
30
|
}
|
|
31
31
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: StatusBarComponent, deps: [{ token: i1.CellSelectionAggregateService }], target: i0.ɵɵFactoryTarget.Component });
|
|
32
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "
|
|
33
|
-
|
|
34
|
-
|
|
32
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "18.2.14", type: StatusBarComponent, isStandalone: true, selector: "kendo-grid-status-bar", inputs: { statusBarTemplate: "statusBarTemplate" }, host: { properties: { "class.k-selection-aggregates": "this.hostClasses", "class.k-grid-selection-aggregates": "this.hostClasses", "style.display": "this.isStatusBarTemplate", "attr.aria-live": "this.hostAriaLive" } }, ngImport: i0, template: `
|
|
33
|
+
@if (statusBarTemplate) {
|
|
34
|
+
<ng-template
|
|
35
35
|
[ngTemplateOutlet]="statusBarTemplate?.templateRef"
|
|
36
36
|
[ngTemplateOutletContext]="{ aggregates: aggregates }">
|
|
37
|
-
|
|
38
|
-
|
|
37
|
+
</ng-template>
|
|
38
|
+
}
|
|
39
|
+
`, isInline: true, dependencies: [{ kind: "directive", type: NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }] });
|
|
39
40
|
}
|
|
40
41
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: StatusBarComponent, decorators: [{
|
|
41
42
|
type: Component,
|
|
42
43
|
args: [{
|
|
43
44
|
selector: 'kendo-grid-status-bar',
|
|
44
45
|
template: `
|
|
45
|
-
|
|
46
|
-
|
|
46
|
+
@if (statusBarTemplate) {
|
|
47
|
+
<ng-template
|
|
47
48
|
[ngTemplateOutlet]="statusBarTemplate?.templateRef"
|
|
48
49
|
[ngTemplateOutletContext]="{ aggregates: aggregates }">
|
|
49
|
-
|
|
50
|
-
|
|
50
|
+
</ng-template>
|
|
51
|
+
}
|
|
52
|
+
`,
|
|
51
53
|
standalone: true,
|
|
52
|
-
imports: [
|
|
54
|
+
imports: [NgTemplateOutlet]
|
|
53
55
|
}]
|
|
54
56
|
}], ctorParameters: () => [{ type: i1.CellSelectionAggregateService }], propDecorators: { hostClasses: [{
|
|
55
57
|
type: HostBinding,
|
|
@@ -9,7 +9,7 @@ import { arrowRotateCcwIcon, checkIcon, searchIcon } from '@progress/kendo-svg-i
|
|
|
9
9
|
import { ButtonComponent } from '@progress/kendo-angular-buttons';
|
|
10
10
|
import { ColumnListComponent } from './column-list.component';
|
|
11
11
|
import { TextBoxComponent } from '@progress/kendo-angular-inputs';
|
|
12
|
-
import { NgClass
|
|
12
|
+
import { NgClass } from '@angular/common';
|
|
13
13
|
import { IconWrapperComponent } from '@progress/kendo-angular-icons';
|
|
14
14
|
import { ColumnMenuService } from './column-menu.service';
|
|
15
15
|
import { ContextService } from '../common/provider.service';
|
|
@@ -129,69 +129,74 @@ export class ColumnChooserContentComponent {
|
|
|
129
129
|
}
|
|
130
130
|
}
|
|
131
131
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: ColumnChooserContentComponent, deps: [{ token: i0.ChangeDetectorRef }, { token: i1.ColumnInfoService, optional: true }, { token: i2.ContextService, optional: true }], target: i0.ɵɵFactoryTarget.Component });
|
|
132
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "
|
|
132
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "18.2.14", type: ColumnChooserContentComponent, isStandalone: true, selector: "kendo-grid-column-chooser-content", inputs: { filterable: "filterable", showSelectAll: "showSelectAll", showCheckedCount: "showCheckedCount", allowHideAll: "allowHideAll", autoSync: "autoSync", actionsClass: "actionsClass", closeOnReset: "closeOnReset", columns: "columns", isLast: "isLast", isExpanded: "isExpanded", service: "service" }, outputs: { close: "close" }, viewQueries: [{ propertyName: "resetButton", first: true, predicate: ["resetButton"], descendants: true }, { propertyName: "applyButton", first: true, predicate: ["applyButton"], descendants: true }, { propertyName: "columnList", first: true, predicate: ["columnList"], descendants: true }, { propertyName: "filterInput", first: true, predicate: ["filterInput"], descendants: true }], ngImport: i0, template: `
|
|
133
133
|
<form class="k-filter-menu">
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
134
|
+
<div class="k-filter-menu-container">
|
|
135
|
+
@if (filterable) {
|
|
136
|
+
<kendo-textbox
|
|
137
|
+
#filterInput
|
|
138
|
+
class="k-searchbox"
|
|
139
|
+
(valueChange)="onFilter($event)"
|
|
140
|
+
[kendoEventsOutsideAngular]="{'keydown': onTab}"
|
|
141
|
+
[scope]="this"
|
|
142
|
+
>
|
|
143
|
+
<ng-template kendoPrefixTemplate>
|
|
144
|
+
<kendo-icon-wrapper
|
|
145
|
+
[name]="'search'"
|
|
146
|
+
[svgIcon]="searchIcon">
|
|
147
|
+
</kendo-icon-wrapper>
|
|
148
|
+
</ng-template>
|
|
149
|
+
</kendo-textbox>
|
|
150
|
+
}
|
|
151
|
+
<kendo-grid-columnlist
|
|
152
|
+
#columnList
|
|
153
|
+
[columns]="columns"
|
|
154
|
+
[filteredColumns]="filteredColumns"
|
|
155
|
+
[ariaLabel]="messageFor('columns')"
|
|
156
|
+
[showSelectAll]="showSelectAll"
|
|
157
|
+
[isLast]="isLast"
|
|
158
|
+
[isFiltered]="isFiltered"
|
|
159
|
+
[filterable]="filterable"
|
|
160
|
+
[isExpanded]="isExpanded"
|
|
161
|
+
[service]="service"
|
|
162
|
+
[applyText]="messageFor('columnsApply')"
|
|
163
|
+
[resetText]="messageFor('columnsReset')"
|
|
164
|
+
[autoSync]="autoSync"
|
|
165
|
+
[allowHideAll]="allowHideAll"
|
|
166
|
+
(columnChange)="onChange($event)"
|
|
167
|
+
>
|
|
168
|
+
</kendo-grid-columnlist>
|
|
169
|
+
@if (showCheckedCount) {
|
|
170
|
+
<div class="k-filter-selected-items">
|
|
171
|
+
{{selectedItemsText}}
|
|
172
|
+
</div>
|
|
173
|
+
}
|
|
174
|
+
@if (!autoSync && !actionSheetOpened) {
|
|
175
|
+
<div [ngClass]="actionsClass">
|
|
176
|
+
<button
|
|
177
|
+
#applyButton
|
|
178
|
+
kendoButton
|
|
179
|
+
type="button"
|
|
180
|
+
icon="check"
|
|
181
|
+
[svgIcon]="checkIcon"
|
|
182
|
+
themeColor="primary"
|
|
183
|
+
(click)="applyChanges()"
|
|
184
|
+
(keydown)="onApplyButtonKeydown($event)"
|
|
185
|
+
>{{ applyText }}</button>
|
|
186
|
+
<button
|
|
187
|
+
#resetButton
|
|
188
|
+
kendoButton
|
|
189
|
+
type="button"
|
|
190
|
+
icon="reset"
|
|
191
|
+
(keydown.tab)="columnList.onTab($event)"
|
|
192
|
+
[svgIcon]="arrowRotateCcwIcon"
|
|
193
|
+
(click)="cancelChanges()"
|
|
194
|
+
>{{ resetText }}</button>
|
|
195
|
+
</div>
|
|
196
|
+
}
|
|
197
|
+
</div>
|
|
193
198
|
</form>
|
|
194
|
-
|
|
199
|
+
`, isInline: true, dependencies: [{ kind: "directive", type: NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "component", type: ButtonComponent, selector: "button[kendoButton]", inputs: ["arrowIcon", "toggleable", "togglable", "selected", "tabIndex", "imageUrl", "iconClass", "icon", "disabled", "size", "rounded", "fillMode", "themeColor", "svgIcon", "primary", "look"], outputs: ["selectedChange", "click"], exportAs: ["kendoButton"] }, { kind: "component", type: ColumnListComponent, selector: "kendo-grid-columnlist", inputs: ["columns", "filteredColumns", "autoSync", "showSelectAll", "isFiltered", "ariaLabel", "allowHideAll", "applyText", "resetText", "isLast", "isExpanded", "service", "filterable"], outputs: ["reset", "apply", "columnChange"] }, { kind: "component", type: TextBoxComponent, selector: "kendo-textbox", inputs: ["focusableId", "title", "type", "disabled", "readonly", "tabindex", "value", "selectOnFocus", "showSuccessIcon", "showErrorIcon", "clearButton", "successIcon", "successSvgIcon", "errorIcon", "errorSvgIcon", "clearButtonIcon", "clearButtonSvgIcon", "size", "rounded", "fillMode", "tabIndex", "placeholder", "maxlength", "inputAttributes"], outputs: ["valueChange", "inputFocus", "inputBlur", "focus", "blur"], exportAs: ["kendoTextBox"] }, { kind: "directive", type: PrefixTemplateDirective, selector: "[kendoPrefixTemplate]", inputs: ["showSeparator"] }, { kind: "component", type: IconWrapperComponent, selector: "kendo-icon-wrapper", inputs: ["name", "svgIcon", "innerCssClass", "customFontClass", "size"], exportAs: ["kendoIconWrapper"] }, { kind: "directive", type: EventsOutsideAngularDirective, selector: "[kendoEventsOutsideAngular]", inputs: ["kendoEventsOutsideAngular", "scope"] }] });
|
|
195
200
|
}
|
|
196
201
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: ColumnChooserContentComponent, decorators: [{
|
|
197
202
|
type: Component,
|
|
@@ -199,69 +204,74 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.14", ngImpo
|
|
|
199
204
|
selector: 'kendo-grid-column-chooser-content',
|
|
200
205
|
template: `
|
|
201
206
|
<form class="k-filter-menu">
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
207
|
+
<div class="k-filter-menu-container">
|
|
208
|
+
@if (filterable) {
|
|
209
|
+
<kendo-textbox
|
|
210
|
+
#filterInput
|
|
211
|
+
class="k-searchbox"
|
|
212
|
+
(valueChange)="onFilter($event)"
|
|
213
|
+
[kendoEventsOutsideAngular]="{'keydown': onTab}"
|
|
214
|
+
[scope]="this"
|
|
215
|
+
>
|
|
216
|
+
<ng-template kendoPrefixTemplate>
|
|
217
|
+
<kendo-icon-wrapper
|
|
218
|
+
[name]="'search'"
|
|
219
|
+
[svgIcon]="searchIcon">
|
|
220
|
+
</kendo-icon-wrapper>
|
|
221
|
+
</ng-template>
|
|
222
|
+
</kendo-textbox>
|
|
223
|
+
}
|
|
224
|
+
<kendo-grid-columnlist
|
|
225
|
+
#columnList
|
|
226
|
+
[columns]="columns"
|
|
227
|
+
[filteredColumns]="filteredColumns"
|
|
228
|
+
[ariaLabel]="messageFor('columns')"
|
|
229
|
+
[showSelectAll]="showSelectAll"
|
|
230
|
+
[isLast]="isLast"
|
|
231
|
+
[isFiltered]="isFiltered"
|
|
232
|
+
[filterable]="filterable"
|
|
233
|
+
[isExpanded]="isExpanded"
|
|
234
|
+
[service]="service"
|
|
235
|
+
[applyText]="messageFor('columnsApply')"
|
|
236
|
+
[resetText]="messageFor('columnsReset')"
|
|
237
|
+
[autoSync]="autoSync"
|
|
238
|
+
[allowHideAll]="allowHideAll"
|
|
239
|
+
(columnChange)="onChange($event)"
|
|
240
|
+
>
|
|
241
|
+
</kendo-grid-columnlist>
|
|
242
|
+
@if (showCheckedCount) {
|
|
243
|
+
<div class="k-filter-selected-items">
|
|
244
|
+
{{selectedItemsText}}
|
|
245
|
+
</div>
|
|
246
|
+
}
|
|
247
|
+
@if (!autoSync && !actionSheetOpened) {
|
|
248
|
+
<div [ngClass]="actionsClass">
|
|
249
|
+
<button
|
|
250
|
+
#applyButton
|
|
251
|
+
kendoButton
|
|
252
|
+
type="button"
|
|
253
|
+
icon="check"
|
|
254
|
+
[svgIcon]="checkIcon"
|
|
255
|
+
themeColor="primary"
|
|
256
|
+
(click)="applyChanges()"
|
|
257
|
+
(keydown)="onApplyButtonKeydown($event)"
|
|
258
|
+
>{{ applyText }}</button>
|
|
259
|
+
<button
|
|
260
|
+
#resetButton
|
|
261
|
+
kendoButton
|
|
262
|
+
type="button"
|
|
263
|
+
icon="reset"
|
|
264
|
+
(keydown.tab)="columnList.onTab($event)"
|
|
265
|
+
[svgIcon]="arrowRotateCcwIcon"
|
|
266
|
+
(click)="cancelChanges()"
|
|
267
|
+
>{{ resetText }}</button>
|
|
268
|
+
</div>
|
|
269
|
+
}
|
|
270
|
+
</div>
|
|
261
271
|
</form>
|
|
262
|
-
|
|
272
|
+
`,
|
|
263
273
|
standalone: true,
|
|
264
|
-
imports: [
|
|
274
|
+
imports: [NgClass, ButtonComponent, ColumnListComponent, TextBoxComponent, PrefixTemplateDirective, IconWrapperComponent, EventsOutsideAngularDirective]
|
|
265
275
|
}]
|
|
266
276
|
}], ctorParameters: () => [{ type: i0.ChangeDetectorRef }, { type: i1.ColumnInfoService, decorators: [{
|
|
267
277
|
type: Optional
|
|
@@ -5,9 +5,8 @@
|
|
|
5
5
|
import { Component, HostBinding, Input, ElementRef, NgZone, Renderer2, Output, EventEmitter, ViewChildren, QueryList, Optional, ChangeDetectorRef } from '@angular/core';
|
|
6
6
|
import { ColumnMenuService } from './column-menu.service';
|
|
7
7
|
import { ColumnListKeyboardNavigation } from './column-list-kb-nav.service';
|
|
8
|
-
import { Keys,
|
|
8
|
+
import { Keys, normalizeKeys } from '@progress/kendo-angular-common';
|
|
9
9
|
import { Subscription } from 'rxjs';
|
|
10
|
-
import { NgFor, NgIf } from '@angular/common';
|
|
11
10
|
import { CheckBoxComponent } from '@progress/kendo-angular-inputs';
|
|
12
11
|
import { take } from 'rxjs/operators';
|
|
13
12
|
import { ContextService } from '../common/provider.service';
|
|
@@ -228,7 +227,7 @@ export class ColumnListComponent {
|
|
|
228
227
|
}
|
|
229
228
|
}
|
|
230
229
|
onKeydown = (e) => {
|
|
231
|
-
const code =
|
|
230
|
+
const code = normalizeKeys(e);
|
|
232
231
|
if (code !== Keys.Tab) {
|
|
233
232
|
e.preventDefault();
|
|
234
233
|
}
|
|
@@ -341,40 +340,42 @@ export class ColumnListComponent {
|
|
|
341
340
|
this.listNavigationService.activeIndex = allLabels.indexOf(labelElement);
|
|
342
341
|
}
|
|
343
342
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: ColumnListComponent, deps: [{ token: i0.ElementRef }, { token: i0.NgZone }, { token: i0.Renderer2 }, { token: i1.ColumnListKeyboardNavigation }, { token: i0.ChangeDetectorRef }, { token: i2.ColumnInfoService, optional: true }, { token: i3.AdaptiveGridService, optional: true }, { token: i4.ContextService, optional: true }], target: i0.ɵɵFactoryTarget.Component });
|
|
344
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "
|
|
345
|
-
<div
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
|
|
343
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "18.2.14", type: ColumnListComponent, isStandalone: true, selector: "kendo-grid-columnlist", inputs: { columns: "columns", filteredColumns: "filteredColumns", autoSync: "autoSync", showSelectAll: "showSelectAll", isFiltered: "isFiltered", ariaLabel: "ariaLabel", allowHideAll: "allowHideAll", applyText: "applyText", resetText: "resetText", isLast: "isLast", isExpanded: "isExpanded", service: "service", filterable: "filterable" }, outputs: { reset: "reset", apply: "apply", columnChange: "columnChange" }, host: { properties: { "class.k-column-list-wrapper": "this.className", "class.k-column-list-md": "this.listSizeMd", "class.k-column-list-lg": "this.listSizeLg" } }, providers: [ColumnListKeyboardNavigation], viewQueries: [{ propertyName: "checkboxes", predicate: CheckBoxComponent, descendants: true }], usesOnChanges: true, ngImport: i0, template: `
|
|
344
|
+
<div
|
|
345
|
+
class="k-column-list"
|
|
346
|
+
role="listbox"
|
|
347
|
+
aria-multiselectable="true"
|
|
348
|
+
[attr.aria-label]="ariaLabel">
|
|
349
|
+
@if (showSelectAll) {
|
|
350
350
|
<label
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
|
|
359
|
-
|
|
360
|
-
|
|
361
|
-
<span class="k-checkbox-label">{{ 'Select all' }}</span>
|
|
351
|
+
class='k-column-list-item'
|
|
352
|
+
role="option">
|
|
353
|
+
<kendo-checkbox
|
|
354
|
+
#checkbox
|
|
355
|
+
[inputAttributes]="{'data-index': '0'}"
|
|
356
|
+
[tabindex]="-1"
|
|
357
|
+
[checkedState]="checkedCheckboxesLength === columns.length"
|
|
358
|
+
(checkedStateChange)="onSelectAllCheckboxChange($event)"
|
|
359
|
+
></kendo-checkbox>
|
|
360
|
+
<span class="k-checkbox-label">{{ 'Select all' }}</span>
|
|
362
361
|
</label>
|
|
362
|
+
}
|
|
363
|
+
@for (column of filteredColumns; track column; let index = $index) {
|
|
363
364
|
<label
|
|
364
|
-
|
|
365
|
-
|
|
366
|
-
|
|
367
|
-
|
|
368
|
-
|
|
369
|
-
|
|
370
|
-
|
|
371
|
-
|
|
372
|
-
|
|
373
|
-
|
|
374
|
-
<span class="k-checkbox-label">{{ column.displayTitle }}</span>
|
|
365
|
+
class='k-column-list-item'
|
|
366
|
+
role="option">
|
|
367
|
+
<kendo-checkbox
|
|
368
|
+
#checkbox
|
|
369
|
+
[inputAttributes]="{'data-index': index.toString()}"
|
|
370
|
+
[tabindex]="-1"
|
|
371
|
+
[checkedState]="column.currentlyChecked"
|
|
372
|
+
(checkedStateChange)="onCheckboxChange($event, column, index)"
|
|
373
|
+
></kendo-checkbox>
|
|
374
|
+
<span class="k-checkbox-label">{{ column.displayTitle }}</span>
|
|
375
375
|
</label>
|
|
376
|
+
}
|
|
376
377
|
</div>
|
|
377
|
-
|
|
378
|
+
`, isInline: true, dependencies: [{ kind: "component", type: CheckBoxComponent, selector: "kendo-checkbox", inputs: ["checkedState", "rounded"], outputs: ["checkedStateChange"], exportAs: ["kendoCheckBox"] }] });
|
|
378
379
|
}
|
|
379
380
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: ColumnListComponent, decorators: [{
|
|
380
381
|
type: Component,
|
|
@@ -382,41 +383,43 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.14", ngImpo
|
|
|
382
383
|
selector: 'kendo-grid-columnlist',
|
|
383
384
|
providers: [ColumnListKeyboardNavigation],
|
|
384
385
|
template: `
|
|
385
|
-
<div
|
|
386
|
-
|
|
387
|
-
|
|
388
|
-
|
|
389
|
-
|
|
386
|
+
<div
|
|
387
|
+
class="k-column-list"
|
|
388
|
+
role="listbox"
|
|
389
|
+
aria-multiselectable="true"
|
|
390
|
+
[attr.aria-label]="ariaLabel">
|
|
391
|
+
@if (showSelectAll) {
|
|
390
392
|
<label
|
|
391
|
-
|
|
392
|
-
|
|
393
|
-
|
|
394
|
-
|
|
395
|
-
|
|
396
|
-
|
|
397
|
-
|
|
398
|
-
|
|
399
|
-
|
|
400
|
-
|
|
401
|
-
<span class="k-checkbox-label">{{ 'Select all' }}</span>
|
|
393
|
+
class='k-column-list-item'
|
|
394
|
+
role="option">
|
|
395
|
+
<kendo-checkbox
|
|
396
|
+
#checkbox
|
|
397
|
+
[inputAttributes]="{'data-index': '0'}"
|
|
398
|
+
[tabindex]="-1"
|
|
399
|
+
[checkedState]="checkedCheckboxesLength === columns.length"
|
|
400
|
+
(checkedStateChange)="onSelectAllCheckboxChange($event)"
|
|
401
|
+
></kendo-checkbox>
|
|
402
|
+
<span class="k-checkbox-label">{{ 'Select all' }}</span>
|
|
402
403
|
</label>
|
|
404
|
+
}
|
|
405
|
+
@for (column of filteredColumns; track column; let index = $index) {
|
|
403
406
|
<label
|
|
404
|
-
|
|
405
|
-
|
|
406
|
-
|
|
407
|
-
|
|
408
|
-
|
|
409
|
-
|
|
410
|
-
|
|
411
|
-
|
|
412
|
-
|
|
413
|
-
|
|
414
|
-
<span class="k-checkbox-label">{{ column.displayTitle }}</span>
|
|
407
|
+
class='k-column-list-item'
|
|
408
|
+
role="option">
|
|
409
|
+
<kendo-checkbox
|
|
410
|
+
#checkbox
|
|
411
|
+
[inputAttributes]="{'data-index': index.toString()}"
|
|
412
|
+
[tabindex]="-1"
|
|
413
|
+
[checkedState]="column.currentlyChecked"
|
|
414
|
+
(checkedStateChange)="onCheckboxChange($event, column, index)"
|
|
415
|
+
></kendo-checkbox>
|
|
416
|
+
<span class="k-checkbox-label">{{ column.displayTitle }}</span>
|
|
415
417
|
</label>
|
|
418
|
+
}
|
|
416
419
|
</div>
|
|
417
|
-
|
|
420
|
+
`,
|
|
418
421
|
standalone: true,
|
|
419
|
-
imports: [
|
|
422
|
+
imports: [CheckBoxComponent]
|
|
420
423
|
}]
|
|
421
424
|
}], ctorParameters: () => [{ type: i0.ElementRef }, { type: i0.NgZone }, { type: i0.Renderer2 }, { type: i1.ColumnListKeyboardNavigation }, { type: i0.ChangeDetectorRef }, { type: i2.ColumnInfoService, decorators: [{
|
|
422
425
|
type: Optional
|
|
@@ -9,7 +9,6 @@ import { ContextService } from '../common/provider.service';
|
|
|
9
9
|
import { ColumnMenuItemBase } from './column-menu-item-base';
|
|
10
10
|
import { autoSizeColumn } from './utils';
|
|
11
11
|
import { ColumnMenuItemComponent } from './column-menu-item.component';
|
|
12
|
-
import { NgIf } from '@angular/common';
|
|
13
12
|
import * as i0 from "@angular/core";
|
|
14
13
|
import * as i1 from "../common/provider.service";
|
|
15
14
|
/**
|
|
@@ -59,30 +58,32 @@ export class ColumnMenuAutoSizeAllColumnsComponent extends ColumnMenuItemBase {
|
|
|
59
58
|
autoSizeColumn(this.ctx.grid, this.service);
|
|
60
59
|
}
|
|
61
60
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: ColumnMenuAutoSizeAllColumnsComponent, deps: [{ token: i1.ContextService }], target: i0.ɵɵFactoryTarget.Component });
|
|
62
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "
|
|
63
|
-
|
|
64
|
-
|
|
61
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "18.2.14", type: ColumnMenuAutoSizeAllColumnsComponent, isStandalone: true, selector: "kendo-grid-columnmenu-autosize-all-columns", usesInheritance: true, ngImport: i0, template: `
|
|
62
|
+
@if (!this.ctx.grid.virtualColumns) {
|
|
63
|
+
<kendo-grid-columnmenu-item
|
|
65
64
|
[text]="ctx.localization.get('autosizeAllColumns')"
|
|
66
65
|
icon="display-inline-flex"
|
|
67
66
|
[svgIcon]="displayInlineFlexIcon"
|
|
68
67
|
(itemClick)="autoSizeAllColumns()"
|
|
69
|
-
|
|
70
|
-
|
|
68
|
+
></kendo-grid-columnmenu-item>
|
|
69
|
+
}
|
|
70
|
+
`, isInline: true, dependencies: [{ kind: "component", type: ColumnMenuItemComponent, selector: "kendo-grid-columnmenu-item", inputs: ["icon", "svgIcon", "indicatorIcon", "text", "selected", "disabled", "expanded", "focused", "service", "column"], outputs: ["itemClick", "expand", "collapse"] }] });
|
|
71
71
|
}
|
|
72
72
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: ColumnMenuAutoSizeAllColumnsComponent, decorators: [{
|
|
73
73
|
type: Component,
|
|
74
74
|
args: [{
|
|
75
75
|
selector: 'kendo-grid-columnmenu-autosize-all-columns',
|
|
76
76
|
template: `
|
|
77
|
-
|
|
78
|
-
|
|
77
|
+
@if (!this.ctx.grid.virtualColumns) {
|
|
78
|
+
<kendo-grid-columnmenu-item
|
|
79
79
|
[text]="ctx.localization.get('autosizeAllColumns')"
|
|
80
80
|
icon="display-inline-flex"
|
|
81
81
|
[svgIcon]="displayInlineFlexIcon"
|
|
82
82
|
(itemClick)="autoSizeAllColumns()"
|
|
83
|
-
|
|
84
|
-
|
|
83
|
+
></kendo-grid-columnmenu-item>
|
|
84
|
+
}
|
|
85
|
+
`,
|
|
85
86
|
standalone: true,
|
|
86
|
-
imports: [
|
|
87
|
+
imports: [ColumnMenuItemComponent]
|
|
87
88
|
}]
|
|
88
89
|
}], ctorParameters: () => [{ type: i1.ContextService }] });
|