@progress/kendo-angular-pivotgrid 16.5.0 → 16.6.0-develop.10

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 (76) hide show
  1. package/NOTICE.txt +12 -19
  2. package/configurator/chip-kb-nav.directive.d.ts +1 -1
  3. package/configurator/chip-menu/chip-menu-container.component.d.ts +1 -1
  4. package/configurator/chip-menu/chip-menu-filter.component.d.ts +1 -1
  5. package/configurator/chip-menu/chip-menu-item-content-template.directive.d.ts +1 -1
  6. package/configurator/chip-menu/chip-menu-item.component.d.ts +1 -1
  7. package/configurator/chip-menu/chip-menu-item.directive.d.ts +1 -1
  8. package/configurator/chip-menu/chip-menu-reorder.component.d.ts +1 -1
  9. package/configurator/chip-menu/chip-menu-sort.component.d.ts +1 -1
  10. package/configurator/chip-menu/chip-menu.component.d.ts +1 -1
  11. package/configurator/chip-menu/filtering/filter-menu-container.component.d.ts +1 -1
  12. package/configurator/chip-menu/filtering/filter-menu-dropdownlist.directive.d.ts +1 -1
  13. package/configurator/chip-menu/filtering/string-filter-menu.component.d.ts +1 -1
  14. package/configurator/configurator.component.d.ts +1 -1
  15. package/configurator/draggable.directive.d.ts +1 -1
  16. package/configurator/drop-target.directive.d.ts +1 -1
  17. package/data-binding/local-binding.directive.d.ts +1 -1
  18. package/data-binding/olap-binding.directive.d.ts +1 -1
  19. package/directives.d.ts +42 -0
  20. package/esm2020/configurator/chip-kb-nav.directive.mjs +5 -2
  21. package/esm2020/configurator/chip-menu/chip-menu-container.component.mjs +3 -2
  22. package/esm2020/configurator/chip-menu/chip-menu-filter.component.mjs +8 -6
  23. package/esm2020/configurator/chip-menu/chip-menu-item-content-template.directive.mjs +3 -2
  24. package/esm2020/configurator/chip-menu/chip-menu-item.component.mjs +7 -5
  25. package/esm2020/configurator/chip-menu/chip-menu-item.directive.mjs +5 -2
  26. package/esm2020/configurator/chip-menu/chip-menu-reorder.component.mjs +7 -5
  27. package/esm2020/configurator/chip-menu/chip-menu-sort.component.mjs +6 -4
  28. package/esm2020/configurator/chip-menu/chip-menu.component.mjs +12 -10
  29. package/esm2020/configurator/chip-menu/filtering/filter-menu-container.component.mjs +10 -7
  30. package/esm2020/configurator/chip-menu/filtering/filter-menu-dropdownlist.directive.mjs +5 -2
  31. package/esm2020/configurator/chip-menu/filtering/string-filter-menu.component.mjs +9 -7
  32. package/esm2020/configurator/configurator.component.mjs +18 -14
  33. package/esm2020/configurator/draggable.directive.mjs +3 -2
  34. package/esm2020/configurator/drop-target.directive.mjs +3 -2
  35. package/esm2020/data-binding/local-binding.directive.mjs +3 -2
  36. package/esm2020/data-binding/olap-binding.directive.mjs +3 -2
  37. package/esm2020/directives.mjs +81 -0
  38. package/esm2020/index.mjs +1 -0
  39. package/esm2020/localization/custom-messages.component.mjs +3 -2
  40. package/esm2020/localization/localized-messages.directive.mjs +3 -2
  41. package/esm2020/models/virtualization-settings.mjs +25 -0
  42. package/esm2020/package-metadata.mjs +2 -2
  43. package/esm2020/pivotgrid.component.mjs +43 -14
  44. package/esm2020/pivotgrid.module.mjs +83 -94
  45. package/esm2020/rendering/pivotgrid-cell.directive.mjs +78 -77
  46. package/esm2020/rendering/pivotgrid-table.component.mjs +192 -33
  47. package/esm2020/rendering/templates/pivotgrid-cell-template.directive.mjs +3 -2
  48. package/esm2020/rendering/templates/pivotgrid-column-header-cell-template.directive.mjs +3 -2
  49. package/esm2020/rendering/templates/pivotgrid-row-header-cell-template.directive.mjs +3 -2
  50. package/esm2020/rendering/templates/pivotgrid-value-cell-template.directive.mjs +3 -2
  51. package/esm2020/util.mjs +30 -5
  52. package/esm2020/virtual/scroll.service.mjs +19 -0
  53. package/esm2020/virtual/scrollable-container.mjs +114 -0
  54. package/fesm2015/progress-kendo-angular-pivotgrid.mjs +3104 -2781
  55. package/fesm2020/progress-kendo-angular-pivotgrid.mjs +3600 -3283
  56. package/index.d.ts +1 -0
  57. package/localization/custom-messages.component.d.ts +1 -1
  58. package/localization/localized-messages.directive.d.ts +1 -1
  59. package/models/virtualization-settings.d.ts +34 -0
  60. package/package.json +12 -12
  61. package/pivotgrid.component.d.ts +19 -5
  62. package/pivotgrid.module.d.ts +57 -23
  63. package/rendering/pivotgrid-cell.directive.d.ts +1 -1
  64. package/rendering/pivotgrid-table.component.d.ts +25 -4
  65. package/rendering/templates/pivotgrid-cell-template.directive.d.ts +1 -1
  66. package/rendering/templates/pivotgrid-column-header-cell-template.directive.d.ts +1 -1
  67. package/rendering/templates/pivotgrid-row-header-cell-template.directive.d.ts +1 -1
  68. package/rendering/templates/pivotgrid-value-cell-template.directive.d.ts +1 -1
  69. package/schematics/ngAdd/index.js +2 -2
  70. package/util.d.ts +7 -0
  71. package/virtual/scroll.service.d.ts +15 -0
  72. package/virtual/scrollable-container.d.ts +35 -0
  73. package/configurator/chip-menu/chip-menu.module.d.ts +0 -27
  74. package/esm2020/configurator/chip-menu/chip-menu.module.mjs +0 -86
  75. package/esm2020/shared.module.mjs +0 -45
  76. package/shared.module.d.ts +0 -18
