@dcupl/common 1.1.0 → 1.1.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/lib-cjs/cache.controller.d.ts +9 -0
- package/dist/lib-cjs/cache.controller.js +31 -0
- package/dist/lib-cjs/cache.controller.js.map +1 -0
- package/dist/lib-cjs/index.d.ts +1 -0
- package/dist/lib-cjs/index.js +1 -0
- package/dist/lib-cjs/index.js.map +1 -1
- package/dist/lib-cjs/indices.controller.js +16 -6
- package/dist/lib-cjs/indices.controller.js.map +1 -1
- package/dist/lib-cjs/pivot.d.ts +5 -2
- package/dist/lib-cjs/pivot.js +94 -58
- package/dist/lib-cjs/pivot.js.map +1 -1
- package/dist/lib-esm/cache.controller.d.ts +9 -0
- package/dist/lib-esm/cache.controller.js +25 -0
- package/dist/lib-esm/cache.controller.js.map +1 -0
- package/dist/lib-esm/index.d.ts +1 -0
- package/dist/lib-esm/index.js +1 -0
- package/dist/lib-esm/index.js.map +1 -1
- package/dist/lib-esm/indices.controller.js +16 -6
- package/dist/lib-esm/indices.controller.js.map +1 -1
- package/dist/lib-esm/pivot.d.ts +5 -2
- package/dist/lib-esm/pivot.js +94 -58
- package/dist/lib-esm/pivot.js.map +1 -1
- package/dist/tsconfig-cjs.tsbuildinfo +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +1 -1
package/dist/lib-esm/pivot.js
CHANGED
|
@@ -39,34 +39,63 @@ var __read = (this && this.__read) || function (o, n) {
|
|
|
39
39
|
import { getAggregation } from './getAggregation';
|
|
40
40
|
import { IndicesController } from './indices.controller';
|
|
41
41
|
var pivotPathSeparator = '__';
|
|
42
|
-
export function pivot(relevantData, options, response,
|
|
43
|
-
var e_1, _a;
|
|
44
|
-
var
|
|
42
|
+
export function pivot(relevantData, options, response, parentPath, indicesCtrl) {
|
|
43
|
+
var e_1, _a, e_2, _b, e_3, _c, e_4, _d;
|
|
44
|
+
var _e;
|
|
45
45
|
if (response === void 0) { response = { key: 'root' }; }
|
|
46
|
-
if (paths === void 0) { paths = {}; }
|
|
47
46
|
if (parentPath === void 0) { parentPath = 'root'; }
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
47
|
+
if (indicesCtrl === void 0) { indicesCtrl = new IndicesController(); }
|
|
48
|
+
try {
|
|
49
|
+
for (var _f = __values(options.columns), _g = _f.next(); !_g.done; _g = _f.next()) {
|
|
50
|
+
var column = _g.value;
|
|
51
|
+
if (column.attribute) {
|
|
52
|
+
indicesCtrl.getOrCreateIndex(column.attribute, relevantData);
|
|
53
|
+
}
|
|
52
54
|
}
|
|
53
|
-
}
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
55
|
+
}
|
|
56
|
+
catch (e_1_1) { e_1 = { error: e_1_1 }; }
|
|
57
|
+
finally {
|
|
58
|
+
try {
|
|
59
|
+
if (_g && !_g.done && (_a = _f.return)) _a.call(_f);
|
|
57
60
|
}
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
61
|
+
finally { if (e_1) throw e_1.error; }
|
|
62
|
+
}
|
|
63
|
+
try {
|
|
64
|
+
for (var _h = __values(options.rows), _j = _h.next(); !_j.done; _j = _h.next()) {
|
|
65
|
+
var row = _j.value;
|
|
66
|
+
if (row.attribute) {
|
|
67
|
+
indicesCtrl.getOrCreateIndex(row.attribute, relevantData);
|
|
68
|
+
}
|
|
62
69
|
}
|
|
63
|
-
}
|
|
70
|
+
}
|
|
71
|
+
catch (e_2_1) { e_2 = { error: e_2_1 }; }
|
|
72
|
+
finally {
|
|
73
|
+
try {
|
|
74
|
+
if (_j && !_j.done && (_b = _h.return)) _b.call(_h);
|
|
75
|
+
}
|
|
76
|
+
finally { if (e_2) throw e_2.error; }
|
|
77
|
+
}
|
|
78
|
+
try {
|
|
79
|
+
for (var _k = __values(options.values), _l = _k.next(); !_l.done; _l = _k.next()) {
|
|
80
|
+
var value = _l.value;
|
|
81
|
+
if (value.attribute) {
|
|
82
|
+
indicesCtrl.getOrCreateIndex(value.attribute, relevantData);
|
|
83
|
+
}
|
|
84
|
+
}
|
|
85
|
+
}
|
|
86
|
+
catch (e_3_1) { e_3 = { error: e_3_1 }; }
|
|
87
|
+
finally {
|
|
88
|
+
try {
|
|
89
|
+
if (_l && !_l.done && (_c = _k.return)) _c.call(_k);
|
|
90
|
+
}
|
|
91
|
+
finally { if (e_3) throw e_3.error; }
|
|
92
|
+
}
|
|
64
93
|
/**
|
|
65
94
|
* Rows
|
|
66
95
|
*/
|
|
67
96
|
if (options.rows && options.rows.length > 0) {
|
|
68
97
|
response.rows = response.rows || [];
|
|
69
|
-
var item = getPivotRowItem(relevantData, options.rows[0], options, indicesCtrl,
|
|
98
|
+
var item = getPivotRowItem(relevantData, options.rows[0], options, indicesCtrl, parentPath);
|
|
70
99
|
response.rows.push(item);
|
|
71
100
|
}
|
|
72
101
|
/**
|
|
@@ -74,7 +103,7 @@ export function pivot(relevantData, options, response, paths, parentPath) {
|
|
|
74
103
|
*/
|
|
75
104
|
if (options.columns && options.columns.length > 0) {
|
|
76
105
|
response.columns = response.columns || [];
|
|
77
|
-
var item = getPivotColumnItem(relevantData, options.columns[0], options, indicesCtrl,
|
|
106
|
+
var item = getPivotColumnItem(relevantData, options.columns[0], options, indicesCtrl, parentPath);
|
|
78
107
|
response.columns.push(item);
|
|
79
108
|
}
|
|
80
109
|
/**
|
|
@@ -82,33 +111,34 @@ export function pivot(relevantData, options, response, paths, parentPath) {
|
|
|
82
111
|
*/
|
|
83
112
|
if (response.key === 'root') {
|
|
84
113
|
try {
|
|
85
|
-
for (var
|
|
86
|
-
var value =
|
|
114
|
+
for (var _m = __values(options.values), _o = _m.next(); !_o.done; _o = _m.next()) {
|
|
115
|
+
var value = _o.value;
|
|
87
116
|
response.values = response.values || [];
|
|
117
|
+
if (parentPath === 'root' && ((_e = options.options) === null || _e === void 0 ? void 0 : _e.calculateTotals) === false) {
|
|
118
|
+
continue;
|
|
119
|
+
}
|
|
88
120
|
var agg = getAggregation(value, relevantData, indicesCtrl.getIndex(value.attribute), value.attribute);
|
|
89
|
-
paths[parentPath] = agg;
|
|
90
121
|
response.values.push(agg);
|
|
91
122
|
}
|
|
92
123
|
}
|
|
93
|
-
catch (
|
|
124
|
+
catch (e_4_1) { e_4 = { error: e_4_1 }; }
|
|
94
125
|
finally {
|
|
95
126
|
try {
|
|
96
|
-
if (
|
|
127
|
+
if (_o && !_o.done && (_d = _m.return)) _d.call(_m);
|
|
97
128
|
}
|
|
98
|
-
finally { if (
|
|
129
|
+
finally { if (e_4) throw e_4.error; }
|
|
99
130
|
}
|
|
100
131
|
}
|
|
101
|
-
if ((_b = options.options) === null || _b === void 0 ? void 0 : _b.includePaths) {
|
|
102
|
-
Object.defineProperty(response, 'paths', { enumerable: false, value: paths });
|
|
103
|
-
}
|
|
104
132
|
return response;
|
|
105
133
|
}
|
|
106
|
-
function getPivotRowItem(modelData, options, globalOptions, modelIndexMap,
|
|
107
|
-
var
|
|
108
|
-
if (paths === void 0) { paths = {}; }
|
|
134
|
+
function getPivotRowItem(modelData, options, globalOptions, modelIndexMap, parentPath) {
|
|
135
|
+
var e_5, _a, e_6, _b, e_7, _c, e_8, _d;
|
|
109
136
|
if (parentPath === void 0) { parentPath = ''; }
|
|
110
137
|
var item = { key: options.attribute };
|
|
111
138
|
var indexMap = modelIndexMap.getIndex(options.attribute);
|
|
139
|
+
if (!indexMap) {
|
|
140
|
+
return item;
|
|
141
|
+
}
|
|
112
142
|
try {
|
|
113
143
|
for (var _e = __values(indexMap.entries()), _f = _e.next(); !_f.done; _f = _e.next()) {
|
|
114
144
|
var _g = __read(_f.value, 2), key = _g[0], itemKeys = _g[1];
|
|
@@ -117,7 +147,7 @@ function getPivotRowItem(modelData, options, globalOptions, modelIndexMap, paths
|
|
|
117
147
|
};
|
|
118
148
|
var relevantData = new Map();
|
|
119
149
|
try {
|
|
120
|
-
for (var itemKeys_1 = (
|
|
150
|
+
for (var itemKeys_1 = (e_6 = void 0, __values(itemKeys)), itemKeys_1_1 = itemKeys_1.next(); !itemKeys_1_1.done; itemKeys_1_1 = itemKeys_1.next()) {
|
|
121
151
|
var key_1 = itemKeys_1_1.value;
|
|
122
152
|
if (!modelData.has(key_1)) {
|
|
123
153
|
continue;
|
|
@@ -125,73 +155,77 @@ function getPivotRowItem(modelData, options, globalOptions, modelIndexMap, paths
|
|
|
125
155
|
relevantData.set(key_1, modelData.get(key_1));
|
|
126
156
|
}
|
|
127
157
|
}
|
|
128
|
-
catch (
|
|
158
|
+
catch (e_6_1) { e_6 = { error: e_6_1 }; }
|
|
129
159
|
finally {
|
|
130
160
|
try {
|
|
131
161
|
if (itemKeys_1_1 && !itemKeys_1_1.done && (_b = itemKeys_1.return)) _b.call(itemKeys_1);
|
|
132
162
|
}
|
|
133
|
-
finally { if (
|
|
163
|
+
finally { if (e_6) throw e_6.error; }
|
|
134
164
|
}
|
|
135
165
|
if (!relevantData.size)
|
|
136
166
|
continue;
|
|
137
167
|
try {
|
|
138
|
-
for (var _h = (
|
|
168
|
+
for (var _h = (e_7 = void 0, __values(globalOptions.values)), _j = _h.next(); !_j.done; _j = _h.next()) {
|
|
139
169
|
var value = _j.value;
|
|
140
170
|
rowItem.values = rowItem.values || [];
|
|
171
|
+
if (parentPath === 'root' && (options === null || options === void 0 ? void 0 : options.calculateTotals) === false) {
|
|
172
|
+
continue;
|
|
173
|
+
}
|
|
141
174
|
var agg = getAggregation(value, relevantData, modelIndexMap.getIndex(value.attribute), value.attribute);
|
|
142
|
-
paths[parentPath + pivotPathSeparator + options.attribute + pivotPathSeparator + key] = agg;
|
|
143
175
|
rowItem.values.push(agg);
|
|
144
176
|
}
|
|
145
177
|
}
|
|
146
|
-
catch (
|
|
178
|
+
catch (e_7_1) { e_7 = { error: e_7_1 }; }
|
|
147
179
|
finally {
|
|
148
180
|
try {
|
|
149
181
|
if (_j && !_j.done && (_c = _h.return)) _c.call(_h);
|
|
150
182
|
}
|
|
151
|
-
finally { if (
|
|
183
|
+
finally { if (e_7) throw e_7.error; }
|
|
152
184
|
}
|
|
153
185
|
item.rows = item.rows || [];
|
|
154
186
|
item.rows.push(rowItem);
|
|
155
187
|
if (globalOptions.rows.length > 1) {
|
|
156
188
|
var newOptions = __assign(__assign({}, globalOptions), { rows: globalOptions.rows.slice(1) });
|
|
157
|
-
pivot(relevantData, newOptions, rowItem,
|
|
189
|
+
pivot(relevantData, newOptions, rowItem, parentPath + pivotPathSeparator + options.attribute + pivotPathSeparator + key);
|
|
158
190
|
}
|
|
159
191
|
else {
|
|
160
192
|
if (globalOptions.columns) {
|
|
161
193
|
try {
|
|
162
|
-
for (var _k = (
|
|
194
|
+
for (var _k = (e_8 = void 0, __values(globalOptions.columns)), _l = _k.next(); !_l.done; _l = _k.next()) {
|
|
163
195
|
var columnOption = _l.value;
|
|
164
196
|
rowItem.columns = rowItem.columns || [];
|
|
165
|
-
var columnItem = getPivotColumnItem(relevantData, columnOption, globalOptions, modelIndexMap,
|
|
197
|
+
var columnItem = getPivotColumnItem(relevantData, columnOption, globalOptions, modelIndexMap, parentPath + pivotPathSeparator + options.attribute + pivotPathSeparator + key);
|
|
166
198
|
rowItem.columns.push(columnItem);
|
|
167
199
|
}
|
|
168
200
|
}
|
|
169
|
-
catch (
|
|
201
|
+
catch (e_8_1) { e_8 = { error: e_8_1 }; }
|
|
170
202
|
finally {
|
|
171
203
|
try {
|
|
172
204
|
if (_l && !_l.done && (_d = _k.return)) _d.call(_k);
|
|
173
205
|
}
|
|
174
|
-
finally { if (
|
|
206
|
+
finally { if (e_8) throw e_8.error; }
|
|
175
207
|
}
|
|
176
208
|
}
|
|
177
209
|
}
|
|
178
210
|
}
|
|
179
211
|
}
|
|
180
|
-
catch (
|
|
212
|
+
catch (e_5_1) { e_5 = { error: e_5_1 }; }
|
|
181
213
|
finally {
|
|
182
214
|
try {
|
|
183
215
|
if (_f && !_f.done && (_a = _e.return)) _a.call(_e);
|
|
184
216
|
}
|
|
185
|
-
finally { if (
|
|
217
|
+
finally { if (e_5) throw e_5.error; }
|
|
186
218
|
}
|
|
187
219
|
return item;
|
|
188
220
|
}
|
|
189
|
-
function getPivotColumnItem(modelData, options, globalOptions, modelIndexMap,
|
|
190
|
-
var
|
|
191
|
-
if (paths === void 0) { paths = {}; }
|
|
221
|
+
function getPivotColumnItem(modelData, options, globalOptions, modelIndexMap, parentPath) {
|
|
222
|
+
var e_9, _a, e_10, _b, e_11, _c;
|
|
192
223
|
if (parentPath === void 0) { parentPath = ''; }
|
|
193
224
|
var item = { key: options.attribute };
|
|
194
225
|
var indexMap = modelIndexMap.getIndex(options.attribute);
|
|
226
|
+
if (!indexMap) {
|
|
227
|
+
return item;
|
|
228
|
+
}
|
|
195
229
|
try {
|
|
196
230
|
for (var _d = __values(indexMap.entries()), _e = _d.next(); !_e.done; _e = _d.next()) {
|
|
197
231
|
var _f = __read(_e.value, 2), key = _f[0], itemKeys = _f[1];
|
|
@@ -200,7 +234,7 @@ function getPivotColumnItem(modelData, options, globalOptions, modelIndexMap, pa
|
|
|
200
234
|
};
|
|
201
235
|
var relevantData = new Map();
|
|
202
236
|
try {
|
|
203
|
-
for (var itemKeys_2 = (
|
|
237
|
+
for (var itemKeys_2 = (e_10 = void 0, __values(itemKeys)), itemKeys_2_1 = itemKeys_2.next(); !itemKeys_2_1.done; itemKeys_2_1 = itemKeys_2.next()) {
|
|
204
238
|
var key_2 = itemKeys_2_1.value;
|
|
205
239
|
if (!modelData.has(key_2)) {
|
|
206
240
|
continue;
|
|
@@ -208,45 +242,47 @@ function getPivotColumnItem(modelData, options, globalOptions, modelIndexMap, pa
|
|
|
208
242
|
relevantData.set(key_2, modelData.get(key_2));
|
|
209
243
|
}
|
|
210
244
|
}
|
|
211
|
-
catch (
|
|
245
|
+
catch (e_10_1) { e_10 = { error: e_10_1 }; }
|
|
212
246
|
finally {
|
|
213
247
|
try {
|
|
214
248
|
if (itemKeys_2_1 && !itemKeys_2_1.done && (_b = itemKeys_2.return)) _b.call(itemKeys_2);
|
|
215
249
|
}
|
|
216
|
-
finally { if (
|
|
250
|
+
finally { if (e_10) throw e_10.error; }
|
|
217
251
|
}
|
|
218
252
|
if (!relevantData.size)
|
|
219
253
|
continue;
|
|
220
254
|
try {
|
|
221
|
-
for (var _g = (
|
|
255
|
+
for (var _g = (e_11 = void 0, __values(globalOptions.values)), _h = _g.next(); !_h.done; _h = _g.next()) {
|
|
222
256
|
var value = _h.value;
|
|
223
257
|
rowItem.values = rowItem.values || [];
|
|
258
|
+
if (parentPath === 'root' && (options === null || options === void 0 ? void 0 : options.calculateTotals) === false) {
|
|
259
|
+
continue;
|
|
260
|
+
}
|
|
224
261
|
var agg = getAggregation(value, relevantData, modelIndexMap.getIndex(value.attribute), value.attribute);
|
|
225
|
-
paths[parentPath + pivotPathSeparator + options.attribute + pivotPathSeparator + key] = agg;
|
|
226
262
|
rowItem.values.push(agg);
|
|
227
263
|
}
|
|
228
264
|
}
|
|
229
|
-
catch (
|
|
265
|
+
catch (e_11_1) { e_11 = { error: e_11_1 }; }
|
|
230
266
|
finally {
|
|
231
267
|
try {
|
|
232
268
|
if (_h && !_h.done && (_c = _g.return)) _c.call(_g);
|
|
233
269
|
}
|
|
234
|
-
finally { if (
|
|
270
|
+
finally { if (e_11) throw e_11.error; }
|
|
235
271
|
}
|
|
236
272
|
item.columns = item.columns || [];
|
|
237
273
|
item.columns.push(rowItem);
|
|
238
274
|
if (globalOptions.columns.length > 1) {
|
|
239
275
|
var newOptions = __assign(__assign({}, globalOptions), { columns: globalOptions.columns.slice(1) });
|
|
240
|
-
pivot(relevantData, newOptions, rowItem,
|
|
276
|
+
pivot(relevantData, newOptions, rowItem, parentPath + pivotPathSeparator + options.attribute + pivotPathSeparator + key);
|
|
241
277
|
}
|
|
242
278
|
}
|
|
243
279
|
}
|
|
244
|
-
catch (
|
|
280
|
+
catch (e_9_1) { e_9 = { error: e_9_1 }; }
|
|
245
281
|
finally {
|
|
246
282
|
try {
|
|
247
283
|
if (_e && !_e.done && (_a = _d.return)) _a.call(_d);
|
|
248
284
|
}
|
|
249
|
-
finally { if (
|
|
285
|
+
finally { if (e_9) throw e_9.error; }
|
|
250
286
|
}
|
|
251
287
|
return item;
|
|
252
288
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"pivot.js","sourceRoot":"","sources":["../../src/pivot.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAClD,OAAO,EAAE,iBAAiB,EAAE,MAAM,sBAAsB,CAAC;
|
|
1
|
+
{"version":3,"file":"pivot.js","sourceRoot":"","sources":["../../src/pivot.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAClD,OAAO,EAAE,iBAAiB,EAAE,MAAM,sBAAsB,CAAC;AAiCzD,IAAM,kBAAkB,GAAG,IAAI,CAAC;AAEhC,MAAM,UAAU,KAAK,CACnB,YAAmC,EACnC,OAAqB,EACrB,QAAyC,EACzC,UAAmB,EACnB,WAAqC;;;IAFrC,yBAAA,EAAA,aAA4B,GAAG,EAAE,MAAM,EAAE;IACzC,2BAAA,EAAA,mBAAmB;IACnB,4BAAA,EAAA,kBAAkB,iBAAiB,EAAE;;QAErC,KAAqB,IAAA,KAAA,SAAA,OAAO,CAAC,OAAO,CAAA,gBAAA,4BAAE;YAAjC,IAAM,MAAM,WAAA;YACf,IAAI,MAAM,CAAC,SAAS,EAAE;gBACpB,WAAW,CAAC,gBAAgB,CAAC,MAAM,CAAC,SAAS,EAAE,YAAY,CAAC,CAAC;aAC9D;SACF;;;;;;;;;;QAED,KAAkB,IAAA,KAAA,SAAA,OAAO,CAAC,IAAI,CAAA,gBAAA,4BAAE;YAA3B,IAAM,GAAG,WAAA;YACZ,IAAI,GAAG,CAAC,SAAS,EAAE;gBAC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