@progress/kendo-angular-treelist 12.0.1-develop.2 → 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.
Files changed (53) hide show
  1. package/binding-directives/flat-binding.directive.d.ts +1 -1
  2. package/binding-directives/hierarchy-binding.directive.d.ts +1 -1
  3. package/column-menu/column-menu-item-content-template.directive.d.ts +14 -6
  4. package/column-menu/column-menu-template.directive.d.ts +15 -6
  5. package/editing/add-command.directive.d.ts +4 -13
  6. package/editing/cancel-command.directive.d.ts +4 -17
  7. package/editing/edit-command.directive.d.ts +5 -5
  8. package/editing/edit-template.directive.d.ts +1 -2
  9. package/editing/remove-command.directive.d.ts +3 -3
  10. package/editing/save-command.directive.d.ts +3 -16
  11. package/editing-directives/in-cell-editing.directive.d.ts +1 -1
  12. package/editing-directives/template-editing.directive.d.ts +1 -1
  13. package/esm2020/binding-directives/flat-binding.directive.mjs +1 -1
  14. package/esm2020/binding-directives/hierarchy-binding.directive.mjs +1 -1
  15. package/esm2020/column-menu/column-menu-item-content-template.directive.mjs +14 -6
  16. package/esm2020/column-menu/column-menu-template.directive.mjs +15 -6
  17. package/esm2020/editing/add-command.directive.mjs +4 -13
  18. package/esm2020/editing/cancel-command.directive.mjs +4 -17
  19. package/esm2020/editing/edit-command.directive.mjs +5 -5
  20. package/esm2020/editing/edit-template.directive.mjs +1 -2
  21. package/esm2020/editing/remove-command.directive.mjs +3 -3
  22. package/esm2020/editing/save-command.directive.mjs +3 -16
  23. package/esm2020/editing-directives/in-cell-editing.directive.mjs +1 -1
  24. package/esm2020/editing-directives/template-editing.directive.mjs +1 -1
  25. package/esm2020/excel/excel-command.directive.mjs +6 -7
  26. package/esm2020/expand-state/expandable.directive.mjs +9 -1
  27. package/esm2020/navigation/focusable.directive.mjs +2 -2
  28. package/esm2020/package-metadata.mjs +2 -2
  29. package/esm2020/pager/pager-template.directive.mjs +15 -7
  30. package/esm2020/pdf/pdf-command.directive.mjs +6 -7
  31. package/esm2020/pdf/pdf-template.directive.mjs +13 -6
  32. package/esm2020/rendering/cell-template.directive.mjs +10 -6
  33. package/esm2020/rendering/footer-template.directive.mjs +9 -8
  34. package/esm2020/rendering/header/header-template.directive.mjs +10 -6
  35. package/esm2020/rendering/no-records-template.directive.mjs +10 -7
  36. package/esm2020/rendering/toolbar/toolbar-template.directive.mjs +12 -13
  37. package/esm2020/selection/selectable.directive.mjs +1 -1
  38. package/excel/excel-command.directive.d.ts +6 -7
  39. package/expand-state/expandable.directive.d.ts +9 -1
  40. package/fesm2015/progress-kendo-angular-treelist.mjs +158 -145
  41. package/fesm2020/progress-kendo-angular-treelist.mjs +158 -145
  42. package/navigation/focusable.directive.d.ts +2 -2
  43. package/package.json +15 -15
  44. package/pager/pager-template.directive.d.ts +15 -7
  45. package/pdf/pdf-command.directive.d.ts +6 -7
  46. package/pdf/pdf-template.directive.d.ts +13 -6
  47. package/rendering/cell-template.directive.d.ts +10 -6
  48. package/rendering/footer-template.directive.d.ts +9 -8
  49. package/rendering/header/header-template.directive.d.ts +10 -6
  50. package/rendering/no-records-template.directive.d.ts +10 -7
  51. package/rendering/toolbar/toolbar-template.directive.d.ts +12 -13
  52. package/schematics/ngAdd/index.js +3 -3
  53. 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`]({% slug api_treelist_commandcolumncomponent %}).
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-no-run
23
+ * ```html
24
24
  * <kendo-treelist>