@@ -18,16 +18,19 @@ import { CellTemplateDirective } from './rendering/templates/pivotgrid-cell-temp
18
18
  import { ValueCellTemplateDirective } from './rendering/templates/pivotgrid-value-cell-template.directive';
19
19
  import { RowHeaderCellTemplateDirective } from './rendering/templates/pivotgrid-row-header-cell-template.directive';
20
20
  import { ColumnHeaderCellTemplateDirective } from './rendering/templates/pivotgrid-column-header-cell-template.directive';
21
+ import { PivotGridConfiguratorComponent } from './configurator/configurator.component';
22
+ import { NgIf } from '@angular/common';
23
+ import { PivotGridTableComponent } from './rendering/pivotgrid-table.component';
24
+ import { LocalizedMessagesDirective } from './localization/localized-messages.directive';
25
+ import { LoaderComponent } from '@progress/kendo-angular-indicators';
26
+ import { IconWrapperComponent } from '@progress/kendo-angular-icons';
27
+ import { normalizeVirtualSettings } from './models/virtualization-settings';
28
+ import { PivotGridScrollService } from './virtual/scroll.service';
21
29
  import * as i0 from "@angular/core";
22
30
  import * as i1 from "./data-binding/pivotgrid-data.service";
23
31
  import * as i2 from "@progress/kendo-angular-l10n";
24
32
  import * as i3 from "@progress/kendo-angular-common";
25
- import * as i4 from "@progress/kendo-angular-indicators";
26
- import * as i5 from "@angular/common";
27
- import * as i6 from "@progress/kendo-angular-icons";
28
- import * as i7 from "./rendering/pivotgrid-table.component";
29
- import * as i8 from "./configurator/configurator.component";
30
- import * as i9 from "./localization/localized-messages.directive";
33
+ import * as i4 from "./virtual/scroll.service";
31
34
  const DEFAULT_LOADER_SETTINGS = {
32
35
  type: 'converging-spinner',
33
36
  themeColor: 'primary',
@@ -41,12 +44,13 @@ const DEFAULT_CONFIGURATOR_SETTINGS = {
41
44
  * Represents the Kendo UI PivotGrid component for Angular.
42
45
  */
43
46
  export class PivotGridComponent {
44
- constructor(hostEl, zone, dataService, localization, renderer, _scrollbarWidthService) {
47
+ constructor(hostEl, zone, dataService, localization, renderer, _scrollbarWidthService, scrollService) {
45
48
  this.hostEl = hostEl;
46
49
  this.zone = zone;
47
50
  this.dataService = dataService;
48
51
  this.localization = localization;
49
52
  this.renderer = renderer;
53
+ this.scrollService = scrollService;
50
54
  this.hostClass = true;
51
55
  /**
52
56
  * Specify the width of the column header and data cells. Value is treated as pixels [(see example)]({% slug appearance_pivotgrid %}#toc-column-headers-width).
@@ -66,6 +70,7 @@ export class PivotGridComponent {
66
70
  this.gearSVGIcon = gearIcon;
67
71
  this.resizeObservers = [];
68
72
  this._loaderSettings = DEFAULT_LOADER_SETTINGS;
73
+ this._virtualScrolling = normalizeVirtualSettings(false);
69
74
  this.subs = new Subscription();
70
75
  this.rtl = false;
71
76
  this.resizeContainer = (axis, element) => {
@@ -95,6 +100,7 @@ export class PivotGridComponent {
95
100
  this.direction = this.rtl ? 'rtl' : 'ltr';
96
101
  }));
97
102
  dataService.wrapper = this.hostEl.nativeElement;
103
+ this.scrollService.pivotGrid = this;
98
104
  }
99
105
  get rightPositionClass() {
100
106
  return this.configuratorSettings?.position === 'right';
@@ -131,6 +137,18 @@ export class PivotGridComponent {
131
137
  get loadingText() {
132
138
  return this.localization.get('loading');
133
139
  }
140
+ /**
141
+ * Sets the virtualization options of the component. By default the virtual scrolling functionality is disabled.
142
+ *
143
+ * @default false
144
+ */
145
+ set virtualScrolling(value) {
146
+ this._virtualScrolling = normalizeVirtualSettings(value);
147
+ this.scrollService.virtualScrolling = !!value;
148
+ }
149
+ get virtualScrolling() {
150
+ return this._virtualScrolling;
151
+ }
134
152
  get configuratorSettings() {
135
153
  return this.configurator && Object.assign({}, DEFAULT_CONFIGURATOR_SETTINGS, this.configurator);
136
154
  }
@@ -205,6 +223,9 @@ export class PivotGridComponent {
205
223
  }
206
224
  }
207
225
  }
226
+ /**
227
+ * @hidden
228
+ */
208
229
  initNavigation() {
209
230
  this.stopNavigation();
210
231
  this.navigation = new PivotGridNavigation({ tabIndex: 0 });
@@ -245,15 +266,16 @@ export class PivotGridComponent {
245
266
  }
246
267
  }
247
268
  }
248
- PivotGridComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: PivotGridComponent, deps: [{ token: i0.ElementRef }, { token: i0.NgZone }, { token: i1.PivotGridDataService }, { token: i2.LocalizationService }, { token: i0.Renderer2 }, { token: i3.ScrollbarWidthService }], target: i0.ɵɵFactoryTarget.Component });
249
- PivotGridComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.10", type: PivotGridComponent, selector: "kendo-pivotgrid", inputs: { loaderSettings: "loaderSettings", configurator: "configurator", columnHeadersWidth: "columnHeadersWidth", navigable: "navigable" }, host: { properties: { "class.k-d-flex": "this.hostClass", "class.k-pos-relative": "this.hostClass", "class.k-flex-row": "this.rightPositionClass", "class.k-flex-row-reverse": "this.leftPositionClass", "class.k-flex-column": "this.bottomPositionClass", "class.k-flex-column-reverse": "this.topPositionClass", "attr.dir": "this.dir" } }, providers: [
269
+ PivotGridComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: PivotGridComponent, deps: [{ token: i0.ElementRef }, { token: i0.NgZone }, { token: i1.PivotGridDataService }, { token: i2.LocalizationService }, { token: i0.Renderer2 }, { token: i3.ScrollbarWidthService }, { token: i4.PivotGridScrollService }], target: i0.ɵɵFactoryTarget.Component });
270
+ PivotGridComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.10", type: PivotGridComponent, isStandalone: true, selector: "kendo-pivotgrid", inputs: { loaderSettings: "loaderSettings", configurator: "configurator", virtualScrolling: "virtualScrolling", columnHeadersWidth: "columnHeadersWidth", navigable: "navigable" }, host: { properties: { "class.k-d-flex": "this.hostClass", "class.k-pos-relative": "this.hostClass", "class.k-flex-row": "this.rightPositionClass", "class.k-flex-row-reverse": "this.leftPositionClass", "class.k-flex-column": "this.bottomPositionClass", "class.k-flex-column-reverse": "this.topPositionClass", "attr.dir": "this.dir" } }, providers: [
250
271
  PivotGridDataService,
