@sisense/sdk-ui-vue 1.33.0 → 2.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/dist/ai.cjs +141 -29
- package/dist/ai.js +1088 -899
- package/dist/index.cjs +1 -1
- package/dist/index.js +1432 -1185
- package/dist/packages/sdk-ui-vue/src/ai/components/chatbot.d.ts +0 -5
- package/dist/packages/sdk-ui-vue/src/ai/components/get-nlg-insights.d.ts +10 -9
- package/dist/packages/sdk-ui-vue/src/ai/composables/use-get-nlg-insights.d.ts +0 -5
- package/dist/packages/sdk-ui-vue/src/ai/composables/use-get-nlq-result.d.ts +7 -5
- package/dist/packages/sdk-ui-vue/src/ai/composables/use-get-query-recommendations.d.ts +17 -6
- package/dist/packages/sdk-ui-vue/src/ai/helpers/context-connectors/ai-context-connector.d.ts +7 -0
- package/dist/packages/sdk-ui-vue/src/ai/helpers/context-connectors/index.d.ts +1 -0
- package/dist/packages/sdk-ui-vue/src/ai/providers/{ai-context-provider.d.ts → ai-context-provider/ai-context-provider.d.ts} +1 -20
- package/dist/packages/sdk-ui-vue/src/ai/providers/ai-context-provider/ai-context.d.ts +9 -0
- package/dist/packages/sdk-ui-vue/src/ai/providers/ai-context-provider/index.d.ts +2 -0
- package/dist/packages/sdk-ui-vue/src/ai/sdk-ui-core-exports.d.ts +1 -1
- package/dist/packages/sdk-ui-vue/src/components/charts/area-chart.d.ts +10 -6
- package/dist/packages/sdk-ui-vue/src/components/charts/area-range-chart.d.ts +10 -7
- package/dist/packages/sdk-ui-vue/src/components/charts/areamap-chart.d.ts +10 -6
- package/dist/packages/sdk-ui-vue/src/components/charts/bar-chart.d.ts +10 -6
- package/dist/packages/sdk-ui-vue/src/components/charts/boxplot-chart.d.ts +10 -6
- package/dist/packages/sdk-ui-vue/src/components/charts/chart.d.ts +18 -8
- package/dist/packages/sdk-ui-vue/src/components/charts/column-chart.d.ts +10 -6
- package/dist/packages/sdk-ui-vue/src/components/charts/funnel-chart.d.ts +10 -6
- package/dist/packages/sdk-ui-vue/src/components/charts/indicator-chart.d.ts +10 -6
- package/dist/packages/sdk-ui-vue/src/components/charts/line-chart.d.ts +10 -6
- package/dist/packages/sdk-ui-vue/src/components/charts/pie-chart.d.ts +10 -6
- package/dist/packages/sdk-ui-vue/src/components/charts/pivot-table.d.ts +10 -4
- package/dist/packages/sdk-ui-vue/src/components/charts/polar-chart.d.ts +10 -6
- package/dist/packages/sdk-ui-vue/src/components/charts/scatter-chart.d.ts +10 -6
- package/dist/packages/sdk-ui-vue/src/components/charts/scattermap-chart.d.ts +12 -8
- package/dist/packages/sdk-ui-vue/src/components/charts/sunburst-chart.d.ts +10 -6
- package/dist/packages/sdk-ui-vue/src/components/charts/table.d.ts +22 -4
- package/dist/packages/sdk-ui-vue/src/components/charts/treemap-chart.d.ts +10 -6
- package/dist/packages/sdk-ui-vue/src/components/context-menu.d.ts +8 -2
- package/dist/packages/sdk-ui-vue/src/components/dashboard/dashboard-by-id.d.ts +8 -2
- package/dist/packages/sdk-ui-vue/src/components/dashboard/dashboard.d.ts +16 -5
- package/dist/packages/sdk-ui-vue/src/components/drilldown-breadcrumbs.d.ts +32 -8
- package/dist/packages/sdk-ui-vue/src/components/drilldown-widget.d.ts +0 -25
- package/dist/packages/sdk-ui-vue/src/components/filters/criteria-filter-tile.d.ts +24 -6
- package/dist/packages/sdk-ui-vue/src/components/filters/date-range-filter-tile.d.ts +32 -8
- package/dist/packages/sdk-ui-vue/src/components/filters/filter-tile.d.ts +94 -0
- package/dist/packages/sdk-ui-vue/src/components/filters/index.d.ts +1 -0
- package/dist/packages/sdk-ui-vue/src/components/filters/member-filter-tile.d.ts +32 -8
- package/dist/packages/sdk-ui-vue/src/components/filters/relative-date-filter-tile.d.ts +26 -8
- package/dist/packages/sdk-ui-vue/src/components/widgets/chart-widget.d.ts +32 -8
- package/dist/packages/sdk-ui-vue/src/components/widgets/index.d.ts +1 -1
- package/dist/packages/sdk-ui-vue/src/components/widgets/table-widget.d.ts +25 -19
- package/dist/packages/sdk-ui-vue/src/components/widgets/widget-by-id.d.ts +28 -4
- package/dist/packages/sdk-ui-vue/src/components/widgets/widget.d.ts +298 -0
- package/dist/packages/sdk-ui-vue/src/composables/index.d.ts +2 -0
- package/dist/packages/sdk-ui-vue/src/composables/use-composed-dashboard.d.ts +40 -0
- package/dist/packages/sdk-ui-vue/src/composables/use-execute-csv-query.d.ts +43 -0
- package/dist/packages/sdk-ui-vue/src/composables/use-plugins.d.ts +1 -5
- package/dist/packages/sdk-ui-vue/src/helpers/context-connectors/index.d.ts +3 -0
- package/dist/packages/sdk-ui-vue/src/helpers/context-connectors/plugins-context-connector.d.ts +8 -0
- package/dist/packages/sdk-ui-vue/src/helpers/context-connectors/sisense-context-connector.d.ts +6 -0
- package/dist/packages/sdk-ui-vue/src/helpers/context-connectors/theme-context-connector.d.ts +6 -0
- package/dist/packages/sdk-ui-vue/src/helpers/setup-helper.d.ts +21 -0
- package/dist/packages/sdk-ui-vue/src/helpers/use-reducer.d.ts +1 -1
- package/dist/packages/sdk-ui-vue/src/helpers/use-ref-state.d.ts +5 -0
- package/dist/packages/sdk-ui-vue/src/lib.d.ts +1 -1
- package/dist/packages/sdk-ui-vue/src/providers/index.d.ts +3 -3
- package/dist/packages/sdk-ui-vue/src/providers/plugins-provider/index.d.ts +2 -0
- package/dist/packages/sdk-ui-vue/src/providers/plugins-provider/plugins-context.d.ts +10 -0
- package/dist/packages/sdk-ui-vue/src/providers/plugins-provider/plugins-provider.d.ts +11 -0
- package/dist/packages/sdk-ui-vue/src/providers/sisense-context-provider/index.d.ts +2 -0
- package/dist/packages/sdk-ui-vue/src/providers/{sisense-context-provider.d.ts → sisense-context-provider/sisense-context-provider.d.ts} +11 -18
- package/dist/packages/sdk-ui-vue/src/providers/sisense-context-provider/sisense-context.d.ts +9 -0
- package/dist/packages/sdk-ui-vue/src/providers/theme-provider/index.d.ts +2 -0
- package/dist/packages/sdk-ui-vue/src/providers/theme-provider/theme-context.d.ts +7 -0
- package/dist/packages/sdk-ui-vue/src/providers/{theme-provider.d.ts → theme-provider/theme-provider.d.ts} +4 -13
- package/dist/packages/sdk-ui-vue/src/sdk-ui-core-exports.d.ts +1 -1
- package/dist/packages/sdk-ui-vue/src/utilities/dashboard-helpers.d.ts +0 -11
- package/dist/{use-tracking-bc424435.cjs → use-tracking-1ffcd697.cjs} +316 -303
- package/dist/{use-tracking-2d715e05.js → use-tracking-38c33085.js} +37205 -37019
- package/package.json +6 -4
- package/dist/packages/sdk-ui-vue/src/components/widgets/dashboard-widget.d.ts +0 -233
- package/dist/packages/sdk-ui-vue/src/providers/plugins-provider.d.ts +0 -37
- package/dist/packages/sdk-ui-vue/src/setup-helper.d.ts +0 -31
package/dist/index.js
CHANGED
@@ -1,60 +1,75 @@
|
|
1
|
-
import { defineComponent as
|
2
|
-
import { s as
|
3
|
-
import {
|
4
|
-
const
|
1
|
+
import { defineComponent as y, watch as I, toRefs as F, ref as B, onBeforeUnmount as Rt, computed as Be, openBlock as cn, createElementBlock as fn, renderSlot as Fe, createVNode as nt, unref as E, createElementVNode as dn } from "vue";
|
2
|
+
import { s as $t, p as pn, a as S, Y as gn, U as hn, W as mn, $ as yn, H as bn, B as Sn, q as On, r as vn, j as xn, Q as Cn, Z as wn, V as Dn, G as jn, b as Ln, X as Pn, K as An, J as Fn, e as En, c as Nn, g as Tn, d as Rn, u as $n, f as In, h as U, i as De, k as Mn, l as We, m as It, n as _n, o as kn, t as Bn, v as Mt, w as _t, S as rt, x as kt, y as Se, z as Bt, A as Un, C as q, D as V, E as _, F as M, I as C, L as Ut, M as qn, N as ze, O as Vn, P as qt, R as Kn, T as Vt, _ as Kt, a0 as Hn, a1 as X, a2 as Wn, a3 as zn, a4 as Gn, a5 as Jn, a6 as Qn, a7 as Yn, a8 as Zn, a9 as Xn, aa as er, ab as tr, ac as st, ad as nr, ae as rr, af as it, ag as sr, ah as ir, ai as ar, aj as or, ak as ur, al as lr, am as cr, an as fr, ao as dr, ap as pr, aq as gr, ar as ee, as as K } from "./use-tracking-38c33085.js";
|
3
|
+
import { av as su, at as iu, au, aw as ou } from "./use-tracking-38c33085.js";
|
4
|
+
const hr = y({
|
5
5
|
props: {
|
6
6
|
/**
|
7
7
|
* {@inheritDoc @sisense/sdk-ui!DrilldownBreadcrumbsProps.clearDrilldownSelections}
|
8
8
|
*
|
9
9
|
* @category Widget
|
10
10
|
*/
|
11
|
-
clearDrilldownSelections:
|
11
|
+
clearDrilldownSelections: {
|
12
|
+
type: Function,
|
13
|
+
required: !0
|
14
|
+
},
|
12
15
|
/**
|
13
16
|
* {@inheritDoc @sisense/sdk-ui!DrilldownBreadcrumbsProps.currentDimension}
|
14
17
|
*
|
15
18
|
* @category Widget
|
16
19
|
*/
|
17
|
-
currentDimension:
|
20
|
+
currentDimension: {
|
21
|
+
type: Object,
|
22
|
+
required: !0
|
23
|
+
},
|
18
24
|
/**
|
19
25
|
* {@inheritDoc @sisense/sdk-ui!DrilldownBreadcrumbsProps.sliceDrilldownSelections}
|
20
26
|
*
|
21
27
|
* @category Widget
|
22
28
|
*/
|
23
|
-
sliceDrilldownSelections:
|
29
|
+
sliceDrilldownSelections: {
|
30
|
+
type: Function,
|
31
|
+
required: !0
|
32
|
+
},
|
24
33
|
/**
|
25
34
|
* {@inheritDoc @sisense/sdk-ui!DrilldownBreadcrumbsProps.filtersDisplayValues}
|
26
35
|
*
|
27
36
|
* @category Widget
|
28
37
|
*/
|
29
|
-
filtersDisplayValues:
|
38
|
+
filtersDisplayValues: {
|
39
|
+
type: Array,
|
40
|
+
required: !0
|
41
|
+
}
|
30
42
|
},
|
31
|
-
setup: (e, { slots: t }) =>
|
32
|
-
}),
|
43
|
+
setup: (e, { slots: t }) => $t(pn, e, t, [])
|
44
|
+
}), fo = y({
|
33
45
|
props: {
|
34
46
|
/**
|
35
47
|
* {@inheritDoc @sisense/sdk-ui!AreaChartProps.dataOptions}
|
36
48
|
*
|
37
49
|
* @category Chart
|
38
50
|
*/
|
39
|
-
dataOptions:
|
51
|
+
dataOptions: {
|
52
|
+
type: Object,
|
53
|
+
required: !0
|
54
|
+
},
|
40
55
|
/**
|
41
56
|
* {@inheritDoc @sisense/sdk-ui!AreaChartProps.dataSet}
|
42
57
|
*
|
43
58
|
* @category Data
|
44
59
|
*/
|
45
|
-
dataSet: Object,
|
60
|
+
dataSet: [String, Object],
|
46
61
|
/**
|
47
62
|
* {@inheritDoc @sisense/sdk-ui!AreaChartProps.filters}
|
48
63
|
*
|
49
64
|
* @category Data
|
50
65
|
*/
|
51
|
-
filters: Object,
|
66
|
+
filters: [Object, Array],
|
52
67
|
/**
|
53
68
|
* {@inheritDoc @sisense/sdk-ui!AreaChartProps.highlights}
|
54
69
|
*
|
55
70
|
* @category Data
|
56
71
|
*/
|
57
|
-
highlights:
|
72
|
+
highlights: Array,
|
58
73
|
/**
|
59
74
|
* {@inheritDoc @sisense/sdk-ui!AreaChartProps.styleOptions}
|
60
75
|
*
|
@@ -71,7 +86,6 @@ const ir = b({
|
|
71
86
|
* {@inheritDoc @sisense/sdk-ui!AreaChartProps.onDataReady}
|
72
87
|
*
|
73
88
|
* @category Callbacks
|
74
|
-
* @internal
|
75
89
|
*/
|
76
90
|
onDataReady: Function,
|
77
91
|
/**
|
@@ -93,33 +107,36 @@ const ir = b({
|
|
93
107
|
*/
|
94
108
|
onDataPointsSelected: Function
|
95
109
|
},
|
96
|
-
setup: (e) =>
|
97
|
-
}),
|
110
|
+
setup: (e) => S(gn, e)
|
111
|
+
}), po = y({
|
98
112
|
props: {
|
99
113
|
/**
|
100
114
|
* {@inheritDoc @sisense/sdk-ui!BarChartProps.dataOptions}
|
101
115
|
*
|
102
116
|
* @category Chart
|
103
117
|
*/
|
104
|
-
dataOptions:
|
118
|
+
dataOptions: {
|
119
|
+
type: Object,
|
120
|
+
required: !0
|
121
|
+
},
|
105
122
|
/**
|
106
123
|
* {@inheritDoc @sisense/sdk-ui!BarChartProps.dataSet}
|
107
124
|
*
|
108
125
|
* @category Data
|
109
126
|
*/
|
110
|
-
dataSet: Object,
|
127
|
+
dataSet: [String, Object],
|
111
128
|
/**
|
112
129
|
* {@inheritDoc @sisense/sdk-ui!BarChartProps.filters}
|
113
130
|
*
|
114
131
|
* @category Data
|
115
132
|
*/
|
116
|
-
filters: Object,
|
133
|
+
filters: [Object, Array],
|
117
134
|
/**
|
118
135
|
* {@inheritDoc @sisense/sdk-ui!BarChartProps.highlights}
|
119
136
|
*
|
120
137
|
* @category Data
|
121
138
|
*/
|
122
|
-
highlights:
|
139
|
+
highlights: Array,
|
123
140
|
/**
|
124
141
|
* {@inheritDoc @sisense/sdk-ui!BarChartProps.onBeforeRender}
|
125
142
|
*
|
@@ -130,7 +147,6 @@ const ir = b({
|
|
130
147
|
* {@inheritDoc @sisense/sdk-ui!BarChartProps.onDataReady}
|
131
148
|
*
|
132
149
|
* @category Callbacks
|
133
|
-
* @internal
|
134
150
|
*/
|
135
151
|
onDataReady: Function,
|
136
152
|
/**
|
@@ -158,33 +174,36 @@ const ir = b({
|
|
158
174
|
*/
|
159
175
|
styleOptions: Object
|
160
176
|
},
|
161
|
-
setup: (e) =>
|
162
|
-
}),
|
177
|
+
setup: (e) => S(hn, e)
|
178
|
+
}), go = y({
|
163
179
|
props: {
|
164
180
|
/**
|
165
181
|
* {@inheritDoc @sisense/sdk-ui!ColumnChartProps.dataOptions}
|
166
182
|
*
|
167
183
|
* @category Chart
|
168
184
|
*/
|
169
|
-
dataOptions:
|
185
|
+
dataOptions: {
|
186
|
+
type: Object,
|
187
|
+
required: !0
|
188
|
+
},
|
170
189
|
/**
|
171
190
|
* {@inheritDoc @sisense/sdk-ui!ColumnChartProps.dataSet}
|
172
191
|
*
|
173
192
|
* @category Data
|
174
193
|
*/
|
175
|
-
dataSet: Object,
|
194
|
+
dataSet: [String, Object],
|
176
195
|
/**
|
177
196
|
* {@inheritDoc @sisense/sdk-ui!ColumnChartProps.filters}
|
178
197
|
*
|
179
198
|
* @category Data
|
180
199
|
*/
|
181
|
-
filters: Object,
|
200
|
+
filters: [Object, Array],
|
182
201
|
/**
|
183
202
|
* {@inheritDoc @sisense/sdk-ui!ColumnChartProps.highlights}
|
184
203
|
*
|
185
204
|
* @category Data
|
186
205
|
*/
|
187
|
-
highlights:
|
206
|
+
highlights: Array,
|
188
207
|
/**
|
189
208
|
* {@inheritDoc @sisense/sdk-ui!ColumnChartProps.onBeforeRender}
|
190
209
|
*
|
@@ -195,7 +214,6 @@ const ir = b({
|
|
195
214
|
* {@inheritDoc @sisense/sdk-ui!ColumnChartProps.onDataReady}
|
196
215
|
*
|
197
216
|
* @category Callbacks
|
198
|
-
* @internal
|
199
217
|
*/
|
200
218
|
onDataReady: Function,
|
201
219
|
/**
|
@@ -223,33 +241,36 @@ const ir = b({
|
|
223
241
|
*/
|
224
242
|
styleOptions: Object
|
225
243
|
},
|
226
|
-
setup: (e) =>
|
227
|
-
}),
|
244
|
+
setup: (e) => S(mn, e)
|
245
|
+
}), ho = y({
|
228
246
|
props: {
|
229
247
|
/**
|
230
248
|
* {@inheritDoc @sisense/sdk-ui!FunnelChartProps.dataOptions}
|
231
249
|
*
|
232
250
|
* @category Chart
|
233
251
|
*/
|
234
|
-
dataOptions:
|
252
|
+
dataOptions: {
|
253
|
+
type: Object,
|
254
|
+
required: !0
|
255
|
+
},
|
235
256
|
/**
|
236
257
|
* {@inheritDoc @sisense/sdk-ui!FunnelChartProps.dataSet}
|
237
258
|
*
|
238
259
|
* @category Data
|
239
260
|
*/
|
240
|
-
dataSet: Object,
|
261
|
+
dataSet: [String, Object],
|
241
262
|
/**
|
242
263
|
* {@inheritDoc @sisense/sdk-ui!FunnelChartProps.filters}
|
243
264
|
*
|
244
265
|
* @category Data
|
245
266
|
*/
|
246
|
-
filters: Object,
|
267
|
+
filters: [Object, Array],
|
247
268
|
/**
|
248
269
|
* {@inheritDoc @sisense/sdk-ui!FunnelChartProps.highlights}
|
249
270
|
*
|
250
271
|
* @category Data
|
251
272
|
*/
|
252
|
-
highlights:
|
273
|
+
highlights: Array,
|
253
274
|
/**
|
254
275
|
* {@inheritDoc @sisense/sdk-ui!FunnelChartProps.onBeforeRender}
|
255
276
|
*
|
@@ -260,7 +281,6 @@ const ir = b({
|
|
260
281
|
* {@inheritDoc @sisense/sdk-ui!FunnelChartProps.onDataReady}
|
261
282
|
*
|
262
283
|
* @category Callbacks
|
263
|
-
* @internal
|
264
284
|
*/
|
265
285
|
onDataReady: Function,
|
266
286
|
/**
|
@@ -288,33 +308,36 @@ const ir = b({
|
|
288
308
|
*/
|
289
309
|
styleOptions: Object
|
290
310
|
},
|
291
|
-
setup: (e) =>
|
292
|
-
}),
|
311
|
+
setup: (e) => S(yn, e)
|
312
|
+
}), mo = y({
|
293
313
|
props: {
|
294
314
|
/**
|
295
315
|
* {@inheritDoc @sisense/sdk-ui!LineChartProps.dataOptions}
|
296
316
|
*
|
297
317
|
* @category Data
|
298
318
|
*/
|
299
|
-
dataOptions:
|
319
|
+
dataOptions: {
|
320
|
+
type: Object,
|
321
|
+
required: !0
|
322
|
+
},
|
300
323
|
/**
|
301
324
|
* {@inheritDoc @sisense/sdk-ui!LineChartProps.dataSet}
|
302
325
|
*
|
303
326
|
* @category Data
|
304
327
|
*/
|
305
|
-
dataSet: Object,
|
328
|
+
dataSet: [String, Object],
|
306
329
|
/**
|
307
330
|
* {@inheritDoc @sisense/sdk-ui!LineChartProps.filters}
|
308
331
|
*
|
309
332
|
* @category Data
|
310
333
|
*/
|
311
|
-
filters: Object,
|
334
|
+
filters: [Object, Array],
|
312
335
|
/**
|
313
336
|
* {@inheritDoc @sisense/sdk-ui!LineChartProps.highlights}
|
314
337
|
*
|
315
338
|
* @category Data
|
316
339
|
*/
|
317
|
-
highlights:
|
340
|
+
highlights: Array,
|
318
341
|
/**
|
319
342
|
* {@inheritDoc @sisense/sdk-ui!LineChartProps.onBeforeRender}
|
320
343
|
*
|
@@ -325,7 +348,6 @@ const ir = b({
|
|
325
348
|
* {@inheritDoc @sisense/sdk-ui!LineChartProps.onDataReady}
|
326
349
|
*
|
327
350
|
* @category Callbacks
|
328
|
-
* @internal
|
329
351
|
*/
|
330
352
|
onDataReady: Function,
|
331
353
|
/**
|
@@ -353,33 +375,36 @@ const ir = b({
|
|
353
375
|
*/
|
354
376
|
styleOptions: Object
|
355
377
|
},
|
356
|
-
setup: (e) =>
|
357
|
-
}),
|
378
|
+
setup: (e) => S(bn, e)
|
379
|
+
}), yo = y({
|
358
380
|
props: {
|
359
381
|
/**
|
360
382
|
* {@inheritDoc @sisense/sdk-ui!PieChartProps.dataOptions}
|
361
383
|
*
|
362
384
|
* @category Data
|
363
385
|
*/
|
364
|
-
dataOptions:
|
386
|
+
dataOptions: {
|
387
|
+
type: Object,
|
388
|
+
required: !0
|
389
|
+
},
|
365
390
|
/**
|
366
391
|
* {@inheritDoc @sisense/sdk-ui!PieChartProps.dataSet}
|
367
392
|
*
|
368
393
|
* @category Data
|
369
394
|
*/
|
370
|
-
dataSet: Object,
|
395
|
+
dataSet: [String, Object],
|
371
396
|
/**
|
372
397
|
* {@inheritDoc @sisense/sdk-ui!PieChartProps.filters}
|
373
398
|
*
|
374
399
|
* @category Data
|
375
400
|
*/
|
376
|
-
filters: Object,
|
401
|
+
filters: [Object, Array],
|
377
402
|
/**
|
378
403
|
* {@inheritDoc @sisense/sdk-ui!PieChartProps.highlights}
|
379
404
|
*
|
380
405
|
* @category Data
|
381
406
|
*/
|
382
|
-
highlights:
|
407
|
+
highlights: Array,
|
383
408
|
/**
|
384
409
|
* {@inheritDoc @sisense/sdk-ui!PieChartProps.onBeforeRender}
|
385
410
|
*
|
@@ -390,7 +415,6 @@ const ir = b({
|
|
390
415
|
* {@inheritDoc @sisense/sdk-ui!PieChartProps.onDataReady}
|
391
416
|
*
|
392
417
|
* @category Callbacks
|
393
|
-
* @internal
|
394
418
|
*/
|
395
419
|
onDataReady: Function,
|
396
420
|
/**
|
@@ -418,33 +442,36 @@ const ir = b({
|
|
418
442
|
*/
|
419
443
|
styleOptions: Object
|
420
444
|
},
|
421
|
-
setup: (e) =>
|
422
|
-
}),
|
445
|
+
setup: (e) => S(Sn, e)
|
446
|
+
}), bo = y({
|
423
447
|
props: {
|
424
448
|
/**
|
425
449
|
* {@inheritDoc @sisense/sdk-ui!ScatterChartProps.dataOptions}
|
426
450
|
*
|
427
451
|
* @category Data
|
428
452
|
*/
|
429
|
-
dataOptions:
|
453
|
+
dataOptions: {
|
454
|
+
type: Object,
|
455
|
+
required: !0
|
456
|
+
},
|
430
457
|
/**
|
431
458
|
* {@inheritDoc @sisense/sdk-ui!ScatterChartProps.dataSet}
|
432
459
|
*
|
433
460
|
* @category Data
|
434
461
|
*/
|
435
|
-
dataSet: Object,
|
462
|
+
dataSet: [String, Object],
|
436
463
|
/**
|
437
464
|
* {@inheritDoc @sisense/sdk-ui!ScatterChartProps.filters}
|
438
465
|
*
|
439
466
|
* @category Data
|
440
467
|
*/
|
441
|
-
filters: Object,
|
468
|
+
filters: [Object, Array],
|
442
469
|
/**
|
443
470
|
* {@inheritDoc @sisense/sdk-ui!ScatterChartProps.highlights}
|
444
471
|
*
|
445
472
|
* @category Data
|
446
473
|
*/
|
447
|
-
highlights:
|
474
|
+
highlights: Array,
|
448
475
|
/**
|
449
476
|
* {@inheritDoc @sisense/sdk-ui!ScatterChartProps.onBeforeRender}
|
450
477
|
*
|
@@ -455,7 +482,6 @@ const ir = b({
|
|
455
482
|
* {@inheritDoc @sisense/sdk-ui!ScatterChartProps.onDataReady}
|
456
483
|
*
|
457
484
|
* @category Callbacks
|
458
|
-
* @internal
|
459
485
|
*/
|
460
486
|
onDataReady: Function,
|
461
487
|
/**
|
@@ -483,27 +509,30 @@ const ir = b({
|
|
483
509
|
*/
|
484
510
|
styleOptions: Object
|
485
511
|
},
|
486
|
-
setup: (e) =>
|
487
|
-
}),
|
512
|
+
setup: (e) => S(On, e)
|
513
|
+
}), So = y({
|
488
514
|
props: {
|
489
515
|
/**
|
490
516
|
* {@inheritDoc @sisense/sdk-ui!TableProps.dataOptions}
|
491
517
|
*
|
492
518
|
* @category Data
|
493
519
|
*/
|
494
|
-
dataOptions:
|
520
|
+
dataOptions: {
|
521
|
+
type: Object,
|
522
|
+
required: !0
|
523
|
+
},
|
495
524
|
/**
|
496
525
|
* {@inheritDoc @sisense/sdk-ui!TableProps.dataSet}
|
497
526
|
*
|
498
527
|
* @category Data
|
499
528
|
*/
|
500
|
-
dataSet: Object,
|
529
|
+
dataSet: [String, Object],
|
501
530
|
/**
|
502
531
|
* {@inheritDoc @sisense/sdk-ui!TableProps.filters}
|
503
532
|
*
|
504
533
|
* @category Data
|
505
534
|
*/
|
506
|
-
filters: Array,
|
535
|
+
filters: [Object, Array],
|
507
536
|
/** @internal */
|
508
537
|
refreshCounter: Number,
|
509
538
|
/**
|
@@ -511,29 +540,38 @@ const ir = b({
|
|
511
540
|
*
|
512
541
|
* @category Representation
|
513
542
|
*/
|
514
|
-
styleOptions: Object
|
543
|
+
styleOptions: Object,
|
544
|
+
/**
|
545
|
+
* {@inheritDoc @sisense/sdk-ui!TableProps.onDataReady}
|
546
|
+
*
|
547
|
+
* @category Callbacks
|
548
|
+
*/
|
549
|
+
onDataReady: Function
|
515
550
|
},
|
516
|
-
setup: (e) =>
|
517
|
-
}),
|
551
|
+
setup: (e) => S(vn, e)
|
552
|
+
}), Oo = y({
|
518
553
|
props: {
|
519
554
|
/**
|
520
555
|
* {@inheritDoc @sisense/sdk-ui!PivotTableProps.dataOptions}
|
521
556
|
*
|
522
557
|
* @category Data
|
523
558
|
*/
|
524
|
-
dataOptions:
|
559
|
+
dataOptions: {
|
560
|
+
type: Object,
|
561
|
+
required: !0
|
562
|
+
},
|
525
563
|
/**
|
526
564
|
* {@inheritDoc @sisense/sdk-ui!PivotTableProps.dataSet}
|
527
565
|
*
|
528
566
|
* @category Data
|
529
567
|
*/
|
530
|
-
dataSet: Object,
|
568
|
+
dataSet: [String, Object],
|
531
569
|
/**
|
532
570
|
* {@inheritDoc @sisense/sdk-ui!PivotTableProps.filters}
|
533
571
|
*
|
534
572
|
* @category Data
|
535
573
|
*/
|
536
|
-
filters: Array,
|
574
|
+
filters: [Object, Array],
|
537
575
|
/**
|
538
576
|
* {@inheritDoc @sisense/sdk-ui!PivotTableProps.highlights}
|
539
577
|
*
|
@@ -549,33 +587,36 @@ const ir = b({
|
|
549
587
|
*/
|
550
588
|
styleOptions: Object
|
551
589
|
},
|
552
|
-
setup: (e) =>
|
553
|
-
}),
|
590
|
+
setup: (e) => S(xn, e)
|
591
|
+
}), vo = y({
|
554
592
|
props: {
|
555
593
|
/**
|
556
594
|
* {@inheritDoc @sisense/sdk-ui!TreemapChartProps.dataOptions}
|
557
595
|
*
|
558
596
|
* @category Chart
|
559
597
|
*/
|
560
|
-
dataOptions:
|
598
|
+
dataOptions: {
|
599
|
+
type: Object,
|
600
|
+
required: !0
|
601
|
+
},
|
561
602
|
/**
|
562
603
|
* {@inheritDoc @sisense/sdk-ui!TreemapChartProps.dataSet}
|
563
604
|
*
|
564
605
|
* @category Data
|
565
606
|
*/
|
566
|
-
dataSet: Object,
|
607
|
+
dataSet: [String, Object],
|
567
608
|
/**
|
568
609
|
* {@inheritDoc @sisense/sdk-ui!TreemapChartProps.filters}
|
569
610
|
*
|
570
611
|
* @category Data
|
571
612
|
*/
|
572
|
-
filters: Object,
|
613
|
+
filters: [Object, Array],
|
573
614
|
/**
|
574
615
|
* {@inheritDoc @sisense/sdk-ui!TreemapChartProps.highlights}
|
575
616
|
*
|
576
617
|
* @category Data
|
577
618
|
*/
|
578
|
-
highlights:
|
619
|
+
highlights: Array,
|
579
620
|
/**
|
580
621
|
* {@inheritDoc @sisense/sdk-ui!TreemapChartProps.onBeforeRender}
|
581
622
|
*
|
@@ -586,7 +627,6 @@ const ir = b({
|
|
586
627
|
* {@inheritDoc @sisense/sdk-ui!TreemapChartProps.onDataReady}
|
587
628
|
*
|
588
629
|
* @category Callbacks
|
589
|
-
* @internal
|
590
630
|
*/
|
591
631
|
onDataReady: Function,
|
592
632
|
/**
|
@@ -614,33 +654,36 @@ const ir = b({
|
|
614
654
|
*/
|
615
655
|
styleOptions: Object
|
616
656
|
},
|
617
|
-
setup: (e) =>
|
618
|
-
}),
|
657
|
+
setup: (e) => S(Cn, e)
|
658
|
+
}), xo = y({
|
619
659
|
props: {
|
620
660
|
/**
|
621
661
|
* {@inheritDoc @sisense/sdk-ui!SunburstChartProps.dataOptions}
|
622
662
|
*
|
623
663
|
* @category Chart
|
624
664
|
*/
|
625
|
-
dataOptions:
|
665
|
+
dataOptions: {
|
666
|
+
type: Object,
|
667
|
+
required: !0
|
668
|
+
},
|
626
669
|
/**
|
627
670
|
* {@inheritDoc @sisense/sdk-ui!SunburstChartProps.dataSet}
|
628
671
|
*
|
629
672
|
* @category Data
|
630
673
|
*/
|
631
|
-
dataSet: Object,
|
674
|
+
dataSet: [String, Object],
|
632
675
|
/**
|
633
676
|
* {@inheritDoc @sisense/sdk-ui!SunburstChartProps.filters}
|
634
677
|
*
|
635
678
|
* @category Data
|
636
679
|
*/
|
637
|
-
filters: Object,
|
680
|
+
filters: [Object, Array],
|
638
681
|
/**
|
639
682
|
* {@inheritDoc @sisense/sdk-ui!SunburstChartProps.highlights}
|
640
683
|
*
|
641
684
|
* @category Data
|
642
685
|
*/
|
643
|
-
highlights:
|
686
|
+
highlights: Array,
|
644
687
|
/**
|
645
688
|
* {@inheritDoc @sisense/sdk-ui!SunburstChartProps.onBeforeRender}
|
646
689
|
*
|
@@ -651,7 +694,6 @@ const ir = b({
|
|
651
694
|
* {@inheritDoc @sisense/sdk-ui!SunburstChartProps.onDataReady}
|
652
695
|
*
|
653
696
|
* @category Callbacks
|
654
|
-
* @internal
|
655
697
|
*/
|
656
698
|
onDataReady: Function,
|
657
699
|
/**
|
@@ -679,33 +721,36 @@ const ir = b({
|
|
679
721
|
*/
|
680
722
|
styleOptions: Object
|
681
723
|
},
|
682
|
-
setup: (e) =>
|
683
|
-
}),
|
724
|
+
setup: (e) => S(wn, e)
|
725
|
+
}), Co = y({
|
684
726
|
props: {
|
685
727
|
/**
|
686
728
|
* {@inheritDoc @sisense/sdk-ui!PolarChartProps.dataOptions}
|
687
729
|
*
|
688
730
|
* @category Data
|
689
731
|
*/
|
690
|
-
dataOptions:
|
732
|
+
dataOptions: {
|
733
|
+
type: Object,
|
734
|
+
required: !0
|
735
|
+
},
|
691
736
|
/**
|
692
737
|
* {@inheritDoc @sisense/sdk-ui!PolarChartProps.dataSet}
|
693
738
|
*
|
694
739
|
* @category Data
|
695
740
|
*/
|
696
|
-
dataSet: Object,
|
741
|
+
dataSet: [String, Object],
|
697
742
|
/**
|
698
743
|
* {@inheritDoc @sisense/sdk-ui!PolarChartProps.filters}
|
699
744
|
*
|
700
745
|
* @category Data
|
701
746
|
*/
|
702
|
-
filters: Object,
|
747
|
+
filters: [Object, Array],
|
703
748
|
/**
|
704
749
|
* {@inheritDoc @sisense/sdk-ui!PolarChartProps.highlights}
|
705
750
|
*
|
706
751
|
* @category Data
|
707
752
|
*/
|
708
|
-
highlights:
|
753
|
+
highlights: Array,
|
709
754
|
/**
|
710
755
|
* {@inheritDoc @sisense/sdk-ui!PolarChartProps.onBeforeRender}
|
711
756
|
*
|
@@ -716,7 +761,6 @@ const ir = b({
|
|
716
761
|
* {@inheritDoc @sisense/sdk-ui!PolarChartProps.onDataReady}
|
717
762
|
*
|
718
763
|
* @category Callbacks
|
719
|
-
* @internal
|
720
764
|
*/
|
721
765
|
onDataReady: Function,
|
722
766
|
/**
|
@@ -744,33 +788,36 @@ const ir = b({
|
|
744
788
|
*/
|
745
789
|
styleOptions: Object
|
746
790
|
},
|
747
|
-
setup: (e) =>
|
748
|
-
}),
|
791
|
+
setup: (e) => S(Dn, e)
|
792
|
+
}), wo = y({
|
749
793
|
props: {
|
750
794
|
/**
|
751
795
|
* {@inheritDoc @sisense/sdk-ui!IndicatorChartProps.dataOptions}
|
752
796
|
*
|
753
797
|
* @category Chart
|
754
798
|
*/
|
755
|
-
dataOptions:
|
799
|
+
dataOptions: {
|
800
|
+
type: Object,
|
801
|
+
required: !0
|
802
|
+
},
|
756
803
|
/**
|
757
804
|
* {@inheritDoc @sisense/sdk-ui!IndicatorChartProps.dataSet}
|
758
805
|
*
|
759
806
|
* @category Data
|
760
807
|
*/
|
761
|
-
dataSet: Object,
|
808
|
+
dataSet: [String, Object],
|
762
809
|
/**
|
763
810
|
* {@inheritDoc @sisense/sdk-ui!IndicatorChartProps.filters}
|
764
811
|
*
|
765
812
|
* @category Data
|
766
813
|
*/
|
767
|
-
filters: Object,
|
814
|
+
filters: [Object, Array],
|
768
815
|
/**
|
769
816
|
* {@inheritDoc @sisense/sdk-ui!IndicatorChartProps.highlights}
|
770
817
|
*
|
771
818
|
* @category Data
|
772
819
|
*/
|
773
|
-
highlights:
|
820
|
+
highlights: Array,
|
774
821
|
/**
|
775
822
|
* {@inheritDoc @sisense/sdk-ui!IndicatorChartProps.styleOptions}
|
776
823
|
*
|
@@ -787,37 +834,42 @@ const ir = b({
|
|
787
834
|
* {@inheritDoc @sisense/sdk-ui!IndicatorChartProps.onDataReady}
|
788
835
|
*
|
789
836
|
* @category Callbacks
|
790
|
-
* @internal
|
791
837
|
*/
|
792
838
|
onDataReady: Function
|
793
839
|
},
|
794
|
-
setup: (e) =>
|
795
|
-
}),
|
840
|
+
setup: (e) => S(jn, e)
|
841
|
+
}), Do = y({
|
796
842
|
props: {
|
797
843
|
/**
|
798
844
|
* {@inheritDoc @sisense/sdk-ui!ChartProps.chartType}
|
799
845
|
*
|
800
846
|
* @category Chart
|
801
847
|
*/
|
802
|
-
chartType:
|
848
|
+
chartType: {
|
849
|
+
type: String,
|
850
|
+
required: !0
|
851
|
+
},
|
803
852
|
/**
|
804
853
|
* {@inheritDoc @sisense/sdk-ui!ChartProps.dataOptions}
|
805
854
|
*
|
806
855
|
* @category Chart
|
807
856
|
*/
|
808
|
-
dataOptions:
|
857
|
+
dataOptions: {
|
858
|
+
type: Object,
|
859
|
+
required: !0
|
860
|
+
},
|
809
861
|
/**
|
810
862
|
* {@inheritDoc @sisense/sdk-ui!ChartProps.dataSet}
|
811
863
|
*
|
812
864
|
* @category Data
|
813
865
|
*/
|
814
|
-
dataSet: Object,
|
866
|
+
dataSet: [String, Object],
|
815
867
|
/**
|
816
868
|
* {@inheritDoc @sisense/sdk-ui!ChartProps.filters}
|
817
869
|
*
|
818
870
|
* @category Data
|
819
871
|
*/
|
820
|
-
filters: Array,
|
872
|
+
filters: [Object, Array],
|
821
873
|
/**
|
822
874
|
* {@inheritDoc @sisense/sdk-ui!ChartProps.highlights}
|
823
875
|
*
|
@@ -834,7 +886,6 @@ const ir = b({
|
|
834
886
|
* {@inheritDoc @sisense/sdk-ui!ChartProps.onDataReady}
|
835
887
|
*
|
836
888
|
* @category Callbacks
|
837
|
-
* @internal
|
838
889
|
*/
|
839
890
|
onDataReady: Function,
|
840
891
|
/**
|
@@ -866,33 +917,36 @@ const ir = b({
|
|
866
917
|
*/
|
867
918
|
refreshCounter: Number
|
868
919
|
},
|
869
|
-
setup: (e) =>
|
870
|
-
}),
|
920
|
+
setup: (e) => S(Ln, e)
|
921
|
+
}), jo = y({
|
871
922
|
props: {
|
872
923
|
/**
|
873
924
|
* {@inheritDoc @sisense/sdk-ui!BoxplotChartProps.dataOptions}
|
874
925
|
*
|
875
926
|
* @category Chart
|
876
927
|
*/
|
877
|
-
dataOptions:
|
928
|
+
dataOptions: {
|
929
|
+
type: Object,
|
930
|
+
required: !0
|
931
|
+
},
|
878
932
|
/**
|
879
933
|
* {@inheritDoc @sisense/sdk-ui!BoxplotChartProps.dataSet}
|
880
934
|
*
|
881
935
|
* @category Data
|
882
936
|
*/
|
883
|
-
dataSet: Object,
|
937
|
+
dataSet: [String, Object],
|
884
938
|
/**
|
885
939
|
* {@inheritDoc @sisense/sdk-ui!BoxplotChartProps.filters}
|
886
940
|
*
|
887
941
|
* @category Data
|
888
942
|
*/
|
889
|
-
filters: Object,
|
943
|
+
filters: [Object, Array],
|
890
944
|
/**
|
891
945
|
* {@inheritDoc @sisense/sdk-ui!BoxplotChartProps.highlights}
|
892
946
|
*
|
893
947
|
* @category Data
|
894
948
|
*/
|
895
|
-
highlights:
|
949
|
+
highlights: Array,
|
896
950
|
/**
|
897
951
|
* {@inheritDoc @sisense/sdk-ui!BoxplotChartProps.styleOptions}
|
898
952
|
*
|
@@ -909,7 +963,6 @@ const ir = b({
|
|
909
963
|
* {@inheritDoc @sisense/sdk-ui!BoxplotChartProps.onDataReady}
|
910
964
|
*
|
911
965
|
* @category Callbacks
|
912
|
-
* @internal
|
913
966
|
*/
|
914
967
|
onDataReady: Function,
|
915
968
|
/**
|
@@ -931,33 +984,36 @@ const ir = b({
|
|
931
984
|
*/
|
932
985
|
onDataPointsSelected: Function
|
933
986
|
},
|
934
|
-
setup: (e) =>
|
935
|
-
}),
|
987
|
+
setup: (e) => S(Pn, e)
|
988
|
+
}), Lo = y({
|
936
989
|
props: {
|
937
990
|
/**
|
938
991
|
* {@inheritDoc @sisense/sdk-ui!AreamapChartProps.dataOptions}
|
939
992
|
*
|
940
993
|
* @category Chart
|
941
994
|
*/
|
942
|
-
dataOptions:
|
995
|
+
dataOptions: {
|
996
|
+
type: Object,
|
997
|
+
required: !0
|
998
|
+
},
|
943
999
|
/**
|
944
1000
|
* {@inheritDoc @sisense/sdk-ui!AreamapChartProps.dataSet}
|
945
1001
|
*
|
946
1002
|
* @category Data
|
947
1003
|
*/
|
948
|
-
dataSet: Object,
|
1004
|
+
dataSet: [String, Object],
|
949
1005
|
/**
|
950
1006
|
* {@inheritDoc @sisense/sdk-ui!AreamapChartProps.filters}
|
951
1007
|
*
|
952
1008
|
* @category Data
|
953
1009
|
*/
|
954
|
-
filters: Object,
|
1010
|
+
filters: [Object, Array],
|
955
1011
|
/**
|
956
1012
|
* {@inheritDoc @sisense/sdk-ui!AreamapChartProps.highlights}
|
957
1013
|
*
|
958
1014
|
* @category Data
|
959
1015
|
*/
|
960
|
-
highlights:
|
1016
|
+
highlights: Array,
|
961
1017
|
/**
|
962
1018
|
* {@inheritDoc @sisense/sdk-ui!AreamapChartProps.styleOptions}
|
963
1019
|
*
|
@@ -968,7 +1024,6 @@ const ir = b({
|
|
968
1024
|
* {@inheritDoc @sisense/sdk-ui!AreamapChartProps.onDataReady}
|
969
1025
|
*
|
970
1026
|
* @category Callbacks
|
971
|
-
* @internal
|
972
1027
|
*/
|
973
1028
|
onDataReady: Function,
|
974
1029
|
/**
|
@@ -978,33 +1033,36 @@ const ir = b({
|
|
978
1033
|
*/
|
979
1034
|
onDataPointClick: Function
|
980
1035
|
},
|
981
|
-
setup: (e) =>
|
982
|
-
}),
|
1036
|
+
setup: (e) => S(An, e)
|
1037
|
+
}), Po = y({
|
983
1038
|
props: {
|
984
1039
|
/**
|
985
1040
|
* {@inheritDoc @sisense/sdk-ui!ScattermapChartProps.dataOptions}
|
986
1041
|
*
|
987
1042
|
* @category Chart
|
988
1043
|
*/
|
989
|
-
dataOptions:
|
1044
|
+
dataOptions: {
|
1045
|
+
type: Object,
|
1046
|
+
required: !0
|
1047
|
+
},
|
990
1048
|
/**
|
991
1049
|
* {@inheritDoc @sisense/sdk-ui!ScattermapChartProps.dataSet}
|
992
1050
|
*
|
993
1051
|
* @category Data
|
994
1052
|
*/
|
995
|
-
dataSet: Object,
|
1053
|
+
dataSet: [String, Object],
|
996
1054
|
/**
|
997
1055
|
* {@inheritDoc @sisense/sdk-ui!ScattermapChartProps.filters}
|
998
1056
|
*
|
999
1057
|
* @category Data
|
1000
1058
|
*/
|
1001
|
-
filters: Object,
|
1059
|
+
filters: [Object, Array],
|
1002
1060
|
/**
|
1003
1061
|
* {@inheritDoc @sisense/sdk-ui!ScattermapChartProps.highlights}
|
1004
1062
|
*
|
1005
1063
|
* @category Data
|
1006
1064
|
*/
|
1007
|
-
highlights:
|
1065
|
+
highlights: Array,
|
1008
1066
|
/**
|
1009
1067
|
* {@inheritDoc @sisense/sdk-ui!ScattermapChartProps.styleOptions}
|
1010
1068
|
*
|
@@ -1015,7 +1073,6 @@ const ir = b({
|
|
1015
1073
|
* {@inheritDoc @sisense/sdk-ui!ScattermapChartProps.onDataReady}
|
1016
1074
|
*
|
1017
1075
|
* @category Callbacks
|
1018
|
-
* @internal
|
1019
1076
|
*/
|
1020
1077
|
onDataReady: Function,
|
1021
1078
|
/**
|
@@ -1025,33 +1082,36 @@ const ir = b({
|
|
1025
1082
|
*/
|
1026
1083
|
onDataPointClick: Object
|
1027
1084
|
},
|
1028
|
-
setup: (e) =>
|
1029
|
-
}),
|
1085
|
+
setup: (e) => S(Fn, e)
|
1086
|
+
}), Ao = y({
|
1030
1087
|
props: {
|
1031
1088
|
/**
|
1032
1089
|
* {@inheritDoc @sisense/sdk-ui!AreaRangeChartProps.dataOptions}
|
1033
1090
|
*
|
1034
1091
|
* @category Chart
|
1035
1092
|
*/
|
1036
|
-
dataOptions:
|
1093
|
+
dataOptions: {
|
1094
|
+
type: Object,
|
1095
|
+
required: !0
|
1096
|
+
},
|
1037
1097
|
/**
|
1038
1098
|
* {@inheritDoc @sisense/sdk-ui!AreaRangeChartProps.dataSet}
|
1039
1099
|
*
|
1040
1100
|
* @category Data
|
1041
1101
|
*/
|
1042
|
-
dataSet: Object,
|
1102
|
+
dataSet: [String, Object],
|
1043
1103
|
/**
|
1044
1104
|
* {@inheritDoc @sisense/sdk-ui!AreaRangeChartProps.filters}
|
1045
1105
|
*
|
1046
1106
|
* @category Data
|
1047
1107
|
*/
|
1048
|
-
filters: Object,
|
1108
|
+
filters: [Object, Array],
|
1049
1109
|
/**
|
1050
1110
|
* {@inheritDoc @sisense/sdk-ui!AreaRangeChartProps.highlights}
|
1051
1111
|
*
|
1052
1112
|
* @category Data
|
1053
1113
|
*/
|
1054
|
-
highlights:
|
1114
|
+
highlights: Array,
|
1055
1115
|
/**
|
1056
1116
|
* {@inheritDoc @sisense/sdk-ui!AreaRangeChartProps.onBeforeRender}
|
1057
1117
|
*
|
@@ -1062,7 +1122,6 @@ const ir = b({
|
|
1062
1122
|
* {@inheritDoc @sisense/sdk-ui!AreaRangeChartProps.onDataReady}
|
1063
1123
|
*
|
1064
1124
|
* @category Callbacks
|
1065
|
-
* @internal
|
1066
1125
|
*/
|
1067
1126
|
onDataReady: Function,
|
1068
1127
|
/**
|
@@ -1090,17 +1149,20 @@ const ir = b({
|
|
1090
1149
|
*/
|
1091
1150
|
styleOptions: Object
|
1092
1151
|
},
|
1093
|
-
setup: (e) =>
|
1094
|
-
}),
|
1152
|
+
setup: (e) => S(En, e)
|
1153
|
+
}), Fo = y({
|
1095
1154
|
props: {
|
1096
1155
|
/**
|
1097
1156
|
* {@inheritDoc @sisense/sdk-ui!DateRangeFilterTileProps.attribute}
|
1098
1157
|
*/
|
1099
|
-
attribute:
|
1158
|
+
attribute: {
|
1159
|
+
type: Object,
|
1160
|
+
required: !0
|
1161
|
+
},
|
1100
1162
|
/**
|
1101
1163
|
* {@inheritDoc @sisense/sdk-ui!DateRangeFilterTileProps.dataSource}
|
1102
1164
|
*/
|
1103
|
-
datasource: Object,
|
1165
|
+
datasource: [String, Object],
|
1104
1166
|
/**
|
1105
1167
|
* {@inheritDoc @sisense/sdk-ui!DateRangeFilterTileProps.earliestDate}
|
1106
1168
|
*/
|
@@ -1108,7 +1170,10 @@ const ir = b({
|
|
1108
1170
|
/**
|
1109
1171
|
* {@inheritDoc @sisense/sdk-ui!DateRangeFilterTileProps.filter}
|
1110
1172
|
*/
|
1111
|
-
filter:
|
1173
|
+
filter: {
|
1174
|
+
type: Object,
|
1175
|
+
required: !0
|
1176
|
+
},
|
1112
1177
|
/**
|
1113
1178
|
* {@inheritDoc @sisense/sdk-ui!DateRangeFilterTileProps.lastDate}
|
1114
1179
|
*/
|
@@ -1116,7 +1181,10 @@ const ir = b({
|
|
1116
1181
|
/**
|
1117
1182
|
* {@inheritDoc @sisense/sdk-ui!DateRangeFilterTileProps.onChange}
|
1118
1183
|
*/
|
1119
|
-
onChange:
|
1184
|
+
onChange: {
|
1185
|
+
type: Function,
|
1186
|
+
required: !0
|
1187
|
+
},
|
1120
1188
|
/**
|
1121
1189
|
* {@inheritDoc @sisense/sdk-ui!DateRangeFilterTileProps.parentFilters}
|
1122
1190
|
*/
|
@@ -1124,7 +1192,10 @@ const ir = b({
|
|
1124
1192
|
/**
|
1125
1193
|
* {@inheritDoc @sisense/sdk-ui!DateRangeFilterTileProps.title}
|
1126
1194
|
*/
|
1127
|
-
title:
|
1195
|
+
title: {
|
1196
|
+
type: String,
|
1197
|
+
required: !0
|
1198
|
+
},
|
1128
1199
|
/**
|
1129
1200
|
* {@inheritDoc @sisense/sdk-ui!DateRangeFilterTileProps.tiled}
|
1130
1201
|
* @internal
|
@@ -1139,25 +1210,34 @@ const ir = b({
|
|
1139
1210
|
*/
|
1140
1211
|
onEdit: Function
|
1141
1212
|
},
|
1142
|
-
setup: (e) =>
|
1143
|
-
}),
|
1213
|
+
setup: (e) => S(Nn, e)
|
1214
|
+
}), Eo = y({
|
1144
1215
|
props: {
|
1145
1216
|
/**
|
1146
1217
|
* {@inheritDoc @sisense/sdk-ui!MemberFilterTileProps.attribute}
|
1147
1218
|
*/
|
1148
|
-
attribute:
|
1219
|
+
attribute: {
|
1220
|
+
type: Object,
|
1221
|
+
required: !0
|
1222
|
+
},
|
1149
1223
|
/**
|
1150
1224
|
* {@inheritDoc @sisense/sdk-ui!MemberFilterTileProps.dataSource}
|
1151
1225
|
*/
|
1152
|
-
dataSource: Object,
|
1226
|
+
dataSource: [String, Object],
|
1153
1227
|
/**
|
1154
1228
|
* {@inheritDoc @sisense/sdk-ui!MemberFilterTileProps.filter}
|
1155
1229
|
*/
|
1156
|
-
filter:
|
1230
|
+
filter: {
|
1231
|
+
type: [Object, null],
|
1232
|
+
required: !0
|
1233
|
+
},
|
1157
1234
|
/**
|
1158
1235
|
* {@inheritDoc @sisense/sdk-ui!MemberFilterTileProps.onChange}
|
1159
1236
|
*/
|
1160
|
-
onChange:
|
1237
|
+
onChange: {
|
1238
|
+
type: Function,
|
1239
|
+
required: !0
|
1240
|
+
},
|
1161
1241
|
/**
|
1162
1242
|
* {@inheritDoc @sisense/sdk-ui!MemberFilterTileProps.parentFilters}
|
1163
1243
|
*/
|
@@ -1165,7 +1245,10 @@ const ir = b({
|
|
1165
1245
|
/**
|
1166
1246
|
* {@inheritDoc @sisense/sdk-ui!MemberFilterTileProps.title}
|
1167
1247
|
*/
|
1168
|
-
title:
|
1248
|
+
title: {
|
1249
|
+
type: String,
|
1250
|
+
required: !0
|
1251
|
+
},
|
1169
1252
|
/**
|
1170
1253
|
* {@inheritDoc @sisense/sdk-ui!MemberFilterTileProps.onDelete}
|
1171
1254
|
*/
|
@@ -1175,29 +1258,38 @@ const ir = b({
|
|
1175
1258
|
*/
|
1176
1259
|
onEdit: Function
|
1177
1260
|
},
|
1178
|
-
setup: (e) =>
|
1179
|
-
}),
|
1261
|
+
setup: (e) => S(Tn, e)
|
1262
|
+
}), No = y({
|
1180
1263
|
props: {
|
1181
1264
|
/**
|
1182
1265
|
* {@inheritDoc @sisense/sdk-ui!CriteriaFilterTileProps.arrangement}
|
1183
1266
|
*/
|
1184
|
-
arrangement:
|
1267
|
+
arrangement: String,
|
1185
1268
|
/**
|
1186
1269
|
* {@inheritDoc @sisense/sdk-ui!CriteriaFilterTileProps.filter}
|
1187
1270
|
*/
|
1188
|
-
filter:
|
1271
|
+
filter: {
|
1272
|
+
type: Object,
|
1273
|
+
required: !0
|
1274
|
+
},
|
1189
1275
|
/**
|
1190
1276
|
* {@inheritDoc @sisense/sdk-ui!CriteriaFilterTileProps.measures}
|
1191
1277
|
*/
|
1192
|
-
measures:
|
1278
|
+
measures: Array,
|
1193
1279
|
/**
|
1194
1280
|
* {@inheritDoc @sisense/sdk-ui!CriteriaFilterTileProps.onUpdate}
|
1195
1281
|
*/
|
1196
|
-
onUpdate:
|
1282
|
+
onUpdate: {
|
1283
|
+
type: Function,
|
1284
|
+
required: !0
|
1285
|
+
},
|
1197
1286
|
/**
|
1198
1287
|
* {@inheritDoc @sisense/sdk-ui!CriteriaFilterTileProps.title}
|
1199
1288
|
*/
|
1200
|
-
title:
|
1289
|
+
title: {
|
1290
|
+
type: String,
|
1291
|
+
required: !0
|
1292
|
+
},
|
1201
1293
|
/**
|
1202
1294
|
* {@inheritDoc @sisense/sdk-ui!CriteriaFilterTileProps.onDelete}
|
1203
1295
|
*/
|
@@ -1207,25 +1299,34 @@ const ir = b({
|
|
1207
1299
|
*/
|
1208
1300
|
onEdit: Function
|
1209
1301
|
},
|
1210
|
-
setup: (e) =>
|
1211
|
-
}),
|
1302
|
+
setup: (e) => S(Rn, e)
|
1303
|
+
}), To = y({
|
1212
1304
|
props: {
|
1213
1305
|
/**
|
1214
1306
|
* {@inheritDoc @sisense/sdk-ui!RelativeDateFilterTileProps.title}
|
1215
1307
|
*/
|
1216
|
-
title:
|
1308
|
+
title: {
|
1309
|
+
type: String,
|
1310
|
+
required: !0
|
1311
|
+
},
|
1217
1312
|
/**
|
1218
1313
|
* {@inheritDoc @sisense/sdk-ui!RelativeDateFilterTileProps.filter}
|
1219
1314
|
*/
|
1220
|
-
filter:
|
1315
|
+
filter: {
|
1316
|
+
type: Object,
|
1317
|
+
required: !0
|
1318
|
+
},
|
1221
1319
|
/**
|
1222
1320
|
* {@inheritDoc @sisense/sdk-ui!RelativeDateFilterTileProps.arrangement}
|
1223
1321
|
*/
|
1224
|
-
arrangement:
|
1322
|
+
arrangement: String,
|
1225
1323
|
/**
|
1226
1324
|
* {@inheritDoc @sisense/sdk-ui!RelativeDateFilterTileProps.onUpdate}
|
1227
1325
|
*/
|
1228
|
-
onUpdate:
|
1326
|
+
onUpdate: {
|
1327
|
+
type: Function,
|
1328
|
+
required: !0
|
1329
|
+
},
|
1229
1330
|
/**
|
1230
1331
|
* {@inheritDoc @sisense/sdk-ui!RelativeDateFilterTileProps.limit}
|
1231
1332
|
*/
|
@@ -1244,8 +1345,38 @@ const ir = b({
|
|
1244
1345
|
*/
|
1245
1346
|
onEdit: Function
|
1246
1347
|
},
|
1247
|
-
setup: (e) =>
|
1248
|
-
}),
|
1348
|
+
setup: (e) => S($n, e)
|
1349
|
+
}), Ro = y({
|
1350
|
+
props: {
|
1351
|
+
/**
|
1352
|
+
* {@inheritDoc @sisense/sdk-ui!FilterTileProps.filter}
|
1353
|
+
*/
|
1354
|
+
filter: {
|
1355
|
+
type: Object,
|
1356
|
+
required: !0
|
1357
|
+
},
|
1358
|
+
/**
|
1359
|
+
* {@inheritDoc @sisense/sdk-ui!FilterTileProps.defaultDataSource}
|
1360
|
+
*/
|
1361
|
+
defaultDataSource: [String, Object],
|
1362
|
+
/**
|
1363
|
+
* {@inheritDoc @sisense/sdk-ui!FilterTileProps.onChange}
|
1364
|
+
*/
|
1365
|
+
onChange: {
|
1366
|
+
type: Function,
|
1367
|
+
required: !0
|
1368
|
+
},
|
1369
|
+
/**
|
1370
|
+
* {@inheritDoc @sisense/sdk-ui!FilterTileProps.onDelete}
|
1371
|
+
*/
|
1372
|
+
onDelete: Function,
|
1373
|
+
/**
|
1374
|
+
* {@inheritDoc @sisense/sdk-ui!FilterTileProps.onEdit}
|
1375
|
+
*/
|
1376
|
+
onEdit: Function
|
1377
|
+
},
|
1378
|
+
setup: (e) => S(In, e)
|
1379
|
+
}), mr = {
|
1249
1380
|
type: "logger",
|
1250
1381
|
log(e) {
|
1251
1382
|
this.output("log", e);
|
@@ -1260,14 +1391,14 @@ const ir = b({
|
|
1260
1391
|
console && console[e] && console[e].apply(console, t);
|
1261
1392
|
}
|
1262
1393
|
};
|
1263
|
-
class
|
1394
|
+
class Oe {
|
1264
1395
|
constructor(t) {
|
1265
1396
|
let n = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
|
1266
1397
|
this.init(t, n);
|
1267
1398
|
}
|
1268
1399
|
init(t) {
|
1269
1400
|
let n = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
|
1270
|
-
this.prefix = n.prefix || "i18next:", this.logger = t ||
|
1401
|
+
this.prefix = n.prefix || "i18next:", this.logger = t || mr, this.options = n, this.debug = n.debug;
|
1271
1402
|
}
|
1272
1403
|
log() {
|
1273
1404
|
for (var t = arguments.length, n = new Array(t), r = 0; r < t; r++)
|
@@ -1293,17 +1424,17 @@ class ve {
|
|
1293
1424
|
return s && !this.debug ? null : (typeof t[0] == "string" && (t[0] = `${r}${this.prefix} ${t[0]}`), this.logger[n](t));
|
1294
1425
|
}
|
1295
1426
|
create(t) {
|
1296
|
-
return new
|
1427
|
+
return new Oe(this.logger, {
|
1297
1428
|
prefix: `${this.prefix}:${t}:`,
|
1298
1429
|
...this.options
|
1299
1430
|
});
|
1300
1431
|
}
|
1301
1432
|
clone(t) {
|
1302
|
-
return t = t || this.options, t.prefix = t.prefix || this.prefix, new
|
1433
|
+
return t = t || this.options, t.prefix = t.prefix || this.prefix, new Oe(this.logger, t);
|
1303
1434
|
}
|
1304
1435
|
}
|
1305
|
-
var
|
1306
|
-
class
|
1436
|
+
var $ = new Oe();
|
1437
|
+
class je {
|
1307
1438
|
constructor() {
|
1308
1439
|
this.observers = {};
|
1309
1440
|
}
|
@@ -1338,15 +1469,15 @@ function ae() {
|
|
1338
1469
|
});
|
1339
1470
|
return n.resolve = e, n.reject = t, n;
|
1340
1471
|
}
|
1341
|
-
function
|
1472
|
+
function at(e) {
|
1342
1473
|
return e == null ? "" : "" + e;
|
1343
1474
|
}
|
1344
|
-
function
|
1475
|
+
function yr(e, t, n) {
|
1345
1476
|
e.forEach((r) => {
|
1346
1477
|
t[r] && (n[r] = t[r]);
|
1347
1478
|
});
|
1348
1479
|
}
|
1349
|
-
function
|
1480
|
+
function Ge(e, t, n) {
|
1350
1481
|
function r(a) {
|
1351
1482
|
return a && a.indexOf("###") > -1 ? a.replace(/###/g, ".") : a;
|
1352
1483
|
}
|
@@ -1365,41 +1496,41 @@ function ze(e, t, n) {
|
|
1365
1496
|
k: r(i.shift())
|
1366
1497
|
};
|
1367
1498
|
}
|
1368
|
-
function
|
1499
|
+
function ot(e, t, n) {
|
1369
1500
|
const {
|
1370
1501
|
obj: r,
|
1371
1502
|
k: s
|
1372
|
-
} =
|
1503
|
+
} = Ge(e, t, Object);
|
1373
1504
|
r[s] = n;
|
1374
1505
|
}
|
1375
|
-
function
|
1506
|
+
function br(e, t, n, r) {
|
1376
1507
|
const {
|
1377
1508
|
obj: s,
|
1378
1509
|
k: i
|
1379
|
-
} =
|
1510
|
+
} = Ge(e, t, Object);
|
1380
1511
|
s[i] = s[i] || [], r && (s[i] = s[i].concat(n)), r || s[i].push(n);
|
1381
1512
|
}
|
1382
|
-
function
|
1513
|
+
function ve(e, t) {
|
1383
1514
|
const {
|
1384
1515
|
obj: n,
|
1385
1516
|
k: r
|
1386
|
-
} =
|
1517
|
+
} = Ge(e, t);
|
1387
1518
|
if (n)
|
1388
1519
|
return n[r];
|
1389
1520
|
}
|
1390
|
-
function
|
1391
|
-
const r =
|
1392
|
-
return r !== void 0 ? r :
|
1521
|
+
function Sr(e, t, n) {
|
1522
|
+
const r = ve(e, n);
|
1523
|
+
return r !== void 0 ? r : ve(t, n);
|
1393
1524
|
}
|
1394
|
-
function
|
1525
|
+
function Ht(e, t, n) {
|
1395
1526
|
for (const r in t)
|
1396
|
-
r !== "__proto__" && r !== "constructor" && (r in e ? typeof e[r] == "string" || e[r] instanceof String || typeof t[r] == "string" || t[r] instanceof String ? n && (e[r] = t[r]) :
|
1527
|
+
r !== "__proto__" && r !== "constructor" && (r in e ? typeof e[r] == "string" || e[r] instanceof String || typeof t[r] == "string" || t[r] instanceof String ? n && (e[r] = t[r]) : Ht(e[r], t[r], n) : e[r] = t[r]);
|
1397
1528
|
return e;
|
1398
1529
|
}
|
1399
|
-
function
|
1530
|
+
function Y(e) {
|
1400
1531
|
return e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g, "\\$&");
|
1401
1532
|
}
|
1402
|
-
var
|
1533
|
+
var Or = {
|
1403
1534
|
"&": "&",
|
1404
1535
|
"<": "<",
|
1405
1536
|
">": ">",
|
@@ -1407,13 +1538,13 @@ var cr = {
|
|
1407
1538
|
"'": "'",
|
1408
1539
|
"/": "/"
|
1409
1540
|
};
|
1410
|
-
function
|
1411
|
-
return typeof e == "string" ? e.replace(/[&<>"'\/]/g, (t) =>
|
1541
|
+
function vr(e) {
|
1542
|
+
return typeof e == "string" ? e.replace(/[&<>"'\/]/g, (t) => Or[t]) : e;
|
1412
1543
|
}
|
1413
|
-
const
|
1414
|
-
function
|
1544
|
+
const xr = [" ", ",", "?", "!", ";"];
|
1545
|
+
function Cr(e, t, n) {
|
1415
1546
|
t = t || "", n = n || "";
|
1416
|
-
const r =
|
1547
|
+
const r = xr.filter((a) => t.indexOf(a) < 0 && n.indexOf(a) < 0);
|
1417
1548
|
if (r.length === 0)
|
1418
1549
|
return !0;
|
1419
1550
|
const s = new RegExp(`(${r.map((a) => a === "?" ? "\\?" : a).join("|")})`);
|
@@ -1424,7 +1555,7 @@ function pr(e, t, n) {
|
|
1424
1555
|
}
|
1425
1556
|
return i;
|
1426
1557
|
}
|
1427
|
-
function
|
1558
|
+
function xe(e, t) {
|
1428
1559
|
let n = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : ".";
|
1429
1560
|
if (!e)
|
1430
1561
|
return;
|
@@ -1450,7 +1581,7 @@ function we(e, t) {
|
|
1450
1581
|
return u[o];
|
1451
1582
|
}
|
1452
1583
|
const c = r.slice(i + a).join(n);
|
1453
|
-
return c ?
|
1584
|
+
return c ? xe(u, c, n) : void 0;
|
1454
1585
|
}
|
1455
1586
|
s = s[r[i]];
|
1456
1587
|
}
|
@@ -1459,7 +1590,7 @@ function we(e, t) {
|
|
1459
1590
|
function Ce(e) {
|
1460
1591
|
return e && e.indexOf("_") > 0 ? e.replace("_", "-") : e;
|
1461
1592
|
}
|
1462
|
-
class
|
1593
|
+
class ut extends je {
|
1463
1594
|
constructor(t) {
|
1464
1595
|
let n = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {
|
1465
1596
|
ns: ["translation"],
|
@@ -1479,8 +1610,8 @@ class at extends Pe {
|
|
1479
1610
|
const i = s.keySeparator !== void 0 ? s.keySeparator : this.options.keySeparator, a = s.ignoreJSONStructure !== void 0 ? s.ignoreJSONStructure : this.options.ignoreJSONStructure;
|
1480
1611
|
let o = [t, n];
|
1481
1612
|
r && typeof r != "string" && (o = o.concat(r)), r && typeof r == "string" && (o = o.concat(i ? r.split(i) : r)), t.indexOf(".") > -1 && (o = t.split("."));
|
1482
|
-
const u =
|
1483
|
-
return u || !a || typeof r != "string" ? u :
|
1613
|
+
const u = ve(this.data, o);
|
1614
|
+
return u || !a || typeof r != "string" ? u : xe(this.data && this.data[t] && this.data[t][n], r, i);
|
1484
1615
|
}
|
1485
1616
|
addResource(t, n, r, s) {
|
1486
1617
|
let i = arguments.length > 4 && arguments[4] !== void 0 ? arguments[4] : {
|
@@ -1488,7 +1619,7 @@ class at extends Pe {
|
|
1488
1619
|
};
|
1489
1620
|
const a = i.keySeparator !== void 0 ? i.keySeparator : this.options.keySeparator;
|
1490
1621
|
let o = [t, n];
|
1491
|
-
r && (o = o.concat(a ? r.split(a) : r)), t.indexOf(".") > -1 && (o = t.split("."), s = n, n = o[1]), this.addNamespaces(n),
|
1622
|
+
r && (o = o.concat(a ? r.split(a) : r)), t.indexOf(".") > -1 && (o = t.split("."), s = n, n = o[1]), this.addNamespaces(n), ot(this.data, o, s), i.silent || this.emit("added", t, n, r, s);
|
1492
1623
|
}
|
1493
1624
|
addResources(t, n, r) {
|
1494
1625
|
let s = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : {
|
@@ -1505,11 +1636,11 @@ class at extends Pe {
|
|
1505
1636
|
silent: !1
|
1506
1637
|
}, o = [t, n];
|
1507
1638
|
t.indexOf(".") > -1 && (o = t.split("."), s = r, r = n, n = o[1]), this.addNamespaces(n);
|
1508
|
-
let u =
|
1509
|
-
s ?
|
1639
|
+
let u = ve(this.data, o) || {};
|
1640
|
+
s ? Ht(u, r, i) : u = {
|
1510
1641
|
...u,
|
1511
1642
|
...r
|
1512
|
-
},
|
1643
|
+
}, ot(this.data, o, u), a.silent || this.emit("added", t, n, r);
|
1513
1644
|
}
|
1514
1645
|
removeResourceBundle(t, n) {
|
1515
1646
|
this.hasResourceBundle(t, n) && delete this.data[t][n], this.removeNamespaces(n), this.emit("removed", t, n);
|
@@ -1533,7 +1664,7 @@ class at extends Pe {
|
|
1533
1664
|
return this.data;
|
1534
1665
|
}
|
1535
1666
|
}
|
1536
|
-
var
|
1667
|
+
var Wt = {
|
1537
1668
|
processors: {},
|
1538
1669
|
addPostProcessor(e) {
|
1539
1670
|
this.processors[e.name] = e;
|
@@ -1544,11 +1675,11 @@ var kt = {
|
|
1544
1675
|
}), t;
|
1545
1676
|
}
|
1546
1677
|
};
|
1547
|
-
const
|
1548
|
-
class
|
1678
|
+
const lt = {};
|
1679
|
+
class we extends je {
|
1549
1680
|
constructor(t) {
|
1550
1681
|
let n = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
|
1551
|
-
super(),
|
1682
|
+
super(), yr(["resourceStore", "languageUtils", "pluralResolver", "interpolator", "backendConnector", "i18nFormat", "utils"], t, this), this.options = n, this.options.keySeparator === void 0 && (this.options.keySeparator = "."), this.logger = $.create("translator");
|
1552
1683
|
}
|
1553
1684
|
changeLanguage(t) {
|
1554
1685
|
t && (this.language = t);
|
@@ -1567,7 +1698,7 @@ class je extends Pe {
|
|
1567
1698
|
r === void 0 && (r = ":");
|
1568
1699
|
const s = n.keySeparator !== void 0 ? n.keySeparator : this.options.keySeparator;
|
1569
1700
|
let i = n.ns || this.options.defaultNS || [];
|
1570
|
-
const a = r && t.indexOf(r) > -1, o = !this.options.userDefinedKeySeparator && !n.keySeparator && !this.options.userDefinedNsSeparator && !n.nsSeparator && !
|
1701
|
+
const a = r && t.indexOf(r) > -1, o = !this.options.userDefinedKeySeparator && !n.keySeparator && !this.options.userDefinedNsSeparator && !n.nsSeparator && !Cr(t, r, s);
|
1571
1702
|
if (a && !o) {
|
1572
1703
|
const u = t.match(this.interpolator.nestingRegexp);
|
1573
1704
|
if (u && u.length > 0)
|
@@ -1595,14 +1726,14 @@ class je extends Pe {
|
|
1595
1726
|
} = this.extractFromKey(t[t.length - 1], n), u = o[o.length - 1], c = n.lng || this.language, f = n.appendNamespaceToCIMode || this.options.appendNamespaceToCIMode;
|
1596
1727
|
if (c && c.toLowerCase() === "cimode") {
|
1597
1728
|
if (f) {
|
1598
|
-
const
|
1729
|
+
const x = n.nsSeparator || this.options.nsSeparator;
|
1599
1730
|
return s ? {
|
1600
|
-
res: `${u}${
|
1731
|
+
res: `${u}${x}${a}`,
|
1601
1732
|
usedKey: a,
|
1602
1733
|
exactUsedKey: a,
|
1603
1734
|
usedLng: c,
|
1604
1735
|
usedNS: u
|
1605
|
-
} : `${u}${
|
1736
|
+
} : `${u}${x}${a}`;
|
1606
1737
|
}
|
1607
1738
|
return s ? {
|
1608
1739
|
res: a,
|
@@ -1614,64 +1745,64 @@ class je extends Pe {
|
|
1614
1745
|
}
|
1615
1746
|
const d = this.resolve(t, n);
|
1616
1747
|
let l = d && d.res;
|
1617
|
-
const g = d && d.usedKey || a, p = d && d.exactUsedKey || a, m = Object.prototype.toString.apply(l), h = ["[object Number]", "[object Function]", "[object RegExp]"],
|
1618
|
-
if (
|
1748
|
+
const g = d && d.usedKey || a, p = d && d.exactUsedKey || a, m = Object.prototype.toString.apply(l), h = ["[object Number]", "[object Function]", "[object RegExp]"], v = n.joinArrays !== void 0 ? n.joinArrays : this.options.joinArrays, w = !this.i18nFormat || this.i18nFormat.handleAsObject;
|
1749
|
+
if (w && l && (typeof l != "string" && typeof l != "boolean" && typeof l != "number") && h.indexOf(m) < 0 && !(typeof v == "string" && m === "[object Array]")) {
|
1619
1750
|
if (!n.returnObjects && !this.options.returnObjects) {
|
1620
1751
|
this.options.returnedObjectHandler || this.logger.warn("accessing an object - but returnObjects options is not enabled!");
|
1621
|
-
const
|
1752
|
+
const x = this.options.returnedObjectHandler ? this.options.returnedObjectHandler(g, l, {
|
1622
1753
|
...n,
|
1623
1754
|
ns: o
|
1624
1755
|
}) : `key '${a} (${this.language})' returned an object instead of string.`;
|
1625
|
-
return s ? (d.res =
|
1756
|
+
return s ? (d.res = x, d) : x;
|
1626
1757
|
}
|
1627
1758
|
if (i) {
|
1628
|
-
const
|
1629
|
-
for (const
|
1630
|
-
if (Object.prototype.hasOwnProperty.call(l,
|
1631
|
-
const ce = `${
|
1632
|
-
|
1759
|
+
const x = m === "[object Array]", P = x ? [] : {}, T = x ? p : g;
|
1760
|
+
for (const L in l)
|
1761
|
+
if (Object.prototype.hasOwnProperty.call(l, L)) {
|
1762
|
+
const ce = `${T}${i}${L}`;
|
1763
|
+
P[L] = this.translate(ce, {
|
1633
1764
|
...n,
|
1634
1765
|
joinArrays: !1,
|
1635
1766
|
ns: o
|
1636
|
-
}),
|
1767
|
+
}), P[L] === ce && (P[L] = l[L]);
|
1637
1768
|
}
|
1638
|
-
l =
|
1769
|
+
l = P;
|
1639
1770
|
}
|
1640
|
-
} else if (
|
1641
|
-
l = l.join(
|
1771
|
+
} else if (w && typeof v == "string" && m === "[object Array]")
|
1772
|
+
l = l.join(v), l && (l = this.extendTranslation(l, t, n, r));
|
1642
1773
|
else {
|
1643
|
-
let
|
1644
|
-
const
|
1774
|
+
let x = !1, P = !1;
|
1775
|
+
const T = n.count !== void 0 && typeof n.count != "string", L = we.hasDefaultValue(n), ce = T ? this.pluralResolver.getSuffix(c, n.count, n) : "", un = n.ordinal && T ? this.pluralResolver.getSuffix(c, n.count, {
|
1645
1776
|
ordinal: !1
|
1646
|
-
}) : "", re = n[`defaultValue${ce}`] || n[`defaultValue${
|
1647
|
-
!this.isValidLookup(l) &&
|
1648
|
-
const
|
1649
|
-
if (
|
1777
|
+
}) : "", re = n[`defaultValue${ce}`] || n[`defaultValue${un}`] || n.defaultValue;
|
1778
|
+
!this.isValidLookup(l) && L && (x = !0, l = re), this.isValidLookup(l) || (P = !0, l = a);
|
1779
|
+
const ln = (n.missingKeyNoValueFallbackToKey || this.options.missingKeyNoValueFallbackToKey) && P ? void 0 : l, se = L && re !== l && this.options.updateMissing;
|
1780
|
+
if (P || x || se) {
|
1650
1781
|
if (this.logger.log(se ? "updateKey" : "missingKey", c, u, a, se ? re : l), i) {
|
1651
|
-
const
|
1782
|
+
const A = this.resolve(a, {
|
1652
1783
|
...n,
|
1653
1784
|
keySeparator: !1
|
1654
1785
|
});
|
1655
|
-
|
1786
|
+
A && A.res && this.logger.warn("Seems the loaded translations were in flat JSON format instead of nested. Either set keySeparator: false on init or make sure your translations are published in nested format.");
|
1656
1787
|
}
|
1657
1788
|
let ie = [];
|
1658
1789
|
const fe = this.languageUtils.getFallbackCodes(this.options.fallbackLng, n.lng || this.language);
|
1659
1790
|
if (this.options.saveMissingTo === "fallback" && fe && fe[0])
|
1660
|
-
for (let
|
1661
|
-
ie.push(fe[
|
1791
|
+
for (let A = 0; A < fe.length; A++)
|
1792
|
+
ie.push(fe[A]);
|
1662
1793
|
else
|
1663
1794
|
this.options.saveMissingTo === "all" ? ie = this.languageUtils.toResolveHierarchy(n.lng || this.language) : ie.push(n.lng || this.language);
|
1664
|
-
const Xe = (
|
1665
|
-
const
|
1666
|
-
this.options.missingKeyHandler ? this.options.missingKeyHandler(
|
1795
|
+
const Xe = (A, Q, et) => {
|
1796
|
+
const tt = L && et !== l ? et : ln;
|
1797
|
+
this.options.missingKeyHandler ? this.options.missingKeyHandler(A, u, Q, tt, se, n) : this.backendConnector && this.backendConnector.saveMissing && this.backendConnector.saveMissing(A, u, Q, tt, se, n), this.emit("missingKey", A, u, Q, l);
|
1667
1798
|
};
|
1668
|
-
this.options.saveMissing && (this.options.saveMissingPlurals &&
|
1669
|
-
this.pluralResolver.getSuffixes(
|
1670
|
-
Xe([
|
1799
|
+
this.options.saveMissing && (this.options.saveMissingPlurals && T ? ie.forEach((A) => {
|
1800
|
+
this.pluralResolver.getSuffixes(A, n).forEach((Q) => {
|
1801
|
+
Xe([A], a + Q, n[`defaultValue${Q}`] || re);
|
1671
1802
|
});
|
1672
1803
|
}) : Xe(ie, a, re));
|
1673
1804
|
}
|
1674
|
-
l = this.extendTranslation(l, t, n, d, r),
|
1805
|
+
l = this.extendTranslation(l, t, n, d, r), P && l === a && this.options.appendNamespaceToMissingKey && (l = `${u}:${a}`), (P || x) && this.options.parseMissingKeyHandler && (this.options.compatibilityAPI !== "v1" ? l = this.options.parseMissingKeyHandler(this.options.appendNamespaceToMissingKey ? `${u}:${a}` : a, x ? l : void 0) : l = this.options.parseMissingKeyHandler(l));
|
1675
1806
|
}
|
1676
1807
|
return s ? (d.res = l, d) : l;
|
1677
1808
|
}
|
@@ -1713,7 +1844,7 @@ class je extends Pe {
|
|
1713
1844
|
}, r)), r.interpolation && this.interpolator.reset();
|
1714
1845
|
}
|
1715
1846
|
const o = r.postProcess || this.options.postProcess, u = typeof o == "string" ? [o] : o;
|
1716
|
-
return t != null && u && u.length && r.applyPostProcessor !== !1 && (t =
|
1847
|
+
return t != null && u && u.length && r.applyPostProcessor !== !1 && (t = Wt.handle(u, t, n, this.options && this.options.postProcessPassResolved ? {
|
1717
1848
|
i18nResolved: s,
|
1718
1849
|
...r
|
1719
1850
|
} : r, this)), t;
|
@@ -1729,25 +1860,25 @@ class je extends Pe {
|
|
1729
1860
|
this.options.fallbackNS && (d = d.concat(this.options.fallbackNS));
|
1730
1861
|
const l = n.count !== void 0 && typeof n.count != "string", g = l && !n.ordinal && n.count === 0 && this.pluralResolver.shouldUseIntlApi(), p = n.context !== void 0 && (typeof n.context == "string" || typeof n.context == "number") && n.context !== "", m = n.lngs ? n.lngs : this.languageUtils.toResolveHierarchy(n.lng || this.language, n.fallbackLng);
|
1731
1862
|
d.forEach((h) => {
|
1732
|
-
this.isValidLookup(r) || (o = h, !
|
1863
|
+
this.isValidLookup(r) || (o = h, !lt[`${m[0]}-${h}`] && this.utils && this.utils.hasLoadedNamespace && !this.utils.hasLoadedNamespace(o) && (lt[`${m[0]}-${h}`] = !0, this.logger.warn(`key "${s}" for languages "${m.join(", ")}" won't get resolved as namespace "${o}" was not yet loaded`, "This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!")), m.forEach((v) => {
|
1733
1864
|
if (this.isValidLookup(r))
|
1734
1865
|
return;
|
1735
|
-
a =
|
1736
|
-
const
|
1866
|
+
a = v;
|
1867
|
+
const w = [f];
|
1737
1868
|
if (this.i18nFormat && this.i18nFormat.addLookupKeys)
|
1738
|
-
this.i18nFormat.addLookupKeys(
|
1869
|
+
this.i18nFormat.addLookupKeys(w, f, v, h, n);
|
1739
1870
|
else {
|
1740
|
-
let
|
1741
|
-
l && (
|
1742
|
-
const
|
1743
|
-
if (l && (
|
1744
|
-
const
|
1745
|
-
|
1871
|
+
let x;
|
1872
|
+
l && (x = this.pluralResolver.getSuffix(v, n.count, n));
|
1873
|
+
const P = `${this.options.pluralSeparator}zero`, T = `${this.options.pluralSeparator}ordinal${this.options.pluralSeparator}`;
|
1874
|
+
if (l && (w.push(f + x), n.ordinal && x.indexOf(T) === 0 && w.push(f + x.replace(T, this.options.pluralSeparator)), g && w.push(f + P)), p) {
|
1875
|
+
const L = `${f}${this.options.contextSeparator}${n.context}`;
|
1876
|
+
w.push(L), l && (w.push(L + x), n.ordinal && x.indexOf(T) === 0 && w.push(L + x.replace(T, this.options.pluralSeparator)), g && w.push(L + P));
|
1746
1877
|
}
|
1747
1878
|
}
|
1748
|
-
let
|
1749
|
-
for (;
|
1750
|
-
this.isValidLookup(r) || (i =
|
1879
|
+
let D;
|
1880
|
+
for (; D = w.pop(); )
|
1881
|
+
this.isValidLookup(r) || (i = D, r = this.getResource(v, h, D, n));
|
1751
1882
|
}));
|
1752
1883
|
});
|
1753
1884
|
}), {
|
@@ -1773,12 +1904,12 @@ class je extends Pe {
|
|
1773
1904
|
return !1;
|
1774
1905
|
}
|
1775
1906
|
}
|
1776
|
-
function
|
1907
|
+
function Ee(e) {
|
1777
1908
|
return e.charAt(0).toUpperCase() + e.slice(1);
|
1778
1909
|
}
|
1779
|
-
class
|
1910
|
+
class ct {
|
1780
1911
|
constructor(t) {
|
1781
|
-
this.options = t, this.supportedLngs = this.options.supportedLngs || !1, this.logger =
|
1912
|
+
this.options = t, this.supportedLngs = this.options.supportedLngs || !1, this.logger = $.create("languageUtils");
|
1782
1913
|
}
|
1783
1914
|
getScriptPartFromCode(t) {
|
1784
1915
|
if (t = Ce(t), !t || t.indexOf("-") < 0)
|
@@ -1796,7 +1927,7 @@ class ut {
|
|
1796
1927
|
if (typeof t == "string" && t.indexOf("-") > -1) {
|
1797
1928
|
const n = ["hans", "hant", "latn", "cyrl", "cans", "mong", "arab"];
|
1798
1929
|
let r = t.split("-");
|
1799
|
-
return this.options.lowerCaseLng ? r = r.map((s) => s.toLowerCase()) : r.length === 2 ? (r[0] = r[0].toLowerCase(), r[1] = r[1].toUpperCase(), n.indexOf(r[1].toLowerCase()) > -1 && (r[1] =
|
1930
|
+
return this.options.lowerCaseLng ? r = r.map((s) => s.toLowerCase()) : r.length === 2 ? (r[0] = r[0].toLowerCase(), r[1] = r[1].toUpperCase(), n.indexOf(r[1].toLowerCase()) > -1 && (r[1] = Ee(r[1].toLowerCase()))) : r.length === 3 && (r[0] = r[0].toLowerCase(), r[1].length === 2 && (r[1] = r[1].toUpperCase()), r[0] !== "sgn" && r[2].length === 2 && (r[2] = r[2].toUpperCase()), n.indexOf(r[1].toLowerCase()) > -1 && (r[1] = Ee(r[1].toLowerCase())), n.indexOf(r[2].toLowerCase()) > -1 && (r[2] = Ee(r[2].toLowerCase()))), r.join("-");
|
1800
1931
|
}
|
1801
1932
|
return this.options.cleanCode || this.options.lowerCaseLng ? t.toLowerCase() : t;
|
1802
1933
|
}
|
@@ -1845,7 +1976,7 @@ class ut {
|
|
1845
1976
|
}), s;
|
1846
1977
|
}
|
1847
1978
|
}
|
1848
|
-
let
|
1979
|
+
let wr = [{
|
1849
1980
|
lngs: ["ach", "ak", "am", "arn", "br", "fil", "gun", "ln", "mfe", "mg", "mi", "oc", "pt", "pt-BR", "tg", "tl", "ti", "tr", "uz", "wa"],
|
1850
1981
|
nr: [1, 2],
|
1851
1982
|
fc: 1
|
@@ -1937,7 +2068,7 @@ let gr = [{
|
|
1937
2068
|
lngs: ["he", "iw"],
|
1938
2069
|
nr: [1, 2, 20, 21],
|
1939
2070
|
fc: 22
|
1940
|
-
}],
|
2071
|
+
}], Dr = {
|
1941
2072
|
1: function(e) {
|
1942
2073
|
return +(e > 1);
|
1943
2074
|
},
|
@@ -2005,7 +2136,7 @@ let gr = [{
|
|
2005
2136
|
return e == 1 ? 0 : e == 2 ? 1 : (e < 0 || e > 10) && e % 10 == 0 ? 2 : 3;
|
2006
2137
|
}
|
2007
2138
|
};
|
2008
|
-
const
|
2139
|
+
const jr = ["v1", "v2", "v3"], Lr = ["v4"], ft = {
|
2009
2140
|
zero: 0,
|
2010
2141
|
one: 1,
|
2011
2142
|
two: 2,
|
@@ -2013,21 +2144,21 @@ const mr = ["v1", "v2", "v3"], br = ["v4"], lt = {
|
|
2013
2144
|
many: 4,
|
2014
2145
|
other: 5
|
2015
2146
|
};
|
2016
|
-
function
|
2147
|
+
function Pr() {
|
2017
2148
|
const e = {};
|
2018
|
-
return
|
2149
|
+
return wr.forEach((t) => {
|
2019
2150
|
t.lngs.forEach((n) => {
|
2020
2151
|
e[n] = {
|
2021
2152
|
numbers: t.nr,
|
2022
|
-
plurals:
|
2153
|
+
plurals: Dr[t.fc]
|
2023
2154
|
};
|
2024
2155
|
});
|
2025
2156
|
}), e;
|
2026
2157
|
}
|
2027
|
-
class
|
2158
|
+
class Ar {
|
2028
2159
|
constructor(t) {
|
2029
2160
|
let n = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
|
2030
|
-
this.languageUtils = t, this.options = n, this.logger =
|
2161
|
+
this.languageUtils = t, this.options = n, this.logger = $.create("pluralResolver"), (!this.options.compatibilityJSON || Lr.includes(this.options.compatibilityJSON)) && (typeof Intl > "u" || !Intl.PluralRules) && (this.options.compatibilityJSON = "v3", this.logger.error("Your environment seems not to be Intl API compatible, use an Intl.PluralRules polyfill. Will fallback to the compatibilityJSON v3 format handling.")), this.rules = Pr();
|
2031
2162
|
}
|
2032
2163
|
addRule(t, n) {
|
2033
2164
|
this.rules[t] = n;
|
@@ -2056,7 +2187,7 @@ class Or {
|
|
2056
2187
|
getSuffixes(t) {
|
2057
2188
|
let n = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
|
2058
2189
|
const r = this.getRule(t, n);
|
2059
|
-
return r ? this.shouldUseIntlApi() ? r.resolvedOptions().pluralCategories.sort((s, i) =>
|
2190
|
+
return r ? this.shouldUseIntlApi() ? r.resolvedOptions().pluralCategories.sort((s, i) => ft[s] - ft[i]).map((s) => `${this.options.prepend}${n.ordinal ? `ordinal${this.options.prepend}` : ""}${s}`) : r.numbers.map((s) => this.getSuffix(t, s, n)) : [];
|
2060
2191
|
}
|
2061
2192
|
getSuffix(t, n) {
|
2062
2193
|
let r = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {};
|
@@ -2071,17 +2202,17 @@ class Or {
|
|
2071
2202
|
return this.options.compatibilityJSON === "v1" ? s === 1 ? "" : typeof s == "number" ? `_plural_${s.toString()}` : i() : this.options.compatibilityJSON === "v2" || this.options.simplifyPluralSuffix && t.numbers.length === 2 && t.numbers[0] === 1 ? i() : this.options.prepend && r.toString() ? this.options.prepend + r.toString() : r.toString();
|
2072
2203
|
}
|
2073
2204
|
shouldUseIntlApi() {
|
2074
|
-
return !
|
2205
|
+
return !jr.includes(this.options.compatibilityJSON);
|
2075
2206
|
}
|
2076
2207
|
}
|
2077
|
-
function
|
2078
|
-
let r = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : ".", s = arguments.length > 4 && arguments[4] !== void 0 ? arguments[4] : !0, i =
|
2079
|
-
return !i && s && typeof n == "string" && (i =
|
2208
|
+
function dt(e, t, n) {
|
2209
|
+
let r = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : ".", s = arguments.length > 4 && arguments[4] !== void 0 ? arguments[4] : !0, i = Sr(e, t, n);
|
2210
|
+
return !i && s && typeof n == "string" && (i = xe(e, n, r), i === void 0 && (i = xe(t, n, r))), i;
|
2080
2211
|
}
|
2081
|
-
class
|
2212
|
+
class Fr {
|
2082
2213
|
constructor() {
|
2083
2214
|
let t = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
|
2084
|
-
this.logger =
|
2215
|
+
this.logger = $.create("interpolator"), this.options = t, this.format = t.interpolation && t.interpolation.format || ((n) => n), this.init(t);
|
2085
2216
|
}
|
2086
2217
|
init() {
|
2087
2218
|
let t = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
|
@@ -2089,7 +2220,7 @@ class Sr {
|
|
2089
2220
|
escapeValue: !0
|
2090
2221
|
});
|
2091
2222
|
const n = t.interpolation;
|
2092
|
-
this.escape = n.escape !== void 0 ? n.escape :
|
2223
|
+
this.escape = n.escape !== void 0 ? n.escape : vr, this.escapeValue = n.escapeValue !== void 0 ? n.escapeValue : !0, this.useRawValueToEscape = n.useRawValueToEscape !== void 0 ? n.useRawValueToEscape : !1, this.prefix = n.prefix ? Y(n.prefix) : n.prefixEscaped || "{{", this.suffix = n.suffix ? Y(n.suffix) : n.suffixEscaped || "}}", this.formatSeparator = n.formatSeparator ? n.formatSeparator : n.formatSeparator || ",", this.unescapePrefix = n.unescapeSuffix ? "" : n.unescapePrefix || "-", this.unescapeSuffix = this.unescapePrefix ? "" : n.unescapeSuffix || "", this.nestingPrefix = n.nestingPrefix ? Y(n.nestingPrefix) : n.nestingPrefixEscaped || Y("$t("), this.nestingSuffix = n.nestingSuffix ? Y(n.nestingSuffix) : n.nestingSuffixEscaped || Y(")"), this.nestingOptionsSeparator = n.nestingOptionsSeparator ? n.nestingOptionsSeparator : n.nestingOptionsSeparator || ",", this.maxReplaces = n.maxReplaces ? n.maxReplaces : 1e3, this.alwaysFormat = n.alwaysFormat !== void 0 ? n.alwaysFormat : !1, this.resetRegExp();
|
2093
2224
|
}
|
2094
2225
|
reset() {
|
2095
2226
|
this.options && this.init(this.options);
|
@@ -2110,15 +2241,15 @@ class Sr {
|
|
2110
2241
|
}
|
2111
2242
|
const f = (p) => {
|
2112
2243
|
if (p.indexOf(this.formatSeparator) < 0) {
|
2113
|
-
const
|
2114
|
-
return this.alwaysFormat ? this.format(
|
2244
|
+
const w = dt(n, u, p, this.options.keySeparator, this.options.ignoreJSONStructure);
|
2245
|
+
return this.alwaysFormat ? this.format(w, void 0, r, {
|
2115
2246
|
...s,
|
2116
2247
|
...n,
|
2117
2248
|
interpolationkey: p
|
2118
|
-
}) :
|
2249
|
+
}) : w;
|
2119
2250
|
}
|
2120
|
-
const m = p.split(this.formatSeparator), h = m.shift().trim(),
|
2121
|
-
return this.format(
|
2251
|
+
const m = p.split(this.formatSeparator), h = m.shift().trim(), v = m.join(this.formatSeparator).trim();
|
2252
|
+
return this.format(dt(n, u, h, this.options.keySeparator, this.options.ignoreJSONStructure), v, r, {
|
2122
2253
|
...s,
|
2123
2254
|
...n,
|
2124
2255
|
interpolationkey: h
|
@@ -2137,8 +2268,8 @@ class Sr {
|
|
2137
2268
|
const m = i[1].trim();
|
2138
2269
|
if (a = f(m), a === void 0)
|
2139
2270
|
if (typeof d == "function") {
|
2140
|
-
const
|
2141
|
-
a = typeof
|
2271
|
+
const v = d(t, i, s);
|
2272
|
+
a = typeof v == "string" ? v : "";
|
2142
2273
|
} else if (s && Object.prototype.hasOwnProperty.call(s, m))
|
2143
2274
|
a = "";
|
2144
2275
|
else if (l) {
|
@@ -2147,7 +2278,7 @@ class Sr {
|
|
2147
2278
|
} else
|
2148
2279
|
this.logger.warn(`missed to pass in variable ${m} for interpolating ${t}`), a = "";
|
2149
2280
|
else
|
2150
|
-
typeof a != "string" && !this.useRawValueToEscape && (a =
|
2281
|
+
typeof a != "string" && !this.useRawValueToEscape && (a = at(a));
|
2151
2282
|
const h = p.safeValue(a);
|
2152
2283
|
if (t = t.replace(i[0], h), l ? (p.regex.lastIndex += a.length, p.regex.lastIndex -= i[0].length) : p.regex.lastIndex = 0, o++, o >= this.maxReplaces)
|
2153
2284
|
break;
|
@@ -2187,7 +2318,7 @@ class Sr {
|
|
2187
2318
|
}
|
2188
2319
|
if (i = n(o.call(this, s[1].trim(), a), a), i && s[0] === t && typeof i != "string")
|
2189
2320
|
return i;
|
2190
|
-
typeof i != "string" && (i =
|
2321
|
+
typeof i != "string" && (i = at(i)), i || (this.logger.warn(`missed to resolve ${s[1]} for nesting ${t}`), i = ""), c && (i = u.reduce((f, d) => this.format(f, d, r.lng, {
|
2191
2322
|
...r,
|
2192
2323
|
interpolationkey: s[1].trim()
|
2193
2324
|
}), i.trim())), t = t.replace(s[0], i), this.regexp.lastIndex = 0;
|
@@ -2195,7 +2326,7 @@ class Sr {
|
|
2195
2326
|
return t;
|
2196
2327
|
}
|
2197
2328
|
}
|
2198
|
-
function
|
2329
|
+
function Er(e) {
|
2199
2330
|
let t = e.toLowerCase().trim();
|
2200
2331
|
const n = {};
|
2201
2332
|
if (e.indexOf("(") > -1) {
|
@@ -2222,10 +2353,10 @@ function Z(e) {
|
|
2222
2353
|
return o || (o = e(Ce(s), i), t[a] = o), o(r);
|
2223
2354
|
};
|
2224
2355
|
}
|
2225
|
-
class
|
2356
|
+
class Nr {
|
2226
2357
|
constructor() {
|
2227
2358
|
let t = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
|
2228
|
-
this.logger =
|
2359
|
+
this.logger = $.create("formatter"), this.options = t, this.formats = {
|
2229
2360
|
number: Z((n, r) => {
|
2230
2361
|
const s = new Intl.NumberFormat(n, {
|
2231
2362
|
...r
|
@@ -2277,7 +2408,7 @@ class xr {
|
|
2277
2408
|
const {
|
2278
2409
|
formatName: c,
|
2279
2410
|
formatOptions: f
|
2280
|
-
} =
|
2411
|
+
} = Er(u);
|
2281
2412
|
if (this.formats[c]) {
|
2282
2413
|
let d = o;
|
2283
2414
|
try {
|
@@ -2297,13 +2428,13 @@ class xr {
|
|
2297
2428
|
}, t);
|
2298
2429
|
}
|
2299
2430
|
}
|
2300
|
-
function
|
2431
|
+
function Tr(e, t) {
|
2301
2432
|
e.pending[t] !== void 0 && (delete e.pending[t], e.pendingCount--);
|
2302
2433
|
}
|
2303
|
-
class
|
2434
|
+
class Rr extends je {
|
2304
2435
|
constructor(t, n, r) {
|
2305
2436
|
let s = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : {};
|
2306
|
-
super(), this.backend = t, this.store = n, this.services = r, this.languageUtils = r.languageUtils, this.options = s, this.logger =
|
2437
|
+
super(), this.backend = t, this.store = n, this.services = r, this.languageUtils = r.languageUtils, this.options = s, this.logger = $.create("backendConnector"), this.waitingReads = [], this.maxParallelReads = s.maxParallelReads || 10, this.readingCalls = 0, this.maxRetries = s.maxRetries >= 0 ? s.maxRetries : 5, this.retryTimeout = s.retryTimeout >= 1 ? s.retryTimeout : 350, this.state = {}, this.queue = [], this.backend && this.backend.init && this.backend.init(r, s.backend, s);
|
2307
2438
|
}
|
2308
2439
|
queueLoad(t, n, r, s) {
|
2309
2440
|
const i = {}, a = {}, o = {}, u = {};
|
@@ -2331,7 +2462,7 @@ class Cr extends Pe {
|
|
2331
2462
|
n && this.emit("failedLoading", i, a, n), r && this.store.addResourceBundle(i, a, r), this.state[t] = n ? -1 : 2;
|
2332
2463
|
const o = {};
|
2333
2464
|
this.queue.forEach((u) => {
|
2334
|
-
|
2465
|
+
br(u.loaded, [i], a), Tr(u, t), n && u.errors.push(n), u.pendingCount === 0 && !u.done && (Object.keys(u.loaded).forEach((c) => {
|
2335
2466
|
o[c] || (o[c] = {});
|
2336
2467
|
const f = u.loaded[c];
|
2337
2468
|
f.length && f.forEach((d) => {
|
@@ -2434,7 +2565,7 @@ class Cr extends Pe {
|
|
2434
2565
|
}
|
2435
2566
|
}
|
2436
2567
|
}
|
2437
|
-
function
|
2568
|
+
function pt() {
|
2438
2569
|
return {
|
2439
2570
|
debug: !1,
|
2440
2571
|
initImmediate: !0,
|
@@ -2493,22 +2624,22 @@ function ft() {
|
|
2493
2624
|
}
|
2494
2625
|
};
|
2495
2626
|
}
|
2496
|
-
function
|
2627
|
+
function gt(e) {
|
2497
2628
|
return typeof e.ns == "string" && (e.ns = [e.ns]), typeof e.fallbackLng == "string" && (e.fallbackLng = [e.fallbackLng]), typeof e.fallbackNS == "string" && (e.fallbackNS = [e.fallbackNS]), e.supportedLngs && e.supportedLngs.indexOf("cimode") < 0 && (e.supportedLngs = e.supportedLngs.concat(["cimode"])), e;
|
2498
2629
|
}
|
2499
2630
|
function de() {
|
2500
2631
|
}
|
2501
|
-
function
|
2632
|
+
function $r(e) {
|
2502
2633
|
Object.getOwnPropertyNames(Object.getPrototypeOf(e)).forEach((n) => {
|
2503
2634
|
typeof e[n] == "function" && (e[n] = e[n].bind(e));
|
2504
2635
|
});
|
2505
2636
|
}
|
2506
|
-
class oe extends
|
2637
|
+
class oe extends je {
|
2507
2638
|
constructor() {
|
2508
2639
|
let t = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, n = arguments.length > 1 ? arguments[1] : void 0;
|
2509
|
-
if (super(), this.options =
|
2640
|
+
if (super(), this.options = gt(t), this.services = {}, this.logger = $, this.modules = {
|
2510
2641
|
external: []
|
2511
|
-
},
|
2642
|
+
}, $r(this), n && !this.isInitialized && !t.isClone) {
|
2512
2643
|
if (!this.options.initImmediate)
|
2513
2644
|
return this.init(t, n), this;
|
2514
2645
|
setTimeout(() => {
|
@@ -2520,11 +2651,11 @@ class oe extends Pe {
|
|
2520
2651
|
var t = this;
|
2521
2652
|
let n = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, r = arguments.length > 1 ? arguments[1] : void 0;
|
2522
2653
|
typeof n == "function" && (r = n, n = {}), !n.defaultNS && n.defaultNS !== !1 && n.ns && (typeof n.ns == "string" ? n.defaultNS = n.ns : n.ns.indexOf("translation") < 0 && (n.defaultNS = n.ns[0]));
|
2523
|
-
const s =
|
2654
|
+
const s = pt();
|
2524
2655
|
this.options = {
|
2525
2656
|
...s,
|
2526
2657
|
...this.options,
|
2527
|
-
...
|
2658
|
+
...gt(n)
|
2528
2659
|
}, this.options.compatibilityAPI !== "v1" && (this.options.interpolation = {
|
2529
2660
|
...s.interpolation,
|
2530
2661
|
...this.options.interpolation
|
@@ -2533,23 +2664,23 @@ class oe extends Pe {
|
|
2533
2664
|
return f ? typeof f == "function" ? new f() : f : null;
|
2534
2665
|
}
|
2535
2666
|
if (!this.options.isClone) {
|
2536
|
-
this.modules.logger ?
|
2667
|
+
this.modules.logger ? $.init(i(this.modules.logger), this.options) : $.init(null, this.options);
|
2537
2668
|
let f;
|
2538
|
-
this.modules.formatter ? f = this.modules.formatter : typeof Intl < "u" && (f =
|
2539
|
-
const d = new
|
2540
|
-
this.store = new
|
2669
|
+
this.modules.formatter ? f = this.modules.formatter : typeof Intl < "u" && (f = Nr);
|
2670
|
+
const d = new ct(this.options);
|
2671
|
+
this.store = new ut(this.options.resources, this.options);
|
2541
2672
|
const l = this.services;
|
2542
|
-
l.logger =
|
2673
|
+
l.logger = $, l.resourceStore = this.store, l.languageUtils = d, l.pluralResolver = new Ar(d, {
|
2543
2674
|
prepend: this.options.pluralSeparator,
|
2544
2675
|
compatibilityJSON: this.options.compatibilityJSON,
|
2545
2676
|
simplifyPluralSuffix: this.options.simplifyPluralSuffix
|
2546
|
-
}), f && (!this.options.interpolation.format || this.options.interpolation.format === s.interpolation.format) && (l.formatter = i(f), l.formatter.init(l, this.options), this.options.interpolation.format = l.formatter.format.bind(l.formatter)), l.interpolator = new
|
2677
|
+
}), f && (!this.options.interpolation.format || this.options.interpolation.format === s.interpolation.format) && (l.formatter = i(f), l.formatter.init(l, this.options), this.options.interpolation.format = l.formatter.format.bind(l.formatter)), l.interpolator = new Fr(this.options), l.utils = {
|
2547
2678
|
hasLoadedNamespace: this.hasLoadedNamespace.bind(this)
|
2548
|
-
}, l.backendConnector = new
|
2679
|
+
}, l.backendConnector = new Rr(i(this.modules.backend), l.resourceStore, l, this.options), l.backendConnector.on("*", function(g) {
|
2549
2680
|
for (var p = arguments.length, m = new Array(p > 1 ? p - 1 : 0), h = 1; h < p; h++)
|
2550
2681
|
m[h - 1] = arguments[h];
|
2551
2682
|
t.emit(g, ...m);
|
2552
|
-
}), this.modules.languageDetector && (l.languageDetector = i(this.modules.languageDetector), l.languageDetector.init && l.languageDetector.init(l, this.options.detection, this.options)), this.modules.i18nFormat && (l.i18nFormat = i(this.modules.i18nFormat), l.i18nFormat.init && l.i18nFormat.init(this)), this.translator = new
|
2683
|
+
}), this.modules.languageDetector && (l.languageDetector = i(this.modules.languageDetector), l.languageDetector.init && l.languageDetector.init(l, this.options.detection, this.options)), this.modules.i18nFormat && (l.i18nFormat = i(this.modules.i18nFormat), l.i18nFormat.init && l.i18nFormat.init(this)), this.translator = new we(this.services, this.options), this.translator.on("*", function(g) {
|
2553
2684
|
for (var p = arguments.length, m = new Array(p > 1 ? p - 1 : 0), h = 1; h < p; h++)
|
2554
2685
|
m[h - 1] = arguments[h];
|
2555
2686
|
t.emit(g, ...m);
|
@@ -2610,7 +2741,7 @@ class oe extends Pe {
|
|
2610
2741
|
throw new Error("You are passing an undefined module! Please check the object you are passing to i18next.use()");
|
2611
2742
|
if (!t.type)
|
2612
2743
|
throw new Error("You are passing a wrong module! Please check the object you are passing to i18next.use()");
|
2613
|
-
return t.type === "backend" && (this.modules.backend = t), (t.type === "logger" || t.log && t.warn && t.error) && (this.modules.logger = t), t.type === "languageDetector" && (this.modules.languageDetector = t), t.type === "i18nFormat" && (this.modules.i18nFormat = t), t.type === "postProcessor" &&
|
2744
|
+
return t.type === "backend" && (this.modules.backend = t), (t.type === "logger" || t.log && t.warn && t.error) && (this.modules.logger = t), t.type === "languageDetector" && (this.modules.languageDetector = t), t.type === "i18nFormat" && (this.modules.i18nFormat = t), t.type === "postProcessor" && Wt.addPostProcessor(t), t.type === "formatter" && (this.modules.formatter = t), t.type === "3rdParty" && this.modules.external.push(t), this;
|
2614
2745
|
}
|
2615
2746
|
setResolvedLanguage(t) {
|
2616
2747
|
if (!(!t || !this.languages) && !(["cimode", "dev"].indexOf(t) > -1))
|
@@ -2711,7 +2842,7 @@ class oe extends Pe {
|
|
2711
2842
|
dir(t) {
|
2712
2843
|
if (t || (t = this.resolvedLanguage || (this.languages && this.languages.length > 0 ? this.languages[0] : this.language)), !t)
|
2713
2844
|
return "rtl";
|
2714
|
-
const n = ["ar", "shu", "sqr", "ssh", "xaa", "yhd", "yud", "aao", "abh", "abv", "acm", "acq", "acw", "acx", "acy", "adf", "ads", "aeb", "aec", "afb", "ajp", "apc", "apd", "arb", "arq", "ars", "ary", "arz", "auz", "avl", "ayh", "ayl", "ayn", "ayp", "bbz", "pga", "he", "iw", "ps", "pbt", "pbu", "pst", "prp", "prd", "ug", "ur", "ydd", "yds", "yih", "ji", "yi", "hbo", "men", "xmn", "fa", "jpr", "peo", "pes", "prs", "dv", "sam", "ckb"], r = this.services && this.services.languageUtils || new
|
2845
|
+
const n = ["ar", "shu", "sqr", "ssh", "xaa", "yhd", "yud", "aao", "abh", "abv", "acm", "acq", "acw", "acx", "acy", "adf", "ads", "aeb", "aec", "afb", "ajp", "apc", "apd", "arb", "arq", "ars", "ary", "arz", "auz", "avl", "ayh", "ayl", "ayn", "ayp", "bbz", "pga", "he", "iw", "ps", "pbt", "pbu", "pst", "prp", "prd", "ug", "ur", "ydd", "yds", "yih", "ji", "yi", "hbo", "men", "xmn", "fa", "jpr", "peo", "pes", "prs", "dv", "sam", "ckb"], r = this.services && this.services.languageUtils || new ct(pt());
|
2715
2846
|
return n.indexOf(r.getLanguagePartFromCode(t)) > -1 || t.toLowerCase().indexOf("-arab") > 1 ? "rtl" : "ltr";
|
2716
2847
|
}
|
2717
2848
|
static createInstance() {
|
@@ -2733,7 +2864,7 @@ class oe extends Pe {
|
|
2733
2864
|
...this.services
|
2734
2865
|
}, i.services.utils = {
|
2735
2866
|
hasLoadedNamespace: i.hasLoadedNamespace.bind(i)
|
2736
|
-
}, r && (i.store = new
|
2867
|
+
}, r && (i.store = new ut(this.store.data, s), i.services.resourceStore = i.store), i.translator = new we(i.services, s), i.translator.on("*", function(o) {
|
2737
2868
|
for (var u = arguments.length, c = new Array(u > 1 ? u - 1 : 0), f = 1; f < u; f++)
|
2738
2869
|
c[f - 1] = arguments[f];
|
2739
2870
|
i.emit(o, ...c);
|
@@ -2751,68 +2882,71 @@ class oe extends Pe {
|
|
2751
2882
|
};
|
2752
2883
|
}
|
2753
2884
|
}
|
2754
|
-
const
|
2755
|
-
|
2756
|
-
|
2757
|
-
|
2758
|
-
|
2759
|
-
|
2760
|
-
|
2761
|
-
|
2762
|
-
|
2763
|
-
|
2764
|
-
|
2765
|
-
|
2766
|
-
|
2767
|
-
|
2768
|
-
|
2769
|
-
|
2770
|
-
const
|
2885
|
+
const j = oe.createInstance();
|
2886
|
+
j.createInstance = oe.createInstance;
|
2887
|
+
j.createInstance;
|
2888
|
+
j.dir;
|
2889
|
+
j.init;
|
2890
|
+
j.loadResources;
|
2891
|
+
j.reloadResources;
|
2892
|
+
j.use;
|
2893
|
+
j.changeLanguage;
|
2894
|
+
j.getFixedT;
|
2895
|
+
j.t;
|
2896
|
+
j.exists;
|
2897
|
+
j.setDefaultNamespace;
|
2898
|
+
j.hasLoadedNamespace;
|
2899
|
+
j.loadNamespaces;
|
2900
|
+
j.loadLanguages;
|
2901
|
+
const Ir = {
|
2771
2902
|
error: "Error"
|
2772
|
-
},
|
2903
|
+
}, Mr = {
|
2773
2904
|
error: "Помилка"
|
2774
|
-
},
|
2775
|
-
en:
|
2776
|
-
uk:
|
2777
|
-
},
|
2778
|
-
defaultNS:
|
2779
|
-
resources:
|
2905
|
+
}, ht = "common", _r = {
|
2906
|
+
en: Ir,
|
2907
|
+
uk: Mr
|
2908
|
+
}, R = j.createInstance({
|
2909
|
+
defaultNS: ht,
|
2910
|
+
resources: Br(_r, ht),
|
2780
2911
|
lng: "en",
|
2781
2912
|
fallbackLng: "en"
|
2782
|
-
}),
|
2783
|
-
i18nextInstance:
|
2784
|
-
initPromise:
|
2913
|
+
}), zt = {
|
2914
|
+
i18nextInstance: R,
|
2915
|
+
initPromise: R.init().then(() => R)
|
2785
2916
|
}, pe = /* @__PURE__ */ new Map();
|
2786
|
-
pe.set("common",
|
2787
|
-
const
|
2917
|
+
pe.set("common", zt);
|
2918
|
+
const kr = (e) => {
|
2788
2919
|
if (pe.has(e.namespace))
|
2789
2920
|
return pe.get(e.namespace);
|
2790
2921
|
if (e.plugins)
|
2791
2922
|
for (const i of e.plugins)
|
2792
|
-
|
2923
|
+
R.use(i);
|
2793
2924
|
Object.keys(e.resource).forEach((i) => {
|
2794
|
-
|
2925
|
+
R.addResourceBundle(i, e.namespace, e.resource[i]);
|
2795
2926
|
});
|
2796
|
-
const t =
|
2927
|
+
const t = R.cloneInstance({
|
2797
2928
|
defaultNS: e.namespace
|
2798
2929
|
});
|
2799
|
-
let n =
|
2930
|
+
let n = zt.initPromise.then(() => t);
|
2800
2931
|
t.on("languageChanged", (i) => {
|
2801
|
-
|
2802
|
-
}),
|
2932
|
+
R.language !== i && R.changeLanguage(i);
|
2933
|
+
}), R.on("languageChanged", (i) => {
|
2803
2934
|
t.language !== i && t.changeLanguage(i);
|
2804
2935
|
});
|
2805
2936
|
const r = e.language || "en";
|
2806
|
-
|
2937
|
+
R.language !== r && (n = n.then(() => t.changeLanguage(r)).then(() => t));
|
2807
2938
|
const s = { initPromise: n, i18nextInstance: t };
|
2808
2939
|
return pe.set(e.namespace, s), s;
|
2809
2940
|
};
|
2810
|
-
function
|
2941
|
+
function Br(e, t) {
|
2811
2942
|
return Object.keys(e).reduce((n, r) => (n[r] = {
|
2812
2943
|
[t]: e[r]
|
2813
2944
|
}, n), {});
|
2814
2945
|
}
|
2815
|
-
|
2946
|
+
function Ur(e) {
|
2947
|
+
return e && e.replace(new RegExp("(?<!\\\\)'", "g"), "\\'");
|
2948
|
+
}
|
2949
|
+
const qr = {
|
2816
2950
|
errors: {
|
2817
2951
|
measure: {
|
2818
2952
|
unsupportedType: "Unsupported measure type",
|
@@ -2838,7 +2972,7 @@ const Nr = {
|
|
2838
2972
|
},
|
2839
2973
|
unsupportedDimensionalElement: "Unsupported dimensional element type"
|
2840
2974
|
}
|
2841
|
-
},
|
2975
|
+
}, Vr = {
|
2842
2976
|
errors: {
|
2843
2977
|
measure: {
|
2844
2978
|
unsupportedType: "Непідтримуваний тип measure",
|
@@ -2864,239 +2998,89 @@ const Nr = {
|
|
2864
2998
|
},
|
2865
2999
|
unsupportedDimensionalElement: "Непідтримуваний тип елемента"
|
2866
3000
|
}
|
2867
|
-
},
|
2868
|
-
en:
|
2869
|
-
uk:
|
3001
|
+
}, Kr = "sdkData", Hr = {
|
3002
|
+
en: qr,
|
3003
|
+
uk: Vr
|
2870
3004
|
};
|
2871
|
-
function
|
2872
|
-
return
|
2873
|
-
resource:
|
3005
|
+
function Wr() {
|
3006
|
+
return kr({
|
3007
|
+
resource: Hr,
|
2874
3008
|
language: "en",
|
2875
|
-
namespace:
|
3009
|
+
namespace: Kr
|
2876
3010
|
});
|
2877
3011
|
}
|
2878
|
-
|
2879
|
-
|
2880
|
-
|
2881
|
-
|
2882
|
-
|
2883
|
-
|
2884
|
-
|
2885
|
-
|
2886
|
-
|
2887
|
-
|
2888
|
-
|
2889
|
-
|
2890
|
-
|
2891
|
-
|
2892
|
-
|
2893
|
-
|
2894
|
-
|
2895
|
-
|
2896
|
-
|
2897
|
-
|
2898
|
-
|
2899
|
-
|
2900
|
-
|
2901
|
-
|
2902
|
-
|
2903
|
-
|
2904
|
-
|
2905
|
-
|
2906
|
-
|
2907
|
-
|
2908
|
-
|
2909
|
-
|
2910
|
-
|
2911
|
-
|
2912
|
-
|
2913
|
-
|
2914
|
-
|
2915
|
-
|
2916
|
-
|
2917
|
-
|
2918
|
-
|
2919
|
-
|
2920
|
-
|
2921
|
-
|
2922
|
-
|
2923
|
-
|
2924
|
-
|
2925
|
-
|
2926
|
-
|
2927
|
-
|
2928
|
-
|
2929
|
-
|
2930
|
-
|
2931
|
-
|
2932
|
-
|
2933
|
-
|
2934
|
-
|
2935
|
-
|
2936
|
-
|
2937
|
-
|
2938
|
-
|
2939
|
-
|
2940
|
-
|
2941
|
-
|
2942
|
-
|
2943
|
-
|
2944
|
-
|
2945
|
-
|
2946
|
-
|
2947
|
-
|
2948
|
-
|
2949
|
-
|
2950
|
-
/**
|
2951
|
-
* Checks whether the given object or type is a date dimension
|
2952
|
-
*
|
2953
|
-
* @param o - object to check
|
2954
|
-
* @returns true if the object or type is a date dimension
|
2955
|
-
*/
|
2956
|
-
isDateDimension(e) {
|
2957
|
-
return e ? typeof e == "string" ? e.toLowerCase() === y.DateDimension : (e.dim || e.expression) && e.level : !1;
|
2958
|
-
},
|
2959
|
-
/**
|
2960
|
-
* Checks whether the given object or type is a text dimension
|
2961
|
-
*
|
2962
|
-
* @param o - object to check
|
2963
|
-
* @returns true if the object or type is a text dimension
|
2964
|
-
*/
|
2965
|
-
isTextDimension(e) {
|
2966
|
-
return e && typeof e == "string" ? e.toLowerCase() === y.TextDimension : !1;
|
2967
|
-
},
|
2968
|
-
/**
|
2969
|
-
* Checks whether the given object or type is a numeric dimension
|
2970
|
-
*
|
2971
|
-
* @param o - object to check
|
2972
|
-
* @returns true if the object or type is a numeric dimension
|
2973
|
-
*/
|
2974
|
-
isNumericDimension(e) {
|
2975
|
-
return e && typeof e == "string" ? e.toLowerCase() === y.NumericDimension : !1;
|
2976
|
-
},
|
2977
|
-
/**
|
2978
|
-
* Checks whether the given object or type is a dimension - of any type
|
2979
|
-
*
|
2980
|
-
* @param o - object to check
|
2981
|
-
* @returns true if the object or type is a dimension - of any type
|
2982
|
-
*/
|
2983
|
-
isDimension(e) {
|
2984
|
-
if (typeof e == "object" && (e = e.type), typeof e == "string") {
|
2985
|
-
const t = e;
|
2986
|
-
return t.toLowerCase() === y.DateDimension || t.toLowerCase() === y.Dimension || t.toLowerCase() === y.TextDimension || t.toLowerCase() === y.NumericDimension;
|
2987
|
-
}
|
2988
|
-
return !1;
|
2989
|
-
},
|
2990
|
-
/**
|
2991
|
-
* Checks whether the given object or type is an attribute - of any type
|
2992
|
-
*
|
2993
|
-
* @param o - object to check
|
2994
|
-
* @returns true if the object or type is an attribute - of any type
|
2995
|
-
*/
|
2996
|
-
isAttribute(e) {
|
2997
|
-
if (typeof e == "string") {
|
2998
|
-
const t = e;
|
2999
|
-
return t.toLowerCase() === y.Attribute || t.toLowerCase() === y.TextAttribute || t.toLowerCase() === y.NumericAttribute || t.toLowerCase() === y.DateLevel;
|
3000
|
-
}
|
3001
|
-
return e && e.type ? this.isAttribute(e.type) : !1;
|
3002
|
-
},
|
3003
|
-
/**
|
3004
|
-
* Checks whether the given object or type is a filter
|
3005
|
-
*
|
3006
|
-
* @param o - object to check
|
3007
|
-
* @returns true if the object or type is a filter
|
3008
|
-
*/
|
3009
|
-
isFilter(e) {
|
3010
|
-
if (typeof e == "object" && (e = e.type), typeof e == "string") {
|
3011
|
-
const t = e;
|
3012
|
-
return t.toLowerCase() === y.Filter || t.toLowerCase() === y.DimensionFilter || t.toLowerCase() === y.MeasureFilter;
|
3013
|
-
}
|
3014
|
-
return !1;
|
3015
|
-
}
|
3016
|
-
};
|
3017
|
-
var Re;
|
3018
|
-
(function(e) {
|
3019
|
-
e.TEXT = "text", e.NUMERIC = "numeric", e.DATETIME = "datetime";
|
3020
|
-
})(Re = Re || (Re = {}));
|
3021
|
-
var Me;
|
3022
|
-
(function(e) {
|
3023
|
-
e.ASC = "asc", e.DESC = "desc";
|
3024
|
-
})(Me = Me || (Me = {}));
|
3025
|
-
var Ie;
|
3026
|
-
(function(e) {
|
3027
|
-
e.PRE = "pre", e.POST = "post";
|
3028
|
-
})(Ie = Ie || (Ie = {}));
|
3029
|
-
function Ir() {
|
3030
|
-
this.__data__ = [], this.size = 0;
|
3031
|
-
}
|
3032
|
-
function Ut(e, t) {
|
3033
|
-
return e === t || e !== e && t !== t;
|
3034
|
-
}
|
3035
|
-
function Le(e, t) {
|
3036
|
-
for (var n = e.length; n--; )
|
3037
|
-
if (Ut(e[n][0], t))
|
3038
|
-
return n;
|
3039
|
-
return -1;
|
3040
|
-
}
|
3041
|
-
var $r = Array.prototype, _r = $r.splice;
|
3042
|
-
function kr(e) {
|
3043
|
-
var t = this.__data__, n = Le(t, e);
|
3044
|
-
if (n < 0)
|
3045
|
-
return !1;
|
3046
|
-
var r = t.length - 1;
|
3047
|
-
return n == r ? t.pop() : _r.call(t, n, 1), --this.size, !0;
|
3048
|
-
}
|
3049
|
-
function Br(e) {
|
3050
|
-
var t = this.__data__, n = Le(t, e);
|
3051
|
-
return n < 0 ? void 0 : t[n][1];
|
3052
|
-
}
|
3053
|
-
function Ur(e) {
|
3054
|
-
return Le(this.__data__, e) > -1;
|
3055
|
-
}
|
3056
|
-
function Vr(e, t) {
|
3057
|
-
var n = this.__data__, r = Le(n, e);
|
3058
|
-
return r < 0 ? (++this.size, n.push([e, t])) : n[r][1] = t, this;
|
3059
|
-
}
|
3060
|
-
function M(e) {
|
3061
|
-
var t = -1, n = e == null ? 0 : e.length;
|
3062
|
-
for (this.clear(); ++t < n; ) {
|
3063
|
-
var r = e[t];
|
3064
|
-
this.set(r[0], r[1]);
|
3065
|
-
}
|
3066
|
-
}
|
3067
|
-
M.prototype.clear = Ir;
|
3068
|
-
M.prototype.delete = kr;
|
3069
|
-
M.prototype.get = Br;
|
3070
|
-
M.prototype.has = Ur;
|
3071
|
-
M.prototype.set = Vr;
|
3072
|
-
function Hr() {
|
3073
|
-
this.__data__ = new M(), this.size = 0;
|
3074
|
-
}
|
3075
|
-
function Kr(e) {
|
3076
|
-
var t = this.__data__, n = t.delete(e);
|
3077
|
-
return this.size = t.size, n;
|
3078
|
-
}
|
3079
|
-
function Wr(e) {
|
3080
|
-
return this.__data__.get(e);
|
3081
|
-
}
|
3082
|
-
function Gr(e) {
|
3083
|
-
return this.__data__.has(e);
|
3084
|
-
}
|
3085
|
-
var zr = _["__core-js_shared__"];
|
3086
|
-
const $e = zr;
|
3087
|
-
var gt = function() {
|
3088
|
-
var e = /[^.]+$/.exec($e && $e.keys && $e.keys.IE_PROTO || "");
|
3089
|
-
return e ? "Symbol(src)_1." + e : "";
|
3090
|
-
}();
|
3091
|
-
function Jr(e) {
|
3092
|
-
return !!gt && gt in e;
|
3093
|
-
}
|
3094
|
-
var qr = Function.prototype, Qr = qr.toString;
|
3095
|
-
function J(e) {
|
3096
|
-
if (e != null) {
|
3097
|
-
try {
|
3098
|
-
return Qr.call(e);
|
3099
|
-
} catch {
|
3012
|
+
Wr();
|
3013
|
+
function zr() {
|
3014
|
+
this.__data__ = [], this.size = 0;
|
3015
|
+
}
|
3016
|
+
function Gt(e, t) {
|
3017
|
+
return e === t || e !== e && t !== t;
|
3018
|
+
}
|
3019
|
+
function Le(e, t) {
|
3020
|
+
for (var n = e.length; n--; )
|
3021
|
+
if (Gt(e[n][0], t))
|
3022
|
+
return n;
|
3023
|
+
return -1;
|
3024
|
+
}
|
3025
|
+
var Gr = Array.prototype, Jr = Gr.splice;
|
3026
|
+
function Qr(e) {
|
3027
|
+
var t = this.__data__, n = Le(t, e);
|
3028
|
+
if (n < 0)
|
3029
|
+
return !1;
|
3030
|
+
var r = t.length - 1;
|
3031
|
+
return n == r ? t.pop() : Jr.call(t, n, 1), --this.size, !0;
|
3032
|
+
}
|
3033
|
+
function Yr(e) {
|
3034
|
+
var t = this.__data__, n = Le(t, e);
|
3035
|
+
return n < 0 ? void 0 : t[n][1];
|
3036
|
+
}
|
3037
|
+
function Zr(e) {
|
3038
|
+
return Le(this.__data__, e) > -1;
|
3039
|
+
}
|
3040
|
+
function Xr(e, t) {
|
3041
|
+
var n = this.__data__, r = Le(n, e);
|
3042
|
+
return r < 0 ? (++this.size, n.push([e, t])) : n[r][1] = t, this;
|
3043
|
+
}
|
3044
|
+
function k(e) {
|
3045
|
+
var t = -1, n = e == null ? 0 : e.length;
|
3046
|
+
for (this.clear(); ++t < n; ) {
|
3047
|
+
var r = e[t];
|
3048
|
+
this.set(r[0], r[1]);
|
3049
|
+
}
|
3050
|
+
}
|
3051
|
+
k.prototype.clear = zr;
|
3052
|
+
k.prototype.delete = Qr;
|
3053
|
+
k.prototype.get = Yr;
|
3054
|
+
k.prototype.has = Zr;
|
3055
|
+
k.prototype.set = Xr;
|
3056
|
+
function es() {
|
3057
|
+
this.__data__ = new k(), this.size = 0;
|
3058
|
+
}
|
3059
|
+
function ts(e) {
|
3060
|
+
var t = this.__data__, n = t.delete(e);
|
3061
|
+
return this.size = t.size, n;
|
3062
|
+
}
|
3063
|
+
function ns(e) {
|
3064
|
+
return this.__data__.get(e);
|
3065
|
+
}
|
3066
|
+
function rs(e) {
|
3067
|
+
return this.__data__.has(e);
|
3068
|
+
}
|
3069
|
+
var ss = U["__core-js_shared__"];
|
3070
|
+
const Ne = ss;
|
3071
|
+
var mt = function() {
|
3072
|
+
var e = /[^.]+$/.exec(Ne && Ne.keys && Ne.keys.IE_PROTO || "");
|
3073
|
+
return e ? "Symbol(src)_1." + e : "";
|
3074
|
+
}();
|
3075
|
+
function is(e) {
|
3076
|
+
return !!mt && mt in e;
|
3077
|
+
}
|
3078
|
+
var as = Function.prototype, os = as.toString;
|
3079
|
+
function G(e) {
|
3080
|
+
if (e != null) {
|
3081
|
+
try {
|
3082
|
+
return os.call(e);
|
3083
|
+
} catch {
|
3100
3084
|
}
|
3101
3085
|
try {
|
3102
3086
|
return e + "";
|
@@ -3105,91 +3089,91 @@ function J(e) {
|
|
3105
3089
|
}
|
3106
3090
|
return "";
|
3107
3091
|
}
|
3108
|
-
var
|
3109
|
-
"^" +
|
3092
|
+
var us = /[\\^$.*+?()[\]{}|]/g, ls = /^\[object .+?Constructor\]$/, cs = Function.prototype, fs = Object.prototype, ds = cs.toString, ps = fs.hasOwnProperty, gs = RegExp(
|
3093
|
+
"^" + ds.call(ps).replace(us, "\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, "$1.*?") + "$"
|
3110
3094
|
);
|
3111
|
-
function
|
3112
|
-
if (!De(e) ||
|
3095
|
+
function hs(e) {
|
3096
|
+
if (!De(e) || is(e))
|
3113
3097
|
return !1;
|
3114
|
-
var t =
|
3115
|
-
return t.test(
|
3098
|
+
var t = Mn(e) ? gs : ls;
|
3099
|
+
return t.test(G(e));
|
3116
3100
|
}
|
3117
|
-
function
|
3101
|
+
function ms(e, t) {
|
3118
3102
|
return e == null ? void 0 : e[t];
|
3119
3103
|
}
|
3120
|
-
function
|
3121
|
-
var n =
|
3122
|
-
return
|
3104
|
+
function J(e, t) {
|
3105
|
+
var n = ms(e, t);
|
3106
|
+
return hs(n) ? n : void 0;
|
3123
3107
|
}
|
3124
|
-
var
|
3125
|
-
const ue =
|
3126
|
-
var
|
3127
|
-
const le =
|
3128
|
-
function
|
3108
|
+
var ys = J(U, "Map");
|
3109
|
+
const ue = ys;
|
3110
|
+
var bs = J(Object, "create");
|
3111
|
+
const le = bs;
|
3112
|
+
function Ss() {
|
3129
3113
|
this.__data__ = le ? le(null) : {}, this.size = 0;
|
3130
3114
|
}
|
3131
|
-
function
|
3115
|
+
function Os(e) {
|
3132
3116
|
var t = this.has(e) && delete this.__data__[e];
|
3133
3117
|
return this.size -= t ? 1 : 0, t;
|
3134
3118
|
}
|
3135
|
-
var
|
3136
|
-
function
|
3119
|
+
var vs = "__lodash_hash_undefined__", xs = Object.prototype, Cs = xs.hasOwnProperty;
|
3120
|
+
function ws(e) {
|
3137
3121
|
var t = this.__data__;
|
3138
3122
|
if (le) {
|
3139
3123
|
var n = t[e];
|
3140
|
-
return n ===
|
3124
|
+
return n === vs ? void 0 : n;
|
3141
3125
|
}
|
3142
|
-
return
|
3126
|
+
return Cs.call(t, e) ? t[e] : void 0;
|
3143
3127
|
}
|
3144
|
-
var
|
3145
|
-
function
|
3128
|
+
var Ds = Object.prototype, js = Ds.hasOwnProperty;
|
3129
|
+
function Ls(e) {
|
3146
3130
|
var t = this.__data__;
|
3147
|
-
return le ? t[e] !== void 0 :
|
3131
|
+
return le ? t[e] !== void 0 : js.call(t, e);
|
3148
3132
|
}
|
3149
|
-
var
|
3150
|
-
function
|
3133
|
+
var Ps = "__lodash_hash_undefined__";
|
3134
|
+
function As(e, t) {
|
3151
3135
|
var n = this.__data__;
|
3152
|
-
return this.size += this.has(e) ? 0 : 1, n[e] = le && t === void 0 ?
|
3136
|
+
return this.size += this.has(e) ? 0 : 1, n[e] = le && t === void 0 ? Ps : t, this;
|
3153
3137
|
}
|
3154
|
-
function
|
3138
|
+
function z(e) {
|
3155
3139
|
var t = -1, n = e == null ? 0 : e.length;
|
3156
3140
|
for (this.clear(); ++t < n; ) {
|
3157
3141
|
var r = e[t];
|
3158
3142
|
this.set(r[0], r[1]);
|
3159
3143
|
}
|
3160
3144
|
}
|
3161
|
-
|
3162
|
-
|
3163
|
-
|
3164
|
-
|
3165
|
-
|
3166
|
-
function
|
3145
|
+
z.prototype.clear = Ss;
|
3146
|
+
z.prototype.delete = Os;
|
3147
|
+
z.prototype.get = ws;
|
3148
|
+
z.prototype.has = Ls;
|
3149
|
+
z.prototype.set = As;
|
3150
|
+
function Fs() {
|
3167
3151
|
this.size = 0, this.__data__ = {
|
3168
|
-
hash: new
|
3169
|
-
map: new (ue ||
|
3170
|
-
string: new
|
3152
|
+
hash: new z(),
|
3153
|
+
map: new (ue || k)(),
|
3154
|
+
string: new z()
|
3171
3155
|
};
|
3172
3156
|
}
|
3173
|
-
function
|
3157
|
+
function Es(e) {
|
3174
3158
|
var t = typeof e;
|
3175
3159
|
return t == "string" || t == "number" || t == "symbol" || t == "boolean" ? e !== "__proto__" : e === null;
|
3176
3160
|
}
|
3177
|
-
function
|
3161
|
+
function Pe(e, t) {
|
3178
3162
|
var n = e.__data__;
|
3179
|
-
return
|
3163
|
+
return Es(t) ? n[typeof t == "string" ? "string" : "hash"] : n.map;
|
3180
3164
|
}
|
3181
|
-
function
|
3182
|
-
var t =
|
3165
|
+
function Ns(e) {
|
3166
|
+
var t = Pe(this, e).delete(e);
|
3183
3167
|
return this.size -= t ? 1 : 0, t;
|
3184
3168
|
}
|
3185
|
-
function
|
3186
|
-
return
|
3169
|
+
function Ts(e) {
|
3170
|
+
return Pe(this, e).get(e);
|
3187
3171
|
}
|
3188
|
-
function
|
3189
|
-
return
|
3172
|
+
function Rs(e) {
|
3173
|
+
return Pe(this, e).has(e);
|
3190
3174
|
}
|
3191
|
-
function
|
3192
|
-
var n =
|
3175
|
+
function $s(e, t) {
|
3176
|
+
var n = Pe(this, e), r = n.size;
|
3193
3177
|
return n.set(e, t), this.size += n.size == r ? 0 : 1, this;
|
3194
3178
|
}
|
3195
3179
|
function te(e) {
|
@@ -3199,311 +3183,534 @@ function te(e) {
|
|
3199
3183
|
this.set(r[0], r[1]);
|
3200
3184
|
}
|
3201
3185
|
}
|
3202
|
-
te.prototype.clear =
|
3203
|
-
te.prototype.delete =
|
3204
|
-
te.prototype.get =
|
3205
|
-
te.prototype.has =
|
3206
|
-
te.prototype.set =
|
3207
|
-
var
|
3208
|
-
function
|
3186
|
+
te.prototype.clear = Fs;
|
3187
|
+
te.prototype.delete = Ns;
|
3188
|
+
te.prototype.get = Ts;
|
3189
|
+
te.prototype.has = Rs;
|
3190
|
+
te.prototype.set = $s;
|
3191
|
+
var Is = 200;
|
3192
|
+
function Ms(e, t) {
|
3209
3193
|
var n = this.__data__;
|
3210
|
-
if (n instanceof
|
3194
|
+
if (n instanceof k) {
|
3211
3195
|
var r = n.__data__;
|
3212
|
-
if (!ue || r.length <
|
3196
|
+
if (!ue || r.length < Is - 1)
|
3213
3197
|
return r.push([e, t]), this.size = ++n.size, this;
|
3214
3198
|
n = this.__data__ = new te(r);
|
3215
3199
|
}
|
3216
3200
|
return n.set(e, t), this.size = n.size, this;
|
3217
3201
|
}
|
3218
3202
|
function ne(e) {
|
3219
|
-
var t = this.__data__ = new
|
3203
|
+
var t = this.__data__ = new k(e);
|
3220
3204
|
this.size = t.size;
|
3221
3205
|
}
|
3222
|
-
ne.prototype.clear =
|
3223
|
-
ne.prototype.delete =
|
3224
|
-
ne.prototype.get =
|
3225
|
-
ne.prototype.has =
|
3226
|
-
ne.prototype.set =
|
3227
|
-
function
|
3206
|
+
ne.prototype.clear = es;
|
3207
|
+
ne.prototype.delete = ts;
|
3208
|
+
ne.prototype.get = ns;
|
3209
|
+
ne.prototype.has = rs;
|
3210
|
+
ne.prototype.set = Ms;
|
3211
|
+
function _s(e, t) {
|
3228
3212
|
for (var n = -1, r = e == null ? 0 : e.length; ++n < r && t(e[n], n, e) !== !1; )
|
3229
3213
|
;
|
3230
3214
|
return e;
|
3231
3215
|
}
|
3232
|
-
var
|
3216
|
+
var ks = function() {
|
3233
3217
|
try {
|
3234
|
-
var e =
|
3218
|
+
var e = J(Object, "defineProperty");
|
3235
3219
|
return e({}, "", {}), e;
|
3236
3220
|
} catch {
|
3237
3221
|
}
|
3238
3222
|
}();
|
3239
|
-
const
|
3240
|
-
function
|
3241
|
-
t == "__proto__" &&
|
3223
|
+
const yt = ks;
|
3224
|
+
function Jt(e, t, n) {
|
3225
|
+
t == "__proto__" && yt ? yt(e, t, {
|
3242
3226
|
configurable: !0,
|
3243
3227
|
enumerable: !0,
|
3244
3228
|
value: n,
|
3245
3229
|
writable: !0
|
3246
3230
|
}) : e[t] = n;
|
3247
3231
|
}
|
3248
|
-
var
|
3249
|
-
function
|
3232
|
+
var Bs = Object.prototype, Us = Bs.hasOwnProperty;
|
3233
|
+
function Qt(e, t, n) {
|
3250
3234
|
var r = e[t];
|
3251
|
-
(!(
|
3235
|
+
(!(Us.call(e, t) && Gt(r, n)) || n === void 0 && !(t in e)) && Jt(e, t, n);
|
3252
3236
|
}
|
3253
|
-
function
|
3237
|
+
function Ae(e, t, n, r) {
|
3254
3238
|
var s = !n;
|
3255
3239
|
n || (n = {});
|
3256
3240
|
for (var i = -1, a = t.length; ++i < a; ) {
|
3257
3241
|
var o = t[i], u = r ? r(n[o], e[o], o, n, e) : void 0;
|
3258
|
-
u === void 0 && (u = e[o]), s ?
|
3242
|
+
u === void 0 && (u = e[o]), s ? Jt(n, o, u) : Qt(n, o, u);
|
3259
3243
|
}
|
3260
3244
|
return n;
|
3261
3245
|
}
|
3262
|
-
function
|
3263
|
-
return e &&
|
3246
|
+
function qs(e, t) {
|
3247
|
+
return e && Ae(t, We(t), e);
|
3264
3248
|
}
|
3265
|
-
function
|
3249
|
+
function Vs(e) {
|
3266
3250
|
var t = [];
|
3267
3251
|
if (e != null)
|
3268
3252
|
for (var n in Object(e))
|
3269
3253
|
t.push(n);
|
3270
3254
|
return t;
|
3271
3255
|
}
|
3272
|
-
var
|
3273
|
-
function
|
3256
|
+
var Ks = Object.prototype, Hs = Ks.hasOwnProperty;
|
3257
|
+
function Ws(e) {
|
3274
3258
|
if (!De(e))
|
3275
|
-
return
|
3276
|
-
var t =
|
3259
|
+
return Vs(e);
|
3260
|
+
var t = It(e), n = [];
|
3277
3261
|
for (var r in e)
|
3278
|
-
r == "constructor" && (t || !
|
3262
|
+
r == "constructor" && (t || !Hs.call(e, r)) || n.push(r);
|
3279
3263
|
return n;
|
3280
3264
|
}
|
3281
3265
|
function Je(e) {
|
3282
|
-
return
|
3266
|
+
return _n(e) ? kn(e, !0) : Ws(e);
|
3283
3267
|
}
|
3284
|
-
function
|
3285
|
-
return e &&
|
3268
|
+
function zs(e, t) {
|
3269
|
+
return e && Ae(t, Je(t), e);
|
3286
3270
|
}
|
3287
|
-
var
|
3288
|
-
function
|
3271
|
+
var Yt = typeof exports == "object" && exports && !exports.nodeType && exports, bt = Yt && typeof module == "object" && module && !module.nodeType && module, Gs = bt && bt.exports === Yt, St = Gs ? U.Buffer : void 0, Ot = St ? St.allocUnsafe : void 0;
|
3272
|
+
function Js(e, t) {
|
3289
3273
|
if (t)
|
3290
3274
|
return e.slice();
|
3291
|
-
var n = e.length, r =
|
3275
|
+
var n = e.length, r = Ot ? Ot(n) : new e.constructor(n);
|
3292
3276
|
return e.copy(r), r;
|
3293
3277
|
}
|
3294
|
-
function
|
3278
|
+
function Qs(e, t) {
|
3295
3279
|
var n = -1, r = e.length;
|
3296
3280
|
for (t || (t = Array(r)); ++n < r; )
|
3297
3281
|
t[n] = e[n];
|
3298
3282
|
return t;
|
3299
3283
|
}
|
3300
|
-
function
|
3284
|
+
function Ys(e, t) {
|
3301
3285
|
for (var n = -1, r = e == null ? 0 : e.length, s = 0, i = []; ++n < r; ) {
|
3302
3286
|
var a = e[n];
|
3303
3287
|
t(a, n, e) && (i[s++] = a);
|
3304
3288
|
}
|
3305
3289
|
return i;
|
3306
3290
|
}
|
3307
|
-
function
|
3291
|
+
function Zt() {
|
3308
3292
|
return [];
|
3309
3293
|
}
|
3310
|
-
var
|
3311
|
-
return e == null ? [] : (e = Object(e),
|
3312
|
-
return
|
3294
|
+
var Zs = Object.prototype, Xs = Zs.propertyIsEnumerable, vt = Object.getOwnPropertySymbols, ei = vt ? function(e) {
|
3295
|
+
return e == null ? [] : (e = Object(e), Ys(vt(e), function(t) {
|
3296
|
+
return Xs.call(e, t);
|
3313
3297
|
}));
|
3314
|
-
} :
|
3315
|
-
const
|
3316
|
-
function
|
3317
|
-
return
|
3298
|
+
} : Zt;
|
3299
|
+
const Qe = ei;
|
3300
|
+
function ti(e, t) {
|
3301
|
+
return Ae(e, Qe(e), t);
|
3318
3302
|
}
|
3319
|
-
function
|
3303
|
+
function Xt(e, t) {
|
3320
3304
|
for (var n = -1, r = t.length, s = e.length; ++n < r; )
|
3321
3305
|
e[s + n] = t[n];
|
3322
3306
|
return e;
|
3323
3307
|
}
|
3324
|
-
var
|
3325
|
-
const
|
3326
|
-
var
|
3308
|
+
var ni = Bn(Object.getPrototypeOf, Object);
|
3309
|
+
const en = ni;
|
3310
|
+
var ri = Object.getOwnPropertySymbols, si = ri ? function(e) {
|
3327
3311
|
for (var t = []; e; )
|
3328
|
-
|
3312
|
+
Xt(t, Qe(e)), e = en(e);
|
3329
3313
|
return t;
|
3330
|
-
} :
|
3331
|
-
const
|
3332
|
-
function
|
3333
|
-
return
|
3314
|
+
} : Zt;
|
3315
|
+
const tn = si;
|
3316
|
+
function ii(e, t) {
|
3317
|
+
return Ae(e, tn(e), t);
|
3334
3318
|
}
|
3335
|
-
function
|
3319
|
+
function nn(e, t, n) {
|
3336
3320
|
var r = t(e);
|
3337
|
-
return
|
3321
|
+
return Mt(e) ? r : Xt(r, n(e));
|
3338
3322
|
}
|
3339
|
-
function
|
3340
|
-
return
|
3323
|
+
function ai(e) {
|
3324
|
+
return nn(e, We, Qe);
|
3341
3325
|
}
|
3342
|
-
function
|
3343
|
-
return
|
3326
|
+
function oi(e) {
|
3327
|
+
return nn(e, Je, tn);
|
3344
3328
|
}
|
3345
|
-
var
|
3346
|
-
const Ue =
|
3347
|
-
var
|
3348
|
-
const
|
3349
|
-
var
|
3350
|
-
const
|
3351
|
-
var
|
3352
|
-
const Ke =
|
3353
|
-
var
|
3354
|
-
(Ue && H(new Ue(new ArrayBuffer(1))) !=
|
3355
|
-
var t =
|
3329
|
+
var ui = J(U, "DataView");
|
3330
|
+
const Ue = ui;
|
3331
|
+
var li = J(U, "Promise");
|
3332
|
+
const qe = li;
|
3333
|
+
var ci = J(U, "Set");
|
3334
|
+
const Ve = ci;
|
3335
|
+
var fi = J(U, "WeakMap");
|
3336
|
+
const Ke = fi;
|
3337
|
+
var xt = "[object Map]", di = "[object Object]", Ct = "[object Promise]", wt = "[object Set]", Dt = "[object WeakMap]", jt = "[object DataView]", pi = G(Ue), gi = G(ue), hi = G(qe), mi = G(Ve), yi = G(Ke), H = _t;
|
3338
|
+
(Ue && H(new Ue(new ArrayBuffer(1))) != jt || ue && H(new ue()) != xt || qe && H(qe.resolve()) != Ct || Ve && H(new Ve()) != wt || Ke && H(new Ke()) != Dt) && (H = function(e) {
|
3339
|
+
var t = _t(e), n = t == di ? e.constructor : void 0, r = n ? G(n) : "";
|
3356
3340
|
if (r)
|
3357
3341
|
switch (r) {
|
3358
|
-
case
|
3359
|
-
return
|
3360
|
-
case
|
3361
|
-
return St;
|
3362
|
-
case si:
|
3363
|
-
return vt;
|
3364
|
-
case ii:
|
3342
|
+
case pi:
|
3343
|
+
return jt;
|
3344
|
+
case gi:
|
3365
3345
|
return xt;
|
3366
|
-
case
|
3346
|
+
case hi:
|
3347
|
+
return Ct;
|
3348
|
+
case mi:
|
3367
3349
|
return wt;
|
3350
|
+
case yi:
|
3351
|
+
return Dt;
|
3368
3352
|
}
|
3369
3353
|
return t;
|
3370
3354
|
});
|
3371
|
-
const
|
3372
|
-
var
|
3373
|
-
function
|
3355
|
+
const Ye = H;
|
3356
|
+
var bi = Object.prototype, Si = bi.hasOwnProperty;
|
3357
|
+
function Oi(e) {
|
3374
3358
|
var t = e.length, n = new e.constructor(t);
|
3375
|
-
return t && typeof e[0] == "string" &&
|
3359
|
+
return t && typeof e[0] == "string" && Si.call(e, "index") && (n.index = e.index, n.input = e.input), n;
|
3376
3360
|
}
|
3377
|
-
var
|
3378
|
-
const
|
3379
|
-
function
|
3361
|
+
var vi = U.Uint8Array;
|
3362
|
+
const Lt = vi;
|
3363
|
+
function Ze(e) {
|
3380
3364
|
var t = new e.constructor(e.byteLength);
|
3381
|
-
return new
|
3365
|
+
return new Lt(t).set(new Lt(e)), t;
|
3382
3366
|
}
|
3383
|
-
function
|
3384
|
-
var n = t ?
|
3367
|
+
function xi(e, t) {
|
3368
|
+
var n = t ? Ze(e.buffer) : e.buffer;
|
3385
3369
|
return new e.constructor(n, e.byteOffset, e.byteLength);
|
3386
3370
|
}
|
3387
|
-
var
|
3388
|
-
function
|
3389
|
-
var t = new e.constructor(e.source,
|
3371
|
+
var Ci = /\w*$/;
|
3372
|
+
function wi(e) {
|
3373
|
+
var t = new e.constructor(e.source, Ci.exec(e));
|
3390
3374
|
return t.lastIndex = e.lastIndex, t;
|
3391
3375
|
}
|
3392
|
-
var
|
3393
|
-
function
|
3394
|
-
return
|
3376
|
+
var Pt = rt ? rt.prototype : void 0, At = Pt ? Pt.valueOf : void 0;
|
3377
|
+
function Di(e) {
|
3378
|
+
return At ? Object(At.call(e)) : {};
|
3395
3379
|
}
|
3396
|
-
function
|
3397
|
-
var n = t ?
|
3380
|
+
function ji(e, t) {
|
3381
|
+
var n = t ? Ze(e.buffer) : e.buffer;
|
3398
3382
|
return new e.constructor(n, e.byteOffset, e.length);
|
3399
3383
|
}
|
3400
|
-
var
|
3401
|
-
function
|
3384
|
+
var Li = "[object Boolean]", Pi = "[object Date]", Ai = "[object Map]", Fi = "[object Number]", Ei = "[object RegExp]", Ni = "[object Set]", Ti = "[object String]", Ri = "[object Symbol]", $i = "[object ArrayBuffer]", Ii = "[object DataView]", Mi = "[object Float32Array]", _i = "[object Float64Array]", ki = "[object Int8Array]", Bi = "[object Int16Array]", Ui = "[object Int32Array]", qi = "[object Uint8Array]", Vi = "[object Uint8ClampedArray]", Ki = "[object Uint16Array]", Hi = "[object Uint32Array]";
|
3385
|
+
function Wi(e, t, n) {
|
3402
3386
|
var r = e.constructor;
|
3403
3387
|
switch (t) {
|
3404
|
-
case
|
3405
|
-
return
|
3406
|
-
case mi:
|
3407
|
-
case bi:
|
3408
|
-
return new r(+e);
|
3409
|
-
case ji:
|
3410
|
-
return fi(e, n);
|
3411
|
-
case Di:
|
3412
|
-
case Pi:
|
3388
|
+
case $i:
|
3389
|
+
return Ze(e);
|
3413
3390
|
case Li:
|
3414
|
-
case
|
3415
|
-
|
3416
|
-
case
|
3391
|
+
case Pi:
|
3392
|
+
return new r(+e);
|
3393
|
+
case Ii:
|
3394
|
+
return xi(e, n);
|
3395
|
+
case Mi:
|
3396
|
+
case _i:
|
3397
|
+
case ki:
|
3398
|
+
case Bi:
|
3399
|
+
case Ui:
|
3400
|
+
case qi:
|
3401
|
+
case Vi:
|
3402
|
+
case Ki:
|
3403
|
+
case Hi:
|
3404
|
+
return ji(e, n);
|
3417
3405
|
case Ai:
|
3418
|
-
case Ti:
|
3419
|
-
case Ri:
|
3420
|
-
return hi(e, n);
|
3421
|
-
case yi:
|
3422
3406
|
return new r();
|
3423
|
-
case
|
3424
|
-
case
|
3407
|
+
case Fi:
|
3408
|
+
case Ti:
|
3425
3409
|
return new r(e);
|
3426
|
-
case
|
3427
|
-
return
|
3428
|
-
case
|
3410
|
+
case Ei:
|
3411
|
+
return wi(e);
|
3412
|
+
case Ni:
|
3429
3413
|
return new r();
|
3430
|
-
case
|
3431
|
-
return
|
3414
|
+
case Ri:
|
3415
|
+
return Di(e);
|
3432
3416
|
}
|
3433
3417
|
}
|
3434
|
-
var
|
3418
|
+
var Ft = Object.create, zi = function() {
|
3435
3419
|
function e() {
|
3436
3420
|
}
|
3437
3421
|
return function(t) {
|
3438
3422
|
if (!De(t))
|
3439
3423
|
return {};
|
3440
|
-
if (
|
3441
|
-
return
|
3424
|
+
if (Ft)
|
3425
|
+
return Ft(t);
|
3442
3426
|
e.prototype = t;
|
3443
3427
|
var n = new e();
|
3444
3428
|
return e.prototype = void 0, n;
|
3445
3429
|
};
|
3446
3430
|
}();
|
3447
|
-
const
|
3448
|
-
function
|
3449
|
-
return typeof e.constructor == "function" && !
|
3431
|
+
const Gi = zi;
|
3432
|
+
function Ji(e) {
|
3433
|
+
return typeof e.constructor == "function" && !It(e) ? Gi(en(e)) : {};
|
3450
3434
|
}
|
3451
|
-
var
|
3452
|
-
function
|
3453
|
-
return
|
3435
|
+
var Qi = "[object Map]";
|
3436
|
+
function Yi(e) {
|
3437
|
+
return kt(e) && Ye(e) == Qi;
|
3454
3438
|
}
|
3455
|
-
var
|
3456
|
-
const
|
3457
|
-
var
|
3458
|
-
function
|
3459
|
-
return
|
3439
|
+
var Et = Se && Se.isMap, Zi = Et ? Bt(Et) : Yi;
|
3440
|
+
const Xi = Zi;
|
3441
|
+
var ea = "[object Set]";
|
3442
|
+
function ta(e) {
|
3443
|
+
return kt(e) && Ye(e) == ea;
|
3460
3444
|
}
|
3461
|
-
var
|
3462
|
-
const
|
3463
|
-
var
|
3464
|
-
|
3465
|
-
|
3445
|
+
var Nt = Se && Se.isSet, na = Nt ? Bt(Nt) : ta;
|
3446
|
+
const ra = na;
|
3447
|
+
var sa = 1, ia = 2, aa = 4, rn = "[object Arguments]", oa = "[object Array]", ua = "[object Boolean]", la = "[object Date]", ca = "[object Error]", sn = "[object Function]", fa = "[object GeneratorFunction]", da = "[object Map]", pa = "[object Number]", an = "[object Object]", ga = "[object RegExp]", ha = "[object Set]", ma = "[object String]", ya = "[object Symbol]", ba = "[object WeakMap]", Sa = "[object ArrayBuffer]", Oa = "[object DataView]", va = "[object Float32Array]", xa = "[object Float64Array]", Ca = "[object Int8Array]", wa = "[object Int16Array]", Da = "[object Int32Array]", ja = "[object Uint8Array]", La = "[object Uint8ClampedArray]", Pa = "[object Uint16Array]", Aa = "[object Uint32Array]", O = {};
|
3448
|
+
O[rn] = O[oa] = O[Sa] = O[Oa] = O[ua] = O[la] = O[va] = O[xa] = O[Ca] = O[wa] = O[Da] = O[da] = O[pa] = O[an] = O[ga] = O[ha] = O[ma] = O[ya] = O[ja] = O[La] = O[Pa] = O[Aa] = !0;
|
3449
|
+
O[ca] = O[sn] = O[ba] = !1;
|
3466
3450
|
function ge(e, t, n, r, s, i) {
|
3467
|
-
var a, o = t &
|
3451
|
+
var a, o = t & sa, u = t & ia, c = t & aa;
|
3468
3452
|
if (n && (a = s ? n(e, r, s, i) : n(e)), a !== void 0)
|
3469
3453
|
return a;
|
3470
3454
|
if (!De(e))
|
3471
3455
|
return e;
|
3472
|
-
var f =
|
3456
|
+
var f = Mt(e);
|
3473
3457
|
if (f) {
|
3474
|
-
if (a =
|
3475
|
-
return
|
3458
|
+
if (a = Oi(e), !o)
|
3459
|
+
return Qs(e, a);
|
3476
3460
|
} else {
|
3477
|
-
var d =
|
3478
|
-
if (
|
3479
|
-
return
|
3480
|
-
if (d ==
|
3481
|
-
if (a = u || l ? {} :
|
3482
|
-
return u ?
|
3461
|
+
var d = Ye(e), l = d == sn || d == fa;
|
3462
|
+
if (Un(e))
|
3463
|
+
return Js(e, o);
|
3464
|
+
if (d == an || d == rn || l && !s) {
|
3465
|
+
if (a = u || l ? {} : Ji(e), !o)
|
3466
|
+
return u ? ii(e, zs(a, e)) : ti(e, qs(a, e));
|
3483
3467
|
} else {
|
3484
|
-
if (!
|
3468
|
+
if (!O[d])
|
3485
3469
|
return s ? e : {};
|
3486
|
-
a =
|
3470
|
+
a = Wi(e, d, o);
|
3471
|
+
}
|
3472
|
+
}
|
3473
|
+
i || (i = new ne());
|
3474
|
+
var g = i.get(e);
|
3475
|
+
if (g)
|
3476
|
+
return g;
|
3477
|
+
i.set(e, a), ra(e) ? e.forEach(function(h) {
|
3478
|
+
a.add(ge(h, t, n, h, e, i));
|
3479
|
+
}) : Xi(e) && e.forEach(function(h, v) {
|
3480
|
+
a.set(v, ge(h, t, n, v, e, i));
|
3481
|
+
});
|
3482
|
+
var p = c ? u ? oi : ai : u ? Je : We, m = f ? void 0 : p(e);
|
3483
|
+
return _s(m || e, function(h, v) {
|
3484
|
+
m && (v = h, h = e[v]), Qt(a, v, ge(h, t, n, v, e, i));
|
3485
|
+
}), a;
|
3486
|
+
}
|
3487
|
+
var Fa = 1, Ea = 4;
|
3488
|
+
function Na(e) {
|
3489
|
+
return ge(e, Fa | Ea);
|
3490
|
+
}
|
3491
|
+
function Ta(e) {
|
3492
|
+
return Buffer.from(e).toString("utf8");
|
3493
|
+
}
|
3494
|
+
function Ra(e) {
|
3495
|
+
return String.fromCharCode.apply(null, new Uint16Array(e));
|
3496
|
+
}
|
3497
|
+
function $a() {
|
3498
|
+
return "UNSUPPORTED";
|
3499
|
+
}
|
3500
|
+
typeof Buffer < "u" && Buffer.from;
|
3501
|
+
var Te;
|
3502
|
+
(function(e) {
|
3503
|
+
e[e.None = 0] = "None", e[e.Ascending = 1] = "Ascending", e[e.Descending = 2] = "Descending";
|
3504
|
+
})(Te = Te || (Te = {}));
|
3505
|
+
const b = {
|
3506
|
+
Measure: "measure",
|
3507
|
+
MeasureTemplate: "measuretemplate",
|
3508
|
+
BaseMeasure: "basemeasure",
|
3509
|
+
CalculatedMeasure: "calculatedmeasure",
|
3510
|
+
Dimension: "dimension",
|
3511
|
+
DateDimension: "datedimension",
|
3512
|
+
TextDimension: "textdimension",
|
3513
|
+
NumericDimension: "numericdimension",
|
3514
|
+
DateLevel: "datelevel",
|
3515
|
+
Attribute: "attribute",
|
3516
|
+
TextAttribute: "text-attribute",
|
3517
|
+
NumericAttribute: "numeric-attribute",
|
3518
|
+
Filter: "filter",
|
3519
|
+
DimensionFilter: "dimensionfilter",
|
3520
|
+
MeasureFilter: "measurefilter",
|
3521
|
+
/**
|
3522
|
+
* Checks whether the given object or type is a metadata element
|
3523
|
+
*
|
3524
|
+
* @param o - object to check
|
3525
|
+
* @returns true if the object or type is a metadata element
|
3526
|
+
*/
|
3527
|
+
isMetadata(e) {
|
3528
|
+
return b.isMeasure(e) || b.isDimension(e) || b.isAttribute(e) || b.isFilter(e);
|
3529
|
+
},
|
3530
|
+
/**
|
3531
|
+
* Checks whether the given object or type is a measure template
|
3532
|
+
*
|
3533
|
+
* @param o - object to check
|
3534
|
+
* @returns true if the object or type is a measure template
|
3535
|
+
*/
|
3536
|
+
isMeasureTemplate(e) {
|
3537
|
+
return e ? typeof e == "string" ? e.toLowerCase() === b.MeasureTemplate : e.agg === "*" || e.aggregation === "*" || e.type && e.type.toLowerCase() === b.MeasureTemplate : !1;
|
3538
|
+
},
|
3539
|
+
/**
|
3540
|
+
* Checks whether the given object or type is a base measure
|
3541
|
+
*
|
3542
|
+
* @param o - object to check
|
3543
|
+
* @returns true if the object or type is a base measure
|
3544
|
+
*/
|
3545
|
+
isBaseMeasure(e) {
|
3546
|
+
return e ? typeof e == "string" ? e.toLowerCase() === b.BaseMeasure : (e.agg || e.aggregation) && (e.attribute || e.jaql) && !this.isMeasureTemplate(e) : !1;
|
3547
|
+
},
|
3548
|
+
/**
|
3549
|
+
* Checks whether the given object or type is a measure - of any type
|
3550
|
+
*
|
3551
|
+
* @param o - object to check
|
3552
|
+
* @returns true if the object or type is a measure - of any type
|
3553
|
+
*/
|
3554
|
+
isMeasure(e) {
|
3555
|
+
if (!e)
|
3556
|
+
return !1;
|
3557
|
+
if (typeof e == "string") {
|
3558
|
+
const t = e;
|
3559
|
+
return t.toLowerCase() === b.Measure || t.toLowerCase() === b.BaseMeasure || t.toLowerCase() === b.MeasureTemplate || t.toLowerCase() === b.CalculatedMeasure;
|
3487
3560
|
}
|
3561
|
+
return this.isBaseMeasure(e) || this.isCalculatedMeasure(e) || this.isMeasureTemplate(e);
|
3562
|
+
},
|
3563
|
+
/**
|
3564
|
+
* Checks whether the given object or type is a calculated measure
|
3565
|
+
*
|
3566
|
+
* @param o - object to check
|
3567
|
+
* @returns true if the object or type is a calculated measure
|
3568
|
+
*/
|
3569
|
+
isCalculatedMeasure(e) {
|
3570
|
+
return e ? typeof e == "string" ? e.toLowerCase() === b.CalculatedMeasure : (e.expression || e.formula) && e.context : !1;
|
3571
|
+
},
|
3572
|
+
/**
|
3573
|
+
* Checks whether the given object or type is a date dimension
|
3574
|
+
*
|
3575
|
+
* @param o - object to check
|
3576
|
+
* @returns true if the object or type is a date dimension
|
3577
|
+
*/
|
3578
|
+
isDateDimension(e) {
|
3579
|
+
return e ? typeof e == "string" ? e.toLowerCase() === b.DateDimension : (e.dim || e.expression) && e.level : !1;
|
3580
|
+
},
|
3581
|
+
/**
|
3582
|
+
* Checks whether the given object or type is a text dimension
|
3583
|
+
*
|
3584
|
+
* @param o - object to check
|
3585
|
+
* @returns true if the object or type is a text dimension
|
3586
|
+
*/
|
3587
|
+
isTextDimension(e) {
|
3588
|
+
return e && typeof e == "string" ? e.toLowerCase() === b.TextDimension : !1;
|
3589
|
+
},
|
3590
|
+
/**
|
3591
|
+
* Checks whether the given object or type is a numeric dimension
|
3592
|
+
*
|
3593
|
+
* @param o - object to check
|
3594
|
+
* @returns true if the object or type is a numeric dimension
|
3595
|
+
*/
|
3596
|
+
isNumericDimension(e) {
|
3597
|
+
return e && typeof e == "string" ? e.toLowerCase() === b.NumericDimension : !1;
|
3598
|
+
},
|
3599
|
+
/**
|
3600
|
+
* Checks whether the given object or type is a dimension - of any type
|
3601
|
+
*
|
3602
|
+
* @param o - object to check
|
3603
|
+
* @returns true if the object or type is a dimension - of any type
|
3604
|
+
*/
|
3605
|
+
isDimension(e) {
|
3606
|
+
if (typeof e == "object" && (e = e.type), typeof e == "string") {
|
3607
|
+
const t = e;
|
3608
|
+
return t.toLowerCase() === b.DateDimension || t.toLowerCase() === b.Dimension || t.toLowerCase() === b.TextDimension || t.toLowerCase() === b.NumericDimension;
|
3609
|
+
}
|
3610
|
+
return !1;
|
3611
|
+
},
|
3612
|
+
/**
|
3613
|
+
* Checks whether the given object or type is an attribute - of any type
|
3614
|
+
*
|
3615
|
+
* @param o - object to check
|
3616
|
+
* @returns true if the object or type is an attribute - of any type
|
3617
|
+
*/
|
3618
|
+
isAttribute(e) {
|
3619
|
+
if (typeof e == "string") {
|
3620
|
+
const t = e;
|
3621
|
+
return t.toLowerCase() === b.Attribute || t.toLowerCase() === b.TextAttribute || t.toLowerCase() === b.NumericAttribute || t.toLowerCase() === b.DateLevel;
|
3622
|
+
}
|
3623
|
+
return e && e.type ? this.isAttribute(e.type) : !1;
|
3624
|
+
},
|
3625
|
+
/**
|
3626
|
+
* Checks whether the given object or type is a filter
|
3627
|
+
*
|
3628
|
+
* @param o - object to check
|
3629
|
+
* @returns true if the object or type is a filter
|
3630
|
+
*/
|
3631
|
+
isFilter(e) {
|
3632
|
+
if (typeof e == "object" && (e = e.type), typeof e == "string") {
|
3633
|
+
const t = e;
|
3634
|
+
return t.toLowerCase() === b.Filter || t.toLowerCase() === b.DimensionFilter || t.toLowerCase() === b.MeasureFilter;
|
3635
|
+
}
|
3636
|
+
return !1;
|
3637
|
+
}
|
3638
|
+
};
|
3639
|
+
var Re;
|
3640
|
+
(function(e) {
|
3641
|
+
e.TEXT = "text", e.NUMERIC = "numeric", e.DATETIME = "datetime";
|
3642
|
+
})(Re = Re || (Re = {}));
|
3643
|
+
var $e;
|
3644
|
+
(function(e) {
|
3645
|
+
e.ASC = "asc", e.DESC = "desc";
|
3646
|
+
})($e = $e || ($e = {}));
|
3647
|
+
var Ie;
|
3648
|
+
(function(e) {
|
3649
|
+
e.PRE = "pre", e.POST = "post";
|
3650
|
+
})(Ie = Ie || (Ie = {}));
|
3651
|
+
function He(e, t = []) {
|
3652
|
+
try {
|
3653
|
+
return e == null ? String(e) : typeof e == "string" ? `'${Ur(e)}'` : typeof e == "number" || typeof e == "boolean" ? String(e) : e instanceof Date ? `new Date('${e.toISOString()}')` : Array.isArray(e) ? `[${e.map((n) => He(n, t)).join(", ")}]` : typeof e == "object" && e !== null ? "composeCode" in e ? e.composeCode : `{ ${Object.entries(e).filter(([r]) => !t.includes(r)).map(([r, s]) => `${/[^a-zA-Z0-9_$]/.test(r) ? `'${r}'` : r}: ${He(s, t)}`).join(", ")} }` : JSON.stringify(e);
|
3654
|
+
} catch (n) {
|
3655
|
+
return console.error(n, JSON.stringify(e, null, 2)), JSON.stringify(e);
|
3488
3656
|
}
|
3489
|
-
i || (i = new ne());
|
3490
|
-
var g = i.get(e);
|
3491
|
-
if (g)
|
3492
|
-
return g;
|
3493
|
-
i.set(e, a), Gi(e) ? e.forEach(function(h) {
|
3494
|
-
a.add(ge(h, t, n, h, e, i));
|
3495
|
-
}) : Vi(e) && e.forEach(function(h, x) {
|
3496
|
-
a.set(x, ge(h, t, n, x, e, i));
|
3497
|
-
});
|
3498
|
-
var p = c ? u ? Qs : qs : u ? Je : We, m = f ? void 0 : p(e);
|
3499
|
-
return Ps(m || e, function(h, x) {
|
3500
|
-
m && (x = h, h = e[x]), Ht(a, x, ge(h, t, n, x, e, i));
|
3501
|
-
}), a;
|
3502
3657
|
}
|
3503
|
-
|
3504
|
-
|
3505
|
-
|
3658
|
+
function Ia(e) {
|
3659
|
+
let t = e.length;
|
3660
|
+
for (; t > 0 && e[t - 1] === void 0; )
|
3661
|
+
t--;
|
3662
|
+
return e.slice(0, t);
|
3663
|
+
}
|
3664
|
+
function Ma(e, t) {
|
3665
|
+
return function(n) {
|
3666
|
+
return function(...r) {
|
3667
|
+
const s = Ia(r), i = s.length, a = s.map((c) => He(c, ["guid"])).filter((c, f) => !(["", "{ }", "[]", "undefined", "null"].includes(c) && f === i - 1)).join(", "), o = `${e}.${t ?? n.name}(${a})`, u = n(...r);
|
3668
|
+
return u.composeCode = o, u;
|
3669
|
+
};
|
3670
|
+
};
|
3671
|
+
}
|
3672
|
+
function Tt(e, t) {
|
3673
|
+
return Ma("filterFactory.logic", t)(e);
|
3506
3674
|
}
|
3675
|
+
const _a = {
|
3676
|
+
logicalAttribute: "logicalAttribute",
|
3677
|
+
members: "members",
|
3678
|
+
exclude: "exclude",
|
3679
|
+
measure: "measure",
|
3680
|
+
ranking: "ranking",
|
3681
|
+
text: "text",
|
3682
|
+
numeric: "numeric",
|
3683
|
+
dateRange: "dateRange",
|
3684
|
+
relativeDate: "relativeDate",
|
3685
|
+
cascading: "cascading",
|
3686
|
+
advanced: "advanced"
|
3687
|
+
};
|
3688
|
+
function ka(e) {
|
3689
|
+
return "filterType" in e && e.filterType === _a.cascading;
|
3690
|
+
}
|
3691
|
+
const W = (e) => {
|
3692
|
+
if (Array.isArray(e)) {
|
3693
|
+
const [t, ...n] = e;
|
3694
|
+
return n.length === 0 ? W(t) : {
|
3695
|
+
operator: "AND",
|
3696
|
+
left: W(t),
|
3697
|
+
right: W(n)
|
3698
|
+
};
|
3699
|
+
}
|
3700
|
+
return e;
|
3701
|
+
};
|
3702
|
+
var Me;
|
3703
|
+
(function(e) {
|
3704
|
+
e.and = Tt((t, n) => ({
|
3705
|
+
operator: "AND",
|
3706
|
+
left: W(t),
|
3707
|
+
right: W(n)
|
3708
|
+
}), "and"), e.or = Tt((t, n) => ({
|
3709
|
+
operator: "OR",
|
3710
|
+
left: W(t),
|
3711
|
+
right: W(n)
|
3712
|
+
}), "or");
|
3713
|
+
})(Me = Me || (Me = {}));
|
3507
3714
|
var he;
|
3508
3715
|
(function(e) {
|
3509
3716
|
e.INCLUDE_ALL = "INCLUDE_ALL", e.ADVANCED = "ADVANCED", e.INVALID = "INVALID", e.CONDITION = "CONDITION", e.SPECIFIC_ITEMS = "SPECIFIC_ITEMS";
|
@@ -3512,19 +3719,19 @@ var me;
|
|
3512
3719
|
(function(e) {
|
3513
3720
|
e.PERIOD = "PERIOD", e.DATE_RANGE = "DATE_RANGE";
|
3514
3721
|
})(me = me || (me = {}));
|
3515
|
-
var
|
3722
|
+
var ye;
|
3516
3723
|
(function(e) {
|
3517
3724
|
e.NUMERIC_RANGE = "NUMERIC_RANGE";
|
3518
|
-
})(
|
3519
|
-
var
|
3725
|
+
})(ye = ye || (ye = {}));
|
3726
|
+
var be;
|
3520
3727
|
(function(e) {
|
3521
3728
|
e.YEARS = "years", e.QUARTERS = "quarters", e.MONTHS = "months", e.WEEKS = "weeks", e.DAYS = "days", e.HOURS = "hours", e.MINUTES = "minutes";
|
3522
|
-
})(
|
3729
|
+
})(be = be || (be = {}));
|
3523
3730
|
var _e;
|
3524
3731
|
(function(e) {
|
3525
3732
|
e.DATE_TIME = "datetime", e.NUMERIC = "numeric", e.TEXT = "text";
|
3526
3733
|
})(_e = _e || (_e = {}));
|
3527
|
-
const N = Object.assign(Object.assign(Object.assign({}, he), me),
|
3734
|
+
const N = Object.assign(Object.assign(Object.assign({}, he), me), ye), Ba = {
|
3528
3735
|
[N.INCLUDE_ALL]: {
|
3529
3736
|
all: !0,
|
3530
3737
|
filterType: N.INCLUDE_ALL
|
@@ -3553,61 +3760,12 @@ const N = Object.assign(Object.assign(Object.assign({}, he), me), be), xa = {
|
|
3553
3760
|
filterType: N.SPECIFIC_ITEMS
|
3554
3761
|
}
|
3555
3762
|
};
|
3556
|
-
|
3763
|
+
Ba.INCLUDE_ALL, be.YEARS;
|
3557
3764
|
var ke;
|
3558
3765
|
(function(e) {
|
3559
3766
|
e.IS = "members", e.IS_NOT = "exclude", e.IS_WITHIN = "isWithin", e.TOP = "top", e.BOTTOM = "bottom", e.AFTER = "after", e.BEFORE = "before", e.STARTS_WITH = "startsWith", e.DOESNT_START_WITH = "doesntStartWith", e.ENDS_WITH = "endsWith", e.DOESNT_END_WITH = "doesntEndWith", e.CONTAINS = "contains", e.DOESNT_CONTAIN = "doesntContain", e.EQUALS = "equals", e.DOESNT_EQUAL = "doesntEqual", e.IS_EMPTY = "isEmpty", e.IS_NOT_EMPTY = "isNotEmpty", e.GREATER_THAN = "fromNotEqual", e.GREATER_THAN_OR_EQUAL = "from", e.LESS_THAN = "toNotEqual", e.LESS_THAN_OR_EQUAL = "to", e.BETWEEN = "between", e.IS_NOT_BETWEEN = "isNotBetween", e.MULTIPLE_CONDITION = "multipleCondition", e.NONE = "none";
|
3560
3767
|
})(ke = ke || (ke = {}));
|
3561
|
-
|
3562
|
-
return Buffer.from(e).toString("utf8");
|
3563
|
-
}
|
3564
|
-
function Ca(e) {
|
3565
|
-
return String.fromCharCode.apply(null, new Uint16Array(e));
|
3566
|
-
}
|
3567
|
-
function ja() {
|
3568
|
-
return "UNSUPPORTED";
|
3569
|
-
}
|
3570
|
-
typeof Buffer < "u" && Buffer.from;
|
3571
|
-
const Da = {
|
3572
|
-
logicalAttribute: "logicalAttribute",
|
3573
|
-
members: "members",
|
3574
|
-
exclude: "exclude",
|
3575
|
-
measure: "measure",
|
3576
|
-
ranking: "ranking",
|
3577
|
-
text: "text",
|
3578
|
-
numeric: "numeric",
|
3579
|
-
dateRange: "dateRange",
|
3580
|
-
relativeDate: "relativeDate",
|
3581
|
-
cascading: "cascading",
|
3582
|
-
advanced: "advanced"
|
3583
|
-
};
|
3584
|
-
function Pa(e) {
|
3585
|
-
return "filterType" in e && e.filterType === Da.cascading;
|
3586
|
-
}
|
3587
|
-
const K = (e) => {
|
3588
|
-
if (Array.isArray(e)) {
|
3589
|
-
const [t, ...n] = e;
|
3590
|
-
return n.length === 0 ? K(t) : {
|
3591
|
-
operator: "AND",
|
3592
|
-
left: K(t),
|
3593
|
-
right: K(n)
|
3594
|
-
};
|
3595
|
-
}
|
3596
|
-
return e;
|
3597
|
-
};
|
3598
|
-
var Be;
|
3599
|
-
(function(e) {
|
3600
|
-
e.and = (t, n) => ({
|
3601
|
-
operator: "AND",
|
3602
|
-
left: K(t),
|
3603
|
-
right: K(n)
|
3604
|
-
}), e.or = (t, n) => ({
|
3605
|
-
operator: "OR",
|
3606
|
-
left: K(t),
|
3607
|
-
right: K(n)
|
3608
|
-
});
|
3609
|
-
})(Be = Be || (Be = {}));
|
3610
|
-
const Zt = (e) => {
|
3768
|
+
const on = (e) => {
|
3611
3769
|
if (!e)
|
3612
3770
|
return { filters: void 0, relations: void 0 };
|
3613
3771
|
if (Array.isArray(e))
|
@@ -3621,25 +3779,25 @@ const Zt = (e) => {
|
|
3621
3779
|
return { left: c, right: f, operator: "AND" };
|
3622
3780
|
}
|
3623
3781
|
function r(a) {
|
3624
|
-
return a && (
|
3782
|
+
return a && (Ua(a) ? ka(a) ? n(a.filters) : (t.add(a), { instanceid: a.config.guid }) : ("left" in a && (a.left = r(a.left)), "right" in a && (a.right = r(a.right)), a));
|
3625
3783
|
}
|
3626
|
-
const s =
|
3784
|
+
const s = Na(e), i = r(s);
|
3627
3785
|
return { filters: Array.from(t), relations: i };
|
3628
3786
|
};
|
3629
|
-
function
|
3787
|
+
function Ua(e) {
|
3630
3788
|
return "config" in e && "guid" in e.config;
|
3631
3789
|
}
|
3632
|
-
|
3633
|
-
const
|
3634
|
-
const [t, n] =
|
3790
|
+
b.TextAttribute, b.NumericAttribute, b.DateLevel;
|
3791
|
+
const $o = (e) => {
|
3792
|
+
const [t, n] = q(Ut, {
|
3635
3793
|
isLoading: !0,
|
3636
3794
|
isError: !1,
|
3637
3795
|
isSuccess: !1,
|
3638
3796
|
status: "loading",
|
3639
3797
|
error: void 0,
|
3640
3798
|
data: void 0
|
3641
|
-
}), r =
|
3642
|
-
|
3799
|
+
}), r = V();
|
3800
|
+
_("useExecuteQuery");
|
3643
3801
|
const s = async (i) => {
|
3644
3802
|
try {
|
3645
3803
|
const {
|
@@ -3650,54 +3808,56 @@ const xo = (e) => {
|
|
3650
3808
|
highlights: f,
|
3651
3809
|
count: d,
|
3652
3810
|
offset: l,
|
3653
|
-
|
3654
|
-
|
3811
|
+
ungroup: g,
|
3812
|
+
onBeforeQuery: p
|
3813
|
+
} = C(e), { filters: m, relations: h } = on(c);
|
3655
3814
|
n({ type: "loading" });
|
3656
|
-
const
|
3815
|
+
const v = await qn(
|
3657
3816
|
{
|
3658
3817
|
dataSource: a,
|
3659
3818
|
dimensions: o,
|
3660
3819
|
measures: u,
|
3661
|
-
filters:
|
3662
|
-
filterRelations:
|
3820
|
+
filters: m,
|
3821
|
+
filterRelations: h,
|
3663
3822
|
highlights: f,
|
3664
3823
|
count: d,
|
3665
|
-
offset: l
|
3824
|
+
offset: l,
|
3825
|
+
ungroup: g
|
3666
3826
|
},
|
3667
3827
|
i,
|
3668
|
-
{ onBeforeQuery:
|
3828
|
+
{ onBeforeQuery: ze(p) }
|
3669
3829
|
);
|
3670
|
-
n({ type: "success", data:
|
3830
|
+
n({ type: "success", data: v });
|
3671
3831
|
} catch (a) {
|
3672
3832
|
n({ type: "error", error: a });
|
3673
3833
|
}
|
3674
3834
|
};
|
3675
|
-
return
|
3676
|
-
[...
|
3835
|
+
return I(
|
3836
|
+
[...M(e), r],
|
3677
3837
|
() => {
|
3678
3838
|
const { app: i } = r.value, { enabled: a } = C(e);
|
3679
3839
|
!i || !(a === void 0 || a === !0) || s(i);
|
3680
3840
|
},
|
3681
3841
|
{ immediate: !0 }
|
3682
|
-
),
|
3683
|
-
},
|
3684
|
-
const t =
|
3685
|
-
|
3686
|
-
const [r, s] =
|
3842
|
+
), F(t.value);
|
3843
|
+
}, Io = (e) => {
|
3844
|
+
const t = B(void 0), n = B(void 0);
|
3845
|
+
_("useExecuteQueryByWidgetId");
|
3846
|
+
const [r, s] = q(Ut, {
|
3687
3847
|
isLoading: !0,
|
3688
3848
|
isError: !1,
|
3689
3849
|
isSuccess: !1,
|
3690
3850
|
status: "loading",
|
3691
3851
|
error: void 0,
|
3692
3852
|
data: void 0
|
3693
|
-
}), i =
|
3853
|
+
}), i = V(), a = async (o) => {
|
3694
3854
|
try {
|
3695
3855
|
s({ type: "loading" });
|
3696
|
-
const { filters: u, ...c } = C(e), { filters: f } =
|
3856
|
+
const { filters: u, ...c } = C(e), { filters: f } = on(ze(u)), {
|
3697
3857
|
data: d,
|
3698
3858
|
query: l,
|
3699
3859
|
pivotQuery: g
|
3700
|
-
} = await
|
3860
|
+
} = await Vn({
|
3701
3861
|
...c,
|
3702
3862
|
filters: f,
|
3703
3863
|
app: o
|
@@ -3707,31 +3867,50 @@ const xo = (e) => {
|
|
3707
3867
|
s({ type: "error", error: u });
|
3708
3868
|
}
|
3709
3869
|
};
|
3710
|
-
return
|
3711
|
-
[...
|
3870
|
+
return I(
|
3871
|
+
[...M(e), i],
|
3712
3872
|
() => {
|
3713
3873
|
const { app: o } = i.value, { enabled: u } = C(e);
|
3714
3874
|
!o || !(u === void 0 || u === !0) || a(o);
|
3715
3875
|
},
|
3716
3876
|
{ immediate: !0 }
|
3717
3877
|
), {
|
3718
|
-
...
|
3878
|
+
...F(r.value),
|
3719
3879
|
query: t,
|
3720
3880
|
pivotQuery: n
|
3721
3881
|
};
|
3722
|
-
},
|
3723
|
-
|
3724
|
-
const
|
3882
|
+
}, Mo = (e) => {
|
3883
|
+
_("useExecuteCsvQuery");
|
3884
|
+
const t = new qt(Kn, [
|
3885
|
+
Vt()
|
3886
|
+
]), [n, r] = Kt({
|
3725
3887
|
isLoading: !0,
|
3726
3888
|
isError: !1,
|
3727
3889
|
isSuccess: !1,
|
3728
3890
|
status: "loading",
|
3729
3891
|
error: void 0,
|
3730
3892
|
data: void 0
|
3731
|
-
})
|
3893
|
+
});
|
3894
|
+
return t.subscribe((s) => {
|
3895
|
+
r(s);
|
3896
|
+
}), t.run(C(e)), I([...M(e)], () => {
|
3897
|
+
t.run(C(e));
|
3898
|
+
}), Rt(() => {
|
3899
|
+
t.destroy();
|
3900
|
+
}), F(n.value);
|
3901
|
+
}, _o = (e) => {
|
3902
|
+
_("useGetDashboardModel");
|
3903
|
+
const [t, n] = q(X, {
|
3904
|
+
isLoading: !0,
|
3905
|
+
isError: !1,
|
3906
|
+
isSuccess: !1,
|
3907
|
+
status: "loading",
|
3908
|
+
error: void 0,
|
3909
|
+
data: void 0
|
3910
|
+
}), r = V(), s = async (a) => {
|
3732
3911
|
try {
|
3733
3912
|
n({ type: "loading" });
|
3734
|
-
const { dashboardOid: o, includeWidgets: u, includeFilters: c } = C(e), f = await
|
3913
|
+
const { dashboardOid: o, includeWidgets: u, includeFilters: c } = C(e), f = await Wn(a.httpClient, o, {
|
3735
3914
|
includeWidgets: u,
|
3736
3915
|
includeFilters: c
|
3737
3916
|
});
|
@@ -3740,139 +3919,139 @@ const xo = (e) => {
|
|
3740
3919
|
n({ type: "error", error: o });
|
3741
3920
|
}
|
3742
3921
|
};
|
3743
|
-
|
3744
|
-
[...
|
3922
|
+
I(
|
3923
|
+
[...M(e), r],
|
3745
3924
|
() => {
|
3746
3925
|
const { app: a } = r.value, { enabled: o } = C(e);
|
3747
3926
|
!a || !(o === void 0 || o === !0) || s(a);
|
3748
3927
|
},
|
3749
3928
|
{ immediate: !0 }
|
3750
3929
|
);
|
3751
|
-
const i =
|
3752
|
-
return
|
3753
|
-
},
|
3754
|
-
|
3755
|
-
const [t, n] =
|
3930
|
+
const i = F(t.value);
|
3931
|
+
return F(Hn(i));
|
3932
|
+
}, ko = (e) => {
|
3933
|
+
_("useGetDashboardModels");
|
3934
|
+
const [t, n] = q(X, {
|
3756
3935
|
isLoading: !0,
|
3757
3936
|
isError: !1,
|
3758
3937
|
isSuccess: !1,
|
3759
3938
|
status: "loading",
|
3760
3939
|
error: void 0,
|
3761
3940
|
data: void 0
|
3762
|
-
}), r =
|
3941
|
+
}), r = V(), s = async (a) => {
|
3763
3942
|
try {
|
3764
3943
|
n({ type: "loading" });
|
3765
|
-
const o = C(e), u = await
|
3944
|
+
const o = C(e), u = await Gn(a.httpClient, o);
|
3766
3945
|
n({ type: "success", data: u });
|
3767
3946
|
} catch (o) {
|
3768
3947
|
n({ type: "error", error: o });
|
3769
3948
|
}
|
3770
3949
|
};
|
3771
|
-
|
3772
|
-
[...
|
3950
|
+
I(
|
3951
|
+
[...M(e), r],
|
3773
3952
|
() => {
|
3774
3953
|
const { app: a } = r.value, { enabled: o } = C(e);
|
3775
3954
|
!a || !(o === void 0 || o === !0) || s(a);
|
3776
3955
|
},
|
3777
3956
|
{ immediate: !0 }
|
3778
3957
|
);
|
3779
|
-
const i =
|
3780
|
-
return
|
3781
|
-
},
|
3782
|
-
|
3783
|
-
const [t, n] =
|
3958
|
+
const i = F(t.value);
|
3959
|
+
return F(zn(i));
|
3960
|
+
}, Bo = (e) => {
|
3961
|
+
_("useGetSharedFormula");
|
3962
|
+
const [t, n] = q(X, {
|
3784
3963
|
isLoading: !0,
|
3785
3964
|
isError: !1,
|
3786
3965
|
isSuccess: !1,
|
3787
3966
|
status: "loading",
|
3788
3967
|
error: void 0,
|
3789
3968
|
data: void 0
|
3790
|
-
}), r =
|
3969
|
+
}), r = V(), s = (a) => {
|
3791
3970
|
n({ type: "loading" });
|
3792
3971
|
const { dataSource: o, name: u, oid: c } = C(e);
|
3793
3972
|
let f = Promise.resolve(null);
|
3794
|
-
c ? f =
|
3973
|
+
c ? f = Qn(c, a) : u && o && (f = Yn(u, o, a)), f.then((d) => {
|
3795
3974
|
n({ type: "success", data: d });
|
3796
3975
|
}).catch((d) => {
|
3797
3976
|
n({ type: "error", error: d });
|
3798
3977
|
});
|
3799
3978
|
};
|
3800
|
-
|
3801
|
-
[...
|
3979
|
+
I(
|
3980
|
+
[...M(e), r],
|
3802
3981
|
() => {
|
3803
3982
|
const { app: a } = r.value, { enabled: o } = C(e);
|
3804
3983
|
!a || !(o === void 0 || o === !0) || s(a);
|
3805
3984
|
},
|
3806
3985
|
{ immediate: !0 }
|
3807
3986
|
);
|
3808
|
-
const i =
|
3809
|
-
return
|
3810
|
-
|
3987
|
+
const i = F(t.value);
|
3988
|
+
return F(
|
3989
|
+
Jn(i)
|
3811
3990
|
);
|
3812
|
-
},
|
3813
|
-
|
3814
|
-
const [t, n] =
|
3991
|
+
}, Uo = (e) => {
|
3992
|
+
_("useGetWidgetModel");
|
3993
|
+
const [t, n] = q(X, {
|
3815
3994
|
isLoading: !0,
|
3816
3995
|
isError: !1,
|
3817
3996
|
isSuccess: !1,
|
3818
3997
|
status: "loading",
|
3819
3998
|
error: void 0,
|
3820
3999
|
data: void 0
|
3821
|
-
}), r =
|
4000
|
+
}), r = V(), s = async (i) => {
|
3822
4001
|
try {
|
3823
4002
|
n({ type: "loading" });
|
3824
|
-
const { dashboardOid: a, widgetOid: o } = C(e), u = await
|
4003
|
+
const { dashboardOid: a, widgetOid: o } = C(e), u = await Zn(i.httpClient, a, o);
|
3825
4004
|
n({ type: "success", data: u });
|
3826
4005
|
} catch (a) {
|
3827
4006
|
n({ type: "error", error: a });
|
3828
4007
|
}
|
3829
4008
|
};
|
3830
|
-
return
|
3831
|
-
[...
|
4009
|
+
return I(
|
4010
|
+
[...M(e), r],
|
3832
4011
|
() => {
|
3833
4012
|
const { app: i } = r.value, { enabled: a } = C(e);
|
3834
4013
|
!i || !(a === void 0 || a === !0) || s(i);
|
3835
4014
|
},
|
3836
4015
|
{ immediate: !0 }
|
3837
|
-
),
|
3838
|
-
},
|
3839
|
-
|
3840
|
-
const [t, n] =
|
4016
|
+
), F(t.value);
|
4017
|
+
}, qo = (e) => {
|
4018
|
+
_("useGetHierarchyModels");
|
4019
|
+
const [t, n] = q(X, {
|
3841
4020
|
isLoading: !0,
|
3842
4021
|
isError: !1,
|
3843
4022
|
isSuccess: !1,
|
3844
4023
|
status: "loading",
|
3845
4024
|
error: void 0,
|
3846
4025
|
data: void 0
|
3847
|
-
}), r =
|
4026
|
+
}), r = V(), s = async (i) => {
|
3848
4027
|
try {
|
3849
4028
|
n({ type: "loading" });
|
3850
|
-
const a = await
|
4029
|
+
const a = await Xn(i.httpClient, C(e));
|
3851
4030
|
n({ type: "success", data: a });
|
3852
4031
|
} catch (a) {
|
3853
4032
|
n({ type: "error", error: a });
|
3854
4033
|
}
|
3855
4034
|
};
|
3856
|
-
return
|
3857
|
-
[...
|
4035
|
+
return I(
|
4036
|
+
[...M(e), r],
|
3858
4037
|
() => {
|
3859
4038
|
const { app: i } = r.value, { enabled: a } = C(e);
|
3860
4039
|
!i || !(a === void 0 || a === !0) || s(i);
|
3861
4040
|
},
|
3862
4041
|
{ immediate: !0 }
|
3863
|
-
),
|
3864
|
-
},
|
3865
|
-
const [r, s] =
|
4042
|
+
), F(t.value);
|
4043
|
+
}, Vo = (e, t, n) => {
|
4044
|
+
const [r, s] = q(X, {
|
3866
4045
|
isLoading: !0,
|
3867
4046
|
isError: !1,
|
3868
4047
|
isSuccess: !1,
|
3869
4048
|
status: "loading",
|
3870
4049
|
error: void 0,
|
3871
4050
|
data: void 0
|
3872
|
-
}), i =
|
4051
|
+
}), i = V(), a = async (o) => {
|
3873
4052
|
try {
|
3874
4053
|
s({ type: "loading" });
|
3875
|
-
const u =
|
4054
|
+
const u = ze(e), c = t ? C(t) : {}, f = n ? C(n) : {}, d = {
|
3876
4055
|
requestConfig: f.requestConfig ? C(f.requestConfig) : {},
|
3877
4056
|
skipTrackingParam: !0
|
3878
4057
|
}, l = await o.call(
|
@@ -3885,20 +4064,41 @@ const xo = (e) => {
|
|
3885
4064
|
s({ type: "error", error: u });
|
3886
4065
|
}
|
3887
4066
|
};
|
3888
|
-
return
|
3889
|
-
[...
|
4067
|
+
return I(
|
4068
|
+
[...M(e, t, n), i],
|
3890
4069
|
() => {
|
3891
4070
|
const { app: o } = i.value, u = C(n || {}).enabled;
|
3892
4071
|
!o || !(u === void 0 || u === !0) || a(o.httpClient);
|
3893
4072
|
},
|
3894
4073
|
{ immediate: !0 }
|
3895
|
-
),
|
3896
|
-
},
|
4074
|
+
), F(r.value);
|
4075
|
+
}, Ko = () => er().value, Ho = (e, t = {}) => {
|
4076
|
+
_("useComposedDashboard");
|
4077
|
+
const n = new qt(tr, [
|
4078
|
+
Vt()
|
4079
|
+
]), [r, s] = Kt(C(e));
|
4080
|
+
n.subscribe(({ dashboard: o }) => {
|
4081
|
+
s(o);
|
4082
|
+
}), n.run(C(e), t), I([...M(e)], () => {
|
4083
|
+
n.run(C(e), t);
|
4084
|
+
}), Rt(() => {
|
4085
|
+
n.destroy();
|
4086
|
+
});
|
4087
|
+
const i = st(n, "setFilters"), a = st(n, "setWidgetsLayout");
|
4088
|
+
return {
|
4089
|
+
dashboard: r,
|
4090
|
+
setFilters: i,
|
4091
|
+
setWidgetsLayout: a
|
4092
|
+
};
|
4093
|
+
}, qa = y({
|
3897
4094
|
props: {
|
3898
4095
|
/**
|
3899
4096
|
* {@inheritDoc @sisense/sdk-ui!ContextMenuProps.closeContextMenu}
|
3900
4097
|
*/
|
3901
|
-
closeContextMenu:
|
4098
|
+
closeContextMenu: {
|
4099
|
+
type: Function,
|
4100
|
+
required: !0
|
4101
|
+
},
|
3902
4102
|
/**
|
3903
4103
|
* {@inheritDoc @sisense/sdk-ui!ContextMenuProps.itemSections}
|
3904
4104
|
*/
|
@@ -3908,8 +4108,8 @@ const xo = (e) => {
|
|
3908
4108
|
*/
|
3909
4109
|
position: Object
|
3910
4110
|
},
|
3911
|
-
setup: (e, { slots: t }) =>
|
3912
|
-
}),
|
4111
|
+
setup: (e, { slots: t }) => $t(nr, e, t, [])
|
4112
|
+
}), Va = ({
|
3913
4113
|
drilldownPaths: e,
|
3914
4114
|
initialDimension: t
|
3915
4115
|
}) => {
|
@@ -3917,24 +4117,24 @@ const xo = (e) => {
|
|
3917
4117
|
throw new Error(
|
3918
4118
|
"Initial dimension has to be specified to use drilldown with custom components"
|
3919
4119
|
);
|
3920
|
-
const n =
|
3921
|
-
|
4120
|
+
const n = B([]), r = B(), s = B([]), i = B([]), a = Be(() => [
|
4121
|
+
rr(t),
|
3922
4122
|
...n.value.map(({ nextDimension: l }) => l)
|
3923
|
-
]), o =
|
4123
|
+
]), o = Be(
|
3924
4124
|
() => e.value.filter((l) => {
|
3925
|
-
if (
|
4125
|
+
if (b.isAttribute(l)) {
|
3926
4126
|
const m = l;
|
3927
4127
|
return a.value.every(
|
3928
|
-
(h) => !
|
4128
|
+
(h) => !it(h, m)
|
3929
4129
|
);
|
3930
4130
|
}
|
3931
4131
|
const p = l;
|
3932
4132
|
return a.value.every(
|
3933
|
-
(m, h) =>
|
4133
|
+
(m, h) => it(m, p.levels[h])
|
3934
4134
|
);
|
3935
4135
|
})
|
3936
4136
|
), u = (l, g, p) => {
|
3937
|
-
n.value =
|
4137
|
+
n.value = sr(
|
3938
4138
|
n.value,
|
3939
4139
|
l,
|
3940
4140
|
g,
|
@@ -3945,7 +4145,7 @@ const xo = (e) => {
|
|
3945
4145
|
}, f = () => {
|
3946
4146
|
n.value = [], d();
|
3947
4147
|
}, d = () => {
|
3948
|
-
const l = (p) => p === "drilldown.breadcrumbsAllSuffix" ? "All" : p, g =
|
4148
|
+
const l = (p) => p === "drilldown.breadcrumbsAllSuffix" ? "All" : p, g = ir(
|
3949
4149
|
n.value,
|
3950
4150
|
t,
|
3951
4151
|
l
|
@@ -3962,7 +4162,7 @@ const xo = (e) => {
|
|
3962
4162
|
sliceDrilldownSelections: c,
|
3963
4163
|
clearDrilldownSelections: f
|
3964
4164
|
};
|
3965
|
-
},
|
4165
|
+
}, Ka = y({
|
3966
4166
|
props: {
|
3967
4167
|
/**
|
3968
4168
|
* {@inheritDoc @sisense/sdk-ui!DrilldownWidgetProps.config}
|
@@ -3974,18 +4174,6 @@ const xo = (e) => {
|
|
3974
4174
|
required: !1,
|
3975
4175
|
default: () => ({})
|
3976
4176
|
},
|
3977
|
-
/**
|
3978
|
-
* {@inheritDoc @sisense/sdk-ui!DrilldownWidgetProps.drilldownDimensions}
|
3979
|
-
*
|
3980
|
-
* @category Widget
|
3981
|
-
* @deprecated Use {@link drilldownPaths} instead
|
3982
|
-
*
|
3983
|
-
*/
|
3984
|
-
drilldownDimensions: {
|
3985
|
-
type: Array,
|
3986
|
-
required: !1,
|
3987
|
-
default: () => []
|
3988
|
-
},
|
3989
4177
|
/**
|
3990
4178
|
* {@inheritDoc @sisense/sdk-ui!DrilldownWidgetProps.drilldownPaths}
|
3991
4179
|
*
|
@@ -4010,83 +4198,81 @@ const xo = (e) => {
|
|
4010
4198
|
},
|
4011
4199
|
setup: () => {
|
4012
4200
|
}
|
4013
|
-
}),
|
4201
|
+
}), Ha = { style: { display: "flex", "flex-direction": "column", height: "100%" } }, Wa = { style: { "flex-grow": "1", "min-wdith": "0", "min-height": "0" } }, Wo = /* @__PURE__ */ y({
|
4014
4202
|
__name: "drilldown-widget",
|
4015
|
-
props:
|
4203
|
+
props: Ka.props,
|
4016
4204
|
setup(e) {
|
4017
|
-
const t = e, {
|
4018
|
-
|
4019
|
-
), {
|
4020
|
-
drilldownFilters: c,
|
4205
|
+
const t = e, { drilldownPaths: n, initialDimension: r, config: s } = F(t), i = B(null), a = B([]), {
|
4206
|
+
drilldownFilters: o,
|
4021
4207
|
// computed
|
4022
|
-
drilldownDimension:
|
4208
|
+
drilldownDimension: u,
|
4023
4209
|
// computed
|
4024
|
-
drilldownFiltersDisplayValues:
|
4210
|
+
drilldownFiltersDisplayValues: c,
|
4025
4211
|
// computed
|
4026
|
-
availableDrilldownPaths:
|
4212
|
+
availableDrilldownPaths: f,
|
4027
4213
|
// computed
|
4028
|
-
selectDrilldown:
|
4029
|
-
sliceDrilldownSelections:
|
4030
|
-
clearDrilldownSelections:
|
4031
|
-
} =
|
4032
|
-
drilldownPaths:
|
4033
|
-
initialDimension:
|
4034
|
-
}),
|
4035
|
-
|
4036
|
-
},
|
4037
|
-
const
|
4214
|
+
selectDrilldown: d,
|
4215
|
+
sliceDrilldownSelections: l,
|
4216
|
+
clearDrilldownSelections: g
|
4217
|
+
} = Va({
|
4218
|
+
drilldownPaths: n,
|
4219
|
+
initialDimension: r.value
|
4220
|
+
}), p = (D) => {
|
4221
|
+
d(a.value, D);
|
4222
|
+
}, m = Be(() => {
|
4223
|
+
const D = (x) => x === "drilldown.drillMenuItem" ? "Drill" : x;
|
4038
4224
|
return [
|
4039
|
-
|
4040
|
-
|
4041
|
-
l.value,
|
4225
|
+
ar(a.value, u.value),
|
4226
|
+
or(
|
4042
4227
|
f.value,
|
4043
|
-
|
4044
|
-
|
4228
|
+
u.value,
|
4229
|
+
p,
|
4230
|
+
D
|
4045
4231
|
)
|
4046
4232
|
];
|
4047
|
-
}),
|
4048
|
-
|
4049
|
-
},
|
4050
|
-
|
4233
|
+
}), h = (D) => {
|
4234
|
+
i.value = D;
|
4235
|
+
}, v = (D) => {
|
4236
|
+
a.value = D;
|
4051
4237
|
}, w = () => {
|
4052
|
-
|
4238
|
+
i.value = null;
|
4053
4239
|
};
|
4054
|
-
return (
|
4055
|
-
|
4056
|
-
contextMenuProps: { position:
|
4240
|
+
return (D, x) => (cn(), fn("div", Ha, [
|
4241
|
+
Fe(D.$slots, "contextMenu", {
|
4242
|
+
contextMenuProps: { position: i.value, itemSections: m.value, closeContextMenu: w }
|
4057
4243
|
}, () => [
|
4058
|
-
|
4059
|
-
position:
|
4060
|
-
itemSections:
|
4244
|
+
nt(E(qa), {
|
4245
|
+
position: i.value,
|
4246
|
+
itemSections: m.value,
|
4061
4247
|
closeContextMenu: w
|
4062
4248
|
}, null, 8, ["position", "itemSections"])
|
4063
4249
|
]),
|
4064
|
-
|
4250
|
+
Fe(D.$slots, "breadcrumbs", {
|
4065
4251
|
drilldownBreadcrumbsProps: {
|
4066
|
-
clearDrilldownSelections: E(
|
4067
|
-
sliceDrilldownSelections: E(
|
4068
|
-
drilldownFiltersDisplayValues: E(
|
4069
|
-
drilldownDimension: E(
|
4252
|
+
clearDrilldownSelections: E(g),
|
4253
|
+
sliceDrilldownSelections: E(l),
|
4254
|
+
drilldownFiltersDisplayValues: E(c),
|
4255
|
+
drilldownDimension: E(u)
|
4070
4256
|
}
|
4071
4257
|
}, () => [
|
4072
|
-
|
4073
|
-
"clear-drilldown-selections": E(
|
4074
|
-
"slice-drilldown-selections": E(
|
4075
|
-
"filters-display-values": E(
|
4076
|
-
"current-dimension": E(
|
4258
|
+
nt(E(hr), {
|
4259
|
+
"clear-drilldown-selections": E(g),
|
4260
|
+
"slice-drilldown-selections": E(l),
|
4261
|
+
"filters-display-values": E(c),
|
4262
|
+
"current-dimension": E(u)
|
4077
4263
|
}, null, 8, ["clear-drilldown-selections", "slice-drilldown-selections", "filters-display-values", "current-dimension"])
|
4078
4264
|
]),
|
4079
|
-
|
4080
|
-
|
4081
|
-
drilldownFilters: E(
|
4082
|
-
drilldownDimension: E(
|
4083
|
-
onDataPointsSelected:
|
4084
|
-
onContextMenu:
|
4265
|
+
dn("div", Wa, [
|
4266
|
+
Fe(D.$slots, "chart", {
|
4267
|
+
drilldownFilters: E(o),
|
4268
|
+
drilldownDimension: E(u),
|
4269
|
+
onDataPointsSelected: v,
|
4270
|
+
onContextMenu: h
|
4085
4271
|
})
|
4086
4272
|
])
|
4087
4273
|
]));
|
4088
4274
|
}
|
4089
|
-
}),
|
4275
|
+
}), zo = y({
|
4090
4276
|
props: {
|
4091
4277
|
/**
|
4092
4278
|
* {@inheritDoc @sisense/sdk-ui!ChartWidgetProps.bottomSlot}
|
@@ -4100,7 +4286,10 @@ const xo = (e) => {
|
|
4100
4286
|
*
|
4101
4287
|
* @category Chart
|
4102
4288
|
*/
|
4103
|
-
chartType:
|
4289
|
+
chartType: {
|
4290
|
+
type: String,
|
4291
|
+
required: !0
|
4292
|
+
},
|
4104
4293
|
/**
|
4105
4294
|
* {@inheritDoc @sisense/sdk-ui!ChartWidgetProps.contextMenuItems}
|
4106
4295
|
*
|
@@ -4113,13 +4302,16 @@ const xo = (e) => {
|
|
4113
4302
|
*
|
4114
4303
|
* @category Chart
|
4115
4304
|
*/
|
4116
|
-
dataOptions:
|
4305
|
+
dataOptions: {
|
4306
|
+
type: Object,
|
4307
|
+
required: !0
|
4308
|
+
},
|
4117
4309
|
/**
|
4118
4310
|
* {@inheritDoc @sisense/sdk-ui!ChartWidgetProps.dataSource}
|
4119
4311
|
*
|
4120
4312
|
* @category Data
|
4121
4313
|
*/
|
4122
|
-
dataSource: Object,
|
4314
|
+
dataSource: [String, Object],
|
4123
4315
|
/**
|
4124
4316
|
* {@inheritDoc @sisense/sdk-ui!ChartWidgetProps.description}
|
4125
4317
|
*
|
@@ -4138,7 +4330,7 @@ const xo = (e) => {
|
|
4138
4330
|
*
|
4139
4331
|
* @category Data
|
4140
4332
|
*/
|
4141
|
-
filters: Array,
|
4333
|
+
filters: [Array, Object],
|
4142
4334
|
/**
|
4143
4335
|
* {@inheritDoc @sisense/sdk-ui!ChartWidgetProps.highlightSelectionDisabled}
|
4144
4336
|
*
|
@@ -4207,23 +4399,32 @@ const xo = (e) => {
|
|
4207
4399
|
* @category Widget
|
4208
4400
|
* @internal
|
4209
4401
|
*/
|
4210
|
-
widgetStyleOptions: Object
|
4402
|
+
widgetStyleOptions: Object,
|
4403
|
+
/**
|
4404
|
+
* {@inheritDoc @sisense/sdk-ui!ChartWidgetProps.onDataReady}
|
4405
|
+
*
|
4406
|
+
* @category Callbacks
|
4407
|
+
*/
|
4408
|
+
onDataReady: Function
|
4211
4409
|
},
|
4212
|
-
setup: (e) =>
|
4213
|
-
}),
|
4410
|
+
setup: (e) => S(ur, e)
|
4411
|
+
}), Go = y({
|
4214
4412
|
props: {
|
4215
4413
|
/** @internal */
|
4216
4414
|
bottomSlot: Object,
|
4217
4415
|
/** @internal */
|
4218
4416
|
contextMenuItems: Array,
|
4219
4417
|
/**
|
4220
|
-
* {@inheritDoc @sisense/sdk-ui!
|
4418
|
+
* {@inheritDoc @sisense/sdk-ui!WidgetByIdProps.dashboardOid}
|
4221
4419
|
*
|
4222
4420
|
* @category Widget
|
4223
4421
|
*/
|
4224
|
-
dashboardOid:
|
4422
|
+
dashboardOid: {
|
4423
|
+
type: String,
|
4424
|
+
required: !0
|
4425
|
+
},
|
4225
4426
|
/**
|
4226
|
-
* {@inheritDoc @sisense/sdk-ui!
|
4427
|
+
* {@inheritDoc @sisense/sdk-ui!WidgetByIdProps.description}
|
4227
4428
|
*
|
4228
4429
|
* @category Widget
|
4229
4430
|
*/
|
@@ -4231,37 +4432,37 @@ const xo = (e) => {
|
|
4231
4432
|
/** @internal */
|
4232
4433
|
drilldownOptions: Object,
|
4233
4434
|
/**
|
4234
|
-
* {@inheritDoc @sisense/sdk-ui!
|
4435
|
+
* {@inheritDoc @sisense/sdk-ui!WidgetByIdProps.filters}
|
4235
4436
|
*
|
4236
4437
|
* @category Data
|
4237
4438
|
*/
|
4238
|
-
filters: Array,
|
4439
|
+
filters: [Array, Object],
|
4239
4440
|
/**
|
4240
|
-
* {@inheritDoc @sisense/sdk-ui!
|
4441
|
+
* {@inheritDoc @sisense/sdk-ui!WidgetByIdProps.filtersMergeStrategy}
|
4241
4442
|
*
|
4242
4443
|
* @category Data
|
4243
4444
|
*/
|
4244
4445
|
filtersMergeStrategy: Object,
|
4245
4446
|
/**
|
4246
|
-
* {@inheritDoc @sisense/sdk-ui!
|
4447
|
+
* {@inheritDoc @sisense/sdk-ui!WidgetByIdProps.highlightSelectionDisabled}
|
4247
4448
|
*
|
4248
4449
|
* @category Widget
|
4249
4450
|
*/
|
4250
4451
|
highlightSelectionDisabled: Boolean,
|
4251
4452
|
/**
|
4252
|
-
* {@inheritDoc @sisense/sdk-ui!
|
4453
|
+
* {@inheritDoc @sisense/sdk-ui!WidgetByIdProps.highlights}
|
4253
4454
|
*
|
4254
4455
|
* @category Data
|
4255
4456
|
*/
|
4256
4457
|
highlights: Array,
|
4257
4458
|
/**
|
4258
|
-
* {@inheritDoc @sisense/sdk-ui!
|
4459
|
+
* {@inheritDoc @sisense/sdk-ui!WidgetByIdProps.includeDashboardFilters}
|
4259
4460
|
*
|
4260
4461
|
* @category Data
|
4261
4462
|
*/
|
4262
4463
|
includeDashboardFilters: Boolean,
|
4263
4464
|
/**
|
4264
|
-
* {@inheritDoc @sisense/sdk-ui!
|
4465
|
+
* {@inheritDoc @sisense/sdk-ui!WidgetByIdProps.onBeforeRender}
|
4265
4466
|
*
|
4266
4467
|
* @category Callbacks
|
4267
4468
|
*/
|
@@ -4269,31 +4470,31 @@ const xo = (e) => {
|
|
4269
4470
|
/** @internal */
|
4270
4471
|
onContextMenuClose: Function,
|
4271
4472
|
/**
|
4272
|
-
* {@inheritDoc @sisense/sdk-ui!
|
4473
|
+
* {@inheritDoc @sisense/sdk-ui!WidgetByIdProps.onDataPointClick}
|
4273
4474
|
*
|
4274
4475
|
* @category Callbacks
|
4275
4476
|
*/
|
4276
4477
|
onDataPointClick: Function,
|
4277
4478
|
/**
|
4278
|
-
* {@inheritDoc @sisense/sdk-ui!
|
4479
|
+
* {@inheritDoc @sisense/sdk-ui!WidgetByIdProps.onDataPointContextMenu}
|
4279
4480
|
*
|
4280
4481
|
* @category Callbacks
|
4281
4482
|
*/
|
4282
4483
|
onDataPointContextMenu: Function,
|
4283
4484
|
/**
|
4284
|
-
* {@inheritDoc @sisense/sdk-ui!
|
4485
|
+
* {@inheritDoc @sisense/sdk-ui!WidgetByIdProps.onDataPointsSelected}
|
4285
4486
|
*
|
4286
4487
|
* @category Callbacks
|
4287
4488
|
*/
|
4288
4489
|
onDataPointsSelected: Function,
|
4289
4490
|
/**
|
4290
|
-
* {@inheritDoc @sisense/sdk-ui!
|
4491
|
+
* {@inheritDoc @sisense/sdk-ui!WidgetByIdProps.styleOptions}
|
4291
4492
|
*
|
4292
4493
|
* @category Widget
|
4293
4494
|
*/
|
4294
4495
|
styleOptions: Object,
|
4295
4496
|
/**
|
4296
|
-
* {@inheritDoc @sisense/sdk-ui!
|
4497
|
+
* {@inheritDoc @sisense/sdk-ui!WidgetByIdProps.title}
|
4297
4498
|
*
|
4298
4499
|
* @category Widget
|
4299
4500
|
*/
|
@@ -4301,141 +4502,182 @@ const xo = (e) => {
|
|
4301
4502
|
/** @internal */
|
4302
4503
|
topSlot: Object,
|
4303
4504
|
/**
|
4304
|
-
* {@inheritDoc @sisense/sdk-ui!
|
4505
|
+
* {@inheritDoc @sisense/sdk-ui!WidgetByIdProps.widgetOid}
|
4305
4506
|
*
|
4306
4507
|
* @category Widget
|
4307
4508
|
*/
|
4308
|
-
widgetOid:
|
4509
|
+
widgetOid: {
|
4510
|
+
type: String,
|
4511
|
+
required: !0
|
4512
|
+
},
|
4309
4513
|
/** @internal */
|
4310
|
-
widgetStyleOptions: Object
|
4514
|
+
widgetStyleOptions: Object,
|
4515
|
+
/**
|
4516
|
+
* {@inheritDoc @sisense/sdk-ui!WidgetByIdProps.onDataReady}
|
4517
|
+
*
|
4518
|
+
* @category Callbacks
|
4519
|
+
*/
|
4520
|
+
onDataReady: Function
|
4311
4521
|
},
|
4312
|
-
setup: (e) =>
|
4313
|
-
}),
|
4522
|
+
setup: (e) => S(lr, e)
|
4523
|
+
}), Jo = y({
|
4314
4524
|
props: {
|
4315
|
-
/** @internal */
|
4316
4525
|
bottomSlot: Object,
|
4317
|
-
|
4318
|
-
|
4526
|
+
dataOptions: {
|
4527
|
+
type: Object,
|
4528
|
+
required: !0
|
4529
|
+
},
|
4530
|
+
dataSource: [String, Object],
|
4531
|
+
description: String,
|
4532
|
+
filters: [Object, Array],
|
4533
|
+
styleOptions: Object,
|
4534
|
+
title: String,
|
4535
|
+
topSlot: Object,
|
4536
|
+
widgetStyleOptions: Object
|
4537
|
+
},
|
4538
|
+
setup: (e) => S(cr, e)
|
4539
|
+
}), Qo = y({
|
4540
|
+
props: {
|
4319
4541
|
/**
|
4320
|
-
*
|
4542
|
+
* Unique identifier of the widget
|
4321
4543
|
*
|
4322
4544
|
* @category Widget
|
4323
4545
|
*/
|
4324
|
-
|
4546
|
+
id: {
|
4547
|
+
type: String,
|
4548
|
+
required: !0
|
4549
|
+
},
|
4325
4550
|
/**
|
4326
|
-
*
|
4551
|
+
* Widget type
|
4327
4552
|
*
|
4328
4553
|
* @category Widget
|
4329
4554
|
*/
|
4330
|
-
|
4331
|
-
|
4332
|
-
|
4555
|
+
widgetType: {
|
4556
|
+
type: String,
|
4557
|
+
required: !0
|
4558
|
+
},
|
4333
4559
|
/**
|
4334
|
-
* {@inheritDoc @sisense/sdk-ui!
|
4560
|
+
* {@inheritDoc @sisense/sdk-ui!ChartWidgetProps.chartType}
|
4561
|
+
*
|
4562
|
+
* @category Chart
|
4563
|
+
*/
|
4564
|
+
chartType: String,
|
4565
|
+
/**
|
4566
|
+
* {@inheritDoc @sisense/sdk-ui!PluginWidgetProps.pluginType}
|
4567
|
+
*
|
4568
|
+
* @category Widget
|
4569
|
+
*/
|
4570
|
+
pluginType: String,
|
4571
|
+
/**
|
4572
|
+
* {@inheritDoc @sisense/sdk-ui!ChartWidgetProps.dataSource}
|
4573
|
+
*
|
4574
|
+
* @category Data
|
4575
|
+
*/
|
4576
|
+
dataSource: Object,
|
4577
|
+
/**
|
4578
|
+
* {@inheritDoc @sisense/sdk-ui!ChartWidgetProps.dataOptions}
|
4579
|
+
*
|
4580
|
+
* @category Chart
|
4581
|
+
*/
|
4582
|
+
dataOptions: Object,
|
4583
|
+
/**
|
4584
|
+
* {@inheritDoc @sisense/sdk-ui!ChartWidgetProps.filters}
|
4335
4585
|
*
|
4336
4586
|
* @category Data
|
4337
4587
|
*/
|
4338
4588
|
filters: Array,
|
4339
4589
|
/**
|
4340
|
-
* {@inheritDoc @sisense/sdk-ui!
|
4590
|
+
* {@inheritDoc @sisense/sdk-ui!ChartWidgetProps.highlights}
|
4341
4591
|
*
|
4342
4592
|
* @category Data
|
4343
4593
|
*/
|
4344
|
-
|
4594
|
+
highlights: Array,
|
4345
4595
|
/**
|
4346
|
-
* {@inheritDoc @sisense/sdk-ui!
|
4596
|
+
* {@inheritDoc @sisense/sdk-ui!ChartWidgetProps.styleOptions}
|
4347
4597
|
*
|
4348
4598
|
* @category Widget
|
4349
4599
|
*/
|
4350
|
-
|
4600
|
+
styleOptions: Object,
|
4351
4601
|
/**
|
4352
|
-
* {@inheritDoc @sisense/sdk-ui!
|
4602
|
+
* {@inheritDoc @sisense/sdk-ui!ChartWidgetProps.drilldownOptions}
|
4353
4603
|
*
|
4354
|
-
* @category
|
4604
|
+
* @category Widget
|
4355
4605
|
*/
|
4356
|
-
|
4606
|
+
drilldownOptions: Object,
|
4357
4607
|
/**
|
4358
|
-
* {@inheritDoc @sisense/sdk-ui!
|
4608
|
+
* {@inheritDoc @sisense/sdk-ui!ChartWidgetProps.title}
|
4359
4609
|
*
|
4360
|
-
* @category
|
4610
|
+
* @category Widget
|
4361
4611
|
*/
|
4362
|
-
|
4612
|
+
title: String,
|
4363
4613
|
/**
|
4364
|
-
* {@inheritDoc @sisense/sdk-ui!
|
4614
|
+
* {@inheritDoc @sisense/sdk-ui!ChartWidgetProps.description}
|
4365
4615
|
*
|
4366
|
-
* @category
|
4616
|
+
* @category Widget
|
4367
4617
|
*/
|
4368
|
-
|
4369
|
-
/** @internal */
|
4370
|
-
onContextMenuClose: Function,
|
4618
|
+
description: String,
|
4371
4619
|
/**
|
4372
|
-
* {@inheritDoc @sisense/sdk-ui!
|
4620
|
+
* {@inheritDoc @sisense/sdk-ui!ChartWidgetProps.highlightSelectionDisabled}
|
4621
|
+
*
|
4622
|
+
* @category Widget
|
4623
|
+
* @internal
|
4624
|
+
*/
|
4625
|
+
highlightSelectionDisabled: Boolean,
|
4626
|
+
/**
|
4627
|
+
* {@inheritDoc @sisense/sdk-ui!ChartWidgetProps.onBeforeRender}
|
4373
4628
|
*
|
4374
4629
|
* @category Callbacks
|
4375
4630
|
*/
|
4376
|
-
|
4631
|
+
onBeforeRender: Function,
|
4377
4632
|
/**
|
4378
|
-
* {@inheritDoc @sisense/sdk-ui!
|
4633
|
+
* {@inheritDoc @sisense/sdk-ui!ChartWidgetProps.onDataReady}
|
4379
4634
|
*
|
4380
4635
|
* @category Callbacks
|
4381
4636
|
*/
|
4382
|
-
|
4637
|
+
onDataReady: Function,
|
4383
4638
|
/**
|
4384
|
-
*
|
4639
|
+
* Optional handler function to process menu options before opening the context menu.
|
4385
4640
|
*
|
4386
4641
|
* @category Callbacks
|
4642
|
+
* @internal
|
4387
4643
|
*/
|
4388
|
-
|
4644
|
+
onBeforeMenuOpen: Function,
|
4389
4645
|
/**
|
4390
|
-
* {@inheritDoc @sisense/sdk-ui!
|
4646
|
+
* {@inheritDoc @sisense/sdk-ui!ChartWidgetProps.onDataPointClick}
|
4391
4647
|
*
|
4392
|
-
* @category
|
4648
|
+
* @category Callbacks
|
4393
4649
|
*/
|
4394
|
-
|
4650
|
+
onDataPointClick: Function,
|
4395
4651
|
/**
|
4396
|
-
* {@inheritDoc @sisense/sdk-ui!
|
4652
|
+
* {@inheritDoc @sisense/sdk-ui!ChartWidgetProps.onDataPointContextMenu}
|
4397
4653
|
*
|
4398
|
-
* @category
|
4654
|
+
* @category Callbacks
|
4399
4655
|
*/
|
4400
|
-
|
4401
|
-
/** @internal */
|
4402
|
-
topSlot: Object,
|
4656
|
+
onDataPointContextMenu: Function,
|
4403
4657
|
/**
|
4404
|
-
* {@inheritDoc @sisense/sdk-ui!
|
4658
|
+
* {@inheritDoc @sisense/sdk-ui!ChartWidgetProps.onDataPointsSelected}
|
4405
4659
|
*
|
4406
|
-
* @category
|
4660
|
+
* @category Callbacks
|
4407
4661
|
*/
|
4408
|
-
|
4409
|
-
/** @internal */
|
4410
|
-
widgetStyleOptions: Object
|
4411
|
-
},
|
4412
|
-
setup: (e) => O(er, e)
|
4413
|
-
}), Mo = b({
|
4414
|
-
props: {
|
4415
|
-
bottomSlot: Object,
|
4416
|
-
dataOptions: Object,
|
4417
|
-
dataSource: String,
|
4418
|
-
description: String,
|
4419
|
-
filters: Object,
|
4420
|
-
styleOptions: Object,
|
4421
|
-
title: String,
|
4422
|
-
topSlot: Object,
|
4423
|
-
widgetStyleOptions: Object
|
4662
|
+
onDataPointsSelected: Function
|
4424
4663
|
},
|
4425
|
-
setup: (e) =>
|
4426
|
-
}),
|
4664
|
+
setup: (e) => S(fr, e)
|
4665
|
+
}), Yo = y({
|
4427
4666
|
props: {
|
4428
4667
|
/**
|
4429
4668
|
* {@inheritDoc @sisense/sdk-ui!DashboardByIdProps.dashboardOid}
|
4430
4669
|
*/
|
4431
|
-
dashboardOid:
|
4670
|
+
dashboardOid: {
|
4671
|
+
type: String,
|
4672
|
+
required: !0
|
4673
|
+
},
|
4432
4674
|
/**
|
4433
4675
|
* {@inheritDoc @sisense/sdk-ui!DashboardByIdProps.config}
|
4434
4676
|
*/
|
4435
|
-
config:
|
4677
|
+
config: Object
|
4436
4678
|
},
|
4437
|
-
setup: (e) =>
|
4438
|
-
}),
|
4679
|
+
setup: (e) => S(dr, e)
|
4680
|
+
}), Zo = y({
|
4439
4681
|
props: {
|
4440
4682
|
/**
|
4441
4683
|
* {@inheritDoc @sisense/sdk-ui!DashboardProps.title}
|
@@ -4452,15 +4694,18 @@ const xo = (e) => {
|
|
4452
4694
|
/**
|
4453
4695
|
* {@inheritDoc @sisense/sdk-ui!DashboardProps.widgets}
|
4454
4696
|
*/
|
4455
|
-
widgets:
|
4697
|
+
widgets: {
|
4698
|
+
type: Object,
|
4699
|
+
required: !0
|
4700
|
+
},
|
4456
4701
|
/**
|
4457
4702
|
* {@inheritDoc @sisense/sdk-ui!DashboardProps.filters}
|
4458
4703
|
*/
|
4459
|
-
filters: Object,
|
4704
|
+
filters: [Object, Array],
|
4460
4705
|
/**
|
4461
4706
|
* {@inheritDoc @sisense/sdk-ui!DashboardProps.defaultDataSource}
|
4462
4707
|
*/
|
4463
|
-
defaultDataSource: Object,
|
4708
|
+
defaultDataSource: [String, Object],
|
4464
4709
|
/**
|
4465
4710
|
* {@inheritDoc @sisense/sdk-ui!DashboardProps.widgetsOptions}
|
4466
4711
|
*/
|
@@ -4470,103 +4715,105 @@ const xo = (e) => {
|
|
4470
4715
|
*/
|
4471
4716
|
styleOptions: Object
|
4472
4717
|
},
|
4473
|
-
setup: (e) =>
|
4718
|
+
setup: (e) => S(pr, e)
|
4474
4719
|
});
|
4475
|
-
function
|
4476
|
-
return
|
4720
|
+
function za(e) {
|
4721
|
+
return gr.toDashboardProps(e);
|
4477
4722
|
}
|
4478
|
-
const
|
4723
|
+
const Xo = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
4479
4724
|
__proto__: null,
|
4480
|
-
toDashboardProps:
|
4481
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
4725
|
+
toDashboardProps: za
|
4726
|
+
}, Symbol.toStringTag, { value: "Module" })), Ga = (e, t) => ee.replaceFilters(e, t), Ja = (e, t) => ee.addFilter(e, t), Qa = (e, t) => ee.addFilters(e, t), Ya = (e, t, n) => ee.replaceFilter(
|
4727
|
+
e,
|
4728
|
+
t,
|
4729
|
+
n
|
4730
|
+
), Za = (e, t) => ee.removeFilter(e, t), Xa = (e, t) => ee.removeFilters(e, t), eu = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
4482
4731
|
__proto__: null,
|
4483
|
-
addFilter:
|
4484
|
-
addFilters:
|
4485
|
-
|
4486
|
-
|
4487
|
-
|
4488
|
-
|
4489
|
-
|
4490
|
-
|
4491
|
-
|
4492
|
-
return V.toChartProps(e);
|
4732
|
+
addFilter: Ja,
|
4733
|
+
addFilters: Qa,
|
4734
|
+
removeFilter: Za,
|
4735
|
+
removeFilters: Xa,
|
4736
|
+
replaceFilter: Ya,
|
4737
|
+
replaceFilters: Ga
|
4738
|
+
}, Symbol.toStringTag, { value: "Module" })), eo = (e) => K.toExecuteQueryParams(e), to = (e) => K.toExecutePivotQueryParams(e);
|
4739
|
+
function no(e) {
|
4740
|
+
return K.toChartProps(e);
|
4493
4741
|
}
|
4494
|
-
function
|
4495
|
-
return
|
4742
|
+
function ro(e) {
|
4743
|
+
return K.toTableProps(e);
|
4496
4744
|
}
|
4497
|
-
function
|
4498
|
-
return
|
4745
|
+
function so(e) {
|
4746
|
+
return K.toPivotTableProps(e);
|
4499
4747
|
}
|
4500
|
-
function
|
4501
|
-
return
|
4748
|
+
function io(e) {
|
4749
|
+
return K.toChartWidgetProps(e);
|
4502
4750
|
}
|
4503
|
-
function
|
4504
|
-
return
|
4751
|
+
function ao(e) {
|
4752
|
+
return K.toPivotTableWidgetProps(e);
|
4505
4753
|
}
|
4506
|
-
function
|
4507
|
-
return
|
4754
|
+
function oo(e) {
|
4755
|
+
return K.toTextWidgetProps(e);
|
4508
4756
|
}
|
4509
|
-
const
|
4757
|
+
const tu = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
4510
4758
|
__proto__: null,
|
4511
|
-
toChartProps:
|
4512
|
-
toChartWidgetProps:
|
4513
|
-
toExecutePivotQueryParams:
|
4514
|
-
toExecuteQueryParams:
|
4515
|
-
toPivotTableProps:
|
4516
|
-
toPivotTableWidgetProps:
|
4517
|
-
toTableProps:
|
4518
|
-
toTextWidgetProps:
|
4759
|
+
toChartProps: no,
|
4760
|
+
toChartWidgetProps: io,
|
4761
|
+
toExecutePivotQueryParams: to,
|
4762
|
+
toExecuteQueryParams: eo,
|
4763
|
+
toPivotTableProps: so,
|
4764
|
+
toPivotTableWidgetProps: ao,
|
4765
|
+
toTableProps: ro,
|
4766
|
+
toTextWidgetProps: oo
|
4519
4767
|
}, Symbol.toStringTag, { value: "Module" }));
|
4520
4768
|
export {
|
4521
|
-
|
4522
|
-
|
4523
|
-
|
4524
|
-
|
4525
|
-
|
4526
|
-
|
4527
|
-
|
4528
|
-
|
4529
|
-
|
4530
|
-
|
4531
|
-
|
4532
|
-
|
4533
|
-
|
4534
|
-
|
4535
|
-
|
4536
|
-
|
4537
|
-
|
4538
|
-
|
4539
|
-
|
4540
|
-
|
4541
|
-
|
4542
|
-
|
4543
|
-
|
4544
|
-
|
4545
|
-
|
4546
|
-
|
4547
|
-
|
4548
|
-
|
4549
|
-
|
4550
|
-
|
4551
|
-
|
4552
|
-
|
4553
|
-
|
4554
|
-
|
4555
|
-
Go as
|
4556
|
-
|
4557
|
-
|
4558
|
-
|
4559
|
-
|
4560
|
-
|
4561
|
-
|
4562
|
-
|
4563
|
-
|
4564
|
-
|
4565
|
-
|
4566
|
-
|
4567
|
-
|
4568
|
-
|
4569
|
-
|
4570
|
-
|
4571
|
-
Bo as widgetModelTranslator
|
4769
|
+
fo as AreaChart,
|
4770
|
+
Ao as AreaRangeChart,
|
4771
|
+
Lo as AreamapChart,
|
4772
|
+
po as BarChart,
|
4773
|
+
jo as BoxplotChart,
|
4774
|
+
Do as Chart,
|
4775
|
+
zo as ChartWidget,
|
4776
|
+
go as ColumnChart,
|
4777
|
+
qa as ContextMenu,
|
4778
|
+
No as CriteriaFilterTile,
|
4779
|
+
Zo as Dashboard,
|
4780
|
+
Yo as DashboardById,
|
4781
|
+
Fo as DateRangeFilterTile,
|
4782
|
+
hr as DrilldownBreadcrumbs,
|
4783
|
+
Wo as DrilldownWidget,
|
4784
|
+
Ro as FilterTile,
|
4785
|
+
ho as FunnelChart,
|
4786
|
+
wo as IndicatorChart,
|
4787
|
+
mo as LineChart,
|
4788
|
+
Eo as MemberFilterTile,
|
4789
|
+
yo as PieChart,
|
4790
|
+
Oo as PivotTable,
|
4791
|
+
su as PluginsProvider,
|
4792
|
+
Co as PolarChart,
|
4793
|
+
To as RelativeDateFilterTile,
|
4794
|
+
bo as ScatterChart,
|
4795
|
+
Po as ScattermapChart,
|
4796
|
+
iu as SisenseContextProvider,
|
4797
|
+
xo as SunburstChart,
|
4798
|
+
So as Table,
|
4799
|
+
Jo as TableWidget,
|
4800
|
+
au as ThemeProvider,
|
4801
|
+
vo as TreemapChart,
|
4802
|
+
Qo as Widget,
|
4803
|
+
Go as WidgetById,
|
4804
|
+
ou as boxWhiskerProcessResult,
|
4805
|
+
eu as dashboardHelpers,
|
4806
|
+
Xo as dashboardModelTranslator,
|
4807
|
+
Ho as useComposedDashboard,
|
4808
|
+
Mo as useExecuteCsvQuery,
|
4809
|
+
$o as useExecuteQuery,
|
4810
|
+
Io as useExecuteQueryByWidgetId,
|
4811
|
+
Vo as useFetch,
|
4812
|
+
_o as useGetDashboardModel,
|
4813
|
+
ko as useGetDashboardModels,
|
4814
|
+
qo as useGetHierarchyModels,
|
4815
|
+
Bo as useGetSharedFormula,
|
4816
|
+
Uo as useGetWidgetModel,
|
4817
|
+
Ko as usePlugins,
|
4818
|
+
tu as widgetModelTranslator
|
4572
4819
|
};
|