@progress/kendo-angular-grid 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 (37) hide show
  1. package/README.md +46 -36
  2. package/directives.d.ts +8 -5
  3. package/editing/add-command-tool.directive.d.ts +39 -0
  4. package/esm2020/column-menu/column-chooser.component.mjs +1 -1
  5. package/esm2020/common/error-messages.mjs +4 -1
  6. package/esm2020/directives.mjs +8 -2
  7. package/esm2020/editing/add-command-tool.directive.mjs +62 -0
  8. package/esm2020/excel/excel-command-tool.directive.mjs +64 -0
  9. package/esm2020/excel/excel-command.directive.mjs +1 -1
  10. package/esm2020/excel/excel.module.mjs +3 -2
  11. package/esm2020/filtering/cell/filter-cell-operators.component.mjs +1 -1
  12. package/esm2020/grid.component.mjs +14 -7
  13. package/esm2020/grid.module.mjs +104 -102
  14. package/esm2020/grouping/group-panel.component.mjs +1 -1
  15. package/esm2020/index.mjs +6 -3
  16. package/esm2020/package-metadata.mjs +2 -2
  17. package/esm2020/pager/pager-next-buttons.component.mjs +1 -1
  18. package/esm2020/pager/pager-numeric-buttons.component.mjs +1 -1
  19. package/esm2020/pager/pager-prev-buttons.component.mjs +1 -1
  20. package/esm2020/pdf/pdf-command-tool.directive.mjs +64 -0
  21. package/esm2020/pdf/pdf.module.mjs +2 -1
  22. package/esm2020/rendering/body.module.mjs +6 -5
  23. package/esm2020/rendering/toolbar/toolbar.component.mjs +11 -1
  24. package/excel/excel-command-tool.directive.d.ts +41 -0
  25. package/excel/excel-command.directive.d.ts +1 -1
  26. package/excel/excel.module.d.ts +3 -2
  27. package/fesm2015/progress-kendo-angular-grid.mjs +210 -26
  28. package/fesm2020/progress-kendo-angular-grid.mjs +208 -26
  29. package/grid.component.d.ts +1 -1
  30. package/grid.module.d.ts +103 -101
  31. package/index.d.ts +6 -3
  32. package/package.json +17 -16
  33. package/pdf/pdf-command-tool.directive.d.ts +41 -0
  34. package/pdf/pdf.module.d.ts +2 -1
  35. package/rendering/body.module.d.ts +5 -4
  36. package/rendering/toolbar/toolbar.component.d.ts +1 -0
  37. package/schematics/ngAdd/index.js +4 -4
@@ -11,6 +11,7 @@ import * as i2 from "./pdf.component";
11
11
  import * as i3 from "./pdf-margin.component";
12
12
  import * as i4 from "./pdf-command.directive";
13
13
  import * as i5 from "./pdf-template.directive";
14
+ import * as i6 from "./pdf-command-tool.directive";
14
15
  // IMPORTANT: NgModule export kept for backwards compatibility
