@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
|
@@ -35,7 +35,6 @@ import { ResizableContainerDirective } from '../layout/resizable.directive';
|
|
|
35
35
|
import { TableBodyComponent } from './table-body.component';
|
|
36
36
|
import { ColGroupComponent } from './common/col-group.component';
|
|
37
37
|
import { TableDirective } from '../column-resizing/table.directive';
|
|
38
|
-
import { NgIf } from '@angular/common';
|
|
39
38
|
import * as i0 from "@angular/core";
|
|
40
39
|
import * as i1 from "../data/change-notification.service";
|
|
41
40
|
import * as i2 from "../scrolling/suspend.service";
|
|
@@ -559,14 +558,15 @@ export class ListComponent {
|
|
|
559
558
|
return element.offsetLeft;
|
|
560
559
|
}
|
|
561
560
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: ListComponent, deps: [{ token: SCROLLER_FACTORY_TOKEN }, { token: i1.ChangeNotificationService }, { token: i2.SuspendService }, { token: i0.NgZone }, { token: i0.Renderer2 }, { token: i3.ScrollSyncService }, { token: i4.ResizeService }, { token: i5.EditService }, { token: i6.BrowserSupportService }, { token: i7.NavigationService }, { token: i8.ScrollRequestService }, { token: i9.LocalizationService }, { token: i10.ColumnResizingService }, { token: i0.ChangeDetectorRef }, { token: i11.PDFService }, { token: i12.ColumnInfoService }], target: i0.ɵɵFactoryTarget.Component });
|
|
562
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "
|
|
561
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "18.2.14", type: ListComponent, isStandalone: true, selector: "kendo-treelist-list", inputs: { view: "view", total: "total", rowHeight: "rowHeight", take: "take", skip: "skip", columns: "columns", noRecordsTemplate: "noRecordsTemplate", filterable: "filterable", rowClass: "rowClass", loading: "loading", trackBy: "trackBy", virtualColumns: "virtualColumns", isVirtual: "isVirtual", expandIcons: "expandIcons" }, outputs: { contentScroll: "contentScroll", pageChange: "pageChange", scrollBottom: "scrollBottom" }, host: { properties: { "class.k-grid-container": "this.hostClass", "attr.role": "this.hostRole" } }, providers: [
|
|
563
562
|
{
|
|
564
563
|
provide: SCROLLER_FACTORY_TOKEN,
|
|
565
564
|
useValue: DEFAULT_SCROLLER_FACTORY
|
|
566
565
|
}
|
|
567
566
|
], viewQueries: [{ propertyName: "container", first: true, predicate: ["container"], descendants: true, static: true }, { propertyName: "table", first: true, predicate: ["table"], descendants: true, static: true }, { propertyName: "lockedContainer", first: true, predicate: ["lockedContainer"], descendants: true }, { propertyName: "lockedTable", first: true, predicate: ["lockedTable"], descendants: true }, { propertyName: "resizeSensors", predicate: ResizeSensorComponent, descendants: true }], usesOnChanges: true, ngImport: i0, template: `
|
|
568
|
-
|
|
569
|
-
|
|
567
|
+
@if (isLocked) {
|
|
568
|
+
<div #lockedContainer class="k-grid-content-locked" role="presentation"
|
|
569
|
+
[style.width.px]="lockedWidth"
|
|
570
570
|
[kendoEventsOutsideAngular]="{
|
|
571
571
|
keydown: lockedKeydown,
|
|
572
572
|
scroll: lockedScroll,
|
|
@@ -575,86 +575,99 @@ export class ListComponent {
|
|
|
575
575
|
}"
|
|
576
576
|
[scope]="this">
|
|
577
577
|
<div role="presentation">
|
|
578
|
-
|
|
579
|
-
|
|
580
|
-
|
|
581
|
-
|
|
582
|
-
|
|
583
|
-
|
|
584
|
-
|
|
585
|
-
|
|
586
|
-
|
|
587
|
-
|
|
588
|
-
|
|
589
|
-
|
|
590
|
-
|
|
591
|
-
|
|
592
|
-
|
|
593
|
-
|
|
594
|
-
|
|
595
|
-
|
|
596
|
-
|
|
597
|
-
|
|
598
|
-
|
|
599
|
-
|
|
600
|
-
|
|
601
|
-
|
|
602
|
-
|
|
603
|
-
|
|
604
|
-
|
|
605
|
-
|
|
606
|
-
|
|
607
|
-
|
|
578
|
+
<table
|
|
579
|
+
kendoTreeListResizableTable
|
|
580
|
+
[locked]="true"
|
|
581
|
+
#lockedTable
|
|
582
|
+
class="k-table k-grid-table k-table-md"
|
|
583
|
+
role="presentation"
|
|
584
|
+
[style.width.px]="lockedWidth">
|
|
585
|
+
<colgroup
|
|
586
|
+
kendoTreeListColGroup
|
|
587
|
+
[columns]="$any(lockedLeafColumns)">
|
|
588
|
+
</colgroup>
|
|
589
|
+
<tbody kendoTreeListTableBody
|
|
590
|
+
role="presentation"
|
|
591
|
+
[isLocked]="true"
|
|
592
|
+
[view]="view"
|
|
593
|
+
[noRecordsText]="''"
|
|
594
|
+
[columns]="$any(lockedLeafColumns)"
|
|
595
|
+
[totalColumnsCount]="leafColumns.length"
|
|
596
|
+
[totalColumns]="columns"
|
|
597
|
+
[skip]="skip"
|
|
598
|
+
[trackBy]="trackBy"
|
|
599
|
+
[filterable]="filterable"
|
|
600
|
+
[rowClass]="rowClass"
|
|
601
|
+
[expandIcons]="expandIcons">
|
|
602
|
+
</tbody>
|
|
603
|
+
</table>
|
|
604
|
+
<kendo-resize-sensor></kendo-resize-sensor>
|
|
605
|
+
</div>
|
|
606
|
+
@if (isVirtual) {
|
|
607
|
+
<div class="k-height-container" role="presentation">
|
|
608
|
+
<div [style.height.px]="totalHeight"></div>
|
|
608
609
|
</div>
|
|
610
|
+
}
|
|
609
611
|
</div>
|
|
610
|
-
|
|
611
|
-
|
|
612
|
-
|
|
613
|
-
|
|
614
|
-
|
|
615
|
-
|
|
616
|
-
|
|
617
|
-
|
|
618
|
-
|
|
619
|
-
|
|
620
|
-
|
|
621
|
-
|
|
622
|
-
|
|
623
|
-
|
|
624
|
-
|
|
625
|
-
|
|
626
|
-
|
|
627
|
-
|
|
628
|
-
|
|
629
|
-
|
|
630
|
-
|
|
631
|
-
|
|
632
|
-
|
|
633
|
-
|
|
634
|
-
|
|
635
|
-
|
|
636
|
-
|
|
637
|
-
|
|
638
|
-
|
|
639
|
-
|
|
640
|
-
|
|
641
|
-
|
|
642
|
-
|
|
643
|
-
|
|
644
|
-
|
|
645
|
-
|
|
646
|
-
|
|
647
|
-
<kendo-resize-sensor
|
|
648
|
-
|
|
649
|
-
<div [style.height.px]="totalHeight"></div>
|
|
650
|
-
</div>
|
|
651
|
-
<div *ngIf="virtualColumns" class="k-width-container" role="presentation">
|
|
652
|
-
<div [style.width.px]="totalWidth"></div>
|
|
653
|
-
</div>
|
|
612
|
+
}
|
|
613
|
+
<div
|
|
614
|
+
#container
|
|
615
|
+
class="k-grid-content k-virtual-content"
|
|
616
|
+
[kendoTreeListResizableContainer]="lockedLeafColumns.length > 0"
|
|
617
|
+
[lockedWidth]="lockedWidth + 1"
|
|
618
|
+
>
|
|
619
|
+
<div role="presentation">
|
|
620
|
+
<table
|
|
621
|
+
[style.width.px]="nonLockedWidth"
|
|
622
|
+
#table
|
|
623
|
+
kendoTreeListResizableTable
|
|
624
|
+
[virtualColumns]="virtualColumns"
|
|
625
|
+
class="k-table k-grid-table k-table-md"
|
|
626
|
+
role="presentation">
|
|
627
|
+
<colgroup
|
|
628
|
+
kendoTreeListColGroup
|
|
629
|
+
[columns]="$any(nonLockedColumnsToRender)">
|
|
630
|
+
</colgroup>
|
|
631
|
+
<tbody kendoTreeListTableBody
|
|
632
|
+
role="rowgroup"
|
|
633
|
+
[view]="view"
|
|
634
|
+
[columns]="$any(nonLockedColumnsToRender)"
|
|
635
|
+
[allColumns]="$any(nonLockedLeafColumns)"
|
|
636
|
+
[noRecordsTemplate]="noRecordsTemplate"
|
|
637
|
+
[lockedColumnsCount]="lockedLeafColumns.length"
|
|
638
|
+
[totalColumnsCount]="leafColumns.length"
|
|
639
|
+
[totalColumns]="columns"
|
|
640
|
+
[skip]="skip"
|
|
641
|
+
[trackBy]="trackBy"
|
|
642
|
+
[filterable]="filterable"
|
|
643
|
+
[rowClass]="rowClass"
|
|
644
|
+
[virtualColumns]="virtualColumns"
|
|
645
|
+
[expandIcons]="expandIcons">
|
|
646
|
+
</tbody>
|
|
647
|
+
</table>
|
|
648
|
+
@if (isLocked) {
|
|
649
|
+
<kendo-resize-sensor></kendo-resize-sensor>
|
|
650
|
+
}
|
|
654
651
|
</div>
|
|
655
|
-
|
|
652
|
+
@if (isLocked || virtualColumns) {
|
|
653
|
+
<kendo-resize-sensor></kendo-resize-sensor>
|
|
654
|
+
}
|
|
655
|
+
@if (isVirtual) {
|
|
656
|
+
<div class="k-height-container" role="presentation">
|
|
657
|
+
<div [style.height.px]="totalHeight"></div>
|
|
658
|
+
</div>
|
|
659
|
+
}
|
|
660
|
+
@if (virtualColumns) {
|
|
661
|
+
<div class="k-width-container" role="presentation">
|
|
662
|
+
<div [style.width.px]="totalWidth"></div>
|
|
663
|
+
</div>
|
|
664
|
+
}
|
|
656
665
|
</div>
|
|
657
|
-
|
|
666
|
+
@if (loading) {
|
|
667
|
+
<div kendoTreeListLoading>
|
|
668
|
+
</div>
|
|
669
|
+
}
|
|
670
|
+
`, isInline: true, dependencies: [{ kind: "directive", type: EventsOutsideAngularDirective, selector: "[kendoEventsOutsideAngular]", inputs: ["kendoEventsOutsideAngular", "scope"] }, { kind: "directive", type: TableDirective, selector: "[kendoTreeListResizableTable]", inputs: ["locked", "virtualColumns"] }, { kind: "component", type: ColGroupComponent, selector: "[kendoTreeListColGroup]", inputs: ["columns"] }, { kind: "component", type: TableBodyComponent, selector: "[kendoTreeListTableBody]", inputs: ["columns", "allColumns", "noRecordsTemplate", "view", "skip", "filterable", "noRecordsText", "isLocked", "lockedColumnsCount", "totalColumnsCount", "virtualColumns", "expandIcons", "trackBy", "totalColumns", "rowClass"] }, { kind: "component", type: ResizeSensorComponent, selector: "kendo-resize-sensor", inputs: ["rateLimit"], outputs: ["resize"] }, { kind: "directive", type: ResizableContainerDirective, selector: "[kendoTreeListResizableContainer]", inputs: ["lockedWidth", "kendoTreeListResizableContainer"] }, { kind: "component", type: LoadingComponent, selector: "[kendoTreeListLoading]" }] });
|
|
658
671
|
}
|
|
659
672
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: ListComponent, decorators: [{
|
|
660
673
|
type: Component,
|
|
@@ -667,8 +680,9 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.14", ngImpo
|
|
|
667
680
|
],
|
|
668
681
|
selector: 'kendo-treelist-list',
|
|
669
682
|
template: `
|
|
670
|
-
|
|
671
|
-
|
|
683
|
+
@if (isLocked) {
|
|
684
|
+
<div #lockedContainer class="k-grid-content-locked" role="presentation"
|
|
685
|
+
[style.width.px]="lockedWidth"
|
|
672
686
|
[kendoEventsOutsideAngular]="{
|
|
673
687
|
keydown: lockedKeydown,
|
|
674
688
|
scroll: lockedScroll,
|
|
@@ -677,88 +691,101 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.14", ngImpo
|
|
|
677
691
|
}"
|
|
678
692
|
[scope]="this">
|
|
679
693
|
<div role="presentation">
|
|
680
|
-
|
|
681
|
-
|
|
682
|
-
|
|
683
|
-
|
|
684
|
-
|
|
685
|
-
|
|
686
|
-
|
|
687
|
-
|
|
688
|
-
|
|
689
|
-
|
|
690
|
-
|
|
691
|
-
|
|
692
|
-
|
|
693
|
-
|
|
694
|
-
|
|
695
|
-
|
|
696
|
-
|
|
697
|
-
|
|
698
|
-
|
|
699
|
-
|
|
700
|
-
|
|
701
|
-
|
|
702
|
-
|
|
703
|
-
|
|
704
|
-
|
|
705
|
-
|
|
706
|
-
|
|
707
|
-
|
|
708
|
-
|
|
709
|
-
|
|
694
|
+
<table
|
|
695
|
+
kendoTreeListResizableTable
|
|
696
|
+
[locked]="true"
|
|
697
|
+
#lockedTable
|
|
698
|
+
class="k-table k-grid-table k-table-md"
|
|
699
|
+
role="presentation"
|
|
700
|
+
[style.width.px]="lockedWidth">
|
|
701
|
+
<colgroup
|
|
702
|
+
kendoTreeListColGroup
|
|
703
|
+
[columns]="$any(lockedLeafColumns)">
|
|
704
|
+
</colgroup>
|
|
705
|
+
<tbody kendoTreeListTableBody
|
|
706
|
+
role="presentation"
|
|
707
|
+
[isLocked]="true"
|
|
708
|
+
[view]="view"
|
|
709
|
+
[noRecordsText]="''"
|
|
710
|
+
[columns]="$any(lockedLeafColumns)"
|
|
711
|
+
[totalColumnsCount]="leafColumns.length"
|
|
712
|
+
[totalColumns]="columns"
|
|
713
|
+
[skip]="skip"
|
|
714
|
+
[trackBy]="trackBy"
|
|
715
|
+
[filterable]="filterable"
|
|
716
|
+
[rowClass]="rowClass"
|
|
717
|
+
[expandIcons]="expandIcons">
|
|
718
|
+
</tbody>
|
|
719
|
+
</table>
|
|
720
|
+
<kendo-resize-sensor></kendo-resize-sensor>
|
|
721
|
+
</div>
|
|
722
|
+
@if (isVirtual) {
|
|
723
|
+
<div class="k-height-container" role="presentation">
|
|
724
|
+
<div [style.height.px]="totalHeight"></div>
|
|
710
725
|
</div>
|
|
726
|
+
}
|
|
711
727
|
</div>
|
|
712
|
-
|
|
713
|
-
|
|
714
|
-
|
|
715
|
-
|
|
716
|
-
|
|
717
|
-
|
|
718
|
-
|
|
719
|
-
|
|
720
|
-
|
|
721
|
-
|
|
722
|
-
|
|
723
|
-
|
|
724
|
-
|
|
725
|
-
|
|
726
|
-
|
|
727
|
-
|
|
728
|
-
|
|
729
|
-
|
|
730
|
-
|
|
731
|
-
|
|
732
|
-
|
|
733
|
-
|
|
734
|
-
|
|
735
|
-
|
|
736
|
-
|
|
737
|
-
|
|
738
|
-
|
|
739
|
-
|
|
740
|
-
|
|
741
|
-
|
|
742
|
-
|
|
743
|
-
|
|
744
|
-
|
|
745
|
-
|
|
746
|
-
|
|
747
|
-
|
|
748
|
-
|
|
749
|
-
<kendo-resize-sensor
|
|
750
|
-
|
|
751
|
-
<div [style.height.px]="totalHeight"></div>
|
|
752
|
-
</div>
|
|
753
|
-
<div *ngIf="virtualColumns" class="k-width-container" role="presentation">
|
|
754
|
-
<div [style.width.px]="totalWidth"></div>
|
|
755
|
-
</div>
|
|
728
|
+
}
|
|
729
|
+
<div
|
|
730
|
+
#container
|
|
731
|
+
class="k-grid-content k-virtual-content"
|
|
732
|
+
[kendoTreeListResizableContainer]="lockedLeafColumns.length > 0"
|
|
733
|
+
[lockedWidth]="lockedWidth + 1"
|
|
734
|
+
>
|
|
735
|
+
<div role="presentation">
|
|
736
|
+
<table
|
|
737
|
+
[style.width.px]="nonLockedWidth"
|
|
738
|
+
#table
|
|
739
|
+
kendoTreeListResizableTable
|
|
740
|
+
[virtualColumns]="virtualColumns"
|
|
741
|
+
class="k-table k-grid-table k-table-md"
|
|
742
|
+
role="presentation">
|
|
743
|
+
<colgroup
|
|
744
|
+
kendoTreeListColGroup
|
|
745
|
+
[columns]="$any(nonLockedColumnsToRender)">
|
|
746
|
+
</colgroup>
|
|
747
|
+
<tbody kendoTreeListTableBody
|
|
748
|
+
role="rowgroup"
|
|
749
|
+
[view]="view"
|
|
750
|
+
[columns]="$any(nonLockedColumnsToRender)"
|
|
751
|
+
[allColumns]="$any(nonLockedLeafColumns)"
|
|
752
|
+
[noRecordsTemplate]="noRecordsTemplate"
|
|
753
|
+
[lockedColumnsCount]="lockedLeafColumns.length"
|
|
754
|
+
[totalColumnsCount]="leafColumns.length"
|
|
755
|
+
[totalColumns]="columns"
|
|
756
|
+
[skip]="skip"
|
|
757
|
+
[trackBy]="trackBy"
|
|
758
|
+
[filterable]="filterable"
|
|
759
|
+
[rowClass]="rowClass"
|
|
760
|
+
[virtualColumns]="virtualColumns"
|
|
761
|
+
[expandIcons]="expandIcons">
|
|
762
|
+
</tbody>
|
|
763
|
+
</table>
|
|
764
|
+
@if (isLocked) {
|
|
765
|
+
<kendo-resize-sensor></kendo-resize-sensor>
|
|
766
|
+
}
|
|
756
767
|
</div>
|
|
757
|
-
|
|
768
|
+
@if (isLocked || virtualColumns) {
|
|
769
|
+
<kendo-resize-sensor></kendo-resize-sensor>
|
|
770
|
+
}
|
|
771
|
+
@if (isVirtual) {
|
|
772
|
+
<div class="k-height-container" role="presentation">
|
|
773
|
+
<div [style.height.px]="totalHeight"></div>
|
|
774
|
+
</div>
|
|
775
|
+
}
|
|
776
|
+
@if (virtualColumns) {
|
|
777
|
+
<div class="k-width-container" role="presentation">
|
|
778
|
+
<div [style.width.px]="totalWidth"></div>
|
|
779
|
+
</div>
|
|
780
|
+
}
|
|
758
781
|
</div>
|
|
782
|
+
@if (loading) {
|
|
783
|
+
<div kendoTreeListLoading>
|
|
784
|
+
</div>
|
|
785
|
+
}
|
|
759
786
|
`,
|
|
760
787
|
standalone: true,
|
|
761
|
-
imports: [
|
|
788
|
+
imports: [EventsOutsideAngularDirective, TableDirective, ColGroupComponent, TableBodyComponent, ResizeSensorComponent, ResizableContainerDirective, LoadingComponent]
|
|
762
789
|
}]
|
|
763
790
|
}], ctorParameters: () => [{ type: undefined, decorators: [{
|
|
764
791
|
type: Inject,
|