251
272
  LocalizationService,
252
273
  PivotLocalizationService,
253
274
  {
254
275
  provide: L10N_PREFIX,
255
276
  useValue: 'kendo.pivotgrid'
256
- }
277
+ },
278
+ PivotGridScrollService
257
279
  ], queries: [{ propertyName: "customCellTemplate", first: true, predicate: CellTemplateDirective, descendants: true }, { propertyName: "valueCellTemplate", first: true, predicate: ValueCellTemplateDirective, descendants: true }, { propertyName: "rowHeaderCellTemplate", first: true, predicate: RowHeaderCellTemplateDirective, descendants: true }, { propertyName: "columnHeaderCellTemplate", first: true, predicate: ColumnHeaderCellTemplateDirective, descendants: true }], viewQueries: [{ propertyName: "colHeadersTable", first: true, predicate: ["colHeadersTable"], descendants: true, read: ElementRef }, { propertyName: "rowHeadersTable", first: true, predicate: ["rowHeadersTable"], descendants: true, read: ElementRef }, { propertyName: "valuesTable", first: true, predicate: ["valuesTable"], descendants: true, read: ElementRef }, { propertyName: "table", first: true, predicate: ["table"], descendants: true, read: ElementRef }, { propertyName: "configuratorWrapper", first: true, predicate: ["configurator"], descendants: true, read: ElementRef }], usesOnChanges: true, ngImport: i0, template: `
258
280
  <ng-container kendoPivotGridLocalizedMessages
259
281
  i18n-loading="kendo.pivotgrid.loading|The loading text"
@@ -384,6 +406,7 @@ PivotGridComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", ver
384
406
  [valueCellTemplate]="valueCellTemplate"
385
407
  [colWidth]="columnHeadersWidth"
386
408
  class="k-pivotgrid-values"
409
+ [scrollableSettings]="virtualScrolling"
387
410
  tableType="values"></kendo-pivotgrid-table>
388
411
 
389
412
  <div *ngIf="loading" [style]="'position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);'">
@@ -411,7 +434,7 @@ PivotGridComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", ver
411
434
  <span>{{messageFor('configuratorButtonText')}}<kendo-icon-wrapper name="gear" innerCssClass="k-color-inherit" [svgIcon]="gearSVGIcon"></kendo-icon-wrapper>
412
435
  </span>
413
436
  </div>
414
- `, isInline: true, dependencies: [{ kind: "component", type: i4.LoaderComponent, selector: "kendo-loader", inputs: ["type", "themeColor", "size"] }, { kind: "directive", type: i5.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "component", type: i6.IconWrapperComponent, selector: "kendo-icon-wrapper", inputs: ["name", "svgIcon", "innerCssClass", "customFontClass", "size"], exportAs: ["kendoIconWrapper"] }, { kind: "component", type: i7.PivotGridTableComponent, selector: "kendo-pivotgrid-table", inputs: ["tableType", "colWidth", "customCellTemplate", "valueCellTemplate", "rowHeaderCellTemplate", "columnHeaderCellTemplate"] }, { kind: "component", type: i8.PivotGridConfiguratorComponent, selector: "kendo-pivotgrid-configurator", inputs: ["orientation", "sort", "filter", "navigation"], outputs: ["close"] }, { kind: "directive", type: i9.LocalizedMessagesDirective, selector: "[kendoPivotGridLocalizedMessages]" }] });
437
+ `, isInline: true, dependencies: [{ kind: "directive", type: LocalizedMessagesDirective, selector: "[kendoPivotGridLocalizedMessages]" }, { kind: "component", type: PivotGridTableComponent, selector: "kendo-pivotgrid-table", inputs: ["tableType", "colWidth", "customCellTemplate", "valueCellTemplate", "rowHeaderCellTemplate", "columnHeaderCellTemplate", "scrollableSettings"] }, { kind: "directive", type: NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "component", type: LoaderComponent, selector: "kendo-loader", inputs: ["type", "themeColor", "size"] }, { kind: "component", type: PivotGridConfiguratorComponent, selector: "kendo-pivotgrid-configurator", inputs: ["orientation", "sort", "filter", "navigation"], outputs: ["close"] }, { kind: "component", type: IconWrapperComponent, selector: "kendo-icon-wrapper", inputs: ["name", "svgIcon", "innerCssClass", "customFontClass", "size"], exportAs: ["kendoIconWrapper"] }] });
415
438
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: PivotGridComponent, decorators: [{
416
439
  type: Component,
417
440
  args: [{
@@ -423,7 +446,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImpo
423
446
  {
424
447
  provide: L10N_PREFIX,
425
448
  useValue: 'kendo.pivotgrid'
426
- }
449
+ },
450
+ PivotGridScrollService
427
451
  ],
428
452
  template: `
