@progress/kendo-angular-pivotgrid 17.0.0-develop.4 → 17.0.0-develop.40
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 +6 -4
- 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 +3 -6
- 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 +36 -39
- package/{esm2020 → esm2022}/configurator/chip-menu/chip-menu.service.mjs +12 -10
- package/{esm2020 → esm2022}/configurator/chip-menu/filtering/filter-menu-container.component.mjs +22 -9
- 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 +137 -120
- 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 +101 -76
- package/{esm2020 → esm2022}/pivotgrid.module.mjs +13 -14
- package/{esm2020 → esm2022}/rendering/pivotgrid-cell.directive.mjs +38 -26
- 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 +1169 -679
- 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 +2 -2
- package/esm2020/localization/messages.mjs +0 -87
- package/fesm2015/progress-kendo-angular-pivotgrid.mjs +0 -4947
- /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
@@ -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: [
|
@@ -11,19 +11,20 @@ import * as i1 from "@progress/kendo-angular-l10n";
|
|
11
11
|
* @hidden
|
12
12
|
*/
|
13
13
|
export class LocalizedMessagesDirective extends PivotGridMessages {
|
14
|
+
service;
|
14
15
|
constructor(service) {
|
15
16
|
super();
|
16
17
|
this.service = service;
|
17
18
|
}
|
19
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: LocalizedMessagesDirective, deps: [{ token: i1.LocalizationService }], target: i0.ɵɵFactoryTarget.Directive });
|
20
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.2.12", type: LocalizedMessagesDirective, isStandalone: true, selector: "[kendoPivotGridLocalizedMessages]", providers: [
|
21
|
+
{
|
22
|
+
provide: PivotGridMessages,
|
23
|
+
useExisting: forwardRef(() => LocalizedMessagesDirective)
|
24
|
+
}
|
25
|
+
], usesInheritance: true, ngImport: i0 });
|
18
26
|
}
|
19
|
-
|
20
|
-
LocalizedMessagesDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "15.2.10", type: LocalizedMessagesDirective, isStandalone: true, selector: "[kendoPivotGridLocalizedMessages]", providers: [
|
21
|
-
{
|
22
|
-
provide: PivotGridMessages,
|
23
|
-
useExisting: forwardRef(() => LocalizedMessagesDirective)
|
24
|
-
}
|
25
|
-
], usesInheritance: true, ngImport: i0 });
|
26
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: LocalizedMessagesDirective, decorators: [{
|
27
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: LocalizedMessagesDirective, decorators: [{
|
27
28
|
type: Directive,
|
28
29
|
args: [{
|
29
30
|
providers: [
|