@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
|
@@ -14,19 +14,18 @@ import * as i4 from "@angular/common";
|
|
|
14
14
|
/**
|
|
15
15
|
* Represents the `export-to-PDF` command of the TreeList.
|
|
16
16
|
* You can apply this directive to any `button` element inside a
|
|
17
|
-
* [`ToolbarTemplate`](
|
|
17
|
+
* [`ToolbarTemplate`](slug:toolbartemplate_treelist).
|
|
18
18
|
* When the user clicks a button that is associated with the directive, the
|
|
19
19
|
* [`pdfExport`]({% slug api_treelist_treelistcomponent %}#toc-pdfexport) event
|
|
20
20
|
* fires ([see example]({% slug pdfexport_treelist %})).
|
|
21
21
|
*
|
|
22
22
|
* @example
|
|
23
|
-
* ```html
|
|
23
|
+
* ```html
|
|
24
24
|
* <kendo-treelist>
|
|
25
|
-
*
|
|
26
|
-
*
|
|
27
|
-
*
|
|
28
|
-
*
|
|
29
|
-
* </kendo-treelist-pdf>
|
|
25
|
+
* <ng-template kendoTreeListToolbarTemplate>
|
|
26
|
+
* <button kendoTreeListPDFCommand>Export to PDF</button>
|
|
27
|
+
* </ng-template>
|
|
28
|
+
* <kendo-treelist-pdf fileName="TreeList.pdf"></kendo-treelist-pdf>
|
|
30
29
|
* </kendo-treelist>
|
|
31
30
|
* ```
|
|
32
31
|
*/
|
|
@@ -13,12 +13,19 @@ import * as i0 from "@angular/core";
|
|
|
13
13
|
* - `pageNumber`—Defines PDF page number.
|
|
14
14
|
* - `totalPages`—Defines the total number of PDF pages.
|
|
15
15
|
*
|
|
16
|
-
*
|
|
17
|
-
*
|
|
18
|
-
*
|
|
19
|
-
*
|
|
20
|
-
*
|
|
21
|
-
*
|
|
16
|
+
* @example
|
|
17
|
+
* ```html
|
|
18
|
+
* <kendo-treelist-pdf fileName="Files.pdf" ...>
|
|
19
|
+
* <ng-template
|
|
20
|
+
* kendoTreeListPDFTemplate
|
|
21
|
+
* let-pageNum="pageNum"
|
|
22
|
+
* let-totalPages="totalPages">
|
|
23
|
+
* <div style="position: absolute; top: 5px; left: 5px;">
|
|
24
|
+
* Page {{ pageNum }} of {{ totalPages }}
|
|
25
|
+
* </div>
|
|
26
|
+
* </ng-template>
|
|
27
|
+
* </kendo-treelist-pdf>
|
|
28
|
+
* ```
|
|
22
29
|
*/
|
|
23
30
|
export class PDFTemplateDirective extends PDFExportTemplateDirective {
|
|
24
31
|
constructor(templateRef) {
|
|
@@ -20,12 +20,16 @@ import * as i0 from "@angular/core";
|
|
|
20
20
|
* - `loading`—Specifies if the item children are currently loading.
|
|
21
21
|
* - `rowIndex`—The current row index. Use it as an alias for a template variable by utilizing the `let-rowIndex="rowIndex"` syntax.
|
|
22
22
|
*
|
|
23
|
-
*
|
|
24
|
-
*
|
|
25
|
-
*
|
|
26
|
-
*
|
|
27
|
-
*
|
|
28
|
-
* {
|
|
23
|
+
* * @example
|
|
24
|
+
* ```html
|
|
25
|
+
* <kendo-treelist ...>
|
|
26
|
+
* <kendo-treelist-column field="ProductName">
|
|
27
|
+
* <ng-template kendoTreeListCellTemplate let-dataItem let-rowIndex="rowIndex" let-column="column">
|
|
28
|
+
* Data Row: {{rowIndex}}
|
|
29
|
+
* </ng-template>
|
|
30
|
+
* </kendo-treelist-column>
|
|
31
|
+
* </kendo-treelist>
|
|
32
|
+
*```
|
|
29
33
|
*/
|
|
30
34
|
export class CellTemplateDirective {
|
|
31
35
|
constructor(templateRef) {
|
|
@@ -9,7 +9,7 @@ import * as i0 from "@angular/core";
|
|
|
9
9
|
* ([more information and example]({% slug templates_columns_treelist %}#toc-footer-template)).
|
|
10
10
|
* Helps to customize the table footer cell for the column.
|
|
11
11
|
* To define a footer template, nest an `<ng-template>` tag with the
|
|
12
|
-
*
|
|
12
|
+
* `kendoTreeListFooterTemplate` directive inside the `<kendo-treelist-column>` tag.
|
|
13
13
|
*
|
|
14
14
|
* The template context is set to the aggregate values and the following additional fields are passed:
|
|
15
15
|
* * `aggregates`—The aggregates for the level items.
|
|
@@ -19,13 +19,14 @@ import * as i0 from "@angular/core";
|
|
|
19
19
|
* * `items`—The data items on this level.
|
|
20
20
|
* * `parentItem`—The parent data item; `null` for root level items.
|
|
21
21
|
*
|
|
22
|
-
*
|
|
23
|
-
*
|
|
24
|
-
*
|
|
25
|
-
*
|
|
26
|
-
*
|
|
27
|
-
*
|
|
28
|
-
*
|
|
22
|
+
* @example
|
|
23
|
+
* ```html
|
|
24
|
+
* <kendo-treelist-column field="name">
|
|
25
|
+
* <ng-template kendoTreeListFooterTemplate let-aggregates="aggregates">
|
|
26
|
+
* {{ aggregates.name.count }}
|
|
27
|
+
* </ng-template>
|
|
28
|
+
* </kendo-treelist-column>
|
|
29
|
+
* ```
|
|
29
30
|
*/
|
|
30
31
|
export class FooterTemplateDirective {
|
|
31
32
|
constructor(templateRef) {
|
|
@@ -15,12 +15,16 @@ import * as i0 from "@angular/core";
|
|
|
15
15
|
* * `column`—Defines an instance of the [`ColumnComponent`]({% slug api_treelist_columncomponent %}) option.
|
|
16
16
|
* * `columnIndex`—Defines the current column index.
|
|
17
17
|
*
|
|
18
|
-
*
|
|
19
|
-
*
|
|
20
|
-
*
|
|
21
|
-
*
|
|
22
|
-
*
|
|
23
|
-
*
|
|
18
|
+
* @example
|
|
19
|
+
* ```html
|
|
20
|
+
* <kendo-treelist-column field="name">
|
|
21
|
+
* <ng-template
|
|
22
|
+
* kendoTreeListHeaderTemplate
|
|
23
|
+
* let-column>
|
|
24
|
+
* {{ column.field }}
|
|
25
|
+
* </ng-template>
|
|
26
|
+
* </kendo-treelist-column>
|
|
27
|
+
* ```
|
|
24
28
|
*/
|
|
25
29
|
export class HeaderTemplateDirective {
|
|
26
30
|
constructor(templateRef) {
|
|
@@ -9,14 +9,17 @@ import * as i0 from "@angular/core";
|
|
|
9
9
|
* appearance of the item that is displayed when no data is present. To define the no-records template,
|
|
10
10
|
* nest an `<ng-template>` tag with the `kendoTreeListNoRecordsTemplate` directive inside `<kendo-treelist>`.
|
|
11
11
|
*
|
|
12
|
-
*
|
|
12
|
+
* When the locked columns of the TreeList are in use, the template is displayed in the non-locked part of the content.
|
|
13
13
|
*
|
|
14
|
-
*
|
|
15
|
-
*
|
|
16
|
-
*
|
|
17
|
-
*
|
|
18
|
-
*
|
|
19
|
-
*
|
|
14
|
+
* @example
|
|
15
|
+
* ```html
|
|
16
|
+
* <kendo-treelist ... >
|
|
17
|
+
* <kendo-treelist-column field="name" ></kendo-treelist-column>
|
|
18
|
+
* <ng-template kendoTreeListNoRecordsTemplate>
|
|
19
|
+
* No data loaded.
|
|
20
|
+
* </ng-template>
|
|
21
|
+
* </kendo-treelist>
|
|
22
|
+
* ```
|
|
20
23
|
*/
|
|
21
24
|
export class NoRecordsTemplateDirective {
|
|
22
25
|
constructor(templateRef) {
|
|
@@ -10,15 +10,18 @@ import * as i1 from "../../common/option-changes.service";
|
|
|
10
10
|
* Represents the toolbar template of the TreeList.
|
|
11
11
|
*
|
|
12
12
|
* The template context has the following field:
|
|
13
|
-
* - `position`—The position at which the toolbar template is rendered. The possible values are
|
|
13
|
+
* - `position`—The position at which the toolbar template is rendered. The possible values are `top`, `bottom` and `both`.
|
|
14
14
|
*
|
|
15
15
|
* @example
|
|
16
|
-
*
|
|
17
|
-
*
|
|
18
|
-
*
|
|
19
|
-
*
|
|
20
|
-
*
|
|
21
|
-
*
|
|
16
|
+
* ```html
|
|
17
|
+
* <kendo-treelist ...>
|
|
18
|
+
* <ng-template kendoTreeListToolbarTemplate>
|
|
19
|
+
* <button kendoTreeListExcelCommand icon="file-excel">
|
|
20
|
+
* Export to Excel
|
|
21
|
+
* </button>
|
|
22
|
+
* </ng-template>
|
|
23
|
+
* </kendo-treelist>
|
|
24
|
+
* ```
|
|
22
25
|
*/
|
|
23
26
|
export class ToolbarTemplateDirective {
|
|
24
27
|
constructor(templateRef, optionChanges) {
|
|
@@ -28,12 +31,8 @@ export class ToolbarTemplateDirective {
|
|
|
28
31
|
}
|
|
29
32
|
/**
|
|
30
33
|
* The position of the toolbar ([see example]({% slug toolbartemplate_treelist %})).
|
|
31
|
-
*
|
|
32
|
-
*
|
|
33
|
-
* - `top`—Positions the toolbar above the group panel or header.
|
|
34
|
-
* - `bottom`—Positions the toolbar below the pager.
|
|
35
|
-
* - `both`—Displays two toolbar instances. Positions the first one above
|
|
36
|
-
* the group panel or header and the second one below the pager.
|
|
34
|
+
* The group panel or header and the second one below the pager.
|
|
35
|
+
* @default 'top'
|
|
37
36
|
*/
|
|
38
37
|
set position(position) {
|
|
39
38
|
this._position = position;
|
|
@@ -11,7 +11,7 @@ import * as i0 from "@angular/core";
|
|
|
11
11
|
import * as i1 from "../treelist.component";
|
|
12
12
|
const defaultColumnKeyGetter = (_column, columnIndex) => columnIndex;
|
|
13
13
|
/**
|
|
14
|
-
* A directive which controls the selection state
|
|
14
|
+
* A directive which controls the selection state. [See example](slug:selection_treelist).
|
|
15
15
|
*/
|
|
16
16
|
export class SelectableDirective {
|
|
17
17
|
constructor(treelist) {
|
|
@@ -10,19 +10,18 @@ import * as i0 from "@angular/core";
|
|
|
10
10
|
/**
|
|
11
11
|
* Represents the `export-to-Excel` command of the TreeList. You can apply this
|
|
12
12
|
* directive to any `button` element inside a
|
|
13
|
-
* [`ToolbarTemplate`](
|
|
13
|
+
* [`ToolbarTemplate`](slug:toolbartemplate_treelist).
|
|
14
14
|
* When the user clicks a button associated with the directive, the
|
|
15
15
|
* [`excelExport`]({% slug api_treelist_treelistcomponent %}#toc-excelexport) event
|
|
16
16
|
* fires ([see example]({% slug excelexport_treelist %})).
|
|
17
17
|
*
|
|
18
18
|
* @example
|
|
19
|
-
* ```html
|
|
19
|
+
* ```html
|
|
20
20
|
* <kendo-treelist>
|
|
21
|
-
*
|
|
22
|
-
*
|
|
23
|
-
*
|
|
24
|
-
*
|
|
25
|
-
* </kendo-treelist-excel>
|
|
21
|
+
* <ng-template kendoTreeListToolbarTemplate>
|
|
22
|
+
* <button kendoTreeListExcelCommand>Export to PDF</button>
|
|
23
|
+
* </ng-template>
|
|
24
|
+
* <kendo-treelist-excel fileName="TreeList.xlsx"> </kendo-treelist-excel>
|
|
26
25
|
* </kendo-treelist>
|
|
27
26
|
* ```
|
|
28
27
|
*/
|
|
@@ -6,7 +6,15 @@ import { OnDestroy, EventEmitter } from '@angular/core';
|
|
|
6
6
|
import { ExpandableTreeComponent } from './expandable-tree-component';
|
|
7
7
|
import * as i0 from "@angular/core";
|
|
8
8
|
/**
|
|
9
|
-
* A directive which controls the expanded state of the items.
|
|
9
|
+
* A directive which controls the expanded state of the items. [See example](slug:treelist_expanded_state#toc-built-in-directive).
|
|
10
|
+
*
|
|
11
|
+
* @example
|
|
12
|
+
* ```html
|
|
13
|
+
* <kendo-treelist ...
|
|
14
|
+
* [kendoTreeListFlatBinding]="data"
|
|
15
|
+
* kendoTreeListExpandable> ...
|
|
16
|
+
* </kendo-treelist>
|
|
17
|
+
* ```
|
|
10
18
|
*/
|
|
11
19
|
export declare class ExpandableDirective implements OnDestroy {
|
|
12
20
|
private component;
|