429
453
  <ng-container kendoPivotGridLocalizedMessages
@@ -555,6 +579,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImpo
555
579
  [valueCellTemplate]="valueCellTemplate"
556
580
  [colWidth]="columnHeadersWidth"
557
581
  class="k-pivotgrid-values"
582
+ [scrollableSettings]="virtualScrolling"
558
583
  tableType="values"></kendo-pivotgrid-table>
559
584
 
560
585
  <div *ngIf="loading" [style]="'position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);'">
@@ -582,9 +607,11 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImpo
582
607
  <span>{{messageFor('configuratorButtonText')}}<kendo-icon-wrapper name="gear" innerCssClass="k-color-inherit" [svgIcon]="gearSVGIcon"></kendo-icon-wrapper>
583
608
  </span>
584
609
  </div>
585
- `
610
+ `,
611
+ standalone: true,
612
+ imports: [LocalizedMessagesDirective, PivotGridTableComponent, NgIf, LoaderComponent, PivotGridConfiguratorComponent, IconWrapperComponent]
586
613
  }]
587
- }], ctorParameters: function () { return [{ type: i0.ElementRef }, { type: i0.NgZone }, { type: i1.PivotGridDataService }, { type: i2.LocalizationService }, { type: i0.Renderer2 }, { type: i3.ScrollbarWidthService }]; }, propDecorators: { hostClass: [{
614
+ }], ctorParameters: function () { return [{ type: i0.ElementRef }, { type: i0.NgZone }, { type: i1.PivotGridDataService }, { type: i2.LocalizationService }, { type: i0.Renderer2 }, { type: i3.ScrollbarWidthService }, { type: i4.PivotGridScrollService }]; }, propDecorators: { hostClass: [{
588
615
  type: HostBinding,
589
616
  args: ['class.k-d-flex']
590
617
  }, {
@@ -636,6 +663,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImpo
636
663
  type: Input
637
664
  }], configurator: [{
638
665
  type: Input
666
+ }], virtualScrolling: [{
667
+ type: Input
639
668
  }], columnHeadersWidth: [{
640
669
  type: Input
641
670
  }], navigable: [{
@@ -3,108 +3,97 @@
3
3
  * Licensed under commercial license. See LICENSE.md in the project root for more information
4
4
  *-------------------------------------------------------------------------------------------*/
5
5
  import { NgModule } from '@angular/core';
6
- import { IndicatorsModule } from "@progress/kendo-angular-indicators";
7
- import { TreeViewModule } from "@progress/kendo-angular-treeview";
8
- import { PivotGridComponent } from './pivotgrid.component';
9
- import { PivotGridCellDirective } from './rendering/pivotgrid-cell.directive';
10
- import { PivotGridTableComponent } from './rendering/pivotgrid-table.component';
11
- import { DraggableModule, EventsModule } from '@progress/kendo-angular-common';
12
- import { PivotLocalBindingDirective } from './data-binding/local-binding.directive';
13
- import { PivotOLAPBindingDirective } from './data-binding/olap-binding.directive';
14
- import { LocalizedMessagesDirective } from './localization/localized-messages.directive';
15
- import { CustomMessagesComponent } from './localization/custom-messages.component';
16
- import { PivotGridConfiguratorComponent } from './configurator/configurator.component';
17
- import { DraggableChipDirective } from './configurator/draggable.directive';
18
- import { DropTargetDirective } from './configurator/drop-target.directive';
19
- import { ChipMenuModule } from './configurator/chip-menu/chip-menu.module';
20
- import { SharedModule } from './shared.module';
21
- import { ChipKeyboardNavigationDirective } from './configurator/chip-kb-nav.directive';
22
- import { IconsModule } from '@progress/kendo-angular-icons';
23
- import { CellTemplateDirective } from './rendering/templates/pivotgrid-cell-template.directive';
24
- import { ValueCellTemplateDirective } from './rendering/templates/pivotgrid-value-cell-template.directive';
25
- import { RowHeaderCellTemplateDirective } from './rendering/templates/pivotgrid-row-header-cell-template.directive';
26
- import { ColumnHeaderCellTemplateDirective } from './rendering/templates/pivotgrid-column-header-cell-template.directive';
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 { FormsModule, ReactiveFormsModule } from '@angular/forms';
11
+ import { ResizeBatchService } from '@progress/kendo-angular-common';
27
12
  import * as i0 from "@angular/core";
28
- const IMPORTED_MODULES = [
29
- EventsModule,
30
- IndicatorsModule,
31
- TreeViewModule,
32
- DraggableModule,
33
- ChipMenuModule,
34
- SharedModule,
35
- IconsModule
36
- ];
37
- const DECLARATIONS = [
38
- PivotGridComponent,
39
- PivotGridTableComponent,
40
- PivotGridConfiguratorComponent,
41
- PivotGridCellDirective,
42
- PivotLocalBindingDirective,
43
- PivotOLAPBindingDirective,
44
- DraggableChipDirective,
45
- DropTargetDirective,
46
- LocalizedMessagesDirective,
47
- CustomMessagesComponent,
48
- ChipKeyboardNavigationDirective,
49
- CellTemplateDirective,
50
- ValueCellTemplateDirective,
51
- RowHeaderCellTemplateDirective,
52
- ColumnHeaderCellTemplateDirective
53
- ];
54
- const EXPORTS = [
55
- PivotGridComponent,
56
- PivotGridTableComponent,
57
- PivotGridCellDirective,
58
- PivotLocalBindingDirective,
59
- PivotOLAPBindingDirective,
60
- CustomMessagesComponent,
61
- CellTemplateDirective,
62
- ValueCellTemplateDirective,
63
- RowHeaderCellTemplateDirective,
64
- ColumnHeaderCellTemplateDirective
65
- ];
13
+ import * as i1 from "./configurator/chip-menu/chip-menu-item.component";
14
+ import * as i2 from "./configurator/chip-menu/chip-menu-sort.component";
15
+ import * as i3 from "./configurator/chip-menu/chip-menu.component";
16
+ import * as i4 from "./configurator/chip-menu/chip-menu-filter.component";
17
+ import * as i5 from "./configurator/chip-menu/chip-menu-item-content-template.directive";
18
+ import * as i6 from "./configurator/chip-menu/filtering/filter-menu-container.component";
19
+ import * as i7 from "./configurator/chip-menu/filtering/string-filter-menu.component";
20
+ import * as i8 from "./configurator/chip-menu/filtering/filter-menu-dropdownlist.directive";
21
+ import * as i9 from "./configurator/chip-menu/chip-menu-container.component";
22
+ import * as i10 from "./configurator/chip-menu/chip-menu-item.directive";
23
+ import * as i11 from "./configurator/chip-menu/chip-menu-reorder.component";
24
+ import * as i12 from "./pivotgrid.component";
25
+ import * as i13 from "./rendering/pivotgrid-table.component";
26
+ import * as i14 from "./configurator/configurator.component";
27
+ import * as i15 from "./rendering/pivotgrid-cell.directive";
28
+ import * as i16 from "./data-binding/local-binding.directive";
29
+ import * as i17 from "./data-binding/olap-binding.directive";
30
+ import * as i18 from "./configurator/draggable.directive";
31
+ import * as i19 from "./configurator/drop-target.directive";
32
+ import * as i20 from "./localization/localized-messages.directive";
33
+ import * as i21 from "./localization/custom-messages.component";
34
+ import * as i22 from "./configurator/chip-kb-nav.directive";
35
+ import * as i23 from "./rendering/templates/pivotgrid-cell-template.directive";
36
+ import * as i24 from "./rendering/templates/pivotgrid-value-cell-template.directive";
37
+ import * as i25 from "./rendering/templates/pivotgrid-row-header-cell-template.directive";
38
+ import * as i26 from "./rendering/templates/pivotgrid-column-header-cell-template.directive";
39
+ // IMPORTANT: NgModule export kept for backwards compatibility
66
40
  /**
67
- * Sample module
41
+ * Represents the [NgModule](link:site.data.urls.angular['ngmoduleapi'])
42
+ * definition for the PivotGrid component.
43
+ *
44
+ * @example
45
+ *
46
+ * ```ts-no-run
47
+ * // Import the PivotGrid module
48
+ * import { PivotGrid } from '@progress/kendo-angular-pivotgrid';
49
+ *
50
+ * // The browser platform with a compiler
51
+ * import { platformBrowserDynamic } from '@angular/platform-browser-dynamic';
52
+ *
53
+ * import { NgModule } from '@angular/core';
54
+ *
55
+ * // Import the app component
56
+ * import { AppComponent } from './app.component';
57
+ *
58
+ * // Define the app module
59
+ * _@NgModule({
60
+ * declarations: [AppComponent], // declare app component
61
+ * imports: [BrowserModule, PivotGridModule], // import PivotGrid module
62
+ * bootstrap: [AppComponent]
63
+ * })
64
+ * export class AppModule {}
65
+ *
66
+ * // Compile and launch the module
67
+ * platformBrowserDynamic().bootstrapModule(AppModule);
68
+ *
69
+ * ```
68
70
  */
69
71
  export class PivotGridModule {
70
72
  }
71
73
  PivotGridModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: PivotGridModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
72
- PivotGridModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "15.2.10", ngImport: i0, type: PivotGridModule, declarations: [PivotGridComponent,
73
- PivotGridTableComponent,
74
- PivotGridConfiguratorComponent,
75
- PivotGridCellDirective,
76
- PivotLocalBindingDirective,
77
- PivotOLAPBindingDirective,
78
- DraggableChipDirective,
79
- DropTargetDirective,
80
- LocalizedMessagesDirective,
81
- CustomMessagesComponent,
82
- ChipKeyboardNavigationDirective,
83
- CellTemplateDirective,
84
- ValueCellTemplateDirective,
85
- RowHeaderCellTemplateDirective,
86
- ColumnHeaderCellTemplateDirective], imports: [EventsModule,
87
- IndicatorsModule,
88
- TreeViewModule,
89
- DraggableModule,
90
- ChipMenuModule,
91
- SharedModule,
92
- IconsModule], exports: [PivotGridComponent,
93
- PivotGridTableComponent,
94
- PivotGridCellDirective,
95
- PivotLocalBindingDirective,
96
- PivotOLAPBindingDirective,
97
- CustomMessagesComponent,
98
- CellTemplateDirective,
99
- ValueCellTemplateDirective,
100
- RowHeaderCellTemplateDirective,
101
- ColumnHeaderCellTemplateDirective] });
102
- PivotGridModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: PivotGridModule, imports: [IMPORTED_MODULES] });
74
+ PivotGridModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "15.2.10", 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, FormsModule, ReactiveFormsModule], exports: [i12.PivotGridComponent, i13.PivotGridTableComponent, i15.PivotGridCellDirective, i16.PivotLocalBindingDirective, i17.PivotOLAPBindingDirective, i21.CustomMessagesComponent, i23.CellTemplateDirective, i24.ValueCellTemplateDirective, i25.RowHeaderCellTemplateDirective, i26.ColumnHeaderCellTemplateDirective] });
75
+ PivotGridModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: PivotGridModule, providers: [
76
+ IconsService,
77
+ PopupService,
78
+ ResizeBatchService,
79
+ DialogContainerService,
80
+ DialogService,
81
+ WindowService,
82
+ WindowContainerService
83
+ ], imports: [i1.ChipMenuItemComponent, i2.ChipMenuSortComponent, i3.ChipMenuComponent, i4.ChipMenuFilterComponent, i6.FilterMenuContainerComponent, i7.StringFilterMenuComponent, i9.ChipMenuContainerComponent, i11.ChipMenuReorderComponent, i12.PivotGridComponent, i13.PivotGridTableComponent, i14.PivotGridConfiguratorComponent, i15.PivotGridCellDirective, i21.CustomMessagesComponent, FormsModule, ReactiveFormsModule] });
103
84
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: PivotGridModule, decorators: [{
104
85
  type: NgModule,
105
86
  args: [{
106
- imports: [...IMPORTED_MODULES],
107
- declarations: [...DECLARATIONS],
108
- exports: [...EXPORTS]
87
+ imports: [...KENDO_PIVOTGRID_CHIPMENU_DECLARATIONS, ...KENDO_PIVOTGRID_DECLARATIONS, FormsModule, ReactiveFormsModule],
88
+ exports: [...KENDO_PIVOTGRID],
89
+ providers: [
90
+ IconsService,
91
+ PopupService,
92
+ ResizeBatchService,
93
+ DialogContainerService,
94
+ DialogService,
95
+ WindowService,
96
+ WindowContainerService
97
+ ]
109
98
  }]
110
99
  }] });
