@sisense/sdk-ui-vue 1.7.0 → 1.7.1
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/index.js +14 -10
- package/package.json +2 -2
package/dist/index.js
CHANGED
@@ -71210,7 +71210,7 @@ const ndt = (e, t, n) => [{ type: e.type, startOnTick: !1, endOnTick: !(e.max ||
|
|
71210
71210
|
default:
|
71211
71211
|
throw new Error("Unexpected chart type");
|
71212
71212
|
}
|
71213
|
-
}, Tdt = { legend: { enabled: !0, position: "bottom" }, navigator: { enabled: !0 }, markers: { enabled: !1, fill: "filled", size: "small" }, seriesLabels: { enabled: !1, rotation: 0 }, xAxis: { enabled: !0, gridLines: !1, isIntervalEnabled: !1, labels: { enabled: !0 }, logarithmic: !1, title: { enabled: !1, text: "X Axis title" } }, yAxis: { enabled: !0, gridLines: !0, isIntervalEnabled: !1, labels: { enabled: !0 }, logarithmic: !1, title: { enabled: !1, text: "Y Axis title" } }, y2Axis: { enabled: !0, gridLines: !0, isIntervalEnabled: !1, labels: { enabled: !0 }, logarithmic: !1, title: { enabled: !1, text: "Y2 Axis title" } }, convolution: { enabled: !1, selectedConvolutionType: "byPercentage", minimalIndependentSlicePercentage: 3, independentSlicesCount: 7 }, labels: { categories: !0, enabled: !0, percent: !0, decimals: !1, value: !1 } }, Adt = () => Ph(Tdt), Edt = 600, Odt = 300, Pdt = (e) => la(e, { chart: { animation: { duration: Odt } }, plotOptions: { series: { animation: { duration: Edt } } }, boost: { useGPUTranslations: !0, usePreAllocated: !0 } }), Ddt = "_alert_box_10ttx_1", Ldt = "_content_10ttx_8", Ndt = "_alert_10ttx_1", s4 = { alert_box: Ddt, content: Ldt, alert: Ndt }, Idt = ({ alerts: e = [] }) => /* @__PURE__ */ we("div", { className: s4.alert_box, children: /* @__PURE__ */ we("div", {
|
71213
|
+
}, Tdt = { legend: { enabled: !0, position: "bottom" }, navigator: { enabled: !0 }, markers: { enabled: !1, fill: "filled", size: "small" }, seriesLabels: { enabled: !1, rotation: 0 }, xAxis: { enabled: !0, gridLines: !1, isIntervalEnabled: !1, labels: { enabled: !0 }, logarithmic: !1, title: { enabled: !1, text: "X Axis title" } }, yAxis: { enabled: !0, gridLines: !0, isIntervalEnabled: !1, labels: { enabled: !0 }, logarithmic: !1, title: { enabled: !1, text: "Y Axis title" } }, y2Axis: { enabled: !0, gridLines: !0, isIntervalEnabled: !1, labels: { enabled: !0 }, logarithmic: !1, title: { enabled: !1, text: "Y2 Axis title" } }, convolution: { enabled: !1, selectedConvolutionType: "byPercentage", minimalIndependentSlicePercentage: 3, independentSlicesCount: 7 }, labels: { categories: !0, enabled: !0, percent: !0, decimals: !1, value: !1 } }, Adt = () => Ph(Tdt), Edt = 600, Odt = 300, Pdt = (e, t) => la(e, { accessibility: { enabled: t }, chart: { animation: { duration: Odt } }, plotOptions: { series: { animation: { duration: Edt } } }, boost: { useGPUTranslations: !0, usePreAllocated: !0 } }), Ddt = "_alert_box_10ttx_1", Ldt = "_content_10ttx_8", Ndt = "_alert_10ttx_1", s4 = { alert_box: Ddt, content: Ldt, alert: Ndt }, Idt = ({ alerts: e = [] }) => /* @__PURE__ */ we("div", { className: s4.alert_box, children: /* @__PURE__ */ we("div", {
|
71214
71214
|
className: s4.content,
|
71215
71215
|
// prevents alert duplication
|
71216
71216
|
children: [...new Set(e)].map((t, n) => /* @__PURE__ */ we("div", { className: s4.alert, children: t }, `alert-${n}`))
|
@@ -71367,10 +71367,11 @@ const Wdt = qw(
|
|
71367
71367
|
(e, t) => zdt(e, t, (n, r) => ZC(n) && ZC(r) ? n.toString() === r.toString() : void 0)
|
71368
71368
|
), Udt = (e) => e, Hdt = ({ chartType: e, chartData: t, chartDataOptions: n, chartDesignOptions: r, themeSettings: i, onDataPointClick: o, onDataPointContextMenu: a, onDataPointsSelected: s, onBeforeRender: l = Udt }) => {
|
71369
71369
|
const { app: c } = ha(), { t: p } = Eh(), S = [], u = un((y, v) => dA(y, v, c == null ? void 0 : c.settings.locale, c == null ? void 0 : c.settings.dateConfig), []), W = vn(() => {
|
71370
|
-
|
71371
|
-
|
71372
|
-
|
71373
|
-
|
71370
|
+
var y;
|
71371
|
+
const { options: v, alerts: w } = kdt(t, e, r, n, p, i, u);
|
71372
|
+
S.push(...w);
|
71373
|
+
const V = ((y = c == null ? void 0 : c.settings.accessibilityConfig) == null ? void 0 : y.enabled) || !1, G = Pdt(v, V), X = Klt(G, { onDataPointClick: o, onDataPointContextMenu: a, onDataPointsSelected: s }), Y = stt(X, i);
|
71374
|
+
return l(Y);
|
71374
71375
|
}, [e, t, n, r, i, o, a, l, p]);
|
71375
71376
|
return W && /* @__PURE__ */ we("div", { "aria-label": "chart-root", style: { display: "flex", justifyContent: "center", height: "100%", width: "100%" }, children: [!!S.length && /* @__PURE__ */ we(Idt, { alerts: S }), /* @__PURE__ */ we(Wdt, { options: W })] });
|
71376
71377
|
};
|
@@ -71423,7 +71424,7 @@ const zte = "composesdk", z9 = (e, t, n, r = !1) => Vdt(void 0, void 0, void 0,
|
|
71423
71424
|
const { app: n, tracking: r } = ha(), i = _r($pe), o = ut(!1);
|
71424
71425
|
Ct(() => {
|
71425
71426
|
if (n != null && n.httpClient && !o.current && !i) {
|
71426
|
-
const a = { packageName: r.packageName, packageVersion: "1.7.
|
71427
|
+
const a = { packageName: r.packageName, packageVersion: "1.7.1", componentName: e, attributesUsed: Object.entries(t).filter(([, s]) => !!s).map(([s]) => s).join(", ") };
|
71427
71428
|
z9($dt, a, n.httpClient, !r.enabled).catch((s) => console.warn("An error occurred when sending the sdkComponentInit event", s)).finally(() => o.current = !0);
|
71428
71429
|
}
|
71429
71430
|
}, [e, t, n, r, i]);
|
@@ -71440,7 +71441,7 @@ class Xpe extends Ki {
|
|
71440
71441
|
throw this.context.tracking.enabled && (this.httpClient ? this.sendErrorTracking(t, this.httpClient) : this.postponedErrors.push(t)), t;
|
71441
71442
|
}
|
71442
71443
|
sendErrorTracking(t, n) {
|
71443
|
-
Gdt({ packageVersion: "1.7.
|
71444
|
+
Gdt({ packageVersion: "1.7.1", component: this.componentName, error: t }, n).catch((r) => console.log("Failed to send tracking error event: ", r));
|
71444
71445
|
}
|
71445
71446
|
render() {
|
71446
71447
|
return this.httpClient && this.postponedErrors.length > 0 && this.postponedErrors.forEach((t) => this.sendErrorTracking(t, this.httpClient)), this.postponedErrors = [], this.props.children;
|
@@ -88636,7 +88637,7 @@ const Ure = (e) => e % 2 === 1, Hre = ({ colIndex: e = 0, rowIndex: t = 0, theme
|
|
88636
88637
|
const [o, a] = _t(0), { topSlot: s, bottomSlot: l, title: c, description: p, styleOptions: S } = e, { themeSettings: u } = jo(), W = W9("table", { hasHeader: !((t = S == null ? void 0 : S.header) != null && t.hidden) }), y = e.styleOptions || {}, { width: v, height: w } = y, V = wa(y, ["width", "height"]);
|
88637
88638
|
return e.dataOptions ? /* @__PURE__ */ we(o0, { defaultSize: W, size: { width: v, height: w }, children: /* @__PURE__ */ we("div", { className: "csdk-w-full csdk-h-full csdk-overflow-hidden", children: /* @__PURE__ */ we("div", { className: "csdk-h-full", style: { padding: rE[(S == null ? void 0 : S.spaceAround) || "None"] }, children: /* @__PURE__ */ we("div", { className: "csdk-h-full csdk-overflow-hidden", style: { borderWidth: S != null && S.border ? "1px" : 0, borderColor: (S == null ? void 0 : S.borderColor) || u.chart.textColor, borderRadius: S != null && S.cornerRadius ? nE[S.cornerRadius] : 0, boxShadow: DU(S), display: "flex", flexDirection: "column" }, children: [!((n = S == null ? void 0 : S.header) != null && n.hidden) && /* @__PURE__ */ we(PU, { title: c, description: p, dataSetName: e.dataSource ? Bp(e.dataSource) : void 0, styleOptions: S == null ? void 0 : S.header, onRefresh: () => a(o + 1) }), s, /* @__PURE__ */ we(Sw, { theme: { chart: { backgroundColor: (S == null ? void 0 : S.backgroundColor) || ((r = u.chart) == null ? void 0 : r.backgroundColor) } }, children: /* @__PURE__ */ we("div", { style: { flexGrow: 1, backgroundColor: (S == null ? void 0 : S.backgroundColor) || ((i = u.chart) == null ? void 0 : i.backgroundColor) }, children: /* @__PURE__ */ we(cye, { dataSet: e.dataSource, dataOptions: e.dataOptions, styleOptions: V, filters: e.filters, refreshCounter: o }) }) }), l] }) }) }) }) : null;
|
88638
88639
|
}), aAt = "sdkHookInit", sAt = (e, t, n, r) => ds(void 0, null, function* () {
|
88639
|
-
n && z9(aAt, { packageName: t, packageVersion: "1.7.
|
88640
|
+
n && z9(aAt, { packageName: t, packageVersion: "1.7.1", hookName: e }, n.httpClient).catch((i) => console.warn("An error occurred when sending the sdkHookInit event", i)).finally(r);
|
88640
88641
|
});
|
88641
88642
|
class pE {
|
88642
88643
|
constructor() {
|
@@ -93577,7 +93578,10 @@ const $Ot = 2e4, XOt = {
|
|
93577
93578
|
queryCacheConfig: {
|
93578
93579
|
enabled: !1
|
93579
93580
|
},
|
93580
|
-
queryLimit: $Ot
|
93581
|
+
queryLimit: $Ot,
|
93582
|
+
accessibilityConfig: {
|
93583
|
+
enabled: !1
|
93584
|
+
}
|
93581
93585
|
};
|
93582
93586
|
function ZOt(e, t, n) {
|
93583
93587
|
return vd(this, null, function* () {
|
@@ -93610,7 +93614,7 @@ class JOt {
|
|
93610
93614
|
constructor(t, n, r) {
|
93611
93615
|
Eo(this, "httpClient"), Eo(this, "pivotClient"), Eo(this, "queryClient"), Eo(this, "defaultDataSource"), Eo(this, "settings"), Eo(this, "queryCache"), window.addEventListener("unhandledrejection", (i) => {
|
93612
93616
|
i.reason instanceof Error ? console.error(i.reason.message) : console.error(i.reason);
|
93613
|
-
}), this.httpClient = new cEt(t, n, "sdk-ui-1.7.
|
93617
|
+
}), this.httpClient = new cEt(t, n, "sdk-ui-1.7.1"), this.pivotClient = new Fde(this.httpClient), this.queryClient = new KYe(this.httpClient, this.pivotClient), this.queryCache = {
|
93614
93618
|
clear: ihe
|
93615
93619
|
}, r !== void 0 && (this.defaultDataSource = r);
|
93616
93620
|
}
|
package/package.json
CHANGED
@@ -11,7 +11,7 @@
|
|
11
11
|
"Sisense",
|
12
12
|
"Compose SDK"
|
13
13
|
],
|
14
|
-
"version": "1.7.
|
14
|
+
"version": "1.7.1",
|
15
15
|
"type": "module",
|
16
16
|
"main": "./dist/index.js",
|
17
17
|
"module": "./dist/index.js",
|
@@ -34,7 +34,7 @@
|
|
34
34
|
"format:check": "prettier --check ."
|
35
35
|
},
|
36
36
|
"dependencies": {
|
37
|
-
"@sisense/sdk-ui-preact": "^1.7.
|
37
|
+
"@sisense/sdk-ui-preact": "^1.7.1",
|
38
38
|
"deepmerge": "^4.3.1",
|
39
39
|
"lodash": "^4.17.21",
|
40
40
|
"vue": "^3.3.2"
|