@progress/kendo-angular-treelist 13.0.0-develop.2 → 13.0.0-develop.4

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.
Files changed (41) hide show
  1. package/binding-directives/base-binding.directive.d.ts +5 -1
  2. package/binding-directives/data-bound-tree-component.d.ts +9 -0
  3. package/binding-directives/flat-binding.directive.d.ts +14 -3
  4. package/binding-directives/hierarchy-binding.directive.d.ts +12 -3
  5. package/columns/column-base.d.ts +4 -0
  6. package/columns/rowreorder-column.component.d.ts +19 -0
  7. package/esm2020/binding-directives/base-binding.directive.mjs +9 -3
  8. package/esm2020/binding-directives/flat-binding.directive.mjs +56 -6
  9. package/esm2020/binding-directives/hierarchy-binding.directive.mjs +46 -6
  10. package/esm2020/columns/column-base.mjs +4 -0
  11. package/esm2020/columns/rowreorder-column.component.mjs +47 -0
  12. package/esm2020/index.mjs +2 -0
  13. package/esm2020/localization/messages.mjs +3 -1
  14. package/esm2020/package-metadata.mjs +2 -2
  15. package/esm2020/rendering/cell.component.mjs +47 -16
  16. package/esm2020/rendering/constants.mjs +4 -0
  17. package/esm2020/rendering/table-body.component.mjs +5 -3
  18. package/esm2020/row-reordering/flat-reorder.service.mjs +48 -0
  19. package/esm2020/row-reordering/hierarchical-reorder.service.mjs +55 -0
  20. package/esm2020/row-reordering/row-reorder.service.mjs +220 -0
  21. package/esm2020/row-reordering/types.mjs +5 -0
  22. package/esm2020/row-reordering/utils.mjs +129 -0
  23. package/esm2020/shared.module.mjs +8 -3
  24. package/esm2020/treelist.component.mjs +161 -23
  25. package/esm2020/treelist.module.mjs +71 -66
  26. package/fesm2015/progress-kendo-angular-treelist.mjs +808 -62
  27. package/fesm2020/progress-kendo-angular-treelist.mjs +799 -62
  28. package/index.d.ts +2 -0
  29. package/localization/messages.d.ts +5 -1
  30. package/package.json +16 -15
  31. package/rendering/cell.component.d.ts +6 -1
  32. package/rendering/constants.d.ts +4 -0
  33. package/row-reordering/flat-reorder.service.d.ts +16 -0
  34. package/row-reordering/hierarchical-reorder.service.d.ts +16 -0
  35. package/row-reordering/row-reorder.service.d.ts +61 -0
  36. package/row-reordering/types.d.ts +39 -0
  37. package/row-reordering/utils.d.ts +85 -0
  38. package/schematics/ngAdd/index.js +3 -3
  39. package/shared.module.d.ts +5 -4
  40. package/treelist.component.d.ts +42 -2
  41. package/treelist.module.d.ts +68 -66
package/index.d.ts CHANGED
@@ -136,6 +136,8 @@ export { ScrollRequest } from './scrolling/scroll-request.service';
136
136
  export { ExpandEvent } from './expand-state/expand-event';
137
137
  export { ExpandableDirective } from './expand-state/expandable.directive';
138
138
  export { ExpandableTreeComponent } from './expand-state/expandable-tree-component';
139
+ export { RowReorderColumnComponent } from './columns/rowreorder-column.component';
140
+ export * from './row-reordering/types';
139
141
  export { ColumnMenuTemplateDirective } from './column-menu/column-menu-template.directive';
140
142
  export { EditCommandDirective } from './editing/edit-command.directive';
141
143
  export { CancelCommandDirective } from './editing/cancel-command.directive';