@@ -9,12 +9,11 @@ import { CellTemplateDirective } from './templates/pivotgrid-cell-template.direc
9
9
  import { ValueCellTemplateDirective } from './templates/pivotgrid-value-cell-template.directive';
10
10
  import { RowHeaderCellTemplateDirective } from './templates/pivotgrid-row-header-cell-template.directive';
11
11
  import { ColumnHeaderCellTemplateDirective } from './templates/pivotgrid-column-header-cell-template.directive';
12
+ import { NgIf } from '@angular/common';
13
+ import { IconWrapperComponent } from '@progress/kendo-angular-icons';
14
+ import { EventsOutsideAngularDirective, TemplateContextDirective } from '@progress/kendo-angular-common';
12
15
  import * as i0 from "@angular/core";
13
16
  import * as i1 from "../data-binding/pivotgrid-data.service";
14
- import * as i2 from "@progress/kendo-angular-common";
15
- import * as i3 from "@angular/common";
16
- import * as i4 from "@progress/kendo-angular-icons";
17
- import * as i5 from "@progress/kendo-angular-buttons";
18
17
  /**
19
18
  * @hidden
20
19
  */
@@ -62,7 +61,7 @@ export class PivotGridCellDirective {
62
61
  }
63
62
  }
64
63
  PivotGridCellDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: PivotGridCellDirective, deps: [{ token: i0.ElementRef }, { token: i0.Renderer2 }, { token: i1.PivotGridDataService }], target: i0.ɵɵFactoryTarget.Component });
