@devtable/dashboard 10.34.0 → 10.34.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 +154 -153
- package/dist/dashboard.umd.js +32 -32
- package/dist/stats.html +1 -1
- package/package.json +1 -1
package/dist/dashboard.es.js
CHANGED
|
@@ -5,7 +5,7 @@ import R, { useState as Q, useEffect as W, useCallback as nt, useMemo as z, forw
|
|
|
5
5
|
import { Box as V, Select as F, Stack as S, Text as C, Group as x, TextInput as L, Button as I, Switch as Xe, NumberInput as ie, Divider as A, Table as It, ActionIcon as U, MultiSelect as fr, Paper as Xo, Code as ws, Modal as De, Tabs as g, LoadingOverlay as $n, Alert as Jo, NativeSelect as yl, useMantineTheme as xl, ColorInput as Zo, ColorSwatch as to, Slider as ch, Overlay as rn, Checkbox as pe, Center as Ln, CheckIcon as dh, MANTINE_SIZES as uh, SimpleGrid as pn, Tooltip as Be, SegmentedControl as hh, HoverCard as ot, Anchor as no, Textarea as ph, Collapse as ea, Mark as mh, createStyles as Xn, Popover as Ni, Flex as fn, Badge as gr, CloseButton as vl, Menu as ue, Affix as fh, Header as gh, ThemeIcon as Bi, List as _s, UnstyledButton as bh, Navbar as Jt, JsonInput as wl, Drawer as yh, Radio as Cs, Skeleton as Ss, NavLink as ro, Pagination as xh, AppShell as _l } from "@mantine/core";
|
|
6
6
|
import { useModals as Ft, ModalsProvider as Cl } from "@mantine/modals";
|
|
7
7
|
import { useBoolean as Je, useCreation as Ot, useAsyncEffect as kr, useRequest as Dn, useLatest as ks, usePrevious as vh } from "ahooks";
|
|
8
|
-
import { observable as Sl, runInAction as ur, toJS as on, reaction as
|
|
8
|
+
import { observable as Sl, runInAction as ur, toJS as on, reaction as yt, makeAutoObservable as Tr } from "mobx";
|
|
9
9
|
import { observer as D } from "mobx-react-lite";
|
|
10
10
|
import kl from "crypto-js";
|
|
11
11
|
import ne from "dayjs";
|
|
@@ -20,7 +20,7 @@ import Ts from "eventemitter2";
|
|
|
20
20
|
import br, { random as li } from "chroma-js";
|
|
21
21
|
import st from "echarts-for-react/lib/core";
|
|
22
22
|
import "echarts-gl";
|
|
23
|
-
import { GridComponent as
|
|
23
|
+
import { GridComponent as vt, VisualMapComponent as Dr, LegendComponent as wt, TooltipComponent as _t, DataZoomComponent as Gt, MarkLineComponent as ci, MarkAreaComponent as ra, CalendarComponent as Ah } from "echarts/components";
|
|
24
24
|
import * as ge from "echarts/core";
|
|
25
25
|
import { CanvasRenderer as lt } from "echarts/renderers";
|
|
26
26
|
import { useForm as Re, Controller as y, useFieldArray as Ae, useWatch as Eh } from "react-hook-form";
|
|
@@ -201,14 +201,14 @@ function tm() {
|
|
|
201
201
|
}
|
|
202
202
|
return null;
|
|
203
203
|
}
|
|
204
|
-
var Ee = Object.assign, Ke = 0, ze, Ve, $e, tt,
|
|
204
|
+
var Ee = Object.assign, Ke = 0, ze, Ve, $e, tt, St, xn, Ar;
|
|
205
205
|
function Er() {
|
|
206
206
|
}
|
|
207
207
|
Er.__reactDisabledLog = !0;
|
|
208
208
|
function Ai() {
|
|
209
209
|
{
|
|
210
210
|
if (Ke === 0) {
|
|
211
|
-
ze = console.log, Ve = console.info, $e = console.warn, tt = console.error,
|
|
211
|
+
ze = console.log, Ve = console.info, $e = console.warn, tt = console.error, St = console.group, xn = console.groupCollapsed, Ar = console.groupEnd;
|
|
212
212
|
var _ = {
|
|
213
213
|
configurable: !0,
|
|
214
214
|
enumerable: !0,
|
|
@@ -250,7 +250,7 @@ function tm() {
|
|
|
250
250
|
value: tt
|
|
251
251
|
}),
|
|
252
252
|
group: Ee({}, _, {
|
|
253
|
-
value:
|
|
253
|
+
value: St
|
|
254
254
|
}),
|
|
255
255
|
groupCollapsed: Ee({}, _, {
|
|
256
256
|
value: xn
|
|
@@ -339,9 +339,9 @@ function tm() {
|
|
|
339
339
|
if (Ne !== 1 || qe !== 1)
|
|
340
340
|
do
|
|
341
341
|
if (Ne--, qe--, qe < 0 || le[Ne] !== it[qe]) {
|
|
342
|
-
var
|
|
342
|
+
var kt = `
|
|
343
343
|
` + le[Ne].replace(" at new ", " at ");
|
|
344
|
-
return _.displayName &&
|
|
344
|
+
return _.displayName && kt.includes("<anonymous>") && (kt = kt.replace("<anonymous>", _.displayName)), typeof _ == "function" && ln.set(_, kt), kt;
|
|
345
345
|
}
|
|
346
346
|
while (Ne >= 1 && qe >= 0);
|
|
347
347
|
break;
|
|
@@ -671,17 +671,17 @@ Check the top-level render call using <` + G + ">.");
|
|
|
671
671
|
if (qe == null)
|
|
672
672
|
return qe;
|
|
673
673
|
if (ce) {
|
|
674
|
-
var
|
|
675
|
-
if (
|
|
674
|
+
var kt = P.children;
|
|
675
|
+
if (kt !== void 0)
|
|
676
676
|
if (te)
|
|
677
|
-
if (Ri(
|
|
678
|
-
for (var qn = 0; qn <
|
|
679
|
-
ys(
|
|
680
|
-
Object.freeze && Object.freeze(
|
|
677
|
+
if (Ri(kt)) {
|
|
678
|
+
for (var qn = 0; qn < kt.length; qn++)
|
|
679
|
+
ys(kt[qn], _);
|
|
680
|
+
Object.freeze && Object.freeze(kt);
|
|
681
681
|
} else
|
|
682
682
|
$("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");
|
|
683
683
|
else
|
|
684
|
-
ys(
|
|
684
|
+
ys(kt, _);
|
|
685
685
|
}
|
|
686
686
|
return _ === r ? th(qe) : eh(qe), qe;
|
|
687
687
|
}
|
|
@@ -983,7 +983,7 @@ class fc {
|
|
|
983
983
|
return Promise.resolve(this.getItem(t));
|
|
984
984
|
}
|
|
985
985
|
watchItem(t, n, r) {
|
|
986
|
-
return
|
|
986
|
+
return yt(() => this.getValueFromRoot(t), (o, a) => {
|
|
987
987
|
n(o, a);
|
|
988
988
|
}, {
|
|
989
989
|
requiresObservable: !0,
|
|
@@ -1174,7 +1174,7 @@ class ma {
|
|
|
1174
1174
|
}), this.instanceRegistry.clear(), this.factoryRegistry.clear();
|
|
1175
1175
|
}
|
|
1176
1176
|
}
|
|
1177
|
-
const yc = "10.34.
|
|
1177
|
+
const yc = "10.34.1", _m = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
1178
1178
|
__proto__: null,
|
|
1179
1179
|
version: yc
|
|
1180
1180
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
@@ -1310,19 +1310,19 @@ const Z = (e, t) => {
|
|
|
1310
1310
|
value: o,
|
|
1311
1311
|
set: s
|
|
1312
1312
|
};
|
|
1313
|
-
},
|
|
1313
|
+
}, ht = {
|
|
1314
1314
|
top: 16,
|
|
1315
1315
|
right: 16,
|
|
1316
1316
|
bottom: 16,
|
|
1317
1317
|
left: 16
|
|
1318
|
-
}, Pt = (e) => Math.max(0, e -
|
|
1318
|
+
}, Pt = (e) => Math.max(0, e - ht.left - ht.right), Vt = (e) => Math.max(0, e - ht.top - ht.bottom), Ir = (e, t) => ({
|
|
1319
1319
|
width: Pt(e),
|
|
1320
1320
|
height: Vt(t)
|
|
1321
|
-
}),
|
|
1321
|
+
}), mt = ({
|
|
1322
1322
|
width: e,
|
|
1323
1323
|
height: t,
|
|
1324
1324
|
children: n
|
|
1325
|
-
}) => /* @__PURE__ */ i(V, { pt:
|
|
1325
|
+
}) => /* @__PURE__ */ i(V, { pt: ht.top, pr: ht.right, pb: ht.bottom, pl: ht.left, sx: {
|
|
1326
1326
|
width: e,
|
|
1327
1327
|
height: t,
|
|
1328
1328
|
overflow: "hidden",
|
|
@@ -1382,7 +1382,7 @@ const fa = {
|
|
|
1382
1382
|
name: "Z Axis Name"
|
|
1383
1383
|
}
|
|
1384
1384
|
};
|
|
1385
|
-
ge.use([
|
|
1385
|
+
ge.use([vt, Dr, wt, _t, lt]);
|
|
1386
1386
|
function Im({
|
|
1387
1387
|
context: e
|
|
1388
1388
|
}) {
|
|
@@ -1451,7 +1451,7 @@ function Im({
|
|
|
1451
1451
|
data: h.map(($) => [$[m.columnKey], $[f.columnKey], $[w.columnKey]])
|
|
1452
1452
|
}]
|
|
1453
1453
|
};
|
|
1454
|
-
return t ? /* @__PURE__ */ i(
|
|
1454
|
+
return t ? /* @__PURE__ */ i(mt, { width: r, height: o, children: /* @__PURE__ */ i(st, { echarts: ge, option: M, style: Ir(r, o), notMerge: !0, theme: "merico-light" }) }) : null;
|
|
1455
1455
|
}
|
|
1456
1456
|
const xc = R.createContext(null), vc = xc.Provider;
|
|
1457
1457
|
function wc() {
|
|
@@ -1638,7 +1638,7 @@ const Rm = {
|
|
|
1638
1638
|
};
|
|
1639
1639
|
}
|
|
1640
1640
|
};
|
|
1641
|
-
class
|
|
1641
|
+
class pt extends R.Component {
|
|
1642
1642
|
constructor(t) {
|
|
1643
1643
|
super(t), this.state = {
|
|
1644
1644
|
error: null
|
|
@@ -1741,7 +1741,7 @@ function Om({
|
|
|
1741
1741
|
] }),
|
|
1742
1742
|
/* @__PURE__ */ u(S, { spacing: 0, children: [
|
|
1743
1743
|
/* @__PURE__ */ i(C, { weight: "bold", children: "Preview" }),
|
|
1744
|
-
/* @__PURE__ */ i(
|
|
1744
|
+
/* @__PURE__ */ i(pt, { children: /* @__PURE__ */ u(x, { position: "apart", children: [
|
|
1745
1745
|
/* @__PURE__ */ u(C, { size: 12, color: "gray", children: [
|
|
1746
1746
|
"123456789 ",
|
|
1747
1747
|
/* @__PURE__ */ i(qi, { size: 9 }),
|
|
@@ -1764,7 +1764,7 @@ function Om({
|
|
|
1764
1764
|
] })
|
|
1765
1765
|
] });
|
|
1766
1766
|
}
|
|
1767
|
-
const
|
|
1767
|
+
const Ct = R.forwardRef(Om), Dt = {
|
|
1768
1768
|
enabled: !1,
|
|
1769
1769
|
func_content: ["function label(value, index) {", " // your code goes here", " // return value", "}"].join(`
|
|
1770
1770
|
`)
|
|
@@ -1860,7 +1860,7 @@ const Vm = [{
|
|
|
1860
1860
|
/* @__PURE__ */ i(Xr, { sectionTitle: "Overflow on Axis", value: e.on_axis, onChange: r }),
|
|
1861
1861
|
/* @__PURE__ */ i(Xr, { sectionTitle: "Overflow in Tooltip", value: e.in_tooltip, onChange: o })
|
|
1862
1862
|
] });
|
|
1863
|
-
}),
|
|
1863
|
+
}), xt = {
|
|
1864
1864
|
on_axis: {
|
|
1865
1865
|
width: 80,
|
|
1866
1866
|
overflow: "truncate",
|
|
@@ -1909,7 +1909,7 @@ const ba = {
|
|
|
1909
1909
|
formatter: {
|
|
1910
1910
|
...Dt
|
|
1911
1911
|
},
|
|
1912
|
-
overflow:
|
|
1912
|
+
overflow: xt
|
|
1913
1913
|
}
|
|
1914
1914
|
},
|
|
1915
1915
|
y_axis: {
|
|
@@ -3324,7 +3324,7 @@ function so(e, t) {
|
|
|
3324
3324
|
}
|
|
3325
3325
|
return !0;
|
|
3326
3326
|
}
|
|
3327
|
-
class
|
|
3327
|
+
class gt {
|
|
3328
3328
|
/**
|
|
3329
3329
|
@internal
|
|
3330
3330
|
*/
|
|
@@ -3421,14 +3421,14 @@ class ft {
|
|
|
3421
3421
|
*/
|
|
3422
3422
|
static setFrom(t) {
|
|
3423
3423
|
if (!t || Array.isArray(t) && t.length == 0)
|
|
3424
|
-
return
|
|
3425
|
-
if (t instanceof
|
|
3424
|
+
return gt.none;
|
|
3425
|
+
if (t instanceof gt)
|
|
3426
3426
|
return [t];
|
|
3427
3427
|
let n = t.slice();
|
|
3428
3428
|
return n.sort((r, o) => r.type.rank - o.type.rank), n;
|
|
3429
3429
|
}
|
|
3430
3430
|
}
|
|
3431
|
-
|
|
3431
|
+
gt.none = [];
|
|
3432
3432
|
class Vf extends Error {
|
|
3433
3433
|
}
|
|
3434
3434
|
class _e {
|
|
@@ -3684,7 +3684,7 @@ function Es(e, t, n) {
|
|
|
3684
3684
|
}
|
|
3685
3685
|
class Fr {
|
|
3686
3686
|
constructor(t, n, r, o, a, s, l) {
|
|
3687
|
-
this.type = t, this.attrs = n, this.marks = r, this.pendingMarks = o, this.solid = a, this.options = l, this.content = [], this.activeMarks =
|
|
3687
|
+
this.type = t, this.attrs = n, this.marks = r, this.pendingMarks = o, this.solid = a, this.options = l, this.content = [], this.activeMarks = gt.none, this.stashMarks = [], this.match = s || (l & hr ? null : t.contentMatch);
|
|
3688
3688
|
}
|
|
3689
3689
|
findWrapping(t) {
|
|
3690
3690
|
if (!this.match) {
|
|
@@ -3730,7 +3730,7 @@ class Rs {
|
|
|
3730
3730
|
constructor(t, n, r) {
|
|
3731
3731
|
this.parser = t, this.options = n, this.isOpen = r, this.open = 0;
|
|
3732
3732
|
let o = n.topNode, a, s = Es(null, n.preserveWhitespace, 0) | (r ? hr : 0);
|
|
3733
|
-
o ? a = new Fr(o.type, o.attrs,
|
|
3733
|
+
o ? a = new Fr(o.type, o.attrs, gt.none, gt.none, !0, n.topMatch || o.type.contentMatch, s) : r ? a = new Fr(null, null, gt.none, gt.none, !0, null, s) : a = new Fr(t.schema.topNodeType, null, gt.none, gt.none, !0, null, s), this.nodes = [a], this.find = n.findPositions, this.needsBlock = !1;
|
|
3734
3734
|
}
|
|
3735
3735
|
get top() {
|
|
3736
3736
|
return this.nodes[this.open];
|
|
@@ -3810,7 +3810,7 @@ class Rs {
|
|
|
3810
3810
|
// return an array of marks, or null to indicate some of the styles
|
|
3811
3811
|
// had a rule with `ignore` set.
|
|
3812
3812
|
readStyles(t) {
|
|
3813
|
-
let n =
|
|
3813
|
+
let n = gt.none, r = gt.none;
|
|
3814
3814
|
for (let o = 0; o < t.length; o += 2)
|
|
3815
3815
|
for (let a = void 0; ; ) {
|
|
3816
3816
|
let s = this.parser.matchStyle(t[o], t[o + 1], this, a);
|
|
@@ -4102,15 +4102,15 @@ class Ps {
|
|
|
4102
4102
|
return (this.delInfo & Gr) > 0;
|
|
4103
4103
|
}
|
|
4104
4104
|
}
|
|
4105
|
-
class
|
|
4105
|
+
class Tt {
|
|
4106
4106
|
/**
|
|
4107
4107
|
Create a position map. The modifications to the document are
|
|
4108
4108
|
represented as an array of numbers, in which each group of three
|
|
4109
4109
|
represents a modified chunk as `[start, oldSize, newSize]`.
|
|
4110
4110
|
*/
|
|
4111
4111
|
constructor(t, n = !1) {
|
|
4112
|
-
if (this.ranges = t, this.inverted = n, !t.length &&
|
|
4113
|
-
return
|
|
4112
|
+
if (this.ranges = t, this.inverted = n, !t.length && Tt.empty)
|
|
4113
|
+
return Tt.empty;
|
|
4114
4114
|
}
|
|
4115
4115
|
/**
|
|
4116
4116
|
@internal
|
|
@@ -4181,7 +4181,7 @@ class kt {
|
|
|
4181
4181
|
map positions in the post-step document to the pre-step document.
|
|
4182
4182
|
*/
|
|
4183
4183
|
invert() {
|
|
4184
|
-
return new
|
|
4184
|
+
return new Tt(this.ranges, !this.inverted);
|
|
4185
4185
|
}
|
|
4186
4186
|
/**
|
|
4187
4187
|
@internal
|
|
@@ -4195,19 +4195,19 @@ class kt {
|
|
|
4195
4195
|
sub-document to a larger document, or vice-versa.
|
|
4196
4196
|
*/
|
|
4197
4197
|
static offset(t) {
|
|
4198
|
-
return t == 0 ?
|
|
4198
|
+
return t == 0 ? Tt.empty : new Tt(t < 0 ? [0, -t, 0] : [0, 0, t]);
|
|
4199
4199
|
}
|
|
4200
4200
|
}
|
|
4201
|
-
|
|
4201
|
+
Tt.empty = new Tt([]);
|
|
4202
4202
|
const Gi = /* @__PURE__ */ Object.create(null);
|
|
4203
|
-
class
|
|
4203
|
+
class ft {
|
|
4204
4204
|
/**
|
|
4205
4205
|
Get the step map that represents the changes made by this step,
|
|
4206
4206
|
and which can be used to transform between positions in the old
|
|
4207
4207
|
and the new document.
|
|
4208
4208
|
*/
|
|
4209
4209
|
getMap() {
|
|
4210
|
-
return
|
|
4210
|
+
return Tt.empty;
|
|
4211
4211
|
}
|
|
4212
4212
|
/**
|
|
4213
4213
|
Try to merge this step with another one, to be applied directly
|
|
@@ -4283,7 +4283,7 @@ function wa(e, t, n) {
|
|
|
4283
4283
|
}
|
|
4284
4284
|
return fe.fromArray(r);
|
|
4285
4285
|
}
|
|
4286
|
-
class _n extends
|
|
4286
|
+
class _n extends ft {
|
|
4287
4287
|
/**
|
|
4288
4288
|
Create a mark step.
|
|
4289
4289
|
*/
|
|
@@ -4321,8 +4321,8 @@ class _n extends mt {
|
|
|
4321
4321
|
return new _n(n.from, n.to, t.markFromJSON(n.mark));
|
|
4322
4322
|
}
|
|
4323
4323
|
}
|
|
4324
|
-
|
|
4325
|
-
class Cn extends
|
|
4324
|
+
ft.jsonID("addMark", _n);
|
|
4325
|
+
class Cn extends ft {
|
|
4326
4326
|
/**
|
|
4327
4327
|
Create a mark-removing step.
|
|
4328
4328
|
*/
|
|
@@ -4360,8 +4360,8 @@ class Cn extends mt {
|
|
|
4360
4360
|
return new Cn(n.from, n.to, t.markFromJSON(n.mark));
|
|
4361
4361
|
}
|
|
4362
4362
|
}
|
|
4363
|
-
|
|
4364
|
-
class Sn extends
|
|
4363
|
+
ft.jsonID("removeMark", Cn);
|
|
4364
|
+
class Sn extends ft {
|
|
4365
4365
|
/**
|
|
4366
4366
|
Create a node mark step.
|
|
4367
4367
|
*/
|
|
@@ -4404,8 +4404,8 @@ class Sn extends mt {
|
|
|
4404
4404
|
return new Sn(n.pos, t.markFromJSON(n.mark));
|
|
4405
4405
|
}
|
|
4406
4406
|
}
|
|
4407
|
-
|
|
4408
|
-
class wr extends
|
|
4407
|
+
ft.jsonID("addNodeMark", Sn);
|
|
4408
|
+
class wr extends ft {
|
|
4409
4409
|
/**
|
|
4410
4410
|
Create a mark-removing step.
|
|
4411
4411
|
*/
|
|
@@ -4439,8 +4439,8 @@ class wr extends mt {
|
|
|
4439
4439
|
return new wr(n.pos, t.markFromJSON(n.mark));
|
|
4440
4440
|
}
|
|
4441
4441
|
}
|
|
4442
|
-
|
|
4443
|
-
class Bt extends
|
|
4442
|
+
ft.jsonID("removeNodeMark", wr);
|
|
4443
|
+
class Bt extends ft {
|
|
4444
4444
|
/**
|
|
4445
4445
|
The given `slice` should fit the 'gap' between `from` and
|
|
4446
4446
|
`to`—the depths must line up, and the surrounding nodes must be
|
|
@@ -4457,7 +4457,7 @@ class Bt extends mt {
|
|
|
4457
4457
|
return this.structure && lo(t, this.from, this.to) ? Ye.fail("Structure replace would overwrite content") : Ye.fromReplace(t, this.from, this.to, this.slice);
|
|
4458
4458
|
}
|
|
4459
4459
|
getMap() {
|
|
4460
|
-
return new
|
|
4460
|
+
return new Tt([this.from, this.to - this.from, this.slice.size]);
|
|
4461
4461
|
}
|
|
4462
4462
|
invert(t) {
|
|
4463
4463
|
return new Bt(this.from, this.from + this.slice.size, t.slice(this.from, this.to));
|
|
@@ -4491,8 +4491,8 @@ class Bt extends mt {
|
|
|
4491
4491
|
return new Bt(n.from, n.to, _e.fromJSON(t, n.slice), !!n.structure);
|
|
4492
4492
|
}
|
|
4493
4493
|
}
|
|
4494
|
-
|
|
4495
|
-
class Tn extends
|
|
4494
|
+
ft.jsonID("replace", Bt);
|
|
4495
|
+
class Tn extends ft {
|
|
4496
4496
|
/**
|
|
4497
4497
|
Create a replace-around step with the given range and gap.
|
|
4498
4498
|
`insert` should be the point in the slice into which the content
|
|
@@ -4512,7 +4512,7 @@ class Tn extends mt {
|
|
|
4512
4512
|
return r ? Ye.fromReplace(t, this.from, this.to, r) : Ye.fail("Content does not fit in gap");
|
|
4513
4513
|
}
|
|
4514
4514
|
getMap() {
|
|
4515
|
-
return new
|
|
4515
|
+
return new Tt([
|
|
4516
4516
|
this.from,
|
|
4517
4517
|
this.gapFrom - this.from,
|
|
4518
4518
|
this.insert,
|
|
@@ -4549,7 +4549,7 @@ class Tn extends mt {
|
|
|
4549
4549
|
return new Tn(n.from, n.to, n.gapFrom, n.gapTo, _e.fromJSON(t, n.slice), n.insert, !!n.structure);
|
|
4550
4550
|
}
|
|
4551
4551
|
}
|
|
4552
|
-
|
|
4552
|
+
ft.jsonID("replaceAround", Tn);
|
|
4553
4553
|
function lo(e, t, n) {
|
|
4554
4554
|
let r = e.resolve(t), o = n - t, a = r.depth;
|
|
4555
4555
|
for (; o > 0 && a > 0 && r.indexAfter(a) == r.node(a).childCount; )
|
|
@@ -4602,7 +4602,7 @@ function Wc(e, t) {
|
|
|
4602
4602
|
function Kf(e, t) {
|
|
4603
4603
|
return !!(e && t && !e.isLeaf && e.canAppend(t));
|
|
4604
4604
|
}
|
|
4605
|
-
class pr extends
|
|
4605
|
+
class pr extends ft {
|
|
4606
4606
|
/**
|
|
4607
4607
|
Construct an attribute step.
|
|
4608
4608
|
*/
|
|
@@ -4621,7 +4621,7 @@ class pr extends mt {
|
|
|
4621
4621
|
return Ye.fromReplace(t, this.pos, this.pos + 1, new _e(fe.from(o), 0, n.isLeaf ? 0 : 1));
|
|
4622
4622
|
}
|
|
4623
4623
|
getMap() {
|
|
4624
|
-
return
|
|
4624
|
+
return Tt.empty;
|
|
4625
4625
|
}
|
|
4626
4626
|
invert(t) {
|
|
4627
4627
|
return new pr(this.pos, this.attr, t.nodeAt(this.pos).attrs[this.attr]);
|
|
@@ -4639,7 +4639,7 @@ class pr extends mt {
|
|
|
4639
4639
|
return new pr(n.pos, n.attr, n.value);
|
|
4640
4640
|
}
|
|
4641
4641
|
}
|
|
4642
|
-
|
|
4642
|
+
ft.jsonID("attr", pr);
|
|
4643
4643
|
let _r = class extends Error {
|
|
4644
4644
|
};
|
|
4645
4645
|
_r = function e(t) {
|
|
@@ -4910,7 +4910,7 @@ class yi {
|
|
|
4910
4910
|
return Qe.between(t.resolve(this.anchor), t.resolve(this.head));
|
|
4911
4911
|
}
|
|
4912
4912
|
}
|
|
4913
|
-
class
|
|
4913
|
+
class bt extends Le {
|
|
4914
4914
|
/**
|
|
4915
4915
|
Create a node selection. Does not verify the validity of its
|
|
4916
4916
|
argument.
|
|
@@ -4921,13 +4921,13 @@ class gt extends Le {
|
|
|
4921
4921
|
}
|
|
4922
4922
|
map(t, n) {
|
|
4923
4923
|
let { deleted: r, pos: o } = n.mapResult(this.anchor), a = t.resolve(o);
|
|
4924
|
-
return r ? Le.near(a) : new
|
|
4924
|
+
return r ? Le.near(a) : new bt(a);
|
|
4925
4925
|
}
|
|
4926
4926
|
content() {
|
|
4927
4927
|
return new _e(fe.from(this.node), 0, 0);
|
|
4928
4928
|
}
|
|
4929
4929
|
eq(t) {
|
|
4930
|
-
return t instanceof
|
|
4930
|
+
return t instanceof bt && t.anchor == this.anchor;
|
|
4931
4931
|
}
|
|
4932
4932
|
toJSON() {
|
|
4933
4933
|
return { type: "node", anchor: this.anchor };
|
|
@@ -4941,13 +4941,13 @@ class gt extends Le {
|
|
|
4941
4941
|
static fromJSON(t, n) {
|
|
4942
4942
|
if (typeof n.anchor != "number")
|
|
4943
4943
|
throw new RangeError("Invalid input for NodeSelection.fromJSON");
|
|
4944
|
-
return new
|
|
4944
|
+
return new bt(t.resolve(n.anchor));
|
|
4945
4945
|
}
|
|
4946
4946
|
/**
|
|
4947
4947
|
Create a node selection from non-resolved positions.
|
|
4948
4948
|
*/
|
|
4949
4949
|
static create(t, n) {
|
|
4950
|
-
return new
|
|
4950
|
+
return new bt(t.resolve(n));
|
|
4951
4951
|
}
|
|
4952
4952
|
/**
|
|
4953
4953
|
Determines whether the given node may be selected as a node
|
|
@@ -4957,8 +4957,8 @@ class gt extends Le {
|
|
|
4957
4957
|
return !t.isText && t.type.spec.selectable !== !1;
|
|
4958
4958
|
}
|
|
4959
4959
|
}
|
|
4960
|
-
|
|
4961
|
-
Le.jsonID("node",
|
|
4960
|
+
bt.prototype.visible = !1;
|
|
4961
|
+
Le.jsonID("node", bt);
|
|
4962
4962
|
class _a {
|
|
4963
4963
|
constructor(t) {
|
|
4964
4964
|
this.anchor = t;
|
|
@@ -4969,7 +4969,7 @@ class _a {
|
|
|
4969
4969
|
}
|
|
4970
4970
|
resolve(t) {
|
|
4971
4971
|
let n = t.resolve(this.anchor), r = n.nodeAfter;
|
|
4972
|
-
return r &&
|
|
4972
|
+
return r && bt.isSelectable(r) ? new bt(n) : Le.near(n);
|
|
4973
4973
|
}
|
|
4974
4974
|
}
|
|
4975
4975
|
class en extends Le {
|
|
@@ -5021,8 +5021,8 @@ function jn(e, t, n, r, o, a = !1) {
|
|
|
5021
5021
|
for (let s = r - (o > 0 ? 0 : 1); o > 0 ? s < t.childCount : s >= 0; s += o) {
|
|
5022
5022
|
let l = t.child(s);
|
|
5023
5023
|
if (l.isAtom) {
|
|
5024
|
-
if (!a &&
|
|
5025
|
-
return
|
|
5024
|
+
if (!a && bt.isSelectable(l))
|
|
5025
|
+
return bt.create(e, n - (o < 0 ? l.nodeSize : 0));
|
|
5026
5026
|
} else {
|
|
5027
5027
|
let c = jn(e, l, n + o, o < 0 ? l.childCount : 0, o, a);
|
|
5028
5028
|
if (c)
|
|
@@ -5751,7 +5751,7 @@ const Jg = (e, t = {}) => ({ tr: n, state: r, dispatch: o }) => {
|
|
|
5751
5751
|
return a.isTextblock ? o().command(({ commands: s }) => Is(a, t)(n) ? !0 : s.clearNodes()).command(({ state: s }) => Is(a, t)(s, r)).run() : (console.warn('[tiptap warn]: Currently "setNode()" only supports text block nodes.'), !1);
|
|
5752
5752
|
}, tb = (e) => ({ tr: t, dispatch: n }) => {
|
|
5753
5753
|
if (n) {
|
|
5754
|
-
const { doc: r } = t, o = kn(e, 0, r.content.size), a =
|
|
5754
|
+
const { doc: r } = t, o = kn(e, 0, r.content.size), a = bt.create(r, o);
|
|
5755
5755
|
t.setSelection(a);
|
|
5756
5756
|
}
|
|
5757
5757
|
return !0;
|
|
@@ -5774,7 +5774,7 @@ function Hs(e, t) {
|
|
|
5774
5774
|
}
|
|
5775
5775
|
const ib = ({ keepMarks: e = !0 } = {}) => ({ tr: t, state: n, dispatch: r, editor: o }) => {
|
|
5776
5776
|
const { selection: a, doc: s } = t, { $from: l, $to: c } = a, d = o.extensionManager.attributes, p = Yr(d, l.node().type.name, l.node().attrs);
|
|
5777
|
-
if (a instanceof
|
|
5777
|
+
if (a instanceof bt && a.node.isBlock)
|
|
5778
5778
|
return !l.parentOffset || !Hr(s, l.pos) ? !1 : (r && (e && Hs(n, o.extensionManager.splittableMarks), t.split(l.pos).scrollIntoView()), !0);
|
|
5779
5779
|
if (!l.parent.isBlock)
|
|
5780
5780
|
return !1;
|
|
@@ -6669,7 +6669,7 @@ R.forwardRef(function({
|
|
|
6669
6669
|
] }),
|
|
6670
6670
|
/* @__PURE__ */ i(wi, { label: "Aggregation", value: t.aggregation, onChange: (s) => a("aggregation", s) }),
|
|
6671
6671
|
/* @__PURE__ */ i(A, { my: "xs", label: "Format", labelPosition: "center" }),
|
|
6672
|
-
t.aggregation.type !== "custom" && /* @__PURE__ */ i(
|
|
6672
|
+
t.aggregation.type !== "custom" && /* @__PURE__ */ i(Ct, { value: t.formatter, onChange: (s) => a("formatter", s) }),
|
|
6673
6673
|
r && /* @__PURE__ */ i(ed, { value: t, onChange: n })
|
|
6674
6674
|
] });
|
|
6675
6675
|
});
|
|
@@ -6889,7 +6889,7 @@ function Gb({
|
|
|
6889
6889
|
series: [...c, ...Wb(a, n, t)]
|
|
6890
6890
|
};
|
|
6891
6891
|
}
|
|
6892
|
-
ge.use([Gt, Wh, ci,
|
|
6892
|
+
ge.use([Gt, Wh, ci, vt, wt, _t, lt]);
|
|
6893
6893
|
function Hb({
|
|
6894
6894
|
context: e,
|
|
6895
6895
|
instance: t
|
|
@@ -6921,7 +6921,7 @@ function Hb({
|
|
|
6921
6921
|
data: o,
|
|
6922
6922
|
variables: r
|
|
6923
6923
|
}), [l, o, r]);
|
|
6924
|
-
return !n || !a || !s ? null : /* @__PURE__ */ i(
|
|
6924
|
+
return !n || !a || !s ? null : /* @__PURE__ */ i(mt, { width: a, height: s, children: /* @__PURE__ */ i(st, { echarts: ge, option: f, style: Ir(a, s), onEvents: m, notMerge: !0, theme: "merico-light" }) });
|
|
6925
6925
|
}
|
|
6926
6926
|
function Yb({
|
|
6927
6927
|
control: e,
|
|
@@ -7119,7 +7119,7 @@ const Ub = ({
|
|
|
7119
7119
|
/* @__PURE__ */ i(A, { mb: -15, variant: "dashed", label: "Label Format", labelPosition: "center" }),
|
|
7120
7120
|
/* @__PURE__ */ i(y, { name: "y_axis.label_formatter", control: e, render: ({
|
|
7121
7121
|
field: n
|
|
7122
|
-
}) => /* @__PURE__ */ i(
|
|
7122
|
+
}) => /* @__PURE__ */ i(Ct, { ...n }) })
|
|
7123
7123
|
] })
|
|
7124
7124
|
] })), Jb = ({
|
|
7125
7125
|
control: e,
|
|
@@ -7825,7 +7825,7 @@ const nr = {
|
|
|
7825
7825
|
formatter: {
|
|
7826
7826
|
...Dt
|
|
7827
7827
|
},
|
|
7828
|
-
overflow:
|
|
7828
|
+
overflow: xt
|
|
7829
7829
|
}
|
|
7830
7830
|
},
|
|
7831
7831
|
x_axis_data_key: "",
|
|
@@ -8369,7 +8369,7 @@ function Qs(e) {
|
|
|
8369
8369
|
series: n
|
|
8370
8370
|
});
|
|
8371
8371
|
}
|
|
8372
|
-
ge.use([Gt, Jn, Zn, ui,
|
|
8372
|
+
ge.use([Gt, Jn, Zn, ui, vt, wt, _t, lt, ci, ra]);
|
|
8373
8373
|
function Us(e) {
|
|
8374
8374
|
return e.trim().length > 0;
|
|
8375
8375
|
}
|
|
@@ -8434,7 +8434,7 @@ function ex({
|
|
|
8434
8434
|
bottom: Sr(T.bottom, o, s)
|
|
8435
8435
|
};
|
|
8436
8436
|
}, [a, s]), w = Math.max(0, Vt(c) - p - m), v = Pt(l);
|
|
8437
|
-
return /* @__PURE__ */ u(
|
|
8437
|
+
return /* @__PURE__ */ u(mt, { width: l, height: c, children: [
|
|
8438
8438
|
/* @__PURE__ */ i(C, { ref: d, align: "left", size: "xs", pl: "sm", sx: {
|
|
8439
8439
|
display: Us(a.stats.templates.top) ? "block" : "none"
|
|
8440
8440
|
}, children: Object.values(f.top).map((T, M) => /* @__PURE__ */ i(R.Fragment, { children: T }, M)) }),
|
|
@@ -9557,7 +9557,7 @@ function Ax({
|
|
|
9557
9557
|
/* @__PURE__ */ i(A, { mb: -15, variant: "dashed", label: "Label Format", labelPosition: "center" }),
|
|
9558
9558
|
/* @__PURE__ */ i(y, { name: `y_axes.${t}.label_formatter`, control: e, render: ({
|
|
9559
9559
|
field: r
|
|
9560
|
-
}) => /* @__PURE__ */ i(
|
|
9560
|
+
}) => /* @__PURE__ */ i(Ct, { ...r }) })
|
|
9561
9561
|
] }),
|
|
9562
9562
|
/* @__PURE__ */ u(S, { children: [
|
|
9563
9563
|
/* @__PURE__ */ i(A, { mb: -15, variant: "dashed", label: "Value Range", labelPosition: "center" }),
|
|
@@ -10240,7 +10240,7 @@ function cv(e) {
|
|
|
10240
10240
|
axisLabel: {
|
|
10241
10241
|
show: !0,
|
|
10242
10242
|
position: "inside",
|
|
10243
|
-
overflow:
|
|
10243
|
+
overflow: xt
|
|
10244
10244
|
},
|
|
10245
10245
|
sort: "descending",
|
|
10246
10246
|
orient: "vertical",
|
|
@@ -10250,7 +10250,7 @@ function cv(e) {
|
|
|
10250
10250
|
const Ea = {
|
|
10251
10251
|
series: [cv("Funnel")]
|
|
10252
10252
|
};
|
|
10253
|
-
ge.use([jh, Gt,
|
|
10253
|
+
ge.use([jh, Gt, vt, wt, _t, lt]);
|
|
10254
10254
|
function dv({
|
|
10255
10255
|
conf: e,
|
|
10256
10256
|
data: t,
|
|
@@ -10272,7 +10272,7 @@ function uv({
|
|
|
10272
10272
|
width: o,
|
|
10273
10273
|
height: a
|
|
10274
10274
|
} = e.viewport;
|
|
10275
|
-
return !o || !a ? null : /* @__PURE__ */ i(
|
|
10275
|
+
return !o || !a ? null : /* @__PURE__ */ i(mt, { width: o, height: a, children: /* @__PURE__ */ i(dv, { width: Pt(o), height: Vt(a), data: r, conf: n }) });
|
|
10276
10276
|
}
|
|
10277
10277
|
const hv = [{
|
|
10278
10278
|
label: "Top",
|
|
@@ -11073,7 +11073,7 @@ const ad = {
|
|
|
11073
11073
|
data_key: "",
|
|
11074
11074
|
axisLabel: {
|
|
11075
11075
|
rotate: 0,
|
|
11076
|
-
overflow:
|
|
11076
|
+
overflow: xt,
|
|
11077
11077
|
formatter: {
|
|
11078
11078
|
...Dt
|
|
11079
11079
|
}
|
|
@@ -11085,7 +11085,7 @@ const ad = {
|
|
|
11085
11085
|
nameAlignment: "center",
|
|
11086
11086
|
axisLabel: {
|
|
11087
11087
|
rotate: 0,
|
|
11088
|
-
overflow:
|
|
11088
|
+
overflow: xt,
|
|
11089
11089
|
formatter: {
|
|
11090
11090
|
...Dt
|
|
11091
11091
|
}
|
|
@@ -11112,7 +11112,7 @@ const ad = {
|
|
|
11112
11112
|
metrics: []
|
|
11113
11113
|
}
|
|
11114
11114
|
};
|
|
11115
|
-
ge.use([Gt, hi,
|
|
11115
|
+
ge.use([Gt, hi, vt, wt, _t, Dr, lt]);
|
|
11116
11116
|
function jv({
|
|
11117
11117
|
conf: e,
|
|
11118
11118
|
data: t,
|
|
@@ -11157,7 +11157,7 @@ function Gv({
|
|
|
11157
11157
|
width: l,
|
|
11158
11158
|
height: c
|
|
11159
11159
|
} = e.viewport;
|
|
11160
|
-
return !l || !c ? null : /* @__PURE__ */ i(
|
|
11160
|
+
return !l || !c ? null : /* @__PURE__ */ i(mt, { width: l, height: c, children: /* @__PURE__ */ i(jv, { variables: o, width: Pt(l), height: Vt(c), data: s, conf: a, interactionManager: n }) });
|
|
11161
11161
|
}
|
|
11162
11162
|
function Hv({
|
|
11163
11163
|
control: e,
|
|
@@ -11189,7 +11189,7 @@ function Hv({
|
|
|
11189
11189
|
/* @__PURE__ */ i(A, { mb: -15, variant: "dashed", label: "Value Format", labelPosition: "center" }),
|
|
11190
11190
|
/* @__PURE__ */ i(y, { name: "heat_block.value_formatter", control: e, render: ({
|
|
11191
11191
|
field: r
|
|
11192
|
-
}) => /* @__PURE__ */ i(
|
|
11192
|
+
}) => /* @__PURE__ */ i(Ct, { ...r }) }),
|
|
11193
11193
|
/* @__PURE__ */ i(A, { mb: -5, variant: "dashed", label: "Label", labelPosition: "center" }),
|
|
11194
11194
|
/* @__PURE__ */ u(x, { grow: !0, noWrap: !0, children: [
|
|
11195
11195
|
/* @__PURE__ */ i(y, { name: "heat_block.label.show", control: e, render: ({
|
|
@@ -11676,7 +11676,7 @@ const cd = {
|
|
|
11676
11676
|
formatter: {
|
|
11677
11677
|
...Dt
|
|
11678
11678
|
},
|
|
11679
|
-
overflow:
|
|
11679
|
+
overflow: xt
|
|
11680
11680
|
}
|
|
11681
11681
|
},
|
|
11682
11682
|
data_key: "value",
|
|
@@ -11936,7 +11936,7 @@ function y0(e, t, n) {
|
|
|
11936
11936
|
}
|
|
11937
11937
|
};
|
|
11938
11938
|
}
|
|
11939
|
-
ge.use([Jn, Zn, Gt,
|
|
11939
|
+
ge.use([Jn, Zn, Gt, vt, wt, _t, lt]);
|
|
11940
11940
|
function x0({
|
|
11941
11941
|
context: e,
|
|
11942
11942
|
instance: t
|
|
@@ -11962,7 +11962,7 @@ function x0({
|
|
|
11962
11962
|
}, [p, d, c]), m = z(() => ({
|
|
11963
11963
|
click: h
|
|
11964
11964
|
}), [h]);
|
|
11965
|
-
return !s || !o || !a ? null : /* @__PURE__ */ i(
|
|
11965
|
+
return !s || !o || !a ? null : /* @__PURE__ */ i(mt, { width: o, height: a, children: /* @__PURE__ */ i(st, { echarts: ge, option: l, style: Ir(o, a), onEvents: m, notMerge: !0, theme: "merico-light" }) });
|
|
11966
11966
|
}
|
|
11967
11967
|
const v0 = [{
|
|
11968
11968
|
label: "left",
|
|
@@ -12004,7 +12004,7 @@ function w0({
|
|
|
12004
12004
|
/* @__PURE__ */ i(A, { mb: -15, variant: "dashed", label: "Label Format", labelPosition: "center" }),
|
|
12005
12005
|
/* @__PURE__ */ i(y, { name: "bar.label_formatter", control: e, render: ({
|
|
12006
12006
|
field: n
|
|
12007
|
-
}) => /* @__PURE__ */ i(
|
|
12007
|
+
}) => /* @__PURE__ */ i(Ct, { ...n }) })
|
|
12008
12008
|
] })
|
|
12009
12009
|
] });
|
|
12010
12010
|
}
|
|
@@ -12612,7 +12612,7 @@ function Y0({
|
|
|
12612
12612
|
width: s,
|
|
12613
12613
|
height: l
|
|
12614
12614
|
} = e.viewport;
|
|
12615
|
-
return !s || !l ? null : /* @__PURE__ */ i(
|
|
12615
|
+
return !s || !l ? null : /* @__PURE__ */ i(mt, { width: s, height: l, children: /* @__PURE__ */ i(H0, { conf: o, width: Pt(s), height: Vt(l), data: a, interactionManager: n }) });
|
|
12616
12616
|
}
|
|
12617
12617
|
function Q0({
|
|
12618
12618
|
context: e
|
|
@@ -12957,7 +12957,7 @@ function lw(e, t) {
|
|
|
12957
12957
|
};
|
|
12958
12958
|
return k.merge({}, aw, s);
|
|
12959
12959
|
}
|
|
12960
|
-
ge.use([Hh,
|
|
12960
|
+
ge.use([Hh, vt, wt, _t, lt]);
|
|
12961
12961
|
function cw({
|
|
12962
12962
|
conf: e,
|
|
12963
12963
|
data: t,
|
|
@@ -13014,7 +13014,7 @@ function dw({
|
|
|
13014
13014
|
width: l,
|
|
13015
13015
|
height: c
|
|
13016
13016
|
} = e.viewport;
|
|
13017
|
-
return !l || !c || !a || Ml(a == null ? void 0 : a.dimensions) ? null : /* @__PURE__ */ i(
|
|
13017
|
+
return !l || !c || !a || Ml(a == null ? void 0 : a.dimensions) ? null : /* @__PURE__ */ i(mt, { width: l, height: c, children: /* @__PURE__ */ i(cw, { variables: o, width: Pt(l), height: Vt(c), data: s, conf: a, interactionManager: n }) });
|
|
13018
13018
|
}
|
|
13019
13019
|
function uw({
|
|
13020
13020
|
control: e,
|
|
@@ -13129,7 +13129,7 @@ function pw({
|
|
|
13129
13129
|
/* @__PURE__ */ i(A, { mb: -15, variant: "dashed", label: "Value Formatter", labelPosition: "center" }),
|
|
13130
13130
|
/* @__PURE__ */ i(y, { name: `dimensions.${t}.formatter`, control: e, render: ({
|
|
13131
13131
|
field: r
|
|
13132
|
-
}) => /* @__PURE__ */ i(
|
|
13132
|
+
}) => /* @__PURE__ */ i(Ct, { ...r }) })
|
|
13133
13133
|
] }),
|
|
13134
13134
|
/* @__PURE__ */ i(I, { mt: 20, leftIcon: /* @__PURE__ */ i(be, { size: 16 }), color: "red", variant: "light", onClick: () => n(t), disabled: t === 0, children: "Delete this Metric" })
|
|
13135
13135
|
] }, t);
|
|
@@ -13803,14 +13803,15 @@ function Nw({
|
|
|
13803
13803
|
}) {
|
|
13804
13804
|
return /* @__PURE__ */ u(ot, { shadow: "md", withinPortal: !0, zIndex: 320, children: [
|
|
13805
13805
|
/* @__PURE__ */ i(ot.Target, { children: /* @__PURE__ */ i(I, { size: "xs", variant: "subtle", compact: !0, leftIcon: /* @__PURE__ */ i(An, { size: 14 }), children: "Regression Info" }) }),
|
|
13806
|
-
/* @__PURE__ */ i(ot.Dropdown, { children: /* @__PURE__ */ i(
|
|
13806
|
+
/* @__PURE__ */ i(ot.Dropdown, { children: /* @__PURE__ */ i(pt, { children: /* @__PURE__ */ i(Vw, { conf: e, queryData: t }) }) })
|
|
13807
13807
|
] });
|
|
13808
13808
|
}
|
|
13809
13809
|
function Bw(e) {
|
|
13810
13810
|
return /* @__PURE__ */ i(x, { position: "apart", sx: {
|
|
13811
13811
|
position: "absolute",
|
|
13812
13812
|
top: 0,
|
|
13813
|
-
left:
|
|
13813
|
+
left: ht.left,
|
|
13814
|
+
right: ht.right,
|
|
13814
13815
|
height: "22px",
|
|
13815
13816
|
zIndex: 1
|
|
13816
13817
|
}, children: /* @__PURE__ */ i(Nw, { ...e }) });
|
|
@@ -13826,7 +13827,7 @@ const Di = {
|
|
|
13826
13827
|
axisLabel: {
|
|
13827
13828
|
rotate: 0,
|
|
13828
13829
|
format: et,
|
|
13829
|
-
overflow:
|
|
13830
|
+
overflow: xt,
|
|
13830
13831
|
formatter: {
|
|
13831
13832
|
...Di
|
|
13832
13833
|
}
|
|
@@ -13858,7 +13859,7 @@ const Di = {
|
|
|
13858
13859
|
y_axis_data_key: "value"
|
|
13859
13860
|
}
|
|
13860
13861
|
};
|
|
13861
|
-
ge.use([Gt, ui,
|
|
13862
|
+
ge.use([Gt, ui, vt, wt, _t, lt]);
|
|
13862
13863
|
function qw({
|
|
13863
13864
|
context: e
|
|
13864
13865
|
}) {
|
|
@@ -13880,7 +13881,7 @@ function qw({
|
|
|
13880
13881
|
}, [e.data, t == null ? void 0 : t.regression.y_axis_data_key]), a = z(() => Lw(Ie({}, t, Va), o), [t, o]), s = si(null), l = (c) => {
|
|
13881
13882
|
s.current = c;
|
|
13882
13883
|
};
|
|
13883
|
-
return !n || !r || !t ? null : /* @__PURE__ */ u(
|
|
13884
|
+
return !n || !r || !t ? null : /* @__PURE__ */ u(mt, { width: n, height: r, children: [
|
|
13884
13885
|
/* @__PURE__ */ i(Bw, { conf: t, queryData: o }),
|
|
13885
13886
|
/* @__PURE__ */ i(st, { echarts: ge, onChartReady: l, option: a, style: Ir(n, r), notMerge: !0, theme: "merico-light" })
|
|
13886
13887
|
] });
|
|
@@ -14039,7 +14040,7 @@ function Hw({
|
|
|
14039
14040
|
/* @__PURE__ */ i(A, { variant: "dashed", labelPosition: "center", label: "格式化数据" }),
|
|
14040
14041
|
/* @__PURE__ */ i(S, { children: /* @__PURE__ */ i(y, { name: "x_axis.axisLabel.format", control: e, render: ({
|
|
14041
14042
|
field: n
|
|
14042
|
-
}) => /* @__PURE__ */ i(
|
|
14043
|
+
}) => /* @__PURE__ */ i(Ct, { ...n }) }) }),
|
|
14043
14044
|
/* @__PURE__ */ i(A, { variant: "dashed", labelPosition: "center", label: "标签文案样式" }),
|
|
14044
14045
|
/* @__PURE__ */ u(x, { grow: !0, noWrap: !0, children: [
|
|
14045
14046
|
/* @__PURE__ */ i(y, { name: "x_axis.axisLabel.rotate", control: e, render: ({
|
|
@@ -14132,7 +14133,7 @@ function Uw(e) {
|
|
|
14132
14133
|
axisLabel: {
|
|
14133
14134
|
rotate: 0,
|
|
14134
14135
|
format: et,
|
|
14135
|
-
overflow:
|
|
14136
|
+
overflow: xt,
|
|
14136
14137
|
formatter: Di
|
|
14137
14138
|
}
|
|
14138
14139
|
},
|
|
@@ -14500,8 +14501,8 @@ const vd = {
|
|
|
14500
14501
|
func_content: ["function label(value, index) {", " // your code goes here", " // return value", "}"].join(`
|
|
14501
14502
|
`)
|
|
14502
14503
|
}, wd = {
|
|
14503
|
-
label:
|
|
14504
|
-
tooltip:
|
|
14504
|
+
label: xt.on_axis,
|
|
14505
|
+
tooltip: xt.in_tooltip
|
|
14505
14506
|
}, Ba = {
|
|
14506
14507
|
scatter: {
|
|
14507
14508
|
y_data_key: "",
|
|
@@ -14931,7 +14932,7 @@ function k_(e, t, n) {
|
|
|
14931
14932
|
};
|
|
14932
14933
|
return Ie({}, l, S_);
|
|
14933
14934
|
}
|
|
14934
|
-
ge.use([Gt, Jn, Zn, ui,
|
|
14935
|
+
ge.use([Gt, Jn, Zn, ui, vt, wt, _t, lt, ci, ra]);
|
|
14935
14936
|
function el(e) {
|
|
14936
14937
|
return e.trim().length > 0;
|
|
14937
14938
|
}
|
|
@@ -14990,7 +14991,7 @@ function D_({
|
|
|
14990
14991
|
bottom: Sr(v.bottom, o, s)
|
|
14991
14992
|
};
|
|
14992
14993
|
}, [a, s]), w = Math.max(0, Vt(c) - p - m);
|
|
14993
|
-
return !l || !c ? null : /* @__PURE__ */ u(
|
|
14994
|
+
return !l || !c ? null : /* @__PURE__ */ u(mt, { width: l, height: c, children: [
|
|
14994
14995
|
/* @__PURE__ */ i(C, { ref: d, align: "left", size: "xs", pl: "sm", sx: {
|
|
14995
14996
|
display: el(a.stats.templates.top) ? "block" : "none"
|
|
14996
14997
|
}, children: Object.values(f.top).map((v) => v) }),
|
|
@@ -15868,7 +15869,7 @@ function aC({
|
|
|
15868
15869
|
/* @__PURE__ */ i(A, { mb: -15, variant: "dashed", label: "Label Format", labelPosition: "center" }),
|
|
15869
15870
|
/* @__PURE__ */ i(y, { name: `y_axes.${t}.label_formatter`, control: e, render: ({
|
|
15870
15871
|
field: r
|
|
15871
|
-
}) => /* @__PURE__ */ i(
|
|
15872
|
+
}) => /* @__PURE__ */ i(Ct, { ...r }) })
|
|
15872
15873
|
] }),
|
|
15873
15874
|
/* @__PURE__ */ u(S, { children: [
|
|
15874
15875
|
/* @__PURE__ */ i(A, { mb: -15, variant: "dashed", label: "Value Range", labelPosition: "center" }),
|
|
@@ -16578,7 +16579,7 @@ function NC({
|
|
|
16578
16579
|
width: a,
|
|
16579
16580
|
height: s
|
|
16580
16581
|
} = e.viewport, l = z(() => VC(r, o, t), [r, o, t]);
|
|
16581
|
-
return !a || !s ? null : /* @__PURE__ */ i(
|
|
16582
|
+
return !a || !s ? null : /* @__PURE__ */ i(mt, { width: a, height: s, children: /* @__PURE__ */ i(st, { echarts: ge, option: l, style: Ir(a, s), notMerge: !0, theme: "merico-light" }) });
|
|
16582
16583
|
}
|
|
16583
16584
|
function BC({
|
|
16584
16585
|
control: e,
|
|
@@ -17231,7 +17232,7 @@ function x1({
|
|
|
17231
17232
|
return f.map(($e) => {
|
|
17232
17233
|
const tt = Tm($e.value_field);
|
|
17233
17234
|
return ze.accessor(tt.columnKey, {
|
|
17234
|
-
cell: (
|
|
17235
|
+
cell: (St) => /* @__PURE__ */ i(b1, { tableCellContext: w(St.cell), value: St.getValue(), type: $e.value_type, ...$e }),
|
|
17235
17236
|
header: $e.label,
|
|
17236
17237
|
enableSorting: !0,
|
|
17237
17238
|
meta: $e,
|
|
@@ -17350,7 +17351,7 @@ class _1 {
|
|
|
17350
17351
|
steps: Sl
|
|
17351
17352
|
}, {
|
|
17352
17353
|
deep: !1
|
|
17353
|
-
}),
|
|
17354
|
+
}), yt(() => on(this.steps), () => {
|
|
17354
17355
|
this.notifyStepChange();
|
|
17355
17356
|
});
|
|
17356
17357
|
}
|
|
@@ -18510,7 +18511,7 @@ const $d = {
|
|
|
18510
18511
|
metrics: []
|
|
18511
18512
|
}
|
|
18512
18513
|
};
|
|
18513
|
-
ge.use([Gt, Jn, Zn, hi, Ah,
|
|
18514
|
+
ge.use([Gt, Jn, Zn, hi, Ah, vt, wt, _t, Dr, lt]);
|
|
18514
18515
|
function _S({
|
|
18515
18516
|
name: e
|
|
18516
18517
|
}, t) {
|
|
@@ -18563,7 +18564,7 @@ function SS({
|
|
|
18563
18564
|
width: l,
|
|
18564
18565
|
height: c
|
|
18565
18566
|
} = e.viewport;
|
|
18566
|
-
return !a.calendar.data_key || !a.heat_block.data_key || !l || !c ? null : /* @__PURE__ */ i(
|
|
18567
|
+
return !a.calendar.data_key || !a.heat_block.data_key || !l || !c ? null : /* @__PURE__ */ i(mt, { width: l, height: c, children: /* @__PURE__ */ i(CS, { variables: o, width: Pt(l), height: Vt(c), data: s, conf: a, interactionManager: n }) });
|
|
18567
18568
|
}
|
|
18568
18569
|
function kS({
|
|
18569
18570
|
control: e,
|
|
@@ -18593,7 +18594,7 @@ function kS({
|
|
|
18593
18594
|
/* @__PURE__ */ i(A, { mb: -15, variant: "dashed", label: "Value Format", labelPosition: "center" }),
|
|
18594
18595
|
/* @__PURE__ */ i(y, { name: "heat_block.value_formatter", control: e, render: ({
|
|
18595
18596
|
field: n
|
|
18596
|
-
}) => /* @__PURE__ */ i(
|
|
18597
|
+
}) => /* @__PURE__ */ i(Ct, { ...n }) })
|
|
18597
18598
|
] });
|
|
18598
18599
|
}
|
|
18599
18600
|
const TS = ({
|
|
@@ -18863,7 +18864,7 @@ const RS = {
|
|
|
18863
18864
|
formatter: {
|
|
18864
18865
|
...Dt
|
|
18865
18866
|
},
|
|
18866
|
-
overflow:
|
|
18867
|
+
overflow: xt
|
|
18867
18868
|
},
|
|
18868
18869
|
nameAlignment: "center"
|
|
18869
18870
|
},
|
|
@@ -19262,7 +19263,7 @@ function tk(e, t, n) {
|
|
|
19262
19263
|
legend: BS(c)
|
|
19263
19264
|
};
|
|
19264
19265
|
}
|
|
19265
|
-
ge.use([Gt, Jn, Zn, ui,
|
|
19266
|
+
ge.use([Gt, Jn, Zn, ui, vt, wt, _t, lt, ci, ra]);
|
|
19266
19267
|
function nk({
|
|
19267
19268
|
conf: e,
|
|
19268
19269
|
data: t,
|
|
@@ -19304,7 +19305,7 @@ function rk({
|
|
|
19304
19305
|
width: l,
|
|
19305
19306
|
height: c
|
|
19306
19307
|
} = e.viewport;
|
|
19307
|
-
return !l || !c ? null : /* @__PURE__ */ i(
|
|
19308
|
+
return !l || !c ? null : /* @__PURE__ */ i(mt, { width: l, height: c, children: /* @__PURE__ */ i(nk, { variables: o, width: Pt(l), height: Vt(c), data: s, conf: a, interactionManager: n }) });
|
|
19308
19309
|
}
|
|
19309
19310
|
const ik = [{
|
|
19310
19311
|
label: "solid",
|
|
@@ -19719,7 +19720,7 @@ function fk({
|
|
|
19719
19720
|
/* @__PURE__ */ i(A, { mb: -15, variant: "dashed", label: "Label Format", labelPosition: "center" }),
|
|
19720
19721
|
/* @__PURE__ */ i(y, { name: `x_axes.${t}.label_formatter`, control: e, render: ({
|
|
19721
19722
|
field: r
|
|
19722
|
-
}) => /* @__PURE__ */ i(
|
|
19723
|
+
}) => /* @__PURE__ */ i(Ct, { ...r }) })
|
|
19723
19724
|
] }),
|
|
19724
19725
|
/* @__PURE__ */ u(S, { children: [
|
|
19725
19726
|
/* @__PURE__ */ i(A, { mb: -15, variant: "dashed", label: "Value Range", labelPosition: "center" }),
|
|
@@ -20566,7 +20567,7 @@ function Wk(e) {
|
|
|
20566
20567
|
/* @__PURE__ */ i(Nk, { ...e })
|
|
20567
20568
|
] });
|
|
20568
20569
|
}
|
|
20569
|
-
ge.use([Jn, Zn, hi,
|
|
20570
|
+
ge.use([Jn, Zn, hi, vt, wt, _t, lt, Dr]);
|
|
20570
20571
|
function jk({
|
|
20571
20572
|
conf: e,
|
|
20572
20573
|
data: t,
|
|
@@ -20600,7 +20601,7 @@ function Gk({
|
|
|
20600
20601
|
}, [d]), !s.data_key || !c || !d || !o || !a)
|
|
20601
20602
|
return null;
|
|
20602
20603
|
const m = Math.max(Pt(o), 300), f = Math.max(Vt(a), 370);
|
|
20603
|
-
return /* @__PURE__ */ u(V, { pt:
|
|
20604
|
+
return /* @__PURE__ */ u(V, { pt: ht.top, pr: ht.right, pb: ht.bottom, pl: ht.left, sx: {
|
|
20604
20605
|
overflow: "hidden",
|
|
20605
20606
|
height: a,
|
|
20606
20607
|
width: o
|
|
@@ -21017,7 +21018,7 @@ function oT({
|
|
|
21017
21018
|
/* @__PURE__ */ i(A, { mb: -15, variant: "dashed", label: "Format", labelPosition: "center" }),
|
|
21018
21019
|
/* @__PURE__ */ i(y, { name: `metrics.${t}.formatter`, control: e, render: ({
|
|
21019
21020
|
field: a
|
|
21020
|
-
}) => /* @__PURE__ */ i(
|
|
21021
|
+
}) => /* @__PURE__ */ i(Ct, { ...a }) }),
|
|
21021
21022
|
/* @__PURE__ */ i(A, { mb: -15, variant: "dashed", label: "Others", labelPosition: "center" }),
|
|
21022
21023
|
/* @__PURE__ */ i(y, { name: `metrics.${t}.postfix`, control: e, render: ({
|
|
21023
21024
|
field: a
|
|
@@ -21249,7 +21250,7 @@ function mT({
|
|
|
21249
21250
|
/* @__PURE__ */ i(A, { mb: -15, variant: "dashed", label: "Value Format", labelPosition: "center" }),
|
|
21250
21251
|
/* @__PURE__ */ i(y, { name: "heat_block.value_formatter", control: e, render: ({
|
|
21251
21252
|
field: r
|
|
21252
|
-
}) => /* @__PURE__ */ i(
|
|
21253
|
+
}) => /* @__PURE__ */ i(Ct, { ...r }) }),
|
|
21253
21254
|
/* @__PURE__ */ i(A, { mb: -5, variant: "dashed", label: "Label", labelPosition: "center" }),
|
|
21254
21255
|
/* @__PURE__ */ u(x, { grow: !0, noWrap: !0, children: [
|
|
21255
21256
|
/* @__PURE__ */ i(y, { name: "heat_block.label.show", control: e, render: ({
|
|
@@ -21525,7 +21526,7 @@ const Xa = {
|
|
|
21525
21526
|
data_key: "",
|
|
21526
21527
|
axisLabel: {
|
|
21527
21528
|
rotate: 0,
|
|
21528
|
-
overflow:
|
|
21529
|
+
overflow: xt,
|
|
21529
21530
|
formatter: {
|
|
21530
21531
|
...Dt
|
|
21531
21532
|
}
|
|
@@ -21537,7 +21538,7 @@ const Xa = {
|
|
|
21537
21538
|
nameAlignment: "center",
|
|
21538
21539
|
axisLabel: {
|
|
21539
21540
|
rotate: 0,
|
|
21540
|
-
overflow:
|
|
21541
|
+
overflow: xt,
|
|
21541
21542
|
formatter: {
|
|
21542
21543
|
...Dt
|
|
21543
21544
|
}
|
|
@@ -21929,7 +21930,7 @@ function FT(e, t, n) {
|
|
|
21929
21930
|
};
|
|
21930
21931
|
return Ie({}, s, OT);
|
|
21931
21932
|
}
|
|
21932
|
-
ge.use([Gt, hi,
|
|
21933
|
+
ge.use([Gt, hi, vt, wt, _t, Dr, lt]);
|
|
21933
21934
|
function PT({
|
|
21934
21935
|
conf: e,
|
|
21935
21936
|
data: t,
|
|
@@ -21974,7 +21975,7 @@ function VT({
|
|
|
21974
21975
|
width: l,
|
|
21975
21976
|
height: c
|
|
21976
21977
|
} = e.viewport;
|
|
21977
|
-
return !l || !c ? null : /* @__PURE__ */ i(
|
|
21978
|
+
return !l || !c ? null : /* @__PURE__ */ i(mt, { width: l, height: c, children: /* @__PURE__ */ i(PT, { variables: o, width: Pt(l), height: Vt(c), data: s, conf: a, interactionManager: n }) });
|
|
21978
21979
|
}
|
|
21979
21980
|
class NT extends Oe {
|
|
21980
21981
|
constructor() {
|
|
@@ -22842,7 +22843,7 @@ const JT = ({
|
|
|
22842
22843
|
}), aD = D(R.forwardRef(({
|
|
22843
22844
|
filter: e,
|
|
22844
22845
|
...t
|
|
22845
|
-
}, n) => /* @__PURE__ */ i("div", { className: "filter-root", ref: n, children: /* @__PURE__ */ i(
|
|
22846
|
+
}, n) => /* @__PURE__ */ i("div", { className: "filter-root", ref: n, children: /* @__PURE__ */ i(pt, { children: /* @__PURE__ */ i(oD, { filter: e, formFieldProps: t }) }) })));
|
|
22846
22847
|
function sD(e) {
|
|
22847
22848
|
const t = Ce();
|
|
22848
22849
|
W(() => {
|
|
@@ -23440,7 +23441,7 @@ const yD = b.model("FilterDateRangeConfigMeta", {
|
|
|
23440
23441
|
}
|
|
23441
23442
|
})).actions((e) => ({
|
|
23442
23443
|
afterCreate() {
|
|
23443
|
-
Rt(e,
|
|
23444
|
+
Rt(e, yt(() => on(e.default_selection), e.setDefaultSelection, {
|
|
23444
23445
|
fireImmediately: !0,
|
|
23445
23446
|
delay: 0
|
|
23446
23447
|
}));
|
|
@@ -23498,7 +23499,7 @@ const yD = b.model("FilterDateRangeConfigMeta", {
|
|
|
23498
23499
|
}
|
|
23499
23500
|
})).actions((e) => ({
|
|
23500
23501
|
afterCreate() {
|
|
23501
|
-
Rt(e,
|
|
23502
|
+
Rt(e, yt(() => on(e.default_selection), e.setDefaultSelection, {
|
|
23502
23503
|
fireImmediately: !0,
|
|
23503
23504
|
delay: 0
|
|
23504
23505
|
}));
|
|
@@ -23643,7 +23644,7 @@ const Ud = b.compose("FilterTreeSelectConfigMeta", b.model({
|
|
|
23643
23644
|
Me(e).content.filters.setValueByKey(t, e.defaultSelection);
|
|
23644
23645
|
},
|
|
23645
23646
|
afterCreate() {
|
|
23646
|
-
Rt(e,
|
|
23647
|
+
Rt(e, yt(() => JSON.stringify(e.defaultSelection), this.applyDefaultSelection, {
|
|
23647
23648
|
fireImmediately: !0,
|
|
23648
23649
|
delay: 0
|
|
23649
23650
|
}));
|
|
@@ -24072,7 +24073,7 @@ const ED = b.compose("ViewRenderModel", $D, b.model({
|
|
|
24072
24073
|
e.tab = t ?? "";
|
|
24073
24074
|
},
|
|
24074
24075
|
afterCreate() {
|
|
24075
|
-
Rt(e,
|
|
24076
|
+
Rt(e, yt(() => e.defaultTab, (t) => this.setTab(t), {
|
|
24076
24077
|
fireImmediately: !0,
|
|
24077
24078
|
delay: 0
|
|
24078
24079
|
}));
|
|
@@ -24510,7 +24511,7 @@ const jD = b.compose("QueryRenderModel", PD, b.model({
|
|
|
24510
24511
|
}
|
|
24511
24512
|
})).actions((e) => ({
|
|
24512
24513
|
afterCreate() {
|
|
24513
|
-
Rt(e,
|
|
24514
|
+
Rt(e, yt(() => {
|
|
24514
24515
|
var t, n;
|
|
24515
24516
|
return e.typedAsHTTP ? `${e.inUse}--${e.id}--${e.key}--${e.reQueryKey}--${(t = e.datasource) == null ? void 0 : t.id}` : `${e.inUse}--${e.id}--${e.key}--${e.formattedSQL}--${e.pre_process}--${e.post_process}--${(n = e.datasource) == null ? void 0 : n.id}`;
|
|
24516
24517
|
}, e.fetchData, {
|
|
@@ -24962,7 +24963,7 @@ const oI = D(function({
|
|
|
24962
24963
|
width: r,
|
|
24963
24964
|
height: o,
|
|
24964
24965
|
overflow: "hidden"
|
|
24965
|
-
}, children: s && /* @__PURE__ */ i(
|
|
24966
|
+
}, children: s && /* @__PURE__ */ i(pt, { children: a }) }) });
|
|
24966
24967
|
}), aI = D(({
|
|
24967
24968
|
panel: e
|
|
24968
24969
|
}) => /* @__PURE__ */ u(S, { children: [
|
|
@@ -25857,10 +25858,10 @@ const PI = b.compose("FiltersModel", su, b.model("FiltersModel", {
|
|
|
25857
25858
|
}
|
|
25858
25859
|
})).actions((e) => ({
|
|
25859
25860
|
afterCreate() {
|
|
25860
|
-
Rt(e,
|
|
25861
|
+
Rt(e, yt(() => e.keywordString, e.resetPage, {
|
|
25861
25862
|
fireImmediately: !1,
|
|
25862
25863
|
delay: 0
|
|
25863
|
-
})), Rt(e,
|
|
25864
|
+
})), Rt(e, yt(() => e.limit, e.resetPage, {
|
|
25864
25865
|
fireImmediately: !1,
|
|
25865
25866
|
delay: 0
|
|
25866
25867
|
}));
|
|
@@ -25999,17 +26000,17 @@ const PI = b.compose("FiltersModel", su, b.model("FiltersModel", {
|
|
|
25999
26000
|
};
|
|
26000
26001
|
}).actions((e) => ({
|
|
26001
26002
|
afterCreate() {
|
|
26002
|
-
Rt(e,
|
|
26003
|
+
Rt(e, yt(() => e.columns.sql, e.loadColumns, {
|
|
26003
26004
|
fireImmediately: !1,
|
|
26004
26005
|
delay: 500
|
|
26005
26006
|
}));
|
|
26006
26007
|
}
|
|
26007
26008
|
})).actions((e) => ({
|
|
26008
26009
|
afterCreate() {
|
|
26009
|
-
Rt(e,
|
|
26010
|
+
Rt(e, yt(() => e.indexes.sql, e.loadIndexes, {
|
|
26010
26011
|
fireImmediately: !1,
|
|
26011
26012
|
delay: 500
|
|
26012
|
-
})), Rt(e,
|
|
26013
|
+
})), Rt(e, yt(() => e.tableData.sql, e.loadTableData, {
|
|
26013
26014
|
fireImmediately: !1,
|
|
26014
26015
|
delay: 0
|
|
26015
26016
|
}));
|
|
@@ -27915,14 +27916,14 @@ function Au({
|
|
|
27915
27916
|
});
|
|
27916
27917
|
return e.length === 0 ? /* @__PURE__ */ i(V, { sx: {
|
|
27917
27918
|
height: "5em"
|
|
27918
|
-
} }) : /* @__PURE__ */ i(
|
|
27919
|
+
} }) : /* @__PURE__ */ i(pt, { children: /* @__PURE__ */ u(It, { sx: tz, children: [
|
|
27919
27920
|
/* @__PURE__ */ i("thead", { children: n.getHeaderGroups().map((r) => /* @__PURE__ */ i("tr", { children: r.headers.map((o) => /* @__PURE__ */ u("th", { style: {
|
|
27920
27921
|
width: o.getSize()
|
|
27921
27922
|
}, children: [
|
|
27922
27923
|
o.isPlaceholder ? null : Kr(o.column.columnDef.header, o.getContext()),
|
|
27923
27924
|
/* @__PURE__ */ i(U, { onMouseDown: o.getResizeHandler(), onTouchStart: o.getResizeHandler(), className: `resizer ${o.column.getIsResizing() ? "isResizing" : ""}`, children: /* @__PURE__ */ i(qh, {}) })
|
|
27924
27925
|
] }, o.id)) }, r.id)) }),
|
|
27925
|
-
/* @__PURE__ */ i("tbody", { children: n.getRowModel().rows.map((r) => /* @__PURE__ */ i("tr", { children: r.getVisibleCells().map((o) => /* @__PURE__ */ i("td", { children: /* @__PURE__ */ i(
|
|
27926
|
+
/* @__PURE__ */ i("tbody", { children: n.getRowModel().rows.map((r) => /* @__PURE__ */ i("tr", { children: r.getVisibleCells().map((o) => /* @__PURE__ */ i("td", { children: /* @__PURE__ */ i(pt, { children: Kr(o.column.columnDef.cell, o.getContext()) }) }, o.id)) }, r.id)) })
|
|
27926
27927
|
] }) });
|
|
27927
27928
|
}
|
|
27928
27929
|
const nz = ({
|
|
@@ -27997,7 +27998,7 @@ const nz = ({
|
|
|
27997
27998
|
const {
|
|
27998
27999
|
panel: e
|
|
27999
28000
|
} = On();
|
|
28000
|
-
return /* @__PURE__ */ i(
|
|
28001
|
+
return /* @__PURE__ */ i(pt, { children: /* @__PURE__ */ i(V, { sx: {
|
|
28001
28002
|
height: "100%",
|
|
28002
28003
|
flexGrow: 0,
|
|
28003
28004
|
flexShrink: 0,
|
|
@@ -28132,7 +28133,7 @@ const Eu = Xn((e) => ({
|
|
|
28132
28133
|
/* @__PURE__ */ i(wi, { label: "Aggregation", value: t.aggregation, onChange: (l) => s("aggregation", l) }),
|
|
28133
28134
|
t.aggregation.type !== "custom" && /* @__PURE__ */ u(j, { children: [
|
|
28134
28135
|
/* @__PURE__ */ i(A, { my: "xs", label: "Format", labelPosition: "center" }),
|
|
28135
|
-
/* @__PURE__ */ i(
|
|
28136
|
+
/* @__PURE__ */ i(Ct, { value: t.formatter, onChange: (l) => s("formatter", l) })
|
|
28136
28137
|
] }),
|
|
28137
28138
|
o && /* @__PURE__ */ i(ed, { value: t, onChange: n })
|
|
28138
28139
|
] });
|
|
@@ -28275,7 +28276,7 @@ const vz = D(() => {
|
|
|
28275
28276
|
overflow: "hidden"
|
|
28276
28277
|
}, children: [
|
|
28277
28278
|
/* @__PURE__ */ i(bz, { submit: r, value: t.type }),
|
|
28278
|
-
/* @__PURE__ */ u(
|
|
28279
|
+
/* @__PURE__ */ u(pt, { children: [
|
|
28279
28280
|
/* @__PURE__ */ i(S, { pb: 10, sx: {
|
|
28280
28281
|
flexGrow: 1,
|
|
28281
28282
|
maxHeight: "100%",
|
|
@@ -28404,8 +28405,8 @@ const Sz = D(({
|
|
|
28404
28405
|
] }),
|
|
28405
28406
|
/* @__PURE__ */ i(g.Panel, { value: "Panel", children: /* @__PURE__ */ i(pl, { children: /* @__PURE__ */ i(ez, {}) }) }),
|
|
28406
28407
|
/* @__PURE__ */ i(g.Panel, { value: "Variables", children: /* @__PURE__ */ i(fz, {}) }),
|
|
28407
|
-
/* @__PURE__ */ i(g.Panel, { value: "Visualization", children: /* @__PURE__ */ i(
|
|
28408
|
-
/* @__PURE__ */ i(g.Panel, { value: "Interactions", children: /* @__PURE__ */ i(
|
|
28408
|
+
/* @__PURE__ */ i(g.Panel, { value: "Visualization", children: /* @__PURE__ */ i(pt, { children: /* @__PURE__ */ i(pl, { children: /* @__PURE__ */ i(vz, {}) }) }) }),
|
|
28409
|
+
/* @__PURE__ */ i(g.Panel, { value: "Interactions", children: /* @__PURE__ */ i(pt, { children: /* @__PURE__ */ i(If, {}) }) })
|
|
28409
28410
|
] })
|
|
28410
28411
|
] });
|
|
28411
28412
|
}), kz = D(({
|
|
@@ -28649,8 +28650,8 @@ const Sz = D(({
|
|
|
28649
28650
|
overflow: "auto",
|
|
28650
28651
|
position: "relative"
|
|
28651
28652
|
}, children: [
|
|
28652
|
-
/* @__PURE__ */ i(
|
|
28653
|
-
/* @__PURE__ */ i(
|
|
28653
|
+
/* @__PURE__ */ i(pt, { children: /* @__PURE__ */ i(Mz, { dataSource: e }) }),
|
|
28654
|
+
/* @__PURE__ */ i(pt, { children: /* @__PURE__ */ i(Lz, { dataSource: e }) })
|
|
28654
28655
|
] }));
|
|
28655
28656
|
function Ez({
|
|
28656
28657
|
table_type: e
|
|
@@ -28739,7 +28740,7 @@ const Rz = D(({
|
|
|
28739
28740
|
fontFamily: "monospace"
|
|
28740
28741
|
}, children: "This table is empty" }) : t.error ? /* @__PURE__ */ i(C, { mt: 20, color: "red", size: "md", align: "center", sx: {
|
|
28741
28742
|
fontFamily: "monospace"
|
|
28742
|
-
}, children: t.error }) : t.page === 1 && t.loading ? /* @__PURE__ */ i(Oz, { visible: !0 }) : /* @__PURE__ */ u(
|
|
28743
|
+
}, children: t.error }) : t.page === 1 && t.loading ? /* @__PURE__ */ i(Oz, { visible: !0 }) : /* @__PURE__ */ u(pt, { children: [
|
|
28743
28744
|
/* @__PURE__ */ i(Vz, { dataSource: e }),
|
|
28744
28745
|
/* @__PURE__ */ u(V, { py: 10, sx: {
|
|
28745
28746
|
width: "100%",
|
|
@@ -28776,7 +28777,7 @@ const Rz = D(({
|
|
|
28776
28777
|
flexGrow: 0,
|
|
28777
28778
|
flexShrink: 0,
|
|
28778
28779
|
position: "relative"
|
|
28779
|
-
}, children: /* @__PURE__ */ i(
|
|
28780
|
+
}, children: /* @__PURE__ */ i(pt, { children: /* @__PURE__ */ i(Rz, { dataSource: e }) }) }),
|
|
28780
28781
|
/* @__PURE__ */ u(g, { defaultValue: "structure", styles: Bz, children: [
|
|
28781
28782
|
/* @__PURE__ */ u(g.List, { children: [
|
|
28782
28783
|
/* @__PURE__ */ i(g.Tab, { value: "structure", icon: /* @__PURE__ */ i(pp, { size: 14 }), children: "Structure" }),
|
|
@@ -29895,7 +29896,7 @@ const H$ = {
|
|
|
29895
29896
|
h.datasources.replace(d);
|
|
29896
29897
|
}, [d]), R.useEffect(() => {
|
|
29897
29898
|
h.globalSQLSnippets.replace(p);
|
|
29898
|
-
}, [p]), R.useEffect(() =>
|
|
29899
|
+
}, [p]), R.useEffect(() => yt(() => on(h.json), (v) => {
|
|
29899
29900
|
s == null || s(v);
|
|
29900
29901
|
}), [h]);
|
|
29901
29902
|
const m = async () => {
|
|
@@ -30320,8 +30321,8 @@ var _o = {}, oL = {
|
|
|
30320
30321
|
return function($e) {
|
|
30321
30322
|
var tt = $e.afternoon;
|
|
30322
30323
|
if (tt !== void 0) {
|
|
30323
|
-
var
|
|
30324
|
-
tt ?
|
|
30324
|
+
var St = $e.hours;
|
|
30325
|
+
tt ? St < 12 && ($e.hours += 12) : St === 12 && ($e.hours = 0), delete $e.afternoon;
|
|
30325
30326
|
}
|
|
30326
30327
|
}(ee), ee;
|
|
30327
30328
|
};
|
|
@@ -30339,8 +30340,8 @@ var _o = {}, oL = {
|
|
|
30339
30340
|
try {
|
|
30340
30341
|
if (["x", "X"].indexOf(Ve) > -1)
|
|
30341
30342
|
return new Date((Ve === "X" ? 1e3 : 1) * ze);
|
|
30342
|
-
var tt = w(Ve)(ze),
|
|
30343
|
-
|
|
30343
|
+
var tt = w(Ve)(ze), St = tt.year, xn = tt.month, Ar = tt.day, Er = tt.hours, Ai = tt.minutes, Ei = tt.seconds, rr = tt.milliseconds, Pn = tt.zone, sn = /* @__PURE__ */ new Date(), vn = Ar || (St || xn ? 1 : sn.getDate()), ln = St || sn.getFullYear(), Vn = 0;
|
|
30344
|
+
St && !xn || (Vn = xn > 0 ? xn - 1 : sn.getMonth());
|
|
30344
30345
|
var Nn = Er || 0, ir = Ai || 0, or = Ei || 0, cn = rr || 0;
|
|
30345
30346
|
return Pn ? new Date(Date.UTC(ln, Vn, vn, Nn, ir, or, cn + 60 * Pn.offset * 1e3)) : $e ? new Date(Date.UTC(ln, Vn, vn, Nn, ir, or, cn)) : new Date(ln, Vn, vn, Nn, ir, or, cn);
|
|
30346
30347
|
} catch {
|