@progress/kendo-angular-treelist 17.0.0-develop.2 → 17.0.0-develop.21

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 (34) hide show
  1. package/README.md +48 -19
  2. package/directives.d.ts +7 -4
  3. package/editing/add-command-tool.directive.d.ts +38 -0
  4. package/esm2020/column-menu/column-chooser.component.mjs +1 -1
  5. package/esm2020/directives.mjs +8 -2
  6. package/esm2020/editing/add-command-tool.directive.mjs +61 -0
  7. package/esm2020/excel/excel-command-tool.directive.mjs +64 -0
  8. package/esm2020/excel/excel.module.mjs +3 -2
  9. package/esm2020/filtering/cell/filter-cell-operators.component.mjs +1 -1
  10. package/esm2020/index.mjs +3 -0
  11. package/esm2020/package-metadata.mjs +2 -2
  12. package/esm2020/pager/pager-next-buttons.component.mjs +1 -1
  13. package/esm2020/pager/pager-numeric-buttons.component.mjs +1 -1
  14. package/esm2020/pager/pager-prev-buttons.component.mjs +1 -1
  15. package/esm2020/pdf/pdf-command-tool.directive.mjs +64 -0
  16. package/esm2020/pdf/pdf.module.mjs +3 -2
  17. package/esm2020/rendering/body.module.mjs +7 -6
  18. package/esm2020/rendering/cell.component.mjs +4 -1
  19. package/esm2020/rendering/table-body.component.mjs +3 -1
  20. package/esm2020/treelist.component.mjs +12 -4
  21. package/esm2020/treelist.module.mjs +68 -66
  22. package/excel/excel-command-tool.directive.d.ts +41 -0
  23. package/excel/excel.module.d.ts +3 -2
  24. package/fesm2015/progress-kendo-angular-treelist.mjs +202 -26
  25. package/fesm2020/progress-kendo-angular-treelist.mjs +200 -26
  26. package/index.d.ts +3 -0
  27. package/package.json +16 -15
  28. package/pdf/pdf-command-tool.directive.d.ts +41 -0
  29. package/pdf/pdf.module.d.ts +3 -2
  30. package/rendering/body.module.d.ts +6 -5
  31. package/rendering/cell.component.d.ts +2 -1
  32. package/schematics/ngAdd/index.js +3 -3
  33. package/treelist.component.d.ts +1 -1
  34. package/treelist.module.d.ts +67 -65
package/README.md CHANGED
@@ -2,34 +2,63 @@
2
2
  <img [width]="631" src="https://www.telerik.com/kendo-angular-ui/npm-banner.svg">
3
3
  </a>
4
4
 
5
- ## Kendo UI for Angular TreeList Component
5
+ ## Kendo UI for Angular TreeList
6
6
 