65
- PivotGridCellDirective.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.10", type: PivotGridCellDirective, 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: `
64
+ PivotGridCellDirective.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.10", 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: `
66
65
  <kendo-icon-wrapper
67
66
  *ngIf="kendoPivotGridCell.hasChildren && !kendoPivotGridCell.total"
68
67
  aria-hidden="true"
@@ -73,56 +72,56 @@ PivotGridCellDirective.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0",
73
72
  </kendo-icon-wrapper>
74
73
  <!--value cell template-->
75
74
  <ng-template *ngIf="tableType === 'values' && valueCellTemplate"
76
- [templateContext]="{
77
- templateRef: valueCellTemplate.templateRef,
78
- $implicit: kendoPivotGridCell,
79
- value: kendoPivotGridCell.data ? kendoPivotGridCell.data.fmtValue : kendoPivotGridCell.caption,
80
- rowIndex: rowIndex,
81
- columnIndex: colIndex,
82
- tableType: tableType
83
- }">
75
+ [templateContext]="{
76
+ templateRef: valueCellTemplate.templateRef,
77
+ $implicit: kendoPivotGridCell,
78
+ value: kendoPivotGridCell.data ? kendoPivotGridCell.data.fmtValue : kendoPivotGridCell.caption,
79
+ rowIndex: rowIndex,
80
+ columnIndex: colIndex,
81
+ tableType: tableType
82
+ }">
84
83
  </ng-template>
