@devtable/dashboard 7.4.0 → 7.5.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/dashboard.es.js
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
var gm = Object.defineProperty;
|
|
2
2
|
var hm = (e, t, n) => t in e ? gm(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n;
|
|
3
3
|
var he = (e, t, n) => (hm(e, typeof t != "symbol" ? t + "" : t, n), n);
|
|
4
|
-
import { Box as Te, Text as L, Button as le, Checkbox as yn, Group as P, MultiSelect as Qo, Select as Oe, TextInput as ce, createStyles as Zo, Stack as j, Tooltip as vr, Badge as mm, CloseButton as vm, JsonInput as Ld, ActionIcon as Ce, AppShell as Fl, Divider as Pe, LoadingOverlay as Jo, Table as zl, Tabs as k, Modal as
|
|
4
|
+
import { Box as Te, Text as L, Button as le, Checkbox as yn, Group as P, MultiSelect as Qo, Select as Oe, TextInput as ce, createStyles as Zo, Stack as j, Tooltip as vr, Badge as mm, CloseButton as vm, JsonInput as Ld, ActionIcon as Ce, AppShell as Fl, Divider as Pe, LoadingOverlay as Jo, Table as zl, Tabs as k, Modal as Xt, Collapse as jl, Overlay as ei, Center as ea, Flex as ti, NumberInput as It, SimpleGrid as eo, Menu as fn, Paper as Hl, Code as vc, Switch as pn, useMantineTheme as Vd, ColorInput as ym, ColorSwatch as Za, Slider as bm, CheckIcon as wm, MANTINE_SIZES as xm, SegmentedControl as Sm, Textarea as Cm, Accordion as kr, Popover as Oa, Alert as _m } from "@mantine/core";
|
|
5
5
|
import { useModals as Em, ModalsProvider as Fd } from "@mantine/modals";
|
|
6
6
|
import { useCreation as In, usePrevious as Tm, useRequest as ni, useBoolean as On, useAsyncEffect as ri, useLatest as yc } from "ahooks";
|
|
7
7
|
import { observer as Y } from "mobx-react-lite";
|
|
8
8
|
import * as C from "react";
|
|
9
9
|
import H, { useEffect as Re, createContext as zd, forwardRef as ln, createElement as Or, useRef as tt, useState as Be, useMemo as ie, useCallback as _n, useImperativeHandle as Om, useLayoutEffect as Rm, useContext as or } from "react";
|
|
10
|
-
import we, { template as Kl, cloneDeepWith as km, get as lt, isFunction as Mm, omit as Nr, values as jd, unset as Dm, isObject as Hd, set as Bl, orderBy as Pm, last as Kd, defaults as Kt, minBy as Im, maxBy as Bd, cloneDeep as
|
|
10
|
+
import we, { template as Kl, cloneDeepWith as km, get as lt, isFunction as Mm, omit as Nr, values as jd, unset as Dm, isObject as Hd, set as Bl, orderBy as Pm, last as Kd, defaults as Kt, minBy as Im, maxBy as Bd, cloneDeep as Ut, isEqual as Rt, defaultsDeep as sn, keyBy as Gd, groupBy as Am, merge as Wd, isEmpty as Gl, findLastIndex as $m, isNumber as Nm, isString as qd, range as Lm, throttle as Vm, pick as Ud } from "lodash";
|
|
11
11
|
import { useForm as gn, useWatch as Fm, Controller as I, useFieldArray as An } from "react-hook-form";
|
|
12
12
|
import { DateRangePicker as zm } from "@mantine/dates";
|
|
13
13
|
import er from "dayjs";
|
|
@@ -17,7 +17,7 @@ import Zm from "jszip";
|
|
|
17
17
|
import { Prism as Lr } from "@mantine/prism";
|
|
18
18
|
import { showNotification as ta } from "@mantine/notifications";
|
|
19
19
|
import { useViewportSize as ql, randomId as bn, useClipboard as Jm, useElementSize as Fo, useInputState as Zd } from "@mantine/hooks";
|
|
20
|
-
import
|
|
20
|
+
import qt from "numbro";
|
|
21
21
|
import Jd from "crypto-js";
|
|
22
22
|
import Ii from "axios";
|
|
23
23
|
import ir from "@monaco-editor/react";
|
|
@@ -577,7 +577,7 @@ function yv() {
|
|
|
577
577
|
});
|
|
578
578
|
}
|
|
579
579
|
}
|
|
580
|
-
var
|
|
580
|
+
var Zt = function(_, B, K, ee, oe, fe, Ae) {
|
|
581
581
|
var xe = {
|
|
582
582
|
$$typeof: t,
|
|
583
583
|
type: _,
|
|
@@ -618,10 +618,10 @@ function yv() {
|
|
|
618
618
|
var Je = typeof _ == "function" ? _.displayName || _.name || "Unknown" : _;
|
|
619
619
|
xe && Bt(Ae, Je), Ge && vt(Ae, Je);
|
|
620
620
|
}
|
|
621
|
-
return
|
|
621
|
+
return Zt(_, xe, Ge, oe, ee, Ye.current, Ae);
|
|
622
622
|
}
|
|
623
623
|
}
|
|
624
|
-
var
|
|
624
|
+
var Jt = y.ReactCurrentOwner, cn = y.ReactDebugCurrentFrame;
|
|
625
625
|
function St(_) {
|
|
626
626
|
if (_) {
|
|
627
627
|
var B = _._owner, K = ke(_.type, _._source, B ? B.type : null);
|
|
@@ -631,13 +631,13 @@ function yv() {
|
|
|
631
631
|
}
|
|
632
632
|
var Mt;
|
|
633
633
|
Mt = !1;
|
|
634
|
-
function
|
|
634
|
+
function en(_) {
|
|
635
635
|
return typeof _ == "object" && _ !== null && _.$$typeof === t;
|
|
636
636
|
}
|
|
637
637
|
function yt() {
|
|
638
638
|
{
|
|
639
|
-
if (
|
|
640
|
-
var _ = D(
|
|
639
|
+
if (Jt.current) {
|
|
640
|
+
var _ = D(Jt.current.type);
|
|
641
641
|
if (_)
|
|
642
642
|
return `
|
|
643
643
|
|
|
@@ -680,7 +680,7 @@ Check the top-level render call using <` + K + ">.");
|
|
|
680
680
|
return;
|
|
681
681
|
Gt[K] = !0;
|
|
682
682
|
var ee = "";
|
|
683
|
-
_ && _._owner && _._owner !==
|
|
683
|
+
_ && _._owner && _._owner !== Jt.current && (ee = " It was passed a child from " + D(_._owner.type) + "."), St(_), x('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', K, ee), St(null);
|
|
684
684
|
}
|
|
685
685
|
}
|
|
686
686
|
function ne(_, B) {
|
|
@@ -690,15 +690,15 @@ Check the top-level render call using <` + K + ">.");
|
|
|
690
690
|
if (qe(_))
|
|
691
691
|
for (var K = 0; K < _.length; K++) {
|
|
692
692
|
var ee = _[K];
|
|
693
|
-
|
|
693
|
+
en(ee) && J(ee, B);
|
|
694
694
|
}
|
|
695
|
-
else if (
|
|
695
|
+
else if (en(_))
|
|
696
696
|
_._store && (_._store.validated = !0);
|
|
697
697
|
else if (_) {
|
|
698
698
|
var oe = b(_);
|
|
699
699
|
if (typeof oe == "function" && oe !== _.entries)
|
|
700
700
|
for (var fe = oe.call(_), Ae; !(Ae = fe.next()).done; )
|
|
701
|
-
|
|
701
|
+
en(Ae.value) && J(Ae.value, B);
|
|
702
702
|
}
|
|
703
703
|
}
|
|
704
704
|
}
|
|
@@ -767,13 +767,13 @@ Check the top-level render call using <` + K + ">.");
|
|
|
767
767
|
return _ === r ? rt(Je) : De(Je), Je;
|
|
768
768
|
}
|
|
769
769
|
}
|
|
770
|
-
function
|
|
770
|
+
function tn(_, B, K) {
|
|
771
771
|
return pt(_, B, K, !0);
|
|
772
772
|
}
|
|
773
|
-
function
|
|
773
|
+
function nn(_, B, K) {
|
|
774
774
|
return pt(_, B, K, !1);
|
|
775
775
|
}
|
|
776
|
-
var Rn =
|
|
776
|
+
var Rn = nn, Et = tn;
|
|
777
777
|
_o.Fragment = r, _o.jsx = Rn, _o.jsxs = Et;
|
|
778
778
|
}()), _o;
|
|
779
779
|
}
|
|
@@ -902,7 +902,7 @@ const mf = Y(({
|
|
|
902
902
|
data: [],
|
|
903
903
|
loading: !1
|
|
904
904
|
}), Sv = vf.Provider;
|
|
905
|
-
function
|
|
905
|
+
function Qt() {
|
|
906
906
|
const e = H.useContext(vf);
|
|
907
907
|
if (!e.panel)
|
|
908
908
|
throw new Error("Please use PanelContextProvider");
|
|
@@ -946,7 +946,7 @@ const yf = ln(({
|
|
|
946
946
|
if (!d)
|
|
947
947
|
return;
|
|
948
948
|
const f = t.options.slice(0, d).map((p) => p.value);
|
|
949
|
-
console.log(`Selecting first ${d} option(s) by default. New value: `, f), r(f);
|
|
949
|
+
console.log(`Selecting first ${d} option(s) by default. New value: `, f), r(f, !0);
|
|
950
950
|
}, [t.default_selection_count, t.options]);
|
|
951
951
|
const c = t.min_width ? t.min_width : "200px", u = i ? s : !1;
|
|
952
952
|
return /* @__PURE__ */ l(Qo, {
|
|
@@ -983,7 +983,7 @@ const yf = ln(({
|
|
|
983
983
|
if (!c)
|
|
984
984
|
return;
|
|
985
985
|
const u = (f = (d = t.options[0]) == null ? void 0 : d.value) != null ? f : "";
|
|
986
|
-
console.log("Selecting the first option by default. New value: ", u), r(u);
|
|
986
|
+
console.log("Selecting the first option by default. New value: ", u), r(u, !0);
|
|
987
987
|
}, [t.default_selection_count, t.options]), /* @__PURE__ */ l(Oe, {
|
|
988
988
|
label: e,
|
|
989
989
|
data: t.options,
|
|
@@ -1962,7 +1962,7 @@ function Ac(e, t) {
|
|
|
1962
1962
|
}
|
|
1963
1963
|
return n;
|
|
1964
1964
|
}
|
|
1965
|
-
function
|
|
1965
|
+
function on(e) {
|
|
1966
1966
|
for (var t = 1; t < arguments.length; t++) {
|
|
1967
1967
|
var n = arguments[t] != null ? arguments[t] : {};
|
|
1968
1968
|
t % 2 ? Ac(Object(n), !0).forEach(function(r) {
|
|
@@ -2002,7 +2002,7 @@ function oo(e) {
|
|
|
2002
2002
|
attr: !0
|
|
2003
2003
|
} : t === !0 ? n = {
|
|
2004
2004
|
aria: !0
|
|
2005
|
-
} : n =
|
|
2005
|
+
} : n = on({}, t);
|
|
2006
2006
|
var r = {};
|
|
2007
2007
|
return Object.keys(e).forEach(function(o) {
|
|
2008
2008
|
(n.aria && (o === "role" || $c(o, ty)) || n.data && $c(o, ny) || n.attr && ey.includes(o)) && (r[o] = e[o]);
|
|
@@ -2778,7 +2778,7 @@ function Zy(e, t) {
|
|
|
2778
2778
|
function vt(q, J) {
|
|
2779
2779
|
te(J), ue(ae);
|
|
2780
2780
|
}
|
|
2781
|
-
function
|
|
2781
|
+
function Zt(q, J) {
|
|
2782
2782
|
me(J);
|
|
2783
2783
|
}
|
|
2784
2784
|
function wt(q) {
|
|
@@ -2808,7 +2808,7 @@ function Zy(e, t) {
|
|
|
2808
2808
|
y && wt(0) + de > D && re(null);
|
|
2809
2809
|
}
|
|
2810
2810
|
}, [D, G, ae, de, kt, gt]);
|
|
2811
|
-
var
|
|
2811
|
+
var Jt = ot && !!ht.length, cn = {};
|
|
2812
2812
|
U !== null && Ue && (cn = {
|
|
2813
2813
|
position: "absolute",
|
|
2814
2814
|
left: U,
|
|
@@ -2843,20 +2843,20 @@ function Zy(e, t) {
|
|
|
2843
2843
|
registerSize: Bt,
|
|
2844
2844
|
display: J <= Me
|
|
2845
2845
|
});
|
|
2846
|
-
},
|
|
2847
|
-
order:
|
|
2846
|
+
}, en, yt = {
|
|
2847
|
+
order: Jt ? Me : Number.MAX_SAFE_INTEGER,
|
|
2848
2848
|
className: "".concat(ct, "-rest"),
|
|
2849
2849
|
registerSize: vt,
|
|
2850
|
-
display:
|
|
2850
|
+
display: Jt
|
|
2851
2851
|
};
|
|
2852
2852
|
if (b)
|
|
2853
|
-
b && (
|
|
2853
|
+
b && (en = /* @__PURE__ */ l(Vi.Provider, {
|
|
2854
2854
|
value: Xr(Xr({}, St), yt),
|
|
2855
2855
|
children: b(ht)
|
|
2856
2856
|
}));
|
|
2857
2857
|
else {
|
|
2858
2858
|
var wn = v || Qy;
|
|
2859
|
-
|
|
2859
|
+
en = /* @__PURE__ */ l(Io, {
|
|
2860
2860
|
...St,
|
|
2861
2861
|
...yt,
|
|
2862
2862
|
children: typeof wn == "function" ? wn(ht) : wn
|
|
@@ -2867,13 +2867,13 @@ function Zy(e, t) {
|
|
|
2867
2867
|
style: p,
|
|
2868
2868
|
ref: t,
|
|
2869
2869
|
...M,
|
|
2870
|
-
children: [gt.map(Mt), xt ?
|
|
2870
|
+
children: [gt.map(Mt), xt ? en : null, y && /* @__PURE__ */ l(Io, {
|
|
2871
2871
|
...St,
|
|
2872
2872
|
responsive: Ze,
|
|
2873
2873
|
responsiveDisabled: !Ue,
|
|
2874
2874
|
order: Me,
|
|
2875
2875
|
className: "".concat(ct, "-suffix"),
|
|
2876
|
-
registerSize:
|
|
2876
|
+
registerSize: Zt,
|
|
2877
2877
|
display: !0,
|
|
2878
2878
|
style: cn,
|
|
2879
2879
|
children: y
|
|
@@ -3351,7 +3351,7 @@ function mb(e, t, n) {
|
|
|
3351
3351
|
}
|
|
3352
3352
|
function vb(e, t, n) {
|
|
3353
3353
|
var r = e[t] || {};
|
|
3354
|
-
return
|
|
3354
|
+
return on(on({}, r), n);
|
|
3355
3355
|
}
|
|
3356
3356
|
function yb(e, t, n, r) {
|
|
3357
3357
|
for (var o = n.points, i = Object.keys(e), a = 0; a < i.length; a += 1) {
|
|
@@ -3809,7 +3809,7 @@ function Bb(e) {
|
|
|
3809
3809
|
if (!o)
|
|
3810
3810
|
return null;
|
|
3811
3811
|
var c = {};
|
|
3812
|
-
return (i || s || a) && (c =
|
|
3812
|
+
return (i || s || a) && (c = on({
|
|
3813
3813
|
motionAppear: !0
|
|
3814
3814
|
}, op({
|
|
3815
3815
|
motion: i,
|
|
@@ -5544,7 +5544,7 @@ var Rp = /* @__PURE__ */ C.forwardRef(function(e, t) {
|
|
|
5544
5544
|
(re = ae.current) === null || re === void 0 || re.call(ae);
|
|
5545
5545
|
}));
|
|
5546
5546
|
}, [Fe]);
|
|
5547
|
-
var de =
|
|
5547
|
+
var de = on({}, op(e));
|
|
5548
5548
|
["onAppearEnd", "onEnterEnd", "onLeaveEnd"].forEach(function(re) {
|
|
5549
5549
|
var Ie = de[re];
|
|
5550
5550
|
de[re] = function(ke, Le) {
|
|
@@ -5566,7 +5566,7 @@ var Rp = /* @__PURE__ */ C.forwardRef(function(e, t) {
|
|
|
5566
5566
|
}
|
|
5567
5567
|
};
|
|
5568
5568
|
});
|
|
5569
|
-
var ze =
|
|
5569
|
+
var ze = on(on({}, D), {}, {
|
|
5570
5570
|
zIndex: s,
|
|
5571
5571
|
opacity: X === "motion" || X === "stable" || !n ? void 0 : 0,
|
|
5572
5572
|
pointerEvents: !n && X !== "stable" ? "none" : void 0
|
|
@@ -5602,7 +5602,7 @@ var Rp = /* @__PURE__ */ C.forwardRef(function(e, t) {
|
|
|
5602
5602
|
onMouseDownCapture: x,
|
|
5603
5603
|
onTouchStartCapture: w,
|
|
5604
5604
|
onClick: T,
|
|
5605
|
-
style:
|
|
5605
|
+
style: on(on({}, Le), ze),
|
|
5606
5606
|
children: U
|
|
5607
5607
|
})
|
|
5608
5608
|
}, "popup");
|
|
@@ -5623,7 +5623,7 @@ var kp = /* @__PURE__ */ C.forwardRef(function(e, t) {
|
|
|
5623
5623
|
}
|
|
5624
5624
|
};
|
|
5625
5625
|
});
|
|
5626
|
-
var h =
|
|
5626
|
+
var h = on({
|
|
5627
5627
|
zIndex: o
|
|
5628
5628
|
}, c), v = i;
|
|
5629
5629
|
return C.Children.count(i) > 1 && (v = /* @__PURE__ */ l("div", {
|
|
@@ -5640,7 +5640,7 @@ var kp = /* @__PURE__ */ C.forwardRef(function(e, t) {
|
|
|
5640
5640
|
ref: y,
|
|
5641
5641
|
className: T,
|
|
5642
5642
|
onClick: p,
|
|
5643
|
-
style:
|
|
5643
|
+
style: on(on({}, w), h),
|
|
5644
5644
|
children: v
|
|
5645
5645
|
});
|
|
5646
5646
|
}
|
|
@@ -5648,7 +5648,7 @@ var kp = /* @__PURE__ */ C.forwardRef(function(e, t) {
|
|
|
5648
5648
|
});
|
|
5649
5649
|
kp.displayName = "MobilePopupInner";
|
|
5650
5650
|
var nE = ["visible", "mobile"], Mp = /* @__PURE__ */ C.forwardRef(function(e, t) {
|
|
5651
|
-
var n = e.visible, r = e.mobile, o = wb(e, nE), i = Be(n), a = Dn(i, 2), s = a[0], c = a[1], u = Be(!1), d = Dn(u, 2), f = d[0], p = d[1], g =
|
|
5651
|
+
var n = e.visible, r = e.mobile, o = wb(e, nE), i = Be(n), a = Dn(i, 2), s = a[0], c = a[1], u = Be(!1), d = Dn(u, 2), f = d[0], p = d[1], g = on(on({}, o), {}, {
|
|
5652
5652
|
visible: s
|
|
5653
5653
|
});
|
|
5654
5654
|
Re(function() {
|
|
@@ -5960,7 +5960,7 @@ function aE(e) {
|
|
|
5960
5960
|
this.isContextMenuToShow() ? h.onContextMenu = this.onContextMenu : h.onContextMenu = this.createTwoChains("onContextMenu"), this.isClickToHide() || this.isClickToShow() ? (h.onClick = this.onClick, h.onMouseDown = this.onMouseDown, h.onTouchStart = this.onTouchStart) : (h.onClick = this.createTwoChains("onClick"), h.onMouseDown = this.createTwoChains("onMouseDown"), h.onTouchStart = this.createTwoChains("onTouchStart")), this.isMouseEnterToShow() ? (h.onMouseEnter = this.onMouseEnter, d && (h.onMouseMove = this.onMouseMove)) : h.onMouseEnter = this.createTwoChains("onMouseEnter"), this.isMouseLeaveToHide() ? h.onMouseLeave = this.onMouseLeave : h.onMouseLeave = this.createTwoChains("onMouseLeave"), this.isFocusToShow() || this.isBlurToHide() ? (h.onFocus = this.onFocus, h.onBlur = this.onBlur) : (h.onFocus = this.createTwoChains("onFocus"), h.onBlur = this.createTwoChains("onBlur"));
|
|
5961
5961
|
var v = ft(g && g.props && g.props.className, f);
|
|
5962
5962
|
v && (h.className = v);
|
|
5963
|
-
var b =
|
|
5963
|
+
var b = on({}, h);
|
|
5964
5964
|
as(g) && (b.ref = si(this.triggerRef, g.ref));
|
|
5965
5965
|
var y = /* @__PURE__ */ C.cloneElement(g, b), x;
|
|
5966
5966
|
return (a || this.popupRef.current || u) && (x = /* @__PURE__ */ l(e, {
|
|
@@ -6184,26 +6184,26 @@ var bs = /* @__PURE__ */ C.forwardRef(function(e, t) {
|
|
|
6184
6184
|
return A;
|
|
6185
6185
|
var Ve = (Xe = f[0]) === null || Xe === void 0 ? void 0 : Xe.value;
|
|
6186
6186
|
return typeof Ve == "string" || typeof Ve == "number" ? String(Ve) : "";
|
|
6187
|
-
}, [A, y, f]),
|
|
6187
|
+
}, [A, y, f]), Zt = y === "combobox" && typeof T == "function" && T() || null, wt = typeof S == "function" && S(), Jt = Yv(Ye, wt == null || (n = wt.props) === null || n === void 0 ? void 0 : n.ref), cn = jo(void 0, {
|
|
6188
6188
|
defaultValue: $,
|
|
6189
6189
|
value: M
|
|
6190
|
-
}), St = zt(cn, 2), Mt = St[0],
|
|
6190
|
+
}), St = zt(cn, 2), Mt = St[0], en = St[1], yt = Mt, wn = !v && g;
|
|
6191
6191
|
(x || wn && yt && y === "combobox") && (yt = !1);
|
|
6192
6192
|
var Gt = wn ? !1 : yt, q = C.useCallback(function(Xe) {
|
|
6193
6193
|
var Ve = Xe !== void 0 ? Xe : !yt;
|
|
6194
|
-
x || (
|
|
6195
|
-
}, [x, yt,
|
|
6194
|
+
x || (en(Ve), yt !== Ve && (V == null || V(Ve)));
|
|
6195
|
+
}, [x, yt, en, V]), J = C.useMemo(function() {
|
|
6196
6196
|
return (G || []).some(function(Xe) {
|
|
6197
6197
|
return [`
|
|
6198
6198
|
`, `\r
|
|
6199
6199
|
`].includes(Xe);
|
|
6200
6200
|
});
|
|
6201
|
-
}, [G]), ne = function(Ve,
|
|
6201
|
+
}, [G]), ne = function(Ve, rn, dn) {
|
|
6202
6202
|
var Lt = !0, mn = Ve;
|
|
6203
6203
|
R == null || R(null);
|
|
6204
6204
|
var Mn = dn ? null : pE(Ve, G);
|
|
6205
6205
|
return y !== "combobox" && Mn && (mn = "", z == null || z(Mn), q(!1), Lt = !1), N && vt !== mn && N(mn, {
|
|
6206
|
-
source:
|
|
6206
|
+
source: rn ? "typing" : "effect"
|
|
6207
6207
|
}), Lt;
|
|
6208
6208
|
}, De = function(Ve) {
|
|
6209
6209
|
!Ve || !Ve.trim() || N(Ve, {
|
|
@@ -6213,11 +6213,11 @@ var bs = /* @__PURE__ */ C.forwardRef(function(e, t) {
|
|
|
6213
6213
|
C.useEffect(function() {
|
|
6214
6214
|
!yt && !_e && y !== "combobox" && ne("", !1, !1);
|
|
6215
6215
|
}, [yt]), C.useEffect(function() {
|
|
6216
|
-
Mt && x &&
|
|
6216
|
+
Mt && x && en(!1), x && mt(!1);
|
|
6217
6217
|
}, [x]);
|
|
6218
|
-
var rt = Pf(), pt = zt(rt, 2),
|
|
6219
|
-
var
|
|
6220
|
-
if (dn === W.ENTER && (y !== "combobox" && Ve.preventDefault(), yt || q(!0)),
|
|
6218
|
+
var rt = Pf(), pt = zt(rt, 2), tn = pt[0], nn = pt[1], Rn = function(Ve) {
|
|
6219
|
+
var rn = tn(), dn = Ve.which;
|
|
6220
|
+
if (dn === W.ENTER && (y !== "combobox" && Ve.preventDefault(), yt || q(!0)), nn(!!vt), dn === W.BACKSPACE && !rn && _e && !vt && f.length) {
|
|
6221
6221
|
for (var Lt = Sn(f), mn = null, Mn = Lt.length - 1; Mn >= 0; Mn -= 1) {
|
|
6222
6222
|
var So = Lt[Mn];
|
|
6223
6223
|
if (!So.disabled) {
|
|
@@ -6238,7 +6238,7 @@ var bs = /* @__PURE__ */ C.forwardRef(function(e, t) {
|
|
|
6238
6238
|
}
|
|
6239
6239
|
Le == null || Le.apply(void 0, [Ve].concat(Wr));
|
|
6240
6240
|
}, Et = function(Ve) {
|
|
6241
|
-
for (var
|
|
6241
|
+
for (var rn = arguments.length, dn = new Array(rn > 1 ? rn - 1 : 0), Lt = 1; Lt < rn; Lt++)
|
|
6242
6242
|
dn[Lt - 1] = arguments[Lt];
|
|
6243
6243
|
if (yt && ht.current) {
|
|
6244
6244
|
var mn;
|
|
@@ -6246,10 +6246,10 @@ var bs = /* @__PURE__ */ C.forwardRef(function(e, t) {
|
|
|
6246
6246
|
}
|
|
6247
6247
|
ke == null || ke.apply(void 0, [Ve].concat(dn));
|
|
6248
6248
|
}, _ = function(Ve) {
|
|
6249
|
-
var
|
|
6249
|
+
var rn = f.filter(function(dn) {
|
|
6250
6250
|
return dn !== Ve;
|
|
6251
6251
|
});
|
|
6252
|
-
p(
|
|
6252
|
+
p(rn, {
|
|
6253
6253
|
type: "remove",
|
|
6254
6254
|
values: [Ve]
|
|
6255
6255
|
});
|
|
@@ -6272,7 +6272,7 @@ var bs = /* @__PURE__ */ C.forwardRef(function(e, t) {
|
|
|
6272
6272
|
};
|
|
6273
6273
|
}, []);
|
|
6274
6274
|
var fe = function(Ve) {
|
|
6275
|
-
var
|
|
6275
|
+
var rn, dn = Ve.target, Lt = (rn = xt.current) === null || rn === void 0 ? void 0 : rn.getPopupElement();
|
|
6276
6276
|
if (Lt && Lt.contains(dn)) {
|
|
6277
6277
|
var mn = setTimeout(function() {
|
|
6278
6278
|
var Wr = oe.indexOf(mn);
|
|
@@ -6340,7 +6340,7 @@ var bs = /* @__PURE__ */ C.forwardRef(function(e, t) {
|
|
|
6340
6340
|
}));
|
|
6341
6341
|
var fm = /* @__PURE__ */ l(ue, {
|
|
6342
6342
|
ref: ht
|
|
6343
|
-
}), pm = ft(i, a, (r = {}, Dt(r, "".concat(i, "-focused"), je), Dt(r, "".concat(i, "-multiple"), _e), Dt(r, "".concat(i, "-single"), !_e), Dt(r, "".concat(i, "-allow-clear"), Z), Dt(r, "".concat(i, "-show-arrow"), Rr), Dt(r, "".concat(i, "-disabled"), x), Dt(r, "".concat(i, "-loading"), w), Dt(r, "".concat(i, "-open"), yt), Dt(r, "".concat(i, "-customize-input"),
|
|
6343
|
+
}), pm = ft(i, a, (r = {}, Dt(r, "".concat(i, "-focused"), je), Dt(r, "".concat(i, "-multiple"), _e), Dt(r, "".concat(i, "-single"), !_e), Dt(r, "".concat(i, "-allow-clear"), Z), Dt(r, "".concat(i, "-show-arrow"), Rr), Dt(r, "".concat(i, "-disabled"), x), Dt(r, "".concat(i, "-loading"), w), Dt(r, "".concat(i, "-open"), yt), Dt(r, "".concat(i, "-customize-input"), Zt), Dt(r, "".concat(i, "-show-search"), se), r)), hc = /* @__PURE__ */ l(Dp, {
|
|
6344
6344
|
ref: xt,
|
|
6345
6345
|
disabled: x,
|
|
6346
6346
|
prefixCls: i,
|
|
@@ -6364,12 +6364,12 @@ var bs = /* @__PURE__ */ C.forwardRef(function(e, t) {
|
|
|
6364
6364
|
onPopupVisibleChange: Nt,
|
|
6365
6365
|
onPopupMouseEnter: $n,
|
|
6366
6366
|
children: wt ? /* @__PURE__ */ C.cloneElement(wt, {
|
|
6367
|
-
ref:
|
|
6367
|
+
ref: Jt
|
|
6368
6368
|
}) : /* @__PURE__ */ l(Yf, {
|
|
6369
6369
|
...e,
|
|
6370
6370
|
domRef: Ye,
|
|
6371
6371
|
prefixCls: i,
|
|
6372
|
-
inputElement:
|
|
6372
|
+
inputElement: Zt,
|
|
6373
6373
|
ref: gt,
|
|
6374
6374
|
id: o,
|
|
6375
6375
|
showSearch: se,
|
|
@@ -6407,8 +6407,8 @@ var bs = /* @__PURE__ */ C.forwardRef(function(e, t) {
|
|
|
6407
6407
|
},
|
|
6408
6408
|
"aria-live": "polite",
|
|
6409
6409
|
children: "".concat(f.map(function(Xe) {
|
|
6410
|
-
var Ve = Xe.label,
|
|
6411
|
-
return ["number", "string"].includes(tr(Ve)) ? Ve :
|
|
6410
|
+
var Ve = Xe.label, rn = Xe.value;
|
|
6411
|
+
return ["number", "string"].includes(tr(Ve)) ? Ve : rn;
|
|
6412
6412
|
}).join(", "))
|
|
6413
6413
|
}), hc, hn, kn]
|
|
6414
6414
|
}), /* @__PURE__ */ l(Mf.Provider, {
|
|
@@ -6543,7 +6543,7 @@ var $p = function() {
|
|
|
6543
6543
|
};
|
|
6544
6544
|
$p.isSelectOption = !0;
|
|
6545
6545
|
function Np(e, t) {
|
|
6546
|
-
var n =
|
|
6546
|
+
var n = on({}, e);
|
|
6547
6547
|
return Array.isArray(t) && t.forEach(function(r) {
|
|
6548
6548
|
delete n[r];
|
|
6549
6549
|
}), n;
|
|
@@ -7141,8 +7141,8 @@ function ZE(e, t) {
|
|
|
7141
7141
|
offset: void 0
|
|
7142
7142
|
};
|
|
7143
7143
|
}
|
|
7144
|
-
for (var je = 0, mt, Bt, vt,
|
|
7145
|
-
var
|
|
7144
|
+
for (var je = 0, mt, Bt, vt, Zt = N.length, wt = 0; wt < Zt; wt += 1) {
|
|
7145
|
+
var Jt = N[wt], cn = X(Jt), St = ze.get(cn), Mt = je + (St === void 0 ? a : St);
|
|
7146
7146
|
Mt >= $ && mt === void 0 && (mt = wt, Bt = je), Mt > $ + i && vt === void 0 && (vt = wt), je = Mt;
|
|
7147
7147
|
}
|
|
7148
7148
|
return mt === void 0 && (mt = 0, Bt = 0, vt = Math.ceil(i / a)), vt === void 0 && (vt = N.length - 1), vt = Math.min(vt + 1, N.length), {
|
|
@@ -7501,7 +7501,7 @@ var Bp = /* @__PURE__ */ C.forwardRef(function(e, t) {
|
|
|
7501
7501
|
}), te = zt(ae, 2), ge = te[0], ye = te[1], de = CE(S, M, Se, w, T), me = de.valueOptions, ze = de.labelOptions, Ne = de.options, U = C.useCallback(function(q) {
|
|
7502
7502
|
var J = cs(q);
|
|
7503
7503
|
return J.map(function(ne) {
|
|
7504
|
-
var De, rt, pt,
|
|
7504
|
+
var De, rt, pt, tn, nn;
|
|
7505
7505
|
if (aT(ne))
|
|
7506
7506
|
De = ne;
|
|
7507
7507
|
else {
|
|
@@ -7511,7 +7511,7 @@ var Bp = /* @__PURE__ */ C.forwardRef(function(e, t) {
|
|
|
7511
7511
|
var Et = me.get(De);
|
|
7512
7512
|
if (Et) {
|
|
7513
7513
|
var _;
|
|
7514
|
-
if (rt === void 0 && (rt = Et == null ? void 0 : Et[T || Se.label]), pt === void 0 && (pt = (_ = Et == null ? void 0 : Et.key) !== null && _ !== void 0 ? _ : De),
|
|
7514
|
+
if (rt === void 0 && (rt = Et == null ? void 0 : Et[T || Se.label]), pt === void 0 && (pt = (_ = Et == null ? void 0 : Et.key) !== null && _ !== void 0 ? _ : De), tn = Et == null ? void 0 : Et.disabled, nn = Et == null ? void 0 : Et.title, process.env.NODE_ENV !== "production" && !T) {
|
|
7515
7515
|
var B = Et == null ? void 0 : Et[Se.label];
|
|
7516
7516
|
B !== void 0 && B !== rt && at(!1, "`label` of `value` is not same as `label` in Select options.");
|
|
7517
7517
|
}
|
|
@@ -7520,8 +7520,8 @@ var Bp = /* @__PURE__ */ C.forwardRef(function(e, t) {
|
|
|
7520
7520
|
label: rt,
|
|
7521
7521
|
value: De,
|
|
7522
7522
|
key: pt,
|
|
7523
|
-
disabled:
|
|
7524
|
-
title:
|
|
7523
|
+
disabled: tn,
|
|
7524
|
+
title: nn
|
|
7525
7525
|
};
|
|
7526
7526
|
});
|
|
7527
7527
|
}, [Se, T, me]), re = jo(z, {
|
|
@@ -7582,9 +7582,9 @@ var Bp = /* @__PURE__ */ C.forwardRef(function(e, t) {
|
|
|
7582
7582
|
});
|
|
7583
7583
|
}, [xt, Se, ue]), ht = function(J) {
|
|
7584
7584
|
var ne = U(J);
|
|
7585
|
-
if (Le(ne), Z && (ne.length !== se.length || ne.some(function(pt,
|
|
7586
|
-
var
|
|
7587
|
-
return ((
|
|
7585
|
+
if (Le(ne), Z && (ne.length !== se.length || ne.some(function(pt, tn) {
|
|
7586
|
+
var nn;
|
|
7587
|
+
return ((nn = se[tn]) === null || nn === void 0 ? void 0 : nn.value) !== (pt == null ? void 0 : pt.value);
|
|
7588
7588
|
}))) {
|
|
7589
7589
|
var De = G ? ne : ne.map(function(pt) {
|
|
7590
7590
|
return pt.value;
|
|
@@ -7596,7 +7596,7 @@ var Bp = /* @__PURE__ */ C.forwardRef(function(e, t) {
|
|
|
7596
7596
|
pe ? rt : rt[0]
|
|
7597
7597
|
);
|
|
7598
7598
|
}
|
|
7599
|
-
}, kt = C.useState(null), ve = zt(kt, 2), je = ve[0], mt = ve[1], Bt = C.useState(0), vt = zt(Bt, 2),
|
|
7599
|
+
}, kt = C.useState(null), ve = zt(kt, 2), je = ve[0], mt = ve[1], Bt = C.useState(0), vt = zt(Bt, 2), Zt = vt[0], wt = vt[1], Jt = $ !== void 0 ? $ : r !== "combobox", cn = C.useCallback(function(q, J) {
|
|
7600
7600
|
var ne = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {}, De = ne.source, rt = De === void 0 ? "keyboard" : De;
|
|
7601
7601
|
wt(J), a && r === "combobox" && q !== null && rt === "keyboard" && mt(String(q));
|
|
7602
7602
|
}, [a, r]), St = function(J, ne, De) {
|
|
@@ -7609,8 +7609,8 @@ var Bp = /* @__PURE__ */ C.forwardRef(function(e, t) {
|
|
|
7609
7609
|
} : J, bl(fe)];
|
|
7610
7610
|
};
|
|
7611
7611
|
if (ne && g) {
|
|
7612
|
-
var pt = rt(),
|
|
7613
|
-
g(
|
|
7612
|
+
var pt = rt(), tn = zt(pt, 2), nn = tn[0], Rn = tn[1];
|
|
7613
|
+
g(nn, Rn);
|
|
7614
7614
|
} else if (!ne && h && De !== "clear") {
|
|
7615
7615
|
var Et = rt(), _ = zt(Et, 2), B = _[0], K = _[1];
|
|
7616
7616
|
h(B, K);
|
|
@@ -7620,7 +7620,7 @@ var Bp = /* @__PURE__ */ C.forwardRef(function(e, t) {
|
|
|
7620
7620
|
De ? ne = pe ? [].concat(Sn(se), [q]) : [q] : ne = se.filter(function(rt) {
|
|
7621
7621
|
return rt.value !== q;
|
|
7622
7622
|
}), ht(ne), St(q, De), r === "combobox" ? mt("") : (!Gi || p) && (ye(""), mt(""));
|
|
7623
|
-
}),
|
|
7623
|
+
}), en = function(J, ne) {
|
|
7624
7624
|
ht(J);
|
|
7625
7625
|
var De = ne.type, rt = ne.values;
|
|
7626
7626
|
(De === "remove" || De === "clear") && rt.forEach(function(pt) {
|
|
@@ -7653,7 +7653,7 @@ var Bp = /* @__PURE__ */ C.forwardRef(function(e, t) {
|
|
|
7653
7653
|
return Pt(Pt({}, de), {}, {
|
|
7654
7654
|
flattenOptions: gt,
|
|
7655
7655
|
onActiveValue: cn,
|
|
7656
|
-
defaultActiveFirstOption:
|
|
7656
|
+
defaultActiveFirstOption: Jt,
|
|
7657
7657
|
onSelect: Mt,
|
|
7658
7658
|
menuItemSelectedIcon: V,
|
|
7659
7659
|
rawValues: ct,
|
|
@@ -7663,7 +7663,7 @@ var Bp = /* @__PURE__ */ C.forwardRef(function(e, t) {
|
|
|
7663
7663
|
listItemHeight: D,
|
|
7664
7664
|
childrenAsData: ue
|
|
7665
7665
|
});
|
|
7666
|
-
}, [de, gt, cn,
|
|
7666
|
+
}, [de, gt, cn, Jt, Mt, V, ct, Se, F, b, E, D, ue]);
|
|
7667
7667
|
return process.env.NODE_ENV !== "production" && (nT(e), rT(Ne, Se)), /* @__PURE__ */ l(Hp.Provider, {
|
|
7668
7668
|
value: Gt,
|
|
7669
7669
|
children: /* @__PURE__ */ l(bs, {
|
|
@@ -7674,7 +7674,7 @@ var Bp = /* @__PURE__ */ C.forwardRef(function(e, t) {
|
|
|
7674
7674
|
omitDomProps: iT,
|
|
7675
7675
|
mode: r,
|
|
7676
7676
|
displayValues: qe,
|
|
7677
|
-
onDisplayValuesChange:
|
|
7677
|
+
onDisplayValuesChange: en,
|
|
7678
7678
|
searchValue: ge,
|
|
7679
7679
|
onSearch: yt,
|
|
7680
7680
|
autoClearSearchValue: p,
|
|
@@ -7683,7 +7683,7 @@ var Bp = /* @__PURE__ */ C.forwardRef(function(e, t) {
|
|
|
7683
7683
|
OptionList: Kp,
|
|
7684
7684
|
emptyOptions: !gt.length,
|
|
7685
7685
|
activeValue: je,
|
|
7686
|
-
activeDescendantId: "".concat(Q, "_list_").concat(
|
|
7686
|
+
activeDescendantId: "".concat(Q, "_list_").concat(Zt)
|
|
7687
7687
|
})
|
|
7688
7688
|
});
|
|
7689
7689
|
});
|
|
@@ -7841,7 +7841,7 @@ function nd(e, t) {
|
|
|
7841
7841
|
}
|
|
7842
7842
|
return n;
|
|
7843
7843
|
}
|
|
7844
|
-
function
|
|
7844
|
+
function Yt(e) {
|
|
7845
7845
|
for (var t = 1; t < arguments.length; t++) {
|
|
7846
7846
|
var n = arguments[t] != null ? arguments[t] : {};
|
|
7847
7847
|
t % 2 ? nd(Object(n), !0).forEach(function(r) {
|
|
@@ -8026,7 +8026,7 @@ function xT(e) {
|
|
|
8026
8026
|
return r.map(function(o) {
|
|
8027
8027
|
if (!TT(o))
|
|
8028
8028
|
return at(!o, "Tree/TreeNode can only accept TreeNode as children."), null;
|
|
8029
|
-
var i = o.key, a = o.props, s = a.children, c = ha(a, bT), u =
|
|
8029
|
+
var i = o.key, a = o.props, s = a.children, c = ha(a, bT), u = Yt({
|
|
8030
8030
|
key: i
|
|
8031
8031
|
}, c), d = t(s);
|
|
8032
8032
|
return d.length && (u.children = d), u;
|
|
@@ -8048,7 +8048,7 @@ function Fa(e, t, n) {
|
|
|
8048
8048
|
break;
|
|
8049
8049
|
}
|
|
8050
8050
|
}
|
|
8051
|
-
var w =
|
|
8051
|
+
var w = Yt(Yt({}, Np(p, [].concat($r(o), [i, a]))), {}, {
|
|
8052
8052
|
title: b,
|
|
8053
8053
|
key: v,
|
|
8054
8054
|
parent: f,
|
|
@@ -8138,7 +8138,7 @@ function $o(e, t) {
|
|
|
8138
8138
|
return p;
|
|
8139
8139
|
}
|
|
8140
8140
|
function Vt(e) {
|
|
8141
|
-
var t = e.data, n = e.expanded, r = e.selected, o = e.checked, i = e.loaded, a = e.loading, s = e.halfChecked, c = e.dragOver, u = e.dragOverGapTop, d = e.dragOverGapBottom, f = e.pos, p = e.active, g = e.eventKey, h =
|
|
8141
|
+
var t = e.data, n = e.expanded, r = e.selected, o = e.checked, i = e.loaded, a = e.loading, s = e.halfChecked, c = e.dragOver, u = e.dragOverGapTop, d = e.dragOverGapBottom, f = e.pos, p = e.active, g = e.eventKey, h = Yt(Yt({}, t), {}, {
|
|
8142
8142
|
expanded: n,
|
|
8143
8143
|
selected: r,
|
|
8144
8144
|
checked: o,
|
|
@@ -8259,7 +8259,7 @@ var CT = ["eventKey", "className", "style", "dragOver", "dragOverGapTop", "dragO
|
|
|
8259
8259
|
}) : null;
|
|
8260
8260
|
}, r.renderSwitcherIconDom = function(s) {
|
|
8261
8261
|
var c = r.props.switcherIcon, u = r.props.context.switcherIcon, d = c || u;
|
|
8262
|
-
return typeof d == "function" ? d(
|
|
8262
|
+
return typeof d == "function" ? d(Yt(Yt({}, r.props), {}, {
|
|
8263
8263
|
isLeaf: s
|
|
8264
8264
|
})) : d;
|
|
8265
8265
|
}, r.renderSwitcher = function() {
|
|
@@ -8981,7 +8981,7 @@ var zT = 10, _s = /* @__PURE__ */ function(e) {
|
|
|
8981
8981
|
if (r.setState({
|
|
8982
8982
|
dragOverNodeKey: null
|
|
8983
8983
|
}), r.cleanDragState(), h !== null) {
|
|
8984
|
-
var x =
|
|
8984
|
+
var x = Yt(Yt({}, $o(h, r.getTreeNodeRequiredProps())), {}, {
|
|
8985
8985
|
active: ((u = r.getActiveItem()) === null || u === void 0 ? void 0 : u.key) === h,
|
|
8986
8986
|
data: r.state.keyEntities[h].node
|
|
8987
8987
|
}), w = p.indexOf(h) !== -1;
|
|
@@ -9013,7 +9013,7 @@ var zT = 10, _s = /* @__PURE__ */ function(e) {
|
|
|
9013
9013
|
if (!(h || s.shiftKey || s.metaKey || s.ctrlKey)) {
|
|
9014
9014
|
var v = f.filter(function(y) {
|
|
9015
9015
|
return y.key === g;
|
|
9016
|
-
})[0], b = Vt(
|
|
9016
|
+
})[0], b = Vt(Yt(Yt({}, $o(g, r.getTreeNodeRequiredProps())), {}, {
|
|
9017
9017
|
data: v.data
|
|
9018
9018
|
}));
|
|
9019
9019
|
r.setExpandedKeys(p ? qn(d, g) : fr(d, g)), r.onNodeExpand(s, b);
|
|
@@ -9251,7 +9251,7 @@ var zT = 10, _s = /* @__PURE__ */ function(e) {
|
|
|
9251
9251
|
}
|
|
9252
9252
|
var y = r.getActiveItem();
|
|
9253
9253
|
if (y && y.data) {
|
|
9254
|
-
var x = r.getTreeNodeRequiredProps(), w = y.data.isLeaf === !1 || !!(y.data[p.children] || []).length, T = Vt(
|
|
9254
|
+
var x = r.getTreeNodeRequiredProps(), w = y.data.isLeaf === !1 || !!(y.data[p.children] || []).length, T = Vt(Yt(Yt({}, $o(u, x)), {}, {
|
|
9255
9255
|
data: y.data,
|
|
9256
9256
|
active: !0
|
|
9257
9257
|
}));
|
|
@@ -9282,7 +9282,7 @@ var zT = 10, _s = /* @__PURE__ */ function(e) {
|
|
|
9282
9282
|
return;
|
|
9283
9283
|
}
|
|
9284
9284
|
d = !0, p[g] = s[g];
|
|
9285
|
-
}), d && (!c || f) && r.setState(
|
|
9285
|
+
}), d && (!c || f) && r.setState(Yt(Yt({}, p), u));
|
|
9286
9286
|
}
|
|
9287
9287
|
}, r.scrollTo = function(s) {
|
|
9288
9288
|
r.listRef.current.scrollTo(s);
|
|
@@ -9425,13 +9425,13 @@ var zT = 10, _s = /* @__PURE__ */ function(e) {
|
|
|
9425
9425
|
var f = Jp(u, {
|
|
9426
9426
|
fieldNames: d
|
|
9427
9427
|
});
|
|
9428
|
-
s.keyEntities =
|
|
9428
|
+
s.keyEntities = Yt(Ot({}, Fr, rg), f.keyEntities), process.env.NODE_ENV !== "production" && wT(u, d);
|
|
9429
9429
|
}
|
|
9430
9430
|
var p = s.keyEntities || i.keyEntities;
|
|
9431
9431
|
if (c("expandedKeys") || a && c("autoExpandParent"))
|
|
9432
9432
|
s.expandedKeys = o.autoExpandParent || !a && o.defaultExpandParent ? sd(o.expandedKeys, p) : o.expandedKeys;
|
|
9433
9433
|
else if (!a && o.defaultExpandAll) {
|
|
9434
|
-
var g =
|
|
9434
|
+
var g = Yt({}, p);
|
|
9435
9435
|
delete g[Fr], s.expandedKeys = Object.keys(g).map(function(M) {
|
|
9436
9436
|
return g[M].key;
|
|
9437
9437
|
});
|
|
@@ -9883,7 +9883,7 @@ var dg = /* @__PURE__ */ C.forwardRef(function(e, t) {
|
|
|
9883
9883
|
return fe;
|
|
9884
9884
|
}
|
|
9885
9885
|
}
|
|
9886
|
-
}, [Ee, T]),
|
|
9886
|
+
}, [Ee, T]), Zt = C.useCallback(function(K) {
|
|
9887
9887
|
var ee = lg(K);
|
|
9888
9888
|
return ee.map(function(oe) {
|
|
9889
9889
|
return nO(oe) ? {
|
|
@@ -9891,14 +9891,14 @@ var dg = /* @__PURE__ */ C.forwardRef(function(e, t) {
|
|
|
9891
9891
|
} : oe;
|
|
9892
9892
|
});
|
|
9893
9893
|
}, []), wt = C.useCallback(function(K) {
|
|
9894
|
-
var ee =
|
|
9894
|
+
var ee = Zt(K);
|
|
9895
9895
|
return ee.map(function(oe) {
|
|
9896
9896
|
var fe = oe.label, Ae = oe.value, xe = oe.halfChecked, Ge, He = je.get(Ae);
|
|
9897
9897
|
if (He) {
|
|
9898
9898
|
var Je;
|
|
9899
9899
|
fe = (Je = fe) !== null && Je !== void 0 ? Je : vt(He.node), Ge = He.node.disabled;
|
|
9900
9900
|
} else if (fe === void 0) {
|
|
9901
|
-
var Tt =
|
|
9901
|
+
var Tt = Zt(qe).find(function(un) {
|
|
9902
9902
|
return un.value === Ae;
|
|
9903
9903
|
});
|
|
9904
9904
|
fe = Tt.label;
|
|
@@ -9910,18 +9910,18 @@ var dg = /* @__PURE__ */ C.forwardRef(function(e, t) {
|
|
|
9910
9910
|
disabled: Ge
|
|
9911
9911
|
};
|
|
9912
9912
|
});
|
|
9913
|
-
}, [je, vt,
|
|
9914
|
-
return
|
|
9915
|
-
}, [
|
|
9913
|
+
}, [je, vt, Zt, qe]), Jt = C.useMemo(function() {
|
|
9914
|
+
return Zt(qe);
|
|
9915
|
+
}, [Zt, qe]), cn = C.useMemo(function() {
|
|
9916
9916
|
var K = [], ee = [];
|
|
9917
|
-
return
|
|
9917
|
+
return Jt.forEach(function(oe) {
|
|
9918
9918
|
oe.halfChecked ? ee.push(oe) : K.push(oe);
|
|
9919
9919
|
}), [K, ee];
|
|
9920
|
-
}, [
|
|
9920
|
+
}, [Jt]), St = gr(cn, 2), Mt = St[0], en = St[1], yt = C.useMemo(function() {
|
|
9921
9921
|
return Mt.map(function(K) {
|
|
9922
9922
|
return K.value;
|
|
9923
9923
|
});
|
|
9924
|
-
}, [Mt]), wn = ZT(Mt,
|
|
9924
|
+
}, [Mt]), wn = ZT(Mt, en, Le, ve), Gt = gr(wn, 2), q = Gt[0], J = Gt[1], ne = C.useMemo(function() {
|
|
9925
9925
|
var K = gd(q, w, ve, Ee), ee = K.map(function(xe) {
|
|
9926
9926
|
var Ge, He, Je;
|
|
9927
9927
|
return (Ge = (He = ve[xe]) === null || He === void 0 || (Je = He.node) === null || Je === void 0 ? void 0 : Je[Ee.value]) !== null && Ge !== void 0 ? Ge : xe;
|
|
@@ -9940,7 +9940,7 @@ var dg = /* @__PURE__ */ C.forwardRef(function(e, t) {
|
|
|
9940
9940
|
label: (Ge = xe.label) !== null && Ge !== void 0 ? Ge : xe.value
|
|
9941
9941
|
});
|
|
9942
9942
|
});
|
|
9943
|
-
}, [Ee, _e, q, Mt, wt, w, ve]), De = XT(ne), rt = gr(De, 1), pt = rt[0],
|
|
9943
|
+
}, [Ee, _e, q, Mt, wt, w, ve]), De = XT(ne), rt = gr(De, 1), pt = rt[0], tn = hd(function(K, ee, oe) {
|
|
9944
9944
|
var fe = wt(K);
|
|
9945
9945
|
if (ct(fe), h && xt(""), s) {
|
|
9946
9946
|
var Ae = K;
|
|
@@ -9956,7 +9956,7 @@ var dg = /* @__PURE__ */ C.forwardRef(function(e, t) {
|
|
|
9956
9956
|
selected: void 0
|
|
9957
9957
|
}, He = Ge.triggerValue, Je = Ge.selected, Tt = Ae;
|
|
9958
9958
|
if ($) {
|
|
9959
|
-
var un =
|
|
9959
|
+
var un = en.filter(function(hn) {
|
|
9960
9960
|
return !Ae.includes(hn.value);
|
|
9961
9961
|
});
|
|
9962
9962
|
Tt = [].concat(pr(Tt), pr(un));
|
|
@@ -9973,10 +9973,10 @@ var dg = /* @__PURE__ */ C.forwardRef(function(e, t) {
|
|
|
9973
9973
|
return hn.label;
|
|
9974
9974
|
}), Nt);
|
|
9975
9975
|
}
|
|
9976
|
-
}),
|
|
9976
|
+
}), nn = C.useCallback(function(K, ee) {
|
|
9977
9977
|
var oe, fe = ee.selected, Ae = ee.source, xe = ve[K], Ge = xe == null ? void 0 : xe.node, He = (oe = Ge == null ? void 0 : Ge[Ee.value]) !== null && oe !== void 0 ? oe : K;
|
|
9978
9978
|
if (!_e)
|
|
9979
|
-
|
|
9979
|
+
tn([He], {
|
|
9980
9980
|
selected: !0,
|
|
9981
9981
|
triggerValue: He
|
|
9982
9982
|
}, "option");
|
|
@@ -10002,13 +10002,13 @@ var dg = /* @__PURE__ */ C.forwardRef(function(e, t) {
|
|
|
10002
10002
|
return ve[kn].node[Ee.value];
|
|
10003
10003
|
})));
|
|
10004
10004
|
}
|
|
10005
|
-
|
|
10005
|
+
tn(Je, {
|
|
10006
10006
|
selected: fe,
|
|
10007
10007
|
triggerValue: He
|
|
10008
10008
|
}, Ae || "option");
|
|
10009
10009
|
}
|
|
10010
10010
|
fe || !_e ? c == null || c(He, Tl(Ge)) : u == null || u(He, Tl(Ge));
|
|
10011
|
-
}, [mt, je, ve, Ee, _e, yt,
|
|
10011
|
+
}, [mt, je, ve, Ee, _e, yt, tn, Le, c, u, q, J]), Rn = C.useCallback(function(K) {
|
|
10012
10012
|
if (ge) {
|
|
10013
10013
|
var ee = {};
|
|
10014
10014
|
Object.defineProperty(ee, "documentClickClose", {
|
|
@@ -10022,10 +10022,10 @@ var dg = /* @__PURE__ */ C.forwardRef(function(e, t) {
|
|
|
10022
10022
|
return fe.value;
|
|
10023
10023
|
});
|
|
10024
10024
|
if (ee.type === "clear") {
|
|
10025
|
-
|
|
10025
|
+
tn(oe, {}, "selection");
|
|
10026
10026
|
return;
|
|
10027
10027
|
}
|
|
10028
|
-
ee.values.length &&
|
|
10028
|
+
ee.values.length && nn(ee.values[0].value, {
|
|
10029
10029
|
selected: !1,
|
|
10030
10030
|
source: "selection"
|
|
10031
10031
|
});
|
|
@@ -10037,10 +10037,10 @@ var dg = /* @__PURE__ */ C.forwardRef(function(e, t) {
|
|
|
10037
10037
|
listItemHeight: te,
|
|
10038
10038
|
treeData: Bt,
|
|
10039
10039
|
fieldNames: Ee,
|
|
10040
|
-
onSelect:
|
|
10040
|
+
onSelect: nn,
|
|
10041
10041
|
treeExpandAction: pe
|
|
10042
10042
|
};
|
|
10043
|
-
}, [ue, de, Se, te, Bt, Ee,
|
|
10043
|
+
}, [ue, de, Se, te, Bt, Ee, nn, pe]), B = C.useMemo(function() {
|
|
10044
10044
|
return {
|
|
10045
10045
|
checkable: be,
|
|
10046
10046
|
loadData: D,
|
|
@@ -10505,11 +10505,11 @@ const uO = Y(({
|
|
|
10505
10505
|
if (!g)
|
|
10506
10506
|
return;
|
|
10507
10507
|
if (u.length === 0) {
|
|
10508
|
-
r([]);
|
|
10508
|
+
console.log("[filter.tree-select] Resetting to empty"), r([], !0);
|
|
10509
10509
|
return;
|
|
10510
10510
|
}
|
|
10511
10511
|
const h = u.slice(0, g).map((v) => v.value);
|
|
10512
|
-
console.log(`Selecting first ${g} option(s)
|
|
10512
|
+
console.log(`[filter.tree-select] Selecting first ${g} option(s)`), r(h, !0);
|
|
10513
10513
|
}, [t.default_selection_count, u]);
|
|
10514
10514
|
const d = t.min_width ? t.min_width : "200px", p = !!t.options_query_id ? c : !1;
|
|
10515
10515
|
return /* @__PURE__ */ l(sO, {
|
|
@@ -10520,7 +10520,7 @@ const uO = Y(({
|
|
|
10520
10520
|
borderColor: "#e9ecef"
|
|
10521
10521
|
},
|
|
10522
10522
|
value: n,
|
|
10523
|
-
onChange: r,
|
|
10523
|
+
onChange: (g) => r(g, !1),
|
|
10524
10524
|
treeData: u,
|
|
10525
10525
|
label: e
|
|
10526
10526
|
});
|
|
@@ -10603,11 +10603,11 @@ const uO = Y(({
|
|
|
10603
10603
|
}, [n.filters.values, i]), Re(() => {
|
|
10604
10604
|
n.filters.updatePreviewValues(a);
|
|
10605
10605
|
}, [a]);
|
|
10606
|
-
const s = n.filters.visibleInView(t.id), c = ie(() => s.every((d) => d.
|
|
10606
|
+
const s = n.filters.visibleInView(t.id), c = ie(() => s.every((d) => d.should_auto_submit), [s]);
|
|
10607
10607
|
if (s.length === 0)
|
|
10608
10608
|
return null;
|
|
10609
|
-
const u = (d, f) => (p) => {
|
|
10610
|
-
f(p), d.
|
|
10609
|
+
const u = (d, f) => (p, g) => {
|
|
10610
|
+
f(p), (d.should_auto_submit || g) && n.filters.setValueByKey(d.key, p);
|
|
10611
10611
|
};
|
|
10612
10612
|
return /* @__PURE__ */ l("form", {
|
|
10613
10613
|
onSubmit: o(n.filters.setValues),
|
|
@@ -10935,7 +10935,7 @@ const va = {
|
|
|
10935
10935
|
CryptoJS: Jd,
|
|
10936
10936
|
dayjs: er,
|
|
10937
10937
|
lodash: we,
|
|
10938
|
-
numbro:
|
|
10938
|
+
numbro: qt
|
|
10939
10939
|
};
|
|
10940
10940
|
function yO(e, t) {
|
|
10941
10941
|
return new Function(`return ${e}`)()(t, va);
|
|
@@ -11904,7 +11904,7 @@ const eR = Y(function({
|
|
|
11904
11904
|
} = H.useContext(Hn);
|
|
11905
11905
|
return H.useEffect(() => {
|
|
11906
11906
|
r(t);
|
|
11907
|
-
}, [t]), /* @__PURE__ */ l(
|
|
11907
|
+
}, [t]), /* @__PURE__ */ l(Xt, {
|
|
11908
11908
|
size: "96vw",
|
|
11909
11909
|
overflow: "inside",
|
|
11910
11910
|
opened: t,
|
|
@@ -11943,7 +11943,7 @@ const eR = Y(function({
|
|
|
11943
11943
|
})
|
|
11944
11944
|
});
|
|
11945
11945
|
});
|
|
11946
|
-
var
|
|
11946
|
+
var Wt = /* @__PURE__ */ ((e) => (e.Select = "select", e.MultiSelect = "multi-select", e.TreeSelect = "tree-select", e.TextInput = "text-input", e.Checkbox = "checkbox", e.DateRange = "date-range", e))(Wt || {});
|
|
11947
11947
|
O.model({
|
|
11948
11948
|
type: O.enumeration("DataSourceType", [Cn.Postgresql, Cn.MySQL, Cn.HTTP]),
|
|
11949
11949
|
key: O.string,
|
|
@@ -12448,7 +12448,7 @@ const bg = O.model("FilterConfigModel_TextInput", {
|
|
|
12448
12448
|
sx: {
|
|
12449
12449
|
flexGrow: "1 !important"
|
|
12450
12450
|
}
|
|
12451
|
-
}), /* @__PURE__ */ l(yn, {
|
|
12451
|
+
}), t.auto_submit_supported && /* @__PURE__ */ l(yn, {
|
|
12452
12452
|
label: "Submit automatically",
|
|
12453
12453
|
checked: t.auto_submit,
|
|
12454
12454
|
onChange: (i) => t.setAutoSubmit(i.currentTarget.checked),
|
|
@@ -12498,7 +12498,7 @@ const hR = Y(function() {
|
|
|
12498
12498
|
key: o,
|
|
12499
12499
|
label: o,
|
|
12500
12500
|
order: n.length + 1,
|
|
12501
|
-
type:
|
|
12501
|
+
type: Wt.TextInput,
|
|
12502
12502
|
config: wg(),
|
|
12503
12503
|
visibleInViewsIDs: ["Main"],
|
|
12504
12504
|
auto_submit: !1
|
|
@@ -12621,7 +12621,7 @@ const hR = Y(function() {
|
|
|
12621
12621
|
} = H.useContext(Hn);
|
|
12622
12622
|
return H.useEffect(() => {
|
|
12623
12623
|
r(t);
|
|
12624
|
-
}, [t]), /* @__PURE__ */ l(
|
|
12624
|
+
}, [t]), /* @__PURE__ */ l(Xt, {
|
|
12625
12625
|
size: "96vw",
|
|
12626
12626
|
overflow: "inside",
|
|
12627
12627
|
opened: t,
|
|
@@ -12730,7 +12730,7 @@ const bR = Y(() => {
|
|
|
12730
12730
|
children: /* @__PURE__ */ l(Wl, {
|
|
12731
12731
|
size: 14
|
|
12732
12732
|
})
|
|
12733
|
-
}), /* @__PURE__ */ l(
|
|
12733
|
+
}), /* @__PURE__ */ l(Xt, {
|
|
12734
12734
|
size: 800,
|
|
12735
12735
|
title: "Customize modal title",
|
|
12736
12736
|
opened: n,
|
|
@@ -12847,7 +12847,7 @@ const bR = Y(() => {
|
|
|
12847
12847
|
} = H.useContext(Hn);
|
|
12848
12848
|
return H.useEffect(() => {
|
|
12849
12849
|
r(e);
|
|
12850
|
-
}, [e]), /* @__PURE__ */ l(
|
|
12850
|
+
}, [e]), /* @__PURE__ */ l(Xt, {
|
|
12851
12851
|
size: "500px",
|
|
12852
12852
|
overflow: "inside",
|
|
12853
12853
|
opened: e,
|
|
@@ -13521,11 +13521,11 @@ const Pg = Y(() => {
|
|
|
13521
13521
|
freezeLayout: e
|
|
13522
13522
|
} = H.useContext(Hn), [t, n] = H.useState(!1), {
|
|
13523
13523
|
panel: r
|
|
13524
|
-
} =
|
|
13524
|
+
} = Qt();
|
|
13525
13525
|
return H.useEffect(() => {
|
|
13526
13526
|
e(t);
|
|
13527
13527
|
}, [t]), PR(r.description) ? null : /* @__PURE__ */ m($e, {
|
|
13528
|
-
children: [/* @__PURE__ */ l(
|
|
13528
|
+
children: [/* @__PURE__ */ l(Xt, {
|
|
13529
13529
|
opened: t,
|
|
13530
13530
|
onClose: () => n(!1),
|
|
13531
13531
|
title: r.title,
|
|
@@ -13675,7 +13675,7 @@ const VR = Y((e) => {
|
|
|
13675
13675
|
children: [/* @__PURE__ */ l($R, {
|
|
13676
13676
|
model: c,
|
|
13677
13677
|
onClick: n
|
|
13678
|
-
}), /* @__PURE__ */ l(
|
|
13678
|
+
}), /* @__PURE__ */ l(Xt, {
|
|
13679
13679
|
size: 600,
|
|
13680
13680
|
opened: t,
|
|
13681
13681
|
onClose: r,
|
|
@@ -13769,7 +13769,7 @@ const HR = Y(({
|
|
|
13769
13769
|
setFalse: r
|
|
13770
13770
|
}] = On(!1), o = e.model;
|
|
13771
13771
|
return /* @__PURE__ */ m($e, {
|
|
13772
|
-
children: [/* @__PURE__ */ l(
|
|
13772
|
+
children: [/* @__PURE__ */ l(Xt, {
|
|
13773
13773
|
opened: t,
|
|
13774
13774
|
onClose: r,
|
|
13775
13775
|
title: "Setup Trigger",
|
|
@@ -14031,7 +14031,7 @@ const UR = (e) => {
|
|
|
14031
14031
|
getColor: ba(["#fff7f1", "darkorange", "#b60000"]),
|
|
14032
14032
|
name: "orange",
|
|
14033
14033
|
category: "sequential"
|
|
14034
|
-
}, Lg = "@devtable/dashboard", $s = "7.
|
|
14034
|
+
}, Lg = "@devtable/dashboard", $s = "7.5.1", Vg = "Apache-2.0", Fg = {
|
|
14035
14035
|
access: "public",
|
|
14036
14036
|
registry: "https://registry.npmjs.org/"
|
|
14037
14037
|
}, zg = [
|
|
@@ -14288,7 +14288,7 @@ class ak {
|
|
|
14288
14288
|
return i.reduce((s, c) => c.handler(s, r), n);
|
|
14289
14289
|
}
|
|
14290
14290
|
}
|
|
14291
|
-
class
|
|
14291
|
+
class an extends ak {
|
|
14292
14292
|
constructor() {
|
|
14293
14293
|
super(), this.configVersions();
|
|
14294
14294
|
}
|
|
@@ -14587,7 +14587,7 @@ function ck({
|
|
|
14587
14587
|
})
|
|
14588
14588
|
}) : null;
|
|
14589
14589
|
}
|
|
14590
|
-
class uk extends
|
|
14590
|
+
class uk extends an {
|
|
14591
14591
|
constructor() {
|
|
14592
14592
|
super(...arguments);
|
|
14593
14593
|
he(this, "VERSION", 1);
|
|
@@ -14608,7 +14608,7 @@ const dk = {
|
|
|
14608
14608
|
createConfig() {
|
|
14609
14609
|
return {
|
|
14610
14610
|
version: 1,
|
|
14611
|
-
config:
|
|
14611
|
+
config: Ut(Ns)
|
|
14612
14612
|
};
|
|
14613
14613
|
}
|
|
14614
14614
|
}, Kn = {
|
|
@@ -14728,19 +14728,19 @@ function fk({
|
|
|
14728
14728
|
color: "gray",
|
|
14729
14729
|
children: ["123456789 ", /* @__PURE__ */ l(Ra, {
|
|
14730
14730
|
size: 9
|
|
14731
|
-
}), " ",
|
|
14731
|
+
}), " ", qt(123456789).format(e)]
|
|
14732
14732
|
}), /* @__PURE__ */ m(L, {
|
|
14733
14733
|
size: 12,
|
|
14734
14734
|
color: "gray",
|
|
14735
14735
|
children: ["1234 ", /* @__PURE__ */ l(Ra, {
|
|
14736
14736
|
size: 9
|
|
14737
|
-
}), " ",
|
|
14737
|
+
}), " ", qt(1234).format(e)]
|
|
14738
14738
|
}), /* @__PURE__ */ m(L, {
|
|
14739
14739
|
size: 12,
|
|
14740
14740
|
color: "gray",
|
|
14741
14741
|
children: ["0.1234 ", /* @__PURE__ */ l(Ra, {
|
|
14742
14742
|
size: 9
|
|
14743
|
-
}), " ",
|
|
14743
|
+
}), " ", qt(0.1234).format(e)]
|
|
14744
14744
|
})]
|
|
14745
14745
|
})
|
|
14746
14746
|
})]
|
|
@@ -15570,7 +15570,7 @@ function Hs({ data_field: e, aggregation: t }, n) {
|
|
|
15570
15570
|
return Vs(n, e, t);
|
|
15571
15571
|
}
|
|
15572
15572
|
function gi({ formatter: e }, t) {
|
|
15573
|
-
return ["string", "number"].includes(typeof t) ?
|
|
15573
|
+
return ["string", "number"].includes(typeof t) ? qt(t).format(e) : Gk(t);
|
|
15574
15574
|
}
|
|
15575
15575
|
function Wk(e, t) {
|
|
15576
15576
|
if (e.type === "static")
|
|
@@ -15745,7 +15745,7 @@ const Jk = (e) => (t) => {
|
|
|
15745
15745
|
<tr>
|
|
15746
15746
|
<th style="text-align: right; padding: 0 1em;">${we.capitalize(s)}</th>
|
|
15747
15747
|
<td style="text-align: left; padding: 0 1em;">
|
|
15748
|
-
${
|
|
15748
|
+
${qt(r[s]).format(e.y_axis.label_formatter)}
|
|
15749
15749
|
</td>
|
|
15750
15750
|
</tr>`);
|
|
15751
15751
|
return `
|
|
@@ -15844,7 +15844,7 @@ function rM({ config: e, data: t, variables: n }) {
|
|
|
15844
15844
|
},
|
|
15845
15845
|
axisLabel: {
|
|
15846
15846
|
formatter: function(f) {
|
|
15847
|
-
return
|
|
15847
|
+
return qt(f).format(o.label_formatter);
|
|
15848
15848
|
}
|
|
15849
15849
|
}
|
|
15850
15850
|
}
|
|
@@ -16112,7 +16112,7 @@ const lM = ({
|
|
|
16112
16112
|
flexGrow: 0
|
|
16113
16113
|
},
|
|
16114
16114
|
children: "Customize Label"
|
|
16115
|
-
}), /* @__PURE__ */ l(
|
|
16115
|
+
}), /* @__PURE__ */ l(Xt, {
|
|
16116
16116
|
size: 800,
|
|
16117
16117
|
title: "Customize label content",
|
|
16118
16118
|
opened: r,
|
|
@@ -16531,7 +16531,7 @@ function hM(e) {
|
|
|
16531
16531
|
};
|
|
16532
16532
|
return we.defaultsDeep(t, e);
|
|
16533
16533
|
}
|
|
16534
|
-
class mM extends
|
|
16534
|
+
class mM extends an {
|
|
16535
16535
|
constructor() {
|
|
16536
16536
|
super(...arguments);
|
|
16537
16537
|
he(this, "VERSION", 5);
|
|
@@ -16592,7 +16592,7 @@ const vM = {
|
|
|
16592
16592
|
createConfig() {
|
|
16593
16593
|
return {
|
|
16594
16594
|
version: 5,
|
|
16595
|
-
config:
|
|
16595
|
+
config: Ut(Ls)
|
|
16596
16596
|
};
|
|
16597
16597
|
},
|
|
16598
16598
|
triggers: [Yg]
|
|
@@ -16890,7 +16890,7 @@ function kM({
|
|
|
16890
16890
|
})]
|
|
16891
16891
|
});
|
|
16892
16892
|
}
|
|
16893
|
-
class MM extends
|
|
16893
|
+
class MM extends an {
|
|
16894
16894
|
constructor() {
|
|
16895
16895
|
super(...arguments);
|
|
16896
16896
|
he(this, "VERSION", 2);
|
|
@@ -16926,7 +16926,7 @@ const DM = {
|
|
|
16926
16926
|
createConfig() {
|
|
16927
16927
|
return {
|
|
16928
16928
|
version: 2,
|
|
16929
|
-
config:
|
|
16929
|
+
config: Ut(Ws)
|
|
16930
16930
|
};
|
|
16931
16931
|
},
|
|
16932
16932
|
triggers: [mh]
|
|
@@ -16960,7 +16960,7 @@ function PM(e) {
|
|
|
16960
16960
|
let n = 10;
|
|
16961
16961
|
t && (n += 20), e.dataZoom.x_axis_slider && (n += 20);
|
|
16962
16962
|
let r = 5;
|
|
16963
|
-
return e.x_axis_name && (r += 15), {
|
|
16963
|
+
return e.x_axis_name && (r += 15), e.series.some((o) => !o.hide_in_legend) && (r += 20), {
|
|
16964
16964
|
top: n,
|
|
16965
16965
|
bottom: r
|
|
16966
16966
|
};
|
|
@@ -17136,7 +17136,7 @@ function zM({ x_axis_data_key: e }, {
|
|
|
17136
17136
|
return g ? y.data = Ed(p, h, e, t) : y.data = h.map((w) => w[t]), y;
|
|
17137
17137
|
const x = Am(h, i);
|
|
17138
17138
|
return Object.entries(x).map(([w, T]) => {
|
|
17139
|
-
const S =
|
|
17139
|
+
const S = Ut(y);
|
|
17140
17140
|
return S.data = Ed(p, T, e, t), S.name = w, S.color = void 0, S;
|
|
17141
17141
|
});
|
|
17142
17142
|
}
|
|
@@ -17190,7 +17190,7 @@ function BM(e) {
|
|
|
17190
17190
|
if (typeof a == "object" && (Array.isArray(a.value) && a.value.length === 2 ? s = a.value[1] : s = a.value), !r)
|
|
17191
17191
|
return s;
|
|
17192
17192
|
try {
|
|
17193
|
-
return
|
|
17193
|
+
return qt(s).format(r);
|
|
17194
17194
|
} catch (c) {
|
|
17195
17195
|
return console.error(c), s;
|
|
17196
17196
|
}
|
|
@@ -17257,7 +17257,8 @@ function qM(e, t) {
|
|
|
17257
17257
|
}
|
|
17258
17258
|
const UM = {
|
|
17259
17259
|
tooltip: {
|
|
17260
|
-
trigger: "axis"
|
|
17260
|
+
trigger: "axis",
|
|
17261
|
+
confine: !0
|
|
17261
17262
|
},
|
|
17262
17263
|
xAxis: [
|
|
17263
17264
|
{
|
|
@@ -17436,10 +17437,8 @@ function JM({
|
|
|
17436
17437
|
};
|
|
17437
17438
|
}, [i, a]), b = ie(() => {
|
|
17438
17439
|
let y = c;
|
|
17439
|
-
return d && (y -= f), g && (
|
|
17440
|
-
|
|
17441
|
-
}), y -= h), Math.max(0, y);
|
|
17442
|
-
}, [d, f, g, h]);
|
|
17440
|
+
return d && (y -= f), g && (y -= h), Math.max(0, y);
|
|
17441
|
+
}, [c, d, f, g, h]);
|
|
17443
17442
|
return /* @__PURE__ */ m(Te, {
|
|
17444
17443
|
children: [Td(i.stats.templates.top) && /* @__PURE__ */ l(L, {
|
|
17445
17444
|
ref: u,
|
|
@@ -18287,7 +18286,7 @@ const pD = ({
|
|
|
18287
18286
|
},
|
|
18288
18287
|
children: "Setup"
|
|
18289
18288
|
})
|
|
18290
|
-
}), /* @__PURE__ */ l(
|
|
18289
|
+
}), /* @__PURE__ */ l(Xt, {
|
|
18291
18290
|
size: 800,
|
|
18292
18291
|
title: "Setup dynamic size",
|
|
18293
18292
|
opened: r,
|
|
@@ -19419,7 +19418,7 @@ function $D({
|
|
|
19419
19418
|
});
|
|
19420
19419
|
}
|
|
19421
19420
|
function ND(e) {
|
|
19422
|
-
const t =
|
|
19421
|
+
const t = Ut(Nr(e, "variables"));
|
|
19423
19422
|
return t.stats = Nr(t.stats, "variables"), t;
|
|
19424
19423
|
}
|
|
19425
19424
|
function LD(e) {
|
|
@@ -19458,7 +19457,7 @@ function FD(e) {
|
|
|
19458
19457
|
};
|
|
19459
19458
|
return we.defaultsDeep(t, e);
|
|
19460
19459
|
}
|
|
19461
|
-
class zD extends
|
|
19460
|
+
class zD extends an {
|
|
19462
19461
|
constructor() {
|
|
19463
19462
|
super(...arguments);
|
|
19464
19463
|
he(this, "VERSION", 5);
|
|
@@ -19506,7 +19505,7 @@ const jD = {
|
|
|
19506
19505
|
createConfig() {
|
|
19507
19506
|
return {
|
|
19508
19507
|
version: 5,
|
|
19509
|
-
config:
|
|
19508
|
+
config: Ut(Us)
|
|
19510
19509
|
};
|
|
19511
19510
|
},
|
|
19512
19511
|
triggers: [vh]
|
|
@@ -19572,7 +19571,7 @@ const wh = {
|
|
|
19572
19571
|
markLine: wh
|
|
19573
19572
|
};
|
|
19574
19573
|
function Zi(e) {
|
|
19575
|
-
return
|
|
19574
|
+
return qt(e).format({
|
|
19576
19575
|
output: "percent",
|
|
19577
19576
|
mantissa: 0
|
|
19578
19577
|
});
|
|
@@ -19591,7 +19590,7 @@ function GD(e) {
|
|
|
19591
19590
|
if (typeof n == "object" && (Array.isArray(n.value) && n.value.length === 2 ? r = n.value[1] : r = n.value), !e.bar.label_formatter)
|
|
19592
19591
|
return r;
|
|
19593
19592
|
try {
|
|
19594
|
-
return
|
|
19593
|
+
return qt(r).format(e.bar.label_formatter);
|
|
19595
19594
|
} catch (o) {
|
|
19596
19595
|
return console.error(o), r;
|
|
19597
19596
|
}
|
|
@@ -20306,7 +20305,7 @@ function pP(e) {
|
|
|
20306
20305
|
};
|
|
20307
20306
|
return we.defaultsDeep(t, e);
|
|
20308
20307
|
}
|
|
20309
|
-
class gP extends
|
|
20308
|
+
class gP extends an {
|
|
20310
20309
|
constructor() {
|
|
20311
20310
|
super(...arguments);
|
|
20312
20311
|
he(this, "VERSION", 6);
|
|
@@ -20347,7 +20346,7 @@ const hP = {
|
|
|
20347
20346
|
createConfig() {
|
|
20348
20347
|
return {
|
|
20349
20348
|
version: 6,
|
|
20350
|
-
config:
|
|
20349
|
+
config: Ut(Xs)
|
|
20351
20350
|
};
|
|
20352
20351
|
},
|
|
20353
20352
|
triggers: [bh]
|
|
@@ -20493,7 +20492,7 @@ function yP({
|
|
|
20493
20492
|
})
|
|
20494
20493
|
});
|
|
20495
20494
|
}
|
|
20496
|
-
class bP extends
|
|
20495
|
+
class bP extends an {
|
|
20497
20496
|
constructor() {
|
|
20498
20497
|
super(...arguments);
|
|
20499
20498
|
he(this, "VERSION", 1);
|
|
@@ -20514,14 +20513,14 @@ const wP = {
|
|
|
20514
20513
|
createConfig() {
|
|
20515
20514
|
return {
|
|
20516
20515
|
version: 1,
|
|
20517
|
-
config:
|
|
20516
|
+
config: Ut(Qs)
|
|
20518
20517
|
};
|
|
20519
20518
|
}
|
|
20520
20519
|
};
|
|
20521
20520
|
function xh(e) {
|
|
20522
20521
|
return e ? (t) => {
|
|
20523
20522
|
try {
|
|
20524
|
-
return
|
|
20523
|
+
return qt(t).format(e);
|
|
20525
20524
|
} catch (n) {
|
|
20526
20525
|
return console.error(n), t;
|
|
20527
20526
|
}
|
|
@@ -20888,7 +20887,7 @@ function kP({
|
|
|
20888
20887
|
})
|
|
20889
20888
|
});
|
|
20890
20889
|
}
|
|
20891
|
-
class MP extends
|
|
20890
|
+
class MP extends an {
|
|
20892
20891
|
constructor() {
|
|
20893
20892
|
super(...arguments);
|
|
20894
20893
|
he(this, "VERSION", 1);
|
|
@@ -20909,7 +20908,7 @@ const DP = {
|
|
|
20909
20908
|
createConfig() {
|
|
20910
20909
|
return {
|
|
20911
20910
|
version: 1,
|
|
20912
|
-
config:
|
|
20911
|
+
config: Ut(Zs)
|
|
20913
20912
|
};
|
|
20914
20913
|
}
|
|
20915
20914
|
};
|
|
@@ -21246,7 +21245,7 @@ function LP({
|
|
|
21246
21245
|
style: {
|
|
21247
21246
|
textAlign: "right"
|
|
21248
21247
|
},
|
|
21249
|
-
children:
|
|
21248
|
+
children: qt(s).format({
|
|
21250
21249
|
output: "percent",
|
|
21251
21250
|
mantissa: 1
|
|
21252
21251
|
})
|
|
@@ -21258,7 +21257,7 @@ function LP({
|
|
|
21258
21257
|
style: {
|
|
21259
21258
|
textAlign: "right"
|
|
21260
21259
|
},
|
|
21261
|
-
children:
|
|
21260
|
+
children: qt(c).format({
|
|
21262
21261
|
output: "percent",
|
|
21263
21262
|
mantissa: 1
|
|
21264
21263
|
})
|
|
@@ -21482,7 +21481,7 @@ function zP({
|
|
|
21482
21481
|
})
|
|
21483
21482
|
});
|
|
21484
21483
|
}
|
|
21485
|
-
class jP extends
|
|
21484
|
+
class jP extends an {
|
|
21486
21485
|
constructor() {
|
|
21487
21486
|
super(...arguments);
|
|
21488
21487
|
he(this, "VERSION", 1);
|
|
@@ -21503,7 +21502,7 @@ const HP = {
|
|
|
21503
21502
|
createConfig() {
|
|
21504
21503
|
return {
|
|
21505
21504
|
version: 1,
|
|
21506
|
-
config:
|
|
21505
|
+
config: Ut(Js)
|
|
21507
21506
|
};
|
|
21508
21507
|
}
|
|
21509
21508
|
}, ec = {
|
|
@@ -21645,7 +21644,7 @@ function BP({
|
|
|
21645
21644
|
})
|
|
21646
21645
|
});
|
|
21647
21646
|
}
|
|
21648
|
-
class GP extends
|
|
21647
|
+
class GP extends an {
|
|
21649
21648
|
constructor() {
|
|
21650
21649
|
super(...arguments);
|
|
21651
21650
|
he(this, "VERSION", 1);
|
|
@@ -21669,7 +21668,7 @@ const WP = {
|
|
|
21669
21668
|
createConfig() {
|
|
21670
21669
|
return {
|
|
21671
21670
|
version: 1,
|
|
21672
|
-
config:
|
|
21671
|
+
config: Ut(ec)
|
|
21673
21672
|
};
|
|
21674
21673
|
}
|
|
21675
21674
|
}, tc = {
|
|
@@ -21714,14 +21713,14 @@ function UP(e) {
|
|
|
21714
21713
|
return Nr(e, ["variables"]);
|
|
21715
21714
|
}
|
|
21716
21715
|
function YP(e) {
|
|
21717
|
-
const t =
|
|
21716
|
+
const t = Ut(e), n = lt(t, "color.valueRange");
|
|
21718
21717
|
return n !== void 0 && Bl(
|
|
21719
21718
|
t,
|
|
21720
21719
|
"color.valueRange",
|
|
21721
21720
|
n.map((r) => Number(r))
|
|
21722
21721
|
), t;
|
|
21723
21722
|
}
|
|
21724
|
-
class XP extends
|
|
21723
|
+
class XP extends an {
|
|
21725
21724
|
constructor() {
|
|
21726
21725
|
super(...arguments);
|
|
21727
21726
|
he(this, "VERSION", 2);
|
|
@@ -21988,7 +21987,7 @@ function rI({
|
|
|
21988
21987
|
})
|
|
21989
21988
|
});
|
|
21990
21989
|
}
|
|
21991
|
-
class oI extends
|
|
21990
|
+
class oI extends an {
|
|
21992
21991
|
constructor() {
|
|
21993
21992
|
super(...arguments);
|
|
21994
21993
|
he(this, "VERSION", 1);
|
|
@@ -22009,7 +22008,7 @@ const iI = {
|
|
|
22009
22008
|
createConfig() {
|
|
22010
22009
|
return {
|
|
22011
22010
|
version: 1,
|
|
22012
|
-
config:
|
|
22011
|
+
config: Ut(nc)
|
|
22013
22012
|
};
|
|
22014
22013
|
}
|
|
22015
22014
|
};
|
|
@@ -24170,7 +24169,7 @@ function aA(e) {
|
|
|
24170
24169
|
});
|
|
24171
24170
|
}
|
|
24172
24171
|
function lA(e) {
|
|
24173
|
-
const t =
|
|
24172
|
+
const t = qt(e.value).format({
|
|
24174
24173
|
thousandSeparated: !0
|
|
24175
24174
|
});
|
|
24176
24175
|
return /* @__PURE__ */ l(_a, {
|
|
@@ -24179,7 +24178,7 @@ function lA(e) {
|
|
|
24179
24178
|
});
|
|
24180
24179
|
}
|
|
24181
24180
|
function sA(e) {
|
|
24182
|
-
const t =
|
|
24181
|
+
const t = qt(e.value).format({
|
|
24183
24182
|
output: "percent",
|
|
24184
24183
|
mantissa: 3
|
|
24185
24184
|
});
|
|
@@ -24476,7 +24475,7 @@ function mA(e) {
|
|
|
24476
24475
|
s(o), d();
|
|
24477
24476
|
}, b = () => {
|
|
24478
24477
|
d(), t == null || t(a);
|
|
24479
|
-
}, y =
|
|
24478
|
+
}, y = qt(o).format({
|
|
24480
24479
|
average: !0
|
|
24481
24480
|
});
|
|
24482
24481
|
return /* @__PURE__ */ m("div", {
|
|
@@ -24599,7 +24598,7 @@ const vA = Y(({
|
|
|
24599
24598
|
variant: "outline",
|
|
24600
24599
|
onClick: u,
|
|
24601
24600
|
children: s == null ? void 0 : s.displayName
|
|
24602
|
-
}), /* @__PURE__ */ l(
|
|
24601
|
+
}), /* @__PURE__ */ l(Xt, {
|
|
24603
24602
|
size: 508,
|
|
24604
24603
|
title: "Setup color interpolation",
|
|
24605
24604
|
opened: c,
|
|
@@ -24721,7 +24720,7 @@ const OA = ln(({
|
|
|
24721
24720
|
flexGrow: 0
|
|
24722
24721
|
},
|
|
24723
24722
|
children: "Custom Cell Content"
|
|
24724
|
-
}), /* @__PURE__ */ l(
|
|
24723
|
+
}), /* @__PURE__ */ l(Xt, {
|
|
24725
24724
|
size: 800,
|
|
24726
24725
|
title: "Custom cell content",
|
|
24727
24726
|
opened: r,
|
|
@@ -25191,7 +25190,7 @@ function PA({
|
|
|
25191
25190
|
})]
|
|
25192
25191
|
});
|
|
25193
25192
|
}
|
|
25194
|
-
class IA extends
|
|
25193
|
+
class IA extends an {
|
|
25195
25194
|
constructor() {
|
|
25196
25195
|
super(...arguments);
|
|
25197
25196
|
he(this, "VERSION", 2);
|
|
@@ -25220,7 +25219,7 @@ const $l = {
|
|
|
25220
25219
|
createConfig() {
|
|
25221
25220
|
return {
|
|
25222
25221
|
version: 2,
|
|
25223
|
-
config:
|
|
25222
|
+
config: Ut(rc)
|
|
25224
25223
|
};
|
|
25225
25224
|
},
|
|
25226
25225
|
displayName: "Table",
|
|
@@ -25461,7 +25460,7 @@ function FA({
|
|
|
25461
25460
|
})
|
|
25462
25461
|
});
|
|
25463
25462
|
}
|
|
25464
|
-
class zA extends
|
|
25463
|
+
class zA extends an {
|
|
25465
25464
|
constructor() {
|
|
25466
25465
|
super(...arguments);
|
|
25467
25466
|
he(this, "VERSION", 1);
|
|
@@ -25482,7 +25481,7 @@ const jA = {
|
|
|
25482
25481
|
createConfig() {
|
|
25483
25482
|
return {
|
|
25484
25483
|
version: 1,
|
|
25485
|
-
config:
|
|
25484
|
+
config: Ut(sc)
|
|
25486
25485
|
};
|
|
25487
25486
|
}
|
|
25488
25487
|
}, Lh = {
|
|
@@ -25693,7 +25692,7 @@ function XA(e, t) {
|
|
|
25693
25692
|
}
|
|
25694
25693
|
const QA = (e) => {
|
|
25695
25694
|
try {
|
|
25696
|
-
return
|
|
25695
|
+
return qt(e).format({
|
|
25697
25696
|
trimMantissa: !0,
|
|
25698
25697
|
mantissa: 2
|
|
25699
25698
|
});
|
|
@@ -25836,7 +25835,7 @@ function r$(e, t, n) {
|
|
|
25836
25835
|
if (typeof g == "object" && (Array.isArray(g.value) && g.value.length === 2 ? h = g.value[1] : h = g.value), !d)
|
|
25837
25836
|
return h;
|
|
25838
25837
|
try {
|
|
25839
|
-
return
|
|
25838
|
+
return qt(h).format(d);
|
|
25840
25839
|
} catch (v) {
|
|
25841
25840
|
return console.error(v), h;
|
|
25842
25841
|
}
|
|
@@ -25931,7 +25930,7 @@ function i$({
|
|
|
25931
25930
|
}, [i, a]), b = ie(() => {
|
|
25932
25931
|
let y = c;
|
|
25933
25932
|
return d && (y -= f), g && (y -= h), Math.max(0, y);
|
|
25934
|
-
}, [d, f, g, h]);
|
|
25933
|
+
}, [c, d, f, g, h]);
|
|
25935
25934
|
return /* @__PURE__ */ m(Te, {
|
|
25936
25935
|
children: [Ad(i.stats.templates.top) && /* @__PURE__ */ l(L, {
|
|
25937
25936
|
ref: u,
|
|
@@ -26220,7 +26219,7 @@ const c$ = ln(({
|
|
|
26220
26219
|
},
|
|
26221
26220
|
children: "Setup"
|
|
26222
26221
|
})
|
|
26223
|
-
}), /* @__PURE__ */ l(
|
|
26222
|
+
}), /* @__PURE__ */ l(Xt, {
|
|
26224
26223
|
size: 800,
|
|
26225
26224
|
title: "Setup dynamic size",
|
|
26226
26225
|
opened: r,
|
|
@@ -26717,7 +26716,7 @@ const S$ = ({
|
|
|
26717
26716
|
flexGrow: 0
|
|
26718
26717
|
},
|
|
26719
26718
|
children: "Customize Label"
|
|
26720
|
-
}), /* @__PURE__ */ l(
|
|
26719
|
+
}), /* @__PURE__ */ l(Xt, {
|
|
26721
26720
|
size: 800,
|
|
26722
26721
|
title: "Customize label content",
|
|
26723
26722
|
opened: r,
|
|
@@ -27189,7 +27188,7 @@ function I$(e) {
|
|
|
27189
27188
|
};
|
|
27190
27189
|
return we.defaultsDeep(t, e);
|
|
27191
27190
|
}
|
|
27192
|
-
class A$ extends
|
|
27191
|
+
class A$ extends an {
|
|
27193
27192
|
constructor() {
|
|
27194
27193
|
super(...arguments);
|
|
27195
27194
|
he(this, "VERSION", 4);
|
|
@@ -27238,7 +27237,7 @@ const $$ = {
|
|
|
27238
27237
|
createConfig() {
|
|
27239
27238
|
return {
|
|
27240
27239
|
version: 4,
|
|
27241
|
-
config:
|
|
27240
|
+
config: Ut(cc)
|
|
27242
27241
|
};
|
|
27243
27242
|
},
|
|
27244
27243
|
triggers: [Lh]
|
|
@@ -27325,7 +27324,7 @@ const $$ = {
|
|
|
27325
27324
|
flexGrow: 0
|
|
27326
27325
|
},
|
|
27327
27326
|
children: "Edit Content"
|
|
27328
|
-
}), /* @__PURE__ */ l(
|
|
27327
|
+
}), /* @__PURE__ */ l(Xt, {
|
|
27329
27328
|
size: 800,
|
|
27330
27329
|
title: "Text content",
|
|
27331
27330
|
opened: r,
|
|
@@ -27495,7 +27494,7 @@ function z$({
|
|
|
27495
27494
|
})
|
|
27496
27495
|
});
|
|
27497
27496
|
}
|
|
27498
|
-
class j$ extends
|
|
27497
|
+
class j$ extends an {
|
|
27499
27498
|
constructor() {
|
|
27500
27499
|
super(...arguments);
|
|
27501
27500
|
he(this, "VERSION", 1);
|
|
@@ -27516,7 +27515,7 @@ const H$ = {
|
|
|
27516
27515
|
createConfig() {
|
|
27517
27516
|
return {
|
|
27518
27517
|
version: 1,
|
|
27519
|
-
config:
|
|
27518
|
+
config: Ut(uc)
|
|
27520
27519
|
};
|
|
27521
27520
|
}
|
|
27522
27521
|
}, K$ = [{
|
|
@@ -27664,7 +27663,7 @@ async function q$(e, t) {
|
|
|
27664
27663
|
}
|
|
27665
27664
|
}));
|
|
27666
27665
|
}
|
|
27667
|
-
class U$ extends
|
|
27666
|
+
class U$ extends an {
|
|
27668
27667
|
constructor() {
|
|
27669
27668
|
super(...arguments);
|
|
27670
27669
|
he(this, "VERSION", 1);
|
|
@@ -28101,7 +28100,7 @@ const pN = Y(({
|
|
|
28101
28100
|
const {
|
|
28102
28101
|
panel: e,
|
|
28103
28102
|
data: t
|
|
28104
|
-
} =
|
|
28103
|
+
} = Qt(), n = e.viz, {
|
|
28105
28104
|
vizManager: r
|
|
28106
28105
|
} = or(Gn), o = e.json, i = In(() => r.getOrCreateInstance(o), [r, n.type]), a = In(() => new fc(i, r.resolveComponent(n.type), Ea), [i, n.type]);
|
|
28107
28106
|
return Re(() => i.instanceData.watchItem(
|
|
@@ -28127,7 +28126,7 @@ const pN = Y(({
|
|
|
28127
28126
|
}, vN = Y(() => {
|
|
28128
28127
|
const {
|
|
28129
28128
|
panel: e
|
|
28130
|
-
} =
|
|
28129
|
+
} = Qt(), [t, n] = H.useState(e.description), r = e.description !== t, o = H.useCallback(() => {
|
|
28131
28130
|
!r || e.setDescription(t);
|
|
28132
28131
|
}, [r, t]);
|
|
28133
28132
|
return /* @__PURE__ */ m(j, {
|
|
@@ -28164,7 +28163,7 @@ const pN = Y(({
|
|
|
28164
28163
|
}), yN = Y(() => {
|
|
28165
28164
|
const {
|
|
28166
28165
|
panel: e
|
|
28167
|
-
} =
|
|
28166
|
+
} = Qt(), {
|
|
28168
28167
|
style: t
|
|
28169
28168
|
} = e;
|
|
28170
28169
|
return /* @__PURE__ */ l($e, {
|
|
@@ -28182,7 +28181,7 @@ const pN = Y(({
|
|
|
28182
28181
|
border: t
|
|
28183
28182
|
}
|
|
28184
28183
|
}
|
|
28185
|
-
} =
|
|
28184
|
+
} = Qt();
|
|
28186
28185
|
return /* @__PURE__ */ l(ro, {
|
|
28187
28186
|
children: /* @__PURE__ */ m(j, {
|
|
28188
28187
|
mx: "auto",
|
|
@@ -28232,7 +28231,7 @@ const pN = Y(({
|
|
|
28232
28231
|
}), wN = Y(() => {
|
|
28233
28232
|
const {
|
|
28234
28233
|
panel: e
|
|
28235
|
-
} =
|
|
28234
|
+
} = Qt(), {
|
|
28236
28235
|
title: t,
|
|
28237
28236
|
setTitle: n
|
|
28238
28237
|
} = e, [r, o] = Zd(t), i = t !== r, a = H.useCallback(() => {
|
|
@@ -28306,7 +28305,7 @@ const SN = Y(function() {
|
|
|
28306
28305
|
queryID: n,
|
|
28307
28306
|
setQueryID: r
|
|
28308
28307
|
}
|
|
28309
|
-
} =
|
|
28308
|
+
} = Qt(), o = H.useMemo(() => t.queries.current.map((i) => ({
|
|
28310
28309
|
value: i.id,
|
|
28311
28310
|
label: i.name
|
|
28312
28311
|
})), [t.queries.current]);
|
|
@@ -28380,7 +28379,7 @@ class CN {
|
|
|
28380
28379
|
}
|
|
28381
28380
|
}
|
|
28382
28381
|
function Gh(e) {
|
|
28383
|
-
const { panel: t } =
|
|
28382
|
+
const { panel: t } = Qt();
|
|
28384
28383
|
return _n(
|
|
28385
28384
|
(n) => {
|
|
28386
28385
|
const r = n.getRequired(Ft.vizManager), o = r.resolveComponent(e.viz.type);
|
|
@@ -28457,7 +28456,7 @@ function TN(e, t) {
|
|
|
28457
28456
|
queryID: s,
|
|
28458
28457
|
variables: c
|
|
28459
28458
|
}
|
|
28460
|
-
} =
|
|
28459
|
+
} = Qt(), u = {
|
|
28461
28460
|
title: o,
|
|
28462
28461
|
id: i,
|
|
28463
28462
|
description: a,
|
|
@@ -28549,7 +28548,7 @@ const ON = ["richText", "button"], Uh = Y(function({
|
|
|
28549
28548
|
panel: {
|
|
28550
28549
|
viz: n
|
|
28551
28550
|
}
|
|
28552
|
-
} =
|
|
28551
|
+
} = Qt();
|
|
28553
28552
|
return /* @__PURE__ */ l(Uh, {
|
|
28554
28553
|
viz: n,
|
|
28555
28554
|
data: e,
|
|
@@ -28587,7 +28586,7 @@ function DN() {
|
|
|
28587
28586
|
setQueryID: c,
|
|
28588
28587
|
id: u
|
|
28589
28588
|
}
|
|
28590
|
-
} =
|
|
28589
|
+
} = Qt(), {
|
|
28591
28590
|
vizManager: d
|
|
28592
28591
|
} = or(Gn), f = {
|
|
28593
28592
|
title: r,
|
|
@@ -28622,7 +28621,7 @@ const PN = Y(() => {
|
|
|
28622
28621
|
panel: {
|
|
28623
28622
|
viz: t
|
|
28624
28623
|
}
|
|
28625
|
-
} =
|
|
28624
|
+
} = Qt(), [n, r] = Zd(t.type), o = t.type !== n, {
|
|
28626
28625
|
vizManager: i
|
|
28627
28626
|
} = or(Gn), a = H.useCallback(() => {
|
|
28628
28627
|
if (!o)
|
|
@@ -28774,7 +28773,7 @@ class LN {
|
|
|
28774
28773
|
}
|
|
28775
28774
|
addNew() {
|
|
28776
28775
|
const t = this.panel.variables.filter((n) => n.name.startsWith(Qa.name)).length;
|
|
28777
|
-
this.panel.addVariable(
|
|
28776
|
+
this.panel.addVariable(Ut({ ...Qa, name: `${Qa.name}${t || ""}` })), this.selected = Kd(this.panel.variables);
|
|
28778
28777
|
}
|
|
28779
28778
|
select(t) {
|
|
28780
28779
|
this.selected = t;
|
|
@@ -28789,7 +28788,7 @@ class LN {
|
|
|
28789
28788
|
}
|
|
28790
28789
|
}
|
|
28791
28790
|
function VN() {
|
|
28792
|
-
const { panel: e } =
|
|
28791
|
+
const { panel: e } = Qt();
|
|
28793
28792
|
return In(() => new LN(e), [e]);
|
|
28794
28793
|
}
|
|
28795
28794
|
const FN = H.forwardRef(function({
|
|
@@ -28898,7 +28897,7 @@ const FN = H.forwardRef(function({
|
|
|
28898
28897
|
classes: n
|
|
28899
28898
|
} = Yh(), {
|
|
28900
28899
|
data: r
|
|
28901
|
-
} =
|
|
28900
|
+
} = Qt();
|
|
28902
28901
|
return /* @__PURE__ */ m(P, {
|
|
28903
28902
|
style: {
|
|
28904
28903
|
height: "100%"
|
|
@@ -28976,13 +28975,13 @@ const FN = H.forwardRef(function({
|
|
|
28976
28975
|
} = H.useContext(Hn), [o, i] = Be("Visualization"), {
|
|
28977
28976
|
panel: a,
|
|
28978
28977
|
loading: s
|
|
28979
|
-
} =
|
|
28978
|
+
} = Qt(), {
|
|
28980
28979
|
id: c,
|
|
28981
28980
|
title: u
|
|
28982
28981
|
} = a;
|
|
28983
28982
|
return H.useEffect(() => {
|
|
28984
28983
|
r(t);
|
|
28985
|
-
}, [t]), /* @__PURE__ */ l(
|
|
28984
|
+
}, [t]), /* @__PURE__ */ l(Xt, {
|
|
28986
28985
|
size: "96vw",
|
|
28987
28986
|
overflow: "inside",
|
|
28988
28987
|
opened: t,
|
|
@@ -29063,7 +29062,7 @@ const FN = H.forwardRef(function({
|
|
|
29063
29062
|
}) => {
|
|
29064
29063
|
const t = st(), n = Em(), [r, o] = H.useState(!1), i = () => o(!0), a = () => o(!1), {
|
|
29065
29064
|
panel: s
|
|
29066
|
-
} =
|
|
29065
|
+
} = Qt(), {
|
|
29067
29066
|
id: c,
|
|
29068
29067
|
query: u
|
|
29069
29068
|
} = s, {
|
|
@@ -29158,7 +29157,7 @@ const FN = H.forwardRef(function({
|
|
|
29158
29157
|
const XN = Y(function() {
|
|
29159
29158
|
const {
|
|
29160
29159
|
panel: t
|
|
29161
|
-
} =
|
|
29160
|
+
} = Qt(), {
|
|
29162
29161
|
title: n
|
|
29163
29162
|
} = t;
|
|
29164
29163
|
return n ? /* @__PURE__ */ l(P, {
|
|
@@ -29399,7 +29398,7 @@ const eL = H.forwardRef(({
|
|
|
29399
29398
|
view: t
|
|
29400
29399
|
}) => {
|
|
29401
29400
|
const n = t.config;
|
|
29402
|
-
return /* @__PURE__ */ l(
|
|
29401
|
+
return /* @__PURE__ */ l(Xt, {
|
|
29403
29402
|
size: n.width,
|
|
29404
29403
|
overflow: "inside",
|
|
29405
29404
|
opened: !0,
|
|
@@ -29508,7 +29507,7 @@ const eL = H.forwardRef(({
|
|
|
29508
29507
|
view: t
|
|
29509
29508
|
}) => {
|
|
29510
29509
|
const n = st(), r = t.config, o = n.views.visibleViewIDs.includes(t.id), i = () => n.views.rmVisibleViewID(t.id);
|
|
29511
|
-
return /* @__PURE__ */ l(
|
|
29510
|
+
return /* @__PURE__ */ l(Xt, {
|
|
29512
29511
|
size: r.width,
|
|
29513
29512
|
centered: !0,
|
|
29514
29513
|
overflow: "inside",
|
|
@@ -29767,12 +29766,12 @@ const eL = H.forwardRef(({
|
|
|
29767
29766
|
visibleInViewsIDs: O.array(O.string),
|
|
29768
29767
|
auto_submit: O.optional(O.boolean, !1),
|
|
29769
29768
|
type: O.enumeration("DashboardFilterType", [
|
|
29770
|
-
|
|
29771
|
-
|
|
29772
|
-
|
|
29773
|
-
|
|
29774
|
-
|
|
29775
|
-
|
|
29769
|
+
Wt.Select,
|
|
29770
|
+
Wt.MultiSelect,
|
|
29771
|
+
Wt.TreeSelect,
|
|
29772
|
+
Wt.TextInput,
|
|
29773
|
+
Wt.Checkbox,
|
|
29774
|
+
Wt.DateRange
|
|
29776
29775
|
]),
|
|
29777
29776
|
config: O.union(
|
|
29778
29777
|
nm,
|
|
@@ -29788,7 +29787,16 @@ const eL = H.forwardRef(({
|
|
|
29788
29787
|
return Array.isArray(t) ? [...t] : t;
|
|
29789
29788
|
},
|
|
29790
29789
|
get usingDefaultValue() {
|
|
29791
|
-
return e.type !==
|
|
29790
|
+
return e.type !== Wt.TreeSelect;
|
|
29791
|
+
},
|
|
29792
|
+
get auto_submit_supported() {
|
|
29793
|
+
return [Wt.Select, Wt.Checkbox, Wt.DateRange].includes(
|
|
29794
|
+
e.type
|
|
29795
|
+
);
|
|
29796
|
+
}
|
|
29797
|
+
})).views((e) => ({
|
|
29798
|
+
get should_auto_submit() {
|
|
29799
|
+
return e.auto_submit_supported && e.auto_submit;
|
|
29792
29800
|
}
|
|
29793
29801
|
})).actions((e) => ({
|
|
29794
29802
|
setKey(t) {
|
|
@@ -29802,22 +29810,22 @@ const eL = H.forwardRef(({
|
|
|
29802
29810
|
},
|
|
29803
29811
|
setType(t) {
|
|
29804
29812
|
switch (t) {
|
|
29805
|
-
case
|
|
29813
|
+
case Wt.Select:
|
|
29806
29814
|
e.config = wL();
|
|
29807
29815
|
break;
|
|
29808
|
-
case
|
|
29816
|
+
case Wt.MultiSelect:
|
|
29809
29817
|
e.config = yL();
|
|
29810
29818
|
break;
|
|
29811
|
-
case
|
|
29819
|
+
case Wt.TreeSelect:
|
|
29812
29820
|
e.config = bL();
|
|
29813
29821
|
break;
|
|
29814
|
-
case
|
|
29822
|
+
case Wt.TextInput:
|
|
29815
29823
|
e.config = wg();
|
|
29816
29824
|
break;
|
|
29817
|
-
case
|
|
29825
|
+
case Wt.Checkbox:
|
|
29818
29826
|
e.config = gL();
|
|
29819
29827
|
break;
|
|
29820
|
-
case
|
|
29828
|
+
case Wt.DateRange:
|
|
29821
29829
|
e.config = mL();
|
|
29822
29830
|
break;
|
|
29823
29831
|
}
|
|
@@ -29827,7 +29835,7 @@ const eL = H.forwardRef(({
|
|
|
29827
29835
|
e.visibleInViewsIDs.length = 0, e.visibleInViewsIDs.push(...t);
|
|
29828
29836
|
},
|
|
29829
29837
|
setAutoSubmit(t) {
|
|
29830
|
-
e.auto_submit = t;
|
|
29838
|
+
e.auto_submit = e.auto_submit_supported && t;
|
|
29831
29839
|
}
|
|
29832
29840
|
}));
|
|
29833
29841
|
function rm(e, t) {
|
|
@@ -31098,6 +31106,6 @@ export {
|
|
|
31098
31106
|
CL as getInitialFiltersPayload,
|
|
31099
31107
|
$V as getVersion,
|
|
31100
31108
|
st as useModelContext,
|
|
31101
|
-
|
|
31109
|
+
Qt as usePanelContext,
|
|
31102
31110
|
sm as useTopLevelServices
|
|
31103
31111
|
};
|