@devtable/dashboard 10.25.0 → 10.25.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/components/filter/filter-multi-select/render/widget.d.ts +2 -1
- package/dist/components/filter/filter-multi-select/render/widget.styles.d.ts +1 -0
- package/dist/components/filter/filter-tree-select/render/widget.d.ts +2 -1
- package/dist/components/filter/filter-tree-select/render/widget.styles.d.ts +1 -0
- package/dist/dashboard.es.js +645 -628
- package/dist/dashboard.umd.js +39 -39
- package/dist/stats.html +1 -1
- package/package.json +1 -1
package/dist/dashboard.es.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
var th = Object.defineProperty;
|
|
2
2
|
var nh = (e, t, n) => t in e ? th(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n;
|
|
3
|
-
var
|
|
3
|
+
var Y = (e, t, n) => (nh(e, typeof t != "symbol" ? t + "" : t, n), n);
|
|
4
4
|
import R, { useState as Q, useEffect as q, useCallback as nt, useMemo as M, forwardRef as we, createElement as ti, useContext as Ut, useRef as ni, createContext as ul, memo as rh } from "react";
|
|
5
|
-
import { Select as F, Stack as S, Text as C, Group as v, TextInput as
|
|
5
|
+
import { Select as F, Stack as S, Text as C, Group as v, TextInput as L, Button as I, Box as N, Switch as Xe, NumberInput as ie, Divider as A, Table as Vt, ActionIcon as K, MultiSelect as dr, Paper as ja, Code as fs, Modal as Te, Tabs as g, LoadingOverlay as kn, Alert as Ga, NativeSelect as hl, useMantineTheme as pl, ColorInput as Ya, ColorSwatch as Ui, Slider as ih, Overlay as Xt, Checkbox as me, Center as Tn, CheckIcon as ah, MANTINE_SIZES as oh, SimpleGrid as ln, Tooltip as Ne, SegmentedControl as sh, HoverCard as at, Anchor as Xi, Textarea as lh, Collapse as Ha, Mark as ch, createStyles as Gn, Popover as Ri, Flex as Yn, Badge as ur, CloseButton as fl, Menu as he, Affix as dh, Header as uh, ThemeIcon as Oi, List as ms, UnstyledButton as hh, Navbar as Ht, JsonInput as ml, Drawer as ph, Radio as gs, Skeleton as bs, NavLink as Ji, Pagination as fh, AppShell as gl } from "@mantine/core";
|
|
6
6
|
import { useModals as Jt, ModalsProvider as bl } from "@mantine/modals";
|
|
7
7
|
import { useBoolean as Je, useCreation as Lt, useAsyncEffect as vr, useRequest as wn, useLatest as ys, usePrevious as mh } from "ahooks";
|
|
8
8
|
import { observable as yl, runInAction as or, toJS as Zt, reaction as St, makeAutoObservable as wr } from "mobx";
|
|
@@ -120,7 +120,7 @@ function Jp() {
|
|
|
120
120
|
return typeof P == "function" ? P : null;
|
|
121
121
|
}
|
|
122
122
|
var $ = e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
|
|
123
|
-
function
|
|
123
|
+
function z(_) {
|
|
124
124
|
{
|
|
125
125
|
for (var P = arguments.length, G = new Array(P > 1 ? P - 1 : 0), ne = 1; ne < P; ne++)
|
|
126
126
|
G[ne - 1] = arguments[ne];
|
|
@@ -137,10 +137,10 @@ function Jp() {
|
|
|
137
137
|
Se.unshift("Warning: " + P), Function.prototype.apply.call(console[_], console, Se);
|
|
138
138
|
}
|
|
139
139
|
}
|
|
140
|
-
var
|
|
140
|
+
var U = !1, V = !1, O = !1, E = !1, H = !1, re;
|
|
141
141
|
re = Symbol.for("react.module.reference");
|
|
142
142
|
function te(_) {
|
|
143
|
-
return !!(typeof _ == "string" || typeof _ == "function" || _ === r || _ === o ||
|
|
143
|
+
return !!(typeof _ == "string" || typeof _ == "function" || _ === r || _ === o || H || _ === a || _ === d || _ === p || E || _ === m || U || V || O || typeof _ == "object" && _ !== null && (_.$$typeof === f || _.$$typeof === h || _.$$typeof === s || _.$$typeof === l || _.$$typeof === c || // This needs to include all possible module reference object
|
|
144
144
|
// types supported by any Flight configuration anywhere since
|
|
145
145
|
// we don't know which Flight build this will end up being used
|
|
146
146
|
// with.
|
|
@@ -159,7 +159,7 @@ function Jp() {
|
|
|
159
159
|
function xe(_) {
|
|
160
160
|
if (_ == null)
|
|
161
161
|
return null;
|
|
162
|
-
if (typeof _.tag == "number" &&
|
|
162
|
+
if (typeof _.tag == "number" && z("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."), typeof _ == "function")
|
|
163
163
|
return _.displayName || _.name || null;
|
|
164
164
|
if (typeof _ == "string")
|
|
165
165
|
return _;
|
|
@@ -260,7 +260,7 @@ function Jp() {
|
|
|
260
260
|
})
|
|
261
261
|
});
|
|
262
262
|
}
|
|
263
|
-
Ue < 0 &&
|
|
263
|
+
Ue < 0 && z("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
|
|
264
264
|
}
|
|
265
265
|
}
|
|
266
266
|
var Jn = $.ReactCurrentDispatcher, Ln;
|
|
@@ -412,7 +412,7 @@ function Jp() {
|
|
|
412
412
|
} catch (Ve) {
|
|
413
413
|
le = Ve;
|
|
414
414
|
}
|
|
415
|
-
le && !(le instanceof Error) && (Mr(pe),
|
|
415
|
+
le && !(le instanceof Error) && (Mr(pe), z("%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).", ne || "React class", G, de, typeof le), Mr(null)), le instanceof Error && !(le.message in ts) && (ts[le.message] = !0, Mr(pe), z("Failed %s type: %s", G, le.message), Mr(null));
|
|
416
416
|
}
|
|
417
417
|
}
|
|
418
418
|
}
|
|
@@ -438,7 +438,7 @@ function Jp() {
|
|
|
438
438
|
}
|
|
439
439
|
function is(_) {
|
|
440
440
|
if (Pu(_))
|
|
441
|
-
return
|
|
441
|
+
return z("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", Fu(_)), rs(_);
|
|
442
442
|
}
|
|
443
443
|
var nr = $.ReactCurrentOwner, Vu = {
|
|
444
444
|
key: !0,
|
|
@@ -466,13 +466,13 @@ function Jp() {
|
|
|
466
466
|
function qu(_, P) {
|
|
467
467
|
if (typeof _.ref == "string" && nr.current && P && nr.current.stateNode !== P) {
|
|
468
468
|
var G = xe(nr.current.type);
|
|
469
|
-
zi[G] || (
|
|
469
|
+
zi[G] || (z('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', xe(nr.current.type), _.ref), zi[G] = !0);
|
|
470
470
|
}
|
|
471
471
|
}
|
|
472
472
|
function Wu(_, P) {
|
|
473
473
|
{
|
|
474
474
|
var G = function() {
|
|
475
|
-
as || (as = !0,
|
|
475
|
+
as || (as = !0, z("%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)", P));
|
|
476
476
|
};
|
|
477
477
|
G.isReactWarning = !0, Object.defineProperty(_, "key", {
|
|
478
478
|
get: G,
|
|
@@ -483,7 +483,7 @@ function Jp() {
|
|
|
483
483
|
function ju(_, P) {
|
|
484
484
|
{
|
|
485
485
|
var G = function() {
|
|
486
|
-
os || (os = !0,
|
|
486
|
+
os || (os = !0, z("%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)", P));
|
|
487
487
|
};
|
|
488
488
|
G.isReactWarning = !0, Object.defineProperty(_, "ref", {
|
|
489
489
|
get: G,
|
|
@@ -597,7 +597,7 @@ Check the top-level render call using <` + G + ">.");
|
|
|
597
597
|
return;
|
|
598
598
|
cs[G] = !0;
|
|
599
599
|
var ne = "";
|
|
600
|
-
_ && _._owner && _._owner !== Li.current && (ne = " It was passed a child from " + xe(_._owner.type) + "."), Rn(_),
|
|
600
|
+
_ && _._owner && _._owner !== Li.current && (ne = " It was passed a child from " + xe(_._owner.type) + "."), Rn(_), z('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', G, ne), Rn(null);
|
|
601
601
|
}
|
|
602
602
|
}
|
|
603
603
|
function us(_, P) {
|
|
@@ -639,9 +639,9 @@ Check the top-level render call using <` + G + ">.");
|
|
|
639
639
|
} else if (P.PropTypes !== void 0 && !Ai) {
|
|
640
640
|
Ai = !0;
|
|
641
641
|
var pe = xe(P);
|
|
642
|
-
|
|
642
|
+
z("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", pe || "Unknown");
|
|
643
643
|
}
|
|
644
|
-
typeof P.getDefaultProps == "function" && !P.getDefaultProps.isReactClassApproved &&
|
|
644
|
+
typeof P.getDefaultProps == "function" && !P.getDefaultProps.isReactClassApproved && z("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.");
|
|
645
645
|
}
|
|
646
646
|
}
|
|
647
647
|
function Uu(_) {
|
|
@@ -649,11 +649,11 @@ Check the top-level render call using <` + G + ">.");
|
|
|
649
649
|
for (var P = Object.keys(_.props), G = 0; G < P.length; G++) {
|
|
650
650
|
var ne = P[G];
|
|
651
651
|
if (ne !== "children" && ne !== "key") {
|
|
652
|
-
Rn(_),
|
|
652
|
+
Rn(_), z("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", ne), Rn(null);
|
|
653
653
|
break;
|
|
654
654
|
}
|
|
655
655
|
}
|
|
656
|
-
_.ref !== null && (Rn(_),
|
|
656
|
+
_.ref !== null && (Rn(_), z("Invalid attribute `ref` supplied to `React.Fragment`."), Rn(null));
|
|
657
657
|
}
|
|
658
658
|
}
|
|
659
659
|
function hs(_, P, G, ne, pe, Se) {
|
|
@@ -665,7 +665,7 @@ Check the top-level render call using <` + G + ">.");
|
|
|
665
665
|
var it = Hu(pe);
|
|
666
666
|
it ? le += it : le += ls();
|
|
667
667
|
var Ve;
|
|
668
|
-
_ === null ? Ve = "null" : $i(_) ? Ve = "array" : _ !== void 0 && _.$$typeof === t ? (Ve = "<" + (xe(_.type) || "Unknown") + " />", le = " Did you accidentally export a JSX literal instead of a component?") : Ve = typeof _,
|
|
668
|
+
_ === null ? Ve = "null" : $i(_) ? Ve = "array" : _ !== void 0 && _.$$typeof === t ? (Ve = "<" + (xe(_.type) || "Unknown") + " />", le = " Did you accidentally export a JSX literal instead of a component?") : Ve = typeof _, z("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", Ve, le);
|
|
669
669
|
}
|
|
670
670
|
var Be = Yu(_, P, G, pe, Se);
|
|
671
671
|
if (Be == null)
|
|
@@ -679,7 +679,7 @@ Check the top-level render call using <` + G + ">.");
|
|
|
679
679
|
us(_t[On], _);
|
|
680
680
|
Object.freeze && Object.freeze(_t);
|
|
681
681
|
} else
|
|
682
|
-
|
|
682
|
+
z("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
684
|
us(_t, _);
|
|
685
685
|
}
|
|
@@ -941,7 +941,7 @@ async function lc() {
|
|
|
941
941
|
}
|
|
942
942
|
class cc {
|
|
943
943
|
constructor(t) {
|
|
944
|
-
|
|
944
|
+
Y(this, "rootRef");
|
|
945
945
|
this.rootRef = yl({
|
|
946
946
|
current: t
|
|
947
947
|
});
|
|
@@ -983,8 +983,8 @@ class cc {
|
|
|
983
983
|
}
|
|
984
984
|
class cf {
|
|
985
985
|
constructor() {
|
|
986
|
-
|
|
987
|
-
|
|
986
|
+
Y(this, "channels", /* @__PURE__ */ new Map());
|
|
987
|
+
Y(this, "globalChannel", new xs());
|
|
988
988
|
}
|
|
989
989
|
getChannel(t) {
|
|
990
990
|
const n = this.channels.get(t);
|
|
@@ -996,7 +996,7 @@ class cf {
|
|
|
996
996
|
}
|
|
997
997
|
class df {
|
|
998
998
|
constructor(t) {
|
|
999
|
-
|
|
999
|
+
Y(this, "instances", /* @__PURE__ */ new Map());
|
|
1000
1000
|
this.pluginManager = t;
|
|
1001
1001
|
}
|
|
1002
1002
|
get availableVizList() {
|
|
@@ -1120,7 +1120,7 @@ const uf = (e) => {
|
|
|
1120
1120
|
};
|
|
1121
1121
|
class xf {
|
|
1122
1122
|
constructor(t) {
|
|
1123
|
-
|
|
1123
|
+
Y(this, "symbol");
|
|
1124
1124
|
this.symbol = Symbol(t);
|
|
1125
1125
|
}
|
|
1126
1126
|
}
|
|
@@ -1129,9 +1129,9 @@ function Yt(e) {
|
|
|
1129
1129
|
}
|
|
1130
1130
|
class oo {
|
|
1131
1131
|
constructor() {
|
|
1132
|
-
|
|
1133
|
-
|
|
1134
|
-
|
|
1132
|
+
Y(this, "parent");
|
|
1133
|
+
Y(this, "factoryRegistry", /* @__PURE__ */ new Map());
|
|
1134
|
+
Y(this, "instanceRegistry", /* @__PURE__ */ new Map());
|
|
1135
1135
|
}
|
|
1136
1136
|
createScoped() {
|
|
1137
1137
|
const t = new oo();
|
|
@@ -1164,14 +1164,14 @@ class oo {
|
|
|
1164
1164
|
}), this.instanceRegistry.clear(), this.factoryRegistry.clear();
|
|
1165
1165
|
}
|
|
1166
1166
|
}
|
|
1167
|
-
const hc = "10.25.
|
|
1167
|
+
const hc = "10.25.1", vf = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
1168
1168
|
__proto__: null,
|
|
1169
1169
|
version: hc
|
|
1170
1170
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
1171
1171
|
class wf {
|
|
1172
1172
|
constructor(t) {
|
|
1173
|
-
|
|
1174
|
-
|
|
1173
|
+
Y(this, "staticColors", /* @__PURE__ */ new Map());
|
|
1174
|
+
Y(this, "interpolations", /* @__PURE__ */ new Map());
|
|
1175
1175
|
t.installedPlugins.forEach((n) => {
|
|
1176
1176
|
n.manifest.color.forEach((r) => {
|
|
1177
1177
|
this.register(r);
|
|
@@ -1204,12 +1204,12 @@ class _f {
|
|
|
1204
1204
|
* Id to plugin map
|
|
1205
1205
|
* @private
|
|
1206
1206
|
*/
|
|
1207
|
-
|
|
1207
|
+
Y(this, "plugins", /* @__PURE__ */ new Map());
|
|
1208
1208
|
/**
|
|
1209
1209
|
* Name to component map
|
|
1210
1210
|
*/
|
|
1211
|
-
|
|
1212
|
-
|
|
1211
|
+
Y(this, "vizComponents", /* @__PURE__ */ new Map());
|
|
1212
|
+
Y(this, "factory", {
|
|
1213
1213
|
viz: (t) => {
|
|
1214
1214
|
const n = this.vizComponents.get(t);
|
|
1215
1215
|
if (n)
|
|
@@ -1234,7 +1234,7 @@ class _f {
|
|
|
1234
1234
|
}
|
|
1235
1235
|
class Cf {
|
|
1236
1236
|
constructor() {
|
|
1237
|
-
|
|
1237
|
+
Y(this, "migrations", []);
|
|
1238
1238
|
}
|
|
1239
1239
|
version(t, n) {
|
|
1240
1240
|
return this.migrations.push({
|
|
@@ -1317,7 +1317,7 @@ const J = (e, t) => {
|
|
|
1317
1317
|
name: "Z Axis Name"
|
|
1318
1318
|
}
|
|
1319
1319
|
};
|
|
1320
|
-
function
|
|
1320
|
+
function B(e) {
|
|
1321
1321
|
const [t, n] = e.split(".");
|
|
1322
1322
|
return {
|
|
1323
1323
|
queryID: t,
|
|
@@ -1325,7 +1325,7 @@ function N(e) {
|
|
|
1325
1325
|
};
|
|
1326
1326
|
}
|
|
1327
1327
|
function Sf(e) {
|
|
1328
|
-
return e.includes(".") ?
|
|
1328
|
+
return e.includes(".") ? B(e) : {
|
|
1329
1329
|
queryID: "",
|
|
1330
1330
|
columnKey: e
|
|
1331
1331
|
};
|
|
@@ -1335,13 +1335,13 @@ function Kt(e, t) {
|
|
|
1335
1335
|
const {
|
|
1336
1336
|
queryID: n,
|
|
1337
1337
|
columnKey: r
|
|
1338
|
-
} =
|
|
1338
|
+
} = B(t);
|
|
1339
1339
|
return n ? r ? ((a = e[n]) == null ? void 0 : a.map((o) => o[r])) ?? [] : e[n] : [];
|
|
1340
1340
|
}
|
|
1341
1341
|
function Cr(e, t) {
|
|
1342
1342
|
const {
|
|
1343
1343
|
queryID: n
|
|
1344
|
-
} =
|
|
1344
|
+
} = B(t);
|
|
1345
1345
|
return n ? e[n] : [];
|
|
1346
1346
|
}
|
|
1347
1347
|
function kf(e) {
|
|
@@ -1351,7 +1351,7 @@ function Vr(e, t) {
|
|
|
1351
1351
|
const {
|
|
1352
1352
|
queryID: n,
|
|
1353
1353
|
columnKey: r
|
|
1354
|
-
} =
|
|
1354
|
+
} = B(t);
|
|
1355
1355
|
return e[r];
|
|
1356
1356
|
}
|
|
1357
1357
|
ge.use([bt, _r, yt, xt, st]);
|
|
@@ -1375,16 +1375,16 @@ function Tf({
|
|
|
1375
1375
|
y: m,
|
|
1376
1376
|
z: w
|
|
1377
1377
|
} = M(() => ({
|
|
1378
|
-
x:
|
|
1379
|
-
y:
|
|
1380
|
-
z:
|
|
1378
|
+
x: B(o),
|
|
1379
|
+
y: B(s),
|
|
1380
|
+
z: B(l)
|
|
1381
1381
|
}), [o, s, l]), {
|
|
1382
1382
|
min: x,
|
|
1383
1383
|
max: T
|
|
1384
1384
|
} = M(() => {
|
|
1385
|
-
const
|
|
1385
|
+
const z = xh(h, (U) => U[w.columnKey]), j = vh(h, (U) => U[w.columnKey]);
|
|
1386
1386
|
return {
|
|
1387
|
-
min: ce(
|
|
1387
|
+
min: ce(z, w.columnKey),
|
|
1388
1388
|
max: ce(j, w.columnKey)
|
|
1389
1389
|
};
|
|
1390
1390
|
}, [h, w]), $ = {
|
|
@@ -1420,7 +1420,7 @@ function Tf({
|
|
|
1420
1420
|
wireframe: {
|
|
1421
1421
|
// show: false
|
|
1422
1422
|
},
|
|
1423
|
-
data: h.map((
|
|
1423
|
+
data: h.map((z) => [z[f.columnKey], z[m.columnKey], z[w.columnKey]])
|
|
1424
1424
|
}]
|
|
1425
1425
|
};
|
|
1426
1426
|
return t ? /* @__PURE__ */ i(lt, { echarts: ge, option: $, style: {
|
|
@@ -1515,7 +1515,7 @@ function $f({
|
|
|
1515
1515
|
}) => /* @__PURE__ */ i(X, { label: "Data Field", required: !0, ...l }) }),
|
|
1516
1516
|
/* @__PURE__ */ i(y, { name: "xAxis3D.name", control: a, render: ({
|
|
1517
1517
|
field: l
|
|
1518
|
-
}) => /* @__PURE__ */ i(
|
|
1518
|
+
}) => /* @__PURE__ */ i(L, { sx: {
|
|
1519
1519
|
flexGrow: 1
|
|
1520
1520
|
}, size: "md", label: "Name", ...l }) })
|
|
1521
1521
|
] }),
|
|
@@ -1529,7 +1529,7 @@ function $f({
|
|
|
1529
1529
|
}) => /* @__PURE__ */ i(X, { label: "Data Field", required: !0, ...l }) }),
|
|
1530
1530
|
/* @__PURE__ */ i(y, { name: "yAxis3D.name", control: a, render: ({
|
|
1531
1531
|
field: l
|
|
1532
|
-
}) => /* @__PURE__ */ i(
|
|
1532
|
+
}) => /* @__PURE__ */ i(L, { sx: {
|
|
1533
1533
|
flexGrow: 1
|
|
1534
1534
|
}, size: "md", label: "Name", ...l }) })
|
|
1535
1535
|
] }),
|
|
@@ -1543,7 +1543,7 @@ function $f({
|
|
|
1543
1543
|
}) => /* @__PURE__ */ i(X, { label: "Data Field", required: !0, ...l }) }),
|
|
1544
1544
|
/* @__PURE__ */ i(y, { name: "zAxis3D.name", control: a, render: ({
|
|
1545
1545
|
field: l
|
|
1546
|
-
}) => /* @__PURE__ */ i(
|
|
1546
|
+
}) => /* @__PURE__ */ i(L, { sx: {
|
|
1547
1547
|
flexGrow: 1
|
|
1548
1548
|
}, size: "md", label: "Name", ...l }) })
|
|
1549
1549
|
] }),
|
|
@@ -1581,7 +1581,7 @@ function zf(e, {
|
|
|
1581
1581
|
class Lf extends Re {
|
|
1582
1582
|
constructor() {
|
|
1583
1583
|
super(...arguments);
|
|
1584
|
-
|
|
1584
|
+
Y(this, "VERSION", 2);
|
|
1585
1585
|
}
|
|
1586
1586
|
configVersions() {
|
|
1587
1587
|
this.version(1, (n) => ({
|
|
@@ -1632,7 +1632,7 @@ class ht extends R.Component {
|
|
|
1632
1632
|
error: null
|
|
1633
1633
|
});
|
|
1634
1634
|
};
|
|
1635
|
-
return /* @__PURE__ */ u(
|
|
1635
|
+
return /* @__PURE__ */ u(N, { children: [
|
|
1636
1636
|
/* @__PURE__ */ i(C, { size: "xs", children: (t = this.state.error) == null ? void 0 : t.message }),
|
|
1637
1637
|
/* @__PURE__ */ i(I, { variant: "subtle", size: "xs", mx: "auto", compact: !0, sx: {
|
|
1638
1638
|
display: "block"
|
|
@@ -1800,14 +1800,14 @@ const Ff = [{
|
|
|
1800
1800
|
k.set(l, o, s), n(l);
|
|
1801
1801
|
};
|
|
1802
1802
|
return /* @__PURE__ */ u(S, { spacing: 0, children: [
|
|
1803
|
-
e && /* @__PURE__ */ i(
|
|
1803
|
+
e && /* @__PURE__ */ i(A, { mb: -5, mt: 5, variant: "dotted", label: e, labelPosition: "right", labelProps: {
|
|
1804
1804
|
color: "dimmed"
|
|
1805
1805
|
} }),
|
|
1806
1806
|
/* @__PURE__ */ u(v, { grow: !0, noWrap: !0, children: [
|
|
1807
1807
|
/* @__PURE__ */ i(ie, { label: "Max Width", hideControls: !0, value: t.width, onChange: a("width") }),
|
|
1808
1808
|
/* @__PURE__ */ i(F, { label: "Overflow", data: Ff, value: t.overflow, onChange: a("overflow") }),
|
|
1809
1809
|
/* @__PURE__ */ i(
|
|
1810
|
-
|
|
1810
|
+
L,
|
|
1811
1811
|
{
|
|
1812
1812
|
label: "Ellipsis",
|
|
1813
1813
|
value: t.ellipsis,
|
|
@@ -1912,7 +1912,7 @@ function zn(e, t) {
|
|
|
1912
1912
|
const {
|
|
1913
1913
|
queryID: n,
|
|
1914
1914
|
columnKey: r
|
|
1915
|
-
} =
|
|
1915
|
+
} = B(t);
|
|
1916
1916
|
return k.keyBy(e[n], r);
|
|
1917
1917
|
}, [e, t]);
|
|
1918
1918
|
}
|
|
@@ -1956,7 +1956,7 @@ class Nn {
|
|
|
1956
1956
|
}
|
|
1957
1957
|
class uo {
|
|
1958
1958
|
constructor(t, n, r) {
|
|
1959
|
-
|
|
1959
|
+
Y(this, "attachmentStorage");
|
|
1960
1960
|
this.instance = t, this.attachmentKey = n, this.constructInstance = r, this.attachmentStorage = new Nn(t.instanceData, n);
|
|
1961
1961
|
}
|
|
1962
1962
|
async getInstance(t) {
|
|
@@ -2012,7 +2012,7 @@ function Vf(e) {
|
|
|
2012
2012
|
urlTemplate: l.currentTarget.value
|
|
2013
2013
|
});
|
|
2014
2014
|
return /* @__PURE__ */ u(S, { children: [
|
|
2015
|
-
/* @__PURE__ */ i(
|
|
2015
|
+
/* @__PURE__ */ i(L, { label: "Url", value: t.urlTemplate, onChange: s, onBlur: a }),
|
|
2016
2016
|
/* @__PURE__ */ i(Xe, { label: "Open in new Tab", checked: t.openInNewTab, onChange: (l) => o(l.currentTarget.checked) })
|
|
2017
2017
|
] });
|
|
2018
2018
|
}
|
|
@@ -2032,7 +2032,7 @@ async function Nf(e, t) {
|
|
|
2032
2032
|
class Bf extends Re {
|
|
2033
2033
|
constructor() {
|
|
2034
2034
|
super(...arguments);
|
|
2035
|
-
|
|
2035
|
+
Y(this, "VERSION", 1);
|
|
2036
2036
|
}
|
|
2037
2037
|
configVersions() {
|
|
2038
2038
|
this.version(1, (n) => n);
|
|
@@ -2063,7 +2063,7 @@ function Wf(e) {
|
|
|
2063
2063
|
}
|
|
2064
2064
|
function jf(e) {
|
|
2065
2065
|
const [t, n] = Wf(e.operation);
|
|
2066
|
-
return /* @__PURE__ */ i(
|
|
2066
|
+
return /* @__PURE__ */ i(L, { defaultValue: t, onBlur: (r) => n(r.currentTarget.value), label: "console.log" });
|
|
2067
2067
|
}
|
|
2068
2068
|
async function Gf(e, t) {
|
|
2069
2069
|
const n = await t.operationData.getItem("config"), r = Ka(n.template || "");
|
|
@@ -2116,7 +2116,7 @@ const Kf = {
|
|
|
2116
2116
|
const [n, r] = Q(e);
|
|
2117
2117
|
return q(() => {
|
|
2118
2118
|
r(e);
|
|
2119
|
-
}, [e]), /* @__PURE__ */ i(
|
|
2119
|
+
}, [e]), /* @__PURE__ */ i(L, { size: "xs", label: "", value: n, onChange: (o) => r(o.currentTarget.value), sx: {
|
|
2120
2120
|
flexGrow: 1
|
|
2121
2121
|
}, rightSection: /* @__PURE__ */ i(K, { color: "green", size: "xs", onClick: () => {
|
|
2122
2122
|
t(n);
|
|
@@ -2219,7 +2219,7 @@ const am = {
|
|
|
2219
2219
|
}, hi = [Yf, qf, Kf, tm, am];
|
|
2220
2220
|
class om {
|
|
2221
2221
|
constructor(t, n = hi) {
|
|
2222
|
-
|
|
2222
|
+
Y(this, "attachments");
|
|
2223
2223
|
this.operations = n;
|
|
2224
2224
|
const r = async (a) => {
|
|
2225
2225
|
const {
|
|
@@ -2295,7 +2295,7 @@ class om {
|
|
|
2295
2295
|
const Ds = "__TRIGGERS";
|
|
2296
2296
|
class sm {
|
|
2297
2297
|
constructor(t, n) {
|
|
2298
|
-
|
|
2298
|
+
Y(this, "attachments");
|
|
2299
2299
|
this.instance = t, this.component = n;
|
|
2300
2300
|
const r = async (a) => {
|
|
2301
2301
|
const {
|
|
@@ -2366,9 +2366,9 @@ class sm {
|
|
|
2366
2366
|
}
|
|
2367
2367
|
class ho {
|
|
2368
2368
|
constructor(t, n, r) {
|
|
2369
|
-
|
|
2370
|
-
|
|
2371
|
-
|
|
2369
|
+
Y(this, "operationManager");
|
|
2370
|
+
Y(this, "triggerManager");
|
|
2371
|
+
Y(this, "attachments");
|
|
2372
2372
|
this.operationManager = new om(t, r), this.triggerManager = new sm(t, n);
|
|
2373
2373
|
const a = async (o) => {
|
|
2374
2374
|
const {
|
|
@@ -2457,10 +2457,10 @@ const It = ({
|
|
|
2457
2457
|
};
|
|
2458
2458
|
class lm {
|
|
2459
2459
|
constructor(t, n) {
|
|
2460
|
-
|
|
2461
|
-
|
|
2462
|
-
|
|
2463
|
-
|
|
2460
|
+
Y(this, "operationId");
|
|
2461
|
+
Y(this, "operation");
|
|
2462
|
+
Y(this, "operationSchema");
|
|
2463
|
+
Y(this, "variables", []);
|
|
2464
2464
|
this.operationManager = t, this.instance = n, wr(this);
|
|
2465
2465
|
}
|
|
2466
2466
|
get schemaList() {
|
|
@@ -2537,10 +2537,10 @@ const pm = D((e) => {
|
|
|
2537
2537
|
});
|
|
2538
2538
|
class fm {
|
|
2539
2539
|
constructor(t, n) {
|
|
2540
|
-
|
|
2541
|
-
|
|
2542
|
-
|
|
2543
|
-
|
|
2540
|
+
Y(this, "triggerId");
|
|
2541
|
+
Y(this, "trigger");
|
|
2542
|
+
Y(this, "triggerSchema");
|
|
2543
|
+
Y(this, "sampleData");
|
|
2544
2544
|
this.triggerManager = t, this.instance = n, wr(this);
|
|
2545
2545
|
}
|
|
2546
2546
|
get schemaList() {
|
|
@@ -2735,7 +2735,7 @@ function Dm(e, t) {
|
|
|
2735
2735
|
} = e;
|
|
2736
2736
|
if (!n.data_key || !r.data_key)
|
|
2737
2737
|
return [];
|
|
2738
|
-
const a =
|
|
2738
|
+
const a = B(n.data_key), o = B(r.data_key);
|
|
2739
2739
|
if (a.queryID !== o.queryID)
|
|
2740
2740
|
throw new Error("Please use the same query for X & Y axis");
|
|
2741
2741
|
const s = k.groupBy(t[a.queryID], a.columnKey), l = Tm(s, o.columnKey), c = l.map((d) => d.outliers).flat();
|
|
@@ -2854,7 +2854,7 @@ function Am(e, t) {
|
|
|
2854
2854
|
<td style="text-align: left; padding: 0 1em;">${t[1]}</td>
|
|
2855
2855
|
</tr>
|
|
2856
2856
|
`], a = e.tooltip.metrics.map((s) => {
|
|
2857
|
-
const l =
|
|
2857
|
+
const l = B(s.data_key);
|
|
2858
2858
|
return `
|
|
2859
2859
|
<tr>
|
|
2860
2860
|
<th style="text-align: right; padding: 0 1em;">${s.name}</th>
|
|
@@ -2893,7 +2893,7 @@ const mr = we(function({
|
|
|
2893
2893
|
onChange: n,
|
|
2894
2894
|
...r
|
|
2895
2895
|
}, a) {
|
|
2896
|
-
return /* @__PURE__ */ i(
|
|
2896
|
+
return /* @__PURE__ */ i(L, { ref: a, value: t, onChange: n, ...r });
|
|
2897
2897
|
}), po = {
|
|
2898
2898
|
fontSize: "14px",
|
|
2899
2899
|
lineHeight: "32px",
|
|
@@ -5655,11 +5655,11 @@ function Hg(e, t, n = {}) {
|
|
|
5655
5655
|
e.doc.nodesBetween(m, w, (x, T) => {
|
|
5656
5656
|
if (!x.isText && !x.marks.length)
|
|
5657
5657
|
return;
|
|
5658
|
-
const $ = Math.max(m, T),
|
|
5659
|
-
s += j, l.push(...x.marks.map((
|
|
5660
|
-
mark:
|
|
5658
|
+
const $ = Math.max(m, T), z = Math.min(w, T + x.nodeSize), j = z - $;
|
|
5659
|
+
s += j, l.push(...x.marks.map((U) => ({
|
|
5660
|
+
mark: U,
|
|
5661
5661
|
from: $,
|
|
5662
|
-
to:
|
|
5662
|
+
to: z
|
|
5663
5663
|
})));
|
|
5664
5664
|
});
|
|
5665
5665
|
}), s === 0)
|
|
@@ -5794,15 +5794,15 @@ const tb = ({ keepMarks: e = !0 } = {}) => ({ tr: t, state: n, dispatch: r, edit
|
|
|
5794
5794
|
const $ = l.index(-1) ? 1 : l.index(-2) ? 2 : 3;
|
|
5795
5795
|
for (let E = l.depth - $; E >= l.depth - 3; E -= 1)
|
|
5796
5796
|
T = fe.from(l.node(E).copy(T));
|
|
5797
|
-
const
|
|
5798
|
-
T = T.append(fe.from(s.createAndFill(null,
|
|
5799
|
-
const
|
|
5800
|
-
t.replace(
|
|
5797
|
+
const z = l.indexAfter(-1) < l.node(-2).childCount ? 1 : l.indexAfter(-2) < l.node(-3).childCount ? 2 : 3, j = qr(h, l.node().type.name, l.node().attrs), U = ((o = s.contentMatch.defaultType) === null || o === void 0 ? void 0 : o.createAndFill(j)) || void 0;
|
|
5798
|
+
T = T.append(fe.from(s.createAndFill(null, U) || void 0));
|
|
5799
|
+
const V = l.before(l.depth - ($ - 1));
|
|
5800
|
+
t.replace(V, l.after(-z), new _e(T, 4 - $, 0));
|
|
5801
5801
|
let O = -1;
|
|
5802
|
-
t.doc.nodesBetween(
|
|
5802
|
+
t.doc.nodesBetween(V, t.doc.content.size, (E, H) => {
|
|
5803
5803
|
if (O > -1)
|
|
5804
5804
|
return !1;
|
|
5805
|
-
E.isTextblock && E.content.size === 0 && (O =
|
|
5805
|
+
E.isTextblock && E.content.size === 0 && (O = H + 1);
|
|
5806
5806
|
}), O > -1 && t.setSelection(He.near(t.doc.resolve(O))), t.scrollIntoView();
|
|
5807
5807
|
}
|
|
5808
5808
|
return !0;
|
|
@@ -5816,11 +5816,11 @@ const tb = ({ keepMarks: e = !0 } = {}) => ({ tr: t, state: n, dispatch: r, edit
|
|
|
5816
5816
|
if (!Br(t.doc, l.pos, 2))
|
|
5817
5817
|
return !1;
|
|
5818
5818
|
if (r) {
|
|
5819
|
-
const { selection: T, storedMarks: $ } = n, { splittableMarks:
|
|
5819
|
+
const { selection: T, storedMarks: $ } = n, { splittableMarks: z } = a.extensionManager, j = $ || T.$to.parentOffset && T.$from.marks();
|
|
5820
5820
|
if (t.split(l.pos, 2, x).scrollIntoView(), !j || !r)
|
|
5821
5821
|
return !0;
|
|
5822
|
-
const
|
|
5823
|
-
t.ensureMarks(
|
|
5822
|
+
const U = j.filter((V) => z.includes(V.type.name));
|
|
5823
|
+
t.ensureMarks(U);
|
|
5824
5824
|
}
|
|
5825
5825
|
return !0;
|
|
5826
5826
|
}, ji = (e, t) => {
|
|
@@ -5842,18 +5842,18 @@ const tb = ({ keepMarks: e = !0 } = {}) => ({ tr: t, state: n, dispatch: r, edit
|
|
|
5842
5842
|
const a = e.doc.nodeAt(r);
|
|
5843
5843
|
return n.node.type === (a == null ? void 0 : a.type) && Fc(e.doc, r) && e.join(r), !0;
|
|
5844
5844
|
}, rb = (e, t, n, r = {}) => ({ editor: a, tr: o, state: s, dispatch: l, chain: c, commands: d, can: p }) => {
|
|
5845
|
-
const { extensions: h, splittableMarks: f } = a.extensionManager, m = rt(e, s.schema), w = rt(t, s.schema), { selection: x, storedMarks: T } = s, { $from: $, $to:
|
|
5845
|
+
const { extensions: h, splittableMarks: f } = a.extensionManager, m = rt(e, s.schema), w = rt(t, s.schema), { selection: x, storedMarks: T } = s, { $from: $, $to: z } = x, j = $.blockRange(z), U = T || x.$to.parentOffset && x.$from.marks();
|
|
5846
5846
|
if (!j)
|
|
5847
5847
|
return !1;
|
|
5848
|
-
const
|
|
5849
|
-
if (j.depth >= 1 &&
|
|
5850
|
-
if (
|
|
5848
|
+
const V = yo((O) => Vs(O.type.name, h))(x);
|
|
5849
|
+
if (j.depth >= 1 && V && j.depth - V.depth <= 1) {
|
|
5850
|
+
if (V.node.type === m)
|
|
5851
5851
|
return d.liftListItem(w);
|
|
5852
|
-
if (Vs(
|
|
5853
|
-
return c().command(() => (o.setNodeMarkup(
|
|
5852
|
+
if (Vs(V.node.type.name, h) && m.validContent(V.node.content) && l)
|
|
5853
|
+
return c().command(() => (o.setNodeMarkup(V.pos, m), !0)).command(() => ji(o, m)).command(() => Gi(o, m)).run();
|
|
5854
5854
|
}
|
|
5855
|
-
return !n || !
|
|
5856
|
-
const O = p().wrapInList(m, r), E =
|
|
5855
|
+
return !n || !U || !l ? c().command(() => p().wrapInList(m, r) ? !0 : d.clearNodes()).wrapInList(m, r).command(() => ji(o, m)).command(() => Gi(o, m)).run() : c().command(() => {
|
|
5856
|
+
const O = p().wrapInList(m, r), E = U.filter((H) => f.includes(H.type.name));
|
|
5857
5857
|
return o.ensureMarks(E), O ? !0 : d.clearNodes();
|
|
5858
5858
|
}).wrapInList(m, r).command(() => ji(o, m)).command(() => Gi(o, m)).run();
|
|
5859
5859
|
}, ib = (e, t = {}, n = {}) => ({ state: r, commands: a }) => {
|
|
@@ -6228,7 +6228,7 @@ function yb() {
|
|
|
6228
6228
|
const xb = ({
|
|
6229
6229
|
value: e,
|
|
6230
6230
|
onChange: t
|
|
6231
|
-
}) => /* @__PURE__ */ i(
|
|
6231
|
+
}) => /* @__PURE__ */ i(N, { sx: {
|
|
6232
6232
|
position: "relative",
|
|
6233
6233
|
flexGrow: 1
|
|
6234
6234
|
}, children: /* @__PURE__ */ i(ct, { className: "function-editor", height: "100%", defaultLanguage: "javascript", value: e, onChange: (r) => {
|
|
@@ -6289,7 +6289,7 @@ const xb = ({
|
|
|
6289
6289
|
close: d
|
|
6290
6290
|
}] = to(!1);
|
|
6291
6291
|
return /* @__PURE__ */ u(W, { children: [
|
|
6292
|
-
/* @__PURE__ */ i(Te, { opened: l, onClose: d, title: "Authentication", withinPortal: !0, zIndex: 320, size: "900px", children: /* @__PURE__ */ i(
|
|
6292
|
+
/* @__PURE__ */ i(Te, { opened: l, onClose: d, title: "Authentication", withinPortal: !0, zIndex: 320, size: "900px", children: /* @__PURE__ */ i(N, { h: 600, children: /* @__PURE__ */ i(yr, { value: e, onChange: t, defaultValue: o, label: n }) }) }),
|
|
6293
6293
|
/* @__PURE__ */ i(I, { onClick: c, ...a, children: r })
|
|
6294
6294
|
] });
|
|
6295
6295
|
}), Bs = ["function aggregation({ queryData }, utils) {", ' return "Aggregation Result";', "}"].join(`
|
|
@@ -6479,7 +6479,7 @@ function Mb({
|
|
|
6479
6479
|
})), [r]), o = R.useMemo(() => a.some((s) => s.value === e), [e, a]);
|
|
6480
6480
|
return /* @__PURE__ */ u(v, { position: "apart", spacing: 4, ref: n, children: [
|
|
6481
6481
|
/* @__PURE__ */ i(
|
|
6482
|
-
|
|
6482
|
+
L,
|
|
6483
6483
|
{
|
|
6484
6484
|
placeholder: "Set any color",
|
|
6485
6485
|
value: o ? "" : e,
|
|
@@ -6563,7 +6563,7 @@ function zb({
|
|
|
6563
6563
|
}, children: /* @__PURE__ */ i(ve, { size: 20 }) })
|
|
6564
6564
|
] }),
|
|
6565
6565
|
/* @__PURE__ */ u(v, { children: [
|
|
6566
|
-
o.map((h, f) => /* @__PURE__ */ i(
|
|
6566
|
+
o.map((h, f) => /* @__PURE__ */ i(L, { type: r, value: h, onChange: (m) => {
|
|
6567
6567
|
const w = m.currentTarget.value;
|
|
6568
6568
|
s((x) => (x.splice(f, 1, w), [...x]));
|
|
6569
6569
|
}, rightSection: /* @__PURE__ */ i(K, { onClick: () => c(f), color: "red", children: /* @__PURE__ */ i(be, { size: 14 }) }), sx: {
|
|
@@ -6601,8 +6601,8 @@ const Lb = R.forwardRef(zb), Qc = R.forwardRef(function({
|
|
|
6601
6601
|
});
|
|
6602
6602
|
};
|
|
6603
6603
|
return /* @__PURE__ */ u(W, { children: [
|
|
6604
|
-
/* @__PURE__ */ i(
|
|
6605
|
-
/* @__PURE__ */ i(S, { children: /* @__PURE__ */ i(
|
|
6604
|
+
/* @__PURE__ */ i(A, { my: "xs", label: "Typography", labelPosition: "center" }),
|
|
6605
|
+
/* @__PURE__ */ i(S, { children: /* @__PURE__ */ i(L, { label: "Font Size", placeholder: "10px, 1em, 1rem, 100%...", sx: {
|
|
6606
6606
|
flex: 1
|
|
6607
6607
|
}, value: t.size, onChange: (l) => o("size", l.currentTarget.value) }) }),
|
|
6608
6608
|
/* @__PURE__ */ i(v, { position: "apart", grow: !0, sx: {
|
|
@@ -6611,7 +6611,7 @@ const Lb = R.forwardRef(zb), Qc = R.forwardRef(function({
|
|
|
6611
6611
|
maxWidth: "100%"
|
|
6612
6612
|
}
|
|
6613
6613
|
}, children: /* @__PURE__ */ i(Hc, { label: "Font Weight", value: t.weight, onChange: (l) => o("weight", l) }) }),
|
|
6614
|
-
/* @__PURE__ */ i(
|
|
6614
|
+
/* @__PURE__ */ i(A, { my: "xs", label: "Style", labelPosition: "center" }),
|
|
6615
6615
|
/* @__PURE__ */ u(S, { children: [
|
|
6616
6616
|
/* @__PURE__ */ i(F, { label: "Color Type", data: [{
|
|
6617
6617
|
label: "Static Color",
|
|
@@ -6637,15 +6637,15 @@ R.forwardRef(function({
|
|
|
6637
6637
|
const c = k.cloneDeep(t);
|
|
6638
6638
|
k.set(c, s, l), n(c);
|
|
6639
6639
|
};
|
|
6640
|
-
return /* @__PURE__ */ u(
|
|
6640
|
+
return /* @__PURE__ */ u(N, { px: "sm", py: "md", ref: a, children: [
|
|
6641
6641
|
/* @__PURE__ */ i(C, { weight: "bold", pb: 0, children: t.name }),
|
|
6642
|
-
/* @__PURE__ */ i(
|
|
6642
|
+
/* @__PURE__ */ i(A, { my: "xs", label: "Data", labelPosition: "center" }),
|
|
6643
6643
|
/* @__PURE__ */ u(v, { grow: !0, noWrap: !0, children: [
|
|
6644
|
-
/* @__PURE__ */ i(
|
|
6644
|
+
/* @__PURE__ */ i(L, { label: "Name", required: !0, value: t.name, onChange: (s) => o("name", s.currentTarget.value) }),
|
|
6645
6645
|
/* @__PURE__ */ i(X, { label: "Data Field", required: !0, value: t.data_field, onChange: (s) => o("data_field", s) })
|
|
6646
6646
|
] }),
|
|
6647
6647
|
/* @__PURE__ */ i(gi, { label: "Aggregation", value: t.aggregation, onChange: (s) => o("aggregation", s) }),
|
|
6648
|
-
/* @__PURE__ */ i(
|
|
6648
|
+
/* @__PURE__ */ i(A, { my: "xs", label: "Format", labelPosition: "center" }),
|
|
6649
6649
|
t.aggregation.type !== "custom" && /* @__PURE__ */ i(vt, { value: t.formatter, onChange: (s) => o("formatter", s) }),
|
|
6650
6650
|
r && /* @__PURE__ */ i(Qc, { value: t, onChange: n })
|
|
6651
6651
|
] });
|
|
@@ -6655,7 +6655,7 @@ class Ab {
|
|
|
6655
6655
|
valueRange: t,
|
|
6656
6656
|
colorRange: n
|
|
6657
6657
|
}) {
|
|
6658
|
-
|
|
6658
|
+
Y(this, "mapper");
|
|
6659
6659
|
this.mapper = In(t, n);
|
|
6660
6660
|
}
|
|
6661
6661
|
getColor(t) {
|
|
@@ -6916,7 +6916,7 @@ function jb({
|
|
|
6916
6916
|
/* @__PURE__ */ u(v, { grow: !0, noWrap: !0, children: [
|
|
6917
6917
|
/* @__PURE__ */ i(y, { name: `reference_lines.${t}.name`, control: e, render: ({
|
|
6918
6918
|
field: a
|
|
6919
|
-
}) => /* @__PURE__ */ i(
|
|
6919
|
+
}) => /* @__PURE__ */ i(L, { label: "Name", placeholder: "Average Reference Line", required: !0, sx: {
|
|
6920
6920
|
flex: 1
|
|
6921
6921
|
}, ...a }) }),
|
|
6922
6922
|
/* @__PURE__ */ i(
|
|
@@ -6934,7 +6934,7 @@ function jb({
|
|
|
6934
6934
|
] }),
|
|
6935
6935
|
/* @__PURE__ */ i(y, { name: `reference_lines.${t}.template`, control: e, render: ({
|
|
6936
6936
|
field: a
|
|
6937
|
-
}) => /* @__PURE__ */ i(
|
|
6937
|
+
}) => /* @__PURE__ */ i(L, { label: "Content Template", placeholder: "Average: ${avg}", required: !0, sx: {
|
|
6938
6938
|
flex: 1
|
|
6939
6939
|
}, ...a }) }),
|
|
6940
6940
|
/* @__PURE__ */ i(K, { color: "red", variant: "subtle", onClick: () => n(t), sx: {
|
|
@@ -6976,7 +6976,7 @@ const Yb = ({
|
|
|
6976
6976
|
disabled: e,
|
|
6977
6977
|
value: t,
|
|
6978
6978
|
onChange: n
|
|
6979
|
-
}) => /* @__PURE__ */ u(
|
|
6979
|
+
}) => /* @__PURE__ */ u(N, { sx: {
|
|
6980
6980
|
position: "relative"
|
|
6981
6981
|
}, children: [
|
|
6982
6982
|
e && /* @__PURE__ */ i(Xt, { opacity: 0.6, color: "#fff", zIndex: 5, blur: 2 }),
|
|
@@ -7047,7 +7047,7 @@ const Yb = ({
|
|
|
7047
7047
|
/* @__PURE__ */ u(v, { grow: !0, noWrap: !0, children: [
|
|
7048
7048
|
/* @__PURE__ */ i(y, { name: "x_axis.name", control: e, render: ({
|
|
7049
7049
|
field: n
|
|
7050
|
-
}) => /* @__PURE__ */ i(
|
|
7050
|
+
}) => /* @__PURE__ */ i(L, { label: "X Axis Name", sx: {
|
|
7051
7051
|
flex: 1
|
|
7052
7052
|
}, ...n }) }),
|
|
7053
7053
|
/* @__PURE__ */ i(y, { name: "x_axis.data_key", control: e, render: ({
|
|
@@ -7056,7 +7056,7 @@ const Yb = ({
|
|
|
7056
7056
|
flex: 1
|
|
7057
7057
|
}, ...n }) })
|
|
7058
7058
|
] }),
|
|
7059
|
-
/* @__PURE__ */ i(
|
|
7059
|
+
/* @__PURE__ */ i(A, { mb: -15, label: "Tick Label", labelPosition: "center" }),
|
|
7060
7060
|
/* @__PURE__ */ u(v, { grow: !0, noWrap: !0, children: [
|
|
7061
7061
|
/* @__PURE__ */ i(y, { name: "x_axis.axisLabel.rotate", control: e, render: ({
|
|
7062
7062
|
field: n
|
|
@@ -7086,7 +7086,7 @@ const Yb = ({
|
|
|
7086
7086
|
/* @__PURE__ */ u(v, { grow: !0, noWrap: !0, children: [
|
|
7087
7087
|
/* @__PURE__ */ i(y, { name: "y_axis.name", control: e, render: ({
|
|
7088
7088
|
field: n
|
|
7089
|
-
}) => /* @__PURE__ */ i(
|
|
7089
|
+
}) => /* @__PURE__ */ i(L, { label: "Y Axis Name", sx: {
|
|
7090
7090
|
flex: 1
|
|
7091
7091
|
}, ...n }) }),
|
|
7092
7092
|
/* @__PURE__ */ i(y, { name: "y_axis.data_key", control: e, render: ({
|
|
@@ -7096,7 +7096,7 @@ const Yb = ({
|
|
|
7096
7096
|
}, ...n }) })
|
|
7097
7097
|
] }),
|
|
7098
7098
|
/* @__PURE__ */ u(S, { children: [
|
|
7099
|
-
/* @__PURE__ */ i(
|
|
7099
|
+
/* @__PURE__ */ i(A, { mb: -15, variant: "dashed", label: "Label Format", labelPosition: "center" }),
|
|
7100
7100
|
/* @__PURE__ */ i(y, { name: "y_axis.label_formatter", control: e, render: ({
|
|
7101
7101
|
field: n
|
|
7102
7102
|
}) => /* @__PURE__ */ i(vt, { ...n }) })
|
|
@@ -7109,7 +7109,7 @@ const Yb = ({
|
|
|
7109
7109
|
/* @__PURE__ */ u(v, { grow: !0, noWrap: !0, children: [
|
|
7110
7110
|
/* @__PURE__ */ i(y, { name: `tooltip.metrics.${t}.name`, control: e, render: ({
|
|
7111
7111
|
field: r
|
|
7112
|
-
}) => /* @__PURE__ */ i(
|
|
7112
|
+
}) => /* @__PURE__ */ i(L, { label: "Name", required: !0, sx: {
|
|
7113
7113
|
flex: 1
|
|
7114
7114
|
}, ...r }) }),
|
|
7115
7115
|
/* @__PURE__ */ i(y, { name: `tooltip.metrics.${t}.data_key`, control: e, render: ({
|
|
@@ -7118,7 +7118,7 @@ const Yb = ({
|
|
|
7118
7118
|
flex: 1
|
|
7119
7119
|
}, ...r }) })
|
|
7120
7120
|
] }),
|
|
7121
|
-
/* @__PURE__ */ i(
|
|
7121
|
+
/* @__PURE__ */ i(A, { mb: -10, mt: 10, variant: "dashed" }),
|
|
7122
7122
|
/* @__PURE__ */ i(I, { leftIcon: /* @__PURE__ */ i(be, { size: 16 }), color: "red", variant: "light", onClick: () => n(t), sx: {
|
|
7123
7123
|
top: 15,
|
|
7124
7124
|
right: 5
|
|
@@ -7401,7 +7401,7 @@ function ly(e) {
|
|
|
7401
7401
|
class cy extends Re {
|
|
7402
7402
|
constructor() {
|
|
7403
7403
|
super(...arguments);
|
|
7404
|
-
|
|
7404
|
+
Y(this, "VERSION", 9);
|
|
7405
7405
|
}
|
|
7406
7406
|
configVersions() {
|
|
7407
7407
|
this.version(1, (n) => ({
|
|
@@ -7656,8 +7656,8 @@ function _y({
|
|
|
7656
7656
|
/* @__PURE__ */ u(S, { children: [
|
|
7657
7657
|
/* @__PURE__ */ i(y, { control: o, name: "content", render: ({
|
|
7658
7658
|
field: f
|
|
7659
|
-
}) => /* @__PURE__ */ i(
|
|
7660
|
-
/* @__PURE__ */ i(
|
|
7659
|
+
}) => /* @__PURE__ */ i(L, { label: "Content Template", description: "Filter values & context entries are supported", ...f, required: !0 }) }),
|
|
7660
|
+
/* @__PURE__ */ i(A, { mt: "xs", mb: 0, label: "Styles", labelPosition: "center", variant: "dashed" }),
|
|
7661
7661
|
/* @__PURE__ */ u(ln, { cols: 2, children: [
|
|
7662
7662
|
/* @__PURE__ */ i(
|
|
7663
7663
|
y,
|
|
@@ -7709,7 +7709,7 @@ function _y({
|
|
|
7709
7709
|
class Cy extends Re {
|
|
7710
7710
|
constructor() {
|
|
7711
7711
|
super(...arguments);
|
|
7712
|
-
|
|
7712
|
+
Y(this, "VERSION", 2);
|
|
7713
7713
|
}
|
|
7714
7714
|
configVersions() {
|
|
7715
7715
|
this.version(1, (n) => ({
|
|
@@ -7950,7 +7950,7 @@ function Ly({
|
|
|
7950
7950
|
}
|
|
7951
7951
|
const {
|
|
7952
7952
|
columnKey: c
|
|
7953
|
-
} =
|
|
7953
|
+
} = B(o.y_axis_data_key), d = k.groupBy(Cr(n, o.y_axis_data_key), l);
|
|
7954
7954
|
Object.entries(d).forEach(([p, h]) => {
|
|
7955
7955
|
const f = h.map((w, x) => [x, Number(w[c])]);
|
|
7956
7956
|
a(o, p, p, f);
|
|
@@ -8021,7 +8021,7 @@ function Ry({
|
|
|
8021
8021
|
} = t, {
|
|
8022
8022
|
queryID: s,
|
|
8023
8023
|
columnKey: l
|
|
8024
|
-
} =
|
|
8024
|
+
} = B(r), c = _h(Cr(n, s), l);
|
|
8025
8025
|
return (d, p) => {
|
|
8026
8026
|
let h;
|
|
8027
8027
|
p.name ? h = c[p.name] : h = n[p.dataIndex];
|
|
@@ -8087,7 +8087,7 @@ function Vy({
|
|
|
8087
8087
|
const {
|
|
8088
8088
|
queryID: a,
|
|
8089
8089
|
columnKey: o
|
|
8090
|
-
} =
|
|
8090
|
+
} = B(e), s = k.groupBy(t[a], o);
|
|
8091
8091
|
return Object.entries(s).forEach(([l, c]) => {
|
|
8092
8092
|
s[l] = So({
|
|
8093
8093
|
[a]: c
|
|
@@ -8111,7 +8111,7 @@ function Ny({
|
|
|
8111
8111
|
hide_in_legend: f,
|
|
8112
8112
|
...m
|
|
8113
8113
|
}, w, x, T, $) {
|
|
8114
|
-
const
|
|
8114
|
+
const z = t.type !== "category", j = {
|
|
8115
8115
|
label: {
|
|
8116
8116
|
show: !!a,
|
|
8117
8117
|
position: a,
|
|
@@ -8141,17 +8141,17 @@ function Ny({
|
|
|
8141
8141
|
aggregation_on_value: l,
|
|
8142
8142
|
x_axis_data_key: e,
|
|
8143
8143
|
y_axis_data_key: n,
|
|
8144
|
-
valueTypedXAxis:
|
|
8144
|
+
valueTypedXAxis: z
|
|
8145
8145
|
}), j;
|
|
8146
|
-
const
|
|
8146
|
+
const U = Vy({
|
|
8147
8147
|
group_by_key: s,
|
|
8148
8148
|
data: x,
|
|
8149
8149
|
x_axis_data_key: e,
|
|
8150
8150
|
y_axis_data_key: n
|
|
8151
8151
|
});
|
|
8152
|
-
return Object.entries(
|
|
8152
|
+
return Object.entries(U).map(([V, O]) => {
|
|
8153
8153
|
const E = Ze(j);
|
|
8154
|
-
return E.name =
|
|
8154
|
+
return E.name = V, E.color = void 0, E.data = O, E;
|
|
8155
8155
|
});
|
|
8156
8156
|
}
|
|
8157
8157
|
function By(e, t, n, r, a, o) {
|
|
@@ -8419,21 +8419,21 @@ const ko = we(({
|
|
|
8419
8419
|
});
|
|
8420
8420
|
};
|
|
8421
8421
|
return /* @__PURE__ */ u(S, { children: [
|
|
8422
|
-
/* @__PURE__ */ i(
|
|
8422
|
+
/* @__PURE__ */ i(A, { variant: "dashed", label: "Scroll to Zoom", labelPosition: "center" }),
|
|
8423
8423
|
/* @__PURE__ */ u(v, { children: [
|
|
8424
|
-
/* @__PURE__ */ i(
|
|
8424
|
+
/* @__PURE__ */ i(N, { sx: {
|
|
8425
8425
|
flexGrow: 1
|
|
8426
8426
|
}, children: /* @__PURE__ */ i(Xe, { label: "Enable on X Axis", checked: e.x_axis_scroll, onChange: (a) => r("x_axis_scroll")(a.currentTarget.checked) }) }),
|
|
8427
|
-
/* @__PURE__ */ i(
|
|
8427
|
+
/* @__PURE__ */ i(N, { sx: {
|
|
8428
8428
|
flexGrow: 1
|
|
8429
8429
|
}, children: /* @__PURE__ */ i(Xe, { label: "Enable on Y Axis", checked: e.y_axis_scroll, onChange: (a) => r("y_axis_scroll")(a.currentTarget.checked) }) })
|
|
8430
8430
|
] }),
|
|
8431
|
-
/* @__PURE__ */ i(
|
|
8431
|
+
/* @__PURE__ */ i(A, { variant: "dashed", label: "Slider for Zooming", labelPosition: "center" }),
|
|
8432
8432
|
/* @__PURE__ */ u(v, { children: [
|
|
8433
|
-
/* @__PURE__ */ i(
|
|
8433
|
+
/* @__PURE__ */ i(N, { sx: {
|
|
8434
8434
|
flexGrow: 1
|
|
8435
8435
|
}, children: /* @__PURE__ */ i(Xe, { label: "Slider for X Axis", checked: e.x_axis_slider, onChange: (a) => r("x_axis_slider")(a.currentTarget.checked) }) }),
|
|
8436
|
-
/* @__PURE__ */ i(Ne, { label: "Not available for now, will overlap y-axis's label", children: /* @__PURE__ */ i(
|
|
8436
|
+
/* @__PURE__ */ i(Ne, { label: "Not available for now, will overlap y-axis's label", children: /* @__PURE__ */ i(N, { sx: {
|
|
8437
8437
|
flexGrow: 1
|
|
8438
8438
|
}, children: /* @__PURE__ */ i(Xe, { label: "Slider for Y Axis", disabled: !e.y_axis_slider, checked: e.y_axis_slider, onChange: (a) => r("y_axis_slider")(a.currentTarget.checked) }) }) })
|
|
8439
8439
|
] })
|
|
@@ -8457,12 +8457,12 @@ function Zy({
|
|
|
8457
8457
|
/* @__PURE__ */ u(v, { grow: !0, noWrap: !0, children: [
|
|
8458
8458
|
/* @__PURE__ */ i(y, { name: `reference_areas.${t}.name`, control: e, render: ({
|
|
8459
8459
|
field: a
|
|
8460
|
-
}) => /* @__PURE__ */ i(
|
|
8460
|
+
}) => /* @__PURE__ */ i(L, { label: "Name", required: !0, sx: {
|
|
8461
8461
|
flex: 1
|
|
8462
8462
|
}, ...a }) }),
|
|
8463
8463
|
/* @__PURE__ */ i(y, { name: `reference_areas.${t}.color`, control: e, render: ({
|
|
8464
8464
|
field: a
|
|
8465
|
-
}) => /* @__PURE__ */ i(
|
|
8465
|
+
}) => /* @__PURE__ */ i(L, { label: "Color", required: !0, sx: {
|
|
8466
8466
|
flex: 1
|
|
8467
8467
|
}, ...a }) })
|
|
8468
8468
|
] }),
|
|
@@ -8484,7 +8484,7 @@ function Zy({
|
|
|
8484
8484
|
}, ...a })
|
|
8485
8485
|
) })
|
|
8486
8486
|
] }),
|
|
8487
|
-
/* @__PURE__ */ i(
|
|
8487
|
+
/* @__PURE__ */ i(A, { variant: "dashed", label: "Data", labelPosition: "center" }),
|
|
8488
8488
|
/* @__PURE__ */ u(v, { grow: !0, noWrap: !0, children: [
|
|
8489
8489
|
/* @__PURE__ */ i(y, { name: `reference_areas.${t}.y_keys.upper`, control: e, render: ({
|
|
8490
8490
|
field: a
|
|
@@ -8584,7 +8584,7 @@ function rx({
|
|
|
8584
8584
|
/* @__PURE__ */ u(v, { grow: !0, noWrap: !0, children: [
|
|
8585
8585
|
/* @__PURE__ */ i(y, { name: `reference_lines.${t}.name`, control: e, render: ({
|
|
8586
8586
|
field: l
|
|
8587
|
-
}) => /* @__PURE__ */ i(
|
|
8587
|
+
}) => /* @__PURE__ */ i(L, { label: "Name", placeholder: "Average Reference Line", required: !0, sx: {
|
|
8588
8588
|
flex: 1
|
|
8589
8589
|
}, ...l }) }),
|
|
8590
8590
|
/* @__PURE__ */ i(
|
|
@@ -8602,7 +8602,7 @@ function rx({
|
|
|
8602
8602
|
] }),
|
|
8603
8603
|
/* @__PURE__ */ i(y, { name: `reference_lines.${t}.template`, control: e, render: ({
|
|
8604
8604
|
field: l
|
|
8605
|
-
}) => /* @__PURE__ */ i(
|
|
8605
|
+
}) => /* @__PURE__ */ i(L, { label: "Content Template", placeholder: "Average: ${avg}", sx: {
|
|
8606
8606
|
flex: 1
|
|
8607
8607
|
}, ...l }) }),
|
|
8608
8608
|
/* @__PURE__ */ u(v, { grow: !0, children: [
|
|
@@ -8633,7 +8633,7 @@ function rx({
|
|
|
8633
8633
|
flex: 1
|
|
8634
8634
|
} }) })
|
|
8635
8635
|
] }),
|
|
8636
|
-
/* @__PURE__ */ i(
|
|
8636
|
+
/* @__PURE__ */ i(A, { mb: -10, mt: 10, variant: "dashed", label: "Style", labelPosition: "center" }),
|
|
8637
8637
|
/* @__PURE__ */ u(v, { grow: !0, children: [
|
|
8638
8638
|
/* @__PURE__ */ i(
|
|
8639
8639
|
y,
|
|
@@ -8666,7 +8666,7 @@ function rx({
|
|
|
8666
8666
|
field: l
|
|
8667
8667
|
}) => /* @__PURE__ */ i(ot, { ...l }) })
|
|
8668
8668
|
] }),
|
|
8669
|
-
/* @__PURE__ */ i(
|
|
8669
|
+
/* @__PURE__ */ i(A, { mb: -10, mt: 10, variant: "dashed", label: "Behavior", labelPosition: "center" }),
|
|
8670
8670
|
/* @__PURE__ */ i(y, { name: `reference_lines.${t}.show_in_legend`, control: e, render: ({
|
|
8671
8671
|
field: l
|
|
8672
8672
|
}) => /* @__PURE__ */ i(me, { label: "Show in legend", checked: l.value, onChange: (c) => l.onChange(c.currentTarget.checked) }) }),
|
|
@@ -8766,7 +8766,7 @@ function sx({
|
|
|
8766
8766
|
/* @__PURE__ */ u(v, { grow: !0, children: [
|
|
8767
8767
|
/* @__PURE__ */ i(y, { name: `regressions.${n}.name`, control: e, render: ({
|
|
8768
8768
|
field: s
|
|
8769
|
-
}) => /* @__PURE__ */ i(
|
|
8769
|
+
}) => /* @__PURE__ */ i(L, { label: "Name", required: !0, sx: {
|
|
8770
8770
|
flex: 1
|
|
8771
8771
|
}, ...s }) }),
|
|
8772
8772
|
/* @__PURE__ */ i(y, { name: `regressions.${n}.group_by_key`, control: e, render: ({
|
|
@@ -8823,7 +8823,7 @@ function sx({
|
|
|
8823
8823
|
}
|
|
8824
8824
|
)
|
|
8825
8825
|
] }),
|
|
8826
|
-
/* @__PURE__ */ i(
|
|
8826
|
+
/* @__PURE__ */ i(A, { mb: -15, variant: "dashed", label: "Line Style", labelPosition: "center" }),
|
|
8827
8827
|
/* @__PURE__ */ u(v, { grow: !0, children: [
|
|
8828
8828
|
/* @__PURE__ */ i(
|
|
8829
8829
|
y,
|
|
@@ -8947,7 +8947,7 @@ function dx({
|
|
|
8947
8947
|
/* @__PURE__ */ u(v, { grow: !0, noWrap: !0, children: [
|
|
8948
8948
|
/* @__PURE__ */ i(y, { name: `series.${t}.stack`, control: e, render: ({
|
|
8949
8949
|
field: a
|
|
8950
|
-
}) => /* @__PURE__ */ i(
|
|
8950
|
+
}) => /* @__PURE__ */ i(L, { label: "Stack", placeholder: "Stack bars by this ID", sx: {
|
|
8951
8951
|
flexGrow: 1
|
|
8952
8952
|
}, ...a }) }),
|
|
8953
8953
|
/* @__PURE__ */ i(
|
|
@@ -8966,17 +8966,17 @@ function dx({
|
|
|
8966
8966
|
/* @__PURE__ */ u(v, { grow: !0, noWrap: !0, children: [
|
|
8967
8967
|
/* @__PURE__ */ i(y, { name: `series.${t}.barMinWidth`, control: e, render: ({
|
|
8968
8968
|
field: a
|
|
8969
|
-
}) => /* @__PURE__ */ i(
|
|
8969
|
+
}) => /* @__PURE__ */ i(L, { label: "Bar Width(Min)", disabled: r, sx: {
|
|
8970
8970
|
flexGrow: 1
|
|
8971
8971
|
}, ...a }) }),
|
|
8972
8972
|
/* @__PURE__ */ i(y, { name: `series.${t}.barWidth`, control: e, render: ({
|
|
8973
8973
|
field: a
|
|
8974
|
-
}) => /* @__PURE__ */ i(
|
|
8974
|
+
}) => /* @__PURE__ */ i(L, { label: "Bar Width", sx: {
|
|
8975
8975
|
flexGrow: 1
|
|
8976
8976
|
}, ...a }) }),
|
|
8977
8977
|
/* @__PURE__ */ i(y, { name: `series.${t}.barMaxWidth`, control: e, render: ({
|
|
8978
8978
|
field: a
|
|
8979
|
-
}) => /* @__PURE__ */ i(
|
|
8979
|
+
}) => /* @__PURE__ */ i(L, { label: "Bar Width(Max)", disabled: r, sx: {
|
|
8980
8980
|
flexGrow: 1
|
|
8981
8981
|
}, ...a }) })
|
|
8982
8982
|
] })
|
|
@@ -8985,7 +8985,7 @@ function dx({
|
|
|
8985
8985
|
const ux = ({
|
|
8986
8986
|
value: e,
|
|
8987
8987
|
onChange: t
|
|
8988
|
-
}) => /* @__PURE__ */ i(
|
|
8988
|
+
}) => /* @__PURE__ */ i(N, { children: /* @__PURE__ */ i(ct, { height: "500px", defaultLanguage: "javascript", value: e, onChange: (r) => {
|
|
8989
8989
|
r && t(r);
|
|
8990
8990
|
}, theme: "vs-dark", options: {
|
|
8991
8991
|
minimap: {
|
|
@@ -9019,13 +9019,13 @@ const ux = ({
|
|
|
9019
9019
|
d(To.dynamic.func_content);
|
|
9020
9020
|
};
|
|
9021
9021
|
return /* @__PURE__ */ u(W, { children: [
|
|
9022
|
-
/* @__PURE__ */ i(
|
|
9022
|
+
/* @__PURE__ */ i(N, { sx: {
|
|
9023
9023
|
width: "50%"
|
|
9024
9024
|
}, children: /* @__PURE__ */ i(I, { variant: "filled", mt: 24, onClick: r, sx: {
|
|
9025
9025
|
flexGrow: 0
|
|
9026
9026
|
}, children: "Setup" }) }),
|
|
9027
9027
|
/* @__PURE__ */ i(Te, { size: 800, title: "Setup dynamic size", opened: n, onClose: a, closeOnClickOutside: !1, withCloseButton: !1, zIndex: 320, children: n && /* @__PURE__ */ u(S, { children: [
|
|
9028
|
-
/* @__PURE__ */ i(
|
|
9028
|
+
/* @__PURE__ */ i(A, { mt: 10, mb: -10, label: "Dynamic by a custom function", labelPosition: "center", variant: "dashed" }),
|
|
9029
9029
|
/* @__PURE__ */ i(ux, { value: o.func_content, onChange: d }),
|
|
9030
9030
|
/* @__PURE__ */ u(v, { position: "apart", children: [
|
|
9031
9031
|
/* @__PURE__ */ i(I, { onClick: p, color: "red", leftIcon: /* @__PURE__ */ i(Tt, { size: 20 }), children: "Reset" }),
|
|
@@ -9104,7 +9104,7 @@ function yx({
|
|
|
9104
9104
|
}) {
|
|
9105
9105
|
const r = n.showSymbol;
|
|
9106
9106
|
return /* @__PURE__ */ u(W, { children: [
|
|
9107
|
-
/* @__PURE__ */ i(
|
|
9107
|
+
/* @__PURE__ */ i(A, { mb: -15, variant: "dashed", label: "Line Settings", labelPosition: "center" }),
|
|
9108
9108
|
/* @__PURE__ */ u(v, { grow: !0, children: [
|
|
9109
9109
|
/* @__PURE__ */ i(
|
|
9110
9110
|
y,
|
|
@@ -9144,12 +9144,12 @@ function yx({
|
|
|
9144
9144
|
/* @__PURE__ */ u(S, { children: [
|
|
9145
9145
|
/* @__PURE__ */ i(y, { name: `series.${t}.smooth`, control: e, render: ({
|
|
9146
9146
|
field: a
|
|
9147
|
-
}) => /* @__PURE__ */ i(
|
|
9147
|
+
}) => /* @__PURE__ */ i(N, { sx: {
|
|
9148
9148
|
flexGrow: 1
|
|
9149
9149
|
}, children: /* @__PURE__ */ i(Xe, { label: "Smooth Line", checked: a.value, onChange: (o) => a.onChange(o.currentTarget.checked) }) }) }),
|
|
9150
9150
|
/* @__PURE__ */ i(y, { name: `series.${t}.display_name_on_line`, control: e, render: ({
|
|
9151
9151
|
field: a
|
|
9152
|
-
}) => /* @__PURE__ */ i(
|
|
9152
|
+
}) => /* @__PURE__ */ i(N, { sx: {
|
|
9153
9153
|
flexGrow: 1
|
|
9154
9154
|
}, children: /* @__PURE__ */ i(Xe, { label: "Display Name on Line", checked: a.value ?? !1, onChange: (o) => a.onChange(o.currentTarget.checked) }) }) })
|
|
9155
9155
|
] })
|
|
@@ -9157,7 +9157,7 @@ function yx({
|
|
|
9157
9157
|
/* @__PURE__ */ u(S, { children: [
|
|
9158
9158
|
/* @__PURE__ */ i(y, { name: `series.${t}.showSymbol`, control: e, render: ({
|
|
9159
9159
|
field: a
|
|
9160
|
-
}) => /* @__PURE__ */ i(
|
|
9160
|
+
}) => /* @__PURE__ */ i(N, { mt: 10, mb: -10, sx: {
|
|
9161
9161
|
flexGrow: 1
|
|
9162
9162
|
}, children: /* @__PURE__ */ i(Xe, { label: "Show Symbol on Line", checked: a.value, onChange: (o) => a.onChange(o.currentTarget.checked) }) }) }),
|
|
9163
9163
|
r && /* @__PURE__ */ i(y, { name: `series.${t}.symbolSize`, control: e, render: ({
|
|
@@ -9246,7 +9246,7 @@ function wx({
|
|
|
9246
9246
|
/* @__PURE__ */ u(v, { grow: !0, noWrap: !0, children: [
|
|
9247
9247
|
/* @__PURE__ */ i(y, { name: `series.${t}.name`, control: e, render: ({
|
|
9248
9248
|
field: s
|
|
9249
|
-
}) => /* @__PURE__ */ i(
|
|
9249
|
+
}) => /* @__PURE__ */ i(L, { label: "Name", required: !0, sx: {
|
|
9250
9250
|
flex: 1
|
|
9251
9251
|
}, ...s }) }),
|
|
9252
9252
|
/* @__PURE__ */ i(y, { name: `series.${t}.yAxisIndex`, control: e, render: ({
|
|
@@ -9283,7 +9283,7 @@ function wx({
|
|
|
9283
9283
|
o === "line" && /* @__PURE__ */ i(yx, { index: t, control: e, seriesItem: r }),
|
|
9284
9284
|
o === "bar" && /* @__PURE__ */ i(dx, { index: t, control: e, seriesItem: r }),
|
|
9285
9285
|
o === "scatter" && /* @__PURE__ */ i(xx, { index: t, control: e }),
|
|
9286
|
-
/* @__PURE__ */ i(
|
|
9286
|
+
/* @__PURE__ */ i(A, { mb: -10, mt: 10, variant: "dashed", label: "Style", labelPosition: "center" }),
|
|
9287
9287
|
/* @__PURE__ */ i(
|
|
9288
9288
|
y,
|
|
9289
9289
|
{
|
|
@@ -9300,11 +9300,11 @@ function wx({
|
|
|
9300
9300
|
field: s
|
|
9301
9301
|
}) => /* @__PURE__ */ i(ot, { ...s }) })
|
|
9302
9302
|
] }),
|
|
9303
|
-
/* @__PURE__ */ i(
|
|
9303
|
+
/* @__PURE__ */ i(A, { mb: -10, mt: 10, variant: "dashed", label: "Behavior", labelPosition: "center" }),
|
|
9304
9304
|
/* @__PURE__ */ i(y, { name: `series.${t}.hide_in_legend`, control: e, render: ({
|
|
9305
9305
|
field: s
|
|
9306
9306
|
}) => /* @__PURE__ */ i(me, { label: "Hide in legend", checked: s.value, onChange: (l) => s.onChange(l.currentTarget.checked) }) }),
|
|
9307
|
-
/* @__PURE__ */ i(
|
|
9307
|
+
/* @__PURE__ */ i(A, { mb: -10, mt: 10, variant: "dashed" }),
|
|
9308
9308
|
/* @__PURE__ */ i(I, { leftIcon: /* @__PURE__ */ i(be, { size: 16 }), color: "red", variant: "light", onClick: () => n(t), sx: {
|
|
9309
9309
|
top: 15,
|
|
9310
9310
|
right: 5
|
|
@@ -9425,7 +9425,7 @@ function Tx({
|
|
|
9425
9425
|
return t(["x_axis_data_key", "x_axis_name", "x_axis"]), /* @__PURE__ */ u(S, { children: [
|
|
9426
9426
|
/* @__PURE__ */ i(y, { name: "x_axis_name", control: e, render: ({
|
|
9427
9427
|
field: n
|
|
9428
|
-
}) => /* @__PURE__ */ i(
|
|
9428
|
+
}) => /* @__PURE__ */ i(L, { label: "X Axis Name", sx: {
|
|
9429
9429
|
flex: 1
|
|
9430
9430
|
}, ...n }) }),
|
|
9431
9431
|
/* @__PURE__ */ u(v, { grow: !0, noWrap: !0, children: [
|
|
@@ -9443,7 +9443,7 @@ function Tx({
|
|
|
9443
9443
|
}, ...n })
|
|
9444
9444
|
) })
|
|
9445
9445
|
] }),
|
|
9446
|
-
/* @__PURE__ */ i(
|
|
9446
|
+
/* @__PURE__ */ i(A, { mb: -15, label: "Tick Label", labelPosition: "center" }),
|
|
9447
9447
|
/* @__PURE__ */ u(v, { grow: !0, noWrap: !0, children: [
|
|
9448
9448
|
/* @__PURE__ */ i(y, { name: "x_axis.axisLabel.rotate", control: e, render: ({
|
|
9449
9449
|
field: n
|
|
@@ -9492,11 +9492,11 @@ function Mx({
|
|
|
9492
9492
|
return /* @__PURE__ */ u(S, { my: 0, p: "0", sx: {
|
|
9493
9493
|
position: "relative"
|
|
9494
9494
|
}, children: [
|
|
9495
|
-
/* @__PURE__ */ i(
|
|
9495
|
+
/* @__PURE__ */ i(A, { mb: -15, mt: 15, variant: "dashed", label: "Name", labelPosition: "center" }),
|
|
9496
9496
|
/* @__PURE__ */ u(v, { grow: !0, noWrap: !0, children: [
|
|
9497
9497
|
/* @__PURE__ */ i(y, { name: `y_axes.${t}.name`, control: e, render: ({
|
|
9498
9498
|
field: r
|
|
9499
|
-
}) => /* @__PURE__ */ i(
|
|
9499
|
+
}) => /* @__PURE__ */ i(L, { label: "Name", required: !0, sx: {
|
|
9500
9500
|
flex: 1
|
|
9501
9501
|
}, ...r }) }),
|
|
9502
9502
|
/* @__PURE__ */ i(y, { name: `y_axes.${t}.nameAlignment`, control: e, render: ({
|
|
@@ -9508,7 +9508,7 @@ function Mx({
|
|
|
9508
9508
|
}, ...r })
|
|
9509
9509
|
) })
|
|
9510
9510
|
] }),
|
|
9511
|
-
/* @__PURE__ */ i(
|
|
9511
|
+
/* @__PURE__ */ i(A, { mb: -15, variant: "dashed", label: "Layout", labelPosition: "center" }),
|
|
9512
9512
|
/* @__PURE__ */ i(v, { grow: !0, noWrap: !0, children: /* @__PURE__ */ i(y, { name: `y_axes.${t}.position`, control: e, render: ({
|
|
9513
9513
|
field: r
|
|
9514
9514
|
}) => (
|
|
@@ -9518,23 +9518,23 @@ function Mx({
|
|
|
9518
9518
|
}, ...r })
|
|
9519
9519
|
) }) }),
|
|
9520
9520
|
/* @__PURE__ */ u(S, { children: [
|
|
9521
|
-
/* @__PURE__ */ i(
|
|
9521
|
+
/* @__PURE__ */ i(A, { mb: -15, variant: "dashed", label: "Label Format", labelPosition: "center" }),
|
|
9522
9522
|
/* @__PURE__ */ i(y, { name: `y_axes.${t}.label_formatter`, control: e, render: ({
|
|
9523
9523
|
field: r
|
|
9524
9524
|
}) => /* @__PURE__ */ i(vt, { ...r }) })
|
|
9525
9525
|
] }),
|
|
9526
9526
|
/* @__PURE__ */ u(S, { children: [
|
|
9527
|
-
/* @__PURE__ */ i(
|
|
9527
|
+
/* @__PURE__ */ i(A, { mb: -15, variant: "dashed", label: "Value Range", labelPosition: "center" }),
|
|
9528
9528
|
/* @__PURE__ */ u(v, { grow: !0, children: [
|
|
9529
9529
|
/* @__PURE__ */ i(y, { name: `y_axes.${t}.min`, control: e, render: ({
|
|
9530
9530
|
field: r
|
|
9531
|
-
}) => /* @__PURE__ */ i(
|
|
9531
|
+
}) => /* @__PURE__ */ i(L, { label: "Min", ...r }) }),
|
|
9532
9532
|
/* @__PURE__ */ i(y, { name: `y_axes.${t}.max`, control: e, render: ({
|
|
9533
9533
|
field: r
|
|
9534
|
-
}) => /* @__PURE__ */ i(
|
|
9534
|
+
}) => /* @__PURE__ */ i(L, { label: "Max", ...r }) })
|
|
9535
9535
|
] })
|
|
9536
9536
|
] }),
|
|
9537
|
-
/* @__PURE__ */ i(
|
|
9537
|
+
/* @__PURE__ */ i(A, { mb: -10, mt: 10, variant: "dashed", label: "Behavior", labelPosition: "center" }),
|
|
9538
9538
|
/* @__PURE__ */ i(y, { name: `y_axes.${t}.show`, control: e, render: ({
|
|
9539
9539
|
field: r
|
|
9540
9540
|
}) => /* @__PURE__ */ i(me, { label: "Visible", checked: r.value, onChange: (a) => r.onChange(a.currentTarget.checked) }) }),
|
|
@@ -9958,7 +9958,7 @@ function Qx(e, {
|
|
|
9958
9958
|
class Kx extends Re {
|
|
9959
9959
|
constructor() {
|
|
9960
9960
|
super(...arguments);
|
|
9961
|
-
|
|
9961
|
+
Y(this, "VERSION", 18);
|
|
9962
9962
|
}
|
|
9963
9963
|
configVersions() {
|
|
9964
9964
|
this.version(1, (n) => ({
|
|
@@ -10092,7 +10092,7 @@ function ev(e, t) {
|
|
|
10092
10092
|
} = n;
|
|
10093
10093
|
if (!r || !a)
|
|
10094
10094
|
return {};
|
|
10095
|
-
const h =
|
|
10095
|
+
const h = B(r), f = B(a), m = t[h.queryID].map((x) => ({
|
|
10096
10096
|
name: x[h.columnKey],
|
|
10097
10097
|
value: x[f.columnKey]
|
|
10098
10098
|
})), w = At(o.overflow.on_axis);
|
|
@@ -10139,7 +10139,7 @@ function tv({
|
|
|
10139
10139
|
}
|
|
10140
10140
|
function nv(e, t) {
|
|
10141
10141
|
var o;
|
|
10142
|
-
const n =
|
|
10142
|
+
const n = B(e.series[0].level_name_data_key), r = B(e.series[0].level_value_data_key), a = (o = k.maxBy(t[n.queryID], r.columnKey)) == null ? void 0 : o[r.columnKey];
|
|
10143
10143
|
return (s) => {
|
|
10144
10144
|
const c = tv({
|
|
10145
10145
|
conf: e,
|
|
@@ -10348,7 +10348,7 @@ const lv = [{
|
|
|
10348
10348
|
return /* @__PURE__ */ u(S, { children: [
|
|
10349
10349
|
/* @__PURE__ */ i(v, { grow: !0, noWrap: !0, children: /* @__PURE__ */ i(y, { name: `series.${n}.name`, control: t, render: ({
|
|
10350
10350
|
field: l
|
|
10351
|
-
}) => /* @__PURE__ */ i(
|
|
10351
|
+
}) => /* @__PURE__ */ i(L, { label: "Series Name", ...l }) }) }),
|
|
10352
10352
|
/* @__PURE__ */ u(v, { grow: !0, noWrap: !0, children: [
|
|
10353
10353
|
/* @__PURE__ */ i(y, { name: `series.${n}.level_name_data_key`, control: t, render: ({
|
|
10354
10354
|
field: l
|
|
@@ -10357,7 +10357,7 @@ const lv = [{
|
|
|
10357
10357
|
field: l
|
|
10358
10358
|
}) => /* @__PURE__ */ i(X, { label: "Level Value Field", ...l }) })
|
|
10359
10359
|
] }),
|
|
10360
|
-
/* @__PURE__ */ i(
|
|
10360
|
+
/* @__PURE__ */ i(A, { mb: -10, mt: 10, variant: "dashed", label: "Funnel Style", labelPosition: "center" }),
|
|
10361
10361
|
/* @__PURE__ */ u(v, { grow: !0, noWrap: !0, children: [
|
|
10362
10362
|
/* @__PURE__ */ i(y, { name: `series.${n}.min.value`, control: t, render: ({
|
|
10363
10363
|
field: l
|
|
@@ -10369,14 +10369,14 @@ const lv = [{
|
|
|
10369
10369
|
width: "100%"
|
|
10370
10370
|
}, children: [
|
|
10371
10371
|
/* @__PURE__ */ i(C, { children: "Min Value" }),
|
|
10372
|
-
/* @__PURE__ */ i(Ne, { label: "Check to enable specific min value", children: /* @__PURE__ */ i(
|
|
10372
|
+
/* @__PURE__ */ i(Ne, { label: "Check to enable specific min value", children: /* @__PURE__ */ i(N, { children: /* @__PURE__ */ i(y, { name: `series.${n}.min.enable_value`, control: t, render: ({
|
|
10373
10373
|
field: c
|
|
10374
10374
|
}) => /* @__PURE__ */ i(me, { size: "xs", checked: c.value, onChange: (d) => c.onChange(d.currentTarget.checked) }) }) }) })
|
|
10375
10375
|
] }), ...l })
|
|
10376
10376
|
) }),
|
|
10377
10377
|
/* @__PURE__ */ i(y, { name: `series.${n}.min.size`, control: t, render: ({
|
|
10378
10378
|
field: l
|
|
10379
|
-
}) => /* @__PURE__ */ i(
|
|
10379
|
+
}) => /* @__PURE__ */ i(L, { placeholder: "0%", label: "Min Size", ...l }) })
|
|
10380
10380
|
] }),
|
|
10381
10381
|
/* @__PURE__ */ u(v, { grow: !0, noWrap: !0, children: [
|
|
10382
10382
|
/* @__PURE__ */ i(y, { name: `series.${n}.max.value`, control: t, render: ({
|
|
@@ -10389,14 +10389,14 @@ const lv = [{
|
|
|
10389
10389
|
width: "100%"
|
|
10390
10390
|
}, children: [
|
|
10391
10391
|
/* @__PURE__ */ i(C, { children: "Max Value" }),
|
|
10392
|
-
/* @__PURE__ */ i(Ne, { label: "Check to enable specific max value", children: /* @__PURE__ */ i(
|
|
10392
|
+
/* @__PURE__ */ i(Ne, { label: "Check to enable specific max value", children: /* @__PURE__ */ i(N, { children: /* @__PURE__ */ i(y, { name: `series.${n}.max.enable_value`, control: t, render: ({
|
|
10393
10393
|
field: c
|
|
10394
10394
|
}) => /* @__PURE__ */ i(me, { size: "xs", checked: c.value, onChange: (d) => c.onChange(d.currentTarget.checked) }) }) }) })
|
|
10395
10395
|
] }), ...l })
|
|
10396
10396
|
) }),
|
|
10397
10397
|
/* @__PURE__ */ i(y, { name: `series.${n}.max.size`, control: t, render: ({
|
|
10398
10398
|
field: l
|
|
10399
|
-
}) => /* @__PURE__ */ i(
|
|
10399
|
+
}) => /* @__PURE__ */ i(L, { placeholder: "100%", label: "Max Size", ...l }) })
|
|
10400
10400
|
] }),
|
|
10401
10401
|
/* @__PURE__ */ u(v, { grow: !0, noWrap: !0, children: [
|
|
10402
10402
|
/* @__PURE__ */ i(
|
|
@@ -10438,12 +10438,12 @@ const lv = [{
|
|
|
10438
10438
|
}
|
|
10439
10439
|
)
|
|
10440
10440
|
] }),
|
|
10441
|
-
/* @__PURE__ */ i(
|
|
10441
|
+
/* @__PURE__ */ i(A, { mb: -10, mt: 10, variant: "dashed", label: "Label Style", labelPosition: "center" }),
|
|
10442
10442
|
/* @__PURE__ */ u(v, { grow: !0, noWrap: !0, children: [
|
|
10443
10443
|
/* @__PURE__ */ i(y, { name: `series.${n}.axisLabel.position`, control: t, render: ({
|
|
10444
10444
|
field: l
|
|
10445
10445
|
}) => /* @__PURE__ */ i(Io, { label: "Position", options: hv[s], ...l }) }),
|
|
10446
|
-
/* @__PURE__ */ i(
|
|
10446
|
+
/* @__PURE__ */ i(N, {})
|
|
10447
10447
|
] }),
|
|
10448
10448
|
/* @__PURE__ */ i(v, { grow: !0, noWrap: !0, children: /* @__PURE__ */ i(y, { name: `series.${n}.axisLabel.overflow`, control: t, render: ({
|
|
10449
10449
|
field: l
|
|
@@ -10561,7 +10561,7 @@ function bv(e, {
|
|
|
10561
10561
|
class yv extends Re {
|
|
10562
10562
|
constructor() {
|
|
10563
10563
|
super(...arguments);
|
|
10564
|
-
|
|
10564
|
+
Y(this, "VERSION", 3);
|
|
10565
10565
|
}
|
|
10566
10566
|
configVersions() {
|
|
10567
10567
|
this.version(1, (n) => ({
|
|
@@ -10649,7 +10649,7 @@ function Cv(e, t) {
|
|
|
10649
10649
|
x_axis: n,
|
|
10650
10650
|
y_axis: r,
|
|
10651
10651
|
heat_block: a
|
|
10652
|
-
} = e, o =
|
|
10652
|
+
} = e, o = B(n.data_key), s = B(r.data_key), l = B(a.data_key), c = t[o.queryID].map((d) => [k.get(d, o.columnKey), k.get(d, s.columnKey), k.get(d, l.columnKey)]);
|
|
10653
10653
|
return {
|
|
10654
10654
|
type: "heatmap",
|
|
10655
10655
|
name: a.name,
|
|
@@ -10710,7 +10710,7 @@ function kv({
|
|
|
10710
10710
|
}
|
|
10711
10711
|
}, m = [p, h, f], w = r[`${l}---${c}`];
|
|
10712
10712
|
return w && e.tooltip.metrics.forEach((x) => {
|
|
10713
|
-
const T =
|
|
10713
|
+
const T = B(x.data_key);
|
|
10714
10714
|
m.push({
|
|
10715
10715
|
label: x.name,
|
|
10716
10716
|
value: Sv(k.get(w, T.columnKey, "")),
|
|
@@ -10726,8 +10726,8 @@ function Tv(e, t, n, r) {
|
|
|
10726
10726
|
x_axis: a,
|
|
10727
10727
|
y_axis: o,
|
|
10728
10728
|
heat_block: s
|
|
10729
|
-
} = e, l =
|
|
10730
|
-
|
|
10729
|
+
} = e, l = B(a.data_key), c = B(o.data_key);
|
|
10730
|
+
B(s.data_key);
|
|
10731
10731
|
const d = k.keyBy(t[l.queryID], (p) => `${p[l.columnKey]}---${p[c.columnKey]}`);
|
|
10732
10732
|
return {
|
|
10733
10733
|
confine: !0,
|
|
@@ -10767,7 +10767,7 @@ function Tv(e, t, n, r) {
|
|
|
10767
10767
|
const Dv = ({
|
|
10768
10768
|
value: e,
|
|
10769
10769
|
onChange: t
|
|
10770
|
-
}) => /* @__PURE__ */ i(
|
|
10770
|
+
}) => /* @__PURE__ */ i(N, { children: /* @__PURE__ */ i(ct, { height: "500px", defaultLanguage: "javascript", value: e, onChange: (r) => {
|
|
10771
10771
|
r && t(r);
|
|
10772
10772
|
}, theme: "vs-dark", options: {
|
|
10773
10773
|
minimap: {
|
|
@@ -10811,13 +10811,13 @@ const Dv = ({
|
|
|
10811
10811
|
d(Zc.dynamic.value);
|
|
10812
10812
|
};
|
|
10813
10813
|
return /* @__PURE__ */ u(W, { children: [
|
|
10814
|
-
/* @__PURE__ */ i(
|
|
10814
|
+
/* @__PURE__ */ i(N, { sx: {
|
|
10815
10815
|
width: "50%"
|
|
10816
10816
|
}, children: /* @__PURE__ */ i(I, { variant: "filled", mt: 24, onClick: r, sx: {
|
|
10817
10817
|
flexGrow: 0
|
|
10818
10818
|
}, children: "Setup" }) }),
|
|
10819
10819
|
/* @__PURE__ */ i(Te, { size: 800, title: "Setup dynamic value", opened: n, onClose: a, closeOnClickOutside: !1, withCloseButton: !1, zIndex: 320, children: n && /* @__PURE__ */ u(S, { children: [
|
|
10820
|
-
/* @__PURE__ */ i(
|
|
10820
|
+
/* @__PURE__ */ i(A, { mt: 10, mb: -10, label: "Dynamic by a custom function", labelPosition: "center", variant: "dashed" }),
|
|
10821
10821
|
/* @__PURE__ */ i(Dv, { value: o.value, onChange: d }),
|
|
10822
10822
|
/* @__PURE__ */ u(v, { position: "apart", children: [
|
|
10823
10823
|
/* @__PURE__ */ i(I, { onClick: p, color: "red", leftIcon: /* @__PURE__ */ i(Tt, { size: 20 }), children: "Reset" }),
|
|
@@ -10904,7 +10904,7 @@ function Lv(e, t) {
|
|
|
10904
10904
|
};
|
|
10905
10905
|
}
|
|
10906
10906
|
function Av(e, t, n) {
|
|
10907
|
-
const r =
|
|
10907
|
+
const r = B(e.x_axis.data_key), a = k.uniq(t[r.queryID].map((c) => c[r.columnKey])), {
|
|
10908
10908
|
overflow: o,
|
|
10909
10909
|
rotate: s
|
|
10910
10910
|
} = e.x_axis.axisLabel, l = At(o.on_axis);
|
|
@@ -10936,7 +10936,7 @@ function Av(e, t, n) {
|
|
|
10936
10936
|
};
|
|
10937
10937
|
}
|
|
10938
10938
|
function Ev(e, t, n) {
|
|
10939
|
-
const r =
|
|
10939
|
+
const r = B(e.x_axis.data_key), a = B(e.y_axis.data_key), {
|
|
10940
10940
|
nameAlignment: o,
|
|
10941
10941
|
data_key: s,
|
|
10942
10942
|
...l
|
|
@@ -11085,7 +11085,7 @@ function Vv({
|
|
|
11085
11085
|
variables: o
|
|
11086
11086
|
}) {
|
|
11087
11087
|
const s = M(() => {
|
|
11088
|
-
const h =
|
|
11088
|
+
const h = B(e.x_axis.data_key), f = B(e.y_axis.data_key);
|
|
11089
11089
|
return k.keyBy(t[h.queryID], (m) => `${m[h.columnKey]}---${m[f.columnKey]}`);
|
|
11090
11090
|
}, [t, e.x_axis.data_key, e.y_axis.data_key]), l = Dt(a.triggerManager, ed.id), c = nt((h) => {
|
|
11091
11091
|
const [f, m] = h.value, w = k.get(s, `${f}---${m}`, {
|
|
@@ -11137,7 +11137,7 @@ function Bv({
|
|
|
11137
11137
|
}, ...r }) }),
|
|
11138
11138
|
/* @__PURE__ */ i(y, { name: "heat_block.name", control: e, render: ({
|
|
11139
11139
|
field: r
|
|
11140
|
-
}) => /* @__PURE__ */ i(
|
|
11140
|
+
}) => /* @__PURE__ */ i(L, { label: "Name", sx: {
|
|
11141
11141
|
flex: 1
|
|
11142
11142
|
}, ...r }) })
|
|
11143
11143
|
] }),
|
|
@@ -11149,11 +11149,11 @@ function Bv({
|
|
|
11149
11149
|
field: r
|
|
11150
11150
|
}) => /* @__PURE__ */ i(qn, { label: "Max Value", ...r }) })
|
|
11151
11151
|
] }),
|
|
11152
|
-
/* @__PURE__ */ i(
|
|
11152
|
+
/* @__PURE__ */ i(A, { mb: -15, variant: "dashed", label: "Value Format", labelPosition: "center" }),
|
|
11153
11153
|
/* @__PURE__ */ i(y, { name: "heat_block.value_formatter", control: e, render: ({
|
|
11154
11154
|
field: r
|
|
11155
11155
|
}) => /* @__PURE__ */ i(vt, { ...r }) }),
|
|
11156
|
-
/* @__PURE__ */ i(
|
|
11156
|
+
/* @__PURE__ */ i(A, { mb: -5, variant: "dashed", label: "Label", labelPosition: "center" }),
|
|
11157
11157
|
/* @__PURE__ */ u(v, { grow: !0, noWrap: !0, children: [
|
|
11158
11158
|
/* @__PURE__ */ i(y, { name: "heat_block.label.show", control: e, render: ({
|
|
11159
11159
|
field: r
|
|
@@ -11177,7 +11177,7 @@ const qv = ({
|
|
|
11177
11177
|
/* @__PURE__ */ u(v, { grow: !0, noWrap: !0, children: [
|
|
11178
11178
|
/* @__PURE__ */ i(y, { name: `tooltip.metrics.${t}.name`, control: e, render: ({
|
|
11179
11179
|
field: r
|
|
11180
|
-
}) => /* @__PURE__ */ i(
|
|
11180
|
+
}) => /* @__PURE__ */ i(L, { label: "Name", required: !0, sx: {
|
|
11181
11181
|
flex: 1
|
|
11182
11182
|
}, ...r }) }),
|
|
11183
11183
|
/* @__PURE__ */ i(y, { name: `tooltip.metrics.${t}.data_key`, control: e, render: ({
|
|
@@ -11186,7 +11186,7 @@ const qv = ({
|
|
|
11186
11186
|
flex: 1
|
|
11187
11187
|
}, ...r }) })
|
|
11188
11188
|
] }),
|
|
11189
|
-
/* @__PURE__ */ i(
|
|
11189
|
+
/* @__PURE__ */ i(A, { mb: -10, mt: 10, variant: "dashed" }),
|
|
11190
11190
|
/* @__PURE__ */ i(I, { leftIcon: /* @__PURE__ */ i(be, { size: 16 }), color: "red", variant: "light", onClick: () => n(t), sx: {
|
|
11191
11191
|
top: 15,
|
|
11192
11192
|
right: 5
|
|
@@ -11220,7 +11220,7 @@ const qv = ({
|
|
|
11220
11220
|
/* @__PURE__ */ i(dn, { size: 14, color: "#888" }),
|
|
11221
11221
|
/* @__PURE__ */ i(C, { size: 14, color: "#888", children: "Configure additional metrics to show in tooltip" })
|
|
11222
11222
|
] }),
|
|
11223
|
-
/* @__PURE__ */ i(
|
|
11223
|
+
/* @__PURE__ */ i(A, { variant: "dashed", my: 10 }),
|
|
11224
11224
|
/* @__PURE__ */ u(g, { value: d, onTabChange: (h) => p(h), styles: {
|
|
11225
11225
|
tab: {
|
|
11226
11226
|
paddingTop: "0px",
|
|
@@ -11249,7 +11249,7 @@ const Gv = ({
|
|
|
11249
11249
|
disabled: e,
|
|
11250
11250
|
value: t,
|
|
11251
11251
|
onChange: n
|
|
11252
|
-
}) => /* @__PURE__ */ u(
|
|
11252
|
+
}) => /* @__PURE__ */ u(N, { sx: {
|
|
11253
11253
|
position: "relative"
|
|
11254
11254
|
}, children: [
|
|
11255
11255
|
e && /* @__PURE__ */ i(Xt, { opacity: 0.6, color: "#fff", zIndex: 5, blur: 2 }),
|
|
@@ -11331,11 +11331,11 @@ function Hv({
|
|
|
11331
11331
|
}, ...n }) }),
|
|
11332
11332
|
/* @__PURE__ */ i(y, { name: "x_axis.name", control: e, render: ({
|
|
11333
11333
|
field: n
|
|
11334
|
-
}) => /* @__PURE__ */ i(
|
|
11334
|
+
}) => /* @__PURE__ */ i(L, { label: "Name", sx: {
|
|
11335
11335
|
flex: 1
|
|
11336
11336
|
}, ...n }) })
|
|
11337
11337
|
] }),
|
|
11338
|
-
/* @__PURE__ */ i(
|
|
11338
|
+
/* @__PURE__ */ i(A, { mb: -15, variant: "dashed", label: "Tick Label", labelPosition: "center" }),
|
|
11339
11339
|
/* @__PURE__ */ i(y, { name: "x_axis.axisLabel.overflow", control: e, render: ({
|
|
11340
11340
|
field: n
|
|
11341
11341
|
}) => /* @__PURE__ */ i(Wt, { ...n }) }),
|
|
@@ -11385,7 +11385,7 @@ function Kv({
|
|
|
11385
11385
|
}, ...n }) }),
|
|
11386
11386
|
/* @__PURE__ */ i(y, { name: "y_axis.name", control: e, render: ({
|
|
11387
11387
|
field: n
|
|
11388
|
-
}) => /* @__PURE__ */ i(
|
|
11388
|
+
}) => /* @__PURE__ */ i(L, { label: "Name", required: !0, sx: {
|
|
11389
11389
|
flex: 1
|
|
11390
11390
|
}, ...n }) })
|
|
11391
11391
|
] }),
|
|
@@ -11397,7 +11397,7 @@ function Kv({
|
|
|
11397
11397
|
flex: 1
|
|
11398
11398
|
}, ...n })
|
|
11399
11399
|
) }) }),
|
|
11400
|
-
/* @__PURE__ */ i(
|
|
11400
|
+
/* @__PURE__ */ i(A, { mb: -15, variant: "dashed", label: "Tick Label", labelPosition: "center" }),
|
|
11401
11401
|
/* @__PURE__ */ i(y, { name: "y_axis.axisLabel.overflow", control: e, render: ({
|
|
11402
11402
|
field: n
|
|
11403
11403
|
}) => /* @__PURE__ */ i(Wt, { ...n }) }),
|
|
@@ -11560,7 +11560,7 @@ function Zv(e) {
|
|
|
11560
11560
|
class e0 extends Re {
|
|
11561
11561
|
constructor() {
|
|
11562
11562
|
super(...arguments);
|
|
11563
|
-
|
|
11563
|
+
Y(this, "VERSION", 4);
|
|
11564
11564
|
}
|
|
11565
11565
|
configVersions() {
|
|
11566
11566
|
this.version(1, (n) => (console.log("🟥 unexpected calling"), {
|
|
@@ -11740,7 +11740,7 @@ function l0(e, t, n) {
|
|
|
11740
11740
|
} = e;
|
|
11741
11741
|
if (!r.data_key || !a)
|
|
11742
11742
|
return [];
|
|
11743
|
-
const o =
|
|
11743
|
+
const o = B(r.data_key), s = B(a);
|
|
11744
11744
|
if (o.queryID !== s.queryID)
|
|
11745
11745
|
throw new Error("Please use the same query for X & Y axis");
|
|
11746
11746
|
const l = t[o.queryID].map((h) => [h[o.columnKey], Number(h[s.columnKey])]).sort((h, f) => f[1] - h[1]), c = l.reduce((h, f) => h + f[1], 0), d = l.reduce((h, f, m) => {
|
|
@@ -11948,7 +11948,7 @@ function g0({
|
|
|
11948
11948
|
/* @__PURE__ */ u(v, { grow: !0, children: [
|
|
11949
11949
|
/* @__PURE__ */ i(y, { name: "bar.name", control: e, render: ({
|
|
11950
11950
|
field: n
|
|
11951
|
-
}) => /* @__PURE__ */ i(
|
|
11951
|
+
}) => /* @__PURE__ */ i(L, { label: "Bar Name", sx: {
|
|
11952
11952
|
flex: 1
|
|
11953
11953
|
}, ...n }) }),
|
|
11954
11954
|
/* @__PURE__ */ i(y, { name: "bar.nameAlignment", control: e, render: ({
|
|
@@ -11967,7 +11967,7 @@ function g0({
|
|
|
11967
11967
|
}) => /* @__PURE__ */ i(ot, { ...n }) })
|
|
11968
11968
|
] }),
|
|
11969
11969
|
/* @__PURE__ */ u(S, { children: [
|
|
11970
|
-
/* @__PURE__ */ i(
|
|
11970
|
+
/* @__PURE__ */ i(A, { mb: -15, variant: "dashed", label: "Label Format", labelPosition: "center" }),
|
|
11971
11971
|
/* @__PURE__ */ i(y, { name: "bar.label_formatter", control: e, render: ({
|
|
11972
11972
|
field: n
|
|
11973
11973
|
}) => /* @__PURE__ */ i(vt, { ...n }) })
|
|
@@ -11992,7 +11992,7 @@ function y0({
|
|
|
11992
11992
|
/* @__PURE__ */ u(v, { grow: !0, children: [
|
|
11993
11993
|
/* @__PURE__ */ i(y, { name: "line.name", control: e, render: ({
|
|
11994
11994
|
field: n
|
|
11995
|
-
}) => /* @__PURE__ */ i(
|
|
11995
|
+
}) => /* @__PURE__ */ i(L, { label: "Line Name", sx: {
|
|
11996
11996
|
flex: 1
|
|
11997
11997
|
}, ...n }) }),
|
|
11998
11998
|
/* @__PURE__ */ i(y, { name: "line.nameAlignment", control: e, render: ({
|
|
@@ -12076,11 +12076,11 @@ function _0({
|
|
|
12076
12076
|
}, ...n }) }),
|
|
12077
12077
|
/* @__PURE__ */ i(y, { name: "x_axis.name", control: e, render: ({
|
|
12078
12078
|
field: n
|
|
12079
|
-
}) => /* @__PURE__ */ i(
|
|
12079
|
+
}) => /* @__PURE__ */ i(L, { label: "Name", sx: {
|
|
12080
12080
|
flex: 1
|
|
12081
12081
|
}, ...n }) })
|
|
12082
12082
|
] }),
|
|
12083
|
-
/* @__PURE__ */ i(
|
|
12083
|
+
/* @__PURE__ */ i(A, { mb: -15, label: "Tick Label", labelPosition: "center" }),
|
|
12084
12084
|
/* @__PURE__ */ u(v, { grow: !0, noWrap: !0, children: [
|
|
12085
12085
|
/* @__PURE__ */ i(y, { name: "x_axis.axisLabel.rotate", control: e, render: ({
|
|
12086
12086
|
field: n
|
|
@@ -12294,7 +12294,7 @@ function L0(e, {
|
|
|
12294
12294
|
class A0 extends Re {
|
|
12295
12295
|
constructor() {
|
|
12296
12296
|
super(...arguments);
|
|
12297
|
-
|
|
12297
|
+
Y(this, "VERSION", 9);
|
|
12298
12298
|
}
|
|
12299
12299
|
configVersions() {
|
|
12300
12300
|
this.version(1, (n) => ({
|
|
@@ -12440,7 +12440,7 @@ function F0(e, t, n) {
|
|
|
12440
12440
|
} = e;
|
|
12441
12441
|
if (!r || !a)
|
|
12442
12442
|
return {};
|
|
12443
|
-
const s =
|
|
12443
|
+
const s = B(r), l = B(a), c = B(o), d = t[s.queryID].map((h) => ({
|
|
12444
12444
|
name: h[s.columnKey],
|
|
12445
12445
|
value: Number(h[l.columnKey]),
|
|
12446
12446
|
color: c.columnKey ? h[c.columnKey] : void 0
|
|
@@ -12657,7 +12657,7 @@ function G0(e, {
|
|
|
12657
12657
|
class Y0 extends Re {
|
|
12658
12658
|
constructor() {
|
|
12659
12659
|
super(...arguments);
|
|
12660
|
-
|
|
12660
|
+
Y(this, "VERSION", 3);
|
|
12661
12661
|
}
|
|
12662
12662
|
configVersions() {
|
|
12663
12663
|
this.version(1, (n) => ({
|
|
@@ -12758,12 +12758,12 @@ function cd(e, t) {
|
|
|
12758
12758
|
return t.map(({
|
|
12759
12759
|
data_key: n
|
|
12760
12760
|
}) => {
|
|
12761
|
-
const r =
|
|
12761
|
+
const r = B(n);
|
|
12762
12762
|
return e[r.columnKey];
|
|
12763
12763
|
});
|
|
12764
12764
|
}
|
|
12765
12765
|
function U0(e, t, n) {
|
|
12766
|
-
const r =
|
|
12766
|
+
const r = B(t);
|
|
12767
12767
|
return e[r.queryID].map((a) => ({
|
|
12768
12768
|
value: cd(a, n),
|
|
12769
12769
|
name: a[r.columnKey]
|
|
@@ -12799,7 +12799,7 @@ function J0(e, t) {
|
|
|
12799
12799
|
dimensions: r
|
|
12800
12800
|
} = t;
|
|
12801
12801
|
return n.map((o) => {
|
|
12802
|
-
const s =
|
|
12802
|
+
const s = B(o.name_key), l = B(o.color_key);
|
|
12803
12803
|
return {
|
|
12804
12804
|
type: "radar",
|
|
12805
12805
|
colorBy: "data",
|
|
@@ -12936,11 +12936,11 @@ function iw({
|
|
|
12936
12936
|
const {
|
|
12937
12937
|
queryID: h,
|
|
12938
12938
|
columnKey: f
|
|
12939
|
-
} =
|
|
12940
|
-
const $ =
|
|
12939
|
+
} = B(e.series_name_key), m = k.keyBy(t[h], f), w = e.additional_series.reduce((x, T) => {
|
|
12940
|
+
const $ = B(T.name_key), z = k.keyBy(t[$.queryID], $.columnKey);
|
|
12941
12941
|
return {
|
|
12942
12942
|
...x,
|
|
12943
|
-
...
|
|
12943
|
+
...z
|
|
12944
12944
|
};
|
|
12945
12945
|
}, m);
|
|
12946
12946
|
return {
|
|
@@ -13068,7 +13068,7 @@ function lw({
|
|
|
13068
13068
|
/* @__PURE__ */ u(v, { grow: !0, noWrap: !0, children: [
|
|
13069
13069
|
/* @__PURE__ */ i(y, { name: `dimensions.${t}.name`, control: e, render: ({
|
|
13070
13070
|
field: r
|
|
13071
|
-
}) => /* @__PURE__ */ i(
|
|
13071
|
+
}) => /* @__PURE__ */ i(L, { label: "Name", required: !0, sx: {
|
|
13072
13072
|
flex: 1
|
|
13073
13073
|
}, ...r }) }),
|
|
13074
13074
|
/* @__PURE__ */ i(y, { name: `dimensions.${t}.data_key`, control: e, render: ({
|
|
@@ -13090,7 +13090,7 @@ function lw({
|
|
|
13090
13090
|
)
|
|
13091
13091
|
] }),
|
|
13092
13092
|
/* @__PURE__ */ u(S, { children: [
|
|
13093
|
-
/* @__PURE__ */ i(
|
|
13093
|
+
/* @__PURE__ */ i(A, { mb: -15, variant: "dashed", label: "Value Formatter", labelPosition: "center" }),
|
|
13094
13094
|
/* @__PURE__ */ i(y, { name: `dimensions.${t}.formatter`, control: e, render: ({
|
|
13095
13095
|
field: r
|
|
13096
13096
|
}) => /* @__PURE__ */ i(vt, { ...r }) })
|
|
@@ -13278,7 +13278,7 @@ function mw(e) {
|
|
|
13278
13278
|
class gw extends Re {
|
|
13279
13279
|
constructor() {
|
|
13280
13280
|
super(...arguments);
|
|
13281
|
-
|
|
13281
|
+
Y(this, "VERSION", 6);
|
|
13282
13282
|
}
|
|
13283
13283
|
configVersions() {
|
|
13284
13284
|
this.version(1, (n) => ({
|
|
@@ -13368,7 +13368,7 @@ function yw(e, t) {
|
|
|
13368
13368
|
}));
|
|
13369
13369
|
}
|
|
13370
13370
|
function dd(e, t) {
|
|
13371
|
-
const n =
|
|
13371
|
+
const n = B(e.x_axis.data_key), r = B(e.regression.y_axis_data_key);
|
|
13372
13372
|
return k.uniqBy(t.map((a) => [a[n.columnKey], a[r.columnKey]]), 0);
|
|
13373
13373
|
}
|
|
13374
13374
|
function xw(e, t) {
|
|
@@ -13397,7 +13397,7 @@ function vw(e, t) {
|
|
|
13397
13397
|
plot: n,
|
|
13398
13398
|
transform: r,
|
|
13399
13399
|
group_by_key: a
|
|
13400
|
-
} = e.regression, o =
|
|
13400
|
+
} = e.regression, o = B(a), s = k.groupBy(t, o.columnKey);
|
|
13401
13401
|
return Object.entries(s).map(([l, c]) => {
|
|
13402
13402
|
const d = dd(e, c);
|
|
13403
13403
|
return {
|
|
@@ -13669,7 +13669,7 @@ function Gs(e, t, n) {
|
|
|
13669
13669
|
const {
|
|
13670
13670
|
regression: r,
|
|
13671
13671
|
x_axis: a
|
|
13672
|
-
} = n, o =
|
|
13672
|
+
} = n, o = B(a.data_key), s = B(r.y_axis_data_key), l = t.map((c) => [c[o.columnKey], c[s.columnKey]]);
|
|
13673
13673
|
return r.transform.config.method === "linear" ? Dw(e, t, l, n) : r.transform.config.method === "exponential" ? Iw(e, t, l, n) : r.transform.config.method === "logarithmic" ? Mw(e, t, l, n) : r.transform.config.method === "polynomial" ? $w(e, t, l, n) : {
|
|
13674
13674
|
name: e,
|
|
13675
13675
|
expression: "",
|
|
@@ -13687,7 +13687,7 @@ function zw(e, t) {
|
|
|
13687
13687
|
}];
|
|
13688
13688
|
if (!t.regression.group_by_key)
|
|
13689
13689
|
return [Gs("", e, t)];
|
|
13690
|
-
const n =
|
|
13690
|
+
const n = B(t.regression.group_by_key), r = k.groupBy(e, n.columnKey);
|
|
13691
13691
|
return Object.entries(r).map(([a, o]) => Gs(a, o, t));
|
|
13692
13692
|
}
|
|
13693
13693
|
const Lw = {
|
|
@@ -13815,7 +13815,7 @@ function Ow({
|
|
|
13815
13815
|
const c = e.data, d = t == null ? void 0 : t.x_axis.data_key, p = (m = t == null ? void 0 : t.regression) == null ? void 0 : m.y_axis_data_key;
|
|
13816
13816
|
if (!d || !p)
|
|
13817
13817
|
return [];
|
|
13818
|
-
const h =
|
|
13818
|
+
const h = B(d), f = B(p);
|
|
13819
13819
|
return c[h.queryID].map((w) => typeof w[f.columnKey] == "number" ? w : {
|
|
13820
13820
|
...w,
|
|
13821
13821
|
[f.columnKey]: Number(w[f.columnKey])
|
|
@@ -13823,7 +13823,7 @@ function Ow({
|
|
|
13823
13823
|
}, [e.data, t == null ? void 0 : t.regression.y_axis_data_key]), o = M(() => Tw(De({}, t, Lo), a), [t, a]), s = ni(null), l = (c) => {
|
|
13824
13824
|
s.current = c;
|
|
13825
13825
|
};
|
|
13826
|
-
return !n || !r || !t ? null : /* @__PURE__ */ u(
|
|
13826
|
+
return !n || !r || !t ? null : /* @__PURE__ */ u(N, { sx: {
|
|
13827
13827
|
position: "relative"
|
|
13828
13828
|
}, children: [
|
|
13829
13829
|
/* @__PURE__ */ i(Rw, { conf: t, queryData: a }),
|
|
@@ -13855,7 +13855,7 @@ function Pw({
|
|
|
13855
13855
|
return /* @__PURE__ */ u(S, { children: [
|
|
13856
13856
|
/* @__PURE__ */ i(v, { grow: !0, noWrap: !0, children: /* @__PURE__ */ i(y, { name: "regression.name", control: e, render: ({
|
|
13857
13857
|
field: a
|
|
13858
|
-
}) => /* @__PURE__ */ i(
|
|
13858
|
+
}) => /* @__PURE__ */ i(L, { label: "回归线名称", sx: {
|
|
13859
13859
|
flex: 1
|
|
13860
13860
|
}, ...a }) }) }),
|
|
13861
13861
|
/* @__PURE__ */ i(y, { name: "regression.group_by_key", control: e, render: ({
|
|
@@ -13901,7 +13901,7 @@ const Vw = ({
|
|
|
13901
13901
|
disabled: e,
|
|
13902
13902
|
value: t,
|
|
13903
13903
|
onChange: n
|
|
13904
|
-
}) => /* @__PURE__ */ u(
|
|
13904
|
+
}) => /* @__PURE__ */ u(N, { sx: {
|
|
13905
13905
|
position: "relative"
|
|
13906
13906
|
}, children: [
|
|
13907
13907
|
e && /* @__PURE__ */ i(Xt, { opacity: 0.6, color: "#fff", zIndex: 5, blur: 2 }),
|
|
@@ -13975,7 +13975,7 @@ function Nw({
|
|
|
13975
13975
|
/* @__PURE__ */ u(v, { grow: !0, noWrap: !0, children: [
|
|
13976
13976
|
/* @__PURE__ */ i(y, { name: "x_axis.name", control: e, render: ({
|
|
13977
13977
|
field: n
|
|
13978
|
-
}) => /* @__PURE__ */ i(
|
|
13978
|
+
}) => /* @__PURE__ */ i(L, { label: "X轴名称", sx: {
|
|
13979
13979
|
flex: 1
|
|
13980
13980
|
}, ...n }) }),
|
|
13981
13981
|
/* @__PURE__ */ i(y, { name: "x_axis.data_key", control: e, render: ({
|
|
@@ -13984,11 +13984,11 @@ function Nw({
|
|
|
13984
13984
|
flex: 1
|
|
13985
13985
|
}, ...n }) })
|
|
13986
13986
|
] }),
|
|
13987
|
-
/* @__PURE__ */ i(
|
|
13987
|
+
/* @__PURE__ */ i(A, { variant: "dashed", labelPosition: "center", label: "格式化数据" }),
|
|
13988
13988
|
/* @__PURE__ */ i(S, { children: /* @__PURE__ */ i(y, { name: "x_axis.axisLabel.format", control: e, render: ({
|
|
13989
13989
|
field: n
|
|
13990
13990
|
}) => /* @__PURE__ */ i(vt, { ...n }) }) }),
|
|
13991
|
-
/* @__PURE__ */ i(
|
|
13991
|
+
/* @__PURE__ */ i(A, { variant: "dashed", labelPosition: "center", label: "标签文案样式" }),
|
|
13992
13992
|
/* @__PURE__ */ u(v, { grow: !0, noWrap: !0, children: [
|
|
13993
13993
|
/* @__PURE__ */ i(y, { name: "x_axis.axisLabel.rotate", control: e, render: ({
|
|
13994
13994
|
field: n
|
|
@@ -14020,7 +14020,7 @@ function Bw({
|
|
|
14020
14020
|
return t(["y_axis", "regression.y_axis_data_key"]), /* @__PURE__ */ i(S, { children: /* @__PURE__ */ u(v, { grow: !0, noWrap: !0, children: [
|
|
14021
14021
|
/* @__PURE__ */ i(y, { name: "y_axis.name", control: e, render: ({
|
|
14022
14022
|
field: n
|
|
14023
|
-
}) => /* @__PURE__ */ i(
|
|
14023
|
+
}) => /* @__PURE__ */ i(L, { label: "Y轴名称", sx: {
|
|
14024
14024
|
flex: 1
|
|
14025
14025
|
}, ...n }) }),
|
|
14026
14026
|
/* @__PURE__ */ i(y, { name: "regression.y_axis_data_key", control: e, render: ({
|
|
@@ -14121,7 +14121,7 @@ function jw(e, {
|
|
|
14121
14121
|
class Gw extends Re {
|
|
14122
14122
|
constructor() {
|
|
14123
14123
|
super(...arguments);
|
|
14124
|
-
|
|
14124
|
+
Y(this, "VERSION", 3);
|
|
14125
14125
|
}
|
|
14126
14126
|
configVersions() {
|
|
14127
14127
|
this.version(1, (n) => ({
|
|
@@ -14371,7 +14371,7 @@ function Zw({
|
|
|
14371
14371
|
class e_ extends Re {
|
|
14372
14372
|
constructor() {
|
|
14373
14373
|
super(...arguments);
|
|
14374
|
-
|
|
14374
|
+
Y(this, "VERSION", 1);
|
|
14375
14375
|
}
|
|
14376
14376
|
fixMalformedConfig(n) {
|
|
14377
14377
|
return Oe({}, n, Ci);
|
|
@@ -14498,7 +14498,7 @@ const fd = {
|
|
|
14498
14498
|
function i_(e, t) {
|
|
14499
14499
|
if (!e.x_axis.data_key)
|
|
14500
14500
|
return [];
|
|
14501
|
-
const n =
|
|
14501
|
+
const n = B(e.x_axis.data_key);
|
|
14502
14502
|
return [{
|
|
14503
14503
|
source: t[n.queryID]
|
|
14504
14504
|
}];
|
|
@@ -14644,7 +14644,7 @@ function u_({
|
|
|
14644
14644
|
x_axis: e,
|
|
14645
14645
|
scatter: t
|
|
14646
14646
|
}, n) {
|
|
14647
|
-
const r =
|
|
14647
|
+
const r = B(e.data_key), a = B(t.y_data_key), o = B(t.name_data_key);
|
|
14648
14648
|
return {
|
|
14649
14649
|
label: {
|
|
14650
14650
|
show: !!t.label_position,
|
|
@@ -14960,12 +14960,12 @@ const __ = we(({
|
|
|
14960
14960
|
k.set(d, l, c), t(d);
|
|
14961
14961
|
};
|
|
14962
14962
|
return /* @__PURE__ */ u(S, { children: [
|
|
14963
|
-
/* @__PURE__ */ i(
|
|
14963
|
+
/* @__PURE__ */ i(A, { mb: -15, variant: "dashed", label: "Content", labelPosition: "right" }),
|
|
14964
14964
|
/* @__PURE__ */ u(v, { grow: !0, noWrap: !0, children: [
|
|
14965
|
-
/* @__PURE__ */ i(
|
|
14965
|
+
/* @__PURE__ */ i(L, { label: "Content Text", value: e.content.text, onChange: (l) => s("content.text", l.currentTarget.value) }),
|
|
14966
14966
|
/* @__PURE__ */ i(Io, { label: "Text Position", value: e.label.position, onChange: (l) => s("label.position", l) })
|
|
14967
14967
|
] }),
|
|
14968
|
-
/* @__PURE__ */ i(
|
|
14968
|
+
/* @__PURE__ */ i(A, { mb: -15, variant: "dashed", label: "Endpoints", labelPosition: "right" }),
|
|
14969
14969
|
/* @__PURE__ */ u(v, { grow: !0, noWrap: !0, children: [
|
|
14970
14970
|
n && /* @__PURE__ */ i(F, { label: "X Axis", data: n, value: e.xAxisIndex, onChange: (l) => s("xAxisIndex", l) }),
|
|
14971
14971
|
r && /* @__PURE__ */ i(F, { label: "Y Axis", data: r, value: e.yAxisIndex, onChange: (l) => s("xAxisIndex", l) })
|
|
@@ -14984,7 +14984,7 @@ const __ = we(({
|
|
|
14984
14984
|
/* @__PURE__ */ i(F, { icon: /* @__PURE__ */ i(C, { children: "y" }), data: a, value: e.rightTopPoint.y_data_key, onChange: (l) => s("rightTopPoint.y_data_key", l ?? ""), clearable: !0 })
|
|
14985
14985
|
] })
|
|
14986
14986
|
] }),
|
|
14987
|
-
/* @__PURE__ */ i(
|
|
14987
|
+
/* @__PURE__ */ i(A, { mb: -15, variant: "dashed", label: "Style", labelPosition: "right" }),
|
|
14988
14988
|
/* @__PURE__ */ u(S, { spacing: 4, children: [
|
|
14989
14989
|
/* @__PURE__ */ i(C, { size: 14, children: "Background Color" }),
|
|
14990
14990
|
/* @__PURE__ */ i(ot, { value: e.itemStyle.color, onChange: (l) => s("itemStyle.color", l) })
|
|
@@ -15065,7 +15065,7 @@ function S_({
|
|
|
15065
15065
|
field: w
|
|
15066
15066
|
}) => /* @__PURE__ */ u(S, { children: [
|
|
15067
15067
|
/* @__PURE__ */ i(__, { variableOptions: d, yAxisOptions: h, ...w }),
|
|
15068
|
-
/* @__PURE__ */ i(
|
|
15068
|
+
/* @__PURE__ */ i(A, { mb: -10, mt: 10, variant: "dashed" }),
|
|
15069
15069
|
/* @__PURE__ */ i(I, { leftIcon: /* @__PURE__ */ i(Bn, { size: 16 }), color: "red", variant: "light", onClick: () => o(m), children: "Delete this Reference Area" })
|
|
15070
15070
|
] }) }) }, m))
|
|
15071
15071
|
] });
|
|
@@ -15101,7 +15101,7 @@ function D_({
|
|
|
15101
15101
|
/* @__PURE__ */ u(v, { grow: !0, noWrap: !0, children: [
|
|
15102
15102
|
/* @__PURE__ */ i(y, { name: `reference_lines.${t}.name`, control: e, render: ({
|
|
15103
15103
|
field: l
|
|
15104
|
-
}) => /* @__PURE__ */ i(
|
|
15104
|
+
}) => /* @__PURE__ */ i(L, { label: "Name", placeholder: "Average Reference Line", required: !0, sx: {
|
|
15105
15105
|
flex: 1
|
|
15106
15106
|
}, ...l }) }),
|
|
15107
15107
|
/* @__PURE__ */ i(
|
|
@@ -15119,7 +15119,7 @@ function D_({
|
|
|
15119
15119
|
] }),
|
|
15120
15120
|
/* @__PURE__ */ i(y, { name: `reference_lines.${t}.template`, control: e, render: ({
|
|
15121
15121
|
field: l
|
|
15122
|
-
}) => /* @__PURE__ */ i(
|
|
15122
|
+
}) => /* @__PURE__ */ i(L, { label: "Content Template", placeholder: "Average: ${avg}", sx: {
|
|
15123
15123
|
flex: 1
|
|
15124
15124
|
}, ...l }) }),
|
|
15125
15125
|
/* @__PURE__ */ u(v, { grow: !0, children: [
|
|
@@ -15150,7 +15150,7 @@ function D_({
|
|
|
15150
15150
|
flex: 1
|
|
15151
15151
|
} }) })
|
|
15152
15152
|
] }),
|
|
15153
|
-
/* @__PURE__ */ i(
|
|
15153
|
+
/* @__PURE__ */ i(A, { mb: -10, mt: 10, variant: "dashed", label: "Style", labelPosition: "center" }),
|
|
15154
15154
|
/* @__PURE__ */ u(v, { grow: !0, children: [
|
|
15155
15155
|
/* @__PURE__ */ i(
|
|
15156
15156
|
y,
|
|
@@ -15247,7 +15247,7 @@ function I_({
|
|
|
15247
15247
|
const M_ = ({
|
|
15248
15248
|
value: e,
|
|
15249
15249
|
onChange: t
|
|
15250
|
-
}) => /* @__PURE__ */ i(
|
|
15250
|
+
}) => /* @__PURE__ */ i(N, { children: /* @__PURE__ */ i(ct, { height: "500px", defaultLanguage: "javascript", value: e, onChange: (r) => {
|
|
15251
15251
|
r && t(r);
|
|
15252
15252
|
}, theme: "vs-dark", options: {
|
|
15253
15253
|
minimap: {
|
|
@@ -15281,13 +15281,13 @@ const M_ = ({
|
|
|
15281
15281
|
d(Tr.dynamic.func_content);
|
|
15282
15282
|
};
|
|
15283
15283
|
return /* @__PURE__ */ u(W, { children: [
|
|
15284
|
-
/* @__PURE__ */ i(
|
|
15284
|
+
/* @__PURE__ */ i(N, { sx: {
|
|
15285
15285
|
width: "50%"
|
|
15286
15286
|
}, children: /* @__PURE__ */ i(I, { variant: "filled", mt: 24, onClick: r, sx: {
|
|
15287
15287
|
flexGrow: 0
|
|
15288
15288
|
}, children: "Setup" }) }),
|
|
15289
15289
|
/* @__PURE__ */ i(Te, { size: 800, title: "Setup dynamic color", opened: n, onClose: a, closeOnClickOutside: !1, withCloseButton: !1, zIndex: 320, children: n && /* @__PURE__ */ u(S, { children: [
|
|
15290
|
-
/* @__PURE__ */ i(
|
|
15290
|
+
/* @__PURE__ */ i(A, { mt: 10, mb: -10, label: "Dynamic by a custom function", labelPosition: "center", variant: "dashed" }),
|
|
15291
15291
|
/* @__PURE__ */ i(M_, { value: o.func_content, onChange: d }),
|
|
15292
15292
|
/* @__PURE__ */ u(v, { position: "apart", children: [
|
|
15293
15293
|
/* @__PURE__ */ i(I, { onClick: p, color: "red", leftIcon: /* @__PURE__ */ i(Tt, { size: 20 }), children: "Reset" }),
|
|
@@ -15359,7 +15359,7 @@ const M_ = ({
|
|
|
15359
15359
|
}), O_ = ({
|
|
15360
15360
|
value: e,
|
|
15361
15361
|
onChange: t
|
|
15362
|
-
}) => /* @__PURE__ */ i(
|
|
15362
|
+
}) => /* @__PURE__ */ i(N, { children: /* @__PURE__ */ i(ct, { height: "500px", defaultLanguage: "javascript", value: e, onChange: (r) => {
|
|
15363
15363
|
r && t(r);
|
|
15364
15364
|
}, theme: "vs-dark", options: {
|
|
15365
15365
|
minimap: {
|
|
@@ -15403,13 +15403,13 @@ const M_ = ({
|
|
|
15403
15403
|
d(bd.dynamic.func_content);
|
|
15404
15404
|
};
|
|
15405
15405
|
return /* @__PURE__ */ u(W, { children: [
|
|
15406
|
-
/* @__PURE__ */ i(
|
|
15406
|
+
/* @__PURE__ */ i(N, { sx: {
|
|
15407
15407
|
width: "50%"
|
|
15408
15408
|
}, children: /* @__PURE__ */ i(I, { variant: "filled", mt: 24, onClick: r, sx: {
|
|
15409
15409
|
flexGrow: 0
|
|
15410
15410
|
}, children: "Setup" }) }),
|
|
15411
15411
|
/* @__PURE__ */ i(Te, { size: 800, title: "Setup dynamic size", opened: n, onClose: a, closeOnClickOutside: !1, withCloseButton: !1, zIndex: 320, children: n && /* @__PURE__ */ u(S, { children: [
|
|
15412
|
-
/* @__PURE__ */ i(
|
|
15412
|
+
/* @__PURE__ */ i(A, { mt: 10, mb: -10, label: "Dynamic by a custom function", labelPosition: "center", variant: "dashed" }),
|
|
15413
15413
|
/* @__PURE__ */ i(O_, { value: o.func_content, onChange: d }),
|
|
15414
15414
|
/* @__PURE__ */ u(v, { position: "apart", children: [
|
|
15415
15415
|
/* @__PURE__ */ i(I, { onClick: p, color: "red", leftIcon: /* @__PURE__ */ i(Tt, { size: 20 }), children: "Reset" }),
|
|
@@ -15519,14 +15519,14 @@ function W_({
|
|
|
15519
15519
|
flex: 1
|
|
15520
15520
|
}, ...n }) })
|
|
15521
15521
|
] }),
|
|
15522
|
-
/* @__PURE__ */ i(
|
|
15522
|
+
/* @__PURE__ */ i(A, { mb: -15, label: "Style", labelPosition: "center" }),
|
|
15523
15523
|
/* @__PURE__ */ i(y, { name: "scatter.symbolSize", control: e, render: ({
|
|
15524
15524
|
field: n
|
|
15525
15525
|
}) => /* @__PURE__ */ i(B_, { label: "Size", ...n }) }),
|
|
15526
15526
|
/* @__PURE__ */ i(y, { name: "scatter.color", control: e, render: ({
|
|
15527
15527
|
field: n
|
|
15528
15528
|
}) => /* @__PURE__ */ i(E_, { ...n }) }),
|
|
15529
|
-
/* @__PURE__ */ i(
|
|
15529
|
+
/* @__PURE__ */ i(A, { mb: -15, label: "Label", labelPosition: "center" }),
|
|
15530
15530
|
/* @__PURE__ */ i(v, { grow: !0, noWrap: !0, children: /* @__PURE__ */ i(
|
|
15531
15531
|
y,
|
|
15532
15532
|
{
|
|
@@ -15567,7 +15567,7 @@ const G_ = ({
|
|
|
15567
15567
|
/* @__PURE__ */ u(v, { grow: !0, noWrap: !0, children: [
|
|
15568
15568
|
/* @__PURE__ */ i(y, { name: `tooltip.metrics.${t}.name`, control: e, render: ({
|
|
15569
15569
|
field: r
|
|
15570
|
-
}) => /* @__PURE__ */ i(
|
|
15570
|
+
}) => /* @__PURE__ */ i(L, { label: "Name", required: !0, sx: {
|
|
15571
15571
|
flex: 1
|
|
15572
15572
|
}, ...r }) }),
|
|
15573
15573
|
/* @__PURE__ */ i(y, { name: `tooltip.metrics.${t}.data_key`, control: e, render: ({
|
|
@@ -15576,7 +15576,7 @@ const G_ = ({
|
|
|
15576
15576
|
flex: 1
|
|
15577
15577
|
}, ...r }) })
|
|
15578
15578
|
] }),
|
|
15579
|
-
/* @__PURE__ */ i(
|
|
15579
|
+
/* @__PURE__ */ i(A, { mb: -10, mt: 10, variant: "dashed" }),
|
|
15580
15580
|
/* @__PURE__ */ i(I, { leftIcon: /* @__PURE__ */ i(be, { size: 16 }), color: "red", variant: "light", onClick: () => n(t), sx: {
|
|
15581
15581
|
top: 15,
|
|
15582
15582
|
right: 5
|
|
@@ -15651,7 +15651,7 @@ function Q_({
|
|
|
15651
15651
|
}, ...n })
|
|
15652
15652
|
}
|
|
15653
15653
|
),
|
|
15654
|
-
/* @__PURE__ */ i(
|
|
15654
|
+
/* @__PURE__ */ i(A, { variant: "dashed" }),
|
|
15655
15655
|
/* @__PURE__ */ i(Y_, { control: e, watch: t })
|
|
15656
15656
|
] });
|
|
15657
15657
|
}
|
|
@@ -15659,7 +15659,7 @@ const K_ = ({
|
|
|
15659
15659
|
disabled: e,
|
|
15660
15660
|
value: t,
|
|
15661
15661
|
onChange: n
|
|
15662
|
-
}) => /* @__PURE__ */ u(
|
|
15662
|
+
}) => /* @__PURE__ */ u(N, { sx: {
|
|
15663
15663
|
position: "relative"
|
|
15664
15664
|
}, children: [
|
|
15665
15665
|
e && /* @__PURE__ */ i(Xt, { opacity: 0.6, color: "#fff", zIndex: 5, blur: 2 }),
|
|
@@ -15737,11 +15737,11 @@ function X_({
|
|
|
15737
15737
|
}, ...n }) }),
|
|
15738
15738
|
/* @__PURE__ */ i(y, { name: "x_axis.name", control: e, render: ({
|
|
15739
15739
|
field: n
|
|
15740
|
-
}) => /* @__PURE__ */ i(
|
|
15740
|
+
}) => /* @__PURE__ */ i(L, { label: "Name", sx: {
|
|
15741
15741
|
flex: 1
|
|
15742
15742
|
}, ...n }) })
|
|
15743
15743
|
] }),
|
|
15744
|
-
/* @__PURE__ */ i(
|
|
15744
|
+
/* @__PURE__ */ i(A, { mb: -15, label: "Tick Label", labelPosition: "center" }),
|
|
15745
15745
|
/* @__PURE__ */ u(v, { grow: !0, noWrap: !0, children: [
|
|
15746
15746
|
/* @__PURE__ */ i(y, { name: "x_axis.axisLabel.rotate", control: e, render: ({
|
|
15747
15747
|
field: n
|
|
@@ -15787,11 +15787,11 @@ function eC({
|
|
|
15787
15787
|
return /* @__PURE__ */ u(S, { my: 0, p: "0", sx: {
|
|
15788
15788
|
position: "relative"
|
|
15789
15789
|
}, children: [
|
|
15790
|
-
/* @__PURE__ */ i(
|
|
15790
|
+
/* @__PURE__ */ i(A, { mb: -15, mt: 15, variant: "dashed", label: "Name", labelPosition: "center" }),
|
|
15791
15791
|
/* @__PURE__ */ u(v, { grow: !0, noWrap: !0, children: [
|
|
15792
15792
|
/* @__PURE__ */ i(y, { name: `y_axes.${t}.name`, control: e, render: ({
|
|
15793
15793
|
field: r
|
|
15794
|
-
}) => /* @__PURE__ */ i(
|
|
15794
|
+
}) => /* @__PURE__ */ i(L, { label: "Name", required: !0, sx: {
|
|
15795
15795
|
flex: 1
|
|
15796
15796
|
}, ...r }) }),
|
|
15797
15797
|
/* @__PURE__ */ i(y, { name: `y_axes.${t}.nameAlignment`, control: e, render: ({
|
|
@@ -15803,7 +15803,7 @@ function eC({
|
|
|
15803
15803
|
}, ...r })
|
|
15804
15804
|
) })
|
|
15805
15805
|
] }),
|
|
15806
|
-
/* @__PURE__ */ i(
|
|
15806
|
+
/* @__PURE__ */ i(A, { mb: -15, variant: "dashed", label: "Layout", labelPosition: "center" }),
|
|
15807
15807
|
/* @__PURE__ */ i(v, { grow: !0, noWrap: !0, children: /* @__PURE__ */ i(y, { name: `y_axes.${t}.position`, control: e, render: ({
|
|
15808
15808
|
field: r
|
|
15809
15809
|
}) => (
|
|
@@ -15813,20 +15813,20 @@ function eC({
|
|
|
15813
15813
|
}, ...r })
|
|
15814
15814
|
) }) }),
|
|
15815
15815
|
/* @__PURE__ */ u(S, { children: [
|
|
15816
|
-
/* @__PURE__ */ i(
|
|
15816
|
+
/* @__PURE__ */ i(A, { mb: -15, variant: "dashed", label: "Label Format", labelPosition: "center" }),
|
|
15817
15817
|
/* @__PURE__ */ i(y, { name: `y_axes.${t}.label_formatter`, control: e, render: ({
|
|
15818
15818
|
field: r
|
|
15819
15819
|
}) => /* @__PURE__ */ i(vt, { ...r }) })
|
|
15820
15820
|
] }),
|
|
15821
15821
|
/* @__PURE__ */ u(S, { children: [
|
|
15822
|
-
/* @__PURE__ */ i(
|
|
15822
|
+
/* @__PURE__ */ i(A, { mb: -15, variant: "dashed", label: "Value Range", labelPosition: "center" }),
|
|
15823
15823
|
/* @__PURE__ */ u(v, { grow: !0, children: [
|
|
15824
15824
|
/* @__PURE__ */ i(y, { name: `y_axes.${t}.min`, control: e, render: ({
|
|
15825
15825
|
field: r
|
|
15826
|
-
}) => /* @__PURE__ */ i(
|
|
15826
|
+
}) => /* @__PURE__ */ i(L, { label: "Min", ...r }) }),
|
|
15827
15827
|
/* @__PURE__ */ i(y, { name: `y_axes.${t}.max`, control: e, render: ({
|
|
15828
15828
|
field: r
|
|
15829
|
-
}) => /* @__PURE__ */ i(
|
|
15829
|
+
}) => /* @__PURE__ */ i(L, { label: "Max", ...r }) })
|
|
15830
15830
|
] })
|
|
15831
15831
|
] }),
|
|
15832
15832
|
/* @__PURE__ */ i(I, { mt: 20, leftIcon: /* @__PURE__ */ i(be, { size: 16 }), color: "red", variant: "light", onClick: () => n(t), disabled: t === 0, children: "Delete this YAxis" })
|
|
@@ -16059,7 +16059,7 @@ function dC(e, {
|
|
|
16059
16059
|
class uC extends Re {
|
|
16060
16060
|
constructor() {
|
|
16061
16061
|
super(...arguments);
|
|
16062
|
-
|
|
16062
|
+
Y(this, "VERSION", 9);
|
|
16063
16063
|
}
|
|
16064
16064
|
configVersions() {
|
|
16065
16065
|
this.version(1, (n) => ({
|
|
@@ -16207,7 +16207,7 @@ function gC(e) {
|
|
|
16207
16207
|
class bC extends Re {
|
|
16208
16208
|
constructor() {
|
|
16209
16209
|
super(...arguments);
|
|
16210
|
-
|
|
16210
|
+
Y(this, "VERSION", 2);
|
|
16211
16211
|
}
|
|
16212
16212
|
configVersions() {
|
|
16213
16213
|
this.version(1, (n) => ({
|
|
@@ -16272,7 +16272,7 @@ const yC = {
|
|
|
16272
16272
|
height: c,
|
|
16273
16273
|
justifyContent: yC[o],
|
|
16274
16274
|
alignItems: xC[s]
|
|
16275
|
-
}, children: /* @__PURE__ */ i(
|
|
16275
|
+
}, children: /* @__PURE__ */ i(N, { children: Object.values(p).map((h, f) => /* @__PURE__ */ i(R.Fragment, { children: h }, f)) }) });
|
|
16276
16276
|
}), wC = [{
|
|
16277
16277
|
label: "Left",
|
|
16278
16278
|
value: "left"
|
|
@@ -16398,7 +16398,7 @@ function DC(e, t) {
|
|
|
16398
16398
|
} = e;
|
|
16399
16399
|
if (!n || !r)
|
|
16400
16400
|
return [];
|
|
16401
|
-
const o =
|
|
16401
|
+
const o = B(n), s = B(r), l = B(a), c = t[o.queryID].map((d) => ({
|
|
16402
16402
|
...d,
|
|
16403
16403
|
id: d[o.columnKey],
|
|
16404
16404
|
parent_id: d[l.columnKey],
|
|
@@ -16573,12 +16573,12 @@ const OC = [{
|
|
|
16573
16573
|
/* @__PURE__ */ u(v, { grow: !0, noWrap: !0, children: [
|
|
16574
16574
|
/* @__PURE__ */ i(y, { name: `levels.${t}.r0`, control: e, render: ({
|
|
16575
16575
|
field: r
|
|
16576
|
-
}) => /* @__PURE__ */ i(
|
|
16576
|
+
}) => /* @__PURE__ */ i(L, { label: "Inside Radius", placeholder: "0%", ...r }) }),
|
|
16577
16577
|
/* @__PURE__ */ i(y, { name: `levels.${t}.r`, control: e, render: ({
|
|
16578
16578
|
field: r
|
|
16579
|
-
}) => /* @__PURE__ */ i(
|
|
16579
|
+
}) => /* @__PURE__ */ i(L, { label: "Outside Radius", placeholder: "50%", ...r }) })
|
|
16580
16580
|
] }),
|
|
16581
|
-
/* @__PURE__ */ i(
|
|
16581
|
+
/* @__PURE__ */ i(A, { mb: -10, mt: 10, variant: "dashed", label: "Label Style", labelPosition: "center" }),
|
|
16582
16582
|
/* @__PURE__ */ i(y, { name: `levels.${t}.label.show_label_tolerance`, control: e, render: ({
|
|
16583
16583
|
field: r
|
|
16584
16584
|
}) => (
|
|
@@ -16622,7 +16622,7 @@ const OC = [{
|
|
|
16622
16622
|
}
|
|
16623
16623
|
)
|
|
16624
16624
|
] }),
|
|
16625
|
-
/* @__PURE__ */ i(
|
|
16625
|
+
/* @__PURE__ */ i(A, { mb: -10, mt: 10, variant: "dashed" }),
|
|
16626
16626
|
/* @__PURE__ */ i(I, { leftIcon: /* @__PURE__ */ i(be, { size: 16 }), color: "red", variant: "light", onClick: () => n(t), sx: {
|
|
16627
16627
|
top: 15,
|
|
16628
16628
|
right: 5
|
|
@@ -16663,7 +16663,7 @@ const OC = [{
|
|
|
16663
16663
|
/* @__PURE__ */ i(dn, { size: 14, color: "#888" }),
|
|
16664
16664
|
/* @__PURE__ */ i(C, { size: 14, color: "#888", children: "Configure ring style on each level" })
|
|
16665
16665
|
] }),
|
|
16666
|
-
/* @__PURE__ */ i(
|
|
16666
|
+
/* @__PURE__ */ i(A, { variant: "dashed", my: 10 }),
|
|
16667
16667
|
/* @__PURE__ */ u(g, { value: d, onTabChange: (h) => p(h), styles: {
|
|
16668
16668
|
tab: {
|
|
16669
16669
|
paddingTop: "0px",
|
|
@@ -16788,7 +16788,7 @@ function jC(e, {
|
|
|
16788
16788
|
class GC extends Re {
|
|
16789
16789
|
constructor() {
|
|
16790
16790
|
super(...arguments);
|
|
16791
|
-
|
|
16791
|
+
Y(this, "VERSION", 5);
|
|
16792
16792
|
}
|
|
16793
16793
|
configVersions() {
|
|
16794
16794
|
this.version(1, (n) => ({
|
|
@@ -17163,7 +17163,7 @@ function p1({
|
|
|
17163
17163
|
} = ZC(), f = M(() => {
|
|
17164
17164
|
if (!s)
|
|
17165
17165
|
return [];
|
|
17166
|
-
const Me =
|
|
17166
|
+
const Me = B(s);
|
|
17167
17167
|
return e[Me.queryID];
|
|
17168
17168
|
}, [e, s]), m = R.useMemo(() => l ? !Array.isArray(f) || f.length === 0 ? [] : Object.keys(f[0]).map((Me) => ({
|
|
17169
17169
|
id: Me,
|
|
@@ -17190,7 +17190,7 @@ function p1({
|
|
|
17190
17190
|
minSize: typeof $e.width == "number" ? $e.width : void 0
|
|
17191
17191
|
});
|
|
17192
17192
|
});
|
|
17193
|
-
}, [m, w]), [T, $] = Q([]),
|
|
17193
|
+
}, [m, w]), [T, $] = Q([]), z = tc({
|
|
17194
17194
|
data: f,
|
|
17195
17195
|
state: {
|
|
17196
17196
|
sorting: T
|
|
@@ -17201,23 +17201,23 @@ function p1({
|
|
|
17201
17201
|
getSortedRowModel: Lp()
|
|
17202
17202
|
}), {
|
|
17203
17203
|
rows: j
|
|
17204
|
-
} =
|
|
17205
|
-
parentRef:
|
|
17204
|
+
} = z.getRowModel(), U = R.useRef(null), V = Ap({
|
|
17205
|
+
parentRef: U,
|
|
17206
17206
|
size: j.length,
|
|
17207
17207
|
estimateSize: nt(() => 28, []),
|
|
17208
17208
|
overscan: 20
|
|
17209
17209
|
}), {
|
|
17210
17210
|
virtualItems: O,
|
|
17211
17211
|
totalSize: E
|
|
17212
|
-
} =
|
|
17213
|
-
return !Array.isArray(f) || f.length === 0 ? /* @__PURE__ */ i(C, { color: "gray", align: "center", children: "Empty Data" }) : /* @__PURE__ */ u("div", { ref:
|
|
17212
|
+
} = V, H = O.length > 0 && ((Ae = O == null ? void 0 : O[0]) == null ? void 0 : Ae.start) || 0, re = O.length > 0 ? E - (((Ue = O == null ? void 0 : O[O.length - 1]) == null ? void 0 : Ue.end) || 0) : 0, te = j.length, ae = te > 0, ye = ae ? n - 22 : n, xe = ae ? 22 : 0;
|
|
17213
|
+
return !Array.isArray(f) || f.length === 0 ? /* @__PURE__ */ i(C, { color: "gray", align: "center", children: "Empty Data" }) : /* @__PURE__ */ u("div", { ref: U, style: {
|
|
17214
17214
|
height: n,
|
|
17215
17215
|
width: t,
|
|
17216
17216
|
padding: "0 5px"
|
|
17217
17217
|
}, "data-enable-scrollbar": !0, className: h(p.root, {
|
|
17218
17218
|
"table-highlight-on-hover": r.highlightOnHover
|
|
17219
17219
|
}), children: [
|
|
17220
|
-
te > 0 && /* @__PURE__ */ i(
|
|
17220
|
+
te > 0 && /* @__PURE__ */ i(N, { className: p.info_bar, sx: {
|
|
17221
17221
|
height: 22
|
|
17222
17222
|
}, children: /* @__PURE__ */ u(C, { align: "right", pr: 6, size: 14, color: "dimmed", fw: "normal", children: [
|
|
17223
17223
|
"Total: ",
|
|
@@ -17229,12 +17229,12 @@ function p1({
|
|
|
17229
17229
|
}, ...d, striped: r.striped, children: [
|
|
17230
17230
|
/* @__PURE__ */ i("thead", { className: p.thead, style: {
|
|
17231
17231
|
top: xe
|
|
17232
|
-
}, children:
|
|
17232
|
+
}, children: z.getHeaderGroups().map((Me) => /* @__PURE__ */ i("tr", { children: Me.headers.map((Pe) => /* @__PURE__ */ i("th", { style: {
|
|
17233
17233
|
width: Pe.getSize()
|
|
17234
17234
|
}, children: /* @__PURE__ */ i(HC, { header: Pe, cx: h }) }, Pe.id)) }, Me.id)) }),
|
|
17235
17235
|
/* @__PURE__ */ u("tbody", { children: [
|
|
17236
|
-
|
|
17237
|
-
height: `${
|
|
17236
|
+
H > 0 && /* @__PURE__ */ i("tr", { children: /* @__PURE__ */ i("td", { style: {
|
|
17237
|
+
height: `${H}px`
|
|
17238
17238
|
} }) }),
|
|
17239
17239
|
O.map((Me) => {
|
|
17240
17240
|
const Pe = j[Me.index];
|
|
@@ -17294,9 +17294,9 @@ class g1 {
|
|
|
17294
17294
|
/**
|
|
17295
17295
|
* map toValue to fromValue
|
|
17296
17296
|
*/
|
|
17297
|
-
|
|
17298
|
-
|
|
17299
|
-
|
|
17297
|
+
Y(this, "steps", /* @__PURE__ */ new Map());
|
|
17298
|
+
Y(this, "interpolation");
|
|
17299
|
+
Y(this, "onChange");
|
|
17300
17300
|
wr(this, {
|
|
17301
17301
|
steps: yl
|
|
17302
17302
|
}, {
|
|
@@ -17492,7 +17492,7 @@ const k1 = we((e, t) => {
|
|
|
17492
17492
|
flexGrow: 0
|
|
17493
17493
|
}, children: "Custom Cell Content" }),
|
|
17494
17494
|
/* @__PURE__ */ i(Te, { size: 800, title: "Custom cell content", opened: r, onClose: o, closeOnClickOutside: !1, withCloseButton: !1, zIndex: 320, children: r && /* @__PURE__ */ u(S, { children: [
|
|
17495
|
-
/* @__PURE__ */ i(
|
|
17495
|
+
/* @__PURE__ */ i(N, { sx: {
|
|
17496
17496
|
position: "relative"
|
|
17497
17497
|
}, children: /* @__PURE__ */ i(ct, { height: "500px", defaultLanguage: "javascript", value: s, onChange: (h) => l(h ?? ""), theme: "vs-dark", options: {
|
|
17498
17498
|
minimap: {
|
|
@@ -17531,7 +17531,7 @@ const k1 = we((e, t) => {
|
|
|
17531
17531
|
/* @__PURE__ */ u(v, { grow: !0, children: [
|
|
17532
17532
|
/* @__PURE__ */ i(y, { name: `columns.${t}.label`, control: e, render: ({
|
|
17533
17533
|
field: s
|
|
17534
|
-
}) => /* @__PURE__ */ i(
|
|
17534
|
+
}) => /* @__PURE__ */ i(L, { label: "Label", required: !0, id: `col-label-${t}`, sx: {
|
|
17535
17535
|
flex: 1
|
|
17536
17536
|
}, ...s }) }),
|
|
17537
17537
|
/* @__PURE__ */ i(y, { name: `columns.${t}.value_field`, control: e, render: ({
|
|
@@ -17548,7 +17548,7 @@ const k1 = we((e, t) => {
|
|
|
17548
17548
|
field: s
|
|
17549
17549
|
}) => /* @__PURE__ */ i(M1, { value: s.value ?? yd, onChange: (l) => s.onChange(l ?? "") }) })
|
|
17550
17550
|
] }),
|
|
17551
|
-
/* @__PURE__ */ i(
|
|
17551
|
+
/* @__PURE__ */ i(A, { mb: -10, variant: "dashed", label: "Style", labelPosition: "center" }),
|
|
17552
17552
|
/* @__PURE__ */ u(v, { grow: !0, children: [
|
|
17553
17553
|
/* @__PURE__ */ i(ie, { hideControls: !0, label: "Min Width", rightSection: /* @__PURE__ */ i(Hi, {}), disabled: !0 }),
|
|
17554
17554
|
/* @__PURE__ */ i(y, { name: `columns.${t}.width`, control: e, render: ({
|
|
@@ -17569,7 +17569,7 @@ const k1 = we((e, t) => {
|
|
|
17569
17569
|
/* @__PURE__ */ i(y, { name: `columns.${t}.cellBackgroundColor`, control: e, render: ({
|
|
17570
17570
|
field: s
|
|
17571
17571
|
}) => /* @__PURE__ */ i(k1, { ...s }) }),
|
|
17572
|
-
/* @__PURE__ */ i(
|
|
17572
|
+
/* @__PURE__ */ i(A, { mb: 4, mt: 12, variant: "dashed" }),
|
|
17573
17573
|
/* @__PURE__ */ i(I, { leftIcon: /* @__PURE__ */ i(be, { size: 16 }), color: "red", variant: "light", onClick: () => r(t), children: "Delete this column" })
|
|
17574
17574
|
] });
|
|
17575
17575
|
}, L1 = ({
|
|
@@ -17631,12 +17631,12 @@ function A1({
|
|
|
17631
17631
|
}, children: [
|
|
17632
17632
|
/* @__PURE__ */ i(y, { name: "horizontalSpacing", control: e, render: ({
|
|
17633
17633
|
field: n
|
|
17634
|
-
}) => /* @__PURE__ */ i(
|
|
17634
|
+
}) => /* @__PURE__ */ i(L, { label: "Horizontal Spacing", placeholder: "10px, 1em, 1rem, 100%...", required: !0, sx: {
|
|
17635
17635
|
flex: 1
|
|
17636
17636
|
}, ...n }) }),
|
|
17637
17637
|
/* @__PURE__ */ i(y, { name: "verticalSpacing", control: e, render: ({
|
|
17638
17638
|
field: n
|
|
17639
|
-
}) => /* @__PURE__ */ i(
|
|
17639
|
+
}) => /* @__PURE__ */ i(L, { label: "Vertical Spacing", placeholder: "10px, 1em, 1rem, 100%...", required: !0, sx: {
|
|
17640
17640
|
flex: 1
|
|
17641
17641
|
}, ...n }) })
|
|
17642
17642
|
] }),
|
|
@@ -17646,7 +17646,7 @@ function A1({
|
|
|
17646
17646
|
}
|
|
17647
17647
|
}, children: /* @__PURE__ */ i(y, { name: "fontSize", control: e, render: ({
|
|
17648
17648
|
field: n
|
|
17649
|
-
}) => /* @__PURE__ */ i(
|
|
17649
|
+
}) => /* @__PURE__ */ i(L, { label: "Font Size", placeholder: "10px, 1em, 1rem, 100%...", required: !0, sx: {
|
|
17650
17650
|
flex: 1
|
|
17651
17651
|
}, ...n }) }) }),
|
|
17652
17652
|
/* @__PURE__ */ u(v, { position: "apart", grow: !0, children: [
|
|
@@ -17723,7 +17723,7 @@ function R1({
|
|
|
17723
17723
|
/* @__PURE__ */ i(y, { name: "id_field", control: o, render: ({
|
|
17724
17724
|
field: f
|
|
17725
17725
|
}) => /* @__PURE__ */ i(X, { label: "ID Field", required: !0, ...f }) }),
|
|
17726
|
-
/* @__PURE__ */ i(
|
|
17726
|
+
/* @__PURE__ */ i(A, { mt: 20, mb: 10, variant: "dashed" }),
|
|
17727
17727
|
/* @__PURE__ */ i(L1, { control: o, watch: l })
|
|
17728
17728
|
] }),
|
|
17729
17729
|
/* @__PURE__ */ i(g.Panel, { value: "Style", children: /* @__PURE__ */ i(A1, { control: o, watch: l }) })
|
|
@@ -17785,7 +17785,7 @@ function P1(e) {
|
|
|
17785
17785
|
class V1 extends Re {
|
|
17786
17786
|
constructor() {
|
|
17787
17787
|
super(...arguments);
|
|
17788
|
-
|
|
17788
|
+
Y(this, "VERSION", 5);
|
|
17789
17789
|
}
|
|
17790
17790
|
configVersions() {
|
|
17791
17791
|
this.version(1, (n) => ({
|
|
@@ -17872,7 +17872,7 @@ const ia = {
|
|
|
17872
17872
|
}), B1 = ({
|
|
17873
17873
|
value: e,
|
|
17874
17874
|
onChange: t
|
|
17875
|
-
}) => /* @__PURE__ */ i(
|
|
17875
|
+
}) => /* @__PURE__ */ i(N, { sx: {
|
|
17876
17876
|
position: "relative"
|
|
17877
17877
|
}, children: /* @__PURE__ */ i(ct, { height: "500px", defaultLanguage: "javascript", value: e, onChange: (r) => {
|
|
17878
17878
|
r && t(r);
|
|
@@ -17969,7 +17969,7 @@ function j1({
|
|
|
17969
17969
|
/* @__PURE__ */ i(y, { name: "func_content", control: o, render: ({
|
|
17970
17970
|
field: f
|
|
17971
17971
|
}) => /* @__PURE__ */ i(q1, { ...f }) }),
|
|
17972
|
-
/* @__PURE__ */ i(
|
|
17972
|
+
/* @__PURE__ */ i(A, { mt: 10, mb: -10, variant: "dashed", label: "Style", labelPosition: "center" }),
|
|
17973
17973
|
/* @__PURE__ */ i(
|
|
17974
17974
|
y,
|
|
17975
17975
|
{
|
|
@@ -17982,7 +17982,7 @@ function j1({
|
|
|
17982
17982
|
),
|
|
17983
17983
|
/* @__PURE__ */ i(y, { name: "font_size", control: o, render: ({
|
|
17984
17984
|
field: f
|
|
17985
|
-
}) => /* @__PURE__ */ i(
|
|
17985
|
+
}) => /* @__PURE__ */ i(L, { label: "Font Size", placeholder: "10px, 1em, 1rem, 100%...", sx: {
|
|
17986
17986
|
flex: 1
|
|
17987
17987
|
}, ...f }) }),
|
|
17988
17988
|
/* @__PURE__ */ i(v, { position: "apart", grow: !0, sx: {
|
|
@@ -17999,7 +17999,7 @@ function j1({
|
|
|
17999
17999
|
class G1 extends Re {
|
|
18000
18000
|
constructor() {
|
|
18001
18001
|
super(...arguments);
|
|
18002
|
-
|
|
18002
|
+
Y(this, "VERSION", 1);
|
|
18003
18003
|
}
|
|
18004
18004
|
configVersions() {
|
|
18005
18005
|
this.version(1, (n) => ({
|
|
@@ -18082,7 +18082,7 @@ const K1 = ({
|
|
|
18082
18082
|
...po
|
|
18083
18083
|
}, Xs = ({
|
|
18084
18084
|
message: e
|
|
18085
|
-
}) => /* @__PURE__ */ i(
|
|
18085
|
+
}) => /* @__PURE__ */ i(N, { sx: aa, children: /* @__PURE__ */ i("div", { dangerouslySetInnerHTML: {
|
|
18086
18086
|
__html: e
|
|
18087
18087
|
}, style: {
|
|
18088
18088
|
fontSize: "14px",
|
|
@@ -18123,10 +18123,10 @@ function X1({
|
|
|
18123
18123
|
}), {
|
|
18124
18124
|
refreshDeps: [o, n]
|
|
18125
18125
|
});
|
|
18126
|
-
return !r || !a || !n ? null : c ? /* @__PURE__ */ i(
|
|
18126
|
+
return !r || !a || !n ? null : c ? /* @__PURE__ */ i(N, { sx: {
|
|
18127
18127
|
position: "relative",
|
|
18128
18128
|
height: a
|
|
18129
|
-
}, children: /* @__PURE__ */ i(kn, { visible: !0 }) }) : l ? /* @__PURE__ */ i(
|
|
18129
|
+
}, children: /* @__PURE__ */ i(kn, { visible: !0 }) }) : l ? /* @__PURE__ */ i(N, { sx: aa, "data-enable-scrollbar": !0, children: /* @__PURE__ */ i(U1, { error: l, width: r, height: a }) }) : !s || !Array.isArray(s.replies) || s.replies.length === 0 ? null : /* @__PURE__ */ i(N, { sx: aa, "data-enable-scrollbar": !0, children: s.replies.map((d, p) => /* @__PURE__ */ i("div", { dangerouslySetInnerHTML: {
|
|
18130
18130
|
__html: d.interpretation.html
|
|
18131
18131
|
} }, p)) });
|
|
18132
18132
|
}
|
|
@@ -18153,20 +18153,20 @@ function J1({
|
|
|
18153
18153
|
/* @__PURE__ */ u(v, { grow: !0, children: [
|
|
18154
18154
|
/* @__PURE__ */ i(y, { name: "expertSystemURL", control: a, render: ({
|
|
18155
18155
|
field: h
|
|
18156
|
-
}) => /* @__PURE__ */ i(
|
|
18156
|
+
}) => /* @__PURE__ */ i(L, { label: "Expert System URL", ...h }) }),
|
|
18157
18157
|
/* @__PURE__ */ i(y, { name: "path", control: a, render: ({
|
|
18158
18158
|
field: h
|
|
18159
|
-
}) => /* @__PURE__ */ i(
|
|
18159
|
+
}) => /* @__PURE__ */ i(L, { label: "Path", required: !0, ...h }) })
|
|
18160
18160
|
] }),
|
|
18161
18161
|
/* @__PURE__ */ u(v, { grow: !0, children: [
|
|
18162
18162
|
/* @__PURE__ */ i(y, { name: "goal", control: a, render: ({
|
|
18163
18163
|
field: h
|
|
18164
|
-
}) => /* @__PURE__ */ i(
|
|
18164
|
+
}) => /* @__PURE__ */ i(L, { label: "Goal", required: !0, ...h }) }),
|
|
18165
18165
|
/* @__PURE__ */ i(y, { name: "question", control: a, render: ({
|
|
18166
18166
|
field: h
|
|
18167
|
-
}) => /* @__PURE__ */ i(
|
|
18167
|
+
}) => /* @__PURE__ */ i(L, { label: "Question", required: !0, ...h }) })
|
|
18168
18168
|
] }),
|
|
18169
|
-
/* @__PURE__ */ i(
|
|
18169
|
+
/* @__PURE__ */ i(A, { variant: "dashed", mt: 16, mb: 8 }),
|
|
18170
18170
|
/* @__PURE__ */ i(I, { type: "submit", variant: "filled", color: "blue", leftIcon: /* @__PURE__ */ i(ve, { size: 20 }), disabled: !p, sx: {
|
|
18171
18171
|
alignSelf: "flex-end"
|
|
18172
18172
|
}, children: "Submit Changes" })
|
|
@@ -18175,7 +18175,7 @@ function J1({
|
|
|
18175
18175
|
class Z1 extends Re {
|
|
18176
18176
|
constructor() {
|
|
18177
18177
|
super(...arguments);
|
|
18178
|
-
|
|
18178
|
+
Y(this, "VERSION", 1);
|
|
18179
18179
|
}
|
|
18180
18180
|
configVersions() {
|
|
18181
18181
|
this.version(1, (n) => ({
|
|
@@ -18261,7 +18261,7 @@ function aS(e, t, n, r) {
|
|
|
18261
18261
|
const {
|
|
18262
18262
|
calendar: a,
|
|
18263
18263
|
heat_block: o
|
|
18264
|
-
} = e, s =
|
|
18264
|
+
} = e, s = B(a.data_key), l = B(o.data_key);
|
|
18265
18265
|
return t ? {
|
|
18266
18266
|
type: "heatmap",
|
|
18267
18267
|
name: "heatmap",
|
|
@@ -18303,7 +18303,7 @@ function sS({
|
|
|
18303
18303
|
}
|
|
18304
18304
|
}], d = n[o];
|
|
18305
18305
|
return d && e.tooltip.metrics.forEach((p) => {
|
|
18306
|
-
const h =
|
|
18306
|
+
const h = B(p.data_key);
|
|
18307
18307
|
c.push({
|
|
18308
18308
|
label: p.name,
|
|
18309
18309
|
value: oS(k.get(d, h.columnKey, "")),
|
|
@@ -18315,7 +18315,7 @@ function sS({
|
|
|
18315
18315
|
}), c;
|
|
18316
18316
|
}
|
|
18317
18317
|
function lS(e, t, n) {
|
|
18318
|
-
const r =
|
|
18318
|
+
const r = B(e.calendar.data_key), a = k.keyBy(t[r.queryID], r.columnKey);
|
|
18319
18319
|
return {
|
|
18320
18320
|
confine: !0,
|
|
18321
18321
|
formatter: function(o) {
|
|
@@ -18376,7 +18376,7 @@ const dS = {
|
|
|
18376
18376
|
}
|
|
18377
18377
|
}, uS = (e) => ee(e).get("year");
|
|
18378
18378
|
function hS(e, t) {
|
|
18379
|
-
const n =
|
|
18379
|
+
const n = B(e.calendar.data_key), r = t[n.queryID], a = k.groupBy(r, (d) => uS(d[n.columnKey])), o = Object.keys(a), s = r.map((d) => ee(d[n.columnKey]).valueOf()), l = k.min(s), c = k.max(s);
|
|
18380
18380
|
return {
|
|
18381
18381
|
minDate: l ?? 0,
|
|
18382
18382
|
maxDate: c ?? 0,
|
|
@@ -18529,7 +18529,7 @@ function xS({
|
|
|
18529
18529
|
}, ...n }) }),
|
|
18530
18530
|
/* @__PURE__ */ i(y, { name: "heat_block.name", control: e, render: ({
|
|
18531
18531
|
field: n
|
|
18532
|
-
}) => /* @__PURE__ */ i(
|
|
18532
|
+
}) => /* @__PURE__ */ i(L, { label: "Name", sx: {
|
|
18533
18533
|
flex: 1
|
|
18534
18534
|
}, ...n }) })
|
|
18535
18535
|
] }),
|
|
@@ -18541,7 +18541,7 @@ function xS({
|
|
|
18541
18541
|
field: n
|
|
18542
18542
|
}) => /* @__PURE__ */ i(qn, { label: "Max Value", ...n }) })
|
|
18543
18543
|
] }),
|
|
18544
|
-
/* @__PURE__ */ i(
|
|
18544
|
+
/* @__PURE__ */ i(A, { mb: -15, variant: "dashed", label: "Value Format", labelPosition: "center" }),
|
|
18545
18545
|
/* @__PURE__ */ i(y, { name: "heat_block.value_formatter", control: e, render: ({
|
|
18546
18546
|
field: n
|
|
18547
18547
|
}) => /* @__PURE__ */ i(vt, { ...n }) })
|
|
@@ -18555,7 +18555,7 @@ const vS = ({
|
|
|
18555
18555
|
/* @__PURE__ */ u(v, { grow: !0, noWrap: !0, children: [
|
|
18556
18556
|
/* @__PURE__ */ i(y, { name: `tooltip.metrics.${t}.name`, control: e, render: ({
|
|
18557
18557
|
field: r
|
|
18558
|
-
}) => /* @__PURE__ */ i(
|
|
18558
|
+
}) => /* @__PURE__ */ i(L, { label: "Name", required: !0, sx: {
|
|
18559
18559
|
flex: 1
|
|
18560
18560
|
}, ...r }) }),
|
|
18561
18561
|
/* @__PURE__ */ i(y, { name: `tooltip.metrics.${t}.data_key`, control: e, render: ({
|
|
@@ -18564,7 +18564,7 @@ const vS = ({
|
|
|
18564
18564
|
flex: 1
|
|
18565
18565
|
}, ...r }) })
|
|
18566
18566
|
] }),
|
|
18567
|
-
/* @__PURE__ */ i(
|
|
18567
|
+
/* @__PURE__ */ i(A, { mb: -10, mt: 10, variant: "dashed" }),
|
|
18568
18568
|
/* @__PURE__ */ i(I, { leftIcon: /* @__PURE__ */ i(be, { size: 16 }), color: "red", variant: "light", onClick: () => n(t), sx: {
|
|
18569
18569
|
top: 15,
|
|
18570
18570
|
right: 5
|
|
@@ -18598,7 +18598,7 @@ const vS = ({
|
|
|
18598
18598
|
/* @__PURE__ */ i(dn, { size: 14, color: "#888" }),
|
|
18599
18599
|
/* @__PURE__ */ i(C, { size: 14, color: "#888", children: "Configure additional metrics to show in tooltip" })
|
|
18600
18600
|
] }),
|
|
18601
|
-
/* @__PURE__ */ i(
|
|
18601
|
+
/* @__PURE__ */ i(A, { variant: "dashed", my: 10 }),
|
|
18602
18602
|
/* @__PURE__ */ u(g, { value: d, onTabChange: (h) => p(h), styles: {
|
|
18603
18603
|
tab: {
|
|
18604
18604
|
paddingTop: "0px",
|
|
@@ -18767,7 +18767,7 @@ function DS(e) {
|
|
|
18767
18767
|
class IS extends Re {
|
|
18768
18768
|
constructor() {
|
|
18769
18769
|
super(...arguments);
|
|
18770
|
-
|
|
18770
|
+
Y(this, "VERSION", 3);
|
|
18771
18771
|
}
|
|
18772
18772
|
configVersions() {
|
|
18773
18773
|
this.version(1, (n) => ({
|
|
@@ -18988,7 +18988,7 @@ function NS({
|
|
|
18988
18988
|
const {
|
|
18989
18989
|
queryID: a,
|
|
18990
18990
|
columnKey: o
|
|
18991
|
-
} =
|
|
18991
|
+
} = B(e), s = k.groupBy(t[a], o);
|
|
18992
18992
|
return Object.entries(s).forEach(([l, c]) => {
|
|
18993
18993
|
s[l] = Si({
|
|
18994
18994
|
[a]: c
|
|
@@ -19011,7 +19011,7 @@ function BS({
|
|
|
19011
19011
|
id: h,
|
|
19012
19012
|
...f
|
|
19013
19013
|
}, m, w, x, T, $) {
|
|
19014
|
-
const
|
|
19014
|
+
const z = {
|
|
19015
19015
|
label: {
|
|
19016
19016
|
show: !!r,
|
|
19017
19017
|
position: r,
|
|
@@ -19032,23 +19032,23 @@ function BS({
|
|
|
19032
19032
|
...f
|
|
19033
19033
|
};
|
|
19034
19034
|
if (!o || o === e.data_key)
|
|
19035
|
-
return
|
|
19035
|
+
return z.data = VS({
|
|
19036
19036
|
dataTemplate: m,
|
|
19037
19037
|
data: x,
|
|
19038
19038
|
aggregation_on_value: s,
|
|
19039
19039
|
name_data_key: e.data_key,
|
|
19040
19040
|
value_data_key: t,
|
|
19041
19041
|
valueTypedXAxis: w
|
|
19042
|
-
}),
|
|
19042
|
+
}), z;
|
|
19043
19043
|
const j = NS({
|
|
19044
19044
|
group_by_key: o,
|
|
19045
19045
|
data: x,
|
|
19046
19046
|
name_data_key: e.data_key,
|
|
19047
19047
|
value_data_key: t
|
|
19048
19048
|
});
|
|
19049
|
-
return Object.entries(j).map(([
|
|
19050
|
-
const O = Ze(
|
|
19051
|
-
return O.name =
|
|
19049
|
+
return Object.entries(j).map(([U, V]) => {
|
|
19050
|
+
const O = Ze(z);
|
|
19051
|
+
return O.name = U, O.color = void 0, O.data = V, O;
|
|
19052
19052
|
});
|
|
19053
19053
|
}
|
|
19054
19054
|
function qS(e, t, n, r, a, o, s) {
|
|
@@ -19203,7 +19203,7 @@ function QS(e, t) {
|
|
|
19203
19203
|
function KS(e, t, n) {
|
|
19204
19204
|
if (!e.y_axis.data_key)
|
|
19205
19205
|
return {};
|
|
19206
|
-
const r = YS(t, n), a = GS(e), o =
|
|
19206
|
+
const r = YS(t, n), a = GS(e), o = B(e.y_axis.data_key), s = k.uniq(t[o.queryID].map((p) => p[o.columnKey])), l = s.every((p) => !Number.isNaN(Number(p))), c = qS(e, s, l, t, a, n, r);
|
|
19207
19207
|
return {
|
|
19208
19208
|
xAxis: HS(e, a),
|
|
19209
19209
|
yAxis: QS(e, s),
|
|
@@ -19288,7 +19288,7 @@ function ek({
|
|
|
19288
19288
|
/* @__PURE__ */ u(v, { grow: !0, noWrap: !0, children: [
|
|
19289
19289
|
/* @__PURE__ */ i(y, { name: `reference_lines.${t}.name`, control: e, render: ({
|
|
19290
19290
|
field: l
|
|
19291
|
-
}) => /* @__PURE__ */ i(
|
|
19291
|
+
}) => /* @__PURE__ */ i(L, { label: "Name", placeholder: "Average Reference Line", required: !0, sx: {
|
|
19292
19292
|
flex: 1
|
|
19293
19293
|
}, ...l }) }),
|
|
19294
19294
|
/* @__PURE__ */ i(
|
|
@@ -19306,7 +19306,7 @@ function ek({
|
|
|
19306
19306
|
] }),
|
|
19307
19307
|
/* @__PURE__ */ i(y, { name: `reference_lines.${t}.template`, control: e, render: ({
|
|
19308
19308
|
field: l
|
|
19309
|
-
}) => /* @__PURE__ */ i(
|
|
19309
|
+
}) => /* @__PURE__ */ i(L, { label: "Content Template", placeholder: "Average: ${avg}", sx: {
|
|
19310
19310
|
flex: 1
|
|
19311
19311
|
}, ...l }) }),
|
|
19312
19312
|
/* @__PURE__ */ u(v, { grow: !0, children: [
|
|
@@ -19330,7 +19330,7 @@ function ek({
|
|
|
19330
19330
|
}, ...l })
|
|
19331
19331
|
) })
|
|
19332
19332
|
] }),
|
|
19333
|
-
/* @__PURE__ */ i(
|
|
19333
|
+
/* @__PURE__ */ i(A, { mb: -10, mt: 10, variant: "dashed", label: "Style", labelPosition: "center" }),
|
|
19334
19334
|
/* @__PURE__ */ u(v, { grow: !0, children: [
|
|
19335
19335
|
/* @__PURE__ */ i(
|
|
19336
19336
|
y,
|
|
@@ -19363,7 +19363,7 @@ function ek({
|
|
|
19363
19363
|
field: l
|
|
19364
19364
|
}) => /* @__PURE__ */ i(ot, { ...l }) })
|
|
19365
19365
|
] }),
|
|
19366
|
-
/* @__PURE__ */ i(
|
|
19366
|
+
/* @__PURE__ */ i(A, { mb: -10, mt: 10, variant: "dashed", label: "Behavior", labelPosition: "center" }),
|
|
19367
19367
|
/* @__PURE__ */ i(y, { name: `reference_lines.${t}.show_in_legend`, control: e, render: ({
|
|
19368
19368
|
field: l
|
|
19369
19369
|
}) => /* @__PURE__ */ i(me, { label: "Show in legend", checked: l.value, onChange: (c) => l.onChange(c.currentTarget.checked) }) }),
|
|
@@ -19442,7 +19442,7 @@ function ik({
|
|
|
19442
19442
|
/* @__PURE__ */ u(v, { grow: !0, noWrap: !0, children: [
|
|
19443
19443
|
/* @__PURE__ */ i(y, { name: `series.${t}.stack`, control: e, render: ({
|
|
19444
19444
|
field: a
|
|
19445
|
-
}) => /* @__PURE__ */ i(
|
|
19445
|
+
}) => /* @__PURE__ */ i(L, { label: "Stack", placeholder: "Stack bars by this ID", sx: {
|
|
19446
19446
|
flexGrow: 1
|
|
19447
19447
|
}, ...a }) }),
|
|
19448
19448
|
/* @__PURE__ */ i(
|
|
@@ -19461,17 +19461,17 @@ function ik({
|
|
|
19461
19461
|
/* @__PURE__ */ u(v, { grow: !0, noWrap: !0, children: [
|
|
19462
19462
|
/* @__PURE__ */ i(y, { name: `series.${t}.barMinWidth`, control: e, render: ({
|
|
19463
19463
|
field: a
|
|
19464
|
-
}) => /* @__PURE__ */ i(
|
|
19464
|
+
}) => /* @__PURE__ */ i(L, { label: "Bar Width(Min)", disabled: r, sx: {
|
|
19465
19465
|
flexGrow: 1
|
|
19466
19466
|
}, ...a }) }),
|
|
19467
19467
|
/* @__PURE__ */ i(y, { name: `series.${t}.barWidth`, control: e, render: ({
|
|
19468
19468
|
field: a
|
|
19469
|
-
}) => /* @__PURE__ */ i(
|
|
19469
|
+
}) => /* @__PURE__ */ i(L, { label: "Bar Width", sx: {
|
|
19470
19470
|
flexGrow: 1
|
|
19471
19471
|
}, ...a }) }),
|
|
19472
19472
|
/* @__PURE__ */ i(y, { name: `series.${t}.barMaxWidth`, control: e, render: ({
|
|
19473
19473
|
field: a
|
|
19474
|
-
}) => /* @__PURE__ */ i(
|
|
19474
|
+
}) => /* @__PURE__ */ i(L, { label: "Bar Width(Max)", disabled: r, sx: {
|
|
19475
19475
|
flexGrow: 1
|
|
19476
19476
|
}, ...a }) })
|
|
19477
19477
|
] })
|
|
@@ -19533,7 +19533,7 @@ function ok({
|
|
|
19533
19533
|
/* @__PURE__ */ u(v, { grow: !0, noWrap: !0, children: [
|
|
19534
19534
|
/* @__PURE__ */ i(y, { name: `series.${t}.name`, control: e, render: ({
|
|
19535
19535
|
field: o
|
|
19536
|
-
}) => /* @__PURE__ */ i(
|
|
19536
|
+
}) => /* @__PURE__ */ i(L, { label: "Name", required: !0, sx: {
|
|
19537
19537
|
flex: 1
|
|
19538
19538
|
}, ...o }) }),
|
|
19539
19539
|
/* @__PURE__ */ i(y, { name: `series.${t}.xAxisIndex`, control: e, render: ({
|
|
@@ -19561,7 +19561,7 @@ function ok({
|
|
|
19561
19561
|
flex: 1
|
|
19562
19562
|
}, ...o }) }) }),
|
|
19563
19563
|
/* @__PURE__ */ i(ik, { index: t, control: e, seriesItem: r }),
|
|
19564
|
-
/* @__PURE__ */ i(
|
|
19564
|
+
/* @__PURE__ */ i(A, { mb: -10, mt: 10, variant: "dashed", label: "Style", labelPosition: "center" }),
|
|
19565
19565
|
/* @__PURE__ */ i(
|
|
19566
19566
|
y,
|
|
19567
19567
|
{
|
|
@@ -19578,14 +19578,14 @@ function ok({
|
|
|
19578
19578
|
field: o
|
|
19579
19579
|
}) => /* @__PURE__ */ i(ot, { ...o }) })
|
|
19580
19580
|
] }),
|
|
19581
|
-
/* @__PURE__ */ i(
|
|
19581
|
+
/* @__PURE__ */ i(A, { mb: -10, mt: 10, variant: "dashed", label: "Behavior", labelPosition: "center" }),
|
|
19582
19582
|
/* @__PURE__ */ i(y, { name: `series.${t}.hide_in_legend`, control: e, render: ({
|
|
19583
19583
|
field: o
|
|
19584
19584
|
}) => /* @__PURE__ */ i(me, { label: "Hide in legend", checked: o.value, onChange: (s) => o.onChange(s.currentTarget.checked) }) }),
|
|
19585
19585
|
/* @__PURE__ */ i(y, { name: `series.${t}.invisible`, control: e, render: ({
|
|
19586
19586
|
field: o
|
|
19587
19587
|
}) => /* @__PURE__ */ i(me, { label: "Invisible", checked: o.value, onChange: (s) => o.onChange(s.currentTarget.checked) }) }),
|
|
19588
|
-
/* @__PURE__ */ i(
|
|
19588
|
+
/* @__PURE__ */ i(A, { mb: -10, mt: 10, variant: "dashed" }),
|
|
19589
19589
|
/* @__PURE__ */ i(I, { leftIcon: /* @__PURE__ */ i(be, { size: 16 }), color: "red", variant: "light", onClick: () => n(t), sx: {
|
|
19590
19590
|
top: 15,
|
|
19591
19591
|
right: 5
|
|
@@ -19651,13 +19651,13 @@ function ck({
|
|
|
19651
19651
|
return /* @__PURE__ */ u(S, { my: 0, p: "0", sx: {
|
|
19652
19652
|
position: "relative"
|
|
19653
19653
|
}, children: [
|
|
19654
|
-
/* @__PURE__ */ i(
|
|
19654
|
+
/* @__PURE__ */ i(A, { mb: -15, mt: 15, variant: "dashed", label: "Name", labelPosition: "center" }),
|
|
19655
19655
|
/* @__PURE__ */ i(v, { grow: !0, noWrap: !0, children: /* @__PURE__ */ i(y, { name: `x_axes.${t}.name`, control: e, render: ({
|
|
19656
19656
|
field: r
|
|
19657
|
-
}) => /* @__PURE__ */ i(
|
|
19657
|
+
}) => /* @__PURE__ */ i(L, { label: "Name", required: !0, sx: {
|
|
19658
19658
|
flex: 1
|
|
19659
19659
|
}, ...r }) }) }),
|
|
19660
|
-
/* @__PURE__ */ i(
|
|
19660
|
+
/* @__PURE__ */ i(A, { mb: -15, variant: "dashed", label: "Layout", labelPosition: "center" }),
|
|
19661
19661
|
/* @__PURE__ */ i(v, { grow: !0, noWrap: !0, children: /* @__PURE__ */ i(y, { name: `x_axes.${t}.position`, control: e, render: ({
|
|
19662
19662
|
field: r
|
|
19663
19663
|
}) => (
|
|
@@ -19667,23 +19667,23 @@ function ck({
|
|
|
19667
19667
|
}, ...r })
|
|
19668
19668
|
) }) }),
|
|
19669
19669
|
/* @__PURE__ */ u(S, { children: [
|
|
19670
|
-
/* @__PURE__ */ i(
|
|
19670
|
+
/* @__PURE__ */ i(A, { mb: -15, variant: "dashed", label: "Label Format", labelPosition: "center" }),
|
|
19671
19671
|
/* @__PURE__ */ i(y, { name: `x_axes.${t}.label_formatter`, control: e, render: ({
|
|
19672
19672
|
field: r
|
|
19673
19673
|
}) => /* @__PURE__ */ i(vt, { ...r }) })
|
|
19674
19674
|
] }),
|
|
19675
19675
|
/* @__PURE__ */ u(S, { children: [
|
|
19676
|
-
/* @__PURE__ */ i(
|
|
19676
|
+
/* @__PURE__ */ i(A, { mb: -15, variant: "dashed", label: "Value Range", labelPosition: "center" }),
|
|
19677
19677
|
/* @__PURE__ */ u(v, { grow: !0, children: [
|
|
19678
19678
|
/* @__PURE__ */ i(y, { name: `x_axes.${t}.min`, control: e, render: ({
|
|
19679
19679
|
field: r
|
|
19680
|
-
}) => /* @__PURE__ */ i(
|
|
19680
|
+
}) => /* @__PURE__ */ i(L, { label: "Min", ...r }) }),
|
|
19681
19681
|
/* @__PURE__ */ i(y, { name: `x_axes.${t}.max`, control: e, render: ({
|
|
19682
19682
|
field: r
|
|
19683
|
-
}) => /* @__PURE__ */ i(
|
|
19683
|
+
}) => /* @__PURE__ */ i(L, { label: "Max", ...r }) })
|
|
19684
19684
|
] })
|
|
19685
19685
|
] }),
|
|
19686
|
-
/* @__PURE__ */ i(
|
|
19686
|
+
/* @__PURE__ */ i(A, { mb: -10, mt: 10, variant: "dashed", label: "Behavior", labelPosition: "center" }),
|
|
19687
19687
|
/* @__PURE__ */ i(y, { name: `x_axes.${t}.show`, control: e, render: ({
|
|
19688
19688
|
field: r
|
|
19689
19689
|
}) => /* @__PURE__ */ i(me, { label: "Visible", checked: r.value, onChange: (a) => r.onChange(a.currentTarget.checked) }) }),
|
|
@@ -19737,11 +19737,11 @@ function uk({
|
|
|
19737
19737
|
}, ...n }) }),
|
|
19738
19738
|
/* @__PURE__ */ i(y, { name: "y_axis.name", control: e, render: ({
|
|
19739
19739
|
field: n
|
|
19740
|
-
}) => /* @__PURE__ */ i(
|
|
19740
|
+
}) => /* @__PURE__ */ i(L, { label: "X Axis Name", sx: {
|
|
19741
19741
|
flex: 1
|
|
19742
19742
|
}, ...n }) })
|
|
19743
19743
|
] }),
|
|
19744
|
-
/* @__PURE__ */ i(
|
|
19744
|
+
/* @__PURE__ */ i(A, { mb: -15, label: "Tick Label", labelPosition: "center" }),
|
|
19745
19745
|
/* @__PURE__ */ i(v, { grow: !0, noWrap: !0, children: /* @__PURE__ */ i(y, { name: "y_axis.axisLabel.formatter", control: e, render: ({
|
|
19746
19746
|
field: n
|
|
19747
19747
|
}) => /* @__PURE__ */ i(yi, { ...n }) }) }),
|
|
@@ -19838,7 +19838,7 @@ function pk(e, {
|
|
|
19838
19838
|
class fk extends Re {
|
|
19839
19839
|
constructor() {
|
|
19840
19840
|
super(...arguments);
|
|
19841
|
-
|
|
19841
|
+
Y(this, "VERSION", 2);
|
|
19842
19842
|
}
|
|
19843
19843
|
configVersions() {
|
|
19844
19844
|
this.version(1, (n) => ({
|
|
@@ -20179,7 +20179,7 @@ function wk(e, t, n, r) {
|
|
|
20179
20179
|
}));
|
|
20180
20180
|
}
|
|
20181
20181
|
function _k(e, t, n, r) {
|
|
20182
|
-
const a =
|
|
20182
|
+
const a = B(t.data_key), o = t.name, s = n.map((l) => {
|
|
20183
20183
|
const c = k.sumBy(r[l], a.columnKey);
|
|
20184
20184
|
return [l, c];
|
|
20185
20185
|
});
|
|
@@ -20384,7 +20384,7 @@ function Dk(e, t) {
|
|
|
20384
20384
|
const {
|
|
20385
20385
|
x_axis: n,
|
|
20386
20386
|
deviation: r
|
|
20387
|
-
} = e, a =
|
|
20387
|
+
} = e, a = B(n.data_key), o = B(r.data_keys.estimated_value), s = B(r.data_keys.actual_value);
|
|
20388
20388
|
return t[a.queryID].map((l) => {
|
|
20389
20389
|
const c = Zs(l[o.columnKey]), d = Zs(l[s.columnKey]), p = c - d;
|
|
20390
20390
|
return {
|
|
@@ -20440,7 +20440,7 @@ function zk(e, t) {
|
|
|
20440
20440
|
};
|
|
20441
20441
|
}
|
|
20442
20442
|
function Lk(e, t, n) {
|
|
20443
|
-
const r = Dk(e, n), a =
|
|
20443
|
+
const r = Dk(e, n), a = B(e.x_axis.data_key), o = k.uniqBy(n[a.queryID], a.columnKey).map((p) => p[a.columnKey]), s = k.groupBy(r, a.columnKey), l = zk(e, t), c = Ck(e, l, o, s), d = {
|
|
20444
20444
|
xAxis: Sk(e, o),
|
|
20445
20445
|
yAxis: kk(l),
|
|
20446
20446
|
series: c,
|
|
@@ -20551,7 +20551,7 @@ function Vk({
|
|
|
20551
20551
|
}, [d]), !s.data_key || !c || !d || !a || !o)
|
|
20552
20552
|
return null;
|
|
20553
20553
|
const f = Math.max(a, 300), m = Math.max(o, 370);
|
|
20554
|
-
return /* @__PURE__ */ u(
|
|
20554
|
+
return /* @__PURE__ */ u(N, { sx: {
|
|
20555
20555
|
overflow: "hidden",
|
|
20556
20556
|
height: m,
|
|
20557
20557
|
width: f
|
|
@@ -20567,7 +20567,7 @@ function Nk({
|
|
|
20567
20567
|
return t(["deviation"]), /* @__PURE__ */ u(S, { children: [
|
|
20568
20568
|
/* @__PURE__ */ i(v, { grow: !0, noWrap: !0, children: /* @__PURE__ */ i(y, { name: "deviation.name", control: e, render: ({
|
|
20569
20569
|
field: n
|
|
20570
|
-
}) => /* @__PURE__ */ i(
|
|
20570
|
+
}) => /* @__PURE__ */ i(L, { label: "指标名称", sx: {
|
|
20571
20571
|
flex: 1
|
|
20572
20572
|
}, ...n }) }) }),
|
|
20573
20573
|
/* @__PURE__ */ u(v, { grow: !0, noWrap: !0, children: [
|
|
@@ -20592,7 +20592,7 @@ const Bk = ({
|
|
|
20592
20592
|
/* @__PURE__ */ u(v, { grow: !0, noWrap: !0, children: [
|
|
20593
20593
|
/* @__PURE__ */ i(y, { name: `metrics.${t}.name`, control: e, render: ({
|
|
20594
20594
|
field: r
|
|
20595
|
-
}) => /* @__PURE__ */ i(
|
|
20595
|
+
}) => /* @__PURE__ */ i(L, { label: "Name", required: !0, sx: {
|
|
20596
20596
|
flex: 1
|
|
20597
20597
|
}, ...r }) }),
|
|
20598
20598
|
/* @__PURE__ */ i(y, { name: `metrics.${t}.data_key`, control: e, render: ({
|
|
@@ -20601,7 +20601,7 @@ const Bk = ({
|
|
|
20601
20601
|
flex: 1
|
|
20602
20602
|
}, ...r }) })
|
|
20603
20603
|
] }),
|
|
20604
|
-
/* @__PURE__ */ i(
|
|
20604
|
+
/* @__PURE__ */ i(A, { mb: -10, mt: 10, variant: "dashed" }),
|
|
20605
20605
|
/* @__PURE__ */ i(I, { leftIcon: /* @__PURE__ */ i(be, { size: 16 }), color: "red", variant: "light", onClick: () => n(t), sx: {
|
|
20606
20606
|
top: 15,
|
|
20607
20607
|
right: 5
|
|
@@ -20635,7 +20635,7 @@ const Bk = ({
|
|
|
20635
20635
|
/* @__PURE__ */ i(dn, { size: 14, color: "#888" }),
|
|
20636
20636
|
/* @__PURE__ */ i(C, { size: 14, color: "#888", children: "设置可以展示在基线图的指标,例如代码当量" })
|
|
20637
20637
|
] }),
|
|
20638
|
-
/* @__PURE__ */ i(
|
|
20638
|
+
/* @__PURE__ */ i(A, { variant: "dashed", my: 10 }),
|
|
20639
20639
|
/* @__PURE__ */ u(g, { value: d, onTabChange: (h) => p(h), styles: {
|
|
20640
20640
|
tab: {
|
|
20641
20641
|
paddingTop: "0px",
|
|
@@ -20667,11 +20667,11 @@ function Wk({
|
|
|
20667
20667
|
}, ...n }) }),
|
|
20668
20668
|
/* @__PURE__ */ i(y, { name: "x_axis.name", control: e, render: ({
|
|
20669
20669
|
field: n
|
|
20670
|
-
}) => /* @__PURE__ */ i(
|
|
20670
|
+
}) => /* @__PURE__ */ i(L, { label: "X轴名称", sx: {
|
|
20671
20671
|
flex: 1
|
|
20672
20672
|
}, ...n }) })
|
|
20673
20673
|
] }),
|
|
20674
|
-
/* @__PURE__ */ i(
|
|
20674
|
+
/* @__PURE__ */ i(A, { mb: -15, label: "点位文案", labelPosition: "center" }),
|
|
20675
20675
|
/* @__PURE__ */ u(v, { grow: !0, noWrap: !0, children: [
|
|
20676
20676
|
/* @__PURE__ */ i(y, { name: "x_axis.axisLabel.rotate", control: e, render: ({
|
|
20677
20677
|
field: n
|
|
@@ -20779,7 +20779,7 @@ function Gk(e, {
|
|
|
20779
20779
|
class Yk extends Re {
|
|
20780
20780
|
constructor() {
|
|
20781
20781
|
super(...arguments);
|
|
20782
|
-
|
|
20782
|
+
Y(this, "VERSION", 2);
|
|
20783
20783
|
}
|
|
20784
20784
|
configVersions() {
|
|
20785
20785
|
this.version(1, (n) => ({
|
|
@@ -20918,7 +20918,7 @@ const el = ({
|
|
|
20918
20918
|
};
|
|
20919
20919
|
return /* @__PURE__ */ u(v, { grow: !0, noWrap: !0, children: [
|
|
20920
20920
|
/* @__PURE__ */ i(F, { label: "Postfix Type", data: Xk, value: e.type, onChange: o }),
|
|
20921
|
-
e.type === "text" && /* @__PURE__ */ i(
|
|
20921
|
+
e.type === "text" && /* @__PURE__ */ i(L, { label: "Postfix Content", value: e.value, onChange: (l) => {
|
|
20922
20922
|
s(l.currentTarget.value);
|
|
20923
20923
|
} }),
|
|
20924
20924
|
e.type === "filter-option-label" && /* @__PURE__ */ i(F, { label: "Filter", value: e.value, onChange: s, data: a })
|
|
@@ -20938,7 +20938,7 @@ function Zk({
|
|
|
20938
20938
|
/* @__PURE__ */ u(v, { grow: !0, noWrap: !0, children: [
|
|
20939
20939
|
/* @__PURE__ */ i(y, { name: `metrics.${t}.names.value`, control: e, render: ({
|
|
20940
20940
|
field: o
|
|
20941
|
-
}) => /* @__PURE__ */ i(
|
|
20941
|
+
}) => /* @__PURE__ */ i(L, { label: "Metric Name", required: !0, sx: {
|
|
20942
20942
|
flex: 1
|
|
20943
20943
|
}, ...o }) }),
|
|
20944
20944
|
/* @__PURE__ */ i(y, { name: `metrics.${t}.data_keys.value`, control: e, render: ({
|
|
@@ -20953,7 +20953,7 @@ function Zk({
|
|
|
20953
20953
|
/* @__PURE__ */ u(v, { grow: !0, noWrap: !0, children: [
|
|
20954
20954
|
/* @__PURE__ */ i(y, { name: `metrics.${t}.names.basis`, control: e, render: ({
|
|
20955
20955
|
field: o
|
|
20956
|
-
}) => /* @__PURE__ */ i(
|
|
20956
|
+
}) => /* @__PURE__ */ i(L, { label: "Basis Name", required: !0, sx: {
|
|
20957
20957
|
flex: 1
|
|
20958
20958
|
}, ...o }) }),
|
|
20959
20959
|
/* @__PURE__ */ i(y, { name: `metrics.${t}.data_keys.basis`, control: e, render: ({
|
|
@@ -20965,11 +20965,11 @@ function Zk({
|
|
|
20965
20965
|
}, ...o })
|
|
20966
20966
|
) })
|
|
20967
20967
|
] }),
|
|
20968
|
-
/* @__PURE__ */ i(
|
|
20968
|
+
/* @__PURE__ */ i(A, { mb: -15, variant: "dashed", label: "Format", labelPosition: "center" }),
|
|
20969
20969
|
/* @__PURE__ */ i(y, { name: `metrics.${t}.formatter`, control: e, render: ({
|
|
20970
20970
|
field: o
|
|
20971
20971
|
}) => /* @__PURE__ */ i(vt, { ...o }) }),
|
|
20972
|
-
/* @__PURE__ */ i(
|
|
20972
|
+
/* @__PURE__ */ i(A, { mb: -15, variant: "dashed", label: "Others", labelPosition: "center" }),
|
|
20973
20973
|
/* @__PURE__ */ i(y, { name: `metrics.${t}.postfix`, control: e, render: ({
|
|
20974
20974
|
field: o
|
|
20975
20975
|
}) => /* @__PURE__ */ i(Jk, { ...o }) }),
|
|
@@ -21010,7 +21010,7 @@ const eT = ({
|
|
|
21010
21010
|
f(x);
|
|
21011
21011
|
};
|
|
21012
21012
|
return /* @__PURE__ */ u(W, { children: [
|
|
21013
|
-
/* @__PURE__ */ i(
|
|
21013
|
+
/* @__PURE__ */ i(A, { mt: 15, variant: "dashed", label: "Metrics", labelPosition: "center" }),
|
|
21014
21014
|
/* @__PURE__ */ u(g, { value: h, onTabChange: f, styles: {
|
|
21015
21015
|
tab: {
|
|
21016
21016
|
paddingTop: "0px",
|
|
@@ -21071,7 +21071,7 @@ function rT({
|
|
|
21071
21071
|
watch: t
|
|
21072
21072
|
}) {
|
|
21073
21073
|
return t("styles"), /* @__PURE__ */ u(W, { children: [
|
|
21074
|
-
/* @__PURE__ */ i(
|
|
21074
|
+
/* @__PURE__ */ i(A, { mt: 15, variant: "dashed", label: "Styles", labelPosition: "center" }),
|
|
21075
21075
|
/* @__PURE__ */ u(v, { children: [
|
|
21076
21076
|
/* @__PURE__ */ i(y, { name: "styles.justify", control: e, render: ({
|
|
21077
21077
|
field: n
|
|
@@ -21144,7 +21144,7 @@ function aT(e) {
|
|
|
21144
21144
|
class oT extends Re {
|
|
21145
21145
|
constructor() {
|
|
21146
21146
|
super(...arguments);
|
|
21147
|
-
|
|
21147
|
+
Y(this, "VERSION", 2);
|
|
21148
21148
|
}
|
|
21149
21149
|
configVersions() {
|
|
21150
21150
|
this.version(1, (n) => ({
|
|
@@ -21185,7 +21185,7 @@ function lT({
|
|
|
21185
21185
|
}, ...r }) }),
|
|
21186
21186
|
/* @__PURE__ */ i(y, { name: "heat_block.name", control: e, render: ({
|
|
21187
21187
|
field: r
|
|
21188
|
-
}) => /* @__PURE__ */ i(
|
|
21188
|
+
}) => /* @__PURE__ */ i(L, { label: "Name", sx: {
|
|
21189
21189
|
flex: 1
|
|
21190
21190
|
}, ...r }) })
|
|
21191
21191
|
] }),
|
|
@@ -21197,11 +21197,11 @@ function lT({
|
|
|
21197
21197
|
field: r
|
|
21198
21198
|
}) => /* @__PURE__ */ i(qn, { label: "Max Value", ...r }) })
|
|
21199
21199
|
] }),
|
|
21200
|
-
/* @__PURE__ */ i(
|
|
21200
|
+
/* @__PURE__ */ i(A, { mb: -15, variant: "dashed", label: "Value Format", labelPosition: "center" }),
|
|
21201
21201
|
/* @__PURE__ */ i(y, { name: "heat_block.value_formatter", control: e, render: ({
|
|
21202
21202
|
field: r
|
|
21203
21203
|
}) => /* @__PURE__ */ i(vt, { ...r }) }),
|
|
21204
|
-
/* @__PURE__ */ i(
|
|
21204
|
+
/* @__PURE__ */ i(A, { mb: -5, variant: "dashed", label: "Label", labelPosition: "center" }),
|
|
21205
21205
|
/* @__PURE__ */ u(v, { grow: !0, noWrap: !0, children: [
|
|
21206
21206
|
/* @__PURE__ */ i(y, { name: "heat_block.label.show", control: e, render: ({
|
|
21207
21207
|
field: r
|
|
@@ -21225,7 +21225,7 @@ const cT = ({
|
|
|
21225
21225
|
/* @__PURE__ */ u(v, { grow: !0, noWrap: !0, children: [
|
|
21226
21226
|
/* @__PURE__ */ i(y, { name: `tooltip.metrics.${t}.name`, control: e, render: ({
|
|
21227
21227
|
field: r
|
|
21228
|
-
}) => /* @__PURE__ */ i(
|
|
21228
|
+
}) => /* @__PURE__ */ i(L, { label: "Name", required: !0, sx: {
|
|
21229
21229
|
flex: 1
|
|
21230
21230
|
}, ...r }) }),
|
|
21231
21231
|
/* @__PURE__ */ i(y, { name: `tooltip.metrics.${t}.data_key`, control: e, render: ({
|
|
@@ -21234,7 +21234,7 @@ const cT = ({
|
|
|
21234
21234
|
flex: 1
|
|
21235
21235
|
}, ...r }) })
|
|
21236
21236
|
] }),
|
|
21237
|
-
/* @__PURE__ */ i(
|
|
21237
|
+
/* @__PURE__ */ i(A, { mb: -10, mt: 10, variant: "dashed" }),
|
|
21238
21238
|
/* @__PURE__ */ i(I, { leftIcon: /* @__PURE__ */ i(be, { size: 16 }), color: "red", variant: "light", onClick: () => n(t), sx: {
|
|
21239
21239
|
top: 15,
|
|
21240
21240
|
right: 5
|
|
@@ -21268,7 +21268,7 @@ const cT = ({
|
|
|
21268
21268
|
/* @__PURE__ */ i(dn, { size: 14, color: "#888" }),
|
|
21269
21269
|
/* @__PURE__ */ i(C, { size: 14, color: "#888", children: "Configure additional metrics to show in tooltip" })
|
|
21270
21270
|
] }),
|
|
21271
|
-
/* @__PURE__ */ i(
|
|
21271
|
+
/* @__PURE__ */ i(A, { variant: "dashed", my: 10 }),
|
|
21272
21272
|
/* @__PURE__ */ u(g, { value: d, onTabChange: (h) => p(h), styles: {
|
|
21273
21273
|
tab: {
|
|
21274
21274
|
paddingTop: "0px",
|
|
@@ -21297,7 +21297,7 @@ const hT = ({
|
|
|
21297
21297
|
disabled: e,
|
|
21298
21298
|
value: t,
|
|
21299
21299
|
onChange: n
|
|
21300
|
-
}) => /* @__PURE__ */ u(
|
|
21300
|
+
}) => /* @__PURE__ */ u(N, { sx: {
|
|
21301
21301
|
position: "relative"
|
|
21302
21302
|
}, children: [
|
|
21303
21303
|
e && /* @__PURE__ */ i(Xt, { opacity: 0.6, color: "#fff", zIndex: 5, blur: 2 }),
|
|
@@ -21379,11 +21379,11 @@ function fT({
|
|
|
21379
21379
|
}, ...n }) }),
|
|
21380
21380
|
/* @__PURE__ */ i(y, { name: "x_axis.name", control: e, render: ({
|
|
21381
21381
|
field: n
|
|
21382
|
-
}) => /* @__PURE__ */ i(
|
|
21382
|
+
}) => /* @__PURE__ */ i(L, { label: "Name", sx: {
|
|
21383
21383
|
flex: 1
|
|
21384
21384
|
}, ...n }) })
|
|
21385
21385
|
] }),
|
|
21386
|
-
/* @__PURE__ */ i(
|
|
21386
|
+
/* @__PURE__ */ i(A, { mb: -15, variant: "dashed", label: "Tick Label", labelPosition: "center" }),
|
|
21387
21387
|
/* @__PURE__ */ i(y, { name: "x_axis.axisLabel.overflow", control: e, render: ({
|
|
21388
21388
|
field: n
|
|
21389
21389
|
}) => /* @__PURE__ */ i(Wt, { ...n }) }),
|
|
@@ -21433,7 +21433,7 @@ function gT({
|
|
|
21433
21433
|
}, ...n }) }),
|
|
21434
21434
|
/* @__PURE__ */ i(y, { name: "y_axis.name", control: e, render: ({
|
|
21435
21435
|
field: n
|
|
21436
|
-
}) => /* @__PURE__ */ i(
|
|
21436
|
+
}) => /* @__PURE__ */ i(L, { label: "Name", required: !0, sx: {
|
|
21437
21437
|
flex: 1
|
|
21438
21438
|
}, ...n }) })
|
|
21439
21439
|
] }),
|
|
@@ -21445,7 +21445,7 @@ function gT({
|
|
|
21445
21445
|
flex: 1
|
|
21446
21446
|
}, ...n })
|
|
21447
21447
|
) }) }),
|
|
21448
|
-
/* @__PURE__ */ i(
|
|
21448
|
+
/* @__PURE__ */ i(A, { mb: -15, variant: "dashed", label: "Tick Label", labelPosition: "center" }),
|
|
21449
21449
|
/* @__PURE__ */ i(y, { name: "y_axis.axisLabel.overflow", control: e, render: ({
|
|
21450
21450
|
field: n
|
|
21451
21451
|
}) => /* @__PURE__ */ i(Wt, { ...n }) }),
|
|
@@ -21626,7 +21626,7 @@ function wT(e, t) {
|
|
|
21626
21626
|
x_axis: n,
|
|
21627
21627
|
y_axis: r,
|
|
21628
21628
|
heat_block: a
|
|
21629
|
-
} = e, o =
|
|
21629
|
+
} = e, o = B(n.data_key), s = B(r.data_key), l = B(a.data_key), c = t[o.queryID].map((d) => [k.get(d, o.columnKey), k.get(d, s.columnKey), k.get(d, l.columnKey)]);
|
|
21630
21630
|
return {
|
|
21631
21631
|
type: "heatmap",
|
|
21632
21632
|
name: a.name,
|
|
@@ -21686,7 +21686,7 @@ function CT({
|
|
|
21686
21686
|
}
|
|
21687
21687
|
}, m = [p, h, f], w = r[`${l}---${c}`];
|
|
21688
21688
|
return w && e.tooltip.metrics.forEach((x) => {
|
|
21689
|
-
const T =
|
|
21689
|
+
const T = B(x.data_key);
|
|
21690
21690
|
m.push({
|
|
21691
21691
|
label: x.name,
|
|
21692
21692
|
value: _T(k.get(w, T.columnKey, "")),
|
|
@@ -21702,8 +21702,8 @@ function ST(e, t, n, r) {
|
|
|
21702
21702
|
x_axis: a,
|
|
21703
21703
|
y_axis: o,
|
|
21704
21704
|
heat_block: s
|
|
21705
|
-
} = e, l =
|
|
21706
|
-
|
|
21705
|
+
} = e, l = B(a.data_key), c = B(o.data_key);
|
|
21706
|
+
B(s.data_key);
|
|
21707
21707
|
const d = k.keyBy(t[l.queryID], (p) => `${p[l.columnKey]}---${p[c.columnKey]}`);
|
|
21708
21708
|
return {
|
|
21709
21709
|
confine: !0,
|
|
@@ -21753,7 +21753,7 @@ function kT(e, t) {
|
|
|
21753
21753
|
};
|
|
21754
21754
|
}
|
|
21755
21755
|
function TT(e, t, n) {
|
|
21756
|
-
const r =
|
|
21756
|
+
const r = B(e.x_axis.data_key), a = k.uniq(t[r.queryID].map((c) => c[r.columnKey])), {
|
|
21757
21757
|
overflow: o,
|
|
21758
21758
|
rotate: s
|
|
21759
21759
|
} = e.x_axis.axisLabel, l = At(o.on_axis);
|
|
@@ -21785,7 +21785,7 @@ function TT(e, t, n) {
|
|
|
21785
21785
|
};
|
|
21786
21786
|
}
|
|
21787
21787
|
function DT(e, t, n) {
|
|
21788
|
-
const r =
|
|
21788
|
+
const r = B(e.x_axis.data_key), a = B(e.y_axis.data_key), {
|
|
21789
21789
|
nameAlignment: o,
|
|
21790
21790
|
data_key: s,
|
|
21791
21791
|
...l
|
|
@@ -21890,7 +21890,7 @@ function LT({
|
|
|
21890
21890
|
variables: o
|
|
21891
21891
|
}) {
|
|
21892
21892
|
const s = M(() => {
|
|
21893
|
-
const h =
|
|
21893
|
+
const h = B(e.x_axis.data_key), f = B(e.y_axis.data_key);
|
|
21894
21894
|
return k.keyBy(t[h.queryID], (m) => `${m[h.columnKey]}---${m[f.columnKey]}`);
|
|
21895
21895
|
}, [t, e.x_axis.data_key, e.y_axis.data_key]), l = Dt(a.triggerManager, Id.id), c = nt((h) => {
|
|
21896
21896
|
const [f, m] = h.value, w = k.get(s, `${f}---${m}`, {
|
|
@@ -21930,7 +21930,7 @@ function AT({
|
|
|
21930
21930
|
class ET extends Re {
|
|
21931
21931
|
constructor() {
|
|
21932
21932
|
super(...arguments);
|
|
21933
|
-
|
|
21933
|
+
Y(this, "VERSION", 1);
|
|
21934
21934
|
}
|
|
21935
21935
|
configVersions() {
|
|
21936
21936
|
this.version(1, (n) => ({
|
|
@@ -22059,7 +22059,7 @@ const PT = {
|
|
|
22059
22059
|
border: "0.0625rem solid rgb(233, 236, 239)",
|
|
22060
22060
|
boxShadow: "rgb(0 0 0 / 5%) 0px 0.0625rem 0.1875rem, rgb(0 0 0 / 5%) 0px 1.25rem 1.5625rem -0.3125rem, rgb(0 0 0 / 4%) 0px 0.625rem 0.625rem -0.3125rem"
|
|
22061
22061
|
}
|
|
22062
|
-
}, withArrow: !0, children: /* @__PURE__ */ i(
|
|
22062
|
+
}, withArrow: !0, children: /* @__PURE__ */ i(N, { sx: {
|
|
22063
22063
|
height: "16px",
|
|
22064
22064
|
alignSelf: "center"
|
|
22065
22065
|
}, children: /* @__PURE__ */ i(Dn, { size: 16, color: "gray" }) }) }), NT = D(({
|
|
@@ -22072,10 +22072,10 @@ const PT = {
|
|
|
22072
22072
|
},
|
|
22073
22073
|
value: o,
|
|
22074
22074
|
onChange: s
|
|
22075
|
-
}) => /* @__PURE__ */ u(
|
|
22075
|
+
}) => /* @__PURE__ */ u(N, { children: [
|
|
22076
22076
|
/* @__PURE__ */ i(C, { children: " " }),
|
|
22077
22077
|
/* @__PURE__ */ i(me, { label: /* @__PURE__ */ u(v, { noWrap: !0, position: "apart", align: "middle", spacing: 6, children: [
|
|
22078
|
-
/* @__PURE__ */ i(
|
|
22078
|
+
/* @__PURE__ */ i(N, { sx: {
|
|
22079
22079
|
flexGrow: 1
|
|
22080
22080
|
}, children: e }),
|
|
22081
22081
|
/* @__PURE__ */ i(VT, { description: n, isDescriptionEmpty: r })
|
|
@@ -22238,6 +22238,10 @@ const PT = {
|
|
|
22238
22238
|
fontWeight: 500,
|
|
22239
22239
|
color: "#212529"
|
|
22240
22240
|
},
|
|
22241
|
+
required: {
|
|
22242
|
+
color: "#fa5252",
|
|
22243
|
+
paddingLeft: "3px"
|
|
22244
|
+
},
|
|
22241
22245
|
dropdown: {
|
|
22242
22246
|
fontSize: e.fontSizes.xs,
|
|
22243
22247
|
zIndex: 300,
|
|
@@ -22305,11 +22309,12 @@ const PT = {
|
|
|
22305
22309
|
value: l,
|
|
22306
22310
|
onChange: c,
|
|
22307
22311
|
options: d,
|
|
22308
|
-
errorMessage: p
|
|
22312
|
+
errorMessage: p,
|
|
22313
|
+
required: h
|
|
22309
22314
|
}) => {
|
|
22310
22315
|
const {
|
|
22311
|
-
classes:
|
|
22312
|
-
cx:
|
|
22316
|
+
classes: f,
|
|
22317
|
+
cx: m
|
|
22313
22318
|
} = BT({
|
|
22314
22319
|
radius: a
|
|
22315
22320
|
}, {
|
|
@@ -22317,26 +22322,29 @@ const PT = {
|
|
|
22317
22322
|
classNames: t,
|
|
22318
22323
|
styles: n,
|
|
22319
22324
|
unstyled: r
|
|
22320
|
-
}), [
|
|
22321
|
-
|
|
22322
|
-
},
|
|
22323
|
-
if (
|
|
22325
|
+
}), [w, x] = Q(!1), T = (V) => {
|
|
22326
|
+
x(V);
|
|
22327
|
+
}, $ = w && (l == null ? void 0 : l.length) > 0, [z, j] = Q(""), U = M(() => {
|
|
22328
|
+
if (!z)
|
|
22324
22329
|
return d;
|
|
22325
|
-
const
|
|
22326
|
-
var
|
|
22327
|
-
return ((
|
|
22330
|
+
const V = z.toLowerCase(), O = (E) => {
|
|
22331
|
+
var H;
|
|
22332
|
+
return ((H = E.description) == null ? void 0 : H.toLowerCase().includes(V)) || E.label.toLowerCase().includes(V);
|
|
22328
22333
|
};
|
|
22329
|
-
return d.filter(
|
|
22330
|
-
}, [
|
|
22334
|
+
return d.filter(O);
|
|
22335
|
+
}, [z, d]);
|
|
22331
22336
|
return /* @__PURE__ */ u(S, { spacing: 3, children: [
|
|
22332
22337
|
/* @__PURE__ */ u(v, { position: "apart", children: [
|
|
22333
|
-
/* @__PURE__ */
|
|
22334
|
-
|
|
22338
|
+
/* @__PURE__ */ u(C, { className: f.label, children: [
|
|
22339
|
+
s,
|
|
22340
|
+
h && /* @__PURE__ */ i("span", { className: f.required, "aria-hidden": "true", children: "*" })
|
|
22341
|
+
] }),
|
|
22342
|
+
$ && /* @__PURE__ */ i(Ne, { label: `${l.length} selected`, children: /* @__PURE__ */ i(ur, { children: l.length }) })
|
|
22335
22343
|
] }),
|
|
22336
|
-
/* @__PURE__ */ i(Rp, { disabled: e, allowClear: !0, className: f
|
|
22337
|
-
/* @__PURE__ */ i(C, { size: "sm", "data-role": "label", children:
|
|
22338
|
-
|
|
22339
|
-
] },
|
|
22344
|
+
/* @__PURE__ */ i(Rp, { disabled: e, allowClear: !0, className: m(f.root, "check-select"), dropdownClassName: m(f.dropdown, ""), onDropdownVisibleChange: T, transitionName: "rc-select-dropdown-slide-up", choiceTransitionName: "rc-select-selection__choice-zoom", style: o, clearIcon: () => /* @__PURE__ */ i(fl, {}), value: l, onChange: c, onSelect: console.log, mode: "multiple", maxTagCount: 0, notFoundContent: /* @__PURE__ */ i(Ld, { errorMessage: p }), maxTagTextLength: 10, maxTagPlaceholder: (V) => `${V.length} selected`, searchValue: z, onSearch: j, filterOption: !1, children: U.map((V) => /* @__PURE__ */ u(Op, { title: V.label, children: [
|
|
22345
|
+
/* @__PURE__ */ i(C, { size: "sm", "data-role": "label", children: V.label }),
|
|
22346
|
+
V.description && /* @__PURE__ */ i(C, { size: "xs", color: "dimmed", "data-role": "description", children: V.description })
|
|
22347
|
+
] }, V.value)) })
|
|
22340
22348
|
] });
|
|
22341
22349
|
}, WT = D(({
|
|
22342
22350
|
label: e,
|
|
@@ -22353,7 +22361,7 @@ const PT = {
|
|
|
22353
22361
|
width: d,
|
|
22354
22362
|
maxWidth: p ? d : "unset",
|
|
22355
22363
|
borderColor: "#e9ecef"
|
|
22356
|
-
}, disabled: p, value: n, onChange: h, errorMessage: l });
|
|
22364
|
+
}, disabled: p, value: n, onChange: h, errorMessage: l, required: t.required });
|
|
22357
22365
|
}), jT = we(({
|
|
22358
22366
|
label: e,
|
|
22359
22367
|
description: t,
|
|
@@ -22390,7 +22398,7 @@ function YT({
|
|
|
22390
22398
|
value: n,
|
|
22391
22399
|
onChange: r
|
|
22392
22400
|
}) {
|
|
22393
|
-
return /* @__PURE__ */ i(
|
|
22401
|
+
return /* @__PURE__ */ i(L, { label: e, value: n || "", onChange: (a) => r(a.currentTarget.value), ...t, styles: {
|
|
22394
22402
|
input: {
|
|
22395
22403
|
borderColor: "#e9ecef"
|
|
22396
22404
|
}
|
|
@@ -22538,6 +22546,10 @@ const HT = ({
|
|
|
22538
22546
|
fontWeight: 500,
|
|
22539
22547
|
color: "#212529"
|
|
22540
22548
|
},
|
|
22549
|
+
required: {
|
|
22550
|
+
color: "#fa5252",
|
|
22551
|
+
paddingLeft: "3px"
|
|
22552
|
+
},
|
|
22541
22553
|
dropdown: {
|
|
22542
22554
|
fontSize: e.fontSizes.xs,
|
|
22543
22555
|
zIndex: 300,
|
|
@@ -22671,11 +22683,12 @@ const HT = ({
|
|
|
22671
22683
|
value: l,
|
|
22672
22684
|
onChange: c,
|
|
22673
22685
|
treeData: d,
|
|
22674
|
-
errorMessage: p
|
|
22686
|
+
errorMessage: p,
|
|
22687
|
+
required: h
|
|
22675
22688
|
}) => {
|
|
22676
22689
|
const {
|
|
22677
|
-
classes:
|
|
22678
|
-
cx:
|
|
22690
|
+
classes: f,
|
|
22691
|
+
cx: m
|
|
22679
22692
|
} = XT({
|
|
22680
22693
|
radius: a
|
|
22681
22694
|
}, {
|
|
@@ -22683,22 +22696,25 @@ const HT = ({
|
|
|
22683
22696
|
classNames: t,
|
|
22684
22697
|
styles: n,
|
|
22685
22698
|
unstyled: r
|
|
22686
|
-
}), [
|
|
22687
|
-
|
|
22688
|
-
},
|
|
22699
|
+
}), [w, x] = Q(!1), T = (z) => {
|
|
22700
|
+
x(z);
|
|
22701
|
+
}, $ = w && (l == null ? void 0 : l.length) > 0;
|
|
22689
22702
|
return /* @__PURE__ */ u(S, { spacing: 3, children: [
|
|
22690
22703
|
/* @__PURE__ */ u(v, { position: "apart", children: [
|
|
22691
|
-
/* @__PURE__ */
|
|
22692
|
-
|
|
22704
|
+
/* @__PURE__ */ u(C, { className: f.label, children: [
|
|
22705
|
+
s,
|
|
22706
|
+
h && /* @__PURE__ */ i("span", { className: f.required, "aria-hidden": "true", children: "*" })
|
|
22707
|
+
] }),
|
|
22708
|
+
$ && /* @__PURE__ */ i(Ne, { label: `${l.length} selected`, children: /* @__PURE__ */ i(ur, { children: l.length }) })
|
|
22693
22709
|
] }),
|
|
22694
22710
|
/* @__PURE__ */ i(
|
|
22695
22711
|
Fp,
|
|
22696
22712
|
{
|
|
22697
22713
|
disabled: e,
|
|
22698
22714
|
allowClear: !0,
|
|
22699
|
-
className: f
|
|
22700
|
-
dropdownClassName: f
|
|
22701
|
-
onDropdownVisibleChange:
|
|
22715
|
+
className: m(f.root, "check-select"),
|
|
22716
|
+
dropdownClassName: m(f.dropdown, ""),
|
|
22717
|
+
onDropdownVisibleChange: T,
|
|
22702
22718
|
transitionName: "rc-tree-select-dropdown-slide-up",
|
|
22703
22719
|
choiceTransitionName: "rc-tree-select-selection__choice-zoom",
|
|
22704
22720
|
style: o,
|
|
@@ -22716,7 +22732,7 @@ const HT = ({
|
|
|
22716
22732
|
onChange: c,
|
|
22717
22733
|
onSelect: console.log,
|
|
22718
22734
|
maxTagCount: 0,
|
|
22719
|
-
maxTagPlaceholder: (
|
|
22735
|
+
maxTagPlaceholder: (z) => `${z.length} selected`
|
|
22720
22736
|
}
|
|
22721
22737
|
)
|
|
22722
22738
|
] });
|
|
@@ -22745,7 +22761,8 @@ const HT = ({
|
|
|
22745
22761
|
onChange: (p) => r(p, !1),
|
|
22746
22762
|
treeData: a,
|
|
22747
22763
|
errorMessage: s,
|
|
22748
|
-
label: e
|
|
22764
|
+
label: e,
|
|
22765
|
+
required: t.required
|
|
22749
22766
|
}
|
|
22750
22767
|
);
|
|
22751
22768
|
}), eD = D(({
|
|
@@ -24528,8 +24545,8 @@ function Zr(e, t, n, r) {
|
|
|
24528
24545
|
}
|
|
24529
24546
|
class BD {
|
|
24530
24547
|
constructor(t) {
|
|
24531
|
-
|
|
24532
|
-
|
|
24548
|
+
Y(this, "origin");
|
|
24549
|
+
Y(this, "copy");
|
|
24533
24550
|
this.origin = t, this.copy = Vp(t), wr(this, {}, {
|
|
24534
24551
|
autoBind: !0,
|
|
24535
24552
|
deep: !1
|
|
@@ -24575,14 +24592,14 @@ const qD = (e) => new BD(e), WD = D(({
|
|
|
24575
24592
|
}), f = R.useCallback(() => {
|
|
24576
24593
|
l(s);
|
|
24577
24594
|
}, [s, l]), m = !c && e.type !== Z.Modal;
|
|
24578
|
-
return /* @__PURE__ */ i(W, { children: /* @__PURE__ */ i(
|
|
24595
|
+
return /* @__PURE__ */ i(W, { children: /* @__PURE__ */ i(N, { sx: {
|
|
24579
24596
|
position: "absolute",
|
|
24580
24597
|
top: 0,
|
|
24581
24598
|
left: 0,
|
|
24582
24599
|
right: 0,
|
|
24583
24600
|
zIndex: 300
|
|
24584
24601
|
}, children: /* @__PURE__ */ u(he, { withinPortal: !0, children: [
|
|
24585
|
-
/* @__PURE__ */ i(he.Target, { children: /* @__PURE__ */ i(
|
|
24602
|
+
/* @__PURE__ */ i(he.Target, { children: /* @__PURE__ */ i(N, { className: "panel-dropdown-target", sx: {
|
|
24586
24603
|
width: "100%",
|
|
24587
24604
|
height: "25px"
|
|
24588
24605
|
} }) }),
|
|
@@ -24591,7 +24608,7 @@ const qD = (e) => new BD(e), WD = D(({
|
|
|
24591
24608
|
/* @__PURE__ */ i(he.Item, { onClick: a.downloadData, icon: /* @__PURE__ */ i(Ja, { size: 14 }), children: "Download Data" }),
|
|
24592
24609
|
/* @__PURE__ */ i(he.Item, { onClick: o, icon: /* @__PURE__ */ i(li, { size: 14 }), children: "Screenshot" }),
|
|
24593
24610
|
m && /* @__PURE__ */ i(he.Item, { onClick: f, icon: /* @__PURE__ */ i(Dl, { size: 14 }), disabled: !0, children: "Full Screen" }),
|
|
24594
|
-
/* @__PURE__ */ i(
|
|
24611
|
+
/* @__PURE__ */ i(A, { label: "Edit", labelPosition: "center" }),
|
|
24595
24612
|
/* @__PURE__ */ i(he.Item, { onClick: p, icon: /* @__PURE__ */ i(Il, { size: 14 }), children: "Settings" }),
|
|
24596
24613
|
/* @__PURE__ */ i(he.Item, { onClick: d, icon: /* @__PURE__ */ i(Lh, { size: 14 }), children: "Duplicate" }),
|
|
24597
24614
|
/* @__PURE__ */ i(he.Item, { color: "red", onClick: h, icon: /* @__PURE__ */ i(be, { size: 14 }), children: "Delete" })
|
|
@@ -24658,13 +24675,13 @@ function YD(e) {
|
|
|
24658
24675
|
var du = /* @__PURE__ */ ((e) => (e.migrated = "migrated", e.nothingToMigrate = "nothingToMigrate", e.checkFailed = "checkFailed", e.migrationFailed = "migrationFailed", e))(du || {}), Wr = /* @__PURE__ */ ((e) => (e.notStarted = "notStarted", e.inProgress = "inProgress", e.done = "done", e))(Wr || {});
|
|
24659
24676
|
class HD {
|
|
24660
24677
|
constructor(t) {
|
|
24661
|
-
|
|
24662
|
-
|
|
24663
|
-
|
|
24664
|
-
|
|
24665
|
-
|
|
24666
|
-
|
|
24667
|
-
|
|
24678
|
+
Y(this, "vizInstance");
|
|
24679
|
+
Y(this, "operationManager");
|
|
24680
|
+
Y(this, "triggerManager");
|
|
24681
|
+
Y(this, "vizManager");
|
|
24682
|
+
Y(this, "runningMigration");
|
|
24683
|
+
Y(this, "panelModel");
|
|
24684
|
+
Y(this, "status", "notStarted");
|
|
24668
24685
|
this.panelModel = t.getRequired(qe.instanceScope.panelModel), this.vizInstance = t.getRequired(qe.instanceScope.vizInstance), this.operationManager = t.getRequired(qe.instanceScope.operationManager), this.triggerManager = t.getRequired(qe.instanceScope.triggerManager), this.vizManager = t.getRequired(qe.vizManager);
|
|
24669
24686
|
}
|
|
24670
24687
|
async createMigrationTask() {
|
|
@@ -24803,7 +24820,7 @@ const XD = D(function({
|
|
|
24803
24820
|
w: r,
|
|
24804
24821
|
h: a
|
|
24805
24822
|
}), s = r > 0 && a > 0;
|
|
24806
|
-
return /* @__PURE__ */ i("div", { className: "viz-root", ref: n, children: /* @__PURE__ */ i(
|
|
24823
|
+
return /* @__PURE__ */ i("div", { className: "viz-root", ref: n, children: /* @__PURE__ */ i(N, { sx: {
|
|
24807
24824
|
width: r,
|
|
24808
24825
|
height: a,
|
|
24809
24826
|
overflow: "hidden"
|
|
@@ -24843,11 +24860,11 @@ const XD = D(function({
|
|
|
24843
24860
|
loading: e.dataLoading,
|
|
24844
24861
|
errors: e.queryErrors,
|
|
24845
24862
|
downloadPanelScreenshot: a
|
|
24846
|
-
}, children: /* @__PURE__ */ u(
|
|
24863
|
+
}, children: /* @__PURE__ */ u(N, { className: "panel-root", ref: r, p: 0, sx: {
|
|
24847
24864
|
...ZD,
|
|
24848
24865
|
...t
|
|
24849
24866
|
}, children: [
|
|
24850
|
-
/* @__PURE__ */ i(
|
|
24867
|
+
/* @__PURE__ */ i(N, { sx: {
|
|
24851
24868
|
position: "absolute",
|
|
24852
24869
|
left: 0,
|
|
24853
24870
|
top: 0,
|
|
@@ -24892,14 +24909,14 @@ const iI = D(({
|
|
|
24892
24909
|
} = R.useContext(Ti), s = R.useCallback(() => {
|
|
24893
24910
|
a(r);
|
|
24894
24911
|
}, [r, a]), l = !o && e.type !== Z.Modal;
|
|
24895
|
-
return rI(t.viz.type) ? /* @__PURE__ */ i(
|
|
24912
|
+
return rI(t.viz.type) ? /* @__PURE__ */ i(N, { sx: {
|
|
24896
24913
|
position: "absolute",
|
|
24897
24914
|
top: 0,
|
|
24898
24915
|
left: 0,
|
|
24899
24916
|
right: 0,
|
|
24900
24917
|
zIndex: 300
|
|
24901
24918
|
}, children: /* @__PURE__ */ u(he, { withinPortal: !0, children: [
|
|
24902
|
-
/* @__PURE__ */ i(he.Target, { children: /* @__PURE__ */ i(
|
|
24919
|
+
/* @__PURE__ */ i(he.Target, { children: /* @__PURE__ */ i(N, { className: "panel-dropdown-target", sx: {
|
|
24903
24920
|
width: "100%",
|
|
24904
24921
|
height: "25px"
|
|
24905
24922
|
} }) }),
|
|
@@ -25082,7 +25099,7 @@ const mI = D(({
|
|
|
25082
25099
|
downloadScreenshot: a
|
|
25083
25100
|
} = Qo(t);
|
|
25084
25101
|
return /* @__PURE__ */ u(W, { children: [
|
|
25085
|
-
/* @__PURE__ */ i(
|
|
25102
|
+
/* @__PURE__ */ i(N, { ref: r, sx: n, children: e }),
|
|
25086
25103
|
/* @__PURE__ */ i(mI, { downloadScreenShot: a })
|
|
25087
25104
|
] });
|
|
25088
25105
|
}), yu = D(({
|
|
@@ -25096,7 +25113,7 @@ const mI = D(({
|
|
|
25096
25113
|
downloadScreenshot: l
|
|
25097
25114
|
} = Qo(t);
|
|
25098
25115
|
return /* @__PURE__ */ i(Te, { size: r.width, centered: !0, opened: a, onClose: o, withCloseButton: !1, title: /* @__PURE__ */ u(v, { position: "apart", px: "1rem", h: "48px", children: [
|
|
25099
|
-
/* @__PURE__ */ i(
|
|
25116
|
+
/* @__PURE__ */ i(N, { children: r.custom_modal_title.value }),
|
|
25100
25117
|
/* @__PURE__ */ i(yu, { downloadScreenshot: l })
|
|
25101
25118
|
] }), trapFocus: !0, onDragStart: (c) => {
|
|
25102
25119
|
c.stopPropagation();
|
|
@@ -25131,7 +25148,7 @@ const mI = D(({
|
|
|
25131
25148
|
}
|
|
25132
25149
|
}, transitionProps: {
|
|
25133
25150
|
duration: 0
|
|
25134
|
-
}, children: /* @__PURE__ */ i(
|
|
25151
|
+
}, children: /* @__PURE__ */ i(N, { ref: s, children: e }) });
|
|
25135
25152
|
}), bI = (e) => e.color ? {
|
|
25136
25153
|
"&[data-active], &[data-active]:hover": {
|
|
25137
25154
|
borderColor: e.color ? e.color : "..."
|
|
@@ -25194,13 +25211,13 @@ const wI = D(({
|
|
|
25194
25211
|
ref: o,
|
|
25195
25212
|
downloadScreenshot: s
|
|
25196
25213
|
} = Qo(t);
|
|
25197
|
-
return /* @__PURE__ */ i(
|
|
25214
|
+
return /* @__PURE__ */ i(N, { sx: {
|
|
25198
25215
|
height: "100%",
|
|
25199
25216
|
"> div:not(.mantine-Modal-root)": {
|
|
25200
25217
|
height: "100%"
|
|
25201
25218
|
}
|
|
25202
25219
|
}, children: /* @__PURE__ */ i(Te, { size: n.width, opened: !0, onClose: k.noop, withCloseButton: !1, title: /* @__PURE__ */ u(v, { position: "apart", px: "1rem", h: "48px", children: [
|
|
25203
|
-
/* @__PURE__ */ i(
|
|
25220
|
+
/* @__PURE__ */ i(N, { children: n.custom_modal_title.value }),
|
|
25204
25221
|
/* @__PURE__ */ i(yu, { downloadScreenshot: s })
|
|
25205
25222
|
] }), trapFocus: !0, onDragStart: (l) => {
|
|
25206
25223
|
l.stopPropagation();
|
|
@@ -25241,7 +25258,7 @@ const wI = D(({
|
|
|
25241
25258
|
}
|
|
25242
25259
|
}, withinPortal: !1, transitionProps: {
|
|
25243
25260
|
duration: 0
|
|
25244
|
-
}, children: /* @__PURE__ */ i(
|
|
25261
|
+
}, children: /* @__PURE__ */ i(N, { ref: o, children: e }) }) });
|
|
25245
25262
|
}), _I = ({
|
|
25246
25263
|
variant: e,
|
|
25247
25264
|
orientation: t
|
|
@@ -25295,7 +25312,7 @@ const wI = D(({
|
|
|
25295
25312
|
return /* @__PURE__ */ u(g.Panel, { value: l.id, sx: {
|
|
25296
25313
|
position: "relative"
|
|
25297
25314
|
}, children: [
|
|
25298
|
-
/* @__PURE__ */ u(
|
|
25315
|
+
/* @__PURE__ */ u(N, { sx: {
|
|
25299
25316
|
position: "absolute",
|
|
25300
25317
|
top: 0,
|
|
25301
25318
|
left: 0,
|
|
@@ -25309,7 +25326,7 @@ const wI = D(({
|
|
|
25309
25326
|
position: "relative",
|
|
25310
25327
|
zIndex: 200
|
|
25311
25328
|
}, children: [
|
|
25312
|
-
/* @__PURE__ */ i(
|
|
25329
|
+
/* @__PURE__ */ i(L, { label: "Tab Name", value: l.name, onChange: (p) => l.setName(p.currentTarget.value) }),
|
|
25313
25330
|
/* @__PURE__ */ i(F, { label: "View", value: l.view_id, onChange: l.setViewID, data: r }),
|
|
25314
25331
|
/* @__PURE__ */ i(Ya, { label: "Color", value: l.color, onChange: l.setColor, disabled: a.variant !== "default" }),
|
|
25315
25332
|
d && /* @__PURE__ */ u(I, { mt: 20, variant: "gradient", leftIcon: /* @__PURE__ */ i(Qh, { size: 18 }), gradient: {
|
|
@@ -25345,10 +25362,10 @@ const wI = D(({
|
|
|
25345
25362
|
return /* @__PURE__ */ i(Ti.Provider, { value: {
|
|
25346
25363
|
viewPanelInFullScreen: k.noop,
|
|
25347
25364
|
inFullScreen: !1
|
|
25348
|
-
}, children: /* @__PURE__ */ i(
|
|
25365
|
+
}, children: /* @__PURE__ */ i(N, { className: "dashboard-view", "data-enable-scrollbar": !0, children: /* @__PURE__ */ i(kI, { view: t, children: /* @__PURE__ */ u(N, { sx: {
|
|
25349
25366
|
position: "relative"
|
|
25350
25367
|
}, children: [
|
|
25351
|
-
/* @__PURE__ */ i(
|
|
25368
|
+
/* @__PURE__ */ i(N, { className: "dashboard-sticky-area", sx: {
|
|
25352
25369
|
position: "sticky",
|
|
25353
25370
|
top: "0px"
|
|
25354
25371
|
}, children: /* @__PURE__ */ i(Ed, { view: t }) }),
|
|
@@ -25369,14 +25386,14 @@ const wI = D(({
|
|
|
25369
25386
|
return /* @__PURE__ */ i(Ti.Provider, { value: {
|
|
25370
25387
|
viewPanelInFullScreen: a,
|
|
25371
25388
|
inFullScreen: s
|
|
25372
|
-
}, children: /* @__PURE__ */ u(
|
|
25389
|
+
}, children: /* @__PURE__ */ u(N, { className: "dashboard-view", "data-enable-scrollbar": !0, sx: {
|
|
25373
25390
|
height: t.type === Z.Modal ? "0 !important" : "100%"
|
|
25374
25391
|
}, children: [
|
|
25375
25392
|
s && /* @__PURE__ */ i(sI, { view: t, panel: l, exitFullScreen: o }),
|
|
25376
|
-
/* @__PURE__ */ i(xI, { view: t, children: /* @__PURE__ */ u(
|
|
25393
|
+
/* @__PURE__ */ i(xI, { view: t, children: /* @__PURE__ */ u(N, { sx: {
|
|
25377
25394
|
position: "relative"
|
|
25378
25395
|
}, children: [
|
|
25379
|
-
!s && /* @__PURE__ */ i(
|
|
25396
|
+
!s && /* @__PURE__ */ i(N, { className: "dashboard-sticky-area", sx: {
|
|
25380
25397
|
position: "sticky",
|
|
25381
25398
|
top: "0px"
|
|
25382
25399
|
}, children: /* @__PURE__ */ i(Ed, { view: t }) }),
|
|
@@ -26644,7 +26661,7 @@ const QI = D(() => {
|
|
|
26644
26661
|
}, JI = D(() => {
|
|
26645
26662
|
var n;
|
|
26646
26663
|
const e = Ce(), t = ((n = e.views.VIE) == null ? void 0 : n.type) === Z.Tabs;
|
|
26647
|
-
return /* @__PURE__ */ i(
|
|
26664
|
+
return /* @__PURE__ */ i(N, { sx: XI, pl: {
|
|
26648
26665
|
base: 200,
|
|
26649
26666
|
xs: 200,
|
|
26650
26667
|
sm: 200,
|
|
@@ -26662,8 +26679,8 @@ const QI = D(() => {
|
|
|
26662
26679
|
borderBottom: "1px solid #e9ecef",
|
|
26663
26680
|
background: "rgb(231, 245, 255)"
|
|
26664
26681
|
}, children: "Add a Panel" }),
|
|
26665
|
-
/* @__PURE__ */ i(
|
|
26666
|
-
/* @__PURE__ */ i(
|
|
26682
|
+
/* @__PURE__ */ i(N, {}),
|
|
26683
|
+
/* @__PURE__ */ i(N, {})
|
|
26667
26684
|
] }) });
|
|
26668
26685
|
}), ZI = D((e) => /* @__PURE__ */ u(W, { children: [
|
|
26669
26686
|
/* @__PURE__ */ i(UI, { ...e }),
|
|
@@ -26986,7 +27003,7 @@ const xM = rh(({
|
|
|
26986
27003
|
const o = M(() => yM(e.interactions), [e.interactions]);
|
|
26987
27004
|
return /* @__PURE__ */ u(W, { children: [
|
|
26988
27005
|
/* @__PURE__ */ i(Ss, { type: "target", position: r, isConnectable: t }),
|
|
26989
|
-
/* @__PURE__ */ i(
|
|
27006
|
+
/* @__PURE__ */ i(N, { sx: {
|
|
26990
27007
|
position: "absolute",
|
|
26991
27008
|
top: 0,
|
|
26992
27009
|
right: 0
|
|
@@ -27063,7 +27080,7 @@ function SM({
|
|
|
27063
27080
|
active: n,
|
|
27064
27081
|
openSettings: r
|
|
27065
27082
|
}) {
|
|
27066
|
-
return /* @__PURE__ */ u(
|
|
27083
|
+
return /* @__PURE__ */ u(N, { sx: {
|
|
27067
27084
|
position: "relative"
|
|
27068
27085
|
}, children: [
|
|
27069
27086
|
/* @__PURE__ */ i(hh, { sx: (a) => ({
|
|
@@ -27095,11 +27112,11 @@ const kM = D(() => {
|
|
|
27095
27112
|
const e = Fe(), t = Ce(), n = nt((a) => () => t.views.setIDOfVIE(a), [t]), r = (a) => {
|
|
27096
27113
|
e.editor.open(["_VIEWS_", a]);
|
|
27097
27114
|
};
|
|
27098
|
-
return /* @__PURE__ */ u(
|
|
27115
|
+
return /* @__PURE__ */ u(N, { sx: {
|
|
27099
27116
|
position: "relative"
|
|
27100
27117
|
}, children: [
|
|
27101
27118
|
t.views.options.map((a) => /* @__PURE__ */ i(SM, { active: t.views.idOfVIE === a.value, name: a.label, onClick: n(a.value), openSettings: () => r(a.value) }, a.value)),
|
|
27102
|
-
/* @__PURE__ */ i(
|
|
27119
|
+
/* @__PURE__ */ i(A, { variant: "dashed" }),
|
|
27103
27120
|
/* @__PURE__ */ i(I, { variant: "subtle", rightIcon: /* @__PURE__ */ i(Bt, { size: 14 }), size: "sm", px: "xs", color: "blue", onClick: t.views.addARandomNewView, sx: {
|
|
27104
27121
|
width: "100%",
|
|
27105
27122
|
borderRadius: 0
|
|
@@ -27252,8 +27269,8 @@ const kM = D(() => {
|
|
|
27252
27269
|
}, r = t.static_options, a = [...r];
|
|
27253
27270
|
return /* @__PURE__ */ u(W, { children: [
|
|
27254
27271
|
/* @__PURE__ */ i(me, { checked: t.required, onChange: (o) => t.setRequired(o.currentTarget.checked), label: "Required" }),
|
|
27255
|
-
/* @__PURE__ */ i(
|
|
27256
|
-
/* @__PURE__ */ i(
|
|
27272
|
+
/* @__PURE__ */ i(L, { label: "Width", description: "At least 160px", value: t.min_width, onChange: (o) => t.setMinWidth(o.currentTarget.value), placeholder: "default: 200px" }),
|
|
27273
|
+
/* @__PURE__ */ i(A, { label: "Configure options", labelPosition: "center" }),
|
|
27257
27274
|
/* @__PURE__ */ u(S, { spacing: 10, sx: {
|
|
27258
27275
|
position: "relative",
|
|
27259
27276
|
minHeight: "50px"
|
|
@@ -27278,12 +27295,12 @@ const kM = D(() => {
|
|
|
27278
27295
|
r.map((o, s) => /* @__PURE__ */ u(Yn, { gap: 10, sx: {
|
|
27279
27296
|
position: "relative"
|
|
27280
27297
|
}, pr: "40px", children: [
|
|
27281
|
-
/* @__PURE__ */ i(
|
|
27298
|
+
/* @__PURE__ */ i(L, { label: "Label", required: !0, value: t.static_options[s].label, onChange: (l) => {
|
|
27282
27299
|
t.static_options[s].setLabel(l.currentTarget.value);
|
|
27283
27300
|
}, sx: {
|
|
27284
27301
|
flexGrow: 1
|
|
27285
27302
|
} }),
|
|
27286
|
-
/* @__PURE__ */ i(
|
|
27303
|
+
/* @__PURE__ */ i(L, { label: "Value", required: !0, value: t.static_options[s].value, onChange: (l) => {
|
|
27287
27304
|
t.static_options[s].setValue(l.currentTarget.value);
|
|
27288
27305
|
}, sx: {
|
|
27289
27306
|
flexGrow: 1
|
|
@@ -27298,7 +27315,7 @@ const kM = D(() => {
|
|
|
27298
27315
|
width: "50%"
|
|
27299
27316
|
}, mx: "auto", children: "Add an Option" })
|
|
27300
27317
|
] }),
|
|
27301
|
-
/* @__PURE__ */ i(
|
|
27318
|
+
/* @__PURE__ */ i(A, { label: "Or fetch options from database", labelPosition: "center" }),
|
|
27302
27319
|
/* @__PURE__ */ i(ie, { value: t.default_selection_count, onChange: t.setDefaultSelectionCount, label: "Select first N options by default" }),
|
|
27303
27320
|
/* @__PURE__ */ i(Jo, { value: t.options_query_id, onChange: t.setOptionsQueryID }),
|
|
27304
27321
|
/* @__PURE__ */ i(Du, {})
|
|
@@ -27317,8 +27334,8 @@ const kM = D(() => {
|
|
|
27317
27334
|
}, ...r];
|
|
27318
27335
|
return /* @__PURE__ */ u(W, { children: [
|
|
27319
27336
|
/* @__PURE__ */ i(me, { checked: t.required, onChange: (o) => t.setRequired(o.currentTarget.checked), label: "Required" }),
|
|
27320
|
-
/* @__PURE__ */ i(
|
|
27321
|
-
/* @__PURE__ */ i(
|
|
27337
|
+
/* @__PURE__ */ i(L, { label: "Width", value: t.width, onChange: (o) => t.setWidth(o.currentTarget.value), placeholder: "200px" }),
|
|
27338
|
+
/* @__PURE__ */ i(A, { label: "Configure options", labelPosition: "center" }),
|
|
27322
27339
|
/* @__PURE__ */ u(S, { spacing: 10, sx: {
|
|
27323
27340
|
position: "relative",
|
|
27324
27341
|
minHeight: "50px"
|
|
@@ -27343,12 +27360,12 @@ const kM = D(() => {
|
|
|
27343
27360
|
r.map((o, s) => /* @__PURE__ */ u(Yn, { gap: 10, sx: {
|
|
27344
27361
|
position: "relative"
|
|
27345
27362
|
}, pr: "40px", children: [
|
|
27346
|
-
/* @__PURE__ */ i(
|
|
27363
|
+
/* @__PURE__ */ i(L, { label: "Label", required: !0, value: t.static_options[s].label, onChange: (l) => {
|
|
27347
27364
|
t.static_options[s].setLabel(l.currentTarget.value);
|
|
27348
27365
|
}, sx: {
|
|
27349
27366
|
flexGrow: 1
|
|
27350
27367
|
} }),
|
|
27351
|
-
/* @__PURE__ */ i(
|
|
27368
|
+
/* @__PURE__ */ i(L, { label: "Value", required: !0, value: t.static_options[s].value, onChange: (l) => {
|
|
27352
27369
|
t.static_options[s].setValue(l.currentTarget.value);
|
|
27353
27370
|
}, sx: {
|
|
27354
27371
|
flexGrow: 1
|
|
@@ -27363,7 +27380,7 @@ const kM = D(() => {
|
|
|
27363
27380
|
width: "50%"
|
|
27364
27381
|
}, mx: "auto", children: "Add an Option" })
|
|
27365
27382
|
] }),
|
|
27366
|
-
/* @__PURE__ */ i(
|
|
27383
|
+
/* @__PURE__ */ i(A, { label: "Or fetch options from database", labelPosition: "center" }),
|
|
27367
27384
|
/* @__PURE__ */ i(me, { checked: t.default_selection_count === 1, onChange: (o) => t.setDefaultSelectionCount(o.currentTarget.checked ? 1 : 0), label: "Select the first option by default" }),
|
|
27368
27385
|
/* @__PURE__ */ i(Jo, { value: t.options_query_id, onChange: t.setOptionsQueryID }),
|
|
27369
27386
|
/* @__PURE__ */ i(Du, {})
|
|
@@ -27372,7 +27389,7 @@ const kM = D(() => {
|
|
|
27372
27389
|
config: t
|
|
27373
27390
|
}) {
|
|
27374
27391
|
return /* @__PURE__ */ u(W, { children: [
|
|
27375
|
-
/* @__PURE__ */ i(
|
|
27392
|
+
/* @__PURE__ */ i(L, { label: "Default Value", value: t.default_value, onChange: (n) => {
|
|
27376
27393
|
t.setDefaultValue(n.currentTarget.value);
|
|
27377
27394
|
} }),
|
|
27378
27395
|
/* @__PURE__ */ i(me, { checked: t.required, onChange: (n) => t.setRequired(n.currentTarget.checked), label: "Required" })
|
|
@@ -27396,8 +27413,8 @@ const kM = D(() => {
|
|
|
27396
27413
|
}) {
|
|
27397
27414
|
return /* @__PURE__ */ u(W, { children: [
|
|
27398
27415
|
/* @__PURE__ */ i(me, { checked: t.required, onChange: (n) => t.setRequired(n.currentTarget.checked), label: "Required" }),
|
|
27399
|
-
/* @__PURE__ */ i(
|
|
27400
|
-
/* @__PURE__ */ i(
|
|
27416
|
+
/* @__PURE__ */ i(L, { label: "Min-width", value: t.min_width, onChange: (n) => t.setMinWidth(n.currentTarget.value), placeholder: "200px" }),
|
|
27417
|
+
/* @__PURE__ */ i(A, { label: "Fetch options from database", labelPosition: "center" }),
|
|
27401
27418
|
/* @__PURE__ */ i(ie, { value: t.default_selection_count, onChange: t.setDefaultSelectionCount, label: "Select first N options by default" }),
|
|
27402
27419
|
/* @__PURE__ */ i(Jo, { value: t.options_query_id, onChange: t.setOptionsQueryID }),
|
|
27403
27420
|
/* @__PURE__ */ i(RM, {})
|
|
@@ -27408,7 +27425,7 @@ const kM = D(() => {
|
|
|
27408
27425
|
const [n, r] = R.useState(t.plainDefaultValue);
|
|
27409
27426
|
return R.useEffect(() => {
|
|
27410
27427
|
r(t.plainDefaultValue);
|
|
27411
|
-
}, [t]), /* @__PURE__ */ u(
|
|
27428
|
+
}, [t]), /* @__PURE__ */ u(N, { sx: {
|
|
27412
27429
|
maxWidth: "480px"
|
|
27413
27430
|
}, children: [
|
|
27414
27431
|
/* @__PURE__ */ i(C, { pb: "md", color: "gray", children: "Preview" }),
|
|
@@ -27446,7 +27463,7 @@ const kM = D(() => {
|
|
|
27446
27463
|
}) {
|
|
27447
27464
|
const n = Ce(), r = R.useMemo(() => PM[t.type], [t.type]);
|
|
27448
27465
|
return /* @__PURE__ */ u(v, { grow: !0, spacing: 20, align: "top", children: [
|
|
27449
|
-
/* @__PURE__ */ u(
|
|
27466
|
+
/* @__PURE__ */ u(N, { sx: {
|
|
27450
27467
|
maxWidth: "600px"
|
|
27451
27468
|
}, children: [
|
|
27452
27469
|
/* @__PURE__ */ i(C, { pb: "md", color: "gray", children: "Edit" }),
|
|
@@ -27468,10 +27485,10 @@ const kM = D(() => {
|
|
|
27468
27485
|
t.auto_submit_supported && /* @__PURE__ */ i(me, { label: "Submit automatically", checked: t.auto_submit, onChange: (a) => t.setAutoSubmit(a.currentTarget.checked), mt: 22 })
|
|
27469
27486
|
] }),
|
|
27470
27487
|
/* @__PURE__ */ i(dr, { label: "Visible in...", data: n.views.options, value: [...t.visibleInViewsIDs], onChange: t.setVisibleInViewsIDs }),
|
|
27471
|
-
/* @__PURE__ */ i(
|
|
27488
|
+
/* @__PURE__ */ i(L, { label: "Key", placeholder: "A unique key to refer", required: !0, value: t.key, onChange: (a) => {
|
|
27472
27489
|
t.setKey(a.currentTarget.value);
|
|
27473
27490
|
} }),
|
|
27474
|
-
/* @__PURE__ */ i(
|
|
27491
|
+
/* @__PURE__ */ i(L, { label: "Label", placeholder: "Label for this field", required: !0, value: t.label, onChange: (a) => {
|
|
27475
27492
|
t.setLabel(a.currentTarget.value);
|
|
27476
27493
|
} }),
|
|
27477
27494
|
/* @__PURE__ */ i(F, { label: "Widget", data: VM, required: !0, value: t.type, onChange: t.setType }),
|
|
@@ -27517,7 +27534,7 @@ const kM = D(() => {
|
|
|
27517
27534
|
zIndex: 320
|
|
27518
27535
|
});
|
|
27519
27536
|
}, children: "Delete this filter" }) }),
|
|
27520
|
-
/* @__PURE__ */ i(
|
|
27537
|
+
/* @__PURE__ */ i(N, { sx: {
|
|
27521
27538
|
flexGrow: 1,
|
|
27522
27539
|
maxHeight: "calc(100% - 52px)",
|
|
27523
27540
|
overflow: "auto"
|
|
@@ -27590,7 +27607,7 @@ const kM = D(() => {
|
|
|
27590
27607
|
style: t
|
|
27591
27608
|
} = e;
|
|
27592
27609
|
return /* @__PURE__ */ u(W, { children: [
|
|
27593
|
-
/* @__PURE__ */ i(
|
|
27610
|
+
/* @__PURE__ */ i(A, { mb: -10, label: "Style", labelPosition: "center", variant: "dashed" }),
|
|
27594
27611
|
/* @__PURE__ */ u(S, { spacing: 20, children: [
|
|
27595
27612
|
/* @__PURE__ */ u(v, { grow: !0, align: "top", children: [
|
|
27596
27613
|
/* @__PURE__ */ i(ie, { label: "Width", min: 1, max: 36, step: 1, precision: 0, rightSection: /* @__PURE__ */ i(C, { size: 12, children: "of 36 columns" }), styles: {
|
|
@@ -27622,7 +27639,7 @@ const kM = D(() => {
|
|
|
27622
27639
|
}, [o, r]);
|
|
27623
27640
|
return q(() => {
|
|
27624
27641
|
a(t);
|
|
27625
|
-
}, [t]), /* @__PURE__ */ i(
|
|
27642
|
+
}, [t]), /* @__PURE__ */ i(L, { value: r, onChange: a, label: /* @__PURE__ */ u(v, { children: [
|
|
27626
27643
|
/* @__PURE__ */ i(C, { children: "Panel Title" }),
|
|
27627
27644
|
/* @__PURE__ */ i(K, { variant: "subtle", color: "blue", disabled: !o, onClick: s, children: /* @__PURE__ */ i(ve, { size: 20 }) })
|
|
27628
27645
|
] }), styles: {
|
|
@@ -27637,7 +27654,7 @@ function YM() {
|
|
|
27637
27654
|
height: "100%"
|
|
27638
27655
|
}, children: [
|
|
27639
27656
|
/* @__PURE__ */ i(jM, {}),
|
|
27640
|
-
/* @__PURE__ */ i(
|
|
27657
|
+
/* @__PURE__ */ i(A, { label: "Info", labelPosition: "center", variant: "dashed" }),
|
|
27641
27658
|
/* @__PURE__ */ i(GM, {}),
|
|
27642
27659
|
/* @__PURE__ */ i(WM, {})
|
|
27643
27660
|
] });
|
|
@@ -27694,7 +27711,7 @@ function Iu({
|
|
|
27694
27711
|
columnResizeMode: "onChange",
|
|
27695
27712
|
getCoreRowModel: nc()
|
|
27696
27713
|
});
|
|
27697
|
-
return e.length === 0 ? /* @__PURE__ */ i(
|
|
27714
|
+
return e.length === 0 ? /* @__PURE__ */ i(N, { sx: {
|
|
27698
27715
|
height: "5em"
|
|
27699
27716
|
} }) : /* @__PURE__ */ i(ht, { children: /* @__PURE__ */ u(Vt, { sx: HM, children: [
|
|
27700
27717
|
/* @__PURE__ */ i("thead", { children: n.getHeaderGroups().map((r) => /* @__PURE__ */ i("tr", { children: r.headers.map((a) => /* @__PURE__ */ u("th", { style: {
|
|
@@ -27748,7 +27765,7 @@ const QM = ({
|
|
|
27748
27765
|
/* @__PURE__ */ i(K, { variant: "subtle", color: "blue", disabled: s || p, onClick: c, children: /* @__PURE__ */ i(Ja, { size: 16 }) })
|
|
27749
27766
|
] })
|
|
27750
27767
|
] }),
|
|
27751
|
-
/* @__PURE__ */ u(
|
|
27768
|
+
/* @__PURE__ */ u(N, { sx: {
|
|
27752
27769
|
position: "relative",
|
|
27753
27770
|
overflow: "auto"
|
|
27754
27771
|
}, children: [
|
|
@@ -27778,7 +27795,7 @@ const QM = ({
|
|
|
27778
27795
|
const {
|
|
27779
27796
|
panel: e
|
|
27780
27797
|
} = $n();
|
|
27781
|
-
return /* @__PURE__ */ i(ht, { children: /* @__PURE__ */ i(
|
|
27798
|
+
return /* @__PURE__ */ i(ht, { children: /* @__PURE__ */ i(N, { sx: {
|
|
27782
27799
|
height: "100%",
|
|
27783
27800
|
flexGrow: 0,
|
|
27784
27801
|
flexShrink: 0,
|
|
@@ -27827,8 +27844,8 @@ const QM = ({
|
|
|
27827
27844
|
};
|
|
27828
27845
|
class XM {
|
|
27829
27846
|
constructor(t) {
|
|
27830
|
-
|
|
27831
|
-
|
|
27847
|
+
Y(this, "panel");
|
|
27848
|
+
Y(this, "selected");
|
|
27832
27849
|
this.panel = t, wr(this, {}, {
|
|
27833
27850
|
deep: !1,
|
|
27834
27851
|
autoBind: !0
|
|
@@ -27902,14 +27919,14 @@ const Mu = Gn((e) => ({
|
|
|
27902
27919
|
const d = k.cloneDeep(t);
|
|
27903
27920
|
k.set(d, l, c), n(d);
|
|
27904
27921
|
};
|
|
27905
|
-
return /* @__PURE__ */ u(
|
|
27922
|
+
return /* @__PURE__ */ u(N, { px: "sm", py: "md", ref: o, children: [
|
|
27906
27923
|
/* @__PURE__ */ u(v, { grow: !0, noWrap: !0, children: [
|
|
27907
|
-
/* @__PURE__ */ i(
|
|
27924
|
+
/* @__PURE__ */ i(L, { label: "Name", required: !0, value: t.name, onChange: (l) => s("name", l.currentTarget.value) }),
|
|
27908
27925
|
/* @__PURE__ */ i(X, { label: "Data Field", required: !0, value: t.data_field, onChange: (l) => s("data_field", l) })
|
|
27909
27926
|
] }),
|
|
27910
27927
|
/* @__PURE__ */ i(gi, { label: "Aggregation", value: t.aggregation, onChange: (l) => s("aggregation", l) }),
|
|
27911
27928
|
t.aggregation.type !== "custom" && /* @__PURE__ */ u(W, { children: [
|
|
27912
|
-
/* @__PURE__ */ i(
|
|
27929
|
+
/* @__PURE__ */ i(A, { my: "xs", label: "Format", labelPosition: "center" }),
|
|
27913
27930
|
/* @__PURE__ */ i(vt, { value: t.formatter, onChange: (l) => s("formatter", l) })
|
|
27914
27931
|
] }),
|
|
27915
27932
|
a && /* @__PURE__ */ i(Qc, { value: t, onChange: n })
|
|
@@ -27949,7 +27966,7 @@ const Mu = Gn((e) => ({
|
|
|
27949
27966
|
} = Mu();
|
|
27950
27967
|
return /* @__PURE__ */ u(v, { className: t.root, noWrap: !0, align: "start", children: [
|
|
27951
27968
|
/* @__PURE__ */ i(ja, { withBorder: !0, p: "md", className: "var-list-container", children: /* @__PURE__ */ u(S, { justify: "space-between", children: [
|
|
27952
|
-
/* @__PURE__ */ i(
|
|
27969
|
+
/* @__PURE__ */ i(N, { className: "var-list-actions", children: /* @__PURE__ */ i(I, { variant: "light", size: "sm", onClick: e.addNew, fullWidth: !0, children: "Add Variable" }) }),
|
|
27953
27970
|
/* @__PURE__ */ i(t$, { uiModel: e })
|
|
27954
27971
|
] }) }),
|
|
27955
27972
|
e.selected ? /* @__PURE__ */ i(W, { children: /* @__PURE__ */ i(a$, { uiModel: e, variable: e.selected }) }) : /* @__PURE__ */ i("span", { children: "Select or create a new variable on right side" })
|
|
@@ -28114,7 +28131,7 @@ const h$ = D(() => {
|
|
|
28114
28131
|
width: "100%",
|
|
28115
28132
|
height: "100%"
|
|
28116
28133
|
}, children: [
|
|
28117
|
-
/* @__PURE__ */ i(
|
|
28134
|
+
/* @__PURE__ */ i(N, { sx: {
|
|
28118
28135
|
maxWidth: "calc(100% - 610px - 10px)",
|
|
28119
28136
|
height: "100%",
|
|
28120
28137
|
overflow: "auto"
|
|
@@ -28441,7 +28458,7 @@ const D$ = D(({
|
|
|
28441
28458
|
const {
|
|
28442
28459
|
tables: t
|
|
28443
28460
|
} = e;
|
|
28444
|
-
return t.loading ? /* @__PURE__ */ i($u, { height: "24px", lastWidth: "50%", count: 15 }) : /* @__PURE__ */ i(
|
|
28461
|
+
return t.loading ? /* @__PURE__ */ i($u, { height: "24px", lastWidth: "50%", count: 15 }) : /* @__PURE__ */ i(N, { h: "100%", sx: {
|
|
28445
28462
|
overflow: "auto",
|
|
28446
28463
|
".mantine-NavLink-label": {
|
|
28447
28464
|
fontFamily: "monospace"
|
|
@@ -28451,7 +28468,7 @@ const D$ = D(({
|
|
|
28451
28468
|
}, active: e.table_name === a.table_name }, a.table_name)) }, n)) });
|
|
28452
28469
|
}), I$ = ({
|
|
28453
28470
|
visible: e
|
|
28454
|
-
}) => /* @__PURE__ */ i(
|
|
28471
|
+
}) => /* @__PURE__ */ i(N, { py: 10, sx: {
|
|
28455
28472
|
width: "100%",
|
|
28456
28473
|
height: "100%",
|
|
28457
28474
|
overflow: "hidden",
|
|
@@ -28519,7 +28536,7 @@ const D$ = D(({
|
|
|
28519
28536
|
fontFamily: "monospace"
|
|
28520
28537
|
}, children: t.error }) : t.page === 1 && t.loading ? /* @__PURE__ */ i(I$, { visible: !0 }) : /* @__PURE__ */ u(ht, { children: [
|
|
28521
28538
|
/* @__PURE__ */ i(z$, { dataSource: e }),
|
|
28522
|
-
/* @__PURE__ */ u(
|
|
28539
|
+
/* @__PURE__ */ u(N, { py: 10, sx: {
|
|
28523
28540
|
width: "100%",
|
|
28524
28541
|
height: "calc(100% - 42px)",
|
|
28525
28542
|
overflow: "auto",
|
|
@@ -28550,7 +28567,7 @@ const D$ = D(({
|
|
|
28550
28567
|
}, children: e.tables.error }) : /* @__PURE__ */ u(Yn, { sx: {
|
|
28551
28568
|
height: "100%"
|
|
28552
28569
|
}, children: [
|
|
28553
|
-
/* @__PURE__ */ i(
|
|
28570
|
+
/* @__PURE__ */ i(N, { w: 300, sx: {
|
|
28554
28571
|
flexGrow: 0,
|
|
28555
28572
|
flexShrink: 0,
|
|
28556
28573
|
position: "relative"
|
|
@@ -28604,7 +28621,7 @@ const D$ = D(({
|
|
|
28604
28621
|
to: "red"
|
|
28605
28622
|
}, children: e.type })
|
|
28606
28623
|
] })
|
|
28607
|
-
] }), zIndex: 320, size: "96vw", styles: R$, children: /* @__PURE__ */ i(
|
|
28624
|
+
] }), zIndex: 320, size: "96vw", styles: R$, children: /* @__PURE__ */ i(N, { sx: {
|
|
28608
28625
|
height: "calc(100vh - 220px)"
|
|
28609
28626
|
}, children: /* @__PURE__ */ i(E$, { dataSource: e }) }) }),
|
|
28610
28627
|
/* @__PURE__ */ i(I, { variant: "subtle", onClick: () => r(!0), px: 16, styles: {
|
|
@@ -28640,7 +28657,7 @@ const D$ = D(({
|
|
|
28640
28657
|
});
|
|
28641
28658
|
}, c = M(() => n.datasources.find(e), [n, e]);
|
|
28642
28659
|
return /* @__PURE__ */ i(F, { data: o, label: /* @__PURE__ */ u(v, { position: "apart", children: [
|
|
28643
|
-
/* @__PURE__ */ i(
|
|
28660
|
+
/* @__PURE__ */ i(N, { children: "Data Source" }),
|
|
28644
28661
|
c && /* @__PURE__ */ i(zu, { dataSource: c, triggerButtonProps: {
|
|
28645
28662
|
compact: !0,
|
|
28646
28663
|
size: "xs",
|
|
@@ -28683,8 +28700,8 @@ const D$ = D(({
|
|
|
28683
28700
|
}, children: /* @__PURE__ */ u(S, { spacing: 10, sx: {
|
|
28684
28701
|
width: "100%"
|
|
28685
28702
|
}, children: [
|
|
28686
|
-
/* @__PURE__ */ i(
|
|
28687
|
-
/* @__PURE__ */ i(
|
|
28703
|
+
/* @__PURE__ */ i(A, { mb: -10, variant: "dashed", label: "Basics", labelPosition: "center" }),
|
|
28704
|
+
/* @__PURE__ */ i(L, { placeholder: "A unique name", label: "Name", required: !0, sx: {
|
|
28688
28705
|
flex: 1
|
|
28689
28706
|
}, value: t, onChange: (r) => {
|
|
28690
28707
|
n(r.currentTarget.value);
|
|
@@ -28700,10 +28717,10 @@ const D$ = D(({
|
|
|
28700
28717
|
}) => {
|
|
28701
28718
|
e.setKey(a), e.setType(r);
|
|
28702
28719
|
} }),
|
|
28703
|
-
/* @__PURE__ */ i(
|
|
28720
|
+
/* @__PURE__ */ i(A, { mt: 10, mb: -10, variant: "dashed", label: "Conditions", labelPosition: "center" }),
|
|
28704
28721
|
/* @__PURE__ */ i(dr, { label: "Run query when these are truthy", placeholder: "Always run this query on load", data: e.conditionOptions, value: [...e.run_by], onChange: e.setRunBy, itemComponent: ll, maxDropdownHeight: 500 }),
|
|
28705
28722
|
e.typedAsHTTP && /* @__PURE__ */ i(dr, { label: "Re-run query when these changed", placeholder: "Leave it empty to never re-run this query", data: e.conditionOptions, value: [...e.react_to], onChange: e.setReactTo, itemComponent: ll, maxDropdownHeight: 500 }),
|
|
28706
|
-
/* @__PURE__ */ i(
|
|
28723
|
+
/* @__PURE__ */ i(A, { mt: 20, mb: 10, variant: "dashed" }),
|
|
28707
28724
|
/* @__PURE__ */ i(x$, { queryModel: e })
|
|
28708
28725
|
] }) });
|
|
28709
28726
|
});
|
|
@@ -28842,8 +28859,8 @@ WHERE
|
|
|
28842
28859
|
/* @__PURE__ */ i("td", { children: k.capitalize(o.type) }),
|
|
28843
28860
|
/* @__PURE__ */ i("td", { children: /* @__PURE__ */ i(Xi, { component: "button", type: "button", onClick: () => r(o), children: o.label }) }),
|
|
28844
28861
|
/* @__PURE__ */ i("td", { children: /* @__PURE__ */ u(S, { align: "flex-start", justify: "flex-start", spacing: 2, children: [
|
|
28845
|
-
o.views.map((s) => /* @__PURE__ */ i(Xi, { component: "button", type: "button", onClick: () => a(s.id), children: /* @__PURE__ */ i(
|
|
28846
|
-
o.views.length === 0 && /* @__PURE__ */ i(
|
|
28862
|
+
o.views.map((s) => /* @__PURE__ */ i(Xi, { component: "button", type: "button", onClick: () => a(s.id), children: /* @__PURE__ */ i(N, { children: s.label }) })),
|
|
28863
|
+
o.views.length === 0 && /* @__PURE__ */ i(N, { children: "--" })
|
|
28847
28864
|
] }) })
|
|
28848
28865
|
] }, o.id)) })
|
|
28849
28866
|
] }) });
|
|
@@ -29024,7 +29041,7 @@ WHERE
|
|
|
29024
29041
|
alignItems: "end"
|
|
29025
29042
|
}, spacing: 40, children: [
|
|
29026
29043
|
/* @__PURE__ */ i(
|
|
29027
|
-
|
|
29044
|
+
L,
|
|
29028
29045
|
{
|
|
29029
29046
|
label: d ? "This key is occupied by another snippet" : "Key",
|
|
29030
29047
|
value: o,
|
|
@@ -29100,7 +29117,7 @@ WHERE
|
|
|
29100
29117
|
}), Z$ = D(({
|
|
29101
29118
|
view: e
|
|
29102
29119
|
}) => !e || e.type !== Z.Division ? null : /* @__PURE__ */ u(S, { children: [
|
|
29103
|
-
/* @__PURE__ */ i(
|
|
29120
|
+
/* @__PURE__ */ i(A, { mt: 8, mb: 0, label: "Division settings", labelPosition: "center" }),
|
|
29104
29121
|
/* @__PURE__ */ i(C, { align: "center", size: "xs", color: "dimmed", children: "Under construction" })
|
|
29105
29122
|
] })), ez = [{
|
|
29106
29123
|
value: "default",
|
|
@@ -29124,7 +29141,7 @@ WHERE
|
|
|
29124
29141
|
return null;
|
|
29125
29142
|
const t = e.config;
|
|
29126
29143
|
return /* @__PURE__ */ u(S, { children: [
|
|
29127
|
-
/* @__PURE__ */ i(
|
|
29144
|
+
/* @__PURE__ */ i(A, { mt: 8, mb: 0, label: "Tabs settings", labelPosition: "center" }),
|
|
29128
29145
|
/* @__PURE__ */ i(F, { label: "Variant", value: t.variant, onChange: t.setVariant, data: ez }),
|
|
29129
29146
|
/* @__PURE__ */ i(F, { label: "Orientation", value: t.orientation, onChange: t.setOrientation, data: tz }),
|
|
29130
29147
|
/* @__PURE__ */ i(Xe, { label: "Grow Tabs", checked: t.grow, onChange: (n) => t.setGrow(n.currentTarget.checked) })
|
|
@@ -29133,7 +29150,7 @@ WHERE
|
|
|
29133
29150
|
disabled: e,
|
|
29134
29151
|
value: t,
|
|
29135
29152
|
onChange: n
|
|
29136
|
-
}) => /* @__PURE__ */ u(
|
|
29153
|
+
}) => /* @__PURE__ */ u(N, { sx: {
|
|
29137
29154
|
position: "relative"
|
|
29138
29155
|
}, children: [
|
|
29139
29156
|
e && /* @__PURE__ */ i(Xt, { opacity: 0.6, color: "#fff", zIndex: 5, blur: 2 }),
|
|
@@ -29200,16 +29217,16 @@ WHERE
|
|
|
29200
29217
|
return null;
|
|
29201
29218
|
const t = e.config, n = t.custom_modal_title.value;
|
|
29202
29219
|
return /* @__PURE__ */ u(S, { children: [
|
|
29203
|
-
/* @__PURE__ */ i(
|
|
29220
|
+
/* @__PURE__ */ i(A, { mt: 8, label: "Modal settings", labelPosition: "center" }),
|
|
29204
29221
|
/* @__PURE__ */ u(Yn, { gap: 10, children: [
|
|
29205
|
-
/* @__PURE__ */ i(
|
|
29222
|
+
/* @__PURE__ */ i(L, { label: "Modal Title", value: n, onChange: k.noop, disabled: !0, sx: {
|
|
29206
29223
|
flexGrow: 1
|
|
29207
29224
|
} }),
|
|
29208
29225
|
/* @__PURE__ */ i(iz, { value: t.custom_modal_title, onChange: t.custom_modal_title.replace })
|
|
29209
29226
|
] }),
|
|
29210
29227
|
/* @__PURE__ */ u(v, { grow: !0, children: [
|
|
29211
|
-
/* @__PURE__ */ i(
|
|
29212
|
-
/* @__PURE__ */ i(
|
|
29228
|
+
/* @__PURE__ */ i(L, { label: "Width", value: t.width, onChange: (r) => t.setWidth(r.currentTarget.value), placeholder: "600px / 50vw" }),
|
|
29229
|
+
/* @__PURE__ */ i(L, { label: "Height", value: t.height, onChange: (r) => t.setHeight(r.currentTarget.value), placeholder: "600px / 50vw" })
|
|
29213
29230
|
] })
|
|
29214
29231
|
] });
|
|
29215
29232
|
}), oz = D(({
|
|
@@ -29232,7 +29249,7 @@ WHERE
|
|
|
29232
29249
|
}) => e ? /* @__PURE__ */ u(S, { sx: {
|
|
29233
29250
|
position: "relative"
|
|
29234
29251
|
}, children: [
|
|
29235
|
-
/* @__PURE__ */ i(
|
|
29252
|
+
/* @__PURE__ */ i(L, { label: "Name", value: e.name, onChange: (t) => {
|
|
29236
29253
|
e.setName(t.currentTarget.value);
|
|
29237
29254
|
} }),
|
|
29238
29255
|
/* @__PURE__ */ i(F, { label: "Type", withinPortal: !0, zIndex: 320, value: e.type, onChange: e.setType, data: sz }),
|
|
@@ -29271,7 +29288,7 @@ WHERE
|
|
|
29271
29288
|
zIndex: 320
|
|
29272
29289
|
});
|
|
29273
29290
|
}, children: "Delete this view" }) }),
|
|
29274
|
-
/* @__PURE__ */ i(
|
|
29291
|
+
/* @__PURE__ */ i(N, { sx: {
|
|
29275
29292
|
flexGrow: 1,
|
|
29276
29293
|
maxHeight: "calc(100% - 52px)",
|
|
29277
29294
|
overflow: "auto"
|
|
@@ -29303,7 +29320,7 @@ const bz = D(() => /* @__PURE__ */ i(S, { sx: {
|
|
|
29303
29320
|
height: "100%"
|
|
29304
29321
|
}, p: "sm", children: /* @__PURE__ */ i(Lu, {}) })), yz = D(() => {
|
|
29305
29322
|
const e = Fe().editor, t = e.path;
|
|
29306
|
-
return dz(t) ? /* @__PURE__ */ i(bz, {}) : uz(t) ? /* @__PURE__ */ i(qM, {}) : hz(t) ? /* @__PURE__ */ i(
|
|
29323
|
+
return dz(t) ? /* @__PURE__ */ i(bz, {}) : uz(t) ? /* @__PURE__ */ i(qM, {}) : hz(t) ? /* @__PURE__ */ i(N, { p: "xs", pl: 20, children: /* @__PURE__ */ i(BM, { id: t[1] }) }) : pz(t) ? /* @__PURE__ */ i(J$, { id: t[1] }) : fz(t) ? /* @__PURE__ */ i(K$, { id: t[1] }) : mz(t) ? /* @__PURE__ */ i(N, { p: "xs", pl: 20, children: /* @__PURE__ */ i(cz, { id: t[1] }) }) : gz(t) ? /* @__PURE__ */ i(b$, { viewID: t[1], panelID: t[3] }) : /* @__PURE__ */ i(N, { children: e.path });
|
|
29307
29324
|
}), xz = D(() => /* @__PURE__ */ i(yz, {})), vz = D(() => {
|
|
29308
29325
|
const e = Fe();
|
|
29309
29326
|
return /* @__PURE__ */ i(I, { variant: "subtle", leftIcon: /* @__PURE__ */ i(Bt, { size: 14 }), size: "sm", px: "xs", mb: 10, color: "blue", onClick: () => {
|
|
@@ -29399,7 +29416,7 @@ const bz = D(() => /* @__PURE__ */ i(S, { sx: {
|
|
|
29399
29416
|
}, [s]), /* @__PURE__ */ i(Ji, { active: r, defaultOpened: s, opened: l, onChange: c, label: e.label, onClick: () => o(e), icon: e.Icon ? /* @__PURE__ */ i(e.Icon, { size: 18 }) : null, children: (d = e.children) == null ? void 0 : d.map((p) => p._type === "ACTION" ? /* @__PURE__ */ i(kz, { action_type: p._action_type, parentID: p.parentID }, `_ADD_${p.value}_`) : /* @__PURE__ */ i(Au, { option: p }, p.value)) }, e.label);
|
|
29400
29417
|
}), Tz = D(() => {
|
|
29401
29418
|
const e = Fe();
|
|
29402
|
-
return /* @__PURE__ */ i(
|
|
29419
|
+
return /* @__PURE__ */ i(N, { sx: {
|
|
29403
29420
|
position: "relative"
|
|
29404
29421
|
}, children: e.editor.navOptions.map((t) => /* @__PURE__ */ i(Au, { option: t }, t.value)) });
|
|
29405
29422
|
}), Dz = D(() => {
|
|
@@ -29521,7 +29538,7 @@ const Lz = {
|
|
|
29521
29538
|
return /* @__PURE__ */ i(bl, { children: /* @__PURE__ */ i(fc, { value: h, children: /* @__PURE__ */ i(yc, { value: h.content, children: /* @__PURE__ */ i(lo.Provider, { value: {
|
|
29522
29539
|
inEditMode: !0
|
|
29523
29540
|
}, children: /* @__PURE__ */ i(jt.Provider, { value: m, children: /* @__PURE__ */ u(ki, { configure: w, children: [
|
|
29524
|
-
/* @__PURE__ */ i(gl, { padding: 0, header: /* @__PURE__ */ i(ZI, { saveDashboardChanges: f, headerSlot: l }), navbar: /* @__PURE__ */ i(TM, {}), styles: Lz, children: /* @__PURE__ */ i(
|
|
29541
|
+
/* @__PURE__ */ i(gl, { padding: 0, header: /* @__PURE__ */ i(ZI, { saveDashboardChanges: f, headerSlot: l }), navbar: /* @__PURE__ */ i(TM, {}), styles: Lz, children: /* @__PURE__ */ i(N, { className: `${a} dashboard-root`, sx: {
|
|
29525
29542
|
position: "relative"
|
|
29526
29543
|
}, children: h.content.views.visibleViews.map((x) => /* @__PURE__ */ i(TI, { view: x }, x.id)) }) }),
|
|
29527
29544
|
/* @__PURE__ */ i(Mz, {})
|
|
@@ -29713,7 +29730,7 @@ const lE = D(({
|
|
|
29713
29730
|
setFullScreenPanelID: s
|
|
29714
29731
|
}, children: /* @__PURE__ */ i(lo.Provider, { value: {
|
|
29715
29732
|
inEditMode: !1
|
|
29716
|
-
}, children: /* @__PURE__ */ i(
|
|
29733
|
+
}, children: /* @__PURE__ */ i(N, { className: `${r} dashboard-root`, children: /* @__PURE__ */ i(jt.Provider, { value: p, children: /* @__PURE__ */ i(ki, { configure: h, children: d.content.views.visibleViews.map((f) => /* @__PURE__ */ i(Ko, { view: f }, f.id)) }) }) }) }) }) }) }) });
|
|
29717
29734
|
});
|
|
29718
29735
|
var da = {}, Fz = {
|
|
29719
29736
|
get exports() {
|
|
@@ -29916,17 +29933,17 @@ var ma = {}, Hz = {
|
|
|
29916
29933
|
(this.zone || (this.zone = {})).offset = function(T) {
|
|
29917
29934
|
if (!T || T === "Z")
|
|
29918
29935
|
return 0;
|
|
29919
|
-
var $ = T.match(/([+-]|\d\d)/g),
|
|
29920
|
-
return
|
|
29936
|
+
var $ = T.match(/([+-]|\d\d)/g), z = 60 * $[1] + (+$[2] || 0);
|
|
29937
|
+
return z === 0 ? 0 : $[0] === "+" ? -z : z;
|
|
29921
29938
|
}(x);
|
|
29922
29939
|
}], h = function(x) {
|
|
29923
29940
|
var T = l[x];
|
|
29924
29941
|
return T && (T.indexOf ? T : T.s.concat(T.f));
|
|
29925
29942
|
}, f = function(x, T) {
|
|
29926
|
-
var $,
|
|
29927
|
-
if (
|
|
29943
|
+
var $, z = l.meridiem;
|
|
29944
|
+
if (z) {
|
|
29928
29945
|
for (var j = 1; j <= 24; j += 1)
|
|
29929
|
-
if (x.indexOf(
|
|
29946
|
+
if (x.indexOf(z(j, 0, T)) > -1) {
|
|
29930
29947
|
$ = j > 12;
|
|
29931
29948
|
break;
|
|
29932
29949
|
}
|
|
@@ -29946,11 +29963,11 @@ var ma = {}, Hz = {
|
|
|
29946
29963
|
}], s: [o, d("seconds")], ss: [o, d("seconds")], m: [o, d("minutes")], mm: [o, d("minutes")], H: [o, d("hours")], h: [o, d("hours")], HH: [o, d("hours")], hh: [o, d("hours")], D: [o, d("day")], DD: [a, d("day")], Do: [s, function(x) {
|
|
29947
29964
|
var T = l.ordinal, $ = x.match(/\d+/);
|
|
29948
29965
|
if (this.day = $[0], T)
|
|
29949
|
-
for (var
|
|
29950
|
-
T(
|
|
29966
|
+
for (var z = 1; z <= 31; z += 1)
|
|
29967
|
+
T(z).replace(/\[|\]/g, "") === x && (this.day = z);
|
|
29951
29968
|
}], M: [o, d("month")], MM: [a, d("month")], MMM: [s, function(x) {
|
|
29952
|
-
var T = h("months"), $ = (h("monthsShort") || T.map(function(
|
|
29953
|
-
return
|
|
29969
|
+
var T = h("months"), $ = (h("monthsShort") || T.map(function(z) {
|
|
29970
|
+
return z.slice(0, 3);
|
|
29954
29971
|
})).indexOf(x) + 1;
|
|
29955
29972
|
if ($ < 1)
|
|
29956
29973
|
throw new Error();
|
|
@@ -29966,18 +29983,18 @@ var ma = {}, Hz = {
|
|
|
29966
29983
|
function w(x) {
|
|
29967
29984
|
var T, $;
|
|
29968
29985
|
T = x, $ = l && l.formats;
|
|
29969
|
-
for (var
|
|
29986
|
+
for (var z = (x = T.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g, function(re, te, ae) {
|
|
29970
29987
|
var ye = ae && ae.toUpperCase();
|
|
29971
29988
|
return te || $[ae] || n[ae] || $[ye].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g, function(xe, Ae, Ue) {
|
|
29972
29989
|
return Ae || Ue.slice(1);
|
|
29973
29990
|
});
|
|
29974
|
-
})).match(r), j =
|
|
29975
|
-
var
|
|
29976
|
-
|
|
29991
|
+
})).match(r), j = z.length, U = 0; U < j; U += 1) {
|
|
29992
|
+
var V = z[U], O = m[V], E = O && O[0], H = O && O[1];
|
|
29993
|
+
z[U] = H ? { regex: E, parser: H } : V.replace(/^\[|\]$/g, "");
|
|
29977
29994
|
}
|
|
29978
29995
|
return function(re) {
|
|
29979
29996
|
for (var te = {}, ae = 0, ye = 0; ae < j; ae += 1) {
|
|
29980
|
-
var xe =
|
|
29997
|
+
var xe = z[ae];
|
|
29981
29998
|
if (typeof xe == "string")
|
|
29982
29999
|
ye += xe.length;
|
|
29983
30000
|
else {
|
|
@@ -29996,12 +30013,12 @@ var ma = {}, Hz = {
|
|
|
29996
30013
|
}
|
|
29997
30014
|
return function(x, T, $) {
|
|
29998
30015
|
$.p.customParseFormat = !0, x && x.parseTwoDigitYear && (c = x.parseTwoDigitYear);
|
|
29999
|
-
var
|
|
30000
|
-
|
|
30001
|
-
var
|
|
30016
|
+
var z = T.prototype, j = z.parse;
|
|
30017
|
+
z.parse = function(U) {
|
|
30018
|
+
var V = U.date, O = U.utc, E = U.args;
|
|
30002
30019
|
this.$u = O;
|
|
30003
|
-
var
|
|
30004
|
-
if (typeof
|
|
30020
|
+
var H = E[1];
|
|
30021
|
+
if (typeof H == "string") {
|
|
30005
30022
|
var re = E[2] === !0, te = E[3] === !0, ae = re || te, ye = E[2];
|
|
30006
30023
|
te && (ye = E[2]), l = this.$locale(), !re && ye && (l = $.Ls[ye]), this.$d = function(Me, Pe, $e) {
|
|
30007
30024
|
try {
|
|
@@ -30014,10 +30031,10 @@ var ma = {}, Hz = {
|
|
|
30014
30031
|
} catch {
|
|
30015
30032
|
return /* @__PURE__ */ new Date("");
|
|
30016
30033
|
}
|
|
30017
|
-
}(
|
|
30018
|
-
} else if (
|
|
30019
|
-
for (var xe =
|
|
30020
|
-
E[1] =
|
|
30034
|
+
}(V, H, O), this.init(), ye && ye !== !0 && (this.$L = this.locale(ye).$L), ae && V != this.format(H) && (this.$d = /* @__PURE__ */ new Date("")), l = {};
|
|
30035
|
+
} else if (H instanceof Array)
|
|
30036
|
+
for (var xe = H.length, Ae = 1; Ae <= xe; Ae += 1) {
|
|
30037
|
+
E[1] = H[Ae - 1];
|
|
30021
30038
|
var Ue = $.apply(this, E);
|
|
30022
30039
|
if (Ue.isValid()) {
|
|
30023
30040
|
this.$d = Ue.$d, this.$L = Ue.$L, this.init();
|
|
@@ -30026,7 +30043,7 @@ var ma = {}, Hz = {
|
|
|
30026
30043
|
Ae === xe && (this.$d = /* @__PURE__ */ new Date(""));
|
|
30027
30044
|
}
|
|
30028
30045
|
else
|
|
30029
|
-
j.call(this,
|
|
30046
|
+
j.call(this, U);
|
|
30030
30047
|
};
|
|
30031
30048
|
};
|
|
30032
30049
|
});
|
|
@@ -30065,25 +30082,25 @@ var ba = {}, Xz = {
|
|
|
30065
30082
|
(function(n, r) {
|
|
30066
30083
|
e.exports = r();
|
|
30067
30084
|
})(ue, function() {
|
|
30068
|
-
var n, r, a = 1e3, o = 6e4, s = 36e5, l = 864e5, c = /\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g, d = 31536e6, p = 2592e6, h = /^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/, f = { years: d, months: p, days: l, hours: s, minutes: o, seconds: a, milliseconds: 1, weeks: 6048e5 }, m = function(
|
|
30069
|
-
return
|
|
30070
|
-
}, w = function(
|
|
30071
|
-
return new
|
|
30072
|
-
}, x = function(
|
|
30073
|
-
return r.p(
|
|
30074
|
-
}, T = function(
|
|
30075
|
-
return
|
|
30076
|
-
}, $ = function(
|
|
30077
|
-
return T(
|
|
30078
|
-
},
|
|
30079
|
-
return Math.abs(
|
|
30080
|
-
}, j = function(
|
|
30081
|
-
return
|
|
30082
|
-
},
|
|
30083
|
-
function
|
|
30085
|
+
var n, r, a = 1e3, o = 6e4, s = 36e5, l = 864e5, c = /\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g, d = 31536e6, p = 2592e6, h = /^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/, f = { years: d, months: p, days: l, hours: s, minutes: o, seconds: a, milliseconds: 1, weeks: 6048e5 }, m = function(V) {
|
|
30086
|
+
return V instanceof U;
|
|
30087
|
+
}, w = function(V, O, E) {
|
|
30088
|
+
return new U(V, E, O.$l);
|
|
30089
|
+
}, x = function(V) {
|
|
30090
|
+
return r.p(V) + "s";
|
|
30091
|
+
}, T = function(V) {
|
|
30092
|
+
return V < 0;
|
|
30093
|
+
}, $ = function(V) {
|
|
30094
|
+
return T(V) ? Math.ceil(V) : Math.floor(V);
|
|
30095
|
+
}, z = function(V) {
|
|
30096
|
+
return Math.abs(V);
|
|
30097
|
+
}, j = function(V, O) {
|
|
30098
|
+
return V ? T(V) ? { negative: !0, format: "" + z(V) + O } : { negative: !1, format: "" + V + O } : { negative: !1, format: "" };
|
|
30099
|
+
}, U = function() {
|
|
30100
|
+
function V(E, H, re) {
|
|
30084
30101
|
var te = this;
|
|
30085
|
-
if (this.$d = {}, this.$l = re, E === void 0 && (this.$ms = 0, this.parseFromMilliseconds()),
|
|
30086
|
-
return w(E * f[x(
|
|
30102
|
+
if (this.$d = {}, this.$l = re, E === void 0 && (this.$ms = 0, this.parseFromMilliseconds()), H)
|
|
30103
|
+
return w(E * f[x(H)], this);
|
|
30087
30104
|
if (typeof E == "number")
|
|
30088
30105
|
return this.$ms = E, this.parseFromMilliseconds(), this;
|
|
30089
30106
|
if (typeof E == "object")
|
|
@@ -30101,42 +30118,42 @@ var ba = {}, Xz = {
|
|
|
30101
30118
|
}
|
|
30102
30119
|
return this;
|
|
30103
30120
|
}
|
|
30104
|
-
var O =
|
|
30121
|
+
var O = V.prototype;
|
|
30105
30122
|
return O.calMilliseconds = function() {
|
|
30106
30123
|
var E = this;
|
|
30107
|
-
this.$ms = Object.keys(this.$d).reduce(function(
|
|
30108
|
-
return
|
|
30124
|
+
this.$ms = Object.keys(this.$d).reduce(function(H, re) {
|
|
30125
|
+
return H + (E.$d[re] || 0) * f[re];
|
|
30109
30126
|
}, 0);
|
|
30110
30127
|
}, O.parseFromMilliseconds = function() {
|
|
30111
30128
|
var E = this.$ms;
|
|
30112
30129
|
this.$d.years = $(E / d), E %= d, this.$d.months = $(E / p), E %= p, this.$d.days = $(E / l), E %= l, this.$d.hours = $(E / s), E %= s, this.$d.minutes = $(E / o), E %= o, this.$d.seconds = $(E / a), E %= a, this.$d.milliseconds = E;
|
|
30113
30130
|
}, O.toISOString = function() {
|
|
30114
|
-
var E = j(this.$d.years, "Y"),
|
|
30131
|
+
var E = j(this.$d.years, "Y"), H = j(this.$d.months, "M"), re = +this.$d.days || 0;
|
|
30115
30132
|
this.$d.weeks && (re += 7 * this.$d.weeks);
|
|
30116
30133
|
var te = j(re, "D"), ae = j(this.$d.hours, "H"), ye = j(this.$d.minutes, "M"), xe = this.$d.seconds || 0;
|
|
30117
30134
|
this.$d.milliseconds && (xe += this.$d.milliseconds / 1e3);
|
|
30118
|
-
var Ae = j(xe, "S"), Ue = E.negative ||
|
|
30135
|
+
var Ae = j(xe, "S"), Ue = E.negative || H.negative || te.negative || ae.negative || ye.negative || Ae.negative, Me = ae.format || ye.format || Ae.format ? "T" : "", Pe = (Ue ? "-" : "") + "P" + E.format + H.format + te.format + Me + ae.format + ye.format + Ae.format;
|
|
30119
30136
|
return Pe === "P" || Pe === "-P" ? "P0D" : Pe;
|
|
30120
30137
|
}, O.toJSON = function() {
|
|
30121
30138
|
return this.toISOString();
|
|
30122
30139
|
}, O.format = function(E) {
|
|
30123
|
-
var
|
|
30124
|
-
return
|
|
30140
|
+
var H = E || "YYYY-MM-DDTHH:mm:ss", re = { Y: this.$d.years, YY: r.s(this.$d.years, 2, "0"), YYYY: r.s(this.$d.years, 4, "0"), M: this.$d.months, MM: r.s(this.$d.months, 2, "0"), D: this.$d.days, DD: r.s(this.$d.days, 2, "0"), H: this.$d.hours, HH: r.s(this.$d.hours, 2, "0"), m: this.$d.minutes, mm: r.s(this.$d.minutes, 2, "0"), s: this.$d.seconds, ss: r.s(this.$d.seconds, 2, "0"), SSS: r.s(this.$d.milliseconds, 3, "0") };
|
|
30141
|
+
return H.replace(c, function(te, ae) {
|
|
30125
30142
|
return ae || String(re[te]);
|
|
30126
30143
|
});
|
|
30127
30144
|
}, O.as = function(E) {
|
|
30128
30145
|
return this.$ms / f[x(E)];
|
|
30129
30146
|
}, O.get = function(E) {
|
|
30130
|
-
var
|
|
30131
|
-
return re === "milliseconds" ?
|
|
30132
|
-
}, O.add = function(E,
|
|
30147
|
+
var H = this.$ms, re = x(E);
|
|
30148
|
+
return re === "milliseconds" ? H %= 1e3 : H = re === "weeks" ? $(H / f[re]) : this.$d[re], H === 0 ? 0 : H;
|
|
30149
|
+
}, O.add = function(E, H, re) {
|
|
30133
30150
|
var te;
|
|
30134
|
-
return te =
|
|
30135
|
-
}, O.subtract = function(E,
|
|
30136
|
-
return this.add(E,
|
|
30151
|
+
return te = H ? E * f[x(H)] : m(E) ? E.$ms : w(E, this).$ms, w(this.$ms + te * (re ? -1 : 1), this);
|
|
30152
|
+
}, O.subtract = function(E, H) {
|
|
30153
|
+
return this.add(E, H, !0);
|
|
30137
30154
|
}, O.locale = function(E) {
|
|
30138
|
-
var
|
|
30139
|
-
return
|
|
30155
|
+
var H = this.clone();
|
|
30156
|
+
return H.$l = E, H;
|
|
30140
30157
|
}, O.clone = function() {
|
|
30141
30158
|
return w(this.$ms, this);
|
|
30142
30159
|
}, O.humanize = function(E) {
|
|
@@ -30173,16 +30190,16 @@ var ba = {}, Xz = {
|
|
|
30173
30190
|
return this.get("years");
|
|
30174
30191
|
}, O.asYears = function() {
|
|
30175
30192
|
return this.as("years");
|
|
30176
|
-
},
|
|
30193
|
+
}, V;
|
|
30177
30194
|
}();
|
|
30178
|
-
return function(
|
|
30195
|
+
return function(V, O, E) {
|
|
30179
30196
|
n = E, r = E().$utils(), E.duration = function(te, ae) {
|
|
30180
30197
|
var ye = E.locale();
|
|
30181
30198
|
return w(te, { $l: ye }, ae);
|
|
30182
30199
|
}, E.isDuration = m;
|
|
30183
|
-
var
|
|
30200
|
+
var H = O.prototype.add, re = O.prototype.subtract;
|
|
30184
30201
|
O.prototype.add = function(te, ae) {
|
|
30185
|
-
return m(te) && (te = te.asMilliseconds()),
|
|
30202
|
+
return m(te) && (te = te.asMilliseconds()), H.bind(this)(te, ae);
|
|
30186
30203
|
}, O.prototype.subtract = function(te, ae) {
|
|
30187
30204
|
return m(te) && (te = te.asMilliseconds()), re.bind(this)(te, ae);
|
|
30188
30205
|
};
|
|
@@ -30427,14 +30444,14 @@ var Ia = {}, xL = {
|
|
|
30427
30444
|
var o = r.prototype, s = function(h) {
|
|
30428
30445
|
return h && (h.indexOf ? h : h.s);
|
|
30429
30446
|
}, l = function(h, f, m, w, x) {
|
|
30430
|
-
var T = h.name ? h : h.$locale(), $ = s(T[f]),
|
|
30431
|
-
return
|
|
30447
|
+
var T = h.name ? h : h.$locale(), $ = s(T[f]), z = s(T[m]), j = $ || z.map(function(V) {
|
|
30448
|
+
return V.slice(0, w);
|
|
30432
30449
|
});
|
|
30433
30450
|
if (!x)
|
|
30434
30451
|
return j;
|
|
30435
|
-
var
|
|
30436
|
-
return j.map(function(
|
|
30437
|
-
return j[(O + (
|
|
30452
|
+
var U = T.weekStart;
|
|
30453
|
+
return j.map(function(V, O) {
|
|
30454
|
+
return j[(O + (U || 0)) % 7];
|
|
30438
30455
|
});
|
|
30439
30456
|
}, c = function() {
|
|
30440
30457
|
return a.Ls[a.locale()];
|
|
@@ -30516,8 +30533,8 @@ var Ma = {}, wL = {
|
|
|
30516
30533
|
var d = this.$locale().formats, p = function(h, f) {
|
|
30517
30534
|
return h.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g, function(m, w, x) {
|
|
30518
30535
|
var T = x && x.toUpperCase();
|
|
30519
|
-
return w || f[x] || n[x] || f[T].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g, function($,
|
|
30520
|
-
return
|
|
30536
|
+
return w || f[x] || n[x] || f[T].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g, function($, z, j) {
|
|
30537
|
+
return z || j.slice(1);
|
|
30521
30538
|
});
|
|
30522
30539
|
});
|
|
30523
30540
|
}(c, d === void 0 ? {} : d);
|
|
@@ -30583,8 +30600,8 @@ var za = {}, kL = {
|
|
|
30583
30600
|
var te, ae;
|
|
30584
30601
|
T[te = re, ae = o.$utils().p(te), ae === "date" ? "day" : ae] = w[re];
|
|
30585
30602
|
});
|
|
30586
|
-
var
|
|
30587
|
-
return x ? new Date(Date.UTC(j,
|
|
30603
|
+
var z = T.day || (T.year || T.month >= 0 ? 1 : $.date()), j = T.year || $.year(), U = T.month >= 0 ? T.month : T.year || T.day ? 0 : $.month(), V = T.hour || 0, O = T.minute || 0, E = T.second || 0, H = T.millisecond || 0;
|
|
30604
|
+
return x ? new Date(Date.UTC(j, U, z, V, O, E, H)) : new Date(j, U, z, V, O, E, H);
|
|
30588
30605
|
}
|
|
30589
30606
|
return w;
|
|
30590
30607
|
}, l = o.parse;
|
|
@@ -30594,8 +30611,8 @@ var za = {}, kL = {
|
|
|
30594
30611
|
var c = o.set, d = o.add, p = o.subtract, h = function(f, m, w, x) {
|
|
30595
30612
|
x === void 0 && (x = 1);
|
|
30596
30613
|
var T = Object.keys(m), $ = this;
|
|
30597
|
-
return T.forEach(function(
|
|
30598
|
-
$ = f.bind($)(m[
|
|
30614
|
+
return T.forEach(function(z) {
|
|
30615
|
+
$ = f.bind($)(m[z] * x, z);
|
|
30599
30616
|
}), $;
|
|
30600
30617
|
};
|
|
30601
30618
|
o.set = function(f, m) {
|
|
@@ -30723,21 +30740,21 @@ var Ra = {}, AL = {
|
|
|
30723
30740
|
return o.fromToBase(d, p, h, f);
|
|
30724
30741
|
}
|
|
30725
30742
|
a.en.relativeTime = s, o.fromToBase = function(d, p, h, f, m) {
|
|
30726
|
-
for (var w, x, T, $ = h.$locale().relativeTime || s,
|
|
30727
|
-
var
|
|
30728
|
-
|
|
30743
|
+
for (var w, x, T, $ = h.$locale().relativeTime || s, z = n.thresholds || [{ l: "s", r: 44, d: "second" }, { l: "m", r: 89 }, { l: "mm", r: 44, d: "minute" }, { l: "h", r: 89 }, { l: "hh", r: 21, d: "hour" }, { l: "d", r: 35 }, { l: "dd", r: 25, d: "day" }, { l: "M", r: 45 }, { l: "MM", r: 10, d: "month" }, { l: "y", r: 17 }, { l: "yy", d: "year" }], j = z.length, U = 0; U < j; U += 1) {
|
|
30744
|
+
var V = z[U];
|
|
30745
|
+
V.d && (w = f ? a(d).diff(h, V.d, !0) : h.diff(d, V.d, !0));
|
|
30729
30746
|
var O = (n.rounding || Math.round)(Math.abs(w));
|
|
30730
|
-
if (T = w > 0, O <=
|
|
30731
|
-
O <= 1 &&
|
|
30732
|
-
var E = $[
|
|
30733
|
-
m && (O = m("" + O)), x = typeof E == "string" ? E.replace("%d", O) : E(O, p,
|
|
30747
|
+
if (T = w > 0, O <= V.r || !V.r) {
|
|
30748
|
+
O <= 1 && U > 0 && (V = z[U - 1]);
|
|
30749
|
+
var E = $[V.l];
|
|
30750
|
+
m && (O = m("" + O)), x = typeof E == "string" ? E.replace("%d", O) : E(O, p, V.l, T);
|
|
30734
30751
|
break;
|
|
30735
30752
|
}
|
|
30736
30753
|
}
|
|
30737
30754
|
if (p)
|
|
30738
30755
|
return x;
|
|
30739
|
-
var
|
|
30740
|
-
return typeof
|
|
30756
|
+
var H = T ? $.future : $.past;
|
|
30757
|
+
return typeof H == "function" ? H(x) : H.replace("%s", x);
|
|
30741
30758
|
}, o.to = function(d, p) {
|
|
30742
30759
|
return l(d, p, this, !0);
|
|
30743
30760
|
}, o.from = function(d, p) {
|
|
@@ -30771,28 +30788,28 @@ var Oa = {}, RL = {
|
|
|
30771
30788
|
return function(a, o, s) {
|
|
30772
30789
|
var l, c = function(f, m, w) {
|
|
30773
30790
|
w === void 0 && (w = {});
|
|
30774
|
-
var x = new Date(f), T = function($,
|
|
30775
|
-
|
|
30776
|
-
var j =
|
|
30777
|
-
return
|
|
30791
|
+
var x = new Date(f), T = function($, z) {
|
|
30792
|
+
z === void 0 && (z = {});
|
|
30793
|
+
var j = z.timeZoneName || "short", U = $ + "|" + j, V = r[U];
|
|
30794
|
+
return V || (V = new Intl.DateTimeFormat("en-US", { hour12: !1, timeZone: $, year: "numeric", month: "2-digit", day: "2-digit", hour: "2-digit", minute: "2-digit", second: "2-digit", timeZoneName: j }), r[U] = V), V;
|
|
30778
30795
|
}(m, w);
|
|
30779
30796
|
return T.formatToParts(x);
|
|
30780
30797
|
}, d = function(f, m) {
|
|
30781
30798
|
for (var w = c(f, m), x = [], T = 0; T < w.length; T += 1) {
|
|
30782
|
-
var $ = w[T],
|
|
30783
|
-
|
|
30799
|
+
var $ = w[T], z = $.type, j = $.value, U = n[z];
|
|
30800
|
+
U >= 0 && (x[U] = parseInt(j, 10));
|
|
30784
30801
|
}
|
|
30785
|
-
var
|
|
30786
|
-
return (s.utc(E).valueOf() - (
|
|
30802
|
+
var V = x[3], O = V === 24 ? 0 : V, E = x[0] + "-" + x[1] + "-" + x[2] + " " + O + ":" + x[4] + ":" + x[5] + ":000", H = +f;
|
|
30803
|
+
return (s.utc(E).valueOf() - (H -= H % 1e3)) / 6e4;
|
|
30787
30804
|
}, p = o.prototype;
|
|
30788
30805
|
p.tz = function(f, m) {
|
|
30789
30806
|
f === void 0 && (f = l);
|
|
30790
|
-
var w = this.utcOffset(), x = this.toDate(), T = x.toLocaleString("en-US", { timeZone: f }), $ = Math.round((x - new Date(T)) / 1e3 / 60),
|
|
30807
|
+
var w = this.utcOffset(), x = this.toDate(), T = x.toLocaleString("en-US", { timeZone: f }), $ = Math.round((x - new Date(T)) / 1e3 / 60), z = s(T).$set("millisecond", this.$ms).utcOffset(15 * -Math.round(x.getTimezoneOffset() / 15) - $, !0);
|
|
30791
30808
|
if (m) {
|
|
30792
|
-
var j =
|
|
30793
|
-
|
|
30809
|
+
var j = z.utcOffset();
|
|
30810
|
+
z = z.add(w - j, "minute");
|
|
30794
30811
|
}
|
|
30795
|
-
return
|
|
30812
|
+
return z.$x.$timezone = f, z;
|
|
30796
30813
|
}, p.offsetName = function(f) {
|
|
30797
30814
|
var m = this.$x.$timezone || s.tz.guess(), w = c(this.valueOf(), m, { timeZoneName: f }).find(function(x) {
|
|
30798
30815
|
return x.type.toLowerCase() === "timezonename";
|
|
@@ -30809,14 +30826,14 @@ var Oa = {}, RL = {
|
|
|
30809
30826
|
var x = w && m, T = w || m || l, $ = d(+s(), T);
|
|
30810
30827
|
if (typeof f != "string")
|
|
30811
30828
|
return s(f).tz(T);
|
|
30812
|
-
var
|
|
30813
|
-
var re = O - 60 * E * 1e3, te = d(re,
|
|
30829
|
+
var z = function(O, E, H) {
|
|
30830
|
+
var re = O - 60 * E * 1e3, te = d(re, H);
|
|
30814
30831
|
if (E === te)
|
|
30815
30832
|
return [re, E];
|
|
30816
|
-
var ae = d(re -= 60 * (te - E) * 1e3,
|
|
30833
|
+
var ae = d(re -= 60 * (te - E) * 1e3, H);
|
|
30817
30834
|
return te === ae ? [re, te] : [O - 60 * Math.min(te, ae) * 1e3, Math.max(te, ae)];
|
|
30818
|
-
}(s.utc(f, x).valueOf(), $, T), j =
|
|
30819
|
-
return
|
|
30835
|
+
}(s.utc(f, x).valueOf(), $, T), j = z[0], U = z[1], V = s(j).utcOffset(U);
|
|
30836
|
+
return V.$x.$timezone = T, V;
|
|
30820
30837
|
}, s.tz.guess = function() {
|
|
30821
30838
|
return Intl.DateTimeFormat().resolvedOptions().timeZone;
|
|
30822
30839
|
}, s.tz.setDefault = function(f) {
|
|
@@ -30931,21 +30948,21 @@ var Na = {}, WL = {
|
|
|
30931
30948
|
var $ = this.$utils().u;
|
|
30932
30949
|
if ($(x))
|
|
30933
30950
|
return this.$u ? 0 : $(this.$offset) ? h.call(this) : this.$offset;
|
|
30934
|
-
if (typeof x == "string" && (x = function(
|
|
30935
|
-
|
|
30936
|
-
var O =
|
|
30951
|
+
if (typeof x == "string" && (x = function(V) {
|
|
30952
|
+
V === void 0 && (V = "");
|
|
30953
|
+
var O = V.match(r);
|
|
30937
30954
|
if (!O)
|
|
30938
30955
|
return null;
|
|
30939
|
-
var E = ("" + O[0]).match(a) || ["-", 0, 0],
|
|
30940
|
-
return re === 0 ? 0 :
|
|
30956
|
+
var E = ("" + O[0]).match(a) || ["-", 0, 0], H = E[0], re = 60 * +E[1] + +E[2];
|
|
30957
|
+
return re === 0 ? 0 : H === "+" ? re : -re;
|
|
30941
30958
|
}(x), x === null))
|
|
30942
30959
|
return this;
|
|
30943
|
-
var
|
|
30960
|
+
var z = Math.abs(x) <= 16 ? 60 * x : x, j = this;
|
|
30944
30961
|
if (T)
|
|
30945
|
-
return j.$offset =
|
|
30962
|
+
return j.$offset = z, j.$u = x === 0, j;
|
|
30946
30963
|
if (x !== 0) {
|
|
30947
|
-
var
|
|
30948
|
-
(j = this.local().add(
|
|
30964
|
+
var U = this.$u ? this.toDate().getTimezoneOffset() : -1 * this.utcOffset();
|
|
30965
|
+
(j = this.local().add(z + U, n)).$offset = z, j.$x.$localOffset = U;
|
|
30949
30966
|
} else
|
|
30950
30967
|
j = this.utc();
|
|
30951
30968
|
return j;
|
|
@@ -30972,8 +30989,8 @@ var Na = {}, WL = {
|
|
|
30972
30989
|
c.diff = function(x, T, $) {
|
|
30973
30990
|
if (x && this.$u === x.$u)
|
|
30974
30991
|
return w.call(this, x, T, $);
|
|
30975
|
-
var
|
|
30976
|
-
return w.call(
|
|
30992
|
+
var z = this.local(), j = l(x).local();
|
|
30993
|
+
return w.call(z, j, T, $);
|
|
30977
30994
|
};
|
|
30978
30995
|
};
|
|
30979
30996
|
});
|