@progress/kendo-angular-treelist 13.0.0-develop.2 → 13.0.0-develop.21
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/binding-directives/base-binding.directive.d.ts +5 -1
- package/binding-directives/data-bound-tree-component.d.ts +9 -0
- package/binding-directives/flat-binding.directive.d.ts +14 -3
- package/binding-directives/hierarchy-binding.directive.d.ts +12 -3
- package/column-menu/column-chooser.component.d.ts +10 -6
- package/column-menu/column-menu-chooser.component.d.ts +6 -10
- package/column-menu/column-menu-filter.component.d.ts +6 -10
- package/column-menu/column-menu-item-content-template.directive.d.ts +1 -1
- package/column-menu/column-menu-item.component.d.ts +8 -6
- package/column-menu/column-menu-lock.component.d.ts +5 -11
- package/column-menu/column-menu-settings.interface.d.ts +7 -10
- package/column-menu/column-menu-sort.component.d.ts +5 -11
- package/column-menu/column-menu.component.d.ts +1 -1
- package/column-menu/column-menu.service.d.ts +1 -1
- package/column-resizing/column-resize.interface.d.ts +1 -1
- package/columns/checkbox-column.component.d.ts +1 -1
- package/columns/column-base.d.ts +4 -0
- package/columns/column-group.component.d.ts +9 -6
- package/columns/column.component.d.ts +16 -66
- package/columns/command-column.component.d.ts +13 -15
- package/columns/rowreorder-column.component.d.ts +19 -0
- package/columns/span-column.component.d.ts +10 -81
- package/data/change-event-args.interface.d.ts +2 -2
- package/data/data.collection.d.ts +6 -0
- package/dragdrop/column-reorder-config.d.ts +1 -1
- package/editing/add-command.directive.d.ts +1 -1
- package/editing/cancel-command.directive.d.ts +1 -1
- package/editing/edit-command.directive.d.ts +1 -1
- package/editing/edit-event-args.interface.d.ts +1 -1
- package/editing/edit-template.directive.d.ts +11 -0
- package/editing/remove-command.directive.d.ts +1 -1
- package/editing/remove-event-args.interface.d.ts +1 -1
- package/editing/save-command.directive.d.ts +1 -1
- package/editing/save-event-args.interface.d.ts +1 -1
- package/esm2020/binding-directives/base-binding.directive.mjs +9 -3
- package/esm2020/binding-directives/flat-binding.directive.mjs +56 -6
- package/esm2020/binding-directives/hierarchy-binding.directive.mjs +46 -6
- package/esm2020/column-menu/column-chooser.component.mjs +10 -6
- package/esm2020/column-menu/column-menu-chooser.component.mjs +8 -12
- package/esm2020/column-menu/column-menu-filter.component.mjs +6 -10
- package/esm2020/column-menu/column-menu-item-content-template.directive.mjs +1 -1
- package/esm2020/column-menu/column-menu-item.component.mjs +9 -7
- package/esm2020/column-menu/column-menu-lock.component.mjs +5 -11
- package/esm2020/column-menu/column-menu-sort.component.mjs +5 -11
- package/esm2020/column-menu/column-menu.component.mjs +2 -2
- package/esm2020/column-menu/column-menu.service.mjs +1 -1
- package/esm2020/columns/checkbox-column.component.mjs +1 -1
- package/esm2020/columns/column-base.mjs +4 -0
- package/esm2020/columns/column-group.component.mjs +9 -6
- package/esm2020/columns/column.component.mjs +16 -39
- package/esm2020/columns/command-column.component.mjs +13 -15
- package/esm2020/columns/rowreorder-column.component.mjs +47 -0
- package/esm2020/columns/span-column.component.mjs +10 -81
- package/esm2020/data/data.collection.mjs +41 -28
- package/esm2020/editing/add-command.directive.mjs +2 -2
- package/esm2020/editing/base-command.directive.mjs +1 -1
- package/esm2020/editing/cancel-command.directive.mjs +2 -2
- package/esm2020/editing/edit-command.directive.mjs +2 -2
- package/esm2020/editing/edit-template.directive.mjs +11 -0
- package/esm2020/editing/remove-command.directive.mjs +2 -2
- package/esm2020/editing/save-command.directive.mjs +2 -2
- package/esm2020/excel/excel-command.directive.mjs +2 -2
- package/esm2020/filtering/cell/autocomplete-filter-cell.component.mjs +12 -1
- package/esm2020/filtering/cell/boolean-filter-cell.component.mjs +29 -12
- package/esm2020/filtering/cell/date-filter-cell.component.mjs +23 -12
- package/esm2020/filtering/cell/filter-cell-operators.component.mjs +36 -1
- package/esm2020/filtering/cell/filter-cell-wrapper.component.mjs +3 -1
- package/esm2020/filtering/cell/numeric-filter-cell.component.mjs +25 -13
- package/esm2020/filtering/cell/string-filter-cell.component.mjs +26 -14
- package/esm2020/filtering/date-filter.component.mjs +6 -1
- package/esm2020/filtering/filter-input.directive.mjs +29 -3
- package/esm2020/filtering/menu/boolean-filter-menu.component.mjs +33 -19
- package/esm2020/filtering/menu/date-filter-menu-input.component.mjs +1 -1
- package/esm2020/filtering/menu/date-filter-menu.component.mjs +12 -12
- package/esm2020/filtering/menu/filter-menu.component.mjs +1 -1
- package/esm2020/filtering/menu/numeric-filter-menu-input.component.mjs +1 -1
- package/esm2020/filtering/menu/numeric-filter-menu.component.mjs +12 -12
- package/esm2020/filtering/menu/string-filter-menu-input.component.mjs +19 -8
- package/esm2020/filtering/menu/string-filter-menu.component.mjs +15 -0
- package/esm2020/filtering/numeric-filter.component.mjs +4 -1
- package/esm2020/filtering/operators/after-eq-filter-operator.component.mjs +2 -5
- package/esm2020/filtering/operators/after-filter-operator.component.mjs +2 -5
- package/esm2020/filtering/operators/before-eq-filter-operator.component.mjs +2 -5
- package/esm2020/filtering/operators/before-filter-operator.component.mjs +3 -6
- package/esm2020/filtering/operators/contains-filter-operator.component.mjs +1 -4
- package/esm2020/filtering/operators/ends-with-filter-operator.component.mjs +1 -4
- package/esm2020/filtering/operators/eq-filter-operator.component.mjs +1 -4
- package/esm2020/filtering/operators/gt-filter-operator.component.mjs +1 -4
- package/esm2020/filtering/operators/gte-filter-operator.component.mjs +1 -4
- package/esm2020/filtering/operators/is-empty-filter-operator.component.mjs +1 -4
- package/esm2020/filtering/operators/is-not-empty-filter-operator.component.mjs +1 -4
- package/esm2020/filtering/operators/is-not-null-filter-operator.component.mjs +1 -4
- package/esm2020/filtering/operators/isnull-filter-operator.component.mjs +1 -4
- package/esm2020/filtering/operators/lt-filter-operator.component.mjs +2 -5
- package/esm2020/filtering/operators/lte-filter-operator.component.mjs +1 -4
- package/esm2020/filtering/operators/neq-filter-operator.component.mjs +1 -4
- package/esm2020/filtering/operators/not-contains-filter-operator.component.mjs +1 -4
- package/esm2020/filtering/operators/starts-with-filter-operator.component.mjs +1 -4
- package/esm2020/filtering/string-filter.component.mjs +2 -1
- package/esm2020/index.mjs +2 -0
- package/esm2020/localization/custom-messages.component.mjs +1 -1
- package/esm2020/localization/messages.mjs +13 -1
- package/esm2020/package-metadata.mjs +2 -2
- package/esm2020/pager/pager-element.component.mjs +17 -0
- package/esm2020/pager/pager-next-buttons.component.mjs +8 -11
- package/esm2020/pager/pager-numeric-buttons.component.mjs +1 -1
- package/esm2020/pager/pager-page-sizes.component.mjs +1 -1
- package/esm2020/pager/pager-prev-buttons.component.mjs +8 -11
- package/esm2020/pager/pager-template.directive.mjs +1 -1
- package/esm2020/pdf/pdf-command.directive.mjs +2 -2
- package/esm2020/pdf/pdf-margin.component.mjs +9 -0
- package/esm2020/rendering/cell-template.directive.mjs +1 -1
- package/esm2020/rendering/cell.component.mjs +73 -20
- package/esm2020/rendering/common/spacer.component.mjs +1 -1
- package/esm2020/rendering/constants.mjs +4 -0
- package/esm2020/rendering/header/header.component.mjs +6 -1
- package/esm2020/rendering/list.component.mjs +20 -18
- package/esm2020/rendering/table-body.component.mjs +5 -3
- package/esm2020/row-reordering/flat-reorder.service.mjs +48 -0
- package/esm2020/row-reordering/hierarchical-reorder.service.mjs +55 -0
- package/esm2020/row-reordering/row-reorder.service.mjs +220 -0
- package/esm2020/row-reordering/types.mjs +5 -0
- package/esm2020/row-reordering/utils.mjs +129 -0
- package/esm2020/shared.module.mjs +8 -3
- package/esm2020/treelist.component.mjs +229 -321
- package/esm2020/treelist.module.mjs +71 -66
- package/excel/excel-command.directive.d.ts +1 -1
- package/excel/excel-export-data.interface.d.ts +1 -1
- package/excel/excel.component.d.ts +9 -8
- package/fesm2015/progress-kendo-angular-treelist.mjs +1434 -832
- package/fesm2020/progress-kendo-angular-treelist.mjs +1426 -833
- package/filtering/cell/autocomplete-filter-cell.component.d.ts +4 -0
- package/filtering/cell/boolean-filter-cell.component.d.ts +19 -11
- package/filtering/cell/date-filter-cell.component.d.ts +15 -11
- package/filtering/cell/filter-cell-operators.component.d.ts +29 -1
- package/filtering/cell/numeric-filter-cell.component.d.ts +17 -12
- package/filtering/cell/string-filter-cell.component.d.ts +16 -11
- package/filtering/date-filter.component.d.ts +7 -11
- package/filtering/filter-input.directive.d.ts +7 -1
- package/filtering/menu/boolean-filter-menu.component.d.ts +19 -13
- package/filtering/menu/date-filter-menu.component.d.ts +12 -12
- package/filtering/menu/numeric-filter-menu.component.d.ts +12 -12
- package/filtering/menu/string-filter-menu-input.component.d.ts +4 -0
- package/filtering/menu/string-filter-menu.component.d.ts +15 -0
- package/filtering/numeric-filter.component.d.ts +4 -1
- package/filtering/operators/after-eq-filter-operator.component.d.ts +4 -0
- package/filtering/operators/after-filter-operator.component.d.ts +4 -0
- package/filtering/operators/before-eq-filter-operator.component.d.ts +4 -0
- package/filtering/operators/before-filter-operator.component.d.ts +4 -0
- package/filtering/operators/contains-filter-operator.component.d.ts +1 -4
- package/filtering/operators/ends-with-filter-operator.component.d.ts +1 -4
- package/filtering/operators/eq-filter-operator.component.d.ts +1 -4
- package/filtering/operators/gte-filter-operator.component.d.ts +1 -4
- package/filtering/operators/is-empty-filter-operator.component.d.ts +1 -4
- package/filtering/operators/is-not-empty-filter-operator.component.d.ts +1 -4
- package/filtering/operators/is-not-null-filter-operator.component.d.ts +1 -4
- package/filtering/operators/isnull-filter-operator.component.d.ts +1 -4
- package/filtering/operators/lt-filter-operator.component.d.ts +4 -0
- package/filtering/operators/neq-filter-operator.component.d.ts +1 -4
- package/filtering/operators/not-contains-filter-operator.component.d.ts +1 -4
- package/filtering/operators/starts-with-filter-operator.component.d.ts +1 -4
- package/filtering/string-filter.component.d.ts +2 -1
- package/index.d.ts +2 -0
- package/localization/custom-messages.component.d.ts +1 -1
- package/localization/messages.d.ts +42 -2
- package/navigation/navigation-cell.interface.d.ts +1 -4
- package/navigation/navigation-row.interface.d.ts +1 -4
- package/package.json +16 -15
- package/pager/pager-element.component.d.ts +9 -0
- package/pager/pager-next-buttons.component.d.ts +0 -3
- package/pager/pager-numeric-buttons.component.d.ts +1 -1
- package/pager/pager-prev-buttons.component.d.ts +0 -3
- package/pager/pager-settings.d.ts +1 -15
- package/pager/pager-template.directive.d.ts +1 -1
- package/pdf/pdf-command.directive.d.ts +1 -1
- package/pdf/pdf-margin.component.d.ts +9 -0
- package/rendering/cell-template.directive.d.ts +1 -1
- package/rendering/cell.component.d.ts +10 -1
- package/rendering/common/spacer.component.d.ts +1 -1
- package/rendering/constants.d.ts +4 -0
- package/rendering/header/header.component.d.ts +1 -0
- package/row-reordering/flat-reorder.service.d.ts +16 -0
- package/row-reordering/hierarchical-reorder.service.d.ts +16 -0
- package/row-reordering/row-reorder.service.d.ts +61 -0
- package/row-reordering/types.d.ts +39 -0
- package/row-reordering/utils.d.ts +85 -0
- package/schematics/ngAdd/index.js +3 -3
- package/scrolling/content-scroll-event.d.ts +1 -1
- package/scrolling/scroll-bottom-event.d.ts +1 -1
- package/scrolling/scroll-request.service.d.ts +6 -0
- package/selection/selectable-settings.d.ts +5 -15
- package/selection/selectable.directive.d.ts +1 -1
- package/selection/selection-change-event.d.ts +1 -1
- package/shared.module.d.ts +5 -4
- package/treelist.component.d.ts +66 -289
- package/treelist.module.d.ts +68 -66
package/treelist.component.d.ts
CHANGED
|
@@ -63,16 +63,18 @@ 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.
|
|
69
72
|
*
|
|
70
|
-
*
|
|
71
|
-
*
|
|
72
|
-
*
|
|
73
|
-
*
|
|
74
|
-
*
|
|
75
|
-
* {% endmeta %}
|
|
73
|
+
* @example
|
|
74
|
+
* ```html
|
|
75
|
+
* <kendo-treelist [kendoTreeListFlatBinding]="data" ...></kendo-treelist>
|
|
76
|
+
* ```
|
|
77
|
+
*
|
|
76
78
|
*/
|
|
77
79
|
export declare class TreeListComponent implements AfterContentInit, AfterViewInit, OnDestroy, OnChanges, OnInit {
|
|
78
80
|
private supportService;
|
|
@@ -99,6 +101,7 @@ export declare class TreeListComponent implements AfterContentInit, AfterViewIni
|
|
|
99
101
|
selectionService: SelectionService;
|
|
100
102
|
private localization;
|
|
101
103
|
private ctx;
|
|
104
|
+
private rowReorderService;
|
|
102
105
|
/**
|
|
103
106
|
* An optional accessible description of the component.
|
|
104
107
|
*/
|
|
@@ -122,8 +125,9 @@ export declare class TreeListComponent implements AfterContentInit, AfterViewIni
|
|
|
122
125
|
*/
|
|
123
126
|
height: number;
|
|
124
127
|
/**
|
|
125
|
-
*
|
|
128
|
+
* Represent the actual height of each TreeList row (`tr`) element in the DOM.
|
|
126
129
|
* Required by the [virtual scrolling functionality]({% slug scrollmmodes_treelist %}).
|
|
130
|
+
* Set the `rowHeight` option to the exact pixels as the height of the `tr` element appears in the DOM.
|
|
127
131
|
*/
|
|
128
132
|
rowHeight: number;
|
|
129
133
|
/**
|
|
@@ -134,10 +138,7 @@ export declare class TreeListComponent implements AfterContentInit, AfterViewIni
|
|
|
134
138
|
set skip(value: number | null | undefined);
|
|
135
139
|
/**
|
|
136
140
|
* Defines the scroll mode used by the TreeList.
|
|
137
|
-
*
|
|
138
|
-
* The available options are:
|
|
139
|
-
* - `none`—Renders no scrollbar.
|
|
140
|
-
* - `scrollable`—The default scroll mode. It requires the setting of the `height` option.
|
|
141
|
+
* @default 'scrollable'
|
|
141
142
|
*/
|
|
142
143
|
scrollable: ScrollMode;
|
|
143
144
|
/**
|
|
@@ -150,45 +151,7 @@ export declare class TreeListComponent implements AfterContentInit, AfterViewIni
|
|
|
150
151
|
*
|
|
151
152
|
* By default, the TreeList tracks changes by the index of the data item.
|
|
152
153
|
* Edited rows are tracked by reference.
|
|
153
|
-
*
|
|
154
|
-
* for example, when you implement editing with immutable data items.
|
|
155
|
-
*
|
|
156
|
-
* The following example demonstrates how to track items only by index.
|
|
157
|
-
*
|
|
158
|
-
* @example
|
|
159
|
-
* ```ts
|
|
160
|
-
* import { Component } from '@angular/core';
|
|
161
|
-
* import { TreeListItem } from '@progress/kendo-angular-treelist';
|
|
162
|
-
*
|
|
163
|
-
* _@Component({
|
|
164
|
-
* selector: 'my-app',
|
|
165
|
-
* template: `
|
|
166
|
-
* <kendo-treelist [data]="treelistData" [trackBy]="trackBy">
|
|
167
|
-
* </kendo-treelist>
|
|
168
|
-
* `
|
|
169
|
-
* })
|
|
170
|
-
* class AppComponent {
|
|
171
|
-
* public treelistData: any[] = products;
|
|
172
|
-
*
|
|
173
|
-
* public trackBy(index: number, item: TreeListItem): any {
|
|
174
|
-
* console.log(item);
|
|
175
|
-
* return index;
|
|
176
|
-
* }
|
|
177
|
-
* }
|
|
178
|
-
*
|
|
179
|
-
* const products = [{
|
|
180
|
-
* "ProductID": 1,
|
|
181
|
-
* "ProductName": "Chai",
|
|
182
|
-
* "UnitPrice": 18.0000,
|
|
183
|
-
* "Discontinued": true
|
|
184
|
-
* }, {
|
|
185
|
-
* "ProductID": 2,
|
|
186
|
-
* "ProductName": "Chang",
|
|
187
|
-
* "UnitPrice": 19.0000,
|
|
188
|
-
* "Discontinued": false
|
|
189
|
-
* }
|
|
190
|
-
* ];
|
|
191
|
-
* ```
|
|
154
|
+
*
|
|
192
155
|
*/
|
|
193
156
|
trackBy: TrackByFunction<TreeListItem>;
|
|
194
157
|
/**
|
|
@@ -197,6 +160,7 @@ export declare class TreeListComponent implements AfterContentInit, AfterViewIni
|
|
|
197
160
|
filter: CompositeFilterDescriptor | null | undefined;
|
|
198
161
|
/**
|
|
199
162
|
* If set to `true`, the treelist will render only the columns in the current viewport.
|
|
163
|
+
* @default false
|
|
200
164
|
*/
|
|
201
165
|
virtualColumns: boolean;
|
|
202
166
|
/**
|
|
@@ -227,18 +191,12 @@ export declare class TreeListComponent implements AfterContentInit, AfterViewIni
|
|
|
227
191
|
/**
|
|
228
192
|
* Configures the pager of the TreeList ([see example]({% slug paging_treelist %})).
|
|
229
193
|
*
|
|
230
|
-
* The available options are:
|
|
231
|
-
* - `buttonCount: Number`—Sets the maximum numeric buttons count before the buttons are collapsed. Defaults to `10`.
|
|
232
|
-
* - `info: Boolean`—Toggles the information about the current page and the total number of records. Defaults to `true`.
|
|
233
|
-
* - `type: PagerType`—Accepts the `numeric` (buttons with numbers) and `input` (input for typing the page number) values. Defaults to `'numeric'`.
|
|
234
|
-
* - `pageSizes: Boolean` or `Array<number>`—Shows a menu for selecting the page size. Defaults to `false`.
|
|
235
|
-
* - `previousNext: Boolean`—Toggles the **Previous** and **Next** buttons. Defaults to `true`.
|
|
236
|
-
* - `responsive: Boolean`—Toggles the built-in responsive behavior of the Pager. Defaults to `true`.
|
|
237
194
|
*/
|
|
238
195
|
pageable: PagerSettings | boolean;
|
|
239
196
|
/**
|
|
240
197
|
* If set to `true`, the user can use dedicated shortcuts to interact with the TreeList.
|
|
241
198
|
* By default, navigation is disabled and the TreeList content is accessible in the normal tab sequence.
|
|
199
|
+
* @default false
|
|
242
200
|
*/
|
|
243
201
|
navigable: boolean;
|
|
244
202
|
/**
|
|
@@ -257,53 +215,13 @@ export declare class TreeListComponent implements AfterContentInit, AfterViewIni
|
|
|
257
215
|
* Columns with `autoSize` set to `false` are excluded.
|
|
258
216
|
* To dynamically update the column width to match the new content,
|
|
259
217
|
* refer to [this example]({% slug resizing_columns_treelist %}).
|
|
218
|
+
*
|
|
219
|
+
* @default false
|
|
260
220
|
*/
|
|
261
221
|
autoSize: boolean;
|
|
262
222
|
/**
|
|
263
223
|
* Defines a function that is executed for every data row in the component.
|
|
264
224
|
*
|
|
265
|
-
* @example
|
|
266
|
-
* ```ts
|
|
267
|
-
* import { Component, ViewEncapsulation } from '@angular/core';
|
|
268
|
-
* import { RowClassArgs } from '@progress/kendo-angular-treelist';
|
|
269
|
-
*
|
|
270
|
-
* _@Component({
|
|
271
|
-
* selector: 'my-app',
|
|
272
|
-
* encapsulation: ViewEncapsulation.None,
|
|
273
|
-
* styles: [`
|
|
274
|
-
* .k-treelist tr.even { background-color: #f45c42; }
|
|
275
|
-
* .k-treelist tr.odd { background-color: #41f4df; }
|
|
276
|
-
* `],
|
|
277
|
-
* template: `
|
|
278
|
-
* <kendo-treelist [data]="treelistData" [rowClass]="rowCallback">
|
|
279
|
-
* </kendo-treelist>
|
|
280
|
-
* `
|
|
281
|
-
* })
|
|
282
|
-
* class AppComponent {
|
|
283
|
-
* public treelistData: any[] = products;
|
|
284
|
-
*
|
|
285
|
-
* public rowCallback(context: RowClassArgs) {
|
|
286
|
-
* const isEven = context.index % 2 === 0;
|
|
287
|
-
* return {
|
|
288
|
-
* even: isEven,
|
|
289
|
-
* odd: !isEven
|
|
290
|
-
* };
|
|
291
|
-
* }
|
|
292
|
-
* }
|
|
293
|
-
*
|
|
294
|
-
* const products = [{
|
|
295
|
-
* "ProductID": 1,
|
|
296
|
-
* "ProductName": "Chai",
|
|
297
|
-
* "UnitPrice": 18.0000,
|
|
298
|
-
* "Discontinued": true
|
|
299
|
-
* }, {
|
|
300
|
-
* "ProductID": 2,
|
|
301
|
-
* "ProductName": "Chang",
|
|
302
|
-
* "UnitPrice": 19.0000,
|
|
303
|
-
* "Discontinued": false
|
|
304
|
-
* }
|
|
305
|
-
* ];
|
|
306
|
-
* ```
|
|
307
225
|
*/
|
|
308
226
|
set rowClass(fn: RowClassFn);
|
|
309
227
|
get rowClass(): RowClassFn;
|
|
@@ -344,7 +262,9 @@ export declare class TreeListComponent implements AfterContentInit, AfterViewIni
|
|
|
344
262
|
/**
|
|
345
263
|
* Specifies if the header of the treelist will be hidden. The header is visible by default.
|
|
346
264
|
*
|
|
347
|
-
*
|
|
265
|
+
* The header includes column headers and the [filter row]({% slug filtering_treelist %}#toc-filter-row).
|
|
266
|
+
*
|
|
267
|
+
* @default false
|
|
348
268
|
*/
|
|
349
269
|
hideHeader: boolean;
|
|
350
270
|
/**
|
|
@@ -358,9 +278,15 @@ export declare class TreeListComponent implements AfterContentInit, AfterViewIni
|
|
|
358
278
|
*/
|
|
359
279
|
set selectable(value: boolean | SelectableSettings);
|
|
360
280
|
/**
|
|
361
|
-
* Provides a callback that determines if the given row
|
|
281
|
+
* Provides a callback that determines if the given row or cell is selected.
|
|
362
282
|
*/
|
|
363
283
|
set isSelected(value: IsSelectedFn);
|
|
284
|
+
/**
|
|
285
|
+
* Enables the [row reordering]({% slug treelist_row_reordering %}) of the TreeList.
|
|
286
|
+
* @default false
|
|
287
|
+
*/
|
|
288
|
+
set rowReorderable(value: boolean);
|
|
289
|
+
get rowReorderable(): boolean;
|
|
364
290
|
/**
|
|
365
291
|
* Fires when the TreeList selection is changed.
|
|
366
292
|
*/
|
|
@@ -467,6 +393,11 @@ export declare class TreeListComponent implements AfterContentInit, AfterViewIni
|
|
|
467
393
|
* Used by the expand directive and the Gantt component.
|
|
468
394
|
*/
|
|
469
395
|
expandStateChange: EventEmitter<ExpandEvent>;
|
|
396
|
+
/**
|
|
397
|
+
* Fires when the user drops the dragged row and reordering is performed.
|
|
398
|
+
* Emits the [RowReorderEvent]({% slug api_treelist_rowreorderevent %}).
|
|
399
|
+
*/
|
|
400
|
+
rowReorder: EventEmitter<RowReorderEvent>;
|
|
470
401
|
/**
|
|
471
402
|
* @hidden
|
|
472
403
|
*/
|
|
@@ -499,6 +430,8 @@ export declare class TreeListComponent implements AfterContentInit, AfterViewIni
|
|
|
499
430
|
header: any;
|
|
500
431
|
footer: QueryList<any>;
|
|
501
432
|
ariaRoot: ElementRef;
|
|
433
|
+
dragTargetContainer: DragTargetContainerDirective;
|
|
434
|
+
dropTargetContainer: DropTargetContainerDirective;
|
|
502
435
|
get scrollbarWidth(): number;
|
|
503
436
|
get headerPadding(): any;
|
|
504
437
|
columnMenuOptions: any;
|
|
@@ -551,6 +484,7 @@ export declare class TreeListComponent implements AfterContentInit, AfterViewIni
|
|
|
551
484
|
private subscriptions;
|
|
552
485
|
private dataLoadedSubscription;
|
|
553
486
|
private focusElementSubscription;
|
|
487
|
+
private rowReorderSubscription;
|
|
554
488
|
private detachElementEventHandlers;
|
|
555
489
|
private rtl;
|
|
556
490
|
private shouldGenerateColumns;
|
|
@@ -566,7 +500,8 @@ export declare class TreeListComponent implements AfterContentInit, AfterViewIni
|
|
|
566
500
|
private leafViewportColumns;
|
|
567
501
|
private viewportColumns;
|
|
568
502
|
private pageChangeTimeout;
|
|
569
|
-
|
|
503
|
+
private _rowReorderable;
|
|
504
|
+
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
505
|
/**
|
|
571
506
|
* @hidden
|
|
572
507
|
*/
|
|
@@ -583,6 +518,26 @@ export declare class TreeListComponent implements AfterContentInit, AfterViewIni
|
|
|
583
518
|
ngAfterContentInit(): void;
|
|
584
519
|
ngOnInit(): void;
|
|
585
520
|
ngOnDestroy(): void;
|
|
521
|
+
/**
|
|
522
|
+
* @hidden
|
|
523
|
+
*/
|
|
524
|
+
handleReorderEvents(ev: any, evType: string): void;
|
|
525
|
+
/**
|
|
526
|
+
* @hidden
|
|
527
|
+
*/
|
|
528
|
+
getDefaultSelectors(type: string): string;
|
|
529
|
+
/**
|
|
530
|
+
* @hidden
|
|
531
|
+
*/
|
|
532
|
+
treeListData: DragTargetDataFn;
|
|
533
|
+
/**
|
|
534
|
+
* @hidden
|
|
535
|
+
*/
|
|
536
|
+
getHintSettings(setting: string): any;
|
|
537
|
+
/**
|
|
538
|
+
* @hidden
|
|
539
|
+
*/
|
|
540
|
+
get hintText(): string;
|
|
586
541
|
/**
|
|
587
542
|
* @hidden
|
|
588
543
|
*/
|
|
@@ -654,7 +609,7 @@ export declare class TreeListComponent implements AfterContentInit, AfterViewIni
|
|
|
654
609
|
* Exports the TreeList element to a Drawing [`Group`]({% slug api_kendo-drawing_group %}) by using the `kendo-treelist-pdf` component options.
|
|
655
610
|
* ([see example]({% slug pdfexport_treelist %}#toc-exporting-multiple-treelists-to-the-same-pdf)).
|
|
656
611
|
*
|
|
657
|
-
* @return {Promise}
|
|
612
|
+
* @return {Promise} A promise that will be resolved with the Drawing `Group`.
|
|
658
613
|
*/
|
|
659
614
|
drawPDF(): Promise<any>;
|
|
660
615
|
/**
|
|
@@ -666,64 +621,8 @@ export declare class TreeListComponent implements AfterContentInit, AfterViewIni
|
|
|
666
621
|
* so that the whole text fits without wrapping. This method expects the TreeList
|
|
667
622
|
* to be resizable (set `resizable` to `true`).
|
|
668
623
|
* Makes sense to execute this method only
|
|
669
|
-
* after the TreeList is already populated with data.
|
|
670
|
-
*
|
|
671
|
-
* @example
|
|
672
|
-
* ```ts
|
|
673
|
-
* _@Component({
|
|
674
|
-
* selector: 'my-app',
|
|
675
|
-
* template: `
|
|
676
|
-
* <kendo-treelist
|
|
677
|
-
* #treelist
|
|
678
|
-
* [data]="treelistData"
|
|
679
|
-
* [resizable]="true"
|
|
680
|
-
* style="height: 300px">
|
|
681
|
-
* <ng-template kendoTreeListToolbarTemplate>
|
|
682
|
-
* <button kendoButton (click)="treelist.autoFitColumn(groupColumn)">
|
|
683
|
-
* Auto-fit the group column
|
|
684
|
-
* </button>
|
|
685
|
-
* </ng-template>
|
|
686
|
-
* <kendo-treelist-column-group #groupColumn title="Product Info">
|
|
687
|
-
* <kendo-treelist-column
|
|
688
|
-
* field="ProductID"
|
|
689
|
-
* [width]="50"
|
|
690
|
-
* [minResizableWidth]="30"
|
|
691
|
-
* title="ID">
|
|
692
|
-
* </kendo-treelist-column>
|
|
693
|
-
*
|
|
694
|
-
* <kendo-treelist-column
|
|
695
|
-
* field="ProductName"
|
|
696
|
-
* title="Product Name">
|
|
697
|
-
* </kendo-treelist-column>
|
|
698
|
-
* </kendo-treelist-column-group>
|
|
699
|
-
*
|
|
700
|
-
* <kendo-treelist-column
|
|
701
|
-
* field="UnitPrice"
|
|
702
|
-
* title="Unit Price"
|
|
703
|
-
* [width]="180"
|
|
704
|
-
* filter="numeric"
|
|
705
|
-
* format="{0:c}">
|
|
706
|
-
* </kendo-treelist-column>
|
|
707
|
-
* </kendo-treelist>
|
|
708
|
-
* `
|
|
709
|
-
* })
|
|
710
|
-
* class AppComponent {
|
|
711
|
-
* public treelistData: any[] = products;
|
|
712
|
-
* }
|
|
713
|
-
*
|
|
714
|
-
* const products = [{
|
|
715
|
-
* "ProductID": 1,
|
|
716
|
-
* "ProductName": "Chai",
|
|
717
|
-
* "UnitPrice": 18.0000,
|
|
718
|
-
* "Discontinued": true
|
|
719
|
-
* }, {
|
|
720
|
-
* "ProductID": 2,
|
|
721
|
-
* "ProductName": "Chang",
|
|
722
|
-
* "UnitPrice": 19.0000,
|
|
723
|
-
* "Discontinued": false
|
|
724
|
-
* }
|
|
725
|
-
* ];
|
|
726
|
-
* ```
|
|
624
|
+
* after the TreeList is already populated with data. [See example](slug:resizing_columns_treelist#toc-auto-fitting-the-content).
|
|
625
|
+
*
|
|
727
626
|
*/
|
|
728
627
|
autoFitColumn(column: ColumnBase): void;
|
|
729
628
|
/**
|
|
@@ -731,69 +630,7 @@ export declare class TreeListComponent implements AfterContentInit, AfterViewIni
|
|
|
731
630
|
* If no columns are specified, `autoFitColumns` is applied to all columns.
|
|
732
631
|
*
|
|
733
632
|
* This method requires the TreeList to be resizable (set `resizable` to `true`).
|
|
734
|
-
*
|
|
735
|
-
* @example
|
|
736
|
-
* ```ts
|
|
737
|
-
* _@Component({
|
|
738
|
-
* selector: 'my-app',
|
|
739
|
-
* template: `
|
|
740
|
-
* <kendo-treelist
|
|
741
|
-
* #treelist
|
|
742
|
-
* [data]="treelistData"
|
|
743
|
-
* [resizable]="true"
|
|
744
|
-
* style="height: 300px">
|
|
745
|
-
* <ng-template kendoTreeListToolbarTemplate>
|
|
746
|
-
* <button kendoButton (click)="treelist.autoFitColumns([firstColumn, lastColumn])">
|
|
747
|
-
* Auto-fit the first and last column
|
|
748
|
-
* </button>
|
|
749
|
-
* <button kendoButton (click)="treelist.autoFitColumns()">
|
|
750
|
-
* Auto-fit all columns
|
|
751
|
-
* </button>
|
|
752
|
-
* </ng-template>
|
|
753
|
-
* <kendo-treelist-column-group title="Product Info">
|
|
754
|
-
* <kendo-treelist-column
|
|
755
|
-
* #firstColumn
|
|
756
|
-
* field="ProductID"
|
|
757
|
-
* [width]="50"
|
|
758
|
-
* [minResizableWidth]="30"
|
|
759
|
-
* title="ID">
|
|
760
|
-
* </kendo-treelist-column>
|
|
761
|
-
*
|
|
762
|
-
* <kendo-treelist-column
|
|
763
|
-
* field="ProductName"
|
|
764
|
-
* title="Product Name"
|
|
765
|
-
* >
|
|
766
|
-
* </kendo-treelist-column>
|
|
767
|
-
* </kendo-treelist-column-group>
|
|
768
|
-
*
|
|
769
|
-
* <kendo-treelist-column
|
|
770
|
-
* #lastColumn
|
|
771
|
-
* field="UnitPrice"
|
|
772
|
-
* title="Unit Price"
|
|
773
|
-
* [width]="180"
|
|
774
|
-
* filter="numeric"
|
|
775
|
-
* format="{0:c}">
|
|
776
|
-
* </kendo-treelist-column>
|
|
777
|
-
* </kendo-treelist>
|
|
778
|
-
* `
|
|
779
|
-
* })
|
|
780
|
-
* class AppComponent {
|
|
781
|
-
* public treelistData: any[] = products;
|
|
782
|
-
* }
|
|
783
|
-
*
|
|
784
|
-
* const products = [{
|
|
785
|
-
* "ProductID": 1,
|
|
786
|
-
* "ProductName": "Chai",
|
|
787
|
-
* "UnitPrice": 18.0000,
|
|
788
|
-
* "Discontinued": true
|
|
789
|
-
* }, {
|
|
790
|
-
* "ProductID": 2,
|
|
791
|
-
* "ProductName": "Chang",
|
|
792
|
-
* "UnitPrice": 19.0000,
|
|
793
|
-
* "Discontinued": false
|
|
794
|
-
* }
|
|
795
|
-
* ];
|
|
796
|
-
* ```
|
|
633
|
+
* [See example](slug:resizing_columns_treelist#toc-auto-fitting-the-content).
|
|
797
634
|
*/
|
|
798
635
|
autoFitColumns(columns?: Array<ColumnBase> | QueryList<ColumnBase>): void;
|
|
799
636
|
/**
|
|
@@ -821,9 +658,9 @@ export declare class TreeListComponent implements AfterContentInit, AfterViewIni
|
|
|
821
658
|
/**
|
|
822
659
|
* Focuses the cell with the specified row and column index.
|
|
823
660
|
*
|
|
824
|
-
* The row index is based on the logical structure of the TreeList and does not correspond to the data item index
|
|
825
|
-
*
|
|
826
|
-
*
|
|
661
|
+
* The row index is based on the logical structure of the TreeList and does not correspond to the data item index.
|
|
662
|
+
* The row indexing is absolute and does not change with paging.
|
|
663
|
+
* Header rows are included, starting at index 0.
|
|
827
664
|
*
|
|
828
665
|
* If the TreeList is configured for scrolling, including virtual scrolling, the scroll position will be updated.
|
|
829
666
|
* If the row is not present on the current page, the method will have no effect.
|
|
@@ -863,67 +700,6 @@ export declare class TreeListComponent implements AfterContentInit, AfterViewIni
|
|
|
863
700
|
* @param {number} destIndex - The new position of the column.
|
|
864
701
|
* @param {ColumnReorderConfig} options - Additional options.
|
|
865
702
|
*
|
|
866
|
-
* @example
|
|
867
|
-
* ```ts
|
|
868
|
-
* _@Component({
|
|
869
|
-
* selector: 'my-app',
|
|
870
|
-
* template: `
|
|
871
|
-
* <kendo-treelist
|
|
872
|
-
* #treelist
|
|
873
|
-
* [data]="treelistData"
|
|
874
|
-
* [reorderable]="true"
|
|
875
|
-
* style="height: 300px">
|
|
876
|
-
* <ng-template kendoTreeListToolbarTemplate>
|
|
877
|
-
* <button kendoButton
|
|
878
|
-
* (click)="treelist.reorderColumn(groupColumn, 2, { before: true })">
|
|
879
|
-
* Move the group column before the last one.
|
|
880
|
-
* </button>
|
|
881
|
-
* </ng-template>
|
|
882
|
-
* <kendo-treelist-column-group #groupColumn title="Product Info">
|
|
883
|
-
* <kendo-treelist-column
|
|
884
|
-
* field="ProductID"
|
|
885
|
-
* [width]="50"
|
|
886
|
-
* title="ID">
|
|
887
|
-
* </kendo-treelist-column>
|
|
888
|
-
*
|
|
889
|
-
* <kendo-treelist-column
|
|
890
|
-
* field="ProductName"
|
|
891
|
-
* title="Product Name">
|
|
892
|
-
* </kendo-treelist-column>
|
|
893
|
-
* </kendo-treelist-column-group>
|
|
894
|
-
*
|
|
895
|
-
* <kendo-treelist-column
|
|
896
|
-
* field="UnitPrice"
|
|
897
|
-
* title="Unit Price"
|
|
898
|
-
* [width]="180"
|
|
899
|
-
* format="{0:c}">
|
|
900
|
-
* </kendo-treelist-column>
|
|
901
|
-
*
|
|
902
|
-
* <kendo-treelist-column
|
|
903
|
-
* field="Discontinued"
|
|
904
|
-
* title="Discontinued"
|
|
905
|
-
* [width]="100">
|
|
906
|
-
* </kendo-treelist-column>
|
|
907
|
-
* </kendo-treelist>
|
|
908
|
-
* `
|
|
909
|
-
* })
|
|
910
|
-
* class AppComponent {
|
|
911
|
-
* public treelistData: any[] = products;
|
|
912
|
-
* }
|
|
913
|
-
*
|
|
914
|
-
* const products = [{
|
|
915
|
-
* "ProductID": 1,
|
|
916
|
-
* "ProductName": "Chai",
|
|
917
|
-
* "UnitPrice": 18.0000,
|
|
918
|
-
* "Discontinued": true
|
|
919
|
-
* }, {
|
|
920
|
-
* "ProductID": 2,
|
|
921
|
-
* "ProductName": "Chang",
|
|
922
|
-
* "UnitPrice": 19.0000,
|
|
923
|
-
* "Discontinued": false
|
|
924
|
-
* }
|
|
925
|
-
* ];
|
|
926
|
-
* ```
|
|
927
703
|
*/
|
|
928
704
|
reorderColumn(source: ColumnBase, destIndex: number, options?: ColumnReorderConfig): void;
|
|
929
705
|
/**
|
|
@@ -978,6 +754,7 @@ export declare class TreeListComponent implements AfterContentInit, AfterViewIni
|
|
|
978
754
|
private dataLoaded;
|
|
979
755
|
private unsubscribeDataLoaded;
|
|
980
756
|
private loadColumns;
|
|
757
|
+
private notifyReorderContainers;
|
|
981
758
|
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>;
|
|
759
|
+
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
760
|
}
|