@progress/kendo-angular-treelist 12.0.1-develop.3 → 12.0.1-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.
- package/binding-directives/flat-binding.directive.d.ts +1 -1
- package/binding-directives/hierarchy-binding.directive.d.ts +1 -1
- package/column-menu/column-menu-item-content-template.directive.d.ts +14 -6
- package/column-menu/column-menu-template.directive.d.ts +15 -6
- package/editing/add-command.directive.d.ts +4 -13
- package/editing/cancel-command.directive.d.ts +4 -17
- package/editing/edit-command.directive.d.ts +5 -5
- package/editing/edit-template.directive.d.ts +1 -2
- package/editing/remove-command.directive.d.ts +3 -3
- package/editing/save-command.directive.d.ts +3 -16
- package/editing-directives/in-cell-editing.directive.d.ts +1 -1
- package/editing-directives/template-editing.directive.d.ts +1 -1
- package/esm2020/binding-directives/flat-binding.directive.mjs +1 -1
- package/esm2020/binding-directives/hierarchy-binding.directive.mjs +1 -1
- package/esm2020/column-menu/column-menu-item-content-template.directive.mjs +14 -6
- package/esm2020/column-menu/column-menu-template.directive.mjs +15 -6
- package/esm2020/editing/add-command.directive.mjs +4 -13
- package/esm2020/editing/cancel-command.directive.mjs +4 -17
- package/esm2020/editing/edit-command.directive.mjs +5 -5
- package/esm2020/editing/edit-template.directive.mjs +1 -2
- package/esm2020/editing/remove-command.directive.mjs +3 -3
- package/esm2020/editing/save-command.directive.mjs +3 -16
- package/esm2020/editing-directives/in-cell-editing.directive.mjs +1 -1
- package/esm2020/editing-directives/template-editing.directive.mjs +1 -1
- package/esm2020/excel/excel-command.directive.mjs +6 -7
- package/esm2020/expand-state/expandable.directive.mjs +9 -1
- package/esm2020/navigation/focusable.directive.mjs +2 -2
- package/esm2020/package-metadata.mjs +2 -2
- package/esm2020/pager/pager-template.directive.mjs +15 -7
- package/esm2020/pdf/pdf-command.directive.mjs +6 -7
- package/esm2020/pdf/pdf-template.directive.mjs +13 -6
- package/esm2020/rendering/cell-template.directive.mjs +10 -6
- package/esm2020/rendering/footer-template.directive.mjs +9 -8
- package/esm2020/rendering/header/header-template.directive.mjs +10 -6
- package/esm2020/rendering/no-records-template.directive.mjs +10 -7
- package/esm2020/rendering/toolbar/toolbar-template.directive.mjs +12 -13
- package/esm2020/selection/selectable.directive.mjs +1 -1
- package/excel/excel-command.directive.d.ts +6 -7
- package/expand-state/expandable.directive.d.ts +9 -1
- package/fesm2015/progress-kendo-angular-treelist.mjs +158 -145
- package/fesm2020/progress-kendo-angular-treelist.mjs +158 -145
- package/navigation/focusable.directive.d.ts +2 -2
- package/package.json +15 -15
- package/pager/pager-template.directive.d.ts +15 -7
- package/pdf/pdf-command.directive.d.ts +6 -7
- package/pdf/pdf-template.directive.d.ts +13 -6
- package/rendering/cell-template.directive.d.ts +10 -6
- package/rendering/footer-template.directive.d.ts +9 -8
- package/rendering/header/header-template.directive.d.ts +10 -6
- package/rendering/no-records-template.directive.d.ts +10 -7
- package/rendering/toolbar/toolbar-template.directive.d.ts +12 -13
- package/schematics/ngAdd/index.js +3 -3
- package/selection/selectable.directive.d.ts +1 -1
|
@@ -7,7 +7,7 @@ import { DataBoundTreeComponent } from './data-bound-tree-component';
|
|
|
7
7
|
import * as i0 from "@angular/core";
|
|
8
8
|
/**
|
|
9
9
|
* A directive which binds the TreeList to an array of objects by using
|
|
10
|
-
* an
|
|
10
|
+
* an `idField` and `parentIDField` field to define the hierarchy.
|
|
11
11
|
*
|
|
12
12
|
* The directive encapsulates the in-memory handling of data operations such as
|
|
13
13
|
* [sorting]({% slug sorting_treelist %}), [aggregation]({% slug treelist_with_aggregates %})
|
|
@@ -10,7 +10,7 @@ import * as i0 from "@angular/core";
|
|
|
10
10
|
*
|
|
11
11
|
* The directive encapsulates the in-memory handling of data operations such as
|
|
12
12
|
* [sorting]({% slug sorting_treelist %}), [aggregation]({% slug treelist_with_aggregates %})
|
|
13
|
-
* and [filtering]({% slug filtering_treelist %}) ([more information and examples](
|
|
13
|
+
* and [filtering]({% slug filtering_treelist %}) ([more information and examples](slug:databinding_treelist#toc-binding-to-hierarchical-data)).
|
|
14
14
|
*/
|
|
15
15
|
export declare class HierarchyBindingDirective extends BaseBindingDirective {
|
|
16
16
|
protected component: DataBoundTreeComponent;
|
|
@@ -11,12 +11,20 @@ import * as i0 from "@angular/core";
|
|
|
11
11
|
* To define the content template, nest an `<ng-template>` tag with the
|
|
12
12
|
* `kendoTreeListColumnMenuItemContentTemplate` directive inside a `<kendo-treelist-columnmenu-item>`.
|
|
13
13
|
*
|
|
14
|
-
*
|
|
15
|
-
*
|
|
16
|
-
*
|
|
17
|
-
*
|
|
18
|
-
*
|
|
19
|
-
*
|
|
14
|
+
* @example
|
|
15
|
+
* ```html
|
|
16
|
+
* <kendo-treelist>
|
|
17
|
+
* <kendo-treelist-column field="ProductName">
|
|
18
|
+
* <ng-template kendoTreeListColumnMenuTemplate>
|
|
19
|
+
* <kendo-treelist-columnmenu-item text="Item Text" [expanded]="true">
|
|
20
|
+
* <ng-template kendoTreeListColumnMenuItemContentTemplate>
|
|
21
|
+
* Item Content
|
|
22
|
+
* </ng-template>
|
|
23
|
+
* </kendo-treelist-columnmenu-item>
|
|
24
|
+
* </ng-template>
|
|
25
|
+
* </kendo-treelist-column>
|
|
26
|
+
* </kendo-treelist>
|
|
27
|
+
* ```
|
|
20
28
|
*/
|
|
21
29
|
export declare class ColumnMenuItemContentTemplateDirective {
|
|
22
30
|
templateRef: TemplateRef<any>;
|
|
@@ -14,12 +14,21 @@ import * as i0 from "@angular/core";
|
|
|
14
14
|
* - `service`—Represents the [ColumnMenuService]({% slug api_treelist_columnmenuservice %}).
|
|
15
15
|
* - `column`—Represents the TreeList column.
|
|
16
16
|
*
|
|
17
|
-
*
|
|
18
|
-
*
|
|
19
|
-
*
|
|
20
|
-
*
|
|
21
|
-
*
|
|
22
|
-
*
|
|
17
|
+
* @example
|
|
18
|
+
* ```html
|
|
19
|
+
* <kendo-treelist ... >
|
|
20
|
+
* <ng-template kendoTreeListColumnMenuTemplate let-service="service">
|
|
21
|
+
* <kendo-treelist-columnmenu-sort [service]="service">
|
|
22
|
+
* </kendo-treelist-columnmenu-sort>
|
|
23
|
+
* </ng-template>
|
|
24
|
+
* <kendo-treelist-column field="name">
|
|
25
|
+
* <ng-template kendoTreeListColumnMenuTemplate let-service="service">
|
|
26
|
+
* <kendo-treelist-columnmenu-sort [service]="service">
|
|
27
|
+
* </kendo-treelist-columnmenu-sort>
|
|
28
|
+
* </ng-template>
|
|
29
|
+
* </kendo-treelist-column>
|
|
30
|
+
* </kendo-treelist>
|
|
31
|
+
* ```
|
|
23
32
|
*/
|
|
24
33
|
export declare class ColumnMenuTemplateDirective {
|
|
25
34
|
templateRef: TemplateRef<any>;
|
|
@@ -9,28 +9,19 @@ import { BaseCommandDirective } from './base-command.directive';
|
|
|
9
9
|
import * as i0 from "@angular/core";
|
|
10
10
|
/**
|
|
11
11
|
* Represents the command for adding a new item to the TreeList. You can apply this directive to any
|
|
12
|
-
* `button` element inside a [`ToolbarTemplate`](
|
|
12
|
+
* `button` element inside a [`ToolbarTemplate`](slug:toolbartemplate_treelist) or
|
|
13
13
|
* inside a [`CommandColumnComponent`]({% slug api_treelist_commandcolumncomponent %}).
|
|
14
14
|
*
|
|
15
15
|
* When an associated button with the directive is clicked, the
|
|
16
16
|
* [`add`]({% slug api_treelist_treelistcomponent %}#toc-add) event is triggered
|
|
17
|
-
* ([see example](
|
|
17
|
+
* ([see example](slug:custom_editors_editing_treelist)).
|
|
18
18
|
*
|
|
19
|
-
*
|
|
20
|
-
*
|
|
21
|
-
* @example
|
|
22
|
-
* ```html-no-run
|
|
23
|
-
* <kendo-treelist>
|
|
24
|
-
* <ng-template kendoTreeListToolbarTemplate>
|
|
25
|
-
* <button kendoTreeListAddCommand>Add new</button>
|
|
26
|
-
* </ng-template>
|
|
27
|
-
* </kendo-treelist>
|
|
28
|
-
* ```
|
|
19
|
+
* When the row is in the `edit mode`, the button with `kendoTreeListAddCommand` is automatically hidden.
|
|
29
20
|
*
|
|
30
21
|
* When added to the command column, the directive takes as input the `cellContext` from the cell template.
|
|
31
22
|
*
|
|
32
23
|
* @example
|
|
33
|
-
* ```html
|
|
24
|
+
* ```html
|
|
34
25
|
* <kendo-treelist>
|
|
35
26
|
* <kendo-treelist-command-column title="command">
|
|
36
27
|
* <ng-template kendoTreeListCellTemplate let-cellContext="cellContext">
|
|
@@ -12,13 +12,13 @@ import * as i0 from "@angular/core";
|
|
|
12
12
|
* element inside a [`CommandColumnComponent`]({% slug api_treelist_commandcolumncomponent %}).
|
|
13
13
|
* When an associated button with the directive is clicked, the
|
|
14
14
|
* [`cancel`]({% slug api_treelist_treelistcomponent %}#toc-cancel) event
|
|
15
|
-
* is triggered ([see example](
|
|
15
|
+
* is triggered ([see example](slug:custom_editors_editing_treelist)).
|
|
16
16
|
*
|
|
17
|
-
*
|
|
18
|
-
*
|
|
17
|
+
* When the row is not in the `edit` mode, the button with the `kendoTreeListCancelCommand` is automatically hidden.
|
|
18
|
+
* The directive takes as input the `cellContext` from the cell template.
|
|
19
19
|
*
|
|
20
20
|
* @example
|
|
21
|
-
* ```html
|
|
21
|
+
* ```html
|
|
22
22
|
* <kendo-treelist>
|
|
23
23
|
* <kendo-treelist-command-column title="command">
|
|
24
24
|
* <ng-template kendoTreeListCellTemplate let-cellContext="cellContext">
|
|
@@ -27,19 +27,6 @@ import * as i0 from "@angular/core";
|
|
|
27
27
|
* </kendo-treelist-command-column>
|
|
28
28
|
* </kendo-treelist>
|
|
29
29
|
* ```
|
|
30
|
-
*
|
|
31
|
-
* You can control the content of the button based on the state of the row.
|
|
32
|
-
*
|
|
33
|
-
* @example
|
|
34
|
-
* ```html-no-run
|
|
35
|
-
* <kendo-treelist>
|
|
36
|
-
* <kendo-treelist-command-column title="command">
|
|
37
|
-
* <ng-template kendoTreeListCellTemplate let-cellContext="cellContext" let-isNew="isNew">
|
|
38
|
-
* <button [kendoTreeListCancelCommand]="cellContext">{{isNew ? 'Discard' : 'Cancel changes'}}</button>
|
|
39
|
-
* </ng-template>
|
|
40
|
-
* </kendo-treelist-command-column>
|
|
41
|
-
* </kendo-treelist>
|
|
42
|
-
* ```
|
|
43
30
|
*/
|
|
44
31
|
export declare class CancelCommandDirective extends BaseCommandDirective {
|
|
45
32
|
/**
|
|
@@ -12,17 +12,17 @@ import * as i0 from "@angular/core";
|
|
|
12
12
|
* element inside a [`CommandColumnComponent`]({% slug api_treelist_commandcolumncomponent %}).
|
|
13
13
|
* When an associated button with the directive is clicked, the
|
|
14
14
|
* [`edit`]({% slug api_treelist_treelistcomponent %}#toc-edit) event
|
|
15
|
-
* is triggered ([see example](
|
|
15
|
+
* is triggered ([see example](slug:custom_editors_editing_treelist)).
|
|
16
16
|
*
|
|
17
|
-
*
|
|
18
|
-
*
|
|
17
|
+
* When the row is in the `edit` mode, the button with `kendoTreeListEditCommand` is automatically hidden.
|
|
18
|
+
* The directive takes as input the `cellContext` from the cell template.
|
|
19
19
|
*
|
|
20
20
|
* @example
|
|
21
|
-
* ```html
|
|
21
|
+
* ```html
|
|
22
22
|
* <kendo-treelist>
|
|
23
23
|
* <kendo-treelist-command-column title="command">
|
|
24
24
|
* <ng-template kendoTreeListCellTemplate let-cellContext="cellContext">
|
|
25
|
-
* <button [kendoTreeListEditCommand]="cellContext"
|
|
25
|
+
* <button [kendoTreeListEditCommand]="cellContext">Edit</button>
|
|
26
26
|
* </ng-template>
|
|
27
27
|
* </kendo-treelist-command-column>
|
|
28
28
|
* </kendo-treelist>
|
|
@@ -13,8 +13,7 @@ import * as i0 from "@angular/core";
|
|
|
13
13
|
* - `column`—The current column instance.
|
|
14
14
|
* - `dataItem`—The current data item.
|
|
15
15
|
* - `cellContext`—An object used to pass context information to built-in directives.
|
|
16
|
-
* - `formGroup`—The current [`FormGroup`](link:site.data.urls.angular['formgroupapi']).
|
|
17
|
-
* If you use the TreeList inside [Template-Driven Forms](link:site.data.urls.angular['forms']), it will be `undefined`.
|
|
16
|
+
* - `formGroup`—The current [`FormGroup`](link:site.data.urls.angular['formgroupapi']). If you use the TreeList inside [Template-Driven Forms](link:site.data.urls.angular['forms']), `formGroup` will be `undefined`.
|
|
18
17
|
* - `isNew`—The state of the current item.
|
|
19
18
|
* - `rowIndex`—The current row index. If inside a new item row, `rowIndex` is `-1`.
|
|
20
19
|
*/
|
|
@@ -14,11 +14,11 @@ import * as i0 from "@angular/core";
|
|
|
14
14
|
* [`remove` event]({% slug api_treelist_treelistcomponent %}#toc-remove)
|
|
15
15
|
* is triggered ([see example]({% slug editing_reactive_forms_treelist %})).
|
|
16
16
|
*
|
|
17
|
-
*
|
|
18
|
-
*
|
|
17
|
+
* When the row is in the `edit` mode, the button with the `kendoTreeListRemoveCommand` is automatically hidden.
|
|
18
|
+
* The directive takes as input the `cellContext` from the cell template.
|
|
19
19
|
*
|
|
20
20
|
* @example
|
|
21
|
-
* ```html
|
|
21
|
+
* ```html
|
|
22
22
|
* <kendo-treelist>
|
|
23
23
|
* <kendo-treelist-command-column title="command">
|
|
24
24
|
* <ng-template kendoTreeListCellTemplate let-cellContext="cellContext">
|
|
@@ -14,11 +14,11 @@ import * as i0 from "@angular/core";
|
|
|
14
14
|
* [`save`]({% slug api_treelist_treelistcomponent %}#toc-save) event
|
|
15
15
|
* is triggered ([see example]({% slug editing_treelist %})).
|
|
16
16
|
*
|
|
17
|
-
*
|
|
18
|
-
*
|
|
17
|
+
* When the row is not in the `edit` mode, the button with `kendoTreeListSaveCommand` is automatically hidden.
|
|
18
|
+
* The directive takes as input the `cellContext` from the cell template.
|
|
19
19
|
*
|
|
20
20
|
* @example
|
|
21
|
-
* ```html
|
|
21
|
+
* ```html
|
|
22
22
|
* <kendo-treelist>
|
|
23
23
|
* <kendo-treelist-command-column title="command">
|
|
24
24
|
* <ng-template kendoTreeListCellTemplate let-cellContext="cellContext">
|
|
@@ -27,19 +27,6 @@ import * as i0 from "@angular/core";
|
|
|
27
27
|
* </kendo-treelist-command-column>
|
|
28
28
|
* </kendo-treelist>
|
|
29
29
|
* ```
|
|
30
|
-
*
|
|
31
|
-
* You can control the content of the button based on the state of the row.
|
|
32
|
-
*
|
|
33
|
-
* @example
|
|
34
|
-
* ```html-no-run
|
|
35
|
-
* <kendo-treelist>
|
|
36
|
-
* <kendo-treelist-command-column title="command">
|
|
37
|
-
* <ng-template kendoTreeListCellTemplate let-cellContext="cellContext" let-isNew="isNew">
|
|
38
|
-
* <button [kendoTreeListSaveCommand]="cellContext">{{isNew ? 'Add' : 'Update'}}</button>
|
|
39
|
-
* </ng-template>
|
|
40
|
-
* </kendo-treelist-command-column>
|
|
41
|
-
* </kendo-treelist>
|
|
42
|
-
* ```
|
|
43
30
|
*/
|
|
44
31
|
export declare class SaveCommandDirective extends BaseCommandDirective {
|
|
45
32
|
/**
|
|
@@ -8,7 +8,7 @@ import { CreateFormGroup } from '../common/create-form-group';
|
|
|
8
8
|
import * as i0 from "@angular/core";
|
|
9
9
|
/**
|
|
10
10
|
* A directive which encapsulates the editing operations of the TreeList when using the in-cell
|
|
11
|
-
* editing with Reactive Forms ([see example](
|
|
11
|
+
* editing with Reactive Forms ([see example](slug:editing_directives_treelist#toc-in-cell-editing-directive)).
|
|
12
12
|
*/
|
|
13
13
|
export declare class InCellEditingDirective extends EditingDirectiveBase {
|
|
14
14
|
protected treelist: TreeListComponent;
|
|
@@ -7,7 +7,7 @@ import { TreeListComponent } from '../treelist.component';
|
|
|
7
7
|
import * as i0 from "@angular/core";
|
|
8
8
|
/**
|
|
9
9
|
* A directive which encapsulates the editing operations of the TreeList when using
|
|
10
|
-
* the Template-Driven Angular Forms ([see example](
|
|
10
|
+
* the Template-Driven Angular Forms ([see example](slug:editing_directives_treelist#toc-template-editing-directive)).
|
|
11
11
|
*/
|
|
12
12
|
export declare class TemplateEditingDirective extends RowEditingDirectiveBase {
|
|
13
13
|
protected treelist: TreeListComponent;
|
|
@@ -13,7 +13,7 @@ import * as i1 from "./data-bound-tree-component";
|
|
|
13
13
|
const ROOT_ID = null;
|
|
14
14
|
/**
|
|
15
15
|
* A directive which binds the TreeList to an array of objects by using
|
|
16
|
-
* an
|
|
16
|
+
* an `idField` and `parentIDField` field to define the hierarchy.
|
|
17
17
|
*
|
|
18
18
|
* The directive encapsulates the in-memory handling of data operations such as
|
|
19
19
|
* [sorting]({% slug sorting_treelist %}), [aggregation]({% slug treelist_with_aggregates %})
|
|
@@ -14,7 +14,7 @@ import * as i1 from "./data-bound-tree-component";
|
|
|
14
14
|
*
|
|
15
15
|
* The directive encapsulates the in-memory handling of data operations such as
|
|
16
16
|
* [sorting]({% slug sorting_treelist %}), [aggregation]({% slug treelist_with_aggregates %})
|
|
17
|
-
* and [filtering]({% slug filtering_treelist %}) ([more information and examples](
|
|
17
|
+
* and [filtering]({% slug filtering_treelist %}) ([more information and examples](slug:databinding_treelist#toc-binding-to-hierarchical-data)).
|
|
18
18
|
*/
|
|
19
19
|
export class HierarchyBindingDirective extends BaseBindingDirective {
|
|
20
20
|
constructor(component) {
|
|
@@ -11,12 +11,20 @@ import * as i0 from "@angular/core";
|
|
|
11
11
|
* To define the content template, nest an `<ng-template>` tag with the
|
|
12
12
|
* `kendoTreeListColumnMenuItemContentTemplate` directive inside a `<kendo-treelist-columnmenu-item>`.
|
|
13
13
|
*
|
|
14
|
-
*
|
|
15
|
-
*
|
|
16
|
-
*
|
|
17
|
-
*
|
|
18
|
-
*
|
|
19
|
-
*
|
|
14
|
+
* @example
|
|
15
|
+
* ```html
|
|
16
|
+
* <kendo-treelist>
|
|
17
|
+
* <kendo-treelist-column field="ProductName">
|
|
18
|
+
* <ng-template kendoTreeListColumnMenuTemplate>
|
|
19
|
+
* <kendo-treelist-columnmenu-item text="Item Text" [expanded]="true">
|
|
20
|
+
* <ng-template kendoTreeListColumnMenuItemContentTemplate>
|
|
21
|
+
* Item Content
|
|
22
|
+
* </ng-template>
|
|
23
|
+
* </kendo-treelist-columnmenu-item>
|
|
24
|
+
* </ng-template>
|
|
25
|
+
* </kendo-treelist-column>
|
|
26
|
+
* </kendo-treelist>
|
|
27
|
+
* ```
|
|
20
28
|
*/
|
|
21
29
|
export class ColumnMenuItemContentTemplateDirective {
|
|
22
30
|
constructor(templateRef) {
|
|
@@ -14,12 +14,21 @@ import * as i0 from "@angular/core";
|
|
|
14
14
|
* - `service`—Represents the [ColumnMenuService]({% slug api_treelist_columnmenuservice %}).
|
|
15
15
|
* - `column`—Represents the TreeList column.
|
|
16
16
|
*
|
|
17
|
-
*
|
|
18
|
-
*
|
|
19
|
-
*
|
|
20
|
-
*
|
|
21
|
-
*
|
|
22
|
-
*
|
|
17
|
+
* @example
|
|
18
|
+
* ```html
|
|
19
|
+
* <kendo-treelist ... >
|
|
20
|
+
* <ng-template kendoTreeListColumnMenuTemplate let-service="service">
|
|
21
|
+
* <kendo-treelist-columnmenu-sort [service]="service">
|
|
22
|
+
* </kendo-treelist-columnmenu-sort>
|
|
23
|
+
* </ng-template>
|
|
24
|
+
* <kendo-treelist-column field="name">
|
|
25
|
+
* <ng-template kendoTreeListColumnMenuTemplate let-service="service">
|
|
26
|
+
* <kendo-treelist-columnmenu-sort [service]="service">
|
|
27
|
+
* </kendo-treelist-columnmenu-sort>
|
|
28
|
+
* </ng-template>
|
|
29
|
+
* </kendo-treelist-column>
|
|
30
|
+
* </kendo-treelist>
|
|
31
|
+
* ```
|
|
23
32
|
*/
|
|
24
33
|
export class ColumnMenuTemplateDirective {
|
|
25
34
|
constructor(templateRef) {
|
|
@@ -13,28 +13,19 @@ import * as i3 from "@progress/kendo-angular-icons";
|
|
|
13
13
|
import * as i4 from "@angular/common";
|
|
14
14
|
/**
|
|
15
15
|
* Represents the command for adding a new item to the TreeList. You can apply this directive to any
|
|
16
|
-
* `button` element inside a [`ToolbarTemplate`](
|
|
16
|
+
* `button` element inside a [`ToolbarTemplate`](slug:toolbartemplate_treelist) or
|
|
17
17
|
* inside a [`CommandColumnComponent`]({% slug api_treelist_commandcolumncomponent %}).
|
|
18
18
|
*
|
|
19
19
|
* When an associated button with the directive is clicked, the
|
|
20
20
|
* [`add`]({% slug api_treelist_treelistcomponent %}#toc-add) event is triggered
|
|
21
|
-
* ([see example](
|
|
21
|
+
* ([see example](slug:custom_editors_editing_treelist)).
|
|
22
22
|
*
|
|
23
|
-
*
|
|
24
|
-
*
|
|
25
|
-
* @example
|
|
26
|
-
* ```html-no-run
|
|
27
|
-
* <kendo-treelist>
|
|
28
|
-
* <ng-template kendoTreeListToolbarTemplate>
|
|
29
|
-
* <button kendoTreeListAddCommand>Add new</button>
|
|
30
|
-
* </ng-template>
|
|
31
|
-
* </kendo-treelist>
|
|
32
|
-
* ```
|
|
23
|
+
* When the row is in the `edit mode`, the button with `kendoTreeListAddCommand` is automatically hidden.
|
|
33
24
|
*
|
|
34
25
|
* When added to the command column, the directive takes as input the `cellContext` from the cell template.
|
|
35
26
|
*
|
|
36
27
|
* @example
|
|
37
|
-
* ```html
|
|
28
|
+
* ```html
|
|
38
29
|
* <kendo-treelist>
|
|
39
30
|
* <kendo-treelist-command-column title="command">
|
|
40
31
|
* <ng-template kendoTreeListCellTemplate let-cellContext="cellContext">
|
|
@@ -16,13 +16,13 @@ import * as i4 from "@angular/common";
|
|
|
16
16
|
* element inside a [`CommandColumnComponent`]({% slug api_treelist_commandcolumncomponent %}).
|
|
17
17
|
* When an associated button with the directive is clicked, the
|
|
18
18
|
* [`cancel`]({% slug api_treelist_treelistcomponent %}#toc-cancel) event
|
|
19
|
-
* is triggered ([see example](
|
|
19
|
+
* is triggered ([see example](slug:custom_editors_editing_treelist)).
|
|
20
20
|
*
|
|
21
|
-
*
|
|
22
|
-
*
|
|
21
|
+
* When the row is not in the `edit` mode, the button with the `kendoTreeListCancelCommand` is automatically hidden.
|
|
22
|
+
* The directive takes as input the `cellContext` from the cell template.
|
|
23
23
|
*
|
|
24
24
|
* @example
|
|
25
|
-
* ```html
|
|
25
|
+
* ```html
|
|
26
26
|
* <kendo-treelist>
|
|
27
27
|
* <kendo-treelist-command-column title="command">
|
|
28
28
|
* <ng-template kendoTreeListCellTemplate let-cellContext="cellContext">
|
|
@@ -31,19 +31,6 @@ import * as i4 from "@angular/common";
|
|
|
31
31
|
* </kendo-treelist-command-column>
|
|
32
32
|
* </kendo-treelist>
|
|
33
33
|
* ```
|
|
34
|
-
*
|
|
35
|
-
* You can control the content of the button based on the state of the row.
|
|
36
|
-
*
|
|
37
|
-
* @example
|
|
38
|
-
* ```html-no-run
|
|
39
|
-
* <kendo-treelist>
|
|
40
|
-
* <kendo-treelist-command-column title="command">
|
|
41
|
-
* <ng-template kendoTreeListCellTemplate let-cellContext="cellContext" let-isNew="isNew">
|
|
42
|
-
* <button [kendoTreeListCancelCommand]="cellContext">{{isNew ? 'Discard' : 'Cancel changes'}}</button>
|
|
43
|
-
* </ng-template>
|
|
44
|
-
* </kendo-treelist-command-column>
|
|
45
|
-
* </kendo-treelist>
|
|
46
|
-
* ```
|
|
47
34
|
*/
|
|
48
35
|
export class CancelCommandDirective extends BaseCommandDirective {
|
|
49
36
|
constructor(editService, element, renderer, localization, ngZone) {
|
|
@@ -16,17 +16,17 @@ import * as i4 from "@angular/common";
|
|
|
16
16
|
* element inside a [`CommandColumnComponent`]({% slug api_treelist_commandcolumncomponent %}).
|
|
17
17
|
* When an associated button with the directive is clicked, the
|
|
18
18
|
* [`edit`]({% slug api_treelist_treelistcomponent %}#toc-edit) event
|
|
19
|
-
* is triggered ([see example](
|
|
19
|
+
* is triggered ([see example](slug:custom_editors_editing_treelist)).
|
|
20
20
|
*
|
|
21
|
-
*
|
|
22
|
-
*
|
|
21
|
+
* When the row is in the `edit` mode, the button with `kendoTreeListEditCommand` is automatically hidden.
|
|
22
|
+
* The directive takes as input the `cellContext` from the cell template.
|
|
23
23
|
*
|
|
24
24
|
* @example
|
|
25
|
-
* ```html
|
|
25
|
+
* ```html
|
|
26
26
|
* <kendo-treelist>
|
|
27
27
|
* <kendo-treelist-command-column title="command">
|
|
28
28
|
* <ng-template kendoTreeListCellTemplate let-cellContext="cellContext">
|
|
29
|
-
* <button [kendoTreeListEditCommand]="cellContext"
|
|
29
|
+
* <button [kendoTreeListEditCommand]="cellContext">Edit</button>
|
|
30
30
|
* </ng-template>
|
|
31
31
|
* </kendo-treelist-command-column>
|
|
32
32
|
* </kendo-treelist>
|
|
@@ -13,8 +13,7 @@ import * as i0 from "@angular/core";
|
|
|
13
13
|
* - `column`—The current column instance.
|
|
14
14
|
* - `dataItem`—The current data item.
|
|
15
15
|
* - `cellContext`—An object used to pass context information to built-in directives.
|
|
16
|
-
* - `formGroup`—The current [`FormGroup`](link:site.data.urls.angular['formgroupapi']).
|
|
17
|
-
* If you use the TreeList inside [Template-Driven Forms](link:site.data.urls.angular['forms']), it will be `undefined`.
|
|
16
|
+
* - `formGroup`—The current [`FormGroup`](link:site.data.urls.angular['formgroupapi']). If you use the TreeList inside [Template-Driven Forms](link:site.data.urls.angular['forms']), `formGroup` will be `undefined`.
|
|
18
17
|
* - `isNew`—The state of the current item.
|
|
19
18
|
* - `rowIndex`—The current row index. If inside a new item row, `rowIndex` is `-1`.
|
|
20
19
|
*/
|
|
@@ -18,11 +18,11 @@ import * as i4 from "@angular/common";
|
|
|
18
18
|
* [`remove` event]({% slug api_treelist_treelistcomponent %}#toc-remove)
|
|
19
19
|
* is triggered ([see example]({% slug editing_reactive_forms_treelist %})).
|
|
20
20
|
*
|
|
21
|
-
*
|
|
22
|
-
*
|
|
21
|
+
* When the row is in the `edit` mode, the button with the `kendoTreeListRemoveCommand` is automatically hidden.
|
|
22
|
+
* The directive takes as input the `cellContext` from the cell template.
|
|
23
23
|
*
|
|
24
24
|
* @example
|
|
25
|
-
* ```html
|
|
25
|
+
* ```html
|
|
26
26
|
* <kendo-treelist>
|
|
27
27
|
* <kendo-treelist-command-column title="command">
|
|
28
28
|
* <ng-template kendoTreeListCellTemplate let-cellContext="cellContext">
|
|
@@ -18,11 +18,11 @@ import * as i4 from "@angular/common";
|
|
|
18
18
|
* [`save`]({% slug api_treelist_treelistcomponent %}#toc-save) event
|
|
19
19
|
* is triggered ([see example]({% slug editing_treelist %})).
|
|
20
20
|
*
|
|
21
|
-
*
|
|
22
|
-
*
|
|
21
|
+
* When the row is not in the `edit` mode, the button with `kendoTreeListSaveCommand` is automatically hidden.
|
|
22
|
+
* The directive takes as input the `cellContext` from the cell template.
|
|
23
23
|
*
|
|
24
24
|
* @example
|
|
25
|
-
* ```html
|
|
25
|
+
* ```html
|
|
26
26
|
* <kendo-treelist>
|
|
27
27
|
* <kendo-treelist-command-column title="command">
|
|
28
28
|
* <ng-template kendoTreeListCellTemplate let-cellContext="cellContext">
|
|
@@ -31,19 +31,6 @@ import * as i4 from "@angular/common";
|
|
|
31
31
|
* </kendo-treelist-command-column>
|
|
32
32
|
* </kendo-treelist>
|
|
33
33
|
* ```
|
|
34
|
-
*
|
|
35
|
-
* You can control the content of the button based on the state of the row.
|
|
36
|
-
*
|
|
37
|
-
* @example
|
|
38
|
-
* ```html-no-run
|
|
39
|
-
* <kendo-treelist>
|
|
40
|
-
* <kendo-treelist-command-column title="command">
|
|
41
|
-
* <ng-template kendoTreeListCellTemplate let-cellContext="cellContext" let-isNew="isNew">
|
|
42
|
-
* <button [kendoTreeListSaveCommand]="cellContext">{{isNew ? 'Add' : 'Update'}}</button>
|
|
43
|
-
* </ng-template>
|
|
44
|
-
* </kendo-treelist-command-column>
|
|
45
|
-
* </kendo-treelist>
|
|
46
|
-
* ```
|
|
47
34
|
*/
|
|
48
35
|
export class SaveCommandDirective extends BaseCommandDirective {
|
|
49
36
|
constructor(editService, element, renderer, localization, ngZone) {
|
|
@@ -10,7 +10,7 @@ import * as i0 from "@angular/core";
|
|
|
10
10
|
import * as i1 from "../treelist.component";
|
|
11
11
|
/**
|
|
12
12
|
* A directive which encapsulates the editing operations of the TreeList when using the in-cell
|
|
13
|
-
* editing with Reactive Forms ([see example](
|
|
13
|
+
* editing with Reactive Forms ([see example](slug:editing_directives_treelist#toc-in-cell-editing-directive)).
|
|
14
14
|
*/
|
|
15
15
|
export class InCellEditingDirective extends EditingDirectiveBase {
|
|
16
16
|
constructor(treelist) {
|
|
@@ -9,7 +9,7 @@ import * as i0 from "@angular/core";
|
|
|
9
9
|
import * as i1 from "../treelist.component";
|
|
10
10
|
/**
|
|
11
11
|
* A directive which encapsulates the editing operations of the TreeList when using
|
|
12
|
-
* the Template-Driven Angular Forms ([see example](
|
|
12
|
+
* the Template-Driven Angular Forms ([see example](slug:editing_directives_treelist#toc-template-editing-directive)).
|
|
13
13
|
*/
|
|
14
14
|
export class TemplateEditingDirective extends RowEditingDirectiveBase {
|
|
15
15
|
constructor(treelist) {
|
|
@@ -14,19 +14,18 @@ import * as i4 from "@angular/common";
|
|
|
14
14
|
/**
|
|
15
15
|
* Represents the `export-to-Excel` command of the TreeList. You can apply this
|
|
16
16
|
* directive to any `button` element inside a
|
|
17
|
-
* [`ToolbarTemplate`](
|
|
17
|
+
* [`ToolbarTemplate`](slug:toolbartemplate_treelist).
|
|
18
18
|
* When the user clicks a button associated with the directive, the
|
|
19
19
|
* [`excelExport`]({% slug api_treelist_treelistcomponent %}#toc-excelexport) event
|
|
20
20
|
* fires ([see example]({% slug excelexport_treelist %})).
|
|
21
21
|
*
|
|
22
22
|
* @example
|
|
23
|
-
* ```html
|
|
23
|
+
* ```html
|
|
24
24
|
* <kendo-treelist>
|
|
25
|
-
*
|
|
26
|
-
*
|
|
27
|
-
*
|
|
28
|
-
*
|
|
29
|
-
* </kendo-treelist-excel>
|
|
25
|
+
* <ng-template kendoTreeListToolbarTemplate>
|
|
26
|
+
* <button kendoTreeListExcelCommand>Export to PDF</button>
|
|
27
|
+
* </ng-template>
|
|
28
|
+
* <kendo-treelist-excel fileName="TreeList.xlsx"> </kendo-treelist-excel>
|
|
30
29
|
* </kendo-treelist>
|
|
31
30
|
* ```
|
|
32
31
|
*/
|
|
@@ -9,7 +9,15 @@ import { isString } from '../utils';
|
|
|
9
9
|
import * as i0 from "@angular/core";
|
|
10
10
|
import * as i1 from "./expandable-tree-component";
|
|
11
11
|
/**
|
|
12
|
-
* A directive which controls the expanded state of the items.
|
|
12
|
+
* A directive which controls the expanded state of the items. [See example](slug:treelist_expanded_state#toc-built-in-directive).
|
|
13
|
+
*
|
|
14
|
+
* @example
|
|
15
|
+
* ```html
|
|
16
|
+
* <kendo-treelist ...
|
|
17
|
+
* [kendoTreeListFlatBinding]="data"
|
|
18
|
+
* kendoTreeListExpandable> ...
|
|
19
|
+
* </kendo-treelist>
|
|
20
|
+
* ```
|
|
13
21
|
*/
|
|
14
22
|
export class ExpandableDirective {
|
|
15
23
|
constructor(component) {
|
|
@@ -13,10 +13,10 @@ import * as i1 from "./focus-group";
|
|
|
13
13
|
*
|
|
14
14
|
* The directive takes as input the `cellContext` from the cell template.
|
|
15
15
|
*
|
|
16
|
-
* ```
|
|
16
|
+
* ```html
|
|
17
17
|
* <kendo-treelist-column>
|
|
18
18
|
* <ng-template kendoTreeListCellTemplate let-cellContext="cellContext">
|
|
19
|
-
* <input
|
|
19
|
+
* <input [kendoTreeListFocusable]="cellContext" />
|
|
20
20
|
* </ng-template>
|
|
21
21
|
* </kendo-treelist-column>
|
|
22
22
|
* ```
|
|
@@ -9,7 +9,7 @@ export const packageMetadata = {
|
|
|
9
9
|
name: '@progress/kendo-angular-treelist',
|
|
10
10
|
productName: 'Kendo UI for Angular',
|
|
11
11
|
productCodes: ['KENDOUIANGULAR', 'KENDOUICOMPLETE'],
|
|
12
|
-
publishDate:
|
|
13
|
-
version: '12.0.1-develop.
|
|
12
|
+
publishDate: 1683180347,
|
|
13
|
+
version: '12.0.1-develop.4',
|
|
14
14
|
licensingDocsUrl: 'https://www.telerik.com/kendo-angular-ui/my-license/'
|
|
15
15
|
};
|
|
@@ -6,7 +6,7 @@ import { Directive, TemplateRef, Optional } from '@angular/core';
|
|
|
6
6
|
import * as i0 from "@angular/core";
|
|
7
7
|
/**
|
|
8
8
|
* Represents the pager template which helps to customize the pager appearance in the TreeList. To define a pager
|
|
9
|
-
* template, nest an `<ng-template>` tag with the `kendoTreeListPagerTemplate` directive inside `<kendo-treelist>`.
|
|
9
|
+
* template, nest an `<ng-template>` tag with the `kendoTreeListPagerTemplate` directive inside `<kendo-treelist>`. [See example](slug:paging_treelist#toc-pager-template).
|
|
10
10
|
*
|
|
11
11
|
* The template context provides the following fields:
|
|
12
12
|
* * `currentPage`—The index of the displayed page.
|
|
@@ -15,12 +15,20 @@ import * as i0 from "@angular/core";
|
|
|
15
15
|
* * `total`—The total number of records.
|
|
16
16
|
* * `totalPages`—The total number of available pages.
|
|
17
17
|
*
|
|
18
|
-
*
|
|
19
|
-
*
|
|
20
|
-
*
|
|
21
|
-
*
|
|
22
|
-
*
|
|
23
|
-
*
|
|
18
|
+
* @example
|
|
19
|
+
* ```
|
|
20
|
+
* <kendo-treelist ...>
|
|
21
|
+
* <kendo-treelist-column field="type"></kendo-treelist-column>
|
|
22
|
+
* <ng-template
|
|
23
|
+
* kendoTreeListPagerTemplate
|
|
24
|
+
* let-totalPages="totalPages"
|
|
25
|
+
* let-currentPage="currentPage">
|
|
26
|
+
* <kendo-treelist-pager-prev-buttons></kendo-treelist-pager-prev-buttons>
|
|
27
|
+
* <kendo-treelist-pager-next-buttons></kendo-treelist-pager-next-buttons>
|
|
28
|
+
* <kendo-treelist-pager-info></kendo-treelist-pager-info>
|
|
29
|
+
* </ng-template>
|
|
30
|
+
* </kendo-treelist>
|
|
31
|
+
* ```
|
|
24
32
|
*/
|
|
25
33
|
export class PagerTemplateDirective {
|
|
26
34
|
constructor(templateRef) {
|