@progress/kendo-angular-treelist 21.1.1-develop.1 → 21.2.0-develop.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/esm2022/column-menu/column-list.component.mjs +75 -69
- 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 +137 -57
- package/esm2022/column-menu/column-menu.component.mjs +145 -122
- package/esm2022/editing/add-command.directive.mjs +27 -17
- package/esm2022/editing/base-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/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 +26 -23
- package/esm2022/filtering/menu/boolean-filter-menu.component.mjs +32 -29
- package/esm2022/filtering/menu/date-filter-menu.component.mjs +52 -49
- package/esm2022/filtering/menu/filter-menu-container.component.mjs +75 -73
- package/esm2022/filtering/menu/numeric-filter-menu.component.mjs +50 -47
- package/esm2022/filtering/menu/string-filter-menu.component.mjs +36 -33
- package/esm2022/package-metadata.mjs +2 -2
- package/esm2022/pdf/pdf-command.directive.mjs +27 -17
- package/esm2022/rendering/cell.component.mjs +167 -145
- package/esm2022/rendering/common/col-group.component.mjs +10 -8
- package/esm2022/rendering/header/header.component.mjs +371 -331
- package/esm2022/rendering/list.component.mjs +185 -158
- package/esm2022/rendering/table-body.component.mjs +199 -169
- package/esm2022/rendering/toolbar/toolbar.component.mjs +13 -11
- package/esm2022/treelist.component.mjs +893 -849
- package/fesm2022/progress-kendo-angular-treelist.mjs +2746 -2356
- package/package.json +18 -18
- package/schematics/ngAdd/index.js +7 -3
|
@@ -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 { Component, Input, TemplateRef, HostBinding, ChangeDetectorRef, Optional, isDevMode, ElementRef, ViewChild, Renderer2 } from '@angular/core';
|
|
6
|
-
import { NgClass, NgTemplateOutlet
|
|
6
|
+
import { NgClass, NgTemplateOutlet } from '@angular/common';
|
|
7
7
|
import { moreVerticalIcon } from '@progress/kendo-svg-icons';
|
|
8
8
|
import { IconWrapperComponent } from '@progress/kendo-angular-icons';
|
|
9
9
|
import { SinglePopupService } from '../common/single-popup.service';
|
|
@@ -262,77 +262,89 @@ export class ColumnMenuComponent {
|
|
|
262
262
|
this.isNavigable ? this.navigationService.focusCell(0, this.column.leafIndex) : this.anchor.nativeElement.focus();
|
|
263
263
|
}
|
|
264
264
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: ColumnMenuComponent, deps: [{ token: i1.NavigationService }, { token: i2.SinglePopupService }, { token: i3.ContextService }, { token: i4.ColumnMenuService }, { token: i0.ChangeDetectorRef }, { token: i0.Renderer2 }, { token: i5.IdService, optional: true }], target: i0.ɵɵFactoryTarget.Component });
|
|
265
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "
|
|
265
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "18.2.14", type: ColumnMenuComponent, isStandalone: true, selector: "kendo-treelist-column-menu", inputs: { standalone: "standalone", column: "column", settings: "settings", sort: "sort", filter: "filter", sortable: "sortable", columnMenuTemplate: "columnMenuTemplate", tabIndex: "tabIndex" }, host: { properties: { "class.k-grid-column-menu-standalone": "this.standalone" } }, providers: [
|
|
266
266
|
ColumnMenuService,
|
|
267
267
|
MenuTabbingService
|
|
268
268
|
], viewQueries: [{ propertyName: "anchor", first: true, predicate: ["anchor"], descendants: true, static: true }, { propertyName: "template", first: true, predicate: ["template"], descendants: true, read: TemplateRef, static: true }, { propertyName: "defaultTemplate", first: true, predicate: ["defaultTemplate"], descendants: true, read: TemplateRef, static: true }], usesOnChanges: true, ngImport: i0, template: `
|
|
269
269
|
<a #anchor
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
270
|
+
class="k-grid-column-menu k-grid-header-menu"
|
|
271
|
+
[ngClass]="{ 'k-active': isActive }"
|
|
272
|
+
(click)="toggle($event, anchor, template)"
|
|
273
|
+
(keydown.enter)="$event.stopImmediatePropagation()"
|
|
274
|
+
href="#"
|
|
275
|
+
[tabindex]="tabIndex"
|
|
276
|
+
[attr.title]="columnMenuTitle"
|
|
277
|
+
[attr.aria-expanded]="isNavigable ? undefined : false"
|
|
278
|
+
[attr.aria-haspopup]="isNavigable ? undefined : 'dialog'">
|
|
279
|
+
<kendo-icon-wrapper
|
|
280
|
+
name="more-vertical"
|
|
281
|
+
[svgIcon]="moreVerticalIcon"></kendo-icon-wrapper>
|
|
282
282
|
</a>
|
|
283
283
|
<ng-template #template>
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
284
|
+
<kendo-treelist-columnmenu-container
|
|
285
|
+
(keydown.escape)="close(true)"
|
|
286
|
+
(keydown.enter)="$event.stopImmediatePropagation()">
|
|
287
|
+
<ng-container
|
|
288
|
+
[ngTemplateOutlet]="column.columnMenuTemplateRef || columnMenuTemplate || defaultTemplate"
|
|
289
|
+
[ngTemplateOutletContext]="{ service: service, column: column }">
|
|
290
|
+
</ng-container>
|
|
291
|
+
</kendo-treelist-columnmenu-container>
|
|
292
292
|
</ng-template>
|
|
293
293
|
<ng-template #defaultTemplate>
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
294
|
+
<kendo-treelist-columnmenu-container
|
|
295
|
+
(keydown.escape)="close(true)"
|
|
296
|
+
(keydown.enter)="$event.stopImmediatePropagation()">
|
|
297
|
+
@if (hasSort) {
|
|
298
|
+
<kendo-treelist-columnmenu-sort #sortItem [kendoTreeListColumnMenuItem]="sortItem" [service]="service">
|
|
299
|
+
</kendo-treelist-columnmenu-sort>
|
|
300
|
+
}
|
|
301
|
+
@if (hasLock) {
|
|
302
|
+
<kendo-treelist-columnmenu-lock #lockItem [kendoTreeListColumnMenuItem]="lockItem" [service]="service">
|
|
303
|
+
</kendo-treelist-columnmenu-lock>
|
|
304
|
+
}
|
|
305
|
+
@if (hasColumnChooser || hasAutoSizeColumn || hasAutoSizeAllColumns) {
|
|
306
|
+
<span [style.borderColor]="'rgba(0, 0, 0, 0.08)'" class="k-separator"></span>
|
|
307
|
+
}
|
|
308
|
+
@if (hasColumnChooser) {
|
|
309
|
+
<kendo-treelist-columnmenu-chooser
|
|
310
|
+
#chooserItem
|
|
311
|
+
[kendoTreeListColumnMenuItem]="chooserItem"
|
|
312
|
+
[service]="service"
|
|
313
|
+
[expanded]="expandedColumns">
|
|
314
|
+
</kendo-treelist-columnmenu-chooser>
|
|
315
|
+
}
|
|
316
|
+
@if (hasAutoSizeColumn) {
|
|
317
|
+
<kendo-treelist-columnmenu-autosize-column
|
|
318
|
+
#autoSizeColumnItem
|
|
319
|
+
[service]="service"
|
|
320
|
+
[kendoTreeListColumnMenuItem]="autoSizeColumnItem"
|
|
321
|
+
[column]="column"
|
|
315
322
|
>
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
323
|
+
</kendo-treelist-columnmenu-autosize-column>
|
|
324
|
+
}
|
|
325
|
+
|
|
326
|
+
@if (hasAutoSizeAllColumns) {
|
|
327
|
+
<kendo-treelist-columnmenu-autosize-all-columns
|
|
328
|
+
#autoSizeAllColumnsItem
|
|
329
|
+
[service]="service"
|
|
330
|
+
[kendoTreeListColumnMenuItem]="autoSizeAllColumnsItem"
|
|
323
331
|
>
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
332
|
+
</kendo-treelist-columnmenu-autosize-all-columns>
|
|
333
|
+
}
|
|
334
|
+
@if (hasColumnChooser || hasAutoSizeColumn || hasAutoSizeAllColumns) {
|
|
335
|
+
<span [style.borderColor]="'rgba(0, 0, 0, 0.08)'" class="k-separator"></span>
|
|
336
|
+
}
|
|
337
|
+
@if (hasFilter) {
|
|
338
|
+
<kendo-treelist-columnmenu-filter
|
|
339
|
+
#filterItem
|
|
340
|
+
[kendoTreeListColumnMenuItem]="filterItem"
|
|
341
|
+
[service]="service"
|
|
342
|
+
[expanded]="expandedFilter">
|
|
343
|
+
</kendo-treelist-columnmenu-filter>
|
|
344
|
+
}
|
|
345
|
+
</kendo-treelist-columnmenu-container>
|
|
334
346
|
</ng-template>
|
|
335
|
-
|
|
347
|
+
`, isInline: true, dependencies: [{ kind: "directive", type: NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "component", type: IconWrapperComponent, selector: "kendo-icon-wrapper", inputs: ["name", "svgIcon", "innerCssClass", "customFontClass", "size"], exportAs: ["kendoIconWrapper"] }, { kind: "directive", type: NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "component", type: ColumnMenuSortComponent, selector: "kendo-treelist-columnmenu-sort" }, { kind: "component", type: ColumnMenuLockComponent, selector: "kendo-treelist-columnmenu-lock" }, { kind: "component", type: ColumnMenuChooserComponent, selector: "kendo-treelist-columnmenu-chooser", inputs: ["expanded", "isLast"], outputs: ["expand", "collapse"] }, { kind: "component", type: ColumnMenuFilterComponent, selector: "kendo-treelist-columnmenu-filter", inputs: ["expanded", "isLast"], outputs: ["expand", "collapse"] }, { kind: "component", type: ColumnMenuContainerComponent, selector: "kendo-treelist-columnmenu-container" }, { kind: "component", type: ColumnMenuAutoSizeAllColumnsComponent, selector: "kendo-treelist-columnmenu-autosize-all-columns" }, { kind: "component", type: ColumnMenuAutoSizeColumnComponent, selector: "kendo-treelist-columnmenu-autosize-column", inputs: ["column"] }, { kind: "directive", type: ColumnMenuItemDirective, selector: "[kendoTreeListColumnMenuItem]", inputs: ["kendoTreeListColumnMenuItem"] }] });
|
|
336
348
|
}
|
|
337
349
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: ColumnMenuComponent, decorators: [{
|
|
338
350
|
type: Component,
|
|
@@ -344,75 +356,86 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.14", ngImpo
|
|
|
344
356
|
selector: 'kendo-treelist-column-menu',
|
|
345
357
|
template: `
|
|
346
358
|
<a #anchor
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
|
|
359
|
+
class="k-grid-column-menu k-grid-header-menu"
|
|
360
|
+
[ngClass]="{ 'k-active': isActive }"
|
|
361
|
+
(click)="toggle($event, anchor, template)"
|
|
362
|
+
(keydown.enter)="$event.stopImmediatePropagation()"
|
|
363
|
+
href="#"
|
|
364
|
+
[tabindex]="tabIndex"
|
|
365
|
+
[attr.title]="columnMenuTitle"
|
|
366
|
+
[attr.aria-expanded]="isNavigable ? undefined : false"
|
|
367
|
+
[attr.aria-haspopup]="isNavigable ? undefined : 'dialog'">
|
|
368
|
+
<kendo-icon-wrapper
|
|
369
|
+
name="more-vertical"
|
|
370
|
+
[svgIcon]="moreVerticalIcon"></kendo-icon-wrapper>
|
|
359
371
|
</a>
|
|
360
372
|
<ng-template #template>
|
|
361
|
-
|
|
362
|
-
|
|
363
|
-
|
|
364
|
-
|
|
365
|
-
|
|
366
|
-
|
|
367
|
-
|
|
368
|
-
|
|
373
|
+
<kendo-treelist-columnmenu-container
|
|
374
|
+
(keydown.escape)="close(true)"
|
|
375
|
+
(keydown.enter)="$event.stopImmediatePropagation()">
|
|
376
|
+
<ng-container
|
|
377
|
+
[ngTemplateOutlet]="column.columnMenuTemplateRef || columnMenuTemplate || defaultTemplate"
|
|
378
|
+
[ngTemplateOutletContext]="{ service: service, column: column }">
|
|
379
|
+
</ng-container>
|
|
380
|
+
</kendo-treelist-columnmenu-container>
|
|
369
381
|
</ng-template>
|
|
370
382
|
<ng-template #defaultTemplate>
|
|
371
|
-
|
|
372
|
-
|
|
373
|
-
|
|
374
|
-
|
|
375
|
-
|
|
376
|
-
|
|
377
|
-
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
|
|
381
|
-
|
|
382
|
-
|
|
383
|
-
|
|
384
|
-
|
|
385
|
-
|
|
386
|
-
|
|
387
|
-
|
|
388
|
-
|
|
389
|
-
|
|
390
|
-
|
|
391
|
-
|
|
383
|
+
<kendo-treelist-columnmenu-container
|
|
384
|
+
(keydown.escape)="close(true)"
|
|
385
|
+
(keydown.enter)="$event.stopImmediatePropagation()">
|
|
386
|
+
@if (hasSort) {
|
|
387
|
+
<kendo-treelist-columnmenu-sort #sortItem [kendoTreeListColumnMenuItem]="sortItem" [service]="service">
|
|
388
|
+
</kendo-treelist-columnmenu-sort>
|
|
389
|
+
}
|
|
390
|
+
@if (hasLock) {
|
|
391
|
+
<kendo-treelist-columnmenu-lock #lockItem [kendoTreeListColumnMenuItem]="lockItem" [service]="service">
|
|
392
|
+
</kendo-treelist-columnmenu-lock>
|
|
393
|
+
}
|
|
394
|
+
@if (hasColumnChooser || hasAutoSizeColumn || hasAutoSizeAllColumns) {
|
|
395
|
+
<span [style.borderColor]="'rgba(0, 0, 0, 0.08)'" class="k-separator"></span>
|
|
396
|
+
}
|
|
397
|
+
@if (hasColumnChooser) {
|
|
398
|
+
<kendo-treelist-columnmenu-chooser
|
|
399
|
+
#chooserItem
|
|
400
|
+
[kendoTreeListColumnMenuItem]="chooserItem"
|
|
401
|
+
[service]="service"
|
|
402
|
+
[expanded]="expandedColumns">
|
|
403
|
+
</kendo-treelist-columnmenu-chooser>
|
|
404
|
+
}
|
|
405
|
+
@if (hasAutoSizeColumn) {
|
|
406
|
+
<kendo-treelist-columnmenu-autosize-column
|
|
407
|
+
#autoSizeColumnItem
|
|
408
|
+
[service]="service"
|
|
409
|
+
[kendoTreeListColumnMenuItem]="autoSizeColumnItem"
|
|
410
|
+
[column]="column"
|
|
392
411
|
>
|
|
393
|
-
|
|
394
|
-
|
|
395
|
-
|
|
396
|
-
|
|
397
|
-
|
|
398
|
-
|
|
399
|
-
|
|
412
|
+
</kendo-treelist-columnmenu-autosize-column>
|
|
413
|
+
}
|
|
414
|
+
|
|
415
|
+
@if (hasAutoSizeAllColumns) {
|
|
416
|
+
<kendo-treelist-columnmenu-autosize-all-columns
|
|
417
|
+
#autoSizeAllColumnsItem
|
|
418
|
+
[service]="service"
|
|
419
|
+
[kendoTreeListColumnMenuItem]="autoSizeAllColumnsItem"
|
|
400
420
|
>
|
|
401
|
-
|
|
402
|
-
|
|
403
|
-
|
|
404
|
-
|
|
405
|
-
|
|
406
|
-
|
|
407
|
-
|
|
408
|
-
|
|
409
|
-
|
|
410
|
-
|
|
421
|
+
</kendo-treelist-columnmenu-autosize-all-columns>
|
|
422
|
+
}
|
|
423
|
+
@if (hasColumnChooser || hasAutoSizeColumn || hasAutoSizeAllColumns) {
|
|
424
|
+
<span [style.borderColor]="'rgba(0, 0, 0, 0.08)'" class="k-separator"></span>
|
|
425
|
+
}
|
|
426
|
+
@if (hasFilter) {
|
|
427
|
+
<kendo-treelist-columnmenu-filter
|
|
428
|
+
#filterItem
|
|
429
|
+
[kendoTreeListColumnMenuItem]="filterItem"
|
|
430
|
+
[service]="service"
|
|
431
|
+
[expanded]="expandedFilter">
|
|
432
|
+
</kendo-treelist-columnmenu-filter>
|
|
433
|
+
}
|
|
434
|
+
</kendo-treelist-columnmenu-container>
|
|
411
435
|
</ng-template>
|
|
412
|
-
|
|
436
|
+
`,
|
|
413
437
|
standalone: true,
|
|
414
|
-
imports: [NgClass, IconWrapperComponent, NgTemplateOutlet,
|
|
415
|
-
ColumnMenuFilterComponent, ColumnMenuContainerComponent, ColumnMenuAutoSizeAllColumnsComponent, ColumnMenuAutoSizeColumnComponent, ColumnMenuItemDirective]
|
|
438
|
+
imports: [NgClass, IconWrapperComponent, NgTemplateOutlet, ColumnMenuSortComponent, ColumnMenuLockComponent, ColumnMenuChooserComponent, ColumnMenuFilterComponent, ColumnMenuContainerComponent, ColumnMenuAutoSizeAllColumnsComponent, ColumnMenuAutoSizeColumnComponent, ColumnMenuItemDirective]
|
|
416
439
|
}]
|
|
417
440
|
}], ctorParameters: () => [{ type: i1.NavigationService }, { type: i2.SinglePopupService }, { type: i3.ContextService }, { type: i4.ColumnMenuService }, { type: i0.ChangeDetectorRef }, { type: i0.Renderer2 }, { type: i5.IdService, decorators: [{
|
|
418
441
|
type: Optional
|
|
@@ -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 { Component, ElementRef, Renderer2, NgZone, HostBinding, Input } from '@angular/core';
|
|
6
|
-
import {
|
|
6
|
+
import { NgClass } from '@angular/common';
|
|
7
7
|
import { LocalizationService } from '@progress/kendo-angular-l10n';
|
|
8
8
|
import { IconWrapperComponent } from '@progress/kendo-angular-icons';
|
|
9
9
|
import { EditService } from './edit.service';
|
|
@@ -45,37 +45,47 @@ export class AddCommandDirective extends BaseCommandDirective {
|
|
|
45
45
|
this.editService.beginAdd(this.dataItem);
|
|
46
46
|
}
|
|
47
47
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: AddCommandDirective, deps: [{ token: i1.EditService }, { token: i0.ElementRef }, { token: i0.Renderer2 }, { token: i2.LocalizationService }, { token: i0.NgZone }], target: i0.ɵɵFactoryTarget.Component });
|
|
48
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "
|
|
49
|
-
|
|
50
|
-
|
|
48
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "18.2.14", type: AddCommandDirective, isStandalone: true, selector: "[kendoTreeListAddCommand]", inputs: { cellContext: ["kendoTreeListAddCommand", "cellContext"] }, host: { properties: { "class.k-grid-add-command": "this.commandClass" } }, usesInheritance: true, ngImport: i0, template: `
|
|
49
|
+
@if (icon || svgIcon) {
|
|
50
|
+
<kendo-icon-wrapper
|
|
51
51
|
innerCssClass="k-button-icon"
|
|
52
52
|
[name]="icon"
|
|
53
|
-
|
|
54
|
-
|
|
53
|
+
[svgIcon]="svgIcon"></kendo-icon-wrapper>
|
|
54
|
+
}
|
|
55
|
+
@if (imageUrl) {
|
|
56
|
+
<span class="k-button-icon k-icon">
|
|
55
57
|
<img [src]="imageUrl" class="k-image" role="presentation" />
|
|
56
|
-
|
|
57
|
-
|
|
58
|
+
</span>
|
|
59
|
+
}
|
|
60
|
+
@if (iconClass) {
|
|
61
|
+
<span class="k-button-icon" [ngClass]="iconClass"></span>
|
|
62
|
+
}
|
|
58
63
|
<span class="k-button-text"><ng-content></ng-content></span>
|
|
59
|
-
|
|
64
|
+
`, isInline: true, dependencies: [{ kind: "component", type: IconWrapperComponent, selector: "kendo-icon-wrapper", inputs: ["name", "svgIcon", "innerCssClass", "customFontClass", "size"], exportAs: ["kendoIconWrapper"] }, { kind: "directive", type: NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }] });
|
|
60
65
|
}
|
|
61
66
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: AddCommandDirective, decorators: [{
|
|
62
67
|
type: Component,
|
|
63
68
|
args: [{
|
|
64
69
|
selector: '[kendoTreeListAddCommand]',
|
|
65
70
|
template: `
|
|
66
|
-
|
|
67
|
-
|
|
71
|
+
@if (icon || svgIcon) {
|
|
72
|
+
<kendo-icon-wrapper
|
|
68
73
|
innerCssClass="k-button-icon"
|
|
69
74
|
[name]="icon"
|
|
70
|
-
|
|
71
|
-
|
|
75
|
+
[svgIcon]="svgIcon"></kendo-icon-wrapper>
|
|
76
|
+
}
|
|
77
|
+
@if (imageUrl) {
|
|
78
|
+
<span class="k-button-icon k-icon">
|
|
72
79
|
<img [src]="imageUrl" class="k-image" role="presentation" />
|
|
73
|
-
|
|
74
|
-
|
|
80
|
+
</span>
|
|
81
|
+
}
|
|
82
|
+
@if (iconClass) {
|
|
83
|
+
<span class="k-button-icon" [ngClass]="iconClass"></span>
|
|
84
|
+
}
|
|
75
85
|
<span class="k-button-text"><ng-content></ng-content></span>
|
|
76
|
-
|
|
86
|
+
`,
|
|
77
87
|
standalone: true,
|
|
78
|
-
imports: [
|
|
88
|
+
imports: [IconWrapperComponent, NgClass]
|
|
79
89
|
}]
|
|
80
90
|
}], ctorParameters: () => [{ type: i1.EditService }, { type: i0.ElementRef }, { type: i0.Renderer2 }, { type: i2.LocalizationService }, { type: i0.NgZone }], propDecorators: { cellContext: [{
|
|
81
91
|
type: Input,
|
|
@@ -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 { HostListener, HostBinding, ElementRef, Renderer2, NgZone, Component } from '@angular/core';
|
|
6
|
-
import {
|
|
6
|
+
import { NgClass } from '@angular/common';
|
|
7
7
|
import { Button } from '@progress/kendo-angular-buttons';
|
|
8
8
|
import { LocalizationService } from '@progress/kendo-angular-l10n';
|
|
9
9
|
import { IconWrapperComponent } from '@progress/kendo-angular-icons';
|
|
@@ -44,37 +44,47 @@ export class BaseCommandDirective extends Button {
|
|
|
44
44
|
this.editService = editService;
|
|
45
45
|
}
|
|
46
46
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: BaseCommandDirective, deps: [{ token: i1.EditService }, { token: i0.ElementRef }, { token: i0.Renderer2 }, { token: i2.LocalizationService }, { token: i0.NgZone }], target: i0.ɵɵFactoryTarget.Component });
|
|
47
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "
|
|
48
|
-
|
|
49
|
-
|
|
47
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "18.2.14", type: BaseCommandDirective, isStandalone: true, selector: "[kendoTreeListBaseCommand]", host: { listeners: { "click": "clickHandler($event)" }, properties: { "style.display": "this.visible" } }, usesInheritance: true, ngImport: i0, template: `
|
|
48
|
+
@if (icon || svgIcon) {
|
|
49
|
+
<kendo-icon-wrapper
|
|
50
50
|
innerCssClass="k-button-icon"
|
|
51
51
|
[name]="icon"
|
|
52
|
-
|
|
53
|
-
|
|
52
|
+
[svgIcon]="svgIcon"></kendo-icon-wrapper>
|
|
53
|
+
}
|
|
54
|
+
@if (imageUrl) {
|
|
55
|
+
<span class="k-button-icon k-icon">
|
|
54
56
|
<img [src]="imageUrl" class="k-image" role="presentation" />
|
|
55
|
-
|
|
56
|
-
|
|
57
|
+
</span>
|
|
58
|
+
}
|
|
59
|
+
@if (iconClass) {
|
|
60
|
+
<span class="k-button-icon" [ngClass]="iconClass"></span>
|
|
61
|
+
}
|
|
57
62
|
<span class="k-button-text"><ng-content></ng-content></span>
|
|
58
|
-
|
|
63
|
+
`, isInline: true, dependencies: [{ kind: "component", type: IconWrapperComponent, selector: "kendo-icon-wrapper", inputs: ["name", "svgIcon", "innerCssClass", "customFontClass", "size"], exportAs: ["kendoIconWrapper"] }, { kind: "directive", type: NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }] });
|
|
59
64
|
}
|
|
60
65
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: BaseCommandDirective, decorators: [{
|
|
61
66
|
type: Component,
|
|
62
67
|
args: [{
|
|
63
68
|
selector: '[kendoTreeListBaseCommand]',
|
|
64
69
|
template: `
|
|
65
|
-
|
|
66
|
-
|
|
70
|
+
@if (icon || svgIcon) {
|
|
71
|
+
<kendo-icon-wrapper
|
|
67
72
|
innerCssClass="k-button-icon"
|
|
68
73
|
[name]="icon"
|
|
69
|
-
|
|
70
|
-
|
|
74
|
+
[svgIcon]="svgIcon"></kendo-icon-wrapper>
|
|
75
|
+
}
|
|
76
|
+
@if (imageUrl) {
|
|
77
|
+
<span class="k-button-icon k-icon">
|
|
71
78
|
<img [src]="imageUrl" class="k-image" role="presentation" />
|
|
72
|
-
|
|
73
|
-
|
|
79
|
+
</span>
|
|
80
|
+
}
|
|
81
|
+
@if (iconClass) {
|
|
82
|
+
<span class="k-button-icon" [ngClass]="iconClass"></span>
|
|
83
|
+
}
|
|
74
84
|
<span class="k-button-text"><ng-content></ng-content></span>
|
|
75
|
-
|
|
85
|
+
`,
|
|
76
86
|
standalone: true,
|
|
77
|
-
imports: [
|
|
87
|
+
imports: [IconWrapperComponent, NgClass]
|
|
78
88
|
}]
|
|
79
89
|
}], ctorParameters: () => [{ type: i1.EditService }, { type: i0.ElementRef }, { type: i0.Renderer2 }, { type: i2.LocalizationService }, { type: i0.NgZone }], propDecorators: { visible: [{
|
|
80
90
|
type: HostBinding,
|
|
@@ -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 { Component, ElementRef, Renderer2, NgZone, HostBinding, Input } from '@angular/core';
|
|
6
|
-
import {
|
|
6
|
+
import { NgClass } from '@angular/common';
|
|
7
7
|
import { LocalizationService } from '@progress/kendo-angular-l10n';
|
|
8
8
|
import { IconWrapperComponent } from '@progress/kendo-angular-icons';
|
|
9
9
|
import { EditService } from './edit.service';
|
|
@@ -46,37 +46,47 @@ export class CancelCommandDirective extends BaseCommandDirective {
|
|
|
46
46
|
}
|
|
47
47
|
}
|
|
48
48
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: CancelCommandDirective, deps: [{ token: i1.EditService }, { token: i0.ElementRef }, { token: i0.Renderer2 }, { token: i2.LocalizationService }, { token: i0.NgZone }], target: i0.ɵɵFactoryTarget.Component });
|
|
49
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "
|
|
50
|
-
|
|
51
|
-
|
|
49
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "18.2.14", type: CancelCommandDirective, isStandalone: true, selector: "[kendoTreeListCancelCommand]", inputs: { cellContext: ["kendoTreeListCancelCommand", "cellContext"] }, host: { properties: { "class.k-grid-cancel-command": "this.commandClass" } }, usesInheritance: true, ngImport: i0, template: `
|
|
50
|
+
@if (icon || svgIcon) {
|
|
51
|
+
<kendo-icon-wrapper
|
|
52
52
|
innerCssClass="k-button-icon"
|
|
53
53
|
[name]="icon"
|
|
54
|
-
|
|
55
|
-
|
|
54
|
+
[svgIcon]="svgIcon"></kendo-icon-wrapper>
|
|
55
|
+
}
|
|
56
|
+
@if (imageUrl) {
|
|
57
|
+
<span class="k-button-icon k-icon">
|
|
56
58
|
<img [src]="imageUrl" class="k-image" role="presentation" />
|
|
57
|
-
|
|
58
|
-
|
|
59
|
+
</span>
|
|
60
|
+
}
|
|
61
|
+
@if (iconClass) {
|
|
62
|
+
<span class="k-button-icon" [ngClass]="iconClass"></span>
|
|
63
|
+
}
|
|
59
64
|
<span class="k-button-text"><ng-content></ng-content></span>
|
|
60
|
-
|
|
65
|
+
`, isInline: true, dependencies: [{ kind: "component", type: IconWrapperComponent, selector: "kendo-icon-wrapper", inputs: ["name", "svgIcon", "innerCssClass", "customFontClass", "size"], exportAs: ["kendoIconWrapper"] }, { kind: "directive", type: NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }] });
|
|
61
66
|
}
|
|
62
67
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: CancelCommandDirective, decorators: [{
|
|
63
68
|
type: Component,
|
|
64
69
|
args: [{
|
|
65
70
|
selector: '[kendoTreeListCancelCommand]',
|
|
66
71
|
template: `
|
|
67
|
-
|
|
68
|
-
|
|
72
|
+
@if (icon || svgIcon) {
|
|
73
|
+
<kendo-icon-wrapper
|
|
69
74
|
innerCssClass="k-button-icon"
|
|
70
75
|
[name]="icon"
|
|
71
|
-
|
|
72
|
-
|
|
76
|
+
[svgIcon]="svgIcon"></kendo-icon-wrapper>
|
|
77
|
+
}
|
|
78
|
+
@if (imageUrl) {
|
|
79
|
+
<span class="k-button-icon k-icon">
|
|
73
80
|
<img [src]="imageUrl" class="k-image" role="presentation" />
|
|
74
|
-
|
|
75
|
-
|
|
81
|
+
</span>
|
|
82
|
+
}
|
|
83
|
+
@if (iconClass) {
|
|
84
|
+
<span class="k-button-icon" [ngClass]="iconClass"></span>
|
|
85
|
+
}
|
|
76
86
|
<span class="k-button-text"><ng-content></ng-content></span>
|
|
77
|
-
|
|
87
|
+
`,
|
|
78
88
|
standalone: true,
|
|
79
|
-
imports: [
|
|
89
|
+
imports: [IconWrapperComponent, NgClass]
|
|
80
90
|
}]
|
|
81
91
|
}], ctorParameters: () => [{ type: i1.EditService }, { type: i0.ElementRef }, { type: i0.Renderer2 }, { type: i2.LocalizationService }, { type: i0.NgZone }], propDecorators: { cellContext: [{
|
|
82
92
|
type: Input,
|