@sisense/sdk-ui-vue 2.25.0 → 2.26.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 +1 -1
- package/dist/ai.js +80 -77
- package/dist/index.cjs +1 -1
- package/dist/index.js +310 -295
- package/dist/packages/sdk-ui-vue/src/components/widgets/index.d.ts +0 -1
- package/dist/packages/sdk-ui-vue/src/composables/index.d.ts +2 -0
- package/dist/packages/sdk-ui-vue/src/composables/use-custom-widgets.d.ts +10 -1
- package/dist/packages/sdk-ui-vue/src/composables/use-get-data-source-dimensions.d.ts +42 -0
- package/dist/use-tracking-04bcc493.js +512 -0
- package/dist/{use-tracking-52aab296.cjs → use-tracking-a5140061.cjs} +1 -1
- package/package.json +3 -3
- package/dist/packages/sdk-ui-vue/src/components/widgets/table-widget.d.ts +0 -57
- package/dist/packages/sdk-ui-vue/src/providers/sisense-context-provider/sisense-context-provider.d.ts +0 -205
- package/dist/use-tracking-9217c553.js +0 -503
package/dist/index.js
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
var K = Object.defineProperty;
|
|
2
2
|
var U = (t, e, n) => e in t ? K(t, e, { enumerable: !0, configurable: !0, writable: !0, value: n }) : t[e] = n;
|
|
3
3
|
var E = (t, e, n) => (U(t, typeof e != "symbol" ? e + "" : e, n), n);
|
|
4
|
-
import { DrilldownBreadcrumbs as X, AreaChart as Y, BarChart as Z, CalendarHeatmapChart as tt, ColumnChart as et, FunnelChart as nt, LineChart as rt, PieChart as ot, ScatterChart as it, Table as st, PivotTable as at, TreemapChart as
|
|
4
|
+
import { DrilldownBreadcrumbs as X, AreaChart as Y, BarChart as Z, CalendarHeatmapChart as tt, ColumnChart as et, FunnelChart as nt, LineChart as rt, PieChart as ot, ScatterChart as it, Table as st, PivotTable as at, TreemapChart as ut, SunburstChart as ct, PolarChart as lt, IndicatorChart as dt, Chart as pt, BoxplotChart as yt, AreamapChart as ht, ScattermapChart as bt, StreamgraphChart as gt, AreaRangeChart as Ot, DateRangeFilterTile as St, MemberFilterTile as Ft, CriteriaFilterTile as ft, RelativeDateFilterTile as Ct, FilterTile as Dt, FiltersPanel as mt, queryStateReducer as J, executeQuery as jt, executeQueryByWidgetId as vt, HookAdapter as x, useExecuteCsvQueryInternal as Pt, useExecutePivotQueryInternal as xt, useExecuteCustomWidgetQueryInternal as At, useGetFilterMembers as Mt, useGetDataSourceDimensionsInternal as wt, translateToDashboardResponse as qt, dataLoadStateReducer as B, getDashboardModel as Rt, translateToDashboardsResponse as Wt, getDashboardModels as Tt, useGetSharedFormulaInternal as Et, getWidgetModel as Bt, getHierarchyModels as kt, createElement as $t, ExternalComponentAdapterElement as Qt, useComposedDashboardInternal as It, createHookApiFacade as _, useJtdWidget as Lt, ContextMenu as Gt, translateColumnToAttribute as _t, isSameAttribute as H, updateDrilldownSelections as Ht, processDrilldownSelections as Vt, getSelectionTitleMenuItem as Jt, getDrilldownMenuItems as Nt, ChartWidget as zt, WidgetById as Kt, PivotTableWidget as Ut, Widget as Xt, DashboardById as Yt, Dashboard as Zt, dashboardModelTranslator as te, dashboardHelpers as T, widgetModelTranslator as v } from "@sisense/sdk-ui-preact";
|
|
5
5
|
import { boxWhiskerProcessResult as Hn, extractDimensionsAndMeasures as Vn } from "@sisense/sdk-ui-preact";
|
|
6
|
-
import { defineComponent as
|
|
7
|
-
import { d as N, s as
|
|
8
|
-
import { C as Nn, S as zn, T as Kn } from "./use-tracking-
|
|
9
|
-
import { getFilterListAndRelationsJaql as z, isMembersFilter as ye, MetadataTypes as
|
|
10
|
-
const
|
|
6
|
+
import { defineComponent as u, watch as g, toRefs as h, ref as j, onBeforeUnmount as A, createApp as ee, h as ne, toValue as re, computed as I, openBlock as oe, createElementBlock as ie, renderSlot as Q, createVNode as V, unref as C, createElementVNode as se } from "vue";
|
|
7
|
+
import { d as N, s as d, a as R, g as M, u as O, b, t as l, e as L, f as w, h as W, i as ae, j as ue, k as ce, l as le, m as de, n as pe } from "./use-tracking-04bcc493.js";
|
|
8
|
+
import { C as Nn, S as zn, T as Kn } from "./use-tracking-04bcc493.js";
|
|
9
|
+
import { getFilterListAndRelationsJaql as z, isMembersFilter as ye, MetadataTypes as he } from "@sisense/sdk-data";
|
|
10
|
+
const be = u({
|
|
11
11
|
props: {
|
|
12
12
|
/**
|
|
13
13
|
* {@inheritDoc @sisense/sdk-ui!DrilldownBreadcrumbsProps.clearDrilldownSelections}
|
|
@@ -47,7 +47,7 @@ const he = c({
|
|
|
47
47
|
}
|
|
48
48
|
},
|
|
49
49
|
setup: (t, { slots: e }) => N(X, t, e, [])
|
|
50
|
-
}), _e =
|
|
50
|
+
}), _e = u({
|
|
51
51
|
props: {
|
|
52
52
|
/**
|
|
53
53
|
* {@inheritDoc @sisense/sdk-ui!AreaChartProps.dataOptions}
|
|
@@ -113,8 +113,8 @@ const he = c({
|
|
|
113
113
|
*/
|
|
114
114
|
onDataPointsSelected: Function
|
|
115
115
|
},
|
|
116
|
-
setup: (t) =>
|
|
117
|
-
}), He =
|
|
116
|
+
setup: (t) => d(Y, t)
|
|
117
|
+
}), He = u({
|
|
118
118
|
props: {
|
|
119
119
|
/**
|
|
120
120
|
* {@inheritDoc @sisense/sdk-ui!BarChartProps.dataOptions}
|
|
@@ -180,8 +180,8 @@ const he = c({
|
|
|
180
180
|
*/
|
|
181
181
|
styleOptions: Object
|
|
182
182
|
},
|
|
183
|
-
setup: (t) =>
|
|
184
|
-
}), Ve =
|
|
183
|
+
setup: (t) => d(Z, t)
|
|
184
|
+
}), Ve = u({
|
|
185
185
|
props: {
|
|
186
186
|
/**
|
|
187
187
|
* {@inheritDoc @sisense/sdk-ui!CalendarHeatmapChartProps.dataOptions}
|
|
@@ -247,8 +247,8 @@ const he = c({
|
|
|
247
247
|
*/
|
|
248
248
|
onDataPointsSelected: Function
|
|
249
249
|
},
|
|
250
|
-
setup: (t) =>
|
|
251
|
-
}), Je =
|
|
250
|
+
setup: (t) => d(tt, t)
|
|
251
|
+
}), Je = u({
|
|
252
252
|
props: {
|
|
253
253
|
/**
|
|
254
254
|
* {@inheritDoc @sisense/sdk-ui!ColumnChartProps.dataOptions}
|
|
@@ -314,8 +314,8 @@ const he = c({
|
|
|
314
314
|
*/
|
|
315
315
|
styleOptions: Object
|
|
316
316
|
},
|
|
317
|
-
setup: (t) =>
|
|
318
|
-
}), Ne =
|
|
317
|
+
setup: (t) => d(et, t)
|
|
318
|
+
}), Ne = u({
|
|
319
319
|
props: {
|
|
320
320
|
/**
|
|
321
321
|
* {@inheritDoc @sisense/sdk-ui!FunnelChartProps.dataOptions}
|
|
@@ -381,8 +381,8 @@ const he = c({
|
|
|
381
381
|
*/
|
|
382
382
|
styleOptions: Object
|
|
383
383
|
},
|
|
384
|
-
setup: (t) =>
|
|
385
|
-
}), ze =
|
|
384
|
+
setup: (t) => d(nt, t)
|
|
385
|
+
}), ze = u({
|
|
386
386
|
props: {
|
|
387
387
|
/**
|
|
388
388
|
* {@inheritDoc @sisense/sdk-ui!LineChartProps.dataOptions}
|
|
@@ -448,8 +448,8 @@ const he = c({
|
|
|
448
448
|
*/
|
|
449
449
|
styleOptions: Object
|
|
450
450
|
},
|
|
451
|
-
setup: (t) =>
|
|
452
|
-
}), Ke =
|
|
451
|
+
setup: (t) => d(rt, t)
|
|
452
|
+
}), Ke = u({
|
|
453
453
|
props: {
|
|
454
454
|
/**
|
|
455
455
|
* {@inheritDoc @sisense/sdk-ui!PieChartProps.dataOptions}
|
|
@@ -515,8 +515,8 @@ const he = c({
|
|
|
515
515
|
*/
|
|
516
516
|
styleOptions: Object
|
|
517
517
|
},
|
|
518
|
-
setup: (t) =>
|
|
519
|
-
}), Ue =
|
|
518
|
+
setup: (t) => d(ot, t)
|
|
519
|
+
}), Ue = u({
|
|
520
520
|
props: {
|
|
521
521
|
/**
|
|
522
522
|
* {@inheritDoc @sisense/sdk-ui!ScatterChartProps.dataOptions}
|
|
@@ -582,8 +582,8 @@ const he = c({
|
|
|
582
582
|
*/
|
|
583
583
|
styleOptions: Object
|
|
584
584
|
},
|
|
585
|
-
setup: (t) =>
|
|
586
|
-
}), Xe =
|
|
585
|
+
setup: (t) => d(it, t)
|
|
586
|
+
}), Xe = u({
|
|
587
587
|
props: {
|
|
588
588
|
/**
|
|
589
589
|
* {@inheritDoc @sisense/sdk-ui!TableProps.dataOptions}
|
|
@@ -621,8 +621,8 @@ const he = c({
|
|
|
621
621
|
*/
|
|
622
622
|
onDataReady: Function
|
|
623
623
|
},
|
|
624
|
-
setup: (t) =>
|
|
625
|
-
}), Ye =
|
|
624
|
+
setup: (t) => d(st, t)
|
|
625
|
+
}), Ye = u({
|
|
626
626
|
props: {
|
|
627
627
|
/**
|
|
628
628
|
* {@inheritDoc @sisense/sdk-ui!PivotTableProps.dataOptions}
|
|
@@ -672,8 +672,8 @@ const he = c({
|
|
|
672
672
|
*/
|
|
673
673
|
onDataPointContextMenu: Function
|
|
674
674
|
},
|
|
675
|
-
setup: (t) =>
|
|
676
|
-
}), Ze =
|
|
675
|
+
setup: (t) => d(at, t)
|
|
676
|
+
}), Ze = u({
|
|
677
677
|
props: {
|
|
678
678
|
/**
|
|
679
679
|
* {@inheritDoc @sisense/sdk-ui!TreemapChartProps.dataOptions}
|
|
@@ -739,8 +739,8 @@ const he = c({
|
|
|
739
739
|
*/
|
|
740
740
|
styleOptions: Object
|
|
741
741
|
},
|
|
742
|
-
setup: (t) =>
|
|
743
|
-
}), tn =
|
|
742
|
+
setup: (t) => d(ut, t)
|
|
743
|
+
}), tn = u({
|
|
744
744
|
props: {
|
|
745
745
|
/**
|
|
746
746
|
* {@inheritDoc @sisense/sdk-ui!SunburstChartProps.dataOptions}
|
|
@@ -806,8 +806,8 @@ const he = c({
|
|
|
806
806
|
*/
|
|
807
807
|
styleOptions: Object
|
|
808
808
|
},
|
|
809
|
-
setup: (t) =>
|
|
810
|
-
}), en =
|
|
809
|
+
setup: (t) => d(ct, t)
|
|
810
|
+
}), en = u({
|
|
811
811
|
props: {
|
|
812
812
|
/**
|
|
813
813
|
* {@inheritDoc @sisense/sdk-ui!PolarChartProps.dataOptions}
|
|
@@ -873,8 +873,8 @@ const he = c({
|
|
|
873
873
|
*/
|
|
874
874
|
styleOptions: Object
|
|
875
875
|
},
|
|
876
|
-
setup: (t) =>
|
|
877
|
-
}), nn =
|
|
876
|
+
setup: (t) => d(lt, t)
|
|
877
|
+
}), nn = u({
|
|
878
878
|
props: {
|
|
879
879
|
/**
|
|
880
880
|
* {@inheritDoc @sisense/sdk-ui!IndicatorChartProps.dataOptions}
|
|
@@ -922,8 +922,8 @@ const he = c({
|
|
|
922
922
|
*/
|
|
923
923
|
onDataReady: Function
|
|
924
924
|
},
|
|
925
|
-
setup: (t) =>
|
|
926
|
-
}), rn =
|
|
925
|
+
setup: (t) => d(dt, t)
|
|
926
|
+
}), rn = u({
|
|
927
927
|
props: {
|
|
928
928
|
/**
|
|
929
929
|
* {@inheritDoc @sisense/sdk-ui!ChartProps.chartType}
|
|
@@ -1002,8 +1002,8 @@ const he = c({
|
|
|
1002
1002
|
*/
|
|
1003
1003
|
refreshCounter: Number
|
|
1004
1004
|
},
|
|
1005
|
-
setup: (t) =>
|
|
1006
|
-
}), on =
|
|
1005
|
+
setup: (t) => d(pt, t)
|
|
1006
|
+
}), on = u({
|
|
1007
1007
|
props: {
|
|
1008
1008
|
/**
|
|
1009
1009
|
* {@inheritDoc @sisense/sdk-ui!BoxplotChartProps.dataOptions}
|
|
@@ -1069,8 +1069,8 @@ const he = c({
|
|
|
1069
1069
|
*/
|
|
1070
1070
|
onDataPointsSelected: Function
|
|
1071
1071
|
},
|
|
1072
|
-
setup: (t) =>
|
|
1073
|
-
}), sn =
|
|
1072
|
+
setup: (t) => d(yt, t)
|
|
1073
|
+
}), sn = u({
|
|
1074
1074
|
props: {
|
|
1075
1075
|
/**
|
|
1076
1076
|
* {@inheritDoc @sisense/sdk-ui!AreamapChartProps.dataOptions}
|
|
@@ -1118,8 +1118,8 @@ const he = c({
|
|
|
1118
1118
|
*/
|
|
1119
1119
|
onDataPointClick: Function
|
|
1120
1120
|
},
|
|
1121
|
-
setup: (t) =>
|
|
1122
|
-
}), an =
|
|
1121
|
+
setup: (t) => d(ht, t)
|
|
1122
|
+
}), an = u({
|
|
1123
1123
|
props: {
|
|
1124
1124
|
/**
|
|
1125
1125
|
* {@inheritDoc @sisense/sdk-ui!ScattermapChartProps.dataOptions}
|
|
@@ -1167,8 +1167,8 @@ const he = c({
|
|
|
1167
1167
|
*/
|
|
1168
1168
|
onDataPointClick: Object
|
|
1169
1169
|
},
|
|
1170
|
-
setup: (t) =>
|
|
1171
|
-
}),
|
|
1170
|
+
setup: (t) => d(bt, t)
|
|
1171
|
+
}), un = u({
|
|
1172
1172
|
props: {
|
|
1173
1173
|
/**
|
|
1174
1174
|
* {@inheritDoc @sisense/sdk-ui!StreamgraphChartProps.dataOptions}
|
|
@@ -1234,8 +1234,8 @@ const he = c({
|
|
|
1234
1234
|
*/
|
|
1235
1235
|
onDataPointsSelected: Function
|
|
1236
1236
|
},
|
|
1237
|
-
setup: (t) =>
|
|
1238
|
-
}),
|
|
1237
|
+
setup: (t) => d(gt, t)
|
|
1238
|
+
}), cn = u({
|
|
1239
1239
|
props: {
|
|
1240
1240
|
/**
|
|
1241
1241
|
* {@inheritDoc @sisense/sdk-ui!AreaRangeChartProps.dataOptions}
|
|
@@ -1301,8 +1301,8 @@ const he = c({
|
|
|
1301
1301
|
*/
|
|
1302
1302
|
styleOptions: Object
|
|
1303
1303
|
},
|
|
1304
|
-
setup: (t) =>
|
|
1305
|
-
}), ln =
|
|
1304
|
+
setup: (t) => d(Ot, t)
|
|
1305
|
+
}), ln = u({
|
|
1306
1306
|
props: {
|
|
1307
1307
|
/**
|
|
1308
1308
|
* {@inheritDoc @sisense/sdk-ui!DateRangeFilterTileProps.attribute}
|
|
@@ -1362,8 +1362,8 @@ const he = c({
|
|
|
1362
1362
|
*/
|
|
1363
1363
|
onEdit: Function
|
|
1364
1364
|
},
|
|
1365
|
-
setup: (t) =>
|
|
1366
|
-
}), dn =
|
|
1365
|
+
setup: (t) => d(St, t)
|
|
1366
|
+
}), dn = u({
|
|
1367
1367
|
props: {
|
|
1368
1368
|
/**
|
|
1369
1369
|
* {@inheritDoc @sisense/sdk-ui!MemberFilterTileProps.attribute}
|
|
@@ -1410,8 +1410,8 @@ const he = c({
|
|
|
1410
1410
|
*/
|
|
1411
1411
|
onEdit: Function
|
|
1412
1412
|
},
|
|
1413
|
-
setup: (t) =>
|
|
1414
|
-
}), pn =
|
|
1413
|
+
setup: (t) => d(Ft, t)
|
|
1414
|
+
}), pn = u({
|
|
1415
1415
|
props: {
|
|
1416
1416
|
/**
|
|
1417
1417
|
* {@inheritDoc @sisense/sdk-ui!CriteriaFilterTileProps.arrangement}
|
|
@@ -1451,8 +1451,8 @@ const he = c({
|
|
|
1451
1451
|
*/
|
|
1452
1452
|
onEdit: Function
|
|
1453
1453
|
},
|
|
1454
|
-
setup: (t) =>
|
|
1455
|
-
}), yn =
|
|
1454
|
+
setup: (t) => d(ft, t)
|
|
1455
|
+
}), yn = u({
|
|
1456
1456
|
props: {
|
|
1457
1457
|
/**
|
|
1458
1458
|
* {@inheritDoc @sisense/sdk-ui!RelativeDateFilterTileProps.title}
|
|
@@ -1497,8 +1497,8 @@ const he = c({
|
|
|
1497
1497
|
*/
|
|
1498
1498
|
onEdit: Function
|
|
1499
1499
|
},
|
|
1500
|
-
setup: (t) =>
|
|
1501
|
-
}),
|
|
1500
|
+
setup: (t) => d(Ct, t)
|
|
1501
|
+
}), hn = u({
|
|
1502
1502
|
props: {
|
|
1503
1503
|
/**
|
|
1504
1504
|
* {@inheritDoc @sisense/sdk-ui!FilterTileProps.filter}
|
|
@@ -1527,8 +1527,8 @@ const he = c({
|
|
|
1527
1527
|
*/
|
|
1528
1528
|
onEdit: Function
|
|
1529
1529
|
},
|
|
1530
|
-
setup: (t) =>
|
|
1531
|
-
}),
|
|
1530
|
+
setup: (t) => d(Dt, t)
|
|
1531
|
+
}), bn = u({
|
|
1532
1532
|
props: {
|
|
1533
1533
|
/**
|
|
1534
1534
|
* {@inheritDoc @sisense/sdk-ui!FiltersPanelProps.filters}
|
|
@@ -1559,102 +1559,102 @@ const he = c({
|
|
|
1559
1559
|
required: !0
|
|
1560
1560
|
}
|
|
1561
1561
|
},
|
|
1562
|
-
setup: (t) =>
|
|
1562
|
+
setup: (t) => d(mt, t)
|
|
1563
1563
|
}), gn = (t) => {
|
|
1564
|
-
const [e, n] =
|
|
1564
|
+
const [e, n] = R(J, {
|
|
1565
1565
|
isLoading: !0,
|
|
1566
1566
|
isError: !1,
|
|
1567
1567
|
isSuccess: !1,
|
|
1568
1568
|
status: "loading",
|
|
1569
1569
|
error: void 0,
|
|
1570
1570
|
data: void 0
|
|
1571
|
-
}), i =
|
|
1572
|
-
|
|
1571
|
+
}), i = M();
|
|
1572
|
+
O("useExecuteQuery");
|
|
1573
1573
|
const o = async (s) => {
|
|
1574
1574
|
try {
|
|
1575
1575
|
const {
|
|
1576
1576
|
dataSource: r,
|
|
1577
1577
|
dimensions: a,
|
|
1578
|
-
measures:
|
|
1578
|
+
measures: c,
|
|
1579
1579
|
filters: y,
|
|
1580
|
-
highlights:
|
|
1580
|
+
highlights: S,
|
|
1581
1581
|
count: f,
|
|
1582
1582
|
offset: p,
|
|
1583
|
-
ungroup:
|
|
1584
|
-
onBeforeQuery:
|
|
1585
|
-
} =
|
|
1583
|
+
ungroup: F,
|
|
1584
|
+
onBeforeQuery: m
|
|
1585
|
+
} = l(t), { filters: P, relations: q } = z(y);
|
|
1586
1586
|
n({ type: "loading" });
|
|
1587
|
-
const
|
|
1587
|
+
const k = await jt(
|
|
1588
1588
|
{
|
|
1589
1589
|
dataSource: r,
|
|
1590
1590
|
dimensions: a,
|
|
1591
|
-
measures:
|
|
1591
|
+
measures: c,
|
|
1592
1592
|
filters: P,
|
|
1593
|
-
filterRelations:
|
|
1594
|
-
highlights:
|
|
1593
|
+
filterRelations: q,
|
|
1594
|
+
highlights: S,
|
|
1595
1595
|
count: f,
|
|
1596
1596
|
offset: p,
|
|
1597
|
-
ungroup:
|
|
1597
|
+
ungroup: F
|
|
1598
1598
|
},
|
|
1599
1599
|
s,
|
|
1600
|
-
{ onBeforeQuery: L(
|
|
1600
|
+
{ onBeforeQuery: L(m) }
|
|
1601
1601
|
);
|
|
1602
|
-
n({ type: "success", data:
|
|
1602
|
+
n({ type: "success", data: k });
|
|
1603
1603
|
} catch (r) {
|
|
1604
1604
|
n({ type: "error", error: r });
|
|
1605
1605
|
}
|
|
1606
1606
|
};
|
|
1607
1607
|
return g(
|
|
1608
|
-
[...
|
|
1608
|
+
[...b(t), i],
|
|
1609
1609
|
() => {
|
|
1610
|
-
const { app: s } = i.value, { enabled: r } =
|
|
1610
|
+
const { app: s } = i.value, { enabled: r } = l(t);
|
|
1611
1611
|
!s || !(r === void 0 || r === !0) || o(s);
|
|
1612
1612
|
},
|
|
1613
1613
|
{ immediate: !0 }
|
|
1614
|
-
),
|
|
1614
|
+
), h(e.value);
|
|
1615
1615
|
}, On = (t) => {
|
|
1616
|
-
const e =
|
|
1617
|
-
|
|
1618
|
-
const [i, o] =
|
|
1616
|
+
const e = j(void 0), n = j(void 0);
|
|
1617
|
+
O("useExecuteQueryByWidgetId");
|
|
1618
|
+
const [i, o] = R(J, {
|
|
1619
1619
|
isLoading: !0,
|
|
1620
1620
|
isError: !1,
|
|
1621
1621
|
isSuccess: !1,
|
|
1622
1622
|
status: "loading",
|
|
1623
1623
|
error: void 0,
|
|
1624
1624
|
data: void 0
|
|
1625
|
-
}), s =
|
|
1625
|
+
}), s = M(), r = async (a) => {
|
|
1626
1626
|
try {
|
|
1627
1627
|
o({ type: "loading" });
|
|
1628
|
-
const { filters:
|
|
1628
|
+
const { filters: c, ...y } = l(t), { filters: S } = z(L(c)), {
|
|
1629
1629
|
data: f,
|
|
1630
1630
|
query: p,
|
|
1631
|
-
pivotQuery:
|
|
1631
|
+
pivotQuery: F
|
|
1632
1632
|
} = await vt({
|
|
1633
1633
|
...y,
|
|
1634
|
-
filters:
|
|
1634
|
+
filters: S,
|
|
1635
1635
|
app: a
|
|
1636
1636
|
});
|
|
1637
|
-
o({ type: "success", data: f }), e.value = p, n.value =
|
|
1638
|
-
} catch (
|
|
1639
|
-
o({ type: "error", error:
|
|
1637
|
+
o({ type: "success", data: f }), e.value = p, n.value = F;
|
|
1638
|
+
} catch (c) {
|
|
1639
|
+
o({ type: "error", error: c });
|
|
1640
1640
|
}
|
|
1641
1641
|
};
|
|
1642
1642
|
return g(
|
|
1643
|
-
[...
|
|
1643
|
+
[...b(t), s],
|
|
1644
1644
|
() => {
|
|
1645
|
-
const { app: a } = s.value, { enabled:
|
|
1646
|
-
!a || !(
|
|
1645
|
+
const { app: a } = s.value, { enabled: c } = l(t);
|
|
1646
|
+
!a || !(c === void 0 || c === !0) || r(a);
|
|
1647
1647
|
},
|
|
1648
1648
|
{ immediate: !0 }
|
|
1649
1649
|
), {
|
|
1650
|
-
...
|
|
1650
|
+
...h(i.value),
|
|
1651
1651
|
query: e,
|
|
1652
1652
|
pivotQuery: n
|
|
1653
1653
|
};
|
|
1654
1654
|
}, Sn = (t) => {
|
|
1655
|
-
|
|
1656
|
-
const e = new
|
|
1657
|
-
|
|
1655
|
+
O("useExecuteCsvQuery");
|
|
1656
|
+
const e = new x(Pt, [
|
|
1657
|
+
w()
|
|
1658
1658
|
]), [n, i] = W({
|
|
1659
1659
|
isLoading: !0,
|
|
1660
1660
|
isError: !1,
|
|
@@ -1665,15 +1665,15 @@ const he = c({
|
|
|
1665
1665
|
});
|
|
1666
1666
|
return e.subscribe((o) => {
|
|
1667
1667
|
i(o);
|
|
1668
|
-
}), e.run(
|
|
1669
|
-
e.run(
|
|
1670
|
-
}),
|
|
1668
|
+
}), e.run(l(t)), g([...b(t)], () => {
|
|
1669
|
+
e.run(l(t));
|
|
1670
|
+
}), A(() => {
|
|
1671
1671
|
e.destroy();
|
|
1672
|
-
}),
|
|
1672
|
+
}), h(n.value);
|
|
1673
1673
|
}, Fn = (t) => {
|
|
1674
|
-
|
|
1675
|
-
const e = new
|
|
1676
|
-
|
|
1674
|
+
O("useExecutePivotQuery");
|
|
1675
|
+
const e = new x(xt, [
|
|
1676
|
+
w()
|
|
1677
1677
|
]), [n, i] = W({
|
|
1678
1678
|
isLoading: !0,
|
|
1679
1679
|
isError: !1,
|
|
@@ -1684,15 +1684,15 @@ const he = c({
|
|
|
1684
1684
|
});
|
|
1685
1685
|
return e.subscribe((o) => {
|
|
1686
1686
|
i(o);
|
|
1687
|
-
}), e.run(
|
|
1688
|
-
e.run(
|
|
1689
|
-
}),
|
|
1687
|
+
}), e.run(l(t)), g([...b(t)], () => {
|
|
1688
|
+
e.run(l(t));
|
|
1689
|
+
}), A(() => {
|
|
1690
1690
|
e.destroy();
|
|
1691
|
-
}),
|
|
1691
|
+
}), h(n.value);
|
|
1692
1692
|
}, fn = (t) => {
|
|
1693
|
-
|
|
1694
|
-
const e = new
|
|
1695
|
-
|
|
1693
|
+
O("useExecuteCustomWidgetQuery");
|
|
1694
|
+
const e = new x(At, [
|
|
1695
|
+
w()
|
|
1696
1696
|
]), [n, i] = W({
|
|
1697
1697
|
data: void 0,
|
|
1698
1698
|
isLoading: !0,
|
|
@@ -1703,14 +1703,14 @@ const he = c({
|
|
|
1703
1703
|
});
|
|
1704
1704
|
return e.subscribe((o) => {
|
|
1705
1705
|
i(o);
|
|
1706
|
-
}), e.run(
|
|
1707
|
-
e.run(
|
|
1708
|
-
}),
|
|
1706
|
+
}), e.run(l(t)), g([...b(t)], () => {
|
|
1707
|
+
e.run(l(t));
|
|
1708
|
+
}), A(() => {
|
|
1709
1709
|
e.destroy();
|
|
1710
|
-
}),
|
|
1710
|
+
}), h(n.value);
|
|
1711
1711
|
}, Cn = (t) => {
|
|
1712
|
-
|
|
1713
|
-
const { filter: e, parentFilters: n = [] } =
|
|
1712
|
+
O("useGetFilterMembers");
|
|
1713
|
+
const { filter: e, parentFilters: n = [] } = l(t), i = {
|
|
1714
1714
|
selectedMembers: [],
|
|
1715
1715
|
allMembers: [],
|
|
1716
1716
|
...ye(e) ? {
|
|
@@ -1722,7 +1722,7 @@ const he = c({
|
|
|
1722
1722
|
enableMultiSelection: !1,
|
|
1723
1723
|
hasBackgroundFilter: !1
|
|
1724
1724
|
}
|
|
1725
|
-
}, o = new
|
|
1725
|
+
}, o = new x(Mt, [w()]), [s, r] = W({
|
|
1726
1726
|
isLoading: !0,
|
|
1727
1727
|
isError: !1,
|
|
1728
1728
|
isSuccess: !1,
|
|
@@ -1733,74 +1733,93 @@ const he = c({
|
|
|
1733
1733
|
});
|
|
1734
1734
|
return o.subscribe((a) => {
|
|
1735
1735
|
r(a);
|
|
1736
|
-
}), o.run(
|
|
1737
|
-
o.run(
|
|
1738
|
-
}),
|
|
1736
|
+
}), o.run(l(t)), g([...b(t)], () => {
|
|
1737
|
+
o.run(l(t));
|
|
1738
|
+
}), A(() => {
|
|
1739
1739
|
o.destroy();
|
|
1740
|
-
}),
|
|
1740
|
+
}), h(s.value);
|
|
1741
1741
|
}, Dn = (t) => {
|
|
1742
|
-
|
|
1743
|
-
const
|
|
1742
|
+
O("useGetDataSourceDimensions");
|
|
1743
|
+
const e = new x(wt, [
|
|
1744
|
+
w()
|
|
1745
|
+
]), [n, i] = W({
|
|
1746
|
+
isLoading: !0,
|
|
1747
|
+
isError: !1,
|
|
1748
|
+
isSuccess: !1,
|
|
1749
|
+
dimensions: void 0,
|
|
1750
|
+
error: void 0,
|
|
1751
|
+
status: "loading"
|
|
1752
|
+
});
|
|
1753
|
+
return e.subscribe((o) => {
|
|
1754
|
+
i(o);
|
|
1755
|
+
}), e.run(l(t)), g([...b(t)], () => {
|
|
1756
|
+
e.run(l(t));
|
|
1757
|
+
}), A(() => {
|
|
1758
|
+
e.destroy();
|
|
1759
|
+
}), h(n.value);
|
|
1760
|
+
}, mn = (t) => {
|
|
1761
|
+
O("useGetDashboardModel");
|
|
1762
|
+
const [e, n] = R(B, {
|
|
1744
1763
|
isLoading: !0,
|
|
1745
1764
|
isError: !1,
|
|
1746
1765
|
isSuccess: !1,
|
|
1747
1766
|
status: "loading",
|
|
1748
1767
|
error: void 0,
|
|
1749
1768
|
data: void 0
|
|
1750
|
-
}), i =
|
|
1769
|
+
}), i = M(), o = async (r) => {
|
|
1751
1770
|
try {
|
|
1752
1771
|
n({ type: "loading" });
|
|
1753
|
-
const { dashboardOid: a, includeWidgets:
|
|
1754
|
-
includeWidgets:
|
|
1772
|
+
const { dashboardOid: a, includeWidgets: c, includeFilters: y } = l(t), S = await Rt(r.httpClient, a, {
|
|
1773
|
+
includeWidgets: c,
|
|
1755
1774
|
includeFilters: y
|
|
1756
1775
|
});
|
|
1757
|
-
n({ type: "success", data:
|
|
1776
|
+
n({ type: "success", data: S });
|
|
1758
1777
|
} catch (a) {
|
|
1759
1778
|
n({ type: "error", error: a });
|
|
1760
1779
|
}
|
|
1761
1780
|
};
|
|
1762
1781
|
g(
|
|
1763
|
-
[...
|
|
1782
|
+
[...b(t), i],
|
|
1764
1783
|
() => {
|
|
1765
|
-
const { app: r } = i.value, { enabled: a } =
|
|
1784
|
+
const { app: r } = i.value, { enabled: a } = l(t);
|
|
1766
1785
|
!r || !(a === void 0 || a === !0) || o(r);
|
|
1767
1786
|
},
|
|
1768
1787
|
{ immediate: !0 }
|
|
1769
1788
|
);
|
|
1770
|
-
const s =
|
|
1771
|
-
return
|
|
1789
|
+
const s = h(e.value);
|
|
1790
|
+
return h(qt(s));
|
|
1772
1791
|
}, jn = (t) => {
|
|
1773
|
-
|
|
1774
|
-
const [e, n] =
|
|
1792
|
+
O("useGetDashboardModels");
|
|
1793
|
+
const [e, n] = R(B, {
|
|
1775
1794
|
isLoading: !0,
|
|
1776
1795
|
isError: !1,
|
|
1777
1796
|
isSuccess: !1,
|
|
1778
1797
|
status: "loading",
|
|
1779
1798
|
error: void 0,
|
|
1780
1799
|
data: void 0
|
|
1781
|
-
}), i =
|
|
1800
|
+
}), i = M(), o = async (r) => {
|
|
1782
1801
|
try {
|
|
1783
1802
|
n({ type: "loading" });
|
|
1784
|
-
const a =
|
|
1785
|
-
n({ type: "success", data:
|
|
1803
|
+
const a = l(t), c = await Tt(r.httpClient, a);
|
|
1804
|
+
n({ type: "success", data: c });
|
|
1786
1805
|
} catch (a) {
|
|
1787
1806
|
n({ type: "error", error: a });
|
|
1788
1807
|
}
|
|
1789
1808
|
};
|
|
1790
1809
|
g(
|
|
1791
|
-
[...
|
|
1810
|
+
[...b(t), i],
|
|
1792
1811
|
() => {
|
|
1793
|
-
const { app: r } = i.value, { enabled: a } =
|
|
1812
|
+
const { app: r } = i.value, { enabled: a } = l(t);
|
|
1794
1813
|
!r || !(a === void 0 || a === !0) || o(r);
|
|
1795
1814
|
},
|
|
1796
1815
|
{ immediate: !0 }
|
|
1797
1816
|
);
|
|
1798
|
-
const s =
|
|
1799
|
-
return
|
|
1800
|
-
},
|
|
1801
|
-
|
|
1802
|
-
const e = new
|
|
1803
|
-
|
|
1817
|
+
const s = h(e.value);
|
|
1818
|
+
return h(Wt(s));
|
|
1819
|
+
}, vn = (t) => {
|
|
1820
|
+
O("useGetSharedFormula");
|
|
1821
|
+
const e = new x(Et, [
|
|
1822
|
+
w()
|
|
1804
1823
|
]), [n, i] = W({
|
|
1805
1824
|
isLoading: !0,
|
|
1806
1825
|
isError: !1,
|
|
@@ -1811,95 +1830,95 @@ const he = c({
|
|
|
1811
1830
|
});
|
|
1812
1831
|
return e.subscribe((o) => {
|
|
1813
1832
|
i(o);
|
|
1814
|
-
}), e.run(
|
|
1815
|
-
e.run(
|
|
1816
|
-
}),
|
|
1833
|
+
}), e.run(l(t)), g([...b(t)], () => {
|
|
1834
|
+
e.run(l(t));
|
|
1835
|
+
}), A(() => {
|
|
1817
1836
|
e.destroy();
|
|
1818
|
-
}),
|
|
1819
|
-
},
|
|
1820
|
-
|
|
1821
|
-
const [e, n] =
|
|
1837
|
+
}), h(n.value);
|
|
1838
|
+
}, Pn = (t) => {
|
|
1839
|
+
O("useGetWidgetModel");
|
|
1840
|
+
const [e, n] = R(B, {
|
|
1822
1841
|
isLoading: !0,
|
|
1823
1842
|
isError: !1,
|
|
1824
1843
|
isSuccess: !1,
|
|
1825
1844
|
status: "loading",
|
|
1826
1845
|
error: void 0,
|
|
1827
1846
|
data: void 0
|
|
1828
|
-
}), i =
|
|
1847
|
+
}), i = M(), o = async (s) => {
|
|
1829
1848
|
try {
|
|
1830
1849
|
n({ type: "loading" });
|
|
1831
|
-
const { dashboardOid: r, widgetOid: a } =
|
|
1832
|
-
n({ type: "success", data:
|
|
1850
|
+
const { dashboardOid: r, widgetOid: a } = l(t), c = await Bt(s.httpClient, r, a);
|
|
1851
|
+
n({ type: "success", data: c });
|
|
1833
1852
|
} catch (r) {
|
|
1834
1853
|
n({ type: "error", error: r });
|
|
1835
1854
|
}
|
|
1836
1855
|
};
|
|
1837
1856
|
return g(
|
|
1838
|
-
[...
|
|
1857
|
+
[...b(t), i],
|
|
1839
1858
|
() => {
|
|
1840
|
-
const { app: s } = i.value, { enabled: r } =
|
|
1859
|
+
const { app: s } = i.value, { enabled: r } = l(t);
|
|
1841
1860
|
!s || !(r === void 0 || r === !0) || o(s);
|
|
1842
1861
|
},
|
|
1843
1862
|
{ immediate: !0 }
|
|
1844
|
-
),
|
|
1845
|
-
},
|
|
1846
|
-
|
|
1847
|
-
const [e, n] =
|
|
1863
|
+
), h(e.value);
|
|
1864
|
+
}, xn = (t) => {
|
|
1865
|
+
O("useGetHierarchyModels");
|
|
1866
|
+
const [e, n] = R(B, {
|
|
1848
1867
|
isLoading: !0,
|
|
1849
1868
|
isError: !1,
|
|
1850
1869
|
isSuccess: !1,
|
|
1851
1870
|
status: "loading",
|
|
1852
1871
|
error: void 0,
|
|
1853
1872
|
data: void 0
|
|
1854
|
-
}), i =
|
|
1873
|
+
}), i = M(), o = async (s) => {
|
|
1855
1874
|
try {
|
|
1856
1875
|
n({ type: "loading" });
|
|
1857
|
-
const r = await
|
|
1876
|
+
const r = await kt(s.httpClient, l(t));
|
|
1858
1877
|
n({ type: "success", data: r });
|
|
1859
1878
|
} catch (r) {
|
|
1860
1879
|
n({ type: "error", error: r });
|
|
1861
1880
|
}
|
|
1862
1881
|
};
|
|
1863
1882
|
return g(
|
|
1864
|
-
[...
|
|
1883
|
+
[...b(t), i],
|
|
1865
1884
|
() => {
|
|
1866
|
-
const { app: s } = i.value, { enabled: r } =
|
|
1885
|
+
const { app: s } = i.value, { enabled: r } = l(t);
|
|
1867
1886
|
!s || !(r === void 0 || r === !0) || o(s);
|
|
1868
1887
|
},
|
|
1869
1888
|
{ immediate: !0 }
|
|
1870
|
-
),
|
|
1871
|
-
},
|
|
1872
|
-
const [i, o] =
|
|
1889
|
+
), h(e.value);
|
|
1890
|
+
}, An = (t, e, n) => {
|
|
1891
|
+
const [i, o] = R(B, {
|
|
1873
1892
|
isLoading: !0,
|
|
1874
1893
|
isError: !1,
|
|
1875
1894
|
isSuccess: !1,
|
|
1876
1895
|
status: "loading",
|
|
1877
1896
|
error: void 0,
|
|
1878
1897
|
data: void 0
|
|
1879
|
-
}), s =
|
|
1898
|
+
}), s = M(), r = async (a) => {
|
|
1880
1899
|
try {
|
|
1881
1900
|
o({ type: "loading" });
|
|
1882
|
-
const
|
|
1883
|
-
requestConfig:
|
|
1901
|
+
const c = L(t), y = e ? l(e) : {}, S = n ? l(n) : {}, f = {
|
|
1902
|
+
requestConfig: S.requestConfig ? l(S.requestConfig) : {},
|
|
1884
1903
|
skipTrackingParam: !0
|
|
1885
1904
|
}, p = await a.call(
|
|
1886
|
-
a.url +
|
|
1905
|
+
a.url + c,
|
|
1887
1906
|
y,
|
|
1888
1907
|
f
|
|
1889
1908
|
);
|
|
1890
1909
|
o({ type: "success", data: p });
|
|
1891
|
-
} catch (
|
|
1892
|
-
o({ type: "error", error:
|
|
1910
|
+
} catch (c) {
|
|
1911
|
+
o({ type: "error", error: c });
|
|
1893
1912
|
}
|
|
1894
1913
|
};
|
|
1895
1914
|
return g(
|
|
1896
|
-
[...
|
|
1915
|
+
[...b(t, e, n), s],
|
|
1897
1916
|
() => {
|
|
1898
|
-
const { app: a } = s.value,
|
|
1899
|
-
!a || !(
|
|
1917
|
+
const { app: a } = s.value, c = l(n || {}).enabled;
|
|
1918
|
+
!a || !(c === void 0 || c === !0) || r(a.httpClient);
|
|
1900
1919
|
},
|
|
1901
1920
|
{ immediate: !0 }
|
|
1902
|
-
),
|
|
1921
|
+
), h(i.value);
|
|
1903
1922
|
};
|
|
1904
1923
|
class ge {
|
|
1905
1924
|
constructor(e, n) {
|
|
@@ -1919,11 +1938,11 @@ class ge {
|
|
|
1919
1938
|
mount(e, n) {
|
|
1920
1939
|
if (this.app || this.isDestroyed)
|
|
1921
1940
|
return;
|
|
1922
|
-
this.container = e, this.propsRef =
|
|
1941
|
+
this.container = e, this.propsRef = j(n);
|
|
1923
1942
|
const i = {
|
|
1924
1943
|
setup: () => () => ne(this.componentClass, this.propsRef.value)
|
|
1925
1944
|
};
|
|
1926
|
-
this.app = ee(i), this.app.provide(ae, this.contexts.sisenseContext), this.app.provide(
|
|
1945
|
+
this.app = ee(i), this.app.provide(ae, this.contexts.sisenseContext), this.app.provide(ue, this.contexts.themeContext), this.app.provide(ce, this.contexts.customWidgetsContext), this.app.mount(e);
|
|
1927
1946
|
}
|
|
1928
1947
|
/**
|
|
1929
1948
|
* Updates the props on the existing Vue component instance.
|
|
@@ -1949,8 +1968,8 @@ class ge {
|
|
|
1949
1968
|
return this.app !== null && !this.isDestroyed;
|
|
1950
1969
|
}
|
|
1951
1970
|
}
|
|
1952
|
-
const
|
|
1953
|
-
const t = le(), e =
|
|
1971
|
+
const Mn = () => {
|
|
1972
|
+
const t = le(), e = M(), n = de(), i = t;
|
|
1954
1973
|
return {
|
|
1955
1974
|
/**
|
|
1956
1975
|
* Registers a new custom widget.
|
|
@@ -1963,14 +1982,26 @@ const An = () => {
|
|
|
1963
1982
|
sisenseContext: e,
|
|
1964
1983
|
themeContext: n,
|
|
1965
1984
|
customWidgetsContext: i
|
|
1966
|
-
}, a = () => new ge(s, r),
|
|
1985
|
+
}, a = () => new ge(s, r), c = (y) => $t(Qt, {
|
|
1967
1986
|
adapterFactory: a,
|
|
1968
1987
|
componentProps: y
|
|
1969
1988
|
});
|
|
1970
|
-
t.value.customWidgetsMap.has(o) || t.value.customWidgetsMap.set(
|
|
1989
|
+
t.value.customWidgetsMap.has(o) || (t.value.customWidgetsMap.set(
|
|
1971
1990
|
o,
|
|
1972
|
-
|
|
1973
|
-
)
|
|
1991
|
+
c
|
|
1992
|
+
), t.value = {
|
|
1993
|
+
customWidgetsMap: new Map(t.value.customWidgetsMap)
|
|
1994
|
+
});
|
|
1995
|
+
},
|
|
1996
|
+
/**
|
|
1997
|
+
* Unregisters a custom widget for the given type name.
|
|
1998
|
+
*
|
|
1999
|
+
* @param customWidgetType - The unique identifier for the custom widget type.
|
|
2000
|
+
*/
|
|
2001
|
+
unregisterCustomWidget: (o) => {
|
|
2002
|
+
t.value.customWidgetsMap.delete(o) && (t.value = {
|
|
2003
|
+
customWidgetsMap: new Map(t.value.customWidgetsMap)
|
|
2004
|
+
});
|
|
1974
2005
|
},
|
|
1975
2006
|
/**
|
|
1976
2007
|
* Checks if a custom widget is registered.
|
|
@@ -1981,15 +2012,15 @@ const An = () => {
|
|
|
1981
2012
|
hasCustomWidget: (o) => t.value.customWidgetsMap.has(o)
|
|
1982
2013
|
};
|
|
1983
2014
|
}, wn = (t, e = {}) => {
|
|
1984
|
-
|
|
1985
|
-
const n = new
|
|
1986
|
-
|
|
1987
|
-
]), [i, o] = W(
|
|
2015
|
+
O("useComposedDashboard");
|
|
2016
|
+
const n = new x(It, [
|
|
2017
|
+
w()
|
|
2018
|
+
]), [i, o] = W(l(t));
|
|
1988
2019
|
n.subscribe(({ dashboard: a }) => {
|
|
1989
2020
|
o(a);
|
|
1990
|
-
}), n.run(
|
|
1991
|
-
n.run(
|
|
1992
|
-
}),
|
|
2021
|
+
}), n.run(l(t), e), g([...b(t)], () => {
|
|
2022
|
+
n.run(l(t), e);
|
|
2023
|
+
}), A(() => {
|
|
1993
2024
|
n.destroy();
|
|
1994
2025
|
});
|
|
1995
2026
|
const s = _(n, "setFilters"), r = _(n, "setWidgetsLayout");
|
|
@@ -1998,25 +2029,25 @@ const An = () => {
|
|
|
1998
2029
|
setFilters: s,
|
|
1999
2030
|
setWidgetsLayout: r
|
|
2000
2031
|
};
|
|
2001
|
-
},
|
|
2002
|
-
|
|
2003
|
-
const n = new
|
|
2004
|
-
|
|
2032
|
+
}, qn = (t, e) => {
|
|
2033
|
+
O("useJtdWidget");
|
|
2034
|
+
const n = new x(Lt, [
|
|
2035
|
+
w(),
|
|
2005
2036
|
pe()
|
|
2006
|
-
]), i =
|
|
2037
|
+
]), i = j(null);
|
|
2007
2038
|
n.subscribe((s) => {
|
|
2008
2039
|
i.value = s;
|
|
2009
2040
|
});
|
|
2010
2041
|
const o = () => {
|
|
2011
|
-
const s = re(t), r =
|
|
2042
|
+
const s = re(t), r = l(e);
|
|
2012
2043
|
n.run(s, r);
|
|
2013
2044
|
};
|
|
2014
|
-
return o(), g([...
|
|
2045
|
+
return o(), g([...b(t), ...b(e)], () => {
|
|
2015
2046
|
o();
|
|
2016
|
-
}),
|
|
2047
|
+
}), A(() => {
|
|
2017
2048
|
n.destroy();
|
|
2018
2049
|
}), i;
|
|
2019
|
-
}, Oe =
|
|
2050
|
+
}, Oe = u({
|
|
2020
2051
|
props: {
|
|
2021
2052
|
/**
|
|
2022
2053
|
* {@inheritDoc @sisense/sdk-ui!ContextMenuProps.closeContextMenu}
|
|
@@ -2034,7 +2065,7 @@ const An = () => {
|
|
|
2034
2065
|
*/
|
|
2035
2066
|
position: Object
|
|
2036
2067
|
},
|
|
2037
|
-
setup: (t, { slots: e }) => N(
|
|
2068
|
+
setup: (t, { slots: e }) => N(Gt, t, e, [])
|
|
2038
2069
|
}), Se = ({
|
|
2039
2070
|
drilldownPaths: t,
|
|
2040
2071
|
initialDimension: e
|
|
@@ -2043,40 +2074,40 @@ const An = () => {
|
|
|
2043
2074
|
throw new Error(
|
|
2044
2075
|
"Initial dimension has to be specified to use drilldown with custom components"
|
|
2045
2076
|
);
|
|
2046
|
-
const n =
|
|
2047
|
-
|
|
2077
|
+
const n = j([]), i = j(), o = j([]), s = j([]), r = I(() => [
|
|
2078
|
+
_t(e),
|
|
2048
2079
|
...n.value.map(({ nextDimension: p }) => p)
|
|
2049
2080
|
]), a = I(
|
|
2050
2081
|
() => t.value.filter((p) => {
|
|
2051
|
-
if (
|
|
2082
|
+
if (he.isAttribute(p)) {
|
|
2052
2083
|
const P = p;
|
|
2053
2084
|
return r.value.every(
|
|
2054
|
-
(
|
|
2085
|
+
(q) => !H(q, P)
|
|
2055
2086
|
);
|
|
2056
2087
|
}
|
|
2057
|
-
const
|
|
2088
|
+
const m = p;
|
|
2058
2089
|
return r.value.every(
|
|
2059
|
-
(P,
|
|
2090
|
+
(P, q) => H(P, m.levels[q])
|
|
2060
2091
|
);
|
|
2061
2092
|
})
|
|
2062
|
-
),
|
|
2063
|
-
n.value =
|
|
2093
|
+
), c = (p, F, m) => {
|
|
2094
|
+
n.value = Ht(
|
|
2064
2095
|
n.value,
|
|
2065
2096
|
p,
|
|
2066
|
-
|
|
2067
|
-
|
|
2097
|
+
F,
|
|
2098
|
+
m
|
|
2068
2099
|
), f();
|
|
2069
2100
|
}, y = (p) => {
|
|
2070
2101
|
n.value = n.value.slice(0, p), f();
|
|
2071
|
-
},
|
|
2102
|
+
}, S = () => {
|
|
2072
2103
|
n.value = [], f();
|
|
2073
2104
|
}, f = () => {
|
|
2074
|
-
const p = (
|
|
2105
|
+
const p = (m) => m === "drilldown.breadcrumbsAllSuffix" ? "All" : m, F = Vt(
|
|
2075
2106
|
n.value,
|
|
2076
2107
|
e,
|
|
2077
2108
|
p
|
|
2078
2109
|
);
|
|
2079
|
-
i.value =
|
|
2110
|
+
i.value = F.drilldownDimension, o.value = F.drilldownFilters, s.value = F.drilldownFiltersDisplayValues;
|
|
2080
2111
|
};
|
|
2081
2112
|
return f(), {
|
|
2082
2113
|
drilldownSelections: n,
|
|
@@ -2084,11 +2115,11 @@ const An = () => {
|
|
|
2084
2115
|
drilldownDimension: i,
|
|
2085
2116
|
drilldownFilters: o,
|
|
2086
2117
|
drilldownFiltersDisplayValues: s,
|
|
2087
|
-
selectDrilldown:
|
|
2118
|
+
selectDrilldown: c,
|
|
2088
2119
|
sliceDrilldownSelections: y,
|
|
2089
|
-
clearDrilldownSelections:
|
|
2120
|
+
clearDrilldownSelections: S
|
|
2090
2121
|
};
|
|
2091
|
-
}, Fe =
|
|
2122
|
+
}, Fe = u({
|
|
2092
2123
|
props: {
|
|
2093
2124
|
/**
|
|
2094
2125
|
* {@inheritDoc @sisense/sdk-ui!DrilldownWidgetProps.config}
|
|
@@ -2124,46 +2155,46 @@ const An = () => {
|
|
|
2124
2155
|
},
|
|
2125
2156
|
setup: () => {
|
|
2126
2157
|
}
|
|
2127
|
-
}), fe = { style: { display: "flex", "flex-direction": "column", height: "100%" } }, Ce = { style: { "flex-grow": "1", "min-wdith": "0", "min-height": "0" } },
|
|
2158
|
+
}), fe = { style: { display: "flex", "flex-direction": "column", height: "100%" } }, Ce = { style: { "flex-grow": "1", "min-wdith": "0", "min-height": "0" } }, Rn = /* @__PURE__ */ u({
|
|
2128
2159
|
__name: "drilldown-widget",
|
|
2129
2160
|
props: Fe.props,
|
|
2130
2161
|
setup(t) {
|
|
2131
|
-
const e = t, { drilldownPaths: n, initialDimension: i, config: o } =
|
|
2162
|
+
const e = t, { drilldownPaths: n, initialDimension: i, config: o } = h(e), s = j(null), r = j([]), {
|
|
2132
2163
|
drilldownFilters: a,
|
|
2133
2164
|
// computed
|
|
2134
|
-
drilldownDimension:
|
|
2165
|
+
drilldownDimension: c,
|
|
2135
2166
|
// computed
|
|
2136
2167
|
drilldownFiltersDisplayValues: y,
|
|
2137
2168
|
// computed
|
|
2138
|
-
availableDrilldownPaths:
|
|
2169
|
+
availableDrilldownPaths: S,
|
|
2139
2170
|
// computed
|
|
2140
2171
|
selectDrilldown: f,
|
|
2141
2172
|
sliceDrilldownSelections: p,
|
|
2142
|
-
clearDrilldownSelections:
|
|
2173
|
+
clearDrilldownSelections: F
|
|
2143
2174
|
} = Se({
|
|
2144
2175
|
drilldownPaths: n,
|
|
2145
2176
|
initialDimension: i.value
|
|
2146
|
-
}),
|
|
2177
|
+
}), m = (D) => {
|
|
2147
2178
|
f(r.value, D);
|
|
2148
2179
|
}, P = I(() => {
|
|
2149
|
-
const D = (
|
|
2180
|
+
const D = ($) => $ === "drilldown.drillMenuItem" ? "Drill" : $;
|
|
2150
2181
|
return [
|
|
2151
|
-
|
|
2152
|
-
|
|
2153
|
-
|
|
2154
|
-
|
|
2155
|
-
|
|
2182
|
+
Jt(r.value, c.value),
|
|
2183
|
+
Nt(
|
|
2184
|
+
S.value,
|
|
2185
|
+
c.value,
|
|
2186
|
+
m,
|
|
2156
2187
|
D
|
|
2157
2188
|
)
|
|
2158
2189
|
];
|
|
2159
|
-
}),
|
|
2190
|
+
}), q = (D) => {
|
|
2160
2191
|
s.value = D;
|
|
2161
|
-
},
|
|
2192
|
+
}, k = (D) => {
|
|
2162
2193
|
r.value = D;
|
|
2163
2194
|
}, G = () => {
|
|
2164
2195
|
s.value = null;
|
|
2165
2196
|
};
|
|
2166
|
-
return (D,
|
|
2197
|
+
return (D, $) => (oe(), ie("div", fe, [
|
|
2167
2198
|
Q(D.$slots, "contextMenu", {
|
|
2168
2199
|
contextMenuProps: { position: s.value, itemSections: P.value, closeContextMenu: G }
|
|
2169
2200
|
}, () => [
|
|
@@ -2175,30 +2206,30 @@ const An = () => {
|
|
|
2175
2206
|
]),
|
|
2176
2207
|
Q(D.$slots, "breadcrumbs", {
|
|
2177
2208
|
drilldownBreadcrumbsProps: {
|
|
2178
|
-
clearDrilldownSelections: C(
|
|
2209
|
+
clearDrilldownSelections: C(F),
|
|
2179
2210
|
sliceDrilldownSelections: C(p),
|
|
2180
2211
|
drilldownFiltersDisplayValues: C(y),
|
|
2181
|
-
drilldownDimension: C(
|
|
2212
|
+
drilldownDimension: C(c)
|
|
2182
2213
|
}
|
|
2183
2214
|
}, () => [
|
|
2184
|
-
V(C(
|
|
2185
|
-
"clear-drilldown-selections": C(
|
|
2215
|
+
V(C(be), {
|
|
2216
|
+
"clear-drilldown-selections": C(F),
|
|
2186
2217
|
"slice-drilldown-selections": C(p),
|
|
2187
2218
|
"filters-display-values": C(y),
|
|
2188
|
-
"current-dimension": C(
|
|
2219
|
+
"current-dimension": C(c)
|
|
2189
2220
|
}, null, 8, ["clear-drilldown-selections", "slice-drilldown-selections", "filters-display-values", "current-dimension"])
|
|
2190
2221
|
]),
|
|
2191
2222
|
se("div", Ce, [
|
|
2192
2223
|
Q(D.$slots, "chart", {
|
|
2193
2224
|
drilldownFilters: C(a),
|
|
2194
|
-
drilldownDimension: C(
|
|
2195
|
-
onDataPointsSelected:
|
|
2196
|
-
onContextMenu:
|
|
2225
|
+
drilldownDimension: C(c),
|
|
2226
|
+
onDataPointsSelected: k,
|
|
2227
|
+
onContextMenu: q
|
|
2197
2228
|
})
|
|
2198
2229
|
])
|
|
2199
2230
|
]));
|
|
2200
2231
|
}
|
|
2201
|
-
}),
|
|
2232
|
+
}), Wn = u({
|
|
2202
2233
|
props: {
|
|
2203
2234
|
/**
|
|
2204
2235
|
* {@inheritDoc @sisense/sdk-ui!ChartWidgetProps.bottomSlot}
|
|
@@ -2319,8 +2350,8 @@ const An = () => {
|
|
|
2319
2350
|
*/
|
|
2320
2351
|
onDataReady: Function
|
|
2321
2352
|
},
|
|
2322
|
-
setup: (t) =>
|
|
2323
|
-
}), Tn =
|
|
2353
|
+
setup: (t) => d(zt, t)
|
|
2354
|
+
}), Tn = u({
|
|
2324
2355
|
props: {
|
|
2325
2356
|
/** @internal */
|
|
2326
2357
|
bottomSlot: Object,
|
|
@@ -2427,24 +2458,8 @@ const An = () => {
|
|
|
2427
2458
|
*/
|
|
2428
2459
|
onDataReady: Function
|
|
2429
2460
|
},
|
|
2430
|
-
setup: (t) =>
|
|
2431
|
-
}),
|
|
2432
|
-
props: {
|
|
2433
|
-
bottomSlot: Object,
|
|
2434
|
-
dataOptions: {
|
|
2435
|
-
type: Object,
|
|
2436
|
-
required: !0
|
|
2437
|
-
},
|
|
2438
|
-
dataSource: [String, Object],
|
|
2439
|
-
description: String,
|
|
2440
|
-
filters: [Object, Array],
|
|
2441
|
-
styleOptions: Object,
|
|
2442
|
-
title: String,
|
|
2443
|
-
topSlot: Object,
|
|
2444
|
-
widgetStyleOptions: Object
|
|
2445
|
-
},
|
|
2446
|
-
setup: (t) => l(Kt, t)
|
|
2447
|
-
}), En = c({
|
|
2461
|
+
setup: (t) => d(Kt, t)
|
|
2462
|
+
}), En = u({
|
|
2448
2463
|
props: {
|
|
2449
2464
|
/**
|
|
2450
2465
|
* {@inheritDoc @sisense/sdk-ui!PivotTableWidgetProps.dataOptions}
|
|
@@ -2538,8 +2553,8 @@ const An = () => {
|
|
|
2538
2553
|
*/
|
|
2539
2554
|
onHeaderCellFormat: Function
|
|
2540
2555
|
},
|
|
2541
|
-
setup: (t) =>
|
|
2542
|
-
}), Bn =
|
|
2556
|
+
setup: (t) => d(Ut, t)
|
|
2557
|
+
}), Bn = u({
|
|
2543
2558
|
props: {
|
|
2544
2559
|
/**
|
|
2545
2560
|
* Unique identifier of the widget
|
|
@@ -2664,8 +2679,8 @@ const An = () => {
|
|
|
2664
2679
|
*/
|
|
2665
2680
|
onDataPointsSelected: Function
|
|
2666
2681
|
},
|
|
2667
|
-
setup: (t) =>
|
|
2668
|
-
}),
|
|
2682
|
+
setup: (t) => d(Xt, t)
|
|
2683
|
+
}), kn = u({
|
|
2669
2684
|
props: {
|
|
2670
2685
|
/**
|
|
2671
2686
|
* {@inheritDoc @sisense/sdk-ui!DashboardByIdProps.dashboardOid}
|
|
@@ -2679,8 +2694,8 @@ const An = () => {
|
|
|
2679
2694
|
*/
|
|
2680
2695
|
config: Object
|
|
2681
2696
|
},
|
|
2682
|
-
setup: (t) =>
|
|
2683
|
-
}),
|
|
2697
|
+
setup: (t) => d(Yt, t)
|
|
2698
|
+
}), $n = u({
|
|
2684
2699
|
props: {
|
|
2685
2700
|
/**
|
|
2686
2701
|
* {@inheritDoc @sisense/sdk-ui!DashboardProps.title}
|
|
@@ -2718,7 +2733,7 @@ const An = () => {
|
|
|
2718
2733
|
*/
|
|
2719
2734
|
styleOptions: Object
|
|
2720
2735
|
},
|
|
2721
|
-
setup: (t) =>
|
|
2736
|
+
setup: (t) => d(Zt, t)
|
|
2722
2737
|
});
|
|
2723
2738
|
function De(t) {
|
|
2724
2739
|
return te.toDashboardProps(t);
|
|
@@ -2726,29 +2741,29 @@ function De(t) {
|
|
|
2726
2741
|
const Qn = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
2727
2742
|
__proto__: null,
|
|
2728
2743
|
toDashboardProps: De
|
|
2729
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
2744
|
+
}, Symbol.toStringTag, { value: "Module" })), me = (t, e) => T.replaceFilters(t, e), je = (t, e) => T.addFilter(t, e), ve = (t, e) => T.addFilters(t, e), Pe = (t, e, n) => T.replaceFilter(
|
|
2730
2745
|
t,
|
|
2731
2746
|
e,
|
|
2732
2747
|
n
|
|
2733
2748
|
), xe = (t, e) => T.removeFilter(t, e), Ae = (t, e) => T.removeFilters(t, e), In = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
2734
2749
|
__proto__: null,
|
|
2735
|
-
addFilter:
|
|
2750
|
+
addFilter: je,
|
|
2736
2751
|
addFilters: ve,
|
|
2737
2752
|
removeFilter: xe,
|
|
2738
2753
|
removeFilters: Ae,
|
|
2739
2754
|
replaceFilter: Pe,
|
|
2740
|
-
replaceFilters:
|
|
2741
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
2755
|
+
replaceFilters: me
|
|
2756
|
+
}, Symbol.toStringTag, { value: "Module" })), Me = (t) => v.toExecuteQueryParams(t), we = (t) => v.toExecutePivotQueryParams(t);
|
|
2742
2757
|
function qe(t) {
|
|
2743
2758
|
return v.toChartProps(t);
|
|
2744
2759
|
}
|
|
2745
2760
|
function Re(t) {
|
|
2746
2761
|
return v.toTableProps(t);
|
|
2747
2762
|
}
|
|
2748
|
-
function
|
|
2763
|
+
function We(t) {
|
|
2749
2764
|
return v.toPivotTableProps(t);
|
|
2750
2765
|
}
|
|
2751
|
-
function
|
|
2766
|
+
function Te(t) {
|
|
2752
2767
|
return v.toChartWidgetProps(t);
|
|
2753
2768
|
}
|
|
2754
2769
|
function Ee(t) {
|
|
@@ -2757,41 +2772,41 @@ function Ee(t) {
|
|
|
2757
2772
|
function Be(t) {
|
|
2758
2773
|
return v.toTextWidgetProps(t);
|
|
2759
2774
|
}
|
|
2760
|
-
function
|
|
2775
|
+
function ke(t) {
|
|
2761
2776
|
return v.toWidgetProps(t);
|
|
2762
2777
|
}
|
|
2763
2778
|
const Ln = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
2764
2779
|
__proto__: null,
|
|
2765
2780
|
toChartProps: qe,
|
|
2766
|
-
toChartWidgetProps:
|
|
2767
|
-
toExecutePivotQueryParams:
|
|
2768
|
-
toExecuteQueryParams:
|
|
2769
|
-
toPivotTableProps:
|
|
2781
|
+
toChartWidgetProps: Te,
|
|
2782
|
+
toExecutePivotQueryParams: we,
|
|
2783
|
+
toExecuteQueryParams: Me,
|
|
2784
|
+
toPivotTableProps: We,
|
|
2770
2785
|
toPivotTableWidgetProps: Ee,
|
|
2771
2786
|
toTableProps: Re,
|
|
2772
2787
|
toTextWidgetProps: Be,
|
|
2773
|
-
toWidgetProps:
|
|
2788
|
+
toWidgetProps: ke
|
|
2774
2789
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
2775
2790
|
export {
|
|
2776
2791
|
_e as AreaChart,
|
|
2777
|
-
|
|
2792
|
+
cn as AreaRangeChart,
|
|
2778
2793
|
sn as AreamapChart,
|
|
2779
2794
|
He as BarChart,
|
|
2780
2795
|
on as BoxplotChart,
|
|
2781
2796
|
Ve as CalendarHeatmapChart,
|
|
2782
2797
|
rn as Chart,
|
|
2783
|
-
|
|
2798
|
+
Wn as ChartWidget,
|
|
2784
2799
|
Je as ColumnChart,
|
|
2785
2800
|
Oe as ContextMenu,
|
|
2786
2801
|
pn as CriteriaFilterTile,
|
|
2787
2802
|
Nn as CustomWidgetsProvider,
|
|
2788
|
-
|
|
2789
|
-
|
|
2803
|
+
$n as Dashboard,
|
|
2804
|
+
kn as DashboardById,
|
|
2790
2805
|
ln as DateRangeFilterTile,
|
|
2791
|
-
|
|
2792
|
-
|
|
2793
|
-
|
|
2794
|
-
|
|
2806
|
+
be as DrilldownBreadcrumbs,
|
|
2807
|
+
Rn as DrilldownWidget,
|
|
2808
|
+
hn as FilterTile,
|
|
2809
|
+
bn as FiltersPanel,
|
|
2795
2810
|
Ne as FunnelChart,
|
|
2796
2811
|
nn as IndicatorChart,
|
|
2797
2812
|
ze as LineChart,
|
|
@@ -2804,10 +2819,9 @@ export {
|
|
|
2804
2819
|
Ue as ScatterChart,
|
|
2805
2820
|
an as ScattermapChart,
|
|
2806
2821
|
zn as SisenseContextProvider,
|
|
2807
|
-
|
|
2822
|
+
un as StreamgraphChart,
|
|
2808
2823
|
tn as SunburstChart,
|
|
2809
2824
|
Xe as Table,
|
|
2810
|
-
Wn as TableWidget,
|
|
2811
2825
|
Kn as ThemeProvider,
|
|
2812
2826
|
Ze as TreemapChart,
|
|
2813
2827
|
Bn as Widget,
|
|
@@ -2817,19 +2831,20 @@ export {
|
|
|
2817
2831
|
Qn as dashboardModelTranslator,
|
|
2818
2832
|
Vn as extractDimensionsAndMeasures,
|
|
2819
2833
|
wn as useComposedDashboard,
|
|
2820
|
-
|
|
2834
|
+
Mn as useCustomWidgets,
|
|
2821
2835
|
Sn as useExecuteCsvQuery,
|
|
2822
2836
|
fn as useExecuteCustomWidgetQuery,
|
|
2823
2837
|
Fn as useExecutePivotQuery,
|
|
2824
2838
|
gn as useExecuteQuery,
|
|
2825
2839
|
On as useExecuteQueryByWidgetId,
|
|
2826
|
-
|
|
2827
|
-
|
|
2840
|
+
An as useFetch,
|
|
2841
|
+
mn as useGetDashboardModel,
|
|
2828
2842
|
jn as useGetDashboardModels,
|
|
2843
|
+
Dn as useGetDataSourceDimensions,
|
|
2829
2844
|
Cn as useGetFilterMembers,
|
|
2830
|
-
|
|
2831
|
-
|
|
2832
|
-
|
|
2833
|
-
|
|
2845
|
+
xn as useGetHierarchyModels,
|
|
2846
|
+
vn as useGetSharedFormula,
|
|
2847
|
+
Pn as useGetWidgetModel,
|
|
2848
|
+
qn as useJtdWidget,
|
|
2834
2849
|
Ln as widgetModelTranslator
|
|
2835
2850
|
};
|