@@ -236,6 +236,10 @@ export declare class Messages extends ComponentMessages {
236
236
  * The label of the TreeList bottom toolbar.
237
237
  */
238
238
  bottomToolbarLabel: string;
239
+ /**
240
+ * The label for the TreeList drag row handle.
241
+ */
242
+ dragRowHandleLabel: string;
239
243
  static ɵfac: i0.ɵɵFactoryDeclaration<Messages, never>;
240
- static ɵdir: i0.ɵɵDirectiveDeclaration<Messages, never, never, { "groupPanelEmpty": "groupPanelEmpty"; "noRecords": "noRecords"; "pagerLabel": "pagerLabel"; "pagerFirstPage": "pagerFirstPage"; "pagerLastPage": "pagerLastPage"; "pagerPreviousPage": "pagerPreviousPage"; "pagerNextPage": "pagerNextPage"; "pagerPage": "pagerPage"; "pagerPageNumberInputTitle": "pagerPageNumberInputTitle"; "pagerItemsPerPage": "pagerItemsPerPage"; "pagerOf": "pagerOf"; "pagerItemsTotal": "pagerItemsTotal"; "selectPage": "selectPage"; "filter": "filter"; "filterEqOperator": "filterEqOperator"; "filterNotEqOperator": "filterNotEqOperator"; "filterIsNullOperator": "filterIsNullOperator"; "filterIsNotNullOperator": "filterIsNotNullOperator"; "filterIsEmptyOperator": "filterIsEmptyOperator"; "filterIsNotEmptyOperator": "filterIsNotEmptyOperator"; "filterStartsWithOperator": "filterStartsWithOperator"; "filterContainsOperator": "filterContainsOperator"; "filterNotContainsOperator": "filterNotContainsOperator"; "filterEndsWithOperator": "filterEndsWithOperator"; "filterGteOperator": "filterGteOperator"; "filterGtOperator": "filterGtOperator"; "filterLteOperator": "filterLteOperator"; "filterLtOperator": "filterLtOperator"; "filterIsTrue": "filterIsTrue"; "filterIsFalse": "filterIsFalse"; "filterBooleanAll": "filterBooleanAll"; "filterAfterOrEqualOperator": "filterAfterOrEqualOperator"; "filterAfterOperator": "filterAfterOperator"; "filterBeforeOperator": "filterBeforeOperator"; "filterBeforeOrEqualOperator": "filterBeforeOrEqualOperator"; "filterFilterButton": "filterFilterButton"; "filterClearButton": "filterClearButton"; "filterAndLogic": "filterAndLogic"; "filterOrLogic": "filterOrLogic"; "loading": "loading"; "columnMenu": "columnMenu"; "columns": "columns"; "lock": "lock"; "unlock": "unlock"; "sortable": "sortable"; "sortAscending": "sortAscending"; "sortDescending": "sortDescending"; "sortedAscending": "sortedAscending"; "sortedDescending": "sortedDescending"; "sortedDefault": "sortedDefault"; "columnsApply": "columnsApply"; "columnsReset": "columnsReset"; "topToolbarLabel": "topToolbarLabel"; "bottomToolbarLabel": "bottomToolbarLabel"; }, {}, never>;
244
+ static ɵdir: i0.ɵɵDirectiveDeclaration<Messages, never, never, { "groupPanelEmpty": "groupPanelEmpty"; "noRecords": "noRecords"; "pagerLabel": "pagerLabel"; "pagerFirstPage": "pagerFirstPage"; "pagerLastPage": "pagerLastPage"; "pagerPreviousPage": "pagerPreviousPage"; "pagerNextPage": "pagerNextPage"; "pagerPage": "pagerPage"; "pagerPageNumberInputTitle": "pagerPageNumberInputTitle"; "pagerItemsPerPage": "pagerItemsPerPage"; "pagerOf": "pagerOf"; "pagerItemsTotal": "pagerItemsTotal"; "selectPage": "selectPage"; "filter": "filter"; "filterEqOperator": "filterEqOperator"; "filterNotEqOperator": "filterNotEqOperator"; "filterIsNullOperator": "filterIsNullOperator"; "filterIsNotNullOperator": "filterIsNotNullOperator"; "filterIsEmptyOperator": "filterIsEmptyOperator"; "filterIsNotEmptyOperator": "filterIsNotEmptyOperator"; "filterStartsWithOperator": "filterStartsWithOperator"; "filterContainsOperator": "filterContainsOperator"; "filterNotContainsOperator": "filterNotContainsOperator"; "filterEndsWithOperator": "filterEndsWithOperator"; "filterGteOperator": "filterGteOperator"; "filterGtOperator": "filterGtOperator"; "filterLteOperator": "filterLteOperator"; "filterLtOperator": "filterLtOperator"; "filterIsTrue": "filterIsTrue"; "filterIsFalse": "filterIsFalse"; "filterBooleanAll": "filterBooleanAll"; "filterAfterOrEqualOperator": "filterAfterOrEqualOperator"; "filterAfterOperator": "filterAfterOperator"; "filterBeforeOperator": "filterBeforeOperator"; "filterBeforeOrEqualOperator": "filterBeforeOrEqualOperator"; "filterFilterButton": "filterFilterButton"; "filterClearButton": "filterClearButton"; "filterAndLogic": "filterAndLogic"; "filterOrLogic": "filterOrLogic"; "loading": "loading"; "columnMenu": "columnMenu"; "columns": "columns"; "lock": "lock"; "unlock": "unlock"; "sortable": "sortable"; "sortAscending": "sortAscending"; "sortDescending": "sortDescending"; "sortedAscending": "sortedAscending"; "sortedDescending": "sortedDescending"; "sortedDefault": "sortedDefault"; "columnsApply": "columnsApply"; "columnsReset": "columnsReset"; "topToolbarLabel": "topToolbarLabel"; "bottomToolbarLabel": "bottomToolbarLabel"; "dragRowHandleLabel": "dragRowHandleLabel"; }, {}, never>;
241
245
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@progress/kendo-angular-treelist",
3
- "version": "13.0.0-develop.2",
3
+ "version": "13.0.0-develop.4",
4
4
  "description": "Kendo UI TreeList for Angular - Display hierarchical data in an Angular tree grid view that supports sorting, filtering, paging, and much more.",
5
5
  "license": "SEE LICENSE IN LICENSE.md",
6
6
  "author": "Progress",
@@ -30,24 +30,25 @@
30
30
  "@progress/kendo-data-query": "^1.0.0",
31
31
  "@progress/kendo-drawing": "^1.17.2",
32
32
  "@progress/kendo-licensing": "^1.0.2",
33
- "@progress/kendo-angular-buttons": "13.0.0-develop.2",
34
- "@progress/kendo-angular-common": "13.0.0-develop.2",
35
- "@progress/kendo-angular-dateinputs": "13.0.0-develop.2",
36
- "@progress/kendo-angular-dropdowns": "13.0.0-develop.2",
37
- "@progress/kendo-angular-excel-export": "13.0.0-develop.2",
38
- "@progress/kendo-angular-icons": "13.0.0-develop.2",
39
- "@progress/kendo-angular-inputs": "13.0.0-develop.2",
40
- "@progress/kendo-angular-intl": "13.0.0-develop.2",
41
- "@progress/kendo-angular-l10n": "13.0.0-develop.2",
42
- "@progress/kendo-angular-label": "13.0.0-develop.2",
43
- "@progress/kendo-angular-pdf-export": "13.0.0-develop.2",
44
- "@progress/kendo-angular-popup": "13.0.0-develop.2",
33
+ "@progress/kendo-angular-buttons": "13.0.0-develop.4",
34
+ "@progress/kendo-angular-common": "13.0.0-develop.4",
35
+ "@progress/kendo-angular-dateinputs": "13.0.0-develop.4",
36
+ "@progress/kendo-angular-dropdowns": "13.0.0-develop.4",
37
+ "@progress/kendo-angular-excel-export": "13.0.0-develop.4",
38
+ "@progress/kendo-angular-icons": "13.0.0-develop.4",
39
+ "@progress/kendo-angular-inputs": "13.0.0-develop.4",
40
+ "@progress/kendo-angular-intl": "13.0.0-develop.4",
41
+ "@progress/kendo-angular-l10n": "13.0.0-develop.4",
42
+ "@progress/kendo-angular-label": "13.0.0-develop.4",
43
+ "@progress/kendo-angular-pdf-export": "13.0.0-develop.4",
44
+ "@progress/kendo-angular-popup": "13.0.0-develop.4",
45
+ "@progress/kendo-angular-utils": "13.0.0-develop.4",
45
46
  "rxjs": "^6.5.3 || ^7.0.0",
46
- "@progress/kendo-angular-listview": "13.0.0-develop.2"
47
+ "@progress/kendo-angular-listview": "13.0.0-develop.4"
47
48
  },
