@progress/kendo-react-pivotgrid 6.1.1 → 7.0.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.
- package/LICENSE.md +1 -1
- package/{dist/npm/PivotGrid.d.ts → PivotGrid.d.ts} +4 -0
- package/{dist/es/components → components}/AxesEditor.d.ts +4 -6
- package/{dist/npm/components → components}/AxisEditor.d.ts +4 -0
- package/{dist/es/components → components}/AxisFilterFieldsEditor.d.ts +4 -0
- package/{dist/npm/components → components}/Cell.d.ts +4 -0
- package/{dist/es/components → components}/Column.d.ts +4 -0
- package/{dist/npm/components → components}/Configurator.d.ts +4 -0
- package/{dist/npm/components → components}/ConfiguratorButton.d.ts +4 -0
- package/{dist/es/components → components}/ConfiguratorEditor.d.ts +4 -0
- package/{dist/es/components → components}/Container.d.ts +4 -0
- package/components/EditorContext.d.ts +11 -0
- package/{dist/npm/components → components}/FieldsEditor.d.ts +4 -0
- package/{dist/es/components → components}/HeaderCell.d.ts +4 -0
- package/{dist/es/components → components}/Row.d.ts +4 -0
- package/dist/cdn/js/kendo-react-pivotgrid.js +5 -2
- package/hooks/index.d.ts +6 -0
- package/{dist/es/hooks → hooks}/useExpansion.d.ts +5 -1
- package/{dist/es/hooks → hooks}/useHeaders.d.ts +5 -1
- package/hooks/useHorizontalScrollSync.d.ts +9 -0
- package/{dist/es/hooks → hooks}/usePivotConfiguratorEditor.d.ts +5 -1
- package/{dist/npm/hooks → hooks}/usePivotLocalDataService.d.ts +4 -0
- package/{dist/npm/hooks → hooks}/usePivotOLAPService.d.ts +4 -0
- package/hooks/useVerticalScrollSync.d.ts +9 -0
- package/index.d.ts +22 -0
- package/index.js +5 -0
- package/index.mjs +1585 -0
- package/{dist/es/messages → messages}/index.d.ts +4 -0
- package/{dist/es/models → models}/index.d.ts +4 -1
- package/package-metadata.d.ts +9 -0
- package/package.json +36 -54
- package/{dist/es/shared → shared}/PivotGridConfiguratorEditorEventsContext.d.ts +4 -0
- package/{dist/npm/shared → shared}/PivotGridConfiguratorEditorStateContext.d.ts +4 -0
- package/shared/index.d.ts +6 -0
- package/{dist/es/utils → utils}/index.d.ts +4 -0
- package/about.md +0 -3
- package/dist/cdn/js/kendo-react-pivotgrid.js.LICENSE.txt +0 -14
- package/dist/es/PivotGrid.d.ts +0 -177
- package/dist/es/PivotGrid.js +0 -245
- package/dist/es/components/AxesEditor.js +0 -43
- package/dist/es/components/AxisEditor.d.ts +0 -52
- package/dist/es/components/AxisEditor.js +0 -138
- package/dist/es/components/AxisFilterFieldsEditor.js +0 -150
- package/dist/es/components/Cell.d.ts +0 -65
- package/dist/es/components/Cell.js +0 -31
- package/dist/es/components/Column.js +0 -33
- package/dist/es/components/Configurator.d.ts +0 -125
- package/dist/es/components/Configurator.js +0 -118
- package/dist/es/components/ConfiguratorButton.d.ts +0 -40
- package/dist/es/components/ConfiguratorButton.js +0 -39
- package/dist/es/components/ConfiguratorEditor.js +0 -191
- package/dist/es/components/Container.js +0 -22
- package/dist/es/components/FieldsEditor.d.ts +0 -74
- package/dist/es/components/FieldsEditor.js +0 -90
- package/dist/es/components/HeaderCell.js +0 -50
- package/dist/es/components/Row.js +0 -28
- package/dist/es/hooks/index.d.ts +0 -2
- package/dist/es/hooks/index.js +0 -2
- package/dist/es/hooks/useExpansion.js +0 -89
- package/dist/es/hooks/useHeaders.js +0 -25
- package/dist/es/hooks/useHorizontalScrollSync.d.ts +0 -5
- package/dist/es/hooks/useHorizontalScrollSync.js +0 -27
- package/dist/es/hooks/usePivotConfiguratorEditor.js +0 -103
- package/dist/es/hooks/usePivotLocalDataService.d.ts +0 -79
- package/dist/es/hooks/usePivotLocalDataService.js +0 -105
- package/dist/es/hooks/usePivotOLAPService.d.ts +0 -41
- package/dist/es/hooks/usePivotOLAPService.js +0 -371
- package/dist/es/hooks/useVerticalScrollSync.d.ts +0 -5
- package/dist/es/hooks/useVerticalScrollSync.js +0 -27
- package/dist/es/main.d.ts +0 -18
- package/dist/es/main.js +0 -17
- package/dist/es/messages/index.js +0 -71
- package/dist/es/models/index.js +0 -1
- package/dist/es/package-metadata.d.ts +0 -5
- package/dist/es/package-metadata.js +0 -11
- package/dist/es/shared/PivotGridConfiguratorEditorEventsContext.js +0 -5
- package/dist/es/shared/PivotGridConfiguratorEditorStateContext.d.ts +0 -6
- package/dist/es/shared/PivotGridConfiguratorEditorStateContext.js +0 -18
- package/dist/es/shared/index.d.ts +0 -2
- package/dist/es/shared/index.js +0 -2
- package/dist/es/utils/index.js +0 -118
- package/dist/npm/PivotGrid.js +0 -248
- package/dist/npm/components/AxesEditor.d.ts +0 -46
- package/dist/npm/components/AxesEditor.js +0 -46
- package/dist/npm/components/AxisEditor.js +0 -141
- package/dist/npm/components/AxisFilterFieldsEditor.d.ts +0 -114
- package/dist/npm/components/AxisFilterFieldsEditor.js +0 -153
- package/dist/npm/components/Cell.js +0 -34
- package/dist/npm/components/Column.d.ts +0 -42
- package/dist/npm/components/Column.js +0 -36
- package/dist/npm/components/Configurator.js +0 -121
- package/dist/npm/components/ConfiguratorButton.js +0 -42
- package/dist/npm/components/ConfiguratorEditor.d.ts +0 -126
- package/dist/npm/components/ConfiguratorEditor.js +0 -194
- package/dist/npm/components/Container.d.ts +0 -46
- package/dist/npm/components/Container.js +0 -25
- package/dist/npm/components/FieldsEditor.js +0 -93
- package/dist/npm/components/HeaderCell.d.ts +0 -96
- package/dist/npm/components/HeaderCell.js +0 -53
- package/dist/npm/components/Row.d.ts +0 -50
- package/dist/npm/components/Row.js +0 -31
- package/dist/npm/hooks/index.d.ts +0 -2
- package/dist/npm/hooks/index.js +0 -18
- package/dist/npm/hooks/useExpansion.d.ts +0 -19
- package/dist/npm/hooks/useExpansion.js +0 -93
- package/dist/npm/hooks/useHeaders.d.ts +0 -12
- package/dist/npm/hooks/useHeaders.js +0 -30
- package/dist/npm/hooks/useHorizontalScrollSync.d.ts +0 -5
- package/dist/npm/hooks/useHorizontalScrollSync.js +0 -31
- package/dist/npm/hooks/usePivotConfiguratorEditor.d.ts +0 -83
- package/dist/npm/hooks/usePivotConfiguratorEditor.js +0 -107
- package/dist/npm/hooks/usePivotLocalDataService.js +0 -110
- package/dist/npm/hooks/usePivotOLAPService.js +0 -376
- package/dist/npm/hooks/useVerticalScrollSync.d.ts +0 -5
- package/dist/npm/hooks/useVerticalScrollSync.js +0 -31
- package/dist/npm/main.d.ts +0 -18
- package/dist/npm/main.js +0 -43
- package/dist/npm/messages/index.d.ts +0 -70
- package/dist/npm/messages/index.js +0 -74
- package/dist/npm/models/index.d.ts +0 -45
- package/dist/npm/models/index.js +0 -2
- package/dist/npm/package-metadata.d.ts +0 -5
- package/dist/npm/package-metadata.js +0 -14
- package/dist/npm/shared/PivotGridConfiguratorEditorEventsContext.d.ts +0 -13
- package/dist/npm/shared/PivotGridConfiguratorEditorEventsContext.js +0 -8
- package/dist/npm/shared/PivotGridConfiguratorEditorStateContext.js +0 -21
- package/dist/npm/shared/index.d.ts +0 -2
- package/dist/npm/shared/index.js +0 -18
- package/dist/npm/utils/index.d.ts +0 -47
- package/dist/npm/utils/index.js +0 -130
- package/dist/systemjs/kendo-react-pivotgrid.js +0 -1
- package/e2e-next/basic.tests.ts +0 -24
|
@@ -1,376 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
3
|
-
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
4
|
-
return new (P || (P = Promise))(function (resolve, reject) {
|
|
5
|
-
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
6
|
-
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
7
|
-
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
8
|
-
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
9
|
-
});
|
|
10
|
-
};
|
|
11
|
-
var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
12
|
-
var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
|
|
13
|
-
return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
|
|
14
|
-
function verb(n) { return function (v) { return step([n, v]); }; }
|
|
15
|
-
function step(op) {
|
|
16
|
-
if (f) throw new TypeError("Generator is already executing.");
|
|
17
|
-
while (_) try {
|
|
18
|
-
if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
|
|
19
|
-
if (y = 0, t) op = [op[0] & 2, t.value];
|
|
20
|
-
switch (op[0]) {
|
|
21
|
-
case 0: case 1: t = op; break;
|
|
22
|
-
case 4: _.label++; return { value: op[1], done: false };
|
|
23
|
-
case 5: _.label++; y = op[1]; op = [0]; continue;
|
|
24
|
-
case 7: op = _.ops.pop(); _.trys.pop(); continue;
|
|
25
|
-
default:
|
|
26
|
-
if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
|
|
27
|
-
if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
|
|
28
|
-
if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
|
|
29
|
-
if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
|
|
30
|
-
if (t[2]) _.ops.pop();
|
|
31
|
-
_.trys.pop(); continue;
|
|
32
|
-
}
|
|
33
|
-
op = body.call(thisArg, _);
|
|
34
|
-
} catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
|
|
35
|
-
if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
|
|
36
|
-
}
|
|
37
|
-
};
|
|
38
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
39
|
-
exports.PivotOLAPService = exports.usePivotOLAPService = void 0;
|
|
40
|
-
/* eslint-disable max-len */
|
|
41
|
-
var React = require("react");
|
|
42
|
-
var kendo_pivotgrid_common_1 = require("@progress/kendo-pivotgrid-common");
|
|
43
|
-
var kendo_react_common_1 = require("@progress/kendo-react-common");
|
|
44
|
-
;
|
|
45
|
-
/**
|
|
46
|
-
* A [custom React hook](https://reactjs.org/docs/hooks-custom.html) which provides data-binding to an OLAP service.
|
|
47
|
-
*/
|
|
48
|
-
var usePivotOLAPService = function (args) {
|
|
49
|
-
var _a = React.useState(true), loading = _a[0], setLoading = _a[1];
|
|
50
|
-
var _b = React.useState({ data: [], columns: [], rows: [] }), dataState = _b[0], setDataState = _b[1];
|
|
51
|
-
var _c = React.useState([]), fields = _c[0], setFields = _c[1];
|
|
52
|
-
var _d = React.useState(args.defaultColumnAxes || []), columnAxes = _d[0], setColumnAxes = _d[1];
|
|
53
|
-
var _e = React.useState(args.defaultRowAxes || []), rowAxes = _e[0], setRowAxes = _e[1];
|
|
54
|
-
var _f = React.useState(args.defaultMeasureAxes || []), measureAxes = _f[0], setMeasureAxes = _f[1];
|
|
55
|
-
var _g = React.useState(args.defaultSort || []), sort = _g[0], setSort = _g[1];
|
|
56
|
-
var _h = React.useState(args.defaultFilter || []), filter = _h[0], setFilter = _h[1];
|
|
57
|
-
var handleRowAxesChange = function (event) {
|
|
58
|
-
setRowAxes(event.value);
|
|
59
|
-
};
|
|
60
|
-
var handleColumnAxesChange = function (event) {
|
|
61
|
-
setColumnAxes(event.value);
|
|
62
|
-
};
|
|
63
|
-
var handleMeasureAxesChange = function (event) {
|
|
64
|
-
setMeasureAxes(event.value);
|
|
65
|
-
};
|
|
66
|
-
var handleSortChange = function (event) {
|
|
67
|
-
setSort(event.value);
|
|
68
|
-
};
|
|
69
|
-
var handleFilterChange = function (event) {
|
|
70
|
-
setFilter(event.value);
|
|
71
|
-
};
|
|
72
|
-
React.useEffect(function () {
|
|
73
|
-
setLoading(true);
|
|
74
|
-
var options = {
|
|
75
|
-
connection: {
|
|
76
|
-
catalog: args.catalog,
|
|
77
|
-
cube: args.cube
|
|
78
|
-
},
|
|
79
|
-
columnAxes: columnAxes.slice(),
|
|
80
|
-
rowAxes: rowAxes.slice(),
|
|
81
|
-
measureAxes: measureAxes,
|
|
82
|
-
sort: sort,
|
|
83
|
-
filter: filter
|
|
84
|
-
};
|
|
85
|
-
setTimeout(function () {
|
|
86
|
-
(0, kendo_pivotgrid_common_1.fetchData)({ url: args.url }, (0, kendo_react_common_1.clone)(options))
|
|
87
|
-
.then(kendo_pivotgrid_common_1.createDataState)
|
|
88
|
-
.then(function (newDataState) {
|
|
89
|
-
setDataState(newDataState);
|
|
90
|
-
setLoading(false);
|
|
91
|
-
});
|
|
92
|
-
});
|
|
93
|
-
}, [columnAxes, rowAxes, measureAxes, filter, sort, args.cube, args.catalog, args.url]);
|
|
94
|
-
React.useEffect(function () {
|
|
95
|
-
setLoading(true);
|
|
96
|
-
var options = {
|
|
97
|
-
connection: {
|
|
98
|
-
catalog: args.catalog,
|
|
99
|
-
cube: args.cube
|
|
100
|
-
},
|
|
101
|
-
restrictions: {
|
|
102
|
-
catalogName: args.catalog,
|
|
103
|
-
cubeName: args.cube
|
|
104
|
-
},
|
|
105
|
-
command: 'schemaDimensions'
|
|
106
|
-
};
|
|
107
|
-
(0, kendo_pivotgrid_common_1.fetchDiscover)({ url: args.url }, options)
|
|
108
|
-
.then(function (newFields) {
|
|
109
|
-
(0, kendo_pivotgrid_common_1.addKPI)(newFields);
|
|
110
|
-
setFields(newFields);
|
|
111
|
-
setLoading(false);
|
|
112
|
-
});
|
|
113
|
-
}, [args.catalog, args.cube, args.url]);
|
|
114
|
-
var getAxis = function (nodes, target) {
|
|
115
|
-
if (nodes === void 0) { nodes = []; }
|
|
116
|
-
for (var i = 0; i < nodes.length; i++) {
|
|
117
|
-
var node = nodes[i];
|
|
118
|
-
if (String(node.name) === String(target.name)) {
|
|
119
|
-
return node;
|
|
120
|
-
}
|
|
121
|
-
}
|
|
122
|
-
return null;
|
|
123
|
-
};
|
|
124
|
-
var getField = function (nodes, target) {
|
|
125
|
-
if (nodes === void 0) { nodes = []; }
|
|
126
|
-
for (var i = 0; i < nodes.length; i++) {
|
|
127
|
-
var node = nodes[i];
|
|
128
|
-
if (node.uniqueName === target.uniqueName) {
|
|
129
|
-
return node;
|
|
130
|
-
}
|
|
131
|
-
var result = getField(node.children, target);
|
|
132
|
-
if (result !== null) {
|
|
133
|
-
return result;
|
|
134
|
-
}
|
|
135
|
-
}
|
|
136
|
-
return null;
|
|
137
|
-
};
|
|
138
|
-
var loadAxisFields = function (axis) { return __awaiter(void 0, void 0, void 0, function () {
|
|
139
|
-
var command, dimensionUniqueName, hierarchyUniqueName, levelUniqueName, memberUniqueName, treeOp, options;
|
|
140
|
-
return __generator(this, function (_a) {
|
|
141
|
-
if (axis.name) {
|
|
142
|
-
command = 'schemaMembers';
|
|
143
|
-
levelUniqueName = "".concat(String(axis.name), ".[(ALL)]");
|
|
144
|
-
}
|
|
145
|
-
options = {
|
|
146
|
-
connection: {
|
|
147
|
-
catalog: args.catalog,
|
|
148
|
-
cube: args.cube
|
|
149
|
-
},
|
|
150
|
-
restrictions: {
|
|
151
|
-
catalogName: args.catalog,
|
|
152
|
-
cubeName: args.cube,
|
|
153
|
-
hierarchyUniqueName: hierarchyUniqueName,
|
|
154
|
-
dimensionUniqueName: dimensionUniqueName,
|
|
155
|
-
levelUniqueName: levelUniqueName,
|
|
156
|
-
memberUniqueName: memberUniqueName,
|
|
157
|
-
treeOp: treeOp
|
|
158
|
-
},
|
|
159
|
-
command: command
|
|
160
|
-
};
|
|
161
|
-
return [2 /*return*/, (0, kendo_pivotgrid_common_1.fetchDiscover)({ url: args.url }, options)];
|
|
162
|
-
});
|
|
163
|
-
}); };
|
|
164
|
-
var loadSubFields = function (axis) { return __awaiter(void 0, void 0, void 0, function () {
|
|
165
|
-
var command, dimensionUniqueName, hierarchyUniqueName, levelUniqueName, memberUniqueName, treeOp, options;
|
|
166
|
-
return __generator(this, function (_a) {
|
|
167
|
-
if (axis.uniqueName) {
|
|
168
|
-
command = 'schemaMembers';
|
|
169
|
-
memberUniqueName = axis.uniqueName.replace(/\&/g, '&');
|
|
170
|
-
treeOp = 1;
|
|
171
|
-
}
|
|
172
|
-
options = {
|
|
173
|
-
connection: {
|
|
174
|
-
catalog: args.catalog,
|
|
175
|
-
cube: args.cube
|
|
176
|
-
},
|
|
177
|
-
restrictions: {
|
|
178
|
-
catalogName: args.catalog,
|
|
179
|
-
cubeName: args.cube,
|
|
180
|
-
hierarchyUniqueName: hierarchyUniqueName,
|
|
181
|
-
dimensionUniqueName: dimensionUniqueName,
|
|
182
|
-
levelUniqueName: levelUniqueName,
|
|
183
|
-
memberUniqueName: memberUniqueName,
|
|
184
|
-
treeOp: treeOp
|
|
185
|
-
},
|
|
186
|
-
command: command
|
|
187
|
-
};
|
|
188
|
-
return [2 /*return*/, (0, kendo_pivotgrid_common_1.fetchDiscover)({ url: args.url }, options)];
|
|
189
|
-
});
|
|
190
|
-
}); };
|
|
191
|
-
var loadFields = function (field) { return __awaiter(void 0, void 0, void 0, function () {
|
|
192
|
-
var command, dimensionUniqueName, hierarchyUniqueName, levelUniqueName, memberUniqueName, treeOp, options;
|
|
193
|
-
return __generator(this, function (_a) {
|
|
194
|
-
if (field.type === 2) {
|
|
195
|
-
command = 'schemaMeasures';
|
|
196
|
-
}
|
|
197
|
-
else if (field.dimensionUniqueName) {
|
|
198
|
-
command = 'schemaLevels';
|
|
199
|
-
hierarchyUniqueName = field.uniqueName;
|
|
200
|
-
}
|
|
201
|
-
else {
|
|
202
|
-
command = 'schemaHierarchies';
|
|
203
|
-
dimensionUniqueName = field.uniqueName;
|
|
204
|
-
}
|
|
205
|
-
options = {
|
|
206
|
-
connection: {
|
|
207
|
-
catalog: args.catalog,
|
|
208
|
-
cube: args.cube
|
|
209
|
-
},
|
|
210
|
-
restrictions: {
|
|
211
|
-
catalogName: args.catalog,
|
|
212
|
-
cubeName: args.cube,
|
|
213
|
-
hierarchyUniqueName: hierarchyUniqueName,
|
|
214
|
-
dimensionUniqueName: dimensionUniqueName,
|
|
215
|
-
levelUniqueName: levelUniqueName,
|
|
216
|
-
memberUniqueName: memberUniqueName,
|
|
217
|
-
treeOp: treeOp
|
|
218
|
-
},
|
|
219
|
-
command: command
|
|
220
|
-
};
|
|
221
|
-
return [2 /*return*/, (0, kendo_pivotgrid_common_1.fetchDiscover)({ url: args.url }, options)];
|
|
222
|
-
});
|
|
223
|
-
}); };
|
|
224
|
-
var loadKPIs = function () { return __awaiter(void 0, void 0, void 0, function () {
|
|
225
|
-
var options;
|
|
226
|
-
return __generator(this, function (_a) {
|
|
227
|
-
options = {
|
|
228
|
-
connection: {
|
|
229
|
-
catalog: args.catalog,
|
|
230
|
-
cube: args.cube
|
|
231
|
-
},
|
|
232
|
-
restrictions: {
|
|
233
|
-
catalogName: args.catalog,
|
|
234
|
-
cubeName: args.cube
|
|
235
|
-
},
|
|
236
|
-
command: 'schemaKPIs'
|
|
237
|
-
};
|
|
238
|
-
return [2 /*return*/, (0, kendo_pivotgrid_common_1.fetchDiscover)({ url: args.url }, options)];
|
|
239
|
-
});
|
|
240
|
-
}); };
|
|
241
|
-
var handleFieldExpand = function (event) { return __awaiter(void 0, void 0, void 0, function () {
|
|
242
|
-
var newFields, field, KPIs, _a, additionalFields;
|
|
243
|
-
return __generator(this, function (_b) {
|
|
244
|
-
switch (_b.label) {
|
|
245
|
-
case 0:
|
|
246
|
-
newFields = fields.slice();
|
|
247
|
-
field = getField(newFields, event.value);
|
|
248
|
-
if (!(field && field.uniqueName === '[KPIs]')) return [3 /*break*/, 2];
|
|
249
|
-
_a = normalizeKPIs;
|
|
250
|
-
return [4 /*yield*/, loadKPIs()];
|
|
251
|
-
case 1:
|
|
252
|
-
KPIs = _a.apply(void 0, [_b.sent()]);
|
|
253
|
-
field.children = KPIs;
|
|
254
|
-
return [3 /*break*/, 5];
|
|
255
|
-
case 2:
|
|
256
|
-
if (!(field && field.type === 'kpi')) return [3 /*break*/, 3];
|
|
257
|
-
field.children = (0, kendo_pivotgrid_common_1.buildKPIMeasures)(field);
|
|
258
|
-
return [3 /*break*/, 5];
|
|
259
|
-
case 3:
|
|
260
|
-
if (!(field && !field.children)) return [3 /*break*/, 5];
|
|
261
|
-
return [4 /*yield*/, loadFields(field)];
|
|
262
|
-
case 4:
|
|
263
|
-
additionalFields = _b.sent();
|
|
264
|
-
field.children = additionalFields;
|
|
265
|
-
_b.label = 5;
|
|
266
|
-
case 5:
|
|
267
|
-
setFields(newFields);
|
|
268
|
-
return [2 /*return*/];
|
|
269
|
-
}
|
|
270
|
-
});
|
|
271
|
-
}); };
|
|
272
|
-
var handleAxisFilterFieldsExpandChange = function (event) { return __awaiter(void 0, void 0, void 0, function () {
|
|
273
|
-
var map, _a, axes, setter, newAxes, axis, axisFields;
|
|
274
|
-
return __generator(this, function (_b) {
|
|
275
|
-
switch (_b.label) {
|
|
276
|
-
case 0:
|
|
277
|
-
if (!event) {
|
|
278
|
-
return [2 /*return*/];
|
|
279
|
-
}
|
|
280
|
-
map = {
|
|
281
|
-
rowAxes: [rowAxes, setRowAxes],
|
|
282
|
-
columnAxes: [columnAxes, setColumnAxes],
|
|
283
|
-
measureAxes: [measureAxes, setMeasureAxes]
|
|
284
|
-
};
|
|
285
|
-
_a = map[event.target.props.axes], axes = _a[0], setter = _a[1];
|
|
286
|
-
newAxes = axes.slice();
|
|
287
|
-
axis = getAxis(newAxes, event.target.props.dataItem);
|
|
288
|
-
if (!(axis && !axis.fields)) return [3 /*break*/, 2];
|
|
289
|
-
return [4 /*yield*/, loadAxisFields(axis)];
|
|
290
|
-
case 1:
|
|
291
|
-
axisFields = _b.sent();
|
|
292
|
-
axis.fields = axisFields;
|
|
293
|
-
setter(newAxes);
|
|
294
|
-
_b.label = 2;
|
|
295
|
-
case 2: return [2 /*return*/];
|
|
296
|
-
}
|
|
297
|
-
});
|
|
298
|
-
}); };
|
|
299
|
-
var handleAxisFilterFieldExpand = function (event) { return __awaiter(void 0, void 0, void 0, function () {
|
|
300
|
-
var map, _a, axes, setter, newAxes, axis, newFields, field, axisFilterFieldChildren;
|
|
301
|
-
return __generator(this, function (_b) {
|
|
302
|
-
switch (_b.label) {
|
|
303
|
-
case 0:
|
|
304
|
-
if (!event) {
|
|
305
|
-
return [2 /*return*/];
|
|
306
|
-
}
|
|
307
|
-
map = {
|
|
308
|
-
rowAxes: [rowAxes, setRowAxes],
|
|
309
|
-
columnAxes: [columnAxes, setColumnAxes],
|
|
310
|
-
measureAxes: [measureAxes, setMeasureAxes]
|
|
311
|
-
};
|
|
312
|
-
_a = map[event.target.props.axes], axes = _a[0], setter = _a[1];
|
|
313
|
-
newAxes = axes.slice();
|
|
314
|
-
axis = getAxis(newAxes, event.target.props.dataItem);
|
|
315
|
-
if (!axis) return [3 /*break*/, 2];
|
|
316
|
-
newFields = (axis.fields || []).slice();
|
|
317
|
-
field = getField(newFields, event.value);
|
|
318
|
-
if (!(field && (!field.children || !field.children.length))) return [3 /*break*/, 2];
|
|
319
|
-
return [4 /*yield*/, loadSubFields(field)];
|
|
320
|
-
case 1:
|
|
321
|
-
axisFilterFieldChildren = _b.sent();
|
|
322
|
-
field.children = axisFilterFieldChildren;
|
|
323
|
-
axis.fields = newFields;
|
|
324
|
-
setter(newAxes);
|
|
325
|
-
_b.label = 2;
|
|
326
|
-
case 2: return [2 /*return*/];
|
|
327
|
-
}
|
|
328
|
-
});
|
|
329
|
-
}); };
|
|
330
|
-
return {
|
|
331
|
-
pivotProps: {
|
|
332
|
-
rowAxes: rowAxes,
|
|
333
|
-
columnAxes: columnAxes,
|
|
334
|
-
data: dataState.data,
|
|
335
|
-
rows: dataState.rows,
|
|
336
|
-
columns: dataState.columns,
|
|
337
|
-
onRowAxesChange: handleRowAxesChange,
|
|
338
|
-
onColumnAxesChange: handleColumnAxesChange
|
|
339
|
-
},
|
|
340
|
-
configuratorProps: {
|
|
341
|
-
sort: sort,
|
|
342
|
-
onSortChange: handleSortChange,
|
|
343
|
-
filter: filter,
|
|
344
|
-
onFilterChange: handleFilterChange,
|
|
345
|
-
data: fields,
|
|
346
|
-
rowAxes: rowAxes,
|
|
347
|
-
columnAxes: columnAxes,
|
|
348
|
-
measureAxes: measureAxes,
|
|
349
|
-
onRowAxesChange: handleRowAxesChange,
|
|
350
|
-
onColumnAxesChange: handleColumnAxesChange,
|
|
351
|
-
onMeasureAxesChange: handleMeasureAxesChange,
|
|
352
|
-
onFieldsEditorFieldExpand: handleFieldExpand,
|
|
353
|
-
onAxisFilterFieldExpand: handleAxisFilterFieldExpand,
|
|
354
|
-
onAxisFilterFieldsExpandChange: handleAxisFilterFieldsExpandChange
|
|
355
|
-
},
|
|
356
|
-
state: {
|
|
357
|
-
loading: loading
|
|
358
|
-
}
|
|
359
|
-
};
|
|
360
|
-
};
|
|
361
|
-
exports.usePivotOLAPService = usePivotOLAPService;
|
|
362
|
-
/**
|
|
363
|
-
* A [React higher-order component](https://reactjs.org/docs/higher-order-components.html) which provides data-binding to an OLAP service.
|
|
364
|
-
*/
|
|
365
|
-
var PivotOLAPService = function (props) {
|
|
366
|
-
var args = (0, exports.usePivotOLAPService)(props);
|
|
367
|
-
return props.children(args);
|
|
368
|
-
};
|
|
369
|
-
exports.PivotOLAPService = PivotOLAPService;
|
|
370
|
-
var normalizeKPIs = function (data) {
|
|
371
|
-
for (var idx = 0, length_1 = data.length; idx < length_1; idx++) {
|
|
372
|
-
data[idx].uniqueName = data[idx].name;
|
|
373
|
-
data[idx].type = 'kpi';
|
|
374
|
-
}
|
|
375
|
-
return data;
|
|
376
|
-
};
|
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.useVerticalScrollSync = void 0;
|
|
4
|
-
var React = require("react");
|
|
5
|
-
/**
|
|
6
|
-
* @hidden
|
|
7
|
-
*/
|
|
8
|
-
var useVerticalScrollSync = function () {
|
|
9
|
-
var elements = [];
|
|
10
|
-
for (var _i = 0; _i < arguments.length; _i++) {
|
|
11
|
-
elements[_i] = arguments[_i];
|
|
12
|
-
}
|
|
13
|
-
var AF = React.useRef();
|
|
14
|
-
var handleScroll = function (event) {
|
|
15
|
-
if (AF.current !== undefined) {
|
|
16
|
-
window.cancelAnimationFrame(AF.current);
|
|
17
|
-
}
|
|
18
|
-
var target = event.currentTarget;
|
|
19
|
-
var scroll = target.scrollTop;
|
|
20
|
-
elements.forEach(function (elementRef) {
|
|
21
|
-
var element = elementRef.current;
|
|
22
|
-
if (element && element !== target) {
|
|
23
|
-
AF.current = window.requestAnimationFrame(function () {
|
|
24
|
-
element.scrollTop = Math.round(scroll);
|
|
25
|
-
});
|
|
26
|
-
}
|
|
27
|
-
});
|
|
28
|
-
};
|
|
29
|
-
return handleScroll;
|
|
30
|
-
};
|
|
31
|
-
exports.useVerticalScrollSync = useVerticalScrollSync;
|
package/dist/npm/main.d.ts
DELETED
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
export { PivotGrid, PivotGridProps, PivotGridHandle } from './PivotGrid';
|
|
2
|
-
export { PivotGridColumn, PivotGridColumnProps, PivotGridColumnHandle } from './components/Column';
|
|
3
|
-
export { PivotGridRow, PivotGridRowProps, PivotGridRowHandle } from './components/Row';
|
|
4
|
-
export { PivotGridCell, PivotGridCellProps, PivotGridCellHandle } from './components/Cell';
|
|
5
|
-
export { PivotGridHeaderCell, PivotGridHeaderCellProps, PivotGridHeaderCellHandle } from './components/HeaderCell';
|
|
6
|
-
export { PivotGridContainer, PivotGridContainerProps, PivotGridContainerHandle } from './components/Container';
|
|
7
|
-
export { PivotGridConfigurator, PivotGridConfiguratorProps, PivotGridConfiguratorHandle } from './components/Configurator';
|
|
8
|
-
export { PivotGridConfiguratorEditor, PivotGridConfiguratorEditorProps, PivotGridConfiguratorEditorHandle } from './components/ConfiguratorEditor';
|
|
9
|
-
export { PivotGridConfiguratorButton, PivotGridConfiguratorButtonProps, PivotGridConfiguratorButtonHandle } from './components/ConfiguratorButton';
|
|
10
|
-
export { PivotGridFieldsEditor, PivotGridFieldsEditorProps, PivotGridFieldsEditorHandle, PivotGridFieldsEditorFieldExpandEvent, PivotGridFieldsEditorFieldCheckEvent } from './components/FieldsEditor';
|
|
11
|
-
export { PivotGridAxesEditor, PivotGridAxesEditorProps, PivotGridAxesEditorHandle, PivotGridConfiguratorEditorAxesContext } from './components/AxesEditor';
|
|
12
|
-
export { PivotGridAxisEditor, PivotGridAxisEditorProps, PivotGridAxisEditorHandle } from './components/AxisEditor';
|
|
13
|
-
export { PivotGridAxisFilterFieldsEditor, PivotGridAxisFilterFieldsEditorProps, PivotGridAxisFilterFieldsEditorHandle, PivotGridAxisFilterFieldExpandEvent, PivotGridAxisFilterFieldsExpandChangeEvent } from './components/AxisFilterFieldsEditor';
|
|
14
|
-
export { PivotOLAPService, usePivotOLAPService, PivotOLAPServiceArgs, PivotOLAPServiceProps, PivotOLAPServiceState } from './hooks/usePivotOLAPService';
|
|
15
|
-
export { usePivotLocalDataService, PivotLocalDataService, PivotLocalDataServiceArgs, PivotLocalDataServiceProps, PivotLocalDataServiceState } from './hooks/usePivotLocalDataService';
|
|
16
|
-
export { PivotGridTreeViewData, PivotGridAxesChangeEvent, PivotGridConfiguratorAxesChangeEvent, PivotGridConfiguratorSortChangeEvent, PivotGridConfiguratorFilterChangeEvent } from './models';
|
|
17
|
-
export { dataCells } from './utils';
|
|
18
|
-
export { PivotGridAxis, AxisDataItem, AxisRow, DimensionField, HierarchyField, KPIField, KPIMeasureField, LevelField, MeasureField, Member, MemberField, PivotDataItem, Tuple, sumAggregate, averageAggregate, minAggregate, maxAggregate, Aggregate, Dimension, Measure } from '@progress/kendo-pivotgrid-common';
|
package/dist/npm/main.js
DELETED
|
@@ -1,43 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.maxAggregate = exports.minAggregate = exports.averageAggregate = exports.sumAggregate = exports.dataCells = exports.PivotLocalDataService = exports.usePivotLocalDataService = exports.usePivotOLAPService = exports.PivotOLAPService = exports.PivotGridAxisFilterFieldsEditor = exports.PivotGridAxisEditor = exports.PivotGridConfiguratorEditorAxesContext = exports.PivotGridAxesEditor = exports.PivotGridFieldsEditor = exports.PivotGridConfiguratorButton = exports.PivotGridConfiguratorEditor = exports.PivotGridConfigurator = exports.PivotGridContainer = exports.PivotGridHeaderCell = exports.PivotGridCell = exports.PivotGridRow = exports.PivotGridColumn = exports.PivotGrid = void 0;
|
|
4
|
-
var PivotGrid_1 = require("./PivotGrid");
|
|
5
|
-
Object.defineProperty(exports, "PivotGrid", { enumerable: true, get: function () { return PivotGrid_1.PivotGrid; } });
|
|
6
|
-
var Column_1 = require("./components/Column");
|
|
7
|
-
Object.defineProperty(exports, "PivotGridColumn", { enumerable: true, get: function () { return Column_1.PivotGridColumn; } });
|
|
8
|
-
var Row_1 = require("./components/Row");
|
|
9
|
-
Object.defineProperty(exports, "PivotGridRow", { enumerable: true, get: function () { return Row_1.PivotGridRow; } });
|
|
10
|
-
var Cell_1 = require("./components/Cell");
|
|
11
|
-
Object.defineProperty(exports, "PivotGridCell", { enumerable: true, get: function () { return Cell_1.PivotGridCell; } });
|
|
12
|
-
var HeaderCell_1 = require("./components/HeaderCell");
|
|
13
|
-
Object.defineProperty(exports, "PivotGridHeaderCell", { enumerable: true, get: function () { return HeaderCell_1.PivotGridHeaderCell; } });
|
|
14
|
-
var Container_1 = require("./components/Container");
|
|
15
|
-
Object.defineProperty(exports, "PivotGridContainer", { enumerable: true, get: function () { return Container_1.PivotGridContainer; } });
|
|
16
|
-
var Configurator_1 = require("./components/Configurator");
|
|
17
|
-
Object.defineProperty(exports, "PivotGridConfigurator", { enumerable: true, get: function () { return Configurator_1.PivotGridConfigurator; } });
|
|
18
|
-
var ConfiguratorEditor_1 = require("./components/ConfiguratorEditor");
|
|
19
|
-
Object.defineProperty(exports, "PivotGridConfiguratorEditor", { enumerable: true, get: function () { return ConfiguratorEditor_1.PivotGridConfiguratorEditor; } });
|
|
20
|
-
var ConfiguratorButton_1 = require("./components/ConfiguratorButton");
|
|
21
|
-
Object.defineProperty(exports, "PivotGridConfiguratorButton", { enumerable: true, get: function () { return ConfiguratorButton_1.PivotGridConfiguratorButton; } });
|
|
22
|
-
var FieldsEditor_1 = require("./components/FieldsEditor");
|
|
23
|
-
Object.defineProperty(exports, "PivotGridFieldsEditor", { enumerable: true, get: function () { return FieldsEditor_1.PivotGridFieldsEditor; } });
|
|
24
|
-
var AxesEditor_1 = require("./components/AxesEditor");
|
|
25
|
-
Object.defineProperty(exports, "PivotGridAxesEditor", { enumerable: true, get: function () { return AxesEditor_1.PivotGridAxesEditor; } });
|
|
26
|
-
Object.defineProperty(exports, "PivotGridConfiguratorEditorAxesContext", { enumerable: true, get: function () { return AxesEditor_1.PivotGridConfiguratorEditorAxesContext; } });
|
|
27
|
-
var AxisEditor_1 = require("./components/AxisEditor");
|
|
28
|
-
Object.defineProperty(exports, "PivotGridAxisEditor", { enumerable: true, get: function () { return AxisEditor_1.PivotGridAxisEditor; } });
|
|
29
|
-
var AxisFilterFieldsEditor_1 = require("./components/AxisFilterFieldsEditor");
|
|
30
|
-
Object.defineProperty(exports, "PivotGridAxisFilterFieldsEditor", { enumerable: true, get: function () { return AxisFilterFieldsEditor_1.PivotGridAxisFilterFieldsEditor; } });
|
|
31
|
-
var usePivotOLAPService_1 = require("./hooks/usePivotOLAPService");
|
|
32
|
-
Object.defineProperty(exports, "PivotOLAPService", { enumerable: true, get: function () { return usePivotOLAPService_1.PivotOLAPService; } });
|
|
33
|
-
Object.defineProperty(exports, "usePivotOLAPService", { enumerable: true, get: function () { return usePivotOLAPService_1.usePivotOLAPService; } });
|
|
34
|
-
var usePivotLocalDataService_1 = require("./hooks/usePivotLocalDataService");
|
|
35
|
-
Object.defineProperty(exports, "usePivotLocalDataService", { enumerable: true, get: function () { return usePivotLocalDataService_1.usePivotLocalDataService; } });
|
|
36
|
-
Object.defineProperty(exports, "PivotLocalDataService", { enumerable: true, get: function () { return usePivotLocalDataService_1.PivotLocalDataService; } });
|
|
37
|
-
var utils_1 = require("./utils");
|
|
38
|
-
Object.defineProperty(exports, "dataCells", { enumerable: true, get: function () { return utils_1.dataCells; } });
|
|
39
|
-
var kendo_pivotgrid_common_1 = require("@progress/kendo-pivotgrid-common");
|
|
40
|
-
Object.defineProperty(exports, "sumAggregate", { enumerable: true, get: function () { return kendo_pivotgrid_common_1.sumAggregate; } });
|
|
41
|
-
Object.defineProperty(exports, "averageAggregate", { enumerable: true, get: function () { return kendo_pivotgrid_common_1.averageAggregate; } });
|
|
42
|
-
Object.defineProperty(exports, "minAggregate", { enumerable: true, get: function () { return kendo_pivotgrid_common_1.minAggregate; } });
|
|
43
|
-
Object.defineProperty(exports, "maxAggregate", { enumerable: true, get: function () { return kendo_pivotgrid_common_1.maxAggregate; } });
|
|
@@ -1,70 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @hidden
|
|
3
|
-
*/
|
|
4
|
-
export declare const emptyCellAriaLabel = "pivotgrid.emptyCellAriaLabel";
|
|
5
|
-
/**
|
|
6
|
-
* @hidden
|
|
7
|
-
*/
|
|
8
|
-
export declare const fieldMenuReset = "pivotgrid.fieldMenuReset";
|
|
9
|
-
/**
|
|
10
|
-
* @hidden
|
|
11
|
-
*/
|
|
12
|
-
export declare const fieldMenuApply = "pivotgrid.fieldMenuApply";
|
|
13
|
-
/**
|
|
14
|
-
* @hidden
|
|
15
|
-
*/
|
|
16
|
-
export declare const configuratorTitle = "pivotgrid.configuratorTitle";
|
|
17
|
-
/**
|
|
18
|
-
* @hidden
|
|
19
|
-
*/
|
|
20
|
-
export declare const configuratorCancel = "pivotgrid.configuratorCancel";
|
|
21
|
-
/**
|
|
22
|
-
* @hidden
|
|
23
|
-
*/
|
|
24
|
-
export declare const configuratorApply = "pivotgrid.configuratorApply";
|
|
25
|
-
/**
|
|
26
|
-
* @hidden
|
|
27
|
-
*/
|
|
28
|
-
export declare const configuratorColumnsTitle = "pivotgrid.configuratorColumnsTitle";
|
|
29
|
-
/**
|
|
30
|
-
* @hidden
|
|
31
|
-
*/
|
|
32
|
-
export declare const configuratorRowsTitle = "pivotgrid.configuratorRowsTitle";
|
|
33
|
-
/**
|
|
34
|
-
* @hidden
|
|
35
|
-
*/
|
|
36
|
-
export declare const configuratorMeasuresTitle = "pivotgrid.configuratorMeasuresTitle";
|
|
37
|
-
/**
|
|
38
|
-
* @hidden
|
|
39
|
-
*/
|
|
40
|
-
export declare const configuratorEditorSearchTitle = "pivotgrid.configuratorEditorSearchTitle";
|
|
41
|
-
/**
|
|
42
|
-
* @hidden
|
|
43
|
-
*/
|
|
44
|
-
export declare const configuratorEditorSearchPlaceholder = "pivotgrid.configuratorEditorSearchPlaceholder";
|
|
45
|
-
/**
|
|
46
|
-
* @hidden
|
|
47
|
-
*/
|
|
48
|
-
export declare const configuratorMissingFields = "pivotgrid.configuratorMissingFields";
|
|
49
|
-
/**
|
|
50
|
-
* @hidden
|
|
51
|
-
*/
|
|
52
|
-
export declare const configuratorButtonLabel = "pivotgrid.configuratorButtonLabel";
|
|
53
|
-
/**
|
|
54
|
-
* @hidden
|
|
55
|
-
*/
|
|
56
|
-
export declare const messages: {
|
|
57
|
-
"pivotgrid.emptyCellAriaLabel": string;
|
|
58
|
-
"pivotgrid.fieldMenuReset": string;
|
|
59
|
-
"pivotgrid.fieldMenuApply": string;
|
|
60
|
-
"pivotgrid.configuratorCancel": string;
|
|
61
|
-
"pivotgrid.configuratorApply": string;
|
|
62
|
-
"pivotgrid.configuratorTitle": string;
|
|
63
|
-
"pivotgrid.configuratorEditorSearchTitle": string;
|
|
64
|
-
"pivotgrid.configuratorEditorSearchPlaceholder": string;
|
|
65
|
-
"pivotgrid.configuratorColumnsTitle": string;
|
|
66
|
-
"pivotgrid.configuratorRowsTitle": string;
|
|
67
|
-
"pivotgrid.configuratorMeasuresTitle": string;
|
|
68
|
-
"pivotgrid.configuratorButtonLabel": string;
|
|
69
|
-
"pivotgrid.configuratorMissingFields": string;
|
|
70
|
-
};
|
|
@@ -1,74 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var _a;
|
|
3
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
-
exports.messages = exports.configuratorButtonLabel = exports.configuratorMissingFields = exports.configuratorEditorSearchPlaceholder = exports.configuratorEditorSearchTitle = exports.configuratorMeasuresTitle = exports.configuratorRowsTitle = exports.configuratorColumnsTitle = exports.configuratorApply = exports.configuratorCancel = exports.configuratorTitle = exports.fieldMenuApply = exports.fieldMenuReset = exports.emptyCellAriaLabel = void 0;
|
|
5
|
-
/**
|
|
6
|
-
* @hidden
|
|
7
|
-
*/
|
|
8
|
-
exports.emptyCellAriaLabel = 'pivotgrid.emptyCellAriaLabel';
|
|
9
|
-
/**
|
|
10
|
-
* @hidden
|
|
11
|
-
*/
|
|
12
|
-
exports.fieldMenuReset = 'pivotgrid.fieldMenuReset';
|
|
13
|
-
/**
|
|
14
|
-
* @hidden
|
|
15
|
-
*/
|
|
16
|
-
exports.fieldMenuApply = 'pivotgrid.fieldMenuApply';
|
|
17
|
-
/**
|
|
18
|
-
* @hidden
|
|
19
|
-
*/
|
|
20
|
-
exports.configuratorTitle = 'pivotgrid.configuratorTitle';
|
|
21
|
-
/**
|
|
22
|
-
* @hidden
|
|
23
|
-
*/
|
|
24
|
-
exports.configuratorCancel = 'pivotgrid.configuratorCancel';
|
|
25
|
-
/**
|
|
26
|
-
* @hidden
|
|
27
|
-
*/
|
|
28
|
-
exports.configuratorApply = 'pivotgrid.configuratorApply';
|
|
29
|
-
/**
|
|
30
|
-
* @hidden
|
|
31
|
-
*/
|
|
32
|
-
exports.configuratorColumnsTitle = 'pivotgrid.configuratorColumnsTitle';
|
|
33
|
-
/**
|
|
34
|
-
* @hidden
|
|
35
|
-
*/
|
|
36
|
-
exports.configuratorRowsTitle = 'pivotgrid.configuratorRowsTitle';
|
|
37
|
-
/**
|
|
38
|
-
* @hidden
|
|
39
|
-
*/
|
|
40
|
-
exports.configuratorMeasuresTitle = 'pivotgrid.configuratorMeasuresTitle';
|
|
41
|
-
/**
|
|
42
|
-
* @hidden
|
|
43
|
-
*/
|
|
44
|
-
exports.configuratorEditorSearchTitle = 'pivotgrid.configuratorEditorSearchTitle';
|
|
45
|
-
/**
|
|
46
|
-
* @hidden
|
|
47
|
-
*/
|
|
48
|
-
exports.configuratorEditorSearchPlaceholder = 'pivotgrid.configuratorEditorSearchPlaceholder';
|
|
49
|
-
/**
|
|
50
|
-
* @hidden
|
|
51
|
-
*/
|
|
52
|
-
exports.configuratorMissingFields = 'pivotgrid.configuratorMissingFields';
|
|
53
|
-
/**
|
|
54
|
-
* @hidden
|
|
55
|
-
*/
|
|
56
|
-
exports.configuratorButtonLabel = 'pivotgrid.configuratorButtonLabel';
|
|
57
|
-
/**
|
|
58
|
-
* @hidden
|
|
59
|
-
*/
|
|
60
|
-
exports.messages = (_a = {},
|
|
61
|
-
_a[exports.emptyCellAriaLabel] = 'PivotGrid component. Use the arrow keys to navigate.',
|
|
62
|
-
_a[exports.fieldMenuReset] = 'Reset',
|
|
63
|
-
_a[exports.fieldMenuApply] = 'Apply',
|
|
64
|
-
_a[exports.configuratorCancel] = 'Cancel',
|
|
65
|
-
_a[exports.configuratorApply] = 'Apply',
|
|
66
|
-
_a[exports.configuratorTitle] = 'Settings',
|
|
67
|
-
_a[exports.configuratorEditorSearchTitle] = 'Fields',
|
|
68
|
-
_a[exports.configuratorEditorSearchPlaceholder] = 'Search...',
|
|
69
|
-
_a[exports.configuratorColumnsTitle] = 'Columns',
|
|
70
|
-
_a[exports.configuratorRowsTitle] = 'Rows',
|
|
71
|
-
_a[exports.configuratorMeasuresTitle] = 'Values',
|
|
72
|
-
_a[exports.configuratorButtonLabel] = 'Change settings',
|
|
73
|
-
_a[exports.configuratorMissingFields] = 'Select some fields to begin setup',
|
|
74
|
-
_a);
|
|
@@ -1,45 +0,0 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
import { SortDescriptor, FilterDescriptor } from '@progress/kendo-data-query';
|
|
3
|
-
import { PivotGridField, PivotGridAxis } from '@progress/kendo-pivotgrid-common';
|
|
4
|
-
import { PivotGridHandle } from '../PivotGrid';
|
|
5
|
-
import { PivotGridConfiguratorHandle } from '../components/Configurator';
|
|
6
|
-
/**
|
|
7
|
-
* represents the `data` structure of the [TreeView]({% slug api_treeview_treeview %}) component inside the `PivotGrid`.
|
|
8
|
-
*/
|
|
9
|
-
export interface PivotGridTreeViewData {
|
|
10
|
-
checked?: boolean;
|
|
11
|
-
value?: string;
|
|
12
|
-
dataItem?: PivotGridField[];
|
|
13
|
-
}
|
|
14
|
-
/**
|
|
15
|
-
* Represents the event arguments of the [`onColumnAxesChange`]({% slug api_pivotgrid_pivotgridprops %}#toc-oncolumnaxeschange) and [`onRowAxesChange`]({% slug api_pivotgrid_pivotgridprops %}#toc-onrowaxeschange) callbacks of the [`PivotGrid`]({% slug api_pivotgrid_pivotgrid %}) component.
|
|
16
|
-
*/
|
|
17
|
-
export interface PivotGridAxesChangeEvent {
|
|
18
|
-
value: PivotGridAxis[];
|
|
19
|
-
target: PivotGridHandle | null;
|
|
20
|
-
syntheticEvent: React.SyntheticEvent;
|
|
21
|
-
}
|
|
22
|
-
/**
|
|
23
|
-
* Represents the event arguments of the [`onColumnAxesChange`]({% slug api_pivotgrid_pivotgridconfiguratorprops %}#toc-oncolumnaxeschange), [`onRowAxesChange`]({% slug api_pivotgrid_pivotgridconfiguratorprops %}#toc-onrowaxeschange) and [`onMeasureAxesChange`]({% slug api_pivotgrid_pivotgridconfiguratorprops %}#toc-onmeasureaxeschange) callbacks of the [`PivotGridConfigurator`]({% slug api_pivotgrid_pivotgridconfigurator %}) component.
|
|
24
|
-
*/
|
|
25
|
-
export interface PivotGridConfiguratorAxesChangeEvent {
|
|
26
|
-
value: PivotGridAxis[];
|
|
27
|
-
target: PivotGridConfiguratorHandle | null;
|
|
28
|
-
syntheticEvent: React.SyntheticEvent;
|
|
29
|
-
}
|
|
30
|
-
/**
|
|
31
|
-
* Represents the event arguments of the [`onSortChange`]({% slug api_pivotgrid_pivotgridconfiguratorprops %}#toc-onsortchange) callbacks of the [`PivotGridConfigurator`]({% slug api_pivotgrid_pivotgridconfigurator %}) component.
|
|
32
|
-
*/
|
|
33
|
-
export interface PivotGridConfiguratorSortChangeEvent {
|
|
34
|
-
value: SortDescriptor[];
|
|
35
|
-
target: PivotGridConfiguratorHandle | null;
|
|
36
|
-
syntheticEvent: React.SyntheticEvent;
|
|
37
|
-
}
|
|
38
|
-
/**
|
|
39
|
-
* Represents the event arguments of the [`onFilterChange`]({% slug api_pivotgrid_pivotgridconfiguratorprops %}#toc-onfilterchange) callbacks of the [`PivotGridConfigurator`]({% slug api_pivotgrid_pivotgridconfigurator %}) component.
|
|
40
|
-
*/
|
|
41
|
-
export interface PivotGridConfiguratorFilterChangeEvent {
|
|
42
|
-
value: FilterDescriptor[];
|
|
43
|
-
target: PivotGridConfiguratorHandle | null;
|
|
44
|
-
syntheticEvent: React.SyntheticEvent;
|
|
45
|
-
}
|