@progress/kendo-angular-pivotgrid 15.2.0-develop.1 → 15.2.0-develop.3

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.
@@ -11,6 +11,10 @@ import { ConfiguratorSettings } from './models/configurator-settings';
11
11
  import { ConfiguratorNavigation } from '@progress/kendo-pivotgrid-common';
12
12
  import { PivotDataRowItem } from './models/data-row-item';
13
13
  import { SVGIcon } from '@progress/kendo-svg-icons';
14
+ import { CellTemplateDirective } from './rendering/templates/pivotgrid-cell-template.directive';
15
+ import { ValueCellTemplateDirective } from './rendering/templates/pivotgrid-value-cell-template.directive';
16
+ import { RowHeaderCellTemplateDirective } from './rendering/templates/pivotgrid-row-header-cell-template.directive';
17
+ import { ColumnHeaderCellTemplateDirective } from './rendering/templates/pivotgrid-column-header-cell-template.directive';
14
18
  import * as i0 from "@angular/core";
15
19
  /**
16
20
  * Represents the Kendo UI PivotGrid component for Angular.
@@ -32,6 +36,10 @@ export declare class PivotGridComponent implements AfterViewInit, AfterContentIn
32
36
  private valuesTable;
33
37
  private table;
34
38
  private configuratorWrapper;
39
+ customCellTemplate: CellTemplateDirective;
40
+ valueCellTemplate: ValueCellTemplateDirective;
41
+ rowHeaderCellTemplate: RowHeaderCellTemplateDirective;
42
+ columnHeaderCellTemplate: ColumnHeaderCellTemplateDirective;
35
43
  /**
36
44
  * Specify the type, size and color of the PivotGrid's loader.
37
45
  *
@@ -101,5 +109,5 @@ export declare class PivotGridComponent implements AfterViewInit, AfterContentIn
101
109
  private initConfiguratorNavigation;
102
110
  private stopConfiguratorNavigation;
103
111
  static ɵfac: i0.ɵɵFactoryDeclaration<PivotGridComponent, never>;
104
- static ɵcmp: i0.ɵɵComponentDeclaration<PivotGridComponent, "kendo-pivotgrid", never, { "loaderSettings": "loaderSettings"; "configurator": "configurator"; "columnHeadersWidth": "columnHeadersWidth"; "navigable": "navigable"; }, {}, never, never>;
112
+ static ɵcmp: i0.ɵɵComponentDeclaration<PivotGridComponent, "kendo-pivotgrid", never, { "loaderSettings": "loaderSettings"; "configurator": "configurator"; "columnHeadersWidth": "columnHeadersWidth"; "navigable": "navigable"; }, {}, ["customCellTemplate", "valueCellTemplate", "rowHeaderCellTemplate", "columnHeaderCellTemplate"], never>;
105
113
  }
@@ -14,17 +14,21 @@ import * as i8 from "./configurator/drop-target.directive";
14
14
  import * as i9 from "./localization/localized-messages.directive";
15
15
  import * as i10 from "./localization/custom-messages.component";
16
16
  import * as i11 from "./configurator/chip-kb-nav.directive";
17
- import * as i12 from "@progress/kendo-angular-common";
18
- import * as i13 from "@progress/kendo-angular-indicators";
19
- import * as i14 from "@progress/kendo-angular-treeview";
20
- import * as i15 from "./configurator/chip-menu/chip-menu.module";
21
- import * as i16 from "./shared.module";
22
- import * as i17 from "@progress/kendo-angular-icons";
17
+ import * as i12 from "./rendering/templates/pivotgrid-cell-template.directive";
18
+ import * as i13 from "./rendering/templates/pivotgrid-value-cell-template.directive";
19
+ import * as i14 from "./rendering/templates/pivotgrid-row-header-cell-template.directive";
20
+ import * as i15 from "./rendering/templates/pivotgrid-column-header-cell-template.directive";
21
+ import * as i16 from "@progress/kendo-angular-common";
22
+ import * as i17 from "@progress/kendo-angular-indicators";
23
+ import * as i18 from "@progress/kendo-angular-treeview";
24
+ import * as i19 from "./configurator/chip-menu/chip-menu.module";
25
+ import * as i20 from "./shared.module";
26
+ import * as i21 from "@progress/kendo-angular-icons";
23
27
  /**
24
28
  * Sample module
25
29
  */