48
49
  "dependencies": {
49
50
  "tslib": "^2.3.1",
50
- "@progress/kendo-angular-schematics": "13.0.0-develop.2",
51
+ "@progress/kendo-angular-schematics": "13.0.0-develop.4",
51
52
  "@progress/kendo-common": "^0.2.0",
52
53
  "@progress/kendo-file-saver": "^1.0.0"
53
54
  },
@@ -8,16 +8,20 @@ import { ColumnComponent } from '../columns/column.component';
8
8
  import { FormGroup } from '@angular/forms';
9
9
  import { FocusGroup } from '../navigation/focus-group';
10
10
  import { SVGIcon } from '@progress/kendo-svg-icons';
11
+ import { LocalizationService } from "@progress/kendo-angular-l10n";
11
12
  import * as i0 from "@angular/core";
12
13
  /**
13
14
  * @hidden
14
15
  */
15
16
  export declare class CellComponent implements AfterContentChecked, DoCheck {
16
17
  private editService;
18
+ private localization;
17
19
  focusGroup: FocusGroup;
18
20
  get commandCellClass(): boolean;
19
21
  get isCheckboxColumn(): boolean;
20
22
  get textNoWrapClass(): boolean;
23
+ get dragHandleCellClass(): boolean;
24
+ get dragRowHandleLabel(): string;
21
25
  column: any;
22
26
  columnIndex: number;
23
27
  isNew: boolean;
@@ -40,11 +44,12 @@ export declare class CellComponent implements AfterContentChecked, DoCheck {
40
44
  get childColumns(): ColumnComponent[];
41
45
  caretAltDownIcon: SVGIcon;
42
46
  caretAltRightIcon: SVGIcon;
47
+ reorderIcon: SVGIcon;
43
48
  cellContext: any;
44
49
  private _templateContext;
45
50
  private _editTemplateContext;
46
51
  private _viewItem;
47
- constructor(editService: EditService, focusGroup: FocusGroup);
52
+ constructor(editService: EditService, localization: LocalizationService, focusGroup: FocusGroup);
48
53
  ngDoCheck(): void;
49
54
  ngAfterContentChecked(): void;
50
55
  private updateTemplateContext;
@@ -22,3 +22,7 @@ export declare const ICON_CLASS = "k-icon k-svg-icon";
22
22
  * @hidden
23
23
  */
24
24
  export declare const IGNORE_CONTAINER_CLASSES = "k-treelist-ignore-click";
25
+ /**
26
+ * @hidden
27
+ */
28
+ export declare const DRAG_HANDLE_CLASS = "k-drag-cell";
@@ -0,0 +1,16 @@
1
+ /**-----------------------------------------------------------------------------------------
2
+ * Copyright © 2023 Progress Software Corporation. All rights reserved.
3
+ * Licensed under commercial license. See LICENSE.md in the project root for more information
4
+ *-------------------------------------------------------------------------------------------*/
5
+ import { RowReorderService } from './row-reorder.service';
6
+ import { RowReorderEvent } from "./types";
7
+ import * as i0 from "@angular/core";
8
+ /**
9
+ * @hidden
10
+ */
11
+ export declare class FlatRowReorderService extends RowReorderService {
12
+ isOverChild(targetItem: any): boolean;
13
+ reorderRows(ev: RowReorderEvent, collection: Array<any>): void;
14
+ static ɵfac: i0.ɵɵFactoryDeclaration<FlatRowReorderService, never>;
15
+ static ɵprov: i0.ɵɵInjectableDeclaration<FlatRowReorderService>;
16
+ }
@@ -0,0 +1,16 @@
1
+ /**-----------------------------------------------------------------------------------------
2
+ * Copyright © 2023 Progress Software Corporation. All rights reserved.
3
+ * Licensed under commercial license. See LICENSE.md in the project root for more information
4
+ *-------------------------------------------------------------------------------------------*/
5
+ import { RowReorderService } from './row-reorder.service';
6
+ import { RowReorderEvent } from "./types";
7
+ import * as i0 from "@angular/core";
8
+ /**
9
+ * @hidden
10
+ */
11
+ export declare class HierarchicalRowReorderService extends RowReorderService {
12
+ isOverChild(targetItem: any): boolean;
13
+ reorderRows(ev: RowReorderEvent, collection: Array<any>, field?: string): void;
14
+ static ɵfac: i0.ɵɵFactoryDeclaration<HierarchicalRowReorderService, never>;
15
+ static ɵprov: i0.ɵɵInjectableDeclaration<HierarchicalRowReorderService>;
16
+ }
@@ -0,0 +1,61 @@
1
+ /**-----------------------------------------------------------------------------------------
2
+ * Copyright © 2023 Progress Software Corporation. All rights reserved.
3
+ * Licensed under commercial license. See LICENSE.md in the project root for more information
4
+ *-------------------------------------------------------------------------------------------*/
5
+ import { DragTargetPressEvent, DragTargetDragEvent, DropTargetEvent } from '@progress/kendo-angular-utils';
6
+ import { EventEmitter, Renderer2 } from '@angular/core';
7
+ import { RowReorderEvent } from './types';
8
+ import { SVGIcon } from '@progress/kendo-svg-icons';
9
+ import { ColumnList } from '../columns/column-list';
10
+ import * as i0 from "@angular/core";
11
+ /**
12
+ * @hidden
13
+ */
14
+ export declare class RowReorderService {
15
+ private renderer;
16
+ defaultSelectors: {
17
+ handle: string;
18
+ dragTarget: string;
19
+ dropTarget: string;
20
+ };
21
+ dragTarget: HTMLElement;
22
+ dropTarget: HTMLElement;
23
+ view: any;
24
+ bindingDirective: any;
25
+ private offsetY;
26
+ private dropIndicator;
27
+ private lastDropPosition;
28
+ private hintElement;
29
+ rowReorder: EventEmitter<RowReorderEvent>;
30
+ constructor(renderer: Renderer2);
31
+ press(ev: DragTargetPressEvent): void;
32
+ dragStart(): void;
33
+ drag(ev: DragTargetDragEvent): void;
34
+ dragEnter(ev: DropTargetEvent): void;
35
+ dragLeave(): void;
36
+ dragEnd(): void;
37
+ drop(): void;
38
+ get hintIcon(): string;
39
+ get hintSVGIcon(): SVGIcon;
40
+ getDefaultHintText(columns: ColumnList, data: any): string;
41
+ rowReorderArgs(dragRow: HTMLElement, dropRow: HTMLElement, data: Array<any>): RowReorderEvent;
42
+ isOverChild(_item: any): boolean;
43
+ reorderRows(_ev: RowReorderEvent, _collection: Array<any>, _field?: string): void;
44
+ get parentIdField(): string;
45
+ get idField(): string;
46
+ get childrenField(): string;
47
+ get data(): any[];
48
+ private getDragRowPerElement;
49
+ private createDropIndicator;
50
+ private destroyDropIndicator;
51
+ private decorateHint;
52
+ private positionDropIndicator;
53
+ private decorateDropIndicator;
54
+ private getDropPosition;
55
+ private updateDropIndicatorPosition;
56
+ private shouldHideDropIndicator;
57
+ private hide;
58
+ private show;
59
+ static ɵfac: i0.ɵɵFactoryDeclaration<RowReorderService, never>;
60
+ static ɵprov: i0.ɵɵInjectableDeclaration<RowReorderService>;
61
+ }
@@ -0,0 +1,39 @@
1
+ /**-----------------------------------------------------------------------------------------
2
+ * Copyright © 2023 Progress Software Corporation. All rights reserved.
3
+ * Licensed under commercial license. See LICENSE.md in the project root for more information
4
+ *-------------------------------------------------------------------------------------------*/
5
+ /**
6
+ * The arguments for the `rowReorder` event
7
+ */
8
+ export interface RowReorderEvent {
9
+ /**
10
+ * The rows that are currently dragged and the data associated with them.
11
+ */
12
+ draggedRows: DragRow[];
13
+ /**
14
+ * The row over which the dragged rows are dropped.
15
+ */
16
+ dropTargetRow?: DragRow;
17
+ /**
18
+ * The drop position of the dragged row.
19
+ */
20
+ dropPosition: DropPosition;
21
+ }
22
+ /**
23
+ * Represents a reorderable data row with an associated data item.
24
+ */
25
+ export interface DragRow {
26
+ /**
27
+ * The row data item.
28
+ */
29
+ dataItem: any;
30
+ /**
31
+ * The data row index.
32
+ */
33
+ rowIndex: number;
34
+ /**
35
+ * The row HTML element.
36
+ */
37
+ element: HTMLElement;
38
+ }
39
+ export declare type DropPosition = 'before' | 'after' | 'over' | 'forbidden';
@@ -0,0 +1,85 @@
1
+ /**-----------------------------------------------------------------------------------------
2
+ * Copyright © 2023 Progress Software Corporation. All rights reserved.
3
+ * Licensed under commercial license. See LICENSE.md in the project root for more information
4
+ *-------------------------------------------------------------------------------------------*/
5
+ /**
6
+ * @hidden
7
+ */
8
+ export declare const isNextSibling: (dropTarget: HTMLElement, dragTarget: HTMLElement) => boolean;
9
+ /**
10
+ * @hidden
11
+ */
12
+ export declare const isPreviousSibling: (dropTarget: HTMLElement, dragTarget: HTMLElement) => boolean;
13
+ /**
14
+ * @hidden
15
+ */
16
+ export declare function getOffset(element: any): {
17
+ top: number;
18
+ left: number;
19
+ };
20
+ /**
21
+ * @hidden
22
+ */
23
+ export declare const hintIcons: {
24
+ forbidden: string;
25
+ before: string;
26
+ after: string;
27
+ over: string;
28
+ };
29
+ /**
30
+ * @hidden
31
+ */
32
+ export declare const hintSVGIcons: {
33
+ forbidden: import("@progress/kendo-svg-icons").SVGIcon;
34
+ before: import("@progress/kendo-svg-icons").SVGIcon;
35
+ after: import("@progress/kendo-svg-icons").SVGIcon;
36
+ over: import("@progress/kendo-svg-icons").SVGIcon;
37
+ };
38
+ /**
39
+ * @hidden
40
+ */
41
+ export declare const dropPosition: {
42
+ forbidden: string;
43
+ before: string;
44
+ after: string;
45
+ over: string;
46
+ };
47
+ /**
48
+ * @hidden
49
+ */
50
+ export declare const hintStyles: {
51
+ zIndex: string;
52
+ display: string;
53
+ position: string;
54
+ };
55
+ /**
56
+ * @hidden
57
+ */
58
+ export declare const hintClasses: string[];
59
+ /**
60
+ * @hidden
61
+ */
62
+ export declare const dropIndicatorStyles: {
63
+ zIndex: string;
64
+ position: string;
65
+ };
66
+ /**
67
+ * @hidden
68
+ */
69
+ export declare const dropIndicatorClasses: string[];
70
+ /**
71
+ * @hidden
72
+ */
73
+ export declare const defaultSelectors: {
74
+ handle: string;
75
+ dragTarget: string;
76
+ dropTarget: string;
77
+ };
78
+ /**
79
+ * @hidden
80
+ */
81
+ export declare const rowIndexAttr = "data-treelist-view-index";
82
+ /**
83
+ * @hidden
84
+ */
85
+ export declare const findParent: (collection: Array<any>, searchItem: any, field: string) => any;
@@ -4,13 +4,13 @@ const schematics_1 = require("@angular-devkit/schematics");
4
4
  function default_1(options) {
5
5
  const finalOptions = Object.assign(Object.assign({}, options), { mainNgModule: 'TreeListModule', package: 'treelist', peerDependencies: {
6
6
  // peer dep of the dropdowns
7
- '@progress/kendo-angular-treeview': '13.0.0-develop.2',
7
+ '@progress/kendo-angular-treeview': '13.0.0-develop.4',
8
8
  // peer dependency of kendo-angular-inputs
9
- '@progress/kendo-angular-dialog': '13.0.0-develop.2',
9
+ '@progress/kendo-angular-dialog': '13.0.0-develop.4',
10
10
  // peer dependency of kendo-angular-icons
11
11
  '@progress/kendo-svg-icons': '^1.0.0',
12
12
  // peer dependency of kendo-angular-dateinputs
13
- '@progress/kendo-angular-navigation': '13.0.0-develop.2',
13
+ '@progress/kendo-angular-navigation': '13.0.0-develop.4',
14
14
  } });
15
15
  return (0, schematics_1.externalSchematic)('@progress/kendo-angular-schematics', 'ng-add', finalOptions);
16
16
  }
@@ -16,15 +16,16 @@ import * as i10 from "./columns/span-column.component";
16
16
  import * as i11 from "./column-resizing/table.directive";
17
17
  import * as i12 from "./rendering/common/loading.component";
18
18
  import * as i13 from "./columns/checkbox-column.component";
19
- import * as i14 from "@angular/common";
20
- import * as i15 from "@progress/kendo-angular-icons";
21
- import * as i16 from "@progress/kendo-angular-common";
19
+ import * as i14 from "./columns/rowreorder-column.component";
20
+ import * as i15 from "@angular/common";
21
+ import * as i16 from "@progress/kendo-angular-icons";
22
+ import * as i17 from "@progress/kendo-angular-common";
22
23
  /**
23
24
  * @hidden
24
25
  */
25
26
  export declare class SharedModule {
26
27
  static exports(): any[];
27
28
  static ɵfac: i0.ɵɵFactoryDeclaration<SharedModule, never>;
28
- static ɵmod: i0.ɵɵNgModuleDeclaration<SharedModule, [typeof i1.ColumnComponent, typeof i2.ColumnGroupComponent, typeof i3.LogicalCellDirective, typeof i4.LogicalRowDirective, typeof i5.FocusableDirective, typeof i6.ColGroupComponent, typeof i7.ResizableContainerDirective, typeof i8.TemplateContextDirective, typeof i9.FieldAccessorPipe, typeof i10.SpanColumnComponent, typeof i11.TableDirective, typeof i12.LoadingComponent, typeof i13.CheckboxColumnComponent], [typeof i14.CommonModule, typeof i15.IconsModule], [typeof i1.ColumnComponent, typeof i2.ColumnGroupComponent, typeof i3.LogicalCellDirective, typeof i4.LogicalRowDirective, typeof i5.FocusableDirective, typeof i6.ColGroupComponent, typeof i7.ResizableContainerDirective, typeof i8.TemplateContextDirective, typeof i9.FieldAccessorPipe, typeof i10.SpanColumnComponent, typeof i11.TableDirective, typeof i12.LoadingComponent, typeof i13.CheckboxColumnComponent, typeof i16.DraggableModule, typeof i15.IconsModule]>;
29
+ static ɵmod: i0.ɵɵNgModuleDeclaration<SharedModule, [typeof i1.ColumnComponent, typeof i2.ColumnGroupComponent, typeof i3.LogicalCellDirective, typeof i4.LogicalRowDirective, typeof i5.FocusableDirective, typeof i6.ColGroupComponent, typeof i7.ResizableContainerDirective, typeof i8.TemplateContextDirective, typeof i9.FieldAccessorPipe, typeof i10.SpanColumnComponent, typeof i11.TableDirective, typeof i12.LoadingComponent, typeof i13.CheckboxColumnComponent, typeof i14.RowReorderColumnComponent], [typeof i15.CommonModule, typeof i16.IconsModule], [typeof i1.ColumnComponent, typeof i2.ColumnGroupComponent, typeof i3.LogicalCellDirective, typeof i4.LogicalRowDirective, typeof i5.FocusableDirective, typeof i6.ColGroupComponent, typeof i7.ResizableContainerDirective, typeof i8.TemplateContextDirective, typeof i9.FieldAccessorPipe, typeof i10.SpanColumnComponent, typeof i11.TableDirective, typeof i12.LoadingComponent, typeof i13.CheckboxColumnComponent, typeof i14.RowReorderColumnComponent, typeof i17.DraggableModule, typeof i16.IconsModule]>;
29
30
  static ɵinj: i0.ɵɵInjectorDeclaration<SharedModule>;
30
31
  }
@@ -63,6 +63,9 @@ import { SelectableSettings } from './selection/selectable-settings';
63
63
  import { SelectionChangeEvent } from './selection/selection-change-event';
64
64
  import { IsSelectedFn } from './selection/is-selected';
65
65
  import { ContextService } from './common/provider.service';
66
+ import { RowReorderEvent } from './row-reordering/types';
67
+ import { RowReorderService } from './row-reordering/row-reorder.service';
68
+ import { DragTargetContainerDirective, DragTargetDataFn, DropTargetContainerDirective } from '@progress/kendo-angular-utils';
66
69
  import * as i0 from "@angular/core";
67
70
  /**
68
71
  * Represents the Kendo UI TreeList component for Angular.
@@ -99,6 +102,7 @@ export declare class TreeListComponent implements AfterContentInit, AfterViewIni
99
102
  selectionService: SelectionService;
100
103
  private localization;
101
104
  private ctx;
105
+ private rowReorderService;
102
106
  /**
103
107
  * An optional accessible description of the component.
104
108
  */
@@ -361,6 +365,12 @@ export declare class TreeListComponent implements AfterContentInit, AfterViewIni
361
365
  * Provides a callback that determines if the given row / cell is selected.
362
366
  */
363
367
  set isSelected(value: IsSelectedFn);
368
+ /**
369
+ * Enables the [row reordering]({% slug treelist_row_reordering %}) of the TreeList.
370
+ * @default false
371
+ */
372
+ set rowReorderable(value: boolean);
373
+ get rowReorderable(): boolean;
364
374
  /**
365
375
  * Fires when the TreeList selection is changed.
366
376
  */
@@ -467,6 +477,11 @@ export declare class TreeListComponent implements AfterContentInit, AfterViewIni
467
477
  * Used by the expand directive and the Gantt component.
468
478
  */
469
479
  expandStateChange: EventEmitter<ExpandEvent>;
480
+ /**
481
+ * Fires when the user drops the dragged row and reordering is performed.
482
+ * Emits the [RowReorderEvent]({% slug api_treelist_rowreorderevent %}).
483
+ */
484
+ rowReorder: EventEmitter<RowReorderEvent>;
470
485
  /**
471
486
  * @hidden
472
487
  */
@@ -499,6 +514,8 @@ export declare class TreeListComponent implements AfterContentInit, AfterViewIni
499
514
  header: any;
500
515
  footer: QueryList<any>;
501
516
  ariaRoot: ElementRef;
517
+ dragTargetContainer: DragTargetContainerDirective;
518
+ dropTargetContainer: DropTargetContainerDirective;
502
519
  get scrollbarWidth(): number;
503
520
  get headerPadding(): any;
504
521
  columnMenuOptions: any;
@@ -551,6 +568,7 @@ export declare class TreeListComponent implements AfterContentInit, AfterViewIni
551
568
  private subscriptions;
552
569
  private dataLoadedSubscription;
553
570
  private focusElementSubscription;
571
+ private rowReorderSubscription;
554
572
  private detachElementEventHandlers;
555
573
  private rtl;
556
574
  private shouldGenerateColumns;
@@ -566,7 +584,8 @@ export declare class TreeListComponent implements AfterContentInit, AfterViewIni
566
584
  private leafViewportColumns;
567
585
  private viewportColumns;
568
586
  private pageChangeTimeout;
569
- constructor(supportService: BrowserSupportService, wrapper: ElementRef, changeNotification: ChangeNotificationService, editService: EditService, filterService: FilterService, pdfService: PDFService, responsiveService: ResponsiveService, renderer: Renderer2, excelService: ExcelService, ngZone: NgZone, scrollSyncService: ScrollSyncService, domEvents: DomEventsService, columnResizingService: ColumnResizingService, changeDetectorRef: ChangeDetectorRef, columnReorderService: ColumnReorderService, columnInfoService: ColumnInfoService, navigationService: NavigationService, sortService: SortService, scrollRequestService: ScrollRequestService, expandStateService: ExpandStateService, optionChanges: OptionChangesService, selectionService: SelectionService, localization: LocalizationService, ctx: ContextService);
587
+ private _rowReorderable;
588
+ constructor(supportService: BrowserSupportService, wrapper: ElementRef, changeNotification: ChangeNotificationService, editService: EditService, filterService: FilterService, pdfService: PDFService, responsiveService: ResponsiveService, renderer: Renderer2, excelService: ExcelService, ngZone: NgZone, scrollSyncService: ScrollSyncService, domEvents: DomEventsService, columnResizingService: ColumnResizingService, changeDetectorRef: ChangeDetectorRef, columnReorderService: ColumnReorderService, columnInfoService: ColumnInfoService, navigationService: NavigationService, sortService: SortService, scrollRequestService: ScrollRequestService, expandStateService: ExpandStateService, optionChanges: OptionChangesService, selectionService: SelectionService, localization: LocalizationService, ctx: ContextService, rowReorderService: RowReorderService);
570
589
  /**
571
590
  * @hidden
572
591
  */
@@ -583,6 +602,26 @@ export declare class TreeListComponent implements AfterContentInit, AfterViewIni
583
602
  ngAfterContentInit(): void;
584
603
  ngOnInit(): void;
585
604
  ngOnDestroy(): void;
605
+ /**
606
+ * @hidden
607
+ */
608
+ handleReorderEvents(ev: any, evType: string): void;
609
+ /**
610
+ * @hidden
611
+ */
612
+ getDefaultSelectors(type: string): string;
613
+ /**
614
+ * @hidden
615
+ */
616
+ treeListData: DragTargetDataFn;
617
+ /**
618
+ * @hidden
619
+ */
620
+ getHintSettings(setting: string): any;
621
+ /**
622
+ * @hidden
623
+ */
624
+ get hintText(): string;
586
625
  /**
587
626
  * @hidden
588
627
  */
@@ -978,6 +1017,7 @@ export declare class TreeListComponent implements AfterContentInit, AfterViewIni
978
1017
  private dataLoaded;
979
1018
  private unsubscribeDataLoaded;
980
1019
  private loadColumns;
1020
+ private notifyReorderContainers;
981
1021
  static ɵfac: i0.ɵɵFactoryDeclaration<TreeListComponent, never>;
982
- static ɵcmp: i0.ɵɵComponentDeclaration<TreeListComponent, "kendo-treelist", ["kendoTreeList"], { "ariaLabel": "aria-label"; "data": "data"; "pageSize": "pageSize"; "height": "height"; "rowHeight": "rowHeight"; "skip": "skip"; "scrollable": "scrollable"; "sort": "sort"; "trackBy": "trackBy"; "filter": "filter"; "virtualColumns": "virtualColumns"; "filterable": "filterable"; "sortable": "sortable"; "pageable": "pageable"; "navigable": "navigable"; "navigatable": "navigatable"; "autoSize": "autoSize"; "rowClass": "rowClass"; "resizable": "resizable"; "reorderable": "reorderable"; "loading": "loading"; "columnMenu": "columnMenu"; "hideHeader": "hideHeader"; "idField": "idField"; "selectable": "selectable"; "isSelected": "isSelected"; "columnsRef": "columns"; "fetchChildren": "fetchChildren"; "hasChildren": "hasChildren"; "isExpanded": "isExpanded"; }, { "selectionChange": "selectionChange"; "filterChange": "filterChange"; "pageChange": "pageChange"; "sortChange": "sortChange"; "dataStateChange": "dataStateChange"; "edit": "edit"; "cancel": "cancel"; "save": "save"; "remove": "remove"; "add": "add"; "cellClose": "cellClose"; "cellClick": "cellClick"; "pdfExport": "pdfExport"; "excelExport": "excelExport"; "columnResize": "columnResize"; "columnReorder": "columnReorder"; "columnVisibilityChange": "columnVisibilityChange"; "columnLockedChange": "columnLockedChange"; "scrollBottom": "scrollBottom"; "contentScroll": "contentScroll"; "expandEvent": "expand"; "collapseEvent": "collapse"; "expandStateChange": "expandStateChange"; }, ["columns", "noRecordsTemplateChildren", "pagerTemplateChildren", "toolbarTemplateChildren", "columnMenuTemplates"], never>;
1022
+ static ɵcmp: i0.ɵɵComponentDeclaration<TreeListComponent, "kendo-treelist", ["kendoTreeList"], { "ariaLabel": "aria-label"; "data": "data"; "pageSize": "pageSize"; "height": "height"; "rowHeight": "rowHeight"; "skip": "skip"; "scrollable": "scrollable"; "sort": "sort"; "trackBy": "trackBy"; "filter": "filter"; "virtualColumns": "virtualColumns"; "filterable": "filterable"; "sortable": "sortable"; "pageable": "pageable"; "navigable": "navigable"; "navigatable": "navigatable"; "autoSize": "autoSize"; "rowClass": "rowClass"; "resizable": "resizable"; "reorderable": "reorderable"; "loading": "loading"; "columnMenu": "columnMenu"; "hideHeader": "hideHeader"; "idField": "idField"; "selectable": "selectable"; "isSelected": "isSelected"; "rowReorderable": "rowReorderable"; "columnsRef": "columns"; "fetchChildren": "fetchChildren"; "hasChildren": "hasChildren"; "isExpanded": "isExpanded"; }, { "selectionChange": "selectionChange"; "filterChange": "filterChange"; "pageChange": "pageChange"; "sortChange": "sortChange"; "dataStateChange": "dataStateChange"; "edit": "edit"; "cancel": "cancel"; "save": "save"; "remove": "remove"; "add": "add"; "cellClose": "cellClose"; "cellClick": "cellClick"; "pdfExport": "pdfExport"; "excelExport": "excelExport"; "columnResize": "columnResize"; "columnReorder": "columnReorder"; "columnVisibilityChange": "columnVisibilityChange"; "columnLockedChange": "columnLockedChange"; "scrollBottom": "scrollBottom"; "contentScroll": "contentScroll"; "expandEvent": "expand"; "collapseEvent": "collapse"; "expandStateChange": "expandStateChange"; "rowReorder": "rowReorder"; }, ["columns", "noRecordsTemplateChildren", "pagerTemplateChildren", "toolbarTemplateChildren", "columnMenuTemplates"], never>;
983
1023
  }