@progress/kendo-angular-pivotgrid 21.4.1-develop.1 → 22.0.0-develop.1
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/configurator/chip-menu/chip-menu-item-base.d.ts +1 -1
- package/data-binding/base-binding-directive.d.ts +1 -1
- package/fesm2022/progress-kendo-angular-pivotgrid.mjs +120 -120
- package/localization/messages.d.ts +1 -1
- package/package.json +18 -26
- package/schematics/ngAdd/index.js +2 -2
- package/esm2022/configurator/chip-kb-nav.directive.mjs +0 -69
- package/esm2022/configurator/chip-menu/chip-menu-container.component.mjs +0 -51
- package/esm2022/configurator/chip-menu/chip-menu-filter.component.mjs +0 -135
- package/esm2022/configurator/chip-menu/chip-menu-item-base.mjs +0 -40
- package/esm2022/configurator/chip-menu/chip-menu-item-content-template.directive.mjs +0 -29
- package/esm2022/configurator/chip-menu/chip-menu-item.component.mjs +0 -206
- package/esm2022/configurator/chip-menu/chip-menu-item.directive.mjs +0 -98
- package/esm2022/configurator/chip-menu/chip-menu-reorder.component.mjs +0 -198
- package/esm2022/configurator/chip-menu/chip-menu-sort.component.mjs +0 -104
- package/esm2022/configurator/chip-menu/chip-menu.component.mjs +0 -165
- package/esm2022/configurator/chip-menu/chip-menu.service.mjs +0 -40
- package/esm2022/configurator/chip-menu/filtering/filter-menu-container.component.mjs +0 -186
- package/esm2022/configurator/chip-menu/filtering/filter-menu-dropdownlist.directive.mjs +0 -44
- package/esm2022/configurator/chip-menu/filtering/menu-tabbing.service.mjs +0 -20
- package/esm2022/configurator/chip-menu/filtering/string-filter-menu.component.mjs +0 -148
- package/esm2022/configurator/chip-menu/single-popup.service.mjs +0 -136
- package/esm2022/configurator/configurator.component.mjs +0 -806
- package/esm2022/configurator/configurator.service.mjs +0 -53
- package/esm2022/configurator/draggable.directive.mjs +0 -131
- package/esm2022/configurator/drop-cue.service.mjs +0 -86
- package/esm2022/configurator/drop-target.directive.mjs +0 -190
- package/esm2022/data-binding/base-binding-directive.mjs +0 -164
- package/esm2022/data-binding/local-binding.directive.mjs +0 -107
- package/esm2022/data-binding/olap-binding.directive.mjs +0 -204
- package/esm2022/data-binding/pivotgrid-data.service.mjs +0 -76
- package/esm2022/directives.mjs +0 -97
- package/esm2022/index.mjs +0 -28
- package/esm2022/localization/custom-messages.component.mjs +0 -57
- package/esm2022/localization/localized-messages.directive.mjs +0 -39
- package/esm2022/localization/messages.mjs +0 -254
- package/esm2022/localization/pivot-localization.service.mjs +0 -30
- package/esm2022/models/configuration-change-event.mjs +0 -37
- package/esm2022/models/configurator-chipmenu-reorder-target.mjs +0 -5
- package/esm2022/models/configurator-orientation.mjs +0 -5
- package/esm2022/models/configurator-position.mjs +0 -5
- package/esm2022/models/configurator-settings.mjs +0 -21
- package/esm2022/models/data-row-item.mjs +0 -5
- package/esm2022/models/drop-section.mjs +0 -5
- package/esm2022/models/drop-target.mjs +0 -5
- package/esm2022/models/expanded-change-event.mjs +0 -29
- package/esm2022/models/expanded-state-action.mjs +0 -5
- package/esm2022/models/loader-settings.mjs +0 -5
- package/esm2022/models/virtualization-settings.mjs +0 -25
- package/esm2022/package-metadata.mjs +0 -16
- package/esm2022/pivotgrid.component.mjs +0 -729
- package/esm2022/pivotgrid.module.mjs +0 -87
- package/esm2022/progress-kendo-angular-pivotgrid.mjs +0 -8
- package/esm2022/rendering/pivotgrid-cell.directive.mjs +0 -247
- package/esm2022/rendering/pivotgrid-table.component.mjs +0 -386
- package/esm2022/rendering/templates/pivotgrid-cell-template.directive.mjs +0 -44
- package/esm2022/rendering/templates/pivotgrid-column-header-cell-template.directive.mjs +0 -44
- package/esm2022/rendering/templates/pivotgrid-row-header-cell-template.directive.mjs +0 -44
- package/esm2022/rendering/templates/pivotgrid-value-cell-template.directive.mjs +0 -43
- package/esm2022/util.mjs +0 -223
- package/esm2022/virtual/scroll.service.mjs +0 -18
- package/esm2022/virtual/scrollable-container.mjs +0 -128
|
@@ -1,87 +0,0 @@
|
|
|
1
|
-
/**-----------------------------------------------------------------------------------------
|
|
2
|
-
* Copyright © 2026 Progress Software Corporation. All rights reserved.
|
|
3
|
-
* Licensed under commercial license. See LICENSE.md in the project root for more information
|
|
4
|
-
*-------------------------------------------------------------------------------------------*/
|
|
5
|
-
import { NgModule } from '@angular/core';
|
|
6
|
-
import { IconsService } from '@progress/kendo-angular-icons';
|
|
7
|
-
import { KENDO_PIVOTGRID, KENDO_PIVOTGRID_CHIPMENU_DECLARATIONS, KENDO_PIVOTGRID_DECLARATIONS } from './directives';
|
|
8
|
-
import { PopupService } from '@progress/kendo-angular-popup';
|
|
9
|
-
import { DialogContainerService, DialogService, WindowContainerService, WindowService } from '@progress/kendo-angular-dialog';
|
|
10
|
-
import { ResizeBatchService } from '@progress/kendo-angular-common';
|
|
11
|
-
import * as i0 from "@angular/core";
|
|
12
|
-
import * as i1 from "./configurator/chip-menu/chip-menu-item.component";
|
|
13
|
-
import * as i2 from "./configurator/chip-menu/chip-menu-sort.component";
|
|
14
|
-
import * as i3 from "./configurator/chip-menu/chip-menu.component";
|
|
15
|
-
import * as i4 from "./configurator/chip-menu/chip-menu-filter.component";
|
|
16
|
-
import * as i5 from "./configurator/chip-menu/chip-menu-item-content-template.directive";
|
|
17
|
-
import * as i6 from "./configurator/chip-menu/filtering/filter-menu-container.component";
|
|
18
|
-
import * as i7 from "./configurator/chip-menu/filtering/string-filter-menu.component";
|
|
19
|
-
import * as i8 from "./configurator/chip-menu/filtering/filter-menu-dropdownlist.directive";
|
|
20
|
-
import * as i9 from "./configurator/chip-menu/chip-menu-container.component";
|
|
21
|
-
import * as i10 from "./configurator/chip-menu/chip-menu-item.directive";
|
|
22
|
-
import * as i11 from "./configurator/chip-menu/chip-menu-reorder.component";
|
|
23
|
-
import * as i12 from "./pivotgrid.component";
|
|
24
|
-
import * as i13 from "./rendering/pivotgrid-table.component";
|
|
25
|
-
import * as i14 from "./configurator/configurator.component";
|
|
26
|
-
import * as i15 from "./rendering/pivotgrid-cell.directive";
|
|
27
|
-
import * as i16 from "./data-binding/local-binding.directive";
|
|
28
|
-
import * as i17 from "./data-binding/olap-binding.directive";
|
|
29
|
-
import * as i18 from "./configurator/draggable.directive";
|
|
30
|
-
import * as i19 from "./configurator/drop-target.directive";
|
|
31
|
-
import * as i20 from "./localization/localized-messages.directive";
|
|
32
|
-
import * as i21 from "./localization/custom-messages.component";
|
|
33
|
-
import * as i22 from "./configurator/chip-kb-nav.directive";
|
|
34
|
-
import * as i23 from "./rendering/templates/pivotgrid-cell-template.directive";
|
|
35
|
-
import * as i24 from "./rendering/templates/pivotgrid-value-cell-template.directive";
|
|
36
|
-
import * as i25 from "./rendering/templates/pivotgrid-row-header-cell-template.directive";
|
|
37
|
-
import * as i26 from "./rendering/templates/pivotgrid-column-header-cell-template.directive";
|
|
38
|
-
// IMPORTANT: NgModule export kept for backwards compatibility
|
|
39
|
-
/**
|
|
40
|
-
* Represents the [NgModule](link:site.data.urls.angular['ngmoduleapi'])
|
|
41
|
-
* definition for the PivotGrid component.
|
|
42
|
-
*
|
|
43
|
-
* @example
|
|
44
|
-
*
|
|
45
|
-
* ```typescript
|
|
46
|
-
* import { BrowserModule } from '@angular/platform-browser';
|
|
47
|
-
* import { NgModule } from '@angular/core';
|
|
48
|
-
* import { AppComponent } from './app.component';
|
|
49
|
-
* import { PivotGridModule } from '@progress/kendo-angular-pivotgrid';
|
|
50
|
-
*
|
|
51
|
-
* @NgModule({
|
|
52
|
-
* declarations: [AppComponent],
|
|
53
|
-
* imports: [BrowserModule, PivotGridModule],
|
|
54
|
-
* bootstrap: [AppComponent]
|
|
55
|
-
* })
|
|
56
|
-
* export class AppModule {}
|
|
57
|
-
* ```
|
|
58
|
-
*/
|
|
59
|
-
export class PivotGridModule {
|
|
60
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: PivotGridModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
61
|
-
static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "18.2.14", ngImport: i0, type: PivotGridModule, imports: [i1.ChipMenuItemComponent, i2.ChipMenuSortComponent, i3.ChipMenuComponent, i4.ChipMenuFilterComponent, i5.ChipMenuItemContentTemplateDirective, i6.FilterMenuContainerComponent, i7.StringFilterMenuComponent, i8.FilterMenuDropDownListDirective, i9.ChipMenuContainerComponent, i10.ChipMenuItemDirective, i11.ChipMenuReorderComponent, i12.PivotGridComponent, i13.PivotGridTableComponent, i14.PivotGridConfiguratorComponent, i15.PivotGridCellDirective, i16.PivotLocalBindingDirective, i17.PivotOLAPBindingDirective, i18.DraggableChipDirective, i19.DropTargetDirective, i20.LocalizedMessagesDirective, i21.CustomMessagesComponent, i22.ChipKeyboardNavigationDirective, i23.CellTemplateDirective, i24.ValueCellTemplateDirective, i25.RowHeaderCellTemplateDirective, i26.ColumnHeaderCellTemplateDirective], exports: [i12.PivotGridComponent, i13.PivotGridTableComponent, i15.PivotGridCellDirective, i16.PivotLocalBindingDirective, i17.PivotOLAPBindingDirective, i21.CustomMessagesComponent, i23.CellTemplateDirective, i24.ValueCellTemplateDirective, i25.RowHeaderCellTemplateDirective, i26.ColumnHeaderCellTemplateDirective] });
|
|
62
|
-
static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: PivotGridModule, providers: [
|
|
63
|
-
IconsService,
|
|
64
|
-
PopupService,
|
|
65
|
-
ResizeBatchService,
|
|
66
|
-
DialogContainerService,
|
|
67
|
-
DialogService,
|
|
68
|
-
WindowService,
|
|
69
|
-
WindowContainerService
|
|
70
|
-
], imports: [i1.ChipMenuItemComponent, i2.ChipMenuSortComponent, i3.ChipMenuComponent, i4.ChipMenuFilterComponent, i6.FilterMenuContainerComponent, i7.StringFilterMenuComponent, i11.ChipMenuReorderComponent, i12.PivotGridComponent, i13.PivotGridTableComponent, i14.PivotGridConfiguratorComponent, i15.PivotGridCellDirective] });
|
|
71
|
-
}
|
|
72
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: PivotGridModule, decorators: [{
|
|
73
|
-
type: NgModule,
|
|
74
|
-
args: [{
|
|
75
|
-
imports: [...KENDO_PIVOTGRID_CHIPMENU_DECLARATIONS, ...KENDO_PIVOTGRID_DECLARATIONS],
|
|
76
|
-
exports: [...KENDO_PIVOTGRID],
|
|
77
|
-
providers: [
|
|
78
|
-
IconsService,
|
|
79
|
-
PopupService,
|
|
80
|
-
ResizeBatchService,
|
|
81
|
-
DialogContainerService,
|
|
82
|
-
DialogService,
|
|
83
|
-
WindowService,
|
|
84
|
-
WindowContainerService
|
|
85
|
-
]
|
|
86
|
-
}]
|
|
87
|
-
}] });
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
/**-----------------------------------------------------------------------------------------
|
|
2
|
-
* Copyright © 2026 Progress Software Corporation. All rights reserved.
|
|
3
|
-
* Licensed under commercial license. See LICENSE.md in the project root for more information
|
|
4
|
-
*-------------------------------------------------------------------------------------------*/
|
|
5
|
-
/**
|
|
6
|
-
* Generated bundle index. Do not edit.
|
|
7
|
-
*/
|
|
8
|
-
export * from './index';
|
|
@@ -1,247 +0,0 @@
|
|
|
1
|
-
/**-----------------------------------------------------------------------------------------
|
|
2
|
-
* Copyright © 2026 Progress Software Corporation. All rights reserved.
|
|
3
|
-
* Licensed under commercial license. See LICENSE.md in the project root for more information
|
|
4
|
-
*-------------------------------------------------------------------------------------------*/
|
|
5
|
-
import { Component, ElementRef, HostBinding, Input, Renderer2 } from '@angular/core';
|
|
6
|
-
import { chevronDownIcon, chevronUpIcon } from '@progress/kendo-svg-icons';
|
|
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';
|
|
12
|
-
import { NgClass } from '@angular/common';
|
|
13
|
-
import { IconWrapperComponent } from '@progress/kendo-angular-icons';
|
|
14
|
-
import { EventsOutsideAngularDirective, TemplateContextDirective } from '@progress/kendo-angular-common';
|
|
15
|
-
import * as i0 from "@angular/core";
|
|
16
|
-
import * as i1 from "../data-binding/pivotgrid-data.service";
|
|
17
|
-
/**
|
|
18
|
-
* @hidden
|
|
19
|
-
*/
|
|
20
|
-
export class PivotGridCellDirective {
|
|
21
|
-
hostEl;
|
|
22
|
-
renderer;
|
|
23
|
-
dataService;
|
|
24
|
-
cellClass = true;
|
|
25
|
-
kendoPivotGridCell;
|
|
26
|
-
tableType;
|
|
27
|
-
rowIndex;
|
|
28
|
-
colIndex;
|
|
29
|
-
customCellTemplate;
|
|
30
|
-
valueCellTemplate;
|
|
31
|
-
rowHeaderCellTemplate;
|
|
32
|
-
columnHeaderCellTemplate;
|
|
33
|
-
get isNotProvidedCellTemplatePerType() {
|
|
34
|
-
return (this.tableType === 'values' && !this.valueCellTemplate)
|
|
35
|
-
|| (this.tableType === 'rowHeader' && !this.rowHeaderCellTemplate)
|
|
36
|
-
|| (this.tableType === 'columnHeader' && !this.columnHeaderCellTemplate);
|
|
37
|
-
}
|
|
38
|
-
get expanded() {
|
|
39
|
-
return (this.kendoPivotGridCell?.hasChildren && this.kendoPivotGridCell.children.length > 0) || false;
|
|
40
|
-
}
|
|
41
|
-
chevronUpSVGIcon = chevronUpIcon;
|
|
42
|
-
chevronDownSVGIcon = chevronDownIcon;
|
|
43
|
-
constructor(hostEl, renderer, dataService) {
|
|
44
|
-
this.hostEl = hostEl;
|
|
45
|
-
this.renderer = renderer;
|
|
46
|
-
this.dataService = dataService;
|
|
47
|
-
}
|
|
48
|
-
ngOnInit() {
|
|
49
|
-
const nativeElement = this.hostEl.nativeElement;
|
|
50
|
-
this.renderer.setAttribute(nativeElement, 'rowspan', this.kendoPivotGridCell.rowSpan || 1);
|
|
51
|
-
this.renderer.setAttribute(nativeElement, 'colspan', this.kendoPivotGridCell.colSpan || 1);
|
|
52
|
-
const classesToAdd = {
|
|
53
|
-
'k-pivotgrid-header-total': this.kendoPivotGridCell?.total,
|
|
54
|
-
'k-pivotgrid-total': this.tableType === 'values'
|
|
55
|
-
&& (this.dataService.rowHeaderLeaves[this.rowIndex].total ||
|
|
56
|
-
this.dataService.columnHeaderLeaves[this.colIndex].total),
|
|
57
|
-
'k-pivotgrid-header-root': this.kendoPivotGridCell?.levelNum === 0,
|
|
58
|
-
'k-pivotgrid-expanded': this.kendoPivotGridCell?.hasChildren && this.kendoPivotGridCell.children.length,
|
|
59
|
-
'k-first': this.colIndex > 0
|
|
60
|
-
};
|
|
61
|
-
for (const prop in classesToAdd) {
|
|
62
|
-
if (classesToAdd[prop]) {
|
|
63
|
-
this.renderer.addClass(nativeElement, prop);
|
|
64
|
-
}
|
|
65
|
-
}
|
|
66
|
-
}
|
|
67
|
-
handleClick = () => {
|
|
68
|
-
this.dataService.expandedStateChange.emit({
|
|
69
|
-
action: this.expanded ? 'collapse' : 'expand',
|
|
70
|
-
cell: this.kendoPivotGridCell,
|
|
71
|
-
tableType: this.tableType
|
|
72
|
-
});
|
|
73
|
-
};
|
|
74
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: PivotGridCellDirective, deps: [{ token: i0.ElementRef }, { token: i0.Renderer2 }, { token: i1.PivotGridDataService }], target: i0.ɵɵFactoryTarget.Component });
|
|
75
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "18.2.14", type: PivotGridCellDirective, isStandalone: true, selector: "[kendoPivotGridCell]", inputs: { kendoPivotGridCell: "kendoPivotGridCell", tableType: "tableType", rowIndex: "rowIndex", colIndex: "colIndex", customCellTemplate: "customCellTemplate", valueCellTemplate: "valueCellTemplate", rowHeaderCellTemplate: "rowHeaderCellTemplate", columnHeaderCellTemplate: "columnHeaderCellTemplate" }, host: { properties: { "class.k-pivotgrid-cell": "this.cellClass" } }, ngImport: i0, template: `
|
|
76
|
-
@if (kendoPivotGridCell.hasChildren && !kendoPivotGridCell.total) {
|
|
77
|
-
<kendo-icon-wrapper
|
|
78
|
-
aria-hidden="true"
|
|
79
|
-
[kendoEventsOutsideAngular]="{ click: handleClick }"
|
|
80
|
-
[name]="expanded ? 'chevron-up' : 'chevron-down'"
|
|
81
|
-
[svgIcon]="expanded ? chevronUpSVGIcon : chevronDownSVGIcon"
|
|
82
|
-
innerCssClass="k-pivotgrid-toggle">
|
|
83
|
-
</kendo-icon-wrapper>
|
|
84
|
-
}
|
|
85
|
-
<!--value cell template-->
|
|
86
|
-
@if (tableType === 'values' && valueCellTemplate) {
|
|
87
|
-
<ng-template
|
|
88
|
-
[templateContext]="{
|
|
89
|
-
templateRef: valueCellTemplate.templateRef,
|
|
90
|
-
$implicit: kendoPivotGridCell,
|
|
91
|
-
value: kendoPivotGridCell.data ? kendoPivotGridCell.data.fmtValue : kendoPivotGridCell.caption,
|
|
92
|
-
rowIndex: rowIndex,
|
|
93
|
-
columnIndex: colIndex,
|
|
94
|
-
tableType: tableType
|
|
95
|
-
}">
|
|
96
|
-
</ng-template>
|
|
97
|
-
}
|
|
98
|
-
<!--row header cell template-->
|
|
99
|
-
@if (tableType === 'rowHeader' && rowHeaderCellTemplate) {
|
|
100
|
-
<ng-template
|
|
101
|
-
[templateContext]="{
|
|
102
|
-
templateRef: rowHeaderCellTemplate.templateRef,
|
|
103
|
-
$implicit: kendoPivotGridCell,
|
|
104
|
-
text: kendoPivotGridCell.data ? kendoPivotGridCell.data.fmtValue : kendoPivotGridCell.caption,
|
|
105
|
-
rowIndex: rowIndex,
|
|
106
|
-
columnIndex: colIndex,
|
|
107
|
-
tableType: tableType,
|
|
108
|
-
expanded: expanded
|
|
109
|
-
}">
|
|
110
|
-
</ng-template>
|
|
111
|
-
}
|
|
112
|
-
<!--column header cell template-->
|
|
113
|
-
@if (tableType === 'columnHeader' && columnHeaderCellTemplate) {
|
|
114
|
-
<ng-template
|
|
115
|
-
[templateContext]="{
|
|
116
|
-
templateRef: columnHeaderCellTemplate.templateRef,
|
|
117
|
-
$implicit: kendoPivotGridCell,
|
|
118
|
-
text: kendoPivotGridCell.data ? kendoPivotGridCell.data.fmtValue : kendoPivotGridCell.caption,
|
|
119
|
-
rowIndex: rowIndex,
|
|
120
|
-
columnIndex: colIndex,
|
|
121
|
-
tableType: tableType,
|
|
122
|
-
expanded: expanded
|
|
123
|
-
}">
|
|
124
|
-
</ng-template>
|
|
125
|
-
}
|
|
126
|
-
<!--cell template-->
|
|
127
|
-
@if (customCellTemplate && isNotProvidedCellTemplatePerType) {
|
|
128
|
-
<ng-template
|
|
129
|
-
[templateContext]="{
|
|
130
|
-
templateRef: customCellTemplate.templateRef,
|
|
131
|
-
$implicit: kendoPivotGridCell,
|
|
132
|
-
text: kendoPivotGridCell.data ? kendoPivotGridCell.data.fmtValue : kendoPivotGridCell.caption,
|
|
133
|
-
rowIndex: rowIndex,
|
|
134
|
-
columnIndex: colIndex,
|
|
135
|
-
tableType: tableType,
|
|
136
|
-
expanded: expanded
|
|
137
|
-
}">
|
|
138
|
-
</ng-template>
|
|
139
|
-
}
|
|
140
|
-
<!--default cell content-->
|
|
141
|
-
@if (!customCellTemplate && isNotProvidedCellTemplatePerType) {
|
|
142
|
-
<span [ngClass]="{'k-pivotgrid-header-title': !kendoPivotGridCell.data, 'k-pivotgrid-content': kendoPivotGridCell.data}">
|
|
143
|
-
{{ kendoPivotGridCell.data ? kendoPivotGridCell.data.fmtValue : kendoPivotGridCell.caption }}
|
|
144
|
-
</span>
|
|
145
|
-
}
|
|
146
|
-
`, isInline: true, dependencies: [{ kind: "component", type: IconWrapperComponent, selector: "kendo-icon-wrapper", inputs: ["name", "svgIcon", "innerCssClass", "customFontClass", "size"], exportAs: ["kendoIconWrapper"] }, { kind: "directive", type: EventsOutsideAngularDirective, selector: "[kendoEventsOutsideAngular]", inputs: ["kendoEventsOutsideAngular", "scope"] }, { kind: "directive", type: TemplateContextDirective, selector: "[templateContext]", inputs: ["templateContext"] }, { kind: "directive", type: NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }] });
|
|
147
|
-
}
|
|
148
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: PivotGridCellDirective, decorators: [{
|
|
149
|
-
type: Component,
|
|
150
|
-
args: [{
|
|
151
|
-
// eslint-disable-next-line @angular-eslint/component-selector
|
|
152
|
-
selector: '[kendoPivotGridCell]',
|
|
153
|
-
template: `
|
|
154
|
-
@if (kendoPivotGridCell.hasChildren && !kendoPivotGridCell.total) {
|
|
155
|
-
<kendo-icon-wrapper
|
|
156
|
-
aria-hidden="true"
|
|
157
|
-
[kendoEventsOutsideAngular]="{ click: handleClick }"
|
|
158
|
-
[name]="expanded ? 'chevron-up' : 'chevron-down'"
|
|
159
|
-
[svgIcon]="expanded ? chevronUpSVGIcon : chevronDownSVGIcon"
|
|
160
|
-
innerCssClass="k-pivotgrid-toggle">
|
|
161
|
-
</kendo-icon-wrapper>
|
|
162
|
-
}
|
|
163
|
-
<!--value cell template-->
|
|
164
|
-
@if (tableType === 'values' && valueCellTemplate) {
|
|
165
|
-
<ng-template
|
|
166
|
-
[templateContext]="{
|
|
167
|
-
templateRef: valueCellTemplate.templateRef,
|
|
168
|
-
$implicit: kendoPivotGridCell,
|
|
169
|
-
value: kendoPivotGridCell.data ? kendoPivotGridCell.data.fmtValue : kendoPivotGridCell.caption,
|
|
170
|
-
rowIndex: rowIndex,
|
|
171
|
-
columnIndex: colIndex,
|
|
172
|
-
tableType: tableType
|
|
173
|
-
}">
|
|
174
|
-
</ng-template>
|
|
175
|
-
}
|
|
176
|
-
<!--row header cell template-->
|
|
177
|
-
@if (tableType === 'rowHeader' && rowHeaderCellTemplate) {
|
|
178
|
-
<ng-template
|
|
179
|
-
[templateContext]="{
|
|
180
|
-
templateRef: rowHeaderCellTemplate.templateRef,
|
|
181
|
-
$implicit: kendoPivotGridCell,
|
|
182
|
-
text: kendoPivotGridCell.data ? kendoPivotGridCell.data.fmtValue : kendoPivotGridCell.caption,
|
|
183
|
-
rowIndex: rowIndex,
|
|
184
|
-
columnIndex: colIndex,
|
|
185
|
-
tableType: tableType,
|
|
186
|
-
expanded: expanded
|
|
187
|
-
}">
|
|
188
|
-
</ng-template>
|
|
189
|
-
}
|
|
190
|
-
<!--column header cell template-->
|
|
191
|
-
@if (tableType === 'columnHeader' && columnHeaderCellTemplate) {
|
|
192
|
-
<ng-template
|
|
193
|
-
[templateContext]="{
|
|
194
|
-
templateRef: columnHeaderCellTemplate.templateRef,
|
|
195
|
-
$implicit: kendoPivotGridCell,
|
|
196
|
-
text: kendoPivotGridCell.data ? kendoPivotGridCell.data.fmtValue : kendoPivotGridCell.caption,
|
|
197
|
-
rowIndex: rowIndex,
|
|
198
|
-
columnIndex: colIndex,
|
|
199
|
-
tableType: tableType,
|
|
200
|
-
expanded: expanded
|
|
201
|
-
}">
|
|
202
|
-
</ng-template>
|
|
203
|
-
}
|
|
204
|
-
<!--cell template-->
|
|
205
|
-
@if (customCellTemplate && isNotProvidedCellTemplatePerType) {
|
|
206
|
-
<ng-template
|
|
207
|
-
[templateContext]="{
|
|
208
|
-
templateRef: customCellTemplate.templateRef,
|
|
209
|
-
$implicit: kendoPivotGridCell,
|
|
210
|
-
text: kendoPivotGridCell.data ? kendoPivotGridCell.data.fmtValue : kendoPivotGridCell.caption,
|
|
211
|
-
rowIndex: rowIndex,
|
|
212
|
-
columnIndex: colIndex,
|
|
213
|
-
tableType: tableType,
|
|
214
|
-
expanded: expanded
|
|
215
|
-
}">
|
|
216
|
-
</ng-template>
|
|
217
|
-
}
|
|
218
|
-
<!--default cell content-->
|
|
219
|
-
@if (!customCellTemplate && isNotProvidedCellTemplatePerType) {
|
|
220
|
-
<span [ngClass]="{'k-pivotgrid-header-title': !kendoPivotGridCell.data, 'k-pivotgrid-content': kendoPivotGridCell.data}">
|
|
221
|
-
{{ kendoPivotGridCell.data ? kendoPivotGridCell.data.fmtValue : kendoPivotGridCell.caption }}
|
|
222
|
-
</span>
|
|
223
|
-
}
|
|
224
|
-
`,
|
|
225
|
-
standalone: true,
|
|
226
|
-
imports: [IconWrapperComponent, EventsOutsideAngularDirective, TemplateContextDirective, NgClass]
|
|
227
|
-
}]
|
|
228
|
-
}], ctorParameters: () => [{ type: i0.ElementRef }, { type: i0.Renderer2 }, { type: i1.PivotGridDataService }], propDecorators: { cellClass: [{
|
|
229
|
-
type: HostBinding,
|
|
230
|
-
args: ['class.k-pivotgrid-cell']
|
|
231
|
-
}], kendoPivotGridCell: [{
|
|
232
|
-
type: Input
|
|
233
|
-
}], tableType: [{
|
|
234
|
-
type: Input
|
|
235
|
-
}], rowIndex: [{
|
|
236
|
-
type: Input
|
|
237
|
-
}], colIndex: [{
|
|
238
|
-
type: Input
|
|
239
|
-
}], customCellTemplate: [{
|
|
240
|
-
type: Input
|
|
241
|
-
}], valueCellTemplate: [{
|
|
242
|
-
type: Input
|
|
243
|
-
}], rowHeaderCellTemplate: [{
|
|
244
|
-
type: Input
|
|
245
|
-
}], columnHeaderCellTemplate: [{
|
|
246
|
-
type: Input
|
|
247
|
-
}] } });
|