26
30
  export declare class PivotGridModule {
27
31
  static ɵfac: i0.ɵɵFactoryDeclaration<PivotGridModule, never>;
28
- static ɵmod: i0.ɵɵNgModuleDeclaration<PivotGridModule, [typeof i1.PivotGridComponent, typeof i2.PivotGridTableComponent, typeof i3.PivotGridConfiguratorComponent, typeof i4.PivotGridCellDirective, typeof i5.PivotLocalBindingDirective, typeof i6.PivotOLAPBindingDirective, typeof i7.DraggableChipDirective, typeof i8.DropTargetDirective, typeof i9.LocalizedMessagesDirective, typeof i10.CustomMessagesComponent, typeof i11.ChipKeyboardNavigationDirective], [typeof i12.EventsModule, typeof i13.IndicatorsModule, typeof i14.TreeViewModule, typeof i12.DraggableModule, typeof i15.ChipMenuModule, typeof i16.SharedModule, typeof i17.IconsModule], [typeof i1.PivotGridComponent, typeof i2.PivotGridTableComponent, typeof i4.PivotGridCellDirective, typeof i5.PivotLocalBindingDirective, typeof i6.PivotOLAPBindingDirective, typeof i10.CustomMessagesComponent]>;
32
+ static ɵmod: i0.ɵɵNgModuleDeclaration<PivotGridModule, [typeof i1.PivotGridComponent, typeof i2.PivotGridTableComponent, typeof i3.PivotGridConfiguratorComponent, typeof i4.PivotGridCellDirective, typeof i5.PivotLocalBindingDirective, typeof i6.PivotOLAPBindingDirective, typeof i7.DraggableChipDirective, typeof i8.DropTargetDirective, typeof i9.LocalizedMessagesDirective, typeof i10.CustomMessagesComponent, typeof i11.ChipKeyboardNavigationDirective, typeof i12.CellTemplateDirective, typeof i13.ValueCellTemplateDirective, typeof i14.RowHeaderCellTemplateDirective, typeof i15.ColumnHeaderCellTemplateDirective], [typeof i16.EventsModule, typeof i17.IndicatorsModule, typeof i18.TreeViewModule, typeof i16.DraggableModule, typeof i19.ChipMenuModule, typeof i20.SharedModule, typeof i21.IconsModule], [typeof i1.PivotGridComponent, typeof i2.PivotGridTableComponent, typeof i4.PivotGridCellDirective, typeof i5.PivotLocalBindingDirective, typeof i6.PivotOLAPBindingDirective, typeof i10.CustomMessagesComponent, typeof i12.CellTemplateDirective, typeof i13.ValueCellTemplateDirective, typeof i14.RowHeaderCellTemplateDirective, typeof i15.ColumnHeaderCellTemplateDirective]>;
29
33
  static ɵinj: i0.ɵɵInjectorDeclaration<PivotGridModule>;
30
34
  }
@@ -5,6 +5,10 @@
5
5
  import { ElementRef, Renderer2 } from '@angular/core';
6
6
  import { SVGIcon } from '@progress/kendo-svg-icons';
7
7
  import { PivotGridDataService } from '../data-binding/pivotgrid-data.service';
8
+ import { CellTemplateDirective } from './templates/pivotgrid-cell-template.directive';
9
+ import { ValueCellTemplateDirective } from './templates/pivotgrid-value-cell-template.directive';
10
+ import { RowHeaderCellTemplateDirective } from './templates/pivotgrid-row-header-cell-template.directive';
11
+ import { ColumnHeaderCellTemplateDirective } from './templates/pivotgrid-column-header-cell-template.directive';
8
12
  import * as i0 from "@angular/core";
