@devtable/dashboard 10.9.3 → 10.9.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/dashboard.es.js +753 -730
- package/dist/dashboard.umd.js +35 -35
- package/dist/plugins/viz-components/table/type.d.ts +1 -1
- package/dist/stats.html +1 -1
- package/package.json +1 -1
package/dist/dashboard.es.js
CHANGED
|
@@ -2,14 +2,14 @@ var bu = Object.defineProperty;
|
|
|
2
2
|
var yu = (t, e, n) => e in t ? bu(t, e, { enumerable: !0, configurable: !0, writable: !0, value: n }) : t[e] = n;
|
|
3
3
|
var Y = (t, e, n) => (yu(t, typeof e != "symbol" ? e + "" : e, n), n);
|
|
4
4
|
import z, { useEffect as W, useState as K, useCallback as ot, useMemo as M, forwardRef as Se, createElement as Xr, useContext as Ot, useRef as Js, createContext as Zs, memo as xu } from "react";
|
|
5
|
-
import { Text as C, Select as P, Stack as S, Group as w, TextInput as A, Button as $, Box as V, Switch as Je, NumberInput as le, Divider as R, Paper as Vo, Code as rs, Modal as
|
|
5
|
+
import { Text as C, Select as P, Stack as S, Group as w, TextInput as A, Button as $, Box as V, Switch as Je, NumberInput as le, Divider as R, Paper as Vo, Code as rs, Modal as Ie, Tabs as g, ActionIcon as Q, LoadingOverlay as Cn, Alert as el, useMantineTheme as tl, ColorInput as No, ColorSwatch as ji, Slider as vu, Overlay as on, Checkbox as we, Center as Sn, CheckIcon as wu, MANTINE_SIZES as _u, SimpleGrid as tn, Tooltip as Ve, SegmentedControl as Cu, HoverCard as rt, Anchor as Gi, Textarea as Su, Collapse as Bo, Table as Ft, NativeSelect as nl, Flex as Nn, MultiSelect as sr, createStyles as Bn, Popover as Mi, Badge as lr, CloseButton as rl, Menu as He, Header as ku, ThemeIcon as $i, List as is, UnstyledButton as Tu, Navbar as Bt, JsonInput as il, Drawer as Du, Radio as os, Skeleton as as, NavLink as Yi, Pagination as Iu, AppShell as ol } from "@mantine/core";
|
|
6
6
|
import { useModals as Gt, ModalsProvider as al } from "@mantine/modals";
|
|
7
7
|
import { useBoolean as et, useCreation as Tt, useAsyncEffect as gr, useRequest as xn, useLatest as ss, usePrevious as Mu } from "ahooks";
|
|
8
8
|
import { toJS as an, reaction as kt, makeAutoObservable as br, observable as sl, runInAction as rr } from "mobx";
|
|
9
9
|
import { observer as D } from "mobx-react-lite";
|
|
10
10
|
import ll from "crypto-js";
|
|
11
11
|
import Z from "dayjs";
|
|
12
|
-
import k, { template as qo, cloneDeepWith as cl, get as de, isEqual as Ce, orderBy as $u, last as dl, omit as vn, values as ul, unset as zu, isObject as hl, set as Wo, isFunction as Lu, defaults as Ne, minBy as Au, maxBy as Eu, cloneDeep as Qe, throttle as Ru, defaultsDeep as
|
|
12
|
+
import k, { template as qo, cloneDeepWith as cl, get as de, isEqual as Ce, orderBy as $u, last as dl, omit as vn, values as ul, unset as zu, isObject as hl, set as Wo, isFunction as Lu, defaults as Ne, minBy as Au, maxBy as Eu, cloneDeep as Qe, throttle as Ru, defaultsDeep as Me, keyBy as Ou, isEmpty as pl, isNumber as Fu, findLastIndex as Pu, isString as fl, range as Vu, pick as ml } from "lodash";
|
|
13
13
|
import ce from "numbro";
|
|
14
14
|
import * as Nu from "d3-array";
|
|
15
15
|
import { quantile as zr } from "d3-array";
|
|
@@ -200,14 +200,14 @@ function mp() {
|
|
|
200
200
|
}
|
|
201
201
|
return null;
|
|
202
202
|
}
|
|
203
|
-
var
|
|
203
|
+
var $e = Object.assign, Ye = 0, ke, Fe, Te, Xe, gt, un, wr;
|
|
204
204
|
function _r() {
|
|
205
205
|
}
|
|
206
206
|
_r.__reactDisabledLog = !0;
|
|
207
207
|
function _i() {
|
|
208
208
|
{
|
|
209
209
|
if (Ye === 0) {
|
|
210
|
-
ke = console.log, Fe = console.info,
|
|
210
|
+
ke = console.log, Fe = console.info, Te = console.warn, Xe = console.error, gt = console.group, un = console.groupCollapsed, wr = console.groupEnd;
|
|
211
211
|
var _ = {
|
|
212
212
|
configurable: !0,
|
|
213
213
|
enumerable: !0,
|
|
@@ -236,25 +236,25 @@ function mp() {
|
|
|
236
236
|
writable: !0
|
|
237
237
|
};
|
|
238
238
|
Object.defineProperties(console, {
|
|
239
|
-
log:
|
|
239
|
+
log: $e({}, _, {
|
|
240
240
|
value: ke
|
|
241
241
|
}),
|
|
242
|
-
info:
|
|
242
|
+
info: $e({}, _, {
|
|
243
243
|
value: Fe
|
|
244
244
|
}),
|
|
245
|
-
warn:
|
|
246
|
-
value:
|
|
245
|
+
warn: $e({}, _, {
|
|
246
|
+
value: Te
|
|
247
247
|
}),
|
|
248
|
-
error:
|
|
248
|
+
error: $e({}, _, {
|
|
249
249
|
value: Xe
|
|
250
250
|
}),
|
|
251
|
-
group:
|
|
251
|
+
group: $e({}, _, {
|
|
252
252
|
value: gt
|
|
253
253
|
}),
|
|
254
|
-
groupCollapsed:
|
|
254
|
+
groupCollapsed: $e({}, _, {
|
|
255
255
|
value: un
|
|
256
256
|
}),
|
|
257
|
-
groupEnd:
|
|
257
|
+
groupEnd: $e({}, _, {
|
|
258
258
|
value: wr
|
|
259
259
|
})
|
|
260
260
|
});
|
|
@@ -950,7 +950,7 @@ const kp = {
|
|
|
950
950
|
freezeLayout: k.noop,
|
|
951
951
|
inEditMode: !1
|
|
952
952
|
}, In = z.createContext(kp), ec = z.createContext(null), tc = ec.Provider;
|
|
953
|
-
function
|
|
953
|
+
function Le() {
|
|
954
954
|
const t = z.useContext(ec);
|
|
955
955
|
if (!t)
|
|
956
956
|
throw new Error("Please use ModelContextProvider");
|
|
@@ -1073,9 +1073,9 @@ const rc = b.model("FilterConfigModel_Checkbox", {
|
|
|
1073
1073
|
description: "",
|
|
1074
1074
|
default_value: !1
|
|
1075
1075
|
});
|
|
1076
|
-
var
|
|
1076
|
+
var ze = /* @__PURE__ */ ((t) => (t.Postgresql = "postgresql", t.MySQL = "mysql", t.HTTP = "http", t))(ze || {}), Ue = /* @__PURE__ */ ((t) => (t.Select = "select", t.MultiSelect = "multi-select", t.TreeSelect = "tree-select", t.TextInput = "text-input", t.Checkbox = "checkbox", t.DateRange = "date-range", t))(Ue || {});
|
|
1077
1077
|
b.model({
|
|
1078
|
-
type: b.enumeration("DataSourceType", [
|
|
1078
|
+
type: b.enumeration("DataSourceType", [ze.Postgresql, ze.MySQL, ze.HTTP]),
|
|
1079
1079
|
key: b.string,
|
|
1080
1080
|
sql: b.string
|
|
1081
1081
|
});
|
|
@@ -1716,7 +1716,7 @@ function pc(t) {
|
|
|
1716
1716
|
const Bp = b.model("QueryModel", {
|
|
1717
1717
|
id: b.string,
|
|
1718
1718
|
name: b.string,
|
|
1719
|
-
type: b.enumeration("DataSourceType", [
|
|
1719
|
+
type: b.enumeration("DataSourceType", [ze.Postgresql, ze.MySQL, ze.HTTP]),
|
|
1720
1720
|
key: b.string,
|
|
1721
1721
|
sql: b.string,
|
|
1722
1722
|
pre_process: b.optional(b.string, ""),
|
|
@@ -1725,7 +1725,7 @@ const Bp = b.model("QueryModel", {
|
|
|
1725
1725
|
react_to: b.optional(b.array(b.string), [])
|
|
1726
1726
|
}).views((t) => ({
|
|
1727
1727
|
get valid() {
|
|
1728
|
-
return t.id && t.type && t.key && t.name ? t.type ===
|
|
1728
|
+
return t.id && t.type && t.key && t.name ? t.type === ze.HTTP ? !!t.pre_process : !!t.sql : !1;
|
|
1729
1729
|
},
|
|
1730
1730
|
get json() {
|
|
1731
1731
|
const {
|
|
@@ -1867,10 +1867,10 @@ const Hp = b.compose("QueryModel", Bp, b.model({
|
|
|
1867
1867
|
return Qo(t.sql, e);
|
|
1868
1868
|
},
|
|
1869
1869
|
get typedAsSQL() {
|
|
1870
|
-
return [
|
|
1870
|
+
return [ze.Postgresql, ze.MySQL].includes(t.type);
|
|
1871
1871
|
},
|
|
1872
1872
|
get typedAsHTTP() {
|
|
1873
|
-
return [
|
|
1873
|
+
return [ze.HTTP].includes(t.type);
|
|
1874
1874
|
},
|
|
1875
1875
|
get datasource() {
|
|
1876
1876
|
const {
|
|
@@ -2158,13 +2158,13 @@ const Hp = b.compose("QueryModel", Bp, b.model({
|
|
|
2158
2158
|
table_name: r,
|
|
2159
2159
|
table_schema: o
|
|
2160
2160
|
} = e;
|
|
2161
|
-
if (n ===
|
|
2161
|
+
if (n === ze.MySQL)
|
|
2162
2162
|
return `
|
|
2163
2163
|
SELECT ordinal_position, column_key, column_name, column_type, is_nullable, column_default, column_comment
|
|
2164
2164
|
FROM information_schema.columns
|
|
2165
2165
|
WHERE table_name = '${r}' AND table_schema = '${o}'
|
|
2166
2166
|
`;
|
|
2167
|
-
if (n ===
|
|
2167
|
+
if (n === ze.Postgresql) {
|
|
2168
2168
|
const a = `'${o}.${r}'::regclass`;
|
|
2169
2169
|
return `
|
|
2170
2170
|
SELECT
|
|
@@ -2204,7 +2204,7 @@ const Hp = b.compose("QueryModel", Bp, b.model({
|
|
|
2204
2204
|
table_name: r,
|
|
2205
2205
|
table_schema: o
|
|
2206
2206
|
} = e;
|
|
2207
|
-
return n ===
|
|
2207
|
+
return n === ze.MySQL ? `
|
|
2208
2208
|
SELECT
|
|
2209
2209
|
sub_part AS index_length,
|
|
2210
2210
|
index_name AS index_name,
|
|
@@ -2217,7 +2217,7 @@ const Hp = b.compose("QueryModel", Bp, b.model({
|
|
|
2217
2217
|
table_name = '${r}' AND table_schema = '${o}'
|
|
2218
2218
|
ORDER BY
|
|
2219
2219
|
seq_in_index ASC;
|
|
2220
|
-
` : n ===
|
|
2220
|
+
` : n === ze.Postgresql ? `
|
|
2221
2221
|
SELECT
|
|
2222
2222
|
ix.relname AS index_name,
|
|
2223
2223
|
upper(am.amname) AS index_algorithm,
|
|
@@ -2254,7 +2254,7 @@ const Hp = b.compose("QueryModel", Bp, b.model({
|
|
|
2254
2254
|
},
|
|
2255
2255
|
get sql() {
|
|
2256
2256
|
const e = it(t, 1).type;
|
|
2257
|
-
return e ===
|
|
2257
|
+
return e === ze.MySQL || e === ze.Postgresql ? "SELECT table_schema, table_name, table_type FROM information_schema.tables ORDER BY table_schema, table_name" : "";
|
|
2258
2258
|
}
|
|
2259
2259
|
})), tf = b.model({
|
|
2260
2260
|
page: b.optional(b.number, 1),
|
|
@@ -2327,7 +2327,7 @@ const Hp = b.compose("QueryModel", Bp, b.model({
|
|
|
2327
2327
|
}
|
|
2328
2328
|
})), nf = b.model("DataSourceModel", {
|
|
2329
2329
|
id: b.string,
|
|
2330
|
-
type: b.enumeration("DataSourceType", [
|
|
2330
|
+
type: b.enumeration("DataSourceType", [ze.HTTP, ze.MySQL, ze.Postgresql]),
|
|
2331
2331
|
key: b.string,
|
|
2332
2332
|
config: b.frozen(),
|
|
2333
2333
|
tables: b.optional(ef, {}),
|
|
@@ -3024,7 +3024,7 @@ class Zo {
|
|
|
3024
3024
|
}), this.instanceRegistry.clear(), this.factoryRegistry.clear();
|
|
3025
3025
|
}
|
|
3026
3026
|
}
|
|
3027
|
-
const yc = "10.9.
|
|
3027
|
+
const yc = "10.9.5", Cf = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
3028
3028
|
__proto__: null,
|
|
3029
3029
|
version: yc
|
|
3030
3030
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
@@ -3782,7 +3782,7 @@ const Wf = D((t) => {
|
|
|
3782
3782
|
await c.configOperation(a, l);
|
|
3783
3783
|
}, [a, c]), Vf(c) ? /* @__PURE__ */ u(G, { children: [
|
|
3784
3784
|
/* @__PURE__ */ i(Nf, { model: c, onClick: n }),
|
|
3785
|
-
/* @__PURE__ */ i(
|
|
3785
|
+
/* @__PURE__ */ i(Ie, { size: 600, opened: e, onClose: r, title: "Operation Settings", zIndex: 320, children: /* @__PURE__ */ u(S, { children: [
|
|
3786
3786
|
/* @__PURE__ */ i(qf, { model: c }),
|
|
3787
3787
|
/* @__PURE__ */ u(g, { defaultValue: "settings", children: [
|
|
3788
3788
|
/* @__PURE__ */ u(g.List, { children: [
|
|
@@ -3861,7 +3861,7 @@ const Hf = D(({
|
|
|
3861
3861
|
setFalse: r
|
|
3862
3862
|
}] = et(!1), o = t.model;
|
|
3863
3863
|
return /* @__PURE__ */ u(G, { children: [
|
|
3864
|
-
/* @__PURE__ */ i(
|
|
3864
|
+
/* @__PURE__ */ i(Ie, { opened: e, onClose: r, title: "Setup Trigger", zIndex: 320, children: /* @__PURE__ */ u(S, { children: [
|
|
3865
3865
|
/* @__PURE__ */ i(Qf, { model: o }),
|
|
3866
3866
|
/* @__PURE__ */ i(Uf, { model: o }),
|
|
3867
3867
|
/* @__PURE__ */ i(Cc, { title: "Payload", variables: o.triggerSchema.payload })
|
|
@@ -4911,7 +4911,7 @@ const Om = ({
|
|
|
4911
4911
|
/* @__PURE__ */ i($, { variant: "filled", mt: 24, onClick: o, sx: {
|
|
4912
4912
|
flexGrow: 0
|
|
4913
4913
|
}, children: "Customize Label" }),
|
|
4914
|
-
/* @__PURE__ */ i(
|
|
4914
|
+
/* @__PURE__ */ i(Ie, { size: 800, title: "Customize label content", opened: r, onClose: a, closeOnClickOutside: !1, withCloseButton: !1, zIndex: 320, children: r && /* @__PURE__ */ u(S, { children: [
|
|
4915
4915
|
/* @__PURE__ */ i(we, { mt: 10, label: "Enabled", checked: s.enabled, onChange: (m) => c(m.currentTarget.checked) }),
|
|
4916
4916
|
/* @__PURE__ */ i(Om, { value: s.func_content, onChange: h, disabled: !s.enabled }),
|
|
4917
4917
|
/* @__PURE__ */ u(w, { position: "apart", children: [
|
|
@@ -5364,7 +5364,7 @@ const ra = {
|
|
|
5364
5364
|
instance: e
|
|
5365
5365
|
}), r = Mt(n.triggerManager, Dc.id), o = re(), {
|
|
5366
5366
|
value: a
|
|
5367
|
-
} = X(t.instanceData, "config"), s = M(() =>
|
|
5367
|
+
} = X(t.instanceData, "config"), s = M(() => Me({}, a, ra), [a]), {
|
|
5368
5368
|
content: l,
|
|
5369
5369
|
horizontal_align: c,
|
|
5370
5370
|
vertical_align: d,
|
|
@@ -5454,7 +5454,7 @@ function cg({
|
|
|
5454
5454
|
const {
|
|
5455
5455
|
value: e,
|
|
5456
5456
|
set: n
|
|
5457
|
-
} = X(t.instanceData, "config"), r = M(() =>
|
|
5457
|
+
} = X(t.instanceData, "config"), r = M(() => Me({}, e, ra), [e]), o = r;
|
|
5458
5458
|
W(() => {
|
|
5459
5459
|
!Ce(r, o) && (console.log("config malformed, resetting to defaults", r, o), n(o));
|
|
5460
5460
|
}, [r, o]);
|
|
@@ -6144,7 +6144,7 @@ function Rg(t, e, n) {
|
|
|
6144
6144
|
legend: bg(s),
|
|
6145
6145
|
dataZoom: aa(t.dataZoom)
|
|
6146
6146
|
};
|
|
6147
|
-
return
|
|
6147
|
+
return Me({}, c, Eg);
|
|
6148
6148
|
}
|
|
6149
6149
|
function vs(t) {
|
|
6150
6150
|
const e = t.getModel(), n = e.getSeries().map((r) => {
|
|
@@ -6849,7 +6849,7 @@ const Jg = ({
|
|
|
6849
6849
|
}, children: /* @__PURE__ */ i($, { variant: "filled", mt: 24, onClick: r, sx: {
|
|
6850
6850
|
flexGrow: 0
|
|
6851
6851
|
}, children: "Setup" }) }),
|
|
6852
|
-
/* @__PURE__ */ i(
|
|
6852
|
+
/* @__PURE__ */ i(Ie, { size: 800, title: "Setup dynamic size", opened: n, onClose: o, closeOnClickOutside: !1, withCloseButton: !1, zIndex: 320, children: n && /* @__PURE__ */ u(S, { children: [
|
|
6853
6853
|
/* @__PURE__ */ i(R, { mt: 10, mb: -10, label: "Dynamic by a custom function", labelPosition: "center", variant: "dashed" }),
|
|
6854
6854
|
/* @__PURE__ */ i(Jg, { value: a.func_content, onChange: d }),
|
|
6855
6855
|
/* @__PURE__ */ u(w, { position: "apart", children: [
|
|
@@ -7413,7 +7413,7 @@ function yb({
|
|
|
7413
7413
|
set: n
|
|
7414
7414
|
} = X(t.instanceData, "config"), {
|
|
7415
7415
|
variables: r
|
|
7416
|
-
} = t, o = M(() =>
|
|
7416
|
+
} = t, o = M(() => Me({}, e, oa), [e]), {
|
|
7417
7417
|
control: a,
|
|
7418
7418
|
handleSubmit: s,
|
|
7419
7419
|
watch: l,
|
|
@@ -8641,7 +8641,7 @@ const fy = ({
|
|
|
8641
8641
|
}, children: /* @__PURE__ */ i($, { variant: "filled", mt: 24, onClick: r, sx: {
|
|
8642
8642
|
flexGrow: 0
|
|
8643
8643
|
}, children: "Setup" }) }),
|
|
8644
|
-
/* @__PURE__ */ i(
|
|
8644
|
+
/* @__PURE__ */ i(Ie, { size: 800, title: "Setup dynamic value", opened: n, onClose: o, closeOnClickOutside: !1, withCloseButton: !1, zIndex: 320, children: n && /* @__PURE__ */ u(S, { children: [
|
|
8645
8645
|
/* @__PURE__ */ i(R, { mt: 10, mb: -10, label: "Dynamic by a custom function", labelPosition: "center", variant: "dashed" }),
|
|
8646
8646
|
/* @__PURE__ */ i(fy, { value: a.value, onChange: d }),
|
|
8647
8647
|
/* @__PURE__ */ u(w, { position: "apart", children: [
|
|
@@ -8817,7 +8817,7 @@ function Cy(t, e, n) {
|
|
|
8817
8817
|
grid: cy(t),
|
|
8818
8818
|
visualMap: xy(t, r)
|
|
8819
8819
|
};
|
|
8820
|
-
return
|
|
8820
|
+
return Me({}, s, _y);
|
|
8821
8821
|
}
|
|
8822
8822
|
function Sy(t) {
|
|
8823
8823
|
return /* @__PURE__ */ i(G, {});
|
|
@@ -9130,7 +9130,7 @@ const Ly = ({
|
|
|
9130
9130
|
/* @__PURE__ */ i($, { variant: "filled", mt: 24, onClick: o, sx: {
|
|
9131
9131
|
flexGrow: 0
|
|
9132
9132
|
}, children: "Customize Label" }),
|
|
9133
|
-
/* @__PURE__ */ i(
|
|
9133
|
+
/* @__PURE__ */ i(Ie, { size: 800, title: "Customize label content", opened: r, onClose: a, closeOnClickOutside: !1, withCloseButton: !1, zIndex: 320, children: r && /* @__PURE__ */ u(S, { children: [
|
|
9134
9134
|
/* @__PURE__ */ i(we, { mt: 10, label: "Enabled", checked: s.enabled, onChange: (m) => c(m.currentTarget.checked) }),
|
|
9135
9135
|
/* @__PURE__ */ i(Ly, { value: s.func_content, onChange: h, disabled: !s.enabled }),
|
|
9136
9136
|
/* @__PURE__ */ u(w, { position: "apart", children: [
|
|
@@ -9253,7 +9253,7 @@ function Fy({
|
|
|
9253
9253
|
const {
|
|
9254
9254
|
value: e,
|
|
9255
9255
|
set: n
|
|
9256
|
-
} = X(t.instanceData, "config"), r = M(() =>
|
|
9256
|
+
} = X(t.instanceData, "config"), r = M(() => Me({}, e, ha), [e]), o = M(() => k.cloneDeep(r), [r]);
|
|
9257
9257
|
W(() => {
|
|
9258
9258
|
!Ce(r, o) && (console.log("config malformed, resetting to defaults", r, o), n(o));
|
|
9259
9259
|
}, [r, o]);
|
|
@@ -10410,7 +10410,7 @@ function $x({
|
|
|
10410
10410
|
const {
|
|
10411
10411
|
value: e,
|
|
10412
10412
|
set: n
|
|
10413
|
-
} = X(t.instanceData, "config"), r = M(() =>
|
|
10413
|
+
} = X(t.instanceData, "config"), r = M(() => Me({}, e, fa), [e]), o = M(() => k.clone(r), [r]), {
|
|
10414
10414
|
control: a,
|
|
10415
10415
|
handleSubmit: s,
|
|
10416
10416
|
watch: l,
|
|
@@ -10711,7 +10711,7 @@ function qx({
|
|
|
10711
10711
|
});
|
|
10712
10712
|
}, [s, l, o]), d = M(() => ({
|
|
10713
10713
|
click: c
|
|
10714
|
-
}), [c]), p = M(() => Bx(
|
|
10714
|
+
}), [c]), p = M(() => Bx(Me({}, t, pi), e), [t, e]);
|
|
10715
10715
|
return !n || !r ? null : /* @__PURE__ */ i(ut, { echarts: ye, option: p, style: {
|
|
10716
10716
|
width: n,
|
|
10717
10717
|
height: r
|
|
@@ -10837,7 +10837,7 @@ function Yx({
|
|
|
10837
10837
|
const {
|
|
10838
10838
|
value: e,
|
|
10839
10839
|
set: n
|
|
10840
|
-
} = X(t.instanceData, "config"), r = M(() =>
|
|
10840
|
+
} = X(t.instanceData, "config"), r = M(() => Me({}, e, pi), [e]), {
|
|
10841
10841
|
control: o,
|
|
10842
10842
|
handleSubmit: a,
|
|
10843
10843
|
watch: s,
|
|
@@ -11221,7 +11221,7 @@ function sv(t, e) {
|
|
|
11221
11221
|
data: n.map((a) => a.name)
|
|
11222
11222
|
}
|
|
11223
11223
|
};
|
|
11224
|
-
return
|
|
11224
|
+
return Me({}, o, av);
|
|
11225
11225
|
}
|
|
11226
11226
|
function fi(t, e, n) {
|
|
11227
11227
|
return 1 - (1 - t) * (e - 1) / (e - n - 1);
|
|
@@ -11482,7 +11482,7 @@ function bv({
|
|
|
11482
11482
|
...x,
|
|
11483
11483
|
[f.columnKey]: Number(x[f.columnKey])
|
|
11484
11484
|
});
|
|
11485
|
-
}, [t.data, e == null ? void 0 : e.regression.y_axis_data_key]), a = M(() => sv(
|
|
11485
|
+
}, [t.data, e == null ? void 0 : e.regression.y_axis_data_key]), a = M(() => sv(Me({}, e, ma), o), [e, o]), s = Js(null), l = (c) => {
|
|
11486
11486
|
s.current = c;
|
|
11487
11487
|
};
|
|
11488
11488
|
return !n || !r || !e ? null : /* @__PURE__ */ u(V, { sx: {
|
|
@@ -11616,7 +11616,7 @@ const vv = ({
|
|
|
11616
11616
|
/* @__PURE__ */ i($, { variant: "filled", mt: 24, onClick: a, sx: {
|
|
11617
11617
|
flexGrow: 0
|
|
11618
11618
|
}, children: n }),
|
|
11619
|
-
/* @__PURE__ */ i(
|
|
11619
|
+
/* @__PURE__ */ i(Ie, { size: 800, title: "Customize label content", opened: o, onClose: s, closeOnClickOutside: !1, withCloseButton: !1, zIndex: 320, children: o && /* @__PURE__ */ u(S, { children: [
|
|
11620
11620
|
/* @__PURE__ */ i(we, { mt: 10, label: "Enabled", checked: l.enabled, onChange: (x) => d(x.currentTarget.checked) }),
|
|
11621
11621
|
/* @__PURE__ */ i(vv, { value: l.func_content, onChange: f, disabled: !l.enabled }),
|
|
11622
11622
|
/* @__PURE__ */ u(w, { position: "apart", children: [
|
|
@@ -13553,7 +13553,7 @@ mr.prototype = Object.create(Error.prototype);
|
|
|
13553
13553
|
mr.prototype.constructor = mr;
|
|
13554
13554
|
mr.prototype.name = "TransformError";
|
|
13555
13555
|
const Oi = /* @__PURE__ */ Object.create(null);
|
|
13556
|
-
class
|
|
13556
|
+
class De {
|
|
13557
13557
|
/**
|
|
13558
13558
|
Initialize a selection with the head and anchor and ranges. If no
|
|
13559
13559
|
ranges are given, constructs a single range across `$anchor` and
|
|
@@ -13717,7 +13717,7 @@ class Te {
|
|
|
13717
13717
|
return je.between(this.$anchor, this.$head).getBookmark();
|
|
13718
13718
|
}
|
|
13719
13719
|
}
|
|
13720
|
-
|
|
13720
|
+
De.prototype.visible = !0;
|
|
13721
13721
|
class Nv {
|
|
13722
13722
|
/**
|
|
13723
13723
|
Create a range.
|
|
@@ -13730,7 +13730,7 @@ let $s = !1;
|
|
|
13730
13730
|
function zs(t) {
|
|
13731
13731
|
!$s && !t.parent.inlineContent && ($s = !0, console.warn("TextSelection endpoint not pointing into a node with inline content (" + t.parent.type.name + ")"));
|
|
13732
13732
|
}
|
|
13733
|
-
class je extends
|
|
13733
|
+
class je extends De {
|
|
13734
13734
|
/**
|
|
13735
13735
|
Construct a text selection between the given points.
|
|
13736
13736
|
*/
|
|
@@ -13747,7 +13747,7 @@ class je extends Te {
|
|
|
13747
13747
|
map(e, n) {
|
|
13748
13748
|
let r = e.resolve(n.map(this.head));
|
|
13749
13749
|
if (!r.parent.inlineContent)
|
|
13750
|
-
return
|
|
13750
|
+
return De.near(r);
|
|
13751
13751
|
let o = e.resolve(n.map(this.anchor));
|
|
13752
13752
|
return new je(o.parent.inlineContent ? o : r, r);
|
|
13753
13753
|
}
|
|
@@ -13792,16 +13792,16 @@ class je extends Te {
|
|
|
13792
13792
|
static between(e, n, r) {
|
|
13793
13793
|
let o = e.pos - n.pos;
|
|
13794
13794
|
if ((!r || o) && (r = o >= 0 ? 1 : -1), !n.parent.inlineContent) {
|
|
13795
|
-
let a =
|
|
13795
|
+
let a = De.findFrom(n, r, !0) || De.findFrom(n, -r, !0);
|
|
13796
13796
|
if (a)
|
|
13797
13797
|
n = a.$head;
|
|
13798
13798
|
else
|
|
13799
|
-
return
|
|
13799
|
+
return De.near(n, r);
|
|
13800
13800
|
}
|
|
13801
|
-
return e.parent.inlineContent || (o == 0 ? e = n : (e = (
|
|
13801
|
+
return e.parent.inlineContent || (o == 0 ? e = n : (e = (De.findFrom(e, -r, !0) || De.findFrom(e, r, !0)).$anchor, e.pos < n.pos != o < 0 && (e = n))), new je(e, n);
|
|
13802
13802
|
}
|
|
13803
13803
|
}
|
|
13804
|
-
|
|
13804
|
+
De.jsonID("text", je);
|
|
13805
13805
|
class bi {
|
|
13806
13806
|
constructor(e, n) {
|
|
13807
13807
|
this.anchor = e, this.head = n;
|
|
@@ -13813,7 +13813,7 @@ class bi {
|
|
|
13813
13813
|
return je.between(e.resolve(this.anchor), e.resolve(this.head));
|
|
13814
13814
|
}
|
|
13815
13815
|
}
|
|
13816
|
-
class mt extends
|
|
13816
|
+
class mt extends De {
|
|
13817
13817
|
/**
|
|
13818
13818
|
Create a node selection. Does not verify the validity of its
|
|
13819
13819
|
argument.
|
|
@@ -13824,7 +13824,7 @@ class mt extends Te {
|
|
|
13824
13824
|
}
|
|
13825
13825
|
map(e, n) {
|
|
13826
13826
|
let { deleted: r, pos: o } = n.mapResult(this.anchor), a = e.resolve(o);
|
|
13827
|
-
return r ?
|
|
13827
|
+
return r ? De.near(a) : new mt(a);
|
|
13828
13828
|
}
|
|
13829
13829
|
content() {
|
|
13830
13830
|
return new ve(fe.from(this.node), 0, 0);
|
|
@@ -13861,7 +13861,7 @@ class mt extends Te {
|
|
|
13861
13861
|
}
|
|
13862
13862
|
}
|
|
13863
13863
|
mt.prototype.visible = !1;
|
|
13864
|
-
|
|
13864
|
+
De.jsonID("node", mt);
|
|
13865
13865
|
class ya {
|
|
13866
13866
|
constructor(e) {
|
|
13867
13867
|
this.anchor = e;
|
|
@@ -13872,10 +13872,10 @@ class ya {
|
|
|
13872
13872
|
}
|
|
13873
13873
|
resolve(e) {
|
|
13874
13874
|
let n = e.resolve(this.anchor), r = n.nodeAfter;
|
|
13875
|
-
return r && mt.isSelectable(r) ? new mt(n) :
|
|
13875
|
+
return r && mt.isSelectable(r) ? new mt(n) : De.near(n);
|
|
13876
13876
|
}
|
|
13877
13877
|
}
|
|
13878
|
-
class Wt extends
|
|
13878
|
+
class Wt extends De {
|
|
13879
13879
|
/**
|
|
13880
13880
|
Create an all-selection over the given document.
|
|
13881
13881
|
*/
|
|
@@ -13885,7 +13885,7 @@ class Wt extends Te {
|
|
|
13885
13885
|
replace(e, n = ve.empty) {
|
|
13886
13886
|
if (n == ve.empty) {
|
|
13887
13887
|
e.delete(0, e.doc.content.size);
|
|
13888
|
-
let r =
|
|
13888
|
+
let r = De.atStart(e.doc);
|
|
13889
13889
|
r.eq(e.selection) || e.setSelection(r);
|
|
13890
13890
|
} else
|
|
13891
13891
|
super.replace(e, n);
|
|
@@ -13909,7 +13909,7 @@ class Wt extends Te {
|
|
|
13909
13909
|
return Bv;
|
|
13910
13910
|
}
|
|
13911
13911
|
}
|
|
13912
|
-
|
|
13912
|
+
De.jsonID("all", Wt);
|
|
13913
13913
|
const Bv = {
|
|
13914
13914
|
map() {
|
|
13915
13915
|
return this;
|
|
@@ -13945,7 +13945,7 @@ function Ls(t, e, n) {
|
|
|
13945
13945
|
let a = t.mapping.maps[r], s;
|
|
13946
13946
|
a.forEach((l, c, d, p) => {
|
|
13947
13947
|
s == null && (s = p);
|
|
13948
|
-
}), t.setSelection(
|
|
13948
|
+
}), t.setSelection(De.near(t.doc.resolve(s), n));
|
|
13949
13949
|
}
|
|
13950
13950
|
function As(t, e) {
|
|
13951
13951
|
return !e || !t ? t : t.bind(e);
|
|
@@ -13964,7 +13964,7 @@ new Ir("doc", {
|
|
|
13964
13964
|
}
|
|
13965
13965
|
}), new Ir("selection", {
|
|
13966
13966
|
init(t, e) {
|
|
13967
|
-
return t.selection ||
|
|
13967
|
+
return t.selection || De.atStart(e.doc);
|
|
13968
13968
|
},
|
|
13969
13969
|
apply(t) {
|
|
13970
13970
|
return t.selection;
|
|
@@ -14346,7 +14346,7 @@ function bn(t = 0, e = 0, n = 0) {
|
|
|
14346
14346
|
function c0(t, e = null) {
|
|
14347
14347
|
if (!e)
|
|
14348
14348
|
return null;
|
|
14349
|
-
const n =
|
|
14349
|
+
const n = De.atStart(t), r = De.atEnd(t);
|
|
14350
14350
|
if (e === "start" || e === !0)
|
|
14351
14351
|
return n;
|
|
14352
14352
|
if (e === "end")
|
|
@@ -14413,7 +14413,7 @@ function p0(t, e, n) {
|
|
|
14413
14413
|
let s = 0;
|
|
14414
14414
|
a.forEach((l, c, d, p) => {
|
|
14415
14415
|
s === 0 && (s = p);
|
|
14416
|
-
}), t.setSelection(
|
|
14416
|
+
}), t.setSelection(De.near(t.doc.resolve(s), n));
|
|
14417
14417
|
}
|
|
14418
14418
|
const f0 = (t) => t.toString().startsWith("<"), m0 = (t, e, n) => ({ tr: r, dispatch: o, editor: a }) => {
|
|
14419
14419
|
if (o) {
|
|
@@ -14966,7 +14966,7 @@ Rt.create({
|
|
|
14966
14966
|
() => s.undoInputRule(),
|
|
14967
14967
|
// maybe convert first text block node to default node
|
|
14968
14968
|
() => s.command(({ tr: l }) => {
|
|
14969
|
-
const { selection: c, doc: d } = l, { empty: p, $anchor: h } = c, { pos: f, parent: m } = h, x =
|
|
14969
|
+
const { selection: c, doc: d } = l, { empty: p, $anchor: h } = c, { pos: f, parent: m } = h, x = De.atStart(d).from === f;
|
|
14970
14970
|
return !p || !x || !m.type.isTextblock || m.textContent.length ? !1 : s.clearNodes();
|
|
14971
14971
|
}),
|
|
14972
14972
|
() => s.deleteSelection(),
|
|
@@ -15018,7 +15018,7 @@ Rt.create({
|
|
|
15018
15018
|
appendTransaction: (t, e, n) => {
|
|
15019
15019
|
if (!(t.some((x) => x.docChanged) && !e.doc.eq(n.doc)))
|
|
15020
15020
|
return;
|
|
15021
|
-
const { empty: o, from: a, to: s } = e.selection, l =
|
|
15021
|
+
const { empty: o, from: a, to: s } = e.selection, l = De.atStart(e.doc).from, c = De.atEnd(e.doc).to;
|
|
15022
15022
|
if (o || !(a === l && s === c) || !(n.doc.textBetween(0, n.doc.content.size, " ", " ").length === 0))
|
|
15023
15023
|
return;
|
|
15024
15024
|
const h = n.tr, f = nd({
|
|
@@ -15847,7 +15847,7 @@ function Ow(t, e, n) {
|
|
|
15847
15847
|
legend: Cw(),
|
|
15848
15848
|
dataZoom: aa(t.dataZoom)
|
|
15849
15849
|
};
|
|
15850
|
-
return
|
|
15850
|
+
return Me({}, l, Rw);
|
|
15851
15851
|
}
|
|
15852
15852
|
ye.use([Ht, Wn, jn, ri, xt, vt, wt, dt, ti, Go]);
|
|
15853
15853
|
function Vs(t) {
|
|
@@ -16256,7 +16256,7 @@ const Yw = ({
|
|
|
16256
16256
|
}, children: /* @__PURE__ */ i($, { variant: "filled", mt: 24, onClick: r, sx: {
|
|
16257
16257
|
flexGrow: 0
|
|
16258
16258
|
}, children: "Setup" }) }),
|
|
16259
|
-
/* @__PURE__ */ i(
|
|
16259
|
+
/* @__PURE__ */ i(Ie, { size: 800, title: "Setup dynamic color", opened: n, onClose: o, closeOnClickOutside: !1, withCloseButton: !1, zIndex: 320, children: n && /* @__PURE__ */ u(S, { children: [
|
|
16260
16260
|
/* @__PURE__ */ i(R, { mt: 10, mb: -10, label: "Dynamic by a custom function", labelPosition: "center", variant: "dashed" }),
|
|
16261
16261
|
/* @__PURE__ */ i(Yw, { value: a.func_content, onChange: d }),
|
|
16262
16262
|
/* @__PURE__ */ u(w, { position: "apart", children: [
|
|
@@ -16378,7 +16378,7 @@ const Yw = ({
|
|
|
16378
16378
|
}, children: /* @__PURE__ */ i($, { variant: "filled", mt: 24, onClick: r, sx: {
|
|
16379
16379
|
flexGrow: 0
|
|
16380
16380
|
}, children: "Setup" }) }),
|
|
16381
|
-
/* @__PURE__ */ i(
|
|
16381
|
+
/* @__PURE__ */ i(Ie, { size: 800, title: "Setup dynamic size", opened: n, onClose: o, closeOnClickOutside: !1, withCloseButton: !1, zIndex: 320, children: n && /* @__PURE__ */ u(S, { children: [
|
|
16382
16382
|
/* @__PURE__ */ i(R, { mt: 10, mb: -10, label: "Dynamic by a custom function", labelPosition: "center", variant: "dashed" }),
|
|
16383
16383
|
/* @__PURE__ */ i(Zw, { value: a.func_content, onChange: d }),
|
|
16384
16384
|
/* @__PURE__ */ u(w, { position: "apart", children: [
|
|
@@ -16681,7 +16681,7 @@ const h_ = ({
|
|
|
16681
16681
|
/* @__PURE__ */ i($, { variant: "filled", mt: 24, onClick: o, sx: {
|
|
16682
16682
|
flexGrow: 0
|
|
16683
16683
|
}, children: "Customize Label" }),
|
|
16684
|
-
/* @__PURE__ */ i(
|
|
16684
|
+
/* @__PURE__ */ i(Ie, { size: 800, title: "Customize label content", opened: r, onClose: a, closeOnClickOutside: !1, withCloseButton: !1, zIndex: 320, children: r && /* @__PURE__ */ u(S, { children: [
|
|
16685
16685
|
/* @__PURE__ */ i(we, { mt: 10, label: "Enabled", checked: s.enabled, onChange: (m) => c(m.currentTarget.checked) }),
|
|
16686
16686
|
/* @__PURE__ */ i(h_, { value: s.func_content, onChange: h, disabled: !s.enabled }),
|
|
16687
16687
|
/* @__PURE__ */ u(w, { position: "apart", children: [
|
|
@@ -16868,7 +16868,7 @@ function w_({
|
|
|
16868
16868
|
set: n
|
|
16869
16869
|
} = X(t.instanceData, "config"), {
|
|
16870
16870
|
variables: r
|
|
16871
|
-
} = t, o = M(() =>
|
|
16871
|
+
} = t, o = M(() => Me({}, e, Ca), [e]), a = M(() => v_(o), [o]);
|
|
16872
16872
|
W(() => {
|
|
16873
16873
|
!Ce(o, a) && (console.log("config malformed, resetting to defaults", o, a), n(a));
|
|
16874
16874
|
}, [o, a]);
|
|
@@ -17268,7 +17268,7 @@ function N_({
|
|
|
17268
17268
|
const {
|
|
17269
17269
|
value: e,
|
|
17270
17270
|
set: n
|
|
17271
|
-
} = X(t.instanceData, "config"), r = z.useMemo(() =>
|
|
17271
|
+
} = X(t.instanceData, "config"), r = z.useMemo(() => Me({}, e, Sa), [e]), {
|
|
17272
17272
|
control: o,
|
|
17273
17273
|
handleSubmit: a,
|
|
17274
17274
|
watch: s,
|
|
@@ -17482,7 +17482,7 @@ function K_(t, e, n) {
|
|
|
17482
17482
|
},
|
|
17483
17483
|
tooltip: Q_()
|
|
17484
17484
|
};
|
|
17485
|
-
return
|
|
17485
|
+
return Me({}, o, U_);
|
|
17486
17486
|
}
|
|
17487
17487
|
ye.use([Oh, dt]);
|
|
17488
17488
|
function X_({
|
|
@@ -17658,7 +17658,7 @@ function rC({
|
|
|
17658
17658
|
const {
|
|
17659
17659
|
value: e,
|
|
17660
17660
|
set: n
|
|
17661
|
-
} = X(t.instanceData, "config"), r = M(() =>
|
|
17661
|
+
} = X(t.instanceData, "config"), r = M(() => Me({}, e, ka), [e]), o = M(() => k.clone(r), [r]), {
|
|
17662
17662
|
control: a,
|
|
17663
17663
|
handleSubmit: s,
|
|
17664
17664
|
watch: l,
|
|
@@ -17857,7 +17857,7 @@ const cC = {
|
|
|
17857
17857
|
/* @__PURE__ */ i($, { variant: "filled", mt: 24, onClick: o, sx: {
|
|
17858
17858
|
flexGrow: 0
|
|
17859
17859
|
}, children: "Edit Content" }),
|
|
17860
|
-
/* @__PURE__ */ i(
|
|
17860
|
+
/* @__PURE__ */ i(Ie, { size: 800, title: "Text content", opened: r, onClose: a, closeOnClickOutside: !1, withCloseButton: !1, zIndex: 320, children: r && /* @__PURE__ */ u(S, { children: [
|
|
17861
17861
|
/* @__PURE__ */ i(uC, { value: s, onChange: l }),
|
|
17862
17862
|
/* @__PURE__ */ u(w, { position: "apart", children: [
|
|
17863
17863
|
/* @__PURE__ */ i($, { onClick: p, color: "red", leftIcon: /* @__PURE__ */ i(It, { size: 20 }), children: "Rest" }),
|
|
@@ -17884,7 +17884,7 @@ function fC({
|
|
|
17884
17884
|
const {
|
|
17885
17885
|
value: e,
|
|
17886
17886
|
set: n
|
|
17887
|
-
} = X(t.instanceData, "config"), r = M(() =>
|
|
17887
|
+
} = X(t.instanceData, "config"), r = M(() => Me({}, e, Ta), [e]), o = M(() => {
|
|
17888
17888
|
const {
|
|
17889
17889
|
func_content: f,
|
|
17890
17890
|
horizontal_align: m,
|
|
@@ -18067,7 +18067,7 @@ function wC({
|
|
|
18067
18067
|
}) {
|
|
18068
18068
|
const {
|
|
18069
18069
|
value: e
|
|
18070
|
-
} = X(t.instanceData, "config"), n = M(() =>
|
|
18070
|
+
} = X(t.instanceData, "config"), n = M(() => Me({}, e, Da), [e]), {
|
|
18071
18071
|
width: r,
|
|
18072
18072
|
height: o
|
|
18073
18073
|
} = t.viewport, a = t.data, {
|
|
@@ -18093,7 +18093,7 @@ function _C({
|
|
|
18093
18093
|
const {
|
|
18094
18094
|
value: e,
|
|
18095
18095
|
set: n
|
|
18096
|
-
} = X(t.instanceData, "config"), r = M(() =>
|
|
18096
|
+
} = X(t.instanceData, "config"), r = M(() => Me({}, e, Da), [e]), {
|
|
18097
18097
|
control: o,
|
|
18098
18098
|
handleSubmit: a,
|
|
18099
18099
|
watch: s,
|
|
@@ -18358,7 +18358,7 @@ function FC(t, e, n) {
|
|
|
18358
18358
|
visualMap: AC(t, d, r),
|
|
18359
18359
|
legend: IC(d, c)
|
|
18360
18360
|
};
|
|
18361
|
-
return
|
|
18361
|
+
return Me({}, p, EC);
|
|
18362
18362
|
}
|
|
18363
18363
|
function PC(t) {
|
|
18364
18364
|
return /* @__PURE__ */ i(G, {});
|
|
@@ -18617,7 +18617,7 @@ function UC({
|
|
|
18617
18617
|
const {
|
|
18618
18618
|
value: e,
|
|
18619
18619
|
set: n
|
|
18620
|
-
} = X(t.instanceData, "config"), r = M(() =>
|
|
18620
|
+
} = X(t.instanceData, "config"), r = M(() => Me({}, e, Ia), [e]), o = M(() => k.cloneDeep(r), [r]);
|
|
18621
18621
|
W(() => {
|
|
18622
18622
|
!Ce(r, o) && (console.log("config malformed, resetting to defaults", r, o), n(o));
|
|
18623
18623
|
}, [r, o]);
|
|
@@ -20412,7 +20412,7 @@ function nS(t, e, n) {
|
|
|
20412
20412
|
}],
|
|
20413
20413
|
legend: Z1(c)
|
|
20414
20414
|
};
|
|
20415
|
-
return
|
|
20415
|
+
return Me({}, d, eS);
|
|
20416
20416
|
}
|
|
20417
20417
|
const rS = {
|
|
20418
20418
|
input: {
|
|
@@ -20989,7 +20989,7 @@ function kS({
|
|
|
20989
20989
|
set: n
|
|
20990
20990
|
} = X(t.instanceData, "config"), {
|
|
20991
20991
|
variables: r
|
|
20992
|
-
} = t, o = M(() =>
|
|
20992
|
+
} = t, o = M(() => Me({}, e, za), [e]), {
|
|
20993
20993
|
control: a,
|
|
20994
20994
|
handleSubmit: s,
|
|
20995
20995
|
watch: l,
|
|
@@ -21808,7 +21808,7 @@ function xk({
|
|
|
21808
21808
|
context: t,
|
|
21809
21809
|
instance: e
|
|
21810
21810
|
}) {
|
|
21811
|
-
var
|
|
21811
|
+
var $e, Ye;
|
|
21812
21812
|
const n = t.data, {
|
|
21813
21813
|
height: r,
|
|
21814
21814
|
width: o
|
|
@@ -21832,22 +21832,24 @@ function xk({
|
|
|
21832
21832
|
label: ke,
|
|
21833
21833
|
value_field: ke,
|
|
21834
21834
|
value_type: Ct.string,
|
|
21835
|
-
align: "left"
|
|
21835
|
+
align: "left",
|
|
21836
|
+
width: "",
|
|
21837
|
+
cellBackgroundColor: ""
|
|
21836
21838
|
})) : c, [l, c, f]), x = yk({
|
|
21837
21839
|
getColIndex: ot((ke) => m.indexOf(ke.column.columnDef.meta), [m]),
|
|
21838
21840
|
vizManager: t.vizManager,
|
|
21839
21841
|
instance: e
|
|
21840
21842
|
}), v = M(() => {
|
|
21841
21843
|
const ke = Dl();
|
|
21842
|
-
return m.map((
|
|
21843
|
-
const Xe = H(
|
|
21844
|
+
return m.map((Te) => {
|
|
21845
|
+
const Xe = H(Te.value_field);
|
|
21844
21846
|
return ke.accessor(Xe.columnKey, {
|
|
21845
|
-
cell: (gt) => /* @__PURE__ */ i(bk, { tableCellContext: x(gt.cell), value: gt.getValue(), type:
|
|
21846
|
-
header:
|
|
21847
|
+
cell: (gt) => /* @__PURE__ */ i(bk, { tableCellContext: x(gt.cell), value: gt.getValue(), type: Te.value_type, ...Te }),
|
|
21848
|
+
header: Te.label,
|
|
21847
21849
|
enableSorting: !0,
|
|
21848
|
-
meta:
|
|
21849
|
-
size:
|
|
21850
|
-
minSize:
|
|
21850
|
+
meta: Te,
|
|
21851
|
+
size: typeof Te.width == "number" ? Te.width : void 0,
|
|
21852
|
+
minSize: typeof Te.width == "number" ? Te.width : void 0
|
|
21851
21853
|
});
|
|
21852
21854
|
});
|
|
21853
21855
|
}, [m, x]), [T, I] = K([]), L = Il({
|
|
@@ -21869,8 +21871,8 @@ function xk({
|
|
|
21869
21871
|
}), {
|
|
21870
21872
|
virtualItems: O,
|
|
21871
21873
|
totalSize: E
|
|
21872
|
-
} = N, U = O.length > 0 && ((
|
|
21873
|
-
return !Array.isArray(f) || f.length === 0 ? /* @__PURE__ */ i(C, { color: "gray", align: "center", children: "Empty Data" }) : /* @__PURE__ */ u("div", { ref: j, style: {
|
|
21874
|
+
} = N, U = O.length > 0 && (($e = O == null ? void 0 : O[0]) == null ? void 0 : $e.start) || 0, ne = O.length > 0 ? E - (((Ye = O == null ? void 0 : O[O.length - 1]) == null ? void 0 : Ye.end) || 0) : 0, ee = B.length, ie = ee > 0, me = ie ? r - 22 : r, ge = ie ? 22 : 0;
|
|
21875
|
+
return s ? !Array.isArray(f) || f.length === 0 ? /* @__PURE__ */ i(C, { color: "gray", align: "center", children: "Empty Data" }) : /* @__PURE__ */ u("div", { ref: j, style: {
|
|
21874
21876
|
height: r,
|
|
21875
21877
|
width: o
|
|
21876
21878
|
}, "data-enable-scrollbar": !0, className: h(p.root, {
|
|
@@ -21897,14 +21899,14 @@ function xk({
|
|
|
21897
21899
|
} }) }),
|
|
21898
21900
|
O.map((ke) => {
|
|
21899
21901
|
const Fe = B[ke.index];
|
|
21900
|
-
return /* @__PURE__ */ i("tr", { children: Fe.getVisibleCells().map((
|
|
21902
|
+
return /* @__PURE__ */ i("tr", { children: Fe.getVisibleCells().map((Te) => /* @__PURE__ */ i("td", { children: Vr(Te.column.columnDef.cell, Te.getContext()) }, Te.id)) }, Fe.id);
|
|
21901
21903
|
}),
|
|
21902
21904
|
ne > 0 && /* @__PURE__ */ i("tr", { children: /* @__PURE__ */ i("td", { style: {
|
|
21903
21905
|
height: `${ne}px`
|
|
21904
21906
|
} }) })
|
|
21905
21907
|
] })
|
|
21906
21908
|
] })
|
|
21907
|
-
] });
|
|
21909
|
+
] }) : /* @__PURE__ */ i(C, { color: "red", align: "center", children: "ID Field is not set, can't render a table without it" });
|
|
21908
21910
|
}
|
|
21909
21911
|
const vd = Bn(() => ({
|
|
21910
21912
|
palette: {
|
|
@@ -22058,7 +22060,7 @@ const Ck = D(({
|
|
|
22058
22060
|
};
|
|
22059
22061
|
return /* @__PURE__ */ u(G, { children: [
|
|
22060
22062
|
/* @__PURE__ */ i($, { variant: "outline", onClick: d, children: l == null ? void 0 : l.displayName }),
|
|
22061
|
-
/* @__PURE__ */ i(
|
|
22063
|
+
/* @__PURE__ */ i(Ie, { size: 508, title: "Setup color interpolation", opened: c, onClose: p, zIndex: 320, children: c && /* @__PURE__ */ u(S, { "data-testid": "color-interpolation-modal", children: [
|
|
22062
22064
|
/* @__PURE__ */ i(P, { label: "Color style", value: a.interpolation, data: h, onChange: f }),
|
|
22063
22065
|
/* @__PURE__ */ i(Sk, { steps: a.steps, interpolation: l, onChange: x }),
|
|
22064
22066
|
/* @__PURE__ */ u(w, { position: "right", children: [
|
|
@@ -22138,7 +22140,7 @@ const $k = Se((t, e) => {
|
|
|
22138
22140
|
/* @__PURE__ */ i($, { variant: "filled", mt: 24, onClick: o, sx: {
|
|
22139
22141
|
flexGrow: 0
|
|
22140
22142
|
}, children: "Custom Cell Content" }),
|
|
22141
|
-
/* @__PURE__ */ i(
|
|
22143
|
+
/* @__PURE__ */ i(Ie, { size: 800, title: "Custom cell content", opened: r, onClose: a, closeOnClickOutside: !1, withCloseButton: !1, zIndex: 320, children: r && /* @__PURE__ */ u(S, { children: [
|
|
22142
22144
|
/* @__PURE__ */ i(V, { sx: {
|
|
22143
22145
|
position: "relative"
|
|
22144
22146
|
}, children: /* @__PURE__ */ i(ht, { height: "500px", defaultLanguage: "javascript", value: s, onChange: (h) => l(h ?? ""), theme: "vs-dark", options: {
|
|
@@ -22245,7 +22247,8 @@ const $k = Se((t, e) => {
|
|
|
22245
22247
|
label: c,
|
|
22246
22248
|
align: "center",
|
|
22247
22249
|
value_field: "",
|
|
22248
|
-
value_type: Ct.string
|
|
22250
|
+
value_type: Ct.string,
|
|
22251
|
+
width: ""
|
|
22249
22252
|
});
|
|
22250
22253
|
};
|
|
22251
22254
|
e("columns");
|
|
@@ -22253,27 +22256,23 @@ const $k = Se((t, e) => {
|
|
|
22253
22256
|
return /* @__PURE__ */ u(G, { children: [
|
|
22254
22257
|
/* @__PURE__ */ i(y, { name: "use_raw_columns", control: t, render: ({
|
|
22255
22258
|
field: c
|
|
22256
|
-
}) => /* @__PURE__ */ i(Je, { mt: 20, label: "Use Original Data Columns", checked: c.value, onChange: (d) => c.onChange(d.currentTarget.checked) }) }),
|
|
22257
|
-
/* @__PURE__ */ i(
|
|
22258
|
-
|
|
22259
|
-
|
|
22260
|
-
|
|
22261
|
-
|
|
22262
|
-
|
|
22263
|
-
|
|
22264
|
-
|
|
22265
|
-
|
|
22266
|
-
|
|
22267
|
-
|
|
22268
|
-
}
|
|
22269
|
-
|
|
22270
|
-
|
|
22271
|
-
|
|
22272
|
-
|
|
22273
|
-
] }),
|
|
22274
|
-
n.map((c, d) => /* @__PURE__ */ i(g.Panel, { value: d.toString(), children: /* @__PURE__ */ i(Ok, { control: t, watch: e, index: d, column: c, remove: o }, d) }, c.id))
|
|
22275
|
-
] })
|
|
22276
|
-
] })
|
|
22259
|
+
}) => /* @__PURE__ */ i(Je, { mt: 20, mb: 20, label: "Use Original Data Columns", checked: c.value, onChange: (d) => c.onChange(d.currentTarget.checked) }) }),
|
|
22260
|
+
!l && /* @__PURE__ */ i(S, { children: /* @__PURE__ */ u(g, { defaultValue: "0", styles: {
|
|
22261
|
+
tab: {
|
|
22262
|
+
paddingTop: "0px",
|
|
22263
|
+
paddingBottom: "0px"
|
|
22264
|
+
},
|
|
22265
|
+
panel: {
|
|
22266
|
+
padding: "0px",
|
|
22267
|
+
paddingTop: "6px"
|
|
22268
|
+
}
|
|
22269
|
+
}, children: [
|
|
22270
|
+
/* @__PURE__ */ u(g.List, { children: [
|
|
22271
|
+
n.map((c, d) => /* @__PURE__ */ i(g.Tab, { value: d.toString(), children: d + 1 }, c.id)),
|
|
22272
|
+
/* @__PURE__ */ i(g.Tab, { onClick: s, value: "add", children: /* @__PURE__ */ i(Ge, { size: 18, color: "#228be6" }) })
|
|
22273
|
+
] }),
|
|
22274
|
+
n.map((c, d) => /* @__PURE__ */ i(g.Panel, { value: d.toString(), children: /* @__PURE__ */ i(Ok, { control: t, watch: e, index: d, column: c, remove: o }, d) }, c.id))
|
|
22275
|
+
] }) })
|
|
22277
22276
|
] });
|
|
22278
22277
|
};
|
|
22279
22278
|
function Pk({
|
|
@@ -22337,7 +22336,7 @@ function Nk({
|
|
|
22337
22336
|
const {
|
|
22338
22337
|
value: e,
|
|
22339
22338
|
set: n
|
|
22340
|
-
} = X(t.instanceData, "config"), r = M(() =>
|
|
22339
|
+
} = X(t.instanceData, "config"), r = M(() => Me({}, e, Xo), [e]), o = M(() => Vk(r), [r]);
|
|
22341
22340
|
W(() => {
|
|
22342
22341
|
!Ce(r, o) && (console.log("config malformed, resetting to defaults", r, o), n(o));
|
|
22343
22342
|
}, [r, o]);
|
|
@@ -22373,15 +22372,17 @@ function Nk({
|
|
|
22373
22372
|
}
|
|
22374
22373
|
}, children: [
|
|
22375
22374
|
/* @__PURE__ */ u(g.List, { children: [
|
|
22376
|
-
/* @__PURE__ */ i(g.Tab, { value: "
|
|
22377
|
-
/* @__PURE__ */ i(g.Tab, { value: "Style", children: "Style" })
|
|
22378
|
-
/* @__PURE__ */ i(g.Tab, { value: "Columns", children: "Columns" })
|
|
22375
|
+
/* @__PURE__ */ i(g.Tab, { value: "Columns", children: "Columns" }),
|
|
22376
|
+
/* @__PURE__ */ i(g.Tab, { value: "Style", children: "Style" })
|
|
22379
22377
|
] }),
|
|
22380
|
-
/* @__PURE__ */
|
|
22381
|
-
|
|
22382
|
-
|
|
22383
|
-
|
|
22384
|
-
|
|
22378
|
+
/* @__PURE__ */ u(g.Panel, { value: "Columns", children: [
|
|
22379
|
+
/* @__PURE__ */ i(y, { name: "id_field", control: a, render: ({
|
|
22380
|
+
field: f
|
|
22381
|
+
}) => /* @__PURE__ */ i(J, { label: "ID Field", required: !0, ...f }) }),
|
|
22382
|
+
/* @__PURE__ */ i(R, { mt: 20, mb: 10, variant: "dashed" }),
|
|
22383
|
+
/* @__PURE__ */ i(Fk, { control: a, watch: l })
|
|
22384
|
+
] }),
|
|
22385
|
+
/* @__PURE__ */ i(g.Panel, { value: "Style", children: /* @__PURE__ */ i(Pk, { control: a, watch: l }) })
|
|
22385
22386
|
] })
|
|
22386
22387
|
] });
|
|
22387
22388
|
}
|
|
@@ -22422,10 +22423,25 @@ function qk(t, {
|
|
|
22422
22423
|
throw console.error("[Migration failed]", n), n;
|
|
22423
22424
|
}
|
|
22424
22425
|
}
|
|
22425
|
-
|
|
22426
|
+
function Wk(t) {
|
|
22427
|
+
const {
|
|
22428
|
+
columns: e,
|
|
22429
|
+
...n
|
|
22430
|
+
} = t;
|
|
22431
|
+
return {
|
|
22432
|
+
...n,
|
|
22433
|
+
columns: e.map((r) => ({
|
|
22434
|
+
...r,
|
|
22435
|
+
align: r.align ?? "left",
|
|
22436
|
+
cellBackgroundColor: r.cellBackgroundColor ?? "",
|
|
22437
|
+
width: r.width ?? ""
|
|
22438
|
+
}))
|
|
22439
|
+
};
|
|
22440
|
+
}
|
|
22441
|
+
class jk extends Oe {
|
|
22426
22442
|
constructor() {
|
|
22427
22443
|
super(...arguments);
|
|
22428
|
-
Y(this, "VERSION",
|
|
22444
|
+
Y(this, "VERSION", 5);
|
|
22429
22445
|
}
|
|
22430
22446
|
configVersions() {
|
|
22431
22447
|
this.version(1, (n) => ({
|
|
@@ -22458,24 +22474,28 @@ class Wk extends Oe {
|
|
|
22458
22474
|
...n,
|
|
22459
22475
|
version: 4,
|
|
22460
22476
|
config: qk(n.config, r)
|
|
22477
|
+
})), this.version(5, (n) => ({
|
|
22478
|
+
...n,
|
|
22479
|
+
version: 5,
|
|
22480
|
+
config: Wk(n.config)
|
|
22461
22481
|
}));
|
|
22462
22482
|
}
|
|
22463
22483
|
}
|
|
22464
22484
|
const eo = {
|
|
22465
22485
|
createConfig() {
|
|
22466
22486
|
return {
|
|
22467
|
-
version:
|
|
22487
|
+
version: 5,
|
|
22468
22488
|
config: Qe(Xo)
|
|
22469
22489
|
};
|
|
22470
22490
|
},
|
|
22471
22491
|
displayName: "Table",
|
|
22472
22492
|
displayGroup: "Others",
|
|
22473
|
-
migrator: new
|
|
22493
|
+
migrator: new jk(),
|
|
22474
22494
|
name: "table",
|
|
22475
22495
|
viewRender: xk,
|
|
22476
22496
|
configRender: Nk,
|
|
22477
22497
|
triggers: [Ea]
|
|
22478
|
-
},
|
|
22498
|
+
}, Gk = b.model("PanelLayoutModel", {
|
|
22479
22499
|
x: b.number,
|
|
22480
22500
|
y: b.maybeNull(b.number),
|
|
22481
22501
|
// https://github.com/merico-dev/table/issues/814
|
|
@@ -22512,7 +22532,7 @@ const eo = {
|
|
|
22512
22532
|
} = e;
|
|
22513
22533
|
t.x = n, t.y = r, t.w = o, t.h = a, t.moved = !!s, t.static = !!e.static;
|
|
22514
22534
|
}
|
|
22515
|
-
})),
|
|
22535
|
+
})), Yk = b.model("PanelStyleBorderModel", {
|
|
22516
22536
|
enabled: b.boolean
|
|
22517
22537
|
}).views((t) => ({
|
|
22518
22538
|
get json() {
|
|
@@ -22527,8 +22547,8 @@ const eo = {
|
|
|
22527
22547
|
setEnabled(e) {
|
|
22528
22548
|
t.enabled = e;
|
|
22529
22549
|
}
|
|
22530
|
-
})),
|
|
22531
|
-
border:
|
|
22550
|
+
})), Hk = b.model("PanelStyleModel", {
|
|
22551
|
+
border: Yk
|
|
22532
22552
|
}).views((t) => ({
|
|
22533
22553
|
get json() {
|
|
22534
22554
|
const {
|
|
@@ -22538,7 +22558,7 @@ const eo = {
|
|
|
22538
22558
|
border: e.json
|
|
22539
22559
|
};
|
|
22540
22560
|
}
|
|
22541
|
-
})).actions((t) => ({})),
|
|
22561
|
+
})).actions((t) => ({})), Qk = b.model("PanelVizModel", {
|
|
22542
22562
|
type: b.string,
|
|
22543
22563
|
conf: b.frozen()
|
|
22544
22564
|
}).views((t) => ({
|
|
@@ -22555,14 +22575,14 @@ const eo = {
|
|
|
22555
22575
|
setConf(e) {
|
|
22556
22576
|
t.conf = e;
|
|
22557
22577
|
}
|
|
22558
|
-
})),
|
|
22578
|
+
})), Uk = b.model({
|
|
22559
22579
|
id: b.string,
|
|
22560
22580
|
title: b.string,
|
|
22561
22581
|
description: b.string,
|
|
22562
|
-
layout:
|
|
22582
|
+
layout: Gk,
|
|
22563
22583
|
queryIDs: b.array(b.string),
|
|
22564
|
-
viz:
|
|
22565
|
-
style:
|
|
22584
|
+
viz: Qk,
|
|
22585
|
+
style: Hk,
|
|
22566
22586
|
variables: b.optional(b.array(lf), [])
|
|
22567
22587
|
}).views((t) => ({
|
|
22568
22588
|
// FIXME: 'contentModel' implicitly has return type 'any' because it does not have a return type annotation and is referenced directly or indirectly in one of its return expressions.ts(7023)
|
|
@@ -22661,7 +22681,7 @@ const eo = {
|
|
|
22661
22681
|
Ae(t).content.queries.downloadDataByQueryIDs(t.queryIDs);
|
|
22662
22682
|
}
|
|
22663
22683
|
}));
|
|
22664
|
-
function
|
|
22684
|
+
function Kk(t) {
|
|
22665
22685
|
return {
|
|
22666
22686
|
id: t,
|
|
22667
22687
|
layout: {
|
|
@@ -22685,8 +22705,8 @@ function Uk(t) {
|
|
|
22685
22705
|
}
|
|
22686
22706
|
};
|
|
22687
22707
|
}
|
|
22688
|
-
const
|
|
22689
|
-
list: b.optional(b.array(
|
|
22708
|
+
const Xk = b.model("PanelsModel", {
|
|
22709
|
+
list: b.optional(b.array(Uk), [])
|
|
22690
22710
|
}).views((t) => ({
|
|
22691
22711
|
get json() {
|
|
22692
22712
|
return t.list.map((e) => e.json);
|
|
@@ -22773,20 +22793,20 @@ const Kk = b.model("PanelsModel", {
|
|
|
22773
22793
|
t.list.splice(e, 1, n);
|
|
22774
22794
|
}
|
|
22775
22795
|
}));
|
|
22776
|
-
var
|
|
22777
|
-
const
|
|
22796
|
+
var Jk = /* @__PURE__ */ ((t) => (t.Use = "use", t.Edit = "edit", t))(Jk || {}), se = /* @__PURE__ */ ((t) => (t.Division = "div", t.Modal = "modal", t.Tabs = "tabs", t))(se || {});
|
|
22797
|
+
const mL = {
|
|
22778
22798
|
div: "Division",
|
|
22779
22799
|
tabs: "Tabs",
|
|
22780
22800
|
modal: "Modal"
|
|
22781
|
-
},
|
|
22801
|
+
}, Zk = {
|
|
22782
22802
|
div: "rgba(255, 0, 0, 0.2)",
|
|
22783
22803
|
modal: "rgba(0, 0, 0, 0.2)",
|
|
22784
22804
|
tabs: "rgba(255, 200, 100, 0.4)"
|
|
22785
|
-
},
|
|
22805
|
+
}, gL = {
|
|
22786
22806
|
div: "#ff4000",
|
|
22787
22807
|
modal: "#000",
|
|
22788
22808
|
tabs: "#ffad18"
|
|
22789
|
-
},
|
|
22809
|
+
}, bL = {
|
|
22790
22810
|
definition: {
|
|
22791
22811
|
sqlSnippets: [],
|
|
22792
22812
|
queries: [],
|
|
@@ -22815,13 +22835,13 @@ const Cd = b.model("ViewModel_Division", {
|
|
|
22815
22835
|
_name: e
|
|
22816
22836
|
};
|
|
22817
22837
|
}
|
|
22818
|
-
})).actions((t) => ({})),
|
|
22838
|
+
})).actions((t) => ({})), eT = () => Cd.create({
|
|
22819
22839
|
_name: se.Division
|
|
22820
22840
|
}), to = {
|
|
22821
22841
|
enabled: !1,
|
|
22822
22842
|
func_content: ["function text({ filters, context}) {", " // your code goes here", ' return "text"', "}"].join(`
|
|
22823
22843
|
`)
|
|
22824
|
-
},
|
|
22844
|
+
}, tT = b.model("CustomModalTitleModel", {
|
|
22825
22845
|
enabled: b.optional(b.boolean, !1),
|
|
22826
22846
|
func_content: b.optional(b.string, "")
|
|
22827
22847
|
}).views((t) => ({
|
|
@@ -22869,7 +22889,7 @@ const Cd = b.model("ViewModel_Division", {
|
|
|
22869
22889
|
_name: b.literal(se.Modal),
|
|
22870
22890
|
width: b.string,
|
|
22871
22891
|
height: b.string,
|
|
22872
|
-
custom_modal_title: b.optional(
|
|
22892
|
+
custom_modal_title: b.optional(tT, to)
|
|
22873
22893
|
}).views((t) => ({
|
|
22874
22894
|
get json() {
|
|
22875
22895
|
const {
|
|
@@ -22892,11 +22912,11 @@ const Cd = b.model("ViewModel_Division", {
|
|
|
22892
22912
|
setHeight(e) {
|
|
22893
22913
|
t.height = e;
|
|
22894
22914
|
}
|
|
22895
|
-
})),
|
|
22915
|
+
})), nT = () => Sd.create({
|
|
22896
22916
|
_name: se.Modal,
|
|
22897
22917
|
width: "90vw",
|
|
22898
22918
|
height: "90vh"
|
|
22899
|
-
}),
|
|
22919
|
+
}), rT = b.model("ViewModel_Tabs_Tab", {
|
|
22900
22920
|
id: b.identifier,
|
|
22901
22921
|
name: b.string,
|
|
22902
22922
|
view_id: b.string,
|
|
@@ -22928,7 +22948,7 @@ const Cd = b.model("ViewModel_Division", {
|
|
|
22928
22948
|
}
|
|
22929
22949
|
})), kd = b.model("ViewModel_Tabs", {
|
|
22930
22950
|
_name: b.literal(se.Modal),
|
|
22931
|
-
tabs: b.optional(b.array(
|
|
22951
|
+
tabs: b.optional(b.array(rT), []),
|
|
22932
22952
|
variant: b.optional(b.enumeration("variant", ["default", "outline", "pills"]), "default"),
|
|
22933
22953
|
orientation: b.optional(b.enumeration("orientation", ["horizontal", "vertical"]), "horizontal"),
|
|
22934
22954
|
grow: b.optional(b.boolean, !1)
|
|
@@ -22973,10 +22993,10 @@ const Cd = b.model("ViewModel_Division", {
|
|
|
22973
22993
|
removeTab(e) {
|
|
22974
22994
|
t.tabs.splice(e, 1);
|
|
22975
22995
|
}
|
|
22976
|
-
})),
|
|
22996
|
+
})), iT = () => kd.create({
|
|
22977
22997
|
_name: se.Modal,
|
|
22978
22998
|
tabs: []
|
|
22979
|
-
}),
|
|
22999
|
+
}), oT = b.model({
|
|
22980
23000
|
id: b.identifier,
|
|
22981
23001
|
name: b.string,
|
|
22982
23002
|
type: b.enumeration("EViewComponentType", [se.Division, se.Modal, se.Tabs]),
|
|
@@ -23006,13 +23026,13 @@ const Cd = b.model("ViewModel_Division", {
|
|
|
23006
23026
|
if (t.type !== e) {
|
|
23007
23027
|
switch (e) {
|
|
23008
23028
|
case se.Division:
|
|
23009
|
-
t.config =
|
|
23029
|
+
t.config = eT();
|
|
23010
23030
|
break;
|
|
23011
23031
|
case se.Modal:
|
|
23012
|
-
t.config =
|
|
23032
|
+
t.config = nT();
|
|
23013
23033
|
break;
|
|
23014
23034
|
case se.Tabs:
|
|
23015
|
-
t.config =
|
|
23035
|
+
t.config = iT();
|
|
23016
23036
|
break;
|
|
23017
23037
|
}
|
|
23018
23038
|
t.type = e;
|
|
@@ -23025,8 +23045,8 @@ const Cd = b.model("ViewModel_Division", {
|
|
|
23025
23045
|
const n = t.panelIDs.filter((r) => r !== e);
|
|
23026
23046
|
t.panelIDs.length = 0, t.panelIDs.push(...n);
|
|
23027
23047
|
}
|
|
23028
|
-
})).actions((t) => ({})),
|
|
23029
|
-
current: b.optional(b.array(
|
|
23048
|
+
})).actions((t) => ({})), aT = b.model("ViewsModel", {
|
|
23049
|
+
current: b.optional(b.array(oT), []),
|
|
23030
23050
|
visibleViewIDs: b.array(b.string),
|
|
23031
23051
|
idOfVIE: b.string
|
|
23032
23052
|
// VIE: view in edit
|
|
@@ -23149,7 +23169,7 @@ function Td(t) {
|
|
|
23149
23169
|
function Gs(t, e, n, r) {
|
|
23150
23170
|
return t.reduce((o, a) => (o[a[e]] = Ho(a[n], r), o), {});
|
|
23151
23171
|
}
|
|
23152
|
-
const
|
|
23172
|
+
const sT = b.model({
|
|
23153
23173
|
id: b.string,
|
|
23154
23174
|
name: b.string,
|
|
23155
23175
|
dashboard_id: b.string,
|
|
@@ -23160,8 +23180,8 @@ const aT = b.model({
|
|
|
23160
23180
|
filters: Fp,
|
|
23161
23181
|
queries: Qp,
|
|
23162
23182
|
sqlSnippets: Kp,
|
|
23163
|
-
views:
|
|
23164
|
-
panels:
|
|
23183
|
+
views: aT,
|
|
23184
|
+
panels: Xk,
|
|
23165
23185
|
mock_context: sf,
|
|
23166
23186
|
/**
|
|
23167
23187
|
* this field should be excluded from snapshot
|
|
@@ -23299,7 +23319,7 @@ const aT = b.model({
|
|
|
23299
23319
|
addANewPanel(e) {
|
|
23300
23320
|
var r;
|
|
23301
23321
|
const n = (/* @__PURE__ */ new Date()).getTime().toString();
|
|
23302
|
-
t.panels.append(
|
|
23322
|
+
t.panels.append(Kk(n)), (r = t.views.findByID(e)) == null || r.appendPanelID(n);
|
|
23303
23323
|
}
|
|
23304
23324
|
})).actions((t) => ({
|
|
23305
23325
|
// FIXME: https://github.com/merico-dev/table/issues/440
|
|
@@ -23333,7 +23353,7 @@ const aT = b.model({
|
|
|
23333
23353
|
} = o;
|
|
23334
23354
|
t.id = n, t.name = r, t.version = a, st(t.filters.current, s), st(t.views.current, Td(l).current), st(t.panels.list, c), st(t.queries.current, d), st(t.sqlSnippets.current, p), t.mock_context.current = h;
|
|
23335
23355
|
}
|
|
23336
|
-
})), Ra = b.snapshotProcessor(
|
|
23356
|
+
})), Ra = b.snapshotProcessor(sT, {
|
|
23337
23357
|
preProcessor(t) {
|
|
23338
23358
|
return {
|
|
23339
23359
|
...t,
|
|
@@ -23350,10 +23370,10 @@ const aT = b.model({
|
|
|
23350
23370
|
}, t);
|
|
23351
23371
|
}
|
|
23352
23372
|
});
|
|
23353
|
-
function
|
|
23373
|
+
function yL(t, e) {
|
|
23354
23374
|
e.filters && st(t.filters.current, e.filters);
|
|
23355
23375
|
}
|
|
23356
|
-
function
|
|
23376
|
+
function lT({
|
|
23357
23377
|
id: t,
|
|
23358
23378
|
name: e,
|
|
23359
23379
|
dashboard_id: n,
|
|
@@ -23397,14 +23417,14 @@ function sT({
|
|
|
23397
23417
|
}
|
|
23398
23418
|
});
|
|
23399
23419
|
}
|
|
23400
|
-
const
|
|
23420
|
+
const cT = b.model({
|
|
23401
23421
|
id: b.string,
|
|
23402
23422
|
content: b.string,
|
|
23403
23423
|
create_time: b.string,
|
|
23404
23424
|
update_time: b.string,
|
|
23405
23425
|
is_preset: b.boolean
|
|
23406
|
-
}),
|
|
23407
|
-
list: b.optional(b.array(
|
|
23426
|
+
}), dT = b.model("GlobalSQLSnippetsModel", {
|
|
23427
|
+
list: b.optional(b.array(cT), [])
|
|
23408
23428
|
}).views((t) => ({
|
|
23409
23429
|
find(e) {
|
|
23410
23430
|
return t.list.find((n) => n.id === e);
|
|
@@ -23419,14 +23439,14 @@ const lT = b.model({
|
|
|
23419
23439
|
replace(e) {
|
|
23420
23440
|
t.list.length = 0, t.list.push(...e);
|
|
23421
23441
|
}
|
|
23422
|
-
})),
|
|
23442
|
+
})), uT = b.model({
|
|
23423
23443
|
id: b.identifier,
|
|
23424
23444
|
name: b.string,
|
|
23425
23445
|
group: b.string,
|
|
23426
23446
|
content: Ra,
|
|
23427
23447
|
content_id: b.string,
|
|
23428
23448
|
datasources: rf,
|
|
23429
|
-
globalSQLSnippets:
|
|
23449
|
+
globalSQLSnippets: dT,
|
|
23430
23450
|
context: Xp,
|
|
23431
23451
|
editor: af
|
|
23432
23452
|
}).views((t) => ({
|
|
@@ -23458,12 +23478,12 @@ function Dd({
|
|
|
23458
23478
|
group: n,
|
|
23459
23479
|
content_id: r
|
|
23460
23480
|
}, o, a, s, l) {
|
|
23461
|
-
return
|
|
23481
|
+
return uT.create({
|
|
23462
23482
|
id: t,
|
|
23463
23483
|
name: e,
|
|
23464
23484
|
group: n,
|
|
23465
23485
|
content_id: r,
|
|
23466
|
-
content:
|
|
23486
|
+
content: lT(o),
|
|
23467
23487
|
datasources: {
|
|
23468
23488
|
list: a
|
|
23469
23489
|
},
|
|
@@ -23484,10 +23504,10 @@ function wi(t) {
|
|
|
23484
23504
|
function Id() {
|
|
23485
23505
|
return z.useContext(no);
|
|
23486
23506
|
}
|
|
23487
|
-
const
|
|
23507
|
+
const hT = {
|
|
23488
23508
|
viewPanelInFullScreen: k.noop,
|
|
23489
23509
|
inFullScreen: !1
|
|
23490
|
-
}, Oa = z.createContext(
|
|
23510
|
+
}, Oa = z.createContext(hT), pT = ({
|
|
23491
23511
|
description: t,
|
|
23492
23512
|
isDescriptionEmpty: e
|
|
23493
23513
|
}) => e ? null : /* @__PURE__ */ i(Ve, { color: "white", label: /* @__PURE__ */ i(yi, { value: t, styles: {
|
|
@@ -23505,7 +23525,7 @@ const uT = {
|
|
|
23505
23525
|
}, withArrow: !0, children: /* @__PURE__ */ i(V, { sx: {
|
|
23506
23526
|
height: "16px",
|
|
23507
23527
|
alignSelf: "center"
|
|
23508
|
-
}, children: /* @__PURE__ */ i(qn, { size: 16, color: "gray" }) }) }),
|
|
23528
|
+
}, children: /* @__PURE__ */ i(qn, { size: 16, color: "gray" }) }) }), fT = D(({
|
|
23509
23529
|
label: t,
|
|
23510
23530
|
config: {
|
|
23511
23531
|
default_value: e,
|
|
@@ -23521,7 +23541,7 @@ const uT = {
|
|
|
23521
23541
|
/* @__PURE__ */ i(V, { sx: {
|
|
23522
23542
|
flexGrow: 1
|
|
23523
23543
|
}, children: t }),
|
|
23524
|
-
/* @__PURE__ */ i(
|
|
23544
|
+
/* @__PURE__ */ i(pT, { description: n, isDescriptionEmpty: r })
|
|
23525
23545
|
] }), checked: a || !1, onChange: (l) => s(l.currentTarget.checked), ...o, pt: ".4em", styles: {
|
|
23526
23546
|
input: {
|
|
23527
23547
|
borderColor: "#e9ecef"
|
|
@@ -23561,7 +23581,7 @@ const uT = {
|
|
|
23561
23581
|
...a
|
|
23562
23582
|
}
|
|
23563
23583
|
);
|
|
23564
|
-
}),
|
|
23584
|
+
}), mT = Bn((t, {
|
|
23565
23585
|
radius: e = 4
|
|
23566
23586
|
}) => ({
|
|
23567
23587
|
root: {
|
|
@@ -23728,7 +23748,7 @@ const uT = {
|
|
|
23728
23748
|
}
|
|
23729
23749
|
})), $d = ({
|
|
23730
23750
|
errorMessage: t
|
|
23731
|
-
}) => t ? /* @__PURE__ */ i(C, { color: "red", size: 12, children: t }) : /* @__PURE__ */ i(C, { color: "dimmed", size: 12, children: "Not found" }),
|
|
23751
|
+
}) => t ? /* @__PURE__ */ i(C, { color: "red", size: 12, children: t }) : /* @__PURE__ */ i(C, { color: "dimmed", size: 12, children: "Not found" }), gT = ({
|
|
23732
23752
|
disabled: t,
|
|
23733
23753
|
// styling props
|
|
23734
23754
|
classNames: e,
|
|
@@ -23746,7 +23766,7 @@ const uT = {
|
|
|
23746
23766
|
const {
|
|
23747
23767
|
classes: h,
|
|
23748
23768
|
cx: f
|
|
23749
|
-
} =
|
|
23769
|
+
} = mT({
|
|
23750
23770
|
radius: o
|
|
23751
23771
|
}, {
|
|
23752
23772
|
name: "MultiSelectWidget",
|
|
@@ -23774,7 +23794,7 @@ const uT = {
|
|
|
23774
23794
|
j.description && /* @__PURE__ */ i(C, { size: "xs", color: "dimmed", "data-role": "description", children: j.description })
|
|
23775
23795
|
] }) }) }, j.value)) })
|
|
23776
23796
|
] });
|
|
23777
|
-
},
|
|
23797
|
+
}, bT = D(({
|
|
23778
23798
|
label: t,
|
|
23779
23799
|
config: e,
|
|
23780
23800
|
value: n,
|
|
@@ -23784,20 +23804,20 @@ const uT = {
|
|
|
23784
23804
|
state: s,
|
|
23785
23805
|
error: l
|
|
23786
23806
|
} = o.getDataStuffByID(e.options_query_id), c = s === "loading", d = e.min_width ? e.min_width : "200px", p = a ? c : !1, h = (f) => r(f, !1);
|
|
23787
|
-
return /* @__PURE__ */ i(
|
|
23807
|
+
return /* @__PURE__ */ i(gT, { label: t, options: e.options, style: {
|
|
23788
23808
|
minWidth: "160px",
|
|
23789
23809
|
width: d,
|
|
23790
23810
|
maxWidth: p ? d : "unset",
|
|
23791
23811
|
borderColor: "#e9ecef"
|
|
23792
23812
|
}, disabled: p, value: n, onChange: h, errorMessage: l });
|
|
23793
|
-
}),
|
|
23813
|
+
}), yT = Se(({
|
|
23794
23814
|
label: t,
|
|
23795
23815
|
description: e,
|
|
23796
23816
|
...n
|
|
23797
23817
|
}, r) => /* @__PURE__ */ i("div", { ref: r, ...n, children: /* @__PURE__ */ i(w, { noWrap: !0, children: /* @__PURE__ */ u("div", { children: [
|
|
23798
23818
|
/* @__PURE__ */ i(C, { size: "sm", "data-role": "label", children: t }),
|
|
23799
23819
|
/* @__PURE__ */ i(C, { size: "xs", color: "dimmed", "data-role": "description", children: e })
|
|
23800
|
-
] }) }) })),
|
|
23820
|
+
] }) }) })), xT = D(({
|
|
23801
23821
|
label: t,
|
|
23802
23822
|
config: e,
|
|
23803
23823
|
value: n,
|
|
@@ -23827,9 +23847,9 @@ const uT = {
|
|
|
23827
23847
|
".mantine-Select-item[data-selected] .mantine-Text-root[data-role=description]": {
|
|
23828
23848
|
color: "rgba(255,255,255,.7)"
|
|
23829
23849
|
}
|
|
23830
|
-
}, itemComponent:
|
|
23850
|
+
}, itemComponent: yT });
|
|
23831
23851
|
});
|
|
23832
|
-
function
|
|
23852
|
+
function vT({
|
|
23833
23853
|
label: t,
|
|
23834
23854
|
config: e,
|
|
23835
23855
|
value: n,
|
|
@@ -23841,10 +23861,10 @@ function xT({
|
|
|
23841
23861
|
}
|
|
23842
23862
|
} });
|
|
23843
23863
|
}
|
|
23844
|
-
const
|
|
23864
|
+
const wT = ({
|
|
23845
23865
|
rotate: t,
|
|
23846
23866
|
onClick: e
|
|
23847
|
-
}) => /* @__PURE__ */ i("svg", { onClick: e, className: "caret-icon", viewBox: "0 0 1024 1024", focusable: "false", "data-icon": "caret-down", width: "14px", height: "14px", fill: "currentColor", "aria-hidden": "true", transform: `rotate(${t})`, children: /* @__PURE__ */ i("path", { d: "M840.4 300H183.6c-19.7 0-30.7 20.8-18.5 35l328.4 380.8c9.4 10.9 27.5 10.9 37 0L858.9 335c12.2-14.2 1.2-35-18.5-35z" }) }),
|
|
23867
|
+
}) => /* @__PURE__ */ i("svg", { onClick: e, className: "caret-icon", viewBox: "0 0 1024 1024", focusable: "false", "data-icon": "caret-down", width: "14px", height: "14px", fill: "currentColor", "aria-hidden": "true", transform: `rotate(${t})`, children: /* @__PURE__ */ i("path", { d: "M840.4 300H183.6c-19.7 0-30.7 20.8-18.5 35l328.4 380.8c9.4 10.9 27.5 10.9 37 0L858.9 335c12.2-14.2 1.2-35-18.5-35z" }) }), _T = ({
|
|
23848
23868
|
expanded: t,
|
|
23849
23869
|
isLeaf: e,
|
|
23850
23870
|
value: n,
|
|
@@ -23853,17 +23873,17 @@ const vT = ({
|
|
|
23853
23873
|
}) => (n === "0-0-value" && console.log(o), e ? /* @__PURE__ */ i("span", { style: {
|
|
23854
23874
|
width: "14px",
|
|
23855
23875
|
display: "inline-block"
|
|
23856
|
-
} }) : /* @__PURE__ */ i(
|
|
23876
|
+
} }) : /* @__PURE__ */ i(wT, { rotate: t ? "0" : "-90", onClick: r, ...o })), CT = ({
|
|
23857
23877
|
onClick: t
|
|
23858
23878
|
}) => /* @__PURE__ */ u("svg", { onClick: t, className: "checkbox-icon", width: "16", height: "16", viewBox: "0 0 24 24", stroke: "currentColor", strokeWidth: "2", fill: "none", strokeLinecap: "round", strokeLinejoin: "round", children: [
|
|
23859
23879
|
/* @__PURE__ */ i("path", { stroke: "none", d: "M0 0h24v24H0z", fill: "none" }),
|
|
23860
23880
|
/* @__PURE__ */ i("rect", { className: "border", x: "4", y: "4", width: "16", height: "16", rx: "2" }),
|
|
23861
23881
|
/* @__PURE__ */ i("rect", { className: "checkmark-indeterminate", x: "8", y: "8", width: "8", height: "8", rx: "2", stroke: "none" }),
|
|
23862
23882
|
/* @__PURE__ */ i("path", { className: "checkmark-checked", d: "M9 12l2 2l4 -4" })
|
|
23863
|
-
] }),
|
|
23883
|
+
] }), ST = ({
|
|
23864
23884
|
onClick: t,
|
|
23865
23885
|
...e
|
|
23866
|
-
}) => /* @__PURE__ */ i(
|
|
23886
|
+
}) => /* @__PURE__ */ i(CT, { onClick: t, ...e }), kT = Bn((t, {
|
|
23867
23887
|
radius: e = 4
|
|
23868
23888
|
}) => ({
|
|
23869
23889
|
root: {
|
|
@@ -24103,7 +24123,7 @@ const vT = ({
|
|
|
24103
24123
|
}
|
|
24104
24124
|
}
|
|
24105
24125
|
}
|
|
24106
|
-
})),
|
|
24126
|
+
})), TT = ({
|
|
24107
24127
|
disabled: t,
|
|
24108
24128
|
// styling props
|
|
24109
24129
|
classNames: e,
|
|
@@ -24121,7 +24141,7 @@ const vT = ({
|
|
|
24121
24141
|
const {
|
|
24122
24142
|
classes: h,
|
|
24123
24143
|
cx: f
|
|
24124
|
-
} =
|
|
24144
|
+
} = kT({
|
|
24125
24145
|
radius: o
|
|
24126
24146
|
}, {
|
|
24127
24147
|
name: "FilterTreeSelectWidget",
|
|
@@ -24149,8 +24169,8 @@ const vT = ({
|
|
|
24149
24169
|
style: a,
|
|
24150
24170
|
treeLine: !0,
|
|
24151
24171
|
clearIcon: () => /* @__PURE__ */ i(rl, {}),
|
|
24152
|
-
switcherIcon:
|
|
24153
|
-
treeIcon:
|
|
24172
|
+
switcherIcon: _T,
|
|
24173
|
+
treeIcon: ST,
|
|
24154
24174
|
maxTagTextLength: 10,
|
|
24155
24175
|
value: l,
|
|
24156
24176
|
treeData: d,
|
|
@@ -24165,7 +24185,7 @@ const vT = ({
|
|
|
24165
24185
|
}
|
|
24166
24186
|
)
|
|
24167
24187
|
] });
|
|
24168
|
-
},
|
|
24188
|
+
}, DT = D(({
|
|
24169
24189
|
label: t,
|
|
24170
24190
|
config: e,
|
|
24171
24191
|
value: n,
|
|
@@ -24177,7 +24197,7 @@ const vT = ({
|
|
|
24177
24197
|
errorMessage: s
|
|
24178
24198
|
} = e, l = e.min_width ? e.min_width : "200px", d = !!e.options_query_id ? a : !1;
|
|
24179
24199
|
return /* @__PURE__ */ i(
|
|
24180
|
-
|
|
24200
|
+
TT,
|
|
24181
24201
|
{
|
|
24182
24202
|
disabled: d,
|
|
24183
24203
|
style: {
|
|
@@ -24193,7 +24213,7 @@ const vT = ({
|
|
|
24193
24213
|
label: t
|
|
24194
24214
|
}
|
|
24195
24215
|
);
|
|
24196
|
-
}),
|
|
24216
|
+
}), IT = D(({
|
|
24197
24217
|
filter: {
|
|
24198
24218
|
type: t,
|
|
24199
24219
|
config: e,
|
|
@@ -24204,24 +24224,24 @@ const vT = ({
|
|
|
24204
24224
|
}) => {
|
|
24205
24225
|
switch (t) {
|
|
24206
24226
|
case "select":
|
|
24207
|
-
return /* @__PURE__ */ i(
|
|
24227
|
+
return /* @__PURE__ */ i(xT, { ...r, ...o, config: e });
|
|
24208
24228
|
case "multi-select":
|
|
24209
|
-
return /* @__PURE__ */ i(
|
|
24229
|
+
return /* @__PURE__ */ i(bT, { ...r, ...o, config: e });
|
|
24210
24230
|
case "tree-select":
|
|
24211
|
-
return /* @__PURE__ */ i(
|
|
24231
|
+
return /* @__PURE__ */ i(DT, { ...r, ...o, config: e });
|
|
24212
24232
|
case "text-input":
|
|
24213
|
-
return /* @__PURE__ */ i(
|
|
24233
|
+
return /* @__PURE__ */ i(vT, { ...r, ...o, config: e });
|
|
24214
24234
|
case "date-range":
|
|
24215
24235
|
return /* @__PURE__ */ i(Md, { ...r, ...o, config: e });
|
|
24216
24236
|
case "checkbox":
|
|
24217
|
-
return /* @__PURE__ */ i(
|
|
24237
|
+
return /* @__PURE__ */ i(fT, { ...r, ...o, config: e });
|
|
24218
24238
|
default:
|
|
24219
24239
|
return null;
|
|
24220
24240
|
}
|
|
24221
24241
|
}), zd = D(z.forwardRef(({
|
|
24222
24242
|
filter: t,
|
|
24223
24243
|
...e
|
|
24224
|
-
}, n) => /* @__PURE__ */ i("div", { className: "filter-root", ref: n, children: /* @__PURE__ */ i(ct, { children: /* @__PURE__ */ i(
|
|
24244
|
+
}, n) => /* @__PURE__ */ i("div", { className: "filter-root", ref: n, children: /* @__PURE__ */ i(ct, { children: /* @__PURE__ */ i(IT, { filter: t, formFieldProps: e }) }) }))), Ld = D(function({
|
|
24225
24245
|
view: e
|
|
24226
24246
|
}) {
|
|
24227
24247
|
const n = re(), {
|
|
@@ -24259,7 +24279,7 @@ const vT = ({
|
|
|
24259
24279
|
}, children: /* @__PURE__ */ i($, { color: "blue", size: "sm", type: "submit", disabled: p, children: "Search" }) })
|
|
24260
24280
|
] }) });
|
|
24261
24281
|
});
|
|
24262
|
-
function
|
|
24282
|
+
function MT(t) {
|
|
24263
24283
|
return t ? ["<p><br></p>", "<p></p>"].includes(t) : !0;
|
|
24264
24284
|
}
|
|
24265
24285
|
const Ad = D(() => {
|
|
@@ -24270,8 +24290,8 @@ const Ad = D(() => {
|
|
|
24270
24290
|
} = tt();
|
|
24271
24291
|
return z.useEffect(() => {
|
|
24272
24292
|
t(e);
|
|
24273
|
-
}, [e]),
|
|
24274
|
-
/* @__PURE__ */ i(
|
|
24293
|
+
}, [e]), MT(r.description) ? null : /* @__PURE__ */ u(G, { children: [
|
|
24294
|
+
/* @__PURE__ */ i(Ie, { opened: e, onClose: () => n(!1), title: r.title, withCloseButton: !1, withinPortal: !0, zIndex: 310, children: /* @__PURE__ */ i(yi, { value: r.description, styles: {
|
|
24275
24295
|
root: {
|
|
24276
24296
|
border: "none"
|
|
24277
24297
|
},
|
|
@@ -24284,10 +24304,10 @@ const Ad = D(() => {
|
|
|
24284
24304
|
cursor: "pointer"
|
|
24285
24305
|
}, children: /* @__PURE__ */ i(Tn, { size: 20 }) }) })
|
|
24286
24306
|
] });
|
|
24287
|
-
}),
|
|
24307
|
+
}), $T = D(({
|
|
24288
24308
|
view: t
|
|
24289
24309
|
}) => {
|
|
24290
|
-
const e =
|
|
24310
|
+
const e = Le(), n = re(), r = Gt(), {
|
|
24291
24311
|
panel: o
|
|
24292
24312
|
} = tt(), {
|
|
24293
24313
|
id: a
|
|
@@ -24338,7 +24358,7 @@ const Ad = D(() => {
|
|
|
24338
24358
|
] })
|
|
24339
24359
|
] })
|
|
24340
24360
|
] }) }) });
|
|
24341
|
-
}),
|
|
24361
|
+
}), zT = D(({
|
|
24342
24362
|
panel: t
|
|
24343
24363
|
}) => /* @__PURE__ */ u(S, { children: [
|
|
24344
24364
|
t.queryErrors.map((e, n) => /* @__PURE__ */ i(C, { color: "red", size: "md", align: "center", sx: {
|
|
@@ -24347,7 +24367,7 @@ const Ad = D(() => {
|
|
|
24347
24367
|
t.queryStateMessages.map((e, n) => /* @__PURE__ */ i(C, { color: "gray", align: "center", children: e }, `${n}-${e}`))
|
|
24348
24368
|
] }));
|
|
24349
24369
|
var Ed = /* @__PURE__ */ ((t) => (t.migrated = "migrated", t.nothingToMigrate = "nothingToMigrate", t.checkFailed = "checkFailed", t.migrationFailed = "migrationFailed", t))(Ed || {}), Fr = /* @__PURE__ */ ((t) => (t.notStarted = "notStarted", t.inProgress = "inProgress", t.done = "done", t))(Fr || {});
|
|
24350
|
-
class
|
|
24370
|
+
class LT {
|
|
24351
24371
|
constructor(e) {
|
|
24352
24372
|
Y(this, "vizInstance");
|
|
24353
24373
|
Y(this, "operationManager");
|
|
@@ -24405,7 +24425,7 @@ function Rd(t) {
|
|
|
24405
24425
|
return n.createScoped().provideFactory(qe.instanceScope.vizInstance, () => r.getOrCreateInstance(t)).provideFactory(qe.instanceScope.interactionManager, (a) => {
|
|
24406
24426
|
const s = a.getRequired(qe.instanceScope.vizInstance);
|
|
24407
24427
|
return new Aa(s, o, vi);
|
|
24408
|
-
}).provideFactory(qe.instanceScope.operationManager, (a) => a.getRequired(qe.instanceScope.interactionManager).operationManager).provideFactory(qe.instanceScope.triggerManager, (a) => a.getRequired(qe.instanceScope.interactionManager).triggerManager).provideValue(qe.instanceScope.panelModel, e).provideFactory(qe.instanceScope.migrator, (a) => new
|
|
24428
|
+
}).provideFactory(qe.instanceScope.operationManager, (a) => a.getRequired(qe.instanceScope.interactionManager).operationManager).provideFactory(qe.instanceScope.triggerManager, (a) => a.getRequired(qe.instanceScope.interactionManager).triggerManager).provideValue(qe.instanceScope.panelModel, e).provideFactory(qe.instanceScope.migrator, (a) => new LT(a));
|
|
24409
24429
|
}, [t.viz.type, t.viz.conf]);
|
|
24410
24430
|
}
|
|
24411
24431
|
function Od(t) {
|
|
@@ -24425,7 +24445,7 @@ function Fd(t, e) {
|
|
|
24425
24445
|
t(r);
|
|
24426
24446
|
})), [t, e.viz.type]), n;
|
|
24427
24447
|
}
|
|
24428
|
-
function
|
|
24448
|
+
function AT({
|
|
24429
24449
|
setVizConf: t,
|
|
24430
24450
|
...e
|
|
24431
24451
|
}) {
|
|
@@ -24441,7 +24461,7 @@ function LT({
|
|
|
24441
24461
|
await r.instanceData.setItem(null, n.viz.conf);
|
|
24442
24462
|
}, [r, n.viz.type]), o ? /* @__PURE__ */ i(mf, { ...e }) : /* @__PURE__ */ i(C, { children: "Checking update..." });
|
|
24443
24463
|
}
|
|
24444
|
-
function
|
|
24464
|
+
function ET(t) {
|
|
24445
24465
|
const {
|
|
24446
24466
|
panel: e,
|
|
24447
24467
|
setVizConf: n
|
|
@@ -24457,7 +24477,7 @@ function AT(t) {
|
|
|
24457
24477
|
});
|
|
24458
24478
|
}) ? /* @__PURE__ */ i(ff, { ...t }) : /* @__PURE__ */ i(C, { children: "Checking update" });
|
|
24459
24479
|
}
|
|
24460
|
-
function
|
|
24480
|
+
function RT(t, e) {
|
|
24461
24481
|
const {
|
|
24462
24482
|
vizManager: n
|
|
24463
24483
|
} = Ot(Pt), {
|
|
@@ -24478,19 +24498,19 @@ function ET(t, e) {
|
|
|
24478
24498
|
layout: e
|
|
24479
24499
|
}, p = Rd(d);
|
|
24480
24500
|
try {
|
|
24481
|
-
return n.resolveComponent(r.type), /* @__PURE__ */ i(wi, { configure: p, children: /* @__PURE__ */ i(
|
|
24501
|
+
return n.resolveComponent(r.type), /* @__PURE__ */ i(wi, { configure: p, children: /* @__PURE__ */ i(ET, { setVizConf: r.setConf, panel: d, data: t, variables: c, vizManager: n }) });
|
|
24482
24502
|
} catch (h) {
|
|
24483
24503
|
return console.info(de(h, "message")), null;
|
|
24484
24504
|
}
|
|
24485
24505
|
}
|
|
24486
|
-
const
|
|
24506
|
+
const OT = D(function({
|
|
24487
24507
|
data: e
|
|
24488
24508
|
}) {
|
|
24489
24509
|
const {
|
|
24490
24510
|
ref: n,
|
|
24491
24511
|
width: r,
|
|
24492
24512
|
height: o
|
|
24493
|
-
} = cr(), a =
|
|
24513
|
+
} = cr(), a = RT(e, {
|
|
24494
24514
|
w: r,
|
|
24495
24515
|
h: o
|
|
24496
24516
|
}), s = r > 0 && o > 0;
|
|
@@ -24504,10 +24524,10 @@ const RT = D(function({
|
|
|
24504
24524
|
width: "100%"
|
|
24505
24525
|
}, children: [
|
|
24506
24526
|
/* @__PURE__ */ i(Cn, { visible: t.dataLoading, exitTransitionDuration: 0 }),
|
|
24507
|
-
!t.canRenderViz && /* @__PURE__ */ i(
|
|
24508
|
-
t.canRenderViz && /* @__PURE__ */ i(
|
|
24527
|
+
!t.canRenderViz && /* @__PURE__ */ i(zT, { panel: t }),
|
|
24528
|
+
t.canRenderViz && /* @__PURE__ */ i(OT, { data: t.data })
|
|
24509
24529
|
] }));
|
|
24510
|
-
const
|
|
24530
|
+
const FT = D(function() {
|
|
24511
24531
|
const {
|
|
24512
24532
|
panel: e
|
|
24513
24533
|
} = tt(), {
|
|
@@ -24517,20 +24537,20 @@ const OT = D(function() {
|
|
|
24517
24537
|
flexGrow: 1
|
|
24518
24538
|
}, children: /* @__PURE__ */ i(C, { align: "center", lineClamp: 1, weight: "bold", children: n }) }) : null;
|
|
24519
24539
|
});
|
|
24520
|
-
function
|
|
24540
|
+
function PT(t) {
|
|
24521
24541
|
return !["richText", "button"].includes(t);
|
|
24522
24542
|
}
|
|
24523
|
-
const
|
|
24543
|
+
const VT = {
|
|
24524
24544
|
border: "1px solid #e9ecef"
|
|
24525
|
-
},
|
|
24545
|
+
}, NT = {
|
|
24526
24546
|
border: "1px dashed transparent",
|
|
24527
24547
|
transition: "border-color 300ms ease",
|
|
24528
24548
|
"&:hover": {
|
|
24529
24549
|
borderColor: "#e9ecef"
|
|
24530
24550
|
}
|
|
24531
24551
|
};
|
|
24532
|
-
function
|
|
24533
|
-
return t.style.border.enabled ?
|
|
24552
|
+
function BT(t, e) {
|
|
24553
|
+
return t.style.border.enabled ? VT : e ? NT : {
|
|
24534
24554
|
border: "1px dashed transparent"
|
|
24535
24555
|
};
|
|
24536
24556
|
}
|
|
@@ -24540,7 +24560,7 @@ const Fa = D(function({
|
|
|
24540
24560
|
}) {
|
|
24541
24561
|
const {
|
|
24542
24562
|
inEditMode: r
|
|
24543
|
-
} = Ot(In), o = e.title ? "calc(100% - 25px - 5px)" : "100%", a =
|
|
24563
|
+
} = Ot(In), o = e.title ? "calc(100% - 25px - 5px)" : "100%", a = BT(e, r), l = PT(e.viz.type) || r;
|
|
24544
24564
|
return /* @__PURE__ */ i(vc, { value: {
|
|
24545
24565
|
panel: e,
|
|
24546
24566
|
data: e.data,
|
|
@@ -24556,12 +24576,12 @@ const Fa = D(function({
|
|
|
24556
24576
|
height: 28,
|
|
24557
24577
|
zIndex: 310
|
|
24558
24578
|
}, children: /* @__PURE__ */ i(Ad, {}) }),
|
|
24559
|
-
l && /* @__PURE__ */ i(
|
|
24560
|
-
/* @__PURE__ */ i(
|
|
24579
|
+
l && /* @__PURE__ */ i($T, { view: n }),
|
|
24580
|
+
/* @__PURE__ */ i(FT, {}),
|
|
24561
24581
|
/* @__PURE__ */ i(Pd, { panel: e, height: o })
|
|
24562
24582
|
] }) });
|
|
24563
24583
|
});
|
|
24564
|
-
const
|
|
24584
|
+
const qT = z.forwardRef(({
|
|
24565
24585
|
h: t
|
|
24566
24586
|
}, e) => /* @__PURE__ */ i(Q, { ref: e, className: "react-grid-customDragHandle", sx: {
|
|
24567
24587
|
userSelect: "none",
|
|
@@ -24573,7 +24593,7 @@ const BT = z.forwardRef(({
|
|
|
24573
24593
|
"&:hover": {
|
|
24574
24594
|
color: "#228be6"
|
|
24575
24595
|
}
|
|
24576
|
-
}, variant: "transparent", children: /* @__PURE__ */ i(Dh, { size: 16 }) })),
|
|
24596
|
+
}, variant: "transparent", children: /* @__PURE__ */ i(Dh, { size: 16 }) })), WT = z.forwardRef(({
|
|
24577
24597
|
handleAxis: t,
|
|
24578
24598
|
...e
|
|
24579
24599
|
}, n) => /* @__PURE__ */ i(Q, { ref: n, className: "react-grid-customResizeHandle", sx: {
|
|
@@ -24586,7 +24606,7 @@ const BT = z.forwardRef(({
|
|
|
24586
24606
|
"&:hover": {
|
|
24587
24607
|
color: "#228be6"
|
|
24588
24608
|
}
|
|
24589
|
-
}, variant: "transparent", ...e, children: /* @__PURE__ */ i(Ih, { size: 16 }) })),
|
|
24609
|
+
}, variant: "transparent", ...e, children: /* @__PURE__ */ i(Ih, { size: 16 }) })), jT = Ul(Ql), GT = D(({
|
|
24590
24610
|
view: t,
|
|
24591
24611
|
className: e = "layout"
|
|
24592
24612
|
}) => {
|
|
@@ -24604,13 +24624,13 @@ const BT = z.forwardRef(({
|
|
|
24604
24624
|
}, [n]), s = (l, c, d, p) => {
|
|
24605
24625
|
d.h < 30 && (d.h = 30, p.h = 30), d.w < 4 && (d.w = 4, p.w = 4);
|
|
24606
24626
|
};
|
|
24607
|
-
return /* @__PURE__ */ i(
|
|
24627
|
+
return /* @__PURE__ */ i(jT, { onLayoutChange: a, className: `dashboard-layout ${e}`, rowHeight: 1, cols: 36, margin: [0, 0], isBounded: !0, isDraggable: !0, isResizable: !0, layout: o, draggableHandle: ".react-grid-customDragHandle", resizeHandle: /* @__PURE__ */ i(WT, {}), onResize: s, children: r.map((l, c) => /* @__PURE__ */ u("div", { "data-grid": {
|
|
24608
24628
|
...l.layout
|
|
24609
24629
|
}, className: "panel-grid-item", children: [
|
|
24610
|
-
/* @__PURE__ */ i(
|
|
24630
|
+
/* @__PURE__ */ i(qT, { h: l.layout.h }),
|
|
24611
24631
|
/* @__PURE__ */ i(Fa, { view: t, panel: l })
|
|
24612
24632
|
] }, l.id)) });
|
|
24613
|
-
}),
|
|
24633
|
+
}), YT = Ul(Ql), HT = D(function({
|
|
24614
24634
|
view: e,
|
|
24615
24635
|
className: n = "layout"
|
|
24616
24636
|
}) {
|
|
@@ -24618,16 +24638,16 @@ const BT = z.forwardRef(({
|
|
|
24618
24638
|
panels: r,
|
|
24619
24639
|
layouts: o
|
|
24620
24640
|
} = re().panels.panelsByIDs(e.panelIDs);
|
|
24621
|
-
return /* @__PURE__ */ i(
|
|
24641
|
+
return /* @__PURE__ */ i(YT, { className: `dashboard-layout ${n}`, cols: 36, rowHeight: 1, margin: [0, 0], isDraggable: !1, isResizable: !1, layout: o, children: r.map((a) => /* @__PURE__ */ i("div", { "data-grid": {
|
|
24622
24642
|
...a.layout
|
|
24623
24643
|
}, className: "panel-grid-item", children: /* @__PURE__ */ i(Fa, { view: e, panel: a }) }, a.id)) });
|
|
24624
|
-
}),
|
|
24644
|
+
}), QT = D(({
|
|
24625
24645
|
children: t
|
|
24626
24646
|
}) => /* @__PURE__ */ i(V, { pt: 10, pb: 100, children: t }));
|
|
24627
24647
|
function Ys(t) {
|
|
24628
24648
|
return t.replace(/(vw|vh)/, "%");
|
|
24629
24649
|
}
|
|
24630
|
-
const
|
|
24650
|
+
const UT = D(({
|
|
24631
24651
|
children: t,
|
|
24632
24652
|
view: e
|
|
24633
24653
|
}) => {
|
|
@@ -24643,7 +24663,7 @@ const QT = D(({
|
|
|
24643
24663
|
"> div:not(.mantine-Modal-root)": {
|
|
24644
24664
|
height: "100%"
|
|
24645
24665
|
}
|
|
24646
|
-
}, children: /* @__PURE__ */ i(
|
|
24666
|
+
}, children: /* @__PURE__ */ i(Ie, { size: n.width, opened: !0, onClose: k.noop, withCloseButton: !1, title: n.custom_modal_title.value, trapFocus: !0, onDragStart: (a) => {
|
|
24647
24667
|
a.stopPropagation();
|
|
24648
24668
|
}, styles: {
|
|
24649
24669
|
root: {
|
|
@@ -24673,7 +24693,7 @@ const QT = D(({
|
|
|
24673
24693
|
}, withinPortal: !1, transitionProps: {
|
|
24674
24694
|
duration: 0
|
|
24675
24695
|
}, children: t }) });
|
|
24676
|
-
}),
|
|
24696
|
+
}), KT = ({
|
|
24677
24697
|
variant: t,
|
|
24678
24698
|
orientation: e
|
|
24679
24699
|
}) => {
|
|
@@ -24690,11 +24710,11 @@ const QT = D(({
|
|
|
24690
24710
|
marginLeft: "auto",
|
|
24691
24711
|
marginRight: "auto"
|
|
24692
24712
|
}), n;
|
|
24693
|
-
},
|
|
24713
|
+
}, XT = (t) => t.color ? {
|
|
24694
24714
|
"&[data-active], &[data-active]:hover": {
|
|
24695
24715
|
borderColor: t.color ? t.color : "..."
|
|
24696
24716
|
}
|
|
24697
|
-
} : {},
|
|
24717
|
+
} : {}, JT = D(({
|
|
24698
24718
|
children: t,
|
|
24699
24719
|
view: e
|
|
24700
24720
|
}) => {
|
|
@@ -24714,9 +24734,9 @@ const QT = D(({
|
|
|
24714
24734
|
zIndex: 320
|
|
24715
24735
|
}), l = a.tabs.length === 0;
|
|
24716
24736
|
return /* @__PURE__ */ u(V, { className: "preview-view-tabs", children: [
|
|
24717
|
-
/* @__PURE__ */ u(g, { variant: a.variant, orientation: a.orientation, defaultValue: a.tabs.length > 0 ? a.tabs[0].id : "0", styles:
|
|
24737
|
+
/* @__PURE__ */ u(g, { variant: a.variant, orientation: a.orientation, defaultValue: a.tabs.length > 0 ? a.tabs[0].id : "0", styles: KT(a), children: [
|
|
24718
24738
|
/* @__PURE__ */ u(g.List, { grow: a.grow, children: [
|
|
24719
|
-
a.tabs.map((c) => /* @__PURE__ */ i(g.Tab, { value: c.id, sx:
|
|
24739
|
+
a.tabs.map((c) => /* @__PURE__ */ i(g.Tab, { value: c.id, sx: XT(c), children: c.name ?? c.id }, c.id)),
|
|
24720
24740
|
/* @__PURE__ */ i(g.Tab, { onClick: a.addTab, value: "add", className: "add-a-tab", children: /* @__PURE__ */ i(Ge, { size: 18, color: "#228be6" }) })
|
|
24721
24741
|
] }),
|
|
24722
24742
|
a.tabs.map((c, d) => {
|
|
@@ -24757,35 +24777,35 @@ const QT = D(({
|
|
|
24757
24777
|
] }),
|
|
24758
24778
|
t
|
|
24759
24779
|
] });
|
|
24760
|
-
}),
|
|
24780
|
+
}), ZT = D(({
|
|
24761
24781
|
view: t,
|
|
24762
24782
|
children: e
|
|
24763
24783
|
}) => {
|
|
24764
24784
|
switch (t.type) {
|
|
24765
24785
|
case se.Modal:
|
|
24766
|
-
return /* @__PURE__ */ i(
|
|
24786
|
+
return /* @__PURE__ */ i(UT, { view: t, children: e });
|
|
24767
24787
|
case se.Tabs:
|
|
24768
|
-
return /* @__PURE__ */ i(
|
|
24788
|
+
return /* @__PURE__ */ i(JT, { view: t, children: e });
|
|
24769
24789
|
case se.Division:
|
|
24770
24790
|
default:
|
|
24771
|
-
return /* @__PURE__ */ i(
|
|
24791
|
+
return /* @__PURE__ */ i(QT, { children: e });
|
|
24772
24792
|
}
|
|
24773
|
-
}),
|
|
24793
|
+
}), eD = D(function({
|
|
24774
24794
|
view: e
|
|
24775
24795
|
}) {
|
|
24776
24796
|
return /* @__PURE__ */ i(Oa.Provider, { value: {
|
|
24777
24797
|
viewPanelInFullScreen: k.noop,
|
|
24778
24798
|
inFullScreen: !1
|
|
24779
|
-
}, children: /* @__PURE__ */ i(V, { className: "dashboard-view", "data-enable-scrollbar": !0, children: /* @__PURE__ */ i(
|
|
24799
|
+
}, children: /* @__PURE__ */ i(V, { className: "dashboard-view", "data-enable-scrollbar": !0, children: /* @__PURE__ */ i(ZT, { view: e, children: /* @__PURE__ */ u(V, { sx: {
|
|
24780
24800
|
position: "relative"
|
|
24781
24801
|
}, children: [
|
|
24782
24802
|
/* @__PURE__ */ i(V, { className: "dashboard-sticky-area", sx: {
|
|
24783
24803
|
position: "sticky",
|
|
24784
24804
|
top: "0px"
|
|
24785
24805
|
}, children: /* @__PURE__ */ i(Ld, { view: e }) }),
|
|
24786
|
-
/* @__PURE__ */ i(
|
|
24806
|
+
/* @__PURE__ */ i(GT, { view: e })
|
|
24787
24807
|
] }) }) }) });
|
|
24788
|
-
}),
|
|
24808
|
+
}), tD = {
|
|
24789
24809
|
modal: {
|
|
24790
24810
|
display: "flex",
|
|
24791
24811
|
flexDirection: "column",
|
|
@@ -24795,17 +24815,17 @@ const QT = D(({
|
|
|
24795
24815
|
display: "flex",
|
|
24796
24816
|
height: "calc(100vh - 88px)"
|
|
24797
24817
|
}
|
|
24798
|
-
},
|
|
24818
|
+
}, nD = D(function({
|
|
24799
24819
|
view: e,
|
|
24800
24820
|
panel: n,
|
|
24801
24821
|
exitFullScreen: r
|
|
24802
24822
|
}) {
|
|
24803
|
-
return /* @__PURE__ */ i(
|
|
24823
|
+
return /* @__PURE__ */ i(Ie, { opened: !0, fullScreen: !0, onClose: r, title: /* @__PURE__ */ i($, { color: "blue", size: "xs", onClick: r, leftIcon: /* @__PURE__ */ i(Mh, { size: 20 }), children: "Exit fullscreen" }), styles: tD, children: /* @__PURE__ */ i(w, { grow: !0, sx: {
|
|
24804
24824
|
flexGrow: 1,
|
|
24805
24825
|
flexShrink: 0
|
|
24806
24826
|
}, children: /* @__PURE__ */ i(Fa, { view: e, panel: n }) }) });
|
|
24807
24827
|
});
|
|
24808
|
-
function
|
|
24828
|
+
function rD(t, e, n) {
|
|
24809
24829
|
const {
|
|
24810
24830
|
panels: r
|
|
24811
24831
|
} = re(), o = t.id === "Main", [a, s] = z.useState(() => o && r.findByID(e) ? e : null), l = z.useCallback((h) => {
|
|
@@ -24820,14 +24840,14 @@ function nD(t, e, n) {
|
|
|
24820
24840
|
fullScreenPanel: d
|
|
24821
24841
|
};
|
|
24822
24842
|
}
|
|
24823
|
-
const
|
|
24843
|
+
const iD = D(({
|
|
24824
24844
|
children: t
|
|
24825
|
-
}) => /* @__PURE__ */ i(V, { children: t })),
|
|
24845
|
+
}) => /* @__PURE__ */ i(V, { children: t })), oD = D(({
|
|
24826
24846
|
children: t,
|
|
24827
24847
|
view: e
|
|
24828
24848
|
}) => {
|
|
24829
24849
|
const n = re(), r = e.config, o = n.views.visibleViewIDs.includes(e.id), a = () => n.views.rmVisibleViewID(e.id);
|
|
24830
|
-
return /* @__PURE__ */ i(
|
|
24850
|
+
return /* @__PURE__ */ i(Ie, { size: r.width, centered: !0, opened: o, onClose: a, withCloseButton: !1, title: r.custom_modal_title.value, trapFocus: !0, onDragStart: (s) => {
|
|
24831
24851
|
s.stopPropagation();
|
|
24832
24852
|
}, styles: {
|
|
24833
24853
|
content: {
|
|
@@ -24840,11 +24860,11 @@ const rD = D(({
|
|
|
24840
24860
|
}, transitionProps: {
|
|
24841
24861
|
duration: 0
|
|
24842
24862
|
}, children: t });
|
|
24843
|
-
}),
|
|
24863
|
+
}), aD = (t) => t.color ? {
|
|
24844
24864
|
"&[data-active], &[data-active]:hover": {
|
|
24845
24865
|
borderColor: t.color ? t.color : "..."
|
|
24846
24866
|
}
|
|
24847
|
-
} : {},
|
|
24867
|
+
} : {}, sD = D(({
|
|
24848
24868
|
children: t,
|
|
24849
24869
|
view: e
|
|
24850
24870
|
}) => {
|
|
@@ -24855,7 +24875,7 @@ const rD = D(({
|
|
|
24855
24875
|
padding: r.orientation === "horizontal" ? "16px 0px" : "0"
|
|
24856
24876
|
}
|
|
24857
24877
|
}, keepMounted: !1, children: [
|
|
24858
|
-
/* @__PURE__ */ i(g.List, { grow: r.grow, children: r.tabs.map((o) => /* @__PURE__ */ i(g.Tab, { value: o.id, sx:
|
|
24878
|
+
/* @__PURE__ */ i(g.List, { grow: r.grow, children: r.tabs.map((o) => /* @__PURE__ */ i(g.Tab, { value: o.id, sx: aD(o), disabled: !o.view_id, children: o.name ?? o.id }, o.id)) }),
|
|
24859
24879
|
r.tabs.map((o) => {
|
|
24860
24880
|
const a = n.views.findByID(o.view_id);
|
|
24861
24881
|
return a ? /* @__PURE__ */ i(g.Panel, { value: o.id, children: /* @__PURE__ */ i(Pa, { view: a }) }, o.id) : null;
|
|
@@ -24863,18 +24883,18 @@ const rD = D(({
|
|
|
24863
24883
|
] }),
|
|
24864
24884
|
t
|
|
24865
24885
|
] });
|
|
24866
|
-
}),
|
|
24886
|
+
}), lD = D(({
|
|
24867
24887
|
view: t,
|
|
24868
24888
|
children: e
|
|
24869
24889
|
}) => {
|
|
24870
24890
|
switch (t.type) {
|
|
24871
24891
|
case se.Modal:
|
|
24872
|
-
return /* @__PURE__ */ i(
|
|
24892
|
+
return /* @__PURE__ */ i(oD, { view: t, children: e });
|
|
24873
24893
|
case se.Tabs:
|
|
24874
|
-
return /* @__PURE__ */ i(
|
|
24894
|
+
return /* @__PURE__ */ i(sD, { view: t, children: e });
|
|
24875
24895
|
case se.Division:
|
|
24876
24896
|
default:
|
|
24877
|
-
return /* @__PURE__ */ i(
|
|
24897
|
+
return /* @__PURE__ */ i(iD, { children: e });
|
|
24878
24898
|
}
|
|
24879
24899
|
}), Pa = D(function({
|
|
24880
24900
|
view: e
|
|
@@ -24887,30 +24907,30 @@ const rD = D(({
|
|
|
24887
24907
|
exitFullScreen: a,
|
|
24888
24908
|
inFullScreen: s,
|
|
24889
24909
|
fullScreenPanel: l
|
|
24890
|
-
} =
|
|
24910
|
+
} = rD(e, n, r);
|
|
24891
24911
|
return /* @__PURE__ */ i(Oa.Provider, { value: {
|
|
24892
24912
|
viewPanelInFullScreen: o,
|
|
24893
24913
|
inFullScreen: s
|
|
24894
24914
|
}, children: /* @__PURE__ */ u(V, { className: "dashboard-view", "data-enable-scrollbar": !0, children: [
|
|
24895
|
-
s && /* @__PURE__ */ i(
|
|
24896
|
-
/* @__PURE__ */ i(
|
|
24915
|
+
s && /* @__PURE__ */ i(nD, { view: e, panel: l, exitFullScreen: a }),
|
|
24916
|
+
/* @__PURE__ */ i(lD, { view: e, children: /* @__PURE__ */ u(V, { sx: {
|
|
24897
24917
|
position: "relative"
|
|
24898
24918
|
}, children: [
|
|
24899
24919
|
!s && /* @__PURE__ */ i(V, { className: "dashboard-sticky-area", sx: {
|
|
24900
24920
|
position: "sticky",
|
|
24901
24921
|
top: "0px"
|
|
24902
24922
|
}, children: /* @__PURE__ */ i(Ld, { view: e }) }),
|
|
24903
|
-
!s && /* @__PURE__ */ i(
|
|
24923
|
+
!s && /* @__PURE__ */ i(HT, { view: e })
|
|
24904
24924
|
] }) })
|
|
24905
24925
|
] }) });
|
|
24906
24926
|
});
|
|
24907
24927
|
function Vd(t) {
|
|
24908
24928
|
return z.useCallback((e) => e.provideValue(qe.pluginManager, t.pluginManager).provideValue(qe.vizManager, t.vizManager).provideValue(qe.colorManager, t.colorManager), []);
|
|
24909
24929
|
}
|
|
24910
|
-
const
|
|
24930
|
+
const cD = D(({
|
|
24911
24931
|
headerMenuItems: t = null
|
|
24912
24932
|
}) => {
|
|
24913
|
-
const e =
|
|
24933
|
+
const e = Le(), n = re(), r = () => {
|
|
24914
24934
|
const o = JSON.stringify(n.json, null, 2), a = `${e.name}__${n.name}`;
|
|
24915
24935
|
Np(a, o);
|
|
24916
24936
|
};
|
|
@@ -24922,7 +24942,7 @@ const lD = D(({
|
|
|
24922
24942
|
t
|
|
24923
24943
|
] })
|
|
24924
24944
|
] });
|
|
24925
|
-
}),
|
|
24945
|
+
}), dD = D(({
|
|
24926
24946
|
saveDashboardChanges: t
|
|
24927
24947
|
}) => {
|
|
24928
24948
|
const e = Gt(), n = re(), r = () => {
|
|
@@ -24962,12 +24982,12 @@ const lD = D(({
|
|
|
24962
24982
|
/* @__PURE__ */ i(He.Dropdown, { children: /* @__PURE__ */ i(He.Item, { icon: /* @__PURE__ */ i(wl, { size: 14, color: "red" }), disabled: !o, onClick: r, children: "Revert Changes" }) })
|
|
24963
24983
|
] })
|
|
24964
24984
|
] });
|
|
24965
|
-
}),
|
|
24985
|
+
}), uD = D(({
|
|
24966
24986
|
saveDashboardChanges: t,
|
|
24967
24987
|
headerSlot: e = null,
|
|
24968
24988
|
headerMenuItems: n
|
|
24969
24989
|
}) => {
|
|
24970
|
-
const r = lp(), o =
|
|
24990
|
+
const r = lp(), o = Le(), a = () => {
|
|
24971
24991
|
r(`/dashboard/${o.id}`);
|
|
24972
24992
|
}, s = Gt(), l = () => {
|
|
24973
24993
|
s.openConfirmModal({
|
|
@@ -25000,16 +25020,16 @@ const lD = D(({
|
|
|
25000
25020
|
"End Editing",
|
|
25001
25021
|
/* @__PURE__ */ i(C, { td: "underline", children: o.name })
|
|
25002
25022
|
] }) }),
|
|
25003
|
-
/* @__PURE__ */ i(
|
|
25023
|
+
/* @__PURE__ */ i(dD, { saveDashboardChanges: t })
|
|
25004
25024
|
] }),
|
|
25005
25025
|
/* @__PURE__ */ u(w, { position: "right", sx: {
|
|
25006
25026
|
flexGrow: 1
|
|
25007
25027
|
}, children: [
|
|
25008
25028
|
e,
|
|
25009
|
-
/* @__PURE__ */ i(
|
|
25029
|
+
/* @__PURE__ */ i(cD, { headerMenuItems: n })
|
|
25010
25030
|
] })
|
|
25011
25031
|
] }) });
|
|
25012
|
-
}),
|
|
25032
|
+
}), hD = {
|
|
25013
25033
|
position: "fixed",
|
|
25014
25034
|
top: 60,
|
|
25015
25035
|
// height of mantine-header
|
|
@@ -25019,9 +25039,9 @@ const lD = D(({
|
|
|
25019
25039
|
zIndex: 299,
|
|
25020
25040
|
borderBottom: "1px solid #e9ecef",
|
|
25021
25041
|
background: "rgba(233,236,239, 0.15)"
|
|
25022
|
-
},
|
|
25042
|
+
}, pD = D(() => {
|
|
25023
25043
|
const t = re();
|
|
25024
|
-
return /* @__PURE__ */ i(V, { sx:
|
|
25044
|
+
return /* @__PURE__ */ i(V, { sx: hD, pl: {
|
|
25025
25045
|
base: 200,
|
|
25026
25046
|
xs: 200,
|
|
25027
25047
|
sm: 200,
|
|
@@ -25042,11 +25062,11 @@ const lD = D(({
|
|
|
25042
25062
|
/* @__PURE__ */ i(V, {}),
|
|
25043
25063
|
/* @__PURE__ */ i(V, {})
|
|
25044
25064
|
] }) });
|
|
25045
|
-
}),
|
|
25046
|
-
/* @__PURE__ */ i(
|
|
25047
|
-
/* @__PURE__ */ i(
|
|
25065
|
+
}), fD = D((t) => /* @__PURE__ */ u(G, { children: [
|
|
25066
|
+
/* @__PURE__ */ i(uD, { ...t }),
|
|
25067
|
+
/* @__PURE__ */ i(pD, {})
|
|
25048
25068
|
] }));
|
|
25049
|
-
function
|
|
25069
|
+
function mD(t, e, n) {
|
|
25050
25070
|
const r = [];
|
|
25051
25071
|
return t.filter((o) => "__INTERACTIONS" in o.viz.conf).forEach((o, a) => {
|
|
25052
25072
|
const s = e[o.id];
|
|
@@ -25108,21 +25128,21 @@ function fD(t, e, n) {
|
|
|
25108
25128
|
});
|
|
25109
25129
|
}), r;
|
|
25110
25130
|
}
|
|
25111
|
-
function
|
|
25131
|
+
function gD(t, e) {
|
|
25112
25132
|
const n = t.filters.keyLabelMap;
|
|
25113
25133
|
return {
|
|
25114
|
-
edges:
|
|
25134
|
+
edges: mD(t.panels.list, e, n),
|
|
25115
25135
|
edgeNodes: []
|
|
25116
25136
|
};
|
|
25117
25137
|
}
|
|
25118
25138
|
function Nd(t, e, n) {
|
|
25119
25139
|
return t * e + t * n;
|
|
25120
25140
|
}
|
|
25121
|
-
function
|
|
25141
|
+
function bD(t, e, n) {
|
|
25122
25142
|
return t * e + (t - 1) * n;
|
|
25123
25143
|
}
|
|
25124
|
-
const Ur = 25, Va = 40, Bd = 25, Na = 350,
|
|
25125
|
-
function
|
|
25144
|
+
const Ur = 25, Va = 40, Bd = 25, Na = 350, yD = 150, xD = 150, qd = 150, Hs = 300, Pr = 40, Wd = 25, vD = 300;
|
|
25145
|
+
function wD(t, e) {
|
|
25126
25146
|
const n = k.keyBy(e, (o) => o.id), r = [];
|
|
25127
25147
|
return t.current.forEach((o, a) => {
|
|
25128
25148
|
o.panelIDs.forEach((s, l) => {
|
|
@@ -25170,14 +25190,14 @@ function vD(t, e) {
|
|
|
25170
25190
|
});
|
|
25171
25191
|
}), r;
|
|
25172
25192
|
}
|
|
25173
|
-
const
|
|
25193
|
+
const _D = {
|
|
25174
25194
|
[se.Division]: "Div",
|
|
25175
25195
|
[se.Modal]: "Modal",
|
|
25176
25196
|
[se.Tabs]: "Tabs"
|
|
25177
|
-
},
|
|
25178
|
-
function
|
|
25197
|
+
}, CD = Zk;
|
|
25198
|
+
function SD(t) {
|
|
25179
25199
|
return t.current.map((n, r) => {
|
|
25180
|
-
const o =
|
|
25200
|
+
const o = bD(n.panelIDs.length, Pr, Wd) + Va + Bd;
|
|
25181
25201
|
let a = [];
|
|
25182
25202
|
return n.type === se.Tabs && (a = n.config.tabs.map((l) => l.view_id)), {
|
|
25183
25203
|
id: n.id,
|
|
@@ -25187,7 +25207,7 @@ function CD(t) {
|
|
|
25187
25207
|
_sub_view_ids: [],
|
|
25188
25208
|
_tab_view_ids: a,
|
|
25189
25209
|
data: {
|
|
25190
|
-
label: `${
|
|
25210
|
+
label: `${_D[n.type]}:${n.name}`
|
|
25191
25211
|
},
|
|
25192
25212
|
position: {
|
|
25193
25213
|
x: 0,
|
|
@@ -25197,14 +25217,14 @@ function CD(t) {
|
|
|
25197
25217
|
targetPosition: St.Left,
|
|
25198
25218
|
className: "light",
|
|
25199
25219
|
style: {
|
|
25200
|
-
backgroundColor:
|
|
25220
|
+
backgroundColor: CD[n.type],
|
|
25201
25221
|
width: Na,
|
|
25202
25222
|
height: o
|
|
25203
25223
|
}
|
|
25204
25224
|
};
|
|
25205
25225
|
});
|
|
25206
25226
|
}
|
|
25207
|
-
function
|
|
25227
|
+
function kD(t) {
|
|
25208
25228
|
const e = k.keyBy(t, (n) => n.id);
|
|
25209
25229
|
t.forEach((n) => {
|
|
25210
25230
|
n._node_type !== "view-root" || n._view_type !== se.Tabs || n._tab_view_ids.forEach((r) => {
|
|
@@ -25212,13 +25232,13 @@ function SD(t) {
|
|
|
25212
25232
|
});
|
|
25213
25233
|
});
|
|
25214
25234
|
}
|
|
25215
|
-
function
|
|
25216
|
-
const e =
|
|
25217
|
-
|
|
25218
|
-
const n =
|
|
25235
|
+
function TD(t) {
|
|
25236
|
+
const e = SD(t.views);
|
|
25237
|
+
kD(e);
|
|
25238
|
+
const n = wD(t.views, t.panels.list);
|
|
25219
25239
|
return [...e, ...n];
|
|
25220
25240
|
}
|
|
25221
|
-
function
|
|
25241
|
+
function DD({
|
|
25222
25242
|
nodeMap: t,
|
|
25223
25243
|
nodes: e,
|
|
25224
25244
|
edges: n
|
|
@@ -25232,7 +25252,7 @@ function TD({
|
|
|
25232
25252
|
}, Va));
|
|
25233
25253
|
});
|
|
25234
25254
|
}
|
|
25235
|
-
function
|
|
25255
|
+
function ID({
|
|
25236
25256
|
nodeMap: t,
|
|
25237
25257
|
nodes: e,
|
|
25238
25258
|
edges: n
|
|
@@ -25245,7 +25265,7 @@ function DD({
|
|
|
25245
25265
|
s._node_type !== "view-root" || a._node_type !== "view-root" || (a._view_level += 1 + s._view_level, s._sub_view_ids.push(a.id));
|
|
25246
25266
|
}), e.sort((r, o) => r._node_type === "view-root" && o._node_type === "view-root" ? r._view_level - o._view_level : r._node_type !== "view-root" && o._node_type !== "view-root" ? 0 : r._node_type === "view-root" ? -1 : 1);
|
|
25247
25267
|
}
|
|
25248
|
-
function
|
|
25268
|
+
function MD({
|
|
25249
25269
|
nodeMap: t,
|
|
25250
25270
|
nodes: e,
|
|
25251
25271
|
edges: n
|
|
@@ -25257,13 +25277,13 @@ function ID({
|
|
|
25257
25277
|
const a = t[o.source], s = t[o.target];
|
|
25258
25278
|
if (a && s && a.parentNode) {
|
|
25259
25279
|
const l = t[a.parentNode], c = l.position.x, d = Number(k.get(s, "style.height", 0)), p = Number(l.style.width);
|
|
25260
|
-
s.position.x = c + p +
|
|
25280
|
+
s.position.x = c + p + vD, l._view_level === 0 && s._sub_view_ids.length === 0 && (a.sourcePosition = St.Left, s.targetPosition = St.Right, s.position.x *= -1);
|
|
25261
25281
|
const f = s.position.x, m = k.get(r, f, 0);
|
|
25262
25282
|
s.position.y = m, r[f] = m + d + qd;
|
|
25263
25283
|
}
|
|
25264
25284
|
});
|
|
25265
25285
|
}
|
|
25266
|
-
function
|
|
25286
|
+
function $D({
|
|
25267
25287
|
nodeMap: t,
|
|
25268
25288
|
nodes: e,
|
|
25269
25289
|
edges: n
|
|
@@ -25272,10 +25292,10 @@ function MD({
|
|
|
25272
25292
|
n.forEach((s) => {
|
|
25273
25293
|
r.add(s.source), o.add(s.target);
|
|
25274
25294
|
}), e.filter((s) => s._node_type !== "view-root" || s.id === "Main" || s.parentNode ? !1 : !r.has(s.id) && !o.has(s.id)).forEach((s, l) => {
|
|
25275
|
-
s.position.x = Nd(l, Na,
|
|
25295
|
+
s.position.x = Nd(l, Na, xD), s.position.y = 0 - yD - qd;
|
|
25276
25296
|
});
|
|
25277
25297
|
}
|
|
25278
|
-
function
|
|
25298
|
+
function zD({
|
|
25279
25299
|
nodeMap: t,
|
|
25280
25300
|
nodes: e,
|
|
25281
25301
|
edges: n
|
|
@@ -25285,28 +25305,28 @@ function $D({
|
|
|
25285
25305
|
nodes: e,
|
|
25286
25306
|
edges: n
|
|
25287
25307
|
};
|
|
25288
|
-
return
|
|
25308
|
+
return $D(r), ID(r), DD(r), MD(r), {
|
|
25289
25309
|
nodes: e,
|
|
25290
25310
|
edges: n
|
|
25291
25311
|
};
|
|
25292
25312
|
}
|
|
25293
|
-
function
|
|
25294
|
-
const e =
|
|
25313
|
+
function LD(t) {
|
|
25314
|
+
const e = TD(t), n = k.keyBy(e, (c) => c.id), {
|
|
25295
25315
|
edges: r,
|
|
25296
25316
|
edgeNodes: o
|
|
25297
|
-
} =
|
|
25317
|
+
} = gD(t, n), a = [...e, ...o], s = k.keyBy(a, (c) => c.id), l = {
|
|
25298
25318
|
edges: k.uniqBy(r, (c) => c.id),
|
|
25299
25319
|
nodes: a,
|
|
25300
25320
|
nodeMap: s
|
|
25301
25321
|
};
|
|
25302
|
-
return
|
|
25322
|
+
return zD(l);
|
|
25303
25323
|
}
|
|
25304
25324
|
const qi = {
|
|
25305
25325
|
"builtin:op:open-link": /* @__PURE__ */ i($i, { color: "blue", size: 20, radius: "xl", children: /* @__PURE__ */ i(sh, { size: 14 }) }),
|
|
25306
25326
|
"builtin:op:set_filter_values": /* @__PURE__ */ i($i, { color: "orange", size: 20, radius: "xl", children: /* @__PURE__ */ i(lh, { size: 14 }) }),
|
|
25307
25327
|
"builtin:op:clear_filter_values": /* @__PURE__ */ i($i, { color: "orange", size: 20, radius: "xl", children: /* @__PURE__ */ i(ch, { size: 14 }) })
|
|
25308
25328
|
};
|
|
25309
|
-
function
|
|
25329
|
+
function AD(t) {
|
|
25310
25330
|
const e = [];
|
|
25311
25331
|
return t.forEach((n) => {
|
|
25312
25332
|
switch (n.schemaRef) {
|
|
@@ -25353,14 +25373,14 @@ function LD(t) {
|
|
|
25353
25373
|
}
|
|
25354
25374
|
}), e;
|
|
25355
25375
|
}
|
|
25356
|
-
const
|
|
25376
|
+
const ED = xu(({
|
|
25357
25377
|
data: t,
|
|
25358
25378
|
isConnectable: e,
|
|
25359
25379
|
sourcePosition: n = St.Right,
|
|
25360
25380
|
targetPosition: r = St.Left,
|
|
25361
25381
|
...o
|
|
25362
25382
|
}) => {
|
|
25363
|
-
const a = M(() =>
|
|
25383
|
+
const a = M(() => AD(t.interactions), [t.interactions]);
|
|
25364
25384
|
return /* @__PURE__ */ u(G, { children: [
|
|
25365
25385
|
/* @__PURE__ */ i(ps, { type: "target", position: r, isConnectable: e }),
|
|
25366
25386
|
/* @__PURE__ */ i(V, { sx: {
|
|
@@ -25375,19 +25395,19 @@ const AD = xu(({
|
|
|
25375
25395
|
/* @__PURE__ */ i(ps, { type: "source", position: n, isConnectable: e })
|
|
25376
25396
|
] });
|
|
25377
25397
|
});
|
|
25378
|
-
const
|
|
25379
|
-
interaction:
|
|
25380
|
-
},
|
|
25398
|
+
const RD = {
|
|
25399
|
+
interaction: ED
|
|
25400
|
+
}, OD = D(() => {
|
|
25381
25401
|
const t = re(), {
|
|
25382
25402
|
edges: e,
|
|
25383
25403
|
nodes: n
|
|
25384
|
-
} =
|
|
25385
|
-
return /* @__PURE__ */ u(cp, { nodes: n, edges: e, onNodesChange: k.noop, onEdgesChange: k.noop, onConnect: k.noop, className: "interactions-viewer", fitView: !0, nodeTypes:
|
|
25404
|
+
} = LD(t);
|
|
25405
|
+
return /* @__PURE__ */ u(cp, { nodes: n, edges: e, onNodesChange: k.noop, onEdgesChange: k.noop, onConnect: k.noop, className: "interactions-viewer", fitView: !0, nodeTypes: RD, children: [
|
|
25386
25406
|
/* @__PURE__ */ i(dp, {}),
|
|
25387
25407
|
/* @__PURE__ */ i(up, {}),
|
|
25388
25408
|
/* @__PURE__ */ i(hp, {})
|
|
25389
25409
|
] });
|
|
25390
|
-
}),
|
|
25410
|
+
}), FD = D(({
|
|
25391
25411
|
opened: t,
|
|
25392
25412
|
close: e
|
|
25393
25413
|
}) => {
|
|
@@ -25397,7 +25417,7 @@ const ED = {
|
|
|
25397
25417
|
return z.useEffect(() => {
|
|
25398
25418
|
n(t);
|
|
25399
25419
|
}, [t]), /* @__PURE__ */ i(
|
|
25400
|
-
|
|
25420
|
+
Ie,
|
|
25401
25421
|
{
|
|
25402
25422
|
size: "96vw",
|
|
25403
25423
|
opened: t,
|
|
@@ -25416,10 +25436,10 @@ const ED = {
|
|
|
25416
25436
|
}
|
|
25417
25437
|
},
|
|
25418
25438
|
zIndex: 300,
|
|
25419
|
-
children: /* @__PURE__ */ i(
|
|
25439
|
+
children: /* @__PURE__ */ i(OD, {})
|
|
25420
25440
|
}
|
|
25421
25441
|
);
|
|
25422
|
-
}),
|
|
25442
|
+
}), PD = {
|
|
25423
25443
|
"> button": {
|
|
25424
25444
|
"&:first-of-type": {
|
|
25425
25445
|
borderTopRightRadius: 0,
|
|
@@ -25441,7 +25461,7 @@ const ED = {
|
|
|
25441
25461
|
}
|
|
25442
25462
|
}
|
|
25443
25463
|
};
|
|
25444
|
-
function
|
|
25464
|
+
function VD({
|
|
25445
25465
|
onClick: t,
|
|
25446
25466
|
name: e,
|
|
25447
25467
|
active: n,
|
|
@@ -25475,14 +25495,14 @@ function PD({
|
|
|
25475
25495
|
}, children: /* @__PURE__ */ i(dh, { size: 16 }) }) })
|
|
25476
25496
|
] });
|
|
25477
25497
|
}
|
|
25478
|
-
const
|
|
25479
|
-
const t =
|
|
25498
|
+
const ND = D(() => {
|
|
25499
|
+
const t = Le(), e = re(), n = ot((o) => () => e.views.setIDOfVIE(o), [e]), r = (o) => {
|
|
25480
25500
|
t.editor.open(["_VIEWS_", o]);
|
|
25481
25501
|
};
|
|
25482
25502
|
return /* @__PURE__ */ u(V, { sx: {
|
|
25483
25503
|
position: "relative"
|
|
25484
25504
|
}, children: [
|
|
25485
|
-
e.views.options.map((o) => /* @__PURE__ */ i(
|
|
25505
|
+
e.views.options.map((o) => /* @__PURE__ */ i(VD, { active: e.views.idOfVIE === o.value, name: o.label, onClick: n(o.value), openSettings: () => r(o.value) }, o.value)),
|
|
25486
25506
|
/* @__PURE__ */ i(R, { variant: "dashed" }),
|
|
25487
25507
|
/* @__PURE__ */ i($, { variant: "subtle", rightIcon: /* @__PURE__ */ i(Yt, { size: 14 }), size: "sm", px: "xs", color: "blue", onClick: e.views.addARandomNewView, sx: {
|
|
25488
25508
|
width: "100%",
|
|
@@ -25493,8 +25513,8 @@ const VD = D(() => {
|
|
|
25493
25513
|
}
|
|
25494
25514
|
}, children: "Add a View" })
|
|
25495
25515
|
] });
|
|
25496
|
-
}),
|
|
25497
|
-
const t =
|
|
25516
|
+
}), BD = D(() => {
|
|
25517
|
+
const t = Le(), e = re(), n = () => {
|
|
25498
25518
|
if (!e.queries.firstID) {
|
|
25499
25519
|
t.editor.open(["_QUERIES_", ""]);
|
|
25500
25520
|
return;
|
|
@@ -25517,7 +25537,7 @@ const VD = D(() => {
|
|
|
25517
25537
|
}, zIndex: 299, children: [
|
|
25518
25538
|
/* @__PURE__ */ u(Bt.Section, { children: [
|
|
25519
25539
|
/* @__PURE__ */ u(w, { grow: !0, spacing: 0, sx: {
|
|
25520
|
-
...
|
|
25540
|
+
...PD,
|
|
25521
25541
|
button: {
|
|
25522
25542
|
borderWidth: 0,
|
|
25523
25543
|
borderBottomWidth: 1,
|
|
@@ -25534,7 +25554,7 @@ const VD = D(() => {
|
|
|
25534
25554
|
height: "30px"
|
|
25535
25555
|
}, onClick: s, children: /* @__PURE__ */ i(uh, { size: 18 }) }) })
|
|
25536
25556
|
] }),
|
|
25537
|
-
/* @__PURE__ */ i(
|
|
25557
|
+
/* @__PURE__ */ i(FD, { opened: o, close: l })
|
|
25538
25558
|
] }),
|
|
25539
25559
|
/* @__PURE__ */ i(Bt.Section, { py: 5, sx: {
|
|
25540
25560
|
borderBottom: "1px solid #eee"
|
|
@@ -25544,12 +25564,12 @@ const VD = D(() => {
|
|
|
25544
25564
|
}, children: "Views" }) }),
|
|
25545
25565
|
/* @__PURE__ */ i(Bt.Section, { grow: !0, sx: {
|
|
25546
25566
|
overflow: "auto"
|
|
25547
|
-
}, children: /* @__PURE__ */ i(
|
|
25567
|
+
}, children: /* @__PURE__ */ i(ND, {}) }),
|
|
25548
25568
|
/* @__PURE__ */ i(Bt.Section, { children: /* @__PURE__ */ i(w, { grow: !0, p: "md", pt: "sm", sx: {
|
|
25549
25569
|
borderTop: "1px solid #eee"
|
|
25550
25570
|
}, children: /* @__PURE__ */ i($, { size: "xs", leftIcon: /* @__PURE__ */ i(hh, { size: 20 }), onClick: () => t.editor.open([]), children: "Settings" }) }) })
|
|
25551
25571
|
] });
|
|
25552
|
-
}),
|
|
25572
|
+
}), qD = D(function({
|
|
25553
25573
|
config: e
|
|
25554
25574
|
}) {
|
|
25555
25575
|
return /* @__PURE__ */ u(G, { children: [
|
|
@@ -25561,7 +25581,7 @@ const VD = D(() => {
|
|
|
25561
25581
|
}
|
|
25562
25582
|
} })
|
|
25563
25583
|
] });
|
|
25564
|
-
}),
|
|
25584
|
+
}), WD = [{
|
|
25565
25585
|
label: "2022",
|
|
25566
25586
|
value: "YYYY"
|
|
25567
25587
|
}, {
|
|
@@ -25576,7 +25596,7 @@ const VD = D(() => {
|
|
|
25576
25596
|
}, {
|
|
25577
25597
|
label: "2022-01-01",
|
|
25578
25598
|
value: "YYYY-MM-DD"
|
|
25579
|
-
}],
|
|
25599
|
+
}], jD = D(function({
|
|
25580
25600
|
config: e
|
|
25581
25601
|
}) {
|
|
25582
25602
|
return /* @__PURE__ */ u(G, { children: [
|
|
@@ -25585,7 +25605,7 @@ const VD = D(() => {
|
|
|
25585
25605
|
/* @__PURE__ */ i(we, { checked: e.clearable, onChange: (n) => e.setClearable(n.currentTarget.checked), disabled: e.max_days > 0, label: "Clearable" }),
|
|
25586
25606
|
/* @__PURE__ */ i(we, { checked: e.allowSingleDateInRange, onChange: (n) => e.setAllowSingleDateInRange(n.currentTarget.checked), label: "Allow choosing 1 day" })
|
|
25587
25607
|
] }),
|
|
25588
|
-
/* @__PURE__ */ i(P, { data:
|
|
25608
|
+
/* @__PURE__ */ i(P, { data: WD, label: "Display Format", value: e.inputFormat, onChange: e.setInputFormat }),
|
|
25589
25609
|
/* @__PURE__ */ i(
|
|
25590
25610
|
Md,
|
|
25591
25611
|
{
|
|
@@ -25612,7 +25632,7 @@ const VD = D(() => {
|
|
|
25612
25632
|
return /* @__PURE__ */ i(P, { label: "Pick a query", data: r, value: t, onChange: e, allowDeselect: !1, clearable: !0, sx: {
|
|
25613
25633
|
flexGrow: 1
|
|
25614
25634
|
}, disabled: o, error: o ? "You need to add a query in Data Settings" : void 0 });
|
|
25615
|
-
}),
|
|
25635
|
+
}), GD = `
|
|
25616
25636
|
// row
|
|
25617
25637
|
{
|
|
25618
25638
|
label: string;
|
|
@@ -25623,9 +25643,9 @@ const VD = D(() => {
|
|
|
25623
25643
|
const [t, e] = K(!1);
|
|
25624
25644
|
return /* @__PURE__ */ u(G, { children: [
|
|
25625
25645
|
/* @__PURE__ */ i($, { variant: "subtle", compact: !0, onClick: () => e((n) => !n), children: t ? "Close" : "Click to see expected data structure" }),
|
|
25626
|
-
/* @__PURE__ */ i(Bo, { in: t, children: /* @__PURE__ */ i(_n, { language: "typescript", noCopy: !0, colorScheme: "dark", children:
|
|
25646
|
+
/* @__PURE__ */ i(Bo, { in: t, children: /* @__PURE__ */ i(_n, { language: "typescript", noCopy: !0, colorScheme: "dark", children: GD }) })
|
|
25627
25647
|
] });
|
|
25628
|
-
},
|
|
25648
|
+
}, YD = D(function({
|
|
25629
25649
|
config: e
|
|
25630
25650
|
}) {
|
|
25631
25651
|
const n = () => {
|
|
@@ -25686,7 +25706,7 @@ const VD = D(() => {
|
|
|
25686
25706
|
/* @__PURE__ */ i(Ba, { value: e.options_query_id, onChange: e.setOptionsQueryID }),
|
|
25687
25707
|
/* @__PURE__ */ i(jd, {})
|
|
25688
25708
|
] });
|
|
25689
|
-
}),
|
|
25709
|
+
}), HD = D(function({
|
|
25690
25710
|
config: e
|
|
25691
25711
|
}) {
|
|
25692
25712
|
const n = () => {
|
|
@@ -25751,7 +25771,7 @@ const VD = D(() => {
|
|
|
25751
25771
|
/* @__PURE__ */ i(Ba, { value: e.options_query_id, onChange: e.setOptionsQueryID }),
|
|
25752
25772
|
/* @__PURE__ */ i(jd, {})
|
|
25753
25773
|
] });
|
|
25754
|
-
}),
|
|
25774
|
+
}), QD = D(function({
|
|
25755
25775
|
config: e
|
|
25756
25776
|
}) {
|
|
25757
25777
|
return /* @__PURE__ */ u(G, { children: [
|
|
@@ -25760,7 +25780,7 @@ const VD = D(() => {
|
|
|
25760
25780
|
} }),
|
|
25761
25781
|
/* @__PURE__ */ i(we, { checked: e.required, onChange: (n) => e.setRequired(n.currentTarget.checked), label: "Required" })
|
|
25762
25782
|
] });
|
|
25763
|
-
}),
|
|
25783
|
+
}), UD = `
|
|
25764
25784
|
// row
|
|
25765
25785
|
{
|
|
25766
25786
|
label: string;
|
|
@@ -25768,13 +25788,13 @@ const VD = D(() => {
|
|
|
25768
25788
|
parent_value: string;
|
|
25769
25789
|
description?: string;
|
|
25770
25790
|
}
|
|
25771
|
-
`,
|
|
25791
|
+
`, KD = () => {
|
|
25772
25792
|
const [t, e] = K(!1);
|
|
25773
25793
|
return /* @__PURE__ */ u(G, { children: [
|
|
25774
25794
|
/* @__PURE__ */ i($, { variant: "subtle", compact: !0, onClick: () => e((n) => !n), children: t ? "Close" : "Click to see expected data structure" }),
|
|
25775
|
-
/* @__PURE__ */ i(Bo, { in: t, children: /* @__PURE__ */ i(_n, { language: "typescript", noCopy: !0, colorScheme: "dark", children:
|
|
25795
|
+
/* @__PURE__ */ i(Bo, { in: t, children: /* @__PURE__ */ i(_n, { language: "typescript", noCopy: !0, colorScheme: "dark", children: UD }) })
|
|
25776
25796
|
] });
|
|
25777
|
-
},
|
|
25797
|
+
}, XD = D(function({
|
|
25778
25798
|
config: e
|
|
25779
25799
|
}) {
|
|
25780
25800
|
return /* @__PURE__ */ u(G, { children: [
|
|
@@ -25782,9 +25802,9 @@ const VD = D(() => {
|
|
|
25782
25802
|
/* @__PURE__ */ i(R, { label: "Fetch options from database", labelPosition: "center" }),
|
|
25783
25803
|
/* @__PURE__ */ i(le, { value: e.default_selection_count, onChange: e.setDefaultSelectionCount, label: "Select first N options by default" }),
|
|
25784
25804
|
/* @__PURE__ */ i(Ba, { value: e.options_query_id, onChange: e.setOptionsQueryID }),
|
|
25785
|
-
/* @__PURE__ */ i(
|
|
25805
|
+
/* @__PURE__ */ i(KD, {})
|
|
25786
25806
|
] });
|
|
25787
|
-
}),
|
|
25807
|
+
}), JD = D(function({
|
|
25788
25808
|
filter: e
|
|
25789
25809
|
}) {
|
|
25790
25810
|
const [n, r] = z.useState(e.plainDefaultValue);
|
|
@@ -25798,14 +25818,14 @@ const VD = D(() => {
|
|
|
25798
25818
|
/* @__PURE__ */ i(C, { pt: "lg", pb: "md", color: "gray", children: "Config" }),
|
|
25799
25819
|
/* @__PURE__ */ i(_n, { language: "json", colorScheme: "dark", noCopy: !0, children: JSON.stringify(e, null, 4) })
|
|
25800
25820
|
] });
|
|
25801
|
-
}),
|
|
25802
|
-
select:
|
|
25803
|
-
"multi-select":
|
|
25804
|
-
"tree-select":
|
|
25805
|
-
"text-input":
|
|
25806
|
-
checkbox:
|
|
25807
|
-
"date-range":
|
|
25808
|
-
},
|
|
25821
|
+
}), ZD = {
|
|
25822
|
+
select: HD,
|
|
25823
|
+
"multi-select": YD,
|
|
25824
|
+
"tree-select": XD,
|
|
25825
|
+
"text-input": QD,
|
|
25826
|
+
checkbox: qD,
|
|
25827
|
+
"date-range": jD
|
|
25828
|
+
}, eI = [{
|
|
25809
25829
|
label: "Select",
|
|
25810
25830
|
value: "select"
|
|
25811
25831
|
}, {
|
|
@@ -25823,10 +25843,10 @@ const VD = D(() => {
|
|
|
25823
25843
|
}, {
|
|
25824
25844
|
label: "Date Range",
|
|
25825
25845
|
value: "date-range"
|
|
25826
|
-
}],
|
|
25846
|
+
}], tI = D(function({
|
|
25827
25847
|
filter: e
|
|
25828
25848
|
}) {
|
|
25829
|
-
const n = re(), r = z.useMemo(() =>
|
|
25849
|
+
const n = re(), r = z.useMemo(() => ZD[e.type], [e.type]);
|
|
25830
25850
|
return /* @__PURE__ */ u(w, { grow: !0, spacing: 20, align: "top", children: [
|
|
25831
25851
|
/* @__PURE__ */ u(V, { sx: {
|
|
25832
25852
|
maxWidth: "600px"
|
|
@@ -25856,16 +25876,16 @@ const VD = D(() => {
|
|
|
25856
25876
|
/* @__PURE__ */ i(A, { label: "Label", placeholder: "Label for this field", required: !0, value: e.label, onChange: (o) => {
|
|
25857
25877
|
e.setLabel(o.currentTarget.value);
|
|
25858
25878
|
} }),
|
|
25859
|
-
/* @__PURE__ */ i(P, { label: "Widget", data:
|
|
25879
|
+
/* @__PURE__ */ i(P, { label: "Widget", data: eI, required: !0, value: e.type, onChange: e.setType }),
|
|
25860
25880
|
/* @__PURE__ */ i(r, { config: e.config })
|
|
25861
25881
|
] })
|
|
25862
25882
|
] }),
|
|
25863
|
-
/* @__PURE__ */ i(
|
|
25883
|
+
/* @__PURE__ */ i(JD, { filter: e })
|
|
25864
25884
|
] });
|
|
25865
|
-
}),
|
|
25885
|
+
}), nI = D(({
|
|
25866
25886
|
id: t
|
|
25867
25887
|
}) => {
|
|
25868
|
-
const e = Gt(), n =
|
|
25888
|
+
const e = Gt(), n = Le(), r = re();
|
|
25869
25889
|
if (t === "")
|
|
25870
25890
|
return null;
|
|
25871
25891
|
const o = r.filters.findByID(t);
|
|
@@ -25903,9 +25923,9 @@ const VD = D(() => {
|
|
|
25903
25923
|
flexGrow: 1,
|
|
25904
25924
|
maxHeight: "calc(100% - 52px)",
|
|
25905
25925
|
overflow: "auto"
|
|
25906
|
-
}, children: /* @__PURE__ */ i(
|
|
25926
|
+
}, children: /* @__PURE__ */ i(tI, { filter: o }) })
|
|
25907
25927
|
] });
|
|
25908
|
-
}),
|
|
25928
|
+
}), rI = D(() => {
|
|
25909
25929
|
const t = re(), [e, n] = K(() => JSON.stringify(t.mock_context.current, null, 4)), r = () => {
|
|
25910
25930
|
try {
|
|
25911
25931
|
t.mock_context.replace(JSON.parse(e));
|
|
@@ -25956,7 +25976,7 @@ const VD = D(() => {
|
|
|
25956
25976
|
}, disabled: !o, onClick: r, children: /* @__PURE__ */ i(be, { size: 20 }) })
|
|
25957
25977
|
] })
|
|
25958
25978
|
] });
|
|
25959
|
-
}),
|
|
25979
|
+
}), iI = D(() => {
|
|
25960
25980
|
const {
|
|
25961
25981
|
panel: t
|
|
25962
25982
|
} = tt();
|
|
@@ -25965,14 +25985,14 @@ const VD = D(() => {
|
|
|
25965
25985
|
flexGrow: 1
|
|
25966
25986
|
}
|
|
25967
25987
|
} });
|
|
25968
|
-
}),
|
|
25988
|
+
}), oI = D(() => {
|
|
25969
25989
|
const {
|
|
25970
25990
|
panel: t
|
|
25971
25991
|
} = tt(), {
|
|
25972
25992
|
style: e
|
|
25973
25993
|
} = t;
|
|
25974
25994
|
return /* @__PURE__ */ i(G, { children: /* @__PURE__ */ i(Je, { label: "Border", checked: e.border.enabled, onChange: (n) => e.border.setEnabled(n.currentTarget.checked) }) });
|
|
25975
|
-
}),
|
|
25995
|
+
}), aI = D(() => {
|
|
25976
25996
|
const {
|
|
25977
25997
|
panel: t
|
|
25978
25998
|
} = tt(), {
|
|
@@ -25993,18 +26013,18 @@ const VD = D(() => {
|
|
|
25993
26013
|
}
|
|
25994
26014
|
} });
|
|
25995
26015
|
});
|
|
25996
|
-
function
|
|
26016
|
+
function sI() {
|
|
25997
26017
|
return /* @__PURE__ */ u(S, { sx: {
|
|
25998
26018
|
height: "100%"
|
|
25999
26019
|
}, children: [
|
|
26000
26020
|
/* @__PURE__ */ i(R, { label: "Style", labelPosition: "center", variant: "dashed" }),
|
|
26001
|
-
/* @__PURE__ */ i(iI, {}),
|
|
26002
|
-
/* @__PURE__ */ i(R, { label: "Info", labelPosition: "center", variant: "dashed" }),
|
|
26003
26021
|
/* @__PURE__ */ i(oI, {}),
|
|
26004
|
-
/* @__PURE__ */ i(
|
|
26022
|
+
/* @__PURE__ */ i(R, { label: "Info", labelPosition: "center", variant: "dashed" }),
|
|
26023
|
+
/* @__PURE__ */ i(aI, {}),
|
|
26024
|
+
/* @__PURE__ */ i(iI, {})
|
|
26005
26025
|
] });
|
|
26006
26026
|
}
|
|
26007
|
-
const
|
|
26027
|
+
const lI = ({
|
|
26008
26028
|
queryID: t
|
|
26009
26029
|
}) => {
|
|
26010
26030
|
const e = re(), {
|
|
@@ -26014,7 +26034,7 @@ const sI = ({
|
|
|
26014
26034
|
return n === "loading" ? null : r ? /* @__PURE__ */ i(C, { color: "red", size: "md", align: "center", sx: {
|
|
26015
26035
|
fontFamily: "monospace"
|
|
26016
26036
|
}, children: r }) : o != null && o.stateMessage ? /* @__PURE__ */ i(C, { color: "gray", align: "center", children: o.stateMessage }) : null;
|
|
26017
|
-
},
|
|
26037
|
+
}, cI = {
|
|
26018
26038
|
width: "fit-content",
|
|
26019
26039
|
minWidth: "100%",
|
|
26020
26040
|
tableLayout: "fixed",
|
|
@@ -26024,6 +26044,9 @@ const sI = ({
|
|
|
26024
26044
|
th: {
|
|
26025
26045
|
position: "relative"
|
|
26026
26046
|
},
|
|
26047
|
+
"th, td": {
|
|
26048
|
+
wordBreak: "break-word"
|
|
26049
|
+
},
|
|
26027
26050
|
".resizer": {
|
|
26028
26051
|
position: "absolute",
|
|
26029
26052
|
right: 0,
|
|
@@ -26065,7 +26088,7 @@ function Gd({
|
|
|
26065
26088
|
});
|
|
26066
26089
|
return t.length === 0 ? /* @__PURE__ */ i(V, { sx: {
|
|
26067
26090
|
height: "5em"
|
|
26068
|
-
} }) : /* @__PURE__ */ i(ct, { children: /* @__PURE__ */ u(Ft, { sx:
|
|
26091
|
+
} }) : /* @__PURE__ */ i(ct, { children: /* @__PURE__ */ u(Ft, { sx: cI, children: [
|
|
26069
26092
|
/* @__PURE__ */ i("thead", { children: n.getHeaderGroups().map((r) => /* @__PURE__ */ i("tr", { children: r.headers.map((o) => /* @__PURE__ */ u("th", { style: {
|
|
26070
26093
|
width: o.getSize()
|
|
26071
26094
|
}, children: [
|
|
@@ -26112,12 +26135,12 @@ const ro = D(function({
|
|
|
26112
26135
|
overflow: "auto"
|
|
26113
26136
|
}, children: [
|
|
26114
26137
|
/* @__PURE__ */ i(Cn, { visible: s }),
|
|
26115
|
-
/* @__PURE__ */ i(
|
|
26138
|
+
/* @__PURE__ */ i(lI, { queryID: e }),
|
|
26116
26139
|
/* @__PURE__ */ i(Gd, { data: d })
|
|
26117
26140
|
] })
|
|
26118
26141
|
] });
|
|
26119
|
-
}),
|
|
26120
|
-
const e =
|
|
26142
|
+
}), dI = D(function() {
|
|
26143
|
+
const e = Le(), n = re(), {
|
|
26121
26144
|
panel: r
|
|
26122
26145
|
} = tt(), [o, a] = K(!1), s = (l) => {
|
|
26123
26146
|
e.editor.setPath(["_QUERIES_", l]);
|
|
@@ -26133,7 +26156,7 @@ const ro = D(function({
|
|
|
26133
26156
|
] })
|
|
26134
26157
|
] })
|
|
26135
26158
|
] });
|
|
26136
|
-
}),
|
|
26159
|
+
}), uI = D(() => {
|
|
26137
26160
|
const {
|
|
26138
26161
|
panel: t
|
|
26139
26162
|
} = tt();
|
|
@@ -26184,7 +26207,7 @@ const ro = D(function({
|
|
|
26184
26207
|
average: !1
|
|
26185
26208
|
}
|
|
26186
26209
|
};
|
|
26187
|
-
class
|
|
26210
|
+
class hI {
|
|
26188
26211
|
constructor(e) {
|
|
26189
26212
|
Y(this, "panel");
|
|
26190
26213
|
Y(this, "selected");
|
|
@@ -26215,11 +26238,11 @@ class uI {
|
|
|
26215
26238
|
}
|
|
26216
26239
|
}
|
|
26217
26240
|
}
|
|
26218
|
-
function
|
|
26241
|
+
function pI() {
|
|
26219
26242
|
const {
|
|
26220
26243
|
panel: t
|
|
26221
26244
|
} = tt();
|
|
26222
|
-
return Tt(() => new
|
|
26245
|
+
return Tt(() => new hI(t), [t]);
|
|
26223
26246
|
}
|
|
26224
26247
|
const Yd = Bn((t) => ({
|
|
26225
26248
|
root: {
|
|
@@ -26251,7 +26274,7 @@ const Yd = Bn((t) => ({
|
|
|
26251
26274
|
overflow: "auto",
|
|
26252
26275
|
paddingRight: 10
|
|
26253
26276
|
}
|
|
26254
|
-
})),
|
|
26277
|
+
})), fI = z.forwardRef(function({
|
|
26255
26278
|
value: e,
|
|
26256
26279
|
onChange: n,
|
|
26257
26280
|
data: r,
|
|
@@ -26271,18 +26294,18 @@ const Yd = Bn((t) => ({
|
|
|
26271
26294
|
/* @__PURE__ */ i(_t, { value: e.formatter, onChange: (l) => s("formatter", l) }),
|
|
26272
26295
|
o && /* @__PURE__ */ i(kc, { value: e, onChange: n })
|
|
26273
26296
|
] });
|
|
26274
|
-
}),
|
|
26297
|
+
}), mI = (t) => {
|
|
26275
26298
|
const {
|
|
26276
26299
|
uiModel: e
|
|
26277
26300
|
} = t;
|
|
26278
26301
|
return /* @__PURE__ */ i(S, { className: "var-list", children: e.variables.map((n) => /* @__PURE__ */ i($, { variant: e.selected === n ? "filled" : "subtle", color: "gray", onClick: () => e.select(n), children: n.name }, n.name)) });
|
|
26279
|
-
},
|
|
26302
|
+
}, gI = D(mI), bI = ({
|
|
26280
26303
|
variable: t,
|
|
26281
26304
|
data: e
|
|
26282
26305
|
}) => /* @__PURE__ */ i(w, { style: {
|
|
26283
26306
|
minHeight: 0,
|
|
26284
26307
|
height: "calc(100% - 68px)"
|
|
26285
|
-
}, children: /* @__PURE__ */ i(Vo, { withBorder: !0, p: "md", children: Tc(t, e) }) }),
|
|
26308
|
+
}, children: /* @__PURE__ */ i(Vo, { withBorder: !0, p: "md", children: Tc(t, e) }) }), yI = D(bI), xI = (t) => {
|
|
26286
26309
|
const e = Tt(() => df(t.variable), [t.variable]), {
|
|
26287
26310
|
classes: n
|
|
26288
26311
|
} = Yd(), {
|
|
@@ -26296,23 +26319,23 @@ const Yd = Bn((t) => ({
|
|
|
26296
26319
|
/* @__PURE__ */ i(Q, { variant: "filled", disabled: !e.changed, color: "primary", onClick: e.commit, children: /* @__PURE__ */ i(kn, { size: 18 }) }),
|
|
26297
26320
|
/* @__PURE__ */ i(Q, { color: "red", onClick: () => t.uiModel.remove(t.variable), children: /* @__PURE__ */ i(Pn, { size: 18 }) })
|
|
26298
26321
|
] }),
|
|
26299
|
-
/* @__PURE__ */ i(
|
|
26322
|
+
/* @__PURE__ */ i(fI, { value: At(e.copy), onChange: e.update, data: r })
|
|
26300
26323
|
] }),
|
|
26301
|
-
/* @__PURE__ */ i(
|
|
26324
|
+
/* @__PURE__ */ i(yI, { variable: At(e.copy), data: r })
|
|
26302
26325
|
] });
|
|
26303
|
-
},
|
|
26304
|
-
const t =
|
|
26326
|
+
}, vI = D(xI), wI = () => {
|
|
26327
|
+
const t = pI(), {
|
|
26305
26328
|
classes: e
|
|
26306
26329
|
} = Yd();
|
|
26307
26330
|
return /* @__PURE__ */ u(w, { className: e.root, noWrap: !0, align: "start", children: [
|
|
26308
26331
|
/* @__PURE__ */ i(Vo, { withBorder: !0, p: "md", className: "var-list-container", children: /* @__PURE__ */ u(S, { justify: "space-between", children: [
|
|
26309
26332
|
/* @__PURE__ */ i(V, { className: "var-list-actions", children: /* @__PURE__ */ i($, { variant: "light", size: "sm", onClick: t.addNew, fullWidth: !0, children: "Add Variable" }) }),
|
|
26310
|
-
/* @__PURE__ */ i(
|
|
26333
|
+
/* @__PURE__ */ i(gI, { uiModel: t })
|
|
26311
26334
|
] }) }),
|
|
26312
|
-
t.selected ? /* @__PURE__ */ i(G, { children: /* @__PURE__ */ i(
|
|
26335
|
+
t.selected ? /* @__PURE__ */ i(G, { children: /* @__PURE__ */ i(vI, { uiModel: t, variable: t.selected }) }) : /* @__PURE__ */ i("span", { children: "Select or create a new variable on right side" })
|
|
26313
26336
|
] });
|
|
26314
|
-
},
|
|
26315
|
-
function
|
|
26337
|
+
}, _I = D(wI);
|
|
26338
|
+
function CI() {
|
|
26316
26339
|
const {
|
|
26317
26340
|
vizManager: t
|
|
26318
26341
|
} = Ot(Pt);
|
|
@@ -26325,7 +26348,7 @@ function _I() {
|
|
|
26325
26348
|
return k.orderBy(e, [(n) => n.group, (n) => n.label], ["asc", "asc"]);
|
|
26326
26349
|
}, [t]);
|
|
26327
26350
|
}
|
|
26328
|
-
const
|
|
26351
|
+
const SI = D(({
|
|
26329
26352
|
value: t,
|
|
26330
26353
|
submit: e
|
|
26331
26354
|
}) => {
|
|
@@ -26333,17 +26356,17 @@ const CI = D(({
|
|
|
26333
26356
|
W(() => {
|
|
26334
26357
|
r(t);
|
|
26335
26358
|
}, [t]);
|
|
26336
|
-
const o =
|
|
26359
|
+
const o = CI();
|
|
26337
26360
|
return /* @__PURE__ */ i(P, { label: "Visualization", value: n, searchable: !0, onChange: r, data: o, rightSection: /* @__PURE__ */ i(Q, { disabled: !(t !== n), onClick: () => e(n), children: /* @__PURE__ */ i(be, { size: 20 }) }), maxDropdownHeight: 600 });
|
|
26338
26361
|
}), Qs = [];
|
|
26339
|
-
function
|
|
26362
|
+
function kI(t, e) {
|
|
26340
26363
|
try {
|
|
26341
26364
|
return t.resolveComponent(e).createConfig();
|
|
26342
26365
|
} catch {
|
|
26343
26366
|
return null;
|
|
26344
26367
|
}
|
|
26345
26368
|
}
|
|
26346
|
-
function
|
|
26369
|
+
function TI() {
|
|
26347
26370
|
const {
|
|
26348
26371
|
data: t,
|
|
26349
26372
|
panel: {
|
|
@@ -26373,12 +26396,12 @@ function kI() {
|
|
|
26373
26396
|
setTitle: l
|
|
26374
26397
|
}, x = Rd(f);
|
|
26375
26398
|
try {
|
|
26376
|
-
return h.resolveComponent(f.viz.type), /* @__PURE__ */ i(wi, { configure: x, children: /* @__PURE__ */ i(
|
|
26399
|
+
return h.resolveComponent(f.viz.type), /* @__PURE__ */ i(wi, { configure: x, children: /* @__PURE__ */ i(AT, { variables: e, setVizConf: n.setConf, panel: f, panelInfoEditor: m, vizManager: h, data: t }) });
|
|
26377
26400
|
} catch (v) {
|
|
26378
26401
|
return console.info(de(v, "message")), null;
|
|
26379
26402
|
}
|
|
26380
26403
|
}
|
|
26381
|
-
const
|
|
26404
|
+
const DI = D(() => {
|
|
26382
26405
|
const {
|
|
26383
26406
|
data: t,
|
|
26384
26407
|
panel: {
|
|
@@ -26389,7 +26412,7 @@ const TI = D(() => {
|
|
|
26389
26412
|
} = Ot(Pt), r = z.useCallback((d) => {
|
|
26390
26413
|
if (d === e.type)
|
|
26391
26414
|
return;
|
|
26392
|
-
const p =
|
|
26415
|
+
const p = kI(n, d);
|
|
26393
26416
|
e.setType(d), e.setConf(p || {});
|
|
26394
26417
|
}, [e.type]), o = (d) => {
|
|
26395
26418
|
try {
|
|
@@ -26400,7 +26423,7 @@ const TI = D(() => {
|
|
|
26400
26423
|
}, a = z.useMemo(() => {
|
|
26401
26424
|
var d;
|
|
26402
26425
|
return (d = Qs.find((p) => p.value === e.type)) == null ? void 0 : d.Panel;
|
|
26403
|
-
}, [e.type, Qs]), s =
|
|
26426
|
+
}, [e.type, Qs]), s = TI(), l = a ? Xr(a, {
|
|
26404
26427
|
data: t,
|
|
26405
26428
|
conf: e.conf,
|
|
26406
26429
|
setConf: e.setConf
|
|
@@ -26409,7 +26432,7 @@ const TI = D(() => {
|
|
|
26409
26432
|
height: "100%",
|
|
26410
26433
|
overflow: "hidden"
|
|
26411
26434
|
}, children: [
|
|
26412
|
-
/* @__PURE__ */ i(
|
|
26435
|
+
/* @__PURE__ */ i(SI, { submit: r, value: e.type }),
|
|
26413
26436
|
/* @__PURE__ */ u(ct, { children: [
|
|
26414
26437
|
/* @__PURE__ */ i(S, { pb: 10, sx: {
|
|
26415
26438
|
flexGrow: 1,
|
|
@@ -26419,7 +26442,7 @@ const TI = D(() => {
|
|
|
26419
26442
|
!c && /* @__PURE__ */ i(il, { minRows: 20, label: "Config", value: JSON.stringify(e.conf, null, 2), onChange: o })
|
|
26420
26443
|
] })
|
|
26421
26444
|
] });
|
|
26422
|
-
}),
|
|
26445
|
+
}), II = D(({
|
|
26423
26446
|
panel: t,
|
|
26424
26447
|
sourceViewID: e
|
|
26425
26448
|
}) => {
|
|
@@ -26435,7 +26458,7 @@ const TI = D(() => {
|
|
|
26435
26458
|
};
|
|
26436
26459
|
return /* @__PURE__ */ u(G, { children: [
|
|
26437
26460
|
/* @__PURE__ */ i($, { size: "xs", variant: "subtle", color: "blue", onClick: s, leftIcon: /* @__PURE__ */ i(xl, { size: 14 }), children: "Move into Another View" }),
|
|
26438
|
-
/* @__PURE__ */ i(
|
|
26461
|
+
/* @__PURE__ */ i(Ie, { opened: a, onClose: l, title: "Move panel into another view", zIndex: 320, children: /* @__PURE__ */ u(S, { sx: {
|
|
26439
26462
|
maxHeight: "calc(100vh - 185px)",
|
|
26440
26463
|
overflow: "hidden"
|
|
26441
26464
|
}, children: [
|
|
@@ -26453,7 +26476,7 @@ const TI = D(() => {
|
|
|
26453
26476
|
] })
|
|
26454
26477
|
] }) })
|
|
26455
26478
|
] });
|
|
26456
|
-
}),
|
|
26479
|
+
}), MI = {
|
|
26457
26480
|
root: {
|
|
26458
26481
|
flexGrow: 1,
|
|
26459
26482
|
width: "100%",
|
|
@@ -26476,15 +26499,15 @@ const TI = D(() => {
|
|
|
26476
26499
|
height: "100%",
|
|
26477
26500
|
overflow: "auto"
|
|
26478
26501
|
}, children: t }),
|
|
26479
|
-
/* @__PURE__ */ i(
|
|
26502
|
+
/* @__PURE__ */ i(uI, {})
|
|
26480
26503
|
] });
|
|
26481
|
-
function
|
|
26504
|
+
function $I(t) {
|
|
26482
26505
|
return !["richText", "button"].includes(t);
|
|
26483
26506
|
}
|
|
26484
|
-
const
|
|
26507
|
+
const zI = D(({
|
|
26485
26508
|
panel: t
|
|
26486
26509
|
}) => {
|
|
26487
|
-
const e = Gt(), n =
|
|
26510
|
+
const e = Gt(), n = Le(), r = re(), [o, a] = K("Data"), s = t.queries, c = $I(t.viz.type) && t.dataLoading, d = c || t.queryErrors.length > 0 || t.queryStateMessages.length > 0 || s.length === 0, p = n.editor.path[1];
|
|
26488
26511
|
W(() => {
|
|
26489
26512
|
a((m) => d && m === "Visualization" ? "Data" : m);
|
|
26490
26513
|
}, [t.id, d]);
|
|
@@ -26519,11 +26542,11 @@ const $I = D(({
|
|
|
26519
26542
|
" "
|
|
26520
26543
|
] }),
|
|
26521
26544
|
/* @__PURE__ */ u(w, { position: "right", noWrap: !0, children: [
|
|
26522
|
-
/* @__PURE__ */ i(
|
|
26545
|
+
/* @__PURE__ */ i(II, { panel: t, sourceViewID: p }),
|
|
26523
26546
|
/* @__PURE__ */ i($, { size: "xs", variant: "subtle", color: "red", onClick: f, leftIcon: /* @__PURE__ */ i(Pn, { size: 14 }), children: "Delete This Panel" })
|
|
26524
26547
|
] })
|
|
26525
26548
|
] }),
|
|
26526
|
-
/* @__PURE__ */ u(g, { value: o, onTabChange: a, keepMounted: !1, styles:
|
|
26549
|
+
/* @__PURE__ */ u(g, { value: o, onTabChange: a, keepMounted: !1, styles: MI, children: [
|
|
26527
26550
|
/* @__PURE__ */ u(g.List, { children: [
|
|
26528
26551
|
/* @__PURE__ */ i(g.Tab, { value: "Data", disabled: c, children: "Data" }),
|
|
26529
26552
|
/* @__PURE__ */ i(g.Tab, { value: "Panel", children: "Panel" }),
|
|
@@ -26533,15 +26556,15 @@ const $I = D(({
|
|
|
26533
26556
|
] }),
|
|
26534
26557
|
/* @__PURE__ */ u(g.Panel, { value: "Data", children: [
|
|
26535
26558
|
/* @__PURE__ */ i(Cn, { visible: c, exitTransitionDuration: 0 }),
|
|
26536
|
-
/* @__PURE__ */ i(
|
|
26559
|
+
/* @__PURE__ */ i(dI, {})
|
|
26537
26560
|
] }),
|
|
26538
|
-
/* @__PURE__ */ i(g.Panel, { value: "Panel", children: /* @__PURE__ */ i(Us, { children: /* @__PURE__ */ i(
|
|
26539
|
-
/* @__PURE__ */ i(g.Panel, { value: "Variables", children: /* @__PURE__ */ i(
|
|
26540
|
-
/* @__PURE__ */ i(g.Panel, { value: "Visualization", children: /* @__PURE__ */ i(ct, { children: /* @__PURE__ */ i(Us, { children: /* @__PURE__ */ i(
|
|
26561
|
+
/* @__PURE__ */ i(g.Panel, { value: "Panel", children: /* @__PURE__ */ i(Us, { children: /* @__PURE__ */ i(sI, {}) }) }),
|
|
26562
|
+
/* @__PURE__ */ i(g.Panel, { value: "Variables", children: /* @__PURE__ */ i(_I, {}) }),
|
|
26563
|
+
/* @__PURE__ */ i(g.Panel, { value: "Visualization", children: /* @__PURE__ */ i(ct, { children: /* @__PURE__ */ i(Us, { children: /* @__PURE__ */ i(DI, {}) }) }) }),
|
|
26541
26564
|
/* @__PURE__ */ i(g.Panel, { value: "Interactions", children: /* @__PURE__ */ i(ct, { children: /* @__PURE__ */ i(tm, {}) }) })
|
|
26542
26565
|
] })
|
|
26543
26566
|
] });
|
|
26544
|
-
}),
|
|
26567
|
+
}), LI = D(({
|
|
26545
26568
|
viewID: t,
|
|
26546
26569
|
panelID: e
|
|
26547
26570
|
}) => {
|
|
@@ -26553,7 +26576,7 @@ const $I = D(({
|
|
|
26553
26576
|
"] is not found"
|
|
26554
26577
|
] });
|
|
26555
26578
|
const o = n.panels.findByID(e);
|
|
26556
|
-
return o ? /* @__PURE__ */ i(
|
|
26579
|
+
return o ? /* @__PURE__ */ i(zI, { panel: o }) : /* @__PURE__ */ u(C, { size: 14, children: [
|
|
26557
26580
|
"Panel by ID[",
|
|
26558
26581
|
e,
|
|
26559
26582
|
"] is not found"
|
|
@@ -26570,7 +26593,7 @@ const $I = D(({
|
|
|
26570
26593
|
/* @__PURE__ */ i(as, { width: e, height: n, radius: "xs" })
|
|
26571
26594
|
] }), ar = ({
|
|
26572
26595
|
value: t
|
|
26573
|
-
}) => t === null || t === "" ? null : /* @__PURE__ */ i(Ve, { label: t, disabled: !t, multiline: !0, children: /* @__PURE__ */ i(Q, { children: /* @__PURE__ */ i(qn, { size: 14 }) }) }),
|
|
26596
|
+
}) => t === null || t === "" ? null : /* @__PURE__ */ i(Ve, { label: t, disabled: !t, multiline: !0, children: /* @__PURE__ */ i(Q, { children: /* @__PURE__ */ i(qn, { size: 14 }) }) }), AI = ({
|
|
26574
26597
|
column: t
|
|
26575
26598
|
}) => {
|
|
26576
26599
|
const {
|
|
@@ -26578,7 +26601,7 @@ const $I = D(({
|
|
|
26578
26601
|
column_key_text: n
|
|
26579
26602
|
} = t;
|
|
26580
26603
|
return e ? /* @__PURE__ */ i(Ve, { label: n, disabled: !n, children: /* @__PURE__ */ i(lr, { children: e }) }) : null;
|
|
26581
|
-
},
|
|
26604
|
+
}, EI = D(({
|
|
26582
26605
|
dataSource: t
|
|
26583
26606
|
}) => {
|
|
26584
26607
|
const {
|
|
@@ -26632,13 +26655,13 @@ const $I = D(({
|
|
|
26632
26655
|
/* @__PURE__ */ i("td", { children: n.ordinal_position }),
|
|
26633
26656
|
/* @__PURE__ */ i("td", { children: n.column_name }),
|
|
26634
26657
|
/* @__PURE__ */ i("td", { children: /* @__PURE__ */ i(ar, { value: n.column_comment }) }),
|
|
26635
|
-
/* @__PURE__ */ i("td", { children: /* @__PURE__ */ i(
|
|
26658
|
+
/* @__PURE__ */ i("td", { children: /* @__PURE__ */ i(AI, { column: n }) }),
|
|
26636
26659
|
/* @__PURE__ */ i("td", { children: n.column_type }),
|
|
26637
26660
|
/* @__PURE__ */ i("td", { children: n.is_nullable }),
|
|
26638
26661
|
/* @__PURE__ */ i("td", { children: /* @__PURE__ */ i(ar, { value: n.column_default }) })
|
|
26639
26662
|
] }, n.column_name)) })
|
|
26640
26663
|
] });
|
|
26641
|
-
}),
|
|
26664
|
+
}), RI = D(({
|
|
26642
26665
|
dataSource: t
|
|
26643
26666
|
}) => {
|
|
26644
26667
|
const {
|
|
@@ -26686,7 +26709,7 @@ const $I = D(({
|
|
|
26686
26709
|
/* @__PURE__ */ i("td", { children: r.column_name })
|
|
26687
26710
|
] }, r.index_name)) })
|
|
26688
26711
|
] });
|
|
26689
|
-
}),
|
|
26712
|
+
}), OI = D(({
|
|
26690
26713
|
dataSource: t
|
|
26691
26714
|
}) => {
|
|
26692
26715
|
const {
|
|
@@ -26739,29 +26762,29 @@ const $I = D(({
|
|
|
26739
26762
|
/* @__PURE__ */ i("td", { children: /* @__PURE__ */ i(ar, { value: r.comment }) })
|
|
26740
26763
|
] }, r.index_name)) })
|
|
26741
26764
|
] });
|
|
26742
|
-
}),
|
|
26765
|
+
}), FI = D(({
|
|
26743
26766
|
dataSource: t
|
|
26744
26767
|
}) => {
|
|
26745
26768
|
const {
|
|
26746
26769
|
indexes: e
|
|
26747
26770
|
} = t;
|
|
26748
|
-
return e.loading || e.empty ? null : t.type ===
|
|
26749
|
-
}),
|
|
26771
|
+
return e.loading || e.empty ? null : t.type === ze.MySQL ? /* @__PURE__ */ i(RI, { dataSource: t }) : t.type === ze.Postgresql ? /* @__PURE__ */ i(OI, { dataSource: t }) : null;
|
|
26772
|
+
}), PI = D(({
|
|
26750
26773
|
dataSource: t
|
|
26751
26774
|
}) => /* @__PURE__ */ u(S, { spacing: 40, pt: 10, sx: {
|
|
26752
26775
|
flexGrow: 1,
|
|
26753
26776
|
overflow: "auto",
|
|
26754
26777
|
position: "relative"
|
|
26755
26778
|
}, children: [
|
|
26756
|
-
/* @__PURE__ */ i(ct, { children: /* @__PURE__ */ i(
|
|
26757
|
-
/* @__PURE__ */ i(ct, { children: /* @__PURE__ */ i(
|
|
26779
|
+
/* @__PURE__ */ i(ct, { children: /* @__PURE__ */ i(EI, { dataSource: t }) }),
|
|
26780
|
+
/* @__PURE__ */ i(ct, { children: /* @__PURE__ */ i(FI, { dataSource: t }) })
|
|
26758
26781
|
] }));
|
|
26759
|
-
function
|
|
26782
|
+
function VI({
|
|
26760
26783
|
table_type: t
|
|
26761
26784
|
}) {
|
|
26762
26785
|
return t === "VIEW" ? /* @__PURE__ */ i(Sl, { size: 14 }) : t === "BASE TABLE" ? /* @__PURE__ */ i(fh, { size: 14 }) : null;
|
|
26763
26786
|
}
|
|
26764
|
-
const
|
|
26787
|
+
const NI = D(({
|
|
26765
26788
|
dataSource: t
|
|
26766
26789
|
}) => {
|
|
26767
26790
|
const {
|
|
@@ -26772,17 +26795,17 @@ const VI = D(({
|
|
|
26772
26795
|
".mantine-NavLink-label": {
|
|
26773
26796
|
fontFamily: "monospace"
|
|
26774
26797
|
}
|
|
26775
|
-
}, children: Object.entries(e.data).map(([n, r]) => /* @__PURE__ */ i(Yi, { label: n, icon: /* @__PURE__ */ i(Jr, { size: 14 }), defaultOpened: t.table_schema === n, pl: 0, childrenOffset: 14, children: r.map((o) => /* @__PURE__ */ i(Yi, { label: o.table_name, icon: /* @__PURE__ */ i(
|
|
26798
|
+
}, children: Object.entries(e.data).map(([n, r]) => /* @__PURE__ */ i(Yi, { label: n, icon: /* @__PURE__ */ i(Jr, { size: 14 }), defaultOpened: t.table_schema === n, pl: 0, childrenOffset: 14, children: r.map((o) => /* @__PURE__ */ i(Yi, { label: o.table_name, icon: /* @__PURE__ */ i(VI, { table_type: o.table_type }), onClick: () => {
|
|
26776
26799
|
t.setKeywords(n, o.table_name);
|
|
26777
26800
|
}, active: t.table_name === o.table_name }, o.table_name)) }, n)) });
|
|
26778
|
-
}),
|
|
26801
|
+
}), BI = ({
|
|
26779
26802
|
visible: t
|
|
26780
26803
|
}) => /* @__PURE__ */ i(V, { py: 10, sx: {
|
|
26781
26804
|
width: "100%",
|
|
26782
26805
|
height: "100%",
|
|
26783
26806
|
overflow: "hidden",
|
|
26784
26807
|
position: "relative"
|
|
26785
|
-
}, children: /* @__PURE__ */ i(Cn, { visible: t }) }),
|
|
26808
|
+
}, children: /* @__PURE__ */ i(Cn, { visible: t }) }), qI = [{
|
|
26786
26809
|
label: "10",
|
|
26787
26810
|
value: "10"
|
|
26788
26811
|
}, {
|
|
@@ -26794,7 +26817,7 @@ const VI = D(({
|
|
|
26794
26817
|
}, {
|
|
26795
26818
|
label: "100",
|
|
26796
26819
|
value: "100"
|
|
26797
|
-
}],
|
|
26820
|
+
}], WI = {
|
|
26798
26821
|
icon: {
|
|
26799
26822
|
width: "50px",
|
|
26800
26823
|
textAlign: "center"
|
|
@@ -26804,7 +26827,7 @@ const VI = D(({
|
|
|
26804
26827
|
paddingLeft: "50px"
|
|
26805
26828
|
}
|
|
26806
26829
|
}
|
|
26807
|
-
},
|
|
26830
|
+
}, jI = D(({
|
|
26808
26831
|
dataSource: t
|
|
26809
26832
|
}) => {
|
|
26810
26833
|
const {
|
|
@@ -26822,8 +26845,8 @@ const VI = D(({
|
|
|
26822
26845
|
{
|
|
26823
26846
|
icon: /* @__PURE__ */ i(C, { ta: "center", color: "dimmed", size: 14, children: "Limit" }),
|
|
26824
26847
|
size: "xs",
|
|
26825
|
-
styles:
|
|
26826
|
-
data:
|
|
26848
|
+
styles: WI,
|
|
26849
|
+
data: qI,
|
|
26827
26850
|
value: String(e.limit),
|
|
26828
26851
|
onChange: (n) => e.setLimit(Number(n))
|
|
26829
26852
|
}
|
|
@@ -26835,7 +26858,7 @@ const VI = D(({
|
|
|
26835
26858
|
" rows"
|
|
26836
26859
|
] }) })
|
|
26837
26860
|
] });
|
|
26838
|
-
}),
|
|
26861
|
+
}), GI = D(({
|
|
26839
26862
|
dataSource: t
|
|
26840
26863
|
}) => {
|
|
26841
26864
|
const e = t.tableData;
|
|
@@ -26843,8 +26866,8 @@ const VI = D(({
|
|
|
26843
26866
|
fontFamily: "monospace"
|
|
26844
26867
|
}, children: "This table is empty" }) : e.error ? /* @__PURE__ */ i(C, { mt: 20, color: "red", size: "md", align: "center", sx: {
|
|
26845
26868
|
fontFamily: "monospace"
|
|
26846
|
-
}, children: e.error }) : e.page === 1 && e.loading ? /* @__PURE__ */ i(
|
|
26847
|
-
/* @__PURE__ */ i(
|
|
26869
|
+
}, children: e.error }) : e.page === 1 && e.loading ? /* @__PURE__ */ i(BI, { visible: !0 }) : /* @__PURE__ */ u(ct, { children: [
|
|
26870
|
+
/* @__PURE__ */ i(jI, { dataSource: t }),
|
|
26848
26871
|
/* @__PURE__ */ u(V, { py: 10, sx: {
|
|
26849
26872
|
width: "100%",
|
|
26850
26873
|
height: "calc(100% - 42px)",
|
|
@@ -26855,7 +26878,7 @@ const VI = D(({
|
|
|
26855
26878
|
/* @__PURE__ */ i(Gd, { data: e.data })
|
|
26856
26879
|
] })
|
|
26857
26880
|
] });
|
|
26858
|
-
}),
|
|
26881
|
+
}), YI = {
|
|
26859
26882
|
root: {
|
|
26860
26883
|
flexGrow: 1,
|
|
26861
26884
|
overflow: "auto",
|
|
@@ -26867,7 +26890,7 @@ const VI = D(({
|
|
|
26867
26890
|
tab: {
|
|
26868
26891
|
minWidth: 120
|
|
26869
26892
|
}
|
|
26870
|
-
},
|
|
26893
|
+
}, HI = D(({
|
|
26871
26894
|
dataSource: t
|
|
26872
26895
|
}) => (W(() => {
|
|
26873
26896
|
t.loadTablesIfEmpty();
|
|
@@ -26880,20 +26903,20 @@ const VI = D(({
|
|
|
26880
26903
|
flexGrow: 0,
|
|
26881
26904
|
flexShrink: 0,
|
|
26882
26905
|
position: "relative"
|
|
26883
|
-
}, children: /* @__PURE__ */ i(ct, { children: /* @__PURE__ */ i(
|
|
26884
|
-
/* @__PURE__ */ u(g, { defaultValue: "structure", styles:
|
|
26906
|
+
}, children: /* @__PURE__ */ i(ct, { children: /* @__PURE__ */ i(NI, { dataSource: t }) }) }),
|
|
26907
|
+
/* @__PURE__ */ u(g, { defaultValue: "structure", styles: YI, children: [
|
|
26885
26908
|
/* @__PURE__ */ u(g.List, { children: [
|
|
26886
26909
|
/* @__PURE__ */ i(g.Tab, { value: "structure", icon: /* @__PURE__ */ i(mh, { size: 14 }), children: "Structure" }),
|
|
26887
26910
|
/* @__PURE__ */ i(g.Tab, { value: "data", icon: /* @__PURE__ */ i(Jr, { size: 14 }), children: "Data" })
|
|
26888
26911
|
] }),
|
|
26889
|
-
/* @__PURE__ */ i(g.Panel, { value: "structure", children: /* @__PURE__ */ i(
|
|
26912
|
+
/* @__PURE__ */ i(g.Panel, { value: "structure", children: /* @__PURE__ */ i(PI, { dataSource: t }) }),
|
|
26890
26913
|
/* @__PURE__ */ i(g.Panel, { value: "data", sx: {
|
|
26891
26914
|
width: "100%",
|
|
26892
26915
|
height: "calc(100% - 36px)",
|
|
26893
26916
|
overflow: "hidden"
|
|
26894
|
-
}, children: /* @__PURE__ */ i(
|
|
26917
|
+
}, children: /* @__PURE__ */ i(GI, { dataSource: t }) })
|
|
26895
26918
|
] })
|
|
26896
|
-
] }))),
|
|
26919
|
+
] }))), QI = {
|
|
26897
26920
|
modal: {
|
|
26898
26921
|
paddingLeft: "0px !important",
|
|
26899
26922
|
paddingRight: "0px !important"
|
|
@@ -26916,7 +26939,7 @@ const VI = D(({
|
|
|
26916
26939
|
}) => {
|
|
26917
26940
|
const [n, r] = K(!1);
|
|
26918
26941
|
return t.type === "http" ? null : /* @__PURE__ */ u(G, { children: [
|
|
26919
|
-
/* @__PURE__ */ i(
|
|
26942
|
+
/* @__PURE__ */ i(Ie, { opened: n, onClose: () => r(!1), title: /* @__PURE__ */ u(w, { position: "apart", sx: {
|
|
26920
26943
|
flexGrow: 1
|
|
26921
26944
|
}, children: [
|
|
26922
26945
|
/* @__PURE__ */ i(C, { fw: 500, children: "Explorer Data Source" }),
|
|
@@ -26930,27 +26953,27 @@ const VI = D(({
|
|
|
26930
26953
|
to: "red"
|
|
26931
26954
|
}, children: t.type })
|
|
26932
26955
|
] })
|
|
26933
|
-
] }), zIndex: 320, size: "96vw", styles:
|
|
26956
|
+
] }), zIndex: 320, size: "96vw", styles: QI, children: /* @__PURE__ */ i(V, { sx: {
|
|
26934
26957
|
height: "calc(100vh - 220px)"
|
|
26935
|
-
}, children: /* @__PURE__ */ i(
|
|
26958
|
+
}, children: /* @__PURE__ */ i(HI, { dataSource: t }) }) }),
|
|
26936
26959
|
/* @__PURE__ */ i($, { variant: "subtle", onClick: () => r(!0), px: 16, styles: {
|
|
26937
26960
|
inner: {
|
|
26938
26961
|
justifyContent: "flex-start"
|
|
26939
26962
|
}
|
|
26940
26963
|
}, ...e, children: "See Table Structure" })
|
|
26941
26964
|
] });
|
|
26942
|
-
}),
|
|
26965
|
+
}), UI = Se(({
|
|
26943
26966
|
label: t,
|
|
26944
26967
|
type: e,
|
|
26945
26968
|
...n
|
|
26946
26969
|
}, r) => /* @__PURE__ */ u(w, { position: "apart", ref: r, ...n, children: [
|
|
26947
26970
|
/* @__PURE__ */ i(C, { children: t }),
|
|
26948
26971
|
/* @__PURE__ */ i(C, { children: e })
|
|
26949
|
-
] })),
|
|
26972
|
+
] })), KI = D(({
|
|
26950
26973
|
value: t,
|
|
26951
26974
|
onChange: e
|
|
26952
26975
|
}) => {
|
|
26953
|
-
const n =
|
|
26976
|
+
const n = Le(), {
|
|
26954
26977
|
data: r = [],
|
|
26955
26978
|
loading: o
|
|
26956
26979
|
} = xn(Uo, {
|
|
@@ -26972,7 +26995,7 @@ const VI = D(({
|
|
|
26972
26995
|
size: "xs",
|
|
26973
26996
|
px: 10
|
|
26974
26997
|
} })
|
|
26975
|
-
] }), itemComponent:
|
|
26998
|
+
] }), itemComponent: UI, rightSection: c ? /* @__PURE__ */ i(C, { size: "xs", color: "dimmed", children: c.type }) : void 0, rightSectionWidth: 85, maxDropdownHeight: 280, styles: {
|
|
26976
26999
|
root: {
|
|
26977
27000
|
flex: 1
|
|
26978
27001
|
},
|
|
@@ -26988,10 +27011,10 @@ const VI = D(({
|
|
|
26988
27011
|
}
|
|
26989
27012
|
}
|
|
26990
27013
|
}, disabled: o, value: t.key, onChange: l });
|
|
26991
|
-
}),
|
|
27014
|
+
}), XI = (t) => {
|
|
26992
27015
|
const {
|
|
26993
27016
|
queryModel: e
|
|
26994
|
-
} = t, n =
|
|
27017
|
+
} = t, n = Le(), r = re(), a = r.findQueryUsage(e.id).length > 0, s = Gt(), l = () => {
|
|
26995
27018
|
s.openConfirmModal({
|
|
26996
27019
|
title: "Delete this query?",
|
|
26997
27020
|
labels: {
|
|
@@ -27017,7 +27040,7 @@ const VI = D(({
|
|
|
27017
27040
|
}, children: "Delete this Query" }) }) : /* @__PURE__ */ i($, { color: "red", size: "xs", onClick: l, leftIcon: /* @__PURE__ */ i(Pn, { size: 16 }), sx: {
|
|
27018
27041
|
alignSelf: "flex-end"
|
|
27019
27042
|
}, children: "Delete this Query" });
|
|
27020
|
-
},
|
|
27043
|
+
}, JI = D(XI), ZI = D(({
|
|
27021
27044
|
queryModel: t
|
|
27022
27045
|
}) => {
|
|
27023
27046
|
const [e, n] = K(t.name);
|
|
@@ -27036,7 +27059,7 @@ const VI = D(({
|
|
|
27036
27059
|
}, rightSection: /* @__PURE__ */ i(Q, { variant: "filled", color: "blue", size: "sm", onClick: () => t.setName(e), disabled: e === t.name, children: /* @__PURE__ */ i(kn, { size: 16 }) }), onBlur: () => {
|
|
27037
27060
|
t.setName(e);
|
|
27038
27061
|
} }),
|
|
27039
|
-
/* @__PURE__ */ i(
|
|
27062
|
+
/* @__PURE__ */ i(KI, { value: {
|
|
27040
27063
|
type: t.type,
|
|
27041
27064
|
key: t.key
|
|
27042
27065
|
}, onChange: ({
|
|
@@ -27049,16 +27072,16 @@ const VI = D(({
|
|
|
27049
27072
|
/* @__PURE__ */ i(sr, { label: "Run query when these are truthy", placeholder: "Always run this query on load", data: t.conditionOptions, value: [...t.run_by], onChange: t.setRunBy }),
|
|
27050
27073
|
t.typedAsHTTP && /* @__PURE__ */ i(sr, { label: "Re-run query when these changed", placeholder: "Leave it empty to never re-run this query", data: t.conditionOptions, value: [...t.react_to], onChange: t.setReactTo }),
|
|
27051
27074
|
/* @__PURE__ */ i(R, { mt: 20, mb: 10, variant: "dashed" }),
|
|
27052
|
-
/* @__PURE__ */ i(
|
|
27075
|
+
/* @__PURE__ */ i(JI, { queryModel: t })
|
|
27053
27076
|
] }) });
|
|
27054
27077
|
});
|
|
27055
|
-
function
|
|
27078
|
+
function eM() {
|
|
27056
27079
|
const [t, {
|
|
27057
27080
|
open: e,
|
|
27058
27081
|
close: n
|
|
27059
27082
|
}] = Tl(!1);
|
|
27060
27083
|
return /* @__PURE__ */ u(G, { children: [
|
|
27061
|
-
/* @__PURE__ */ i(
|
|
27084
|
+
/* @__PURE__ */ i(Ie, { opened: t, onClose: n, title: "About FunctionUtils", zIndex: 320, children: /* @__PURE__ */ i(yi, { value: yp, styles: {
|
|
27062
27085
|
root: {
|
|
27063
27086
|
border: "none"
|
|
27064
27087
|
},
|
|
@@ -27072,7 +27095,7 @@ function ZI() {
|
|
|
27072
27095
|
/* @__PURE__ */ i($, { variant: "light", color: "violet", size: "xs", onClick: e, leftIcon: /* @__PURE__ */ i(qn, { size: 16 }), children: "About parameter 'utils'" })
|
|
27073
27096
|
] });
|
|
27074
27097
|
}
|
|
27075
|
-
const
|
|
27098
|
+
const tM = ({
|
|
27076
27099
|
value: t,
|
|
27077
27100
|
onChange: e
|
|
27078
27101
|
}) => /* @__PURE__ */ i(V, { sx: {
|
|
@@ -27113,7 +27136,7 @@ const eM = ({
|
|
|
27113
27136
|
flexShrink: 0,
|
|
27114
27137
|
flexGrow: 0
|
|
27115
27138
|
}, children: [
|
|
27116
|
-
/* @__PURE__ */ i(w, { position: "left", children: /* @__PURE__ */ i(
|
|
27139
|
+
/* @__PURE__ */ i(w, { position: "left", children: /* @__PURE__ */ i(eM, {}) }),
|
|
27117
27140
|
/* @__PURE__ */ u(w, { position: "right", children: [
|
|
27118
27141
|
/* @__PURE__ */ i($, { onClick: d, size: "xs", variant: "default", leftIcon: /* @__PURE__ */ i(gh, { size: 16 }), children: "Reset to default" }),
|
|
27119
27142
|
/* @__PURE__ */ i($, { onClick: c, color: "red", size: "xs", disabled: !p, leftIcon: /* @__PURE__ */ i(wl, { size: 16 }), children: "Revert Changes" }),
|
|
@@ -27121,10 +27144,10 @@ const eM = ({
|
|
|
27121
27144
|
] })
|
|
27122
27145
|
] }),
|
|
27123
27146
|
/* @__PURE__ */ i(C, { size: 14, children: n }),
|
|
27124
|
-
/* @__PURE__ */ i(
|
|
27147
|
+
/* @__PURE__ */ i(tM, { value: a, onChange: s })
|
|
27125
27148
|
] });
|
|
27126
27149
|
});
|
|
27127
|
-
function
|
|
27150
|
+
function nM({
|
|
27128
27151
|
content: t
|
|
27129
27152
|
}) {
|
|
27130
27153
|
return /* @__PURE__ */ u(rt, { width: "60vw", shadow: "md", children: [
|
|
@@ -27132,8 +27155,8 @@ function tM({
|
|
|
27132
27155
|
/* @__PURE__ */ i(rt.Dropdown, { children: /* @__PURE__ */ i(_n, { language: "sql", noCopy: !0, withLineNumbers: !0, children: t }) })
|
|
27133
27156
|
] });
|
|
27134
27157
|
}
|
|
27135
|
-
const
|
|
27136
|
-
const e = [...
|
|
27158
|
+
const rM = D(() => {
|
|
27159
|
+
const e = [...Le().globalSQLSnippets.list];
|
|
27137
27160
|
return e.length === 0 ? null : /* @__PURE__ */ u(Ft, { horizontalSpacing: "xs", verticalSpacing: "xs", fontSize: "sm", highlightOnHover: !0, children: [
|
|
27138
27161
|
/* @__PURE__ */ i("thead", { children: /* @__PURE__ */ u("tr", { children: [
|
|
27139
27162
|
/* @__PURE__ */ i("th", { children: "Key" }),
|
|
@@ -27146,11 +27169,11 @@ const nM = D(() => {
|
|
|
27146
27169
|
} = n;
|
|
27147
27170
|
return /* @__PURE__ */ u("tr", { children: [
|
|
27148
27171
|
/* @__PURE__ */ i("td", { children: r }),
|
|
27149
|
-
/* @__PURE__ */ i("td", { width: 200, children: /* @__PURE__ */ i(
|
|
27172
|
+
/* @__PURE__ */ i("td", { width: 200, children: /* @__PURE__ */ i(nM, { content: o }) })
|
|
27150
27173
|
] }, r);
|
|
27151
27174
|
}) })
|
|
27152
27175
|
] });
|
|
27153
|
-
}),
|
|
27176
|
+
}), iM = `
|
|
27154
27177
|
-- You may reference query variables in SQL or VizConfig.
|
|
27155
27178
|
SELECT *
|
|
27156
27179
|
FROM commit
|
|
@@ -27167,7 +27190,7 @@ WHERE
|
|
|
27167
27190
|
showSQLSnippets: e = !0,
|
|
27168
27191
|
sx: n = {}
|
|
27169
27192
|
}) {
|
|
27170
|
-
const r =
|
|
27193
|
+
const r = Le(), o = re(), a = r.context.current, s = (() => {
|
|
27171
27194
|
const l = {
|
|
27172
27195
|
context: {
|
|
27173
27196
|
...o.mock_context.current,
|
|
@@ -27188,19 +27211,19 @@ WHERE
|
|
|
27188
27211
|
] }),
|
|
27189
27212
|
/* @__PURE__ */ i(g.Panel, { value: "guide", pt: "xs", children: /* @__PURE__ */ i(_n, { language: "sql", sx: {
|
|
27190
27213
|
width: "100%"
|
|
27191
|
-
}, noCopy: !0, colorScheme: "dark", children:
|
|
27214
|
+
}, noCopy: !0, colorScheme: "dark", children: iM }) }),
|
|
27192
27215
|
/* @__PURE__ */ i(g.Panel, { value: "local_query_vars", pt: "xs", children: /* @__PURE__ */ i(_n, { language: "json", sx: {
|
|
27193
27216
|
width: "100%"
|
|
27194
27217
|
}, noCopy: !0, colorScheme: "dark", children: s }) }),
|
|
27195
27218
|
/* @__PURE__ */ i(g.Panel, { value: "global_sql_snippets", pt: "xs", children: /* @__PURE__ */ u(S, { spacing: 10, children: [
|
|
27196
27219
|
/* @__PURE__ */ i(el, { icon: /* @__PURE__ */ i(ds, { size: 16 }), title: "Global SQL Snippets", children: "SQL snippets worth sharing between dashboards are managed in System Settings by admins." }),
|
|
27197
|
-
/* @__PURE__ */ i(
|
|
27220
|
+
/* @__PURE__ */ i(rM, {})
|
|
27198
27221
|
] }) })
|
|
27199
27222
|
] }) });
|
|
27200
27223
|
}), qa = D(() => {
|
|
27201
27224
|
const [t, e] = K(!1);
|
|
27202
27225
|
return /* @__PURE__ */ u(G, { children: [
|
|
27203
|
-
/* @__PURE__ */ i(
|
|
27226
|
+
/* @__PURE__ */ i(Ie, { opened: t, onClose: () => e(!1), title: "Query Variables", zIndex: 320, size: "800px", children: /* @__PURE__ */ i(Ud, {}) }),
|
|
27204
27227
|
/* @__PURE__ */ i($, { variant: "subtle", onClick: () => e(!0), px: 16, styles: {
|
|
27205
27228
|
inner: {
|
|
27206
27229
|
justifyContent: "flex-start"
|
|
@@ -27212,7 +27235,7 @@ WHERE
|
|
|
27212
27235
|
`),
|
|
27213
27236
|
post: ["function process_result(res, utils) {", " // your code goes here", " return data", "}"].join(`
|
|
27214
27237
|
`)
|
|
27215
|
-
},
|
|
27238
|
+
}, oM = D(({
|
|
27216
27239
|
queryModel: t
|
|
27217
27240
|
}) => t.typedAsHTTP ? /* @__PURE__ */ u(g, { defaultValue: "pre_process", orientation: "vertical", sx: {
|
|
27218
27241
|
flexGrow: 1
|
|
@@ -27226,11 +27249,11 @@ WHERE
|
|
|
27226
27249
|
position: "relative"
|
|
27227
27250
|
}, p: "sm", children: /* @__PURE__ */ i(Kr, { label: "", value: t.pre_process, onChange: t.setPreProcess, defaultValue: Ks.pre }) }),
|
|
27228
27251
|
/* @__PURE__ */ i(g.Panel, { value: "post_process", p: "sm", children: /* @__PURE__ */ i(Kr, { label: "", value: t.post_process, onChange: t.setPostProcess, defaultValue: Ks.post }) })
|
|
27229
|
-
] }) : null),
|
|
27252
|
+
] }) : null), aM = D(({
|
|
27230
27253
|
queryID: t,
|
|
27231
27254
|
usage: e
|
|
27232
27255
|
}) => {
|
|
27233
|
-
const n =
|
|
27256
|
+
const n = Le().editor, r = (a) => {
|
|
27234
27257
|
if (a.type === "filter") {
|
|
27235
27258
|
n.setPath(["_FILTERS_", a.id]);
|
|
27236
27259
|
return;
|
|
@@ -27286,7 +27309,7 @@ WHERE
|
|
|
27286
27309
|
readOnly: s || !e,
|
|
27287
27310
|
"semanticHighlighting.enabled": !0
|
|
27288
27311
|
} });
|
|
27289
|
-
},
|
|
27312
|
+
}, sM = ({
|
|
27290
27313
|
value: t,
|
|
27291
27314
|
height: e = "200px",
|
|
27292
27315
|
defaultLanguage: n = "sql"
|
|
@@ -27299,17 +27322,17 @@ WHERE
|
|
|
27299
27322
|
enabled: !1
|
|
27300
27323
|
},
|
|
27301
27324
|
readOnly: !0
|
|
27302
|
-
} }),
|
|
27325
|
+
} }), lM = D(({
|
|
27303
27326
|
value: t
|
|
27304
27327
|
}) => {
|
|
27305
27328
|
const n = re().payloadForSQL, r = z.useMemo(() => Qo(t, n), [t, n]);
|
|
27306
|
-
return /* @__PURE__ */ i(
|
|
27329
|
+
return /* @__PURE__ */ i(sM, { height: "100%", value: r });
|
|
27307
27330
|
}), Xs = {
|
|
27308
27331
|
pre: ["function process_request({ context, filters, sql }, utils) {", " // modify and return sql", " return sql", "}"].join(`
|
|
27309
27332
|
`),
|
|
27310
27333
|
post: ["function process_result(data, utils) {", " // process data and return the result", " return data", "}"].join(`
|
|
27311
27334
|
`)
|
|
27312
|
-
},
|
|
27335
|
+
}, cM = D(({
|
|
27313
27336
|
queryModel: t
|
|
27314
27337
|
}) => {
|
|
27315
27338
|
const [e, n] = z.useState(t.sql);
|
|
@@ -27342,7 +27365,7 @@ WHERE
|
|
|
27342
27365
|
/* @__PURE__ */ i(g.Panel, { value: "Edit", sx: {
|
|
27343
27366
|
position: "relative"
|
|
27344
27367
|
}, p: "sm", children: /* @__PURE__ */ i(Wa, { height: "100%", value: e, onChange: n, theme: "sql-dark", defaultLanguage: "sql" }) }),
|
|
27345
|
-
/* @__PURE__ */ i(g.Panel, { value: "Preview", p: 0, pl: 4, children: /* @__PURE__ */ i(
|
|
27368
|
+
/* @__PURE__ */ i(g.Panel, { value: "Preview", p: 0, pl: 4, children: /* @__PURE__ */ i(lM, { value: t.sql }) }),
|
|
27346
27369
|
/* @__PURE__ */ i(g.Panel, { value: "pre_process", sx: {
|
|
27347
27370
|
position: "relative"
|
|
27348
27371
|
}, p: "sm", children: /* @__PURE__ */ i(Kr, { label: "", value: t.pre_process, onChange: t.setPreProcess, defaultValue: Xs.pre }) }),
|
|
@@ -27352,7 +27375,7 @@ WHERE
|
|
|
27352
27375
|
height: "calc(100% - 44px)",
|
|
27353
27376
|
// Tabs.List
|
|
27354
27377
|
padding: 0
|
|
27355
|
-
},
|
|
27378
|
+
}, dM = D(({
|
|
27356
27379
|
queryModel: t
|
|
27357
27380
|
}) => {
|
|
27358
27381
|
const e = re(), n = M(() => t.datasource ? t.typedAsHTTP ? "HTTP" : "SQL" : "Configurations", [t.datasource, t.typedAsHTTP]), [r, o] = K(n);
|
|
@@ -27372,13 +27395,13 @@ WHERE
|
|
|
27372
27395
|
/* @__PURE__ */ i(g.Tab, { value: "Data", disabled: !t.datasource, children: /* @__PURE__ */ i(Ve, { label: "Need to pick a Data Source first", disabled: t.datasource, withinPortal: !0, children: /* @__PURE__ */ i(C, { children: "Data" }) }) }),
|
|
27373
27396
|
/* @__PURE__ */ i(g.Tab, { value: "Usage", disabled: s, children: /* @__PURE__ */ i(Ve, { label: "This query is not used for any filter or panel", disabled: !s, withinPortal: !0, children: /* @__PURE__ */ i(C, { children: "Usage" }) }) })
|
|
27374
27397
|
] }),
|
|
27375
|
-
/* @__PURE__ */ i(g.Panel, { value: "Configurations", pt: 0, p: 0, children: /* @__PURE__ */ i(
|
|
27398
|
+
/* @__PURE__ */ i(g.Panel, { value: "Configurations", pt: 0, p: 0, children: /* @__PURE__ */ i(ZI, { queryModel: t }) }),
|
|
27376
27399
|
t.typedAsSQL && /* @__PURE__ */ i(g.Panel, { value: "SQL", sx: $r, children: /* @__PURE__ */ i(S, { sx: {
|
|
27377
27400
|
height: "100%"
|
|
27378
|
-
}, children: /* @__PURE__ */ i(
|
|
27401
|
+
}, children: /* @__PURE__ */ i(cM, { queryModel: t }) }) }),
|
|
27379
27402
|
t.typedAsHTTP && /* @__PURE__ */ i(g.Panel, { value: "HTTP", sx: $r, children: /* @__PURE__ */ i(S, { sx: {
|
|
27380
27403
|
height: "100%"
|
|
27381
|
-
}, children: /* @__PURE__ */ i(
|
|
27404
|
+
}, children: /* @__PURE__ */ i(oM, { queryModel: t }) }) }),
|
|
27382
27405
|
/* @__PURE__ */ i(g.Panel, { value: "Data", sx: {
|
|
27383
27406
|
...$r,
|
|
27384
27407
|
overflow: "hidden"
|
|
@@ -27386,21 +27409,21 @@ WHERE
|
|
|
27386
27409
|
/* @__PURE__ */ i(g.Panel, { value: "Usage", sx: {
|
|
27387
27410
|
...$r,
|
|
27388
27411
|
overflow: "hidden"
|
|
27389
|
-
}, children: /* @__PURE__ */ i(
|
|
27412
|
+
}, children: /* @__PURE__ */ i(aM, { queryID: t.id, usage: a }) })
|
|
27390
27413
|
] }) });
|
|
27391
|
-
}),
|
|
27414
|
+
}), uM = D(({
|
|
27392
27415
|
id: t
|
|
27393
27416
|
}) => {
|
|
27394
27417
|
const n = re().queries.findByID(t);
|
|
27395
27418
|
return t === "" ? null : n ? /* @__PURE__ */ i(S, { sx: {
|
|
27396
27419
|
height: "100%"
|
|
27397
|
-
}, spacing: "sm", children: /* @__PURE__ */ i(
|
|
27398
|
-
}),
|
|
27420
|
+
}, spacing: "sm", children: /* @__PURE__ */ i(dM, { queryModel: n }) }) : /* @__PURE__ */ i(C, { size: 14, color: "red", children: "Invalid Query ID" });
|
|
27421
|
+
}), hM = D(({
|
|
27399
27422
|
value: t
|
|
27400
27423
|
}) => {
|
|
27401
27424
|
const n = re().payloadForSQL, r = M(() => Qo(t, n), [t, n]);
|
|
27402
27425
|
return /* @__PURE__ */ i(Wa, { height: "100%", value: r });
|
|
27403
|
-
}),
|
|
27426
|
+
}), pM = D(({
|
|
27404
27427
|
item: t,
|
|
27405
27428
|
remove: e,
|
|
27406
27429
|
onKeyChanged: n
|
|
@@ -27472,13 +27495,13 @@ WHERE
|
|
|
27472
27495
|
}, children: /* @__PURE__ */ i(be, { size: 18 }) })
|
|
27473
27496
|
] }),
|
|
27474
27497
|
/* @__PURE__ */ i(g.Panel, { value: "SQL", pt: "sm", children: /* @__PURE__ */ i(Wa, { height: "100%", value: p, onChange: h, defaultLanguage: "sql", theme: "sql-dark" }) }),
|
|
27475
|
-
/* @__PURE__ */ i(g.Panel, { value: "Preview", pt: "sm", children: /* @__PURE__ */ i(
|
|
27498
|
+
/* @__PURE__ */ i(g.Panel, { value: "Preview", pt: "sm", children: /* @__PURE__ */ i(hM, { value: p }) })
|
|
27476
27499
|
] })
|
|
27477
27500
|
] });
|
|
27478
|
-
}),
|
|
27501
|
+
}), fM = D(({
|
|
27479
27502
|
id: t
|
|
27480
27503
|
}) => {
|
|
27481
|
-
const e =
|
|
27504
|
+
const e = Le(), n = re(), r = M(() => n.sqlSnippets.findByKey(t), [t]);
|
|
27482
27505
|
if (!t)
|
|
27483
27506
|
return null;
|
|
27484
27507
|
if (!r)
|
|
@@ -27490,17 +27513,17 @@ WHERE
|
|
|
27490
27513
|
const o = () => {
|
|
27491
27514
|
e.editor.setPath(["_SQL_SNIPPETS_", ""]);
|
|
27492
27515
|
};
|
|
27493
|
-
return /* @__PURE__ */ i(
|
|
27516
|
+
return /* @__PURE__ */ i(pM, { item: r, remove: () => {
|
|
27494
27517
|
n.sqlSnippets.removeByKey(t), o();
|
|
27495
27518
|
}, onKeyChanged: (l) => {
|
|
27496
27519
|
e.editor.setPath(["_SQL_SNIPPETS_", l]);
|
|
27497
27520
|
} });
|
|
27498
|
-
}),
|
|
27521
|
+
}), mM = D(({
|
|
27499
27522
|
view: t
|
|
27500
27523
|
}) => !t || t.type !== se.Division ? null : /* @__PURE__ */ u(S, { children: [
|
|
27501
27524
|
/* @__PURE__ */ i(R, { mt: 8, mb: 0, label: "Division settings", labelPosition: "center" }),
|
|
27502
27525
|
/* @__PURE__ */ i(C, { align: "center", size: "xs", color: "dimmed", children: "Under construction" })
|
|
27503
|
-
] })),
|
|
27526
|
+
] })), gM = [{
|
|
27504
27527
|
value: "default",
|
|
27505
27528
|
label: "Default"
|
|
27506
27529
|
}, {
|
|
@@ -27509,13 +27532,13 @@ WHERE
|
|
|
27509
27532
|
}, {
|
|
27510
27533
|
value: "pills",
|
|
27511
27534
|
label: "Pills"
|
|
27512
|
-
}],
|
|
27535
|
+
}], bM = [{
|
|
27513
27536
|
value: "horizontal",
|
|
27514
27537
|
label: "Horizontal"
|
|
27515
27538
|
}, {
|
|
27516
27539
|
value: "vertical",
|
|
27517
27540
|
label: "Vertical"
|
|
27518
|
-
}],
|
|
27541
|
+
}], yM = D(({
|
|
27519
27542
|
view: t
|
|
27520
27543
|
}) => {
|
|
27521
27544
|
if (!t || t.type !== se.Tabs)
|
|
@@ -27523,11 +27546,11 @@ WHERE
|
|
|
27523
27546
|
const e = t.config;
|
|
27524
27547
|
return /* @__PURE__ */ u(S, { children: [
|
|
27525
27548
|
/* @__PURE__ */ i(R, { mt: 8, mb: 0, label: "Tabs settings", labelPosition: "center" }),
|
|
27526
|
-
/* @__PURE__ */ i(P, { label: "Variant", value: e.variant, onChange: e.setVariant, data:
|
|
27527
|
-
/* @__PURE__ */ i(P, { label: "Orientation", value: e.orientation, onChange: e.setOrientation, data:
|
|
27549
|
+
/* @__PURE__ */ i(P, { label: "Variant", value: e.variant, onChange: e.setVariant, data: gM }),
|
|
27550
|
+
/* @__PURE__ */ i(P, { label: "Orientation", value: e.orientation, onChange: e.setOrientation, data: bM }),
|
|
27528
27551
|
/* @__PURE__ */ i(Je, { label: "Grow Tabs", checked: e.grow, onChange: (n) => e.setGrow(n.currentTarget.checked) })
|
|
27529
27552
|
] });
|
|
27530
|
-
}),
|
|
27553
|
+
}), xM = ({
|
|
27531
27554
|
disabled: t,
|
|
27532
27555
|
value: e,
|
|
27533
27556
|
onChange: n
|
|
@@ -27543,7 +27566,7 @@ WHERE
|
|
|
27543
27566
|
},
|
|
27544
27567
|
readOnly: t
|
|
27545
27568
|
} })
|
|
27546
|
-
] }),
|
|
27569
|
+
] }), vM = ({
|
|
27547
27570
|
value: t,
|
|
27548
27571
|
onChange: e
|
|
27549
27572
|
}) => {
|
|
@@ -27579,9 +27602,9 @@ WHERE
|
|
|
27579
27602
|
/* @__PURE__ */ i(Q, { size: "lg", color: "blue", variant: "filled", mt: 26, onClick: r, sx: {
|
|
27580
27603
|
flexGrow: 0
|
|
27581
27604
|
}, children: /* @__PURE__ */ i(Ll, { size: 14 }) }),
|
|
27582
|
-
/* @__PURE__ */ i(
|
|
27605
|
+
/* @__PURE__ */ i(Ie, { size: 800, title: "Customize modal title", opened: n, onClose: o, closeOnClickOutside: !1, withCloseButton: !1, zIndex: 320, children: n && /* @__PURE__ */ u(S, { children: [
|
|
27583
27606
|
/* @__PURE__ */ i(we, { mt: 10, label: "Enabled", checked: a.enabled, onChange: (f) => l(f.currentTarget.checked) }),
|
|
27584
|
-
/* @__PURE__ */ i(
|
|
27607
|
+
/* @__PURE__ */ i(xM, { value: a.func_content, onChange: p, disabled: !a.enabled }),
|
|
27585
27608
|
/* @__PURE__ */ u(w, { position: "apart", children: [
|
|
27586
27609
|
/* @__PURE__ */ i($, { onClick: h, color: "red", leftIcon: /* @__PURE__ */ i(It, { size: 20 }), children: "Rest" }),
|
|
27587
27610
|
/* @__PURE__ */ u(w, { position: "right", children: [
|
|
@@ -27591,7 +27614,7 @@ WHERE
|
|
|
27591
27614
|
] })
|
|
27592
27615
|
] }) })
|
|
27593
27616
|
] });
|
|
27594
|
-
},
|
|
27617
|
+
}, wM = D(({
|
|
27595
27618
|
view: t
|
|
27596
27619
|
}) => {
|
|
27597
27620
|
if (!t || t.type !== se.Modal)
|
|
@@ -27603,20 +27626,20 @@ WHERE
|
|
|
27603
27626
|
/* @__PURE__ */ i(A, { label: "Modal Title", value: n, onChange: k.noop, disabled: !0, sx: {
|
|
27604
27627
|
flexGrow: 1
|
|
27605
27628
|
} }),
|
|
27606
|
-
/* @__PURE__ */ i(
|
|
27629
|
+
/* @__PURE__ */ i(vM, { value: e.custom_modal_title, onChange: e.custom_modal_title.replace })
|
|
27607
27630
|
] }),
|
|
27608
27631
|
/* @__PURE__ */ u(w, { grow: !0, children: [
|
|
27609
27632
|
/* @__PURE__ */ i(A, { label: "Width", value: e.width, onChange: (r) => e.setWidth(r.currentTarget.value), placeholder: "600px / 50vw" }),
|
|
27610
27633
|
/* @__PURE__ */ i(A, { label: "Height", value: e.height, onChange: (r) => e.setHeight(r.currentTarget.value), placeholder: "600px / 50vw" })
|
|
27611
27634
|
] })
|
|
27612
27635
|
] });
|
|
27613
|
-
}),
|
|
27636
|
+
}), _M = D(({
|
|
27614
27637
|
view: t
|
|
27615
27638
|
}) => /* @__PURE__ */ u(G, { children: [
|
|
27616
|
-
/* @__PURE__ */ i(
|
|
27617
|
-
/* @__PURE__ */ i(
|
|
27618
|
-
/* @__PURE__ */ i(
|
|
27619
|
-
] })),
|
|
27639
|
+
/* @__PURE__ */ i(mM, { view: t }),
|
|
27640
|
+
/* @__PURE__ */ i(wM, { view: t }),
|
|
27641
|
+
/* @__PURE__ */ i(yM, { view: t })
|
|
27642
|
+
] })), CM = [{
|
|
27620
27643
|
label: "Division",
|
|
27621
27644
|
value: se.Division
|
|
27622
27645
|
}, {
|
|
@@ -27625,7 +27648,7 @@ WHERE
|
|
|
27625
27648
|
}, {
|
|
27626
27649
|
label: "Tabs",
|
|
27627
27650
|
value: se.Tabs
|
|
27628
|
-
}],
|
|
27651
|
+
}], SM = D(({
|
|
27629
27652
|
view: t
|
|
27630
27653
|
}) => t ? /* @__PURE__ */ u(S, { sx: {
|
|
27631
27654
|
position: "relative"
|
|
@@ -27633,12 +27656,12 @@ WHERE
|
|
|
27633
27656
|
/* @__PURE__ */ i(A, { label: "Name", value: t.name, onChange: (e) => {
|
|
27634
27657
|
t.setName(e.currentTarget.value);
|
|
27635
27658
|
} }),
|
|
27636
|
-
/* @__PURE__ */ i(P, { label: "Type", withinPortal: !0, zIndex: 320, value: t.type, onChange: t.setType, data:
|
|
27637
|
-
/* @__PURE__ */ i(
|
|
27638
|
-
] }) : null),
|
|
27659
|
+
/* @__PURE__ */ i(P, { label: "Type", withinPortal: !0, zIndex: 320, value: t.type, onChange: t.setType, data: CM }),
|
|
27660
|
+
/* @__PURE__ */ i(_M, { view: t })
|
|
27661
|
+
] }) : null), kM = D(({
|
|
27639
27662
|
id: t
|
|
27640
27663
|
}) => {
|
|
27641
|
-
const e = Gt(), n =
|
|
27664
|
+
const e = Gt(), n = Le(), r = re();
|
|
27642
27665
|
if (t === "")
|
|
27643
27666
|
return null;
|
|
27644
27667
|
const o = r.views.findByID(t);
|
|
@@ -27673,37 +27696,37 @@ WHERE
|
|
|
27673
27696
|
flexGrow: 1,
|
|
27674
27697
|
maxHeight: "calc(100% - 52px)",
|
|
27675
27698
|
overflow: "auto"
|
|
27676
|
-
}, children: /* @__PURE__ */ i(
|
|
27699
|
+
}, children: /* @__PURE__ */ i(SM, { view: o }) })
|
|
27677
27700
|
] });
|
|
27678
27701
|
});
|
|
27679
|
-
function
|
|
27702
|
+
function TM(t) {
|
|
27680
27703
|
return t.length === 1 && t[0] === "_QUERY_VARS_";
|
|
27681
27704
|
}
|
|
27682
|
-
function
|
|
27705
|
+
function DM(t) {
|
|
27683
27706
|
return t.length === 1 && t[0] === "_MOCK_CONTEXT_";
|
|
27684
27707
|
}
|
|
27685
|
-
function
|
|
27708
|
+
function IM(t) {
|
|
27686
27709
|
return t.length === 2 && t[0] === "_FILTERS_";
|
|
27687
27710
|
}
|
|
27688
|
-
function
|
|
27711
|
+
function MM(t) {
|
|
27689
27712
|
return t.length === 2 && t[0] === "_SQL_SNIPPETS_";
|
|
27690
27713
|
}
|
|
27691
|
-
function
|
|
27714
|
+
function $M(t) {
|
|
27692
27715
|
return t.length === 2 && t[0] === "_QUERIES_";
|
|
27693
27716
|
}
|
|
27694
|
-
function
|
|
27717
|
+
function zM(t) {
|
|
27695
27718
|
return t.length === 2 && t[0] === "_VIEWS_";
|
|
27696
27719
|
}
|
|
27697
|
-
function
|
|
27720
|
+
function LM(t) {
|
|
27698
27721
|
return t.length === 4 && t[0] === "_VIEWS_" && t[2] === "_PANELS_";
|
|
27699
27722
|
}
|
|
27700
|
-
const
|
|
27723
|
+
const AM = D(() => /* @__PURE__ */ i(S, { sx: {
|
|
27701
27724
|
height: "100%"
|
|
27702
|
-
}, p: "sm", children: /* @__PURE__ */ i(Ud, {}) })),
|
|
27703
|
-
const t =
|
|
27704
|
-
return
|
|
27705
|
-
}),
|
|
27706
|
-
const t =
|
|
27725
|
+
}, p: "sm", children: /* @__PURE__ */ i(Ud, {}) })), EM = D(() => {
|
|
27726
|
+
const t = Le().editor, e = t.path;
|
|
27727
|
+
return TM(e) ? /* @__PURE__ */ i(AM, {}) : DM(e) ? /* @__PURE__ */ i(rI, {}) : IM(e) ? /* @__PURE__ */ i(V, { p: "xs", pl: 20, children: /* @__PURE__ */ i(nI, { id: e[1] }) }) : MM(e) ? /* @__PURE__ */ i(fM, { id: e[1] }) : $M(e) ? /* @__PURE__ */ i(uM, { id: e[1] }) : zM(e) ? /* @__PURE__ */ i(V, { p: "xs", pl: 20, children: /* @__PURE__ */ i(kM, { id: e[1] }) }) : LM(e) ? /* @__PURE__ */ i(LI, { viewID: e[1], panelID: e[3] }) : /* @__PURE__ */ i(V, { children: t.path });
|
|
27728
|
+
}), RM = D(() => /* @__PURE__ */ i(EM, {})), OM = D(() => {
|
|
27729
|
+
const t = Le();
|
|
27707
27730
|
return /* @__PURE__ */ i($, { variant: "subtle", leftIcon: /* @__PURE__ */ i(Yt, { size: 14 }), size: "sm", px: "xs", mb: 10, color: "blue", onClick: () => {
|
|
27708
27731
|
const n = (/* @__PURE__ */ new Date()).getTime().toString(), r = {
|
|
27709
27732
|
id: n,
|
|
@@ -27724,7 +27747,7 @@ const LM = D(() => /* @__PURE__ */ i(S, { sx: {
|
|
|
27724
27747
|
justifyContent: "flex-start"
|
|
27725
27748
|
}
|
|
27726
27749
|
}, children: "Add a Filter" });
|
|
27727
|
-
}),
|
|
27750
|
+
}), FM = D(({
|
|
27728
27751
|
parentID: t
|
|
27729
27752
|
}) => {
|
|
27730
27753
|
const e = re();
|
|
@@ -27739,13 +27762,13 @@ const LM = D(() => /* @__PURE__ */ i(S, { sx: {
|
|
|
27739
27762
|
justifyContent: "flex-start"
|
|
27740
27763
|
}
|
|
27741
27764
|
}, children: "Add a Panel" }) : null;
|
|
27742
|
-
}),
|
|
27743
|
-
const t =
|
|
27765
|
+
}), PM = D(() => {
|
|
27766
|
+
const t = Le();
|
|
27744
27767
|
return /* @__PURE__ */ i($, { variant: "subtle", leftIcon: /* @__PURE__ */ i(Yt, { size: 14 }), size: "sm", px: "xs", mb: 10, color: "blue", onClick: () => {
|
|
27745
27768
|
const n = (/* @__PURE__ */ new Date()).getTime().toString(), r = {
|
|
27746
27769
|
id: n,
|
|
27747
27770
|
name: n,
|
|
27748
|
-
type:
|
|
27771
|
+
type: ze.Postgresql,
|
|
27749
27772
|
key: "",
|
|
27750
27773
|
sql: ""
|
|
27751
27774
|
};
|
|
@@ -27758,8 +27781,8 @@ const LM = D(() => /* @__PURE__ */ i(S, { sx: {
|
|
|
27758
27781
|
justifyContent: "flex-start"
|
|
27759
27782
|
}
|
|
27760
27783
|
}, children: "Add a Query" });
|
|
27761
|
-
}),
|
|
27762
|
-
const t =
|
|
27784
|
+
}), VM = D(() => {
|
|
27785
|
+
const t = Le();
|
|
27763
27786
|
return /* @__PURE__ */ i($, { variant: "subtle", leftIcon: /* @__PURE__ */ i(Yt, { size: 14 }), size: "sm", px: "xs", mb: 10, color: "blue", onClick: () => {
|
|
27764
27787
|
const n = (/* @__PURE__ */ new Date()).getTime().toString(), r = {
|
|
27765
27788
|
key: n,
|
|
@@ -27774,7 +27797,7 @@ const LM = D(() => /* @__PURE__ */ i(S, { sx: {
|
|
|
27774
27797
|
justifyContent: "flex-start"
|
|
27775
27798
|
}
|
|
27776
27799
|
}, children: "Add a SQL Snippet" });
|
|
27777
|
-
}),
|
|
27800
|
+
}), NM = D(() => {
|
|
27778
27801
|
const t = re();
|
|
27779
27802
|
return /* @__PURE__ */ i($, { variant: "subtle", leftIcon: /* @__PURE__ */ i(Yt, { size: 14 }), size: "sm", px: "xs", mb: 10, color: "blue", onClick: t.views.addARandomNewView, sx: {
|
|
27780
27803
|
width: "100%",
|
|
@@ -27784,24 +27807,24 @@ const LM = D(() => /* @__PURE__ */ i(S, { sx: {
|
|
|
27784
27807
|
justifyContent: "flex-start"
|
|
27785
27808
|
}
|
|
27786
27809
|
}, children: "Add a View" });
|
|
27787
|
-
}),
|
|
27810
|
+
}), BM = D(({
|
|
27788
27811
|
action_type: t,
|
|
27789
27812
|
parentID: e
|
|
27790
|
-
}) => (re(), t === "_Add_A_Filter_" ? /* @__PURE__ */ i(
|
|
27813
|
+
}) => (re(), t === "_Add_A_Filter_" ? /* @__PURE__ */ i(OM, {}) : t === "_Add_A_SQL_SNIPPET_" ? /* @__PURE__ */ i(VM, {}) : t === "_Add_A_QUERY_" ? /* @__PURE__ */ i(PM, {}) : t === "_Add_A_VIEW_" ? /* @__PURE__ */ i(NM, {}) : t === "_Add_A_PANEL_" ? /* @__PURE__ */ i(FM, { parentID: e }) : null)), Kd = D(({
|
|
27791
27814
|
option: t
|
|
27792
27815
|
}) => {
|
|
27793
27816
|
var d;
|
|
27794
|
-
const e =
|
|
27817
|
+
const e = Le().editor, n = e.isOptionActive, r = n(e.path, t), o = e.isOptionOpened, a = e.navigate, s = o(t), [l, c] = K(s);
|
|
27795
27818
|
return W(() => {
|
|
27796
27819
|
c(s);
|
|
27797
|
-
}, [s]), /* @__PURE__ */ i(Yi, { active: r, defaultOpened: s, opened: l, onChange: c, label: t.label, onClick: () => a(t), icon: t.Icon ? /* @__PURE__ */ i(t.Icon, { size: 18 }) : null, children: (d = t.children) == null ? void 0 : d.map((p) => p._type === "ACTION" ? /* @__PURE__ */ i(
|
|
27798
|
-
}),
|
|
27799
|
-
const t =
|
|
27820
|
+
}, [s]), /* @__PURE__ */ i(Yi, { active: r, defaultOpened: s, opened: l, onChange: c, label: t.label, onClick: () => a(t), icon: t.Icon ? /* @__PURE__ */ i(t.Icon, { size: 18 }) : null, children: (d = t.children) == null ? void 0 : d.map((p) => p._type === "ACTION" ? /* @__PURE__ */ i(BM, { action_type: p._action_type, parentID: p.parentID }, `_ADD_${p.value}_`) : /* @__PURE__ */ i(Kd, { option: p }, p.value)) }, t.label);
|
|
27821
|
+
}), qM = D(() => {
|
|
27822
|
+
const t = Le();
|
|
27800
27823
|
return /* @__PURE__ */ i(V, { sx: {
|
|
27801
27824
|
position: "relative"
|
|
27802
27825
|
}, children: t.editor.navOptions.map((e) => /* @__PURE__ */ i(Kd, { option: e }, e.value)) });
|
|
27803
|
-
}),
|
|
27804
|
-
const t =
|
|
27826
|
+
}), WM = D(() => {
|
|
27827
|
+
const t = Le();
|
|
27805
27828
|
return /* @__PURE__ */ u(Bt, { p: 0, width: {
|
|
27806
27829
|
base: 200,
|
|
27807
27830
|
xs: 200,
|
|
@@ -27820,12 +27843,12 @@ const LM = D(() => /* @__PURE__ */ i(S, { sx: {
|
|
|
27820
27843
|
}, children: "Settings" }) }),
|
|
27821
27844
|
/* @__PURE__ */ i(Bt.Section, { grow: !0, sx: {
|
|
27822
27845
|
overflow: "auto"
|
|
27823
|
-
}, children: /* @__PURE__ */ i(
|
|
27846
|
+
}, children: /* @__PURE__ */ i(qM, {}) }),
|
|
27824
27847
|
/* @__PURE__ */ i(Bt.Section, { children: /* @__PURE__ */ i(w, { grow: !0, p: "md", pt: "sm", sx: {
|
|
27825
27848
|
borderTop: "1px solid #eee"
|
|
27826
27849
|
}, children: /* @__PURE__ */ i($, { size: "xs", color: "red", leftIcon: /* @__PURE__ */ i(Cl, { size: 18 }), onClick: () => t.editor.close(), children: "Close" }) }) })
|
|
27827
27850
|
] });
|
|
27828
|
-
}),
|
|
27851
|
+
}), jM = {
|
|
27829
27852
|
root: {
|
|
27830
27853
|
height: "100vh",
|
|
27831
27854
|
display: "flex",
|
|
@@ -27846,22 +27869,22 @@ const LM = D(() => /* @__PURE__ */ i(S, { sx: {
|
|
|
27846
27869
|
paddingTop: 0,
|
|
27847
27870
|
height: "100vh"
|
|
27848
27871
|
}
|
|
27849
|
-
},
|
|
27850
|
-
const t =
|
|
27851
|
-
return /* @__PURE__ */ i(
|
|
27872
|
+
}, GM = D(() => {
|
|
27873
|
+
const t = Le().editor;
|
|
27874
|
+
return /* @__PURE__ */ i(Ie, { onClose: () => t.setSettingsOpen(!1), closeOnEscape: !1, closeOnClickOutside: !1, opened: t.settings_open, fullScreen: !0, title: null, transitionProps: {
|
|
27852
27875
|
duration: 0
|
|
27853
27876
|
}, withCloseButton: !1, withinPortal: !0, zIndex: 300, styles: {
|
|
27854
27877
|
body: {
|
|
27855
27878
|
padding: "0 !important"
|
|
27856
27879
|
}
|
|
27857
|
-
}, children: /* @__PURE__ */ i(ol, { padding: 0, navbar: /* @__PURE__ */ i(
|
|
27858
|
-
}),
|
|
27859
|
-
function
|
|
27880
|
+
}, children: /* @__PURE__ */ i(ol, { padding: 0, navbar: /* @__PURE__ */ i(WM, {}), styles: jM, children: /* @__PURE__ */ i(RM, {}) }) });
|
|
27881
|
+
}), YM = (t) => t.replace(/([^:])(\/\/+)/g, "$1/");
|
|
27882
|
+
function HM(t) {
|
|
27860
27883
|
W(() => {
|
|
27861
27884
|
if (Li.__getMonacoInstance())
|
|
27862
27885
|
return;
|
|
27863
27886
|
console.log("loading monaco for @devtable/dashboard");
|
|
27864
|
-
const n =
|
|
27887
|
+
const n = YM(t);
|
|
27865
27888
|
Li.config({
|
|
27866
27889
|
paths: {
|
|
27867
27890
|
vs: n
|
|
@@ -27870,7 +27893,7 @@ function YM(t) {
|
|
|
27870
27893
|
}, []);
|
|
27871
27894
|
}
|
|
27872
27895
|
Rc();
|
|
27873
|
-
const
|
|
27896
|
+
const QM = {
|
|
27874
27897
|
root: {
|
|
27875
27898
|
height: "100vh",
|
|
27876
27899
|
display: "flex",
|
|
@@ -27888,7 +27911,7 @@ const HM = {
|
|
|
27888
27911
|
// main header & sub header
|
|
27889
27912
|
height: "100vh"
|
|
27890
27913
|
}
|
|
27891
|
-
},
|
|
27914
|
+
}, UM = ({
|
|
27892
27915
|
context: t,
|
|
27893
27916
|
dashboard: e,
|
|
27894
27917
|
content: n,
|
|
@@ -27899,7 +27922,7 @@ const HM = {
|
|
|
27899
27922
|
headerSlot: l,
|
|
27900
27923
|
headerMenuItems: c
|
|
27901
27924
|
}, d) => {
|
|
27902
|
-
|
|
27925
|
+
HM(a.monacoPath), Kl(a);
|
|
27903
27926
|
const {
|
|
27904
27927
|
data: p = []
|
|
27905
27928
|
} = xn(Uo), {
|
|
@@ -27922,14 +27945,14 @@ const HM = {
|
|
|
27922
27945
|
freezeLayout: m,
|
|
27923
27946
|
inEditMode: !0
|
|
27924
27947
|
}, children: /* @__PURE__ */ i(Pt.Provider, { value: T, children: /* @__PURE__ */ u(wi, { configure: I, children: [
|
|
27925
|
-
/* @__PURE__ */ i(ol, { padding: 0, header: /* @__PURE__ */ i(
|
|
27948
|
+
/* @__PURE__ */ i(ol, { padding: 0, header: /* @__PURE__ */ i(fD, { saveDashboardChanges: v, headerSlot: l, headerMenuItems: c }), navbar: /* @__PURE__ */ i(BD, {}), styles: QM, children: /* @__PURE__ */ i(V, { className: `${o} dashboard-root`, sx: {
|
|
27926
27949
|
position: "relative"
|
|
27927
|
-
}, children: x.content.views.visibleViews.map((L) => /* @__PURE__ */ i(
|
|
27928
|
-
/* @__PURE__ */ i(
|
|
27950
|
+
}, children: x.content.views.visibleViews.map((L) => /* @__PURE__ */ i(eD, { view: L }, L.id)) }) }),
|
|
27951
|
+
/* @__PURE__ */ i(GM, {})
|
|
27929
27952
|
] }) }) }) }) }) });
|
|
27930
|
-
},
|
|
27953
|
+
}, xL = D(Se(UM));
|
|
27931
27954
|
Rc();
|
|
27932
|
-
const
|
|
27955
|
+
const vL = D(({
|
|
27933
27956
|
context: t,
|
|
27934
27957
|
dashboard: e,
|
|
27935
27958
|
content: n,
|
|
@@ -27961,7 +27984,7 @@ const xL = D(({
|
|
|
27961
27984
|
inEditMode: !1
|
|
27962
27985
|
}, children: /* @__PURE__ */ i(V, { className: `${r} dashboard-root`, children: /* @__PURE__ */ i(Pt.Provider, { value: p, children: /* @__PURE__ */ i(wi, { configure: h, children: d.content.views.visibleViews.map((f) => /* @__PURE__ */ i(Pa, { view: f }, f.id)) }) }) }) }) }) }) }) });
|
|
27963
27986
|
});
|
|
27964
|
-
var io = {},
|
|
27987
|
+
var io = {}, KM = {
|
|
27965
27988
|
get exports() {
|
|
27966
27989
|
return io;
|
|
27967
27990
|
},
|
|
@@ -28016,9 +28039,9 @@ var io = {}, UM = {
|
|
|
28016
28039
|
};
|
|
28017
28040
|
};
|
|
28018
28041
|
});
|
|
28019
|
-
})(
|
|
28020
|
-
const
|
|
28021
|
-
var oo = {},
|
|
28042
|
+
})(KM);
|
|
28043
|
+
const XM = io;
|
|
28044
|
+
var oo = {}, JM = {
|
|
28022
28045
|
get exports() {
|
|
28023
28046
|
return oo;
|
|
28024
28047
|
},
|
|
@@ -28040,9 +28063,9 @@ var oo = {}, XM = {
|
|
|
28040
28063
|
};
|
|
28041
28064
|
};
|
|
28042
28065
|
});
|
|
28043
|
-
})(
|
|
28044
|
-
const
|
|
28045
|
-
var ao = {},
|
|
28066
|
+
})(JM);
|
|
28067
|
+
const ZM = oo;
|
|
28068
|
+
var ao = {}, e$ = {
|
|
28046
28069
|
get exports() {
|
|
28047
28070
|
return ao;
|
|
28048
28071
|
},
|
|
@@ -28091,9 +28114,9 @@ var ao = {}, ZM = {
|
|
|
28091
28114
|
};
|
|
28092
28115
|
};
|
|
28093
28116
|
});
|
|
28094
|
-
})(
|
|
28095
|
-
const
|
|
28096
|
-
var so = {},
|
|
28117
|
+
})(e$);
|
|
28118
|
+
const t$ = ao;
|
|
28119
|
+
var so = {}, n$ = {
|
|
28097
28120
|
get exports() {
|
|
28098
28121
|
return so;
|
|
28099
28122
|
},
|
|
@@ -28116,9 +28139,9 @@ var so = {}, t$ = {
|
|
|
28116
28139
|
};
|
|
28117
28140
|
};
|
|
28118
28141
|
});
|
|
28119
|
-
})(
|
|
28120
|
-
const
|
|
28121
|
-
var lo = {},
|
|
28142
|
+
})(n$);
|
|
28143
|
+
const r$ = so;
|
|
28144
|
+
var lo = {}, i$ = {
|
|
28122
28145
|
get exports() {
|
|
28123
28146
|
return lo;
|
|
28124
28147
|
},
|
|
@@ -28138,9 +28161,9 @@ var lo = {}, r$ = {
|
|
|
28138
28161
|
};
|
|
28139
28162
|
};
|
|
28140
28163
|
});
|
|
28141
|
-
})(
|
|
28142
|
-
const
|
|
28143
|
-
var co = {},
|
|
28164
|
+
})(i$);
|
|
28165
|
+
const o$ = lo;
|
|
28166
|
+
var co = {}, a$ = {
|
|
28144
28167
|
get exports() {
|
|
28145
28168
|
return co;
|
|
28146
28169
|
},
|
|
@@ -28214,8 +28237,8 @@ var co = {}, o$ = {
|
|
|
28214
28237
|
T = v, I = l && l.formats;
|
|
28215
28238
|
for (var L = (v = T.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g, function(ne, ee, ie) {
|
|
28216
28239
|
var me = ie && ie.toUpperCase();
|
|
28217
|
-
return ee || I[ie] || n[ie] || I[me].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g, function(ge,
|
|
28218
|
-
return
|
|
28240
|
+
return ee || I[ie] || n[ie] || I[me].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g, function(ge, $e, Ye) {
|
|
28241
|
+
return $e || Ye.slice(1);
|
|
28219
28242
|
});
|
|
28220
28243
|
})).match(r), B = L.length, j = 0; j < B; j += 1) {
|
|
28221
28244
|
var N = L[j], O = m[N], E = O && O[0], U = O && O[1];
|
|
@@ -28227,15 +28250,15 @@ var co = {}, o$ = {
|
|
|
28227
28250
|
if (typeof ge == "string")
|
|
28228
28251
|
me += ge.length;
|
|
28229
28252
|
else {
|
|
28230
|
-
var
|
|
28253
|
+
var $e = ge.regex, Ye = ge.parser, ke = ne.slice(me), Fe = $e.exec(ke)[0];
|
|
28231
28254
|
Ye.call(ee, Fe), ne = ne.replace(Fe, "");
|
|
28232
28255
|
}
|
|
28233
28256
|
}
|
|
28234
|
-
return function(
|
|
28235
|
-
var Xe =
|
|
28257
|
+
return function(Te) {
|
|
28258
|
+
var Xe = Te.afternoon;
|
|
28236
28259
|
if (Xe !== void 0) {
|
|
28237
|
-
var gt =
|
|
28238
|
-
Xe ? gt < 12 && (
|
|
28260
|
+
var gt = Te.hours;
|
|
28261
|
+
Xe ? gt < 12 && (Te.hours += 12) : gt === 12 && (Te.hours = 0), delete Te.afternoon;
|
|
28239
28262
|
}
|
|
28240
28263
|
}(ee), ee;
|
|
28241
28264
|
};
|
|
@@ -28249,36 +28272,36 @@ var co = {}, o$ = {
|
|
|
28249
28272
|
var U = E[1];
|
|
28250
28273
|
if (typeof U == "string") {
|
|
28251
28274
|
var ne = E[2] === !0, ee = E[3] === !0, ie = ne || ee, me = E[2];
|
|
28252
|
-
ee && (me = E[2]), l = this.$locale(), !ne && me && (l = I.Ls[me]), this.$d = function(ke, Fe,
|
|
28275
|
+
ee && (me = E[2]), l = this.$locale(), !ne && me && (l = I.Ls[me]), this.$d = function(ke, Fe, Te) {
|
|
28253
28276
|
try {
|
|
28254
28277
|
if (["x", "X"].indexOf(Fe) > -1)
|
|
28255
28278
|
return new Date((Fe === "X" ? 1e3 : 1) * ke);
|
|
28256
28279
|
var Xe = x(Fe)(ke), gt = Xe.year, un = Xe.month, wr = Xe.day, _r = Xe.hours, _i = Xe.minutes, Ci = Xe.seconds, Un = Xe.milliseconds, Mn = Xe.zone, Ut = /* @__PURE__ */ new Date(), hn = wr || (gt || un ? 1 : Ut.getDate()), Kt = gt || Ut.getFullYear(), $n = 0;
|
|
28257
28280
|
gt && !un || ($n = un > 0 ? un - 1 : Ut.getMonth());
|
|
28258
28281
|
var zn = _r || 0, Kn = _i || 0, Xn = Ci || 0, Xt = Un || 0;
|
|
28259
|
-
return Mn ? new Date(Date.UTC(Kt, $n, hn, zn, Kn, Xn, Xt + 60 * Mn.offset * 1e3)) :
|
|
28282
|
+
return Mn ? new Date(Date.UTC(Kt, $n, hn, zn, Kn, Xn, Xt + 60 * Mn.offset * 1e3)) : Te ? new Date(Date.UTC(Kt, $n, hn, zn, Kn, Xn, Xt)) : new Date(Kt, $n, hn, zn, Kn, Xn, Xt);
|
|
28260
28283
|
} catch {
|
|
28261
28284
|
return /* @__PURE__ */ new Date("");
|
|
28262
28285
|
}
|
|
28263
28286
|
}(N, U, O), this.init(), me && me !== !0 && (this.$L = this.locale(me).$L), ie && N != this.format(U) && (this.$d = /* @__PURE__ */ new Date("")), l = {};
|
|
28264
28287
|
} else if (U instanceof Array)
|
|
28265
|
-
for (var ge = U.length,
|
|
28266
|
-
E[1] = U[
|
|
28288
|
+
for (var ge = U.length, $e = 1; $e <= ge; $e += 1) {
|
|
28289
|
+
E[1] = U[$e - 1];
|
|
28267
28290
|
var Ye = I.apply(this, E);
|
|
28268
28291
|
if (Ye.isValid()) {
|
|
28269
28292
|
this.$d = Ye.$d, this.$L = Ye.$L, this.init();
|
|
28270
28293
|
break;
|
|
28271
28294
|
}
|
|
28272
|
-
|
|
28295
|
+
$e === ge && (this.$d = /* @__PURE__ */ new Date(""));
|
|
28273
28296
|
}
|
|
28274
28297
|
else
|
|
28275
28298
|
B.call(this, j);
|
|
28276
28299
|
};
|
|
28277
28300
|
};
|
|
28278
28301
|
});
|
|
28279
|
-
})(
|
|
28280
|
-
const
|
|
28281
|
-
var uo = {},
|
|
28302
|
+
})(a$);
|
|
28303
|
+
const s$ = co;
|
|
28304
|
+
var uo = {}, l$ = {
|
|
28282
28305
|
get exports() {
|
|
28283
28306
|
return uo;
|
|
28284
28307
|
},
|
|
@@ -28297,9 +28320,9 @@ var uo = {}, s$ = {
|
|
|
28297
28320
|
};
|
|
28298
28321
|
};
|
|
28299
28322
|
});
|
|
28300
|
-
})(
|
|
28301
|
-
const
|
|
28302
|
-
var ho = {},
|
|
28323
|
+
})(l$);
|
|
28324
|
+
const c$ = uo;
|
|
28325
|
+
var ho = {}, d$ = {
|
|
28303
28326
|
get exports() {
|
|
28304
28327
|
return ho;
|
|
28305
28328
|
},
|
|
@@ -28361,7 +28384,7 @@ var ho = {}, c$ = {
|
|
|
28361
28384
|
this.$d.weeks && (ne += 7 * this.$d.weeks);
|
|
28362
28385
|
var ee = B(ne, "D"), ie = B(this.$d.hours, "H"), me = B(this.$d.minutes, "M"), ge = this.$d.seconds || 0;
|
|
28363
28386
|
this.$d.milliseconds && (ge += this.$d.milliseconds / 1e3);
|
|
28364
|
-
var
|
|
28387
|
+
var $e = B(ge, "S"), Ye = E.negative || U.negative || ee.negative || ie.negative || me.negative || $e.negative, ke = ie.format || me.format || $e.format ? "T" : "", Fe = (Ye ? "-" : "") + "P" + E.format + U.format + ee.format + ke + ie.format + me.format + $e.format;
|
|
28365
28388
|
return Fe === "P" || Fe === "-P" ? "P0D" : Fe;
|
|
28366
28389
|
}, O.toJSON = function() {
|
|
28367
28390
|
return this.toISOString();
|
|
@@ -28434,9 +28457,9 @@ var ho = {}, c$ = {
|
|
|
28434
28457
|
};
|
|
28435
28458
|
};
|
|
28436
28459
|
});
|
|
28437
|
-
})(
|
|
28438
|
-
const
|
|
28439
|
-
var po = {},
|
|
28460
|
+
})(d$);
|
|
28461
|
+
const u$ = ho;
|
|
28462
|
+
var po = {}, h$ = {
|
|
28440
28463
|
get exports() {
|
|
28441
28464
|
return po;
|
|
28442
28465
|
},
|
|
@@ -28455,9 +28478,9 @@ var po = {}, u$ = {
|
|
|
28455
28478
|
};
|
|
28456
28479
|
};
|
|
28457
28480
|
});
|
|
28458
|
-
})(
|
|
28459
|
-
const
|
|
28460
|
-
var fo = {},
|
|
28481
|
+
})(h$);
|
|
28482
|
+
const p$ = po;
|
|
28483
|
+
var fo = {}, f$ = {
|
|
28461
28484
|
get exports() {
|
|
28462
28485
|
return fo;
|
|
28463
28486
|
},
|
|
@@ -28475,9 +28498,9 @@ var fo = {}, p$ = {
|
|
|
28475
28498
|
};
|
|
28476
28499
|
};
|
|
28477
28500
|
});
|
|
28478
|
-
})(
|
|
28479
|
-
const
|
|
28480
|
-
var mo = {},
|
|
28501
|
+
})(f$);
|
|
28502
|
+
const m$ = fo;
|
|
28503
|
+
var mo = {}, g$ = {
|
|
28481
28504
|
get exports() {
|
|
28482
28505
|
return mo;
|
|
28483
28506
|
},
|
|
@@ -28495,9 +28518,9 @@ var mo = {}, m$ = {
|
|
|
28495
28518
|
};
|
|
28496
28519
|
};
|
|
28497
28520
|
});
|
|
28498
|
-
})(
|
|
28499
|
-
const
|
|
28500
|
-
var go = {},
|
|
28521
|
+
})(g$);
|
|
28522
|
+
const b$ = mo;
|
|
28523
|
+
var go = {}, y$ = {
|
|
28501
28524
|
get exports() {
|
|
28502
28525
|
return go;
|
|
28503
28526
|
},
|
|
@@ -28531,9 +28554,9 @@ var go = {}, b$ = {
|
|
|
28531
28554
|
};
|
|
28532
28555
|
};
|
|
28533
28556
|
});
|
|
28534
|
-
})(
|
|
28535
|
-
const
|
|
28536
|
-
var bo = {},
|
|
28557
|
+
})(y$);
|
|
28558
|
+
const x$ = go;
|
|
28559
|
+
var bo = {}, v$ = {
|
|
28537
28560
|
get exports() {
|
|
28538
28561
|
return bo;
|
|
28539
28562
|
},
|
|
@@ -28552,9 +28575,9 @@ var bo = {}, x$ = {
|
|
|
28552
28575
|
};
|
|
28553
28576
|
};
|
|
28554
28577
|
});
|
|
28555
|
-
})(
|
|
28556
|
-
const
|
|
28557
|
-
var yo = {},
|
|
28578
|
+
})(v$);
|
|
28579
|
+
const w$ = bo;
|
|
28580
|
+
var yo = {}, _$ = {
|
|
28558
28581
|
get exports() {
|
|
28559
28582
|
return yo;
|
|
28560
28583
|
},
|
|
@@ -28572,9 +28595,9 @@ var yo = {}, w$ = {
|
|
|
28572
28595
|
};
|
|
28573
28596
|
};
|
|
28574
28597
|
});
|
|
28575
|
-
})(
|
|
28576
|
-
const
|
|
28577
|
-
var xo = {},
|
|
28598
|
+
})(_$);
|
|
28599
|
+
const C$ = yo;
|
|
28600
|
+
var xo = {}, S$ = {
|
|
28578
28601
|
get exports() {
|
|
28579
28602
|
return xo;
|
|
28580
28603
|
},
|
|
@@ -28592,9 +28615,9 @@ var xo = {}, C$ = {
|
|
|
28592
28615
|
};
|
|
28593
28616
|
};
|
|
28594
28617
|
});
|
|
28595
|
-
})(
|
|
28596
|
-
const
|
|
28597
|
-
var vo = {},
|
|
28618
|
+
})(S$);
|
|
28619
|
+
const k$ = xo;
|
|
28620
|
+
var vo = {}, T$ = {
|
|
28598
28621
|
get exports() {
|
|
28599
28622
|
return vo;
|
|
28600
28623
|
},
|
|
@@ -28613,9 +28636,9 @@ var vo = {}, k$ = {
|
|
|
28613
28636
|
};
|
|
28614
28637
|
};
|
|
28615
28638
|
});
|
|
28616
|
-
})(
|
|
28617
|
-
const
|
|
28618
|
-
var wo = {},
|
|
28639
|
+
})(T$);
|
|
28640
|
+
const D$ = vo;
|
|
28641
|
+
var wo = {}, I$ = {
|
|
28619
28642
|
get exports() {
|
|
28620
28643
|
return wo;
|
|
28621
28644
|
},
|
|
@@ -28634,9 +28657,9 @@ var wo = {}, D$ = {
|
|
|
28634
28657
|
};
|
|
28635
28658
|
};
|
|
28636
28659
|
});
|
|
28637
|
-
})(
|
|
28638
|
-
const
|
|
28639
|
-
var _o = {},
|
|
28660
|
+
})(I$);
|
|
28661
|
+
const M$ = wo;
|
|
28662
|
+
var _o = {}, $$ = {
|
|
28640
28663
|
get exports() {
|
|
28641
28664
|
return _o;
|
|
28642
28665
|
},
|
|
@@ -28655,9 +28678,9 @@ var _o = {}, M$ = {
|
|
|
28655
28678
|
};
|
|
28656
28679
|
};
|
|
28657
28680
|
});
|
|
28658
|
-
})(
|
|
28659
|
-
const
|
|
28660
|
-
var Co = {},
|
|
28681
|
+
})($$);
|
|
28682
|
+
const z$ = _o;
|
|
28683
|
+
var Co = {}, L$ = {
|
|
28661
28684
|
get exports() {
|
|
28662
28685
|
return Co;
|
|
28663
28686
|
},
|
|
@@ -28740,9 +28763,9 @@ var Co = {}, z$ = {
|
|
|
28740
28763
|
};
|
|
28741
28764
|
};
|
|
28742
28765
|
});
|
|
28743
|
-
})(
|
|
28744
|
-
const
|
|
28745
|
-
var So = {},
|
|
28766
|
+
})(L$);
|
|
28767
|
+
const A$ = Co;
|
|
28768
|
+
var So = {}, E$ = {
|
|
28746
28769
|
get exports() {
|
|
28747
28770
|
return So;
|
|
28748
28771
|
},
|
|
@@ -28771,9 +28794,9 @@ var So = {}, A$ = {
|
|
|
28771
28794
|
};
|
|
28772
28795
|
};
|
|
28773
28796
|
});
|
|
28774
|
-
})(
|
|
28775
|
-
const
|
|
28776
|
-
var ko = {},
|
|
28797
|
+
})(E$);
|
|
28798
|
+
const R$ = So;
|
|
28799
|
+
var ko = {}, O$ = {
|
|
28777
28800
|
get exports() {
|
|
28778
28801
|
return ko;
|
|
28779
28802
|
},
|
|
@@ -28804,9 +28827,9 @@ var ko = {}, R$ = {
|
|
|
28804
28827
|
};
|
|
28805
28828
|
};
|
|
28806
28829
|
});
|
|
28807
|
-
})(
|
|
28808
|
-
const
|
|
28809
|
-
var To = {},
|
|
28830
|
+
})(O$);
|
|
28831
|
+
const F$ = ko;
|
|
28832
|
+
var To = {}, P$ = {
|
|
28810
28833
|
get exports() {
|
|
28811
28834
|
return To;
|
|
28812
28835
|
},
|
|
@@ -28855,9 +28878,9 @@ var To = {}, F$ = {
|
|
|
28855
28878
|
};
|
|
28856
28879
|
};
|
|
28857
28880
|
});
|
|
28858
|
-
})(
|
|
28859
|
-
const
|
|
28860
|
-
var Do = {},
|
|
28881
|
+
})(P$);
|
|
28882
|
+
const V$ = To;
|
|
28883
|
+
var Do = {}, N$ = {
|
|
28861
28884
|
get exports() {
|
|
28862
28885
|
return Do;
|
|
28863
28886
|
},
|
|
@@ -28876,9 +28899,9 @@ var Do = {}, V$ = {
|
|
|
28876
28899
|
});
|
|
28877
28900
|
};
|
|
28878
28901
|
});
|
|
28879
|
-
})(
|
|
28880
|
-
const
|
|
28881
|
-
var Io = {},
|
|
28902
|
+
})(N$);
|
|
28903
|
+
const B$ = Do;
|
|
28904
|
+
var Io = {}, q$ = {
|
|
28882
28905
|
get exports() {
|
|
28883
28906
|
return Io;
|
|
28884
28907
|
},
|
|
@@ -28913,9 +28936,9 @@ var Io = {}, B$ = {
|
|
|
28913
28936
|
});
|
|
28914
28937
|
};
|
|
28915
28938
|
});
|
|
28916
|
-
})(
|
|
28917
|
-
const
|
|
28918
|
-
var Mo = {},
|
|
28939
|
+
})(q$);
|
|
28940
|
+
const W$ = Io;
|
|
28941
|
+
var Mo = {}, j$ = {
|
|
28919
28942
|
get exports() {
|
|
28920
28943
|
return Mo;
|
|
28921
28944
|
},
|
|
@@ -28948,9 +28971,9 @@ var Mo = {}, W$ = {
|
|
|
28948
28971
|
};
|
|
28949
28972
|
};
|
|
28950
28973
|
});
|
|
28951
|
-
})(
|
|
28952
|
-
const
|
|
28953
|
-
var $o = {},
|
|
28974
|
+
})(j$);
|
|
28975
|
+
const G$ = Mo;
|
|
28976
|
+
var $o = {}, Y$ = {
|
|
28954
28977
|
get exports() {
|
|
28955
28978
|
return $o;
|
|
28956
28979
|
},
|
|
@@ -28999,9 +29022,9 @@ var $o = {}, G$ = {
|
|
|
28999
29022
|
};
|
|
29000
29023
|
};
|
|
29001
29024
|
});
|
|
29002
|
-
})(
|
|
29003
|
-
const
|
|
29004
|
-
var zo = {},
|
|
29025
|
+
})(Y$);
|
|
29026
|
+
const H$ = $o;
|
|
29027
|
+
var zo = {}, Q$ = {
|
|
29005
29028
|
get exports() {
|
|
29006
29029
|
return zo;
|
|
29007
29030
|
},
|
|
@@ -29070,9 +29093,9 @@ var zo = {}, H$ = {
|
|
|
29070
29093
|
};
|
|
29071
29094
|
};
|
|
29072
29095
|
});
|
|
29073
|
-
})(
|
|
29074
|
-
const
|
|
29075
|
-
var Lo = {},
|
|
29096
|
+
})(Q$);
|
|
29097
|
+
const U$ = zo;
|
|
29098
|
+
var Lo = {}, K$ = {
|
|
29076
29099
|
get exports() {
|
|
29077
29100
|
return Lo;
|
|
29078
29101
|
},
|
|
@@ -29090,9 +29113,9 @@ var Lo = {}, U$ = {
|
|
|
29090
29113
|
};
|
|
29091
29114
|
};
|
|
29092
29115
|
});
|
|
29093
|
-
})(
|
|
29094
|
-
const
|
|
29095
|
-
var Ao = {},
|
|
29116
|
+
})(K$);
|
|
29117
|
+
const X$ = Lo;
|
|
29118
|
+
var Ao = {}, J$ = {
|
|
29096
29119
|
get exports() {
|
|
29097
29120
|
return Ao;
|
|
29098
29121
|
},
|
|
@@ -29110,9 +29133,9 @@ var Ao = {}, X$ = {
|
|
|
29110
29133
|
};
|
|
29111
29134
|
};
|
|
29112
29135
|
});
|
|
29113
|
-
})(
|
|
29114
|
-
const
|
|
29115
|
-
var Eo = {},
|
|
29136
|
+
})(J$);
|
|
29137
|
+
const Z$ = Ao;
|
|
29138
|
+
var Eo = {}, ez = {
|
|
29116
29139
|
get exports() {
|
|
29117
29140
|
return Eo;
|
|
29118
29141
|
},
|
|
@@ -29134,9 +29157,9 @@ var Eo = {}, Z$ = {
|
|
|
29134
29157
|
};
|
|
29135
29158
|
};
|
|
29136
29159
|
});
|
|
29137
|
-
})(
|
|
29138
|
-
const
|
|
29139
|
-
var Ro = {},
|
|
29160
|
+
})(ez);
|
|
29161
|
+
const tz = Eo;
|
|
29162
|
+
var Ro = {}, nz = {
|
|
29140
29163
|
get exports() {
|
|
29141
29164
|
return Ro;
|
|
29142
29165
|
},
|
|
@@ -29223,9 +29246,9 @@ var Ro = {}, tz = {
|
|
|
29223
29246
|
};
|
|
29224
29247
|
};
|
|
29225
29248
|
});
|
|
29226
|
-
})(
|
|
29227
|
-
const
|
|
29228
|
-
var Oo = {},
|
|
29249
|
+
})(nz);
|
|
29250
|
+
const rz = Ro;
|
|
29251
|
+
var Oo = {}, iz = {
|
|
29229
29252
|
get exports() {
|
|
29230
29253
|
return Oo;
|
|
29231
29254
|
},
|
|
@@ -29244,9 +29267,9 @@ var Oo = {}, rz = {
|
|
|
29244
29267
|
};
|
|
29245
29268
|
};
|
|
29246
29269
|
});
|
|
29247
|
-
})(
|
|
29248
|
-
const
|
|
29249
|
-
var Fo = {},
|
|
29270
|
+
})(iz);
|
|
29271
|
+
const oz = Oo;
|
|
29272
|
+
var Fo = {}, az = {
|
|
29250
29273
|
get exports() {
|
|
29251
29274
|
return Fo;
|
|
29252
29275
|
},
|
|
@@ -29277,9 +29300,9 @@ var Fo = {}, oz = {
|
|
|
29277
29300
|
};
|
|
29278
29301
|
};
|
|
29279
29302
|
});
|
|
29280
|
-
})(
|
|
29281
|
-
const
|
|
29282
|
-
var Po = {},
|
|
29303
|
+
})(az);
|
|
29304
|
+
const sz = Fo;
|
|
29305
|
+
var Po = {}, lz = {
|
|
29283
29306
|
get exports() {
|
|
29284
29307
|
return Po;
|
|
29285
29308
|
},
|
|
@@ -29298,55 +29321,55 @@ var Po = {}, sz = {
|
|
|
29298
29321
|
};
|
|
29299
29322
|
};
|
|
29300
29323
|
});
|
|
29301
|
-
})(
|
|
29302
|
-
const
|
|
29303
|
-
Z.extend(
|
|
29304
|
-
Z.extend(
|
|
29305
|
-
Z.extend(
|
|
29306
|
-
Z.extend(
|
|
29307
|
-
Z.extend(
|
|
29308
|
-
Z.extend(
|
|
29309
|
-
Z.extend(
|
|
29310
|
-
Z.extend(
|
|
29311
|
-
Z.extend(
|
|
29312
|
-
Z.extend(
|
|
29313
|
-
Z.extend(
|
|
29314
|
-
Z.extend(
|
|
29315
|
-
Z.extend(
|
|
29316
|
-
Z.extend(
|
|
29317
|
-
Z.extend(
|
|
29318
|
-
Z.extend(
|
|
29319
|
-
Z.extend(
|
|
29320
|
-
Z.extend(
|
|
29321
|
-
Z.extend(
|
|
29322
|
-
Z.extend(
|
|
29323
|
-
Z.extend(
|
|
29324
|
-
Z.extend(
|
|
29325
|
-
Z.extend(
|
|
29326
|
-
Z.extend(
|
|
29327
|
-
Z.extend(
|
|
29328
|
-
Z.extend(
|
|
29329
|
-
Z.extend(
|
|
29330
|
-
Z.extend(
|
|
29331
|
-
Z.extend(
|
|
29332
|
-
Z.extend(
|
|
29333
|
-
Z.extend(
|
|
29334
|
-
Z.extend(
|
|
29335
|
-
Z.extend(
|
|
29336
|
-
Z.extend(
|
|
29324
|
+
})(lz);
|
|
29325
|
+
const cz = Po;
|
|
29326
|
+
Z.extend(XM);
|
|
29327
|
+
Z.extend(ZM);
|
|
29328
|
+
Z.extend(t$);
|
|
29329
|
+
Z.extend(r$);
|
|
29330
|
+
Z.extend(o$);
|
|
29331
|
+
Z.extend(s$);
|
|
29332
|
+
Z.extend(c$);
|
|
29333
|
+
Z.extend(u$);
|
|
29334
|
+
Z.extend(p$);
|
|
29335
|
+
Z.extend(m$);
|
|
29336
|
+
Z.extend(b$);
|
|
29337
|
+
Z.extend(C$);
|
|
29338
|
+
Z.extend(k$);
|
|
29339
|
+
Z.extend(D$);
|
|
29340
|
+
Z.extend(M$);
|
|
29341
|
+
Z.extend(z$);
|
|
29342
|
+
Z.extend(x$);
|
|
29343
|
+
Z.extend(w$);
|
|
29344
|
+
Z.extend(A$);
|
|
29345
|
+
Z.extend(R$);
|
|
29346
|
+
Z.extend(F$);
|
|
29347
|
+
Z.extend(V$);
|
|
29348
|
+
Z.extend(B$);
|
|
29349
|
+
Z.extend(W$);
|
|
29350
|
+
Z.extend(G$);
|
|
29351
|
+
Z.extend(H$);
|
|
29352
|
+
Z.extend(U$);
|
|
29353
|
+
Z.extend(X$);
|
|
29354
|
+
Z.extend(Z$);
|
|
29355
|
+
Z.extend(tz);
|
|
29356
|
+
Z.extend(rz);
|
|
29357
|
+
Z.extend(sz);
|
|
29358
|
+
Z.extend(cz);
|
|
29359
|
+
Z.extend(oz);
|
|
29337
29360
|
Z.tz.setDefault("UTC");
|
|
29338
|
-
const
|
|
29361
|
+
const wL = () => Promise.resolve().then(() => Cf).then(({
|
|
29339
29362
|
version: t
|
|
29340
29363
|
}) => (console.log(`[@devtable/dashboard] version: ${t}`), t));
|
|
29341
29364
|
export {
|
|
29342
29365
|
Ra as ContentModel,
|
|
29343
29366
|
Zl as ContentModelContextProvider,
|
|
29344
29367
|
Xp as ContextModel,
|
|
29345
|
-
|
|
29368
|
+
xL as DashboardEditor,
|
|
29346
29369
|
_d as DashboardFilterType,
|
|
29347
|
-
|
|
29348
|
-
|
|
29349
|
-
|
|
29370
|
+
Jk as DashboardMode,
|
|
29371
|
+
uT as DashboardModel,
|
|
29372
|
+
eD as DashboardViewEditor,
|
|
29350
29373
|
Pa as DashboardViewRender,
|
|
29351
29374
|
se as EViewComponentType,
|
|
29352
29375
|
gs as FilterModel,
|
|
@@ -29356,29 +29379,29 @@ export {
|
|
|
29356
29379
|
tc as ModelContextProvider,
|
|
29357
29380
|
Fa as Panel,
|
|
29358
29381
|
vc as PanelContextProvider,
|
|
29359
|
-
|
|
29360
|
-
|
|
29382
|
+
Uk as PanelModel,
|
|
29383
|
+
Xk as PanelsModel,
|
|
29361
29384
|
Qp as QueriesModel,
|
|
29362
29385
|
Hp as QueryModel,
|
|
29363
|
-
|
|
29386
|
+
vL as ReadOnlyDashboard,
|
|
29364
29387
|
Up as SQLSnippetModel,
|
|
29365
29388
|
Kp as SQLSnippetsModel,
|
|
29366
|
-
|
|
29367
|
-
|
|
29368
|
-
|
|
29369
|
-
|
|
29370
|
-
|
|
29371
|
-
|
|
29372
|
-
|
|
29389
|
+
Zk as ViewComponentTypeBackground,
|
|
29390
|
+
gL as ViewComponentTypeColor,
|
|
29391
|
+
mL as ViewComponentTypeName,
|
|
29392
|
+
oT as ViewModel,
|
|
29393
|
+
aT as ViewsModel,
|
|
29394
|
+
yL as applyPartialDashboard,
|
|
29395
|
+
lT as createContentModel,
|
|
29373
29396
|
Dd as createDashboardModel,
|
|
29374
29397
|
Td as createDashboardViewsModel,
|
|
29375
29398
|
Pp as getInitialFiltersPayload,
|
|
29376
|
-
|
|
29377
|
-
|
|
29378
|
-
|
|
29399
|
+
Kk as getNewPanel,
|
|
29400
|
+
wL as getVersion,
|
|
29401
|
+
bL as initialDashboardContent,
|
|
29379
29402
|
re as useContentModelContext,
|
|
29380
29403
|
Mf as useFullScreenPanelContext,
|
|
29381
|
-
|
|
29404
|
+
Le as useModelContext,
|
|
29382
29405
|
tt as usePanelContext,
|
|
29383
29406
|
Vd as useTopLevelServices
|
|
29384
29407
|
};
|