85
84
  <!--row header cell template-->
86
85
  <ng-template *ngIf="tableType === 'rowHeader' && rowHeaderCellTemplate"
87
- [templateContext]="{
88
- templateRef: rowHeaderCellTemplate.templateRef,
89
- $implicit: kendoPivotGridCell,
90
- text: kendoPivotGridCell.data ? kendoPivotGridCell.data.fmtValue : kendoPivotGridCell.caption,
91
- rowIndex: rowIndex,
92
- columnIndex: colIndex,
93
- tableType: tableType,
94
- expanded: expanded
95
- }">
86
+ [templateContext]="{
87
+ templateRef: rowHeaderCellTemplate.templateRef,
88
+ $implicit: kendoPivotGridCell,
89
+ text: kendoPivotGridCell.data ? kendoPivotGridCell.data.fmtValue : kendoPivotGridCell.caption,
90
+ rowIndex: rowIndex,
91
+ columnIndex: colIndex,
92
+ tableType: tableType,
93
+ expanded: expanded
94
+ }">
96
95
  </ng-template>
97
96
  <!--column header cell template-->
98
97
  <ng-template *ngIf="tableType === 'columnHeader' && columnHeaderCellTemplate"
99
- [templateContext]="{
100
- templateRef: columnHeaderCellTemplate.templateRef,
101
- $implicit: kendoPivotGridCell,
102
- text: kendoPivotGridCell.data ? kendoPivotGridCell.data.fmtValue : kendoPivotGridCell.caption,
103
- rowIndex: rowIndex,
104
- columnIndex: colIndex,
105
- tableType: tableType,
106
- expanded: expanded
107
- }">
98
+ [templateContext]="{
99
+ templateRef: columnHeaderCellTemplate.templateRef,
100
+ $implicit: kendoPivotGridCell,
101
+ text: kendoPivotGridCell.data ? kendoPivotGridCell.data.fmtValue : kendoPivotGridCell.caption,
102
+ rowIndex: rowIndex,
103
+ columnIndex: colIndex,
104
+ tableType: tableType,
105
+ expanded: expanded
106
+ }">
108
107
  </ng-template>
109
108
  <!--cell template-->
110
109
  <ng-template *ngIf="customCellTemplate && isNotProvidedCellTemplatePerType"
111
- [templateContext]="{
112
- templateRef: customCellTemplate.templateRef,
113
- $implicit: kendoPivotGridCell,
114
- text: kendoPivotGridCell.data ? kendoPivotGridCell.data.fmtValue : kendoPivotGridCell.caption,
115
- rowIndex: rowIndex,
116
- columnIndex: colIndex,
117
- tableType: tableType,
118
- expanded: expanded
119
- }">
110
+ [templateContext]="{
111
+ templateRef: customCellTemplate.templateRef,
112
+ $implicit: kendoPivotGridCell,
113
+ text: kendoPivotGridCell.data ? kendoPivotGridCell.data.fmtValue : kendoPivotGridCell.caption,
114
+ rowIndex: rowIndex,
115
+ columnIndex: colIndex,
116
+ tableType: tableType,
117
+ expanded: expanded
118
+ }">
120
119
  </ng-template>
121
120
  <!--default cell content-->
122
121
  <span *ngIf="!customCellTemplate && isNotProvidedCellTemplatePerType">
123
122
  {{ kendoPivotGridCell.data ? kendoPivotGridCell.data.fmtValue : kendoPivotGridCell.caption }}
124
123
  </span>