9
13
  /**
10
14
  * @hidden
@@ -18,6 +22,11 @@ export declare class PivotGridCellDirective {
18
22
  tableType: string;
19
23
  rowIndex: number;
20
24
  colIndex: number;
25
+ customCellTemplate: CellTemplateDirective;
26
+ valueCellTemplate: ValueCellTemplateDirective;
27
+ rowHeaderCellTemplate: RowHeaderCellTemplateDirective;
28
+ columnHeaderCellTemplate: ColumnHeaderCellTemplateDirective;
29
+ get isNotProvidedCellTemplatePerType(): boolean;
21
30
  get expanded(): boolean;
22
31
  chevronUpSVGIcon: SVGIcon;
23
32
  chevronDownSVGIcon: SVGIcon;
@@ -25,5 +34,5 @@ export declare class PivotGridCellDirective {
25
34
  ngOnInit(): void;
26
35
  handleClick: () => void;
27
36
  static ɵfac: i0.ɵɵFactoryDeclaration<PivotGridCellDirective, never>;
28
- static ɵcmp: i0.ɵɵComponentDeclaration<PivotGridCellDirective, "[kendoPivotGridCell]", never, { "kendoPivotGridCell": "kendoPivotGridCell"; "tableType": "tableType"; "rowIndex": "rowIndex"; "colIndex": "colIndex"; }, {}, never, never>;
37
+ static ɵcmp: i0.ɵɵComponentDeclaration<PivotGridCellDirective, "[kendoPivotGridCell]", never, { "kendoPivotGridCell": "kendoPivotGridCell"; "tableType": "tableType"; "rowIndex": "rowIndex"; "colIndex": "colIndex"; "customCellTemplate": "customCellTemplate"; "valueCellTemplate": "valueCellTemplate"; "rowHeaderCellTemplate": "rowHeaderCellTemplate"; "columnHeaderCellTemplate": "columnHeaderCellTemplate"; }, {}, never, never>;
29
38
  }
@@ -4,6 +4,10 @@
4
4
  *-------------------------------------------------------------------------------------------*/
5
5
  import { OnDestroy, OnInit } from '@angular/core';
6
6
  import { PivotGridDataService } from '../data-binding/pivotgrid-data.service';
7
+ import { CellTemplateDirective } from './templates/pivotgrid-cell-template.directive';
8
+ import { ValueCellTemplateDirective } from './templates/pivotgrid-value-cell-template.directive';
9
+ import { ColumnHeaderCellTemplateDirective } from './templates/pivotgrid-column-header-cell-template.directive';
10
+ import { RowHeaderCellTemplateDirective } from './templates/pivotgrid-row-header-cell-template.directive';
7
11
  import * as i0 from "@angular/core";
