@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
|
@@ -10,19 +10,18 @@ import * as i0 from "@angular/core";
|
|
|
10
10
|
/**
|
|
11
11
|
* Represents the `export-to-PDF` command of the TreeList.
|
|
12
12
|
* You can apply this directive to any `button` element inside a
|
|
13
|
-
* [`ToolbarTemplate`](
|
|
13
|
+
* [`ToolbarTemplate`](slug:toolbartemplate_treelist).
|
|
14
14
|
* When the user clicks a button that is associated with the directive, the
|
|
15
15
|
* [`pdfExport`]({% slug api_treelist_treelistcomponent %}#toc-pdfexport) event
|
|
16
16
|
* fires ([see example]({% slug pdfexport_treelist %})).
|
|
17
17
|
*
|
|
18
18
|
* @example
|
|
19
|
-
* ```html
|
|
19
|
+
* ```html
|
|
20
20
|
* <kendo-treelist>
|
|
21
|
-
*
|
|
22
|
-
*
|
|
23
|
-
*
|
|
24
|
-
*
|
|
25
|
-
* </kendo-treelist-pdf>
|
|
21
|
+
* <ng-template kendoTreeListToolbarTemplate>
|
|
22
|
+
* <button kendoTreeListPDFCommand>Export to PDF</button>
|
|
23
|
+
* </ng-template>
|
|
24
|
+
* <kendo-treelist-pdf fileName="TreeList.pdf"></kendo-treelist-pdf>
|
|
26
25
|
* </kendo-treelist>
|
|
27
26
|
* ```
|
|
28
27
|
*/
|
|
@@ -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 declare class PDFTemplateDirective extends PDFExportTemplateDirective {
|
|
24
31
|
constructor(templateRef: TemplateRef<any>);
|
|
@@ -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 declare class CellTemplateDirective {
|
|
31
35
|
templateRef: TemplateRef<any>;
|
|
@@ -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 declare class FooterTemplateDirective {
|
|
31
32
|
templateRef: TemplateRef<any>;
|
|
@@ -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 declare class HeaderTemplateDirective {
|
|
26
30
|
templateRef: TemplateRef<any>;
|
|
@@ -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 declare class NoRecordsTemplateDirective {
|
|
22
25
|
templateRef: TemplateRef<any>;
|
|
@@ -9,15 +9,18 @@ import * as i0 from "@angular/core";
|
|
|
9
9
|
* Represents the toolbar template of the TreeList.
|
|
10
10
|
*
|
|
11
11
|
* The template context has the following field:
|
|
12
|
-
* - `position`—The position at which the toolbar template is rendered. The possible values are
|
|
12
|
+
* - `position`—The position at which the toolbar template is rendered. The possible values are `top`, `bottom` and `both`.
|
|
13
13
|
*
|
|
14
14
|
* @example
|
|
15
|
-
*
|
|
16
|
-
*
|
|
17
|
-
*
|
|
18
|
-
*
|
|
19
|
-
*
|
|
20
|
-
*
|
|
15
|
+
* ```html
|
|
16
|
+
* <kendo-treelist ...>
|
|
17
|
+
* <ng-template kendoTreeListToolbarTemplate>
|
|
18
|
+
* <button kendoTreeListExcelCommand icon="file-excel">
|
|
19
|
+
* Export to Excel
|
|
20
|
+
* </button>
|
|
21
|
+
* </ng-template>
|
|
22
|
+
* </kendo-treelist>
|
|
23
|
+
* ```
|
|
21
24
|
*/
|
|
22
25
|
export declare class ToolbarTemplateDirective {
|
|
23
26
|
templateRef: TemplateRef<any>;
|
|
@@ -25,12 +28,8 @@ export declare class ToolbarTemplateDirective {
|
|
|
25
28
|
_position: 'top' | 'bottom' | 'both';
|
|
26
29
|
/**
|
|
27
30
|
* The position of the toolbar ([see example]({% slug toolbartemplate_treelist %})).
|
|
28
|
-
*
|
|
29
|
-
*
|
|
30
|
-
* - `top`—Positions the toolbar above the group panel or header.
|
|
31
|
-
* - `bottom`—Positions the toolbar below the pager.
|
|
32
|
-
* - `both`—Displays two toolbar instances. Positions the first one above
|
|
33
|
-
* the group panel or header and the second one below the pager.
|
|
31
|
+
* The group panel or header and the second one below the pager.
|
|
32
|
+
* @default 'top'
|
|
34
33
|
*/
|
|
35
34
|
set position(position: 'top' | 'bottom' | 'both');
|
|
36
35
|
get position(): 'top' | 'bottom' | 'both';
|
|
@@ -4,13 +4,13 @@ const schematics_1 = require("@angular-devkit/schematics");
|
|
|
4
4
|
function default_1(options) {
|
|
5
5
|
const finalOptions = Object.assign(Object.assign({}, options), { mainNgModule: 'TreeListModule', package: 'treelist', peerDependencies: {
|
|
6
6
|
// peer dep of the dropdowns
|
|
7
|
-
'@progress/kendo-angular-treeview': '12.0.1-develop.
|
|
7
|
+
'@progress/kendo-angular-treeview': '12.0.1-develop.4',
|
|
8
8
|
// peer dependency of kendo-angular-inputs
|
|
9
|
-
'@progress/kendo-angular-dialog': '12.0.1-develop.
|
|
9
|
+
'@progress/kendo-angular-dialog': '12.0.1-develop.4',
|
|
10
10
|
// peer dependency of kendo-angular-icons
|
|
11
11
|
'@progress/kendo-svg-icons': '^1.0.0',
|
|
12
12
|
// peer dependency of kendo-angular-dateinputs
|
|
13
|
-
'@progress/kendo-angular-navigation': '12.0.1-develop.
|
|
13
|
+
'@progress/kendo-angular-navigation': '12.0.1-develop.4',
|
|
14
14
|
} });
|
|
15
15
|
return (0, schematics_1.externalSchematic)('@progress/kendo-angular-schematics', 'ng-add', finalOptions);
|
|
16
16
|
}
|
|
@@ -19,7 +19,7 @@ export interface SelectionItem {
|
|
|
19
19
|
columnKey?: any;
|
|
20
20
|
}
|
|
21
21
|
/**
|
|
22
|
-
* A directive which controls the selection state
|
|
22
|
+
* A directive which controls the selection state. [See example](slug:selection_treelist).
|
|
23
23
|
*/
|
|
24
24
|
export declare class SelectableDirective implements OnDestroy {
|
|
25
25
|
private treelist;
|