25
- * <ng-template kendoTreeListToolbarTemplate>
26
- * <button kendoTreeListPDFCommand>Export to PDF</button>
27
- * </ng-template>
28
- * <kendo-treelist-pdf fileName="TreeList.pdf">
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`&mdash;Defines PDF page number.
14
14
  * - `totalPages`&mdash;Defines the total number of PDF pages.
15
15
  *
16
- * {% meta height:550 %}
17
- * {% embed_file pdf-export/page-template-inline/app.component.ts preview %}
18
- * {% embed_file pdf-export/page-template-inline/app.module.ts %}
19
- * {% embed_file shared/filesystem.ts %}
20
- * {% embed_file shared/main.ts %}
21
- * {% endmeta %}
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`&mdash;Specifies if the item children are currently loading.
21
21
  * - `rowIndex`&mdash;The current row index. Use it as an alias for a template variable by utilizing the `let-rowIndex="rowIndex"` syntax.
22
22
  *
23
- * {% meta height:470 %}
24
- * {% embed_file data-binding/hierarchy/app.component.ts preview %}
25
- * {% embed_file data-binding/hierarchy/app.module.ts %}
26
- * {% embed_file shared/main.ts %}
27
- * {% embed_file shared/filesystem.ts %}
28
- * {% endmeta %}
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
- * [`kendoTreeListFooterTemplate`]({% slug api_treelist_footertemplatedirective %}) directive inside the `<kendo-treelist-column>` tag.
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`&mdash;The aggregates for the level items.
@@ -19,13 +19,14 @@ import * as i0 from "@angular/core";
19
19
  * * `items`&mdash;The data items on this level.
20
20
  * * `parentItem`&mdash;The parent data item; `null` for root level items.
21
21
  *
22
- *
23
- * {% meta height:500 %}
24
- * {% embed_file configuration/footer-template/app.component.ts preview %}
25
- * {% embed_file configuration/footer-template/app.module.ts %}
26
- * {% embed_file shared/main.ts %}
27
- * {% embed_file shared/employees.ts %}
28
- * {% endmeta %}
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`&mdash;Defines an instance of the [`ColumnComponent`]({% slug api_treelist_columncomponent %}) option.
16
16
  * * `columnIndex`&mdash;Defines the current column index.
17
17
  *
18
- * {% meta height:533 %}
19
- * {% embed_file configuration/header-template/app.component.ts preview %}
20
- * {% embed_file configuration/header-template/app.module.ts %}
21
- * {% embed_file shared/main.ts %}
22
- * {% embed_file shared/employees.ts %}
23
- * {% endmeta %}
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
- * > When the locked columns of the TreeList are in use, the template is displayed in the non-locked part of the content.
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
- * {% meta height:533 %}
15
- * {% embed_file configuration/no-records-template/app.component.ts preview %}
16
- * {% embed_file configuration/no-records-template/app.module.ts %}
17
- * {% embed_file shared/main.ts %}
18
- * {% embed_file shared/employees.ts %}
19
- * {% endmeta %}
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`&mdash;The position at which the toolbar template is rendered. The possible values are "top" and "bottom".
13
+ * - `position`&mdash;The position at which the toolbar template is rendered. The possible values are `top`, `bottom` and `both`.
14
14
  *
15
15
  * @example
16
- * {% meta height:470 %}
17
- * {% embed_file configuration/toolbar-template/basic/app.component.ts preview %}
18
- * {% embed_file configuration/toolbar-template/basic/app.module.ts %}
19
- * {% embed_file shared/main.ts %}
20
- * {% embed_file shared/employees.ts %}
21
- * {% endmeta %}
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
- * The possible values are:
33
- * - `top`&mdash;Positions the toolbar above the group panel or header.
34
- * - `bottom`&mdash;Positions the toolbar below the pager.
35
- * - `both`&mdash;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`]({% slug api_treelist_commandcolumncomponent %}).
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-no-run
19
+ * ```html
20
20
  * <kendo-treelist>
21
- * <ng-template kendoTreeListToolbarTemplate>
22
- * <button kendoTreeListExcelCommand>Export to PDF</button>
23
- * </ng-template>
24
- * <kendo-treelist-excel fileName="TreeList.xlsx">
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;