8
12
  /**
9
13
  * @hidden
@@ -14,11 +18,15 @@ export declare class PivotGridTableComponent implements OnInit, OnDestroy {
14
18
  rows: any;
15
19
  tableType: string;
16
20
  colWidth: number;
21
+ customCellTemplate: CellTemplateDirective;
22
+ valueCellTemplate: ValueCellTemplateDirective;
23
+ rowHeaderCellTemplate: RowHeaderCellTemplateDirective;
24
+ columnHeaderCellTemplate: ColumnHeaderCellTemplateDirective;
17
25
  get pivotGridId(): string;
18
26
  private dataChangeSubs;
19
27
  constructor(dataService: PivotGridDataService);
20
28
  ngOnInit(): void;
21
29
  ngOnDestroy(): void;
22
30
  static ɵfac: i0.ɵɵFactoryDeclaration<PivotGridTableComponent, never>;
23
- static ɵcmp: i0.ɵɵComponentDeclaration<PivotGridTableComponent, "kendo-pivotgrid-table", never, { "tableType": "tableType"; "colWidth": "colWidth"; }, {}, never, never>;
31
+ static ɵcmp: i0.ɵɵComponentDeclaration<PivotGridTableComponent, "kendo-pivotgrid-table", never, { "tableType": "tableType"; "colWidth": "colWidth"; "customCellTemplate": "customCellTemplate"; "valueCellTemplate": "valueCellTemplate"; "rowHeaderCellTemplate": "rowHeaderCellTemplate"; "columnHeaderCellTemplate": "columnHeaderCellTemplate"; }, {}, never, never>;
24
32
  }
@@ -0,0 +1,34 @@
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 { TemplateRef } from '@angular/core';
6
+ import * as i0 from "@angular/core";
7
+ /**
8
+ * Represents the cell template of the PivotGrid.
9
+ * Helps to customize the content of the cells. To define the cell template, nest an `<ng-template>` tag with the
10
+ * `kendoPivotGridCellTemplate` directive inside a `<kendo-pivot-grid>` tag [see example](slug:templates_pivotgrid#toc-cell-template).
11
+ *
12
+ * The template context is set to the current cell item and the following additional fields are passed:
13
+ * - `cellItem`&mdash;The current cell item. Represents the default context that will be assigned to any template variable which utilizes the `let-x` syntax&mdash;for example, `let-cellItem`.
14
+ * - `columnIndex`&mdash;The current column index. Use it as an alias for a template variable by utilizing the `let-columnIndex="columnIndex"` syntax.
15
+ * - `rowIndex`&mdash;The current data row index. Use it as an alias for a template variable by utilizing the `let-rowIndex="rowIndex"` syntax.
16
+ * - `expanded`&mdash;The expanded state of the cell. Use it as an alias for a template variable by utilizing the `let-expanded="expanded"` syntax.
17
+ * - `tableType`&mdash;The table type. Use it as an alias for a template variable by utilizing the `let-tableType="tableType"` syntax.
18
+ * - `text`&mdash;The default cell text. Use it as an alias for a template variable by utilizing the `let-text="text"` syntax.
19
+ *
20
+ * @example
21
+ * ```html
22
+ * <kendo-pivot-grid [data]="data" ...>
23
+ * <ng-template kendoPivotGridCellTemplate let-cellItem let-rowIndex="rowIndex" let-column="column">
24
+ * Row: {{rowIndex}}
25
+ * </ng-template>
26
+ * </kendo-pivot-grid>
27
+ * ```
28
+ */
29
+ export declare class CellTemplateDirective {
30
+ templateRef: TemplateRef<any>;
31
+ constructor(templateRef: TemplateRef<any>);
32
+ static ɵfac: i0.ɵɵFactoryDeclaration<CellTemplateDirective, never>;
33
+ static ɵdir: i0.ɵɵDirectiveDeclaration<CellTemplateDirective, "[kendoPivotGridCellTemplate]", never, {}, {}, never>;
34
+ }
@@ -0,0 +1,34 @@
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 { TemplateRef } from '@angular/core';
6
+ import * as i0 from "@angular/core";
7
+ /**
8
+ * Represents the column header cell template of the PivotGrid.
9
+ * Helps to customize the content of the column header cells. To define the column header cell template, nest an `<ng-template>` tag with the
10
+ * `kendoPivotGridColumnHeaderCellTemplate` directive inside a `<kendo-pivot-grid>` tag [see example](slug:templates_pivotgrid#toc-column-header-cell-template).
11
+ *
12
+ * The template context is set to the current cell item and the following additional fields are passed:
13
+ * - `cellItem`&mdash;The current cell item. Represents the default context that will be assigned to any template variable which utilizes the `let-x` syntax&mdash;for example, `let-cellItem`.
14
+ * - `columnIndex`&mdash;The current column index. Use it as an alias for a template variable by utilizing the `let-columnIndex="columnIndex"` syntax.
15
+ * - `rowIndex`&mdash;The current data row index. Use it as an alias for a template variable by utilizing the `let-rowIndex="rowIndex"` syntax.
16
+ * - `expanded`&mdash;The expanded state of the cell. Use it as an alias for a template variable by utilizing the `let-expanded="expanded"` syntax.
17
+ * - `tableType`&mdash;The table type. Use it as an alias for a template variable by utilizing the `let-tableType="tableType"` syntax.
18
+ * - `text`&mdash;The default cell text. Use it as an alias for a template variable by utilizing the `let-text="text"` syntax.
19
+ *
20
+ * @example
21
+ * ```html
22
+ * <kendo-pivot-grid [data]="data" ...>
23
+ * <ng-template kendoPivotGridColumnHeaderCellTemplate let-cellItem let-rowIndex="rowIndex" let-column="column">
24
+ * Row: {{rowIndex}}
25
+ * </ng-template>
26
+ * </kendo-pivot-grid>
27
+ * ```
28
+ */
29
+ export declare class ColumnHeaderCellTemplateDirective {
30
+ templateRef: TemplateRef<any>;
31
+ constructor(templateRef: TemplateRef<any>);
32
+ static ɵfac: i0.ɵɵFactoryDeclaration<ColumnHeaderCellTemplateDirective, never>;
33
+ static ɵdir: i0.ɵɵDirectiveDeclaration<ColumnHeaderCellTemplateDirective, "[kendoPivotGridColumnHeaderCellTemplate]", never, {}, {}, never>;
34
+ }
@@ -0,0 +1,34 @@
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 { TemplateRef } from '@angular/core';
6
+ import * as i0 from "@angular/core";
7
+ /**
8
+ * Represents the row header cell template of the PivotGrid.
9
+ * Helps to customize the content of the row header cells. To define the row header cell template, nest an `<ng-template>` tag with the
10
+ * `kendoPivotGridRowHeaderCellTemplate` directive inside a `<kendo-pivot-grid>` tag [see example](slug:templates_pivotgrid#toc-row-header-cell-template).
11
+ *
12
+ * The template context is set to the current cell item and the following additional fields are passed:
13
+ * - `cellItem`&mdash;The current cell item. Represents the default context that will be assigned to any template variable which utilizes the `let-x` syntax&mdash;for example, `let-cellItem`.
14
+ * - `columnIndex`&mdash;The current column index. Use it as an alias for a template variable by utilizing the `let-columnIndex="columnIndex"` syntax.
15
+ * - `rowIndex`&mdash;The current data row index. Use it as an alias for a template variable by utilizing the `let-rowIndex="rowIndex"` syntax.
16
+ * - `expanded`&mdash;The expanded state of the cell. Use it as an alias for a template variable by utilizing the `let-expanded="expanded"` syntax.
17
+ * - `tableType`&mdash;The table type. Use it as an alias for a template variable by utilizing the `let-tableType="tableType"` syntax.
18
+ * - `text`&mdash;The default cell text. Use it as an alias for a template variable by utilizing the `let-text="text"` syntax.
19
+ *
20
+ * @example
21
+ * ```html
22
+ * <kendo-pivot-grid [data]="data" ...>
23
+ * <ng-template kendoPivotGridRowHeaderCellTemplate let-cellItem let-rowIndex="rowIndex" let-column="column">
24
+ * Row: {{rowIndex}}
25
+ * </ng-template>
26
+ * </kendo-pivot-grid>
27
+ * ```
28
+ */
29
+ export declare class RowHeaderCellTemplateDirective {
30
+ templateRef: TemplateRef<any>;
31
+ constructor(templateRef: TemplateRef<any>);
32
+ static ɵfac: i0.ɵɵFactoryDeclaration<RowHeaderCellTemplateDirective, never>;
33
+ static ɵdir: i0.ɵɵDirectiveDeclaration<RowHeaderCellTemplateDirective, "[kendoPivotGridRowHeaderCellTemplate]", never, {}, {}, never>;
34
+ }
@@ -0,0 +1,33 @@
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 { TemplateRef } from '@angular/core';
6
+ import * as i0 from "@angular/core";
7
+ /**
8
+ * Represents the value cell template of the PivotGrid.
9
+ * Helps to customize the content of the value cells. To define the value cell template, nest an `<ng-template>` tag with the
10
+ * `kendoPivotGridValueCellTemplate` directive inside a `<kendo-pivot-grid>` tag [see example](slug:templates_pivotgrid#toc-value-cell-template).
11
+ *
12
+ * The template context is set to the current cell item and the following additional fields are passed:
13
+ * - `cellItem`&mdash;The current cell item. Represents the default context that will be assigned to any template variable which utilizes the `let-x` syntax&mdash;for example, `let-cellItem`.
14
+ * - `columnIndex`&mdash;The current column index. Use it as an alias for a template variable by utilizing the `let-columnIndex="columnIndex"` syntax.
15
+ * - `rowIndex`&mdash;The current data row index. Use it as an alias for a template variable by utilizing the `let-rowIndex="rowIndex"` syntax.
16
+ * - `tableType`&mdash;The table type. Use it as an alias for a template variable by utilizing the `let-tableType="tableType"` syntax.
17
+ * - `value`&mdash;The default cell value. Use it as an alias for a template variable by utilizing the `let-value="value"` syntax.
18
+ *
19
+ * @example
20
+ * ```html
21
+ * <kendo-pivot-grid [data]="data" ...>
22
+ * <ng-template kendoPivotGridValueCellTemplate let-cellItem let-rowIndex="rowIndex" let-column="column">
23
+ * Row: {{rowIndex}}
24
+ * </ng-template>
25
+ * </kendo-pivot-grid>
26
+ * ```
27
+ */
28
+ export declare class ValueCellTemplateDirective {
29
+ templateRef: TemplateRef<any>;
30
+ constructor(templateRef: TemplateRef<any>);
31
+ static ɵfac: i0.ɵɵFactoryDeclaration<ValueCellTemplateDirective, never>;
32
+ static ɵdir: i0.ɵɵDirectiveDeclaration<ValueCellTemplateDirective, "[kendoPivotGridValueCellTemplate]", never, {}, {}, never>;
33
+ }
@@ -6,7 +6,7 @@ function default_1(options) {
6
6
  // Additional dependencies to install.
7
7
  // See https://github.com/telerik/kendo-schematics/issues/28
8
8
  peerDependencies: {
9
- '@progress/kendo-angular-dialog': '15.2.0-develop.1',
9
+ '@progress/kendo-angular-dialog': '15.2.0-develop.3',
10
10
  // peer dep of the icons
11
11
  '@progress/kendo-svg-icons': '^2.0.0'
12
12
  } });