@progress/kendo-angular-treelist 17.0.0-develop.13 → 17.0.0-develop.14
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/directives.d.ts +7 -4
- package/editing/add-command-tool.directive.d.ts +38 -0
- package/esm2020/directives.mjs +8 -2
- package/esm2020/editing/add-command-tool.directive.mjs +61 -0
- package/esm2020/excel/excel-command-tool.directive.mjs +64 -0
- package/esm2020/excel/excel.module.mjs +3 -2
- package/esm2020/index.mjs +3 -0
- package/esm2020/package-metadata.mjs +2 -2
- package/esm2020/pdf/pdf-command-tool.directive.mjs +64 -0
- package/esm2020/pdf/pdf.module.mjs +3 -2
- package/esm2020/rendering/body.module.mjs +7 -6
- package/esm2020/treelist.component.mjs +12 -4
- package/esm2020/treelist.module.mjs +68 -66
- package/excel/excel-command-tool.directive.d.ts +41 -0
- package/excel/excel.module.d.ts +3 -2
- package/fesm2015/progress-kendo-angular-treelist.mjs +190 -19
- package/fesm2020/progress-kendo-angular-treelist.mjs +188 -19
- package/index.d.ts +3 -0
- package/package.json +16 -15
- package/pdf/pdf-command-tool.directive.d.ts +41 -0
- package/pdf/pdf.module.d.ts +3 -2
- package/rendering/body.module.d.ts +6 -5
- package/schematics/ngAdd/index.js +3 -3
- package/treelist.component.d.ts +1 -1
- package/treelist.module.d.ts +67 -65
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
|
+
}
|
package/esm2020/directives.mjs
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
|
@@ -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: [
|
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: [{
|
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:
|
13
|
-
version: '17.0.0-develop.
|
12
|
+
publishDate: 1729261140,
|
13
|
+
version: '17.0.0-develop.14',
|
14
14
|
licensingDocsUrl: 'https://www.telerik.com/kendo-angular-ui/my-license/'
|
15
15
|
};
|
@@ -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 "
|
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,
|
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 "
|
21
|
-
import * as i12 from "
|
22
|
-
import * as i13 from "@progress/kendo-angular-
|
23
|
-
import * as i14 from "@progress/kendo-angular-
|
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.
|
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,
|
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: [{
|
@@ -850,6 +850,10 @@ export class TreeListComponent {
|
|
850
850
|
this.updateNavigationMetadata();
|
851
851
|
this.applyAutoSize();
|
852
852
|
this.subscriptions.add(this.pagerTemplateChildren.changes.subscribe(() => this.changeDetectorRef.markForCheck()));
|
853
|
+
const toolbarComponentWrapper = this.wrapper?.nativeElement?.querySelector('kendo-toolbar');
|
854
|
+
if (toolbarComponentWrapper) {
|
855
|
+
this.renderer.addClass(toolbarComponentWrapper, 'k-grid-toolbar');
|
856
|
+
}
|
853
857
|
}
|
854
858
|
ngAfterContentChecked() {
|
855
859
|
if (this.dataChanged) {
|
@@ -1409,6 +1413,10 @@ export class TreeListComponent {
|
|
1409
1413
|
if ((this.rowHeight) && !this.isVirtual) {
|
1410
1414
|
throw new Error('Row height setting requires virtual scrolling mode to be enabled.');
|
1411
1415
|
}
|
1416
|
+
if (this.wrapper?.nativeElement?.querySelector('kendo-toolbar') && this.toolbarTemplate) {
|
1417
|
+
console.warn(`Defining both a toolbar template and a ToolBarComponent within the TreeList is not supported.
|
1418
|
+
Please use either the ToolBarComponent or a custom template.`);
|
1419
|
+
}
|
1412
1420
|
validateColumnsField(this.columnList);
|
1413
1421
|
}
|
1414
1422
|
}
|
@@ -1926,8 +1934,8 @@ TreeListComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", vers
|
|
1926
1934
|
[navigable]="navigable"
|
1927
1935
|
class="k-toolbar k-grid-toolbar k-toolbar-md"
|
1928
1936
|
[attr.aria-label]="messageFor('topToolbarLabel')"
|
1929
|
-
[attr.aria-controls]="ariaRootId">
|
1930
|
-
|
1937
|
+
[attr.aria-controls]="ariaRootId"></kendo-treelist-toolbar>
|
1938
|
+
<ng-content select="kendo-toolbar"></ng-content>
|
1931
1939
|
<div #ariaRoot
|
1932
1940
|
class="k-grid-aria-root"
|
1933
1941
|
role="treegrid"
|
@@ -2354,8 +2362,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImpo
|
|
2354
2362
|
[navigable]="navigable"
|
2355
2363
|
class="k-toolbar k-grid-toolbar k-toolbar-md"
|
2356
2364
|
[attr.aria-label]="messageFor('topToolbarLabel')"
|
2357
|
-
[attr.aria-controls]="ariaRootId">
|
2358
|
-
|
2365
|
+
[attr.aria-controls]="ariaRootId"></kendo-treelist-toolbar>
|
2366
|
+
<ng-content select="kendo-toolbar"></ng-content>
|
2359
2367
|
<div #ariaRoot
|
2360
2368
|
class="k-grid-aria-root"
|
2361
2369
|
role="treegrid"
|