125
- `, isInline: true, dependencies: [{ kind: "directive", type: i2.EventsOutsideAngularDirective, selector: "[kendoEventsOutsideAngular]", inputs: ["kendoEventsOutsideAngular", "scope"] }, { kind: "directive", type: i3.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "component", type: i4.IconWrapperComponent, selector: "kendo-icon-wrapper", inputs: ["name", "svgIcon", "innerCssClass", "customFontClass", "size"], exportAs: ["kendoIconWrapper"] }, { kind: "directive", type: i5.TemplateContextDirective, selector: "[templateContext]", inputs: ["templateContext"] }] });
124
+ `, isInline: true, dependencies: [{ kind: "directive", type: NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { 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"] }] });
126
125
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: PivotGridCellDirective, decorators: [{
127
126
  type: Component,
128
127
  args: [{
@@ -139,56 +138,58 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImpo
139
138
  </kendo-icon-wrapper>
140
139
  <!--value cell template-->
141
140
  <ng-template *ngIf="tableType === 'values' && valueCellTemplate"
142
- [templateContext]="{
143
- templateRef: valueCellTemplate.templateRef,
144
- $implicit: kendoPivotGridCell,
145
- value: kendoPivotGridCell.data ? kendoPivotGridCell.data.fmtValue : kendoPivotGridCell.caption,
146
- rowIndex: rowIndex,
147
- columnIndex: colIndex,
148
- tableType: tableType
149
- }">
141
+ [templateContext]="{
142
+ templateRef: valueCellTemplate.templateRef,
143
+ $implicit: kendoPivotGridCell,
144
+ value: kendoPivotGridCell.data ? kendoPivotGridCell.data.fmtValue : kendoPivotGridCell.caption,
145
+ rowIndex: rowIndex,
146
+ columnIndex: colIndex,
147
+ tableType: tableType
148
+ }">
150
149
  </ng-template>
151
150
  <!--row header cell template-->
152
151
  <ng-template *ngIf="tableType === 'rowHeader' && rowHeaderCellTemplate"
153
- [templateContext]="{
154
- templateRef: rowHeaderCellTemplate.templateRef,
155
- $implicit: kendoPivotGridCell,
156
- text: kendoPivotGridCell.data ? kendoPivotGridCell.data.fmtValue : kendoPivotGridCell.caption,
157
- rowIndex: rowIndex,
158
- columnIndex: colIndex,
159
- tableType: tableType,
160
- expanded: expanded
161
- }">
152
+ [templateContext]="{
153
+ templateRef: rowHeaderCellTemplate.templateRef,
154
+ $implicit: kendoPivotGridCell,
155
+ text: kendoPivotGridCell.data ? kendoPivotGridCell.data.fmtValue : kendoPivotGridCell.caption,
156
+ rowIndex: rowIndex,
157
+ columnIndex: colIndex,
158
+ tableType: tableType,
159
+ expanded: expanded
160
+ }">
162
161
  </ng-template>
163
162
  <!--column header cell template-->
164
163
  <ng-template *ngIf="tableType === 'columnHeader' && columnHeaderCellTemplate"
165
- [templateContext]="{
166
- templateRef: columnHeaderCellTemplate.templateRef,
167
- $implicit: kendoPivotGridCell,
168
- text: kendoPivotGridCell.data ? kendoPivotGridCell.data.fmtValue : kendoPivotGridCell.caption,
169
- rowIndex: rowIndex,
170
- columnIndex: colIndex,
171
- tableType: tableType,
172
- expanded: expanded
173
- }">
164
+ [templateContext]="{
165
+ templateRef: columnHeaderCellTemplate.templateRef,
166
+ $implicit: kendoPivotGridCell,
167
+ text: kendoPivotGridCell.data ? kendoPivotGridCell.data.fmtValue : kendoPivotGridCell.caption,
168
+ rowIndex: rowIndex,
169
+ columnIndex: colIndex,
170
+ tableType: tableType,
171
+ expanded: expanded
172
+ }">
174
173
  </ng-template>
175
174
  <!--cell template-->
176
175
  <ng-template *ngIf="customCellTemplate && isNotProvidedCellTemplatePerType"
177
- [templateContext]="{
178
- templateRef: customCellTemplate.templateRef,
179
- $implicit: kendoPivotGridCell,
180
- text: kendoPivotGridCell.data ? kendoPivotGridCell.data.fmtValue : kendoPivotGridCell.caption,
181
- rowIndex: rowIndex,
182
- columnIndex: colIndex,
183
- tableType: tableType,
184
- expanded: expanded
185
- }">
176
+ [templateContext]="{
177
+ templateRef: customCellTemplate.templateRef,
178
+ $implicit: kendoPivotGridCell,
179
+ text: kendoPivotGridCell.data ? kendoPivotGridCell.data.fmtValue : kendoPivotGridCell.caption,
180
+ rowIndex: rowIndex,
181
+ columnIndex: colIndex,
182
+ tableType: tableType,
183
+ expanded: expanded
184
+ }">
186
185
  </ng-template>
187
186
  <!--default cell content-->
188
187
  <span *ngIf="!customCellTemplate && isNotProvidedCellTemplatePerType">
189
188
  {{ kendoPivotGridCell.data ? kendoPivotGridCell.data.fmtValue : kendoPivotGridCell.caption }}
190
189
  </span>
191
- `
190
+ `,
191
+ standalone: true,
192
+ imports: [NgIf, IconWrapperComponent, EventsOutsideAngularDirective, TemplateContextDirective]
192
193
  }]
193
194
  }], ctorParameters: function () { return [{ type: i0.ElementRef }, { type: i0.Renderer2 }, { type: i1.PivotGridDataService }]; }, propDecorators: { cellClass: [{
194
195
  type: HostBinding,