@sisense/sdk-ui-vue 2.32.0 → 2.33.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/ai.cjs +1 -1
- package/dist/ai.js +1 -1
- package/dist/index.cjs +1 -1
- package/dist/index.js +732 -493
- package/dist/src/components/charts/index.d.ts +1 -0
- package/dist/src/components/charts/sankey-chart.d.ts +178 -0
- package/dist/src/components/dashboard/dashboard-by-id.d.ts +1 -1
- package/dist/src/components/dashboard/dashboard-header-config.d.ts +87 -0
- package/dist/src/components/dashboard/dashboard.d.ts +6 -7
- package/dist/src/components/widgets/widget-by-id.d.ts +2 -2
- package/dist/src/components/widgets/widget.d.ts +12 -12
- package/dist/src/helpers/component-translator.d.ts +64 -0
- package/dist/src/helpers/dashboard-props-preact-translator.d.ts +33 -0
- package/dist/src/helpers/setup-helper.d.ts +10 -1
- package/dist/src/helpers/vue-component-adapter.d.ts +14 -7
- package/dist/src/sdk-ui-core-exports.d.ts +2 -1
- package/dist/src/utilities/dashboard-helpers.d.ts +5 -0
- package/dist/{use-tracking-1cbd274b.js → use-tracking-39f8225d.js} +29 -28
- package/dist/{use-tracking-94bc9fc5.cjs → use-tracking-bc372dcd.cjs} +1 -1
- package/package.json +3 -3
package/dist/index.js
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
var
|
|
2
|
-
var
|
|
3
|
-
var
|
|
4
|
-
import { DrilldownBreadcrumbs as
|
|
5
|
-
import { boxWhiskerProcessResult as
|
|
6
|
-
import { defineComponent as u, ref as
|
|
7
|
-
import { d as
|
|
8
|
-
import { C as
|
|
9
|
-
import { getFilterListAndRelationsJaql as
|
|
10
|
-
const
|
|
1
|
+
var at = Object.defineProperty;
|
|
2
|
+
var ct = (t, e, n) => e in t ? at(t, e, { enumerable: !0, configurable: !0, writable: !0, value: n }) : t[e] = n;
|
|
3
|
+
var I = (t, e, n) => (ct(t, typeof e != "symbol" ? e + "" : e, n), n);
|
|
4
|
+
import { DrilldownBreadcrumbs as ut, AreaChart as lt, BarChart as dt, CalendarHeatmapChart as pt, ColumnChart as yt, FunnelChart as ht, LineChart as gt, PieChart as bt, ScatterChart as ft, Table as Ot, PivotTable as Ct, TreemapChart as St, SunburstChart as Ft, PolarChart as Dt, IndicatorChart as mt, Chart as jt, BoxplotChart as vt, AreamapChart as Pt, ScattermapChart as wt, StreamgraphChart as xt, AreaRangeChart as At, SankeyChart as Mt, DateRangeFilterTile as Rt, MemberFilterTile as qt, CriteriaFilterTile as Wt, RelativeDateFilterTile as Tt, FilterTile as Et, FiltersPanel as Bt, queryStateReducer as nt, executeQueryWithRowCount as kt, executeQuery as $t, executeQueryByWidgetId as It, HookAdapter as A, useExecuteCsvQueryInternal as Qt, useExecutePivotQueryInternal as Ht, useExecuteCustomWidgetQueryInternal as Lt, useGetFilterMembers as Gt, useGetDataSourceDimensionsInternal as _t, translateToDashboardResponse as Vt, dataLoadStateReducer as Q, getDashboardModel as Nt, translateToDashboardsResponse as Jt, getDashboardModels as zt, useGetSharedFormulaInternal as Kt, getWidgetModel as Ut, getHierarchyModels as Xt, ComponentAdapter as Yt, createElement as Zt, ExternalComponentAdapterElement as te, useComposedDashboardInternal as ee, createHookApiFacade as Z, useJtdWidget as ne, ContextMenu as re, translateColumnToAttribute as oe, isSameAttribute as tt, updateDrilldownSelections as ie, processDrilldownSelections as se, getSelectionTitleMenuItem as ae, getDrilldownMenuItems as ce, ChartWidget as ue, WidgetById as le, PivotTableWidget as de, Widget as pe, DashboardById as ye, Dashboard as he, dashboardModelTranslator as ge, dashboardHelpers as $, widgetModelTranslator as w } from "@sisense/sdk-ui-preact";
|
|
5
|
+
import { DashboardHeaderTargets as pr, WidgetHeaderMenuTargets as yr, boxWhiskerProcessResult as hr, extractDimensionsAndMeasures as gr, formatDataSet as br, formatDate as fr, formatNumber as Or, getDefaultDateFormat as Cr } from "@sisense/sdk-ui-preact";
|
|
6
|
+
import { defineComponent as u, ref as D, watch as b, toRefs as h, onBeforeUnmount as x, createApp as be, h as rt, toValue as fe, computed as V, openBlock as Oe, createElementBlock as Ce, renderSlot as _, createVNode as et, unref as j, createElementVNode as Se } from "vue";
|
|
7
|
+
import { d as ot, s as l, a as W, g as P, u as C, b as g, t as d, e as N, f as M, h as T, i as H, j as Fe, k as De, l as me, c as je, m as J, n as z, o as ve } from "./use-tracking-39f8225d.js";
|
|
8
|
+
import { C as Fr, S as Dr, T as mr } from "./use-tracking-39f8225d.js";
|
|
9
|
+
import { getFilterListAndRelationsJaql as it, isMembersFilter as Pe, MetadataTypes as we } from "@sisense/sdk-data";
|
|
10
|
+
const xe = u({
|
|
11
11
|
props: {
|
|
12
12
|
/**
|
|
13
13
|
* {@inheritDoc @sisense/sdk-ui!DrilldownBreadcrumbsProps.clearDrilldownSelections}
|
|
@@ -46,8 +46,8 @@ const Se = u({
|
|
|
46
46
|
required: !0
|
|
47
47
|
}
|
|
48
48
|
},
|
|
49
|
-
setup: (t, { slots: e }) =>
|
|
50
|
-
}),
|
|
49
|
+
setup: (t, { slots: e }) => ot(ut, t, e, [])
|
|
50
|
+
}), dn = u({
|
|
51
51
|
props: {
|
|
52
52
|
/**
|
|
53
53
|
* {@inheritDoc @sisense/sdk-ui!AreaChartProps.dataOptions}
|
|
@@ -113,8 +113,8 @@ const Se = u({
|
|
|
113
113
|
*/
|
|
114
114
|
onDataPointsSelected: Function
|
|
115
115
|
},
|
|
116
|
-
setup: (t) =>
|
|
117
|
-
}),
|
|
116
|
+
setup: (t) => l(lt, t)
|
|
117
|
+
}), pn = u({
|
|
118
118
|
props: {
|
|
119
119
|
/**
|
|
120
120
|
* {@inheritDoc @sisense/sdk-ui!BarChartProps.dataOptions}
|
|
@@ -180,8 +180,8 @@ const Se = u({
|
|
|
180
180
|
*/
|
|
181
181
|
styleOptions: Object
|
|
182
182
|
},
|
|
183
|
-
setup: (t) =>
|
|
184
|
-
}),
|
|
183
|
+
setup: (t) => l(dt, t)
|
|
184
|
+
}), yn = u({
|
|
185
185
|
props: {
|
|
186
186
|
/**
|
|
187
187
|
* {@inheritDoc @sisense/sdk-ui!CalendarHeatmapChartProps.dataOptions}
|
|
@@ -247,8 +247,8 @@ const Se = u({
|
|
|
247
247
|
*/
|
|
248
248
|
onDataPointsSelected: Function
|
|
249
249
|
},
|
|
250
|
-
setup: (t) =>
|
|
251
|
-
}),
|
|
250
|
+
setup: (t) => l(pt, t)
|
|
251
|
+
}), hn = u({
|
|
252
252
|
props: {
|
|
253
253
|
/**
|
|
254
254
|
* {@inheritDoc @sisense/sdk-ui!ColumnChartProps.dataOptions}
|
|
@@ -314,8 +314,8 @@ const Se = u({
|
|
|
314
314
|
*/
|
|
315
315
|
styleOptions: Object
|
|
316
316
|
},
|
|
317
|
-
setup: (t) =>
|
|
318
|
-
}),
|
|
317
|
+
setup: (t) => l(yt, t)
|
|
318
|
+
}), gn = u({
|
|
319
319
|
props: {
|
|
320
320
|
/**
|
|
321
321
|
* {@inheritDoc @sisense/sdk-ui!FunnelChartProps.dataOptions}
|
|
@@ -381,8 +381,8 @@ const Se = u({
|
|
|
381
381
|
*/
|
|
382
382
|
styleOptions: Object
|
|
383
383
|
},
|
|
384
|
-
setup: (t) =>
|
|
385
|
-
}),
|
|
384
|
+
setup: (t) => l(ht, t)
|
|
385
|
+
}), bn = u({
|
|
386
386
|
props: {
|
|
387
387
|
/**
|
|
388
388
|
* {@inheritDoc @sisense/sdk-ui!LineChartProps.dataOptions}
|
|
@@ -448,8 +448,8 @@ const Se = u({
|
|
|
448
448
|
*/
|
|
449
449
|
styleOptions: Object
|
|
450
450
|
},
|
|
451
|
-
setup: (t) =>
|
|
452
|
-
}),
|
|
451
|
+
setup: (t) => l(gt, t)
|
|
452
|
+
}), fn = u({
|
|
453
453
|
props: {
|
|
454
454
|
/**
|
|
455
455
|
* {@inheritDoc @sisense/sdk-ui!PieChartProps.dataOptions}
|
|
@@ -515,8 +515,8 @@ const Se = u({
|
|
|
515
515
|
*/
|
|
516
516
|
styleOptions: Object
|
|
517
517
|
},
|
|
518
|
-
setup: (t) =>
|
|
519
|
-
}),
|
|
518
|
+
setup: (t) => l(bt, t)
|
|
519
|
+
}), On = u({
|
|
520
520
|
props: {
|
|
521
521
|
/**
|
|
522
522
|
* {@inheritDoc @sisense/sdk-ui!ScatterChartProps.dataOptions}
|
|
@@ -582,8 +582,8 @@ const Se = u({
|
|
|
582
582
|
*/
|
|
583
583
|
styleOptions: Object
|
|
584
584
|
},
|
|
585
|
-
setup: (t) =>
|
|
586
|
-
}),
|
|
585
|
+
setup: (t) => l(ft, t)
|
|
586
|
+
}), Cn = u({
|
|
587
587
|
props: {
|
|
588
588
|
/**
|
|
589
589
|
* {@inheritDoc @sisense/sdk-ui!TableProps.dataOptions}
|
|
@@ -621,8 +621,8 @@ const Se = u({
|
|
|
621
621
|
*/
|
|
622
622
|
onDataReady: Function
|
|
623
623
|
},
|
|
624
|
-
setup: (t) =>
|
|
625
|
-
}),
|
|
624
|
+
setup: (t) => l(Ot, t)
|
|
625
|
+
}), Sn = u({
|
|
626
626
|
props: {
|
|
627
627
|
/**
|
|
628
628
|
* {@inheritDoc @sisense/sdk-ui!PivotTableProps.dataOptions}
|
|
@@ -672,8 +672,8 @@ const Se = u({
|
|
|
672
672
|
*/
|
|
673
673
|
onDataPointContextMenu: Function
|
|
674
674
|
},
|
|
675
|
-
setup: (t) =>
|
|
676
|
-
}),
|
|
675
|
+
setup: (t) => l(Ct, t)
|
|
676
|
+
}), Fn = u({
|
|
677
677
|
props: {
|
|
678
678
|
/**
|
|
679
679
|
* {@inheritDoc @sisense/sdk-ui!TreemapChartProps.dataOptions}
|
|
@@ -739,8 +739,8 @@ const Se = u({
|
|
|
739
739
|
*/
|
|
740
740
|
styleOptions: Object
|
|
741
741
|
},
|
|
742
|
-
setup: (t) =>
|
|
743
|
-
}),
|
|
742
|
+
setup: (t) => l(St, t)
|
|
743
|
+
}), Dn = u({
|
|
744
744
|
props: {
|
|
745
745
|
/**
|
|
746
746
|
* {@inheritDoc @sisense/sdk-ui!SunburstChartProps.dataOptions}
|
|
@@ -806,8 +806,8 @@ const Se = u({
|
|
|
806
806
|
*/
|
|
807
807
|
styleOptions: Object
|
|
808
808
|
},
|
|
809
|
-
setup: (t) =>
|
|
810
|
-
}),
|
|
809
|
+
setup: (t) => l(Ft, t)
|
|
810
|
+
}), mn = u({
|
|
811
811
|
props: {
|
|
812
812
|
/**
|
|
813
813
|
* {@inheritDoc @sisense/sdk-ui!PolarChartProps.dataOptions}
|
|
@@ -873,8 +873,8 @@ const Se = u({
|
|
|
873
873
|
*/
|
|
874
874
|
styleOptions: Object
|
|
875
875
|
},
|
|
876
|
-
setup: (t) =>
|
|
877
|
-
}),
|
|
876
|
+
setup: (t) => l(Dt, t)
|
|
877
|
+
}), jn = u({
|
|
878
878
|
props: {
|
|
879
879
|
/**
|
|
880
880
|
* {@inheritDoc @sisense/sdk-ui!IndicatorChartProps.dataOptions}
|
|
@@ -922,8 +922,8 @@ const Se = u({
|
|
|
922
922
|
*/
|
|
923
923
|
onDataReady: Function
|
|
924
924
|
},
|
|
925
|
-
setup: (t) =>
|
|
926
|
-
}),
|
|
925
|
+
setup: (t) => l(mt, t)
|
|
926
|
+
}), vn = u({
|
|
927
927
|
props: {
|
|
928
928
|
/**
|
|
929
929
|
* {@inheritDoc @sisense/sdk-ui!ChartProps.chartType}
|
|
@@ -1002,8 +1002,8 @@ const Se = u({
|
|
|
1002
1002
|
*/
|
|
1003
1003
|
refreshCounter: Number
|
|
1004
1004
|
},
|
|
1005
|
-
setup: (t) =>
|
|
1006
|
-
}),
|
|
1005
|
+
setup: (t) => l(jt, t)
|
|
1006
|
+
}), Pn = u({
|
|
1007
1007
|
props: {
|
|
1008
1008
|
/**
|
|
1009
1009
|
* {@inheritDoc @sisense/sdk-ui!BoxplotChartProps.dataOptions}
|
|
@@ -1069,8 +1069,8 @@ const Se = u({
|
|
|
1069
1069
|
*/
|
|
1070
1070
|
onDataPointsSelected: Function
|
|
1071
1071
|
},
|
|
1072
|
-
setup: (t) =>
|
|
1073
|
-
}),
|
|
1072
|
+
setup: (t) => l(vt, t)
|
|
1073
|
+
}), wn = u({
|
|
1074
1074
|
props: {
|
|
1075
1075
|
/**
|
|
1076
1076
|
* {@inheritDoc @sisense/sdk-ui!AreamapChartProps.dataOptions}
|
|
@@ -1118,8 +1118,8 @@ const Se = u({
|
|
|
1118
1118
|
*/
|
|
1119
1119
|
onDataPointClick: Function
|
|
1120
1120
|
},
|
|
1121
|
-
setup: (t) =>
|
|
1122
|
-
}),
|
|
1121
|
+
setup: (t) => l(Pt, t)
|
|
1122
|
+
}), xn = u({
|
|
1123
1123
|
props: {
|
|
1124
1124
|
/**
|
|
1125
1125
|
* {@inheritDoc @sisense/sdk-ui!ScattermapChartProps.dataOptions}
|
|
@@ -1167,8 +1167,8 @@ const Se = u({
|
|
|
1167
1167
|
*/
|
|
1168
1168
|
onDataPointClick: Object
|
|
1169
1169
|
},
|
|
1170
|
-
setup: (t) =>
|
|
1171
|
-
}),
|
|
1170
|
+
setup: (t) => l(wt, t)
|
|
1171
|
+
}), An = u({
|
|
1172
1172
|
props: {
|
|
1173
1173
|
/**
|
|
1174
1174
|
* {@inheritDoc @sisense/sdk-ui!StreamgraphChartProps.dataOptions}
|
|
@@ -1234,8 +1234,8 @@ const Se = u({
|
|
|
1234
1234
|
*/
|
|
1235
1235
|
onDataPointsSelected: Function
|
|
1236
1236
|
},
|
|
1237
|
-
setup: (t) =>
|
|
1238
|
-
}),
|
|
1237
|
+
setup: (t) => l(xt, t)
|
|
1238
|
+
}), Mn = u({
|
|
1239
1239
|
props: {
|
|
1240
1240
|
/**
|
|
1241
1241
|
* {@inheritDoc @sisense/sdk-ui!AreaRangeChartProps.dataOptions}
|
|
@@ -1301,8 +1301,75 @@ const Se = u({
|
|
|
1301
1301
|
*/
|
|
1302
1302
|
styleOptions: Object
|
|
1303
1303
|
},
|
|
1304
|
-
setup: (t) =>
|
|
1305
|
-
}),
|
|
1304
|
+
setup: (t) => l(At, t)
|
|
1305
|
+
}), Rn = u({
|
|
1306
|
+
props: {
|
|
1307
|
+
/**
|
|
1308
|
+
* {@inheritDoc @sisense/sdk-ui!SankeyChartProps.dataOptions}
|
|
1309
|
+
*
|
|
1310
|
+
* @category Chart
|
|
1311
|
+
*/
|
|
1312
|
+
dataOptions: {
|
|
1313
|
+
type: Object,
|
|
1314
|
+
required: !0
|
|
1315
|
+
},
|
|
1316
|
+
/**
|
|
1317
|
+
* {@inheritDoc @sisense/sdk-ui!SankeyChartProps.dataSet}
|
|
1318
|
+
*
|
|
1319
|
+
* @category Data
|
|
1320
|
+
*/
|
|
1321
|
+
dataSet: [String, Object],
|
|
1322
|
+
/**
|
|
1323
|
+
* {@inheritDoc @sisense/sdk-ui!SankeyChartProps.filters}
|
|
1324
|
+
*
|
|
1325
|
+
* @category Data
|
|
1326
|
+
*/
|
|
1327
|
+
filters: [Object, Array],
|
|
1328
|
+
/**
|
|
1329
|
+
* {@inheritDoc @sisense/sdk-ui!SankeyChartProps.highlights}
|
|
1330
|
+
*
|
|
1331
|
+
* @category Data
|
|
1332
|
+
*/
|
|
1333
|
+
highlights: Array,
|
|
1334
|
+
/**
|
|
1335
|
+
* {@inheritDoc @sisense/sdk-ui!SankeyChartProps.styleOptions}
|
|
1336
|
+
*
|
|
1337
|
+
* @category Chart
|
|
1338
|
+
*/
|
|
1339
|
+
styleOptions: Object,
|
|
1340
|
+
/**
|
|
1341
|
+
* {@inheritDoc @sisense/sdk-ui!SankeyChartProps.onBeforeRender}
|
|
1342
|
+
*
|
|
1343
|
+
* @category Callbacks
|
|
1344
|
+
*/
|
|
1345
|
+
onBeforeRender: Function,
|
|
1346
|
+
/**
|
|
1347
|
+
* {@inheritDoc @sisense/sdk-ui!SankeyChartProps.onDataReady}
|
|
1348
|
+
*
|
|
1349
|
+
* @category Callbacks
|
|
1350
|
+
*/
|
|
1351
|
+
onDataReady: Function,
|
|
1352
|
+
/**
|
|
1353
|
+
* {@inheritDoc @sisense/sdk-ui!SankeyChartProps.onDataPointClick}
|
|
1354
|
+
*
|
|
1355
|
+
* @category Callbacks
|
|
1356
|
+
*/
|
|
1357
|
+
onDataPointClick: Function,
|
|
1358
|
+
/**
|
|
1359
|
+
* {@inheritDoc @sisense/sdk-ui!SankeyChartProps.onDataPointContextMenu}
|
|
1360
|
+
*
|
|
1361
|
+
* @category Callbacks
|
|
1362
|
+
*/
|
|
1363
|
+
onDataPointContextMenu: Function,
|
|
1364
|
+
/**
|
|
1365
|
+
* {@inheritDoc @sisense/sdk-ui!SankeyChartProps.onDataPointsSelected}
|
|
1366
|
+
*
|
|
1367
|
+
* @category Callbacks
|
|
1368
|
+
*/
|
|
1369
|
+
onDataPointsSelected: Function
|
|
1370
|
+
},
|
|
1371
|
+
setup: (t) => l(Mt, t)
|
|
1372
|
+
}), qn = u({
|
|
1306
1373
|
props: {
|
|
1307
1374
|
/**
|
|
1308
1375
|
* {@inheritDoc @sisense/sdk-ui!DateRangeFilterTileProps.attribute}
|
|
@@ -1362,8 +1429,8 @@ const Se = u({
|
|
|
1362
1429
|
*/
|
|
1363
1430
|
onEdit: Function
|
|
1364
1431
|
},
|
|
1365
|
-
setup: (t) =>
|
|
1366
|
-
}),
|
|
1432
|
+
setup: (t) => l(Rt, t)
|
|
1433
|
+
}), Wn = u({
|
|
1367
1434
|
props: {
|
|
1368
1435
|
/**
|
|
1369
1436
|
* {@inheritDoc @sisense/sdk-ui!MemberFilterTileProps.attribute}
|
|
@@ -1410,8 +1477,8 @@ const Se = u({
|
|
|
1410
1477
|
*/
|
|
1411
1478
|
onEdit: Function
|
|
1412
1479
|
},
|
|
1413
|
-
setup: (t) =>
|
|
1414
|
-
}),
|
|
1480
|
+
setup: (t) => l(qt, t)
|
|
1481
|
+
}), Tn = u({
|
|
1415
1482
|
props: {
|
|
1416
1483
|
/**
|
|
1417
1484
|
* {@inheritDoc @sisense/sdk-ui!CriteriaFilterTileProps.arrangement}
|
|
@@ -1451,8 +1518,8 @@ const Se = u({
|
|
|
1451
1518
|
*/
|
|
1452
1519
|
onEdit: Function
|
|
1453
1520
|
},
|
|
1454
|
-
setup: (t) =>
|
|
1455
|
-
}),
|
|
1521
|
+
setup: (t) => l(Wt, t)
|
|
1522
|
+
}), En = u({
|
|
1456
1523
|
props: {
|
|
1457
1524
|
/**
|
|
1458
1525
|
* {@inheritDoc @sisense/sdk-ui!RelativeDateFilterTileProps.title}
|
|
@@ -1497,8 +1564,8 @@ const Se = u({
|
|
|
1497
1564
|
*/
|
|
1498
1565
|
onEdit: Function
|
|
1499
1566
|
},
|
|
1500
|
-
setup: (t) =>
|
|
1501
|
-
}),
|
|
1567
|
+
setup: (t) => l(Tt, t)
|
|
1568
|
+
}), Bn = u({
|
|
1502
1569
|
props: {
|
|
1503
1570
|
/**
|
|
1504
1571
|
* {@inheritDoc @sisense/sdk-ui!FilterTileProps.filter}
|
|
@@ -1527,8 +1594,8 @@ const Se = u({
|
|
|
1527
1594
|
*/
|
|
1528
1595
|
onEdit: Function
|
|
1529
1596
|
},
|
|
1530
|
-
setup: (t) =>
|
|
1531
|
-
}),
|
|
1597
|
+
setup: (t) => l(Et, t)
|
|
1598
|
+
}), kn = u({
|
|
1532
1599
|
props: {
|
|
1533
1600
|
/**
|
|
1534
1601
|
* {@inheritDoc @sisense/sdk-ui!FiltersPanelProps.filters}
|
|
@@ -1559,116 +1626,116 @@ const Se = u({
|
|
|
1559
1626
|
required: !0
|
|
1560
1627
|
}
|
|
1561
1628
|
},
|
|
1562
|
-
setup: (t) =>
|
|
1563
|
-
}),
|
|
1564
|
-
const [e, n] = W(
|
|
1629
|
+
setup: (t) => l(Bt, t)
|
|
1630
|
+
}), $n = (t) => {
|
|
1631
|
+
const [e, n] = W(nt, {
|
|
1565
1632
|
isLoading: !0,
|
|
1566
1633
|
isError: !1,
|
|
1567
1634
|
isSuccess: !1,
|
|
1568
1635
|
status: "loading",
|
|
1569
1636
|
error: void 0,
|
|
1570
1637
|
data: void 0
|
|
1571
|
-
}),
|
|
1638
|
+
}), r = P();
|
|
1572
1639
|
C("useExecuteQuery");
|
|
1573
|
-
const
|
|
1640
|
+
const o = D(void 0), i = async (s) => {
|
|
1574
1641
|
try {
|
|
1575
1642
|
const {
|
|
1576
|
-
dataSource:
|
|
1577
|
-
dimensions:
|
|
1643
|
+
dataSource: c,
|
|
1644
|
+
dimensions: a,
|
|
1578
1645
|
measures: p,
|
|
1579
|
-
filters:
|
|
1580
|
-
highlights:
|
|
1646
|
+
filters: S,
|
|
1647
|
+
highlights: f,
|
|
1581
1648
|
count: y,
|
|
1582
1649
|
offset: F,
|
|
1583
|
-
ungroup:
|
|
1650
|
+
ungroup: m,
|
|
1584
1651
|
includeRowCount: v,
|
|
1585
|
-
onBeforeQuery:
|
|
1586
|
-
} =
|
|
1652
|
+
onBeforeQuery: R
|
|
1653
|
+
} = d(t), { filters: G, relations: L } = it(S);
|
|
1587
1654
|
n({ type: "loading" });
|
|
1588
|
-
const
|
|
1589
|
-
dataSource:
|
|
1590
|
-
dimensions:
|
|
1655
|
+
const O = {
|
|
1656
|
+
dataSource: c,
|
|
1657
|
+
dimensions: a,
|
|
1591
1658
|
measures: p,
|
|
1592
|
-
filters:
|
|
1593
|
-
filterRelations:
|
|
1594
|
-
highlights:
|
|
1659
|
+
filters: G,
|
|
1660
|
+
filterRelations: L,
|
|
1661
|
+
highlights: f,
|
|
1595
1662
|
count: y,
|
|
1596
1663
|
offset: F,
|
|
1597
|
-
ungroup:
|
|
1598
|
-
},
|
|
1664
|
+
ungroup: m
|
|
1665
|
+
}, k = { onBeforeQuery: N(R) };
|
|
1599
1666
|
if (v) {
|
|
1600
|
-
const
|
|
1601
|
-
|
|
1602
|
-
|
|
1603
|
-
|
|
1667
|
+
const q = await kt(
|
|
1668
|
+
O,
|
|
1669
|
+
s,
|
|
1670
|
+
k
|
|
1604
1671
|
);
|
|
1605
|
-
|
|
1672
|
+
o.value = q.rowCount, n({ type: "success", data: q.data });
|
|
1606
1673
|
} else {
|
|
1607
|
-
|
|
1608
|
-
const
|
|
1609
|
-
n({ type: "success", data:
|
|
1674
|
+
o.value = void 0;
|
|
1675
|
+
const q = await $t(O, s, k);
|
|
1676
|
+
n({ type: "success", data: q });
|
|
1610
1677
|
}
|
|
1611
|
-
} catch (
|
|
1612
|
-
n({ type: "error", error:
|
|
1678
|
+
} catch (c) {
|
|
1679
|
+
n({ type: "error", error: c });
|
|
1613
1680
|
}
|
|
1614
1681
|
};
|
|
1615
|
-
return
|
|
1616
|
-
[...
|
|
1682
|
+
return b(
|
|
1683
|
+
[...g(t), r],
|
|
1617
1684
|
() => {
|
|
1618
|
-
const { app:
|
|
1619
|
-
!
|
|
1685
|
+
const { app: s } = r.value, { enabled: c } = d(t);
|
|
1686
|
+
!s || !(c === void 0 || c === !0) || i(s);
|
|
1620
1687
|
},
|
|
1621
1688
|
{ immediate: !0 }
|
|
1622
1689
|
), {
|
|
1623
|
-
...
|
|
1624
|
-
rowCount:
|
|
1690
|
+
...h(e.value),
|
|
1691
|
+
rowCount: o
|
|
1625
1692
|
};
|
|
1626
|
-
},
|
|
1627
|
-
const e =
|
|
1693
|
+
}, In = (t) => {
|
|
1694
|
+
const e = D(void 0), n = D(void 0), r = D(void 0);
|
|
1628
1695
|
C("useExecuteQueryByWidgetId");
|
|
1629
|
-
const [
|
|
1696
|
+
const [o, i] = W(nt, {
|
|
1630
1697
|
isLoading: !0,
|
|
1631
1698
|
isError: !1,
|
|
1632
1699
|
isSuccess: !1,
|
|
1633
1700
|
status: "loading",
|
|
1634
1701
|
error: void 0,
|
|
1635
1702
|
data: void 0
|
|
1636
|
-
}),
|
|
1703
|
+
}), s = P(), c = async (a) => {
|
|
1637
1704
|
try {
|
|
1638
|
-
|
|
1639
|
-
const { filters: p, ...
|
|
1705
|
+
i({ type: "loading" });
|
|
1706
|
+
const { filters: p, ...S } = d(t), { filters: f } = it(N(p)), {
|
|
1640
1707
|
data: y,
|
|
1641
1708
|
query: F,
|
|
1642
|
-
pivotQuery:
|
|
1709
|
+
pivotQuery: m,
|
|
1643
1710
|
rowCount: v
|
|
1644
|
-
} = await
|
|
1645
|
-
...
|
|
1646
|
-
filters:
|
|
1647
|
-
app:
|
|
1711
|
+
} = await It({
|
|
1712
|
+
...S,
|
|
1713
|
+
filters: f,
|
|
1714
|
+
app: a
|
|
1648
1715
|
});
|
|
1649
|
-
|
|
1716
|
+
i({ type: "success", data: y }), e.value = F, n.value = m, r.value = v;
|
|
1650
1717
|
} catch (p) {
|
|
1651
|
-
|
|
1718
|
+
i({ type: "error", error: p });
|
|
1652
1719
|
}
|
|
1653
1720
|
};
|
|
1654
|
-
return
|
|
1655
|
-
[...
|
|
1721
|
+
return b(
|
|
1722
|
+
[...g(t), s],
|
|
1656
1723
|
() => {
|
|
1657
|
-
const { app:
|
|
1658
|
-
!
|
|
1724
|
+
const { app: a } = s.value, { enabled: p } = d(t);
|
|
1725
|
+
!a || !(p === void 0 || p === !0) || c(a);
|
|
1659
1726
|
},
|
|
1660
1727
|
{ immediate: !0 }
|
|
1661
1728
|
), {
|
|
1662
|
-
...
|
|
1729
|
+
...h(o.value),
|
|
1663
1730
|
query: e,
|
|
1664
1731
|
pivotQuery: n,
|
|
1665
|
-
rowCount:
|
|
1732
|
+
rowCount: r
|
|
1666
1733
|
};
|
|
1667
|
-
},
|
|
1734
|
+
}, Qn = (t) => {
|
|
1668
1735
|
C("useExecuteCsvQuery");
|
|
1669
|
-
const e = new
|
|
1736
|
+
const e = new A(Qt, [
|
|
1670
1737
|
M()
|
|
1671
|
-
]), [n,
|
|
1738
|
+
]), [n, r] = T({
|
|
1672
1739
|
isLoading: !0,
|
|
1673
1740
|
isError: !1,
|
|
1674
1741
|
isSuccess: !1,
|
|
@@ -1676,18 +1743,18 @@ const Se = u({
|
|
|
1676
1743
|
error: void 0,
|
|
1677
1744
|
data: void 0
|
|
1678
1745
|
});
|
|
1679
|
-
return e.subscribe((
|
|
1680
|
-
o
|
|
1681
|
-
}), e.run(
|
|
1682
|
-
e.run(
|
|
1683
|
-
}),
|
|
1746
|
+
return e.subscribe((o) => {
|
|
1747
|
+
r(o);
|
|
1748
|
+
}), e.run(d(t)), b([...g(t)], () => {
|
|
1749
|
+
e.run(d(t));
|
|
1750
|
+
}), x(() => {
|
|
1684
1751
|
e.destroy();
|
|
1685
|
-
}),
|
|
1686
|
-
},
|
|
1752
|
+
}), h(n.value);
|
|
1753
|
+
}, Hn = (t) => {
|
|
1687
1754
|
C("useExecutePivotQuery");
|
|
1688
|
-
const e = new
|
|
1755
|
+
const e = new A(Ht, [
|
|
1689
1756
|
M()
|
|
1690
|
-
]), [n,
|
|
1757
|
+
]), [n, r] = T({
|
|
1691
1758
|
isLoading: !0,
|
|
1692
1759
|
isError: !1,
|
|
1693
1760
|
isSuccess: !1,
|
|
@@ -1695,18 +1762,18 @@ const Se = u({
|
|
|
1695
1762
|
error: void 0,
|
|
1696
1763
|
data: void 0
|
|
1697
1764
|
});
|
|
1698
|
-
return e.subscribe((
|
|
1699
|
-
o
|
|
1700
|
-
}), e.run(
|
|
1701
|
-
e.run(
|
|
1702
|
-
}),
|
|
1765
|
+
return e.subscribe((o) => {
|
|
1766
|
+
r(o);
|
|
1767
|
+
}), e.run(d(t)), b([...g(t)], () => {
|
|
1768
|
+
e.run(d(t));
|
|
1769
|
+
}), x(() => {
|
|
1703
1770
|
e.destroy();
|
|
1704
|
-
}),
|
|
1705
|
-
},
|
|
1771
|
+
}), h(n.value);
|
|
1772
|
+
}, Ln = (t) => {
|
|
1706
1773
|
C("useExecuteCustomWidgetQuery");
|
|
1707
|
-
const e = new
|
|
1774
|
+
const e = new A(Lt, [
|
|
1708
1775
|
M()
|
|
1709
|
-
]), [n,
|
|
1776
|
+
]), [n, r] = T({
|
|
1710
1777
|
data: void 0,
|
|
1711
1778
|
isLoading: !0,
|
|
1712
1779
|
isError: !1,
|
|
@@ -1714,19 +1781,19 @@ const Se = u({
|
|
|
1714
1781
|
status: "loading",
|
|
1715
1782
|
error: void 0
|
|
1716
1783
|
});
|
|
1717
|
-
return e.subscribe((
|
|
1718
|
-
o
|
|
1719
|
-
}), e.run(
|
|
1720
|
-
e.run(
|
|
1721
|
-
}),
|
|
1784
|
+
return e.subscribe((o) => {
|
|
1785
|
+
r(o);
|
|
1786
|
+
}), e.run(d(t)), b([...g(t)], () => {
|
|
1787
|
+
e.run(d(t));
|
|
1788
|
+
}), x(() => {
|
|
1722
1789
|
e.destroy();
|
|
1723
|
-
}),
|
|
1724
|
-
},
|
|
1790
|
+
}), h(n.value);
|
|
1791
|
+
}, Gn = (t) => {
|
|
1725
1792
|
C("useGetFilterMembers");
|
|
1726
|
-
const { filter: e, parentFilters: n = [] } =
|
|
1793
|
+
const { filter: e, parentFilters: n = [] } = d(t), r = {
|
|
1727
1794
|
selectedMembers: [],
|
|
1728
1795
|
allMembers: [],
|
|
1729
|
-
...
|
|
1796
|
+
...Pe(e) ? {
|
|
1730
1797
|
excludeMembers: e.config.excludeMembers,
|
|
1731
1798
|
enableMultiSelection: e.config.enableMultiSelection,
|
|
1732
1799
|
hasBackgroundFilter: !!e.config.backgroundFilter && n.length === 0
|
|
@@ -1735,27 +1802,27 @@ const Se = u({
|
|
|
1735
1802
|
enableMultiSelection: !1,
|
|
1736
1803
|
hasBackgroundFilter: !1
|
|
1737
1804
|
}
|
|
1738
|
-
},
|
|
1805
|
+
}, o = new A(Gt, [M()]), [i, s] = T({
|
|
1739
1806
|
isLoading: !0,
|
|
1740
1807
|
isError: !1,
|
|
1741
1808
|
isSuccess: !1,
|
|
1742
1809
|
status: "loading",
|
|
1743
1810
|
error: void 0,
|
|
1744
|
-
data:
|
|
1811
|
+
data: r,
|
|
1745
1812
|
isAllItemsLoaded: !1
|
|
1746
1813
|
});
|
|
1747
|
-
return
|
|
1748
|
-
|
|
1749
|
-
}),
|
|
1750
|
-
|
|
1751
|
-
}),
|
|
1752
|
-
|
|
1753
|
-
}),
|
|
1754
|
-
},
|
|
1814
|
+
return o.subscribe((c) => {
|
|
1815
|
+
s(c);
|
|
1816
|
+
}), o.run(d(t)), b([...g(t)], () => {
|
|
1817
|
+
o.run(d(t));
|
|
1818
|
+
}), x(() => {
|
|
1819
|
+
o.destroy();
|
|
1820
|
+
}), h(i.value);
|
|
1821
|
+
}, _n = (t) => {
|
|
1755
1822
|
C("useGetDataSourceDimensions");
|
|
1756
|
-
const e = new
|
|
1823
|
+
const e = new A(_t, [
|
|
1757
1824
|
M()
|
|
1758
|
-
]), [n,
|
|
1825
|
+
]), [n, r] = T({
|
|
1759
1826
|
isLoading: !0,
|
|
1760
1827
|
isError: !1,
|
|
1761
1828
|
isSuccess: !1,
|
|
@@ -1763,85 +1830,85 @@ const Se = u({
|
|
|
1763
1830
|
error: void 0,
|
|
1764
1831
|
status: "loading"
|
|
1765
1832
|
});
|
|
1766
|
-
return e.subscribe((
|
|
1767
|
-
o
|
|
1768
|
-
}), e.run(
|
|
1769
|
-
e.run(
|
|
1770
|
-
}),
|
|
1833
|
+
return e.subscribe((o) => {
|
|
1834
|
+
r(o);
|
|
1835
|
+
}), e.run(d(t)), b([...g(t)], () => {
|
|
1836
|
+
e.run(d(t));
|
|
1837
|
+
}), x(() => {
|
|
1771
1838
|
e.destroy();
|
|
1772
|
-
}),
|
|
1773
|
-
},
|
|
1839
|
+
}), h(n.value);
|
|
1840
|
+
}, Vn = (t) => {
|
|
1774
1841
|
C("useGetDashboardModel");
|
|
1775
|
-
const [e, n] = W(
|
|
1842
|
+
const [e, n] = W(Q, {
|
|
1776
1843
|
isLoading: !0,
|
|
1777
1844
|
isError: !1,
|
|
1778
1845
|
isSuccess: !1,
|
|
1779
1846
|
status: "loading",
|
|
1780
1847
|
error: void 0,
|
|
1781
1848
|
data: void 0
|
|
1782
|
-
}),
|
|
1849
|
+
}), r = P(), o = H(), i = async (c) => {
|
|
1783
1850
|
try {
|
|
1784
1851
|
n({ type: "loading" });
|
|
1785
|
-
const { dashboardOid:
|
|
1786
|
-
|
|
1787
|
-
|
|
1788
|
-
{ includeWidgets: p, includeFilters:
|
|
1789
|
-
|
|
1790
|
-
|
|
1852
|
+
const { dashboardOid: a, includeWidgets: p, includeFilters: S } = d(t), f = await Nt(
|
|
1853
|
+
c.httpClient,
|
|
1854
|
+
a,
|
|
1855
|
+
{ includeWidgets: p, includeFilters: S },
|
|
1856
|
+
o.value,
|
|
1857
|
+
c.settings
|
|
1791
1858
|
);
|
|
1792
|
-
n({ type: "success", data:
|
|
1793
|
-
} catch (
|
|
1794
|
-
n({ type: "error", error:
|
|
1859
|
+
n({ type: "success", data: f });
|
|
1860
|
+
} catch (a) {
|
|
1861
|
+
n({ type: "error", error: a });
|
|
1795
1862
|
}
|
|
1796
1863
|
};
|
|
1797
|
-
|
|
1798
|
-
[...
|
|
1864
|
+
b(
|
|
1865
|
+
[...g(t), r, o],
|
|
1799
1866
|
() => {
|
|
1800
|
-
const { app:
|
|
1801
|
-
!
|
|
1867
|
+
const { app: c } = r.value, { enabled: a } = d(t);
|
|
1868
|
+
!c || !(a === void 0 || a === !0) || i(c);
|
|
1802
1869
|
},
|
|
1803
1870
|
{ immediate: !0 }
|
|
1804
1871
|
);
|
|
1805
|
-
const
|
|
1806
|
-
return
|
|
1807
|
-
},
|
|
1872
|
+
const s = h(e.value);
|
|
1873
|
+
return h(Vt(s));
|
|
1874
|
+
}, Nn = (t) => {
|
|
1808
1875
|
C("useGetDashboardModels");
|
|
1809
|
-
const [e, n] = W(
|
|
1876
|
+
const [e, n] = W(Q, {
|
|
1810
1877
|
isLoading: !0,
|
|
1811
1878
|
isError: !1,
|
|
1812
1879
|
isSuccess: !1,
|
|
1813
1880
|
status: "loading",
|
|
1814
1881
|
error: void 0,
|
|
1815
1882
|
data: void 0
|
|
1816
|
-
}),
|
|
1883
|
+
}), r = P(), o = H(), i = async (c) => {
|
|
1817
1884
|
try {
|
|
1818
1885
|
n({ type: "loading" });
|
|
1819
|
-
const
|
|
1820
|
-
|
|
1821
|
-
|
|
1822
|
-
|
|
1823
|
-
|
|
1886
|
+
const a = d(t), p = await zt(
|
|
1887
|
+
c.httpClient,
|
|
1888
|
+
a,
|
|
1889
|
+
o.value,
|
|
1890
|
+
c.settings
|
|
1824
1891
|
);
|
|
1825
1892
|
n({ type: "success", data: p });
|
|
1826
|
-
} catch (
|
|
1827
|
-
n({ type: "error", error:
|
|
1893
|
+
} catch (a) {
|
|
1894
|
+
n({ type: "error", error: a });
|
|
1828
1895
|
}
|
|
1829
1896
|
};
|
|
1830
|
-
|
|
1831
|
-
[...
|
|
1897
|
+
b(
|
|
1898
|
+
[...g(t), r, o],
|
|
1832
1899
|
() => {
|
|
1833
|
-
const { app:
|
|
1834
|
-
!
|
|
1900
|
+
const { app: c } = r.value, { enabled: a } = d(t);
|
|
1901
|
+
!c || !(a === void 0 || a === !0) || i(c);
|
|
1835
1902
|
},
|
|
1836
1903
|
{ immediate: !0 }
|
|
1837
1904
|
);
|
|
1838
|
-
const
|
|
1839
|
-
return
|
|
1840
|
-
},
|
|
1905
|
+
const s = h(e.value);
|
|
1906
|
+
return h(Jt(s));
|
|
1907
|
+
}, Jn = (t) => {
|
|
1841
1908
|
C("useGetSharedFormula");
|
|
1842
|
-
const e = new
|
|
1909
|
+
const e = new A(Kt, [
|
|
1843
1910
|
M()
|
|
1844
|
-
]), [n,
|
|
1911
|
+
]), [n, r] = T({
|
|
1845
1912
|
isLoading: !0,
|
|
1846
1913
|
isError: !1,
|
|
1847
1914
|
isSuccess: !1,
|
|
@@ -1849,104 +1916,104 @@ const Se = u({
|
|
|
1849
1916
|
error: void 0,
|
|
1850
1917
|
formula: null
|
|
1851
1918
|
});
|
|
1852
|
-
return e.subscribe((
|
|
1853
|
-
o
|
|
1854
|
-
}), e.run(
|
|
1855
|
-
e.run(
|
|
1856
|
-
}),
|
|
1919
|
+
return e.subscribe((o) => {
|
|
1920
|
+
r(o);
|
|
1921
|
+
}), e.run(d(t)), b([...g(t)], () => {
|
|
1922
|
+
e.run(d(t));
|
|
1923
|
+
}), x(() => {
|
|
1857
1924
|
e.destroy();
|
|
1858
|
-
}),
|
|
1859
|
-
},
|
|
1925
|
+
}), h(n.value);
|
|
1926
|
+
}, zn = (t) => {
|
|
1860
1927
|
C("useGetWidgetModel");
|
|
1861
|
-
const [e, n] = W(
|
|
1928
|
+
const [e, n] = W(Q, {
|
|
1862
1929
|
isLoading: !0,
|
|
1863
1930
|
isError: !1,
|
|
1864
1931
|
isSuccess: !1,
|
|
1865
1932
|
status: "loading",
|
|
1866
1933
|
error: void 0,
|
|
1867
1934
|
data: void 0
|
|
1868
|
-
}),
|
|
1935
|
+
}), r = P(), o = async (i) => {
|
|
1869
1936
|
try {
|
|
1870
1937
|
n({ type: "loading" });
|
|
1871
|
-
const { dashboardOid:
|
|
1872
|
-
n({ type: "success", data:
|
|
1873
|
-
} catch (
|
|
1874
|
-
n({ type: "error", error:
|
|
1938
|
+
const { dashboardOid: s, widgetOid: c } = d(t), a = await Ut(i.httpClient, s, c);
|
|
1939
|
+
n({ type: "success", data: a });
|
|
1940
|
+
} catch (s) {
|
|
1941
|
+
n({ type: "error", error: s });
|
|
1875
1942
|
}
|
|
1876
1943
|
};
|
|
1877
|
-
return
|
|
1878
|
-
[...
|
|
1944
|
+
return b(
|
|
1945
|
+
[...g(t), r],
|
|
1879
1946
|
() => {
|
|
1880
|
-
const { app:
|
|
1881
|
-
!
|
|
1947
|
+
const { app: i } = r.value, { enabled: s } = d(t);
|
|
1948
|
+
!i || !(s === void 0 || s === !0) || o(i);
|
|
1882
1949
|
},
|
|
1883
1950
|
{ immediate: !0 }
|
|
1884
|
-
),
|
|
1885
|
-
},
|
|
1951
|
+
), h(e.value);
|
|
1952
|
+
}, Kn = (t) => {
|
|
1886
1953
|
C("useGetHierarchyModels");
|
|
1887
|
-
const [e, n] = W(
|
|
1954
|
+
const [e, n] = W(Q, {
|
|
1888
1955
|
isLoading: !0,
|
|
1889
1956
|
isError: !1,
|
|
1890
1957
|
isSuccess: !1,
|
|
1891
1958
|
status: "loading",
|
|
1892
1959
|
error: void 0,
|
|
1893
1960
|
data: void 0
|
|
1894
|
-
}),
|
|
1961
|
+
}), r = P(), o = async (i) => {
|
|
1895
1962
|
try {
|
|
1896
1963
|
n({ type: "loading" });
|
|
1897
|
-
const
|
|
1898
|
-
n({ type: "success", data:
|
|
1899
|
-
} catch (
|
|
1900
|
-
n({ type: "error", error:
|
|
1964
|
+
const s = await Xt(i.httpClient, d(t));
|
|
1965
|
+
n({ type: "success", data: s });
|
|
1966
|
+
} catch (s) {
|
|
1967
|
+
n({ type: "error", error: s });
|
|
1901
1968
|
}
|
|
1902
1969
|
};
|
|
1903
|
-
return
|
|
1904
|
-
[...
|
|
1970
|
+
return b(
|
|
1971
|
+
[...g(t), r],
|
|
1905
1972
|
() => {
|
|
1906
|
-
const { app:
|
|
1907
|
-
!
|
|
1973
|
+
const { app: i } = r.value, { enabled: s } = d(t);
|
|
1974
|
+
!i || !(s === void 0 || s === !0) || o(i);
|
|
1908
1975
|
},
|
|
1909
1976
|
{ immediate: !0 }
|
|
1910
|
-
),
|
|
1911
|
-
},
|
|
1912
|
-
const [
|
|
1977
|
+
), h(e.value);
|
|
1978
|
+
}, Un = (t, e, n) => {
|
|
1979
|
+
const [r, o] = W(Q, {
|
|
1913
1980
|
isLoading: !0,
|
|
1914
1981
|
isError: !1,
|
|
1915
1982
|
isSuccess: !1,
|
|
1916
1983
|
status: "loading",
|
|
1917
1984
|
error: void 0,
|
|
1918
1985
|
data: void 0
|
|
1919
|
-
}),
|
|
1986
|
+
}), i = P(), s = async (c) => {
|
|
1920
1987
|
try {
|
|
1921
|
-
|
|
1922
|
-
const
|
|
1923
|
-
requestConfig:
|
|
1988
|
+
o({ type: "loading" });
|
|
1989
|
+
const a = N(t), p = e ? d(e) : {}, S = n ? d(n) : {}, f = {
|
|
1990
|
+
requestConfig: S.requestConfig ? d(S.requestConfig) : {},
|
|
1924
1991
|
skipTrackingParam: !0
|
|
1925
|
-
}, y = await
|
|
1926
|
-
|
|
1992
|
+
}, y = await c.call(
|
|
1993
|
+
c.url + a,
|
|
1927
1994
|
p,
|
|
1928
|
-
|
|
1995
|
+
f
|
|
1929
1996
|
);
|
|
1930
|
-
|
|
1931
|
-
} catch (
|
|
1932
|
-
|
|
1997
|
+
o({ type: "success", data: y });
|
|
1998
|
+
} catch (a) {
|
|
1999
|
+
o({ type: "error", error: a });
|
|
1933
2000
|
}
|
|
1934
2001
|
};
|
|
1935
|
-
return
|
|
1936
|
-
[...
|
|
2002
|
+
return b(
|
|
2003
|
+
[...g(t, e, n), i],
|
|
1937
2004
|
() => {
|
|
1938
|
-
const { app:
|
|
1939
|
-
!
|
|
2005
|
+
const { app: c } = i.value, a = d(n || {}).enabled;
|
|
2006
|
+
!c || !(a === void 0 || a === !0) || s(c.httpClient);
|
|
1940
2007
|
},
|
|
1941
2008
|
{ immediate: !0 }
|
|
1942
|
-
),
|
|
2009
|
+
), h(r.value);
|
|
1943
2010
|
};
|
|
1944
|
-
class
|
|
2011
|
+
class Ae {
|
|
1945
2012
|
constructor(e, n) {
|
|
1946
|
-
|
|
1947
|
-
|
|
1948
|
-
|
|
1949
|
-
|
|
2013
|
+
I(this, "app", null);
|
|
2014
|
+
I(this, "container", null);
|
|
2015
|
+
I(this, "isDestroyed", !1);
|
|
2016
|
+
I(this, "propsRef", null);
|
|
1950
2017
|
this.componentClass = e, this.contexts = n;
|
|
1951
2018
|
}
|
|
1952
2019
|
/**
|
|
@@ -1959,11 +2026,11 @@ class fe {
|
|
|
1959
2026
|
mount(e, n) {
|
|
1960
2027
|
if (this.app || this.isDestroyed)
|
|
1961
2028
|
return;
|
|
1962
|
-
this.container = e, this.propsRef =
|
|
1963
|
-
const
|
|
1964
|
-
setup: () => () =>
|
|
2029
|
+
this.container = e, this.propsRef = D(n);
|
|
2030
|
+
const r = {
|
|
2031
|
+
setup: () => () => rt(this.componentClass, this.propsRef.value)
|
|
1965
2032
|
};
|
|
1966
|
-
this.app =
|
|
2033
|
+
this.app = be(r), this.app.provide(Fe, this.contexts.sisenseContext), this.app.provide(De, this.contexts.themeContext), this.app.provide(me, this.contexts.customWidgetsContext), this.app.mount(e);
|
|
1967
2034
|
}
|
|
1968
2035
|
/**
|
|
1969
2036
|
* Updates the props on the existing Vue component instance.
|
|
@@ -1989,8 +2056,68 @@ class fe {
|
|
|
1989
2056
|
return this.app !== null && !this.isDestroyed;
|
|
1990
2057
|
}
|
|
1991
2058
|
}
|
|
1992
|
-
|
|
1993
|
-
|
|
2059
|
+
function Me(t, e) {
|
|
2060
|
+
return (n) => Zt(te, {
|
|
2061
|
+
adapterFactory: () => new Ae(t, e),
|
|
2062
|
+
componentProps: n
|
|
2063
|
+
});
|
|
2064
|
+
}
|
|
2065
|
+
function Re(t) {
|
|
2066
|
+
return u({
|
|
2067
|
+
name: "PreactComponent",
|
|
2068
|
+
inheritAttrs: !1,
|
|
2069
|
+
setup: (e, { attrs: n }) => {
|
|
2070
|
+
const r = D(null), o = new Yt(
|
|
2071
|
+
// the adapter renders any preact function component; the attrs are forwarded untyped
|
|
2072
|
+
t,
|
|
2073
|
+
je()
|
|
2074
|
+
);
|
|
2075
|
+
return x(() => {
|
|
2076
|
+
o.destroy();
|
|
2077
|
+
}), () => (r.value && o.render(r.value, J({ ...n })), rt("div", { ref: r, style: "width: 100%; height: 100%" }));
|
|
2078
|
+
}
|
|
2079
|
+
});
|
|
2080
|
+
}
|
|
2081
|
+
function K(t) {
|
|
2082
|
+
const e = /* @__PURE__ */ new WeakMap(), n = /* @__PURE__ */ new WeakMap(), r = (o, i) => {
|
|
2083
|
+
e.set(o, i), n.set(i, o);
|
|
2084
|
+
};
|
|
2085
|
+
return {
|
|
2086
|
+
/**
|
|
2087
|
+
* Translates a Vue component into a preact component.
|
|
2088
|
+
*
|
|
2089
|
+
* A Vue wrapper produced by {@link fromPreactComponent} is unwrapped back to the preact
|
|
2090
|
+
* component it renders, rather than being wrapped a second time.
|
|
2091
|
+
*/
|
|
2092
|
+
toPreactComponent: (o) => {
|
|
2093
|
+
const i = e.get(o);
|
|
2094
|
+
if (i)
|
|
2095
|
+
return i;
|
|
2096
|
+
const s = Me(o, t);
|
|
2097
|
+
return r(o, s), s;
|
|
2098
|
+
},
|
|
2099
|
+
/**
|
|
2100
|
+
* Translates a preact component into a Vue component.
|
|
2101
|
+
*
|
|
2102
|
+
* A preact wrapper produced by {@link toPreactComponent} is unwrapped back to the Vue component
|
|
2103
|
+
* it renders; any other preact component is wrapped in a generated Vue component that renders
|
|
2104
|
+
* it, so consumers can render it in a Vue template like any other component.
|
|
2105
|
+
*/
|
|
2106
|
+
fromPreactComponent: (o) => {
|
|
2107
|
+
const i = n.get(o);
|
|
2108
|
+
if (i)
|
|
2109
|
+
return i;
|
|
2110
|
+
const s = Re(o);
|
|
2111
|
+
return r(s, o), s;
|
|
2112
|
+
}
|
|
2113
|
+
};
|
|
2114
|
+
}
|
|
2115
|
+
const Xn = () => {
|
|
2116
|
+
const t = z(), e = K({
|
|
2117
|
+
sisenseContext: P(),
|
|
2118
|
+
themeContext: H(),
|
|
2119
|
+
customWidgetsContext: t
|
|
2120
|
+
});
|
|
1994
2121
|
return {
|
|
1995
2122
|
/**
|
|
1996
2123
|
* Registers a new custom widget.
|
|
@@ -1998,18 +2125,10 @@ const Rn = () => {
|
|
|
1998
2125
|
* @param customWidgetType - The unique identifier for the custom widget type.
|
|
1999
2126
|
* @param customWidget - The custom widget component to register.
|
|
2000
2127
|
*/
|
|
2001
|
-
registerCustomWidget: (
|
|
2002
|
-
|
|
2003
|
-
|
|
2004
|
-
|
|
2005
|
-
customWidgetsContext: o
|
|
2006
|
-
}, a = () => new fe(s, i), c = (p) => Gt(_t, {
|
|
2007
|
-
adapterFactory: a,
|
|
2008
|
-
componentProps: p
|
|
2009
|
-
});
|
|
2010
|
-
t.value.customWidgetsMap.has(r) || (t.value.customWidgetsMap.set(
|
|
2011
|
-
r,
|
|
2012
|
-
c
|
|
2128
|
+
registerCustomWidget: (n, r) => {
|
|
2129
|
+
t.value.customWidgetsMap.has(n) || (t.value.customWidgetsMap.set(
|
|
2130
|
+
n,
|
|
2131
|
+
e.toPreactComponent(r)
|
|
2013
2132
|
), t.value = {
|
|
2014
2133
|
customWidgetsMap: new Map(t.value.customWidgetsMap)
|
|
2015
2134
|
});
|
|
@@ -2019,8 +2138,8 @@ const Rn = () => {
|
|
|
2019
2138
|
*
|
|
2020
2139
|
* @param customWidgetType - The unique identifier for the custom widget type.
|
|
2021
2140
|
*/
|
|
2022
|
-
unregisterCustomWidget: (
|
|
2023
|
-
t.value.customWidgetsMap.delete(
|
|
2141
|
+
unregisterCustomWidget: (n) => {
|
|
2142
|
+
t.value.customWidgetsMap.delete(n) && (t.value = {
|
|
2024
2143
|
customWidgetsMap: new Map(t.value.customWidgetsMap)
|
|
2025
2144
|
});
|
|
2026
2145
|
},
|
|
@@ -2030,45 +2149,46 @@ const Rn = () => {
|
|
|
2030
2149
|
* @param customWidgetType - The type of the custom widget.
|
|
2031
2150
|
* @returns True if the custom widget is registered, false otherwise.
|
|
2032
2151
|
*/
|
|
2033
|
-
hasCustomWidget: (
|
|
2152
|
+
hasCustomWidget: (n) => t.value.customWidgetsMap.has(n)
|
|
2034
2153
|
};
|
|
2035
|
-
},
|
|
2154
|
+
}, Yn = (t, e = {}) => {
|
|
2036
2155
|
C("useComposedDashboard");
|
|
2037
|
-
const n =
|
|
2038
|
-
|
|
2039
|
-
|
|
2040
|
-
|
|
2041
|
-
|
|
2042
|
-
|
|
2043
|
-
|
|
2044
|
-
|
|
2045
|
-
|
|
2156
|
+
const n = (a) => d(a), r = new A(
|
|
2157
|
+
ee,
|
|
2158
|
+
[M()]
|
|
2159
|
+
), [o, i] = T(d(t));
|
|
2160
|
+
r.subscribe(({ dashboard: a }) => {
|
|
2161
|
+
i(a);
|
|
2162
|
+
}), r.run(n(t), e), b([...g(t)], () => {
|
|
2163
|
+
r.run(n(t), e);
|
|
2164
|
+
}), x(() => {
|
|
2165
|
+
r.destroy();
|
|
2046
2166
|
});
|
|
2047
|
-
const s =
|
|
2167
|
+
const s = Z(r, "setFilters"), c = Z(r, "setWidgetsLayout");
|
|
2048
2168
|
return {
|
|
2049
2169
|
dashboard: o,
|
|
2050
2170
|
setFilters: s,
|
|
2051
|
-
setWidgetsLayout:
|
|
2171
|
+
setWidgetsLayout: c
|
|
2052
2172
|
};
|
|
2053
|
-
},
|
|
2173
|
+
}, Zn = (t, e) => {
|
|
2054
2174
|
C("useJtdWidget");
|
|
2055
|
-
const n = new
|
|
2175
|
+
const n = new A(ne, [
|
|
2056
2176
|
M(),
|
|
2057
|
-
|
|
2058
|
-
]),
|
|
2059
|
-
n.subscribe((
|
|
2060
|
-
|
|
2177
|
+
ve()
|
|
2178
|
+
]), r = D(null);
|
|
2179
|
+
n.subscribe((i) => {
|
|
2180
|
+
r.value = i;
|
|
2061
2181
|
});
|
|
2062
|
-
const
|
|
2063
|
-
const
|
|
2064
|
-
n.run(
|
|
2182
|
+
const o = () => {
|
|
2183
|
+
const i = fe(t), s = d(e);
|
|
2184
|
+
n.run(i, s);
|
|
2065
2185
|
};
|
|
2066
|
-
return
|
|
2067
|
-
|
|
2068
|
-
}),
|
|
2186
|
+
return o(), b([...g(t), ...g(e)], () => {
|
|
2187
|
+
o();
|
|
2188
|
+
}), x(() => {
|
|
2069
2189
|
n.destroy();
|
|
2070
|
-
}),
|
|
2071
|
-
},
|
|
2190
|
+
}), r;
|
|
2191
|
+
}, qe = u({
|
|
2072
2192
|
props: {
|
|
2073
2193
|
/**
|
|
2074
2194
|
* {@inheritDoc @sisense/sdk-ui!ContextMenuProps.closeContextMenu}
|
|
@@ -2086,8 +2206,8 @@ const Rn = () => {
|
|
|
2086
2206
|
*/
|
|
2087
2207
|
position: Object
|
|
2088
2208
|
},
|
|
2089
|
-
setup: (t, { slots: e }) =>
|
|
2090
|
-
}),
|
|
2209
|
+
setup: (t, { slots: e }) => ot(re, t, e, [])
|
|
2210
|
+
}), We = ({
|
|
2091
2211
|
drilldownPaths: t,
|
|
2092
2212
|
initialDimension: e
|
|
2093
2213
|
}) => {
|
|
@@ -2095,52 +2215,52 @@ const Rn = () => {
|
|
|
2095
2215
|
throw new Error(
|
|
2096
2216
|
"Initial dimension has to be specified to use drilldown with custom components"
|
|
2097
2217
|
);
|
|
2098
|
-
const n =
|
|
2099
|
-
|
|
2218
|
+
const n = D([]), r = D(), o = D([]), i = D([]), s = V(() => [
|
|
2219
|
+
oe(e),
|
|
2100
2220
|
...n.value.map(({ nextDimension: y }) => y)
|
|
2101
|
-
]),
|
|
2221
|
+
]), c = V(
|
|
2102
2222
|
() => t.value.filter((y) => {
|
|
2103
|
-
if (
|
|
2223
|
+
if (we.isAttribute(y)) {
|
|
2104
2224
|
const v = y;
|
|
2105
|
-
return
|
|
2106
|
-
(
|
|
2225
|
+
return s.value.every(
|
|
2226
|
+
(R) => !tt(R, v)
|
|
2107
2227
|
);
|
|
2108
2228
|
}
|
|
2109
|
-
const
|
|
2110
|
-
return
|
|
2111
|
-
(v,
|
|
2229
|
+
const m = y;
|
|
2230
|
+
return s.value.every(
|
|
2231
|
+
(v, R) => tt(v, m.levels[R])
|
|
2112
2232
|
);
|
|
2113
2233
|
})
|
|
2114
|
-
),
|
|
2115
|
-
n.value =
|
|
2234
|
+
), a = (y, F, m) => {
|
|
2235
|
+
n.value = ie(
|
|
2116
2236
|
n.value,
|
|
2117
2237
|
y,
|
|
2118
2238
|
F,
|
|
2119
|
-
|
|
2120
|
-
),
|
|
2239
|
+
m
|
|
2240
|
+
), f();
|
|
2121
2241
|
}, p = (y) => {
|
|
2122
|
-
n.value = n.value.slice(0, y),
|
|
2123
|
-
}, O = () => {
|
|
2124
|
-
n.value = [], S();
|
|
2242
|
+
n.value = n.value.slice(0, y), f();
|
|
2125
2243
|
}, S = () => {
|
|
2126
|
-
|
|
2244
|
+
n.value = [], f();
|
|
2245
|
+
}, f = () => {
|
|
2246
|
+
const y = (m) => m === "drilldown.breadcrumbsAllSuffix" ? "All" : m, F = se(
|
|
2127
2247
|
n.value,
|
|
2128
2248
|
e,
|
|
2129
2249
|
y
|
|
2130
2250
|
);
|
|
2131
|
-
|
|
2251
|
+
r.value = F.drilldownDimension, o.value = F.drilldownFilters, i.value = F.drilldownFiltersDisplayValues;
|
|
2132
2252
|
};
|
|
2133
|
-
return
|
|
2253
|
+
return f(), {
|
|
2134
2254
|
drilldownSelections: n,
|
|
2135
|
-
availableDrilldownPaths:
|
|
2136
|
-
drilldownDimension:
|
|
2137
|
-
drilldownFilters:
|
|
2138
|
-
drilldownFiltersDisplayValues:
|
|
2139
|
-
selectDrilldown:
|
|
2255
|
+
availableDrilldownPaths: c,
|
|
2256
|
+
drilldownDimension: r,
|
|
2257
|
+
drilldownFilters: o,
|
|
2258
|
+
drilldownFiltersDisplayValues: i,
|
|
2259
|
+
selectDrilldown: a,
|
|
2140
2260
|
sliceDrilldownSelections: p,
|
|
2141
|
-
clearDrilldownSelections:
|
|
2261
|
+
clearDrilldownSelections: S
|
|
2142
2262
|
};
|
|
2143
|
-
},
|
|
2263
|
+
}, Te = u({
|
|
2144
2264
|
props: {
|
|
2145
2265
|
/**
|
|
2146
2266
|
* {@inheritDoc @sisense/sdk-ui!DrilldownWidgetProps.config}
|
|
@@ -2176,81 +2296,81 @@ const Rn = () => {
|
|
|
2176
2296
|
},
|
|
2177
2297
|
setup: () => {
|
|
2178
2298
|
}
|
|
2179
|
-
}),
|
|
2299
|
+
}), Ee = { style: { display: "flex", "flex-direction": "column", height: "100%" } }, Be = { style: { "flex-grow": "1", "min-wdith": "0", "min-height": "0" } }, tr = /* @__PURE__ */ u({
|
|
2180
2300
|
__name: "drilldown-widget",
|
|
2181
|
-
props:
|
|
2301
|
+
props: Te.props,
|
|
2182
2302
|
setup(t) {
|
|
2183
|
-
const e = t, { drilldownPaths: n, initialDimension:
|
|
2184
|
-
drilldownFilters:
|
|
2303
|
+
const e = t, { drilldownPaths: n, initialDimension: r, config: o } = h(e), i = D(null), s = D([]), {
|
|
2304
|
+
drilldownFilters: c,
|
|
2185
2305
|
// computed
|
|
2186
|
-
drilldownDimension:
|
|
2306
|
+
drilldownDimension: a,
|
|
2187
2307
|
// computed
|
|
2188
2308
|
drilldownFiltersDisplayValues: p,
|
|
2189
2309
|
// computed
|
|
2190
|
-
availableDrilldownPaths:
|
|
2310
|
+
availableDrilldownPaths: S,
|
|
2191
2311
|
// computed
|
|
2192
|
-
selectDrilldown:
|
|
2312
|
+
selectDrilldown: f,
|
|
2193
2313
|
sliceDrilldownSelections: y,
|
|
2194
2314
|
clearDrilldownSelections: F
|
|
2195
|
-
} =
|
|
2315
|
+
} = We({
|
|
2196
2316
|
drilldownPaths: n,
|
|
2197
|
-
initialDimension:
|
|
2198
|
-
}),
|
|
2199
|
-
|
|
2200
|
-
}, v =
|
|
2201
|
-
const
|
|
2202
|
-
|
|
2203
|
-
|
|
2204
|
-
),
|
|
2205
|
-
|
|
2206
|
-
|
|
2207
|
-
|
|
2208
|
-
|
|
2317
|
+
initialDimension: r.value
|
|
2318
|
+
}), m = (O) => {
|
|
2319
|
+
f(s.value, O);
|
|
2320
|
+
}, v = V(() => {
|
|
2321
|
+
const O = (Y) => Y === "drilldown.drillMenuItem" ? "Drill" : Y, k = ae(
|
|
2322
|
+
s.value,
|
|
2323
|
+
a.value
|
|
2324
|
+
), q = ce(
|
|
2325
|
+
S.value,
|
|
2326
|
+
a.value,
|
|
2327
|
+
m,
|
|
2328
|
+
O
|
|
2209
2329
|
);
|
|
2210
|
-
return
|
|
2211
|
-
}),
|
|
2212
|
-
|
|
2213
|
-
},
|
|
2214
|
-
|
|
2215
|
-
},
|
|
2216
|
-
|
|
2330
|
+
return q ? [k, q] : [k];
|
|
2331
|
+
}), R = (O) => {
|
|
2332
|
+
i.value = O;
|
|
2333
|
+
}, G = (O) => {
|
|
2334
|
+
s.value = O;
|
|
2335
|
+
}, L = () => {
|
|
2336
|
+
i.value = null;
|
|
2217
2337
|
};
|
|
2218
|
-
return (
|
|
2219
|
-
|
|
2220
|
-
contextMenuProps: { position:
|
|
2338
|
+
return (O, k) => (Oe(), Ce("div", Ee, [
|
|
2339
|
+
_(O.$slots, "contextMenu", {
|
|
2340
|
+
contextMenuProps: { position: i.value, itemSections: v.value, closeContextMenu: L }
|
|
2221
2341
|
}, () => [
|
|
2222
|
-
|
|
2223
|
-
position:
|
|
2342
|
+
et(j(qe), {
|
|
2343
|
+
position: i.value,
|
|
2224
2344
|
itemSections: v.value,
|
|
2225
|
-
closeContextMenu:
|
|
2345
|
+
closeContextMenu: L
|
|
2226
2346
|
}, null, 8, ["position", "itemSections"])
|
|
2227
2347
|
]),
|
|
2228
|
-
|
|
2348
|
+
_(O.$slots, "breadcrumbs", {
|
|
2229
2349
|
drilldownBreadcrumbsProps: {
|
|
2230
|
-
clearDrilldownSelections:
|
|
2231
|
-
sliceDrilldownSelections:
|
|
2232
|
-
drilldownFiltersDisplayValues:
|
|
2233
|
-
drilldownDimension:
|
|
2350
|
+
clearDrilldownSelections: j(F),
|
|
2351
|
+
sliceDrilldownSelections: j(y),
|
|
2352
|
+
drilldownFiltersDisplayValues: j(p),
|
|
2353
|
+
drilldownDimension: j(a)
|
|
2234
2354
|
}
|
|
2235
2355
|
}, () => [
|
|
2236
|
-
|
|
2237
|
-
"clear-drilldown-selections":
|
|
2238
|
-
"slice-drilldown-selections":
|
|
2239
|
-
"filters-display-values":
|
|
2240
|
-
"current-dimension":
|
|
2356
|
+
et(j(xe), {
|
|
2357
|
+
"clear-drilldown-selections": j(F),
|
|
2358
|
+
"slice-drilldown-selections": j(y),
|
|
2359
|
+
"filters-display-values": j(p),
|
|
2360
|
+
"current-dimension": j(a)
|
|
2241
2361
|
}, null, 8, ["clear-drilldown-selections", "slice-drilldown-selections", "filters-display-values", "current-dimension"])
|
|
2242
2362
|
]),
|
|
2243
|
-
|
|
2244
|
-
|
|
2245
|
-
drilldownFilters:
|
|
2246
|
-
drilldownDimension:
|
|
2247
|
-
onDataPointsSelected:
|
|
2248
|
-
onContextMenu:
|
|
2363
|
+
Se("div", Be, [
|
|
2364
|
+
_(O.$slots, "chart", {
|
|
2365
|
+
drilldownFilters: j(c),
|
|
2366
|
+
drilldownDimension: j(a),
|
|
2367
|
+
onDataPointsSelected: G,
|
|
2368
|
+
onContextMenu: R
|
|
2249
2369
|
})
|
|
2250
2370
|
])
|
|
2251
2371
|
]));
|
|
2252
2372
|
}
|
|
2253
|
-
}),
|
|
2373
|
+
}), er = u({
|
|
2254
2374
|
props: {
|
|
2255
2375
|
/**
|
|
2256
2376
|
* {@inheritDoc @sisense/sdk-ui!ChartWidgetProps.bottomSlot}
|
|
@@ -2383,8 +2503,8 @@ const Rn = () => {
|
|
|
2383
2503
|
*/
|
|
2384
2504
|
onDataReady: Function
|
|
2385
2505
|
},
|
|
2386
|
-
setup: (t) =>
|
|
2387
|
-
}),
|
|
2506
|
+
setup: (t) => l(ue, t)
|
|
2507
|
+
}), nr = u({
|
|
2388
2508
|
props: {
|
|
2389
2509
|
/** @internal */
|
|
2390
2510
|
bottomSlot: Object,
|
|
@@ -2491,8 +2611,8 @@ const Rn = () => {
|
|
|
2491
2611
|
*/
|
|
2492
2612
|
onDataReady: Function
|
|
2493
2613
|
},
|
|
2494
|
-
setup: (t) =>
|
|
2495
|
-
}),
|
|
2614
|
+
setup: (t) => l(le, t)
|
|
2615
|
+
}), rr = u({
|
|
2496
2616
|
props: {
|
|
2497
2617
|
/**
|
|
2498
2618
|
* {@inheritDoc @sisense/sdk-ui!PivotTableWidgetProps.dataOptions}
|
|
@@ -2598,8 +2718,8 @@ const Rn = () => {
|
|
|
2598
2718
|
*/
|
|
2599
2719
|
onHeaderCellFormat: Function
|
|
2600
2720
|
},
|
|
2601
|
-
setup: (t) =>
|
|
2602
|
-
}),
|
|
2721
|
+
setup: (t) => l(de, t)
|
|
2722
|
+
}), or = u({
|
|
2603
2723
|
props: {
|
|
2604
2724
|
/**
|
|
2605
2725
|
* Unique identifier of the widget
|
|
@@ -2737,8 +2857,92 @@ const Rn = () => {
|
|
|
2737
2857
|
*/
|
|
2738
2858
|
onDataPointsSelected: Function
|
|
2739
2859
|
},
|
|
2740
|
-
setup: (t) =>
|
|
2741
|
-
})
|
|
2860
|
+
setup: (t) => l(pe, t)
|
|
2861
|
+
});
|
|
2862
|
+
function U(t, e) {
|
|
2863
|
+
return e ? t.map((n) => ({
|
|
2864
|
+
...n,
|
|
2865
|
+
component: e.toPreactComponent(n.component)
|
|
2866
|
+
})) : t;
|
|
2867
|
+
}
|
|
2868
|
+
function X(t, e) {
|
|
2869
|
+
return e ? t.map((n) => ({
|
|
2870
|
+
...n,
|
|
2871
|
+
component: e.fromPreactComponent(n.component)
|
|
2872
|
+
})) : t;
|
|
2873
|
+
}
|
|
2874
|
+
function ke(t, e) {
|
|
2875
|
+
return (n) => U(
|
|
2876
|
+
t(X(n, e)),
|
|
2877
|
+
e
|
|
2878
|
+
);
|
|
2879
|
+
}
|
|
2880
|
+
function $e(t, e) {
|
|
2881
|
+
return (n) => X(
|
|
2882
|
+
t(U(n, e)),
|
|
2883
|
+
e
|
|
2884
|
+
);
|
|
2885
|
+
}
|
|
2886
|
+
function Ie(t, e) {
|
|
2887
|
+
const { items: n, onBeforeRender: r, ...o } = t;
|
|
2888
|
+
return {
|
|
2889
|
+
...o,
|
|
2890
|
+
...n && { items: U(n, e) },
|
|
2891
|
+
// omitted entirely when the consumer provided no transform, so the renderer can skip it
|
|
2892
|
+
...r && {
|
|
2893
|
+
onBeforeRender: ke(r, e)
|
|
2894
|
+
}
|
|
2895
|
+
};
|
|
2896
|
+
}
|
|
2897
|
+
function Qe(t, e) {
|
|
2898
|
+
const { items: n, onBeforeRender: r, ...o } = t;
|
|
2899
|
+
return {
|
|
2900
|
+
...o,
|
|
2901
|
+
...n && { items: X(n, e) },
|
|
2902
|
+
...r && {
|
|
2903
|
+
onBeforeRender: $e(r, e)
|
|
2904
|
+
}
|
|
2905
|
+
};
|
|
2906
|
+
}
|
|
2907
|
+
function st(t, e) {
|
|
2908
|
+
const { header: n, ...r } = t;
|
|
2909
|
+
return {
|
|
2910
|
+
...r,
|
|
2911
|
+
...n && { header: Ie(n, e) }
|
|
2912
|
+
// sibling sections are shared with preact verbatim; only `header` carries Vue components
|
|
2913
|
+
};
|
|
2914
|
+
}
|
|
2915
|
+
function He(t, e) {
|
|
2916
|
+
const { header: n, ...r } = t;
|
|
2917
|
+
return {
|
|
2918
|
+
...r,
|
|
2919
|
+
...n && { header: Qe(n, e) }
|
|
2920
|
+
};
|
|
2921
|
+
}
|
|
2922
|
+
function E(t, e) {
|
|
2923
|
+
const { config: n, ...r } = t;
|
|
2924
|
+
return {
|
|
2925
|
+
...r,
|
|
2926
|
+
...n && { config: st(n, e) }
|
|
2927
|
+
};
|
|
2928
|
+
}
|
|
2929
|
+
function B(t, e) {
|
|
2930
|
+
const { config: n, ...r } = t;
|
|
2931
|
+
return {
|
|
2932
|
+
...r,
|
|
2933
|
+
...n && { config: He(n, e) }
|
|
2934
|
+
};
|
|
2935
|
+
}
|
|
2936
|
+
function Le(t, e) {
|
|
2937
|
+
const { config: n, ...r } = t;
|
|
2938
|
+
return {
|
|
2939
|
+
...r,
|
|
2940
|
+
...n && {
|
|
2941
|
+
config: st(n, e)
|
|
2942
|
+
}
|
|
2943
|
+
};
|
|
2944
|
+
}
|
|
2945
|
+
const ir = u({
|
|
2742
2946
|
props: {
|
|
2743
2947
|
/**
|
|
2744
2948
|
* {@inheritDoc @sisense/sdk-ui!DashboardByIdProps.dashboardOid}
|
|
@@ -2752,8 +2956,18 @@ const Rn = () => {
|
|
|
2752
2956
|
*/
|
|
2753
2957
|
config: Object
|
|
2754
2958
|
},
|
|
2755
|
-
setup: (t) =>
|
|
2756
|
-
|
|
2959
|
+
setup: (t) => {
|
|
2960
|
+
const e = K({
|
|
2961
|
+
sisenseContext: P(),
|
|
2962
|
+
themeContext: H(),
|
|
2963
|
+
customWidgetsContext: z()
|
|
2964
|
+
});
|
|
2965
|
+
return l(
|
|
2966
|
+
ye,
|
|
2967
|
+
() => Le(J(t), e)
|
|
2968
|
+
);
|
|
2969
|
+
}
|
|
2970
|
+
}), sr = u({
|
|
2757
2971
|
props: {
|
|
2758
2972
|
/**
|
|
2759
2973
|
* {@inheritDoc @sisense/sdk-ui!DashboardProps.title}
|
|
@@ -2791,122 +3005,147 @@ const Rn = () => {
|
|
|
2791
3005
|
*/
|
|
2792
3006
|
styleOptions: Object
|
|
2793
3007
|
},
|
|
2794
|
-
setup: (t) =>
|
|
3008
|
+
setup: (t) => {
|
|
3009
|
+
const e = K({
|
|
3010
|
+
sisenseContext: P(),
|
|
3011
|
+
themeContext: H(),
|
|
3012
|
+
customWidgetsContext: z()
|
|
3013
|
+
});
|
|
3014
|
+
return l(
|
|
3015
|
+
he,
|
|
3016
|
+
() => E(J(t), e)
|
|
3017
|
+
);
|
|
3018
|
+
}
|
|
2795
3019
|
});
|
|
2796
|
-
function
|
|
2797
|
-
return
|
|
3020
|
+
function Ge(t) {
|
|
3021
|
+
return B(ge.toDashboardProps(t));
|
|
2798
3022
|
}
|
|
2799
|
-
const
|
|
3023
|
+
const ar = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
2800
3024
|
__proto__: null,
|
|
2801
|
-
toDashboardProps:
|
|
2802
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
2803
|
-
t,
|
|
2804
|
-
|
|
2805
|
-
|
|
2806
|
-
),
|
|
3025
|
+
toDashboardProps: Ge
|
|
3026
|
+
}, Symbol.toStringTag, { value: "Module" })), _e = (t, e) => B(
|
|
3027
|
+
$.replaceFilters(E(t), e)
|
|
3028
|
+
), Ve = (t, e) => B(
|
|
3029
|
+
$.addFilter(E(t), e)
|
|
3030
|
+
), Ne = (t, e) => B(
|
|
3031
|
+
$.addFilters(E(t), e)
|
|
3032
|
+
), Je = (t, e, n) => B(
|
|
3033
|
+
$.replaceFilter(
|
|
3034
|
+
E(t),
|
|
3035
|
+
e,
|
|
3036
|
+
n
|
|
3037
|
+
)
|
|
3038
|
+
), ze = (t, e) => B(
|
|
3039
|
+
$.removeFilter(E(t), e)
|
|
3040
|
+
), Ke = (t, e) => B(
|
|
3041
|
+
$.removeFilters(E(t), e)
|
|
3042
|
+
), cr = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
2807
3043
|
__proto__: null,
|
|
2808
|
-
addFilter:
|
|
2809
|
-
addFilters:
|
|
2810
|
-
removeFilter:
|
|
2811
|
-
removeFilters:
|
|
2812
|
-
replaceFilter:
|
|
2813
|
-
replaceFilters:
|
|
2814
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
2815
|
-
function
|
|
2816
|
-
return
|
|
3044
|
+
addFilter: Ve,
|
|
3045
|
+
addFilters: Ne,
|
|
3046
|
+
removeFilter: ze,
|
|
3047
|
+
removeFilters: Ke,
|
|
3048
|
+
replaceFilter: Je,
|
|
3049
|
+
replaceFilters: _e
|
|
3050
|
+
}, Symbol.toStringTag, { value: "Module" })), Ue = (t) => w.toExecuteQueryParams(t), Xe = (t) => w.toExecutePivotQueryParams(t);
|
|
3051
|
+
function Ye(t) {
|
|
3052
|
+
return w.toChartProps(t);
|
|
2817
3053
|
}
|
|
2818
|
-
function
|
|
2819
|
-
return
|
|
3054
|
+
function Ze(t) {
|
|
3055
|
+
return w.toTableProps(t);
|
|
2820
3056
|
}
|
|
2821
|
-
function
|
|
2822
|
-
return
|
|
3057
|
+
function tn(t) {
|
|
3058
|
+
return w.toPivotTableProps(t);
|
|
2823
3059
|
}
|
|
2824
|
-
function
|
|
2825
|
-
return
|
|
3060
|
+
function en(t) {
|
|
3061
|
+
return w.toChartWidgetProps(t);
|
|
2826
3062
|
}
|
|
2827
|
-
function
|
|
2828
|
-
return
|
|
3063
|
+
function nn(t) {
|
|
3064
|
+
return w.toPivotTableWidgetProps(t);
|
|
2829
3065
|
}
|
|
2830
|
-
function
|
|
2831
|
-
return
|
|
3066
|
+
function rn(t) {
|
|
3067
|
+
return w.toTextWidgetProps(t);
|
|
2832
3068
|
}
|
|
2833
|
-
function
|
|
2834
|
-
return
|
|
3069
|
+
function on(t) {
|
|
3070
|
+
return w.toWidgetProps(t);
|
|
2835
3071
|
}
|
|
2836
|
-
const
|
|
3072
|
+
const ur = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
2837
3073
|
__proto__: null,
|
|
2838
|
-
toChartProps:
|
|
2839
|
-
toChartWidgetProps:
|
|
2840
|
-
toExecutePivotQueryParams:
|
|
2841
|
-
toExecuteQueryParams:
|
|
2842
|
-
toPivotTableProps:
|
|
2843
|
-
toPivotTableWidgetProps:
|
|
2844
|
-
toTableProps:
|
|
2845
|
-
toTextWidgetProps:
|
|
2846
|
-
toWidgetProps:
|
|
3074
|
+
toChartProps: Ye,
|
|
3075
|
+
toChartWidgetProps: en,
|
|
3076
|
+
toExecutePivotQueryParams: Xe,
|
|
3077
|
+
toExecuteQueryParams: Ue,
|
|
3078
|
+
toPivotTableProps: tn,
|
|
3079
|
+
toPivotTableWidgetProps: nn,
|
|
3080
|
+
toTableProps: Ze,
|
|
3081
|
+
toTextWidgetProps: rn,
|
|
3082
|
+
toWidgetProps: on
|
|
2847
3083
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
2848
3084
|
export {
|
|
2849
|
-
|
|
2850
|
-
|
|
2851
|
-
|
|
2852
|
-
|
|
2853
|
-
|
|
2854
|
-
|
|
2855
|
-
|
|
2856
|
-
|
|
2857
|
-
|
|
2858
|
-
|
|
2859
|
-
|
|
2860
|
-
|
|
2861
|
-
|
|
2862
|
-
|
|
2863
|
-
|
|
2864
|
-
|
|
2865
|
-
|
|
2866
|
-
|
|
2867
|
-
|
|
2868
|
-
|
|
2869
|
-
|
|
2870
|
-
|
|
2871
|
-
bn as
|
|
2872
|
-
|
|
2873
|
-
|
|
2874
|
-
|
|
2875
|
-
|
|
2876
|
-
|
|
2877
|
-
|
|
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
|
-
|
|
3085
|
+
dn as AreaChart,
|
|
3086
|
+
Mn as AreaRangeChart,
|
|
3087
|
+
wn as AreamapChart,
|
|
3088
|
+
pn as BarChart,
|
|
3089
|
+
Pn as BoxplotChart,
|
|
3090
|
+
yn as CalendarHeatmapChart,
|
|
3091
|
+
vn as Chart,
|
|
3092
|
+
er as ChartWidget,
|
|
3093
|
+
hn as ColumnChart,
|
|
3094
|
+
qe as ContextMenu,
|
|
3095
|
+
Tn as CriteriaFilterTile,
|
|
3096
|
+
Fr as CustomWidgetsProvider,
|
|
3097
|
+
sr as Dashboard,
|
|
3098
|
+
ir as DashboardById,
|
|
3099
|
+
pr as DashboardHeaderTargets,
|
|
3100
|
+
qn as DateRangeFilterTile,
|
|
3101
|
+
xe as DrilldownBreadcrumbs,
|
|
3102
|
+
tr as DrilldownWidget,
|
|
3103
|
+
Bn as FilterTile,
|
|
3104
|
+
kn as FiltersPanel,
|
|
3105
|
+
gn as FunnelChart,
|
|
3106
|
+
jn as IndicatorChart,
|
|
3107
|
+
bn as LineChart,
|
|
3108
|
+
Wn as MemberFilterTile,
|
|
3109
|
+
fn as PieChart,
|
|
3110
|
+
Sn as PivotTable,
|
|
3111
|
+
rr as PivotTableWidget,
|
|
3112
|
+
mn as PolarChart,
|
|
3113
|
+
En as RelativeDateFilterTile,
|
|
3114
|
+
Rn as SankeyChart,
|
|
3115
|
+
On as ScatterChart,
|
|
3116
|
+
xn as ScattermapChart,
|
|
3117
|
+
Dr as SisenseContextProvider,
|
|
3118
|
+
An as StreamgraphChart,
|
|
3119
|
+
Dn as SunburstChart,
|
|
3120
|
+
Cn as Table,
|
|
3121
|
+
mr as ThemeProvider,
|
|
3122
|
+
Fn as TreemapChart,
|
|
3123
|
+
or as Widget,
|
|
3124
|
+
nr as WidgetById,
|
|
3125
|
+
yr as WidgetHeaderMenuTargets,
|
|
3126
|
+
hr as boxWhiskerProcessResult,
|
|
3127
|
+
cr as dashboardHelpers,
|
|
3128
|
+
ar as dashboardModelTranslator,
|
|
3129
|
+
gr as extractDimensionsAndMeasures,
|
|
3130
|
+
br as formatDataSet,
|
|
3131
|
+
fr as formatDate,
|
|
3132
|
+
Or as formatNumber,
|
|
3133
|
+
Cr as getDefaultDateFormat,
|
|
3134
|
+
Yn as useComposedDashboard,
|
|
3135
|
+
Xn as useCustomWidgets,
|
|
3136
|
+
Qn as useExecuteCsvQuery,
|
|
3137
|
+
Ln as useExecuteCustomWidgetQuery,
|
|
3138
|
+
Hn as useExecutePivotQuery,
|
|
3139
|
+
$n as useExecuteQuery,
|
|
3140
|
+
In as useExecuteQueryByWidgetId,
|
|
3141
|
+
Un as useFetch,
|
|
3142
|
+
Vn as useGetDashboardModel,
|
|
3143
|
+
Nn as useGetDashboardModels,
|
|
3144
|
+
_n as useGetDataSourceDimensions,
|
|
3145
|
+
Gn as useGetFilterMembers,
|
|
3146
|
+
Kn as useGetHierarchyModels,
|
|
3147
|
+
Jn as useGetSharedFormula,
|
|
3148
|
+
zn as useGetWidgetModel,
|
|
3149
|
+
Zn as useJtdWidget,
|
|
3150
|
+
ur as widgetModelTranslator
|
|
2912
3151
|
};
|