@devtable/dashboard 5.10.0 → 6.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/dashboard.es.js
CHANGED
|
@@ -6,12 +6,12 @@ import { useModals as ss, ModalsProvider as Oo } from "@mantine/modals";
|
|
|
6
6
|
import { useCreation as Be, usePrevious as ls, useRequest as Jt, useBoolean as $t, useAsyncEffect as Et, useLatest as uo } from "ahooks";
|
|
7
7
|
import { observer as I } from "mobx-react-lite";
|
|
8
8
|
import * as go from "react";
|
|
9
|
-
import w, { useEffect as Z, createContext as zo, forwardRef as nn, useState as me, useMemo as L, createElement as rn, useCallback as
|
|
9
|
+
import w, { useEffect as Z, createContext as zo, forwardRef as nn, useState as me, useMemo as L, createElement as rn, useCallback as kt, useContext as He, useRef as cs } from "react";
|
|
10
10
|
import K, { get as Q, isFunction as us, omit as on, values as Po, unset as ds, isObject as To, set as Lo, orderBy as gs, last as ps, defaults as le, minBy as fs, maxBy as No, isEqual as we, groupBy as Ae, cloneDeep as qo, defaultsDeep as We, merge as jo, isEmpty as Go, noop as ms, findLastIndex as hs, isNumber as vs, isString as Bo, range as bs, template as Ho, cloneDeepWith as ys, throttle as xs, pick as Wo } from "lodash";
|
|
11
11
|
import { useForm as Ue, useWatch as Cs, Controller as D, useFieldArray as Oe } from "react-hook-form";
|
|
12
12
|
import { DateRangePicker as ws } from "@mantine/dates";
|
|
13
13
|
import nt from "dayjs";
|
|
14
|
-
import { Calendar as Ss, DeviceFloppy as se, Refresh as Uo, Trash as ie, PlaylistAdd as mt, Recycle as Yo, Settings as Qo, Filter as _s, Database as Rs, Share as Ds, Download as Jo, Code as Is, InfoCircle as Vs, ArrowRight as Vn, ArrowsMaximize as
|
|
14
|
+
import { Calendar as Ss, DeviceFloppy as se, Refresh as Uo, Trash as ie, PlaylistAdd as mt, Recycle as Yo, Settings as Qo, Filter as _s, Database as Rs, Share as Ds, Download as Jo, Code as Is, InfoCircle as Vs, ArrowRight as Vn, ArrowsMaximize as ks, Copy as Ms, ArrowLeft as Fs, ArrowsMove as $s, ChevronDownRight as Es } from "tabler-icons-react";
|
|
15
15
|
import As from "jszip";
|
|
16
16
|
import { Prism as $e } from "@mantine/prism";
|
|
17
17
|
import { showNotification as an } from "@mantine/notifications";
|
|
@@ -22,7 +22,7 @@ import { randomId as Ie, useClipboard as Gs, useElementSize as Ln, useInputState
|
|
|
22
22
|
import ei, { RichTextEditor as ti } from "@mantine/rte";
|
|
23
23
|
import { makeAutoObservable as ar, runInAction as Dt, observable as ni, toJS as sn, reaction as sr } from "mobx";
|
|
24
24
|
import fo from "eventemitter2";
|
|
25
|
-
import
|
|
25
|
+
import Mt from "chroma-js";
|
|
26
26
|
import "echarts-gl";
|
|
27
27
|
import * as ge from "echarts/core";
|
|
28
28
|
import { GridComponent as vt, VisualMapComponent as Bs, LegendComponent as bt, TooltipComponent as yt, DataZoomComponent as ln, MarkLineComponent as ri, MarkAreaComponent as Hs } from "echarts/components";
|
|
@@ -163,8 +163,8 @@ function nl() {
|
|
|
163
163
|
var _ = b && m[b] || m[v];
|
|
164
164
|
return typeof _ == "function" ? _ : null;
|
|
165
165
|
}
|
|
166
|
-
var
|
|
167
|
-
function
|
|
166
|
+
var k = e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
|
|
167
|
+
function M(m) {
|
|
168
168
|
{
|
|
169
169
|
for (var _ = arguments.length, V = new Array(_ > 1 ? _ - 1 : 0), O = 1; O < _; O++)
|
|
170
170
|
V[O - 1] = arguments[O];
|
|
@@ -173,7 +173,7 @@ function nl() {
|
|
|
173
173
|
}
|
|
174
174
|
function z(m, _, V) {
|
|
175
175
|
{
|
|
176
|
-
var O =
|
|
176
|
+
var O = k.ReactDebugCurrentFrame, W = O.getStackAddendum();
|
|
177
177
|
W !== "" && (_ += "%s", V = V.concat([W]));
|
|
178
178
|
var J = V.map(function(H) {
|
|
179
179
|
return String(H);
|
|
@@ -183,7 +183,7 @@ function nl() {
|
|
|
183
183
|
}
|
|
184
184
|
var N = !1, Y = !1, fe = !1, ce = !1, _e = !1, be;
|
|
185
185
|
be = Symbol.for("react.module.reference");
|
|
186
|
-
function
|
|
186
|
+
function ke(m) {
|
|
187
187
|
return !!(typeof m == "string" || typeof m == "function" || m === r || m === a || _e || m === o || m === d || m === u || ce || m === h || N || Y || fe || typeof m == "object" && m !== null && (m.$$typeof === f || m.$$typeof === p || m.$$typeof === s || m.$$typeof === l || m.$$typeof === c || m.$$typeof === be || m.getModuleId !== void 0));
|
|
188
188
|
}
|
|
189
189
|
function ue(m, _, V) {
|
|
@@ -193,13 +193,13 @@ function nl() {
|
|
|
193
193
|
var W = _.displayName || _.name || "";
|
|
194
194
|
return W !== "" ? V + "(" + W + ")" : V;
|
|
195
195
|
}
|
|
196
|
-
function
|
|
196
|
+
function Me(m) {
|
|
197
197
|
return m.displayName || "Context";
|
|
198
198
|
}
|
|
199
199
|
function ye(m) {
|
|
200
200
|
if (m == null)
|
|
201
201
|
return null;
|
|
202
|
-
if (typeof m.tag == "number" &&
|
|
202
|
+
if (typeof m.tag == "number" && M("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."), typeof m == "function")
|
|
203
203
|
return m.displayName || m.name || null;
|
|
204
204
|
if (typeof m == "string")
|
|
205
205
|
return m;
|
|
@@ -221,10 +221,10 @@ function nl() {
|
|
|
221
221
|
switch (m.$$typeof) {
|
|
222
222
|
case l:
|
|
223
223
|
var _ = m;
|
|
224
|
-
return
|
|
224
|
+
return Me(_) + ".Consumer";
|
|
225
225
|
case s:
|
|
226
226
|
var V = m;
|
|
227
|
-
return
|
|
227
|
+
return Me(V._context) + ".Provider";
|
|
228
228
|
case c:
|
|
229
229
|
return ue(m, m.render, "ForwardRef");
|
|
230
230
|
case p:
|
|
@@ -300,10 +300,10 @@ function nl() {
|
|
|
300
300
|
})
|
|
301
301
|
});
|
|
302
302
|
}
|
|
303
|
-
Ye < 0 &&
|
|
303
|
+
Ye < 0 && M("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
|
|
304
304
|
}
|
|
305
305
|
}
|
|
306
|
-
var yn =
|
|
306
|
+
var yn = k.ReactCurrentDispatcher, xn;
|
|
307
307
|
function Pt(m, _, V) {
|
|
308
308
|
{
|
|
309
309
|
if (xn === void 0)
|
|
@@ -319,8 +319,8 @@ function nl() {
|
|
|
319
319
|
}
|
|
320
320
|
var Cn = !1, Tt;
|
|
321
321
|
{
|
|
322
|
-
var
|
|
323
|
-
Tt = new
|
|
322
|
+
var ka = typeof WeakMap == "function" ? WeakMap : Map;
|
|
323
|
+
Tt = new ka();
|
|
324
324
|
}
|
|
325
325
|
function Yr(m, _) {
|
|
326
326
|
if (!m || Cn)
|
|
@@ -393,7 +393,7 @@ function nl() {
|
|
|
393
393
|
var ut = m ? m.displayName || m.name : "", so = ut ? Pt(ut) : "";
|
|
394
394
|
return typeof m == "function" && Tt.set(m, so), so;
|
|
395
395
|
}
|
|
396
|
-
function
|
|
396
|
+
function Ma(m, _, V) {
|
|
397
397
|
return Yr(m, !1);
|
|
398
398
|
}
|
|
399
399
|
function Fa(m) {
|
|
@@ -416,7 +416,7 @@ function nl() {
|
|
|
416
416
|
if (typeof m == "object")
|
|
417
417
|
switch (m.$$typeof) {
|
|
418
418
|
case c:
|
|
419
|
-
return
|
|
419
|
+
return Ma(m.render);
|
|
420
420
|
case p:
|
|
421
421
|
return Lt(m.type, _, V);
|
|
422
422
|
case f: {
|
|
@@ -429,7 +429,7 @@ function nl() {
|
|
|
429
429
|
}
|
|
430
430
|
return "";
|
|
431
431
|
}
|
|
432
|
-
var Nt = Object.prototype.hasOwnProperty, Qr = {}, Jr =
|
|
432
|
+
var Nt = Object.prototype.hasOwnProperty, Qr = {}, Jr = k.ReactDebugCurrentFrame;
|
|
433
433
|
function qt(m) {
|
|
434
434
|
if (m) {
|
|
435
435
|
var _ = m._owner, V = Lt(m.type, m._source, _ ? _.type : null);
|
|
@@ -452,7 +452,7 @@ function nl() {
|
|
|
452
452
|
} catch (oe) {
|
|
453
453
|
q = oe;
|
|
454
454
|
}
|
|
455
|
-
q && !(q instanceof Error) && (qt(W),
|
|
455
|
+
q && !(q instanceof Error) && (qt(W), M("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).", O || "React class", V, H, typeof q), qt(null)), q instanceof Error && !(q.message in Qr) && (Qr[q.message] = !0, qt(W), M("Failed %s type: %s", V, q.message), qt(null));
|
|
456
456
|
}
|
|
457
457
|
}
|
|
458
458
|
}
|
|
@@ -478,9 +478,9 @@ function nl() {
|
|
|
478
478
|
}
|
|
479
479
|
function Kr(m) {
|
|
480
480
|
if (Oa(m))
|
|
481
|
-
return
|
|
481
|
+
return M("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", Aa(m)), Xr(m);
|
|
482
482
|
}
|
|
483
|
-
var xt =
|
|
483
|
+
var xt = k.ReactCurrentOwner, za = {
|
|
484
484
|
key: !0,
|
|
485
485
|
ref: !0,
|
|
486
486
|
__self: !0,
|
|
@@ -506,13 +506,13 @@ function nl() {
|
|
|
506
506
|
function La(m, _) {
|
|
507
507
|
if (typeof m.ref == "string" && xt.current && _ && xt.current.stateNode !== _) {
|
|
508
508
|
var V = ye(xt.current.type);
|
|
509
|
-
Sn[V] || (
|
|
509
|
+
Sn[V] || (M('Component "%s" contains the string ref "%s". Support for string refs will be removed in a future major release. This case cannot be automatically converted to an arrow function. We ask you to manually fix this case by using useRef() or createRef() instead. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-string-ref', ye(xt.current.type), m.ref), Sn[V] = !0);
|
|
510
510
|
}
|
|
511
511
|
}
|
|
512
512
|
function Na(m, _) {
|
|
513
513
|
{
|
|
514
514
|
var V = function() {
|
|
515
|
-
Zr || (Zr = !0,
|
|
515
|
+
Zr || (Zr = !0, M("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", _));
|
|
516
516
|
};
|
|
517
517
|
V.isReactWarning = !0, Object.defineProperty(m, "key", {
|
|
518
518
|
get: V,
|
|
@@ -523,7 +523,7 @@ function nl() {
|
|
|
523
523
|
function qa(m, _) {
|
|
524
524
|
{
|
|
525
525
|
var V = function() {
|
|
526
|
-
eo || (eo = !0,
|
|
526
|
+
eo || (eo = !0, M("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", _));
|
|
527
527
|
};
|
|
528
528
|
V.isReactWarning = !0, Object.defineProperty(m, "ref", {
|
|
529
529
|
get: V,
|
|
@@ -575,7 +575,7 @@ function nl() {
|
|
|
575
575
|
return ja(m, q, he, W, O, xt.current, H);
|
|
576
576
|
}
|
|
577
577
|
}
|
|
578
|
-
var _n =
|
|
578
|
+
var _n = k.ReactCurrentOwner, to = k.ReactDebugCurrentFrame;
|
|
579
579
|
function ct(m) {
|
|
580
580
|
if (m) {
|
|
581
581
|
var _ = m._owner, V = Lt(m.type, m._source, _ ? _.type : null);
|
|
@@ -634,7 +634,7 @@ Check the top-level render call using <` + V + ">.");
|
|
|
634
634
|
return;
|
|
635
635
|
ro[V] = !0;
|
|
636
636
|
var O = "";
|
|
637
|
-
m && m._owner && m._owner !== _n.current && (O = " It was passed a child from " + ye(m._owner.type) + "."), ct(m),
|
|
637
|
+
m && m._owner && m._owner !== _n.current && (O = " It was passed a child from " + ye(m._owner.type) + "."), ct(m), M('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', V, O), ct(null);
|
|
638
638
|
}
|
|
639
639
|
}
|
|
640
640
|
function io(m, _) {
|
|
@@ -674,9 +674,9 @@ Check the top-level render call using <` + V + ">.");
|
|
|
674
674
|
} else if (_.PropTypes !== void 0 && !Rn) {
|
|
675
675
|
Rn = !0;
|
|
676
676
|
var W = ye(_);
|
|
677
|
-
|
|
677
|
+
M("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", W || "Unknown");
|
|
678
678
|
}
|
|
679
|
-
typeof _.getDefaultProps == "function" && !_.getDefaultProps.isReactClassApproved &&
|
|
679
|
+
typeof _.getDefaultProps == "function" && !_.getDefaultProps.isReactClassApproved && M("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.");
|
|
680
680
|
}
|
|
681
681
|
}
|
|
682
682
|
function Ua(m) {
|
|
@@ -684,23 +684,23 @@ Check the top-level render call using <` + V + ">.");
|
|
|
684
684
|
for (var _ = Object.keys(m.props), V = 0; V < _.length; V++) {
|
|
685
685
|
var O = _[V];
|
|
686
686
|
if (O !== "children" && O !== "key") {
|
|
687
|
-
ct(m),
|
|
687
|
+
ct(m), M("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", O), ct(null);
|
|
688
688
|
break;
|
|
689
689
|
}
|
|
690
690
|
}
|
|
691
|
-
m.ref !== null && (ct(m),
|
|
691
|
+
m.ref !== null && (ct(m), M("Invalid attribute `ref` supplied to `React.Fragment`."), ct(null));
|
|
692
692
|
}
|
|
693
693
|
}
|
|
694
694
|
function ao(m, _, V, O, W, J) {
|
|
695
695
|
{
|
|
696
|
-
var H =
|
|
696
|
+
var H = ke(m);
|
|
697
697
|
if (!H) {
|
|
698
698
|
var q = "";
|
|
699
699
|
(m === void 0 || typeof m == "object" && m !== null && Object.keys(m).length === 0) && (q += " You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");
|
|
700
700
|
var he = Ba(W);
|
|
701
701
|
he ? q += he : q += no();
|
|
702
702
|
var oe;
|
|
703
|
-
m === null ? oe = "null" : wn(m) ? oe = "array" : m !== void 0 && m.$$typeof === t ? (oe = "<" + (ye(m.type) || "Unknown") + " />", q = " Did you accidentally export a JSX literal instead of a component?") : oe = typeof m,
|
|
703
|
+
m === null ? oe = "null" : wn(m) ? oe = "array" : m !== void 0 && m.$$typeof === t ? (oe = "<" + (ye(m.type) || "Unknown") + " />", q = " Did you accidentally export a JSX literal instead of a component?") : oe = typeof m, M("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", oe, q);
|
|
704
704
|
}
|
|
705
705
|
var ae = Ga(m, _, V, W, J);
|
|
706
706
|
if (ae == null)
|
|
@@ -714,7 +714,7 @@ Check the top-level render call using <` + V + ">.");
|
|
|
714
714
|
io(Re[ut], m);
|
|
715
715
|
Object.freeze && Object.freeze(Re);
|
|
716
716
|
} else
|
|
717
|
-
|
|
717
|
+
M("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");
|
|
718
718
|
else
|
|
719
719
|
io(Re, m);
|
|
720
720
|
}
|
|
@@ -1141,9 +1141,9 @@ var dn = { exports: {} };
|
|
|
1141
1141
|
z = v ? z : z.replace(/^data:[^;]*;/, "data:attachment/file;"), f ? f.location.href = z : location = z, f = null;
|
|
1142
1142
|
}, S.readAsDataURL(d);
|
|
1143
1143
|
} else {
|
|
1144
|
-
var
|
|
1145
|
-
f ? f.location =
|
|
1146
|
-
|
|
1144
|
+
var k = s.URL || s.webkitURL, M = k.createObjectURL(d);
|
|
1145
|
+
f ? f.location = M : location.href = M, f = null, setTimeout(function() {
|
|
1146
|
+
k.revokeObjectURL(M);
|
|
1147
1147
|
}, 4e4);
|
|
1148
1148
|
}
|
|
1149
1149
|
});
|
|
@@ -1643,13 +1643,13 @@ function Il(e) {
|
|
|
1643
1643
|
return /* @__PURE__ */ g("svg", { xmlns: "http://www.w3.org/2000/svg", className: "icon icon-tabler icon-tabler-arrow-down", width: n, height: n, viewBox: "0 0 24 24", strokeWidth: s, stroke: o, fill: "none", strokeLinecap: "round", strokeLinejoin: "round", ...l, children: [/* @__PURE__ */ i("path", { stroke: "none", d: "M0 0h24v24H0z", fill: "none" }), /* @__PURE__ */ i("line", { x1: 12, y1: 5, x2: 12, y2: 19 }), /* @__PURE__ */ i("line", { x1: 18, y1: 13, x2: 12, y2: 19 }), /* @__PURE__ */ i("line", { x1: 6, y1: 13, x2: 12, y2: 19 })] });
|
|
1644
1644
|
}
|
|
1645
1645
|
var Vl = ["size", "color", "stroke"];
|
|
1646
|
-
function
|
|
1646
|
+
function kl(e) {
|
|
1647
1647
|
var t = e.size, n = t === void 0 ? 24 : t, r = e.color, o = r === void 0 ? "currentColor" : r, a = e.stroke, s = a === void 0 ? 2 : a, l = fr(e, Vl);
|
|
1648
1648
|
return /* @__PURE__ */ g("svg", { xmlns: "http://www.w3.org/2000/svg", className: "icon icon-tabler icon-tabler-arrow-up", width: n, height: n, viewBox: "0 0 24 24", strokeWidth: s, stroke: o, fill: "none", strokeLinecap: "round", strokeLinejoin: "round", ...l, children: [/* @__PURE__ */ i("path", { stroke: "none", d: "M0 0h24v24H0z", fill: "none" }), /* @__PURE__ */ i("line", { x1: 12, y1: 5, x2: 12, y2: 19 }), /* @__PURE__ */ i("line", { x1: 18, y1: 11, x2: 12, y2: 5 }), /* @__PURE__ */ i("line", { x1: 6, y1: 11, x2: 12, y2: 5 })] });
|
|
1649
1649
|
}
|
|
1650
|
-
var
|
|
1650
|
+
var Ml = ["size", "color", "stroke"];
|
|
1651
1651
|
function Fl(e) {
|
|
1652
|
-
var t = e.size, n = t === void 0 ? 24 : t, r = e.color, o = r === void 0 ? "currentColor" : r, a = e.stroke, s = a === void 0 ? 2 : a, l = fr(e,
|
|
1652
|
+
var t = e.size, n = t === void 0 ? 24 : t, r = e.color, o = r === void 0 ? "currentColor" : r, a = e.stroke, s = a === void 0 ? 2 : a, l = fr(e, Ml);
|
|
1653
1653
|
return /* @__PURE__ */ g("svg", { xmlns: "http://www.w3.org/2000/svg", className: "icon icon-tabler icon-tabler-trash", width: n, height: n, viewBox: "0 0 24 24", strokeWidth: s, stroke: o, fill: "none", strokeLinecap: "round", strokeLinejoin: "round", ...l, children: [/* @__PURE__ */ i("path", { stroke: "none", d: "M0 0h24v24H0z", fill: "none" }), /* @__PURE__ */ i("line", { x1: 4, y1: 7, x2: 20, y2: 7 }), /* @__PURE__ */ i("line", { x1: 10, y1: 11, x2: 10, y2: 17 }), /* @__PURE__ */ i("line", { x1: 14, y1: 11, x2: 14, y2: 17 }), /* @__PURE__ */ i("path", { d: "M5 7l1 12a2 2 0 0 0 2 2h8a2 2 0 0 0 2 -2l1 -12" }), /* @__PURE__ */ i("path", { d: "M9 7v-3a1 1 0 0 1 1 -1h4a1 1 0 0 1 1 1v3" })] });
|
|
1654
1654
|
}
|
|
1655
1655
|
const $l = (e) => {
|
|
@@ -2890,13 +2890,13 @@ const oc = I(() => {
|
|
|
2890
2890
|
saveChanges: t
|
|
2891
2891
|
}) {
|
|
2892
2892
|
const n = X(), r = w.useCallback(() => {
|
|
2893
|
-
const
|
|
2893
|
+
const k = n.queries.json, M = n.views.json, z = n.sqlSnippets.json, N = n.filters.current, Y = n.mock_context.current;
|
|
2894
2894
|
return {
|
|
2895
2895
|
filters: N,
|
|
2896
|
-
views:
|
|
2896
|
+
views: M,
|
|
2897
2897
|
definition: {
|
|
2898
2898
|
sqlSnippets: z,
|
|
2899
|
-
queries:
|
|
2899
|
+
queries: k,
|
|
2900
2900
|
mock_context: Y
|
|
2901
2901
|
},
|
|
2902
2902
|
version: n.version
|
|
@@ -2907,8 +2907,8 @@ const oc = I(() => {
|
|
|
2907
2907
|
inEditMode: s,
|
|
2908
2908
|
inUseMode: l
|
|
2909
2909
|
} = w.useContext(Le), [c, d] = w.useState(!1), u = () => d(!0), p = () => d(!1), [f, h] = w.useState(!1), b = () => h(!0), v = () => h(!1), S = () => {
|
|
2910
|
-
const
|
|
2911
|
-
gl(n.name,
|
|
2910
|
+
const k = JSON.stringify(r(), null, 2);
|
|
2911
|
+
gl(n.name, k);
|
|
2912
2912
|
};
|
|
2913
2913
|
return /* @__PURE__ */ g(y, {
|
|
2914
2914
|
position: "apart",
|
|
@@ -3357,7 +3357,7 @@ class mr {
|
|
|
3357
3357
|
);
|
|
3358
3358
|
}
|
|
3359
3359
|
}
|
|
3360
|
-
class
|
|
3360
|
+
class ki {
|
|
3361
3361
|
constructor(t) {
|
|
3362
3362
|
F(this, "rootRef");
|
|
3363
3363
|
this.rootRef = ni({ current: t });
|
|
@@ -3434,18 +3434,18 @@ class Ic {
|
|
|
3434
3434
|
name: t.viz.type,
|
|
3435
3435
|
type: t.viz.type,
|
|
3436
3436
|
messageChannels: new Dc(),
|
|
3437
|
-
instanceData: new
|
|
3437
|
+
instanceData: new ki(t.viz.conf)
|
|
3438
3438
|
};
|
|
3439
3439
|
return this.instances.set(t.id, r), r;
|
|
3440
3440
|
}
|
|
3441
3441
|
}
|
|
3442
|
-
function
|
|
3442
|
+
function Mi(e, t, n) {
|
|
3443
3443
|
return {
|
|
3444
3444
|
vizManager: n,
|
|
3445
3445
|
locale: "zh",
|
|
3446
3446
|
msgChannels: e.messageChannels,
|
|
3447
3447
|
instanceData: e.instanceData,
|
|
3448
|
-
pluginData: new
|
|
3448
|
+
pluginData: new ki({}),
|
|
3449
3449
|
colorPalette: {
|
|
3450
3450
|
getColor() {
|
|
3451
3451
|
return () => "";
|
|
@@ -3460,7 +3460,7 @@ const Vc = (e) => {
|
|
|
3460
3460
|
vizManager: n,
|
|
3461
3461
|
data: r
|
|
3462
3462
|
} = e, o = n.resolveComponent(t.viz.type), a = n.getOrCreateInstance(t), s = {
|
|
3463
|
-
...
|
|
3463
|
+
...Mi(a, r, n),
|
|
3464
3464
|
viewport: {
|
|
3465
3465
|
width: t.layout.w,
|
|
3466
3466
|
height: t.layout.h
|
|
@@ -3471,14 +3471,14 @@ const Vc = (e) => {
|
|
|
3471
3471
|
instance: a,
|
|
3472
3472
|
...on(e, ["panel", "vizManager", "data"])
|
|
3473
3473
|
});
|
|
3474
|
-
},
|
|
3474
|
+
}, kc = (e) => {
|
|
3475
3475
|
const {
|
|
3476
3476
|
vizManager: t,
|
|
3477
3477
|
panel: n,
|
|
3478
3478
|
panelInfoEditor: r,
|
|
3479
3479
|
data: o
|
|
3480
3480
|
} = e, a = t.resolveComponent(n.viz.type), s = t.getOrCreateInstance(n), l = {
|
|
3481
|
-
...
|
|
3481
|
+
...Mi(s, o, t),
|
|
3482
3482
|
panelInfoEditor: r
|
|
3483
3483
|
}, c = a.configRender;
|
|
3484
3484
|
return /* @__PURE__ */ i(c, {
|
|
@@ -3487,16 +3487,16 @@ const Vc = (e) => {
|
|
|
3487
3487
|
...on(e, ["panel", "vizManager", "data", "panelInfoEditor"])
|
|
3488
3488
|
});
|
|
3489
3489
|
}, Fi = (e, t) => {
|
|
3490
|
-
const n =
|
|
3490
|
+
const n = Mt.bezier(e), r = Mt.bezier(t);
|
|
3491
3491
|
return function(o) {
|
|
3492
3492
|
return o < 50 ? n(o * 2 / 100).hex() : r((o - 50) * 2 / 100).hex();
|
|
3493
3493
|
};
|
|
3494
3494
|
}, gn = (e) => {
|
|
3495
|
-
const t =
|
|
3495
|
+
const t = Mt.bezier(e);
|
|
3496
3496
|
return function(n) {
|
|
3497
3497
|
return t(n / 100).hex();
|
|
3498
3498
|
};
|
|
3499
|
-
},
|
|
3499
|
+
}, Mc = {
|
|
3500
3500
|
type: "interpolation",
|
|
3501
3501
|
displayName: "Red / Green",
|
|
3502
3502
|
getColor: Fi(["darkred", "deeppink", "lightyellow"], ["lightyellow", "lightgreen", "teal"]),
|
|
@@ -3532,7 +3532,7 @@ const Vc = (e) => {
|
|
|
3532
3532
|
getColor: gn(["#fff7f1", "darkorange", "#b60000"]),
|
|
3533
3533
|
name: "orange",
|
|
3534
3534
|
category: "sequential"
|
|
3535
|
-
}, zc = "5.
|
|
3535
|
+
}, zc = "5.12.0";
|
|
3536
3536
|
class Pc {
|
|
3537
3537
|
constructor(t) {
|
|
3538
3538
|
F(this, "staticColors", /* @__PURE__ */ new Map());
|
|
@@ -3639,7 +3639,7 @@ const U = (e, t) => {
|
|
|
3639
3639
|
}), e.watchItem(t, (l) => {
|
|
3640
3640
|
a(l);
|
|
3641
3641
|
})));
|
|
3642
|
-
const s =
|
|
3642
|
+
const s = kt(
|
|
3643
3643
|
async (l) => {
|
|
3644
3644
|
await e.setItem(t, l), a(l);
|
|
3645
3645
|
},
|
|
@@ -4566,10 +4566,10 @@ const xr = (e, t) => (n) => Boolean(Ot(n) && iu.test(n) && n.startsWith(e) || t
|
|
|
4566
4566
|
test: xr("hsl", "hue"),
|
|
4567
4567
|
parse: zi("hue", "saturation", "lightness"),
|
|
4568
4568
|
transform: ({ hue: e, saturation: t, lightness: n, alpha: r = 1 }) => "hsla(" + Math.round(e) + ", " + Vt.transform(It(t)) + ", " + Vt.transform(It(n)) + ", " + It(Oi.transform(r)) + ")"
|
|
4569
|
-
}, su = Ai(0, 255),
|
|
4569
|
+
}, su = Ai(0, 255), kn = Object.assign(Object.assign({}, mn), { transform: (e) => Math.round(su(e)) }), Xe = {
|
|
4570
4570
|
test: xr("rgb", "red"),
|
|
4571
4571
|
parse: zi("red", "green", "blue"),
|
|
4572
|
-
transform: ({ red: e, green: t, blue: n, alpha: r = 1 }) => "rgba(" +
|
|
4572
|
+
transform: ({ red: e, green: t, blue: n, alpha: r = 1 }) => "rgba(" + kn.transform(e) + ", " + kn.transform(t) + ", " + kn.transform(n) + ", " + It(Oi.transform(r)) + ")"
|
|
4573
4573
|
};
|
|
4574
4574
|
function lu(e) {
|
|
4575
4575
|
let t = "", n = "", r = "", o = "";
|
|
@@ -4620,7 +4620,7 @@ function du(e) {
|
|
|
4620
4620
|
return qi(e)(t.map(uu));
|
|
4621
4621
|
}
|
|
4622
4622
|
const ji = { test: cu, parse: Ni, createTransformer: qi, getAnimatableNone: du };
|
|
4623
|
-
function
|
|
4623
|
+
function Mn(e, t, n) {
|
|
4624
4624
|
return n < 0 && (n += 1), n > 1 && (n -= 1), n < 1 / 6 ? e + (t - e) * 6 * n : n < 1 / 2 ? t : n < 2 / 3 ? e + (t - e) * (2 / 3 - n) * 6 : e;
|
|
4625
4625
|
}
|
|
4626
4626
|
function yo({ hue: e, saturation: t, lightness: n, alpha: r }) {
|
|
@@ -4630,7 +4630,7 @@ function yo({ hue: e, saturation: t, lightness: n, alpha: r }) {
|
|
|
4630
4630
|
o = a = s = n;
|
|
4631
4631
|
else {
|
|
4632
4632
|
const l = n < 0.5 ? n * (1 + t) : n + t - n * t, c = 2 * n - l;
|
|
4633
|
-
o =
|
|
4633
|
+
o = Mn(c, l, e + 1 / 3), a = Mn(c, l, e), s = Mn(c, l, e - 1 / 3);
|
|
4634
4634
|
}
|
|
4635
4635
|
return {
|
|
4636
4636
|
red: Math.round(o * 255),
|
|
@@ -4805,7 +4805,7 @@ function Bn(e, t, n) {
|
|
|
4805
4805
|
});
|
|
4806
4806
|
});
|
|
4807
4807
|
}
|
|
4808
|
-
function
|
|
4808
|
+
function ku(e, t) {
|
|
4809
4809
|
const n = {};
|
|
4810
4810
|
return e.forEach((r) => {
|
|
4811
4811
|
const { name: o, data_field: a, aggregation: s } = r, l = br(t, a, s);
|
|
@@ -4813,7 +4813,7 @@ function Mu(e, t) {
|
|
|
4813
4813
|
}), n;
|
|
4814
4814
|
}
|
|
4815
4815
|
function Yi(e, t, n) {
|
|
4816
|
-
const r =
|
|
4816
|
+
const r = ku(t, n), o = /^\{(.+)\}(.*)$/;
|
|
4817
4817
|
return e.split("$").map((a) => {
|
|
4818
4818
|
var d;
|
|
4819
4819
|
const s = o.exec(a);
|
|
@@ -4840,7 +4840,7 @@ const wr = {
|
|
|
4840
4840
|
reference_lines: []
|
|
4841
4841
|
};
|
|
4842
4842
|
ge.use([ln, Ws, ri, vt, bt, yt, it]);
|
|
4843
|
-
function
|
|
4843
|
+
function Mu(e, t, n) {
|
|
4844
4844
|
const r = t.reduce((o, a) => {
|
|
4845
4845
|
const s = Cr(a, n);
|
|
4846
4846
|
return o[a.name] = zt(a, s), o;
|
|
@@ -4914,10 +4914,17 @@ function Fu({
|
|
|
4914
4914
|
},
|
|
4915
4915
|
xAxis: [{
|
|
4916
4916
|
type: "category",
|
|
4917
|
-
name: a.name
|
|
4917
|
+
name: a.name,
|
|
4918
|
+
axisTick: {
|
|
4919
|
+
show: !0,
|
|
4920
|
+
alignWithLabel: !0
|
|
4921
|
+
}
|
|
4918
4922
|
}],
|
|
4919
4923
|
yAxis: [{
|
|
4920
|
-
name: s.name
|
|
4924
|
+
name: s.name,
|
|
4925
|
+
axisLine: {
|
|
4926
|
+
show: !0
|
|
4927
|
+
}
|
|
4921
4928
|
}],
|
|
4922
4929
|
series: [{
|
|
4923
4930
|
name: s.name,
|
|
@@ -4928,7 +4935,7 @@ function Fu({
|
|
|
4928
4935
|
},
|
|
4929
4936
|
boxWidth: [10, 40],
|
|
4930
4937
|
datasetIndex: 1
|
|
4931
|
-
}, ...
|
|
4938
|
+
}, ...Mu(d, c, n)]
|
|
4932
4939
|
};
|
|
4933
4940
|
return !t || !r || !o ? null : /* @__PURE__ */ i(at, {
|
|
4934
4941
|
echarts: ge,
|
|
@@ -5450,8 +5457,8 @@ function Bu({ x_axis_data_key: e }, {
|
|
|
5450
5457
|
return h.data = p.map((v) => v[t]), h;
|
|
5451
5458
|
const b = Ae(p, a);
|
|
5452
5459
|
return Object.entries(b).map(([v, S]) => {
|
|
5453
|
-
const
|
|
5454
|
-
return
|
|
5460
|
+
const k = qo(h);
|
|
5461
|
+
return k.data = qu(u, S, e, t), k.name = v, k.color = void 0, k;
|
|
5455
5462
|
});
|
|
5456
5463
|
}
|
|
5457
5464
|
function Hu(e, t, n, r) {
|
|
@@ -5486,6 +5493,10 @@ function Uu(e, t, n) {
|
|
|
5486
5493
|
data: t,
|
|
5487
5494
|
name: (r = e.x_axis_name) != null ? r : "",
|
|
5488
5495
|
id: "main-x-axis",
|
|
5496
|
+
axisTick: {
|
|
5497
|
+
show: !0,
|
|
5498
|
+
alignWithLabel: !0
|
|
5499
|
+
},
|
|
5489
5500
|
...e.x_axis
|
|
5490
5501
|
},
|
|
5491
5502
|
...n
|
|
@@ -5502,12 +5513,18 @@ function Yu(e, t) {
|
|
|
5502
5513
|
show: !0,
|
|
5503
5514
|
formatter: (s = t[o]) != null ? s : t.default
|
|
5504
5515
|
},
|
|
5516
|
+
axisLine: {
|
|
5517
|
+
show: !0
|
|
5518
|
+
},
|
|
5505
5519
|
nameTextStyle: {
|
|
5506
5520
|
fontWeight: "bold",
|
|
5507
5521
|
align: n
|
|
5508
5522
|
},
|
|
5509
5523
|
nameLocation: "end",
|
|
5510
|
-
nameGap: 15
|
|
5524
|
+
nameGap: 15,
|
|
5525
|
+
splitLine: {
|
|
5526
|
+
show: !1
|
|
5527
|
+
}
|
|
5511
5528
|
};
|
|
5512
5529
|
});
|
|
5513
5530
|
}
|
|
@@ -5538,6 +5555,13 @@ const Qu = {
|
|
|
5538
5555
|
nameLocation: "center",
|
|
5539
5556
|
nameTextStyle: {
|
|
5540
5557
|
fontWeight: "bold"
|
|
5558
|
+
},
|
|
5559
|
+
splitLine: {
|
|
5560
|
+
show: !1
|
|
5561
|
+
},
|
|
5562
|
+
axisTick: {
|
|
5563
|
+
show: !0,
|
|
5564
|
+
alignWithLabel: !0
|
|
5541
5565
|
}
|
|
5542
5566
|
}
|
|
5543
5567
|
],
|
|
@@ -7105,7 +7129,7 @@ function Vd(e) {
|
|
|
7105
7129
|
step: b = !1,
|
|
7106
7130
|
group_by_key: v = "",
|
|
7107
7131
|
display_name_on_line: S = !1,
|
|
7108
|
-
lineStyle:
|
|
7132
|
+
lineStyle: k = {
|
|
7109
7133
|
type: "solid",
|
|
7110
7134
|
width: 1
|
|
7111
7135
|
}
|
|
@@ -7126,12 +7150,12 @@ function Vd(e) {
|
|
|
7126
7150
|
step: b,
|
|
7127
7151
|
group_by_key: v,
|
|
7128
7152
|
display_name_on_line: S,
|
|
7129
|
-
lineStyle:
|
|
7153
|
+
lineStyle: k
|
|
7130
7154
|
};
|
|
7131
7155
|
}
|
|
7132
7156
|
return e.map(t);
|
|
7133
7157
|
}
|
|
7134
|
-
function
|
|
7158
|
+
function kd(e) {
|
|
7135
7159
|
return e || {
|
|
7136
7160
|
templates: {
|
|
7137
7161
|
top: "",
|
|
@@ -7140,14 +7164,14 @@ function Md(e) {
|
|
|
7140
7164
|
variables: []
|
|
7141
7165
|
};
|
|
7142
7166
|
}
|
|
7143
|
-
function
|
|
7167
|
+
function Md({
|
|
7144
7168
|
series: e,
|
|
7145
7169
|
stats: t,
|
|
7146
7170
|
...n
|
|
7147
7171
|
}) {
|
|
7148
7172
|
return {
|
|
7149
7173
|
series: Vd(e != null ? e : []),
|
|
7150
|
-
stats:
|
|
7174
|
+
stats: kd(t),
|
|
7151
7175
|
...n
|
|
7152
7176
|
};
|
|
7153
7177
|
}
|
|
@@ -7157,7 +7181,7 @@ function Fd({
|
|
|
7157
7181
|
const {
|
|
7158
7182
|
value: t,
|
|
7159
7183
|
set: n
|
|
7160
|
-
} = U(e.instanceData, "config"), r = e.data, o = L(() => We({}, t, Sr), [t]), a = L(() =>
|
|
7184
|
+
} = U(e.instanceData, "config"), r = e.data, o = L(() => We({}, t, Sr), [t]), a = L(() => Md(o), [o]);
|
|
7161
7185
|
Z(() => {
|
|
7162
7186
|
!we(o, a) && (console.log("config malformed, resetting to defaults", o, a), n(a));
|
|
7163
7187
|
}, [o, a]);
|
|
@@ -7388,9 +7412,9 @@ function zd({
|
|
|
7388
7412
|
barData: d,
|
|
7389
7413
|
lineData: u
|
|
7390
7414
|
} = L(() => {
|
|
7391
|
-
const f = n.map((v) => [v[a.data_key], Number(v[s])]).sort((v, S) => S[1] - v[1]), h = f.reduce((v, S) => v + S[1], 0), b = f.reduce((v, S,
|
|
7392
|
-
const
|
|
7393
|
-
return v.push([S[0],
|
|
7415
|
+
const f = n.map((v) => [v[a.data_key], Number(v[s])]).sort((v, S) => S[1] - v[1]), h = f.reduce((v, S) => v + S[1], 0), b = f.reduce((v, S, k) => {
|
|
7416
|
+
const M = k === 0 ? 0 : v[k - 1][1];
|
|
7417
|
+
return v.push([S[0], M + S[1]]), v;
|
|
7394
7418
|
}, []).map((v) => [v[0], v[1] / h]);
|
|
7395
7419
|
return {
|
|
7396
7420
|
barData: f,
|
|
@@ -7416,6 +7440,13 @@ function zd({
|
|
|
7416
7440
|
nameTextStyle: {
|
|
7417
7441
|
fontWeight: "bold",
|
|
7418
7442
|
align: "right"
|
|
7443
|
+
},
|
|
7444
|
+
splitLine: {
|
|
7445
|
+
show: !1
|
|
7446
|
+
},
|
|
7447
|
+
axisTick: {
|
|
7448
|
+
show: !0,
|
|
7449
|
+
alignWithLabel: !0
|
|
7419
7450
|
}
|
|
7420
7451
|
}],
|
|
7421
7452
|
yAxis: [{
|
|
@@ -7424,6 +7455,12 @@ function zd({
|
|
|
7424
7455
|
nameTextStyle: {
|
|
7425
7456
|
fontWeight: "bold",
|
|
7426
7457
|
align: "right"
|
|
7458
|
+
},
|
|
7459
|
+
axisLine: {
|
|
7460
|
+
show: !0
|
|
7461
|
+
},
|
|
7462
|
+
splitLine: {
|
|
7463
|
+
show: !1
|
|
7427
7464
|
}
|
|
7428
7465
|
}, {
|
|
7429
7466
|
name: c.name,
|
|
@@ -7435,6 +7472,9 @@ function zd({
|
|
|
7435
7472
|
axisLabel: {
|
|
7436
7473
|
show: !0,
|
|
7437
7474
|
formatter: Rr
|
|
7475
|
+
},
|
|
7476
|
+
splitLine: {
|
|
7477
|
+
show: !1
|
|
7438
7478
|
}
|
|
7439
7479
|
}],
|
|
7440
7480
|
series: [{
|
|
@@ -8264,10 +8304,17 @@ function ig(e, t) {
|
|
|
8264
8304
|
), { regressionSeries: r } = rg(e, n), o = {
|
|
8265
8305
|
xAxis: {
|
|
8266
8306
|
type: "category",
|
|
8267
|
-
name: (a = e.x_axis.name) != null ? a : ""
|
|
8307
|
+
name: (a = e.x_axis.name) != null ? a : "",
|
|
8308
|
+
axisTick: {
|
|
8309
|
+
show: !0,
|
|
8310
|
+
alignWithLabel: !0
|
|
8311
|
+
}
|
|
8268
8312
|
},
|
|
8269
8313
|
yAxis: {
|
|
8270
|
-
name: (s = e.y_axis.name) != null ? s : ""
|
|
8314
|
+
name: (s = e.y_axis.name) != null ? s : "",
|
|
8315
|
+
axisLine: {
|
|
8316
|
+
show: !0
|
|
8317
|
+
}
|
|
8271
8318
|
},
|
|
8272
8319
|
series: [
|
|
8273
8320
|
{
|
|
@@ -8785,7 +8832,7 @@ const gg = {
|
|
|
8785
8832
|
viewRender: sg,
|
|
8786
8833
|
configRender: ug,
|
|
8787
8834
|
createConfig: () => Vr
|
|
8788
|
-
},
|
|
8835
|
+
}, kr = {
|
|
8789
8836
|
content: ""
|
|
8790
8837
|
};
|
|
8791
8838
|
function Ji(e) {
|
|
@@ -8828,7 +8875,7 @@ function fg({
|
|
|
8828
8875
|
const {
|
|
8829
8876
|
value: t,
|
|
8830
8877
|
set: n
|
|
8831
|
-
} = U(e.instanceData, "config"), r = L(() => le({}, t,
|
|
8878
|
+
} = U(e.instanceData, "config"), r = L(() => le({}, t, kr), [t]), {
|
|
8832
8879
|
control: o,
|
|
8833
8880
|
handleSubmit: a,
|
|
8834
8881
|
watch: s,
|
|
@@ -8885,7 +8932,7 @@ class mg extends Se {
|
|
|
8885
8932
|
F(this, "VERSION", 1);
|
|
8886
8933
|
}
|
|
8887
8934
|
fixMalformedConfig(n) {
|
|
8888
|
-
return le({}, n,
|
|
8935
|
+
return le({}, n, kr);
|
|
8889
8936
|
}
|
|
8890
8937
|
configVersions() {
|
|
8891
8938
|
this.version(1, (n) => ({
|
|
@@ -8900,8 +8947,8 @@ const hg = {
|
|
|
8900
8947
|
name: "richText",
|
|
8901
8948
|
viewRender: pg,
|
|
8902
8949
|
configRender: fg,
|
|
8903
|
-
createConfig: () =>
|
|
8904
|
-
},
|
|
8950
|
+
createConfig: () => kr
|
|
8951
|
+
}, Mr = {
|
|
8905
8952
|
align: "center",
|
|
8906
8953
|
template: "The variable ${value} is defined in Variables section",
|
|
8907
8954
|
variables: [
|
|
@@ -8969,7 +9016,7 @@ function yg({
|
|
|
8969
9016
|
context: e
|
|
8970
9017
|
}) {
|
|
8971
9018
|
const {
|
|
8972
|
-
value: t =
|
|
9019
|
+
value: t = Mr
|
|
8973
9020
|
} = U(e.instanceData, "config"), {
|
|
8974
9021
|
template: n,
|
|
8975
9022
|
variables: r,
|
|
@@ -9064,7 +9111,7 @@ function wg({
|
|
|
9064
9111
|
align: f,
|
|
9065
9112
|
template: h = "",
|
|
9066
9113
|
variables: b = []
|
|
9067
|
-
} = We({}, n,
|
|
9114
|
+
} = We({}, n, Mr);
|
|
9068
9115
|
return {
|
|
9069
9116
|
variables: b,
|
|
9070
9117
|
template: h,
|
|
@@ -9139,7 +9186,7 @@ const Sg = {
|
|
|
9139
9186
|
createConfig() {
|
|
9140
9187
|
return {
|
|
9141
9188
|
version: 1,
|
|
9142
|
-
config:
|
|
9189
|
+
config: Mr
|
|
9143
9190
|
};
|
|
9144
9191
|
},
|
|
9145
9192
|
displayName: "Stats",
|
|
@@ -9325,7 +9372,7 @@ function Ve(e, t) {
|
|
|
9325
9372
|
function Zt(e) {
|
|
9326
9373
|
return e instanceof Function;
|
|
9327
9374
|
}
|
|
9328
|
-
function
|
|
9375
|
+
function kg(e, t) {
|
|
9329
9376
|
const n = [], r = (o) => {
|
|
9330
9377
|
o.forEach((a) => {
|
|
9331
9378
|
n.push(a);
|
|
@@ -9359,7 +9406,7 @@ function P(e, t, n) {
|
|
|
9359
9406
|
return o;
|
|
9360
9407
|
};
|
|
9361
9408
|
}
|
|
9362
|
-
function
|
|
9409
|
+
function Mg(e, t, n, r) {
|
|
9363
9410
|
var o, a;
|
|
9364
9411
|
const l = {
|
|
9365
9412
|
...e._getDefaultColumnDef(),
|
|
@@ -9594,10 +9641,10 @@ function Ht(e, t, n, r) {
|
|
|
9594
9641
|
headers: []
|
|
9595
9642
|
}, v = [];
|
|
9596
9643
|
f.forEach((S) => {
|
|
9597
|
-
const
|
|
9644
|
+
const k = [...v].reverse()[0], M = S.column.depth === b.depth;
|
|
9598
9645
|
let z, N = !1;
|
|
9599
|
-
if (
|
|
9600
|
-
|
|
9646
|
+
if (M && S.column.parent ? z = S.column.parent : (z = S.column, N = !0), k && (k == null ? void 0 : k.column) === z)
|
|
9647
|
+
k.subHeaders.push(S);
|
|
9601
9648
|
else {
|
|
9602
9649
|
const Y = _o(n, z, {
|
|
9603
9650
|
id: [r, h, z.id, S == null ? void 0 : S.id].filter(Boolean).join("_"),
|
|
@@ -9616,16 +9663,16 @@ function Ht(e, t, n, r) {
|
|
|
9616
9663
|
}));
|
|
9617
9664
|
d(u, s - 1), c.reverse();
|
|
9618
9665
|
const p = (f) => f.filter((b) => b.column.getIsVisible()).map((b) => {
|
|
9619
|
-
let v = 0, S = 0,
|
|
9620
|
-
b.subHeaders && b.subHeaders.length ? (
|
|
9666
|
+
let v = 0, S = 0, k = [0];
|
|
9667
|
+
b.subHeaders && b.subHeaders.length ? (k = [], p(b.subHeaders).forEach((z) => {
|
|
9621
9668
|
let {
|
|
9622
9669
|
colSpan: N,
|
|
9623
9670
|
rowSpan: Y
|
|
9624
9671
|
} = z;
|
|
9625
|
-
v += N,
|
|
9672
|
+
v += N, k.push(Y);
|
|
9626
9673
|
})) : v = 1;
|
|
9627
|
-
const
|
|
9628
|
-
return S = S +
|
|
9674
|
+
const M = Math.min(...k);
|
|
9675
|
+
return S = S + M, b.colSpan = v, b.rowSpan = S, {
|
|
9629
9676
|
colSpan: v,
|
|
9630
9677
|
rowSpan: S
|
|
9631
9678
|
};
|
|
@@ -9714,8 +9761,8 @@ const Wt = {
|
|
|
9714
9761
|
return;
|
|
9715
9762
|
let v = {};
|
|
9716
9763
|
t.setColumnSizingInfo((S) => {
|
|
9717
|
-
var
|
|
9718
|
-
const z = b - ((
|
|
9764
|
+
var k, M;
|
|
9765
|
+
const z = b - ((k = S == null ? void 0 : S.startOffset) != null ? k : 0), N = Math.max(z / ((M = S == null ? void 0 : S.startSize) != null ? M : 0), -0.999999);
|
|
9719
9766
|
return S.columnSizingStart.forEach((Y) => {
|
|
9720
9767
|
let [fe, ce] = Y;
|
|
9721
9768
|
v[fe] = Math.round(Math.max(ce + ce * N, 0) * 100) / 100;
|
|
@@ -10972,8 +11019,8 @@ function ip(e) {
|
|
|
10972
11019
|
getAllColumns: P(() => [n._getColumnDefs()], (u) => {
|
|
10973
11020
|
const p = function(f, h, b) {
|
|
10974
11021
|
return b === void 0 && (b = 0), f.map((v) => {
|
|
10975
|
-
const S =
|
|
10976
|
-
return S.columns =
|
|
11022
|
+
const S = Mg(n, v, b, h), k = v;
|
|
11023
|
+
return S.columns = k.columns ? p(k.columns, S, b + 1) : [], S;
|
|
10977
11024
|
});
|
|
10978
11025
|
};
|
|
10979
11026
|
return p(u);
|
|
@@ -11062,7 +11109,7 @@ const sp = (e, t, n, r, o, a) => {
|
|
|
11062
11109
|
return (c = s.getValue(l)) != null ? c : e.options.renderFallbackValue;
|
|
11063
11110
|
},
|
|
11064
11111
|
subRows: a != null ? a : [],
|
|
11065
|
-
getLeafRows: () =>
|
|
11112
|
+
getLeafRows: () => kg(s.subRows, (l) => l.subRows),
|
|
11066
11113
|
getAllCells: P(() => [e.getAllLeafColumns()], (l) => l.map((c) => ap(e, s, c, c.id)), {
|
|
11067
11114
|
key: process.env.NODE_ENV === "development" && "row.getAllCells",
|
|
11068
11115
|
debug: () => {
|
|
@@ -11147,13 +11194,13 @@ function up() {
|
|
|
11147
11194
|
var f;
|
|
11148
11195
|
const b = a[h], v = s[b.id], S = (f = b == null ? void 0 : b.desc) != null ? f : !1;
|
|
11149
11196
|
if (v.sortUndefined) {
|
|
11150
|
-
const
|
|
11197
|
+
const M = u.getValue(b.id), z = p.getValue(b.id), N = typeof M > "u", Y = typeof z > "u";
|
|
11151
11198
|
if (N || Y)
|
|
11152
11199
|
return N && Y ? 0 : N ? v.sortUndefined : -v.sortUndefined;
|
|
11153
11200
|
}
|
|
11154
|
-
let
|
|
11155
|
-
if (
|
|
11156
|
-
return S && (
|
|
11201
|
+
let k = v.sortingFn(u, p, b.id);
|
|
11202
|
+
if (k !== 0)
|
|
11203
|
+
return S && (k *= -1), v.invertSorting && (k *= -1), k;
|
|
11157
11204
|
}
|
|
11158
11205
|
return u.index - p.index;
|
|
11159
11206
|
}), d.forEach((u) => {
|
|
@@ -11268,7 +11315,7 @@ const bp = ({
|
|
|
11268
11315
|
}) => {
|
|
11269
11316
|
switch (e) {
|
|
11270
11317
|
case "asc":
|
|
11271
|
-
return /* @__PURE__ */ i(
|
|
11318
|
+
return /* @__PURE__ */ i(kl, {
|
|
11272
11319
|
size: 16
|
|
11273
11320
|
});
|
|
11274
11321
|
case "desc":
|
|
@@ -11385,7 +11432,7 @@ const Rp = or((e) => ({
|
|
|
11385
11432
|
}
|
|
11386
11433
|
}));
|
|
11387
11434
|
function Ip(e) {
|
|
11388
|
-
return e ?
|
|
11435
|
+
return e ? Mt(e).oklch()[0] > 0.7 ? "black" : "white" : "inherit";
|
|
11389
11436
|
}
|
|
11390
11437
|
function Vp(e) {
|
|
11391
11438
|
const t = e.tableCellContext.bgColor;
|
|
@@ -11412,13 +11459,13 @@ function vn(e) {
|
|
|
11412
11459
|
})
|
|
11413
11460
|
});
|
|
11414
11461
|
}
|
|
11415
|
-
function
|
|
11462
|
+
function kp(e) {
|
|
11416
11463
|
return /* @__PURE__ */ i(vn, {
|
|
11417
11464
|
...e,
|
|
11418
11465
|
children: e.value
|
|
11419
11466
|
});
|
|
11420
11467
|
}
|
|
11421
|
-
function
|
|
11468
|
+
function Mp(e) {
|
|
11422
11469
|
return /* @__PURE__ */ i(vn, {
|
|
11423
11470
|
...e,
|
|
11424
11471
|
children: e.value
|
|
@@ -11446,11 +11493,11 @@ function $p(e) {
|
|
|
11446
11493
|
function Ep(e) {
|
|
11447
11494
|
switch (e.type) {
|
|
11448
11495
|
case Ke.string:
|
|
11449
|
-
return /* @__PURE__ */ i(
|
|
11496
|
+
return /* @__PURE__ */ i(kp, {
|
|
11450
11497
|
...e
|
|
11451
11498
|
});
|
|
11452
11499
|
case Ke.eloc:
|
|
11453
|
-
return /* @__PURE__ */ i(
|
|
11500
|
+
return /* @__PURE__ */ i(Mp, {
|
|
11454
11501
|
...e
|
|
11455
11502
|
});
|
|
11456
11503
|
case Ke.number:
|
|
@@ -11467,13 +11514,13 @@ const Ap = (e) => {
|
|
|
11467
11514
|
const t = mp(e), n = hp(t.triggerManager, Or.id), {
|
|
11468
11515
|
colorManager: r
|
|
11469
11516
|
} = He(Ne);
|
|
11470
|
-
return
|
|
11517
|
+
return kt((o) => new zp(e.getColIndex, o, n, t, r), [n, t, e.getColIndex]);
|
|
11471
11518
|
};
|
|
11472
11519
|
function Op({
|
|
11473
11520
|
context: e,
|
|
11474
11521
|
instance: t
|
|
11475
11522
|
}) {
|
|
11476
|
-
var _e, be,
|
|
11523
|
+
var _e, be, ke;
|
|
11477
11524
|
const n = (_e = e.data) != null ? _e : [], {
|
|
11478
11525
|
height: r,
|
|
11479
11526
|
width: o
|
|
@@ -11491,11 +11538,11 @@ function Op({
|
|
|
11491
11538
|
value_field: ue,
|
|
11492
11539
|
value_type: Ke.string
|
|
11493
11540
|
})) : l, [s, l, n]), f = Ap({
|
|
11494
|
-
getColIndex:
|
|
11541
|
+
getColIndex: kt((ue) => p.indexOf(ue.column.columnDef.meta), [p]),
|
|
11495
11542
|
vizManager: e.vizManager,
|
|
11496
11543
|
instance: t
|
|
11497
11544
|
}), h = L(() => {
|
|
11498
|
-
const ue = lp(),
|
|
11545
|
+
const ue = lp(), Me = p.map((xe) => ue.accessor(xe.value_field, {
|
|
11499
11546
|
cell: (Ye) => /* @__PURE__ */ i(Ep, {
|
|
11500
11547
|
tableCellContext: f(Ye.cell),
|
|
11501
11548
|
value: Ye.getValue(),
|
|
@@ -11510,7 +11557,7 @@ function Op({
|
|
|
11510
11557
|
cell: (xe) => xe.row.index + 1,
|
|
11511
11558
|
header: "#",
|
|
11512
11559
|
size: 10 * (n.length.toString().length + 1)
|
|
11513
|
-
}), ...
|
|
11560
|
+
}), ...Me];
|
|
11514
11561
|
}, [p, f]), [b, v] = me([]), S = fp({
|
|
11515
11562
|
data: n,
|
|
11516
11563
|
state: {
|
|
@@ -11521,18 +11568,18 @@ function Op({
|
|
|
11521
11568
|
getCoreRowModel: cp(),
|
|
11522
11569
|
getSortedRowModel: up()
|
|
11523
11570
|
}), {
|
|
11524
|
-
rows:
|
|
11525
|
-
} = S.getRowModel(),
|
|
11526
|
-
parentRef:
|
|
11527
|
-
size:
|
|
11528
|
-
estimateSize:
|
|
11571
|
+
rows: k
|
|
11572
|
+
} = S.getRowModel(), M = w.useRef(null), z = Xs({
|
|
11573
|
+
parentRef: M,
|
|
11574
|
+
size: k.length,
|
|
11575
|
+
estimateSize: kt(() => 28, []),
|
|
11529
11576
|
overscan: 20
|
|
11530
11577
|
}), {
|
|
11531
11578
|
virtualItems: N,
|
|
11532
11579
|
totalSize: Y
|
|
11533
|
-
} = z, fe = N.length > 0 && ((be = N == null ? void 0 : N[0]) == null ? void 0 : be.start) || 0, ce = N.length > 0 ? Y - (((
|
|
11580
|
+
} = z, fe = N.length > 0 && ((be = N == null ? void 0 : N[0]) == null ? void 0 : be.start) || 0, ce = N.length > 0 ? Y - (((ke = N == null ? void 0 : N[N.length - 1]) == null ? void 0 : ke.end) || 0) : 0;
|
|
11534
11581
|
return /* @__PURE__ */ i("div", {
|
|
11535
|
-
ref:
|
|
11582
|
+
ref: M,
|
|
11536
11583
|
style: {
|
|
11537
11584
|
height: r,
|
|
11538
11585
|
width: o
|
|
@@ -11549,15 +11596,15 @@ function Op({
|
|
|
11549
11596
|
children: [/* @__PURE__ */ i("thead", {
|
|
11550
11597
|
className: d.thead,
|
|
11551
11598
|
children: S.getHeaderGroups().map((ue) => /* @__PURE__ */ i("tr", {
|
|
11552
|
-
children: ue.headers.map((
|
|
11599
|
+
children: ue.headers.map((Me) => /* @__PURE__ */ i("th", {
|
|
11553
11600
|
style: {
|
|
11554
|
-
width:
|
|
11601
|
+
width: Me.getSize()
|
|
11555
11602
|
},
|
|
11556
11603
|
children: /* @__PURE__ */ i(bp, {
|
|
11557
|
-
header:
|
|
11604
|
+
header: Me,
|
|
11558
11605
|
cx: u
|
|
11559
11606
|
})
|
|
11560
|
-
},
|
|
11607
|
+
}, Me.id))
|
|
11561
11608
|
}, ue.id))
|
|
11562
11609
|
}), /* @__PURE__ */ g("tbody", {
|
|
11563
11610
|
children: [fe > 0 && /* @__PURE__ */ i("tr", {
|
|
@@ -11567,12 +11614,12 @@ function Op({
|
|
|
11567
11614
|
}
|
|
11568
11615
|
})
|
|
11569
11616
|
}), N.map((ue) => {
|
|
11570
|
-
const
|
|
11617
|
+
const Me = k[ue.index];
|
|
11571
11618
|
return /* @__PURE__ */ i("tr", {
|
|
11572
|
-
children:
|
|
11619
|
+
children: Me.getVisibleCells().map((ye) => /* @__PURE__ */ i("td", {
|
|
11573
11620
|
children: aa(ye.column.columnDef.cell, ye.getContext())
|
|
11574
11621
|
}, ye.id))
|
|
11575
|
-
},
|
|
11622
|
+
}, Me.id);
|
|
11576
11623
|
}), ce > 0 && /* @__PURE__ */ i("tr", {
|
|
11577
11624
|
children: /* @__PURE__ */ i("td", {
|
|
11578
11625
|
style: {
|
|
@@ -11705,7 +11752,7 @@ function Lp(e) {
|
|
|
11705
11752
|
l(o), u();
|
|
11706
11753
|
}, S = () => {
|
|
11707
11754
|
u(), t == null || t(s);
|
|
11708
|
-
},
|
|
11755
|
+
}, k = De(o).format({
|
|
11709
11756
|
average: !0
|
|
11710
11757
|
});
|
|
11711
11758
|
return /* @__PURE__ */ g("div", {
|
|
@@ -11719,7 +11766,7 @@ function Lp(e) {
|
|
|
11719
11766
|
color: "dimmed",
|
|
11720
11767
|
size: "sm",
|
|
11721
11768
|
className: "palette-value--up palette-value",
|
|
11722
|
-
children:
|
|
11769
|
+
children: k
|
|
11723
11770
|
}), /* @__PURE__ */ g(In, {
|
|
11724
11771
|
width: 200,
|
|
11725
11772
|
trapFocus: !0,
|
|
@@ -11731,7 +11778,7 @@ function Lp(e) {
|
|
|
11731
11778
|
className: "palette-item",
|
|
11732
11779
|
onClick: d,
|
|
11733
11780
|
style: {
|
|
11734
|
-
"--shadow-color":
|
|
11781
|
+
"--shadow-color": Mt(n).alpha(0.5).hex(),
|
|
11735
11782
|
backgroundColor: n
|
|
11736
11783
|
}
|
|
11737
11784
|
})
|
|
@@ -11766,7 +11813,7 @@ function Lp(e) {
|
|
|
11766
11813
|
color: "dimmed",
|
|
11767
11814
|
size: "sm",
|
|
11768
11815
|
className: "palette-value--bottom palette-value",
|
|
11769
|
-
children:
|
|
11816
|
+
children: k
|
|
11770
11817
|
})]
|
|
11771
11818
|
});
|
|
11772
11819
|
}
|
|
@@ -11806,8 +11853,8 @@ const Np = I(({
|
|
|
11806
11853
|
group: S.category
|
|
11807
11854
|
}));
|
|
11808
11855
|
function f(S) {
|
|
11809
|
-
S && s((
|
|
11810
|
-
...
|
|
11856
|
+
S && s((k) => ({
|
|
11857
|
+
...k,
|
|
11811
11858
|
interpolation: S
|
|
11812
11859
|
}));
|
|
11813
11860
|
}
|
|
@@ -11815,8 +11862,8 @@ const Np = I(({
|
|
|
11815
11862
|
u(), n == null || n(sn(a));
|
|
11816
11863
|
};
|
|
11817
11864
|
function b(S) {
|
|
11818
|
-
s((
|
|
11819
|
-
...
|
|
11865
|
+
s((k) => ({
|
|
11866
|
+
...k,
|
|
11820
11867
|
steps: S
|
|
11821
11868
|
}));
|
|
11822
11869
|
}
|
|
@@ -12716,7 +12763,7 @@ function Vf({
|
|
|
12716
12763
|
})]
|
|
12717
12764
|
});
|
|
12718
12765
|
}
|
|
12719
|
-
const
|
|
12766
|
+
const kf = [{
|
|
12720
12767
|
label: "dev_load",
|
|
12721
12768
|
value: ze.dev_load
|
|
12722
12769
|
}, {
|
|
@@ -12728,7 +12775,7 @@ const Mf = [{
|
|
|
12728
12775
|
}, {
|
|
12729
12776
|
label: "comparison",
|
|
12730
12777
|
value: ze.comparison
|
|
12731
|
-
}],
|
|
12778
|
+
}], Mf = ({
|
|
12732
12779
|
conf: e,
|
|
12733
12780
|
setConfByKey: t
|
|
12734
12781
|
}) => {
|
|
@@ -12737,7 +12784,7 @@ const Mf = [{
|
|
|
12737
12784
|
};
|
|
12738
12785
|
return /* @__PURE__ */ i(T, {
|
|
12739
12786
|
label: "Scenario",
|
|
12740
|
-
data:
|
|
12787
|
+
data: kf,
|
|
12741
12788
|
value: e.scenario,
|
|
12742
12789
|
onChange: n
|
|
12743
12790
|
});
|
|
@@ -12764,7 +12811,7 @@ function Ff({
|
|
|
12764
12811
|
required: !0
|
|
12765
12812
|
}), /* @__PURE__ */ g(y, {
|
|
12766
12813
|
grow: !0,
|
|
12767
|
-
children: [/* @__PURE__ */ i(
|
|
12814
|
+
children: [/* @__PURE__ */ i(Mf, {
|
|
12768
12815
|
conf: r,
|
|
12769
12816
|
setConfByKey: o
|
|
12770
12817
|
}), /* @__PURE__ */ i(Sf, {
|
|
@@ -12843,7 +12890,7 @@ const Ef = {
|
|
|
12843
12890
|
value: e.value,
|
|
12844
12891
|
type: "single",
|
|
12845
12892
|
category: "basic"
|
|
12846
|
-
})), Of = [
|
|
12893
|
+
})), Of = [Mc, Fc, Ac, Ec, $c, Oc], da = () => ({
|
|
12847
12894
|
id: "dashboard",
|
|
12848
12895
|
version: zc,
|
|
12849
12896
|
manifest: {
|
|
@@ -13154,7 +13201,7 @@ class Zf {
|
|
|
13154
13201
|
return await this.attachments.getInstance(t);
|
|
13155
13202
|
}
|
|
13156
13203
|
}
|
|
13157
|
-
const
|
|
13204
|
+
const ko = "__TRIGGERS";
|
|
13158
13205
|
class em {
|
|
13159
13206
|
constructor(t, n) {
|
|
13160
13207
|
F(this, "attachments");
|
|
@@ -13167,11 +13214,11 @@ class em {
|
|
|
13167
13214
|
triggerData: new pt(o, "data")
|
|
13168
13215
|
};
|
|
13169
13216
|
};
|
|
13170
|
-
this.attachments = new mr(t,
|
|
13217
|
+
this.attachments = new mr(t, ko, r);
|
|
13171
13218
|
}
|
|
13172
13219
|
watchTriggerSnapshotList(t) {
|
|
13173
13220
|
return this.instance.instanceData.watchItem(
|
|
13174
|
-
|
|
13221
|
+
ko,
|
|
13175
13222
|
(n) => {
|
|
13176
13223
|
const r = Po(n).map(
|
|
13177
13224
|
(o) => ({
|
|
@@ -13630,7 +13677,7 @@ class gm {
|
|
|
13630
13677
|
}
|
|
13631
13678
|
}
|
|
13632
13679
|
function pa(e) {
|
|
13633
|
-
return
|
|
13680
|
+
return kt(
|
|
13634
13681
|
(t) => {
|
|
13635
13682
|
const n = t.getRequired(de.vizManager), r = n.resolveComponent(e.viz.type);
|
|
13636
13683
|
return t.createScoped().provideFactory(de.instanceScope.vizInstance, () => n.getOrCreateInstance(e)).provideFactory(de.instanceScope.interactionManager, (o) => {
|
|
@@ -13672,7 +13719,7 @@ function pm({
|
|
|
13672
13719
|
});
|
|
13673
13720
|
return Et(async () => {
|
|
13674
13721
|
await r.instanceData.setItem(null, n.viz.conf);
|
|
13675
|
-
}, [r, n.viz.type]), o ? /* @__PURE__ */ i(
|
|
13722
|
+
}, [r, n.viz.type]), o ? /* @__PURE__ */ i(kc, {
|
|
13676
13723
|
...t
|
|
13677
13724
|
}) : /* @__PURE__ */ i(C, {
|
|
13678
13725
|
children: "Checking update..."
|
|
@@ -14079,7 +14126,7 @@ const Sm = I(function({
|
|
|
14079
14126
|
children: "Download Data"
|
|
14080
14127
|
}), !h && /* @__PURE__ */ i(Ce.Item, {
|
|
14081
14128
|
onClick: S,
|
|
14082
|
-
icon: /* @__PURE__ */ i(
|
|
14129
|
+
icon: /* @__PURE__ */ i(ks, {
|
|
14083
14130
|
size: 14
|
|
14084
14131
|
}),
|
|
14085
14132
|
children: "Full Screen"
|
|
@@ -14095,7 +14142,7 @@ const Sm = I(function({
|
|
|
14095
14142
|
children: "Settings"
|
|
14096
14143
|
}), /* @__PURE__ */ i(Ce.Item, {
|
|
14097
14144
|
onClick: b,
|
|
14098
|
-
icon: /* @__PURE__ */ i(
|
|
14145
|
+
icon: /* @__PURE__ */ i(Ms, {
|
|
14099
14146
|
size: 14
|
|
14100
14147
|
}),
|
|
14101
14148
|
children: "Duplicate"
|
|
@@ -14143,7 +14190,7 @@ function Dm(e) {
|
|
|
14143
14190
|
}
|
|
14144
14191
|
const Im = {
|
|
14145
14192
|
border: "1px solid #e9ecef"
|
|
14146
|
-
},
|
|
14193
|
+
}, Mo = {
|
|
14147
14194
|
border: "1px dashed transparent",
|
|
14148
14195
|
transition: "border-color 300ms ease",
|
|
14149
14196
|
"&:hover": {
|
|
@@ -14151,7 +14198,7 @@ const Im = {
|
|
|
14151
14198
|
}
|
|
14152
14199
|
};
|
|
14153
14200
|
function Vm(e, t, n) {
|
|
14154
|
-
return e.style.border.enabled ? Im : n || t ?
|
|
14201
|
+
return e.style.border.enabled ? Im : n || t ? Mo : {
|
|
14155
14202
|
border: "1px dashed transparent"
|
|
14156
14203
|
};
|
|
14157
14204
|
}
|
|
@@ -14264,7 +14311,7 @@ function ya() {
|
|
|
14264
14311
|
};
|
|
14265
14312
|
}, []);
|
|
14266
14313
|
}
|
|
14267
|
-
const
|
|
14314
|
+
const km = w.forwardRef(({
|
|
14268
14315
|
handleAxis: e
|
|
14269
14316
|
}, t) => /* @__PURE__ */ i(A, {
|
|
14270
14317
|
ref: t,
|
|
@@ -14284,7 +14331,7 @@ const Mm = w.forwardRef(({
|
|
|
14284
14331
|
children: /* @__PURE__ */ i($s, {
|
|
14285
14332
|
size: 16
|
|
14286
14333
|
})
|
|
14287
|
-
})),
|
|
14334
|
+
})), Mm = w.forwardRef(({
|
|
14288
14335
|
handleAxis: e,
|
|
14289
14336
|
...t
|
|
14290
14337
|
}, n) => /* @__PURE__ */ i(A, {
|
|
@@ -14330,7 +14377,7 @@ const Mm = w.forwardRef(({
|
|
|
14330
14377
|
isDraggable: o,
|
|
14331
14378
|
isResizable: a,
|
|
14332
14379
|
draggableHandle: ".react-grid-customDragHandle",
|
|
14333
|
-
resizeHandle: /* @__PURE__ */ i(
|
|
14380
|
+
resizeHandle: /* @__PURE__ */ i(Mm, {}),
|
|
14334
14381
|
children: t.panels.list.map((l, c) => /* @__PURE__ */ g("div", {
|
|
14335
14382
|
"data-grid": {
|
|
14336
14383
|
...l.layout
|
|
@@ -14338,7 +14385,7 @@ const Mm = w.forwardRef(({
|
|
|
14338
14385
|
style: {
|
|
14339
14386
|
position: "relative"
|
|
14340
14387
|
},
|
|
14341
|
-
children: [o && /* @__PURE__ */ i(
|
|
14388
|
+
children: [o && /* @__PURE__ */ i(km, {}), /* @__PURE__ */ i(Lr, {
|
|
14342
14389
|
view: t,
|
|
14343
14390
|
panel: l
|
|
14344
14391
|
})]
|
|
@@ -15555,19 +15602,19 @@ const Kh = I(function({
|
|
|
15555
15602
|
u.context.replace(t);
|
|
15556
15603
|
}, [t]);
|
|
15557
15604
|
const p = async () => {
|
|
15558
|
-
const b = [...u.queries.json], v = [...u.sqlSnippets.json], S = [...u.views.json],
|
|
15605
|
+
const b = [...u.queries.json], v = [...u.sqlSnippets.json], S = [...u.views.json], k = {
|
|
15559
15606
|
...u.mock_context.current
|
|
15560
|
-
},
|
|
15607
|
+
}, M = {
|
|
15561
15608
|
...n,
|
|
15562
15609
|
filters: [...u.filters.current],
|
|
15563
15610
|
views: S,
|
|
15564
15611
|
definition: {
|
|
15565
15612
|
sqlSnippets: v,
|
|
15566
15613
|
queries: b,
|
|
15567
|
-
mock_context:
|
|
15614
|
+
mock_context: k
|
|
15568
15615
|
}
|
|
15569
15616
|
};
|
|
15570
|
-
await r(
|
|
15617
|
+
await r(M);
|
|
15571
15618
|
}, f = Be(Pr, []), h = _a(f);
|
|
15572
15619
|
return /* @__PURE__ */ i(Oo, {
|
|
15573
15620
|
children: /* @__PURE__ */ i(pi, {
|
|
@@ -15651,15 +15698,15 @@ var Ra = { exports: {} };
|
|
|
15651
15698
|
return function(o, a, s) {
|
|
15652
15699
|
var l, c = function(f, h, b) {
|
|
15653
15700
|
b === void 0 && (b = {});
|
|
15654
|
-
var v = new Date(f), S = function(
|
|
15655
|
-
|
|
15656
|
-
var z =
|
|
15657
|
-
return Y || (Y = new Intl.DateTimeFormat("en-US", { hour12: !1, timeZone:
|
|
15701
|
+
var v = new Date(f), S = function(k, M) {
|
|
15702
|
+
M === void 0 && (M = {});
|
|
15703
|
+
var z = M.timeZoneName || "short", N = k + "|" + z, Y = r[N];
|
|
15704
|
+
return Y || (Y = new Intl.DateTimeFormat("en-US", { hour12: !1, timeZone: k, year: "numeric", month: "2-digit", day: "2-digit", hour: "2-digit", minute: "2-digit", second: "2-digit", timeZoneName: z }), r[N] = Y), Y;
|
|
15658
15705
|
}(h, b);
|
|
15659
15706
|
return S.formatToParts(v);
|
|
15660
15707
|
}, d = function(f, h) {
|
|
15661
15708
|
for (var b = c(f, h), v = [], S = 0; S < b.length; S += 1) {
|
|
15662
|
-
var
|
|
15709
|
+
var k = b[S], M = k.type, z = k.value, N = n[M];
|
|
15663
15710
|
N >= 0 && (v[N] = parseInt(z, 10));
|
|
15664
15711
|
}
|
|
15665
15712
|
var Y = v[3], fe = Y === 24 ? 0 : Y, ce = v[0] + "-" + v[1] + "-" + v[2] + " " + fe + ":" + v[4] + ":" + v[5] + ":000", _e = +f;
|
|
@@ -15667,12 +15714,12 @@ var Ra = { exports: {} };
|
|
|
15667
15714
|
}, u = a.prototype;
|
|
15668
15715
|
u.tz = function(f, h) {
|
|
15669
15716
|
f === void 0 && (f = l);
|
|
15670
|
-
var b = this.utcOffset(), v = this.toDate(), S = v.toLocaleString("en-US", { timeZone: f }),
|
|
15717
|
+
var b = this.utcOffset(), v = this.toDate(), S = v.toLocaleString("en-US", { timeZone: f }), k = Math.round((v - new Date(S)) / 1e3 / 60), M = s(S).$set("millisecond", this.$ms).utcOffset(15 * -Math.round(v.getTimezoneOffset() / 15) - k, !0);
|
|
15671
15718
|
if (h) {
|
|
15672
|
-
var z =
|
|
15673
|
-
|
|
15719
|
+
var z = M.utcOffset();
|
|
15720
|
+
M = M.add(b - z, "minute");
|
|
15674
15721
|
}
|
|
15675
|
-
return
|
|
15722
|
+
return M.$x.$timezone = f, M;
|
|
15676
15723
|
}, u.offsetName = function(f) {
|
|
15677
15724
|
var h = this.$x.$timezone || s.tz.guess(), b = c(this.valueOf(), h, { timeZoneName: f }).find(function(v) {
|
|
15678
15725
|
return v.type.toLowerCase() === "timezonename";
|
|
@@ -15686,16 +15733,16 @@ var Ra = { exports: {} };
|
|
|
15686
15733
|
var b = s(this.format("YYYY-MM-DD HH:mm:ss:SSS"));
|
|
15687
15734
|
return p.call(b, f, h).tz(this.$x.$timezone, !0);
|
|
15688
15735
|
}, s.tz = function(f, h, b) {
|
|
15689
|
-
var v = b && h, S = b || h || l,
|
|
15736
|
+
var v = b && h, S = b || h || l, k = d(+s(), S);
|
|
15690
15737
|
if (typeof f != "string")
|
|
15691
15738
|
return s(f).tz(S);
|
|
15692
|
-
var
|
|
15693
|
-
var be = fe - 60 * ce * 1e3,
|
|
15694
|
-
if (ce ===
|
|
15739
|
+
var M = function(fe, ce, _e) {
|
|
15740
|
+
var be = fe - 60 * ce * 1e3, ke = d(be, _e);
|
|
15741
|
+
if (ce === ke)
|
|
15695
15742
|
return [be, ce];
|
|
15696
|
-
var ue = d(be -= 60 * (
|
|
15697
|
-
return
|
|
15698
|
-
}(s.utc(f, v).valueOf(),
|
|
15743
|
+
var ue = d(be -= 60 * (ke - ce) * 1e3, _e);
|
|
15744
|
+
return ke === ue ? [be, ke] : [fe - 60 * Math.min(ke, ue) * 1e3, Math.max(ke, ue)];
|
|
15745
|
+
}(s.utc(f, v).valueOf(), k, S), z = M[0], N = M[1], Y = s(z).utcOffset(N);
|
|
15699
15746
|
return Y.$x.$timezone = S, Y;
|
|
15700
15747
|
}, s.tz.guess = function() {
|
|
15701
15748
|
return Intl.DateTimeFormat().resolvedOptions().timeZone;
|
|
@@ -15737,9 +15784,9 @@ var Da = { exports: {} };
|
|
|
15737
15784
|
};
|
|
15738
15785
|
var p = c.utcOffset;
|
|
15739
15786
|
c.utcOffset = function(v, S) {
|
|
15740
|
-
var
|
|
15741
|
-
if (
|
|
15742
|
-
return this.$u ? 0 :
|
|
15787
|
+
var k = this.$utils().u;
|
|
15788
|
+
if (k(v))
|
|
15789
|
+
return this.$u ? 0 : k(this.$offset) ? p.call(this) : this.$offset;
|
|
15743
15790
|
if (typeof v == "string" && (v = function(Y) {
|
|
15744
15791
|
Y === void 0 && (Y = "");
|
|
15745
15792
|
var fe = Y.match(r);
|
|
@@ -15749,12 +15796,12 @@ var Da = { exports: {} };
|
|
|
15749
15796
|
return be === 0 ? 0 : _e === "+" ? be : -be;
|
|
15750
15797
|
}(v), v === null))
|
|
15751
15798
|
return this;
|
|
15752
|
-
var
|
|
15799
|
+
var M = Math.abs(v) <= 16 ? 60 * v : v, z = this;
|
|
15753
15800
|
if (S)
|
|
15754
|
-
return z.$offset =
|
|
15801
|
+
return z.$offset = M, z.$u = v === 0, z;
|
|
15755
15802
|
if (v !== 0) {
|
|
15756
15803
|
var N = this.$u ? this.toDate().getTimezoneOffset() : -1 * this.utcOffset();
|
|
15757
|
-
(z = this.local().add(
|
|
15804
|
+
(z = this.local().add(M + N, n)).$offset = M, z.$x.$localOffset = N;
|
|
15758
15805
|
} else
|
|
15759
15806
|
z = this.utc();
|
|
15760
15807
|
return z;
|
|
@@ -15778,11 +15825,11 @@ var Da = { exports: {} };
|
|
|
15778
15825
|
return v === "s" && this.$offset ? l(this.format("YYYY-MM-DD HH:mm:ss:SSS")).toDate() : h.call(this);
|
|
15779
15826
|
};
|
|
15780
15827
|
var b = c.diff;
|
|
15781
|
-
c.diff = function(v, S,
|
|
15828
|
+
c.diff = function(v, S, k) {
|
|
15782
15829
|
if (v && this.$u === v.$u)
|
|
15783
|
-
return b.call(this, v, S,
|
|
15784
|
-
var
|
|
15785
|
-
return b.call(
|
|
15830
|
+
return b.call(this, v, S, k);
|
|
15831
|
+
var M = this.local(), z = l(v).local();
|
|
15832
|
+
return b.call(M, z, S, k);
|
|
15786
15833
|
};
|
|
15787
15834
|
};
|
|
15788
15835
|
});
|