15
16
  /**
16
17
  * Represents the [NgModule](link:site.data.urls.angular['ngmoduleapi'])
@@ -37,7 +38,7 @@ import * as i5 from "./pdf-template.directive";
37
38
  export class PDFModule {
38
39
  }
39
40
  PDFModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: PDFModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
40
- PDFModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "15.2.10", ngImport: i0, type: PDFModule, imports: [i1.IconComponent, i1.SVGIconComponent, i2.PDFComponent, i3.PDFMarginComponent, i4.PDFCommandDirective, i5.PDFTemplateDirective], exports: [i2.PDFComponent, i3.PDFMarginComponent, i4.PDFCommandDirective, i5.PDFTemplateDirective] });
41
+ PDFModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "15.2.10", ngImport: i0, type: PDFModule, imports: [i1.IconComponent, i1.SVGIconComponent, i2.PDFComponent, i3.PDFMarginComponent, i4.PDFCommandDirective, i5.PDFTemplateDirective, i6.PDFCommandToolbarDirective], exports: [i2.PDFComponent, i3.PDFMarginComponent, i4.PDFCommandDirective, i5.PDFTemplateDirective, i6.PDFCommandToolbarDirective] });
41
42
  PDFModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: PDFModule, providers: [IconsService], imports: [KENDO_ICONS, i2.PDFComponent, i3.PDFMarginComponent, i4.PDFCommandDirective] });
42
43
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: PDFModule, decorators: [{
43
44
  type: NgModule,
@@ -41,9 +41,10 @@ import * as i29 from "../editing/cancel-command.directive";
41
41
  import * as i30 from "../editing/save-command.directive";
42
42
  import * as i31 from "../editing/remove-command.directive";
43
43
  import * as i32 from "../editing/add-command.directive";
44
- import * as i33 from "./cell-loading.template.directive";
45
- import * as i34 from "./loading-template.directive";
46
- import * as i35 from "../columns/reorder-column.component";
44
+ import * as i33 from "../editing/add-command-tool.directive";
45
+ import * as i34 from "./cell-loading.template.directive";
46
+ import * as i35 from "./loading-template.directive";
47
+ import * as i36 from "../columns/reorder-column.component";
47
48
  const importedModules = [
48
49
  ...KENDO_GRID_SHARED,
49
50
  ...KENDO_GRID_GROUP_EXPORTS
@@ -56,7 +57,7 @@ const importedModules = [
56
57
  export class BodyModule {
57
58
  }
58
59
  BodyModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: BodyModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
59
- BodyModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "15.2.10", ngImport: i0, type: BodyModule, imports: [i1.ColumnComponent, i2.ColumnGroupComponent, i3.LogicalCellDirective, i4.LogicalRowDirective, i5.FocusableDirective, i6.FooterTemplateDirective, i7.ColGroupComponent, i8.ResizableContainerDirective, i9.TemplateContextDirective, i10.FieldAccessorPipe, i11.DetailTemplateDirective, i12.SpanColumnComponent, i13.LoadingComponent, i14.GridTableDirective, i15.GroupHeaderTemplateDirective, i16.GroupHeaderColumnTemplateDirective, i17.GroupFooterTemplateDirective, i18.GroupHeaderComponent, i19.GroupPanelComponent, i20.CommandColumnComponent, i21.CheckboxColumnComponent, i22.SelectionCheckboxDirective, i23.CellTemplateDirective, i24.EditTemplateDirective, i25.TableBodyComponent, i26.NoRecordsTemplateDirective, i27.CellComponent, i28.EditCommandDirective, i29.CancelCommandDirective, i30.SaveCommandDirective, i31.RemoveCommandDirective, i32.AddCommandDirective, i33.CellLoadingTemplateDirective, i34.LoadingTemplateDirective, i35.RowReorderColumnComponent], exports: [i20.CommandColumnComponent, i21.CheckboxColumnComponent, i22.SelectionCheckboxDirective, i23.CellTemplateDirective, i24.EditTemplateDirective, i25.TableBodyComponent, i26.NoRecordsTemplateDirective, i27.CellComponent, i28.EditCommandDirective, i29.CancelCommandDirective, i30.SaveCommandDirective, i31.RemoveCommandDirective, i32.AddCommandDirective, i33.CellLoadingTemplateDirective, i34.LoadingTemplateDirective, i35.RowReorderColumnComponent] });
60
+ BodyModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "15.2.10", ngImport: i0, type: BodyModule, imports: [i1.ColumnComponent, i2.ColumnGroupComponent, i3.LogicalCellDirective, i4.LogicalRowDirective, i5.FocusableDirective, i6.FooterTemplateDirective, i7.ColGroupComponent, i8.ResizableContainerDirective, i9.TemplateContextDirective, i10.FieldAccessorPipe, i11.DetailTemplateDirective, i12.SpanColumnComponent, i13.LoadingComponent, i14.GridTableDirective, i15.GroupHeaderTemplateDirective, i16.GroupHeaderColumnTemplateDirective, i17.GroupFooterTemplateDirective, i18.GroupHeaderComponent, i19.GroupPanelComponent, i20.CommandColumnComponent, i21.CheckboxColumnComponent, i22.SelectionCheckboxDirective, i23.CellTemplateDirective, i24.EditTemplateDirective, i25.TableBodyComponent, i26.NoRecordsTemplateDirective, i27.CellComponent, i28.EditCommandDirective, i29.CancelCommandDirective, i30.SaveCommandDirective, i31.RemoveCommandDirective, i32.AddCommandDirective, i33.AddCommandToolbarDirective, i34.CellLoadingTemplateDirective, i35.LoadingTemplateDirective, i36.RowReorderColumnComponent], exports: [i20.CommandColumnComponent, i21.CheckboxColumnComponent, i22.SelectionCheckboxDirective, i23.CellTemplateDirective, i24.EditTemplateDirective, i25.TableBodyComponent, i26.NoRecordsTemplateDirective, i27.CellComponent, i28.EditCommandDirective, i29.CancelCommandDirective, i30.SaveCommandDirective, i31.RemoveCommandDirective, i32.AddCommandDirective, i33.AddCommandToolbarDirective, i34.CellLoadingTemplateDirective, i35.LoadingTemplateDirective, i36.RowReorderColumnComponent] });
60
61
  BodyModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: BodyModule, providers: [
61
62
  IconsService,
62
63
  PopupService,
@@ -67,7 +68,7 @@ BodyModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "15
67
68
  MonthViewService,
68
69
  YearViewService,
69
70
  NavigationService
70
- ], imports: [i1.ColumnComponent, i2.ColumnGroupComponent, i7.ColGroupComponent, i12.SpanColumnComponent, i13.LoadingComponent, i18.GroupHeaderComponent, i19.GroupPanelComponent, i20.CommandColumnComponent, i21.CheckboxColumnComponent, i25.TableBodyComponent, i27.CellComponent, i28.EditCommandDirective, i29.CancelCommandDirective, i30.SaveCommandDirective, i31.RemoveCommandDirective, i32.AddCommandDirective, i35.RowReorderColumnComponent] });
71
+ ], imports: [i1.ColumnComponent, i2.ColumnGroupComponent, i7.ColGroupComponent, i12.SpanColumnComponent, i13.LoadingComponent, i18.GroupHeaderComponent, i19.GroupPanelComponent, i20.CommandColumnComponent, i21.CheckboxColumnComponent, i25.TableBodyComponent, i27.CellComponent, i28.EditCommandDirective, i29.CancelCommandDirective, i30.SaveCommandDirective, i31.RemoveCommandDirective, i32.AddCommandDirective, i36.RowReorderColumnComponent] });
71
72
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: BodyModule, decorators: [{
72
73
  type: NgModule,
73
74
  args: [{
@@ -17,6 +17,7 @@ export class ToolbarComponent {
17
17
  this.wrapper = wrapper;
18
18
  this.context = {};
19
19
  this.role = 'toolbar';
20
+ this.hostClasses = true;
20
21
  this._size = 'medium';
21
22
  this.navigationService = this.ctx[`${this.wrapper.nativeElement.getAttribute('position')}ToolbarNavigation`];
22
23
  }
@@ -88,7 +89,7 @@ export class ToolbarComponent {
88
89
  }
89
90
  }
90
91
  ToolbarComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: ToolbarComponent, deps: [{ token: i1.ContextService }, { token: i0.ElementRef }], target: i0.ɵɵFactoryTarget.Component });
91
- ToolbarComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.10", type: ToolbarComponent, isStandalone: true, selector: "kendo-grid-toolbar", inputs: { position: "position", size: "size", navigable: "navigable" }, host: { listeners: { "click": "clickHandler($event)", "keydown.arrowleft": "arrowLeftListener($event)", "keydown.arrowright": "arrowRightListener($event)", "keydown.home": "homeKeyListener($event)", "keydown.end": "endKeyListener($event)" }, properties: { "attr.role": "this.role", "class.k-toolbar-sm": "this.sizeSmallClass", "class.k-toolbar-md": "this.sizeMediumClass" } }, ngImport: i0, template: `
92
+ ToolbarComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.10", type: ToolbarComponent, isStandalone: true, selector: "kendo-grid-toolbar", inputs: { position: "position", size: "size", navigable: "navigable" }, host: { listeners: { "click": "clickHandler($event)", "keydown.arrowleft": "arrowLeftListener($event)", "keydown.arrowright": "arrowRightListener($event)", "keydown.home": "homeKeyListener($event)", "keydown.end": "endKeyListener($event)" }, properties: { "attr.role": "this.role", "class.k-toolbar": "this.hostClasses", "class.k-grid-toolbar": "this.hostClasses", "class.k-toolbar-solid": "this.hostClasses", "class.k-toolbar-sm": "this.sizeSmallClass", "class.k-toolbar-md": "this.sizeMediumClass" } }, ngImport: i0, template: `
92
93
  <ng-template
93
94
  *ngIf="toolbarTemplateRef"
94
95
  [ngTemplateOutlet]="toolbarTemplateRef"
@@ -110,6 +111,15 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImpo
110
111
  }], ctorParameters: function () { return [{ type: i1.ContextService }, { type: i0.ElementRef }]; }, propDecorators: { role: [{
111
112
  type: HostBinding,
112
113
  args: ['attr.role']
114
+ }], hostClasses: [{
115
+ type: HostBinding,
116
+ args: ['class.k-toolbar']
117
+ }, {
118
+ type: HostBinding,
119
+ args: ['class.k-grid-toolbar']
120
+ }, {
121
+ type: HostBinding,
122
+ args: ['class.k-toolbar-solid']
113
123
  }], sizeSmallClass: [{
114
124
  type: HostBinding,
115
125
  args: ['class.k-toolbar-sm']
@@ -0,0 +1,41 @@
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 { ToolBarButtonComponent } from '@progress/kendo-angular-toolbar';
6
+ import { ExcelService } from './excel.service';
7
+ import * as i0 from "@angular/core";
8
+ /**
9
+ * Represents the `export-to-Excel` toolbar tool of the Grid.
10
+ * You can apply this directive to any `kendo-toolbar-button` element inside a
11
+ * ToolbarComponent used in the Grid.
12
+ *
13
+ * When the user clicks a button associated with the directive, the
14
+ * [excelExport]({% slug api_grid_gridcomponent %}#toc-excelexport) event
15
+ * fires ([see example]({% slug excelexport_grid %})).
16
+ *
17
+ * @example
18
+ * ```html-no-run
19
+ * <kendo-grid>
20
+ * <kendo-toolbar>
21
+ * <kendo-toolbar-button text="Excel Export" kendoGridExcelTool></kendo-toolbar-button>
22
+ * </kendo-toolbar>
23
+ * <kendo-grid-excel fileName="Grid.xlsx">
24
+ * </kendo-grid-excel>
25
+ * </kendo-grid>
26
+ * ```
27
+ */
28
+ export declare class ExcelCommandToolbarDirective {
29
+ private excelService;
30
+ private host;
31
+ private clickSub;
32
+ constructor(excelService: ExcelService, host: ToolBarButtonComponent);
33
+ ngOnInit(): void;
34
+ ngOnDestroy(): void;
35
+ /**
36
+ * @hidden
37
+ */
38
+ onClick(e: any): void;
39
+ static ɵfac: i0.ɵɵFactoryDeclaration<ExcelCommandToolbarDirective, never>;
40
+ static ɵdir: i0.ɵɵDirectiveDeclaration<ExcelCommandToolbarDirective, "[kendoGridExcelTool]", never, {}, {}, never, never, true, never>;
41
+ }
@@ -19,7 +19,7 @@ import * as i0 from "@angular/core";
19
19
  * ```html
20
20
  * <kendo-grid>
21
21
  * <ng-template kendoGridToolbarTemplate>
22
- * <button kendoGridExcelCommand>Export to PDF</button>
22
+ * <button kendoGridExcelCommand>Export to Excel</button>
23
23
  * </ng-template>
24
24
  * <kendo-grid-excel fileName="Grid.xlsx">
25
25
  * </kendo-grid-excel>
@@ -6,7 +6,8 @@ import * as i0 from "@angular/core";
6
6
  import * as i1 from "@progress/kendo-angular-icons";
7
7
  import * as i2 from "./excel.component";
8
8
  import * as i3 from "./excel-command.directive";
9
- import * as i4 from "@progress/kendo-angular-excel-export";
9
+ import * as i4 from "./excel-command-tool.directive";
10
+ import * as i5 from "@progress/kendo-angular-excel-export";
10
11
  /**
11
12
  * Represents the [NgModule](link:site.data.urls.angular['ngmoduleapi'])
12
13
  * definition for the Excel component of the Grid.
@@ -30,6 +31,6 @@ import * as i4 from "@progress/kendo-angular-excel-export";
30
31
  */
31
32
  export declare class ExcelModule {
32
33
  static ɵfac: i0.ɵɵFactoryDeclaration<ExcelModule, never>;
33
- static ɵmod: i0.ɵɵNgModuleDeclaration<ExcelModule, never, [typeof i1.IconComponent, typeof i1.SVGIconComponent, typeof i2.ExcelComponent, typeof i3.ExcelCommandDirective], [typeof i2.ExcelComponent, typeof i3.ExcelCommandDirective, typeof i4.ExcelExportModule]>;
34
+ static ɵmod: i0.ɵɵNgModuleDeclaration<ExcelModule, never, [typeof i1.IconComponent, typeof i1.SVGIconComponent, typeof i2.ExcelComponent, typeof i3.ExcelCommandDirective, typeof i4.ExcelCommandToolbarDirective], [typeof i2.ExcelComponent, typeof i3.ExcelCommandDirective, typeof i4.ExcelCommandToolbarDirective, typeof i5.ExcelExportModule]>;
34
35
  static ɵinj: i0.ɵɵInjectorDeclaration<ExcelModule>;
35
36
  }