@progress/kendo-angular-pivotgrid 17.0.0-develop.9 → 17.0.0
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/README.md +37 -15
- package/configurator/chip-menu/chip-menu-filter.component.d.ts +1 -1
- package/configurator/chip-menu/chip-menu-item-base.d.ts +1 -1
- package/configurator/chip-menu/chip-menu-item.component.d.ts +1 -1
- package/configurator/chip-menu/chip-menu-item.directive.d.ts +1 -1
- package/configurator/chip-menu/chip-menu-reorder.component.d.ts +1 -1
- package/configurator/chip-menu/chip-menu-sort.component.d.ts +1 -1
- package/configurator/chip-menu/chip-menu.component.d.ts +1 -1
- package/configurator/chip-menu/filtering/filter-menu-container.component.d.ts +1 -1
- package/configurator/chip-menu/filtering/filter-menu-dropdownlist.directive.d.ts +1 -1
- package/configurator/chip-menu/filtering/string-filter-menu.component.d.ts +3 -3
- package/configurator/configurator.component.d.ts +1 -1
- package/configurator/draggable.directive.d.ts +4 -5
- package/configurator/drop-target.directive.d.ts +1 -1
- package/data-binding/base-binding-directive.d.ts +1 -1
- package/data-binding/local-binding.directive.d.ts +1 -1
- package/data-binding/olap-binding.directive.d.ts +1 -1
- package/{esm2020 → esm2022}/configurator/chip-kb-nav.directive.mjs +8 -5
- package/{esm2020 → esm2022}/configurator/chip-menu/chip-menu-container.component.mjs +8 -5
- package/{esm2020 → esm2022}/configurator/chip-menu/chip-menu-filter.component.mjs +25 -19
- package/{esm2020 → esm2022}/configurator/chip-menu/chip-menu-item-base.mjs +9 -6
- package/{esm2020 → esm2022}/configurator/chip-menu/chip-menu-item-content-template.directive.mjs +4 -3
- package/{esm2020 → esm2022}/configurator/chip-menu/chip-menu-item.component.mjs +65 -40
- package/{esm2020 → esm2022}/configurator/chip-menu/chip-menu-item.directive.mjs +35 -28
- package/{esm2020 → esm2022}/configurator/chip-menu/chip-menu-reorder.component.mjs +27 -19
- package/{esm2020 → esm2022}/configurator/chip-menu/chip-menu-sort.component.mjs +10 -6
- package/{esm2020 → esm2022}/configurator/chip-menu/chip-menu.component.mjs +22 -10
- package/{esm2020 → esm2022}/configurator/chip-menu/chip-menu.service.mjs +12 -10
- package/{esm2020 → esm2022}/configurator/chip-menu/filtering/filter-menu-container.component.mjs +21 -8
- package/{esm2020 → esm2022}/configurator/chip-menu/filtering/filter-menu-dropdownlist.directive.mjs +11 -9
- package/{esm2020 → esm2022}/configurator/chip-menu/filtering/menu-tabbing.service.mjs +7 -6
- package/{esm2020 → esm2022}/configurator/chip-menu/filtering/string-filter-menu.component.mjs +25 -15
- package/{esm2020 → esm2022}/configurator/chip-menu/single-popup.service.mjs +21 -10
- package/{esm2020 → esm2022}/configurator/configurator.component.mjs +58 -39
- package/{esm2020 → esm2022}/configurator/configurator.service.mjs +12 -5
- package/{esm2020 → esm2022}/configurator/draggable.directive.mjs +22 -15
- package/{esm2020 → esm2022}/configurator/drop-cue.service.mjs +4 -3
- package/{esm2020 → esm2022}/configurator/drop-target.directive.mjs +15 -4
- package/{esm2020 → esm2022}/data-binding/base-binding-directive.mjs +43 -35
- package/{esm2020 → esm2022}/data-binding/local-binding.directive.mjs +17 -5
- package/{esm2020 → esm2022}/data-binding/olap-binding.directive.mjs +16 -4
- package/{esm2020 → esm2022}/data-binding/pivotgrid-data.service.mjs +25 -14
- package/{esm2020 → esm2022}/localization/custom-messages.component.mjs +9 -8
- package/{esm2020 → esm2022}/localization/localized-messages.directive.mjs +9 -8
- package/esm2022/localization/messages.mjs +284 -0
- package/{esm2020 → esm2022}/localization/pivot-localization.service.mjs +4 -3
- package/{esm2020 → esm2022}/models/configuration-change-event.mjs +20 -0
- package/{esm2020 → esm2022}/models/configurator-settings.mjs +5 -0
- package/{esm2020 → esm2022}/models/expanded-change-event.mjs +12 -0
- package/{esm2020 → esm2022}/package-metadata.mjs +2 -2
- package/{esm2020 → esm2022}/pivotgrid.component.mjs +98 -73
- package/{esm2020 → esm2022}/pivotgrid.module.mjs +13 -14
- package/{esm2020 → esm2022}/rendering/pivotgrid-cell.directive.mjs +30 -19
- package/{esm2020 → esm2022}/rendering/pivotgrid-table.component.mjs +66 -48
- package/{esm2020 → esm2022}/rendering/templates/pivotgrid-cell-template.directive.mjs +4 -3
- package/{esm2020 → esm2022}/rendering/templates/pivotgrid-column-header-cell-template.directive.mjs +4 -3
- package/{esm2020 → esm2022}/rendering/templates/pivotgrid-row-header-cell-template.directive.mjs +4 -3
- package/{esm2020 → esm2022}/rendering/templates/pivotgrid-value-cell-template.directive.mjs +4 -3
- package/{esm2020 → esm2022}/virtual/scroll.service.mjs +5 -6
- package/{esm2020 → esm2022}/virtual/scrollable-container.mjs +57 -43
- package/{fesm2020 → fesm2022}/progress-kendo-angular-pivotgrid.mjs +1067 -560
- package/localization/messages.d.ts +1 -1
- package/models/configurator-chipmenu-reorder-target.d.ts +1 -1
- package/models/configurator-orientation.d.ts +1 -1
- package/models/configurator-position.d.ts +1 -1
- package/models/drop-section.d.ts +1 -1
- package/models/drop-target.d.ts +1 -1
- package/models/expanded-state-action.d.ts +2 -2
- package/models/virtualization-settings.d.ts +1 -1
- package/package.json +22 -28
- package/pivotgrid.component.d.ts +1 -1
- package/pivotgrid.module.d.ts +1 -2
- package/rendering/pivotgrid-cell.directive.d.ts +1 -1
- package/rendering/pivotgrid-table.component.d.ts +1 -1
- package/schematics/ngAdd/index.js +3 -3
- package/esm2020/localization/messages.mjs +0 -87
- package/fesm2015/progress-kendo-angular-pivotgrid.mjs +0 -4928
- /package/{esm2020 → esm2022}/directives.mjs +0 -0
- /package/{esm2020 → esm2022}/index.mjs +0 -0
- /package/{esm2020 → esm2022}/models/configurator-chipmenu-reorder-target.mjs +0 -0
- /package/{esm2020 → esm2022}/models/configurator-orientation.mjs +0 -0
- /package/{esm2020 → esm2022}/models/configurator-position.mjs +0 -0
- /package/{esm2020 → esm2022}/models/data-row-item.mjs +0 -0
- /package/{esm2020 → esm2022}/models/drop-section.mjs +0 -0
- /package/{esm2020 → esm2022}/models/drop-target.mjs +0 -0
- /package/{esm2020 → esm2022}/models/expanded-state-action.mjs +0 -0
- /package/{esm2020 → esm2022}/models/loader-settings.mjs +0 -0
- /package/{esm2020 → esm2022}/models/virtualization-settings.mjs +0 -0
- /package/{esm2020 → esm2022}/progress-kendo-angular-pivotgrid.mjs +0 -0
- /package/{esm2020 → esm2022}/util.mjs +0 -0
@@ -30,44 +30,44 @@ import * as i3 from "./configurator.service";
|
|
30
30
|
* Represents the Kendo UI PivotGrid Configurator component for Angular.
|
31
31
|
*/
|
32
32
|
export class PivotGridConfiguratorComponent {
|
33
|
+
dataService;
|
34
|
+
localization;
|
35
|
+
configuratorService;
|
36
|
+
cdr;
|
37
|
+
zone;
|
38
|
+
hostClass = true;
|
39
|
+
hostAriaRole = 'dialog';
|
40
|
+
get headerTextId() {
|
41
|
+
return `k-pivotgrid-${this.dataService.pivotGridId}-configurator-header`;
|
42
|
+
}
|
43
|
+
orientation = 'vertical';
|
44
|
+
sort = new Array();
|
45
|
+
filter;
|
46
|
+
navigation;
|
47
|
+
close = new EventEmitter();
|
48
|
+
treeView;
|
49
|
+
columnsList;
|
50
|
+
rowsList;
|
51
|
+
originalState;
|
52
|
+
state;
|
53
|
+
fields;
|
54
|
+
checked = [];
|
55
|
+
get isHorizontal() {
|
56
|
+
return this.orientation === 'horizontal';
|
57
|
+
}
|
58
|
+
subs = new Subscription();
|
59
|
+
/**
|
60
|
+
* A function which determines if a specific node has child nodes.
|
61
|
+
*/
|
62
|
+
hasChildren = (node) => !('hierarchyUniqueName' in node) && !('aggregator' in node);
|
33
63
|
constructor(dataService, localization, configuratorService, cdr, zone) {
|
34
64
|
this.dataService = dataService;
|
35
65
|
this.localization = localization;
|
36
66
|
this.configuratorService = configuratorService;
|
37
67
|
this.cdr = cdr;
|
38
68
|
this.zone = zone;
|
39
|
-
this.hostClass = true;
|
40
|
-
this.hostAriaRole = 'dialog';
|
41
|
-
this.orientation = 'vertical';
|
42
|
-
this.sort = new Array();
|
43
|
-
this.close = new EventEmitter();
|
44
|
-
this.checked = [];
|
45
|
-
this.subs = new Subscription();
|
46
|
-
/**
|
47
|
-
* A function which determines if a specific node has child nodes.
|
48
|
-
*/
|
49
|
-
this.hasChildren = (node) => !('hierarchyUniqueName' in node) && !('aggregator' in node);
|
50
|
-
this.checkItemBy = (context) => {
|
51
|
-
return context.dataItem;
|
52
|
-
};
|
53
|
-
/**
|
54
|
-
* A function which provides the child nodes for a given parent node.
|
55
|
-
*/
|
56
|
-
this.children = (node) => {
|
57
|
-
if (this.dataService.directive.type === 'olap') {
|
58
|
-
const observable = from(this.dataService.directive.fetchChildren(node, this.fields));
|
59
|
-
return observable.pipe(mergeMap(value => of(value)));
|
60
|
-
}
|
61
|
-
return of(node.children);
|
62
|
-
};
|
63
69
|
this.configuratorService.configuratorInstance = this;
|
64
70
|
}
|
65
|
-
get headerTextId() {
|
66
|
-
return `k-pivotgrid-${this.dataService.pivotGridId}-configurator-header`;
|
67
|
-
}
|
68
|
-
get isHorizontal() {
|
69
|
-
return this.orientation === 'horizontal';
|
70
|
-
}
|
71
71
|
ngOnInit() {
|
72
72
|
this.subs.add(this.dataService.fields
|
73
73
|
.subscribe(res => {
|
@@ -204,6 +204,9 @@ export class PivotGridConfiguratorComponent {
|
|
204
204
|
].some((h) => (h === f.uniqueName || h === f.defaultHierarchy)));
|
205
205
|
this.checked = checked;
|
206
206
|
}
|
207
|
+
checkItemBy = (context) => {
|
208
|
+
return context.dataItem;
|
209
|
+
};
|
207
210
|
/**
|
208
211
|
* Determines if a checkbox should be rendered.
|
209
212
|
*/
|
@@ -213,6 +216,16 @@ export class PivotGridConfiguratorComponent {
|
|
213
216
|
|| (node.type === 2)
|
214
217
|
|| node.uniqueName === '[KPIs]');
|
215
218
|
}
|
219
|
+
/**
|
220
|
+
* A function which provides the child nodes for a given parent node.
|
221
|
+
*/
|
222
|
+
children = (node) => {
|
223
|
+
if (this.dataService.directive.type === 'olap') {
|
224
|
+
const observable = from(this.dataService.directive.fetchChildren(node, this.fields));
|
225
|
+
return observable.pipe(mergeMap(value => of(value)));
|
226
|
+
}
|
227
|
+
return of(node.children);
|
228
|
+
};
|
216
229
|
/**
|
217
230
|
* Check if the newly loaded child nodes have checked items.
|
218
231
|
* (Only for OLAP data-binding directive)
|
@@ -299,13 +312,12 @@ export class PivotGridConfiguratorComponent {
|
|
299
312
|
this.cdr.detectChanges();
|
300
313
|
this[`${targetCollectionName}sList`]?.chips.last.focus();
|
301
314
|
}
|
302
|
-
}
|
303
|
-
|
304
|
-
|
305
|
-
|
306
|
-
|
307
|
-
|
308
|
-
], viewQueries: [{ propertyName: "treeView", first: true, predicate: TreeViewComponent, descendants: true }, { propertyName: "columnsList", first: true, predicate: ["columnsChiplist"], descendants: true }, { propertyName: "rowsList", first: true, predicate: ["rowsChiplist"], descendants: true }], usesOnChanges: true, ngImport: i0, template: `
|
315
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: PivotGridConfiguratorComponent, deps: [{ token: i1.PivotGridDataService }, { token: i2.LocalizationService }, { token: i3.ConfiguratorService }, { token: i0.ChangeDetectorRef }, { token: i0.NgZone }], target: i0.ɵɵFactoryTarget.Component });
|
316
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.12", type: PivotGridConfiguratorComponent, isStandalone: true, selector: "kendo-pivotgrid-configurator", inputs: { orientation: "orientation", sort: "sort", filter: "filter", navigation: "navigation" }, outputs: { close: "close" }, host: { properties: { "class.k-pivotgrid-configurator": "this.hostClass", "attr.role": "this.hostAriaRole", "attr.aria-labelledby": "this.headerTextId" } }, providers: [
|
317
|
+
ConfiguratorService,
|
318
|
+
DropCueService,
|
319
|
+
SinglePopupService
|
320
|
+
], viewQueries: [{ propertyName: "treeView", first: true, predicate: TreeViewComponent, descendants: true }, { propertyName: "columnsList", first: true, predicate: ["columnsChiplist"], descendants: true }, { propertyName: "rowsList", first: true, predicate: ["rowsChiplist"], descendants: true }], usesOnChanges: true, ngImport: i0, template: `
|
309
321
|
<div
|
310
322
|
class="k-pivotgrid-configurator-panel k-pivotgrid-configurator-push"
|
311
323
|
[ngClass]="{
|
@@ -360,6 +372,7 @@ PivotGridConfiguratorComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "
|
|
360
372
|
|
361
373
|
<kendo-chiplist
|
362
374
|
*ngIf="state.columnAxes && state.columnAxes.length; else noColumnAxes"
|
375
|
+
[navigable]="false"
|
363
376
|
#columnsChiplist
|
364
377
|
kendoDropTarget
|
365
378
|
class="k-column-fields"
|
@@ -403,6 +416,7 @@ PivotGridConfiguratorComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "
|
|
403
416
|
|
404
417
|
<kendo-chiplist
|
405
418
|
*ngIf="state.rowAxes && state.rowAxes.length; else noRowAxes"
|
419
|
+
[navigable]="false"
|
406
420
|
#rowsChiplist
|
407
421
|
kendoDropTarget
|
408
422
|
class="k-row-fields"
|
@@ -452,6 +466,7 @@ PivotGridConfiguratorComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "
|
|
452
466
|
|
453
467
|
<kendo-chiplist
|
454
468
|
*ngIf="state.measureAxes && state.measureAxes.length; else noMeasureAxes"
|
469
|
+
[navigable]="false"
|
455
470
|
kendoDropTarget
|
456
471
|
class="k-filter-fields"
|
457
472
|
axes="measureAxes"
|
@@ -494,8 +509,9 @@ PivotGridConfiguratorComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "
|
|
494
509
|
<button kendoButton themeColor="primary" type="button" (click)="handleSubmit()">{{messageFor('configuratorApplyButtonText')}}</button>
|
495
510
|
</div>
|
496
511
|
</div>
|
497
|
-
`, isInline: true, dependencies: [{ kind: "directive", type: NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: NgStyle, selector: "[ngStyle]", inputs: ["ngStyle"] }, { kind: "component", type: TreeViewComponent, selector: "kendo-treeview", inputs: ["filterInputPlaceholder", "expandDisabledNodes", "animate", "nodeTemplate", "loadMoreButtonTemplate", "trackBy", "nodes", "textField", "hasChildren", "isChecked", "isDisabled", "hasCheckbox", "isExpanded", "isSelected", "isVisible", "navigable", "children", "loadOnDemand", "filterable", "filter", "size", "disableParentNodesOnly"], outputs: ["childrenLoaded", "blur", "focus", "expand", "collapse", "nodeDragStart", "nodeDrag", "filterStateChange", "nodeDrop", "nodeDragEnd", "addItem", "removeItem", "checkedChange", "selectionChange", "filterChange", "nodeClick", "nodeDblClick"], exportAs: ["kendoTreeView"] }, { kind: "directive", type: ExpandDirective, selector: "[kendoTreeViewExpandable]", inputs: ["isExpanded", "expandBy", "expandOnFilter", "expandedKeys"], outputs: ["expandedKeysChange"] }, { kind: "directive", type: CheckDirective, selector: "[kendoTreeViewCheckable]", inputs: ["isChecked", "checkBy", "checkedKeys", "kendoTreeViewCheckable"], outputs: ["checkedKeysChange"] }, { kind: "directive", type: NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "directive", type: DropTargetDirective, selector: "[kendoDropTarget]", inputs: ["item", "axes"] }, { kind: "component", type: ChipListComponent, selector: "kendo-chiplist, kendo-chip-list", inputs: ["selection", "size", "role", "navigable"], outputs: ["selectedChange", "remove"] }, { kind: "directive", type: NgFor, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "component", type: ChipComponent, selector: "kendo-chip", inputs: ["label", "icon", "svgIcon", "iconClass", "
|
498
|
-
|
512
|
+
`, isInline: true, dependencies: [{ kind: "directive", type: NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: NgStyle, selector: "[ngStyle]", inputs: ["ngStyle"] }, { kind: "component", type: TreeViewComponent, selector: "kendo-treeview", inputs: ["filterInputPlaceholder", "expandDisabledNodes", "animate", "nodeTemplate", "loadMoreButtonTemplate", "trackBy", "nodes", "textField", "hasChildren", "isChecked", "isDisabled", "hasCheckbox", "isExpanded", "isSelected", "isVisible", "navigable", "children", "loadOnDemand", "filterable", "filter", "size", "disableParentNodesOnly"], outputs: ["childrenLoaded", "blur", "focus", "expand", "collapse", "nodeDragStart", "nodeDrag", "filterStateChange", "nodeDrop", "nodeDragEnd", "addItem", "removeItem", "checkedChange", "selectionChange", "filterChange", "nodeClick", "nodeDblClick"], exportAs: ["kendoTreeView"] }, { kind: "directive", type: ExpandDirective, selector: "[kendoTreeViewExpandable]", inputs: ["isExpanded", "expandBy", "expandOnFilter", "expandedKeys"], outputs: ["expandedKeysChange"] }, { kind: "directive", type: CheckDirective, selector: "[kendoTreeViewCheckable]", inputs: ["isChecked", "checkBy", "checkedKeys", "kendoTreeViewCheckable"], outputs: ["checkedKeysChange"] }, { kind: "directive", type: NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "directive", type: DropTargetDirective, selector: "[kendoDropTarget]", inputs: ["item", "axes"] }, { kind: "component", type: ChipListComponent, selector: "kendo-chiplist, kendo-chip-list", inputs: ["selection", "size", "role", "navigable"], outputs: ["selectedChange", "remove"] }, { kind: "directive", type: NgFor, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "component", type: ChipComponent, selector: "kendo-chip", inputs: ["label", "icon", "svgIcon", "iconClass", "avatarSettings", "selected", "removable", "removeIcon", "removeSvgIcon", "hasMenu", "menuIcon", "menuSvgIcon", "disabled", "size", "rounded", "fillMode", "themeColor"], outputs: ["remove", "menuToggle", "contentClick"] }, { kind: "directive", type: DraggableChipDirective, selector: "[kendoChipDraggable]", inputs: ["item"] }, { kind: "directive", type: DraggableDirective, selector: "[kendoDraggable]", inputs: ["enableDrag"], outputs: ["kendoPress", "kendoDrag", "kendoRelease"] }, { kind: "directive", type: ChipKeyboardNavigationDirective, selector: "[kendoChipKeyboardNavigation]", outputs: ["reorder"] }, { kind: "component", type: ChipMenuComponent, selector: "kendo-pivot-chip-menu", inputs: ["chip", "tabIndex", "isMeasureField", "anchor"] }, { kind: "component", type: ButtonComponent, selector: "button[kendoButton]", inputs: ["arrowIcon", "toggleable", "togglable", "selected", "tabIndex", "imageUrl", "iconClass", "icon", "disabled", "size", "rounded", "fillMode", "themeColor", "svgIcon", "primary", "look"], outputs: ["selectedChange", "click"], exportAs: ["kendoButton"] }] });
|
513
|
+
}
|
514
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: PivotGridConfiguratorComponent, decorators: [{
|
499
515
|
type: Component,
|
500
516
|
args: [{
|
501
517
|
selector: 'kendo-pivotgrid-configurator',
|
@@ -559,6 +575,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImpo
|
|
559
575
|
|
560
576
|
<kendo-chiplist
|
561
577
|
*ngIf="state.columnAxes && state.columnAxes.length; else noColumnAxes"
|
578
|
+
[navigable]="false"
|
562
579
|
#columnsChiplist
|
563
580
|
kendoDropTarget
|
564
581
|
class="k-column-fields"
|
@@ -602,6 +619,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImpo
|
|
602
619
|
|
603
620
|
<kendo-chiplist
|
604
621
|
*ngIf="state.rowAxes && state.rowAxes.length; else noRowAxes"
|
622
|
+
[navigable]="false"
|
605
623
|
#rowsChiplist
|
606
624
|
kendoDropTarget
|
607
625
|
class="k-row-fields"
|
@@ -651,6 +669,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImpo
|
|
651
669
|
|
652
670
|
<kendo-chiplist
|
653
671
|
*ngIf="state.measureAxes && state.measureAxes.length; else noMeasureAxes"
|
672
|
+
[navigable]="false"
|
654
673
|
kendoDropTarget
|
655
674
|
class="k-filter-fields"
|
656
675
|
axes="measureAxes"
|
@@ -12,10 +12,17 @@ import * as i1 from "../data-binding/pivotgrid-data.service";
|
|
12
12
|
* @hidden
|
13
13
|
*/
|
14
14
|
export class ConfiguratorService {
|
15
|
+
dataService;
|
16
|
+
configuratorInstance;
|
17
|
+
state;
|
18
|
+
draggedElement;
|
19
|
+
dropTargetElement;
|
20
|
+
cueContainer;
|
21
|
+
orientation;
|
22
|
+
configuratorStateChange = new EventEmitter();
|
23
|
+
closeMenu = new EventEmitter();
|
15
24
|
constructor(dataService) {
|
16
25
|
this.dataService = dataService;
|
17
|
-
this.configuratorStateChange = new EventEmitter();
|
18
|
-
this.closeMenu = new EventEmitter();
|
19
26
|
}
|
20
27
|
parseConfiguratorState(action) {
|
21
28
|
const newState = configuratorReducer({
|
@@ -34,10 +41,10 @@ export class ConfiguratorService {
|
|
34
41
|
this.dataService.state = new PivotGridState(this.state.columnAxes, this.state.rowAxes, this.state.measureAxes, this.state.sort, this.state.filter);
|
35
42
|
this.configuratorStateChange.emit(this.state);
|
36
43
|
}
|
44
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: ConfiguratorService, deps: [{ token: i1.PivotGridDataService }], target: i0.ɵɵFactoryTarget.Injectable });
|
45
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: ConfiguratorService });
|
37
46
|
}
|
38
|
-
|
39
|
-
ConfiguratorService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: ConfiguratorService });
|
40
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: ConfiguratorService, decorators: [{
|
47
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: ConfiguratorService, decorators: [{
|
41
48
|
type: Injectable
|
42
49
|
}], ctorParameters: function () { return [{ type: i1.PivotGridDataService }]; }, propDecorators: { configuratorStateChange: [{
|
43
50
|
type: Output
|
@@ -2,7 +2,7 @@
|
|
2
2
|
* Copyright © 2024 Progress Software Corporation. All rights reserved.
|
3
3
|
* Licensed under commercial license. See LICENSE.md in the project root for more information
|
4
4
|
*-------------------------------------------------------------------------------------------*/
|
5
|
-
import { Directive, Input, ElementRef, NgZone, Optional, HostBinding, Renderer2
|
5
|
+
import { Directive, Input, ElementRef, NgZone, Optional, HostBinding, Renderer2 } from '@angular/core';
|
6
6
|
import { DraggableDirective, isDocumentAvailable } from '@progress/kendo-angular-common';
|
7
7
|
import { PIVOT_CONFIGURATOR_ACTION } from '@progress/kendo-pivotgrid-common';
|
8
8
|
import { ConfiguratorService } from './configurator.service';
|
@@ -17,22 +17,29 @@ import * as i3 from "./drop-cue.service";
|
|
17
17
|
* @hidden
|
18
18
|
*/
|
19
19
|
export class DraggableChipDirective {
|
20
|
-
|
20
|
+
draggable;
|
21
|
+
element;
|
22
|
+
zone;
|
23
|
+
service;
|
24
|
+
cue;
|
25
|
+
renderer;
|
26
|
+
get pointerEvents() {
|
27
|
+
return this.drag ? 'none' : undefined;
|
28
|
+
}
|
29
|
+
touchActions = 'none';
|
30
|
+
item;
|
31
|
+
initialX = {};
|
32
|
+
initialY = {};
|
33
|
+
drag;
|
34
|
+
invalidTarget = false;
|
35
|
+
subs = new Subscription();
|
36
|
+
constructor(draggable, element, zone, service, cue, renderer) {
|
21
37
|
this.draggable = draggable;
|
22
38
|
this.element = element;
|
23
39
|
this.zone = zone;
|
24
40
|
this.service = service;
|
25
41
|
this.cue = cue;
|
26
42
|
this.renderer = renderer;
|
27
|
-
this.cdr = cdr;
|
28
|
-
this.touchActions = 'none';
|
29
|
-
this.initialX = {};
|
30
|
-
this.initialY = {};
|
31
|
-
this.invalidTarget = false;
|
32
|
-
this.subs = new Subscription();
|
33
|
-
}
|
34
|
-
get pointerEvents() {
|
35
|
-
return this.drag ? 'none' : undefined;
|
36
43
|
}
|
37
44
|
ngOnInit() {
|
38
45
|
this.subs.add(this.draggable.kendoPress
|
@@ -102,10 +109,10 @@ export class DraggableChipDirective {
|
|
102
109
|
ngOnDestroy() {
|
103
110
|
this.subs.unsubscribe();
|
104
111
|
}
|
112
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: DraggableChipDirective, deps: [{ token: i1.DraggableDirective, optional: true }, { token: i0.ElementRef }, { token: i0.NgZone }, { token: i2.ConfiguratorService }, { token: i3.DropCueService }, { token: i0.Renderer2 }], target: i0.ɵɵFactoryTarget.Directive });
|
113
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.2.12", type: DraggableChipDirective, isStandalone: true, selector: "[kendoChipDraggable]", inputs: { item: "item" }, host: { properties: { "style.pointerEvents": "this.pointerEvents", "style.touch-action": "this.touchActions" } }, ngImport: i0 });
|
105
114
|
}
|
106
|
-
|
107
|
-
DraggableChipDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "15.2.10", type: DraggableChipDirective, isStandalone: true, selector: "[kendoChipDraggable]", inputs: { item: "item" }, host: { properties: { "style.pointerEvents": "this.pointerEvents", "style.touch-action": "this.touchActions" } }, ngImport: i0 });
|
108
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: DraggableChipDirective, decorators: [{
|
115
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: DraggableChipDirective, decorators: [{
|
109
116
|
type: Directive,
|
110
117
|
args: [{
|
111
118
|
selector: '[kendoChipDraggable]',
|
@@ -113,7 +120,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImpo
|
|
113
120
|
}]
|
114
121
|
}], ctorParameters: function () { return [{ type: i1.DraggableDirective, decorators: [{
|
115
122
|
type: Optional
|
116
|
-
}] }, { type: i0.ElementRef }, { type: i0.NgZone }, { type: i2.ConfiguratorService }, { type: i3.DropCueService }, { type: i0.Renderer2 }
|
123
|
+
}] }, { type: i0.ElementRef }, { type: i0.NgZone }, { type: i2.ConfiguratorService }, { type: i3.DropCueService }, { type: i0.Renderer2 }]; }, propDecorators: { pointerEvents: [{
|
117
124
|
type: HostBinding,
|
118
125
|
args: ['style.pointerEvents']
|
119
126
|
}], touchActions: [{
|
@@ -21,6 +21,7 @@ export const append = (element, container) => {
|
|
21
21
|
* @hidden
|
22
22
|
*/
|
23
23
|
export class DropCueService {
|
24
|
+
dom;
|
24
25
|
create() {
|
25
26
|
this.dom = document.createElement('span');
|
26
27
|
const wrapper = document.createElement('div');
|
@@ -64,9 +65,9 @@ export class DropCueService {
|
|
64
65
|
}
|
65
66
|
this.dom.style.display = '';
|
66
67
|
}
|
68
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: DropCueService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
69
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: DropCueService });
|
67
70
|
}
|
68
|
-
|
69
|
-
DropCueService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: DropCueService });
|
70
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: DropCueService, decorators: [{
|
71
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: DropCueService, decorators: [{
|
71
72
|
type: Injectable
|
72
73
|
}] });
|
@@ -15,13 +15,24 @@ import * as i2 from "./drop-cue.service";
|
|
15
15
|
* @hidden
|
16
16
|
*/
|
17
17
|
export class DropTargetDirective {
|
18
|
+
element;
|
19
|
+
configuratorService;
|
20
|
+
cue;
|
21
|
+
renderer;
|
22
|
+
zone;
|
23
|
+
item;
|
24
|
+
axes;
|
25
|
+
elementType;
|
26
|
+
elementSectionType;
|
27
|
+
targetElement;
|
28
|
+
nextChipOffset;
|
29
|
+
subs = new Subscription();
|
18
30
|
constructor(element, configuratorService, cue, renderer, zone) {
|
19
31
|
this.element = element;
|
20
32
|
this.configuratorService = configuratorService;
|
21
33
|
this.cue = cue;
|
22
34
|
this.renderer = renderer;
|
23
35
|
this.zone = zone;
|
24
|
-
this.subs = new Subscription();
|
25
36
|
}
|
26
37
|
ngOnInit() {
|
27
38
|
const element = this.element.nativeElement;
|
@@ -163,10 +174,10 @@ export class DropTargetDirective {
|
|
163
174
|
}
|
164
175
|
}
|
165
176
|
}
|
177
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: DropTargetDirective, deps: [{ token: i0.ElementRef }, { token: i1.ConfiguratorService }, { token: i2.DropCueService }, { token: i0.Renderer2 }, { token: i0.NgZone }], target: i0.ɵɵFactoryTarget.Directive });
|
178
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.2.12", type: DropTargetDirective, isStandalone: true, selector: "[kendoDropTarget]", inputs: { item: "item", axes: "axes" }, ngImport: i0 });
|
166
179
|
}
|
167
|
-
|
168
|
-
DropTargetDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "15.2.10", type: DropTargetDirective, isStandalone: true, selector: "[kendoDropTarget]", inputs: { item: "item", axes: "axes" }, ngImport: i0 });
|
169
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: DropTargetDirective, decorators: [{
|
180
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: DropTargetDirective, decorators: [{
|
170
181
|
type: Directive,
|
171
182
|
args: [{
|
172
183
|
selector: '[kendoDropTarget]',
|
@@ -17,41 +17,49 @@ import * as i1 from "./pivotgrid-data.service";
|
|
17
17
|
* A directive which binds the PivotGrid to an array of objects.
|
18
18
|
*/
|
19
19
|
export class PivotBaseBindingDirective {
|
20
|
+
dataService;
|
21
|
+
zone;
|
22
|
+
/**
|
23
|
+
* Represents the column axes configuration of the PivotGrid.
|
24
|
+
*/
|
25
|
+
columnAxes = [];
|
26
|
+
/**
|
27
|
+
* Represents the row axes configuration of the PivotGrid.
|
28
|
+
*/
|
29
|
+
rowAxes = [];
|
30
|
+
/**
|
31
|
+
* Represents the measure axes configuration of the PivotGrid.
|
32
|
+
*/
|
33
|
+
measureAxes = [];
|
34
|
+
/**
|
35
|
+
* Represents the initial sorted state of the PivotGrid.
|
36
|
+
*/
|
37
|
+
sort = [];
|
38
|
+
/**
|
39
|
+
* Represents the initial filtered state of the PivotGrid.
|
40
|
+
*/
|
41
|
+
filter;
|
42
|
+
/**
|
43
|
+
* Fires each time a row or column header gets expanded or collapsed by the end user. The event is preventable.
|
44
|
+
* If you prevent the event, the PivotGrid will not be rerendered with the new state, resulting from the end user interaction.
|
45
|
+
*/
|
46
|
+
expandChange = new EventEmitter();
|
47
|
+
/**
|
48
|
+
* Fires when the Configurator Apply button is pressed. The event is preventable.
|
49
|
+
* If you prevent the event, the PivotGrid will not be rerendered with the new state, resulting from the configuration changes, applied through the configurator interface.
|
50
|
+
*/
|
51
|
+
configurationChange = new EventEmitter();
|
52
|
+
/**
|
53
|
+
* Fires each time when new data is loaded and transformed to show aggregated values.
|
54
|
+
* The event fires upon initialization and on user interaction that changes the state of the PivotGrid.
|
55
|
+
*/
|
56
|
+
dataLoaded = new EventEmitter();
|
57
|
+
dataState;
|
58
|
+
configuratorFields;
|
59
|
+
subs = new Subscription();
|
20
60
|
constructor(dataService, zone) {
|
21
61
|
this.dataService = dataService;
|
22
62
|
this.zone = zone;
|
23
|
-
/**
|
24
|
-
* Represents the column axes configuration of the PivotGrid.
|
25
|
-
*/
|
26
|
-
this.columnAxes = [];
|
27
|
-
/**
|
28
|
-
* Represents the row axes configuration of the PivotGrid.
|
29
|
-
*/
|
30
|
-
this.rowAxes = [];
|
31
|
-
/**
|
32
|
-
* Represents the measure axes configuration of the PivotGrid.
|
33
|
-
*/
|
34
|
-
this.measureAxes = [];
|
35
|
-
/**
|
36
|
-
* Represents the initial sorted state of the PivotGrid.
|
37
|
-
*/
|
38
|
-
this.sort = [];
|
39
|
-
/**
|
40
|
-
* Fires each time a row or column header gets expanded or collapsed by the end user. The event is preventable.
|
41
|
-
* If you prevent the event, the PivotGrid will not be rerendered with the new state, resulting from the end user interaction.
|
42
|
-
*/
|
43
|
-
this.expandChange = new EventEmitter();
|
44
|
-
/**
|
45
|
-
* Fires when the Configurator Apply button is pressed. The event is preventable.
|
46
|
-
* If you prevent the event, the PivotGrid will not be rerendered with the new state, resulting from the configuration changes, applied through the configurator interface.
|
47
|
-
*/
|
48
|
-
this.configurationChange = new EventEmitter();
|
49
|
-
/**
|
50
|
-
* Fires each time when new data is loaded and transformed to show aggregated values.
|
51
|
-
* The event fires upon initialization and on user interaction that changes the state of the PivotGrid.
|
52
|
-
*/
|
53
|
-
this.dataLoaded = new EventEmitter();
|
54
|
-
this.subs = new Subscription();
|
55
63
|
}
|
56
64
|
ngOnInit() {
|
57
65
|
this.dataService.state = new PivotGridState(this.columnAxes, this.rowAxes, this.measureAxes, this.sort, this.filter);
|
@@ -124,10 +132,10 @@ export class PivotBaseBindingDirective {
|
|
124
132
|
this[axes] = newHeaders;
|
125
133
|
this.loadData(this.dataService.state);
|
126
134
|
}
|
135
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: PivotBaseBindingDirective, deps: [{ token: i1.PivotGridDataService }, { token: i0.NgZone }], target: i0.ɵɵFactoryTarget.Directive });
|
136
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.2.12", type: PivotBaseBindingDirective, selector: "kendo-base-binding-directive", inputs: { columnAxes: "columnAxes", rowAxes: "rowAxes", measureAxes: "measureAxes", sort: "sort", filter: "filter" }, outputs: { expandChange: "expandChange", configurationChange: "configurationChange", dataLoaded: "dataLoaded" }, ngImport: i0 });
|
127
137
|
}
|
128
|
-
|
129
|
-
PivotBaseBindingDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "15.2.10", type: PivotBaseBindingDirective, selector: "kendo-base-binding-directive", inputs: { columnAxes: "columnAxes", rowAxes: "rowAxes", measureAxes: "measureAxes", sort: "sort", filter: "filter" }, outputs: { expandChange: "expandChange", configurationChange: "configurationChange", dataLoaded: "dataLoaded" }, ngImport: i0 });
|
130
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: PivotBaseBindingDirective, decorators: [{
|
138
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: PivotBaseBindingDirective, decorators: [{
|
131
139
|
type: Directive,
|
132
140
|
args: [{
|
133
141
|
selector: 'kendo-base-binding-directive'
|
@@ -17,10 +17,21 @@ const stringSeparator = '&';
|
|
17
17
|
* A directive which binds the PivotGrid to local data ([see example]({% slug directives_databinding_local_pivotgrid %})).
|
18
18
|
*/
|
19
19
|
export class PivotLocalBindingDirective extends PivotBaseBindingDirective {
|
20
|
+
/**
|
21
|
+
* The array of data which will be used to populate the PivotGrid.
|
22
|
+
*/
|
23
|
+
data;
|
24
|
+
/**
|
25
|
+
* Represents the dimensions object of the PivotGrid.
|
26
|
+
*/
|
27
|
+
dimensions;
|
28
|
+
/**
|
29
|
+
* Represents the measures collection of the PivotGrid.
|
30
|
+
*/
|
31
|
+
measures;
|
32
|
+
type = 'local';
|
20
33
|
constructor(dataService, zone) {
|
21
34
|
super(dataService, zone);
|
22
|
-
this.type = 'local';
|
23
|
-
this.createAxisSettings = (key) => ({ key, ...this.dimensions[key] });
|
24
35
|
}
|
25
36
|
ngOnChanges(changes) {
|
26
37
|
if (anyChanged(['data', 'dimensions', 'columnAxes', 'rowAxes', 'measureAxes', 'measures'], changes)) {
|
@@ -57,13 +68,14 @@ export class PivotLocalBindingDirective extends PivotBaseBindingDirective {
|
|
57
68
|
});
|
58
69
|
this.updateDataServiceFields();
|
59
70
|
}
|
71
|
+
createAxisSettings = (key) => ({ key, ...this.dimensions[key] });
|
60
72
|
getRootAxes(axes) {
|
61
73
|
return Array.from(rootFields(axes).keys()).join(stringSeparator);
|
62
74
|
}
|
75
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: PivotLocalBindingDirective, deps: [{ token: i1.PivotGridDataService }, { token: i0.NgZone }], target: i0.ɵɵFactoryTarget.Directive });
|
76
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.2.12", type: PivotLocalBindingDirective, isStandalone: true, selector: "[kendoPivotLocalBinding]", inputs: { data: ["kendoPivotLocalBinding", "data"], dimensions: "dimensions", measures: "measures" }, exportAs: ["kendoPivotLocalBinding"], usesInheritance: true, usesOnChanges: true, ngImport: i0 });
|
63
77
|
}
|
64
|
-
|
65
|
-
PivotLocalBindingDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "15.2.10", type: PivotLocalBindingDirective, isStandalone: true, selector: "[kendoPivotLocalBinding]", inputs: { data: ["kendoPivotLocalBinding", "data"], dimensions: "dimensions", measures: "measures" }, exportAs: ["kendoPivotLocalBinding"], usesInheritance: true, usesOnChanges: true, ngImport: i0 });
|
66
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: PivotLocalBindingDirective, decorators: [{
|
78
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: PivotLocalBindingDirective, decorators: [{
|
67
79
|
type: Directive,
|
68
80
|
args: [{
|
69
81
|
selector: '[kendoPivotLocalBinding]',
|
@@ -14,9 +14,21 @@ import * as i1 from "./pivotgrid-data.service";
|
|
14
14
|
* A directive which binds the PivotGrid to data using an Online Analytical Processing (OLAP) service ([see example]({% slug directives_databinding_remote_pivotgrid %})).
|
15
15
|
*/
|
16
16
|
export class PivotOLAPBindingDirective extends PivotBaseBindingDirective {
|
17
|
+
/**
|
18
|
+
* The OLAP service endpoint where the data is processed and retrieved to render the pivot table.
|
19
|
+
*/
|
20
|
+
url;
|
21
|
+
/**
|
22
|
+
* The cube name that is used to retrieve data for the pivot table rendering.
|
23
|
+
*/
|
24
|
+
cube;
|
25
|
+
/**
|
26
|
+
* The database name that is used to retrieve the data from the specified connection string.
|
27
|
+
*/
|
28
|
+
catalog;
|
29
|
+
type = 'olap';
|
17
30
|
constructor(dataService, zone) {
|
18
31
|
super(dataService, zone);
|
19
|
-
this.type = 'olap';
|
20
32
|
}
|
21
33
|
ngOnChanges(changes) {
|
22
34
|
if (anyChanged(['url', 'cube', 'catalog', 'columnAxes', 'rowAxes', 'measureAxes'], changes)) {
|
@@ -157,10 +169,10 @@ export class PivotOLAPBindingDirective extends PivotBaseBindingDirective {
|
|
157
169
|
};
|
158
170
|
return fetchDiscover({ url: this.url }, options);
|
159
171
|
}
|
172
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: PivotOLAPBindingDirective, deps: [{ token: i1.PivotGridDataService }, { token: i0.NgZone }], target: i0.ɵɵFactoryTarget.Directive });
|
173
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.2.12", type: PivotOLAPBindingDirective, isStandalone: true, selector: "[kendoPivotOLAPBinding]", inputs: { url: "url", cube: "cube", catalog: "catalog" }, exportAs: ["kendoPivotOLAPBinding"], usesInheritance: true, usesOnChanges: true, ngImport: i0 });
|
160
174
|
}
|
161
|
-
|
162
|
-
PivotOLAPBindingDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "15.2.10", type: PivotOLAPBindingDirective, isStandalone: true, selector: "[kendoPivotOLAPBinding]", inputs: { url: "url", cube: "cube", catalog: "catalog" }, exportAs: ["kendoPivotOLAPBinding"], usesInheritance: true, usesOnChanges: true, ngImport: i0 });
|
163
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: PivotOLAPBindingDirective, decorators: [{
|
175
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: PivotOLAPBindingDirective, decorators: [{
|
164
176
|
type: Directive,
|
165
177
|
args: [{
|
166
178
|
selector: '[kendoPivotOLAPBinding]',
|
@@ -16,21 +16,32 @@ let nextPivotGridId = 0;
|
|
16
16
|
* @hidden
|
17
17
|
*/
|
18
18
|
export class PivotGridDataService {
|
19
|
+
ngZone;
|
20
|
+
expandedStateChange = new EventEmitter();
|
21
|
+
configuratorFieldChange = new EventEmitter();
|
22
|
+
expandedFieldChange = new EventEmitter();
|
23
|
+
directive;
|
24
|
+
normalizedData;
|
25
|
+
rows;
|
26
|
+
columns;
|
27
|
+
wrapper;
|
28
|
+
aggregateData;
|
29
|
+
state;
|
30
|
+
columnHeaderLeaves;
|
31
|
+
columnHeaderRows = new BehaviorSubject([]);
|
32
|
+
columnHeaderCols = new BehaviorSubject([]);
|
33
|
+
rowHeaderLeaves;
|
34
|
+
rowHeaderCols = new BehaviorSubject([]);
|
35
|
+
rowHeaderRows = new BehaviorSubject([]);
|
36
|
+
valuesRows = new BehaviorSubject([]);
|
37
|
+
loading = new BehaviorSubject(false);
|
38
|
+
pivotGridId;
|
19
39
|
constructor(ngZone) {
|
20
40
|
this.ngZone = ngZone;
|
21
|
-
this.expandedStateChange = new EventEmitter();
|
22
|
-
this.configuratorFieldChange = new EventEmitter();
|
23
|
-
this.expandedFieldChange = new EventEmitter();
|
24
|
-
this.columnHeaderRows = new BehaviorSubject([]);
|
25
|
-
this.columnHeaderCols = new BehaviorSubject([]);
|
26
|
-
this.rowHeaderCols = new BehaviorSubject([]);
|
27
|
-
this.rowHeaderRows = new BehaviorSubject([]);
|
28
|
-
this.valuesRows = new BehaviorSubject([]);
|
29
|
-
this.loading = new BehaviorSubject(false);
|
30
|
-
this.fields = new BehaviorSubject([]);
|
31
|
-
this.configuredFields = new BehaviorSubject([]);
|
32
41
|
this.pivotGridId = nextPivotGridId++;
|
33
42
|
}
|
43
|
+
fields = new BehaviorSubject([]);
|
44
|
+
configuredFields = new BehaviorSubject([]);
|
34
45
|
updateRowsAndCols() {
|
35
46
|
const rowsTree = toTree((this.rows || []).slice());
|
36
47
|
const [rowHeaderRows, rowHeaderLeaves, rowHeaderDepth, rowHeaderBreadth] = toRows(rowsTree);
|
@@ -51,10 +62,10 @@ export class PivotGridDataService {
|
|
51
62
|
});
|
52
63
|
}
|
53
64
|
}
|
65
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: PivotGridDataService, deps: [{ token: i0.NgZone }], target: i0.ɵɵFactoryTarget.Injectable });
|
66
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: PivotGridDataService });
|
54
67
|
}
|
55
|
-
|
56
|
-
PivotGridDataService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: PivotGridDataService });
|
57
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: PivotGridDataService, decorators: [{
|
68
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: PivotGridDataService, decorators: [{
|
58
69
|
type: Injectable
|
59
70
|
}], ctorParameters: function () { return [{ type: i0.NgZone }]; }, propDecorators: { expandedStateChange: [{
|
60
71
|
type: Output
|
@@ -12,6 +12,7 @@ import * as i1 from "@progress/kendo-angular-l10n";
|
|
12
12
|
* ([see example]({% slug globalization_pivotgrid %}#toc-custom-messages)).
|
13
13
|
*/
|
14
14
|
export class CustomMessagesComponent extends PivotGridMessages {
|
15
|
+
service;
|
15
16
|
constructor(service) {
|
16
17
|
super();
|
17
18
|
this.service = service;
|
@@ -19,15 +20,15 @@ export class CustomMessagesComponent extends PivotGridMessages {
|
|
19
20
|
get override() {
|
20
21
|
return true;
|
21
22
|
}
|
23
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: CustomMessagesComponent, deps: [{ token: i1.LocalizationService }], target: i0.ɵɵFactoryTarget.Component });
|
24
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.12", type: CustomMessagesComponent, isStandalone: true, selector: "kendo-pivotgrid-messages", providers: [
|
25
|
+
{
|
26
|
+
provide: PivotGridMessages,
|
27
|
+
useExisting: forwardRef(() => CustomMessagesComponent)
|
28
|
+
}
|
29
|
+
], usesInheritance: true, ngImport: i0, template: ``, isInline: true });
|
22
30
|
}
|
23
|
-
|
24
|
-
CustomMessagesComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.10", type: CustomMessagesComponent, isStandalone: true, selector: "kendo-pivotgrid-messages", providers: [
|
25
|
-
{
|
26
|
-
provide: PivotGridMessages,
|
27
|
-
useExisting: forwardRef(() => CustomMessagesComponent)
|
28
|
-
}
|
29
|
-
], usesInheritance: true, ngImport: i0, template: ``, isInline: true });
|
30
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: CustomMessagesComponent, decorators: [{
|
31
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: CustomMessagesComponent, decorators: [{
|
31
32
|
type: Component,
|
32
33
|
args: [{
|
33
34
|
providers: [
|