@sisense/sdk-ui-vue 2.28.0 → 2.30.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/index.cjs +1 -1
- package/dist/index.js +409 -374
- package/dist/packages/sdk-ui-vue/src/components/widgets/chart-widget.d.ts +12 -0
- package/dist/packages/sdk-ui-vue/src/components/widgets/widget.d.ts +19 -0
- package/dist/packages/sdk-ui-vue/src/composables/use-execute-query.d.ts +28 -1
- package/dist/packages/sdk-ui-vue/src/providers/sisense-context-provider/sisense-context-provider.d.ts +224 -0
- package/dist/packages/sdk-ui-vue/src/sdk-ui-core-exports.d.ts +2 -2
- package/package.json +3 -3
package/dist/index.js
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
var Y = Object.defineProperty;
|
|
2
2
|
var Z = (t, e, n) => e in t ? Y(t, e, { enumerable: !0, configurable: !0, writable: !0, value: n }) : t[e] = n;
|
|
3
|
-
var
|
|
4
|
-
import { DrilldownBreadcrumbs as tt, AreaChart as et, BarChart as nt, CalendarHeatmapChart as rt, ColumnChart as ot, FunnelChart as it, LineChart as st, PieChart as at, ScatterChart as
|
|
5
|
-
import { boxWhiskerProcessResult as Jn, extractDimensionsAndMeasures as
|
|
6
|
-
import { defineComponent as
|
|
7
|
-
import { d as U, s as d, a as
|
|
8
|
-
import { C as
|
|
9
|
-
import { getFilterListAndRelationsJaql as X, isMembersFilter as
|
|
10
|
-
const
|
|
3
|
+
var k = (t, e, n) => (Z(t, typeof e != "symbol" ? e + "" : e, n), n);
|
|
4
|
+
import { DrilldownBreadcrumbs as tt, AreaChart as et, BarChart as nt, CalendarHeatmapChart as rt, ColumnChart as ot, FunnelChart as it, LineChart as st, PieChart as at, ScatterChart as ut, Table as ct, PivotTable as lt, TreemapChart as dt, SunburstChart as pt, PolarChart as yt, IndicatorChart as ht, Chart as bt, BoxplotChart as gt, AreamapChart as Ot, ScattermapChart as St, StreamgraphChart as Ct, AreaRangeChart as ft, DateRangeFilterTile as Ft, MemberFilterTile as Dt, CriteriaFilterTile as mt, RelativeDateFilterTile as jt, FilterTile as vt, FiltersPanel as Pt, queryStateReducer as K, executeQueryWithRowCount as xt, executeQuery as wt, executeQueryByWidgetId as At, HookAdapter as x, useExecuteCsvQueryInternal as Mt, useExecutePivotQueryInternal as qt, useExecuteCustomWidgetQueryInternal as Rt, useGetFilterMembers as Wt, useGetDataSourceDimensionsInternal as Tt, translateToDashboardResponse as Et, dataLoadStateReducer as $, getDashboardModel as Bt, translateToDashboardsResponse as kt, getDashboardModels as $t, useGetSharedFormulaInternal as Qt, getWidgetModel as It, getHierarchyModels as Lt, createElement as Gt, ExternalComponentAdapterElement as _t, useComposedDashboardInternal as Ht, createHookApiFacade as N, useJtdWidget as Vt, ContextMenu as Nt, translateColumnToAttribute as Jt, isSameAttribute as J, updateDrilldownSelections as zt, processDrilldownSelections as Kt, getSelectionTitleMenuItem as Ut, getDrilldownMenuItems as Xt, ChartWidget as Yt, WidgetById as Zt, PivotTableWidget as te, Widget as ee, DashboardById as ne, Dashboard as re, dashboardModelTranslator as oe, dashboardHelpers as B, widgetModelTranslator as P } from "@sisense/sdk-ui-preact";
|
|
5
|
+
import { boxWhiskerProcessResult as Jn, extractDimensionsAndMeasures as zn, formatDataSet as Kn, formatDate as Un, formatNumber as Xn, getDefaultDateFormat as Yn } from "@sisense/sdk-ui-preact";
|
|
6
|
+
import { defineComponent as c, ref as j, watch as g, toRefs as h, onBeforeUnmount as w, createApp as ie, h as se, toValue as ae, computed as G, openBlock as ue, createElementBlock as ce, renderSlot as L, createVNode as z, unref as m, createElementVNode as le } from "vue";
|
|
7
|
+
import { d as U, s as d, a as W, g as A, u as f, b, t as l, e as _, f as M, h as T, i as H, j as de, k as pe, l as ye, m as he, n as be } from "./use-tracking-b2365036.js";
|
|
8
|
+
import { C as tr, S as er, T as nr } from "./use-tracking-b2365036.js";
|
|
9
|
+
import { getFilterListAndRelationsJaql as X, isMembersFilter as ge, MetadataTypes as Oe } from "@sisense/sdk-data";
|
|
10
|
+
const Se = c({
|
|
11
11
|
props: {
|
|
12
12
|
/**
|
|
13
13
|
* {@inheritDoc @sisense/sdk-ui!DrilldownBreadcrumbsProps.clearDrilldownSelections}
|
|
@@ -47,7 +47,7 @@ const Oe = u({
|
|
|
47
47
|
}
|
|
48
48
|
},
|
|
49
49
|
setup: (t, { slots: e }) => U(tt, t, e, [])
|
|
50
|
-
}),
|
|
50
|
+
}), Ne = c({
|
|
51
51
|
props: {
|
|
52
52
|
/**
|
|
53
53
|
* {@inheritDoc @sisense/sdk-ui!AreaChartProps.dataOptions}
|
|
@@ -114,7 +114,7 @@ const Oe = u({
|
|
|
114
114
|
onDataPointsSelected: Function
|
|
115
115
|
},
|
|
116
116
|
setup: (t) => d(et, t)
|
|
117
|
-
}), Je =
|
|
117
|
+
}), Je = c({
|
|
118
118
|
props: {
|
|
119
119
|
/**
|
|
120
120
|
* {@inheritDoc @sisense/sdk-ui!BarChartProps.dataOptions}
|
|
@@ -181,7 +181,7 @@ const Oe = u({
|
|
|
181
181
|
styleOptions: Object
|
|
182
182
|
},
|
|
183
183
|
setup: (t) => d(nt, t)
|
|
184
|
-
}),
|
|
184
|
+
}), ze = c({
|
|
185
185
|
props: {
|
|
186
186
|
/**
|
|
187
187
|
* {@inheritDoc @sisense/sdk-ui!CalendarHeatmapChartProps.dataOptions}
|
|
@@ -248,7 +248,7 @@ const Oe = u({
|
|
|
248
248
|
onDataPointsSelected: Function
|
|
249
249
|
},
|
|
250
250
|
setup: (t) => d(rt, t)
|
|
251
|
-
}),
|
|
251
|
+
}), Ke = c({
|
|
252
252
|
props: {
|
|
253
253
|
/**
|
|
254
254
|
* {@inheritDoc @sisense/sdk-ui!ColumnChartProps.dataOptions}
|
|
@@ -315,7 +315,7 @@ const Oe = u({
|
|
|
315
315
|
styleOptions: Object
|
|
316
316
|
},
|
|
317
317
|
setup: (t) => d(ot, t)
|
|
318
|
-
}),
|
|
318
|
+
}), Ue = c({
|
|
319
319
|
props: {
|
|
320
320
|
/**
|
|
321
321
|
* {@inheritDoc @sisense/sdk-ui!FunnelChartProps.dataOptions}
|
|
@@ -382,7 +382,7 @@ const Oe = u({
|
|
|
382
382
|
styleOptions: Object
|
|
383
383
|
},
|
|
384
384
|
setup: (t) => d(it, t)
|
|
385
|
-
}),
|
|
385
|
+
}), Xe = c({
|
|
386
386
|
props: {
|
|
387
387
|
/**
|
|
388
388
|
* {@inheritDoc @sisense/sdk-ui!LineChartProps.dataOptions}
|
|
@@ -449,7 +449,7 @@ const Oe = u({
|
|
|
449
449
|
styleOptions: Object
|
|
450
450
|
},
|
|
451
451
|
setup: (t) => d(st, t)
|
|
452
|
-
}),
|
|
452
|
+
}), Ye = c({
|
|
453
453
|
props: {
|
|
454
454
|
/**
|
|
455
455
|
* {@inheritDoc @sisense/sdk-ui!PieChartProps.dataOptions}
|
|
@@ -516,7 +516,7 @@ const Oe = u({
|
|
|
516
516
|
styleOptions: Object
|
|
517
517
|
},
|
|
518
518
|
setup: (t) => d(at, t)
|
|
519
|
-
}),
|
|
519
|
+
}), Ze = c({
|
|
520
520
|
props: {
|
|
521
521
|
/**
|
|
522
522
|
* {@inheritDoc @sisense/sdk-ui!ScatterChartProps.dataOptions}
|
|
@@ -582,8 +582,8 @@ const Oe = u({
|
|
|
582
582
|
*/
|
|
583
583
|
styleOptions: Object
|
|
584
584
|
},
|
|
585
|
-
setup: (t) => d(
|
|
586
|
-
}),
|
|
585
|
+
setup: (t) => d(ut, t)
|
|
586
|
+
}), tn = c({
|
|
587
587
|
props: {
|
|
588
588
|
/**
|
|
589
589
|
* {@inheritDoc @sisense/sdk-ui!TableProps.dataOptions}
|
|
@@ -621,8 +621,8 @@ const Oe = u({
|
|
|
621
621
|
*/
|
|
622
622
|
onDataReady: Function
|
|
623
623
|
},
|
|
624
|
-
setup: (t) => d(
|
|
625
|
-
}),
|
|
624
|
+
setup: (t) => d(ct, t)
|
|
625
|
+
}), en = c({
|
|
626
626
|
props: {
|
|
627
627
|
/**
|
|
628
628
|
* {@inheritDoc @sisense/sdk-ui!PivotTableProps.dataOptions}
|
|
@@ -673,7 +673,7 @@ const Oe = u({
|
|
|
673
673
|
onDataPointContextMenu: Function
|
|
674
674
|
},
|
|
675
675
|
setup: (t) => d(lt, t)
|
|
676
|
-
}),
|
|
676
|
+
}), nn = c({
|
|
677
677
|
props: {
|
|
678
678
|
/**
|
|
679
679
|
* {@inheritDoc @sisense/sdk-ui!TreemapChartProps.dataOptions}
|
|
@@ -740,7 +740,7 @@ const Oe = u({
|
|
|
740
740
|
styleOptions: Object
|
|
741
741
|
},
|
|
742
742
|
setup: (t) => d(dt, t)
|
|
743
|
-
}),
|
|
743
|
+
}), rn = c({
|
|
744
744
|
props: {
|
|
745
745
|
/**
|
|
746
746
|
* {@inheritDoc @sisense/sdk-ui!SunburstChartProps.dataOptions}
|
|
@@ -807,7 +807,7 @@ const Oe = u({
|
|
|
807
807
|
styleOptions: Object
|
|
808
808
|
},
|
|
809
809
|
setup: (t) => d(pt, t)
|
|
810
|
-
}),
|
|
810
|
+
}), on = c({
|
|
811
811
|
props: {
|
|
812
812
|
/**
|
|
813
813
|
* {@inheritDoc @sisense/sdk-ui!PolarChartProps.dataOptions}
|
|
@@ -874,7 +874,7 @@ const Oe = u({
|
|
|
874
874
|
styleOptions: Object
|
|
875
875
|
},
|
|
876
876
|
setup: (t) => d(yt, t)
|
|
877
|
-
}),
|
|
877
|
+
}), sn = c({
|
|
878
878
|
props: {
|
|
879
879
|
/**
|
|
880
880
|
* {@inheritDoc @sisense/sdk-ui!IndicatorChartProps.dataOptions}
|
|
@@ -923,7 +923,7 @@ const Oe = u({
|
|
|
923
923
|
onDataReady: Function
|
|
924
924
|
},
|
|
925
925
|
setup: (t) => d(ht, t)
|
|
926
|
-
}),
|
|
926
|
+
}), an = c({
|
|
927
927
|
props: {
|
|
928
928
|
/**
|
|
929
929
|
* {@inheritDoc @sisense/sdk-ui!ChartProps.chartType}
|
|
@@ -1003,7 +1003,7 @@ const Oe = u({
|
|
|
1003
1003
|
refreshCounter: Number
|
|
1004
1004
|
},
|
|
1005
1005
|
setup: (t) => d(bt, t)
|
|
1006
|
-
}),
|
|
1006
|
+
}), un = c({
|
|
1007
1007
|
props: {
|
|
1008
1008
|
/**
|
|
1009
1009
|
* {@inheritDoc @sisense/sdk-ui!BoxplotChartProps.dataOptions}
|
|
@@ -1070,7 +1070,7 @@ const Oe = u({
|
|
|
1070
1070
|
onDataPointsSelected: Function
|
|
1071
1071
|
},
|
|
1072
1072
|
setup: (t) => d(gt, t)
|
|
1073
|
-
}), cn =
|
|
1073
|
+
}), cn = c({
|
|
1074
1074
|
props: {
|
|
1075
1075
|
/**
|
|
1076
1076
|
* {@inheritDoc @sisense/sdk-ui!AreamapChartProps.dataOptions}
|
|
@@ -1119,7 +1119,7 @@ const Oe = u({
|
|
|
1119
1119
|
onDataPointClick: Function
|
|
1120
1120
|
},
|
|
1121
1121
|
setup: (t) => d(Ot, t)
|
|
1122
|
-
}),
|
|
1122
|
+
}), ln = c({
|
|
1123
1123
|
props: {
|
|
1124
1124
|
/**
|
|
1125
1125
|
* {@inheritDoc @sisense/sdk-ui!ScattermapChartProps.dataOptions}
|
|
@@ -1168,7 +1168,7 @@ const Oe = u({
|
|
|
1168
1168
|
onDataPointClick: Object
|
|
1169
1169
|
},
|
|
1170
1170
|
setup: (t) => d(St, t)
|
|
1171
|
-
}),
|
|
1171
|
+
}), dn = c({
|
|
1172
1172
|
props: {
|
|
1173
1173
|
/**
|
|
1174
1174
|
* {@inheritDoc @sisense/sdk-ui!StreamgraphChartProps.dataOptions}
|
|
@@ -1234,8 +1234,8 @@ const Oe = u({
|
|
|
1234
1234
|
*/
|
|
1235
1235
|
onDataPointsSelected: Function
|
|
1236
1236
|
},
|
|
1237
|
-
setup: (t) => d(
|
|
1238
|
-
}),
|
|
1237
|
+
setup: (t) => d(Ct, t)
|
|
1238
|
+
}), pn = c({
|
|
1239
1239
|
props: {
|
|
1240
1240
|
/**
|
|
1241
1241
|
* {@inheritDoc @sisense/sdk-ui!AreaRangeChartProps.dataOptions}
|
|
@@ -1302,7 +1302,7 @@ const Oe = u({
|
|
|
1302
1302
|
styleOptions: Object
|
|
1303
1303
|
},
|
|
1304
1304
|
setup: (t) => d(ft, t)
|
|
1305
|
-
}),
|
|
1305
|
+
}), yn = c({
|
|
1306
1306
|
props: {
|
|
1307
1307
|
/**
|
|
1308
1308
|
* {@inheritDoc @sisense/sdk-ui!DateRangeFilterTileProps.attribute}
|
|
@@ -1362,8 +1362,8 @@ const Oe = u({
|
|
|
1362
1362
|
*/
|
|
1363
1363
|
onEdit: Function
|
|
1364
1364
|
},
|
|
1365
|
-
setup: (t) => d(
|
|
1366
|
-
}),
|
|
1365
|
+
setup: (t) => d(Ft, t)
|
|
1366
|
+
}), hn = c({
|
|
1367
1367
|
props: {
|
|
1368
1368
|
/**
|
|
1369
1369
|
* {@inheritDoc @sisense/sdk-ui!MemberFilterTileProps.attribute}
|
|
@@ -1411,7 +1411,7 @@ const Oe = u({
|
|
|
1411
1411
|
onEdit: Function
|
|
1412
1412
|
},
|
|
1413
1413
|
setup: (t) => d(Dt, t)
|
|
1414
|
-
}),
|
|
1414
|
+
}), bn = c({
|
|
1415
1415
|
props: {
|
|
1416
1416
|
/**
|
|
1417
1417
|
* {@inheritDoc @sisense/sdk-ui!CriteriaFilterTileProps.arrangement}
|
|
@@ -1452,7 +1452,7 @@ const Oe = u({
|
|
|
1452
1452
|
onEdit: Function
|
|
1453
1453
|
},
|
|
1454
1454
|
setup: (t) => d(mt, t)
|
|
1455
|
-
}),
|
|
1455
|
+
}), gn = c({
|
|
1456
1456
|
props: {
|
|
1457
1457
|
/**
|
|
1458
1458
|
* {@inheritDoc @sisense/sdk-ui!RelativeDateFilterTileProps.title}
|
|
@@ -1498,7 +1498,7 @@ const Oe = u({
|
|
|
1498
1498
|
onEdit: Function
|
|
1499
1499
|
},
|
|
1500
1500
|
setup: (t) => d(jt, t)
|
|
1501
|
-
}),
|
|
1501
|
+
}), On = c({
|
|
1502
1502
|
props: {
|
|
1503
1503
|
/**
|
|
1504
1504
|
* {@inheritDoc @sisense/sdk-ui!FilterTileProps.filter}
|
|
@@ -1528,7 +1528,7 @@ const Oe = u({
|
|
|
1528
1528
|
onEdit: Function
|
|
1529
1529
|
},
|
|
1530
1530
|
setup: (t) => d(vt, t)
|
|
1531
|
-
}),
|
|
1531
|
+
}), Sn = c({
|
|
1532
1532
|
props: {
|
|
1533
1533
|
/**
|
|
1534
1534
|
* {@inheritDoc @sisense/sdk-ui!FiltersPanelProps.filters}
|
|
@@ -1560,102 +1560,115 @@ const Oe = u({
|
|
|
1560
1560
|
}
|
|
1561
1561
|
},
|
|
1562
1562
|
setup: (t) => d(Pt, t)
|
|
1563
|
-
}),
|
|
1564
|
-
const [e, n] =
|
|
1563
|
+
}), Cn = (t) => {
|
|
1564
|
+
const [e, n] = W(K, {
|
|
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
|
-
}), o =
|
|
1572
|
-
|
|
1573
|
-
const r = async (
|
|
1571
|
+
}), o = A();
|
|
1572
|
+
f("useExecuteQuery");
|
|
1573
|
+
const r = j(void 0), s = async (i) => {
|
|
1574
1574
|
try {
|
|
1575
1575
|
const {
|
|
1576
|
-
dataSource:
|
|
1577
|
-
dimensions:
|
|
1578
|
-
measures:
|
|
1579
|
-
filters:
|
|
1580
|
-
highlights:
|
|
1581
|
-
count:
|
|
1582
|
-
offset:
|
|
1583
|
-
ungroup:
|
|
1584
|
-
|
|
1585
|
-
|
|
1576
|
+
dataSource: a,
|
|
1577
|
+
dimensions: u,
|
|
1578
|
+
measures: p,
|
|
1579
|
+
filters: O,
|
|
1580
|
+
highlights: S,
|
|
1581
|
+
count: y,
|
|
1582
|
+
offset: F,
|
|
1583
|
+
ungroup: D,
|
|
1584
|
+
includeRowCount: v,
|
|
1585
|
+
onBeforeQuery: q
|
|
1586
|
+
} = l(t), { filters: I, relations: Q } = X(O);
|
|
1586
1587
|
n({ type: "loading" });
|
|
1587
|
-
const
|
|
1588
|
-
|
|
1589
|
-
|
|
1590
|
-
|
|
1591
|
-
|
|
1592
|
-
|
|
1593
|
-
|
|
1594
|
-
|
|
1595
|
-
|
|
1596
|
-
|
|
1597
|
-
|
|
1598
|
-
|
|
1599
|
-
|
|
1600
|
-
|
|
1601
|
-
|
|
1602
|
-
|
|
1603
|
-
|
|
1604
|
-
|
|
1588
|
+
const C = {
|
|
1589
|
+
dataSource: a,
|
|
1590
|
+
dimensions: u,
|
|
1591
|
+
measures: p,
|
|
1592
|
+
filters: I,
|
|
1593
|
+
filterRelations: Q,
|
|
1594
|
+
highlights: S,
|
|
1595
|
+
count: y,
|
|
1596
|
+
offset: F,
|
|
1597
|
+
ungroup: D
|
|
1598
|
+
}, E = { onBeforeQuery: _(q) };
|
|
1599
|
+
if (v) {
|
|
1600
|
+
const R = await xt(
|
|
1601
|
+
C,
|
|
1602
|
+
i,
|
|
1603
|
+
E
|
|
1604
|
+
);
|
|
1605
|
+
r.value = R.rowCount, n({ type: "success", data: R.data });
|
|
1606
|
+
} else {
|
|
1607
|
+
r.value = void 0;
|
|
1608
|
+
const R = await wt(C, i, E);
|
|
1609
|
+
n({ type: "success", data: R });
|
|
1610
|
+
}
|
|
1611
|
+
} catch (a) {
|
|
1612
|
+
n({ type: "error", error: a });
|
|
1605
1613
|
}
|
|
1606
1614
|
};
|
|
1607
1615
|
return g(
|
|
1608
1616
|
[...b(t), o],
|
|
1609
1617
|
() => {
|
|
1610
|
-
const { app:
|
|
1611
|
-
!
|
|
1618
|
+
const { app: i } = o.value, { enabled: a } = l(t);
|
|
1619
|
+
!i || !(a === void 0 || a === !0) || s(i);
|
|
1612
1620
|
},
|
|
1613
1621
|
{ immediate: !0 }
|
|
1614
|
-
),
|
|
1615
|
-
|
|
1616
|
-
|
|
1617
|
-
|
|
1618
|
-
|
|
1622
|
+
), {
|
|
1623
|
+
...h(e.value),
|
|
1624
|
+
rowCount: r
|
|
1625
|
+
};
|
|
1626
|
+
}, fn = (t) => {
|
|
1627
|
+
const e = j(void 0), n = j(void 0), o = j(void 0);
|
|
1628
|
+
f("useExecuteQueryByWidgetId");
|
|
1629
|
+
const [r, s] = W(K, {
|
|
1619
1630
|
isLoading: !0,
|
|
1620
1631
|
isError: !1,
|
|
1621
1632
|
isSuccess: !1,
|
|
1622
1633
|
status: "loading",
|
|
1623
1634
|
error: void 0,
|
|
1624
1635
|
data: void 0
|
|
1625
|
-
}),
|
|
1636
|
+
}), i = A(), a = async (u) => {
|
|
1626
1637
|
try {
|
|
1627
|
-
|
|
1628
|
-
const { filters:
|
|
1629
|
-
data:
|
|
1630
|
-
query:
|
|
1631
|
-
pivotQuery:
|
|
1638
|
+
s({ type: "loading" });
|
|
1639
|
+
const { filters: p, ...O } = l(t), { filters: S } = X(_(p)), {
|
|
1640
|
+
data: y,
|
|
1641
|
+
query: F,
|
|
1642
|
+
pivotQuery: D,
|
|
1643
|
+
rowCount: v
|
|
1632
1644
|
} = await At({
|
|
1633
|
-
...
|
|
1634
|
-
filters:
|
|
1635
|
-
app:
|
|
1645
|
+
...O,
|
|
1646
|
+
filters: S,
|
|
1647
|
+
app: u
|
|
1636
1648
|
});
|
|
1637
|
-
|
|
1638
|
-
} catch (
|
|
1639
|
-
|
|
1649
|
+
s({ type: "success", data: y }), e.value = F, n.value = D, o.value = v;
|
|
1650
|
+
} catch (p) {
|
|
1651
|
+
s({ type: "error", error: p });
|
|
1640
1652
|
}
|
|
1641
1653
|
};
|
|
1642
1654
|
return g(
|
|
1643
|
-
[...b(t),
|
|
1655
|
+
[...b(t), i],
|
|
1644
1656
|
() => {
|
|
1645
|
-
const { app:
|
|
1646
|
-
!
|
|
1657
|
+
const { app: u } = i.value, { enabled: p } = l(t);
|
|
1658
|
+
!u || !(p === void 0 || p === !0) || a(u);
|
|
1647
1659
|
},
|
|
1648
1660
|
{ immediate: !0 }
|
|
1649
1661
|
), {
|
|
1650
|
-
...h(
|
|
1662
|
+
...h(r.value),
|
|
1651
1663
|
query: e,
|
|
1652
|
-
pivotQuery: n
|
|
1664
|
+
pivotQuery: n,
|
|
1665
|
+
rowCount: o
|
|
1653
1666
|
};
|
|
1654
|
-
},
|
|
1655
|
-
|
|
1667
|
+
}, Fn = (t) => {
|
|
1668
|
+
f("useExecuteCsvQuery");
|
|
1656
1669
|
const e = new x(Mt, [
|
|
1657
|
-
|
|
1658
|
-
]), [n, o] =
|
|
1670
|
+
M()
|
|
1671
|
+
]), [n, o] = T({
|
|
1659
1672
|
isLoading: !0,
|
|
1660
1673
|
isError: !1,
|
|
1661
1674
|
isSuccess: !1,
|
|
@@ -1667,14 +1680,14 @@ const Oe = u({
|
|
|
1667
1680
|
o(r);
|
|
1668
1681
|
}), e.run(l(t)), g([...b(t)], () => {
|
|
1669
1682
|
e.run(l(t));
|
|
1670
|
-
}),
|
|
1683
|
+
}), w(() => {
|
|
1671
1684
|
e.destroy();
|
|
1672
1685
|
}), h(n.value);
|
|
1673
|
-
},
|
|
1674
|
-
|
|
1675
|
-
const e = new x(
|
|
1676
|
-
|
|
1677
|
-
]), [n, o] =
|
|
1686
|
+
}, Dn = (t) => {
|
|
1687
|
+
f("useExecutePivotQuery");
|
|
1688
|
+
const e = new x(qt, [
|
|
1689
|
+
M()
|
|
1690
|
+
]), [n, o] = T({
|
|
1678
1691
|
isLoading: !0,
|
|
1679
1692
|
isError: !1,
|
|
1680
1693
|
isSuccess: !1,
|
|
@@ -1686,14 +1699,14 @@ const Oe = u({
|
|
|
1686
1699
|
o(r);
|
|
1687
1700
|
}), e.run(l(t)), g([...b(t)], () => {
|
|
1688
1701
|
e.run(l(t));
|
|
1689
|
-
}),
|
|
1702
|
+
}), w(() => {
|
|
1690
1703
|
e.destroy();
|
|
1691
1704
|
}), h(n.value);
|
|
1692
|
-
},
|
|
1693
|
-
|
|
1694
|
-
const e = new x(
|
|
1695
|
-
|
|
1696
|
-
]), [n, o] =
|
|
1705
|
+
}, mn = (t) => {
|
|
1706
|
+
f("useExecuteCustomWidgetQuery");
|
|
1707
|
+
const e = new x(Rt, [
|
|
1708
|
+
M()
|
|
1709
|
+
]), [n, o] = T({
|
|
1697
1710
|
data: void 0,
|
|
1698
1711
|
isLoading: !0,
|
|
1699
1712
|
isError: !1,
|
|
@@ -1705,15 +1718,15 @@ const Oe = u({
|
|
|
1705
1718
|
o(r);
|
|
1706
1719
|
}), e.run(l(t)), g([...b(t)], () => {
|
|
1707
1720
|
e.run(l(t));
|
|
1708
|
-
}),
|
|
1721
|
+
}), w(() => {
|
|
1709
1722
|
e.destroy();
|
|
1710
1723
|
}), h(n.value);
|
|
1711
|
-
},
|
|
1712
|
-
|
|
1724
|
+
}, jn = (t) => {
|
|
1725
|
+
f("useGetFilterMembers");
|
|
1713
1726
|
const { filter: e, parentFilters: n = [] } = l(t), o = {
|
|
1714
1727
|
selectedMembers: [],
|
|
1715
1728
|
allMembers: [],
|
|
1716
|
-
...
|
|
1729
|
+
...ge(e) ? {
|
|
1717
1730
|
excludeMembers: e.config.excludeMembers,
|
|
1718
1731
|
enableMultiSelection: e.config.enableMultiSelection,
|
|
1719
1732
|
hasBackgroundFilter: !!e.config.backgroundFilter && n.length === 0
|
|
@@ -1722,7 +1735,7 @@ const Oe = u({
|
|
|
1722
1735
|
enableMultiSelection: !1,
|
|
1723
1736
|
hasBackgroundFilter: !1
|
|
1724
1737
|
}
|
|
1725
|
-
}, r = new x(
|
|
1738
|
+
}, r = new x(Wt, [M()]), [s, i] = T({
|
|
1726
1739
|
isLoading: !0,
|
|
1727
1740
|
isError: !1,
|
|
1728
1741
|
isSuccess: !1,
|
|
@@ -1731,18 +1744,18 @@ const Oe = u({
|
|
|
1731
1744
|
data: o,
|
|
1732
1745
|
isAllItemsLoaded: !1
|
|
1733
1746
|
});
|
|
1734
|
-
return r.subscribe((
|
|
1735
|
-
i(
|
|
1747
|
+
return r.subscribe((a) => {
|
|
1748
|
+
i(a);
|
|
1736
1749
|
}), r.run(l(t)), g([...b(t)], () => {
|
|
1737
1750
|
r.run(l(t));
|
|
1738
|
-
}),
|
|
1751
|
+
}), w(() => {
|
|
1739
1752
|
r.destroy();
|
|
1740
1753
|
}), h(s.value);
|
|
1741
|
-
},
|
|
1742
|
-
|
|
1743
|
-
const e = new x(
|
|
1744
|
-
|
|
1745
|
-
]), [n, o] =
|
|
1754
|
+
}, vn = (t) => {
|
|
1755
|
+
f("useGetDataSourceDimensions");
|
|
1756
|
+
const e = new x(Tt, [
|
|
1757
|
+
M()
|
|
1758
|
+
]), [n, o] = T({
|
|
1746
1759
|
isLoading: !0,
|
|
1747
1760
|
isError: !1,
|
|
1748
1761
|
isSuccess: !1,
|
|
@@ -1754,81 +1767,81 @@ const Oe = u({
|
|
|
1754
1767
|
o(r);
|
|
1755
1768
|
}), e.run(l(t)), g([...b(t)], () => {
|
|
1756
1769
|
e.run(l(t));
|
|
1757
|
-
}),
|
|
1770
|
+
}), w(() => {
|
|
1758
1771
|
e.destroy();
|
|
1759
1772
|
}), h(n.value);
|
|
1760
|
-
},
|
|
1761
|
-
|
|
1762
|
-
const [e, n] =
|
|
1773
|
+
}, Pn = (t) => {
|
|
1774
|
+
f("useGetDashboardModel");
|
|
1775
|
+
const [e, n] = W($, {
|
|
1763
1776
|
isLoading: !0,
|
|
1764
1777
|
isError: !1,
|
|
1765
1778
|
isSuccess: !1,
|
|
1766
1779
|
status: "loading",
|
|
1767
1780
|
error: void 0,
|
|
1768
1781
|
data: void 0
|
|
1769
|
-
}), o =
|
|
1782
|
+
}), o = A(), r = H(), s = async (a) => {
|
|
1770
1783
|
try {
|
|
1771
1784
|
n({ type: "loading" });
|
|
1772
|
-
const { dashboardOid:
|
|
1773
|
-
|
|
1774
|
-
|
|
1775
|
-
{ includeWidgets: p, includeFilters:
|
|
1785
|
+
const { dashboardOid: u, includeWidgets: p, includeFilters: O } = l(t), S = await Bt(
|
|
1786
|
+
a.httpClient,
|
|
1787
|
+
u,
|
|
1788
|
+
{ includeWidgets: p, includeFilters: O },
|
|
1776
1789
|
r.value,
|
|
1777
|
-
|
|
1790
|
+
a.settings
|
|
1778
1791
|
);
|
|
1779
|
-
n({ type: "success", data:
|
|
1780
|
-
} catch (
|
|
1781
|
-
n({ type: "error", error:
|
|
1792
|
+
n({ type: "success", data: S });
|
|
1793
|
+
} catch (u) {
|
|
1794
|
+
n({ type: "error", error: u });
|
|
1782
1795
|
}
|
|
1783
1796
|
};
|
|
1784
1797
|
g(
|
|
1785
1798
|
[...b(t), o, r],
|
|
1786
1799
|
() => {
|
|
1787
|
-
const { app:
|
|
1788
|
-
!
|
|
1800
|
+
const { app: a } = o.value, { enabled: u } = l(t);
|
|
1801
|
+
!a || !(u === void 0 || u === !0) || s(a);
|
|
1789
1802
|
},
|
|
1790
1803
|
{ immediate: !0 }
|
|
1791
1804
|
);
|
|
1792
1805
|
const i = h(e.value);
|
|
1793
|
-
return h(
|
|
1794
|
-
},
|
|
1795
|
-
|
|
1796
|
-
const [e, n] =
|
|
1806
|
+
return h(Et(i));
|
|
1807
|
+
}, xn = (t) => {
|
|
1808
|
+
f("useGetDashboardModels");
|
|
1809
|
+
const [e, n] = W($, {
|
|
1797
1810
|
isLoading: !0,
|
|
1798
1811
|
isError: !1,
|
|
1799
1812
|
isSuccess: !1,
|
|
1800
1813
|
status: "loading",
|
|
1801
1814
|
error: void 0,
|
|
1802
1815
|
data: void 0
|
|
1803
|
-
}), o =
|
|
1816
|
+
}), o = A(), r = H(), s = async (a) => {
|
|
1804
1817
|
try {
|
|
1805
1818
|
n({ type: "loading" });
|
|
1806
|
-
const
|
|
1807
|
-
|
|
1808
|
-
|
|
1819
|
+
const u = l(t), p = await $t(
|
|
1820
|
+
a.httpClient,
|
|
1821
|
+
u,
|
|
1809
1822
|
r.value,
|
|
1810
|
-
|
|
1823
|
+
a.settings
|
|
1811
1824
|
);
|
|
1812
1825
|
n({ type: "success", data: p });
|
|
1813
|
-
} catch (
|
|
1814
|
-
n({ type: "error", error:
|
|
1826
|
+
} catch (u) {
|
|
1827
|
+
n({ type: "error", error: u });
|
|
1815
1828
|
}
|
|
1816
1829
|
};
|
|
1817
1830
|
g(
|
|
1818
1831
|
[...b(t), o, r],
|
|
1819
1832
|
() => {
|
|
1820
|
-
const { app:
|
|
1821
|
-
!
|
|
1833
|
+
const { app: a } = o.value, { enabled: u } = l(t);
|
|
1834
|
+
!a || !(u === void 0 || u === !0) || s(a);
|
|
1822
1835
|
},
|
|
1823
1836
|
{ immediate: !0 }
|
|
1824
1837
|
);
|
|
1825
1838
|
const i = h(e.value);
|
|
1826
|
-
return h(
|
|
1827
|
-
},
|
|
1828
|
-
|
|
1829
|
-
const e = new x(
|
|
1830
|
-
|
|
1831
|
-
]), [n, o] =
|
|
1839
|
+
return h(kt(i));
|
|
1840
|
+
}, wn = (t) => {
|
|
1841
|
+
f("useGetSharedFormula");
|
|
1842
|
+
const e = new x(Qt, [
|
|
1843
|
+
M()
|
|
1844
|
+
]), [n, o] = T({
|
|
1832
1845
|
isLoading: !0,
|
|
1833
1846
|
isError: !1,
|
|
1834
1847
|
isSuccess: !1,
|
|
@@ -1840,23 +1853,23 @@ const Oe = u({
|
|
|
1840
1853
|
o(r);
|
|
1841
1854
|
}), e.run(l(t)), g([...b(t)], () => {
|
|
1842
1855
|
e.run(l(t));
|
|
1843
|
-
}),
|
|
1856
|
+
}), w(() => {
|
|
1844
1857
|
e.destroy();
|
|
1845
1858
|
}), h(n.value);
|
|
1846
1859
|
}, An = (t) => {
|
|
1847
|
-
|
|
1848
|
-
const [e, n] =
|
|
1860
|
+
f("useGetWidgetModel");
|
|
1861
|
+
const [e, n] = W($, {
|
|
1849
1862
|
isLoading: !0,
|
|
1850
1863
|
isError: !1,
|
|
1851
1864
|
isSuccess: !1,
|
|
1852
1865
|
status: "loading",
|
|
1853
1866
|
error: void 0,
|
|
1854
1867
|
data: void 0
|
|
1855
|
-
}), o =
|
|
1868
|
+
}), o = A(), r = async (s) => {
|
|
1856
1869
|
try {
|
|
1857
1870
|
n({ type: "loading" });
|
|
1858
|
-
const { dashboardOid: i, widgetOid:
|
|
1859
|
-
n({ type: "success", data:
|
|
1871
|
+
const { dashboardOid: i, widgetOid: a } = l(t), u = await It(s.httpClient, i, a);
|
|
1872
|
+
n({ type: "success", data: u });
|
|
1860
1873
|
} catch (i) {
|
|
1861
1874
|
n({ type: "error", error: i });
|
|
1862
1875
|
}
|
|
@@ -1870,18 +1883,18 @@ const Oe = u({
|
|
|
1870
1883
|
{ immediate: !0 }
|
|
1871
1884
|
), h(e.value);
|
|
1872
1885
|
}, Mn = (t) => {
|
|
1873
|
-
|
|
1874
|
-
const [e, n] =
|
|
1886
|
+
f("useGetHierarchyModels");
|
|
1887
|
+
const [e, n] = W($, {
|
|
1875
1888
|
isLoading: !0,
|
|
1876
1889
|
isError: !1,
|
|
1877
1890
|
isSuccess: !1,
|
|
1878
1891
|
status: "loading",
|
|
1879
1892
|
error: void 0,
|
|
1880
1893
|
data: void 0
|
|
1881
|
-
}), o =
|
|
1894
|
+
}), o = A(), r = async (s) => {
|
|
1882
1895
|
try {
|
|
1883
1896
|
n({ type: "loading" });
|
|
1884
|
-
const i = await
|
|
1897
|
+
const i = await Lt(s.httpClient, l(t));
|
|
1885
1898
|
n({ type: "success", data: i });
|
|
1886
1899
|
} catch (i) {
|
|
1887
1900
|
n({ type: "error", error: i });
|
|
@@ -1895,45 +1908,45 @@ const Oe = u({
|
|
|
1895
1908
|
},
|
|
1896
1909
|
{ immediate: !0 }
|
|
1897
1910
|
), h(e.value);
|
|
1898
|
-
},
|
|
1899
|
-
const [o, r] =
|
|
1911
|
+
}, qn = (t, e, n) => {
|
|
1912
|
+
const [o, r] = W($, {
|
|
1900
1913
|
isLoading: !0,
|
|
1901
1914
|
isError: !1,
|
|
1902
1915
|
isSuccess: !1,
|
|
1903
1916
|
status: "loading",
|
|
1904
1917
|
error: void 0,
|
|
1905
1918
|
data: void 0
|
|
1906
|
-
}), s =
|
|
1919
|
+
}), s = A(), i = async (a) => {
|
|
1907
1920
|
try {
|
|
1908
1921
|
r({ type: "loading" });
|
|
1909
|
-
const
|
|
1910
|
-
requestConfig:
|
|
1922
|
+
const u = _(t), p = e ? l(e) : {}, O = n ? l(n) : {}, S = {
|
|
1923
|
+
requestConfig: O.requestConfig ? l(O.requestConfig) : {},
|
|
1911
1924
|
skipTrackingParam: !0
|
|
1912
|
-
}, y = await
|
|
1913
|
-
|
|
1925
|
+
}, y = await a.call(
|
|
1926
|
+
a.url + u,
|
|
1914
1927
|
p,
|
|
1915
|
-
|
|
1928
|
+
S
|
|
1916
1929
|
);
|
|
1917
1930
|
r({ type: "success", data: y });
|
|
1918
|
-
} catch (
|
|
1919
|
-
r({ type: "error", error:
|
|
1931
|
+
} catch (u) {
|
|
1932
|
+
r({ type: "error", error: u });
|
|
1920
1933
|
}
|
|
1921
1934
|
};
|
|
1922
1935
|
return g(
|
|
1923
1936
|
[...b(t, e, n), s],
|
|
1924
1937
|
() => {
|
|
1925
|
-
const { app:
|
|
1926
|
-
!
|
|
1938
|
+
const { app: a } = s.value, u = l(n || {}).enabled;
|
|
1939
|
+
!a || !(u === void 0 || u === !0) || i(a.httpClient);
|
|
1927
1940
|
},
|
|
1928
1941
|
{ immediate: !0 }
|
|
1929
1942
|
), h(o.value);
|
|
1930
1943
|
};
|
|
1931
|
-
class
|
|
1944
|
+
class Ce {
|
|
1932
1945
|
constructor(e, n) {
|
|
1933
|
-
|
|
1934
|
-
|
|
1935
|
-
|
|
1936
|
-
|
|
1946
|
+
k(this, "app", null);
|
|
1947
|
+
k(this, "container", null);
|
|
1948
|
+
k(this, "isDestroyed", !1);
|
|
1949
|
+
k(this, "propsRef", null);
|
|
1937
1950
|
this.componentClass = e, this.contexts = n;
|
|
1938
1951
|
}
|
|
1939
1952
|
/**
|
|
@@ -1948,9 +1961,9 @@ class Se {
|
|
|
1948
1961
|
return;
|
|
1949
1962
|
this.container = e, this.propsRef = j(n);
|
|
1950
1963
|
const o = {
|
|
1951
|
-
setup: () => () =>
|
|
1964
|
+
setup: () => () => se(this.componentClass, this.propsRef.value)
|
|
1952
1965
|
};
|
|
1953
|
-
this.app =
|
|
1966
|
+
this.app = ie(o), this.app.provide(de, this.contexts.sisenseContext), this.app.provide(pe, this.contexts.themeContext), this.app.provide(ye, this.contexts.customWidgetsContext), this.app.mount(e);
|
|
1954
1967
|
}
|
|
1955
1968
|
/**
|
|
1956
1969
|
* Updates the props on the existing Vue component instance.
|
|
@@ -1976,8 +1989,8 @@ class Se {
|
|
|
1976
1989
|
return this.app !== null && !this.isDestroyed;
|
|
1977
1990
|
}
|
|
1978
1991
|
}
|
|
1979
|
-
const
|
|
1980
|
-
const t =
|
|
1992
|
+
const Rn = () => {
|
|
1993
|
+
const t = he(), e = A(), n = H(), o = t;
|
|
1981
1994
|
return {
|
|
1982
1995
|
/**
|
|
1983
1996
|
* Registers a new custom widget.
|
|
@@ -1990,13 +2003,13 @@ const qn = () => {
|
|
|
1990
2003
|
sisenseContext: e,
|
|
1991
2004
|
themeContext: n,
|
|
1992
2005
|
customWidgetsContext: o
|
|
1993
|
-
},
|
|
1994
|
-
adapterFactory:
|
|
2006
|
+
}, a = () => new Ce(s, i), u = (p) => Gt(_t, {
|
|
2007
|
+
adapterFactory: a,
|
|
1995
2008
|
componentProps: p
|
|
1996
2009
|
});
|
|
1997
2010
|
t.value.customWidgetsMap.has(r) || (t.value.customWidgetsMap.set(
|
|
1998
2011
|
r,
|
|
1999
|
-
|
|
2012
|
+
u
|
|
2000
2013
|
), t.value = {
|
|
2001
2014
|
customWidgetsMap: new Map(t.value.customWidgetsMap)
|
|
2002
2015
|
});
|
|
@@ -2019,43 +2032,43 @@ const qn = () => {
|
|
|
2019
2032
|
*/
|
|
2020
2033
|
hasCustomWidget: (r) => t.value.customWidgetsMap.has(r)
|
|
2021
2034
|
};
|
|
2022
|
-
},
|
|
2023
|
-
|
|
2024
|
-
const n = new x(
|
|
2025
|
-
|
|
2026
|
-
]), [o, r] =
|
|
2027
|
-
n.subscribe(({ dashboard:
|
|
2028
|
-
r(
|
|
2035
|
+
}, Wn = (t, e = {}) => {
|
|
2036
|
+
f("useComposedDashboard");
|
|
2037
|
+
const n = new x(Ht, [
|
|
2038
|
+
M()
|
|
2039
|
+
]), [o, r] = T(l(t));
|
|
2040
|
+
n.subscribe(({ dashboard: a }) => {
|
|
2041
|
+
r(a);
|
|
2029
2042
|
}), n.run(l(t), e), g([...b(t)], () => {
|
|
2030
2043
|
n.run(l(t), e);
|
|
2031
|
-
}),
|
|
2044
|
+
}), w(() => {
|
|
2032
2045
|
n.destroy();
|
|
2033
2046
|
});
|
|
2034
|
-
const s =
|
|
2047
|
+
const s = N(n, "setFilters"), i = N(n, "setWidgetsLayout");
|
|
2035
2048
|
return {
|
|
2036
2049
|
dashboard: o,
|
|
2037
2050
|
setFilters: s,
|
|
2038
2051
|
setWidgetsLayout: i
|
|
2039
2052
|
};
|
|
2040
|
-
},
|
|
2041
|
-
|
|
2042
|
-
const n = new x(
|
|
2043
|
-
|
|
2044
|
-
|
|
2053
|
+
}, Tn = (t, e) => {
|
|
2054
|
+
f("useJtdWidget");
|
|
2055
|
+
const n = new x(Vt, [
|
|
2056
|
+
M(),
|
|
2057
|
+
be()
|
|
2045
2058
|
]), o = j(null);
|
|
2046
2059
|
n.subscribe((s) => {
|
|
2047
2060
|
o.value = s;
|
|
2048
2061
|
});
|
|
2049
2062
|
const r = () => {
|
|
2050
|
-
const s =
|
|
2063
|
+
const s = ae(t), i = l(e);
|
|
2051
2064
|
n.run(s, i);
|
|
2052
2065
|
};
|
|
2053
2066
|
return r(), g([...b(t), ...b(e)], () => {
|
|
2054
2067
|
r();
|
|
2055
|
-
}),
|
|
2068
|
+
}), w(() => {
|
|
2056
2069
|
n.destroy();
|
|
2057
2070
|
}), o;
|
|
2058
|
-
},
|
|
2071
|
+
}, fe = c({
|
|
2059
2072
|
props: {
|
|
2060
2073
|
/**
|
|
2061
2074
|
* {@inheritDoc @sisense/sdk-ui!ContextMenuProps.closeContextMenu}
|
|
@@ -2073,8 +2086,8 @@ const qn = () => {
|
|
|
2073
2086
|
*/
|
|
2074
2087
|
position: Object
|
|
2075
2088
|
},
|
|
2076
|
-
setup: (t, { slots: e }) => U(
|
|
2077
|
-
}),
|
|
2089
|
+
setup: (t, { slots: e }) => U(Nt, t, e, [])
|
|
2090
|
+
}), Fe = ({
|
|
2078
2091
|
drilldownPaths: t,
|
|
2079
2092
|
initialDimension: e
|
|
2080
2093
|
}) => {
|
|
@@ -2082,52 +2095,52 @@ const qn = () => {
|
|
|
2082
2095
|
throw new Error(
|
|
2083
2096
|
"Initial dimension has to be specified to use drilldown with custom components"
|
|
2084
2097
|
);
|
|
2085
|
-
const n = j([]), o = j(), r = j([]), s = j([]), i =
|
|
2098
|
+
const n = j([]), o = j(), r = j([]), s = j([]), i = G(() => [
|
|
2086
2099
|
Jt(e),
|
|
2087
2100
|
...n.value.map(({ nextDimension: y }) => y)
|
|
2088
|
-
]),
|
|
2101
|
+
]), a = G(
|
|
2089
2102
|
() => t.value.filter((y) => {
|
|
2090
|
-
if (
|
|
2091
|
-
const
|
|
2103
|
+
if (Oe.isAttribute(y)) {
|
|
2104
|
+
const v = y;
|
|
2092
2105
|
return i.value.every(
|
|
2093
|
-
(q) => !
|
|
2106
|
+
(q) => !J(q, v)
|
|
2094
2107
|
);
|
|
2095
2108
|
}
|
|
2096
|
-
const
|
|
2109
|
+
const D = y;
|
|
2097
2110
|
return i.value.every(
|
|
2098
|
-
(
|
|
2111
|
+
(v, q) => J(v, D.levels[q])
|
|
2099
2112
|
);
|
|
2100
2113
|
})
|
|
2101
|
-
),
|
|
2102
|
-
n.value =
|
|
2114
|
+
), u = (y, F, D) => {
|
|
2115
|
+
n.value = zt(
|
|
2103
2116
|
n.value,
|
|
2104
2117
|
y,
|
|
2105
|
-
|
|
2106
|
-
|
|
2107
|
-
),
|
|
2118
|
+
F,
|
|
2119
|
+
D
|
|
2120
|
+
), S();
|
|
2108
2121
|
}, p = (y) => {
|
|
2109
|
-
n.value = n.value.slice(0, y),
|
|
2110
|
-
}, F = () => {
|
|
2111
|
-
n.value = [], O();
|
|
2122
|
+
n.value = n.value.slice(0, y), S();
|
|
2112
2123
|
}, O = () => {
|
|
2113
|
-
|
|
2124
|
+
n.value = [], S();
|
|
2125
|
+
}, S = () => {
|
|
2126
|
+
const y = (D) => D === "drilldown.breadcrumbsAllSuffix" ? "All" : D, F = Kt(
|
|
2114
2127
|
n.value,
|
|
2115
2128
|
e,
|
|
2116
2129
|
y
|
|
2117
2130
|
);
|
|
2118
|
-
o.value =
|
|
2131
|
+
o.value = F.drilldownDimension, r.value = F.drilldownFilters, s.value = F.drilldownFiltersDisplayValues;
|
|
2119
2132
|
};
|
|
2120
|
-
return
|
|
2133
|
+
return S(), {
|
|
2121
2134
|
drilldownSelections: n,
|
|
2122
|
-
availableDrilldownPaths:
|
|
2135
|
+
availableDrilldownPaths: a,
|
|
2123
2136
|
drilldownDimension: o,
|
|
2124
2137
|
drilldownFilters: r,
|
|
2125
2138
|
drilldownFiltersDisplayValues: s,
|
|
2126
|
-
selectDrilldown:
|
|
2139
|
+
selectDrilldown: u,
|
|
2127
2140
|
sliceDrilldownSelections: p,
|
|
2128
|
-
clearDrilldownSelections:
|
|
2141
|
+
clearDrilldownSelections: O
|
|
2129
2142
|
};
|
|
2130
|
-
},
|
|
2143
|
+
}, De = c({
|
|
2131
2144
|
props: {
|
|
2132
2145
|
/**
|
|
2133
2146
|
* {@inheritDoc @sisense/sdk-ui!DrilldownWidgetProps.config}
|
|
@@ -2163,81 +2176,81 @@ const qn = () => {
|
|
|
2163
2176
|
},
|
|
2164
2177
|
setup: () => {
|
|
2165
2178
|
}
|
|
2166
|
-
}),
|
|
2179
|
+
}), me = { style: { display: "flex", "flex-direction": "column", height: "100%" } }, je = { style: { "flex-grow": "1", "min-wdith": "0", "min-height": "0" } }, En = /* @__PURE__ */ c({
|
|
2167
2180
|
__name: "drilldown-widget",
|
|
2168
|
-
props:
|
|
2181
|
+
props: De.props,
|
|
2169
2182
|
setup(t) {
|
|
2170
2183
|
const e = t, { drilldownPaths: n, initialDimension: o, config: r } = h(e), s = j(null), i = j([]), {
|
|
2171
|
-
drilldownFilters:
|
|
2184
|
+
drilldownFilters: a,
|
|
2172
2185
|
// computed
|
|
2173
|
-
drilldownDimension:
|
|
2186
|
+
drilldownDimension: u,
|
|
2174
2187
|
// computed
|
|
2175
2188
|
drilldownFiltersDisplayValues: p,
|
|
2176
2189
|
// computed
|
|
2177
|
-
availableDrilldownPaths:
|
|
2190
|
+
availableDrilldownPaths: O,
|
|
2178
2191
|
// computed
|
|
2179
|
-
selectDrilldown:
|
|
2192
|
+
selectDrilldown: S,
|
|
2180
2193
|
sliceDrilldownSelections: y,
|
|
2181
|
-
clearDrilldownSelections:
|
|
2182
|
-
} =
|
|
2194
|
+
clearDrilldownSelections: F
|
|
2195
|
+
} = Fe({
|
|
2183
2196
|
drilldownPaths: n,
|
|
2184
2197
|
initialDimension: o.value
|
|
2185
|
-
}),
|
|
2186
|
-
|
|
2187
|
-
},
|
|
2188
|
-
const
|
|
2198
|
+
}), D = (C) => {
|
|
2199
|
+
S(i.value, C);
|
|
2200
|
+
}, v = G(() => {
|
|
2201
|
+
const C = (V) => V === "drilldown.drillMenuItem" ? "Drill" : V, E = Ut(
|
|
2189
2202
|
i.value,
|
|
2190
|
-
|
|
2191
|
-
),
|
|
2192
|
-
|
|
2193
|
-
|
|
2194
|
-
|
|
2195
|
-
|
|
2203
|
+
u.value
|
|
2204
|
+
), R = Xt(
|
|
2205
|
+
O.value,
|
|
2206
|
+
u.value,
|
|
2207
|
+
D,
|
|
2208
|
+
C
|
|
2196
2209
|
);
|
|
2197
|
-
return
|
|
2198
|
-
}), q = (
|
|
2199
|
-
s.value =
|
|
2200
|
-
},
|
|
2201
|
-
i.value =
|
|
2202
|
-
},
|
|
2210
|
+
return R ? [E, R] : [E];
|
|
2211
|
+
}), q = (C) => {
|
|
2212
|
+
s.value = C;
|
|
2213
|
+
}, I = (C) => {
|
|
2214
|
+
i.value = C;
|
|
2215
|
+
}, Q = () => {
|
|
2203
2216
|
s.value = null;
|
|
2204
2217
|
};
|
|
2205
|
-
return (
|
|
2206
|
-
|
|
2207
|
-
contextMenuProps: { position: s.value, itemSections:
|
|
2218
|
+
return (C, E) => (ue(), ce("div", me, [
|
|
2219
|
+
L(C.$slots, "contextMenu", {
|
|
2220
|
+
contextMenuProps: { position: s.value, itemSections: v.value, closeContextMenu: Q }
|
|
2208
2221
|
}, () => [
|
|
2209
|
-
z(
|
|
2222
|
+
z(m(fe), {
|
|
2210
2223
|
position: s.value,
|
|
2211
|
-
itemSections:
|
|
2212
|
-
closeContextMenu:
|
|
2224
|
+
itemSections: v.value,
|
|
2225
|
+
closeContextMenu: Q
|
|
2213
2226
|
}, null, 8, ["position", "itemSections"])
|
|
2214
2227
|
]),
|
|
2215
|
-
|
|
2228
|
+
L(C.$slots, "breadcrumbs", {
|
|
2216
2229
|
drilldownBreadcrumbsProps: {
|
|
2217
|
-
clearDrilldownSelections:
|
|
2218
|
-
sliceDrilldownSelections:
|
|
2219
|
-
drilldownFiltersDisplayValues:
|
|
2220
|
-
drilldownDimension:
|
|
2230
|
+
clearDrilldownSelections: m(F),
|
|
2231
|
+
sliceDrilldownSelections: m(y),
|
|
2232
|
+
drilldownFiltersDisplayValues: m(p),
|
|
2233
|
+
drilldownDimension: m(u)
|
|
2221
2234
|
}
|
|
2222
2235
|
}, () => [
|
|
2223
|
-
z(
|
|
2224
|
-
"clear-drilldown-selections":
|
|
2225
|
-
"slice-drilldown-selections":
|
|
2226
|
-
"filters-display-values":
|
|
2227
|
-
"current-dimension":
|
|
2236
|
+
z(m(Se), {
|
|
2237
|
+
"clear-drilldown-selections": m(F),
|
|
2238
|
+
"slice-drilldown-selections": m(y),
|
|
2239
|
+
"filters-display-values": m(p),
|
|
2240
|
+
"current-dimension": m(u)
|
|
2228
2241
|
}, null, 8, ["clear-drilldown-selections", "slice-drilldown-selections", "filters-display-values", "current-dimension"])
|
|
2229
2242
|
]),
|
|
2230
|
-
|
|
2231
|
-
|
|
2232
|
-
drilldownFilters:
|
|
2233
|
-
drilldownDimension:
|
|
2234
|
-
onDataPointsSelected:
|
|
2243
|
+
le("div", je, [
|
|
2244
|
+
L(C.$slots, "chart", {
|
|
2245
|
+
drilldownFilters: m(a),
|
|
2246
|
+
drilldownDimension: m(u),
|
|
2247
|
+
onDataPointsSelected: I,
|
|
2235
2248
|
onContextMenu: q
|
|
2236
2249
|
})
|
|
2237
2250
|
])
|
|
2238
2251
|
]));
|
|
2239
2252
|
}
|
|
2240
|
-
}),
|
|
2253
|
+
}), Bn = c({
|
|
2241
2254
|
props: {
|
|
2242
2255
|
/**
|
|
2243
2256
|
* {@inheritDoc @sisense/sdk-ui!ChartWidgetProps.bottomSlot}
|
|
@@ -2331,6 +2344,12 @@ const qn = () => {
|
|
|
2331
2344
|
* @category Widget
|
|
2332
2345
|
*/
|
|
2333
2346
|
styleOptions: Object,
|
|
2347
|
+
/**
|
|
2348
|
+
* Configuration for AI-powered widget features such as automated narrative generation
|
|
2349
|
+
* @alpha
|
|
2350
|
+
* @category Widget
|
|
2351
|
+
*/
|
|
2352
|
+
aiOptions: Object,
|
|
2334
2353
|
/**
|
|
2335
2354
|
* {@inheritDoc @sisense/sdk-ui!ChartWidgetProps.title}
|
|
2336
2355
|
*
|
|
@@ -2358,8 +2377,8 @@ const qn = () => {
|
|
|
2358
2377
|
*/
|
|
2359
2378
|
onDataReady: Function
|
|
2360
2379
|
},
|
|
2361
|
-
setup: (t) => d(
|
|
2362
|
-
}),
|
|
2380
|
+
setup: (t) => d(Yt, t)
|
|
2381
|
+
}), kn = c({
|
|
2363
2382
|
props: {
|
|
2364
2383
|
/** @internal */
|
|
2365
2384
|
bottomSlot: Object,
|
|
@@ -2466,8 +2485,8 @@ const qn = () => {
|
|
|
2466
2485
|
*/
|
|
2467
2486
|
onDataReady: Function
|
|
2468
2487
|
},
|
|
2469
|
-
setup: (t) => d(
|
|
2470
|
-
}),
|
|
2488
|
+
setup: (t) => d(Zt, t)
|
|
2489
|
+
}), $n = c({
|
|
2471
2490
|
props: {
|
|
2472
2491
|
/**
|
|
2473
2492
|
* {@inheritDoc @sisense/sdk-ui!PivotTableWidgetProps.dataOptions}
|
|
@@ -2502,6 +2521,12 @@ const qn = () => {
|
|
|
2502
2521
|
* @category Widget
|
|
2503
2522
|
*/
|
|
2504
2523
|
styleOptions: Object,
|
|
2524
|
+
/**
|
|
2525
|
+
* Configuration for AI-powered widget features such as automated narrative generation
|
|
2526
|
+
* @alpha
|
|
2527
|
+
* @category Widget
|
|
2528
|
+
*/
|
|
2529
|
+
aiOptions: Object,
|
|
2505
2530
|
/**
|
|
2506
2531
|
* {@inheritDoc @sisense/sdk-ui!PivotTableWidgetProps.drilldownOptions}
|
|
2507
2532
|
*
|
|
@@ -2561,8 +2586,8 @@ const qn = () => {
|
|
|
2561
2586
|
*/
|
|
2562
2587
|
onHeaderCellFormat: Function
|
|
2563
2588
|
},
|
|
2564
|
-
setup: (t) => d(
|
|
2565
|
-
}),
|
|
2589
|
+
setup: (t) => d(te, t)
|
|
2590
|
+
}), Qn = c({
|
|
2566
2591
|
props: {
|
|
2567
2592
|
/**
|
|
2568
2593
|
* Unique identifier of the widget
|
|
@@ -2624,6 +2649,12 @@ const qn = () => {
|
|
|
2624
2649
|
* @category Widget
|
|
2625
2650
|
*/
|
|
2626
2651
|
styleOptions: Object,
|
|
2652
|
+
/**
|
|
2653
|
+
* Configuration for AI-powered widget features such as automated narrative generation
|
|
2654
|
+
* @alpha
|
|
2655
|
+
* @category Widget
|
|
2656
|
+
*/
|
|
2657
|
+
aiOptions: Object,
|
|
2627
2658
|
/**
|
|
2628
2659
|
* {@inheritDoc @sisense/sdk-ui!ChartWidgetProps.drilldownOptions}
|
|
2629
2660
|
*
|
|
@@ -2687,8 +2718,8 @@ const qn = () => {
|
|
|
2687
2718
|
*/
|
|
2688
2719
|
onDataPointsSelected: Function
|
|
2689
2720
|
},
|
|
2690
|
-
setup: (t) => d(
|
|
2691
|
-
}),
|
|
2721
|
+
setup: (t) => d(ee, t)
|
|
2722
|
+
}), In = c({
|
|
2692
2723
|
props: {
|
|
2693
2724
|
/**
|
|
2694
2725
|
* {@inheritDoc @sisense/sdk-ui!DashboardByIdProps.dashboardOid}
|
|
@@ -2702,8 +2733,8 @@ const qn = () => {
|
|
|
2702
2733
|
*/
|
|
2703
2734
|
config: Object
|
|
2704
2735
|
},
|
|
2705
|
-
setup: (t) => d(
|
|
2706
|
-
}),
|
|
2736
|
+
setup: (t) => d(ne, t)
|
|
2737
|
+
}), Ln = c({
|
|
2707
2738
|
props: {
|
|
2708
2739
|
/**
|
|
2709
2740
|
* {@inheritDoc @sisense/sdk-ui!DashboardProps.title}
|
|
@@ -2741,118 +2772,122 @@ const qn = () => {
|
|
|
2741
2772
|
*/
|
|
2742
2773
|
styleOptions: Object
|
|
2743
2774
|
},
|
|
2744
|
-
setup: (t) => d(
|
|
2775
|
+
setup: (t) => d(re, t)
|
|
2745
2776
|
});
|
|
2746
|
-
function
|
|
2747
|
-
return
|
|
2777
|
+
function ve(t) {
|
|
2778
|
+
return oe.toDashboardProps(t);
|
|
2748
2779
|
}
|
|
2749
|
-
const
|
|
2780
|
+
const Gn = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
2750
2781
|
__proto__: null,
|
|
2751
|
-
toDashboardProps:
|
|
2752
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
2782
|
+
toDashboardProps: ve
|
|
2783
|
+
}, Symbol.toStringTag, { value: "Module" })), Pe = (t, e) => B.replaceFilters(t, e), xe = (t, e) => B.addFilter(t, e), we = (t, e) => B.addFilters(t, e), Ae = (t, e, n) => B.replaceFilter(
|
|
2753
2784
|
t,
|
|
2754
2785
|
e,
|
|
2755
2786
|
n
|
|
2756
|
-
), Me = (t, e) =>
|
|
2787
|
+
), Me = (t, e) => B.removeFilter(t, e), qe = (t, e) => B.removeFilters(t, e), _n = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
2757
2788
|
__proto__: null,
|
|
2758
|
-
addFilter:
|
|
2759
|
-
addFilters:
|
|
2789
|
+
addFilter: xe,
|
|
2790
|
+
addFilters: we,
|
|
2760
2791
|
removeFilter: Me,
|
|
2761
|
-
removeFilters:
|
|
2792
|
+
removeFilters: qe,
|
|
2762
2793
|
replaceFilter: Ae,
|
|
2763
|
-
replaceFilters:
|
|
2764
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
2765
|
-
function We(t) {
|
|
2766
|
-
return v.toChartProps(t);
|
|
2767
|
-
}
|
|
2794
|
+
replaceFilters: Pe
|
|
2795
|
+
}, Symbol.toStringTag, { value: "Module" })), Re = (t) => P.toExecuteQueryParams(t), We = (t) => P.toExecutePivotQueryParams(t);
|
|
2768
2796
|
function Te(t) {
|
|
2769
|
-
return
|
|
2797
|
+
return P.toChartProps(t);
|
|
2770
2798
|
}
|
|
2771
2799
|
function Ee(t) {
|
|
2772
|
-
return
|
|
2800
|
+
return P.toTableProps(t);
|
|
2773
2801
|
}
|
|
2774
2802
|
function Be(t) {
|
|
2775
|
-
return
|
|
2803
|
+
return P.toPivotTableProps(t);
|
|
2776
2804
|
}
|
|
2777
2805
|
function ke(t) {
|
|
2778
|
-
return
|
|
2806
|
+
return P.toChartWidgetProps(t);
|
|
2779
2807
|
}
|
|
2780
2808
|
function $e(t) {
|
|
2781
|
-
return
|
|
2809
|
+
return P.toPivotTableWidgetProps(t);
|
|
2782
2810
|
}
|
|
2783
2811
|
function Qe(t) {
|
|
2784
|
-
return
|
|
2812
|
+
return P.toTextWidgetProps(t);
|
|
2813
|
+
}
|
|
2814
|
+
function Ie(t) {
|
|
2815
|
+
return P.toWidgetProps(t);
|
|
2785
2816
|
}
|
|
2786
|
-
const
|
|
2817
|
+
const Hn = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
2787
2818
|
__proto__: null,
|
|
2788
|
-
toChartProps:
|
|
2789
|
-
toChartWidgetProps:
|
|
2790
|
-
toExecutePivotQueryParams:
|
|
2791
|
-
toExecuteQueryParams:
|
|
2792
|
-
toPivotTableProps:
|
|
2793
|
-
toPivotTableWidgetProps:
|
|
2794
|
-
toTableProps:
|
|
2795
|
-
toTextWidgetProps:
|
|
2796
|
-
toWidgetProps:
|
|
2819
|
+
toChartProps: Te,
|
|
2820
|
+
toChartWidgetProps: ke,
|
|
2821
|
+
toExecutePivotQueryParams: We,
|
|
2822
|
+
toExecuteQueryParams: Re,
|
|
2823
|
+
toPivotTableProps: Be,
|
|
2824
|
+
toPivotTableWidgetProps: $e,
|
|
2825
|
+
toTableProps: Ee,
|
|
2826
|
+
toTextWidgetProps: Qe,
|
|
2827
|
+
toWidgetProps: Ie
|
|
2797
2828
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
2798
2829
|
export {
|
|
2799
|
-
|
|
2800
|
-
|
|
2830
|
+
Ne as AreaChart,
|
|
2831
|
+
pn as AreaRangeChart,
|
|
2801
2832
|
cn as AreamapChart,
|
|
2802
2833
|
Je as BarChart,
|
|
2803
|
-
|
|
2804
|
-
|
|
2805
|
-
|
|
2806
|
-
|
|
2807
|
-
|
|
2808
|
-
|
|
2809
|
-
|
|
2810
|
-
|
|
2811
|
-
|
|
2812
|
-
|
|
2813
|
-
|
|
2814
|
-
|
|
2815
|
-
|
|
2816
|
-
|
|
2817
|
-
|
|
2818
|
-
|
|
2819
|
-
|
|
2820
|
-
|
|
2821
|
-
|
|
2822
|
-
|
|
2823
|
-
|
|
2824
|
-
|
|
2825
|
-
|
|
2826
|
-
|
|
2827
|
-
|
|
2828
|
-
|
|
2829
|
-
|
|
2830
|
-
|
|
2831
|
-
|
|
2832
|
-
|
|
2833
|
-
|
|
2834
|
-
|
|
2835
|
-
|
|
2836
|
-
|
|
2834
|
+
un as BoxplotChart,
|
|
2835
|
+
ze as CalendarHeatmapChart,
|
|
2836
|
+
an as Chart,
|
|
2837
|
+
Bn as ChartWidget,
|
|
2838
|
+
Ke as ColumnChart,
|
|
2839
|
+
fe as ContextMenu,
|
|
2840
|
+
bn as CriteriaFilterTile,
|
|
2841
|
+
tr as CustomWidgetsProvider,
|
|
2842
|
+
Ln as Dashboard,
|
|
2843
|
+
In as DashboardById,
|
|
2844
|
+
yn as DateRangeFilterTile,
|
|
2845
|
+
Se as DrilldownBreadcrumbs,
|
|
2846
|
+
En as DrilldownWidget,
|
|
2847
|
+
On as FilterTile,
|
|
2848
|
+
Sn as FiltersPanel,
|
|
2849
|
+
Ue as FunnelChart,
|
|
2850
|
+
sn as IndicatorChart,
|
|
2851
|
+
Xe as LineChart,
|
|
2852
|
+
hn as MemberFilterTile,
|
|
2853
|
+
Ye as PieChart,
|
|
2854
|
+
en as PivotTable,
|
|
2855
|
+
$n as PivotTableWidget,
|
|
2856
|
+
on as PolarChart,
|
|
2857
|
+
gn as RelativeDateFilterTile,
|
|
2858
|
+
Ze as ScatterChart,
|
|
2859
|
+
ln as ScattermapChart,
|
|
2860
|
+
er as SisenseContextProvider,
|
|
2861
|
+
dn as StreamgraphChart,
|
|
2862
|
+
rn as SunburstChart,
|
|
2863
|
+
tn as Table,
|
|
2864
|
+
nr as ThemeProvider,
|
|
2865
|
+
nn as TreemapChart,
|
|
2866
|
+
Qn as Widget,
|
|
2867
|
+
kn as WidgetById,
|
|
2837
2868
|
Jn as boxWhiskerProcessResult,
|
|
2838
|
-
|
|
2839
|
-
|
|
2840
|
-
|
|
2841
|
-
|
|
2842
|
-
|
|
2843
|
-
|
|
2844
|
-
|
|
2845
|
-
|
|
2846
|
-
|
|
2847
|
-
Fn as
|
|
2848
|
-
|
|
2849
|
-
|
|
2850
|
-
|
|
2851
|
-
|
|
2852
|
-
|
|
2869
|
+
_n as dashboardHelpers,
|
|
2870
|
+
Gn as dashboardModelTranslator,
|
|
2871
|
+
zn as extractDimensionsAndMeasures,
|
|
2872
|
+
Kn as formatDataSet,
|
|
2873
|
+
Un as formatDate,
|
|
2874
|
+
Xn as formatNumber,
|
|
2875
|
+
Yn as getDefaultDateFormat,
|
|
2876
|
+
Wn as useComposedDashboard,
|
|
2877
|
+
Rn as useCustomWidgets,
|
|
2878
|
+
Fn as useExecuteCsvQuery,
|
|
2879
|
+
mn as useExecuteCustomWidgetQuery,
|
|
2880
|
+
Dn as useExecutePivotQuery,
|
|
2881
|
+
Cn as useExecuteQuery,
|
|
2882
|
+
fn as useExecuteQueryByWidgetId,
|
|
2883
|
+
qn as useFetch,
|
|
2884
|
+
Pn as useGetDashboardModel,
|
|
2885
|
+
xn as useGetDashboardModels,
|
|
2886
|
+
vn as useGetDataSourceDimensions,
|
|
2887
|
+
jn as useGetFilterMembers,
|
|
2853
2888
|
Mn as useGetHierarchyModels,
|
|
2854
|
-
|
|
2889
|
+
wn as useGetSharedFormula,
|
|
2855
2890
|
An as useGetWidgetModel,
|
|
2856
|
-
|
|
2857
|
-
|
|
2891
|
+
Tn as useJtdWidget,
|
|
2892
|
+
Hn as widgetModelTranslator
|
|
2858
2893
|
};
|