@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
|
@@ -25,7 +25,7 @@ import { LevelItemsPipe } from './common/level-items.pipe';
|
|
|
25
25
|
import { LogicalCellDirective } from '../navigation/logical-cell.directive';
|
|
26
26
|
import { CellComponent } from './cell.component';
|
|
27
27
|
import { LogicalRowDirective } from '../navigation/logical-row.directive';
|
|
28
|
-
import {
|
|
28
|
+
import { NgTemplateOutlet, NgClass, NgStyle } from '@angular/common';
|
|
29
29
|
import * as i0 from "@angular/core";
|
|
30
30
|
import * as i1 from "../data/change-notification.service";
|
|
31
31
|
import * as i2 from "../editing/edit.service";
|
|
@@ -125,9 +125,6 @@ export class TableBodyComponent {
|
|
|
125
125
|
return item.index % 2 !== 0;
|
|
126
126
|
}
|
|
127
127
|
trackByWrapper(index, item) {
|
|
128
|
-
if (item.type === 'data') {
|
|
129
|
-
item.isEditing = this.editService.isEdited(item.data);
|
|
130
|
-
}
|
|
131
128
|
return this.trackBy(index, item);
|
|
132
129
|
}
|
|
133
130
|
trackByColumns(index, item) {
|
|
@@ -193,6 +190,13 @@ export class TableBodyComponent {
|
|
|
193
190
|
}
|
|
194
191
|
ngDoCheck() {
|
|
195
192
|
this.headerOffset = this.columnInfoService.totalLevels + (hasFilterRow(this.filterable) ? 1 : 0);
|
|
193
|
+
if (this.view?.data) {
|
|
194
|
+
this.view.data.forEach((item) => {
|
|
195
|
+
if (item.type === 'data') {
|
|
196
|
+
item.isEditing = this.editService.isEdited(item.data);
|
|
197
|
+
}
|
|
198
|
+
});
|
|
199
|
+
}
|
|
196
200
|
}
|
|
197
201
|
ngOnDestroy() {
|
|
198
202
|
if (this.clickSubscription) {
|
|
@@ -391,92 +395,103 @@ export class TableBodyComponent {
|
|
|
391
395
|
return viewItem;
|
|
392
396
|
}
|
|
393
397
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: TableBodyComponent, deps: [{ token: i1.ChangeNotificationService }, { token: i2.EditService }, { token: i3.LocalizationService }, { token: i0.NgZone }, { token: i0.Renderer2 }, { token: i0.ElementRef }, { token: i4.DomEventsService }, { token: i5.ColumnInfoService }, { token: i6.NavigationService }, { token: i7.ExpandStateService }, { token: i8.SelectionService }], target: i0.ɵɵFactoryTarget.Component });
|
|
394
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "
|
|
395
|
-
|
|
398
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "18.2.14", type: TableBodyComponent, isStandalone: true, selector: "[kendoTreeListTableBody]", inputs: { columns: "columns", allColumns: "allColumns", noRecordsTemplate: "noRecordsTemplate", view: "view", skip: "skip", filterable: "filterable", noRecordsText: "noRecordsText", isLocked: "isLocked", lockedColumnsCount: "lockedColumnsCount", totalColumnsCount: "totalColumnsCount", virtualColumns: "virtualColumns", expandIcons: "expandIcons", trackBy: "trackBy", totalColumns: "totalColumns", rowClass: "rowClass" }, host: { properties: { "class.k-table-tbody": "this.hostClass" } }, usesOnChanges: true, ngImport: i0, template: `
|
|
399
|
+
@if (!hasData) {
|
|
400
|
+
<tr class="k-grid-norecords">
|
|
396
401
|
<td [attr.colspan]="colSpan" class="k-table-td">
|
|
397
|
-
|
|
398
|
-
|
|
399
|
-
<ng-container *ngIf="!noRecordsTemplate?.templateRef">
|
|
400
|
-
{{noRecordsText}}
|
|
402
|
+
@if (noRecordsTemplate?.templateRef) {
|
|
403
|
+
<ng-container [ngTemplateOutlet]="noRecordsTemplate.templateRef">
|
|
401
404
|
</ng-container>
|
|
405
|
+
}
|
|
406
|
+
@if (!noRecordsTemplate?.templateRef) {
|
|
407
|
+
{{noRecordsText}}
|
|
408
|
+
}
|
|
402
409
|
</td>
|
|
403
|
-
|
|
404
|
-
|
|
405
|
-
|
|
406
|
-
|
|
407
|
-
|
|
408
|
-
|
|
409
|
-
|
|
410
|
-
|
|
411
|
-
|
|
412
|
-
|
|
413
|
-
|
|
414
|
-
|
|
415
|
-
|
|
416
|
-
|
|
417
|
-
|
|
418
|
-
|
|
419
|
-
|
|
420
|
-
|
|
421
|
-
|
|
422
|
-
|
|
423
|
-
|
|
410
|
+
</tr>
|
|
411
|
+
}
|
|
412
|
+
@for (item of view?.data; track trackByWrapper($index, item); let rowIndex = $index) {
|
|
413
|
+
@if (item.type === 'data') {
|
|
414
|
+
<tr
|
|
415
|
+
kendoTreeListLogicalRow
|
|
416
|
+
[dataRowIndex]="$any(item).index"
|
|
417
|
+
[dataItem]="item.data"
|
|
418
|
+
[logicalRowIndex]="logicalRowIndex(item.rowIndex)"
|
|
419
|
+
[logicalSlaveRow]="lockedColumnsCount > 0"
|
|
420
|
+
[logicalCellsCount]="columns.length"
|
|
421
|
+
[logicalSlaveCellsCount]="unlockedColumnsCount(item)"
|
|
422
|
+
[totalColumns]="totalColumns"
|
|
423
|
+
[isNew]="item.isNew"
|
|
424
|
+
[attr.aria-expanded]="ariaRowExpanded(item)"
|
|
425
|
+
[ngClass]="rowClass({ dataItem: item.data, index: $any(item).index })"
|
|
426
|
+
class="k-table-row{{isOdd(item) ? ' k-table-alt-row' : ''}}"
|
|
427
|
+
[class.k-grid-edit-row]="isEditingRow(item)"
|
|
428
|
+
[class.k-grid-add-row]="item.isNew"
|
|
429
|
+
[attr.aria-selected]="ariaRowSelected(item)"
|
|
430
|
+
[class.k-selected]="item.selected"
|
|
431
|
+
[attr.data-treelist-view-index]="rowIndex">
|
|
432
|
+
@for (column of columns; track trackByColumns($index, column); let columnIndex = $index) {
|
|
424
433
|
<td kendoTreeListCell
|
|
425
|
-
|
|
426
|
-
|
|
427
|
-
|
|
428
|
-
|
|
429
|
-
|
|
430
|
-
|
|
431
|
-
|
|
432
|
-
|
|
433
|
-
|
|
434
|
-
|
|
435
|
-
|
|
436
|
-
|
|
437
|
-
|
|
438
|
-
|
|
439
|
-
|
|
440
|
-
|
|
441
|
-
|
|
442
|
-
|
|
443
|
-
|
|
444
|
-
|
|
445
|
-
|
|
446
|
-
|
|
447
|
-
|
|
448
|
-
|
|
449
|
-
|
|
450
|
-
|
|
451
|
-
|
|
452
|
-
|
|
453
|
-
|
|
454
|
-
|
|
434
|
+
[columnIndex]="lockedColumnsCount + columnIndex"
|
|
435
|
+
[column]="column"
|
|
436
|
+
[viewItem]="item"
|
|
437
|
+
[dataItem]="item.data"
|
|
438
|
+
[level]="item.level"
|
|
439
|
+
[hasChildren]="item.hasChildren"
|
|
440
|
+
[isExpanded]="item.expanded"
|
|
441
|
+
[rowIndex]="item.rowIndex"
|
|
442
|
+
[loading]="item.loading"
|
|
443
|
+
[isNew]="item.isNew"
|
|
444
|
+
[selected]="item.selected"
|
|
445
|
+
[expandIcons]="expandIcons"
|
|
446
|
+
kendoTreeListLogicalCell
|
|
447
|
+
[logicalRowIndex]="logicalRowIndex(item.rowIndex)"
|
|
448
|
+
[logicalColIndex]="logicalColIndex(column)"
|
|
449
|
+
[dataRowIndex]="$any(item).index"
|
|
450
|
+
[column]="column"
|
|
451
|
+
[colIndex]="columnIndex"
|
|
452
|
+
[colSpan]="column.colspan"
|
|
453
|
+
[expandable]="cellExpandable(item, column)"
|
|
454
|
+
[attr.aria-expanded]="lockedColumnsCount < 1 ? ariaExpanded(item, column) : undefined"
|
|
455
|
+
[attr.aria-selected]="lockedColumnsCount < 1 ? ariaSelected(item, column, lockedColumnsCount + columnIndex) : undefined"
|
|
456
|
+
class="k-table-td"
|
|
457
|
+
[attr.role]="column.tableCellsRole"
|
|
458
|
+
[ngClass]="column.cssClass"
|
|
459
|
+
[class.k-grid-edit-cell]="isEditingCell(item, column)"
|
|
460
|
+
[class.k-selected]="isCellSelected(item.data, column, lockedColumnsCount + columnIndex)"
|
|
461
|
+
[ngStyle]="column.style"
|
|
462
|
+
[attr.colspan]="column.colspan"
|
|
463
|
+
>
|
|
455
464
|
</td>
|
|
465
|
+
}
|
|
456
466
|
</tr>
|
|
457
|
-
|
|
458
|
-
|
|
459
|
-
|
|
460
|
-
|
|
461
|
-
|
|
462
|
-
|
|
463
|
-
|
|
464
|
-
|
|
465
|
-
|
|
467
|
+
}
|
|
468
|
+
@if (item.type === 'footer' && hasFooter) {
|
|
469
|
+
<tr role="row"
|
|
470
|
+
class="k-footer"
|
|
471
|
+
[attr.data-treelist-view-index]="rowIndex"
|
|
472
|
+
kendoTreeListLogicalRow
|
|
473
|
+
[logicalRowIndex]="logicalRowIndex(item.rowIndex)"
|
|
474
|
+
[logicalSlaveRow]="lockedColumnsCount > 0"
|
|
475
|
+
[logicalCellsCount]="columns.length"
|
|
476
|
+
[logicalSlaveCellsCount]="unlockedColumnsCount(item)"
|
|
477
|
+
[totalColumns]="totalColumns">
|
|
478
|
+
@for (column of footerColumns; track trackByColumns($index, column); let columnIndex = $index) {
|
|
466
479
|
<td kendoTreeListLogicalCell
|
|
467
|
-
|
|
468
|
-
|
|
469
|
-
|
|
470
|
-
|
|
471
|
-
|
|
472
|
-
|
|
473
|
-
|
|
474
|
-
|
|
475
|
-
|
|
476
|
-
|
|
477
|
-
|
|
478
|
-
|
|
479
|
-
|
|
480
|
+
[logicalRowIndex]="logicalRowIndex(item.rowIndex)"
|
|
481
|
+
[logicalColIndex]="logicalColIndex(column)"
|
|
482
|
+
[column]="column"
|
|
483
|
+
[colIndex]="columnIndex"
|
|
484
|
+
class="k-table-td"
|
|
485
|
+
[attr.role]="column.tableCellsRole"
|
|
486
|
+
[ngClass]="column.footerClass"
|
|
487
|
+
[ngStyle]="column.footerStyle"
|
|
488
|
+
>
|
|
489
|
+
@if ($any(column).expandable) {
|
|
490
|
+
@for (item of item.level | levelItems; track $index) {
|
|
491
|
+
<kendo-icon-wrapper name="none" innerCssClass="k-treelist-toggle" [svgIcon]="noneIcon"></kendo-icon-wrapper>
|
|
492
|
+
}
|
|
493
|
+
}
|
|
494
|
+
<ng-container [ngTemplateOutlet]="column.footerTemplateRef"
|
|
480
495
|
[ngTemplateOutletContext]="{
|
|
481
496
|
$implicit: item.aggregates,
|
|
482
497
|
aggregates: item.aggregates,
|
|
@@ -486,102 +501,115 @@ export class TableBodyComponent {
|
|
|
486
501
|
items: item.items,
|
|
487
502
|
parentItem: item.parentItem
|
|
488
503
|
}">
|
|
489
|
-
|
|
490
|
-
|
|
504
|
+
</ng-container>
|
|
505
|
+
</td>
|
|
506
|
+
}
|
|
491
507
|
</tr>
|
|
492
|
-
|
|
493
|
-
|
|
508
|
+
}
|
|
509
|
+
}
|
|
510
|
+
`, isInline: true, dependencies: [{ kind: "directive", type: NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "directive", type: LogicalRowDirective, selector: "[kendoTreeListLogicalRow]", inputs: ["logicalRowIndex", "logicalSlaveRow", "logicalCellsCount", "logicalSlaveCellsCount", "dataRowIndex", "dataItem", "isNew", "totalColumns"] }, { kind: "directive", type: NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "component", type: CellComponent, selector: "[kendoTreeListCell]", inputs: ["column", "columnIndex", "isNew", "level", "hasChildren", "isExpanded", "loading", "expandIcons", "rowIndex", "selected", "dataItem", "viewItem"] }, { kind: "directive", type: LogicalCellDirective, selector: "[kendoTreeListLogicalCell]", inputs: ["logicalColIndex", "logicalRowIndex", "logicalSlaveCell", "column", "colIndex", "colSpan", "rowSpan", "dataRowIndex", "dataItem", "expandable", "headerLabelText"] }, { kind: "directive", type: NgStyle, selector: "[ngStyle]", inputs: ["ngStyle"] }, { kind: "component", type: IconWrapperComponent, selector: "kendo-icon-wrapper", inputs: ["name", "svgIcon", "innerCssClass", "customFontClass", "size"], exportAs: ["kendoIconWrapper"] }, { kind: "pipe", type: LevelItemsPipe, name: "levelItems" }] });
|
|
494
511
|
}
|
|
495
512
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: TableBodyComponent, decorators: [{
|
|
496
513
|
type: Component,
|
|
497
514
|
args: [{
|
|
498
515
|
selector: '[kendoTreeListTableBody]',
|
|
499
516
|
template: `
|
|
500
|
-
|
|
517
|
+
@if (!hasData) {
|
|
518
|
+
<tr class="k-grid-norecords">
|
|
501
519
|
<td [attr.colspan]="colSpan" class="k-table-td">
|
|
502
|
-
|
|
503
|
-
|
|
504
|
-
<ng-container *ngIf="!noRecordsTemplate?.templateRef">
|
|
505
|
-
{{noRecordsText}}
|
|
520
|
+
@if (noRecordsTemplate?.templateRef) {
|
|
521
|
+
<ng-container [ngTemplateOutlet]="noRecordsTemplate.templateRef">
|
|
506
522
|
</ng-container>
|
|
523
|
+
}
|
|
524
|
+
@if (!noRecordsTemplate?.templateRef) {
|
|
525
|
+
{{noRecordsText}}
|
|
526
|
+
}
|
|
507
527
|
</td>
|
|
508
|
-
|
|
509
|
-
|
|
510
|
-
|
|
511
|
-
|
|
512
|
-
|
|
513
|
-
|
|
514
|
-
|
|
515
|
-
|
|
516
|
-
|
|
517
|
-
|
|
518
|
-
|
|
519
|
-
|
|
520
|
-
|
|
521
|
-
|
|
522
|
-
|
|
523
|
-
|
|
524
|
-
|
|
525
|
-
|
|
526
|
-
|
|
527
|
-
|
|
528
|
-
|
|
528
|
+
</tr>
|
|
529
|
+
}
|
|
530
|
+
@for (item of view?.data; track trackByWrapper($index, item); let rowIndex = $index) {
|
|
531
|
+
@if (item.type === 'data') {
|
|
532
|
+
<tr
|
|
533
|
+
kendoTreeListLogicalRow
|
|
534
|
+
[dataRowIndex]="$any(item).index"
|
|
535
|
+
[dataItem]="item.data"
|
|
536
|
+
[logicalRowIndex]="logicalRowIndex(item.rowIndex)"
|
|
537
|
+
[logicalSlaveRow]="lockedColumnsCount > 0"
|
|
538
|
+
[logicalCellsCount]="columns.length"
|
|
539
|
+
[logicalSlaveCellsCount]="unlockedColumnsCount(item)"
|
|
540
|
+
[totalColumns]="totalColumns"
|
|
541
|
+
[isNew]="item.isNew"
|
|
542
|
+
[attr.aria-expanded]="ariaRowExpanded(item)"
|
|
543
|
+
[ngClass]="rowClass({ dataItem: item.data, index: $any(item).index })"
|
|
544
|
+
class="k-table-row{{isOdd(item) ? ' k-table-alt-row' : ''}}"
|
|
545
|
+
[class.k-grid-edit-row]="isEditingRow(item)"
|
|
546
|
+
[class.k-grid-add-row]="item.isNew"
|
|
547
|
+
[attr.aria-selected]="ariaRowSelected(item)"
|
|
548
|
+
[class.k-selected]="item.selected"
|
|
549
|
+
[attr.data-treelist-view-index]="rowIndex">
|
|
550
|
+
@for (column of columns; track trackByColumns($index, column); let columnIndex = $index) {
|
|
529
551
|
<td kendoTreeListCell
|
|
530
|
-
|
|
531
|
-
|
|
532
|
-
|
|
533
|
-
|
|
534
|
-
|
|
535
|
-
|
|
536
|
-
|
|
537
|
-
|
|
538
|
-
|
|
539
|
-
|
|
540
|
-
|
|
541
|
-
|
|
542
|
-
|
|
543
|
-
|
|
544
|
-
|
|
545
|
-
|
|
546
|
-
|
|
547
|
-
|
|
548
|
-
|
|
549
|
-
|
|
550
|
-
|
|
551
|
-
|
|
552
|
-
|
|
553
|
-
|
|
554
|
-
|
|
555
|
-
|
|
556
|
-
|
|
557
|
-
|
|
558
|
-
|
|
559
|
-
|
|
552
|
+
[columnIndex]="lockedColumnsCount + columnIndex"
|
|
553
|
+
[column]="column"
|
|
554
|
+
[viewItem]="item"
|
|
555
|
+
[dataItem]="item.data"
|
|
556
|
+
[level]="item.level"
|
|
557
|
+
[hasChildren]="item.hasChildren"
|
|
558
|
+
[isExpanded]="item.expanded"
|
|
559
|
+
[rowIndex]="item.rowIndex"
|
|
560
|
+
[loading]="item.loading"
|
|
561
|
+
[isNew]="item.isNew"
|
|
562
|
+
[selected]="item.selected"
|
|
563
|
+
[expandIcons]="expandIcons"
|
|
564
|
+
kendoTreeListLogicalCell
|
|
565
|
+
[logicalRowIndex]="logicalRowIndex(item.rowIndex)"
|
|
566
|
+
[logicalColIndex]="logicalColIndex(column)"
|
|
567
|
+
[dataRowIndex]="$any(item).index"
|
|
568
|
+
[column]="column"
|
|
569
|
+
[colIndex]="columnIndex"
|
|
570
|
+
[colSpan]="column.colspan"
|
|
571
|
+
[expandable]="cellExpandable(item, column)"
|
|
572
|
+
[attr.aria-expanded]="lockedColumnsCount < 1 ? ariaExpanded(item, column) : undefined"
|
|
573
|
+
[attr.aria-selected]="lockedColumnsCount < 1 ? ariaSelected(item, column, lockedColumnsCount + columnIndex) : undefined"
|
|
574
|
+
class="k-table-td"
|
|
575
|
+
[attr.role]="column.tableCellsRole"
|
|
576
|
+
[ngClass]="column.cssClass"
|
|
577
|
+
[class.k-grid-edit-cell]="isEditingCell(item, column)"
|
|
578
|
+
[class.k-selected]="isCellSelected(item.data, column, lockedColumnsCount + columnIndex)"
|
|
579
|
+
[ngStyle]="column.style"
|
|
580
|
+
[attr.colspan]="column.colspan"
|
|
581
|
+
>
|
|
560
582
|
</td>
|
|
583
|
+
}
|
|
561
584
|
</tr>
|
|
562
|
-
|
|
563
|
-
|
|
564
|
-
|
|
565
|
-
|
|
566
|
-
|
|
567
|
-
|
|
568
|
-
|
|
569
|
-
|
|
570
|
-
|
|
585
|
+
}
|
|
586
|
+
@if (item.type === 'footer' && hasFooter) {
|
|
587
|
+
<tr role="row"
|
|
588
|
+
class="k-footer"
|
|
589
|
+
[attr.data-treelist-view-index]="rowIndex"
|
|
590
|
+
kendoTreeListLogicalRow
|
|
591
|
+
[logicalRowIndex]="logicalRowIndex(item.rowIndex)"
|
|
592
|
+
[logicalSlaveRow]="lockedColumnsCount > 0"
|
|
593
|
+
[logicalCellsCount]="columns.length"
|
|
594
|
+
[logicalSlaveCellsCount]="unlockedColumnsCount(item)"
|
|
595
|
+
[totalColumns]="totalColumns">
|
|
596
|
+
@for (column of footerColumns; track trackByColumns($index, column); let columnIndex = $index) {
|
|
571
597
|
<td kendoTreeListLogicalCell
|
|
572
|
-
|
|
573
|
-
|
|
574
|
-
|
|
575
|
-
|
|
576
|
-
|
|
577
|
-
|
|
578
|
-
|
|
579
|
-
|
|
580
|
-
|
|
581
|
-
|
|
582
|
-
|
|
583
|
-
|
|
584
|
-
|
|
598
|
+
[logicalRowIndex]="logicalRowIndex(item.rowIndex)"
|
|
599
|
+
[logicalColIndex]="logicalColIndex(column)"
|
|
600
|
+
[column]="column"
|
|
601
|
+
[colIndex]="columnIndex"
|
|
602
|
+
class="k-table-td"
|
|
603
|
+
[attr.role]="column.tableCellsRole"
|
|
604
|
+
[ngClass]="column.footerClass"
|
|
605
|
+
[ngStyle]="column.footerStyle"
|
|
606
|
+
>
|
|
607
|
+
@if ($any(column).expandable) {
|
|
608
|
+
@for (item of item.level | levelItems; track $index) {
|
|
609
|
+
<kendo-icon-wrapper name="none" innerCssClass="k-treelist-toggle" [svgIcon]="noneIcon"></kendo-icon-wrapper>
|
|
610
|
+
}
|
|
611
|
+
}
|
|
612
|
+
<ng-container [ngTemplateOutlet]="column.footerTemplateRef"
|
|
585
613
|
[ngTemplateOutletContext]="{
|
|
586
614
|
$implicit: item.aggregates,
|
|
587
615
|
aggregates: item.aggregates,
|
|
@@ -591,13 +619,15 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.14", ngImpo
|
|
|
591
619
|
items: item.items,
|
|
592
620
|
parentItem: item.parentItem
|
|
593
621
|
}">
|
|
594
|
-
|
|
595
|
-
|
|
622
|
+
</ng-container>
|
|
623
|
+
</td>
|
|
624
|
+
}
|
|
596
625
|
</tr>
|
|
597
|
-
|
|
626
|
+
}
|
|
627
|
+
}
|
|
598
628
|
`,
|
|
599
629
|
standalone: true,
|
|
600
|
-
imports: [
|
|
630
|
+
imports: [NgTemplateOutlet, LogicalRowDirective, NgClass, CellComponent, LogicalCellDirective, NgStyle, IconWrapperComponent, LevelItemsPipe]
|
|
601
631
|
}]
|
|
602
632
|
}], ctorParameters: () => [{ type: i1.ChangeNotificationService }, { type: i2.EditService }, { type: i3.LocalizationService }, { type: i0.NgZone }, { type: i0.Renderer2 }, { type: i0.ElementRef }, { type: i4.DomEventsService }, { type: i5.ColumnInfoService }, { type: i6.NavigationService }, { type: i7.ExpandStateService }, { type: i8.SelectionService }], propDecorators: { hostClass: [{
|
|
603
633
|
type: HostBinding,
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
*-------------------------------------------------------------------------------------------*/
|
|
5
5
|
/* eslint-disable @typescript-eslint/no-inferrable-types */
|
|
6
6
|
import { Component, Input, HostBinding, Renderer2, ElementRef } from '@angular/core';
|
|
7
|
-
import {
|
|
7
|
+
import { NgTemplateOutlet } from '@angular/common';
|
|
8
8
|
import { Subscription } from 'rxjs';
|
|
9
9
|
import { Keys, isDocumentAvailable, normalizeNumpadKeys } from '@progress/kendo-angular-common';
|
|
10
10
|
import { ContextService } from './../../common/provider.service';
|
|
@@ -62,29 +62,31 @@ export class ToolbarComponent {
|
|
|
62
62
|
this.navigationService.updateFocus();
|
|
63
63
|
}
|
|
64
64
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: ToolbarComponent, deps: [{ token: i0.ElementRef }, { token: i0.Renderer2 }, { token: i1.ContextService }], target: i0.ɵɵFactoryTarget.Component });
|
|
65
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "
|
|
66
|
-
|
|
67
|
-
|
|
65
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "18.2.14", type: ToolbarComponent, isStandalone: true, selector: "kendo-treelist-toolbar", inputs: { position: "position", navigable: "navigable" }, host: { properties: { "attr.role": "this.hostRole", "class.k-grid-toolbar": "this.hostClasses", "class.k-toolbar": "this.hostClasses", "class.k-toolbar-solid": "this.hostClasses", "class.k-toolbar-md": "this.hostClasses" } }, ngImport: i0, template: `
|
|
66
|
+
@if (toolbarTemplateRef) {
|
|
67
|
+
<ng-template
|
|
68
68
|
[ngTemplateOutlet]="toolbarTemplateRef"
|
|
69
69
|
[ngTemplateOutletContext]="context"
|
|
70
70
|
>
|
|
71
|
-
|
|
72
|
-
|
|
71
|
+
</ng-template>
|
|
72
|
+
}
|
|
73
|
+
`, isInline: true, dependencies: [{ kind: "directive", type: NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }] });
|
|
73
74
|
}
|
|
74
75
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: ToolbarComponent, decorators: [{
|
|
75
76
|
type: Component,
|
|
76
77
|
args: [{
|
|
77
78
|
selector: 'kendo-treelist-toolbar',
|
|
78
79
|
template: `
|
|
79
|
-
|
|
80
|
-
|
|
80
|
+
@if (toolbarTemplateRef) {
|
|
81
|
+
<ng-template
|
|
81
82
|
[ngTemplateOutlet]="toolbarTemplateRef"
|
|
82
83
|
[ngTemplateOutletContext]="context"
|
|
83
84
|
>
|
|
84
|
-
|
|
85
|
-
|
|
85
|
+
</ng-template>
|
|
86
|
+
}
|
|
87
|
+
`,
|
|
86
88
|
standalone: true,
|
|
87
|
-
imports: [
|
|
89
|
+
imports: [NgTemplateOutlet]
|
|
88
90
|
}]
|
|
89
91
|
}], ctorParameters: () => [{ type: i0.ElementRef }, { type: i0.Renderer2 }, { type: i1.ContextService }], propDecorators: { hostRole: [{
|
|
90
92
|
type: HostBinding,
|