7
- > **Important**
8
- > * This package is part of [Kendo UI for Angular](https://www.telerik.com/kendo-angular-ui?utm_medium=referral&utm_source=npm&utm_campaign=kendo-ui-angular-trial-npm-treelist)&mdash;a commercial library.
9
- > * You will need to install a license key when adding the package to your project. For more information, please refer to the [Kendo UI for Angular My License page](https://www.telerik.com/kendo-angular-ui/my-license?utm_medium=referral&utm_source=npm&utm_campaign=kendo-ui-angular-trial-npm-treelist).
10
- > * To receive a license key, you need to either [purchase a license](https://www.telerik.com/purchase/kendo-ui?utm_medium=referral&utm_source=npm&utm_campaign=kendo-ui-angular-trial-npm-treelist) or register for a [free trial](https://www.telerik.com/download-login-v2-kendo-angular-ui?utm_medium=referral&utm_source=npm&utm_campaign=kendo-ui-angular-trial-npm-treelist). Doing so indicates that you [accept the Kendo UI for Angular License Agreement](https://www.telerik.com/purchase/license-agreement/kendo-ui?utm_medium=referral&utm_source=npm&utm_campaign=kendo-ui-angular-trial-npm-treelist).
7
+ > * This package is part of [Kendo UI for Angular](https://www.telerik.com/kendo-angular-ui)&mdash;a commercial library designed and built for developing business applications with Angular. Every UI component in the Kendo UI for Angular suite has been built from the ground-up specifically for Angular.
8
+ > * You must [install a license key](https://www.telerik.com/kendo-angular-ui/my-license) when adding the package to your project. To receive a license key, either [purchase a license](https://www.telerik.com/purchase/kendo-ui) or register for a [free trial](https://www.telerik.com/download-login-v2-kendo-angular-ui).
11
9
  > * The 30-day free trial gives you access to all the Kendo UI for Angular components and their full functionality. Additionally, for the period of your license, you get access to our legendary technical support provided directly by the Kendo UI for Angular dev team!
12
10
  >
13
- > [Start using Kendo UI for Angular](https://www.telerik.com/download-login-v2-kendo-angular-ui?utm_medium=referral&utm_source=npm&utm_campaign=kendo-ui-angular-trial-npm-treelist) and speed up your development process!
11
+ > [Start using Kendo UI for Angular](https://www.telerik.com/download-login-v2-kendo-angular-ui) and speed up your development process!
14
12
 
15
- Kendo UI for Angular is a commercial UI library designed and built for developing business applications with Angular. Every UI component in the Kendo UI for Angular suite has been built from the ground-up specifically for Angular.
13
+ ## Angular TreeList Component
16
14
 
17
- The Kendo UI for Angular Tree List component is one of the most powerful and flexible data components designed for Angular developers looking to display relational data. The Angular Tree Grid is perfect for data that is homogenous and hierarchical, which means all data items have the same fields and each level aligns its columns with the parent and child elements. The Angular Tree Grid comes with critical features, including sorting, filtering, paging, editing and row and column virtualization to assist with handling large datasets. Each column of the Angular TreeList can be resized, reordered by dragging and dropping and hidden through the dedicated column menu. Moreover, users can customize the cells of the Angular TreeList with Angular templates to provide a custom look and feel.
15
+ The [Kendo UI for Angular TreeList](https://www.telerik.com/kendo-angular-ui/treelist) is one of the most powerful and flexible data components designed for Angular developers looking to display relational data. The TreeList displays hierarchical data in a tabular format and comes with an extensive set of built-in features including paging, sorting, filtering, as well as row and column virtualization to assist with handling large datasets.
18
16
 
19
- ## Resources
17
+ ## Key Features
18
+
19
+ Among the many features which the Kendo UI for Angular TreeList delivers are:
20
+
21
+ * [Data Binding](https://www.telerik.com/kendo-angular-ui/components/treelist/data-binding/basics)&mdash;The TreeList features built-in and custom data-binding directives, which encapsulate the logic for handling data operations such as sorting and filtering out-of-the-box.
22
+ * [Editing](https://www.telerik.com/kendo-angular-ui/components/treelist/editing/)&mdash;Depending on your users' requirements, you can opt for the inline or the in-cell edit modes, provide editing from an external form or Redux Form, and also further customize the TreeList.
23
+ * [Paging](https://www.telerik.com/kendo-angular-ui/components/treelist/paging/basics)&mdash;Enables you to split its content into pages by adding a pager and using its extensive set of configuration options such as implementing a responsive behavior, customizing its appearance, defining the space between its elements, and more.
24
+ * [Sorting](https://www.telerik.com/kendo-angular-ui/components/treelist/sorting/basics)&mdash;Supports a number of sorting options including sorting and unsorting single and multiple columns, pre-sorting its data records, setting the sorting direction, and more.
25
+ * [Filtering](https://www.telerik.com/kendo-angular-ui/components/treelist/filtering/basics)&mdash;Provides options for displaying only those data records which meet specified criteria and also for additionally customizing its filtering behavior by using its built-in filter templates or reusable custom filter components.
26
+ * Export to [PDF](https://www.telerik.com/kendo-angular-ui/components/treelist/export/pdf-export) and [Excel](https://www.telerik.com/kendo-angular-ui/components/treelist/export/excel-export)&mdash;When implementing the TreeList export to PDF, you can set the fonts, the exact portion and layout of the exported content, also customize the columns and other elements of the output result. When exporting to Excel, you can export specific data and customize the exported columns.
27
+ * [Columns Options](https://www.telerik.com/kendo-angular-ui/components/treelist/columns/define-columns)&mdash;The TreeList provides an extensive collection of column configuration options, such as:
28
+ - [Hiding columns](https://www.telerik.com/kendo-angular-ui/components/treelist/columns/hidden)&mdash;Allows you to show or hide columns.
29
+ - [Spanning columns](https://www.telerik.com/kendo-angular-ui/components/treelist/columns/spanned) &mdash;Spanning of the row content over multiple cells of data.
30
+ - [Setting multi-column headers](https://www.telerik.com/kendo-angular-ui/components/treelist/columns/headers)&mdash;Grouping columns under a common header.
31
+ - [Column menu for quick actions](https://www.telerik.com/kendo-angular-ui/components/treelist/accessories/column-menu)&mdash;You can show or hide columns, filter, sort, and group them.
32
+ - [Locking (freezing) columns](https://www.telerik.com/kendo-angular-ui/components/treelist/columns/locked)&mdash;Allows you to display specific column data at all times.
33
+ - [Reordering columns](https://www.telerik.com/kendo-angular-ui/components/treelist/columns/reordering)&mdash;You can reorder any column and with any available TreeList feature, including locked columns.
34
+ - [Resizing columns](https://www.telerik.com/kendo-angular-ui/components/treelist/columns/resizing)&mdash;Allows you to resize columns in real-time by dragging the edges of the column headers.
35
+ - [Customizing columns](https://www.telerik.com/kendo-angular-ui/components/treelist/columns/templates)&mdash;Allows you to customize the columns of the TreeList using the available template directives.
36
+ * [Row Reordering](https://www.telerik.com/kendo-angular-ui/components/treelist/row-reordering)&mdash;Enables quick and easy row reordering via dragging specified hint element and dropping it at the desired position.
37
+ * [Selection](https://www.telerik.com/kendo-angular-ui/components/treelist/selection)&mdash;Allows the user to select single or multiple cells and rows. It offers various ways to select data items, including directly clicking on a row or via a checkbox column. You can also customize the selection logic and persist the selected items based on specific requirements.
38
+ * [Virtualization](https://www.telerik.com/kendo-angular-ui/components/treelist/scroll-modes/virtual)&mdash;Supports a virtual scroll mode for its row data, which means that the component dynamically renders only a portion of the rows, which boosts the performance of the component when it has to display large data tables.
39
+ * [Styling](https://www.telerik.com/kendo-angular-ui/components/treelist/styling/columns)&mdash;Provides built-in options for customizing the appearance and changing the default layout of its columns and rows, as well as the individual cells.
40
+ * [Globalization](https://www.telerik.com/kendo-angular-ui/components/treelist/globalization/)&mdash;By using the available globalization options in Kendo UI for Angular, you can translate the TreeList messages by adapting them to specific culture locales. Additionally, the TreeList supports rendering in a right-to-left (RTL) direction.
41
+ * [Accessibility](https://www.telerik.com/kendo-angular-ui/components/treelist/accessibility/)&mdash;The Kendo UI for Angular TreeList is compliant with the Section 508 requirements. The TreeList is accessible by screen readers and provides WAI-ARIA support.
42
+ * [Keyboard Navigation](https://www.telerik.com/kendo-angular-ui/components/treelist/keyboard-navigation)&mdash;The Kendo UI for Angular TreeList supports a number of keyboard shortcuts which allow users to accomplish various commands.
20
43
 
21
- * [Get Started with Kendo UI for Angular (requires trial registration)](https://www.telerik.com/kendo-angular-ui/getting-started?utm_medium=referral&utm_source=npm&utm_campaign=kendo-ui-angular-trial-npm-treelist)
22
- * [Demos, documentation, and component reference](https://www.telerik.com/kendo-angular-ui/components?utm_medium=referral&utm_source=npm&utm_campaign=kendo-ui-angular-trial-npm-treelist)
23
- * [Blogs](http://www.telerik.com/blogs/kendo-ui?utm_medium=referral&utm_source=npm&utm_campaign=kendo-ui-angular-trial-npm-treelist)
24
- * [Kendo UI for Angular pricing and licensing](https://www.telerik.com/purchase/kendo-ui?utm_medium=referral&utm_source=npm&utm_campaign=kendo-ui-angular-trial-npm-treelist)
44
+ ## Support Options
25
45
 
26
- ## Questions and Feedback
46
+ For any issues you might encounter while working with the Kendo UI for Angular TreeList, you have the following support channels available:
47
+
48
+ * Industry-leading technical support&mdash;Kendo UI for Angular paid license holders and users with an active (free) trial license can take advantage of our outstanding customer support. To submit a ticket, use the [dedicated Kendo UI for Angular support system](https://www.telerik.com/account/support-tickets).
49
+ * Product forums&mdash;The [Kendo UI for Angular forums](https://www.telerik.com/forums/kendo-angular-ui) are part of the free support you can get from the community and from the Kendo UI for Angular team.
50
+ * Feedback portal&mdash;The [Kendo UI for Angular feedback portal](https://feedback.telerik.com/kendo-angular-ui) is where you can request and vote for new features to be added.
51
+
52
+ ## Resources
27
53
 
28
- * [Official Forums](https://www.telerik.com/forums/kendo-angular-ui?utm_medium=referral&utm_source=npm&utm_campaign=kendo-ui-angular-trial-npm-treelist)
29
- * [GitHub Issues](https://github.com/telerik/kendo-angular/issues?utm_medium=referral&utm_source=npm&utm_campaign=kendo-ui-angular-trial-npm-treelist)
30
- * [Feedback Portal](https://feedback.telerik.com/kendo-angular-ui?utm_medium=referral&utm_source=npm&utm_campaign=kendo-ui-angular-trial-npm-treelist)
31
- * [StackOverflow](https://stackoverflow.com/questions/tagged/kendo-ui-angular2?utm_medium=referral&utm_source=npm&utm_campaign=kendo-ui-angular-trial-npm-treelist)
54
+ * [Getting Started with Kendo UI for Angular](https://www.telerik.com/kendo-angular-ui/getting-started)
55
+ * [Getting Started with the Kendo UI for Angular TreeList](https://www.telerik.com/kendo-angular-ui/components/treelist/installation/getting-started)
56
+ * [TreeList Overview page](https://www.telerik.com/kendo-angular-ui/components/treelist) and [TreeList API reference](https://www.telerik.com/kendo-angular-ui/components/treelist/api)
57
+ * [Kendo UI for Angular roadmap](https://www.telerik.com/kendo-angular-ui/roadmap)
58
+ * [Blogs](http://www.telerik.com/blogs/kendo-ui)
59
+ * [Demos, documentation, and component reference](https://www.telerik.com/kendo-angular-ui/components)
60
+ * [Kendo UI for Angular pricing and licensing](https://www.telerik.com/purchase/kendo-ui)
32
61
 
33
- *Copyright © 2021 Progress Software Corporation and/or one of its subsidiaries or affiliates. All rights reserved.*
62
+ *Copyright © 2024 Progress Software Corporation and/or one of its subsidiaries or affiliates. All rights reserved.*
34
63
 
35
64
  *Progress, Telerik, and certain product names used herein are trademarks or registered trademarks of Progress Software Corporation and/or one of its subsidiaries or affiliates in the U.S. and/or other countries.*
package/directives.d.ts CHANGED
@@ -108,6 +108,9 @@ import { HeaderComponent } from './rendering/header/header.component';
108
108
  import { ColumnHandleDirective } from './column-resizing/column-handle.directive';
109
109
  import { CellComponent } from './rendering/cell.component';
110
110
  import { BooleanFilterRadioButtonDirective } from './filtering/menu/filter-radio-button.directive';
111
+ import { AddCommandToolbarDirective } from './editing/add-command-tool.directive';
112
+ import { ExcelCommandToolbarDirective } from './excel/excel-command-tool.directive';
113
+ import { PDFCommandToolbarDirective } from './pdf/pdf-command-tool.directive';
111
114
  /**
112
115
  * @hidden
113
116
  * Utility array that contains the former Shared module exports
@@ -117,7 +120,7 @@ export declare const SHARED_EXPORTS: readonly [typeof ColumnComponent, typeof Co
117
120
  * @hidden
118
121
  * Utility array that contains the Body module exports
119
122
  */
120
- export declare const BODY_EXPORTS: readonly [typeof CommandColumnComponent, typeof CellTemplateDirective, typeof CellComponent, typeof NoRecordsTemplateDirective, typeof EditTemplateDirective, typeof EditCommandDirective, typeof CancelCommandDirective, typeof SaveCommandDirective, typeof RemoveCommandDirective, typeof AddCommandDirective, typeof FooterTemplateDirective];
123
+ export declare const BODY_EXPORTS: readonly [typeof CommandColumnComponent, typeof CellTemplateDirective, typeof CellComponent, typeof NoRecordsTemplateDirective, typeof EditTemplateDirective, typeof EditCommandDirective, typeof CancelCommandDirective, typeof SaveCommandDirective, typeof RemoveCommandDirective, typeof AddCommandDirective, typeof AddCommandToolbarDirective, typeof FooterTemplateDirective];
121
124
  /**
122
125
  * @hidden
123
126
  * Utility array that contains the Header module exports
@@ -152,13 +155,13 @@ export declare const COLUMN_MENU_EXPORTS: readonly [typeof ColumnChooserComponen
152
155
  * @hidden
153
156
  * Utility array that contains the Excel module exports
154
157
  */
155
- export declare const EXCEL_EXPORTS: readonly [typeof ExcelComponent, typeof ExcelCommandDirective];
158
+ export declare const EXCEL_EXPORTS: readonly [typeof ExcelComponent, typeof ExcelCommandDirective, typeof ExcelCommandToolbarDirective];
156
159
  /**
157
160
  * @hidden
158
161
  * Utility array that contains the PDF module exports
159
162
  */
160
- export declare const PDF_EXPORTS: readonly [typeof PDFComponent, typeof PDFMarginComponent, typeof PDFCommandDirective, typeof PDFTemplateDirective];
163
+ export declare const PDF_EXPORTS: readonly [typeof PDFComponent, typeof PDFMarginComponent, typeof PDFCommandDirective, typeof PDFTemplateDirective, typeof PDFCommandToolbarDirective];
161
164
  /**
162
165
  * Utility array that contains all `@progress/kendo-angular-treelist` related components and directives
163
166
  */
164
- export declare const KENDO_TREELIST: readonly [typeof TreeListComponent, typeof ToolbarTemplateDirective, typeof ToolbarComponent, typeof TreeListSpacerComponent, typeof CustomMessagesComponent, typeof TemplateEditingDirective, typeof ReactiveEditingDirective, typeof InCellEditingDirective, typeof HierarchyBindingDirective, typeof FlatBindingDirective, typeof ExpandableDirective, typeof SelectableDirective, typeof TreeListToolbarFocusableDirective, typeof ColumnComponent, typeof ColumnGroupComponent, typeof LogicalCellDirective, typeof LogicalRowDirective, typeof FocusableDirective, typeof ColGroupComponent, typeof ResizableContainerDirective, typeof TemplateContextDirective, typeof FieldAccessorPipe, typeof SpanColumnComponent, typeof LoadingComponent, typeof FilterCellOperatorsComponent, typeof CheckboxColumnComponent, typeof RowReorderColumnComponent, typeof CommandColumnComponent, typeof CellTemplateDirective, typeof CellComponent, typeof NoRecordsTemplateDirective, typeof EditTemplateDirective, typeof EditCommandDirective, typeof CancelCommandDirective, typeof SaveCommandDirective, typeof RemoveCommandDirective, typeof AddCommandDirective, typeof FooterTemplateDirective, typeof HeaderComponent, typeof HeaderTemplateDirective, typeof ColumnHandleDirective, typeof PagerComponent, typeof PagerPrevButtonsComponent, typeof PagerNextButtonsComponent, typeof PagerNumericButtonsComponent, typeof PagerInputComponent, typeof PagerInfoComponent, typeof PagerPageSizesComponent, typeof PagerTemplateDirective, typeof FilterRowComponent, typeof FilterCellComponent, typeof FilterCellTemplateDirective, typeof StringFilterCellComponent, typeof NumericFilterCellComponent, typeof AutoCompleteFilterCellComponent, typeof BooleanFilterCellComponent, typeof FilterCellHostDirective, typeof FilterCellWrapperComponent, typeof DateFilterCellComponent, typeof FilterCellOperatorsComponent, typeof ContainsFilterOperatorComponent, typeof DoesNotContainFilterOperatorComponent, typeof EndsWithFilterOperatorComponent, typeof EqualFilterOperatorComponent, typeof IsEmptyFilterOperatorComponent, typeof IsNotEmptyFilterOperatorComponent, typeof IsNotNullFilterOperatorComponent, typeof IsNullFilterOperatorComponent, typeof NotEqualFilterOperatorComponent, typeof StartsWithFilterOperatorComponent, typeof GreaterFilterOperatorComponent, typeof GreaterOrEqualToFilterOperatorComponent, typeof LessFilterOperatorComponent, typeof LessOrEqualToFilterOperatorComponent, typeof AfterFilterOperatorComponent, typeof AfterEqFilterOperatorComponent, typeof BeforeEqFilterOperatorComponent, typeof BeforeFilterOperatorComponent, typeof FilterInputDirective, typeof ColumnComponent, typeof ColumnGroupComponent, typeof LogicalCellDirective, typeof LogicalRowDirective, typeof FocusableDirective, typeof ColGroupComponent, typeof ResizableContainerDirective, typeof TemplateContextDirective, typeof FieldAccessorPipe, typeof SpanColumnComponent, typeof LoadingComponent, typeof FilterCellOperatorsComponent, typeof CheckboxColumnComponent, typeof RowReorderColumnComponent, typeof FilterMenuComponent, typeof FilterMenuContainerComponent, typeof FilterMenuInputWrapperComponent, typeof StringFilterMenuInputComponent, typeof StringFilterMenuComponent, typeof FilterMenuTemplateDirective, typeof NumericFilterMenuComponent, typeof NumericFilterMenuInputComponent, typeof DateFilterMenuInputComponent, typeof DateFilterMenuComponent, typeof FilterMenuHostDirective, typeof BooleanFilterMenuComponent, typeof BooleanFilterRadioButtonDirective, typeof ColumnChooserComponent, typeof ColumnMenuChooserComponent, typeof ColumnMenuFilterComponent, typeof ColumnMenuItemComponent, typeof ColumnMenuItemContentTemplateDirective, typeof ColumnMenuSortComponent, typeof ColumnMenuComponent, typeof ColumnMenuLockComponent, typeof ColumnMenuTemplateDirective];
167
+ export declare const KENDO_TREELIST: readonly [typeof TreeListComponent, typeof ToolbarTemplateDirective, typeof ToolbarComponent, typeof TreeListSpacerComponent, typeof CustomMessagesComponent, typeof TemplateEditingDirective, typeof ReactiveEditingDirective, typeof InCellEditingDirective, typeof HierarchyBindingDirective, typeof FlatBindingDirective, typeof ExpandableDirective, typeof SelectableDirective, typeof TreeListToolbarFocusableDirective, typeof ColumnComponent, typeof ColumnGroupComponent, typeof LogicalCellDirective, typeof LogicalRowDirective, typeof FocusableDirective, typeof ColGroupComponent, typeof ResizableContainerDirective, typeof TemplateContextDirective, typeof FieldAccessorPipe, typeof SpanColumnComponent, typeof LoadingComponent, typeof FilterCellOperatorsComponent, typeof CheckboxColumnComponent, typeof RowReorderColumnComponent, typeof CommandColumnComponent, typeof CellTemplateDirective, typeof CellComponent, typeof NoRecordsTemplateDirective, typeof EditTemplateDirective, typeof EditCommandDirective, typeof CancelCommandDirective, typeof SaveCommandDirective, typeof RemoveCommandDirective, typeof AddCommandDirective, typeof AddCommandToolbarDirective, typeof FooterTemplateDirective, typeof HeaderComponent, typeof HeaderTemplateDirective, typeof ColumnHandleDirective, typeof PagerComponent, typeof PagerPrevButtonsComponent, typeof PagerNextButtonsComponent, typeof PagerNumericButtonsComponent, typeof PagerInputComponent, typeof PagerInfoComponent, typeof PagerPageSizesComponent, typeof PagerTemplateDirective, typeof FilterRowComponent, typeof FilterCellComponent, typeof FilterCellTemplateDirective, typeof StringFilterCellComponent, typeof NumericFilterCellComponent, typeof AutoCompleteFilterCellComponent, typeof BooleanFilterCellComponent, typeof FilterCellHostDirective, typeof FilterCellWrapperComponent, typeof DateFilterCellComponent, typeof FilterCellOperatorsComponent, typeof ContainsFilterOperatorComponent, typeof DoesNotContainFilterOperatorComponent, typeof EndsWithFilterOperatorComponent, typeof EqualFilterOperatorComponent, typeof IsEmptyFilterOperatorComponent, typeof IsNotEmptyFilterOperatorComponent, typeof IsNotNullFilterOperatorComponent, typeof IsNullFilterOperatorComponent, typeof NotEqualFilterOperatorComponent, typeof StartsWithFilterOperatorComponent, typeof GreaterFilterOperatorComponent, typeof GreaterOrEqualToFilterOperatorComponent, typeof LessFilterOperatorComponent, typeof LessOrEqualToFilterOperatorComponent, typeof AfterFilterOperatorComponent, typeof AfterEqFilterOperatorComponent, typeof BeforeEqFilterOperatorComponent, typeof BeforeFilterOperatorComponent, typeof FilterInputDirective, typeof ColumnComponent, typeof ColumnGroupComponent, typeof LogicalCellDirective, typeof LogicalRowDirective, typeof FocusableDirective, typeof ColGroupComponent, typeof ResizableContainerDirective, typeof TemplateContextDirective, typeof FieldAccessorPipe, typeof SpanColumnComponent, typeof LoadingComponent, typeof FilterCellOperatorsComponent, typeof CheckboxColumnComponent, typeof RowReorderColumnComponent, typeof FilterMenuComponent, typeof FilterMenuContainerComponent, typeof FilterMenuInputWrapperComponent, typeof StringFilterMenuInputComponent, typeof StringFilterMenuComponent, typeof FilterMenuTemplateDirective, typeof NumericFilterMenuComponent, typeof NumericFilterMenuInputComponent, typeof DateFilterMenuInputComponent, typeof DateFilterMenuComponent, typeof FilterMenuHostDirective, typeof BooleanFilterMenuComponent, typeof BooleanFilterRadioButtonDirective, typeof ColumnChooserComponent, typeof ColumnMenuChooserComponent, typeof ColumnMenuFilterComponent, typeof ColumnMenuItemComponent, typeof ColumnMenuItemContentTemplateDirective, typeof ColumnMenuSortComponent, typeof ColumnMenuComponent, typeof ColumnMenuLockComponent, typeof ColumnMenuTemplateDirective];
@@ -0,0 +1,38 @@
1
+ /**-----------------------------------------------------------------------------------------
2
+ * Copyright © 2024 Progress Software Corporation. All rights reserved.
3
+ * Licensed under commercial license. See LICENSE.md in the project root for more information
4
+ *-------------------------------------------------------------------------------------------*/
5
+ import { EditService } from './edit.service';
6
+ import { ToolBarButtonComponent } from '@progress/kendo-angular-toolbar';
7
+ import * as i0 from "@angular/core";
8
+ /**
9
+ * Represents the command for adding a new item to the TreeList.
10
+ * You can apply this directive to any `kendo-toolbar-button` element inside a
11
+ * ToolbarComponent used in the TreeList.
12
+ *
13
+ * When the user clicks the toolbar button that is associated with the directive, the
14
+ * [add]({% slug api_treelist_treelistcomponent %}#toc-add) event is triggered.
15
+ *
16
+ * @example
17
+ * ```html-no-run
18
+ * <kendo-grid>
19
+ * <kendo-toolbar>
20
+ * <kendo-toolbar-button text="Add new" kendoTreeListAddTool></kendo-toolbar-button>
21
+ * </kendo-toolbar>
22
+ * </kendo-grid>
23
+ * ```
24
+ */
25
+ export declare class AddCommandToolbarDirective {
26
+ private editService;
27
+ private host;
28
+ private clickSub;
29
+ constructor(editService: EditService, host: ToolBarButtonComponent);
30
+ ngOnInit(): void;
31
+ ngOnDestroy(): void;
32
+ /**
33
+ * @hidden
34
+ */
35
+ onClick(e: any): void;
36
+ static ɵfac: i0.ɵɵFactoryDeclaration<AddCommandToolbarDirective, never>;
37
+ static ɵdir: i0.ɵɵDirectiveDeclaration<AddCommandToolbarDirective, "[kendoTreeListAddTool]", never, {}, {}, never, never, true, never>;
38
+ }
@@ -135,7 +135,7 @@ ColumnChooserComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0",
135
135
  (columnChange)="onChange($event)">
136
136
  </kendo-treelist-columnlist>
137
137
  </ng-template>
138
- `, isInline: true, dependencies: [{ kind: "component", type: ButtonComponent, selector: "button[kendoButton], span[kendoButton], kendo-button", inputs: ["arrowIcon", "toggleable", "togglable", "selected", "tabIndex", "imageUrl", "iconClass", "icon", "disabled", "size", "rounded", "fillMode", "themeColor", "svgIcon", "role", "primary", "look"], outputs: ["selectedChange", "click"], exportAs: ["kendoButton"] }, { kind: "component", type: ColumnListComponent, selector: "kendo-treelist-columnlist", inputs: ["columns", "autoSync", "allowHideAll", "applyText", "resetText", "actionsClass"], outputs: ["reset", "apply", "columnChange"] }] });
138
+ `, isInline: true, dependencies: [{ kind: "component", type: ButtonComponent, selector: "button[kendoButton]", inputs: ["arrowIcon", "toggleable", "togglable", "selected", "tabIndex", "imageUrl", "iconClass", "icon", "disabled", "size", "rounded", "fillMode", "themeColor", "svgIcon", "primary", "look"], outputs: ["selectedChange", "click"], exportAs: ["kendoButton"] }, { kind: "component", type: ColumnListComponent, selector: "kendo-treelist-columnlist", inputs: ["columns", "autoSync", "allowHideAll", "applyText", "resetText", "actionsClass"], outputs: ["reset", "apply", "columnChange"] }] });
139
139
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: ColumnChooserComponent, decorators: [{
140
140
  type: Component,
141
141
  args: [{
@@ -108,6 +108,9 @@ import { HeaderComponent } from './rendering/header/header.component';
108
108
  import { ColumnHandleDirective } from './column-resizing/column-handle.directive';
109
109
  import { CellComponent } from './rendering/cell.component';
110
110
  import { BooleanFilterRadioButtonDirective } from './filtering/menu/filter-radio-button.directive';
111
+ import { AddCommandToolbarDirective } from './editing/add-command-tool.directive';
112
+ import { ExcelCommandToolbarDirective } from './excel/excel-command-tool.directive';
113
+ import { PDFCommandToolbarDirective } from './pdf/pdf-command-tool.directive';
111
114
  /**
112
115
  * @hidden
113
116
  * Utility array that contains the former Shared module exports
@@ -143,6 +146,7 @@ export const BODY_EXPORTS = [
143
146
  SaveCommandDirective,
144
147
  RemoveCommandDirective,
145
148
  AddCommandDirective,
149
+ AddCommandToolbarDirective,
146
150
  FooterTemplateDirective
147
151
  ];
148
152
  /**
@@ -252,7 +256,8 @@ export const COLUMN_MENU_EXPORTS = [
252
256
  */
253
257
  export const EXCEL_EXPORTS = [
254
258
  ExcelComponent,
255
- ExcelCommandDirective
259
+ ExcelCommandDirective,
260
+ ExcelCommandToolbarDirective
256
261
  ];
257
262
  /**
258
263
  * @hidden
@@ -262,7 +267,8 @@ export const PDF_EXPORTS = [
262
267
  PDFComponent,
263
268
  PDFMarginComponent,
264
269
  PDFCommandDirective,
265
- PDFTemplateDirective
270
+ PDFTemplateDirective,
271
+ PDFCommandToolbarDirective
266
272
  ];
267
273
  /**
268
274
  * Utility array that contains all `@progress/kendo-angular-treelist` related components and directives
@@ -0,0 +1,61 @@
1
+ /**-----------------------------------------------------------------------------------------
2
+ * Copyright © 2024 Progress Software Corporation. All rights reserved.
3
+ * Licensed under commercial license. See LICENSE.md in the project root for more information
4
+ *-------------------------------------------------------------------------------------------*/
5
+ import { Directive } from '@angular/core';
6
+ import { EditService } from './edit.service';
7
+ import { ToolBarButtonComponent } from '@progress/kendo-angular-toolbar';
8
+ import { Subscription } from 'rxjs';
9
+ import { plusIcon } from '@progress/kendo-svg-icons';
10
+ import * as i0 from "@angular/core";
11
+ import * as i1 from "./edit.service";
12
+ import * as i2 from "@progress/kendo-angular-toolbar";
13
+ /**
14
+ * Represents the command for adding a new item to the TreeList.
15
+ * You can apply this directive to any `kendo-toolbar-button` element inside a
16
+ * ToolbarComponent used in the TreeList.
17
+ *
18
+ * When the user clicks the toolbar button that is associated with the directive, the
19
+ * [add]({% slug api_treelist_treelistcomponent %}#toc-add) event is triggered.
20
+ *
21
+ * @example
22
+ * ```html-no-run
23
+ * <kendo-grid>
24
+ * <kendo-toolbar>
25
+ * <kendo-toolbar-button text="Add new" kendoTreeListAddTool></kendo-toolbar-button>
26
+ * </kendo-toolbar>
27
+ * </kendo-grid>
28
+ * ```
29
+ */
30
+ export class AddCommandToolbarDirective {
31
+ constructor(editService, host) {
32
+ this.editService = editService;
33
+ this.host = host;
34
+ this.clickSub = new Subscription();
35
+ }
36
+ ngOnInit() {
37
+ this.clickSub = this.host.click.subscribe(e => this.onClick(e));
38
+ this.host.className = 'k-grid-add-command';
39
+ this.host.svgIcon = plusIcon;
40
+ this.host.icon = 'plus';
41
+ }
42
+ ngOnDestroy() {
43
+ this.clickSub.unsubscribe();
44
+ }
45
+ /**
46
+ * @hidden
47
+ */
48
+ onClick(e) {
49
+ e.preventDefault();
50
+ this.editService.beginAdd();
51
+ }
52
+ }
53
+ AddCommandToolbarDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: AddCommandToolbarDirective, deps: [{ token: i1.EditService }, { token: i2.ToolBarButtonComponent }], target: i0.ɵɵFactoryTarget.Directive });
54
+ AddCommandToolbarDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "15.2.10", type: AddCommandToolbarDirective, isStandalone: true, selector: "[kendoTreeListAddTool]", ngImport: i0 });
55
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: AddCommandToolbarDirective, decorators: [{
56
+ type: Directive,
57
+ args: [{
58
+ selector: '[kendoTreeListAddTool]',
59
+ standalone: true
60
+ }]
61
+ }], ctorParameters: function () { return [{ type: i1.EditService }, { type: i2.ToolBarButtonComponent }]; } });
@@ -0,0 +1,64 @@
1
+ /**-----------------------------------------------------------------------------------------
2
+ * Copyright © 2024 Progress Software Corporation. All rights reserved.
3
+ * Licensed under commercial license. See LICENSE.md in the project root for more information
4
+ *-------------------------------------------------------------------------------------------*/
5
+ import { Directive } from '@angular/core';
6
+ import { ToolBarButtonComponent } from '@progress/kendo-angular-toolbar';
7
+ import { Subscription } from 'rxjs';
8
+ import { fileExcelIcon } from '@progress/kendo-svg-icons';
9
+ import { ExcelService } from './excel.service';
10
+ import * as i0 from "@angular/core";
11
+ import * as i1 from "./excel.service";
12
+ import * as i2 from "@progress/kendo-angular-toolbar";
13
+ /**
14
+ * Represents the `export-to-Excel` toolbar tool of the TreeList.
15
+ * You can apply this directive to any `kendo-toolbar-button` element inside a
16
+ * ToolbarComponent used in the TreeList.
17
+ *
18
+ * When the user clicks a button associated with the directive, the
19
+ * [excelExport]({% slug api_treelist_treelistcomponent %}#toc-excelexport) event
20
+ * fires ([see example]({% slug excelexport_treelist %})).
21
+ *
22
+ * @example
23
+ * ```html-no-run
24
+ * <kendo-treelist>
25
+ * <kendo-toolbar>
26
+ * <kendo-toolbar-button text="Excel Export" kendoTreeListExcelTool></kendo-toolbar-button>
27
+ * </kendo-toolbar>
28
+ * <kendo-treelist-excel fileName="TreeList.xlsx">
29
+ * </kendo-treelist-excel>
30
+ * </kendo-treelist>
31
+ * ```
32
+ */
33
+ export class ExcelCommandToolbarDirective {
34
+ constructor(excelService, host) {
35
+ this.excelService = excelService;
36
+ this.host = host;
37
+ this.clickSub = new Subscription();
38
+ }
39
+ ngOnInit() {
40
+ this.clickSub = this.host.click.subscribe(e => this.onClick(e));
41
+ this.host.className = 'k-grid-excel';
42
+ this.host.svgIcon = fileExcelIcon;
43
+ this.host.icon = 'file-excel';
44
+ }
45
+ ngOnDestroy() {
46
+ this.clickSub.unsubscribe();
47
+ }
48
+ /**
49
+ * @hidden
50
+ */
51
+ onClick(e) {
52
+ e.preventDefault();
53
+ this.excelService.exportClick.emit();
54
+ }
55
+ }
56
+ ExcelCommandToolbarDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: ExcelCommandToolbarDirective, deps: [{ token: i1.ExcelService }, { token: i2.ToolBarButtonComponent }], target: i0.ɵɵFactoryTarget.Directive });
57
+ ExcelCommandToolbarDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "15.2.10", type: ExcelCommandToolbarDirective, isStandalone: true, selector: "[kendoTreeListExcelTool]", ngImport: i0 });
58
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: ExcelCommandToolbarDirective, decorators: [{
59
+ type: Directive,
60
+ args: [{
61
+ selector: '[kendoTreeListExcelTool]',
62
+ standalone: true
63
+ }]
64
+ }], ctorParameters: function () { return [{ type: i1.ExcelService }, { type: i2.ToolBarButtonComponent }]; } });
@@ -9,6 +9,7 @@ import { ExcelExportModule } from '@progress/kendo-angular-excel-export';
9
9
  import * as i0 from "@angular/core";
10
10
  import * as i1 from "./excel.component";
11
11
  import * as i2 from "./excel-command.directive";
12
+ import * as i3 from "./excel-command-tool.directive";
12
13
  // IMPORTANT: NgModule export kept for backwards compatibility
13
14
  /**
14
15
  * Represents the [NgModule](link:site.data.urls.angular['ngmoduleapi'])
@@ -32,8 +33,8 @@ import * as i2 from "./excel-command.directive";
32
33
  export class ExcelModule {
33
34
  }
34
35
  ExcelModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: ExcelModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
35
- ExcelModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "15.2.10", ngImport: i0, type: ExcelModule, imports: [i1.ExcelComponent, i2.ExcelCommandDirective], exports: [i1.ExcelComponent, i2.ExcelCommandDirective, ExcelExportModule] });
36
- ExcelModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: ExcelModule, providers: [IconsService], imports: [EXCEL_EXPORTS, ExcelExportModule] });
36
+ ExcelModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "15.2.10", ngImport: i0, type: ExcelModule, imports: [i1.ExcelComponent, i2.ExcelCommandDirective, i3.ExcelCommandToolbarDirective], exports: [i1.ExcelComponent, i2.ExcelCommandDirective, i3.ExcelCommandToolbarDirective, ExcelExportModule] });
37
+ ExcelModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: ExcelModule, providers: [IconsService], imports: [i1.ExcelComponent, i2.ExcelCommandDirective, ExcelExportModule] });
37
38
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: ExcelModule, decorators: [{
38
39
  type: NgModule,
39
40
  args: [{
@@ -152,7 +152,7 @@ FilterCellOperatorsComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14
152
152
  (click)="clearClick()"
153
153
  (keydown)="clearKeydown($event)">
154
154
  </button>
155
- `, isInline: true, dependencies: [{ kind: "directive", type: NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "component", type: DropDownListComponent, selector: "kendo-dropdownlist", inputs: ["customIconClass", "showStickyHeader", "icon", "svgIcon", "loading", "data", "value", "textField", "valueField", "adaptiveMode", "title", "subtitle", "popupSettings", "listHeight", "defaultItem", "disabled", "itemDisabled", "readonly", "filterable", "virtual", "ignoreCase", "delay", "valuePrimitive", "tabindex", "tabIndex", "size", "rounded", "fillMode", "leftRightArrowsNavigation", "id"], outputs: ["valueChange", "filterChange", "selectionChange", "open", "opened", "close", "closed", "focus", "blur"], exportAs: ["kendoDropDownList"] }, { kind: "directive", type: FocusableDirective, selector: "[kendoTreeListFocusable],\n [kendoTreeListAddCommand],\n [kendoTreeListEditCommand],\n [kendoTreeListRemoveCommand],\n [kendoTreeListSaveCommand],\n [kendoTreeListCancelCommand]\n ", inputs: ["kendoTreeListFocusable", "enabled", "kendoTreeListAddCommand", "kendoTreeListEditCommand", "kendoTreeListRemoveCommand", "kendoTreeListSaveCommand", "kendoTreeListCancelCommand"] }, { kind: "component", type: ButtonComponent, selector: "button[kendoButton], span[kendoButton], kendo-button", inputs: ["arrowIcon", "toggleable", "togglable", "selected", "tabIndex", "imageUrl", "iconClass", "icon", "disabled", "size", "rounded", "fillMode", "themeColor", "svgIcon", "role", "primary", "look"], outputs: ["selectedChange", "click"], exportAs: ["kendoButton"] }] });
155
+ `, isInline: true, dependencies: [{ kind: "directive", type: NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "component", type: DropDownListComponent, selector: "kendo-dropdownlist", inputs: ["customIconClass", "showStickyHeader", "icon", "svgIcon", "loading", "data", "value", "textField", "valueField", "adaptiveMode", "title", "subtitle", "popupSettings", "listHeight", "defaultItem", "disabled", "itemDisabled", "readonly", "filterable", "virtual", "ignoreCase", "delay", "valuePrimitive", "tabindex", "tabIndex", "size", "rounded", "fillMode", "leftRightArrowsNavigation", "id"], outputs: ["valueChange", "filterChange", "selectionChange", "open", "opened", "close", "closed", "focus", "blur"], exportAs: ["kendoDropDownList"] }, { kind: "directive", type: FocusableDirective, selector: "[kendoTreeListFocusable],\n [kendoTreeListAddCommand],\n [kendoTreeListEditCommand],\n [kendoTreeListRemoveCommand],\n [kendoTreeListSaveCommand],\n [kendoTreeListCancelCommand]\n ", inputs: ["kendoTreeListFocusable", "enabled", "kendoTreeListAddCommand", "kendoTreeListEditCommand", "kendoTreeListRemoveCommand", "kendoTreeListSaveCommand", "kendoTreeListCancelCommand"] }, { kind: "component", type: ButtonComponent, selector: "button[kendoButton]", inputs: ["arrowIcon", "toggleable", "togglable", "selected", "tabIndex", "imageUrl", "iconClass", "icon", "disabled", "size", "rounded", "fillMode", "themeColor", "svgIcon", "primary", "look"], outputs: ["selectedChange", "click"], exportAs: ["kendoButton"] }] });
156
156
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: FilterCellOperatorsComponent, decorators: [{
157
157
  type: Component,
158
158
  args: [{
package/esm2020/index.mjs CHANGED
@@ -86,6 +86,7 @@ export { PDFComponent } from './pdf/pdf.component';
86
86
  export { PDFMarginComponent } from './pdf/pdf-margin.component';
87
87
  export { PDFService } from './pdf/pdf.service';
88
88
  export { PDFCommandDirective } from './pdf/pdf-command.directive';
89
+ export { PDFCommandToolbarDirective } from './pdf/pdf-command-tool.directive';
89
90
  export { PDFTemplateDirective } from './pdf/pdf-template.directive';
90
91
  //Excel
91
92
  export { ExcelModule } from './excel/excel.module';
@@ -93,9 +94,11 @@ export { ExcelComponent } from './excel/excel.component';
93
94
  export { ExcelService } from './excel/excel.service';
94
95
  export { ExcelExportEvent } from './excel/excel-export-event';
95
96
  export { ExcelCommandDirective } from './excel/excel-command.directive';
97
+ export { ExcelCommandToolbarDirective } from './excel/excel-command-tool.directive';
96
98
  export { SelectableDirective } from './selection/selectable.directive';
97
99
  export { SelectionChangeEvent } from './selection/selection-change-event';
98
100
  export { CellCloseEvent } from './editing/cell-close-event';
101
+ export { AddCommandToolbarDirective } from './editing/add-command-tool.directive';
99
102
  export { SuspendService } from './scrolling/suspend.service';
100
103
  export { Skip } from './utils';
101
104
  export { ColumnsContainer } from './columns/columns-container';
@@ -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: 1728914615,
13
- version: '17.0.0-develop.2',
12
+ publishDate: 1729874363,
13
+ version: '17.0.0-develop.21',
14
14
  licensingDocsUrl: 'https://www.telerik.com/kendo-angular-ui/my-license/'
15
15
  };
@@ -80,7 +80,7 @@ PagerNextButtonsComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.
80
80
  [attr.aria-label]="textFor('pagerLastPage')"
81
81
  (click)="onButtonClick('lastPage')">
82
82
  </button>
83
- `, isInline: true, dependencies: [{ kind: "component", type: ButtonComponent, selector: "button[kendoButton], span[kendoButton], kendo-button", inputs: ["arrowIcon", "toggleable", "togglable", "selected", "tabIndex", "imageUrl", "iconClass", "icon", "disabled", "size", "rounded", "fillMode", "themeColor", "svgIcon", "role", "primary", "look"], outputs: ["selectedChange", "click"], exportAs: ["kendoButton"] }, { kind: "directive", type: FocusableDirective, selector: "[kendoTreeListFocusable],\n [kendoTreeListAddCommand],\n [kendoTreeListEditCommand],\n [kendoTreeListRemoveCommand],\n [kendoTreeListSaveCommand],\n [kendoTreeListCancelCommand]\n ", inputs: ["kendoTreeListFocusable", "enabled", "kendoTreeListAddCommand", "kendoTreeListEditCommand", "kendoTreeListRemoveCommand", "kendoTreeListSaveCommand", "kendoTreeListCancelCommand"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
83
+ `, isInline: true, dependencies: [{ kind: "component", type: ButtonComponent, selector: "button[kendoButton]", inputs: ["arrowIcon", "toggleable", "togglable", "selected", "tabIndex", "imageUrl", "iconClass", "icon", "disabled", "size", "rounded", "fillMode", "themeColor", "svgIcon", "primary", "look"], outputs: ["selectedChange", "click"], exportAs: ["kendoButton"] }, { kind: "directive", type: FocusableDirective, selector: "[kendoTreeListFocusable],\n [kendoTreeListAddCommand],\n [kendoTreeListEditCommand],\n [kendoTreeListRemoveCommand],\n [kendoTreeListSaveCommand],\n [kendoTreeListCancelCommand]\n ", inputs: ["kendoTreeListFocusable", "enabled", "kendoTreeListAddCommand", "kendoTreeListEditCommand", "kendoTreeListRemoveCommand", "kendoTreeListSaveCommand", "kendoTreeListCancelCommand"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
84
84
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: PagerNextButtonsComponent, decorators: [{
85
85
  type: Component,
86
86
  args: [{
@@ -156,7 +156,7 @@ PagerNumericButtonsComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14
156
156
  [attr.title]="pageLabel(end + 1)"
157
157
  (click)="changePage(end)">...</button>
158
158
  </div>
159
- `, isInline: true, dependencies: [{ kind: "directive", type: FocusableDirective, selector: "[kendoTreeListFocusable],\n [kendoTreeListAddCommand],\n [kendoTreeListEditCommand],\n [kendoTreeListRemoveCommand],\n [kendoTreeListSaveCommand],\n [kendoTreeListCancelCommand]\n ", inputs: ["kendoTreeListFocusable", "enabled", "kendoTreeListAddCommand", "kendoTreeListEditCommand", "kendoTreeListRemoveCommand", "kendoTreeListSaveCommand", "kendoTreeListCancelCommand"] }, { kind: "directive", type: NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: NgFor, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "component", type: ButtonComponent, selector: "button[kendoButton], span[kendoButton], kendo-button", inputs: ["arrowIcon", "toggleable", "togglable", "selected", "tabIndex", "imageUrl", "iconClass", "icon", "disabled", "size", "rounded", "fillMode", "themeColor", "svgIcon", "role", "primary", "look"], outputs: ["selectedChange", "click"], exportAs: ["kendoButton"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
159
+ `, isInline: true, dependencies: [{ kind: "directive", type: FocusableDirective, selector: "[kendoTreeListFocusable],\n [kendoTreeListAddCommand],\n [kendoTreeListEditCommand],\n [kendoTreeListRemoveCommand],\n [kendoTreeListSaveCommand],\n [kendoTreeListCancelCommand]\n ", inputs: ["kendoTreeListFocusable", "enabled", "kendoTreeListAddCommand", "kendoTreeListEditCommand", "kendoTreeListRemoveCommand", "kendoTreeListSaveCommand", "kendoTreeListCancelCommand"] }, { kind: "directive", type: NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: NgFor, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "component", type: ButtonComponent, selector: "button[kendoButton]", inputs: ["arrowIcon", "toggleable", "togglable", "selected", "tabIndex", "imageUrl", "iconClass", "icon", "disabled", "size", "rounded", "fillMode", "themeColor", "svgIcon", "primary", "look"], outputs: ["selectedChange", "click"], exportAs: ["kendoButton"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
160
160
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: PagerNumericButtonsComponent, decorators: [{
161
161
  type: Component,
162
162
  args: [{
@@ -81,7 +81,7 @@ PagerPrevButtonsComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.
81
81
  [attr.aria-label]="textFor('pagerPreviousPage')"
82
82
  (click)="onButtonClick('prevPage')">
83
83
  </button>
84
- `, isInline: true, dependencies: [{ kind: "component", type: ButtonComponent, selector: "button[kendoButton], span[kendoButton], kendo-button", inputs: ["arrowIcon", "toggleable", "togglable", "selected", "tabIndex", "imageUrl", "iconClass", "icon", "disabled", "size", "rounded", "fillMode", "themeColor", "svgIcon", "role", "primary", "look"], outputs: ["selectedChange", "click"], exportAs: ["kendoButton"] }, { kind: "directive", type: FocusableDirective, selector: "[kendoTreeListFocusable],\n [kendoTreeListAddCommand],\n [kendoTreeListEditCommand],\n [kendoTreeListRemoveCommand],\n [kendoTreeListSaveCommand],\n [kendoTreeListCancelCommand]\n ", inputs: ["kendoTreeListFocusable", "enabled", "kendoTreeListAddCommand", "kendoTreeListEditCommand", "kendoTreeListRemoveCommand", "kendoTreeListSaveCommand", "kendoTreeListCancelCommand"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
84
+ `, isInline: true, dependencies: [{ kind: "component", type: ButtonComponent, selector: "button[kendoButton]", inputs: ["arrowIcon", "toggleable", "togglable", "selected", "tabIndex", "imageUrl", "iconClass", "icon", "disabled", "size", "rounded", "fillMode", "themeColor", "svgIcon", "primary", "look"], outputs: ["selectedChange", "click"], exportAs: ["kendoButton"] }, { kind: "directive", type: FocusableDirective, selector: "[kendoTreeListFocusable],\n [kendoTreeListAddCommand],\n [kendoTreeListEditCommand],\n [kendoTreeListRemoveCommand],\n [kendoTreeListSaveCommand],\n [kendoTreeListCancelCommand]\n ", inputs: ["kendoTreeListFocusable", "enabled", "kendoTreeListAddCommand", "kendoTreeListEditCommand", "kendoTreeListRemoveCommand", "kendoTreeListSaveCommand", "kendoTreeListCancelCommand"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
85
85
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: PagerPrevButtonsComponent, decorators: [{
86
86
  type: Component,
87
87
  args: [{
@@ -0,0 +1,64 @@
1
+ /**-----------------------------------------------------------------------------------------
2
+ * Copyright © 2024 Progress Software Corporation. All rights reserved.
3
+ * Licensed under commercial license. See LICENSE.md in the project root for more information
4
+ *-------------------------------------------------------------------------------------------*/
5
+ import { Directive } from '@angular/core';
6
+ import { PDFService } from './pdf.service';
7
+ import { ToolBarButtonComponent } from '@progress/kendo-angular-toolbar';
8
+ import { Subscription } from 'rxjs';
9
+ import { filePdfIcon } from '@progress/kendo-svg-icons';
10
+ import * as i0 from "@angular/core";
11
+ import * as i1 from "./pdf.service";
12
+ import * as i2 from "@progress/kendo-angular-toolbar";
13
+ /**
14
+ * Represents the `export-to-PDF` toolbar tool of the TreeList.
15
+ * You can apply this directive to any `kendo-toolbar-button` element inside a
16
+ * ToolbarComponent used in the TreeList.
17
+ *
18
+ * When the user clicks the toolbar button that is associated with the directive, the
19
+ * [pdfExport]({% slug api_treelist_treelistcomponent %}#toc-pdfexport) event
20
+ * fires ([see example]({% slug pdfexport_treelist %})).
21
+ *
22
+ * @example
23
+ * ```html-no-run
24
+ * <kendo-treelist>
25
+ * <kendo-toolbar>
26
+ * <kendo-toolbar-button text="PDF Export" kendoTreeListPDFTool></kendo-toolbar-button>
27
+ * </kendo-toolbar>
28
+ * <kendo-treelist-pdf fileName="TreeList.pdf">
29
+ * </kendo-treelist-pdf>
30
+ * </kendo-treelist>
31
+ * ```
32
+ */
33
+ export class PDFCommandToolbarDirective {
34
+ constructor(pdfService, host) {
35
+ this.pdfService = pdfService;
36
+ this.host = host;
37
+ this.clickSub = new Subscription();
38
+ }
39
+ ngOnInit() {
40
+ this.clickSub = this.host.click.subscribe(e => this.onClick(e));
41
+ this.host.className = 'k-grid-pdf';
42
+ this.host.svgIcon = filePdfIcon;
43
+ this.host.icon = 'file-pdf';
44
+ }
45
+ ngOnDestroy() {
46
+ this.clickSub.unsubscribe();
47
+ }
48
+ /**
49
+ * @hidden
50
+ */
51
+ onClick(e) {
52
+ e.preventDefault();
53
+ this.pdfService.exportClick.emit();
54
+ }
55
+ }
56
+ PDFCommandToolbarDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: PDFCommandToolbarDirective, deps: [{ token: i1.PDFService }, { token: i2.ToolBarButtonComponent }], target: i0.ɵɵFactoryTarget.Directive });
57
+ PDFCommandToolbarDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "15.2.10", type: PDFCommandToolbarDirective, isStandalone: true, selector: "[kendoTreeListPDFTool]", ngImport: i0 });
58
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: PDFCommandToolbarDirective, decorators: [{
59
+ type: Directive,
60
+ args: [{
61
+ selector: '[kendoTreeListPDFTool]',
62
+ standalone: true
63
+ }]
64
+ }], ctorParameters: function () { return [{ type: i1.PDFService }, { type: i2.ToolBarButtonComponent }]; } });
@@ -10,7 +10,8 @@ import * as i1 from "./pdf.component";
10
10
  import * as i2 from "./pdf-margin.component";
11
11
  import * as i3 from "./pdf-command.directive";
12
12
  import * as i4 from "./pdf-template.directive";
13
- import * as i5 from "@progress/kendo-angular-icons";
13
+ import * as i5 from "./pdf-command-tool.directive";
14
+ import * as i6 from "@progress/kendo-angular-icons";
14
15
  // IMPORTANT: NgModule export kept for backwards compatibility
15
16
  /**
16
17
  * Represents the [NgModule](link:site.data.urls.angular['ngmoduleapi'])
@@ -35,7 +36,7 @@ import * as i5 from "@progress/kendo-angular-icons";
35
36
  export class PDFModule {
36
37
  }
37
38
  PDFModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: PDFModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
38
- PDFModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "15.2.10", ngImport: i0, type: PDFModule, imports: [i1.PDFComponent, i2.PDFMarginComponent, i3.PDFCommandDirective, i4.PDFTemplateDirective, i5.IconComponent, i5.SVGIconComponent], exports: [i1.PDFComponent, i2.PDFMarginComponent, i3.PDFCommandDirective, i4.PDFTemplateDirective] });
39
+ PDFModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "15.2.10", ngImport: i0, type: PDFModule, imports: [i1.PDFComponent, i2.PDFMarginComponent, i3.PDFCommandDirective, i4.PDFTemplateDirective, i5.PDFCommandToolbarDirective, i6.IconComponent, i6.SVGIconComponent], exports: [i1.PDFComponent, i2.PDFMarginComponent, i3.PDFCommandDirective, i4.PDFTemplateDirective, i5.PDFCommandToolbarDirective] });
39
40
  PDFModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: PDFModule, providers: [IconsService], imports: [i1.PDFComponent, i2.PDFMarginComponent, i3.PDFCommandDirective, KENDO_ICONS] });
40
41
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: PDFModule, decorators: [{
41
42
  type: NgModule,
@@ -17,10 +17,11 @@ import * as i7 from "../editing/cancel-command.directive";
17
17
  import * as i8 from "../editing/save-command.directive";
18
18
  import * as i9 from "../editing/remove-command.directive";
19
19
  import * as i10 from "../editing/add-command.directive";
20
- import * as i11 from "./footer-template.directive";
21
- import * as i12 from "@progress/kendo-angular-inputs";
22
- import * as i13 from "@progress/kendo-angular-common";
23
- import * as i14 from "@progress/kendo-angular-dateinputs";
20
+ import * as i11 from "../editing/add-command-tool.directive";
21
+ import * as i12 from "./footer-template.directive";
22
+ import * as i13 from "@progress/kendo-angular-inputs";
23
+ import * as i14 from "@progress/kendo-angular-common";
24
+ import * as i15 from "@progress/kendo-angular-dateinputs";
24
25
  // IMPORTANT: NgModule export kept for backwards compatibility
25
26
  /**
26
27
  * @hidden
@@ -29,8 +30,8 @@ import * as i14 from "@progress/kendo-angular-dateinputs";
29
30
  export class BodyModule {
30
31
  }
31
32
  BodyModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: BodyModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
32
- BodyModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "15.2.10", ngImport: i0, type: BodyModule, imports: [i1.CommandColumnComponent, i2.CellTemplateDirective, i3.CellComponent, i4.NoRecordsTemplateDirective, i5.EditTemplateDirective, i6.EditCommandDirective, i7.CancelCommandDirective, i8.SaveCommandDirective, i9.RemoveCommandDirective, i10.AddCommandDirective, i11.FooterTemplateDirective, i12.NumericTextBoxComponent, i12.NumericTextBoxCustomMessagesComponent, i13.PrefixTemplateDirective, i13.SuffixTemplateDirective, i13.SeparatorComponent, i14.DatePickerCustomMessagesComponent, i14.DatePickerComponent, i14.CellTemplateDirective, i14.CenturyCellTemplateDirective, i14.DecadeCellTemplateDirective, i14.FooterTemplateDirective, i14.HeaderTemplateDirective, i14.HeaderTitleTemplateDirective, i14.MonthCellTemplateDirective, i14.NavigationItemTemplateDirective, i14.WeekNumberCellTemplateDirective, i14.YearCellTemplateDirective, i14.NavigationItemTemplateDirective], exports: [i1.CommandColumnComponent, i2.CellTemplateDirective, i3.CellComponent, i4.NoRecordsTemplateDirective, i5.EditTemplateDirective, i6.EditCommandDirective, i7.CancelCommandDirective, i8.SaveCommandDirective, i9.RemoveCommandDirective, i10.AddCommandDirective, i11.FooterTemplateDirective] });
33
- BodyModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: BodyModule, imports: [i1.CommandColumnComponent, i3.CellComponent, i6.EditCommandDirective, i7.CancelCommandDirective, i8.SaveCommandDirective, i9.RemoveCommandDirective, i10.AddCommandDirective, i12.NumericTextBoxComponent, i12.NumericTextBoxCustomMessagesComponent, i13.SeparatorComponent, i14.DatePickerCustomMessagesComponent, i14.DatePickerComponent] });
33
+ BodyModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "15.2.10", ngImport: i0, type: BodyModule, imports: [i1.CommandColumnComponent, i2.CellTemplateDirective, i3.CellComponent, i4.NoRecordsTemplateDirective, i5.EditTemplateDirective, i6.EditCommandDirective, i7.CancelCommandDirective, i8.SaveCommandDirective, i9.RemoveCommandDirective, i10.AddCommandDirective, i11.AddCommandToolbarDirective, i12.FooterTemplateDirective, i13.NumericTextBoxComponent, i13.NumericTextBoxCustomMessagesComponent, i14.PrefixTemplateDirective, i14.SuffixTemplateDirective, i14.SeparatorComponent, i15.DatePickerCustomMessagesComponent, i15.DatePickerComponent, i15.CellTemplateDirective, i15.CenturyCellTemplateDirective, i15.DecadeCellTemplateDirective, i15.FooterTemplateDirective, i15.HeaderTemplateDirective, i15.HeaderTitleTemplateDirective, i15.MonthCellTemplateDirective, i15.NavigationItemTemplateDirective, i15.WeekNumberCellTemplateDirective, i15.YearCellTemplateDirective, i15.NavigationItemTemplateDirective], exports: [i1.CommandColumnComponent, i2.CellTemplateDirective, i3.CellComponent, i4.NoRecordsTemplateDirective, i5.EditTemplateDirective, i6.EditCommandDirective, i7.CancelCommandDirective, i8.SaveCommandDirective, i9.RemoveCommandDirective, i10.AddCommandDirective, i11.AddCommandToolbarDirective, i12.FooterTemplateDirective] });
34
+ BodyModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: BodyModule, imports: [i1.CommandColumnComponent, i3.CellComponent, i6.EditCommandDirective, i7.CancelCommandDirective, i8.SaveCommandDirective, i9.RemoveCommandDirective, i10.AddCommandDirective, i13.NumericTextBoxComponent, i13.NumericTextBoxCustomMessagesComponent, i14.SeparatorComponent, i15.DatePickerCustomMessagesComponent, i15.DatePickerComponent] });
34
35
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: BodyModule, decorators: [{
35
36
  type: NgModule,
36
37
  args: [{