@progress/kendo-angular-treelist 13.0.0-develop.1 → 13.0.0-develop.10
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/boolean-filter-cell.component.mjs +11 -11
- package/esm2020/filtering/cell/date-filter-cell.component.mjs +11 -11
- package/esm2020/filtering/cell/filter-cell-operators.component.mjs +15 -0
- package/esm2020/filtering/cell/numeric-filter-cell.component.mjs +13 -12
- package/esm2020/filtering/cell/string-filter-cell.component.mjs +14 -13
- package/esm2020/filtering/date-filter.component.mjs +6 -1
- package/esm2020/filtering/menu/boolean-filter-menu.component.mjs +11 -12
- 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.component.mjs +12 -12
- 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 +3 -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 +68 -20
- package/esm2020/rendering/common/spacer.component.mjs +1 -1
- package/esm2020/rendering/constants.mjs +4 -0
- package/esm2020/rendering/header/header.component.mjs +1 -1
- 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 +185 -311
- 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 +1215 -792
- package/fesm2020/progress-kendo-angular-treelist.mjs +1205 -791
- package/filtering/cell/boolean-filter-cell.component.d.ts +11 -11
- package/filtering/cell/date-filter-cell.component.d.ts +11 -11
- package/filtering/cell/filter-cell-operators.component.d.ts +15 -0
- package/filtering/cell/numeric-filter-cell.component.d.ts +13 -12
- package/filtering/cell/string-filter-cell.component.d.ts +12 -11
- package/filtering/date-filter.component.d.ts +7 -11
- package/filtering/menu/boolean-filter-menu.component.d.ts +11 -12
- 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.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 +6 -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 +9 -1
- package/rendering/common/spacer.component.d.ts +1 -1
- package/rendering/constants.d.ts +4 -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
|
@@ -6,9 +6,12 @@ import { SimpleChange, OnInit, OnDestroy, OnChanges, DoCheck } from '@angular/co
|
|
|
6
6
|
import { State, CompositeFilterDescriptor, SortDescriptor } from '@progress/kendo-data-query';
|
|
7
7
|
import { DataBoundTreeComponent } from './data-bound-tree-component';
|
|
8
8
|
import { DataStateChangeEvent } from '../data/change-event-args.interface';
|
|
9
|
+
import { RowReorderEvent } from '../row-reordering/types';
|
|
10
|
+
import { RowReorderService } from './../row-reordering/row-reorder.service';
|
|
9
11
|
import * as i0 from "@angular/core";
|
|
10
12
|
export declare abstract class BaseBindingDirective implements OnInit, OnDestroy, OnChanges, DoCheck {
|
|
11
13
|
protected component: DataBoundTreeComponent;
|
|
14
|
+
protected rowReorderService?: RowReorderService;
|
|
12
15
|
/**
|
|
13
16
|
* Defines the descriptors by which the data will be sorted.
|
|
14
17
|
*/
|
|
@@ -28,7 +31,7 @@ export declare abstract class BaseBindingDirective implements OnInit, OnDestroy,
|
|
|
28
31
|
protected originalData: any[];
|
|
29
32
|
protected _aggregate: any;
|
|
30
33
|
private subscriptions;
|
|
31
|
-
constructor(component: DataBoundTreeComponent);
|
|
34
|
+
constructor(component: DataBoundTreeComponent, rowReorderService?: RowReorderService);
|
|
32
35
|
/**
|
|
33
36
|
* @hidden
|
|
34
37
|
*/
|
|
@@ -54,6 +57,7 @@ export declare abstract class BaseBindingDirective implements OnInit, OnDestroy,
|
|
|
54
57
|
rebind(): void;
|
|
55
58
|
protected abstract getChildren(item?: any): any;
|
|
56
59
|
protected abstract itemKey(item: any): any;
|
|
60
|
+
protected onRowReorder(_event: RowReorderEvent): void;
|
|
57
61
|
protected applyState({ sort, filter }: State): void;
|
|
58
62
|
protected fetchChildren(item?: any): any;
|
|
59
63
|
protected hasChildren(item: any): boolean;
|
|
@@ -6,6 +6,7 @@ import { EventEmitter } from '@angular/core';
|
|
|
6
6
|
import { CompositeFilterDescriptor, SortDescriptor } from '@progress/kendo-data-query';
|
|
7
7
|
import { Observable } from 'rxjs';
|
|
8
8
|
import { LocalEditService } from '../editing-directives/local-edit.service';
|
|
9
|
+
import { RowReorderEvent } from '../row-reordering/types';
|
|
9
10
|
import * as i0 from "@angular/core";
|
|
10
11
|
/**
|
|
11
12
|
* @hidden
|
|
@@ -41,6 +42,14 @@ export declare abstract class DataBoundTreeComponent {
|
|
|
41
42
|
* Fires when the data state of the component is changed.
|
|
42
43
|
*/
|
|
43
44
|
abstract dataStateChange: EventEmitter<any>;
|
|
45
|
+
/**
|
|
46
|
+
* Fires when row reordering is performed.
|
|
47
|
+
*/
|
|
48
|
+
abstract rowReorder?: EventEmitter<RowReorderEvent>;
|
|
49
|
+
/**
|
|
50
|
+
* Specifies if row reordering is enabled.
|
|
51
|
+
*/
|
|
52
|
+
abstract rowReorderable?: boolean;
|
|
44
53
|
/**
|
|
45
54
|
* Holds the local edit service implementation, configured by the data-binding directives and accessed by the editing ones.
|
|
46
55
|
*/
|
|
@@ -4,6 +4,8 @@
|
|
|
4
4
|
*-------------------------------------------------------------------------------------------*/
|
|
5
5
|
import { BaseBindingDirective } from './base-binding.directive';
|
|
6
6
|
import { DataBoundTreeComponent } from './data-bound-tree-component';
|
|
7
|
+
import { RowReorderService } from '../row-reordering/row-reorder.service';
|
|
8
|
+
import { RowReorderEvent } from '../row-reordering/types';
|
|
7
9
|
import * as i0 from "@angular/core";
|
|
8
10
|
/**
|
|
9
11
|
* A directive which binds the TreeList to an array of objects by using
|
|
@@ -15,14 +17,17 @@ import * as i0 from "@angular/core";
|
|
|
15
17
|
*/
|
|
16
18
|
export declare class FlatBindingDirective extends BaseBindingDirective {
|
|
17
19
|
protected component: DataBoundTreeComponent;
|
|
20
|
+
protected rowReorderService: RowReorderService;
|
|
18
21
|
/**
|
|
19
22
|
* The name of the field which contains the identifier of the parent node.
|
|
20
23
|
*/
|
|
21
24
|
set parentIdField(value: string);
|
|
25
|
+
get parentIdField(): string;
|
|
22
26
|
/**
|
|
23
27
|
* The name of the field which contains the unique identifier of the node.
|
|
24
28
|
*/
|
|
25
29
|
set idField(value: string);
|
|
30
|
+
get idField(): string;
|
|
26
31
|
/**
|
|
27
32
|
* The array of data which will be used to populate the TreeList.
|
|
28
33
|
*/
|
|
@@ -31,9 +36,15 @@ export declare class FlatBindingDirective extends BaseBindingDirective {
|
|
|
31
36
|
idSetter: any;
|
|
32
37
|
parentIdGetter: any;
|
|
33
38
|
parentIdSetter: any;
|
|
34
|
-
constructor(component: DataBoundTreeComponent);
|
|
35
|
-
|
|
39
|
+
constructor(component: DataBoundTreeComponent, rowReorderService: RowReorderService);
|
|
40
|
+
private _parentIdField;
|
|
41
|
+
private _idField;
|
|
42
|
+
/**
|
|
43
|
+
* @hidden
|
|
44
|
+
*/
|
|
45
|
+
getChildren(item?: any): any;
|
|
36
46
|
protected itemKey(item: any): void;
|
|
37
|
-
|
|
47
|
+
protected onRowReorder(ev: RowReorderEvent): void;
|
|
48
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<FlatBindingDirective, [null, { optional: true; }]>;
|
|
38
49
|
static ɵdir: i0.ɵɵDirectiveDeclaration<FlatBindingDirective, "[kendoTreeListFlatBinding]", ["kendoTreeListFlatBinding"], { "parentIdField": "parentIdField"; "idField": "idField"; "data": "kendoTreeListFlatBinding"; }, {}, never>;
|
|
39
50
|
}
|
|
@@ -4,6 +4,8 @@
|
|
|
4
4
|
*-------------------------------------------------------------------------------------------*/
|
|
5
5
|
import { BaseBindingDirective } from './base-binding.directive';
|
|
6
6
|
import { DataBoundTreeComponent } from './data-bound-tree-component';
|
|
7
|
+
import { RowReorderService } from '../row-reordering/row-reorder.service';
|
|
8
|
+
import { RowReorderEvent } from '../row-reordering/types';
|
|
7
9
|
import * as i0 from "@angular/core";
|
|
8
10
|
/**
|
|
9
11
|
* A directive which binds the TreeList to a tree of objects.
|
|
@@ -14,19 +16,26 @@ import * as i0 from "@angular/core";
|
|
|
14
16
|
*/
|
|
15
17
|
export declare class HierarchyBindingDirective extends BaseBindingDirective {
|
|
16
18
|
protected component: DataBoundTreeComponent;
|
|
19
|
+
protected rowReorderService: RowReorderService;
|
|
17
20
|
/**
|
|
18
21
|
* The name of the field which holds the child data items of the node.
|
|
19
22
|
*/
|
|
20
23
|
set childrenField(value: string);
|
|
24
|
+
get childrenField(): string;
|
|
21
25
|
/**
|
|
22
26
|
* The array of data which will be used to populate the TreeList.
|
|
23
27
|
*/
|
|
24
28
|
data: any[];
|
|
25
29
|
childrenGetter: any;
|
|
26
30
|
childrenSetter: any;
|
|
27
|
-
constructor(component: DataBoundTreeComponent);
|
|
28
|
-
|
|
31
|
+
constructor(component: DataBoundTreeComponent, rowReorderService: RowReorderService);
|
|
32
|
+
private _childrenField;
|
|
33
|
+
/**
|
|
34
|
+
* @hidden
|
|
35
|
+
*/
|
|
36
|
+
getChildren(item?: any): any[];
|
|
29
37
|
protected itemKey(item: any): void;
|
|
30
|
-
|
|
38
|
+
protected onRowReorder(ev: RowReorderEvent): void;
|
|
39
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<HierarchyBindingDirective, [null, { optional: true; }]>;
|
|
31
40
|
static ɵdir: i0.ɵɵDirectiveDeclaration<HierarchyBindingDirective, "[kendoTreeListHierarchyBinding]", ["kendoTreeListHierarchyBinding"], { "childrenField": "childrenField"; "data": "kendoTreeListHierarchyBinding"; }, {}, never>;
|
|
32
41
|
}
|
|
@@ -13,12 +13,14 @@ import * as i0 from "@angular/core";
|
|
|
13
13
|
* Represents the component for selecting columns in the TreeList. To enable the user to show or hide columns,
|
|
14
14
|
* add the component inside a [`ToolbarTemplate`]({% slug api_treelist_toolbartemplatedirective %}) directive.
|
|
15
15
|
*
|
|
16
|
-
*
|
|
17
|
-
*
|
|
18
|
-
*
|
|
19
|
-
*
|
|
20
|
-
*
|
|
21
|
-
*
|
|
16
|
+
* @example
|
|
17
|
+
* ```html
|
|
18
|
+
* <kendo-treelist ...>
|
|
19
|
+
* <ng-template kendoTreeListToolbarTemplate>
|
|
20
|
+
* <kendo-treelist-column-chooser> </kendo-treelist-column-chooser>
|
|
21
|
+
* </ng-template>
|
|
22
|
+
* </kendo-treelist>
|
|
23
|
+
* ```
|
|
22
24
|
*/
|
|
23
25
|
export declare class ColumnChooserComponent implements OnDestroy {
|
|
24
26
|
localization: LocalizationService;
|
|
@@ -29,10 +31,12 @@ export declare class ColumnChooserComponent implements OnDestroy {
|
|
|
29
31
|
private changeDetector;
|
|
30
32
|
/**
|
|
31
33
|
* Specifies if the changes in the visibility of the column will be immediately applied.
|
|
34
|
+
* @default false
|
|
32
35
|
*/
|
|
33
36
|
autoSync: boolean;
|
|
34
37
|
/**
|
|
35
38
|
* Specifies if all columns can be hidden.
|
|
39
|
+
* @default true
|
|
36
40
|
*/
|
|
37
41
|
allowHideAll: boolean;
|
|
38
42
|
get columns(): any[];
|
|
@@ -9,18 +9,13 @@ import { ColumnMenuItemBase } from './column-menu-item-base';
|
|
|
9
9
|
import { SVGIcon } from '@progress/kendo-svg-icons';
|
|
10
10
|
import * as i0 from "@angular/core";
|
|
11
11
|
/**
|
|
12
|
-
* Represents the
|
|
13
|
-
* inside a [`ColumnMenuTemplate`]({% slug api_treelist_columnmenutemplatedirective %}) directive.
|
|
12
|
+
* Represents the column-menu item for selecting columns in the TreeList. [See example](slug:columnmenu_treelist#toc-column-chooser-item).
|
|
14
13
|
*
|
|
15
|
-
*
|
|
16
|
-
*
|
|
14
|
+
* The component can be placed inside a [`ColumnMenuTemplate`]({% slug api_treelist_columnmenutemplatedirective %}) directive.
|
|
15
|
+
*
|
|
16
|
+
* To register the component as a known column menu item, set the [`ColumnMenuService`]({% slug api_treelist_columnmenuservice %})
|
|
17
|
+
* that is passed by the template to the service input of the `kendo-treelist-columnmenu-chooser` component.
|
|
17
18
|
*
|
|
18
|
-
* {% meta height:500 %}
|
|
19
|
-
* {% embed_file column-menu/template-chooser/app.component.ts preview %}
|
|
20
|
-
* {% embed_file column-menu/template-chooser/app.module.ts %}
|
|
21
|
-
* {% embed_file shared/main.ts %}
|
|
22
|
-
* {% embed_file shared/employees.ts %}
|
|
23
|
-
* {% endmeta %}
|
|
24
19
|
*/
|
|
25
20
|
export declare class ColumnMenuChooserComponent extends ColumnMenuItemBase {
|
|
26
21
|
localization: LocalizationService;
|
|
@@ -36,6 +31,7 @@ export declare class ColumnMenuChooserComponent extends ColumnMenuItemBase {
|
|
|
36
31
|
collapse: EventEmitter<any>;
|
|
37
32
|
/**
|
|
38
33
|
* Specifies if the content is expanded.
|
|
34
|
+
* @default false
|
|
39
35
|
*/
|
|
40
36
|
expanded: boolean;
|
|
41
37
|
/**
|
|
@@ -8,18 +8,13 @@ import { ColumnMenuItemBase } from './column-menu-item-base';
|
|
|
8
8
|
import { SVGIcon } from '@progress/kendo-svg-icons';
|
|
9
9
|
import * as i0 from "@angular/core";
|
|
10
10
|
/**
|
|
11
|
-
* Represents the
|
|
12
|
-
* inside a [`ColumnMenuTemplate`]({% slug api_treelist_columnmenutemplatedirective %}) directive.
|
|
11
|
+
* Represents the column-menu item for editing column filters in the TreeList.
|
|
13
12
|
*
|
|
14
|
-
*
|
|
15
|
-
*
|
|
13
|
+
* The component can be placed inside a [`ColumnMenuTemplate`]({% slug api_treelist_columnmenutemplatedirective %}) directive.
|
|
14
|
+
*
|
|
15
|
+
* To register the component as a known column menu item, set the [`ColumnMenuService`]({% slug api_treelist_columnmenuservice %})
|
|
16
|
+
* that is passed by the template to the service input of the `kendo-treelist-columnmenu-filter` component.
|
|
16
17
|
*
|
|
17
|
-
* {% meta height:500 %}
|
|
18
|
-
* {% embed_file column-menu/template-filter/app.component.ts preview %}
|
|
19
|
-
* {% embed_file column-menu/template-filter/app.module.ts %}
|
|
20
|
-
* {% embed_file shared/main.ts %}
|
|
21
|
-
* {% embed_file shared/employees.ts %}
|
|
22
|
-
* {% endmeta %}
|
|
23
18
|
*/
|
|
24
19
|
export declare class ColumnMenuFilterComponent extends ColumnMenuItemBase {
|
|
25
20
|
localization: LocalizationService;
|
|
@@ -33,6 +28,7 @@ export declare class ColumnMenuFilterComponent extends ColumnMenuItemBase {
|
|
|
33
28
|
collapse: EventEmitter<any>;
|
|
34
29
|
/**
|
|
35
30
|
* Specifies if the content is expanded.
|
|
31
|
+
* @default false
|
|
36
32
|
*/
|
|
37
33
|
expanded: boolean;
|
|
38
34
|
/**
|
|
@@ -13,7 +13,7 @@ import * as i0 from "@angular/core";
|
|
|
13
13
|
*
|
|
14
14
|
* @example
|
|
15
15
|
* ```html
|
|
16
|
-
* <kendo-treelist
|
|
16
|
+
* <kendo-treelist ...>
|
|
17
17
|
* <kendo-treelist-column field="ProductName">
|
|
18
18
|
* <ng-template kendoTreeListColumnMenuTemplate>
|
|
19
19
|
* <kendo-treelist-columnmenu-item text="Item Text" [expanded]="true">
|
|
@@ -10,12 +10,14 @@ import * as i0 from "@angular/core";
|
|
|
10
10
|
* Represents an item that can be placed inside a
|
|
11
11
|
* [`ColumnMenuTemplate`]({% slug api_treelist_columnmenutemplatedirective %}) directive.
|
|
12
12
|
*
|
|
13
|
-
*
|
|
14
|
-
*
|
|
15
|
-
*
|
|
16
|
-
*
|
|
17
|
-
*
|
|
18
|
-
*
|
|
13
|
+
* * @example
|
|
14
|
+
* ```html
|
|
15
|
+
* <kendo-treelist ...>
|
|
16
|
+
* <ng-template kendoTreeListColumnMenuTemplate let-service="service" let-column="column">
|
|
17
|
+
* <kendo-treelist-columnmenu-item text="Fit column"></kendo-treelist-columnmenu-item>
|
|
18
|
+
* </ng-template>
|
|
19
|
+
* </kendo-treelist>
|
|
20
|
+
* ```
|
|
19
21
|
*/
|
|
20
22
|
export declare class ColumnMenuItemComponent implements OnChanges {
|
|
21
23
|
/**
|
|
@@ -9,19 +9,13 @@ import { ColumnMenuItemBase } from './column-menu-item-base';
|
|
|
9
9
|
import { SVGIcon } from '@progress/kendo-svg-icons';
|
|
10
10
|
import * as i0 from "@angular/core";
|
|
11
11
|
/**
|
|
12
|
-
* Represents
|
|
13
|
-
* [`ColumnMenuTemplate`]({% slug api_treelist_columnmenutemplatedirective %}) directive.
|
|
14
|
-
* Allows the user to lock or unlock the columns.
|
|
12
|
+
* Represents the column-menu item that allows the user to lock or unlock columns.
|
|
15
13
|
*
|
|
16
|
-
*
|
|
17
|
-
*
|
|
14
|
+
* The componnt can be placed inside a [`ColumnMenuTemplate`]({% slug api_treelist_columnmenutemplatedirective %}) directive.
|
|
15
|
+
*
|
|
16
|
+
* To register the component as a known column menu item, set the [`ColumnMenuService`]({% slug api_treelist_columnmenuservice %})
|
|
17
|
+
* that is passed by the template to the service input of the `kendo-treelist-columnmenu-lock` component.
|
|
18
18
|
*
|
|
19
|
-
* {% meta height:500 %}
|
|
20
|
-
* {% embed_file column-menu/template-lock/app.component.ts preview %}
|
|
21
|
-
* {% embed_file column-menu/template-lock/app.module.ts %}
|
|
22
|
-
* {% embed_file shared/main.ts %}
|
|
23
|
-
* {% embed_file shared/employees.ts %}
|
|
24
|
-
* {% endmeta %}
|
|
25
19
|
*/
|
|
26
20
|
export declare class ColumnMenuLockComponent extends ColumnMenuItemBase {
|
|
27
21
|
private localization;
|
|
@@ -5,35 +5,32 @@
|
|
|
5
5
|
/**
|
|
6
6
|
* The settings of the column menu in the TreeList component.
|
|
7
7
|
*
|
|
8
|
-
*
|
|
9
|
-
*
|
|
10
|
-
*
|
|
11
|
-
*
|
|
12
|
-
*
|
|
13
|
-
*
|
|
8
|
+
* @example
|
|
9
|
+
* ```html
|
|
10
|
+
* <kendo-treelist ...
|
|
11
|
+
* [columnMenu]="{ columnChooser: false }">
|
|
12
|
+
* ...
|
|
13
|
+
* </kendo-treelist>
|
|
14
|
+
* ```
|
|
14
15
|
*/
|
|
15
16
|
export interface ColumnMenuSettings {
|
|
16
17
|
/**
|
|
17
18
|
* Specifies if the columns can be sorted in the column menu.
|
|
18
19
|
* If [sorting]({% slug api_treelist_treelistcomponent %}#toc-sortable) is enabled, defaults to `true`.
|
|
19
|
-
* @default true
|
|
20
20
|
*/
|
|
21
21
|
sort?: boolean;
|
|
22
22
|
/**
|
|
23
23
|
* Specifies if the columns can be filtered in the column menu.
|
|
24
24
|
* If [filtering]({% slug api_treelist_treelistcomponent %}#toc-filterable) is enabled, defaults to `true`.
|
|
25
|
-
* @default true
|
|
26
25
|
*/
|
|
27
26
|
filter?: boolean;
|
|
28
27
|
/**
|
|
29
28
|
* Specifies if the item for column selection will be displayed in the column menu.
|
|
30
|
-
* @default true
|
|
31
29
|
*/
|
|
32
30
|
columnChooser?: boolean;
|
|
33
31
|
/**
|
|
34
32
|
* Specifies if the columns can be locked and unlocked from the column menu.
|
|
35
33
|
* This option follows the prerequisites and limitations of the [locked columns]({% slug locked_columns_treelist %}).
|
|
36
|
-
* @default false
|
|
37
34
|
*/
|
|
38
35
|
lock?: boolean;
|
|
39
36
|
}
|
|
@@ -8,19 +8,13 @@ import { ColumnMenuItemBase } from './column-menu-item-base';
|
|
|
8
8
|
import { SVGIcon } from '@progress/kendo-svg-icons';
|
|
9
9
|
import * as i0 from "@angular/core";
|
|
10
10
|
/**
|
|
11
|
-
* Represents
|
|
12
|
-
* [`ColumnMenuTemplate`]({% slug api_treelist_columnmenutemplatedirective %}) directive.
|
|
13
|
-
* Allows the user to sort the column.
|
|
11
|
+
* Represents the column-menu item for sorting TreeList columns.
|
|
14
12
|
*
|
|
15
|
-
*
|
|
16
|
-
*
|
|
13
|
+
* The component can be placed inside a [`ColumnMenuTemplate`]({% slug api_treelist_columnmenutemplatedirective %}) directive.
|
|
14
|
+
*
|
|
15
|
+
* To register the component as a known column menu item, set the [`ColumnMenuService`]({% slug api_treelist_columnmenuservice %})
|
|
16
|
+
* that is passed by the template to the service input of the `kendo-treelist-columnmenu-sort` component.
|
|
17
17
|
*
|
|
18
|
-
* {% meta height:500 %}
|
|
19
|
-
* {% embed_file column-menu/template-sort/app.component.ts preview %}
|
|
20
|
-
* {% embed_file column-menu/template-sort/app.module.ts %}
|
|
21
|
-
* {% embed_file shared/main.ts %}
|
|
22
|
-
* {% embed_file shared/employees.ts %}
|
|
23
|
-
* {% endmeta %}
|
|
24
18
|
*/
|
|
25
19
|
export declare class ColumnMenuSortComponent extends ColumnMenuItemBase {
|
|
26
20
|
localization: LocalizationService;
|
|
@@ -10,7 +10,7 @@ import { ColumnMenuSettings } from './column-menu-settings.interface';
|
|
|
10
10
|
import { SVGIcon } from '@progress/kendo-svg-icons';
|
|
11
11
|
import * as i0 from "@angular/core";
|
|
12
12
|
/**
|
|
13
|
-
* Represents the [column menu]({% slug columnmenu_treelist %}) component.
|
|
13
|
+
* Represents the [column menu]({% slug columnmenu_treelist %}) component of the TreeList.
|
|
14
14
|
*/
|
|
15
15
|
export declare class ColumnMenuComponent implements OnChanges, OnDestroy {
|
|
16
16
|
protected popupService: SinglePopupService;
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
import { Observable } from 'rxjs';
|
|
6
6
|
import { ColumnBase } from '../columns/column-base';
|
|
7
7
|
/**
|
|
8
|
-
* The returned type of the `columnResize` event.
|
|
8
|
+
* The returned type of the [`columnResize`](slug:api_treelist_treelistcomponent#toc-columnresize) event.
|
|
9
9
|
*/
|
|
10
10
|
export interface ColumnResizeArgs {
|
|
11
11
|
/**
|
|
@@ -7,7 +7,7 @@ import { ColumnBase } from './column-base';
|
|
|
7
7
|
import { CellTemplateDirective } from '../rendering/cell-template.directive';
|
|
8
8
|
import * as i0 from "@angular/core";
|
|
9
9
|
/**
|
|
10
|
-
* Represents the checkbox for selecting rows in the TreeList.
|
|
10
|
+
* Represents the checkbox for selecting rows in the TreeList. [See example](slug:selection_treelist#toc-select-all-checkbox).
|
|
11
11
|
*/
|
|
12
12
|
export declare class CheckboxColumnComponent extends ColumnBase {
|
|
13
13
|
parent?: ColumnBase;
|
package/columns/column-base.d.ts
CHANGED
|
@@ -16,6 +16,10 @@ export declare const isSpanColumn: (column: any) => any;
|
|
|
16
16
|
* @hidden
|
|
17
17
|
*/
|
|
18
18
|
export declare const isCheckboxColumn: (column: any) => any;
|
|
19
|
+
/**
|
|
20
|
+
* @hidden
|
|
21
|
+
*/
|
|
22
|
+
export declare const isRowReorderColumn: (column: any) => any;
|
|
19
23
|
/**
|
|
20
24
|
* The base class for the column components of the TreeList.
|
|
21
25
|
*/
|
|
@@ -14,12 +14,15 @@ export declare function isColumnGroupComponent(column: any): column is ColumnGro
|
|
|
14
14
|
* Represents the column group header of the TreeList
|
|
15
15
|
* ([more information and examples]({% slug multicolumnheaders_columns_treelist %})).
|
|
16
16
|
*
|
|
17
|
-
*
|
|
18
|
-
*
|
|
19
|
-
*
|
|
20
|
-
*
|
|
21
|
-
*
|
|
22
|
-
*
|
|
17
|
+
* @example
|
|
18
|
+
* ```html
|
|
19
|
+
* <kendo-treelist ...>
|
|
20
|
+
* <kendo-treelist-column-group title="File Info">
|
|
21
|
+
* <kendo-treelist-column field="type" title="Type"> </kendo-treelist-column>
|
|
22
|
+
* <kendo-treelist-column field="size" title="Size"> </kendo-treelist-column>
|
|
23
|
+
* </kendo-treelist-column-group>
|
|
24
|
+
* </kendo-treelist>
|
|
25
|
+
* ```
|
|
23
26
|
*/
|
|
24
27
|
export declare class ColumnGroupComponent extends ColumnBase {
|
|
25
28
|
/**
|
|
@@ -16,14 +16,15 @@ import * as i0 from "@angular/core";
|
|
|
16
16
|
*/
|
|
17
17
|
export declare function isColumnComponent(column: any): column is ColumnComponent;
|
|
18
18
|
/**
|
|
19
|
-
* Represents the columns of the
|
|
19
|
+
* Represents the columns of the TreeList.
|
|
20
20
|
*
|
|
21
|
-
*
|
|
22
|
-
*
|
|
23
|
-
*
|
|
24
|
-
*
|
|
25
|
-
*
|
|
26
|
-
*
|
|
21
|
+
* @example
|
|
22
|
+
* ```html
|
|
23
|
+
* <kendo-treelist [kendoTreeListFlatBinding]="data" ...>
|
|
24
|
+
* <kendo-treelist-column field="name" title="Name"></kendo-treelist-column>
|
|
25
|
+
* <kendo-treelist-column field="title"title="Title"></kendo-treelist-column>
|
|
26
|
+
* </kendo-treelist>
|
|
27
|
+
* ```
|
|
27
28
|
*/
|
|
28
29
|
export declare class ColumnComponent extends ColumnBase {
|
|
29
30
|
/**
|
|
@@ -40,33 +41,6 @@ export declare class ColumnComponent extends ColumnBase {
|
|
|
40
41
|
* Takes the `{0:format}` form where `format` is a standard number format, a custom number format,
|
|
41
42
|
* a standard date format, a custom date format or a format object. For more information on the supported date and number formats,
|
|
42
43
|
* refer to the [kendo-intl](https://github.com/telerik/kendo-intl/blob/develop/docs/index.md) documentation.
|
|
43
|
-
*
|
|
44
|
-
* Standard format:
|
|
45
|
-
* @example
|
|
46
|
-
* ```html-no-run
|
|
47
|
-
* <kendo-treelist>
|
|
48
|
-
* <kendo-treelist-column field="UnitPrice" format="{0:c}">
|
|
49
|
-
* </kendo-treelist-column>
|
|
50
|
-
* </kendo-treelist>
|
|
51
|
-
* ```
|
|
52
|
-
*
|
|
53
|
-
* Format object for currency:
|
|
54
|
-
* @example
|
|
55
|
-
* ```html-no-run
|
|
56
|
-
* <kendo-treelist>
|
|
57
|
-
* <kendo-treelist-column field="UnitPrice" [format]="{ style: 'currency', currency: 'EUR' }">
|
|
58
|
-
* </kendo-treelist-column>
|
|
59
|
-
* </kendo-treelist>
|
|
60
|
-
* ```
|
|
61
|
-
*
|
|
62
|
-
* Format object for dates:
|
|
63
|
-
* @example
|
|
64
|
-
* ```html-no-run
|
|
65
|
-
* <kendo-treelist>
|
|
66
|
-
* <kendo-treelist-column field="FirstOrderedOn" [format]="{ date: 'short' }">
|
|
67
|
-
* </kendo-treelist-column>
|
|
68
|
-
* </kendo-treelist>
|
|
69
|
-
* ```
|
|
70
44
|
*/
|
|
71
45
|
format: any;
|
|
72
46
|
/**
|
|
@@ -76,51 +50,27 @@ export declare class ColumnComponent extends ColumnBase {
|
|
|
76
50
|
sortable: boolean | ColumnSortSettings;
|
|
77
51
|
/**
|
|
78
52
|
* Defines the editor type ([see example]({% slug editing_reactive_forms_treelist %}#toc-setup)).
|
|
79
|
-
* Used when the column enters the edit mode.
|
|
53
|
+
* Used when the column enters the edit mode. [See example](slug:editing_reactive_forms_treelist).
|
|
80
54
|
*
|
|
81
|
-
* @
|
|
82
|
-
* ```html-no-run
|
|
83
|
-
* <kendo-treelist>
|
|
84
|
-
* <kendo-treelist-column field="UnitPrice" editor="numeric">
|
|
85
|
-
* </kendo-treelist-column>
|
|
86
|
-
* </kendo-treelist>
|
|
87
|
-
* ```
|
|
55
|
+
* @default 'text'
|
|
88
56
|
*/
|
|
89
57
|
editor: 'text' | 'numeric' | 'date' | 'boolean';
|
|
90
58
|
/**
|
|
91
|
-
* Defines the filter type that is displayed inside the filter row.
|
|
59
|
+
* Defines the filter type that is displayed inside the filter row.
|
|
92
60
|
*
|
|
93
|
-
* @
|
|
94
|
-
* ```html-no-run
|
|
95
|
-
* <kendo-treelist>
|
|
96
|
-
* <kendo-treelist-column field="UnitPrice" filter="numeric">
|
|
97
|
-
* </kendo-treelist-column>
|
|
98
|
-
* </kendo-treelist>
|
|
99
|
-
* ```
|
|
61
|
+
* @default 'text'
|
|
100
62
|
*/
|
|
101
63
|
filter: 'text' | 'numeric' | 'boolean' | 'date';
|
|
102
64
|
/**
|
|
103
|
-
* Defines if a filter UI will be displayed for this column.
|
|
65
|
+
* Defines if a filter UI will be displayed for this column.
|
|
104
66
|
*
|
|
105
|
-
* @
|
|
106
|
-
* ```html-no-run
|
|
107
|
-
* <kendo-treelist>
|
|
108
|
-
* <kendo-treelist-column field="UnitPrice" [filterable]="false">
|
|
109
|
-
* </kendo-treelist-column>
|
|
110
|
-
* </kendo-treelist>
|
|
111
|
-
* ```
|
|
67
|
+
* @default true
|
|
112
68
|
*/
|
|
113
69
|
filterable: boolean;
|
|
114
70
|
/**
|
|
115
|
-
* Defines whether the column is editable.
|
|
71
|
+
* Defines whether the column is editable.
|
|
116
72
|
*
|
|
117
|
-
* @
|
|
118
|
-
* ```html-no-run
|
|
119
|
-
* <kendo-treelist>
|
|
120
|
-
* <kendo-treelist-column field="UnitPrice" [editable]="false">
|
|
121
|
-
* </kendo-treelist-column>
|
|
122
|
-
* </kendo-treelist>
|
|
123
|
-
* ```
|
|
73
|
+
* @default true
|
|
124
74
|
*/
|
|
125
75
|
editable: boolean;
|
|
126
76
|
template: CellTemplateDirective;
|
|
@@ -9,30 +9,28 @@ import { OptionChangesService } from '../common/option-changes.service';
|
|
|
9
9
|
import * as i0 from "@angular/core";
|
|
10
10
|
/**
|
|
11
11
|
* Represents the command columns of the TreeList. You have to define the content of the
|
|
12
|
-
* column inside an `<ng-template>` tag.
|
|
13
|
-
* data item. For more information and examples on using the passed fields
|
|
12
|
+
* column inside an `<ng-template>` tag. For more information and examples on using the passed fields
|
|
14
13
|
* and the command directives, refer to the article on
|
|
15
14
|
* [editing the TreeList in Angular Reactive Forms]({% slug editing_reactive_forms_treelist %}).
|
|
16
15
|
*
|
|
17
|
-
* The following additional fields are passed:
|
|
18
|
-
* - `columnIndex`—The current column index.
|
|
19
|
-
* - `rowIndex`—The current data row index. If inside a new item row, `rowIndex`is `-1`.
|
|
20
|
-
* - `dataItem`—The current data item.
|
|
21
|
-
* - `column`—The current column instance.
|
|
22
|
-
* - `isNew`—The state of the current item.
|
|
23
|
-
*
|
|
24
16
|
* Usually, the template contains CRUD command directives such as:
|
|
25
17
|
* - [`EditCommandDirective`]({% slug api_treelist_editcommanddirective %})
|
|
26
18
|
* - [`RemoveCommandDirective`]({% slug api_treelist_removecommanddirective %})
|
|
27
19
|
* - [`CancelCommandDirective`]({% slug api_treelist_cancelcommanddirective %})
|
|
28
20
|
* - [`SaveCommandDirective`]({% slug api_treelist_savecommanddirective %})
|
|
29
21
|
*
|
|
30
|
-
*
|
|
31
|
-
*
|
|
32
|
-
*
|
|
33
|
-
*
|
|
34
|
-
*
|
|
35
|
-
*
|
|
22
|
+
* @example
|
|
23
|
+
* ```html
|
|
24
|
+
* <kendo-treelist ...>
|
|
25
|
+
* <kendo-treelist-column field="ProductID"></kendo-treelist-column>
|
|
26
|
+
* <kendo-treelist-command-column title="command" >
|
|
27
|
+
* <ng-template kendoTreeListCellTemplate>
|
|
28
|
+
* <button kendoTreeListEditCommand class="k-primary">Edit</button>
|
|
29
|
+
* <button kendoTreeListRemoveCommand>Remove</button>
|
|
30
|
+
* </ng-template>
|
|
31
|
+
* </kendo-treelist-command-column>
|
|
32
|
+
* </kendo-treelist>
|
|
33
|
+
* ```
|
|
36
34
|
*/
|
|
37
35
|
export declare class CommandColumnComponent extends ColumnBase {
|
|
38
36
|
parent?: ColumnBase;
|
|
@@ -0,0 +1,19 @@
|
|
|
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 { ColumnBase } from './column-base';
|
|
6
|
+
import * as i0 from "@angular/core";
|
|
7
|
+
/**
|
|
8
|
+
* Represents the drag handle for reordering rows in the TreeList.
|
|
9
|
+
*/
|
|
10
|
+
export declare class RowReorderColumnComponent extends ColumnBase {
|
|
11
|
+
parent?: ColumnBase;
|
|
12
|
+
/**
|
|
13
|
+
* @hidden
|
|
14
|
+
*/
|
|
15
|
+
readonly isRowReorderColumn: boolean;
|
|
16
|
+
constructor(parent?: ColumnBase);
|
|
17
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<RowReorderColumnComponent, [{ optional: true; host: true; skipSelf: true; }]>;
|
|
18
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<RowReorderColumnComponent, "kendo-treelist-rowreorder-column", never, {}, {}, never, never>;
|
|
19
|
+
}
|