@sisense/sdk-ui 1.7.0 → 1.7.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/ai.js
CHANGED
|
@@ -36,7 +36,7 @@ var z = (s, e, t) => new Promise((n, r) => {
|
|
|
36
36
|
}, o = (l) => l.done ? n(l.value) : Promise.resolve(l.value).then(i, a);
|
|
37
37
|
o((t = t.apply(s, e)).next());
|
|
38
38
|
});
|
|
39
|
-
import { J as mr, I as yr, K as Fe, c0 as gr, c1 as br, R as ke, M as de, c2 as Fs, X as Cr, c3 as Sr, N as vr, c4 as kr, P as xt, G as O, S as wr, c5 as Lr, c6 as Or, c7 as Nr, c8 as qr, c9 as Xs, ca as Tr, cb as Xe, cc as Kr, cd as Er, aH as jr, as as xr, aI as Mr, ce as Ir, aB as Pr, cf as Dr, bS as Te, aq as Qs, cg as Wr, ch as es, bn as zr, b5 as Ur, ci as Rr, b9 as Hr, a5 as Mt, cj as Yr, q as qs, az as Ts, aA as Ks, af as Gr, at as Zs, T as Es, ck as Jr, cl as Br, cm as Vr, cn as Fr } from "./useQuery-
|
|
39
|
+
import { J as mr, I as yr, K as Fe, c0 as gr, c1 as br, R as ke, M as de, c2 as Fs, X as Cr, c3 as Sr, N as vr, c4 as kr, P as xt, G as O, S as wr, c5 as Lr, c6 as Or, c7 as Nr, c8 as qr, c9 as Xs, ca as Tr, cb as Xe, cc as Kr, cd as Er, aH as jr, as as xr, aI as Mr, ce as Ir, aB as Pr, cf as Dr, bS as Te, aq as Qs, cg as Wr, ch as es, bn as zr, b5 as Ur, ci as Rr, b9 as Hr, a5 as Mt, cj as Yr, q as qs, az as Ts, aA as Ks, af as Gr, at as Zs, T as Es, ck as Jr, cl as Br, cm as Vr, cn as Fr } from "./useQuery-a7ee8c12.js";
|
|
40
40
|
import { jsx as u, jsxs as w, Fragment as $ } from "react/jsx-runtime";
|
|
41
41
|
import * as ae from "react";
|
|
42
42
|
import { createContext as At, useContext as ts, useMemo as fe, useEffect as Qe, useCallback as ee, useState as R, useRef as Ye, useLayoutEffect as ss, Component as Xr, isValidElement as Qr, createElement as Jt, memo as Zr, forwardRef as $r } from "react";
|
|
@@ -46,6 +46,19 @@ export type AppConfig = {
|
|
|
46
46
|
* @default 20000
|
|
47
47
|
*/
|
|
48
48
|
queryLimit?: number;
|
|
49
|
+
/**
|
|
50
|
+
* Accessibility configuration
|
|
51
|
+
*
|
|
52
|
+
* This feature is in alpha
|
|
53
|
+
*/
|
|
54
|
+
accessibilityConfig?: {
|
|
55
|
+
/**
|
|
56
|
+
* Whether to enable accessibility features
|
|
57
|
+
*
|
|
58
|
+
* If not specified, the default value is `false`
|
|
59
|
+
*/
|
|
60
|
+
enabled?: boolean;
|
|
61
|
+
};
|
|
49
62
|
};
|
|
50
63
|
/**
|
|
51
64
|
* Stands for a Sisense Client Application which connects to a Sisense Environment
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import { HighchartsOptionsInternal } from './chart-options-service';
|
|
2
2
|
export declare const DEFAULT_ANIMATION_DURATION_MS_INIT = 600;
|
|
3
3
|
export declare const DEFAULT_ANIMATION_DURATION_MS_UPDATE = 300;
|
|
4
|
-
export declare const applyCommonHighchartsOptions: (chartOptions: HighchartsOptionsInternal) => HighchartsOptionsInternal;
|
|
4
|
+
export declare const applyCommonHighchartsOptions: (chartOptions: HighchartsOptionsInternal, accessibilityEnabled: boolean) => HighchartsOptionsInternal;
|
package/dist/index.js
CHANGED
|
@@ -36,8 +36,8 @@ var Je = (t, n, a) => new Promise((r, e) => {
|
|
|
36
36
|
}, s = (c) => c.done ? r(c.value) : Promise.resolve(c.value).then(o, i);
|
|
37
37
|
s((a = a.apply(t, n)).next());
|
|
38
38
|
});
|
|
39
|
-
import { i as ks, A as Ds, g as xs, r as P, t as R, a as ee, b as ir, c as pt, _ as sr, s as Ht, e as Qo, d as Cs, f as N, h as Ts, j as O, m as _s, k as Ss, l as Es, n as $e, o as Ms, p as Os, q as Ns, u as Ps, v as As, w as Rs, x as Fs, y as Is, D as Ys, z as zo, T as xe, B as Ls, C as $s, E as vn, F as Bs, G as I, H as Hs, I as Ko, J as Vo, K as bt, L as Ws, M as ut, N as Go, O as Us, P as Xo, Q as Jo, R as $t, S as Zo, U as Na, V as qs, W as js, X as Qs, Y as zs, Z as Ce, $ as Ks, a0 as ei, a1 as Pa, a2 as Vs, a3 as Gs, a4 as Aa, a5 as Ir, a6 as An, a7 as Xs, a8 as Ra, a9 as Js, aa as Zs, ab as mt, ac as ec, ad as oa, ae as tc, af as Fe, ag as ti, ah as ri, ai as rc, aj as nc, ak as ac, al as oc, am as ic, an as sc, ao as cc, ap as rn, aq as wt, ar as At, as as Ve, at as he, au as ot, av as Rn, aw as Yr, ax as lc, ay as ni, az as uc, aA as dc, aB as Wt, aC as pc, aD as fc, aE as ia, aF as hc, aG as mc, aH as gc, aI as vc, aJ as Fn, aK as In, aL as ai, aM as Yn, aN as yc, aO as bc, aP as wc, aQ as kc, aR as Dc, aS as qe, aT as He, aU as xc, aV as Cc, aW as Tc, aX as sa, aY as _c, aZ as Sc, a_ as oi, a$ as Ec, b0 as Fa, b1 as Ia, b2 as Ya, b3 as Mc, b4 as Oc, b5 as Nc, b6 as Ne, b7 as kt, b8 as Ut, b9 as Pc, ba as Ac, bb as Rc, bc as Fc, bd as Ic, be as Yc, bf as ii, bg as Lc, bh as gt, bi as gr, bj as vr, bk as $c, bl as Ft, bm as cr, bn as si, bo as Bc, bp as Hc, bq as Wc, br as Uc, bs as Lr, bt as pr, bu as qc, bv as jc, bw as B, bx as it, by as La, bz as ht, bA as $a, bB as Ba, bC as Qc, bD as zc, bE as Kc, bF as Vc, bG as Ha, bH as Gc, bI as Xc, bJ as Jc, bK as Zc, bL as el, bM as tl, bN as rl, bO as nl, bP as al, bQ as ol, bR as il, bS as sl } from "./useQuery-
|
|
40
|
-
import { bW as Hg, b_ as Wg, bU as Ug, bT as qg, bZ as jg, bX as Qg, b$ as zg, bY as Kg, bV as Vg } from "./useQuery-
|
|
39
|
+
import { i as ks, A as Ds, g as xs, r as P, t as R, a as ee, b as ir, c as pt, _ as sr, s as Ht, e as Qo, d as Cs, f as N, h as Ts, j as O, m as _s, k as Ss, l as Es, n as $e, o as Ms, p as Os, q as Ns, u as Ps, v as As, w as Rs, x as Fs, y as Is, D as Ys, z as zo, T as xe, B as Ls, C as $s, E as vn, F as Bs, G as I, H as Hs, I as Ko, J as Vo, K as bt, L as Ws, M as ut, N as Go, O as Us, P as Xo, Q as Jo, R as $t, S as Zo, U as Na, V as qs, W as js, X as Qs, Y as zs, Z as Ce, $ as Ks, a0 as ei, a1 as Pa, a2 as Vs, a3 as Gs, a4 as Aa, a5 as Ir, a6 as An, a7 as Xs, a8 as Ra, a9 as Js, aa as Zs, ab as mt, ac as ec, ad as oa, ae as tc, af as Fe, ag as ti, ah as ri, ai as rc, aj as nc, ak as ac, al as oc, am as ic, an as sc, ao as cc, ap as rn, aq as wt, ar as At, as as Ve, at as he, au as ot, av as Rn, aw as Yr, ax as lc, ay as ni, az as uc, aA as dc, aB as Wt, aC as pc, aD as fc, aE as ia, aF as hc, aG as mc, aH as gc, aI as vc, aJ as Fn, aK as In, aL as ai, aM as Yn, aN as yc, aO as bc, aP as wc, aQ as kc, aR as Dc, aS as qe, aT as He, aU as xc, aV as Cc, aW as Tc, aX as sa, aY as _c, aZ as Sc, a_ as oi, a$ as Ec, b0 as Fa, b1 as Ia, b2 as Ya, b3 as Mc, b4 as Oc, b5 as Nc, b6 as Ne, b7 as kt, b8 as Ut, b9 as Pc, ba as Ac, bb as Rc, bc as Fc, bd as Ic, be as Yc, bf as ii, bg as Lc, bh as gt, bi as gr, bj as vr, bk as $c, bl as Ft, bm as cr, bn as si, bo as Bc, bp as Hc, bq as Wc, br as Uc, bs as Lr, bt as pr, bu as qc, bv as jc, bw as B, bx as it, by as La, bz as ht, bA as $a, bB as Ba, bC as Qc, bD as zc, bE as Kc, bF as Vc, bG as Ha, bH as Gc, bI as Xc, bJ as Jc, bK as Zc, bL as el, bM as tl, bN as rl, bO as nl, bP as al, bQ as ol, bR as il, bS as sl } from "./useQuery-a7ee8c12.js";
|
|
40
|
+
import { bW as Hg, b_ as Wg, bU as Ug, bT as qg, bZ as jg, bX as Qg, b$ as zg, bY as Kg, bV as Vg } from "./useQuery-a7ee8c12.js";
|
|
41
41
|
import { jsx as b, jsxs as oe, Fragment as zt } from "react/jsx-runtime";
|
|
42
42
|
import * as j from "react";
|
|
43
43
|
import w, { useState as X, useEffect as Te, useReducer as Dt, useMemo as Re, useRef as rt, useCallback as Ue, forwardRef as cl, createRef as ci, createElement as ll, Component as ul } from "react";
|
|
@@ -3911,7 +3911,10 @@ const Ed = 2e4, Md = { enabled: !0, delay: 500 }, Od = {
|
|
|
3911
3911
|
queryCacheConfig: {
|
|
3912
3912
|
enabled: !1
|
|
3913
3913
|
},
|
|
3914
|
-
queryLimit: Ed
|
|
3914
|
+
queryLimit: Ed,
|
|
3915
|
+
accessibilityConfig: {
|
|
3916
|
+
enabled: !1
|
|
3917
|
+
}
|
|
3915
3918
|
};
|
|
3916
3919
|
function Nd(t, n, a) {
|
|
3917
3920
|
return Je(this, null, function* () {
|
|
@@ -3972,7 +3975,7 @@ class Ad {
|
|
|
3972
3975
|
}), this.httpClient = new ql(
|
|
3973
3976
|
n,
|
|
3974
3977
|
a,
|
|
3975
|
-
"sdk-ui-1.7.
|
|
3978
|
+
"sdk-ui-1.7.1"
|
|
3976
3979
|
), this.pivotClient = new Is(this.httpClient), this.queryClient = new Ys(this.httpClient, this.pivotClient), this.queryCache = {
|
|
3977
3980
|
clear: zo
|
|
3978
3981
|
}, r !== void 0 && (this.defaultDataSource = r);
|
|
@@ -91559,7 +91559,8 @@ const zQe = (e, t) => ({
|
|
|
91559
91559
|
decimals: !1,
|
|
91560
91560
|
value: !1
|
|
91561
91561
|
}
|
|
91562
|
-
}, HQe = () => tc(WQe), $Qe = 600, UQe = 300, VQe = (e) => Or(e, {
|
|
91562
|
+
}, HQe = () => tc(WQe), $Qe = 600, UQe = 300, VQe = (e, t) => Or(e, {
|
|
91563
|
+
accessibility: { enabled: t },
|
|
91563
91564
|
chart: { animation: { duration: UQe } },
|
|
91564
91565
|
plotOptions: {
|
|
91565
91566
|
series: { animation: { duration: $Qe } }
|
|
@@ -91760,6 +91761,7 @@ const net = cle(
|
|
|
91760
91761
|
(_, y) => dK(_, y, c == null ? void 0 : c.settings.locale, c == null ? void 0 : c.settings.dateConfig),
|
|
91761
91762
|
[]
|
|
91762
91763
|
), H = pi(() => {
|
|
91764
|
+
var W;
|
|
91763
91765
|
const { options: _, alerts: y } = FQe(
|
|
91764
91766
|
t,
|
|
91765
91767
|
e,
|
|
@@ -91770,19 +91772,22 @@ const net = cle(
|
|
|
91770
91772
|
l
|
|
91771
91773
|
);
|
|
91772
91774
|
R.push(...y);
|
|
91773
|
-
const w =
|
|
91774
|
-
|
|
91775
|
+
const w = ((W = c == null ? void 0 : c.settings.accessibilityConfig) == null ? void 0 : W.enabled) || !1, U = VQe(
|
|
91776
|
+
_,
|
|
91777
|
+
w
|
|
91778
|
+
), Y = pKe(
|
|
91779
|
+
U,
|
|
91775
91780
|
{
|
|
91776
91781
|
onDataPointClick: o,
|
|
91777
91782
|
onDataPointContextMenu: a,
|
|
91778
91783
|
onDataPointsSelected: s
|
|
91779
91784
|
}
|
|
91780
|
-
),
|
|
91781
|
-
|
|
91785
|
+
), X = m9e(
|
|
91786
|
+
Y,
|
|
91782
91787
|
r
|
|
91783
91788
|
);
|
|
91784
91789
|
return u(
|
|
91785
|
-
|
|
91790
|
+
X
|
|
91786
91791
|
);
|
|
91787
91792
|
}, [
|
|
91788
91793
|
e,
|
|
@@ -91868,7 +91873,7 @@ const m9 = "composesdk", B_ = (e, t, n, i = !1) => oet(void 0, void 0, void 0, f
|
|
|
91868
91873
|
if (n != null && n.httpClient && !o.current && !r) {
|
|
91869
91874
|
const a = {
|
|
91870
91875
|
packageName: i.packageName,
|
|
91871
|
-
packageVersion: "1.7.
|
|
91876
|
+
packageVersion: "1.7.1",
|
|
91872
91877
|
componentName: e,
|
|
91873
91878
|
attributesUsed: Object.entries(t).filter(([, s]) => !!s).map(([s]) => s).join(", ")
|
|
91874
91879
|
};
|
|
@@ -91895,7 +91900,7 @@ class KJ extends Ql {
|
|
|
91895
91900
|
sendErrorTracking(n, i) {
|
|
91896
91901
|
set(
|
|
91897
91902
|
{
|
|
91898
|
-
packageVersion: "1.7.
|
|
91903
|
+
packageVersion: "1.7.1",
|
|
91899
91904
|
component: this.componentName,
|
|
91900
91905
|
error: n
|
|
91901
91906
|
},
|
|
@@ -119367,7 +119372,7 @@ const yG = (e) => e % 2 === 1, bG = ({
|
|
|
119367
119372
|
return;
|
|
119368
119373
|
B_(cne, {
|
|
119369
119374
|
packageName: t,
|
|
119370
|
-
packageVersion: "1.7.
|
|
119375
|
+
packageVersion: "1.7.1",
|
|
119371
119376
|
hookName: e
|
|
119372
119377
|
}, n.httpClient).catch((o) => console.warn("An error occurred when sending the sdkHookInit event", o)).finally(i);
|
|
119373
119378
|
});
|
|
@@ -119377,7 +119382,7 @@ function B0t(e) {
|
|
|
119377
119382
|
if (t != null && t.httpClient && !i.current) {
|
|
119378
119383
|
const r = {
|
|
119379
119384
|
packageName: n.packageName,
|
|
119380
|
-
packageVersion: "1.7.
|
|
119385
|
+
packageVersion: "1.7.1",
|
|
119381
119386
|
hookName: e
|
|
119382
119387
|
};
|
|
119383
119388
|
B_(cne, r, t.httpClient, !n.enabled).catch((o) => console.warn("An error occurred when sending the sdkHookInit event", o)).finally(() => i.current = !0);
|
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
|
"exports": {
|
|
17
17
|
".": {
|
|
@@ -39,12 +39,12 @@
|
|
|
39
39
|
"@emotion/react": "^11.10.5",
|
|
40
40
|
"@emotion/styled": "^11.10.5",
|
|
41
41
|
"@mui/material": "^5.11.6",
|
|
42
|
-
"@sisense/sdk-common": "^1.7.
|
|
43
|
-
"@sisense/sdk-data": "^1.7.
|
|
44
|
-
"@sisense/sdk-pivot-client": "^1.7.
|
|
45
|
-
"@sisense/sdk-query-client": "^1.7.
|
|
46
|
-
"@sisense/sdk-rest-client": "^1.7.
|
|
47
|
-
"@sisense/sdk-tracking": "^1.7.
|
|
42
|
+
"@sisense/sdk-common": "^1.7.1",
|
|
43
|
+
"@sisense/sdk-data": "^1.7.1",
|
|
44
|
+
"@sisense/sdk-pivot-client": "^1.7.1",
|
|
45
|
+
"@sisense/sdk-query-client": "^1.7.1",
|
|
46
|
+
"@sisense/sdk-rest-client": "^1.7.1",
|
|
47
|
+
"@sisense/sdk-tracking": "^1.7.1",
|
|
48
48
|
"@sisense/sisense-charts": "5.1.0-alpha-831b13b4.0",
|
|
49
49
|
"@tanstack/react-query": "4.36.1",
|
|
50
50
|
"classnames": "^2.3.2",
|