@devtable/dashboard 12.4.2 → 12.5.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/dashboard.es.js +626 -599
- package/dist/dashboard.umd.js +55 -55
- package/dist/i18n/en.d.ts +1 -0
- package/dist/i18n/zh.d.ts +1 -0
- package/dist/stats.html +1 -1
- package/package.json +1 -1
package/dist/dashboard.es.js
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
var Ku = Object.defineProperty;
|
|
2
2
|
var Yu = (e, t, n) => t in e ? Ku(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n;
|
|
3
3
|
var N = (e, t, n) => (Yu(e, typeof t != "symbol" ? t + "" : t, n), n);
|
|
4
|
-
import M, { forwardRef as me, useState as B, useEffect as O, useCallback as Ge, useMemo as T, createElement as Jr, useContext as Qt, useRef as Zr, createContext as
|
|
5
|
-
import { TextInput as D, Text as j, Box as z, Button as C, HoverCard as De, Group as y, Select as A, Stack as S, Divider as L, NumberInput as Y, Switch as Ve, Table as qe, ActionIcon as W, MultiSelect as $n, Paper as Ju, Code as
|
|
6
|
-
import { useModals as Rt, ModalsProvider as
|
|
7
|
-
import { useBoolean as Oe, useCreation as St, useAsyncEffect as pr, useRequest as gn, useWhyDidYouUpdate as
|
|
8
|
-
import { toJS as Ut, observable as
|
|
4
|
+
import M, { forwardRef as me, useState as B, useEffect as O, useCallback as Ge, useMemo as T, createElement as Jr, useContext as Qt, useRef as Zr, createContext as Wa, memo as Xu } from "react";
|
|
5
|
+
import { TextInput as D, Text as j, Box as z, Button as C, HoverCard as De, Group as y, Select as A, Stack as S, Divider as L, NumberInput as Y, Switch as Ve, Table as qe, ActionIcon as W, MultiSelect as $n, Paper as Ju, Code as No, Modal as be, Tabs as f, LoadingOverlay as vn, Alert as es, ColorSwatch as Us, Overlay as Et, Checkbox as J, Collapse as ur, Tooltip as je, Center as wn, useMantineTheme as Ga, CheckIcon as Zu, MANTINE_SIZES as eh, SimpleGrid as tn, NativeSelect as Qa, SegmentedControl as th, Anchor as Ks, Textarea as nh, Mark as rh, ColorInput as hi, createStyles as hr, Popover as Rn, Slider as sh, Flex as Ht, Badge as fn, CloseButton as Ha, Menu as ie, Affix as ih, Header as oh, List as at, FileInput as ah, ThemeIcon as As, UnstyledButton as lh, Navbar as qt, JsonInput as Ua, Pagination as Ka, Drawer as ch, Accordion as Tr, Radio as Bo, Skeleton as Wo, NavLink as Ys, AppShell as Ya } from "@mantine/core";
|
|
6
|
+
import { useModals as Rt, ModalsProvider as Xa } from "@mantine/modals";
|
|
7
|
+
import { useBoolean as Oe, useCreation as St, useAsyncEffect as pr, useRequest as gn, useWhyDidYouUpdate as Ja, useLatest as Go, usePrevious as dh } from "ahooks";
|
|
8
|
+
import { toJS as Ut, observable as Za, runInAction as tr, reaction as tt, makeAutoObservable as xr } from "mobx";
|
|
9
9
|
import { observer as k } from "mobx-react-lite";
|
|
10
10
|
import { faker as uh } from "@faker-js/faker";
|
|
11
11
|
import * as hh from "crypto-js";
|
|
@@ -13,11 +13,11 @@ import ph from "crypto-js";
|
|
|
13
13
|
import * as xh from "d3-array";
|
|
14
14
|
import { quantile as Ar } from "d3-array";
|
|
15
15
|
import F from "dayjs";
|
|
16
|
-
import w, { cloneDeepWith as
|
|
16
|
+
import w, { cloneDeepWith as el, unset as mh, get as re, isObject as tl, set as pi, omit as bn, isFunction as fh, orderBy as gh, last as nl, defaults as Te, minBy as bh, maxBy as yh, cloneDeep as Ne, values as rl, template as xi, throttle as jh, isEqual as xe, defaultsDeep as Ce, keyBy as vh, isEmpty as sl, isNumber as wh, findLastIndex as _h, isString as il, range as Sh, pick as ol } from "lodash";
|
|
17
17
|
import * as Fn from "mathjs";
|
|
18
18
|
import qr from "numbro";
|
|
19
19
|
import Bt from "axios";
|
|
20
|
-
import { useClipboard as Ch, randomId as yn, useDisclosure as rn, useElementSize as ir, useResizeObserver as kh, useInputState as
|
|
20
|
+
import { useClipboard as Ch, randomId as yn, useDisclosure as rn, useElementSize as ir, useResizeObserver as kh, useInputState as al } from "@mantine/hooks";
|
|
21
21
|
import { interpolate as _n } from "popmotion";
|
|
22
22
|
import * as Ke from "echarts/core";
|
|
23
23
|
import { use as Th } from "echarts/core";
|
|
@@ -25,48 +25,48 @@ import { BarChart as Ih, BoxplotChart as Dh, CustomChart as zh, FunnelChart as L
|
|
|
25
25
|
import { CalendarComponent as Oh, DataZoomComponent as Ph, GridComponent as Vh, LegendComponent as qh, TooltipComponent as Nh, MarkLineComponent as Bh, MarkAreaComponent as Wh, VisualMapComponent as Gh } from "echarts/components";
|
|
26
26
|
import { CanvasRenderer as Qh } from "echarts/renderers";
|
|
27
27
|
import { encode as Hh, decode as Uh } from "js-base64";
|
|
28
|
-
import
|
|
28
|
+
import Qo from "eventemitter2";
|
|
29
29
|
import or, { random as ts } from "chroma-js";
|
|
30
30
|
import Je from "echarts-for-react/lib/core";
|
|
31
31
|
import "echarts-gl";
|
|
32
32
|
import { useForm as _e, Controller as b, useFieldArray as ve, useWatch as Kh } from "react-hook-form";
|
|
33
|
-
import { DeviceFloppy as ge, Trash as le, AlertCircle as Yh, Recycle as mt, InfoCircle as Kt, Plus as ze, Refresh as mi, Download as fi, ArrowsMaximize as
|
|
34
|
-
import { IconDeviceFloppy as Ft, IconChevronUp as rp, IconChevronDown as sp, IconTextSize as gi, IconInfoCircle as Sn, IconPlayerSkipBack as
|
|
33
|
+
import { DeviceFloppy as ge, Trash as le, AlertCircle as Yh, Recycle as mt, InfoCircle as Kt, Plus as ze, Refresh as mi, Download as fi, ArrowsMaximize as ll, Settings as cl, Copy as Xh, ArrowLeft as Jh, ArrowsMove as Zh, ChevronDownRight as ep, ChevronsUpRight as tp, PlaylistAdd as ns, ArrowBarToRight as np } from "tabler-icons-react";
|
|
34
|
+
import { IconDeviceFloppy as Ft, IconChevronUp as rp, IconChevronDown as sp, IconTextSize as gi, IconInfoCircle as Sn, IconPlayerSkipBack as dl, IconRecycle as mr, IconMathFunction as ul, IconPlus as ct, IconBorderAll as ip, IconTrash as Gt, IconArrowDown as op, IconArrowUp as ap, IconCalendar as lp, IconMinus as cp, IconChevronsUp as dp, IconChevronsDown as up, IconCode as jn, IconCamera as rs, IconShare3 as hp, IconDownload as pp, IconArrowsLeftRight as xp, IconVariable as hl, IconCodeDots as mp, IconFilter as pl, IconCopy as fp, IconDatabase as ss, IconBoxMultiple as xl, IconCaretDown as gp, IconAlertTriangle as ml, IconArrowLeft as bp, IconPlaylistAdd as Ho, IconDevices as yp, IconSettings as fr, IconPointFilled as bi, IconFileImport as Uo, IconCircleDashed as jp, IconCircleDot as vp, IconCircleOff as wp, IconAdjustments as _p, IconLink as Sp, IconArrowCurveRight as Xs, IconLine as Cp, IconX as fl, IconEye as gl, IconTable as kp, IconColumns as Tp, IconVectorTriangle as Ip, IconAlertCircle as Ko, IconVariablePlus as Dp, IconHierarchy as zp, IconDiscountCheckFilled as Lp } from "@tabler/icons-react";
|
|
35
35
|
import { useTranslation as $, Trans as Mp, initReactI18next as Ap } from "react-i18next";
|
|
36
|
-
import { showNotification as On, notifications as
|
|
36
|
+
import { showNotification as On, notifications as bl } from "@mantine/notifications";
|
|
37
37
|
import Ze, { loader as Es } from "@monaco-editor/react";
|
|
38
38
|
import * as Zt from "d3-regression";
|
|
39
|
-
import { RichTextEditor as ee, Link as
|
|
40
|
-
import { Color as
|
|
41
|
-
import
|
|
42
|
-
import
|
|
43
|
-
import
|
|
44
|
-
import
|
|
45
|
-
import
|
|
46
|
-
import
|
|
47
|
-
import
|
|
48
|
-
import
|
|
49
|
-
import
|
|
50
|
-
import
|
|
51
|
-
import
|
|
52
|
-
import { useEditor as
|
|
53
|
-
import
|
|
39
|
+
import { RichTextEditor as ee, Link as yl, useRichTextEditorContext as Ep } from "@mantine/tiptap";
|
|
40
|
+
import { Color as jl } from "@tiptap/extension-color";
|
|
41
|
+
import vl from "@tiptap/extension-highlight";
|
|
42
|
+
import wl from "@tiptap/extension-placeholder";
|
|
43
|
+
import _l from "@tiptap/extension-subscript";
|
|
44
|
+
import Sl from "@tiptap/extension-superscript";
|
|
45
|
+
import Cl from "@tiptap/extension-text-align";
|
|
46
|
+
import kl from "@tiptap/extension-text-style";
|
|
47
|
+
import Tl from "@tiptap/extension-table";
|
|
48
|
+
import Il from "@tiptap/extension-table-cell";
|
|
49
|
+
import Dl from "@tiptap/extension-table-header";
|
|
50
|
+
import zl from "@tiptap/extension-table-row";
|
|
51
|
+
import Ll from "@tiptap/extension-underline";
|
|
52
|
+
import { useEditor as Ml } from "@tiptap/react";
|
|
53
|
+
import Al from "@tiptap/starter-kit";
|
|
54
54
|
import "prosemirror-keymap";
|
|
55
|
-
import { createParagraphNear as Rp, deleteSelection as Fp, exitCode as $p, joinUp as Op, joinDown as Pp, joinBackward as Vp, joinForward as qp, lift as Np, liftEmptyBlock as Bp, newlineInCode as Wp, selectNodeBackward as Gp, selectNodeForward as Qp, selectParentNode as Hp, selectTextblockEnd as Up, selectTextblockStart as Kp, setBlockType as
|
|
55
|
+
import { createParagraphNear as Rp, deleteSelection as Fp, exitCode as $p, joinUp as Op, joinDown as Pp, joinBackward as Vp, joinForward as qp, lift as Np, liftEmptyBlock as Bp, newlineInCode as Wp, selectNodeBackward as Gp, selectNodeForward as Qp, selectParentNode as Hp, selectTextblockEnd as Up, selectTextblockStart as Kp, setBlockType as Yo, wrapIn as Yp } from "prosemirror-commands";
|
|
56
56
|
import { liftListItem as Xp, sinkListItem as Jp, wrapInList as Zp } from "prosemirror-schema-list";
|
|
57
57
|
import { Prism as nn } from "@mantine/prism";
|
|
58
|
-
import { flexRender as Nr, createColumnHelper as
|
|
58
|
+
import { flexRender as Nr, createColumnHelper as El, useReactTable as Rl, getCoreRowModel as Fl, getSortedRowModel as ex } from "@tanstack/react-table";
|
|
59
59
|
import { useVirtual as tx } from "react-virtual";
|
|
60
60
|
import { DatePicker as nx } from "@mantine/dates";
|
|
61
61
|
import rx, { Option as sx } from "rc-select";
|
|
62
62
|
import ix, { SHOW_PARENT as ox } from "rc-tree-select";
|
|
63
|
-
import { WidthProvider as
|
|
64
|
-
import { types as m, cast as Lt, getRoot as We, getParent as Ee, addDisposer as ht, isAlive as
|
|
63
|
+
import { WidthProvider as $l, Responsive as Ol } from "react-grid-layout";
|
|
64
|
+
import { types as m, cast as Lt, getRoot as We, getParent as Ee, addDisposer as ht, isAlive as Xo, flow as An, toGenerator as dn, clone as ax, getSnapshot as zt, applySnapshot as Qe, addMiddleware as lx, getType as cx, detach as Js, castToSnapshot as Pl } from "mobx-state-tree";
|
|
65
65
|
import { v4 as en } from "uuid";
|
|
66
66
|
import { arrayToTree as dx } from "performant-array-to-tree";
|
|
67
67
|
import { saveAs as is } from "file-saver";
|
|
68
|
-
import
|
|
69
|
-
import
|
|
68
|
+
import Vl from "dom-to-image-more";
|
|
69
|
+
import ql from "jszip";
|
|
70
70
|
import { AsyncParser as ux } from "@json2csv/whatwg";
|
|
71
71
|
import hx from "dayjs/plugin/advancedFormat";
|
|
72
72
|
import px from "dayjs/plugin/arraySupport";
|
|
@@ -104,7 +104,7 @@ import Wx from "dayjs/plugin/weekYear";
|
|
|
104
104
|
import Gx from "i18next";
|
|
105
105
|
import Qx from "i18next-browser-languagedetector";
|
|
106
106
|
import "intl-pluralrules";
|
|
107
|
-
import Hx, { Position as _t, Handle as
|
|
107
|
+
import Hx, { Position as _t, Handle as Jo, MiniMap as Ux, Controls as Kx, Background as Yx } from "reactflow";
|
|
108
108
|
var Zs = { exports: {} }, Xn = {};
|
|
109
109
|
/**
|
|
110
110
|
* @license React
|
|
@@ -115,11 +115,11 @@ var Zs = { exports: {} }, Xn = {};
|
|
|
115
115
|
* This source code is licensed under the MIT license found in the
|
|
116
116
|
* LICENSE file in the root directory of this source tree.
|
|
117
117
|
*/
|
|
118
|
-
var
|
|
118
|
+
var Zo;
|
|
119
119
|
function Xx() {
|
|
120
|
-
if (
|
|
120
|
+
if (Zo)
|
|
121
121
|
return Xn;
|
|
122
|
-
|
|
122
|
+
Zo = 1;
|
|
123
123
|
var e = M, t = Symbol.for("react.element"), n = Symbol.for("react.fragment"), s = Object.prototype.hasOwnProperty, i = e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, o = { key: !0, ref: !0, __self: !0, __source: !0 };
|
|
124
124
|
function a(l, c, d) {
|
|
125
125
|
var h, u = {}, p = null, x = null;
|
|
@@ -143,9 +143,9 @@ var Jn = {};
|
|
|
143
143
|
* This source code is licensed under the MIT license found in the
|
|
144
144
|
* LICENSE file in the root directory of this source tree.
|
|
145
145
|
*/
|
|
146
|
-
var
|
|
146
|
+
var ea;
|
|
147
147
|
function Jx() {
|
|
148
|
-
return
|
|
148
|
+
return ea || (ea = 1, process.env.NODE_ENV !== "production" && function() {
|
|
149
149
|
var e = M, t = Symbol.for("react.element"), n = Symbol.for("react.portal"), s = Symbol.for("react.fragment"), i = Symbol.for("react.strict_mode"), o = Symbol.for("react.profiler"), a = Symbol.for("react.provider"), l = Symbol.for("react.context"), c = Symbol.for("react.forward_ref"), d = Symbol.for("react.suspense"), h = Symbol.for("react.suspense_list"), u = Symbol.for("react.memo"), p = Symbol.for("react.lazy"), x = Symbol.for("react.offscreen"), g = Symbol.iterator, _ = "@@iterator";
|
|
150
150
|
function I(v) {
|
|
151
151
|
if (v === null || typeof v != "object")
|
|
@@ -235,18 +235,18 @@ function Jx() {
|
|
|
235
235
|
}
|
|
236
236
|
return null;
|
|
237
237
|
}
|
|
238
|
-
var an = Object.assign, Kn = 0,
|
|
239
|
-
function
|
|
238
|
+
var an = Object.assign, Kn = 0, jo, vo, wo, _o, So, Co, ko;
|
|
239
|
+
function To() {
|
|
240
240
|
}
|
|
241
|
-
|
|
241
|
+
To.__reactDisabledLog = !0;
|
|
242
242
|
function Su() {
|
|
243
243
|
{
|
|
244
244
|
if (Kn === 0) {
|
|
245
|
-
|
|
245
|
+
jo = console.log, vo = console.info, wo = console.warn, _o = console.error, So = console.group, Co = console.groupCollapsed, ko = console.groupEnd;
|
|
246
246
|
var v = {
|
|
247
247
|
configurable: !0,
|
|
248
248
|
enumerable: !0,
|
|
249
|
-
value:
|
|
249
|
+
value: To,
|
|
250
250
|
writable: !0
|
|
251
251
|
};
|
|
252
252
|
Object.defineProperties(console, {
|
|
@@ -272,25 +272,25 @@ function Jx() {
|
|
|
272
272
|
};
|
|
273
273
|
Object.defineProperties(console, {
|
|
274
274
|
log: an({}, v, {
|
|
275
|
-
value:
|
|
275
|
+
value: jo
|
|
276
276
|
}),
|
|
277
277
|
info: an({}, v, {
|
|
278
|
-
value:
|
|
278
|
+
value: vo
|
|
279
279
|
}),
|
|
280
280
|
warn: an({}, v, {
|
|
281
|
-
value:
|
|
281
|
+
value: wo
|
|
282
282
|
}),
|
|
283
283
|
error: an({}, v, {
|
|
284
|
-
value:
|
|
284
|
+
value: _o
|
|
285
285
|
}),
|
|
286
286
|
group: an({}, v, {
|
|
287
|
-
value:
|
|
287
|
+
value: So
|
|
288
288
|
}),
|
|
289
289
|
groupCollapsed: an({}, v, {
|
|
290
|
-
value:
|
|
290
|
+
value: Co
|
|
291
291
|
}),
|
|
292
292
|
groupEnd: an({}, v, {
|
|
293
|
-
value:
|
|
293
|
+
value: ko
|
|
294
294
|
})
|
|
295
295
|
});
|
|
296
296
|
}
|
|
@@ -316,7 +316,7 @@ function Jx() {
|
|
|
316
316
|
var ku = typeof WeakMap == "function" ? WeakMap : Map;
|
|
317
317
|
_r = new ku();
|
|
318
318
|
}
|
|
319
|
-
function
|
|
319
|
+
function Io(v, R) {
|
|
320
320
|
if (!v || Ts)
|
|
321
321
|
return "";
|
|
322
322
|
{
|
|
@@ -384,11 +384,11 @@ function Jx() {
|
|
|
384
384
|
} finally {
|
|
385
385
|
Ts = !1, Cs.current = ye, Cu(), Error.prepareStackTrace = ce;
|
|
386
386
|
}
|
|
387
|
-
var Dn = v ? v.displayName || v.name : "",
|
|
388
|
-
return typeof v == "function" && _r.set(v,
|
|
387
|
+
var Dn = v ? v.displayName || v.name : "", qo = Dn ? wr(Dn) : "";
|
|
388
|
+
return typeof v == "function" && _r.set(v, qo), qo;
|
|
389
389
|
}
|
|
390
390
|
function Tu(v, R, V) {
|
|
391
|
-
return
|
|
391
|
+
return Io(v, !1);
|
|
392
392
|
}
|
|
393
393
|
function Iu(v) {
|
|
394
394
|
var R = v.prototype;
|
|
@@ -398,7 +398,7 @@ function Jx() {
|
|
|
398
398
|
if (v == null)
|
|
399
399
|
return "";
|
|
400
400
|
if (typeof v == "function")
|
|
401
|
-
return
|
|
401
|
+
return Io(v, Iu(v));
|
|
402
402
|
if (typeof v == "string")
|
|
403
403
|
return wr(v);
|
|
404
404
|
switch (v) {
|
|
@@ -423,13 +423,13 @@ function Jx() {
|
|
|
423
423
|
}
|
|
424
424
|
return "";
|
|
425
425
|
}
|
|
426
|
-
var Cr = Object.prototype.hasOwnProperty,
|
|
426
|
+
var Cr = Object.prototype.hasOwnProperty, Do = {}, zo = E.ReactDebugCurrentFrame;
|
|
427
427
|
function kr(v) {
|
|
428
428
|
if (v) {
|
|
429
429
|
var R = v._owner, V = Sr(v.type, v._source, R ? R.type : null);
|
|
430
|
-
|
|
430
|
+
zo.setExtraStackFrame(V);
|
|
431
431
|
} else
|
|
432
|
-
|
|
432
|
+
zo.setExtraStackFrame(null);
|
|
433
433
|
}
|
|
434
434
|
function Du(v, R, V, K, ce) {
|
|
435
435
|
{
|
|
@@ -446,7 +446,7 @@ function Jx() {
|
|
|
446
446
|
} catch (Ie) {
|
|
447
447
|
ne = Ie;
|
|
448
448
|
}
|
|
449
|
-
ne && !(ne instanceof Error) && (kr(ce), q("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).", K || "React class", V, ae, typeof ne), kr(null)), ne instanceof Error && !(ne.message in
|
|
449
|
+
ne && !(ne instanceof Error) && (kr(ce), q("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).", K || "React class", V, ae, typeof ne), kr(null)), ne instanceof Error && !(ne.message in Do) && (Do[ne.message] = !0, kr(ce), q("Failed %s type: %s", V, ne.message), kr(null));
|
|
450
450
|
}
|
|
451
451
|
}
|
|
452
452
|
}
|
|
@@ -462,24 +462,24 @@ function Jx() {
|
|
|
462
462
|
}
|
|
463
463
|
function Mu(v) {
|
|
464
464
|
try {
|
|
465
|
-
return
|
|
465
|
+
return Lo(v), !1;
|
|
466
466
|
} catch {
|
|
467
467
|
return !0;
|
|
468
468
|
}
|
|
469
469
|
}
|
|
470
|
-
function
|
|
470
|
+
function Lo(v) {
|
|
471
471
|
return "" + v;
|
|
472
472
|
}
|
|
473
|
-
function
|
|
473
|
+
function Mo(v) {
|
|
474
474
|
if (Mu(v))
|
|
475
|
-
return q("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", Lu(v)),
|
|
475
|
+
return q("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", Lu(v)), Lo(v);
|
|
476
476
|
}
|
|
477
477
|
var Yn = E.ReactCurrentOwner, Au = {
|
|
478
478
|
key: !0,
|
|
479
479
|
ref: !0,
|
|
480
480
|
__self: !0,
|
|
481
481
|
__source: !0
|
|
482
|
-
},
|
|
482
|
+
}, Ao, Eo, Ds;
|
|
483
483
|
Ds = {};
|
|
484
484
|
function Eu(v) {
|
|
485
485
|
if (Cr.call(v, "ref")) {
|
|
@@ -506,7 +506,7 @@ function Jx() {
|
|
|
506
506
|
function $u(v, R) {
|
|
507
507
|
{
|
|
508
508
|
var V = function() {
|
|
509
|
-
|
|
509
|
+
Ao || (Ao = !0, q("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", R));
|
|
510
510
|
};
|
|
511
511
|
V.isReactWarning = !0, Object.defineProperty(v, "key", {
|
|
512
512
|
get: V,
|
|
@@ -517,7 +517,7 @@ function Jx() {
|
|
|
517
517
|
function Ou(v, R) {
|
|
518
518
|
{
|
|
519
519
|
var V = function() {
|
|
520
|
-
|
|
520
|
+
Eo || (Eo = !0, q("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", R));
|
|
521
521
|
};
|
|
522
522
|
V.isReactWarning = !0, Object.defineProperty(v, "ref", {
|
|
523
523
|
get: V,
|
|
@@ -557,7 +557,7 @@ function Jx() {
|
|
|
557
557
|
function Vu(v, R, V, K, ce) {
|
|
558
558
|
{
|
|
559
559
|
var ye, ae = {}, ne = null, Ye = null;
|
|
560
|
-
V !== void 0 && (
|
|
560
|
+
V !== void 0 && (Mo(V), ne = "" + V), Ru(R) && (Mo(R.key), ne = "" + R.key), Eu(R) && (Ye = R.ref, Fu(R, ce));
|
|
561
561
|
for (ye in R)
|
|
562
562
|
Cr.call(R, ye) && !Au.hasOwnProperty(ye) && (ae[ye] = R[ye]);
|
|
563
563
|
if (v && v.defaultProps) {
|
|
@@ -572,20 +572,20 @@ function Jx() {
|
|
|
572
572
|
return Pu(v, ne, Ye, ce, K, Yn.current, ae);
|
|
573
573
|
}
|
|
574
574
|
}
|
|
575
|
-
var zs = E.ReactCurrentOwner,
|
|
575
|
+
var zs = E.ReactCurrentOwner, Ro = E.ReactDebugCurrentFrame;
|
|
576
576
|
function In(v) {
|
|
577
577
|
if (v) {
|
|
578
578
|
var R = v._owner, V = Sr(v.type, v._source, R ? R.type : null);
|
|
579
|
-
|
|
579
|
+
Ro.setExtraStackFrame(V);
|
|
580
580
|
} else
|
|
581
|
-
|
|
581
|
+
Ro.setExtraStackFrame(null);
|
|
582
582
|
}
|
|
583
583
|
var Ls;
|
|
584
584
|
Ls = !1;
|
|
585
585
|
function Ms(v) {
|
|
586
586
|
return typeof v == "object" && v !== null && v.$$typeof === t;
|
|
587
587
|
}
|
|
588
|
-
function
|
|
588
|
+
function Fo() {
|
|
589
589
|
{
|
|
590
590
|
if (zs.current) {
|
|
591
591
|
var v = Ot(zs.current.type);
|
|
@@ -608,10 +608,10 @@ Check your code at ` + R + ":" + V + ".";
|
|
|
608
608
|
return "";
|
|
609
609
|
}
|
|
610
610
|
}
|
|
611
|
-
var
|
|
611
|
+
var $o = {};
|
|
612
612
|
function Nu(v) {
|
|
613
613
|
{
|
|
614
|
-
var R =
|
|
614
|
+
var R = Fo();
|
|
615
615
|
if (!R) {
|
|
616
616
|
var V = typeof v == "string" ? v : v.displayName || v.name;
|
|
617
617
|
V && (R = `
|
|
@@ -621,27 +621,27 @@ Check the top-level render call using <` + V + ">.");
|
|
|
621
621
|
return R;
|
|
622
622
|
}
|
|
623
623
|
}
|
|
624
|
-
function
|
|
624
|
+
function Oo(v, R) {
|
|
625
625
|
{
|
|
626
626
|
if (!v._store || v._store.validated || v.key != null)
|
|
627
627
|
return;
|
|
628
628
|
v._store.validated = !0;
|
|
629
629
|
var V = Nu(R);
|
|
630
|
-
if (
|
|
630
|
+
if ($o[V])
|
|
631
631
|
return;
|
|
632
|
-
|
|
632
|
+
$o[V] = !0;
|
|
633
633
|
var K = "";
|
|
634
634
|
v && v._owner && v._owner !== zs.current && (K = " It was passed a child from " + Ot(v._owner.type) + "."), In(v), q('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', V, K), In(null);
|
|
635
635
|
}
|
|
636
636
|
}
|
|
637
|
-
function
|
|
637
|
+
function Po(v, R) {
|
|
638
638
|
{
|
|
639
639
|
if (typeof v != "object")
|
|
640
640
|
return;
|
|
641
641
|
if (Is(v))
|
|
642
642
|
for (var V = 0; V < v.length; V++) {
|
|
643
643
|
var K = v[V];
|
|
644
|
-
Ms(K) &&
|
|
644
|
+
Ms(K) && Oo(K, R);
|
|
645
645
|
}
|
|
646
646
|
else if (Ms(v))
|
|
647
647
|
v._store && (v._store.validated = !0);
|
|
@@ -649,7 +649,7 @@ Check the top-level render call using <` + V + ">.");
|
|
|
649
649
|
var ce = I(v);
|
|
650
650
|
if (typeof ce == "function" && ce !== v.entries)
|
|
651
651
|
for (var ye = ce.call(v), ae; !(ae = ye.next()).done; )
|
|
652
|
-
Ms(ae.value) &&
|
|
652
|
+
Ms(ae.value) && Oo(ae.value, R);
|
|
653
653
|
}
|
|
654
654
|
}
|
|
655
655
|
}
|
|
@@ -690,14 +690,14 @@ Check the top-level render call using <` + V + ">.");
|
|
|
690
690
|
v.ref !== null && (In(v), q("Invalid attribute `ref` supplied to `React.Fragment`."), In(null));
|
|
691
691
|
}
|
|
692
692
|
}
|
|
693
|
-
function
|
|
693
|
+
function Vo(v, R, V, K, ce, ye) {
|
|
694
694
|
{
|
|
695
695
|
var ae = vt(v);
|
|
696
696
|
if (!ae) {
|
|
697
697
|
var ne = "";
|
|
698
698
|
(v === void 0 || typeof v == "object" && v !== null && Object.keys(v).length === 0) && (ne += " You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");
|
|
699
699
|
var Ye = qu(ce);
|
|
700
|
-
Ye ? ne += Ye : ne +=
|
|
700
|
+
Ye ? ne += Ye : ne += Fo();
|
|
701
701
|
var Ie;
|
|
702
702
|
v === null ? Ie = "null" : Is(v) ? Ie = "array" : v !== void 0 && v.$$typeof === t ? (Ie = "<" + (Ot(v.type) || "Unknown") + " />", ne = " Did you accidentally export a JSX literal instead of a component?") : Ie = typeof v, q("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", Ie, ne);
|
|
703
703
|
}
|
|
@@ -710,21 +710,21 @@ Check the top-level render call using <` + V + ">.");
|
|
|
710
710
|
if (K)
|
|
711
711
|
if (Is(dt)) {
|
|
712
712
|
for (var Dn = 0; Dn < dt.length; Dn++)
|
|
713
|
-
|
|
713
|
+
Po(dt[Dn], v);
|
|
714
714
|
Object.freeze && Object.freeze(dt);
|
|
715
715
|
} else
|
|
716
716
|
q("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");
|
|
717
717
|
else
|
|
718
|
-
|
|
718
|
+
Po(dt, v);
|
|
719
719
|
}
|
|
720
720
|
return v === s ? Wu(Le) : Bu(Le), Le;
|
|
721
721
|
}
|
|
722
722
|
}
|
|
723
723
|
function Gu(v, R, V) {
|
|
724
|
-
return
|
|
724
|
+
return Vo(v, R, V, !0);
|
|
725
725
|
}
|
|
726
726
|
function Qu(v, R, V) {
|
|
727
|
-
return
|
|
727
|
+
return Vo(v, R, V, !1);
|
|
728
728
|
}
|
|
729
729
|
var Hu = Qu, Uu = Gu;
|
|
730
730
|
Jn.Fragment = s, Jn.jsx = Hu, Jn.jsxs = Uu;
|
|
@@ -978,7 +978,7 @@ class lm {
|
|
|
978
978
|
}
|
|
979
979
|
}
|
|
980
980
|
const zn = new am();
|
|
981
|
-
function
|
|
981
|
+
function Nl(e) {
|
|
982
982
|
zn.baseURL !== e.apiBaseURL && (zn.baseURL = e.apiBaseURL), e.app_id && (zn.app_id = e.app_id), e.app_secret && (zn.app_secret = e.app_secret), e.makeQueryENV && (zn.makeQueryENV = e.makeQueryENV);
|
|
983
983
|
}
|
|
984
984
|
const cm = new lm(zn), Nt = cm, ar = me(function({
|
|
@@ -1025,7 +1025,7 @@ function Er(e, t) {
|
|
|
1025
1025
|
} = P(t);
|
|
1026
1026
|
return e[s];
|
|
1027
1027
|
}
|
|
1028
|
-
const
|
|
1028
|
+
const ta = ["function aggregation({ queryData }, utils) {", ' return "Aggregation Result";', "}"].join(`
|
|
1029
1029
|
`), Wn = {
|
|
1030
1030
|
type: "none",
|
|
1031
1031
|
config: {},
|
|
@@ -1209,14 +1209,14 @@ function wm(e, t) {
|
|
|
1209
1209
|
} = e, i = os(t, n, s);
|
|
1210
1210
|
return ft(e, i);
|
|
1211
1211
|
}
|
|
1212
|
-
function
|
|
1212
|
+
function Bl(e, t) {
|
|
1213
1213
|
const n = {};
|
|
1214
1214
|
return e.forEach((s) => {
|
|
1215
1215
|
n[s.name] = wm(s, t);
|
|
1216
1216
|
}), n;
|
|
1217
1217
|
}
|
|
1218
1218
|
function as(e, t, n) {
|
|
1219
|
-
const s =
|
|
1219
|
+
const s = Bl(t, n), i = /^\{(.+)\}(.*)$/;
|
|
1220
1220
|
return e.split("$").map((o) => {
|
|
1221
1221
|
const a = i.exec(o);
|
|
1222
1222
|
if (!a)
|
|
@@ -1309,7 +1309,7 @@ function _m() {
|
|
|
1309
1309
|
}]
|
|
1310
1310
|
});
|
|
1311
1311
|
}
|
|
1312
|
-
function
|
|
1312
|
+
function Wl() {
|
|
1313
1313
|
_m();
|
|
1314
1314
|
}
|
|
1315
1315
|
function* Sm(e) {
|
|
@@ -1321,16 +1321,16 @@ function* Sm(e) {
|
|
|
1321
1321
|
for (; ; )
|
|
1322
1322
|
yield n[s % n.length], s++;
|
|
1323
1323
|
}
|
|
1324
|
-
function
|
|
1324
|
+
function na() {
|
|
1325
1325
|
return {
|
|
1326
1326
|
filters: {},
|
|
1327
1327
|
context: {}
|
|
1328
1328
|
};
|
|
1329
1329
|
}
|
|
1330
1330
|
function wi(e) {
|
|
1331
|
-
const t =
|
|
1331
|
+
const t = na();
|
|
1332
1332
|
if (!e)
|
|
1333
|
-
return
|
|
1333
|
+
return na();
|
|
1334
1334
|
const {
|
|
1335
1335
|
filters: n = t.filters,
|
|
1336
1336
|
context: s = t.context
|
|
@@ -1396,10 +1396,10 @@ function Dm(e, t) {
|
|
|
1396
1396
|
function zm(e, t, n) {
|
|
1397
1397
|
return e ? new Function(`return ${e}`)()(t, Yt, n) : t;
|
|
1398
1398
|
}
|
|
1399
|
-
function
|
|
1399
|
+
function Gl() {
|
|
1400
1400
|
Th([Qh, Ih, Dh, zh, Lh, Mh, Ah, Eh, Rh, Fh, $h, Oh, Ph, Vh, qh, Nh, Bh, Wh, Gh]);
|
|
1401
1401
|
}
|
|
1402
|
-
const Pn = (e) =>
|
|
1402
|
+
const Pn = (e) => el(e, (t, n) => {
|
|
1403
1403
|
if (n !== void 0 && t)
|
|
1404
1404
|
return Ut(t);
|
|
1405
1405
|
}), Rr = {
|
|
@@ -1487,7 +1487,7 @@ async function _i() {
|
|
|
1487
1487
|
return console.error(e), [];
|
|
1488
1488
|
}
|
|
1489
1489
|
}
|
|
1490
|
-
async function
|
|
1490
|
+
async function Ql() {
|
|
1491
1491
|
try {
|
|
1492
1492
|
return (await Nt.post()("/sql_snippet/list", {
|
|
1493
1493
|
filter: {},
|
|
@@ -1504,10 +1504,10 @@ async function Gl() {
|
|
|
1504
1504
|
return console.error(e), [];
|
|
1505
1505
|
}
|
|
1506
1506
|
}
|
|
1507
|
-
class
|
|
1507
|
+
class Hl {
|
|
1508
1508
|
constructor(t) {
|
|
1509
1509
|
N(this, "rootRef");
|
|
1510
|
-
this.rootRef =
|
|
1510
|
+
this.rootRef = Za({
|
|
1511
1511
|
current: t
|
|
1512
1512
|
});
|
|
1513
1513
|
}
|
|
@@ -1525,7 +1525,7 @@ class Ql {
|
|
|
1525
1525
|
}
|
|
1526
1526
|
setItem(t, n) {
|
|
1527
1527
|
if (t === null)
|
|
1528
|
-
if (
|
|
1528
|
+
if (tl(n))
|
|
1529
1529
|
tr(() => {
|
|
1530
1530
|
this.rootRef.current = n;
|
|
1531
1531
|
});
|
|
@@ -1549,13 +1549,13 @@ class Ql {
|
|
|
1549
1549
|
class Em {
|
|
1550
1550
|
constructor() {
|
|
1551
1551
|
N(this, "channels", /* @__PURE__ */ new Map());
|
|
1552
|
-
N(this, "globalChannel", new
|
|
1552
|
+
N(this, "globalChannel", new Qo());
|
|
1553
1553
|
}
|
|
1554
1554
|
getChannel(t) {
|
|
1555
1555
|
const n = this.channels.get(t);
|
|
1556
1556
|
if (n)
|
|
1557
1557
|
return n;
|
|
1558
|
-
const s = new
|
|
1558
|
+
const s = new Qo();
|
|
1559
1559
|
return this.channels.set(t, s), s;
|
|
1560
1560
|
}
|
|
1561
1561
|
}
|
|
@@ -1579,12 +1579,12 @@ class Rm {
|
|
|
1579
1579
|
name: t.viz.type,
|
|
1580
1580
|
type: t.viz.type,
|
|
1581
1581
|
messageChannels: new Em(),
|
|
1582
|
-
instanceData: new
|
|
1582
|
+
instanceData: new Hl(t.viz.conf)
|
|
1583
1583
|
};
|
|
1584
1584
|
return this.instances.set(t.id, s), s;
|
|
1585
1585
|
}
|
|
1586
1586
|
}
|
|
1587
|
-
function
|
|
1587
|
+
function Ul(e, t, n, s) {
|
|
1588
1588
|
return {
|
|
1589
1589
|
vizManager: n,
|
|
1590
1590
|
/**
|
|
@@ -1597,7 +1597,7 @@ function Hl(e, t, n, s) {
|
|
|
1597
1597
|
* todo: implement plugin scope storage, that is shared
|
|
1598
1598
|
* between instances
|
|
1599
1599
|
*/
|
|
1600
|
-
pluginData: new
|
|
1600
|
+
pluginData: new Hl({}),
|
|
1601
1601
|
/**
|
|
1602
1602
|
* todo: color palette not implemented
|
|
1603
1603
|
*/
|
|
@@ -1618,7 +1618,7 @@ const Fm = (e) => {
|
|
|
1618
1618
|
data: i,
|
|
1619
1619
|
variables: o
|
|
1620
1620
|
} = e, a = s.resolveComponent(t.viz.type), l = s.getOrCreateInstance(t), c = {
|
|
1621
|
-
...
|
|
1621
|
+
...Ul(l, i, s, o),
|
|
1622
1622
|
viewport: {
|
|
1623
1623
|
width: n.w,
|
|
1624
1624
|
height: n.h
|
|
@@ -1632,10 +1632,10 @@ const Fm = (e) => {
|
|
|
1632
1632
|
data: s,
|
|
1633
1633
|
variables: i
|
|
1634
1634
|
} = e, o = t.resolveComponent(n.viz.type), a = t.getOrCreateInstance(n), l = {
|
|
1635
|
-
...
|
|
1635
|
+
...Ul(a, s, t, i)
|
|
1636
1636
|
}, c = o.configRender;
|
|
1637
1637
|
return /* @__PURE__ */ r.jsx(c, { context: l, instance: a, ...bn(e, ["panel", "vizManager", "data"]) });
|
|
1638
|
-
},
|
|
1638
|
+
}, Kl = (e, t) => {
|
|
1639
1639
|
const n = or.bezier(e), s = or.bezier(t);
|
|
1640
1640
|
return function(i) {
|
|
1641
1641
|
return i < 50 ? n(i * 2 / 100).hex() : s((i - 50) * 2 / 100).hex();
|
|
@@ -1648,13 +1648,13 @@ const Fm = (e) => {
|
|
|
1648
1648
|
}, Om = {
|
|
1649
1649
|
type: "interpolation",
|
|
1650
1650
|
displayName: "Red / Green",
|
|
1651
|
-
getColor:
|
|
1651
|
+
getColor: Kl(["darkred", "deeppink", "lightyellow"], ["lightyellow", "lightgreen", "teal"]),
|
|
1652
1652
|
name: "red-green",
|
|
1653
1653
|
category: "diverging"
|
|
1654
1654
|
}, Pm = {
|
|
1655
1655
|
type: "interpolation",
|
|
1656
1656
|
displayName: "Yellow / Blue",
|
|
1657
|
-
getColor:
|
|
1657
|
+
getColor: Kl(["#8f531d", "#ffd347", "#e3efe3"], ["#eefaee", "#4ecbbf", "#003f94"]),
|
|
1658
1658
|
name: "yellow-blue",
|
|
1659
1659
|
category: "diverging"
|
|
1660
1660
|
}, Vm = {
|
|
@@ -1728,9 +1728,9 @@ class Si {
|
|
|
1728
1728
|
}), this.instanceRegistry.clear(), this.factoryRegistry.clear();
|
|
1729
1729
|
}
|
|
1730
1730
|
}
|
|
1731
|
-
const
|
|
1731
|
+
const Yl = "12.5.0", Gm = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
1732
1732
|
__proto__: null,
|
|
1733
|
-
version:
|
|
1733
|
+
version: Yl
|
|
1734
1734
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
1735
1735
|
class Qm {
|
|
1736
1736
|
constructor(t) {
|
|
@@ -1813,7 +1813,7 @@ class Um {
|
|
|
1813
1813
|
if (t.from > t.to)
|
|
1814
1814
|
throw new Error(`Can not downgrade from version '${t.from}' to (${t.to})`);
|
|
1815
1815
|
const i = this.migrations.filter((l) => l.version > t.from && l.version <= t.to), o = gh(i, "version", "asc");
|
|
1816
|
-
if (((a =
|
|
1816
|
+
if (((a = nl(o)) == null ? void 0 : a.version) !== t.to)
|
|
1817
1817
|
throw new Error(`Migration to version ${t.to} not found`);
|
|
1818
1818
|
return o.reduce((l, c) => c.handler(l, s), n);
|
|
1819
1819
|
}
|
|
@@ -1968,48 +1968,48 @@ function Km({
|
|
|
1968
1968
|
};
|
|
1969
1969
|
return t ? /* @__PURE__ */ r.jsx(rt, { width: s, height: i, children: /* @__PURE__ */ r.jsx(Je, { echarts: Ke, option: E, style: br(s, i), notMerge: !0, theme: "merico-light" }) }) : null;
|
|
1970
1970
|
}
|
|
1971
|
-
const
|
|
1972
|
-
function
|
|
1973
|
-
const e = M.useContext(
|
|
1971
|
+
const Xl = M.createContext(null), Jl = Xl.Provider;
|
|
1972
|
+
function Zl() {
|
|
1973
|
+
const e = M.useContext(Xl);
|
|
1974
1974
|
if (!e)
|
|
1975
1975
|
throw new Error("Please use DashboardModelContextProvider");
|
|
1976
1976
|
return e;
|
|
1977
1977
|
}
|
|
1978
|
-
const pe = () =>
|
|
1978
|
+
const pe = () => Zl(), Ym = () => Zl(), ec = M.createContext({
|
|
1979
1979
|
searchButtonProps: {}
|
|
1980
|
-
}),
|
|
1980
|
+
}), tc = ec.Provider;
|
|
1981
1981
|
function Xm() {
|
|
1982
|
-
return M.useContext(
|
|
1982
|
+
return M.useContext(ec);
|
|
1983
1983
|
}
|
|
1984
|
-
const
|
|
1985
|
-
function
|
|
1986
|
-
const e = M.useContext(
|
|
1984
|
+
const nc = M.createContext(null), rc = nc.Provider;
|
|
1985
|
+
function sc() {
|
|
1986
|
+
const e = M.useContext(nc);
|
|
1987
1987
|
if (!e)
|
|
1988
1988
|
throw new Error("Please use ContentModelContextProvider");
|
|
1989
1989
|
return e;
|
|
1990
1990
|
}
|
|
1991
|
-
const oe = () =>
|
|
1991
|
+
const oe = () => sc(), Pe = () => sc(), Jm = {
|
|
1992
1992
|
inEditMode: !1
|
|
1993
|
-
}, ki = M.createContext(Jm),
|
|
1993
|
+
}, ki = M.createContext(Jm), ic = M.createContext({
|
|
1994
1994
|
panel: null,
|
|
1995
1995
|
data: {},
|
|
1996
1996
|
loading: !1,
|
|
1997
1997
|
errors: [],
|
|
1998
1998
|
downloadPanelScreenshot: () => {
|
|
1999
1999
|
}
|
|
2000
|
-
}),
|
|
2001
|
-
function
|
|
2002
|
-
const e = M.useContext(
|
|
2000
|
+
}), oc = ic.Provider;
|
|
2001
|
+
function ac() {
|
|
2002
|
+
const e = M.useContext(ic);
|
|
2003
2003
|
if (!e.panel)
|
|
2004
2004
|
throw new Error("Please use PanelContextProvider");
|
|
2005
2005
|
return e;
|
|
2006
2006
|
}
|
|
2007
|
-
const Cn = () =>
|
|
2007
|
+
const Cn = () => ac(), Tt = () => ac(), Zm = {
|
|
2008
2008
|
fullScreenPanelID: "",
|
|
2009
2009
|
setFullScreenPanelID: w.noop
|
|
2010
|
-
},
|
|
2010
|
+
}, lc = M.createContext(Zm);
|
|
2011
2011
|
function ef() {
|
|
2012
|
-
const e = M.useContext(
|
|
2012
|
+
const e = M.useContext(lc);
|
|
2013
2013
|
if (!e)
|
|
2014
2014
|
throw new Error("Please use FullScreenPanelContext.Provider");
|
|
2015
2015
|
return e;
|
|
@@ -2174,7 +2174,7 @@ const sf = {
|
|
|
2174
2174
|
enabled: !1,
|
|
2175
2175
|
func_content: ["function label(value, index) {", " // your code goes here", " // return value", "}"].join(`
|
|
2176
2176
|
`)
|
|
2177
|
-
},
|
|
2177
|
+
}, cc = {
|
|
2178
2178
|
id: "builtin:echarts:click-echart:series",
|
|
2179
2179
|
// use same id as cartesian's, but different payload
|
|
2180
2180
|
displayName: "Click Chart Series",
|
|
@@ -2315,7 +2315,7 @@ const kn = {
|
|
|
2315
2315
|
x_axis_slider: !1,
|
|
2316
2316
|
y_axis_slider: !1
|
|
2317
2317
|
};
|
|
2318
|
-
function
|
|
2318
|
+
function dc() {
|
|
2319
2319
|
return w.cloneDeep(kn);
|
|
2320
2320
|
}
|
|
2321
2321
|
const Ti = {
|
|
@@ -2349,7 +2349,7 @@ const Ti = {
|
|
|
2349
2349
|
orient: "vertical",
|
|
2350
2350
|
type: "scroll"
|
|
2351
2351
|
},
|
|
2352
|
-
dataZoom:
|
|
2352
|
+
dataZoom: dc()
|
|
2353
2353
|
};
|
|
2354
2354
|
function Tn(e, t) {
|
|
2355
2355
|
return T(() => {
|
|
@@ -2415,7 +2415,7 @@ class Ii {
|
|
|
2415
2415
|
}
|
|
2416
2416
|
async list() {
|
|
2417
2417
|
const t = await this.attachmentStorage.getItem(null);
|
|
2418
|
-
return Promise.all(
|
|
2418
|
+
return Promise.all(rl(t).map((n) => this.constructInstance(new En(this.attachmentStorage, n.id))));
|
|
2419
2419
|
}
|
|
2420
2420
|
}
|
|
2421
2421
|
function cf(e, t) {
|
|
@@ -2738,7 +2738,7 @@ class Lf {
|
|
|
2738
2738
|
return await this.attachments.getInstance(t);
|
|
2739
2739
|
}
|
|
2740
2740
|
}
|
|
2741
|
-
const
|
|
2741
|
+
const ra = "__TRIGGERS";
|
|
2742
2742
|
class Mf {
|
|
2743
2743
|
constructor(t, n) {
|
|
2744
2744
|
N(this, "attachments");
|
|
@@ -2754,11 +2754,11 @@ class Mf {
|
|
|
2754
2754
|
triggerData: new En(i, "data")
|
|
2755
2755
|
};
|
|
2756
2756
|
};
|
|
2757
|
-
this.attachments = new Ii(t,
|
|
2757
|
+
this.attachments = new Ii(t, ra, s);
|
|
2758
2758
|
}
|
|
2759
2759
|
watchTriggerSnapshotList(t) {
|
|
2760
|
-
return this.instance.instanceData.watchItem(
|
|
2761
|
-
const s =
|
|
2760
|
+
return this.instance.instanceData.watchItem(ra, (n) => {
|
|
2761
|
+
const s = rl(n).map((i) => ({
|
|
2762
2762
|
id: re(i, "id"),
|
|
2763
2763
|
schemaRef: re(i, "schemaRef"),
|
|
2764
2764
|
config: Ut(re(i, "data.config"))
|
|
@@ -2871,7 +2871,7 @@ class Di {
|
|
|
2871
2871
|
const yt = ({
|
|
2872
2872
|
vizManager: e,
|
|
2873
2873
|
instance: t
|
|
2874
|
-
}) => St(() => new Di(t, e.resolveComponent(t.type), cs), [t, e]),
|
|
2874
|
+
}) => St(() => new Di(t, e.resolveComponent(t.type), cs), [t, e]), uc = (e) => {
|
|
2875
2875
|
const {
|
|
2876
2876
|
title: t = "Variables",
|
|
2877
2877
|
variables: n
|
|
@@ -2886,12 +2886,12 @@ const yt = ({
|
|
|
2886
2886
|
/* @__PURE__ */ r.jsx(S, { style: {
|
|
2887
2887
|
maxHeight: "500px"
|
|
2888
2888
|
}, children: n.map((o) => /* @__PURE__ */ r.jsxs(j, { size: "sm", children: [
|
|
2889
|
-
/* @__PURE__ */ r.jsxs(
|
|
2889
|
+
/* @__PURE__ */ r.jsxs(No, { color: "teal", children: [
|
|
2890
2890
|
"// ",
|
|
2891
2891
|
o.description
|
|
2892
2892
|
] }),
|
|
2893
2893
|
/* @__PURE__ */ r.jsx("br", {}),
|
|
2894
|
-
/* @__PURE__ */ r.jsxs(
|
|
2894
|
+
/* @__PURE__ */ r.jsxs(No, { onClick: () => i(o.name), style: {
|
|
2895
2895
|
cursor: "pointer"
|
|
2896
2896
|
}, children: [
|
|
2897
2897
|
o.name,
|
|
@@ -2974,7 +2974,7 @@ const Rf = k(({
|
|
|
2974
2974
|
/* @__PURE__ */ r.jsx(f.Tab, { value: "variables", children: "Variables" })
|
|
2975
2975
|
] }),
|
|
2976
2976
|
/* @__PURE__ */ r.jsx(f.Panel, { value: "settings", pt: 10, children: /* @__PURE__ */ r.jsx(Ff, { model: c }) }),
|
|
2977
|
-
/* @__PURE__ */ r.jsx(f.Panel, { value: "variables", pt: 10, children: /* @__PURE__ */ r.jsx(
|
|
2977
|
+
/* @__PURE__ */ r.jsx(f.Panel, { value: "variables", pt: 10, children: /* @__PURE__ */ r.jsx(uc, { title: "Variables", variables: c.variables }) })
|
|
2978
2978
|
] })
|
|
2979
2979
|
] }) })
|
|
2980
2980
|
] }) : null;
|
|
@@ -3048,7 +3048,7 @@ const Nf = k(({
|
|
|
3048
3048
|
/* @__PURE__ */ r.jsx(be, { opened: t, onClose: s, title: "Setup Trigger", zIndex: 320, children: /* @__PURE__ */ r.jsxs(S, { children: [
|
|
3049
3049
|
/* @__PURE__ */ r.jsx(Bf, { model: i }),
|
|
3050
3050
|
/* @__PURE__ */ r.jsx(Wf, { model: i }),
|
|
3051
|
-
/* @__PURE__ */ r.jsx(
|
|
3051
|
+
/* @__PURE__ */ r.jsx(uc, { title: "Payload", variables: i.triggerSchema.payload })
|
|
3052
3052
|
] }) }),
|
|
3053
3053
|
/* @__PURE__ */ r.jsx(Nf, { onClick: n, model: i })
|
|
3054
3054
|
] });
|
|
@@ -3142,7 +3142,7 @@ const Hf = k(({
|
|
|
3142
3142
|
}, Yf = () => {
|
|
3143
3143
|
const e = Kf();
|
|
3144
3144
|
return /* @__PURE__ */ r.jsx(Uf, { ...e });
|
|
3145
|
-
},
|
|
3145
|
+
}, hc = {
|
|
3146
3146
|
axisTick: {
|
|
3147
3147
|
show: !0,
|
|
3148
3148
|
alignWithLabel: !0,
|
|
@@ -3162,13 +3162,13 @@ const Hf = k(({
|
|
|
3162
3162
|
z: 3
|
|
3163
3163
|
};
|
|
3164
3164
|
function Xf(e) {
|
|
3165
|
-
return w.defaultsDeep({}, e,
|
|
3165
|
+
return w.defaultsDeep({}, e, hc);
|
|
3166
3166
|
}
|
|
3167
3167
|
const Jf = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
3168
3168
|
__proto__: null,
|
|
3169
3169
|
getXAxis: Xf,
|
|
3170
|
-
xAxis:
|
|
3171
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
3170
|
+
xAxis: hc
|
|
3171
|
+
}, Symbol.toStringTag, { value: "Module" })), pc = {
|
|
3172
3172
|
axisTick: {
|
|
3173
3173
|
show: !1
|
|
3174
3174
|
},
|
|
@@ -3186,23 +3186,23 @@ const Jf = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
3186
3186
|
}
|
|
3187
3187
|
};
|
|
3188
3188
|
function Zf(e) {
|
|
3189
|
-
return w.defaultsDeep({}, e,
|
|
3189
|
+
return w.defaultsDeep({}, e, pc);
|
|
3190
3190
|
}
|
|
3191
3191
|
const eg = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
3192
3192
|
__proto__: null,
|
|
3193
3193
|
getYAxis: Zf,
|
|
3194
|
-
yAxis:
|
|
3195
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
3194
|
+
yAxis: pc
|
|
3195
|
+
}, Symbol.toStringTag, { value: "Module" })), xc = {
|
|
3196
3196
|
confine: !0,
|
|
3197
3197
|
appendToBody: !0
|
|
3198
3198
|
};
|
|
3199
3199
|
function tg(e) {
|
|
3200
|
-
return w.defaultsDeep({}, e,
|
|
3200
|
+
return w.defaultsDeep({}, e, xc);
|
|
3201
3201
|
}
|
|
3202
3202
|
const ng = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
3203
3203
|
__proto__: null,
|
|
3204
3204
|
getTooltip: tg,
|
|
3205
|
-
tooltip:
|
|
3205
|
+
tooltip: xc
|
|
3206
3206
|
}, Symbol.toStringTag, { value: "Module" })), he = {
|
|
3207
3207
|
...Jf,
|
|
3208
3208
|
...eg,
|
|
@@ -3571,7 +3571,7 @@ const mg = (e, t) => {
|
|
|
3571
3571
|
mantissa: 2,
|
|
3572
3572
|
absolute: !1
|
|
3573
3573
|
});
|
|
3574
|
-
function
|
|
3574
|
+
function mc(e, t) {
|
|
3575
3575
|
return e.tooltip.metrics.map((n) => {
|
|
3576
3576
|
const s = P(n.data_key);
|
|
3577
3577
|
return `
|
|
@@ -3586,7 +3586,7 @@ function gg(e, t) {
|
|
|
3586
3586
|
<th style="text-align: right; padding: 0 1em;">${e.y_axis.name}</th>
|
|
3587
3587
|
<td style="text-align: left; padding: 0 1em;">${t[1]}</td>
|
|
3588
3588
|
</tr>
|
|
3589
|
-
`], i =
|
|
3589
|
+
`], i = mc(e, t[2]);
|
|
3590
3590
|
return s.push(...i), `
|
|
3591
3591
|
<div style="text-align: left; margin-bottom: .5em; padding: 0 1em .5em; font-weight: bold; border-bottom: 1px dashed #ddd;">
|
|
3592
3592
|
<div style="${n}">${t[0]}</div>
|
|
@@ -3603,7 +3603,7 @@ function bg(e, t) {
|
|
|
3603
3603
|
<th style="text-align: right; padding: 0 1em;">${e.y_axis.name}</th>
|
|
3604
3604
|
<td style="text-align: left; padding: 0 1em;">${t[1]}</td>
|
|
3605
3605
|
</tr>
|
|
3606
|
-
`], i =
|
|
3606
|
+
`], i = mc(e, t[2]);
|
|
3607
3607
|
return s.push(...i), `
|
|
3608
3608
|
<div style="text-align: left; margin-bottom: .5em; padding: 0 1em .5em; font-weight: bold; border-bottom: 1px dashed #ddd;">
|
|
3609
3609
|
<div style="${n}">${t[0]}</div>
|
|
@@ -3734,7 +3734,7 @@ function _g({
|
|
|
3734
3734
|
} = e.viewport, l = Te({}, n, Ti), c = yt({
|
|
3735
3735
|
vizManager: e.vizManager,
|
|
3736
3736
|
instance: t
|
|
3737
|
-
}), d = bt(c.triggerManager,
|
|
3737
|
+
}), d = bt(c.triggerManager, cc.id), h = Tn(i, l.x_axis.data_key), u = Ge((g) => {
|
|
3738
3738
|
const _ = w.get(h, g.name, {
|
|
3739
3739
|
error: "rowData is not found"
|
|
3740
3740
|
});
|
|
@@ -4447,7 +4447,7 @@ function Hg(e) {
|
|
|
4447
4447
|
} = e;
|
|
4448
4448
|
return {
|
|
4449
4449
|
...n,
|
|
4450
|
-
dataZoom: t ??
|
|
4450
|
+
dataZoom: t ?? dc()
|
|
4451
4451
|
};
|
|
4452
4452
|
}
|
|
4453
4453
|
class Ug extends ke {
|
|
@@ -4560,8 +4560,8 @@ const Kg = {
|
|
|
4560
4560
|
config: Ne(Ti)
|
|
4561
4561
|
};
|
|
4562
4562
|
},
|
|
4563
|
-
triggers: [
|
|
4564
|
-
},
|
|
4563
|
+
triggers: [cc]
|
|
4564
|
+
}, fc = {
|
|
4565
4565
|
id: "builtin:button:click-button",
|
|
4566
4566
|
displayName: "Click Button",
|
|
4567
4567
|
nameRender: Xg,
|
|
@@ -4597,7 +4597,7 @@ const Li = {
|
|
|
4597
4597
|
const n = yt({
|
|
4598
4598
|
vizManager: e.vizManager,
|
|
4599
4599
|
instance: t
|
|
4600
|
-
}), s = bt(n.triggerManager,
|
|
4600
|
+
}), s = bt(n.triggerManager, fc.id), i = Pe(), {
|
|
4601
4601
|
value: o
|
|
4602
4602
|
} = H(e.instanceData, "config"), a = T(() => Ce({}, o, Li), [o]), {
|
|
4603
4603
|
content: l,
|
|
@@ -4623,7 +4623,7 @@ const Li = {
|
|
|
4623
4623
|
onChange: t,
|
|
4624
4624
|
label: n
|
|
4625
4625
|
}) => {
|
|
4626
|
-
const s =
|
|
4626
|
+
const s = Ga(), i = Ge((a) => () => t(a), [t]), o = (a) => e === a;
|
|
4627
4627
|
return /* @__PURE__ */ r.jsxs(S, { spacing: 2, children: [
|
|
4628
4628
|
/* @__PURE__ */ r.jsx(j, { size: 14, sx: {
|
|
4629
4629
|
fontWeight: 500
|
|
@@ -4807,7 +4807,7 @@ const cb = {
|
|
|
4807
4807
|
config: Ne(Li)
|
|
4808
4808
|
};
|
|
4809
4809
|
},
|
|
4810
|
-
triggers: [
|
|
4810
|
+
triggers: [fc]
|
|
4811
4811
|
}, Mi = {
|
|
4812
4812
|
id: "builtin:echarts:click-echart:series",
|
|
4813
4813
|
displayName: "Click Chart Series",
|
|
@@ -5293,7 +5293,7 @@ function Lb(e) {
|
|
|
5293
5293
|
}) => n
|
|
5294
5294
|
});
|
|
5295
5295
|
}
|
|
5296
|
-
function
|
|
5296
|
+
function gc(e, t) {
|
|
5297
5297
|
const n = {};
|
|
5298
5298
|
return t.map((s) => {
|
|
5299
5299
|
const i = Xt(s, e);
|
|
@@ -5392,7 +5392,7 @@ const Fb = {
|
|
|
5392
5392
|
}]
|
|
5393
5393
|
};
|
|
5394
5394
|
function $b(e, t, n) {
|
|
5395
|
-
const s =
|
|
5395
|
+
const s = gc(t, n), i = Lb(e), o = w.uniq(Mt(t, e.x_axis_data_key)), a = Tb(e, o, t, i, n, s), l = gb(e, t), c = {
|
|
5396
5396
|
xAxis: Mb(e, o),
|
|
5397
5397
|
yAxis: Rb(e, i, a),
|
|
5398
5398
|
series: [...a, ...l],
|
|
@@ -5403,7 +5403,7 @@ function $b(e, t, n) {
|
|
|
5403
5403
|
};
|
|
5404
5404
|
return Ce({}, c, Fb);
|
|
5405
5405
|
}
|
|
5406
|
-
function
|
|
5406
|
+
function sa(e) {
|
|
5407
5407
|
const t = e.getModel(), n = t.getSeries().map((s) => {
|
|
5408
5408
|
if (!s.option.custom)
|
|
5409
5409
|
return s.option;
|
|
@@ -5415,7 +5415,7 @@ function ra(e) {
|
|
|
5415
5415
|
series: n
|
|
5416
5416
|
});
|
|
5417
5417
|
}
|
|
5418
|
-
function
|
|
5418
|
+
function ia(e) {
|
|
5419
5419
|
return e.trim().length > 0;
|
|
5420
5420
|
}
|
|
5421
5421
|
function Ob({
|
|
@@ -5439,10 +5439,10 @@ function Ob({
|
|
|
5439
5439
|
}, [a, l, i]), d = M.useMemo(() => $b(e, t, o), [e, t]), h = M.useRef(), u = T(() => ({
|
|
5440
5440
|
click: c
|
|
5441
5441
|
}), [c]), p = (x) => {
|
|
5442
|
-
h.current = x,
|
|
5442
|
+
h.current = x, sa(x);
|
|
5443
5443
|
};
|
|
5444
5444
|
return O(() => {
|
|
5445
|
-
h.current &&
|
|
5445
|
+
h.current && sa(h.current);
|
|
5446
5446
|
}, [d]), !n || !s ? null : /* @__PURE__ */ r.jsx(Je, { echarts: Ke, option: d, style: {
|
|
5447
5447
|
width: n,
|
|
5448
5448
|
height: s
|
|
@@ -5481,11 +5481,11 @@ function Pb({
|
|
|
5481
5481
|
}, [o, a]), g = Math.max(0, kt(c) - h - p), _ = Ct(l);
|
|
5482
5482
|
return /* @__PURE__ */ r.jsxs(rt, { width: l, height: c, children: [
|
|
5483
5483
|
/* @__PURE__ */ r.jsx(j, { ref: d, align: "left", size: "xs", pl: "sm", sx: {
|
|
5484
|
-
display:
|
|
5484
|
+
display: ia(o.stats.templates.top) ? "block" : "none"
|
|
5485
5485
|
}, children: Object.values(x.top).map((I, E) => /* @__PURE__ */ r.jsx(M.Fragment, { children: I }, E)) }),
|
|
5486
5486
|
/* @__PURE__ */ r.jsx(Ob, { variables: i, width: _, height: g, data: a, conf: o, interactionManager: n }),
|
|
5487
5487
|
/* @__PURE__ */ r.jsx(j, { ref: u, align: "left", size: "xs", pl: "sm", sx: {
|
|
5488
|
-
display:
|
|
5488
|
+
display: ia(o.stats.templates.bottom) ? "block" : "none"
|
|
5489
5489
|
}, children: Object.values(x.bottom).map((I, E) => /* @__PURE__ */ r.jsx(M.Fragment, { children: I }, E)) })
|
|
5490
5490
|
] });
|
|
5491
5491
|
}
|
|
@@ -6059,7 +6059,7 @@ const Ri = {
|
|
|
6059
6059
|
margin: "0 0 14px"
|
|
6060
6060
|
}
|
|
6061
6061
|
};
|
|
6062
|
-
function
|
|
6062
|
+
function bc(e, t, n) {
|
|
6063
6063
|
for (let s = 0; ; s++) {
|
|
6064
6064
|
if (s == e.childCount || s == t.childCount)
|
|
6065
6065
|
return e.childCount == t.childCount ? null : n;
|
|
@@ -6076,14 +6076,14 @@ function gc(e, t, n) {
|
|
|
6076
6076
|
return n;
|
|
6077
6077
|
}
|
|
6078
6078
|
if (i.content.size || o.content.size) {
|
|
6079
|
-
let a =
|
|
6079
|
+
let a = bc(i.content, o.content, n + 1);
|
|
6080
6080
|
if (a != null)
|
|
6081
6081
|
return a;
|
|
6082
6082
|
}
|
|
6083
6083
|
n += i.nodeSize;
|
|
6084
6084
|
}
|
|
6085
6085
|
}
|
|
6086
|
-
function
|
|
6086
|
+
function yc(e, t, n, s) {
|
|
6087
6087
|
for (let i = e.childCount, o = t.childCount; ; ) {
|
|
6088
6088
|
if (i == 0 || o == 0)
|
|
6089
6089
|
return i == o ? null : { a: n, b: s };
|
|
@@ -6101,7 +6101,7 @@ function bc(e, t, n, s) {
|
|
|
6101
6101
|
return { a: n, b: s };
|
|
6102
6102
|
}
|
|
6103
6103
|
if (a.content.size || l.content.size) {
|
|
6104
|
-
let d =
|
|
6104
|
+
let d = yc(a.content, l.content, n - 1, s - 1);
|
|
6105
6105
|
if (d)
|
|
6106
6106
|
return d;
|
|
6107
6107
|
}
|
|
@@ -6269,7 +6269,7 @@ class de {
|
|
|
6269
6269
|
fragment differ, or `null` if they are the same.
|
|
6270
6270
|
*/
|
|
6271
6271
|
findDiffStart(t, n = 0) {
|
|
6272
|
-
return
|
|
6272
|
+
return bc(this, t, n);
|
|
6273
6273
|
}
|
|
6274
6274
|
/**
|
|
6275
6275
|
Find the first position, searching from the end, at which this
|
|
@@ -6278,7 +6278,7 @@ class de {
|
|
|
6278
6278
|
nodes, an object with two separate positions is returned.
|
|
6279
6279
|
*/
|
|
6280
6280
|
findDiffEnd(t, n = this.size, s = t.size) {
|
|
6281
|
-
return
|
|
6281
|
+
return yc(this, t, n, s);
|
|
6282
6282
|
}
|
|
6283
6283
|
/**
|
|
6284
6284
|
Find the index and inner offset corresponding to a given relative
|
|
@@ -6521,14 +6521,14 @@ class fe {
|
|
|
6521
6521
|
@internal
|
|
6522
6522
|
*/
|
|
6523
6523
|
insertAt(t, n) {
|
|
6524
|
-
let s =
|
|
6524
|
+
let s = vc(this.content, t + this.openStart, n);
|
|
6525
6525
|
return s && new fe(s, this.openStart, this.openEnd);
|
|
6526
6526
|
}
|
|
6527
6527
|
/**
|
|
6528
6528
|
@internal
|
|
6529
6529
|
*/
|
|
6530
6530
|
removeBetween(t, n) {
|
|
6531
|
-
return new fe(
|
|
6531
|
+
return new fe(jc(this.content, t + this.openStart, n + this.openStart), this.openStart, this.openEnd);
|
|
6532
6532
|
}
|
|
6533
6533
|
/**
|
|
6534
6534
|
Tests whether this slice is equal to another slice.
|
|
@@ -6576,7 +6576,7 @@ class fe {
|
|
|
6576
6576
|
}
|
|
6577
6577
|
}
|
|
6578
6578
|
fe.empty = new fe(de.empty, 0, 0);
|
|
6579
|
-
function
|
|
6579
|
+
function jc(e, t, n) {
|
|
6580
6580
|
let { index: s, offset: i } = e.findIndex(t), o = e.maybeChild(s), { index: a, offset: l } = e.findIndex(n);
|
|
6581
6581
|
if (i == t || o.isText) {
|
|
6582
6582
|
if (l != n && !e.child(a).isText)
|
|
@@ -6585,13 +6585,13 @@ function yc(e, t, n) {
|
|
|
6585
6585
|
}
|
|
6586
6586
|
if (s != a)
|
|
6587
6587
|
throw new RangeError("Removing non-flat range");
|
|
6588
|
-
return e.replaceChild(s, o.copy(
|
|
6588
|
+
return e.replaceChild(s, o.copy(jc(o.content, t - i - 1, n - i - 1)));
|
|
6589
6589
|
}
|
|
6590
|
-
function
|
|
6590
|
+
function vc(e, t, n, s) {
|
|
6591
6591
|
let { index: i, offset: o } = e.findIndex(t), a = e.maybeChild(i);
|
|
6592
6592
|
if (o == t || a.isText)
|
|
6593
6593
|
return s && !s.canReplace(i, i, n) ? null : e.cut(0, t).append(n).append(e.cut(t));
|
|
6594
|
-
let l =
|
|
6594
|
+
let l = vc(a.content, t - o - 1, n);
|
|
6595
6595
|
return l && e.replaceChild(i, a.copy(l));
|
|
6596
6596
|
}
|
|
6597
6597
|
class Wr {
|
|
@@ -6613,7 +6613,7 @@ class Wr {
|
|
|
6613
6613
|
Parse a document from the content of a DOM node.
|
|
6614
6614
|
*/
|
|
6615
6615
|
parse(t, n = {}) {
|
|
6616
|
-
let s = new
|
|
6616
|
+
let s = new aa(this, n, !1);
|
|
6617
6617
|
return s.addAll(t, n.from, n.to), s.finish();
|
|
6618
6618
|
}
|
|
6619
6619
|
/**
|
|
@@ -6625,7 +6625,7 @@ class Wr {
|
|
|
6625
6625
|
the left of the input and the end of nodes at the end.
|
|
6626
6626
|
*/
|
|
6627
6627
|
parseSlice(t, n = {}) {
|
|
6628
|
-
let s = new
|
|
6628
|
+
let s = new aa(this, n, !0);
|
|
6629
6629
|
return s.addAll(t, n.from, n.to), fe.maxOpen(s.finish());
|
|
6630
6630
|
}
|
|
6631
6631
|
/**
|
|
@@ -6682,13 +6682,13 @@ class Wr {
|
|
|
6682
6682
|
for (let i in t.marks) {
|
|
6683
6683
|
let o = t.marks[i].spec.parseDOM;
|
|
6684
6684
|
o && o.forEach((a) => {
|
|
6685
|
-
s(a =
|
|
6685
|
+
s(a = la(a)), a.mark || a.ignore || a.clearMark || (a.mark = i);
|
|
6686
6686
|
});
|
|
6687
6687
|
}
|
|
6688
6688
|
for (let i in t.nodes) {
|
|
6689
6689
|
let o = t.nodes[i].spec.parseDOM;
|
|
6690
6690
|
o && o.forEach((a) => {
|
|
6691
|
-
s(a =
|
|
6691
|
+
s(a = la(a)), a.node || a.ignore || a.mark || (a.node = i);
|
|
6692
6692
|
});
|
|
6693
6693
|
}
|
|
6694
6694
|
return n;
|
|
@@ -6702,7 +6702,7 @@ class Wr {
|
|
|
6702
6702
|
return t.cached.domParser || (t.cached.domParser = new Wr(t, Wr.schemaRules(t)));
|
|
6703
6703
|
}
|
|
6704
6704
|
}
|
|
6705
|
-
const
|
|
6705
|
+
const wc = {
|
|
6706
6706
|
address: !0,
|
|
6707
6707
|
article: !0,
|
|
6708
6708
|
aside: !0,
|
|
@@ -6742,8 +6742,8 @@ const vc = {
|
|
|
6742
6742
|
script: !0,
|
|
6743
6743
|
style: !0,
|
|
6744
6744
|
title: !0
|
|
6745
|
-
},
|
|
6746
|
-
function
|
|
6745
|
+
}, _c = { ol: !0, ul: !0 }, Gr = 1, Qr = 2, nr = 4;
|
|
6746
|
+
function oa(e, t, n) {
|
|
6747
6747
|
return t != null ? (t ? Gr : 0) | (t === "full" ? Qr : 0) : e && e.whitespace == "pre" ? Gr | Qr : n & ~nr;
|
|
6748
6748
|
}
|
|
6749
6749
|
class Dr {
|
|
@@ -6787,13 +6787,13 @@ class Dr {
|
|
|
6787
6787
|
}
|
|
6788
6788
|
}
|
|
6789
6789
|
inlineContext(t) {
|
|
6790
|
-
return this.type ? this.type.inlineContent : this.content.length ? this.content[0].isInline : t.parentNode && !
|
|
6790
|
+
return this.type ? this.type.inlineContent : this.content.length ? this.content[0].isInline : t.parentNode && !wc.hasOwnProperty(t.parentNode.nodeName.toLowerCase());
|
|
6791
6791
|
}
|
|
6792
6792
|
}
|
|
6793
|
-
class
|
|
6793
|
+
class aa {
|
|
6794
6794
|
constructor(t, n, s) {
|
|
6795
6795
|
this.parser = t, this.options = n, this.isOpen = s, this.open = 0;
|
|
6796
|
-
let i = n.topNode, o, a =
|
|
6796
|
+
let i = n.topNode, o, a = oa(null, n.preserveWhitespace, 0) | (s ? nr : 0);
|
|
6797
6797
|
i ? o = new Dr(i.type, i.attrs, ot.none, ot.none, !0, n.topMatch || i.type.contentMatch, a) : s ? o = new Dr(null, null, ot.none, ot.none, !0, null, a) : o = new Dr(t.schema.topNodeType, null, ot.none, ot.none, !0, null, a), this.nodes = [o], this.find = n.findPositions, this.needsBlock = !1;
|
|
6798
6798
|
}
|
|
6799
6799
|
get top() {
|
|
@@ -6844,14 +6844,14 @@ class oa {
|
|
|
6844
6844
|
// none is found, the element's content nodes are added directly.
|
|
6845
6845
|
addElement(t, n) {
|
|
6846
6846
|
let s = t.nodeName.toLowerCase(), i;
|
|
6847
|
-
|
|
6847
|
+
_c.hasOwnProperty(s) && this.parser.normalizeLists && ey(t);
|
|
6848
6848
|
let o = this.options.ruleFromNode && this.options.ruleFromNode(t) || (i = this.parser.matchTag(t, this, n));
|
|
6849
6849
|
if (o ? o.ignore : Zb.hasOwnProperty(s))
|
|
6850
6850
|
this.findInside(t), this.ignoreFallback(t);
|
|
6851
6851
|
else if (!o || o.skip || o.closeParent) {
|
|
6852
6852
|
o && o.closeParent ? this.open = Math.max(0, this.open - 1) : o && o.skip.nodeType && (t = o.skip);
|
|
6853
6853
|
let a, l = this.top, c = this.needsBlock;
|
|
6854
|
-
if (
|
|
6854
|
+
if (wc.hasOwnProperty(s))
|
|
6855
6855
|
l.content.length && l.content[0].isInline && this.open && (this.open--, l = this.top), a = !0, l.type || (this.needsBlock = !0);
|
|
6856
6856
|
else if (!t.firstChild) {
|
|
6857
6857
|
this.leafFallback(t);
|
|
@@ -6964,7 +6964,7 @@ class oa {
|
|
|
6964
6964
|
this.closeExtra();
|
|
6965
6965
|
let o = this.top;
|
|
6966
6966
|
o.applyPending(t), o.match = o.match && o.match.matchType(t);
|
|
6967
|
-
let a =
|
|
6967
|
+
let a = oa(t, i, o.options);
|
|
6968
6968
|
o.options & nr && o.content.length == 0 && (a |= nr), this.nodes.push(new Dr(t, n, o.activeMarks, o.pendingMarks, s, null, a)), this.open++;
|
|
6969
6969
|
}
|
|
6970
6970
|
// Make sure all nodes above this.open are finished and added to
|
|
@@ -7078,7 +7078,7 @@ class oa {
|
|
|
7078
7078
|
function ey(e) {
|
|
7079
7079
|
for (let t = e.firstChild, n = null; t; t = t.nextSibling) {
|
|
7080
7080
|
let s = t.nodeType == 1 ? t.nodeName.toLowerCase() : null;
|
|
7081
|
-
s &&
|
|
7081
|
+
s && _c.hasOwnProperty(s) && n ? (n.appendChild(t), t = n) : s == "li" ? n = t : s && (n = null);
|
|
7082
7082
|
}
|
|
7083
7083
|
}
|
|
7084
7084
|
function ty(e, t) {
|
|
@@ -7090,7 +7090,7 @@ function ny(e) {
|
|
|
7090
7090
|
s.push(n[1], n[2].trim());
|
|
7091
7091
|
return s;
|
|
7092
7092
|
}
|
|
7093
|
-
function
|
|
7093
|
+
function la(e) {
|
|
7094
7094
|
let t = {};
|
|
7095
7095
|
for (let n in e)
|
|
7096
7096
|
t[n] = e[n];
|
|
@@ -7119,18 +7119,18 @@ function sy(e, t) {
|
|
|
7119
7119
|
if (e.eq(t[n]))
|
|
7120
7120
|
return t[n];
|
|
7121
7121
|
}
|
|
7122
|
-
const
|
|
7122
|
+
const Sc = 65535, Cc = Math.pow(2, 16);
|
|
7123
7123
|
function iy(e, t) {
|
|
7124
|
-
return e + t *
|
|
7124
|
+
return e + t * Cc;
|
|
7125
7125
|
}
|
|
7126
|
-
function
|
|
7127
|
-
return e &
|
|
7126
|
+
function ca(e) {
|
|
7127
|
+
return e & Sc;
|
|
7128
7128
|
}
|
|
7129
7129
|
function oy(e) {
|
|
7130
|
-
return (e - (e &
|
|
7130
|
+
return (e - (e & Sc)) / Cc;
|
|
7131
7131
|
}
|
|
7132
|
-
const
|
|
7133
|
-
class
|
|
7132
|
+
const kc = 1, Tc = 2, Fr = 4, Ic = 8;
|
|
7133
|
+
class da {
|
|
7134
7134
|
/**
|
|
7135
7135
|
@internal
|
|
7136
7136
|
*/
|
|
@@ -7143,19 +7143,19 @@ class ca {
|
|
|
7143
7143
|
argument from the document.
|
|
7144
7144
|
*/
|
|
7145
7145
|
get deleted() {
|
|
7146
|
-
return (this.delInfo &
|
|
7146
|
+
return (this.delInfo & Ic) > 0;
|
|
7147
7147
|
}
|
|
7148
7148
|
/**
|
|
7149
7149
|
Tells you whether the token before the mapped position was deleted.
|
|
7150
7150
|
*/
|
|
7151
7151
|
get deletedBefore() {
|
|
7152
|
-
return (this.delInfo & (
|
|
7152
|
+
return (this.delInfo & (kc | Fr)) > 0;
|
|
7153
7153
|
}
|
|
7154
7154
|
/**
|
|
7155
7155
|
True when the token after the mapped position was deleted.
|
|
7156
7156
|
*/
|
|
7157
7157
|
get deletedAfter() {
|
|
7158
|
-
return (this.delInfo & (
|
|
7158
|
+
return (this.delInfo & (Tc | Fr)) > 0;
|
|
7159
7159
|
}
|
|
7160
7160
|
/**
|
|
7161
7161
|
Tells whether any of the steps mapped through deletes across the
|
|
@@ -7180,7 +7180,7 @@ class ut {
|
|
|
7180
7180
|
@internal
|
|
7181
7181
|
*/
|
|
7182
7182
|
recover(t) {
|
|
7183
|
-
let n = 0, s =
|
|
7183
|
+
let n = 0, s = ca(t);
|
|
7184
7184
|
if (!this.inverted)
|
|
7185
7185
|
for (let i = 0; i < s; i++)
|
|
7186
7186
|
n += this.ranges[i * 3 + 2] - this.ranges[i * 3 + 1];
|
|
@@ -7206,18 +7206,18 @@ class ut {
|
|
|
7206
7206
|
let p = d ? t == c ? -1 : t == u ? 1 : n : n, x = c + i + (p < 0 ? 0 : h);
|
|
7207
7207
|
if (s)
|
|
7208
7208
|
return x;
|
|
7209
|
-
let g = t == (n < 0 ? c : u) ? null : iy(l / 3, t - c), _ = t == c ?
|
|
7210
|
-
return (n < 0 ? t != c : t != u) && (_ |=
|
|
7209
|
+
let g = t == (n < 0 ? c : u) ? null : iy(l / 3, t - c), _ = t == c ? Tc : t == u ? kc : Fr;
|
|
7210
|
+
return (n < 0 ? t != c : t != u) && (_ |= Ic), new da(x, _, g);
|
|
7211
7211
|
}
|
|
7212
7212
|
i += h - d;
|
|
7213
7213
|
}
|
|
7214
|
-
return s ? t + i : new
|
|
7214
|
+
return s ? t + i : new da(t + i, 0, null);
|
|
7215
7215
|
}
|
|
7216
7216
|
/**
|
|
7217
7217
|
@internal
|
|
7218
7218
|
*/
|
|
7219
7219
|
touches(t, n) {
|
|
7220
|
-
let s = 0, i =
|
|
7220
|
+
let s = 0, i = ca(n), o = this.inverted ? 2 : 1, a = this.inverted ? 1 : 2;
|
|
7221
7221
|
for (let l = 0; l < this.ranges.length; l += 3) {
|
|
7222
7222
|
let c = this.ranges[l] - (this.inverted ? s : 0);
|
|
7223
7223
|
if (c > t)
|
|
@@ -7659,7 +7659,7 @@ function $r(e, t, n = 1, s) {
|
|
|
7659
7659
|
let l = i.indexAfter(o), c = s && s[0];
|
|
7660
7660
|
return i.node(o).canReplaceWith(l, l, c ? c.type : i.node(o + 1).type);
|
|
7661
7661
|
}
|
|
7662
|
-
function
|
|
7662
|
+
function Dc(e, t) {
|
|
7663
7663
|
let n = e.resolve(t), s = n.index();
|
|
7664
7664
|
return cy(n.nodeBefore, n.nodeAfter) && n.parent.canReplace(s, s + 1);
|
|
7665
7665
|
}
|
|
@@ -7786,7 +7786,7 @@ class Se {
|
|
|
7786
7786
|
let o = t.steps.length, a = this.ranges;
|
|
7787
7787
|
for (let l = 0; l < a.length; l++) {
|
|
7788
7788
|
let { $from: c, $to: d } = a[l], h = t.mapping.slice(o);
|
|
7789
|
-
t.replaceRange(h.map(c.pos), h.map(d.pos), l ? fe.empty : n), l == 0 &&
|
|
7789
|
+
t.replaceRange(h.map(c.pos), h.map(d.pos), l ? fe.empty : n), l == 0 && pa(t, o, (s ? s.isInline : i && i.isTextblock) ? -1 : 1);
|
|
7790
7790
|
}
|
|
7791
7791
|
}
|
|
7792
7792
|
/**
|
|
@@ -7797,7 +7797,7 @@ class Se {
|
|
|
7797
7797
|
let s = t.steps.length, i = this.ranges;
|
|
7798
7798
|
for (let o = 0; o < i.length; o++) {
|
|
7799
7799
|
let { $from: a, $to: l } = i[o], c = t.mapping.slice(s), d = c.map(a.pos), h = c.map(l.pos);
|
|
7800
|
-
o ? t.deleteRange(d, h) : (t.replaceRangeWith(d, h, n),
|
|
7800
|
+
o ? t.deleteRange(d, h) : (t.replaceRangeWith(d, h, n), pa(t, s, n.isInline ? -1 : 1));
|
|
7801
7801
|
}
|
|
7802
7802
|
}
|
|
7803
7803
|
/**
|
|
@@ -7887,16 +7887,16 @@ class dy {
|
|
|
7887
7887
|
this.$from = t, this.$to = n;
|
|
7888
7888
|
}
|
|
7889
7889
|
}
|
|
7890
|
-
let
|
|
7891
|
-
function
|
|
7892
|
-
!
|
|
7890
|
+
let ua = !1;
|
|
7891
|
+
function ha(e) {
|
|
7892
|
+
!ua && !e.parent.inlineContent && (ua = !0, console.warn("TextSelection endpoint not pointing into a node with inline content (" + e.parent.type.name + ")"));
|
|
7893
7893
|
}
|
|
7894
7894
|
class $e extends Se {
|
|
7895
7895
|
/**
|
|
7896
7896
|
Construct a text selection between the given points.
|
|
7897
7897
|
*/
|
|
7898
7898
|
constructor(t, n = t) {
|
|
7899
|
-
|
|
7899
|
+
ha(t), ha(n), super(t, n);
|
|
7900
7900
|
}
|
|
7901
7901
|
/**
|
|
7902
7902
|
Returns a resolved position if this is a cursor selection (an
|
|
@@ -8096,7 +8096,7 @@ function Ln(e, t, n, s, i, o = !1) {
|
|
|
8096
8096
|
}
|
|
8097
8097
|
return null;
|
|
8098
8098
|
}
|
|
8099
|
-
function
|
|
8099
|
+
function pa(e, t, n) {
|
|
8100
8100
|
let s = e.steps.length - 1;
|
|
8101
8101
|
if (s < t)
|
|
8102
8102
|
return;
|
|
@@ -8108,12 +8108,12 @@ function ha(e, t, n) {
|
|
|
8108
8108
|
a == null && (a = h);
|
|
8109
8109
|
}), e.setSelection(Se.near(e.doc.resolve(a), n));
|
|
8110
8110
|
}
|
|
8111
|
-
function
|
|
8111
|
+
function xa(e, t) {
|
|
8112
8112
|
return !t || !e ? e : e.bind(t);
|
|
8113
8113
|
}
|
|
8114
8114
|
class zr {
|
|
8115
8115
|
constructor(t, n, s) {
|
|
8116
|
-
this.name = t, this.init =
|
|
8116
|
+
this.name = t, this.init = xa(n.init, s), this.apply = xa(n.apply, s);
|
|
8117
8117
|
}
|
|
8118
8118
|
}
|
|
8119
8119
|
new zr("doc", {
|
|
@@ -8145,10 +8145,10 @@ new zr("doc", {
|
|
|
8145
8145
|
return e.scrolledIntoView ? t + 1 : t;
|
|
8146
8146
|
}
|
|
8147
8147
|
});
|
|
8148
|
-
function
|
|
8148
|
+
function zc(e, t, n) {
|
|
8149
8149
|
for (let s in e) {
|
|
8150
8150
|
let i = e[s];
|
|
8151
|
-
i instanceof Function ? i = i.bind(t) : s == "handleDOMEvents" && (i =
|
|
8151
|
+
i instanceof Function ? i = i.bind(t) : s == "handleDOMEvents" && (i = zc(i, t, {})), n[s] = i;
|
|
8152
8152
|
}
|
|
8153
8153
|
return n;
|
|
8154
8154
|
}
|
|
@@ -8157,7 +8157,7 @@ class yr {
|
|
|
8157
8157
|
Create a plugin.
|
|
8158
8158
|
*/
|
|
8159
8159
|
constructor(t) {
|
|
8160
|
-
this.spec = t, this.props = {}, t.props &&
|
|
8160
|
+
this.spec = t, this.props = {}, t.props && zc(t.props, this, this.props), this.key = t.key ? t.key.key : Lc("plugin");
|
|
8161
8161
|
}
|
|
8162
8162
|
/**
|
|
8163
8163
|
Extract the plugin's state field from an editor state.
|
|
@@ -8167,7 +8167,7 @@ class yr {
|
|
|
8167
8167
|
}
|
|
8168
8168
|
}
|
|
8169
8169
|
const Vs = /* @__PURE__ */ Object.create(null);
|
|
8170
|
-
function
|
|
8170
|
+
function Lc(e) {
|
|
8171
8171
|
return e in Vs ? e + "$" + ++Vs[e] : (Vs[e] = 0, e + "$");
|
|
8172
8172
|
}
|
|
8173
8173
|
class jr {
|
|
@@ -8175,7 +8175,7 @@ class jr {
|
|
|
8175
8175
|
Create a plugin key.
|
|
8176
8176
|
*/
|
|
8177
8177
|
constructor(t = "key") {
|
|
8178
|
-
this.key =
|
|
8178
|
+
this.key = Lc(t);
|
|
8179
8179
|
}
|
|
8180
8180
|
/**
|
|
8181
8181
|
Get the active plugin with this key, if any, from an editor
|
|
@@ -8191,7 +8191,7 @@ class jr {
|
|
|
8191
8191
|
return t[this.key];
|
|
8192
8192
|
}
|
|
8193
8193
|
}
|
|
8194
|
-
function
|
|
8194
|
+
function Mc(e) {
|
|
8195
8195
|
const { state: t, transaction: n } = e;
|
|
8196
8196
|
let { selection: s } = n, { doc: i } = n, { storedMarks: o } = n;
|
|
8197
8197
|
return {
|
|
@@ -8264,7 +8264,7 @@ class hy {
|
|
|
8264
8264
|
tr: t,
|
|
8265
8265
|
editor: i,
|
|
8266
8266
|
view: a,
|
|
8267
|
-
state:
|
|
8267
|
+
state: Mc({
|
|
8268
8268
|
state: o,
|
|
8269
8269
|
transaction: t
|
|
8270
8270
|
}),
|
|
@@ -8316,10 +8316,10 @@ function fy(e) {
|
|
|
8316
8316
|
function qs(e) {
|
|
8317
8317
|
return fy(e) !== "Object" ? !1 : e.constructor === Object && Object.getPrototypeOf(e) === Object.prototype;
|
|
8318
8318
|
}
|
|
8319
|
-
function
|
|
8319
|
+
function Ac(e, t) {
|
|
8320
8320
|
const n = { ...e };
|
|
8321
8321
|
return qs(e) && qs(t) && Object.keys(t).forEach((s) => {
|
|
8322
|
-
qs(t[s]) ? s in e ? n[s] =
|
|
8322
|
+
qs(t[s]) ? s in e ? n[s] = Ac(e[s], t[s]) : Object.assign(n, { [s]: t[s] }) : Object.assign(n, { [s]: t[s] });
|
|
8323
8323
|
}), n;
|
|
8324
8324
|
}
|
|
8325
8325
|
class At {
|
|
@@ -8342,7 +8342,7 @@ class At {
|
|
|
8342
8342
|
}
|
|
8343
8343
|
configure(t = {}) {
|
|
8344
8344
|
const n = this.extend();
|
|
8345
|
-
return n.options =
|
|
8345
|
+
return n.options = Ac(this.options, t), n.storage = Mn(Jt(n, "addStorage", {
|
|
8346
8346
|
name: n.name,
|
|
8347
8347
|
options: n.options
|
|
8348
8348
|
})), n;
|
|
@@ -8454,7 +8454,7 @@ function ii(e, t, n = {}) {
|
|
|
8454
8454
|
function zy(e, t, n = {}) {
|
|
8455
8455
|
return !!ii(e, t, n);
|
|
8456
8456
|
}
|
|
8457
|
-
function
|
|
8457
|
+
function Ec(e, t, n = {}) {
|
|
8458
8458
|
if (!e || !t)
|
|
8459
8459
|
return;
|
|
8460
8460
|
let s = e.parent.childAfter(e.parentOffset);
|
|
@@ -8484,7 +8484,7 @@ function sn(e, t) {
|
|
|
8484
8484
|
const Ly = (e, t = {}) => ({ tr: n, state: s, dispatch: i }) => {
|
|
8485
8485
|
const o = sn(e, s.schema), { doc: a, selection: l } = n, { $from: c, from: d, to: h } = l;
|
|
8486
8486
|
if (i) {
|
|
8487
|
-
const u =
|
|
8487
|
+
const u = Ec(c, o, t);
|
|
8488
8488
|
if (u && u.from <= d && u.to >= h) {
|
|
8489
8489
|
const p = $e.create(a, u.from, u.to);
|
|
8490
8490
|
n.setSelection(p);
|
|
@@ -8498,7 +8498,7 @@ const Ly = (e, t = {}) => ({ tr: n, state: s, dispatch: i }) => {
|
|
|
8498
8498
|
return !0;
|
|
8499
8499
|
return !1;
|
|
8500
8500
|
};
|
|
8501
|
-
function
|
|
8501
|
+
function Rc(e) {
|
|
8502
8502
|
return e instanceof $e;
|
|
8503
8503
|
}
|
|
8504
8504
|
function xn(e = 0, t = 0, n = 0) {
|
|
@@ -8537,12 +8537,12 @@ const Ey = (e = null, t = {}) => ({ editor: n, view: s, tr: i, dispatch: o }) =>
|
|
|
8537
8537
|
};
|
|
8538
8538
|
if (s.hasFocus() && e === null || e === !1)
|
|
8539
8539
|
return !0;
|
|
8540
|
-
if (o && e === null && !
|
|
8540
|
+
if (o && e === null && !Rc(n.state.selection))
|
|
8541
8541
|
return a(), !0;
|
|
8542
8542
|
const l = Ay(i.doc, e) || n.state.selection, c = n.state.selection.eq(l);
|
|
8543
8543
|
return o && (c || i.setSelection(l), c && i.storedMarks && i.setStoredMarks(i.storedMarks), a()), !0;
|
|
8544
8544
|
}, Ry = (e, t) => (n) => e.every((s, i) => t(s, { ...n, index: i })), Fy = (e, t) => ({ tr: n, commands: s }) => s.insertContentAt({ from: n.selection.from, to: n.selection.to }, e, t);
|
|
8545
|
-
function
|
|
8545
|
+
function ma(e) {
|
|
8546
8546
|
const t = `<body>${e}</body>`;
|
|
8547
8547
|
return new window.DOMParser().parseFromString(t, "text/html").body;
|
|
8548
8548
|
}
|
|
@@ -8559,7 +8559,7 @@ function Ur(e, t, n) {
|
|
|
8559
8559
|
}
|
|
8560
8560
|
if (typeof e == "string") {
|
|
8561
8561
|
const s = Wr.fromSchema(t);
|
|
8562
|
-
return n.slice ? s.parseSlice(
|
|
8562
|
+
return n.slice ? s.parseSlice(ma(e), n.parseOptions).content : s.parse(ma(e), n.parseOptions);
|
|
8563
8563
|
}
|
|
8564
8564
|
return Ur("", t, n);
|
|
8565
8565
|
}
|
|
@@ -8602,7 +8602,7 @@ const Oy = (e) => e.toString().startsWith("<"), Py = (e, t, n) => ({ tr: s, disp
|
|
|
8602
8602
|
}
|
|
8603
8603
|
return !0;
|
|
8604
8604
|
}, Vy = () => ({ state: e, dispatch: t }) => Op(e, t), qy = () => ({ state: e, dispatch: t }) => Pp(e, t), Ny = () => ({ state: e, dispatch: t }) => Vp(e, t), By = () => ({ state: e, dispatch: t }) => qp(e, t);
|
|
8605
|
-
function
|
|
8605
|
+
function Fc() {
|
|
8606
8606
|
return typeof navigator < "u" ? /Mac/.test(navigator.platform) : !1;
|
|
8607
8607
|
}
|
|
8608
8608
|
function Wy(e) {
|
|
@@ -8621,7 +8621,7 @@ function Wy(e) {
|
|
|
8621
8621
|
else if (/^s(hift)?$/i.test(c))
|
|
8622
8622
|
o = !0;
|
|
8623
8623
|
else if (/^mod$/i.test(c))
|
|
8624
|
-
Pi() ||
|
|
8624
|
+
Pi() || Fc() ? a = !0 : i = !0;
|
|
8625
8625
|
else
|
|
8626
8626
|
throw new Error(`Unrecognized modifier name: ${c}`);
|
|
8627
8627
|
}
|
|
@@ -8666,20 +8666,20 @@ const Qy = (e, t = {}) => ({ state: n, dispatch: s }) => {
|
|
|
8666
8666
|
const s = Ue(e, t.schema);
|
|
8667
8667
|
return Xp(s)(t, n);
|
|
8668
8668
|
}, Ky = () => ({ state: e, dispatch: t }) => Wp(e, t);
|
|
8669
|
-
function
|
|
8669
|
+
function $c(e, t) {
|
|
8670
8670
|
return t.nodes[e] ? "node" : t.marks[e] ? "mark" : null;
|
|
8671
8671
|
}
|
|
8672
|
-
function
|
|
8672
|
+
function fa(e, t) {
|
|
8673
8673
|
const n = typeof t == "string" ? [t] : t;
|
|
8674
8674
|
return Object.keys(e).reduce((s, i) => (n.includes(i) || (s[i] = e[i]), s), {});
|
|
8675
8675
|
}
|
|
8676
8676
|
const Yy = (e, t) => ({ tr: n, state: s, dispatch: i }) => {
|
|
8677
8677
|
let o = null, a = null;
|
|
8678
|
-
const l =
|
|
8678
|
+
const l = $c(typeof e == "string" ? e : e.name, s.schema);
|
|
8679
8679
|
return l ? (l === "node" && (o = Ue(e, s.schema)), l === "mark" && (a = sn(e, s.schema)), i && n.selection.ranges.forEach((c) => {
|
|
8680
8680
|
s.doc.nodesBetween(c.$from.pos, c.$to.pos, (d, h) => {
|
|
8681
|
-
o && o === d.type && n.setNodeMarkup(h, void 0,
|
|
8682
|
-
a === u.type && n.addMark(h, h + d.nodeSize, a.create(
|
|
8681
|
+
o && o === d.type && n.setNodeMarkup(h, void 0, fa(d.attrs, t)), a && d.marks.length && d.marks.forEach((u) => {
|
|
8682
|
+
a === u.type && n.addMark(h, h + d.nodeSize, a.create(fa(u.attrs, t)));
|
|
8683
8683
|
});
|
|
8684
8684
|
});
|
|
8685
8685
|
}), !0) : !1;
|
|
@@ -8754,7 +8754,7 @@ function cj(e, t, n = {}) {
|
|
|
8754
8754
|
const c = l.filter((u) => o ? o.name === u.mark.type.name : !0).filter((u) => Hr(u.mark.attrs, n, { strict: !1 })).reduce((u, p) => u + p.to - p.from, 0), d = l.filter((u) => o ? u.mark.type !== o && u.mark.type.excludes(o) : !0).reduce((u, p) => u + p.to - p.from, 0);
|
|
8755
8755
|
return (c > 0 ? c + d : c) >= a;
|
|
8756
8756
|
}
|
|
8757
|
-
function
|
|
8757
|
+
function ga(e, t) {
|
|
8758
8758
|
const { nodeExtensions: n } = py(t), s = n.find((a) => a.name === e);
|
|
8759
8759
|
if (!s)
|
|
8760
8760
|
return !1;
|
|
@@ -8769,7 +8769,7 @@ function dj(e, t, n) {
|
|
|
8769
8769
|
var s;
|
|
8770
8770
|
const { selection: i } = t;
|
|
8771
8771
|
let o = null;
|
|
8772
|
-
if (
|
|
8772
|
+
if (Rc(i) && (o = i.$cursor), o) {
|
|
8773
8773
|
const l = (s = e.storedMarks) !== null && s !== void 0 ? s : o.marks();
|
|
8774
8774
|
return !!n.isInSet(l) || !l.some((c) => c.type.excludes(n));
|
|
8775
8775
|
}
|
|
@@ -8812,7 +8812,7 @@ const uj = (e, t = {}) => ({ tr: n, state: s, dispatch: i }) => {
|
|
|
8812
8812
|
return dj(s, n, c);
|
|
8813
8813
|
}, hj = (e, t) => ({ tr: n }) => (n.setMeta(e, t), !0), pj = (e, t = {}) => ({ state: n, dispatch: s, chain: i }) => {
|
|
8814
8814
|
const o = Ue(e, n.schema);
|
|
8815
|
-
return o.isTextblock ? i().command(({ commands: a }) =>
|
|
8815
|
+
return o.isTextblock ? i().command(({ commands: a }) => Yo(o, t)(n) ? !0 : a.clearNodes()).command(({ state: a }) => Yo(o, t)(a, s)).run() : (console.warn('[tiptap warn]: Currently "setNode()" only supports text block nodes.'), !1);
|
|
8816
8816
|
}, xj = (e) => ({ tr: t, dispatch: n }) => {
|
|
8817
8817
|
if (n) {
|
|
8818
8818
|
const { doc: s } = t, i = xn(e, 0, s.content.size), o = lt.create(s, i);
|
|
@@ -8829,7 +8829,7 @@ const uj = (e, t = {}) => ({ tr: n, state: s, dispatch: i }) => {
|
|
|
8829
8829
|
const s = Ue(e, t.schema);
|
|
8830
8830
|
return Jp(s)(t, n);
|
|
8831
8831
|
};
|
|
8832
|
-
function
|
|
8832
|
+
function ba(e, t) {
|
|
8833
8833
|
const n = e.storedMarks || e.selection.$to.parentOffset && e.selection.$from.marks();
|
|
8834
8834
|
if (n) {
|
|
8835
8835
|
const s = n.filter((i) => t == null ? void 0 : t.includes(i.type.name));
|
|
@@ -8839,7 +8839,7 @@ function ga(e, t) {
|
|
|
8839
8839
|
const gj = ({ keepMarks: e = !0 } = {}) => ({ tr: t, state: n, dispatch: s, editor: i }) => {
|
|
8840
8840
|
const { selection: o, doc: a } = t, { $from: l, $to: c } = o, d = i.extensionManager.attributes, h = Or(d, l.node().type.name, l.node().attrs);
|
|
8841
8841
|
if (o instanceof lt && o.node.isBlock)
|
|
8842
|
-
return !l.parentOffset || !$r(a, l.pos) ? !1 : (s && (e &&
|
|
8842
|
+
return !l.parentOffset || !$r(a, l.pos) ? !1 : (s && (e && ba(n, i.extensionManager.splittableMarks), t.split(l.pos).scrollIntoView()), !0);
|
|
8843
8843
|
if (!l.parent.isBlock)
|
|
8844
8844
|
return !1;
|
|
8845
8845
|
if (s) {
|
|
@@ -8861,7 +8861,7 @@ const gj = ({ keepMarks: e = !0 } = {}) => ({ tr: t, state: n, dispatch: s, edit
|
|
|
8861
8861
|
const _ = t.mapping.map(l.before()), I = t.doc.resolve(_);
|
|
8862
8862
|
l.node(-1).canReplaceWith(I.index(), I.index() + 1, p) && t.setNodeMarkup(t.mapping.map(l.before()), p);
|
|
8863
8863
|
}
|
|
8864
|
-
e &&
|
|
8864
|
+
e && ba(n, i.extensionManager.splittableMarks), t.scrollIntoView();
|
|
8865
8865
|
}
|
|
8866
8866
|
return !0;
|
|
8867
8867
|
}, bj = (e) => ({ tr: t, state: n, dispatch: s, editor: i }) => {
|
|
@@ -8918,7 +8918,7 @@ const gj = ({ keepMarks: e = !0 } = {}) => ({ tr: t, state: n, dispatch: s, edit
|
|
|
8918
8918
|
if (s === void 0)
|
|
8919
8919
|
return !0;
|
|
8920
8920
|
const i = e.doc.nodeAt(s);
|
|
8921
|
-
return n.node.type === (i == null ? void 0 : i.type) &&
|
|
8921
|
+
return n.node.type === (i == null ? void 0 : i.type) && Dc(e.doc, n.pos) && e.join(n.pos), !0;
|
|
8922
8922
|
}, Bs = (e, t) => {
|
|
8923
8923
|
const n = qi((a) => a.type === t)(e.selection);
|
|
8924
8924
|
if (!n)
|
|
@@ -8927,16 +8927,16 @@ const gj = ({ keepMarks: e = !0 } = {}) => ({ tr: t, state: n, dispatch: s, edit
|
|
|
8927
8927
|
if (s === void 0)
|
|
8928
8928
|
return !0;
|
|
8929
8929
|
const i = e.doc.nodeAt(s);
|
|
8930
|
-
return n.node.type === (i == null ? void 0 : i.type) &&
|
|
8930
|
+
return n.node.type === (i == null ? void 0 : i.type) && Dc(e.doc, s) && e.join(s), !0;
|
|
8931
8931
|
}, yj = (e, t, n, s = {}) => ({ editor: i, tr: o, state: a, dispatch: l, chain: c, commands: d, can: h }) => {
|
|
8932
8932
|
const { extensions: u, splittableMarks: p } = i.extensionManager, x = Ue(e, a.schema), g = Ue(t, a.schema), { selection: _, storedMarks: I } = a, { $from: E, $to: q } = _, U = E.blockRange(q), te = I || _.$to.parentOffset && _.$from.marks();
|
|
8933
8933
|
if (!U)
|
|
8934
8934
|
return !1;
|
|
8935
|
-
const X = qi((we) =>
|
|
8935
|
+
const X = qi((we) => ga(we.type.name, u))(_);
|
|
8936
8936
|
if (U.depth >= 1 && X && U.depth - X.depth <= 1) {
|
|
8937
8937
|
if (X.node.type === x)
|
|
8938
8938
|
return d.liftListItem(g);
|
|
8939
|
-
if (
|
|
8939
|
+
if (ga(X.node.type.name, u) && x.validContent(X.node.content) && l)
|
|
8940
8940
|
return c().command(() => (o.setNodeMarkup(X.pos, x), !0)).command(() => Ns(o, x)).command(() => Bs(o, x)).run();
|
|
8941
8941
|
}
|
|
8942
8942
|
return !n || !te || !l ? c().command(() => h().wrapInList(x, s) ? !0 : d.clearNodes()).wrapInList(x, s).command(() => Ns(o, x)).command(() => Bs(o, x)).run() : c().command(() => {
|
|
@@ -8984,7 +8984,7 @@ const gj = ({ keepMarks: e = !0 } = {}) => ({ tr: t, state: n, dispatch: s, edit
|
|
|
8984
8984
|
return !0;
|
|
8985
8985
|
if (h && a) {
|
|
8986
8986
|
let { from: p, to: x } = l;
|
|
8987
|
-
const g = (o = d.marks().find((I) => I.type === c)) === null || o === void 0 ? void 0 : o.attrs, _ =
|
|
8987
|
+
const g = (o = d.marks().find((I) => I.type === c)) === null || o === void 0 ? void 0 : o.attrs, _ = Ec(d, c, g);
|
|
8988
8988
|
_ && (p = _.from, x = _.to), n.removeMark(p, x, c);
|
|
8989
8989
|
} else
|
|
8990
8990
|
u.forEach((p) => {
|
|
@@ -8993,7 +8993,7 @@ const gj = ({ keepMarks: e = !0 } = {}) => ({ tr: t, state: n, dispatch: s, edit
|
|
|
8993
8993
|
return n.removeStoredMark(c), !0;
|
|
8994
8994
|
}, kj = (e, t = {}) => ({ tr: n, state: s, dispatch: i }) => {
|
|
8995
8995
|
let o = null, a = null;
|
|
8996
|
-
const l =
|
|
8996
|
+
const l = $c(typeof e == "string" ? e : e.name, s.schema);
|
|
8997
8997
|
return l ? (l === "node" && (o = Ue(e, s.schema)), l === "mark" && (a = sn(e, s.schema)), i && n.selection.ranges.forEach((c) => {
|
|
8998
8998
|
const d = c.$from.pos, h = c.$to.pos;
|
|
8999
8999
|
s.doc.nodesBetween(d, h, (u, p) => {
|
|
@@ -9165,7 +9165,7 @@ At.create({
|
|
|
9165
9165
|
"Ctrl-a": () => this.editor.commands.selectTextblockStart(),
|
|
9166
9166
|
"Ctrl-e": () => this.editor.commands.selectTextblockEnd()
|
|
9167
9167
|
};
|
|
9168
|
-
return Pi() ||
|
|
9168
|
+
return Pi() || Fc() ? o : i;
|
|
9169
9169
|
},
|
|
9170
9170
|
addProseMirrorPlugins() {
|
|
9171
9171
|
return [
|
|
@@ -9182,7 +9182,7 @@ At.create({
|
|
|
9182
9182
|
const { empty: i, from: o, to: a } = t.selection, l = Se.atStart(t.doc).from, c = Se.atEnd(t.doc).to;
|
|
9183
9183
|
if (i || !(o === l && a === c) || !(n.doc.textBetween(0, n.doc.content.size, " ", " ").length === 0))
|
|
9184
9184
|
return;
|
|
9185
|
-
const u = n.tr, p =
|
|
9185
|
+
const u = n.tr, p = Mc({
|
|
9186
9186
|
state: n,
|
|
9187
9187
|
transaction: u
|
|
9188
9188
|
}), { commands: x } = new hy({
|
|
@@ -9209,7 +9209,7 @@ At.create({
|
|
|
9209
9209
|
];
|
|
9210
9210
|
}
|
|
9211
9211
|
});
|
|
9212
|
-
const
|
|
9212
|
+
const Oc = At.create({
|
|
9213
9213
|
name: "fontSize",
|
|
9214
9214
|
addOptions() {
|
|
9215
9215
|
return {
|
|
@@ -9261,7 +9261,7 @@ const $c = At.create({
|
|
|
9261
9261
|
editor: e
|
|
9262
9262
|
}) => {
|
|
9263
9263
|
const t = e.getAttributes("textStyle").fontSize;
|
|
9264
|
-
return /* @__PURE__ */ r.jsx(ee.ControlsGroup, { children: /* @__PURE__ */ r.jsx(
|
|
9264
|
+
return /* @__PURE__ */ r.jsx(ee.ControlsGroup, { children: /* @__PURE__ */ r.jsx(Qa, { size: "xs", icon: /* @__PURE__ */ r.jsx(gi, { stroke: 1.5, size: 16 }), data: Lj, styles: Mj, value: t || "", onChange: (n) => {
|
|
9265
9265
|
const s = n.currentTarget.value;
|
|
9266
9266
|
s ? e.chain().focus().setFontSize(s).run() : e.chain().focus().unsetFontSize().run();
|
|
9267
9267
|
} }) });
|
|
@@ -9270,18 +9270,18 @@ const $c = At.create({
|
|
|
9270
9270
|
styles: t = {},
|
|
9271
9271
|
sx: n = {}
|
|
9272
9272
|
}) => {
|
|
9273
|
-
const s =
|
|
9274
|
-
extensions: [
|
|
9273
|
+
const s = Ml({
|
|
9274
|
+
extensions: [Al, Ll, yl, Sl, _l, vl, Tl.configure({
|
|
9275
9275
|
resizable: !1,
|
|
9276
9276
|
// https://github.com/ueberdosis/tiptap/issues/2041
|
|
9277
9277
|
HTMLAttributes: {
|
|
9278
9278
|
class: "rich-text-table-render"
|
|
9279
9279
|
}
|
|
9280
|
-
}), Dl, Il,
|
|
9280
|
+
}), zl, Dl, Il, Cl.configure({
|
|
9281
9281
|
types: ["heading", "paragraph"]
|
|
9282
|
-
}),
|
|
9282
|
+
}), wl.configure({
|
|
9283
9283
|
placeholder: "This is placeholder"
|
|
9284
|
-
}),
|
|
9284
|
+
}), kl, jl, Oc],
|
|
9285
9285
|
content: e,
|
|
9286
9286
|
editable: !1
|
|
9287
9287
|
});
|
|
@@ -9367,7 +9367,7 @@ const Rj = ({
|
|
|
9367
9367
|
}, children: [
|
|
9368
9368
|
/* @__PURE__ */ r.jsx(y, { position: "left", children: /* @__PURE__ */ r.jsx(Ej, {}) }),
|
|
9369
9369
|
/* @__PURE__ */ r.jsxs(y, { position: "right", children: [
|
|
9370
|
-
/* @__PURE__ */ r.jsx(C, { onClick: h, size: "xs", variant: "default", leftIcon: /* @__PURE__ */ r.jsx(
|
|
9370
|
+
/* @__PURE__ */ r.jsx(C, { onClick: h, size: "xs", variant: "default", leftIcon: /* @__PURE__ */ r.jsx(dl, { size: 16 }), children: o("common.actions.reset_to_default") }),
|
|
9371
9371
|
/* @__PURE__ */ r.jsx(C, { onClick: d, color: "red", size: "xs", disabled: !u, leftIcon: /* @__PURE__ */ r.jsx(mr, { size: 16 }), children: o("common.actions.revert_changes") }),
|
|
9372
9372
|
/* @__PURE__ */ r.jsx(C, { color: "green", size: "xs", onClick: c, disabled: !u, leftIcon: /* @__PURE__ */ r.jsx(Ft, { size: 16 }), children: o("common.actions.save_changes") })
|
|
9373
9373
|
] })
|
|
@@ -9375,7 +9375,7 @@ const Rj = ({
|
|
|
9375
9375
|
/* @__PURE__ */ r.jsx(j, { size: 14, children: n }),
|
|
9376
9376
|
/* @__PURE__ */ r.jsx(Rj, { value: a, onChange: l })
|
|
9377
9377
|
] });
|
|
9378
|
-
}),
|
|
9378
|
+
}), Pc = me(({
|
|
9379
9379
|
title: e,
|
|
9380
9380
|
value: t,
|
|
9381
9381
|
onChange: n,
|
|
@@ -9454,7 +9454,7 @@ function $j({
|
|
|
9454
9454
|
} : u === "custom" ? {
|
|
9455
9455
|
type: "custom",
|
|
9456
9456
|
config: {
|
|
9457
|
-
func:
|
|
9457
|
+
func: ta
|
|
9458
9458
|
},
|
|
9459
9459
|
fallback: t.fallback
|
|
9460
9460
|
} : {
|
|
@@ -9488,14 +9488,14 @@ function $j({
|
|
|
9488
9488
|
/* @__PURE__ */ r.jsxs(y, { grow: !0, noWrap: !0, pt: s, children: [
|
|
9489
9489
|
/* @__PURE__ */ r.jsx(A, { ref: o, label: e, data: Fj, value: t.type, onChange: l, maxDropdownHeight: 600 }),
|
|
9490
9490
|
t.type === "quantile" && /* @__PURE__ */ r.jsx(Y, { label: "p", value: t.config.p, onChange: c, precision: 2, min: 0.05, step: 0.05, max: 1 }),
|
|
9491
|
-
t.type === "custom" && /* @__PURE__ */ r.jsx(
|
|
9491
|
+
t.type === "custom" && /* @__PURE__ */ r.jsx(Pc, { title: "Custom Aggregation", label: "", triggerLabel: "Edit Function", value: t.config.func, onChange: d, defaultValue: ta, triggerButtonProps: {
|
|
9492
9492
|
size: "xs",
|
|
9493
9493
|
sx: {
|
|
9494
9494
|
flexGrow: 0,
|
|
9495
9495
|
alignSelf: "center",
|
|
9496
9496
|
marginTop: "22px"
|
|
9497
9497
|
},
|
|
9498
|
-
leftIcon: /* @__PURE__ */ r.jsx(
|
|
9498
|
+
leftIcon: /* @__PURE__ */ r.jsx(ul, { size: 16 })
|
|
9499
9499
|
} })
|
|
9500
9500
|
] }),
|
|
9501
9501
|
i && /* @__PURE__ */ r.jsx(D, { label: a("panel.variable.aggregation.fallback_value"), description: a("panel.variable.aggregation.fallback_value_description"), value: t.fallback, onChange: h })
|
|
@@ -9632,7 +9632,7 @@ const Vj = ({
|
|
|
9632
9632
|
}, {
|
|
9633
9633
|
label: "Dynamic",
|
|
9634
9634
|
value: "dynamic"
|
|
9635
|
-
}],
|
|
9635
|
+
}], Vc = me(({
|
|
9636
9636
|
label: e = "Size",
|
|
9637
9637
|
value: t,
|
|
9638
9638
|
onChange: n
|
|
@@ -9736,7 +9736,7 @@ function Hj({
|
|
|
9736
9736
|
}, children: /* @__PURE__ */ r.jsx(Ve, { label: "Show Symbol on Line", checked: i.value, onChange: (o) => i.onChange(o.currentTarget.checked) }) }) }),
|
|
9737
9737
|
s && /* @__PURE__ */ r.jsx(b, { name: `series.${t}.symbolSize`, control: e, render: ({
|
|
9738
9738
|
field: i
|
|
9739
|
-
}) => /* @__PURE__ */ r.jsx(
|
|
9739
|
+
}) => /* @__PURE__ */ r.jsx(Vc, { label: "Symbol Size", ...i }) })
|
|
9740
9740
|
] })
|
|
9741
9741
|
] });
|
|
9742
9742
|
}
|
|
@@ -9746,7 +9746,7 @@ function Uj({
|
|
|
9746
9746
|
}) {
|
|
9747
9747
|
return /* @__PURE__ */ r.jsx(b, { name: `series.${t}.symbolSize`, control: e, render: ({
|
|
9748
9748
|
field: n
|
|
9749
|
-
}) => /* @__PURE__ */ r.jsx(
|
|
9749
|
+
}) => /* @__PURE__ */ r.jsx(Vc, { label: "Size", ...n }) });
|
|
9750
9750
|
}
|
|
9751
9751
|
const Kj = [{
|
|
9752
9752
|
label: "off",
|
|
@@ -11266,7 +11266,7 @@ const Jv = {
|
|
|
11266
11266
|
config: Bi
|
|
11267
11267
|
})
|
|
11268
11268
|
};
|
|
11269
|
-
function
|
|
11269
|
+
function ya({
|
|
11270
11270
|
enabled: e,
|
|
11271
11271
|
func_content: t
|
|
11272
11272
|
}) {
|
|
@@ -11281,7 +11281,7 @@ function ba({
|
|
|
11281
11281
|
};
|
|
11282
11282
|
}
|
|
11283
11283
|
function Zv(e) {
|
|
11284
|
-
const t =
|
|
11284
|
+
const t = ya(e.x_axis.axisLabel.formatter), n = ya(e.y_axis.axisLabel.formatter);
|
|
11285
11285
|
return {
|
|
11286
11286
|
x_axis: t,
|
|
11287
11287
|
y_axis: n
|
|
@@ -11440,7 +11440,7 @@ const ow = ({
|
|
|
11440
11440
|
enabled: !1
|
|
11441
11441
|
}
|
|
11442
11442
|
} }) });
|
|
11443
|
-
},
|
|
11443
|
+
}, qc = {
|
|
11444
11444
|
static: {
|
|
11445
11445
|
type: "static",
|
|
11446
11446
|
value: 10
|
|
@@ -11475,7 +11475,7 @@ const ow = ({
|
|
|
11475
11475
|
value: u
|
|
11476
11476
|
}));
|
|
11477
11477
|
}, h = () => {
|
|
11478
|
-
d(
|
|
11478
|
+
d(qc.dynamic.value);
|
|
11479
11479
|
};
|
|
11480
11480
|
return /* @__PURE__ */ r.jsxs(r.Fragment, { children: [
|
|
11481
11481
|
/* @__PURE__ */ r.jsx(z, { sx: {
|
|
@@ -11524,7 +11524,7 @@ const ow = ({
|
|
|
11524
11524
|
}, s) => {
|
|
11525
11525
|
const i = (o) => {
|
|
11526
11526
|
n({
|
|
11527
|
-
...
|
|
11527
|
+
...qc[o]
|
|
11528
11528
|
});
|
|
11529
11529
|
};
|
|
11530
11530
|
return /* @__PURE__ */ r.jsxs(tn, { cols: 2, children: [
|
|
@@ -11689,7 +11689,7 @@ function fw(e) {
|
|
|
11689
11689
|
function gw(e) {
|
|
11690
11690
|
return /* @__PURE__ */ r.jsx(j, { children: "Click heat block" });
|
|
11691
11691
|
}
|
|
11692
|
-
const
|
|
11692
|
+
const Nc = {
|
|
11693
11693
|
id: "builtin:echarts:click-heatmap:heat-block",
|
|
11694
11694
|
displayName: "Click Heat Block",
|
|
11695
11695
|
nameRender: gw,
|
|
@@ -11775,7 +11775,7 @@ function bw({
|
|
|
11775
11775
|
const a = T(() => {
|
|
11776
11776
|
const u = P(e.x_axis.data_key), p = P(e.y_axis.data_key);
|
|
11777
11777
|
return w.keyBy(t[u.queryID], (x) => `${x[u.columnKey]}---${x[p.columnKey]}`);
|
|
11778
|
-
}, [t, e.x_axis.data_key, e.y_axis.data_key]), l = bt(i.triggerManager,
|
|
11778
|
+
}, [t, e.x_axis.data_key, e.y_axis.data_key]), l = bt(i.triggerManager, Nc.id), c = Ge((u) => {
|
|
11779
11779
|
const [p, x] = u.value, g = w.get(a, `${p}---${x}`, {
|
|
11780
11780
|
error: "rowData is not found"
|
|
11781
11781
|
});
|
|
@@ -11956,7 +11956,7 @@ const Sw = ({
|
|
|
11956
11956
|
enabled: !1,
|
|
11957
11957
|
func_content: ["function label(value, index) {", " // your code goes here", " // return value", "}"].join(`
|
|
11958
11958
|
`)
|
|
11959
|
-
},
|
|
11959
|
+
}, Bc = me(({
|
|
11960
11960
|
value: e,
|
|
11961
11961
|
onChange: t
|
|
11962
11962
|
}, n) => {
|
|
@@ -12047,7 +12047,7 @@ function kw({
|
|
|
12047
12047
|
) }),
|
|
12048
12048
|
/* @__PURE__ */ r.jsx(b, { name: "x_axis.axisLabel.formatter", control: e, render: ({
|
|
12049
12049
|
field: n
|
|
12050
|
-
}) => /* @__PURE__ */ r.jsx(
|
|
12050
|
+
}) => /* @__PURE__ */ r.jsx(Bc, { ...n }) })
|
|
12051
12051
|
] })
|
|
12052
12052
|
] });
|
|
12053
12053
|
}
|
|
@@ -12109,7 +12109,7 @@ function Iw({
|
|
|
12109
12109
|
) }),
|
|
12110
12110
|
/* @__PURE__ */ r.jsx(b, { name: "y_axis.axisLabel.formatter", control: e, render: ({
|
|
12111
12111
|
field: n
|
|
12112
|
-
}) => /* @__PURE__ */ r.jsx(
|
|
12112
|
+
}) => /* @__PURE__ */ r.jsx(Bc, { ...n }) })
|
|
12113
12113
|
] })
|
|
12114
12114
|
] });
|
|
12115
12115
|
}
|
|
@@ -12283,8 +12283,8 @@ const Ew = {
|
|
|
12283
12283
|
version: 4,
|
|
12284
12284
|
config: Gi
|
|
12285
12285
|
}),
|
|
12286
|
-
triggers: [
|
|
12287
|
-
},
|
|
12286
|
+
triggers: [Nc]
|
|
12287
|
+
}, Wc = {
|
|
12288
12288
|
id: "builtin:echarts:click-echart:series",
|
|
12289
12289
|
// use same id as cartesian's, but different payload
|
|
12290
12290
|
displayName: "Click Chart Series",
|
|
@@ -12318,7 +12318,7 @@ function Rw(e) {
|
|
|
12318
12318
|
function Fw(e) {
|
|
12319
12319
|
return /* @__PURE__ */ r.jsx(j, { children: "Click chart's series" });
|
|
12320
12320
|
}
|
|
12321
|
-
const
|
|
12321
|
+
const Gc = {
|
|
12322
12322
|
label_template: "${percentage.x} of ${x_axis.name} causes ${percentage.y} of ${bar.name}",
|
|
12323
12323
|
color: "#789AB4"
|
|
12324
12324
|
}, Qi = {
|
|
@@ -12346,7 +12346,7 @@ const Wc = {
|
|
|
12346
12346
|
color: "red"
|
|
12347
12347
|
},
|
|
12348
12348
|
dataZoom: kn,
|
|
12349
|
-
markLine:
|
|
12349
|
+
markLine: Gc
|
|
12350
12350
|
};
|
|
12351
12351
|
function Kr(e) {
|
|
12352
12352
|
return se(e, {
|
|
@@ -12606,7 +12606,7 @@ function Hw({
|
|
|
12606
12606
|
} = e.viewport, a = Te({}, n, Qi), l = Qw(a, s), c = yt({
|
|
12607
12607
|
vizManager: e.vizManager,
|
|
12608
12608
|
instance: t
|
|
12609
|
-
}), d = bt(c.triggerManager,
|
|
12609
|
+
}), d = bt(c.triggerManager, Wc.id), h = Tn(s, a.x_axis.data_key), u = Ge((x) => {
|
|
12610
12610
|
const g = w.get(h, x.name, {
|
|
12611
12611
|
error: "rowData is not found"
|
|
12612
12612
|
});
|
|
@@ -12874,7 +12874,7 @@ function s0(e) {
|
|
|
12874
12874
|
}
|
|
12875
12875
|
function i0(e) {
|
|
12876
12876
|
const {
|
|
12877
|
-
markLine: t =
|
|
12877
|
+
markLine: t = Gc,
|
|
12878
12878
|
...n
|
|
12879
12879
|
} = e;
|
|
12880
12880
|
return {
|
|
@@ -13039,7 +13039,7 @@ const p0 = {
|
|
|
13039
13039
|
config: Ne(Qi)
|
|
13040
13040
|
};
|
|
13041
13041
|
},
|
|
13042
|
-
triggers: [
|
|
13042
|
+
triggers: [Wc]
|
|
13043
13043
|
};
|
|
13044
13044
|
function x0(e, t, n) {
|
|
13045
13045
|
const {
|
|
@@ -13103,7 +13103,7 @@ function m0(e, t, n) {
|
|
|
13103
13103
|
series: x0(e, t, n)
|
|
13104
13104
|
};
|
|
13105
13105
|
}
|
|
13106
|
-
const
|
|
13106
|
+
const Qc = {
|
|
13107
13107
|
id: "builtin:echarts:click-pie-chart:series",
|
|
13108
13108
|
displayName: "Click Pie Series",
|
|
13109
13109
|
nameRender: g0,
|
|
@@ -13152,7 +13152,7 @@ function b0({
|
|
|
13152
13152
|
height: s,
|
|
13153
13153
|
interactionManager: i
|
|
13154
13154
|
}) {
|
|
13155
|
-
const o = Tn(t, e.label_field), a = bt(i.triggerManager,
|
|
13155
|
+
const o = Tn(t, e.label_field), a = bt(i.triggerManager, Qc.id), l = M.useCallback((h) => {
|
|
13156
13156
|
const u = w.get(o, h.name, {
|
|
13157
13157
|
error: "rowData is not found"
|
|
13158
13158
|
});
|
|
@@ -13292,7 +13292,7 @@ const S0 = {
|
|
|
13292
13292
|
config: Ne(Hi)
|
|
13293
13293
|
};
|
|
13294
13294
|
},
|
|
13295
|
-
triggers: [
|
|
13295
|
+
triggers: [Qc]
|
|
13296
13296
|
};
|
|
13297
13297
|
function C0(e) {
|
|
13298
13298
|
return /* @__PURE__ */ r.jsx(r.Fragment, {});
|
|
@@ -13300,7 +13300,7 @@ function C0(e) {
|
|
|
13300
13300
|
function k0(e) {
|
|
13301
13301
|
return /* @__PURE__ */ r.jsx(j, { children: "Click heat block" });
|
|
13302
13302
|
}
|
|
13303
|
-
const
|
|
13303
|
+
const Hc = {
|
|
13304
13304
|
id: "builtin:echarts:click-radar-chart:series",
|
|
13305
13305
|
displayName: "Click radar chart series",
|
|
13306
13306
|
nameRender: k0,
|
|
@@ -13341,7 +13341,7 @@ const Qc = {
|
|
|
13341
13341
|
},
|
|
13342
13342
|
dimensions: []
|
|
13343
13343
|
};
|
|
13344
|
-
function
|
|
13344
|
+
function Uc(e) {
|
|
13345
13345
|
return e ? (t) => {
|
|
13346
13346
|
try {
|
|
13347
13347
|
return se(t, e);
|
|
@@ -13350,16 +13350,16 @@ function Hc(e) {
|
|
|
13350
13350
|
}
|
|
13351
13351
|
} : (t) => t;
|
|
13352
13352
|
}
|
|
13353
|
-
function
|
|
13353
|
+
function Kc(e) {
|
|
13354
13354
|
return {
|
|
13355
13355
|
show: e.label.enabled,
|
|
13356
13356
|
formatter: ({
|
|
13357
13357
|
dimensionIndex: t,
|
|
13358
13358
|
value: n
|
|
13359
|
-
}) =>
|
|
13359
|
+
}) => Uc(e.dimensions[t].formatter)(n)
|
|
13360
13360
|
};
|
|
13361
13361
|
}
|
|
13362
|
-
function
|
|
13362
|
+
function Yc(e, t) {
|
|
13363
13363
|
return t.map(({
|
|
13364
13364
|
data_key: n
|
|
13365
13365
|
}) => {
|
|
@@ -13370,7 +13370,7 @@ function Kc(e, t) {
|
|
|
13370
13370
|
function T0(e, t, n) {
|
|
13371
13371
|
const s = P(t);
|
|
13372
13372
|
return e[s.queryID].map((i) => ({
|
|
13373
|
-
value:
|
|
13373
|
+
value: Yc(i, n),
|
|
13374
13374
|
name: i[s.columnKey]
|
|
13375
13375
|
}));
|
|
13376
13376
|
}
|
|
@@ -13395,7 +13395,7 @@ function I0(e, t) {
|
|
|
13395
13395
|
areaStyle: t.background.enabled ? {
|
|
13396
13396
|
opacity: 0.4
|
|
13397
13397
|
} : void 0,
|
|
13398
|
-
label:
|
|
13398
|
+
label: Kc(t)
|
|
13399
13399
|
}];
|
|
13400
13400
|
}
|
|
13401
13401
|
function D0(e, t) {
|
|
@@ -13412,7 +13412,7 @@ function D0(e, t) {
|
|
|
13412
13412
|
const u = h[a.columnKey], p = h[l.columnKey];
|
|
13413
13413
|
return {
|
|
13414
13414
|
name: u,
|
|
13415
|
-
value:
|
|
13415
|
+
value: Yc(h, s),
|
|
13416
13416
|
itemStyle: {
|
|
13417
13417
|
color: p
|
|
13418
13418
|
}
|
|
@@ -13430,7 +13430,7 @@ function D0(e, t) {
|
|
|
13430
13430
|
areaStyle: t.background.enabled ? {
|
|
13431
13431
|
opacity: 0.4
|
|
13432
13432
|
} : void 0,
|
|
13433
|
-
label:
|
|
13433
|
+
label: Kc(t)
|
|
13434
13434
|
};
|
|
13435
13435
|
}).flat();
|
|
13436
13436
|
}
|
|
@@ -13446,7 +13446,7 @@ function L0(e) {
|
|
|
13446
13446
|
if (s.length === 0)
|
|
13447
13447
|
return "";
|
|
13448
13448
|
const i = s.map((o, a) => {
|
|
13449
|
-
const l = e.dimensions[a], c =
|
|
13449
|
+
const l = e.dimensions[a], c = Uc(l.formatter);
|
|
13450
13450
|
return `
|
|
13451
13451
|
<tr>
|
|
13452
13452
|
<td style="padding-left: 18px;">${l.name}</td>
|
|
@@ -13549,7 +13549,7 @@ function R0({
|
|
|
13549
13549
|
...x,
|
|
13550
13550
|
...g
|
|
13551
13551
|
};
|
|
13552
|
-
}, [t, e.series_name_key, e.additional_series]), l = bt(i.triggerManager,
|
|
13552
|
+
}, [t, e.series_name_key, e.additional_series]), l = bt(i.triggerManager, Hc.id), c = Ge((u) => {
|
|
13553
13553
|
const p = w.get(a, u.name, {
|
|
13554
13554
|
error: "rowData is not found"
|
|
13555
13555
|
});
|
|
@@ -13582,7 +13582,7 @@ function F0({
|
|
|
13582
13582
|
width: l,
|
|
13583
13583
|
height: c
|
|
13584
13584
|
} = e.viewport;
|
|
13585
|
-
return !l || !c || !o ||
|
|
13585
|
+
return !l || !c || !o || sl(o == null ? void 0 : o.dimensions) ? null : /* @__PURE__ */ r.jsx(rt, { width: l, height: c, children: /* @__PURE__ */ r.jsx(R0, { variables: i, width: Ct(l), height: kt(c), data: a, conf: o, interactionManager: n }) });
|
|
13586
13586
|
}
|
|
13587
13587
|
function $0({
|
|
13588
13588
|
control: e,
|
|
@@ -13968,7 +13968,7 @@ const K0 = {
|
|
|
13968
13968
|
version: 7,
|
|
13969
13969
|
config: fs
|
|
13970
13970
|
}),
|
|
13971
|
-
triggers: [
|
|
13971
|
+
triggers: [Hc]
|
|
13972
13972
|
};
|
|
13973
13973
|
function Y0(e, t) {
|
|
13974
13974
|
const {
|
|
@@ -13992,7 +13992,7 @@ function Y0(e, t) {
|
|
|
13992
13992
|
}
|
|
13993
13993
|
}));
|
|
13994
13994
|
}
|
|
13995
|
-
function
|
|
13995
|
+
function Xc(e, t) {
|
|
13996
13996
|
const n = P(e.x_axis.data_key), s = P(e.regression.y_axis_data_key);
|
|
13997
13997
|
return w.uniqBy(t.map((i) => [i[n.columnKey], i[s.columnKey]]), 0);
|
|
13998
13998
|
}
|
|
@@ -14000,7 +14000,7 @@ function X0(e, t) {
|
|
|
14000
14000
|
const {
|
|
14001
14001
|
plot: n,
|
|
14002
14002
|
transform: s
|
|
14003
|
-
} = e.regression, i =
|
|
14003
|
+
} = e.regression, i = Xc(e, t);
|
|
14004
14004
|
return [{
|
|
14005
14005
|
type: "scatter",
|
|
14006
14006
|
name: e.y_axis.name,
|
|
@@ -14024,7 +14024,7 @@ function J0(e, t) {
|
|
|
14024
14024
|
group_by_key: i
|
|
14025
14025
|
} = e.regression, o = P(i), a = w.groupBy(t, o.columnKey);
|
|
14026
14026
|
return Object.entries(a).map(([l, c]) => {
|
|
14027
|
-
const d =
|
|
14027
|
+
const d = Xc(e, c);
|
|
14028
14028
|
return {
|
|
14029
14029
|
type: "scatter",
|
|
14030
14030
|
name: l,
|
|
@@ -14091,7 +14091,7 @@ function t_(e) {
|
|
|
14091
14091
|
}
|
|
14092
14092
|
});
|
|
14093
14093
|
}
|
|
14094
|
-
function
|
|
14094
|
+
function Jc({
|
|
14095
14095
|
enabled: e,
|
|
14096
14096
|
func_content: t
|
|
14097
14097
|
}) {
|
|
@@ -14126,7 +14126,7 @@ function n_(e) {
|
|
|
14126
14126
|
c = se(a, n);
|
|
14127
14127
|
} catch {
|
|
14128
14128
|
}
|
|
14129
|
-
return
|
|
14129
|
+
return Jc(s)(c, l);
|
|
14130
14130
|
}
|
|
14131
14131
|
}
|
|
14132
14132
|
});
|
|
@@ -14178,7 +14178,7 @@ function s_(e, t) {
|
|
|
14178
14178
|
};
|
|
14179
14179
|
return Ce({}, i, r_);
|
|
14180
14180
|
}
|
|
14181
|
-
const
|
|
14181
|
+
const ja = {
|
|
14182
14182
|
output: "number",
|
|
14183
14183
|
mantissa: 2,
|
|
14184
14184
|
trimMantissa: !0,
|
|
@@ -14201,9 +14201,9 @@ function i_(e, t, n, s) {
|
|
|
14201
14201
|
expression: /* @__PURE__ */ r.jsxs(y, { position: "center", noWrap: !0, spacing: 10, children: [
|
|
14202
14202
|
/* @__PURE__ */ r.jsx(j, { children: o.name }),
|
|
14203
14203
|
/* @__PURE__ */ r.jsx(j, { children: "=" }),
|
|
14204
|
-
/* @__PURE__ */ r.jsx(j, { weight: "bold", color: "red", children: se(c,
|
|
14204
|
+
/* @__PURE__ */ r.jsx(j, { weight: "bold", color: "red", children: se(c, ja) }),
|
|
14205
14205
|
/* @__PURE__ */ r.jsx(j, { children: "+" }),
|
|
14206
|
-
/* @__PURE__ */ r.jsx(j, { weight: "bold", color: "red", children: se(l,
|
|
14206
|
+
/* @__PURE__ */ r.jsx(j, { weight: "bold", color: "red", children: se(l, ja) }),
|
|
14207
14207
|
/* @__PURE__ */ r.jsx(j, { children: "×" }),
|
|
14208
14208
|
/* @__PURE__ */ r.jsx(j, { children: i.name })
|
|
14209
14209
|
] }),
|
|
@@ -14282,7 +14282,7 @@ function l_(e, t, n, s) {
|
|
|
14282
14282
|
adjustedRSquared: gs(c, t.length, 1)
|
|
14283
14283
|
};
|
|
14284
14284
|
}
|
|
14285
|
-
function
|
|
14285
|
+
function va(e, t, n) {
|
|
14286
14286
|
const {
|
|
14287
14287
|
regression: s,
|
|
14288
14288
|
x_axis: i
|
|
@@ -14303,9 +14303,9 @@ function c_(e, t) {
|
|
|
14303
14303
|
adjustedRSquared: 0
|
|
14304
14304
|
}];
|
|
14305
14305
|
if (!t.regression.group_by_key)
|
|
14306
|
-
return [
|
|
14306
|
+
return [va("", e, t)];
|
|
14307
14307
|
const n = P(t.regression.group_by_key), s = w.groupBy(e, n.columnKey);
|
|
14308
|
-
return Object.entries(s).map(([i, o]) =>
|
|
14308
|
+
return Object.entries(s).map(([i, o]) => va(i, o, t));
|
|
14309
14309
|
}
|
|
14310
14310
|
const d_ = {
|
|
14311
14311
|
marginTop: "10px",
|
|
@@ -14316,7 +14316,7 @@ const d_ = {
|
|
|
14316
14316
|
borderTop: "1px solid #dee2e6"
|
|
14317
14317
|
}
|
|
14318
14318
|
};
|
|
14319
|
-
function
|
|
14319
|
+
function wa({
|
|
14320
14320
|
desc: e
|
|
14321
14321
|
}) {
|
|
14322
14322
|
const {
|
|
@@ -14356,8 +14356,8 @@ function u_({
|
|
|
14356
14356
|
const n = T(() => c_(t, e), [e, t]);
|
|
14357
14357
|
return e.regression.group_by_key ? (console.log(n), /* @__PURE__ */ r.jsxs(f, { defaultValue: (s = n[0]) == null ? void 0 : s.name, color: "gray", children: [
|
|
14358
14358
|
/* @__PURE__ */ r.jsx(f.List, { grow: !0, children: n.map((i) => /* @__PURE__ */ r.jsx(f.Tab, { value: i.name, children: i.name }, i.name)) }),
|
|
14359
|
-
n.map((i) => /* @__PURE__ */ r.jsx(f.Panel, { value: i.name, children: /* @__PURE__ */ r.jsx(
|
|
14360
|
-
] })) : /* @__PURE__ */ r.jsx(
|
|
14359
|
+
n.map((i) => /* @__PURE__ */ r.jsx(f.Panel, { value: i.name, children: /* @__PURE__ */ r.jsx(wa, { desc: i }) }, i.name))
|
|
14360
|
+
] })) : /* @__PURE__ */ r.jsx(wa, { desc: n[0] });
|
|
14361
14361
|
}
|
|
14362
14362
|
function h_({
|
|
14363
14363
|
conf: e,
|
|
@@ -14530,7 +14530,7 @@ const g_ = ({
|
|
|
14530
14530
|
readOnly: e
|
|
14531
14531
|
} })
|
|
14532
14532
|
] });
|
|
14533
|
-
},
|
|
14533
|
+
}, Zc = me(({
|
|
14534
14534
|
value: e,
|
|
14535
14535
|
onChange: t,
|
|
14536
14536
|
triggerButtonText: n = "Customize Label"
|
|
@@ -14623,7 +14623,7 @@ function b_({
|
|
|
14623
14623
|
) }),
|
|
14624
14624
|
/* @__PURE__ */ r.jsx(b, { name: "x_axis.axisLabel.formatter", control: e, render: ({
|
|
14625
14625
|
field: n
|
|
14626
|
-
}) => /* @__PURE__ */ r.jsx(
|
|
14626
|
+
}) => /* @__PURE__ */ r.jsx(Zc, { triggerButtonText: "自定义标签文案内容", ...n }) })
|
|
14627
14627
|
] }),
|
|
14628
14628
|
/* @__PURE__ */ r.jsx(b, { name: "x_axis.axisLabel.overflow", control: e, render: ({
|
|
14629
14629
|
field: n
|
|
@@ -14858,18 +14858,18 @@ const Ki = me(({
|
|
|
14858
14858
|
label: s,
|
|
14859
14859
|
onSubmit: i
|
|
14860
14860
|
}, o) => {
|
|
14861
|
-
const [a, l] = B(e), c =
|
|
14862
|
-
extensions: [
|
|
14861
|
+
const [a, l] = B(e), c = Ml({
|
|
14862
|
+
extensions: [Al, Ll, yl, Sl, _l, vl, Tl.configure({
|
|
14863
14863
|
resizable: !1,
|
|
14864
14864
|
// https://github.com/ueberdosis/tiptap/issues/2041
|
|
14865
14865
|
HTMLAttributes: {
|
|
14866
14866
|
class: "rich-text-table-render"
|
|
14867
14867
|
}
|
|
14868
|
-
}), Dl, Il,
|
|
14868
|
+
}), zl, Dl, Il, Cl.configure({
|
|
14869
14869
|
types: ["heading", "paragraph"]
|
|
14870
|
-
}),
|
|
14870
|
+
}), wl.configure({
|
|
14871
14871
|
placeholder: "This is placeholder"
|
|
14872
|
-
}),
|
|
14872
|
+
}), kl, jl, Oc],
|
|
14873
14873
|
content: a,
|
|
14874
14874
|
onUpdate: ({
|
|
14875
14875
|
editor: p
|
|
@@ -15023,7 +15023,7 @@ const A_ = {
|
|
|
15023
15023
|
func_content: ["function getColor({ rowData, params, variables }, { lodash, interpolate }) {", " // your code goes here", ' // return "blue"', "}"].join(`
|
|
15024
15024
|
`)
|
|
15025
15025
|
}
|
|
15026
|
-
},
|
|
15026
|
+
}, ed = {
|
|
15027
15027
|
id: "builtin:echarts:click-scatter-chart:series",
|
|
15028
15028
|
displayName: "Click Scatter",
|
|
15029
15029
|
nameRender: R_,
|
|
@@ -15060,14 +15060,14 @@ function E_(e) {
|
|
|
15060
15060
|
function R_(e) {
|
|
15061
15061
|
return /* @__PURE__ */ r.jsx(j, { children: "Click scatter" });
|
|
15062
15062
|
}
|
|
15063
|
-
function
|
|
15063
|
+
function td() {
|
|
15064
15064
|
return {
|
|
15065
15065
|
enabled: !1,
|
|
15066
15066
|
func_content: ["function label(value, index) {", " // your code goes here", " // return value", "}"].join(`
|
|
15067
15067
|
`)
|
|
15068
15068
|
};
|
|
15069
15069
|
}
|
|
15070
|
-
function
|
|
15070
|
+
function nd() {
|
|
15071
15071
|
const {
|
|
15072
15072
|
on_axis: e,
|
|
15073
15073
|
in_tooltip: t
|
|
@@ -15087,7 +15087,7 @@ const Yi = {
|
|
|
15087
15087
|
},
|
|
15088
15088
|
color: vr.static,
|
|
15089
15089
|
label_position: "right",
|
|
15090
|
-
label_overflow:
|
|
15090
|
+
label_overflow: nd()
|
|
15091
15091
|
},
|
|
15092
15092
|
stats: {
|
|
15093
15093
|
templates: {
|
|
@@ -15100,7 +15100,7 @@ const Yi = {
|
|
|
15100
15100
|
data_key: "",
|
|
15101
15101
|
axisLabel: {
|
|
15102
15102
|
rotate: 0,
|
|
15103
|
-
formatter:
|
|
15103
|
+
formatter: td(),
|
|
15104
15104
|
overflow: nt()
|
|
15105
15105
|
}
|
|
15106
15106
|
},
|
|
@@ -15301,7 +15301,7 @@ function W_(e, t, n, s) {
|
|
|
15301
15301
|
variableValueMap: s
|
|
15302
15302
|
}));
|
|
15303
15303
|
}
|
|
15304
|
-
function
|
|
15304
|
+
function rd({
|
|
15305
15305
|
enabled: e,
|
|
15306
15306
|
func_content: t
|
|
15307
15307
|
}) {
|
|
@@ -15315,11 +15315,11 @@ function nd({
|
|
|
15315
15315
|
}
|
|
15316
15316
|
};
|
|
15317
15317
|
}
|
|
15318
|
-
function
|
|
15318
|
+
function _a(e, t, n) {
|
|
15319
15319
|
const {
|
|
15320
15320
|
x_axis: s
|
|
15321
15321
|
} = n;
|
|
15322
|
-
return s.axisLabel.formatter.enabled ?
|
|
15322
|
+
return s.axisLabel.formatter.enabled ? rd(s.axisLabel.formatter)(e, t) : e;
|
|
15323
15323
|
}
|
|
15324
15324
|
function G_(e, t) {
|
|
15325
15325
|
const {
|
|
@@ -15328,7 +15328,7 @@ function G_(e, t) {
|
|
|
15328
15328
|
} = t;
|
|
15329
15329
|
if (s.trigger === "item") {
|
|
15330
15330
|
const l = Er(e[0].data, n.data_key);
|
|
15331
|
-
return
|
|
15331
|
+
return _a(l, 0, t);
|
|
15332
15332
|
}
|
|
15333
15333
|
const i = e.find((l) => l.axisDim === "x" && l.axisId === "main-x-axis");
|
|
15334
15334
|
if (!i)
|
|
@@ -15337,7 +15337,7 @@ function G_(e, t) {
|
|
|
15337
15337
|
axisValue: o,
|
|
15338
15338
|
axisIndex: a
|
|
15339
15339
|
} = i;
|
|
15340
|
-
return
|
|
15340
|
+
return _a(o, a, t);
|
|
15341
15341
|
}
|
|
15342
15342
|
const Q_ = (e) => se(e, {
|
|
15343
15343
|
output: "number",
|
|
@@ -15407,7 +15407,7 @@ function U_(e, t) {
|
|
|
15407
15407
|
axisLabel: {
|
|
15408
15408
|
...i,
|
|
15409
15409
|
...o,
|
|
15410
|
-
formatter:
|
|
15410
|
+
formatter: rd(i.formatter)
|
|
15411
15411
|
}
|
|
15412
15412
|
})];
|
|
15413
15413
|
}
|
|
@@ -15498,7 +15498,7 @@ function X_(e, t, n) {
|
|
|
15498
15498
|
};
|
|
15499
15499
|
return Ce({}, l, Y_);
|
|
15500
15500
|
}
|
|
15501
|
-
function
|
|
15501
|
+
function Sa(e) {
|
|
15502
15502
|
return e.trim().length > 0;
|
|
15503
15503
|
}
|
|
15504
15504
|
function J_({
|
|
@@ -15509,7 +15509,7 @@ function J_({
|
|
|
15509
15509
|
interactionManager: i,
|
|
15510
15510
|
variables: o
|
|
15511
15511
|
}) {
|
|
15512
|
-
const a = Tn(t, e.x_axis.data_key), l = bt(i.triggerManager,
|
|
15512
|
+
const a = Tn(t, e.x_axis.data_key), l = bt(i.triggerManager, ed.id), c = Ge((u) => {
|
|
15513
15513
|
const p = u.data;
|
|
15514
15514
|
l.forEach((x) => {
|
|
15515
15515
|
i.runInteraction(x.id, {
|
|
@@ -15558,11 +15558,11 @@ function Z_({
|
|
|
15558
15558
|
}, [o, a]), g = Math.max(0, kt(c) - h - p);
|
|
15559
15559
|
return !l || !c ? null : /* @__PURE__ */ r.jsxs(rt, { width: l, height: c, children: [
|
|
15560
15560
|
/* @__PURE__ */ r.jsx(j, { ref: d, align: "left", size: "xs", pl: "sm", sx: {
|
|
15561
|
-
display:
|
|
15561
|
+
display: Sa(o.stats.templates.top) ? "block" : "none"
|
|
15562
15562
|
}, children: Object.values(x.top).map((_) => _) }),
|
|
15563
15563
|
/* @__PURE__ */ r.jsx(J_, { variables: i, width: Ct(l), height: g, data: a, conf: o, interactionManager: n }),
|
|
15564
15564
|
/* @__PURE__ */ r.jsx(j, { ref: u, align: "left", size: "xs", pl: "sm", sx: {
|
|
15565
|
-
display:
|
|
15565
|
+
display: Sa(o.stats.templates.bottom) ? "block" : "none"
|
|
15566
15566
|
}, children: Object.values(x.bottom).map((_) => _) })
|
|
15567
15567
|
] });
|
|
15568
15568
|
}
|
|
@@ -15989,7 +15989,7 @@ const aS = ({
|
|
|
15989
15989
|
enabled: !1
|
|
15990
15990
|
}
|
|
15991
15991
|
} }) });
|
|
15992
|
-
},
|
|
15992
|
+
}, sd = {
|
|
15993
15993
|
static: {
|
|
15994
15994
|
type: "static",
|
|
15995
15995
|
size: 10
|
|
@@ -16024,7 +16024,7 @@ const aS = ({
|
|
|
16024
16024
|
func_content: u
|
|
16025
16025
|
}));
|
|
16026
16026
|
}, h = () => {
|
|
16027
|
-
d(
|
|
16027
|
+
d(sd.dynamic.func_content);
|
|
16028
16028
|
};
|
|
16029
16029
|
return /* @__PURE__ */ r.jsxs(r.Fragment, { children: [
|
|
16030
16030
|
/* @__PURE__ */ r.jsx(z, { sx: {
|
|
@@ -16073,7 +16073,7 @@ const aS = ({
|
|
|
16073
16073
|
}, s) => {
|
|
16074
16074
|
const i = (o) => {
|
|
16075
16075
|
n({
|
|
16076
|
-
...
|
|
16076
|
+
...sd[o]
|
|
16077
16077
|
});
|
|
16078
16078
|
};
|
|
16079
16079
|
return /* @__PURE__ */ r.jsxs(tn, { cols: 2, children: [
|
|
@@ -16332,7 +16332,7 @@ const TS = ({
|
|
|
16332
16332
|
func_content: x
|
|
16333
16333
|
}));
|
|
16334
16334
|
}, p = () => {
|
|
16335
|
-
u(
|
|
16335
|
+
u(td().func_content);
|
|
16336
16336
|
};
|
|
16337
16337
|
return /* @__PURE__ */ r.jsxs(r.Fragment, { children: [
|
|
16338
16338
|
/* @__PURE__ */ r.jsx(C, { variant: "filled", mt: 24, onClick: i, sx: {
|
|
@@ -16599,7 +16599,7 @@ function $S(e) {
|
|
|
16599
16599
|
function OS(e) {
|
|
16600
16600
|
const t = {
|
|
16601
16601
|
scatter: {
|
|
16602
|
-
label_overflow:
|
|
16602
|
+
label_overflow: nd()
|
|
16603
16603
|
}
|
|
16604
16604
|
};
|
|
16605
16605
|
return w.defaultsDeep(t, e);
|
|
@@ -16794,7 +16794,7 @@ const GS = {
|
|
|
16794
16794
|
config: Ne(Yi)
|
|
16795
16795
|
};
|
|
16796
16796
|
},
|
|
16797
|
-
triggers: [
|
|
16797
|
+
triggers: [ed]
|
|
16798
16798
|
}, Xi = {
|
|
16799
16799
|
template: "The variable ${value} is defined in Variables section",
|
|
16800
16800
|
vertical_align: "center",
|
|
@@ -17472,8 +17472,8 @@ const C1 = {
|
|
|
17472
17472
|
}
|
|
17473
17473
|
};
|
|
17474
17474
|
var wt = /* @__PURE__ */ ((e) => (e.string = "string", e.number = "number", e.eloc = "eloc", e.percentage = "percentage", e.custom = "custom", e))(wt || {});
|
|
17475
|
-
const
|
|
17476
|
-
`),
|
|
17475
|
+
const id = ["function text({ value }) {", " // your code goes here", " return value", "}"].join(`
|
|
17476
|
+
`), od = {
|
|
17477
17477
|
columns: [],
|
|
17478
17478
|
fontSize: "14px",
|
|
17479
17479
|
highlightOnHover: !0,
|
|
@@ -17482,7 +17482,7 @@ const sd = ["function text({ value }) {", " // your code goes here", " ret
|
|
|
17482
17482
|
striped: !0,
|
|
17483
17483
|
use_raw_columns: !0,
|
|
17484
17484
|
verticalSpacing: "14px"
|
|
17485
|
-
},
|
|
17485
|
+
}, ad = {
|
|
17486
17486
|
left: "flex-start",
|
|
17487
17487
|
center: "center",
|
|
17488
17488
|
right: "flex-end"
|
|
@@ -17494,7 +17494,7 @@ const sd = ["function text({ value }) {", " // your code goes here", " ret
|
|
|
17494
17494
|
return /* @__PURE__ */ r.jsxs(j, { className: t("table-head-cell", {
|
|
17495
17495
|
"table-head-cell--sortable": e.column.getCanSort()
|
|
17496
17496
|
}), onClick: e.column.getToggleSortingHandler(), align: n, sx: {
|
|
17497
|
-
justifyContent:
|
|
17497
|
+
justifyContent: ad[n]
|
|
17498
17498
|
}, children: [
|
|
17499
17499
|
e.isPlaceholder ? null : Nr(e.column.columnDef.header, e.getContext()),
|
|
17500
17500
|
/* @__PURE__ */ r.jsx(T1, { direction: e.column.getIsSorted() })
|
|
@@ -17568,7 +17568,7 @@ const sd = ["function text({ value }) {", " // your code goes here", " ret
|
|
|
17568
17568
|
content: {
|
|
17569
17569
|
display: "flex",
|
|
17570
17570
|
alignItems: "center",
|
|
17571
|
-
justifyContent:
|
|
17571
|
+
justifyContent: ad[t.align],
|
|
17572
17572
|
".table-cell-text": {
|
|
17573
17573
|
whiteSpace: "nowrap",
|
|
17574
17574
|
cursor: t.clickable ? "pointer" : "default",
|
|
@@ -17663,7 +17663,7 @@ function P1({
|
|
|
17663
17663
|
virtualItems: s,
|
|
17664
17664
|
totalSize: i
|
|
17665
17665
|
} = n, o = s.length > 0 && ((l = s == null ? void 0 : s[0]) == null ? void 0 : l.start) || 0, a = s.length > 0 ? i - (((c = s == null ? void 0 : s[s.length - 1]) == null ? void 0 : c.end) || 0) : 0;
|
|
17666
|
-
return
|
|
17666
|
+
return Ja("TableBody", {
|
|
17667
17667
|
tableContainerRef: e,
|
|
17668
17668
|
rows: t
|
|
17669
17669
|
}), /* @__PURE__ */ r.jsxs("tbody", { children: [
|
|
@@ -17700,7 +17700,7 @@ const Zi = {
|
|
|
17700
17700
|
}, V1 = {
|
|
17701
17701
|
column: ""
|
|
17702
17702
|
};
|
|
17703
|
-
function
|
|
17703
|
+
function ld(e, t) {
|
|
17704
17704
|
const {
|
|
17705
17705
|
value: n
|
|
17706
17706
|
} = H(e.instanceData, "config"), s = {
|
|
@@ -17725,7 +17725,7 @@ function q1(e) {
|
|
|
17725
17725
|
const {
|
|
17726
17726
|
columnsFromConfig: t,
|
|
17727
17727
|
columnsFromData: n
|
|
17728
|
-
} =
|
|
17728
|
+
} = ld(e.instance, e.sampleData), s = t.length > 0 ? t : n, {
|
|
17729
17729
|
value: i,
|
|
17730
17730
|
set: o
|
|
17731
17731
|
} = H(e.trigger.triggerData, "config"), {
|
|
@@ -17745,12 +17745,12 @@ function N1(e, t) {
|
|
|
17745
17745
|
function B1(e) {
|
|
17746
17746
|
const {
|
|
17747
17747
|
columnsFromConfig: t
|
|
17748
|
-
} =
|
|
17748
|
+
} = ld(e.instance), {
|
|
17749
17749
|
value: n
|
|
17750
17750
|
} = H(e.trigger.triggerData, "config");
|
|
17751
17751
|
return /* @__PURE__ */ r.jsx(j, { children: N1(n, t) });
|
|
17752
17752
|
}
|
|
17753
|
-
function
|
|
17753
|
+
function Ca(e, t, n) {
|
|
17754
17754
|
return Math.min(Math.max(e, t), n);
|
|
17755
17755
|
}
|
|
17756
17756
|
class W1 {
|
|
@@ -17769,10 +17769,10 @@ class W1 {
|
|
|
17769
17769
|
}
|
|
17770
17770
|
getStepFunctionForValue(t) {
|
|
17771
17771
|
let n = _h(this.steps, (s) => s.from <= t);
|
|
17772
|
-
return n =
|
|
17772
|
+
return n = Ca(n, 0, this.steps.length - 2), this.getLinearFunction(this.steps[n], this.steps[n + 1]);
|
|
17773
17773
|
}
|
|
17774
17774
|
mapValue(t) {
|
|
17775
|
-
return
|
|
17775
|
+
return Ca(this.getStepFunctionForValue(t)(t), 0, 100);
|
|
17776
17776
|
}
|
|
17777
17777
|
}
|
|
17778
17778
|
class G1 {
|
|
@@ -17808,7 +17808,7 @@ class G1 {
|
|
|
17808
17808
|
const t = this.columnConf.cellBackgroundColor;
|
|
17809
17809
|
if (!t || t === "none")
|
|
17810
17810
|
return;
|
|
17811
|
-
if (
|
|
17811
|
+
if (il(t))
|
|
17812
17812
|
return t;
|
|
17813
17813
|
const n = +this.cell.getValue();
|
|
17814
17814
|
if (isFinite(n)) {
|
|
@@ -17852,7 +17852,7 @@ function H1({
|
|
|
17852
17852
|
vizManager: i.vizManager,
|
|
17853
17853
|
instance: o
|
|
17854
17854
|
}), g = T(() => {
|
|
17855
|
-
const ue =
|
|
17855
|
+
const ue = El();
|
|
17856
17856
|
return p.map((vt) => {
|
|
17857
17857
|
const Ss = dm(vt.value_field);
|
|
17858
17858
|
return ue.accessor(Ss.columnKey, {
|
|
@@ -17864,19 +17864,19 @@ function H1({
|
|
|
17864
17864
|
minSize: typeof vt.width == "number" ? vt.width : void 0
|
|
17865
17865
|
});
|
|
17866
17866
|
});
|
|
17867
|
-
}, [p, x]), [_, I] = B([]), E =
|
|
17867
|
+
}, [p, x]), [_, I] = B([]), E = Rl({
|
|
17868
17868
|
data: e,
|
|
17869
17869
|
state: {
|
|
17870
17870
|
sorting: _
|
|
17871
17871
|
},
|
|
17872
17872
|
onSortingChange: I,
|
|
17873
17873
|
columns: g,
|
|
17874
|
-
getCoreRowModel:
|
|
17874
|
+
getCoreRowModel: Fl(),
|
|
17875
17875
|
getSortedRowModel: ex()
|
|
17876
17876
|
}), {
|
|
17877
17877
|
rows: q
|
|
17878
17878
|
} = E.getRowModel(), U = M.useRef(null), te = q.length, X = te > 0, we = X ? n - 22 : n, Z = X ? 22 : 0;
|
|
17879
|
-
return
|
|
17879
|
+
return Ja("VizTableComponent", {
|
|
17880
17880
|
queryData: e,
|
|
17881
17881
|
width: t,
|
|
17882
17882
|
height: n,
|
|
@@ -17947,7 +17947,7 @@ function K1({
|
|
|
17947
17947
|
} = H(e.instanceData, "config");
|
|
17948
17948
|
return o ? o.id_field ? /* @__PURE__ */ r.jsx(U1, { data: n, width: i, height: s, conf: o, context: e, instance: t }) : /* @__PURE__ */ r.jsx(j, { color: "red", align: "center", children: "ID Field is not set, can't render a table without it" }) : null;
|
|
17949
17949
|
}
|
|
17950
|
-
const
|
|
17950
|
+
const cd = hr(() => ({
|
|
17951
17951
|
palette: {
|
|
17952
17952
|
display: "flex",
|
|
17953
17953
|
flexFlow: "row nowrap"
|
|
@@ -17986,7 +17986,7 @@ class X1 {
|
|
|
17986
17986
|
N(this, "interpolation");
|
|
17987
17987
|
N(this, "onChange");
|
|
17988
17988
|
xr(this, {
|
|
17989
|
-
steps:
|
|
17989
|
+
steps: Za
|
|
17990
17990
|
}, {
|
|
17991
17991
|
deep: !1
|
|
17992
17992
|
}), tt(() => Ut(this.steps), () => {
|
|
@@ -18022,7 +18022,7 @@ function J1(e) {
|
|
|
18022
18022
|
value: i
|
|
18023
18023
|
} = e, {
|
|
18024
18024
|
classes: o
|
|
18025
|
-
} =
|
|
18025
|
+
} = cd(), [a, l] = B(i), [c, {
|
|
18026
18026
|
setTrue: d,
|
|
18027
18027
|
setFalse: h
|
|
18028
18028
|
}] = Oe(!1), u = s % 2 === 1, p = u && i != null, x = !u && i != null, g = `map ${i} to color ${s}`, _ = () => {
|
|
@@ -18062,7 +18062,7 @@ const Z1 = k(({
|
|
|
18062
18062
|
}) => {
|
|
18063
18063
|
const {
|
|
18064
18064
|
classes: t
|
|
18065
|
-
} =
|
|
18065
|
+
} = cd(), n = Sh(0, 13, 1).map((s) => 100 / 12 * s).map((s) => [e.interpolation.getColor(s), s]);
|
|
18066
18066
|
return /* @__PURE__ */ r.jsx("div", { className: t.palette, children: n.map(([s, i], o) => /* @__PURE__ */ r.jsx(J1, { index: o, color: s, value: e.getStepFromValue(i), onChange: (a) => e.changeStep(a, i) }, s)) });
|
|
18067
18067
|
}), eC = k(function(t) {
|
|
18068
18068
|
const n = St(() => new X1(), []);
|
|
@@ -18121,15 +18121,15 @@ const Z1 = k(({
|
|
|
18121
18121
|
from: 100,
|
|
18122
18122
|
to: 100
|
|
18123
18123
|
}];
|
|
18124
|
-
function
|
|
18125
|
-
return e ?
|
|
18124
|
+
function dd(e) {
|
|
18125
|
+
return e ? il(e) ? e === "none" ? "none" : "static" : "interpolation" : "none";
|
|
18126
18126
|
}
|
|
18127
18127
|
function sC(e, t) {
|
|
18128
18128
|
var n;
|
|
18129
|
-
return
|
|
18129
|
+
return dd(t) === "static" ? t : (n = e.getStaticColors()[0]) == null ? void 0 : n.value;
|
|
18130
18130
|
}
|
|
18131
18131
|
function iC(e, t) {
|
|
18132
|
-
return
|
|
18132
|
+
return tl(t) ? t : {
|
|
18133
18133
|
steps: rC,
|
|
18134
18134
|
interpolation: e.encodeColor(e.getColorInterpolations()[0])
|
|
18135
18135
|
};
|
|
@@ -18137,7 +18137,7 @@ function iC(e, t) {
|
|
|
18137
18137
|
const oC = me((e, t) => {
|
|
18138
18138
|
const {
|
|
18139
18139
|
colorManager: n
|
|
18140
|
-
} = Qt($t), [s, i] = B(
|
|
18140
|
+
} = Qt($t), [s, i] = B(dd(e.value)), [o, a] = B(sC(n, e.value)), l = Go(o), [c, d] = B(iC(n, e.value)), h = Go(c), u = (g) => {
|
|
18141
18141
|
var _, I, E;
|
|
18142
18142
|
i(g || "none"), g === "static" ? (_ = e.onChange) == null || _.call(e, l.current) : g === "none" || !g ? (I = e.onChange) == null || I.call(e, "none") : (E = e.onChange) == null || E.call(e, h.current);
|
|
18143
18143
|
}, p = (g) => {
|
|
@@ -18174,7 +18174,7 @@ const oC = me((e, t) => {
|
|
|
18174
18174
|
}, d = () => {
|
|
18175
18175
|
o(), l(e);
|
|
18176
18176
|
}, h = () => {
|
|
18177
|
-
l(
|
|
18177
|
+
l(id);
|
|
18178
18178
|
};
|
|
18179
18179
|
return O(() => {
|
|
18180
18180
|
l(e);
|
|
@@ -18237,7 +18237,7 @@ const oC = me((e, t) => {
|
|
|
18237
18237
|
}, ...a }) }),
|
|
18238
18238
|
o === wt.custom && /* @__PURE__ */ r.jsx(b, { name: `columns.${t}.func_content`, control: e, render: ({
|
|
18239
18239
|
field: a
|
|
18240
|
-
}) => /* @__PURE__ */ r.jsx(dC, { value: a.value ??
|
|
18240
|
+
}) => /* @__PURE__ */ r.jsx(dC, { value: a.value ?? id, onChange: (l) => a.onChange(l ?? "") }) })
|
|
18241
18241
|
] }),
|
|
18242
18242
|
/* @__PURE__ */ r.jsx(L, { mb: -10, variant: "dashed", label: "Style", labelPosition: "center" }),
|
|
18243
18243
|
/* @__PURE__ */ r.jsxs(y, { grow: !0, children: [
|
|
@@ -18371,7 +18371,7 @@ function fC({
|
|
|
18371
18371
|
const {
|
|
18372
18372
|
value: t,
|
|
18373
18373
|
set: n
|
|
18374
|
-
} = H(e.instanceData, "config"), s = T(() => Ce({}, t,
|
|
18374
|
+
} = H(e.instanceData, "config"), s = T(() => Ce({}, t, od), [t]), i = T(() => mC(s), [s]);
|
|
18375
18375
|
O(() => {
|
|
18376
18376
|
!xe(s, i) && (console.log("config malformed, resetting to defaults", s, i), n(i));
|
|
18377
18377
|
}, [s, i]);
|
|
@@ -18520,7 +18520,7 @@ const oi = {
|
|
|
18520
18520
|
createConfig() {
|
|
18521
18521
|
return {
|
|
18522
18522
|
version: 5,
|
|
18523
|
-
config: Ne(
|
|
18523
|
+
config: Ne(od)
|
|
18524
18524
|
};
|
|
18525
18525
|
},
|
|
18526
18526
|
displayName: "Table",
|
|
@@ -18530,9 +18530,9 @@ const oi = {
|
|
|
18530
18530
|
viewRender: K1,
|
|
18531
18531
|
configRender: fC,
|
|
18532
18532
|
triggers: [Zi]
|
|
18533
|
-
},
|
|
18533
|
+
}, ud = ["function text({ data, variables, filters, context}) {", " // your code goes here", ' return "text"', "}"].join(`
|
|
18534
18534
|
`), eo = {
|
|
18535
|
-
func_content:
|
|
18535
|
+
func_content: ud,
|
|
18536
18536
|
horizontal_align: "left",
|
|
18537
18537
|
font_size: "14px",
|
|
18538
18538
|
font_weight: "normal"
|
|
@@ -18591,7 +18591,7 @@ function wC({
|
|
|
18591
18591
|
/* @__PURE__ */ r.jsx(sh, { label: null, marks: Mr, value: i, onChange: o, step: 25, placeholder: "Pick a font size", mx: "1em", ref: s })
|
|
18592
18592
|
] });
|
|
18593
18593
|
}
|
|
18594
|
-
const
|
|
18594
|
+
const hd = M.forwardRef(wC), _C = ({
|
|
18595
18595
|
value: e,
|
|
18596
18596
|
onChange: t
|
|
18597
18597
|
}) => {
|
|
@@ -18617,7 +18617,7 @@ const ud = M.forwardRef(wC), _C = ({
|
|
|
18617
18617
|
}, d = () => {
|
|
18618
18618
|
o(), l(e);
|
|
18619
18619
|
}, h = () => {
|
|
18620
|
-
l(
|
|
18620
|
+
l(ud);
|
|
18621
18621
|
};
|
|
18622
18622
|
return O(() => {
|
|
18623
18623
|
l(e);
|
|
@@ -18717,7 +18717,7 @@ function kC({
|
|
|
18717
18717
|
}
|
|
18718
18718
|
}, children: /* @__PURE__ */ r.jsx(b, { name: "font_weight", control: o, render: ({
|
|
18719
18719
|
field: p
|
|
18720
|
-
}) => /* @__PURE__ */ r.jsx(
|
|
18720
|
+
}) => /* @__PURE__ */ r.jsx(hd, { label: "Font Weight", ...p }) }) })
|
|
18721
18721
|
] })
|
|
18722
18722
|
] }) });
|
|
18723
18723
|
}
|
|
@@ -18751,7 +18751,7 @@ const IC = {
|
|
|
18751
18751
|
/* @__PURE__ */ r.jsx("path", { d: "M18.39 32.28H16.51V35.02H18.39V32.28Z", fill: "#9399A5" }),
|
|
18752
18752
|
/* @__PURE__ */ r.jsx("path", { d: "M46.87 15H20.69C18.38 15 16.5 16.88 16.5 19.19V26.22H18.38V23.45H49.18V47.68H18.38V41.07H16.5V49.55H51.05V19.19C51.06 16.88 49.18 15 46.87 15ZM39.46 20.73C38.81 20.73 38.29 20.2 38.29 19.56C38.29 18.92 38.82 18.39 39.46 18.39C40.11 18.39 40.63 18.92 40.63 19.56C40.63 20.2 40.11 20.73 39.46 20.73ZM43.22 20.73C42.57 20.73 42.05 20.2 42.05 19.56C42.05 18.92 42.58 18.39 43.22 18.39C43.87 18.39 44.39 18.92 44.39 19.56C44.39 20.2 43.87 20.73 43.22 20.73ZM46.97 20.73C46.32 20.73 45.8 20.2 45.8 19.56C45.8 18.92 46.33 18.39 46.97 18.39C47.62 18.39 48.14 18.92 48.14 19.56C48.14 20.2 47.62 20.73 46.97 20.73Z", fill: "#9399A5" })
|
|
18753
18753
|
] });
|
|
18754
|
-
function
|
|
18754
|
+
function ka(e, t) {
|
|
18755
18755
|
const n = w.get(e, t, "");
|
|
18756
18756
|
if (n)
|
|
18757
18757
|
throw new Error(n);
|
|
@@ -18794,7 +18794,7 @@ const LC = ({
|
|
|
18794
18794
|
const c = n.startsWith("http") ? n : window.location.origin;
|
|
18795
18795
|
return await zC(c, `/expert/v3/devtable/${s}`, l, {});
|
|
18796
18796
|
} catch (c) {
|
|
18797
|
-
throw
|
|
18797
|
+
throw ka(c, "response.data.detail"), ka(c, "response.data.error"), console.error(c), c;
|
|
18798
18798
|
}
|
|
18799
18799
|
}, to = {
|
|
18800
18800
|
expertSystemURL: "",
|
|
@@ -18805,7 +18805,7 @@ const LC = ({
|
|
|
18805
18805
|
height: "100%",
|
|
18806
18806
|
overflowY: "auto",
|
|
18807
18807
|
...Fi
|
|
18808
|
-
},
|
|
18808
|
+
}, Ta = ({
|
|
18809
18809
|
message: e
|
|
18810
18810
|
}) => /* @__PURE__ */ r.jsx(z, { sx: ai, children: /* @__PURE__ */ r.jsx("div", { dangerouslySetInnerHTML: {
|
|
18811
18811
|
__html: e
|
|
@@ -18820,14 +18820,14 @@ const LC = ({
|
|
|
18820
18820
|
}) => {
|
|
18821
18821
|
const s = e.message;
|
|
18822
18822
|
if (s.startsWith("<"))
|
|
18823
|
-
return /* @__PURE__ */ r.jsx(
|
|
18823
|
+
return /* @__PURE__ */ r.jsx(Ta, { message: s });
|
|
18824
18824
|
const o = n - 25 - 20 - 30;
|
|
18825
18825
|
return /* @__PURE__ */ r.jsx(wn, { sx: {
|
|
18826
18826
|
width: "100%",
|
|
18827
18827
|
height: o
|
|
18828
18828
|
}, children: /* @__PURE__ */ r.jsxs(S, { align: "center", spacing: 20, children: [
|
|
18829
18829
|
/* @__PURE__ */ r.jsx(DC, {}),
|
|
18830
|
-
/* @__PURE__ */ r.jsx(
|
|
18830
|
+
/* @__PURE__ */ r.jsx(Ta, { message: s })
|
|
18831
18831
|
] }) });
|
|
18832
18832
|
};
|
|
18833
18833
|
function AC({
|
|
@@ -19126,7 +19126,7 @@ function YC(e) {
|
|
|
19126
19126
|
function XC(e) {
|
|
19127
19127
|
return /* @__PURE__ */ r.jsx(j, { children: "Click heat block" });
|
|
19128
19128
|
}
|
|
19129
|
-
const
|
|
19129
|
+
const pd = {
|
|
19130
19130
|
id: "builtin:echarts:click-heatmap:heat-block",
|
|
19131
19131
|
displayName: "Click Heat Block",
|
|
19132
19132
|
nameRender: XC,
|
|
@@ -19194,7 +19194,7 @@ function ZC({
|
|
|
19194
19194
|
interactionManager: i,
|
|
19195
19195
|
variables: o
|
|
19196
19196
|
}) {
|
|
19197
|
-
const a = Tn(t, e.calendar.data_key), l = bt(i.triggerManager,
|
|
19197
|
+
const a = Tn(t, e.calendar.data_key), l = bt(i.triggerManager, pd.id), c = Ge((u) => {
|
|
19198
19198
|
const [p, x] = u.value, g = w.get(a, p, {
|
|
19199
19199
|
error: "rowData is not found"
|
|
19200
19200
|
});
|
|
@@ -19511,7 +19511,7 @@ const uk = {
|
|
|
19511
19511
|
version: 3,
|
|
19512
19512
|
config: no
|
|
19513
19513
|
}),
|
|
19514
|
-
triggers: [
|
|
19514
|
+
triggers: [pd]
|
|
19515
19515
|
}, ro = {
|
|
19516
19516
|
x_axes: [{
|
|
19517
19517
|
id: "initial-x",
|
|
@@ -20624,7 +20624,7 @@ function Jk() {
|
|
|
20624
20624
|
show: !0
|
|
20625
20625
|
}];
|
|
20626
20626
|
}
|
|
20627
|
-
const
|
|
20627
|
+
const Ia = ({
|
|
20628
20628
|
value: e
|
|
20629
20629
|
}) => {
|
|
20630
20630
|
try {
|
|
@@ -20649,7 +20649,7 @@ function Zk(e, t, n) {
|
|
|
20649
20649
|
}),
|
|
20650
20650
|
label: {
|
|
20651
20651
|
show: !0,
|
|
20652
|
-
formatter:
|
|
20652
|
+
formatter: Ia
|
|
20653
20653
|
},
|
|
20654
20654
|
labelLayout: {
|
|
20655
20655
|
hideOverlap: !0
|
|
@@ -20678,7 +20678,7 @@ function Zk(e, t, n) {
|
|
|
20678
20678
|
<tbody>
|
|
20679
20679
|
<tr>
|
|
20680
20680
|
<th style="text-align: right;">准确估算比例</th>
|
|
20681
|
-
<td style="text-align: left; padding: 0 1em;">${
|
|
20681
|
+
<td style="text-align: left; padding: 0 1em;">${Ia({
|
|
20682
20682
|
value: o
|
|
20683
20683
|
})}</td>
|
|
20684
20684
|
</tr>
|
|
@@ -20689,7 +20689,7 @@ function Zk(e, t, n) {
|
|
|
20689
20689
|
show_in_legend: !1
|
|
20690
20690
|
};
|
|
20691
20691
|
}
|
|
20692
|
-
function
|
|
20692
|
+
function xd(e) {
|
|
20693
20693
|
const t = [`background-color: ${e}`];
|
|
20694
20694
|
return e === "rgba(255, 255, 255, 1)" && t.push("box-shadow: 0px 0px 1px 0px rgba(0,0,0,.5)"), t.join(";");
|
|
20695
20695
|
}
|
|
@@ -20767,7 +20767,7 @@ function tT(e, t, n, s) {
|
|
|
20767
20767
|
<tr colspan="2">
|
|
20768
20768
|
<div style="
|
|
20769
20769
|
width: 100%; height: 4px; border-radius: 2px; margin-bottom: 6px;
|
|
20770
|
-
${
|
|
20770
|
+
${xd(h)}
|
|
20771
20771
|
"/>
|
|
20772
20772
|
</tr>
|
|
20773
20773
|
<tr>
|
|
@@ -20845,7 +20845,7 @@ function rT(e, t, n, s) {
|
|
|
20845
20845
|
<tr colspan="2">
|
|
20846
20846
|
<div style="
|
|
20847
20847
|
width: 100%; height: 4px; border-radius: 2px; margin-bottom: 6px;
|
|
20848
|
-
${
|
|
20848
|
+
${xd(u)}
|
|
20849
20849
|
"
|
|
20850
20850
|
/>
|
|
20851
20851
|
</tr>
|
|
@@ -20962,7 +20962,7 @@ function oT(e, t) {
|
|
|
20962
20962
|
type: "category",
|
|
20963
20963
|
axisLabel: {
|
|
20964
20964
|
...n,
|
|
20965
|
-
formatter:
|
|
20965
|
+
formatter: Jc(n.formatter)
|
|
20966
20966
|
},
|
|
20967
20967
|
axisLine: {
|
|
20968
20968
|
show: !1
|
|
@@ -21079,7 +21079,7 @@ function li(e) {
|
|
|
21079
21079
|
return e == 1 || e == 2 ? 1 : li(e - 2) + li(e - 1);
|
|
21080
21080
|
}
|
|
21081
21081
|
const lT = Array.from(new Array(20), (e, t) => li(t + 1));
|
|
21082
|
-
function
|
|
21082
|
+
function Da(e) {
|
|
21083
21083
|
return e <= 1 ? e : lT.findIndex((t) => e <= t) - 1;
|
|
21084
21084
|
}
|
|
21085
21085
|
function cT(e, t) {
|
|
@@ -21088,7 +21088,7 @@ function cT(e, t) {
|
|
|
21088
21088
|
deviation: s
|
|
21089
21089
|
} = e, i = P(n.data_key), o = P(s.data_keys.estimated_value), a = P(s.data_keys.actual_value);
|
|
21090
21090
|
return t[i.queryID].map((l) => {
|
|
21091
|
-
const c =
|
|
21091
|
+
const c = Da(l[o.columnKey]), d = Da(l[a.columnKey]), h = c - d;
|
|
21092
21092
|
return {
|
|
21093
21093
|
...l,
|
|
21094
21094
|
level: {
|
|
@@ -21188,7 +21188,7 @@ const mT = {
|
|
|
21188
21188
|
cursor: "default",
|
|
21189
21189
|
userSelect: "none"
|
|
21190
21190
|
}, children: "基线指标" }),
|
|
21191
|
-
/* @__PURE__ */ r.jsx(
|
|
21191
|
+
/* @__PURE__ */ r.jsx(Qa, { size: "xs", data: o, value: t, onChange: (a) => n(a.currentTarget.value), styles: mT })
|
|
21192
21192
|
] });
|
|
21193
21193
|
}, gT = {
|
|
21194
21194
|
"tbody th, tbody td": {
|
|
@@ -21390,7 +21390,7 @@ function CT({
|
|
|
21390
21390
|
) }),
|
|
21391
21391
|
/* @__PURE__ */ r.jsx(b, { name: "x_axis.axisLabel.formatter", control: e, render: ({
|
|
21392
21392
|
field: n
|
|
21393
|
-
}) => /* @__PURE__ */ r.jsx(
|
|
21393
|
+
}) => /* @__PURE__ */ r.jsx(Zc, { ...n }) })
|
|
21394
21394
|
] })
|
|
21395
21395
|
] });
|
|
21396
21396
|
}
|
|
@@ -21534,7 +21534,7 @@ function zT() {
|
|
|
21534
21534
|
}
|
|
21535
21535
|
};
|
|
21536
21536
|
}
|
|
21537
|
-
const
|
|
21537
|
+
const za = ({
|
|
21538
21538
|
postfix: e
|
|
21539
21539
|
}) => e ? /* @__PURE__ */ r.jsxs(r.Fragment, { children: [
|
|
21540
21540
|
/* @__PURE__ */ r.jsx(j, { size: "12px", color: "#818388", sx: {
|
|
@@ -21568,7 +21568,7 @@ const Da = ({
|
|
|
21568
21568
|
/* @__PURE__ */ r.jsx(j, { size: "24px", fw: "bold", color: "#3D3E45", sx: {
|
|
21569
21569
|
lineHeight: 1
|
|
21570
21570
|
}, children: se(t[s.value], i) }),
|
|
21571
|
-
/* @__PURE__ */ r.jsx(
|
|
21571
|
+
/* @__PURE__ */ r.jsx(za, { postfix: l })
|
|
21572
21572
|
] })
|
|
21573
21573
|
] }),
|
|
21574
21574
|
/* @__PURE__ */ r.jsxs(S, { spacing: 12, children: [
|
|
@@ -21577,7 +21577,7 @@ const Da = ({
|
|
|
21577
21577
|
/* @__PURE__ */ r.jsx(j, { size: "12px", color: "#3D3E45", sx: {
|
|
21578
21578
|
lineHeight: 1
|
|
21579
21579
|
}, children: se(t[s.basis], i) }),
|
|
21580
|
-
/* @__PURE__ */ r.jsx(
|
|
21580
|
+
/* @__PURE__ */ r.jsx(za, { postfix: l })
|
|
21581
21581
|
] })
|
|
21582
21582
|
] })
|
|
21583
21583
|
] });
|
|
@@ -21589,7 +21589,7 @@ const Da = ({
|
|
|
21589
21589
|
value: n
|
|
21590
21590
|
} = H(e.instanceData, "config"), {
|
|
21591
21591
|
variables: s
|
|
21592
|
-
} = e, i = T(() => w.defaults({}, n, io), [n]), o = e.data, a = T(() =>
|
|
21592
|
+
} = e, i = T(() => w.defaults({}, n, io), [n]), o = e.data, a = T(() => gc(o, s), [s, o]), {
|
|
21593
21593
|
width: l,
|
|
21594
21594
|
height: c
|
|
21595
21595
|
} = e.viewport;
|
|
@@ -22017,7 +22017,7 @@ const UT = ({
|
|
|
22017
22017
|
enabled: !1,
|
|
22018
22018
|
func_content: ["function label(value, index) {", " // your code goes here", " // return value", "}"].join(`
|
|
22019
22019
|
`)
|
|
22020
|
-
},
|
|
22020
|
+
}, md = me(({
|
|
22021
22021
|
value: e,
|
|
22022
22022
|
onChange: t
|
|
22023
22023
|
}, n) => {
|
|
@@ -22108,7 +22108,7 @@ function YT({
|
|
|
22108
22108
|
) }),
|
|
22109
22109
|
/* @__PURE__ */ r.jsx(b, { name: "x_axis.axisLabel.formatter", control: e, render: ({
|
|
22110
22110
|
field: n
|
|
22111
|
-
}) => /* @__PURE__ */ r.jsx(
|
|
22111
|
+
}) => /* @__PURE__ */ r.jsx(md, { ...n }) })
|
|
22112
22112
|
] })
|
|
22113
22113
|
] });
|
|
22114
22114
|
}
|
|
@@ -22170,7 +22170,7 @@ function JT({
|
|
|
22170
22170
|
) }),
|
|
22171
22171
|
/* @__PURE__ */ r.jsx(b, { name: "y_axis.axisLabel.formatter", control: e, render: ({
|
|
22172
22172
|
field: n
|
|
22173
|
-
}) => /* @__PURE__ */ r.jsx(
|
|
22173
|
+
}) => /* @__PURE__ */ r.jsx(md, { ...n }) })
|
|
22174
22174
|
] })
|
|
22175
22175
|
] });
|
|
22176
22176
|
}
|
|
@@ -22287,7 +22287,7 @@ function eI(e) {
|
|
|
22287
22287
|
function tI(e) {
|
|
22288
22288
|
return /* @__PURE__ */ r.jsx(j, { children: "Click heat block" });
|
|
22289
22289
|
}
|
|
22290
|
-
const
|
|
22290
|
+
const fd = {
|
|
22291
22291
|
id: "builtin:echarts:click-heatmap:heat-block",
|
|
22292
22292
|
displayName: "Click Heat Block",
|
|
22293
22293
|
nameRender: tI,
|
|
@@ -22318,7 +22318,7 @@ const md = {
|
|
|
22318
22318
|
valueType: "object"
|
|
22319
22319
|
}]
|
|
22320
22320
|
};
|
|
22321
|
-
function
|
|
22321
|
+
function La({
|
|
22322
22322
|
enabled: e,
|
|
22323
22323
|
func_content: t
|
|
22324
22324
|
}) {
|
|
@@ -22333,7 +22333,7 @@ function za({
|
|
|
22333
22333
|
};
|
|
22334
22334
|
}
|
|
22335
22335
|
function nI(e) {
|
|
22336
|
-
const t =
|
|
22336
|
+
const t = La(e.x_axis.axisLabel.formatter), n = La(e.y_axis.axisLabel.formatter);
|
|
22337
22337
|
return {
|
|
22338
22338
|
x_axis: t,
|
|
22339
22339
|
y_axis: n
|
|
@@ -22603,7 +22603,7 @@ function pI({
|
|
|
22603
22603
|
const a = T(() => {
|
|
22604
22604
|
const u = P(e.x_axis.data_key), p = P(e.y_axis.data_key);
|
|
22605
22605
|
return w.keyBy(t[u.queryID], (x) => `${x[u.columnKey]}---${x[p.columnKey]}`);
|
|
22606
|
-
}, [t, e.x_axis.data_key, e.y_axis.data_key]), l = bt(i.triggerManager,
|
|
22606
|
+
}, [t, e.x_axis.data_key, e.y_axis.data_key]), l = bt(i.triggerManager, fd.id), c = Ge((u) => {
|
|
22607
22607
|
const [p, x] = u.value, g = w.get(a, `${p}---${x}`, {
|
|
22608
22608
|
error: "rowData is not found"
|
|
22609
22609
|
});
|
|
@@ -22661,7 +22661,7 @@ const fI = {
|
|
|
22661
22661
|
version: 1,
|
|
22662
22662
|
config: oo
|
|
22663
22663
|
}),
|
|
22664
|
-
triggers: [
|
|
22664
|
+
triggers: [fd]
|
|
22665
22665
|
}, gI = [{
|
|
22666
22666
|
value: "#25262B",
|
|
22667
22667
|
name: "Dark"
|
|
@@ -22709,9 +22709,9 @@ const fI = {
|
|
|
22709
22709
|
value: e.value,
|
|
22710
22710
|
type: "single",
|
|
22711
22711
|
category: "basic"
|
|
22712
|
-
})), bI = [Om, Pm, Nm, qm, Vm, Bm],
|
|
22712
|
+
})), bI = [Om, Pm, Nm, qm, Vm, Bm], gd = () => ({
|
|
22713
22713
|
id: "dashboard",
|
|
22714
|
-
version:
|
|
22714
|
+
version: Yl,
|
|
22715
22715
|
manifest: {
|
|
22716
22716
|
viz: [oi, r1, IC, A_, C1, S0, Xk, sf, Kg, Jv, Ew, uk, p0, Dv, GS, K0, S_, FC, DT, fI, BT, cb],
|
|
22717
22717
|
color: [...gI, ...bI]
|
|
@@ -22730,7 +22730,7 @@ const fI = {
|
|
|
22730
22730
|
}
|
|
22731
22731
|
}, ao = () => {
|
|
22732
22732
|
try {
|
|
22733
|
-
er.install(
|
|
22733
|
+
er.install(gd());
|
|
22734
22734
|
} catch {
|
|
22735
22735
|
}
|
|
22736
22736
|
const e = new Rm(er), t = new Qm(er);
|
|
@@ -22739,17 +22739,17 @@ const fI = {
|
|
|
22739
22739
|
vizManager: e,
|
|
22740
22740
|
colorManager: t
|
|
22741
22741
|
};
|
|
22742
|
-
}, $t =
|
|
22742
|
+
}, $t = Wa(ao());
|
|
22743
22743
|
try {
|
|
22744
|
-
er.install(
|
|
22744
|
+
er.install(gd());
|
|
22745
22745
|
} catch {
|
|
22746
22746
|
}
|
|
22747
|
-
const ci =
|
|
22747
|
+
const ci = Wa(null);
|
|
22748
22748
|
function vs(e) {
|
|
22749
22749
|
const t = M.useContext(ci), n = St(() => e.configure(t || new Si()), [e.configure]), s = dh(n);
|
|
22750
22750
|
return s && s !== n && s.dispose(), /* @__PURE__ */ r.jsx(ci.Provider, { value: n, children: e.children });
|
|
22751
22751
|
}
|
|
22752
|
-
function
|
|
22752
|
+
function bd() {
|
|
22753
22753
|
return M.useContext(ci);
|
|
22754
22754
|
}
|
|
22755
22755
|
const yI = ({
|
|
@@ -22976,7 +22976,7 @@ const yI = ({
|
|
|
22976
22976
|
return [F(e).startOf("year").toDate(), F(e).endOf("year").toDate()];
|
|
22977
22977
|
}
|
|
22978
22978
|
}];
|
|
22979
|
-
function
|
|
22979
|
+
function yd(e) {
|
|
22980
22980
|
const n = lo().find((s) => s.value === e);
|
|
22981
22981
|
return n ? n.getRange() : null;
|
|
22982
22982
|
}
|
|
@@ -23010,7 +23010,7 @@ const SI = ({
|
|
|
23010
23010
|
}) => /* @__PURE__ */ r.jsx("td", { children: /* @__PURE__ */ r.jsx(C, { compact: !0, size: "xs", variant: "subtle", onClick: t(l), children: o }) }, o))
|
|
23011
23011
|
] }, s)) }) })
|
|
23012
23012
|
] });
|
|
23013
|
-
},
|
|
23013
|
+
}, Ma = (e) => ({
|
|
23014
23014
|
label: {
|
|
23015
23015
|
display: "block",
|
|
23016
23016
|
height: "21.7px"
|
|
@@ -23035,14 +23035,14 @@ const SI = ({
|
|
|
23035
23035
|
/* @__PURE__ */ r.jsxs(y, { position: "left", grow: !0, noWrap: !0, spacing: 0, w: "18em", sx: {
|
|
23036
23036
|
marginTop: "3px"
|
|
23037
23037
|
}, children: [
|
|
23038
|
-
/* @__PURE__ */ r.jsx(Rn.Target, { children: /* @__PURE__ */ r.jsx(D, { label: e, required: t, icon: /* @__PURE__ */ r.jsx(lp, { size: 16 }), placeholder: "Start date", readOnly: !0, value: p, onFocus: c, styles:
|
|
23038
|
+
/* @__PURE__ */ r.jsx(Rn.Target, { children: /* @__PURE__ */ r.jsx(D, { label: e, required: t, icon: /* @__PURE__ */ r.jsx(lp, { size: 16 }), placeholder: "Start date", readOnly: !0, value: p, onFocus: c, styles: Ma(l), sx: {
|
|
23039
23039
|
".mantine-Input-input": {
|
|
23040
23040
|
borderRight: "none",
|
|
23041
23041
|
borderTopRightRadius: 0,
|
|
23042
23042
|
borderBottomRightRadius: 0
|
|
23043
23043
|
}
|
|
23044
23044
|
} }) }),
|
|
23045
|
-
/* @__PURE__ */ r.jsx(D, { label: /* @__PURE__ */ r.jsx(y, { position: "right", children: /* @__PURE__ */ r.jsx(wI, { begin: h, end: u }) }), icon: /* @__PURE__ */ r.jsx(cp, { size: 16 }), placeholder: "End date", readOnly: !0, disabled: !h, value: x, onFocus: c, styles:
|
|
23045
|
+
/* @__PURE__ */ r.jsx(D, { label: /* @__PURE__ */ r.jsx(y, { position: "right", children: /* @__PURE__ */ r.jsx(wI, { begin: h, end: u }) }), icon: /* @__PURE__ */ r.jsx(cp, { size: 16 }), placeholder: "End date", readOnly: !0, disabled: !h, value: x, onFocus: c, styles: Ma(l), sx: {
|
|
23046
23046
|
".mantine-Input-icon": {
|
|
23047
23047
|
transform: "translateX(-22px)"
|
|
23048
23048
|
},
|
|
@@ -23067,7 +23067,7 @@ const SI = ({
|
|
|
23067
23067
|
/* @__PURE__ */ r.jsx(SI, { onChange: s })
|
|
23068
23068
|
] })
|
|
23069
23069
|
] });
|
|
23070
|
-
},
|
|
23070
|
+
}, jd = k(({
|
|
23071
23071
|
label: e,
|
|
23072
23072
|
config: t,
|
|
23073
23073
|
value: n = [null, null],
|
|
@@ -23258,9 +23258,14 @@ const SI = ({
|
|
|
23258
23258
|
alignItems: "flex-start"
|
|
23259
23259
|
}
|
|
23260
23260
|
}
|
|
23261
|
-
})),
|
|
23261
|
+
})), co = ({
|
|
23262
23262
|
errorMessage: e
|
|
23263
|
-
}) =>
|
|
23263
|
+
}) => {
|
|
23264
|
+
const {
|
|
23265
|
+
t
|
|
23266
|
+
} = $();
|
|
23267
|
+
return e ? /* @__PURE__ */ r.jsx(j, { color: "red", size: 12, children: e }) : /* @__PURE__ */ r.jsx(j, { color: "dimmed", size: 12, children: t("filter.widget.common.selector_option_empty") });
|
|
23268
|
+
}, TI = ({
|
|
23264
23269
|
disabled: e,
|
|
23265
23270
|
// styling props
|
|
23266
23271
|
classNames: t,
|
|
@@ -23305,7 +23310,7 @@ const SI = ({
|
|
|
23305
23310
|
] }),
|
|
23306
23311
|
E && /* @__PURE__ */ r.jsx(je, { label: `${l.length} selected`, children: /* @__PURE__ */ r.jsx(fn, { children: l.length }) })
|
|
23307
23312
|
] }),
|
|
23308
|
-
/* @__PURE__ */ r.jsx(rx, { disabled: e, allowClear: !0, className: x(p.root, "check-select"), dropdownClassName: x(p.dropdown, ""), onDropdownVisibleChange: I, transitionName: "rc-select-dropdown-slide-up", choiceTransitionName: "rc-select-selection__choice-zoom", style: o, clearIcon: () => /* @__PURE__ */ r.jsx(
|
|
23313
|
+
/* @__PURE__ */ r.jsx(rx, { disabled: e, allowClear: !0, className: x(p.root, "check-select"), dropdownClassName: x(p.dropdown, ""), onDropdownVisibleChange: I, transitionName: "rc-select-dropdown-slide-up", choiceTransitionName: "rc-select-selection__choice-zoom", style: o, clearIcon: () => /* @__PURE__ */ r.jsx(Ha, {}), value: l, onChange: c, onSelect: console.log, mode: "multiple", maxTagCount: 0, notFoundContent: /* @__PURE__ */ r.jsx(co, { errorMessage: h }), maxTagTextLength: 10, maxTagPlaceholder: (X) => `${X.length} selected`, searchValue: q, onSearch: U, filterOption: !1, children: te.map((X) => /* @__PURE__ */ r.jsxs(sx, { title: X.label, children: [
|
|
23309
23314
|
/* @__PURE__ */ r.jsx(j, { size: "sm", "data-role": "label", children: X.label }),
|
|
23310
23315
|
X.description && /* @__PURE__ */ r.jsx(j, { size: "xs", color: "dimmed", "data-role": "description", children: X.description })
|
|
23311
23316
|
] }, X.value)) })
|
|
@@ -23343,18 +23348,38 @@ const SI = ({
|
|
|
23343
23348
|
state: a,
|
|
23344
23349
|
error: l
|
|
23345
23350
|
} = i.getDataStuffByID(t.options_query_id), c = a === "loading";
|
|
23346
|
-
return /* @__PURE__ */ r.jsx(
|
|
23347
|
-
|
|
23348
|
-
|
|
23349
|
-
|
|
23350
|
-
|
|
23351
|
-
|
|
23352
|
-
|
|
23353
|
-
|
|
23354
|
-
|
|
23355
|
-
|
|
23351
|
+
return /* @__PURE__ */ r.jsx(
|
|
23352
|
+
A,
|
|
23353
|
+
{
|
|
23354
|
+
label: e,
|
|
23355
|
+
data: t.options,
|
|
23356
|
+
disabled: o ? c : !1,
|
|
23357
|
+
value: n,
|
|
23358
|
+
onChange: s,
|
|
23359
|
+
maxDropdownHeight: 500,
|
|
23360
|
+
styles: {
|
|
23361
|
+
root: {
|
|
23362
|
+
width: t.width ? t.width : "200px"
|
|
23363
|
+
},
|
|
23364
|
+
input: {
|
|
23365
|
+
borderColor: "#e9ecef"
|
|
23366
|
+
}
|
|
23367
|
+
},
|
|
23368
|
+
sx: {
|
|
23369
|
+
".mantine-Select-item[data-selected] .mantine-Text-root[data-role=description]": {
|
|
23370
|
+
color: "rgba(255,255,255,.7)"
|
|
23371
|
+
},
|
|
23372
|
+
".mantine-Select-nothingFound": {
|
|
23373
|
+
fontSize: "0.75rem",
|
|
23374
|
+
textAlign: "left",
|
|
23375
|
+
padding: "4px 10px"
|
|
23376
|
+
}
|
|
23377
|
+
},
|
|
23378
|
+
itemComponent: DI,
|
|
23379
|
+
searchable: !l,
|
|
23380
|
+
nothingFound: /* @__PURE__ */ r.jsx(co, { errorMessage: l })
|
|
23356
23381
|
}
|
|
23357
|
-
|
|
23382
|
+
);
|
|
23358
23383
|
});
|
|
23359
23384
|
function LI({
|
|
23360
23385
|
label: e,
|
|
@@ -23687,13 +23712,13 @@ const MI = ({
|
|
|
23687
23712
|
style: o,
|
|
23688
23713
|
listHeight: 510,
|
|
23689
23714
|
treeLine: !0,
|
|
23690
|
-
clearIcon: () => /* @__PURE__ */ r.jsx(
|
|
23715
|
+
clearIcon: () => /* @__PURE__ */ r.jsx(Ha, {}),
|
|
23691
23716
|
switcherIcon: AI,
|
|
23692
23717
|
treeIcon: RI,
|
|
23693
23718
|
maxTagTextLength: 10,
|
|
23694
23719
|
value: l,
|
|
23695
23720
|
treeData: d,
|
|
23696
|
-
notFoundContent: /* @__PURE__ */ r.jsx(
|
|
23721
|
+
notFoundContent: /* @__PURE__ */ r.jsx(co, { errorMessage: h }),
|
|
23697
23722
|
treeNodeFilterProp: "filterBasis",
|
|
23698
23723
|
treeCheckable: !0,
|
|
23699
23724
|
showCheckedStrategy: ox,
|
|
@@ -23743,7 +23768,7 @@ const MI = ({
|
|
|
23743
23768
|
case "text-input":
|
|
23744
23769
|
return /* @__PURE__ */ r.jsx(LI, { ...s, ...i, config: t });
|
|
23745
23770
|
case "date-range":
|
|
23746
|
-
return /* @__PURE__ */ r.jsx(
|
|
23771
|
+
return /* @__PURE__ */ r.jsx(jd, { ...s, ...i, config: t });
|
|
23747
23772
|
case "checkbox":
|
|
23748
23773
|
return /* @__PURE__ */ r.jsx(jI, { ...s, ...i, config: t });
|
|
23749
23774
|
default:
|
|
@@ -24390,7 +24415,7 @@ const nD = m.model("FilterDateRangeConfigMeta", {
|
|
|
24390
24415
|
setDefaultShortcut(t) {
|
|
24391
24416
|
if (e.default_shortcut = t, !t)
|
|
24392
24417
|
return;
|
|
24393
|
-
const n =
|
|
24418
|
+
const n = yd(e.default_shortcut);
|
|
24394
24419
|
if (console.log(n), n) {
|
|
24395
24420
|
const s = n.map((i) => F(i).format(e.inputFormat));
|
|
24396
24421
|
e.setFilterValue(s);
|
|
@@ -24438,7 +24463,7 @@ const nD = m.model("FilterDateRangeConfigMeta", {
|
|
|
24438
24463
|
setValue(t) {
|
|
24439
24464
|
e.value = t;
|
|
24440
24465
|
}
|
|
24441
|
-
})),
|
|
24466
|
+
})), uo = m.model("FilterConfigModel_BaseSelect", {
|
|
24442
24467
|
static_options: m.optional(m.array(sD), []),
|
|
24443
24468
|
options_query_id: m.optional(m.string, ""),
|
|
24444
24469
|
default_selection_count: m.optional(m.number, 0),
|
|
@@ -24461,7 +24486,7 @@ const nD = m.model("FilterDateRangeConfigMeta", {
|
|
|
24461
24486
|
data: t,
|
|
24462
24487
|
state: n
|
|
24463
24488
|
} = e.contentModel.getDataStuffByID(e.options_query_id);
|
|
24464
|
-
return n === "error" ? [] : Array.isArray(t) ? t : [];
|
|
24489
|
+
return n === "error" ? [] : Array.isArray(t) ? t.filter((s) => "label" in s && "value" in s) : [];
|
|
24465
24490
|
}
|
|
24466
24491
|
})).actions((e) => ({
|
|
24467
24492
|
setRequired(t) {
|
|
@@ -24483,7 +24508,7 @@ const nD = m.model("FilterDateRangeConfigMeta", {
|
|
|
24483
24508
|
_name: m.literal("multi-select"),
|
|
24484
24509
|
min_width: m.optional(m.string, ""),
|
|
24485
24510
|
default_value: m.optional(m.array(m.string), [])
|
|
24486
|
-
}),
|
|
24511
|
+
}), uo).views((e) => ({
|
|
24487
24512
|
get json() {
|
|
24488
24513
|
const {
|
|
24489
24514
|
_name: t,
|
|
@@ -24538,7 +24563,7 @@ const nD = m.model("FilterDateRangeConfigMeta", {
|
|
|
24538
24563
|
_name: m.literal("select"),
|
|
24539
24564
|
default_value: m.string,
|
|
24540
24565
|
width: m.optional(m.string, "")
|
|
24541
|
-
}),
|
|
24566
|
+
}), uo).views((e) => ({
|
|
24542
24567
|
get json() {
|
|
24543
24568
|
const {
|
|
24544
24569
|
_name: t,
|
|
@@ -24662,7 +24687,7 @@ const Ld = m.compose("FilterTreeSelectConfigMeta", m.model({
|
|
|
24662
24687
|
min_width: m.optional(m.string, ""),
|
|
24663
24688
|
default_value: m.optional(m.array(m.string), []),
|
|
24664
24689
|
treeCheckStrictly: m.optional(m.boolean, !1)
|
|
24665
|
-
}),
|
|
24690
|
+
}), uo).views((e) => ({
|
|
24666
24691
|
get json() {
|
|
24667
24692
|
const {
|
|
24668
24693
|
_name: t,
|
|
@@ -25165,7 +25190,7 @@ const Ad = m.model("ViewDivisionConfig", {
|
|
|
25165
25190
|
replace(t) {
|
|
25166
25191
|
e.list.length = 0, e.list.push(...t);
|
|
25167
25192
|
}
|
|
25168
|
-
})),
|
|
25193
|
+
})), ho = m.model("ContextMeta", {
|
|
25169
25194
|
current: m.optional(m.frozen(), {})
|
|
25170
25195
|
}).views((e) => ({
|
|
25171
25196
|
get keys() {
|
|
@@ -25186,7 +25211,7 @@ const Ad = m.model("ViewDivisionConfig", {
|
|
|
25186
25211
|
}
|
|
25187
25212
|
}));
|
|
25188
25213
|
function Od(e) {
|
|
25189
|
-
return
|
|
25214
|
+
return ho.create({
|
|
25190
25215
|
current: e
|
|
25191
25216
|
});
|
|
25192
25217
|
}
|
|
@@ -25218,7 +25243,7 @@ const Pd = m.compose("ViewRenderModel", mD, m.model({
|
|
|
25218
25243
|
return e.type === G.Tabs && t.push(this.tabViewID), t;
|
|
25219
25244
|
},
|
|
25220
25245
|
async downloadScreenshot(t) {
|
|
25221
|
-
const n = t.offsetWidth * 2 + 10, s = t.offsetHeight * 2 + 10, i = new
|
|
25246
|
+
const n = t.offsetWidth * 2 + 10, s = t.offsetHeight * 2 + 10, i = new ql(), o = (/* @__PURE__ */ new Date()).getTime(), a = await Vl.toBlob(t, {
|
|
25222
25247
|
bgcolor: "white",
|
|
25223
25248
|
width: n,
|
|
25224
25249
|
height: s,
|
|
@@ -25232,7 +25257,7 @@ const Pd = m.compose("ViewRenderModel", mD, m.model({
|
|
|
25232
25257
|
}).then((l) => {
|
|
25233
25258
|
is(l, `${e.name}_${o}.zip`);
|
|
25234
25259
|
}).catch((l) => {
|
|
25235
|
-
console.error(l),
|
|
25260
|
+
console.error(l), bl.show({
|
|
25236
25261
|
color: "red",
|
|
25237
25262
|
title: "Failed to download screenshot with dashboard state",
|
|
25238
25263
|
message: l.message
|
|
@@ -25317,8 +25342,8 @@ async function jD(e, t) {
|
|
|
25317
25342
|
});
|
|
25318
25343
|
is(s, `${e}.csv`);
|
|
25319
25344
|
}
|
|
25320
|
-
function
|
|
25321
|
-
const t = new
|
|
25345
|
+
function Aa(e) {
|
|
25346
|
+
const t = new ql(), n = e.map(async ({
|
|
25322
25347
|
id: s,
|
|
25323
25348
|
data: i
|
|
25324
25349
|
}) => {
|
|
@@ -25332,7 +25357,7 @@ function Ma(e) {
|
|
|
25332
25357
|
is(s, "dashboard_data.zip");
|
|
25333
25358
|
});
|
|
25334
25359
|
}).catch((s) => {
|
|
25335
|
-
console.error(s),
|
|
25360
|
+
console.error(s), bl.show({
|
|
25336
25361
|
color: "red",
|
|
25337
25362
|
title: "Failed to download data",
|
|
25338
25363
|
message: s.message
|
|
@@ -25360,7 +25385,7 @@ const Nd = YI.views((e) => ({
|
|
|
25360
25385
|
return this.queries.reduce((t, n) => (t[n.id] = n.data, t), {});
|
|
25361
25386
|
},
|
|
25362
25387
|
get variableStrings() {
|
|
25363
|
-
return
|
|
25388
|
+
return Bl(e.variables, this.data);
|
|
25364
25389
|
},
|
|
25365
25390
|
get dataLoading() {
|
|
25366
25391
|
return this.queries.some((t) => t.state === "loading");
|
|
@@ -25470,7 +25495,7 @@ function Wd(e) {
|
|
|
25470
25495
|
if (t._name === "date-range")
|
|
25471
25496
|
try {
|
|
25472
25497
|
if (t.default_shortcut) {
|
|
25473
|
-
const i =
|
|
25498
|
+
const i = yd(t.default_shortcut);
|
|
25474
25499
|
if (i)
|
|
25475
25500
|
return i.map((o) => F(o).format(t.inputFormat));
|
|
25476
25501
|
}
|
|
@@ -25607,7 +25632,7 @@ const _D = XI.views((e) => ({
|
|
|
25607
25632
|
return this.rootModel.content;
|
|
25608
25633
|
},
|
|
25609
25634
|
get conditionOptions() {
|
|
25610
|
-
if (!
|
|
25635
|
+
if (!Xo(e))
|
|
25611
25636
|
return [];
|
|
25612
25637
|
const {
|
|
25613
25638
|
context: t
|
|
@@ -25631,7 +25656,7 @@ const _D = XI.views((e) => ({
|
|
|
25631
25656
|
}), i;
|
|
25632
25657
|
},
|
|
25633
25658
|
get unmetRunByConditions() {
|
|
25634
|
-
if (!
|
|
25659
|
+
if (!Xo(e))
|
|
25635
25660
|
return [];
|
|
25636
25661
|
const {
|
|
25637
25662
|
run_by: t
|
|
@@ -25916,7 +25941,7 @@ const _D = XI.views((e) => ({
|
|
|
25916
25941
|
id: n,
|
|
25917
25942
|
data: s
|
|
25918
25943
|
}));
|
|
25919
|
-
|
|
25944
|
+
Aa(t);
|
|
25920
25945
|
},
|
|
25921
25946
|
downloadDataByQueryIDs(t) {
|
|
25922
25947
|
const n = new Set(t), s = e.current.filter((i) => n.has(i.id)).map(({
|
|
@@ -25926,7 +25951,7 @@ const _D = XI.views((e) => ({
|
|
|
25926
25951
|
id: i,
|
|
25927
25952
|
data: o
|
|
25928
25953
|
}));
|
|
25929
|
-
|
|
25954
|
+
Aa(s);
|
|
25930
25955
|
},
|
|
25931
25956
|
downloadDataByQueryID(t) {
|
|
25932
25957
|
const n = e.findByID(t);
|
|
@@ -25966,7 +25991,7 @@ function SD(e) {
|
|
|
25966
25991
|
current: e
|
|
25967
25992
|
};
|
|
25968
25993
|
}
|
|
25969
|
-
function
|
|
25994
|
+
function Ea({
|
|
25970
25995
|
min: e,
|
|
25971
25996
|
max: t
|
|
25972
25997
|
}) {
|
|
@@ -26000,7 +26025,7 @@ const Xd = m.model("LayoutsRenderModel", {
|
|
|
26000
26025
|
},
|
|
26001
26026
|
get currentRangeText() {
|
|
26002
26027
|
const t = this.currentLayoutRange;
|
|
26003
|
-
return
|
|
26028
|
+
return Ea(t);
|
|
26004
26029
|
},
|
|
26005
26030
|
get cols() {
|
|
26006
26031
|
const t = {};
|
|
@@ -26031,7 +26056,7 @@ const Xd = m.model("LayoutsRenderModel", {
|
|
|
26031
26056
|
return t.sort((n, s) => n.min - s.min).forEach((n, s) => {
|
|
26032
26057
|
s !== t.length - 1 && (n.max = t[s + 1].min);
|
|
26033
26058
|
}), t.forEach((n) => {
|
|
26034
|
-
n.text =
|
|
26059
|
+
n.text = Ea(n);
|
|
26035
26060
|
}), t;
|
|
26036
26061
|
},
|
|
26037
26062
|
get breakpointsInfo() {
|
|
@@ -26200,9 +26225,9 @@ const ID = (e) => new TD(e), DD = k(({
|
|
|
26200
26225
|
/* @__PURE__ */ r.jsx(ie.Item, { onClick: o.downloadData, icon: /* @__PURE__ */ r.jsx(fi, { size: 14 }), children: t("common.actions.download_data") }),
|
|
26201
26226
|
/* @__PURE__ */ r.jsx(ie.Item, { onClick: o.downloadSchema, icon: /* @__PURE__ */ r.jsx(jn, { size: 14 }), children: t("common.actions.download_schema") }),
|
|
26202
26227
|
/* @__PURE__ */ r.jsx(ie.Item, { onClick: a, icon: /* @__PURE__ */ r.jsx(rs, { size: 14 }), children: t("common.actions.download_screenshot") }),
|
|
26203
|
-
g && /* @__PURE__ */ r.jsx(ie.Item, { onClick: x, icon: /* @__PURE__ */ r.jsx(
|
|
26228
|
+
g && /* @__PURE__ */ r.jsx(ie.Item, { onClick: x, icon: /* @__PURE__ */ r.jsx(ll, { size: 14 }), disabled: !0, children: t("common.actions.enter_fullscreen") }),
|
|
26204
26229
|
/* @__PURE__ */ r.jsx(L, { label: "Edit", labelPosition: "center" }),
|
|
26205
|
-
/* @__PURE__ */ r.jsx(ie.Item, { onClick: u, icon: /* @__PURE__ */ r.jsx(
|
|
26230
|
+
/* @__PURE__ */ r.jsx(ie.Item, { onClick: u, icon: /* @__PURE__ */ r.jsx(cl, { size: 14 }), children: t("common.titles.settings") }),
|
|
26206
26231
|
/* @__PURE__ */ r.jsx(ie.Item, { onClick: h, icon: /* @__PURE__ */ r.jsx(Xh, { size: 14 }), children: t("common.actions.duplicate") }),
|
|
26207
26232
|
/* @__PURE__ */ r.jsx(ie.Item, { color: "red", onClick: p, icon: /* @__PURE__ */ r.jsx(le, { size: 14 }), children: t("common.actions.delete") })
|
|
26208
26233
|
] })
|
|
@@ -26254,7 +26279,7 @@ function MD(e) {
|
|
|
26254
26279
|
if (!s)
|
|
26255
26280
|
return;
|
|
26256
26281
|
const i = s.offsetWidth * 2, o = s.offsetHeight * 2;
|
|
26257
|
-
|
|
26282
|
+
Vl.toBlob(t.current, {
|
|
26258
26283
|
bgcolor: "white",
|
|
26259
26284
|
width: i,
|
|
26260
26285
|
height: o,
|
|
@@ -26333,7 +26358,7 @@ function tu(e) {
|
|
|
26333
26358
|
}, [e.viz.type, e.viz.conf]);
|
|
26334
26359
|
}
|
|
26335
26360
|
function nu(e) {
|
|
26336
|
-
const [t, n] = B(!1), s =
|
|
26361
|
+
const [t, n] = B(!1), s = bd().getRequired(Me.instanceScope.migrator);
|
|
26337
26362
|
return pr(async () => {
|
|
26338
26363
|
const i = s.status === Pr.notStarted;
|
|
26339
26364
|
n(s.status === Pr.done), s.status === Pr.notStarted && s.runMigration().then((o) => {
|
|
@@ -26344,7 +26369,7 @@ function nu(e) {
|
|
|
26344
26369
|
}, [s]), t;
|
|
26345
26370
|
}
|
|
26346
26371
|
function ru(e, t) {
|
|
26347
|
-
const n =
|
|
26372
|
+
const n = bd().getRequired(Me.instanceScope.vizInstance);
|
|
26348
26373
|
return O(() => (n.instanceData.setItem(null, t.viz.conf), n.instanceData.watchItem(null, (s) => {
|
|
26349
26374
|
e(s);
|
|
26350
26375
|
})), [e, t.viz.type]), n;
|
|
@@ -26451,7 +26476,7 @@ const $D = k(function({
|
|
|
26451
26476
|
ref: s,
|
|
26452
26477
|
downloadPanelScreenshot: i
|
|
26453
26478
|
} = MD(e);
|
|
26454
|
-
return e.title.show, /* @__PURE__ */ r.jsx(
|
|
26479
|
+
return e.title.show, /* @__PURE__ */ r.jsx(oc, { value: {
|
|
26455
26480
|
panel: e,
|
|
26456
26481
|
data: e.data,
|
|
26457
26482
|
loading: e.dataLoading,
|
|
@@ -26514,7 +26539,7 @@ const WD = k(({
|
|
|
26514
26539
|
/* @__PURE__ */ r.jsx(ie.Item, { onClick: n.refreshData, icon: /* @__PURE__ */ r.jsx(mi, { size: 14 }), children: t("common.actions.refresh") }),
|
|
26515
26540
|
/* @__PURE__ */ r.jsx(ie.Item, { onClick: n.downloadData, icon: /* @__PURE__ */ r.jsx(fi, { size: 14 }), children: t("common.actions.download_data") }),
|
|
26516
26541
|
/* @__PURE__ */ r.jsx(ie.Item, { onClick: s, icon: /* @__PURE__ */ r.jsx(rs, { size: 14 }), children: t("common.actions.download_screenshot") }),
|
|
26517
|
-
c && /* @__PURE__ */ r.jsx(ie.Item, { onClick: l, icon: /* @__PURE__ */ r.jsx(
|
|
26542
|
+
c && /* @__PURE__ */ r.jsx(ie.Item, { onClick: l, icon: /* @__PURE__ */ r.jsx(ll, { size: 14 }), children: t("common.actions.enter_fullscreen") })
|
|
26518
26543
|
] })
|
|
26519
26544
|
] }) }) : null;
|
|
26520
26545
|
});
|
|
@@ -26589,7 +26614,7 @@ const KD = M.forwardRef(({
|
|
|
26589
26614
|
"&:hover": {
|
|
26590
26615
|
color: "#228be6"
|
|
26591
26616
|
}
|
|
26592
|
-
}, variant: "transparent", ...t, children: /* @__PURE__ */ r.jsx(ep, { size: 16 }) })), XD =
|
|
26617
|
+
}, variant: "transparent", ...t, children: /* @__PURE__ */ r.jsx(ep, { size: 16 }) })), XD = $l(Ol), JD = k(({
|
|
26593
26618
|
view: e,
|
|
26594
26619
|
className: t = "layout"
|
|
26595
26620
|
}) => {
|
|
@@ -26612,14 +26637,14 @@ const KD = M.forwardRef(({
|
|
|
26612
26637
|
/* @__PURE__ */ r.jsx(KD, { h: d.h }),
|
|
26613
26638
|
/* @__PURE__ */ r.jsx(ND, { view: e, panel: d.panel })
|
|
26614
26639
|
] }, d.id)) });
|
|
26615
|
-
}), ZD =
|
|
26640
|
+
}), ZD = $l(Ol), ez = k(({
|
|
26616
26641
|
view: e,
|
|
26617
26642
|
className: t = "layout"
|
|
26618
26643
|
}) => {
|
|
26619
26644
|
const n = Pe(), s = n.layouts.items(e.panelIDs), i = n.layouts.gridLayouts(e.panelIDs);
|
|
26620
26645
|
return /* @__PURE__ */ r.jsx(ZD, { className: `dashboard-layout ${t}`, rowHeight: 1, margin: [0, 0], isDraggable: !1, isResizable: !1, cols: n.layouts.cols, layouts: i, breakpoints: n.layouts.breakpoints, onBreakpointChange: n.layouts.setCurrentBreakpoint, children: s.map((o) => /* @__PURE__ */ r.jsx("div", { "data-grid": o.layoutProperies, className: "panel-grid-item", children: /* @__PURE__ */ r.jsx(ou, { view: e, panel: o.panel }) }, o.id)) });
|
|
26621
26646
|
});
|
|
26622
|
-
function
|
|
26647
|
+
function po(e) {
|
|
26623
26648
|
const t = Zr(null);
|
|
26624
26649
|
return {
|
|
26625
26650
|
ref: t,
|
|
@@ -26670,7 +26695,7 @@ const tz = k(({
|
|
|
26670
26695
|
const {
|
|
26671
26696
|
ref: s,
|
|
26672
26697
|
downloadScreenshot: i
|
|
26673
|
-
} =
|
|
26698
|
+
} = po(t);
|
|
26674
26699
|
return /* @__PURE__ */ r.jsxs(r.Fragment, { children: [
|
|
26675
26700
|
/* @__PURE__ */ r.jsx(z, { ref: s, pt: 10, pb: 10, sx: n, children: e }),
|
|
26676
26701
|
/* @__PURE__ */ r.jsx(tz, { downloadScreenshot: i })
|
|
@@ -26684,7 +26709,7 @@ const tz = k(({
|
|
|
26684
26709
|
const n = Pe(), s = t.config, i = n.views.visibleViewIDs.includes(t.id), o = () => n.views.rmVisibleViewID(t.id), {
|
|
26685
26710
|
ref: a,
|
|
26686
26711
|
downloadScreenshot: l
|
|
26687
|
-
} =
|
|
26712
|
+
} = po(t);
|
|
26688
26713
|
return /* @__PURE__ */ r.jsx(be, { size: s.width, centered: !0, opened: i, onClose: o, withCloseButton: !1, title: /* @__PURE__ */ r.jsxs(y, { position: "apart", px: "1rem", h: "48px", children: [
|
|
26689
26714
|
/* @__PURE__ */ r.jsx(z, { children: s.custom_modal_title.value }),
|
|
26690
26715
|
/* @__PURE__ */ r.jsx(lu, { downloadScreenshot: l })
|
|
@@ -26745,7 +26770,7 @@ const tz = k(({
|
|
|
26745
26770
|
/* @__PURE__ */ r.jsx(f.List, { grow: n.grow, children: n.tabsInOrder.map((s) => /* @__PURE__ */ r.jsx(f.Tab, { value: s.id, sx: rz(s), disabled: !s.view_id, children: s.name ?? s.id }, s.id)) }),
|
|
26746
26771
|
n.tabsInOrder.map((s) => {
|
|
26747
26772
|
const i = t.views.findByID(s.view_id);
|
|
26748
|
-
return i ? /* @__PURE__ */ r.jsx(f.Panel, { value: s.id, children: /* @__PURE__ */ r.jsx(
|
|
26773
|
+
return i ? /* @__PURE__ */ r.jsx(f.Panel, { value: s.id, children: /* @__PURE__ */ r.jsx(xo, { view: i }) }, s.id) : null;
|
|
26749
26774
|
})
|
|
26750
26775
|
] });
|
|
26751
26776
|
}), iz = k(({
|
|
@@ -26788,7 +26813,7 @@ const tz = k(({
|
|
|
26788
26813
|
}
|
|
26789
26814
|
}, children: e }) }) });
|
|
26790
26815
|
});
|
|
26791
|
-
function
|
|
26816
|
+
function Ra(e) {
|
|
26792
26817
|
return e.replace(/(vw|vh)/, "%");
|
|
26793
26818
|
}
|
|
26794
26819
|
const az = k(({
|
|
@@ -26799,12 +26824,12 @@ const az = k(({
|
|
|
26799
26824
|
width: s,
|
|
26800
26825
|
height: i
|
|
26801
26826
|
} = T(() => ({
|
|
26802
|
-
width:
|
|
26803
|
-
height:
|
|
26827
|
+
width: Ra(n.width),
|
|
26828
|
+
height: Ra(n.height)
|
|
26804
26829
|
}), [n.width, n.height]), {
|
|
26805
26830
|
ref: o,
|
|
26806
26831
|
downloadScreenshot: a
|
|
26807
|
-
} =
|
|
26832
|
+
} = po(t);
|
|
26808
26833
|
return /* @__PURE__ */ r.jsx(z, { sx: {
|
|
26809
26834
|
height: "100%",
|
|
26810
26835
|
"> div:not(.mantine-Modal-root)": {
|
|
@@ -26938,7 +26963,7 @@ const az = k(({
|
|
|
26938
26963
|
/* @__PURE__ */ r.jsx(C, { mt: 20, variant: "subtle", color: "red", onClick: () => a(d), disabled: l, leftIcon: /* @__PURE__ */ r.jsx(Gt, { size: 14 }), children: t("view.component.tabs.tab.delete") })
|
|
26939
26964
|
] })
|
|
26940
26965
|
] }),
|
|
26941
|
-
h && /* @__PURE__ */ r.jsx(
|
|
26966
|
+
h && /* @__PURE__ */ r.jsx(xo, { view: h })
|
|
26942
26967
|
] }, c.id);
|
|
26943
26968
|
})
|
|
26944
26969
|
] });
|
|
@@ -26973,7 +26998,7 @@ const az = k(({
|
|
|
26973
26998
|
}, children: /* @__PURE__ */ r.jsx(vd, { view: t }) }),
|
|
26974
26999
|
/* @__PURE__ */ r.jsx(JD, { view: t })
|
|
26975
27000
|
] }) }) }) });
|
|
26976
|
-
}),
|
|
27001
|
+
}), xo = k(function({
|
|
26977
27002
|
view: t
|
|
26978
27003
|
}) {
|
|
26979
27004
|
const {
|
|
@@ -27539,7 +27564,7 @@ const Tz = m.model("EditorModel", {
|
|
|
27539
27564
|
label: "query_variable.labels",
|
|
27540
27565
|
value: "_QUERY_VARS_",
|
|
27541
27566
|
_type: "query_variables",
|
|
27542
|
-
Icon:
|
|
27567
|
+
Icon: hl
|
|
27543
27568
|
}, {
|
|
27544
27569
|
label: "mock_context.label",
|
|
27545
27570
|
value: "_MOCK_CONTEXT_",
|
|
@@ -27548,7 +27573,7 @@ const Tz = m.model("EditorModel", {
|
|
|
27548
27573
|
}, {
|
|
27549
27574
|
label: "filter.labels",
|
|
27550
27575
|
value: "_FILTERS_",
|
|
27551
|
-
Icon:
|
|
27576
|
+
Icon: pl,
|
|
27552
27577
|
children: [ln("_FILTERS_SETTINGS_"), ...n.options, ln("_Add_A_Filter_")],
|
|
27553
27578
|
_type: "GROUP"
|
|
27554
27579
|
}, {
|
|
@@ -27566,7 +27591,7 @@ const Tz = m.model("EditorModel", {
|
|
|
27566
27591
|
}, {
|
|
27567
27592
|
label: "view.labels",
|
|
27568
27593
|
value: "_VIEWS_",
|
|
27569
|
-
Icon:
|
|
27594
|
+
Icon: xl,
|
|
27570
27595
|
children: [...s.editorOptions, ln("_Add_A_VIEW_")],
|
|
27571
27596
|
_type: "GROUP"
|
|
27572
27597
|
}];
|
|
@@ -27763,7 +27788,7 @@ const Tz = m.model("EditorModel", {
|
|
|
27763
27788
|
}
|
|
27764
27789
|
})).actions((e) => ({
|
|
27765
27790
|
replace(t) {
|
|
27766
|
-
e.list =
|
|
27791
|
+
e.list = Pl(t);
|
|
27767
27792
|
},
|
|
27768
27793
|
append(t) {
|
|
27769
27794
|
e.list.push(t);
|
|
@@ -27970,7 +27995,7 @@ const Az = m.model({
|
|
|
27970
27995
|
return !xe(zt(re(e, t)), re(e.origin, t));
|
|
27971
27996
|
},
|
|
27972
27997
|
get queriesChanged() {
|
|
27973
|
-
const t = "queries.current", n = zt(re(e, t)).map((s) =>
|
|
27998
|
+
const t = "queries.current", n = zt(re(e, t)).map((s) => ol(s, ["id", "name", "key", "type", "sql", "run_by", "react_to", "pre_process", "post_process", "dep_query_ids"]));
|
|
27974
27999
|
return !xe(n, re(e.origin, t));
|
|
27975
28000
|
},
|
|
27976
28001
|
get sqlSnippetsChanged() {
|
|
@@ -28248,7 +28273,7 @@ const Az = m.model({
|
|
|
28248
28273
|
},
|
|
28249
28274
|
postProcessor(e) {
|
|
28250
28275
|
delete e.origin;
|
|
28251
|
-
const t =
|
|
28276
|
+
const t = Pl(e.queries.current.map((n) => ol(n, ["id", "key", "type", "sql"])));
|
|
28252
28277
|
return Te({}, {
|
|
28253
28278
|
queries: {
|
|
28254
28279
|
current: t
|
|
@@ -28314,7 +28339,7 @@ const Rz = m.model({
|
|
|
28314
28339
|
content_id: m.string,
|
|
28315
28340
|
datasources: Cz,
|
|
28316
28341
|
globalSQLSnippets: $d,
|
|
28317
|
-
context:
|
|
28342
|
+
context: ho,
|
|
28318
28343
|
editor: Tz
|
|
28319
28344
|
}).views((e) => ({
|
|
28320
28345
|
get json() {
|
|
@@ -28426,7 +28451,7 @@ function uu(e, t) {
|
|
|
28426
28451
|
return;
|
|
28427
28452
|
}
|
|
28428
28453
|
function c(u) {
|
|
28429
|
-
return
|
|
28454
|
+
return el(u, (x) => {
|
|
28430
28455
|
if (a && typeof x == "string")
|
|
28431
28456
|
return encodeURIComponent(x);
|
|
28432
28457
|
});
|
|
@@ -28454,7 +28479,7 @@ const $z = k(({
|
|
|
28454
28479
|
} = $(), n = Rt(), s = oe(), i = () => {
|
|
28455
28480
|
n.openConfirmModal({
|
|
28456
28481
|
title: /* @__PURE__ */ r.jsxs(y, { position: "left", children: [
|
|
28457
|
-
/* @__PURE__ */ r.jsx(
|
|
28482
|
+
/* @__PURE__ */ r.jsx(ml, { size: 18, color: "red" }),
|
|
28458
28483
|
/* @__PURE__ */ r.jsx(j, { children: "You are reverting changes" })
|
|
28459
28484
|
] }),
|
|
28460
28485
|
labels: {
|
|
@@ -28520,7 +28545,7 @@ const $z = k(({
|
|
|
28520
28545
|
flexGrow: 1
|
|
28521
28546
|
}, children: n })
|
|
28522
28547
|
] }) });
|
|
28523
|
-
}),
|
|
28548
|
+
}), Fa = {
|
|
28524
28549
|
height: "30px",
|
|
28525
28550
|
borderLeft: "none",
|
|
28526
28551
|
borderTop: "none",
|
|
@@ -28531,11 +28556,11 @@ const $z = k(({
|
|
|
28531
28556
|
const {
|
|
28532
28557
|
t: e
|
|
28533
28558
|
} = $(), t = oe(), n = ((i = t.views.VIE) == null ? void 0 : i.type) === G.Tabs, s = () => t.addANewPanel(t.views.idOfVIE);
|
|
28534
|
-
return n ? /* @__PURE__ */ r.jsx(je, { label: e("common.choose_a_tab_first"), children: /* @__PURE__ */ r.jsx(C, { variant: "outline", color: "gray", radius: 0, size: "xs", leftIcon: /* @__PURE__ */ r.jsx(
|
|
28535
|
-
...
|
|
28559
|
+
return n ? /* @__PURE__ */ r.jsx(je, { label: e("common.choose_a_tab_first"), children: /* @__PURE__ */ r.jsx(C, { variant: "outline", color: "gray", radius: 0, size: "xs", leftIcon: /* @__PURE__ */ r.jsx(Ho, { size: 20 }), sx: {
|
|
28560
|
+
...Fa,
|
|
28536
28561
|
transform: "none !important"
|
|
28537
|
-
}, children: e("panel.add") }) }) : /* @__PURE__ */ r.jsx(C, { variant: "outline", color: "blue", radius: 0, size: "xs", onClick: s, leftIcon: /* @__PURE__ */ r.jsx(
|
|
28538
|
-
...
|
|
28562
|
+
}, children: e("panel.add") }) }) : /* @__PURE__ */ r.jsx(C, { variant: "outline", color: "blue", radius: 0, size: "xs", onClick: s, leftIcon: /* @__PURE__ */ r.jsx(Ho, { size: 20 }), sx: {
|
|
28563
|
+
...Fa,
|
|
28539
28564
|
background: "rgb(231, 245, 255)"
|
|
28540
28565
|
}, children: e("panel.add") });
|
|
28541
28566
|
}), Vz = k(({
|
|
@@ -28684,7 +28709,7 @@ const $z = k(({
|
|
|
28684
28709
|
count: 2
|
|
28685
28710
|
}), withinPortal: !0, zIndex: 320, size: 600, closeOnClickOutside: !1, children: /* @__PURE__ */ r.jsx(Vz, { done: c }) })
|
|
28686
28711
|
] });
|
|
28687
|
-
}),
|
|
28712
|
+
}), $a = {
|
|
28688
28713
|
height: "30px",
|
|
28689
28714
|
borderRight: "none",
|
|
28690
28715
|
borderTop: "none",
|
|
@@ -28699,10 +28724,10 @@ const $z = k(({
|
|
|
28699
28724
|
return (o = t.views.VIE) == null ? void 0 : o.downloadSchema();
|
|
28700
28725
|
};
|
|
28701
28726
|
return n ? /* @__PURE__ */ r.jsx(je, { label: e("common.choose_a_tab_first"), children: /* @__PURE__ */ r.jsx(C, { variant: "outline", color: "gray", radius: 0, size: "xs", leftIcon: /* @__PURE__ */ r.jsx(jn, { size: 16 }), sx: {
|
|
28702
|
-
|
|
28727
|
+
...$a,
|
|
28703
28728
|
transform: "none !important"
|
|
28704
28729
|
}, children: e("view.download_schema") }) }) : /* @__PURE__ */ r.jsx(C, { variant: "outline", color: "blue", radius: 0, size: "xs", onClick: s, leftIcon: /* @__PURE__ */ r.jsx(jn, { size: 16 }), sx: {
|
|
28705
|
-
|
|
28730
|
+
...$a
|
|
28706
28731
|
// background: 'rgb(231, 245, 255)',
|
|
28707
28732
|
}, children: e("view.download_schema") });
|
|
28708
28733
|
}), _s = ({
|
|
@@ -28933,7 +28958,7 @@ const Xz = k(({
|
|
|
28933
28958
|
/* @__PURE__ */ r.jsx(y, { position: "right", my: "md", children: /* @__PURE__ */ r.jsx(C, { type: "submit", color: "green", disabled: _, children: s("common.actions.confirm") }) })
|
|
28934
28959
|
] })
|
|
28935
28960
|
] }) });
|
|
28936
|
-
}),
|
|
28961
|
+
}), Oa = {
|
|
28937
28962
|
height: "30px",
|
|
28938
28963
|
borderLeft: "none",
|
|
28939
28964
|
borderTop: "none",
|
|
@@ -28950,12 +28975,12 @@ const Xz = k(({
|
|
|
28950
28975
|
setTrue: o,
|
|
28951
28976
|
setFalse: a
|
|
28952
28977
|
}] = Oe(!1), c = ((d = pe().content.views.VIE) == null ? void 0 : d.type) === G.Tabs;
|
|
28953
|
-
return c ? /* @__PURE__ */ r.jsx(je, { label: e("common.choose_a_tab_first"), children: /* @__PURE__ */ r.jsx(C, { variant: "outline", color: "gray", radius: 0, size: "xs", leftIcon: /* @__PURE__ */ r.jsx(
|
|
28954
|
-
|
|
28978
|
+
return c ? /* @__PURE__ */ r.jsx(je, { label: e("common.choose_a_tab_first"), children: /* @__PURE__ */ r.jsx(C, { variant: "outline", color: "gray", radius: 0, size: "xs", leftIcon: /* @__PURE__ */ r.jsx(Uo, { size: 16 }), sx: {
|
|
28979
|
+
...Oa,
|
|
28955
28980
|
transform: "none !important"
|
|
28956
28981
|
}, children: e("import.label") }) }) : /* @__PURE__ */ r.jsxs(r.Fragment, { children: [
|
|
28957
|
-
/* @__PURE__ */ r.jsx(C, { variant: "subtle", color: "blue", radius: 0, size: "xs", disabled: c || t, onClick: n, leftIcon: /* @__PURE__ */ r.jsx(
|
|
28958
|
-
|
|
28982
|
+
/* @__PURE__ */ r.jsx(C, { variant: "subtle", color: "blue", radius: 0, size: "xs", disabled: c || t, onClick: n, leftIcon: /* @__PURE__ */ r.jsx(Uo, { size: 16 }), sx: {
|
|
28983
|
+
...Oa
|
|
28959
28984
|
// background: 'rgb(231, 245, 255)',
|
|
28960
28985
|
}, children: e("import.label") }),
|
|
28961
28986
|
/* @__PURE__ */ r.jsx(be, { opened: t, onClose: s, title: e("import.title"), trapFocus: !0, onDragStart: (h) => {
|
|
@@ -29067,12 +29092,12 @@ function pu(e, t, n) {
|
|
|
29067
29092
|
function sL(e, t, n) {
|
|
29068
29093
|
return e * t + (e - 1) * n;
|
|
29069
29094
|
}
|
|
29070
|
-
const Xr = 25,
|
|
29095
|
+
const Xr = 25, mo = 40, xu = 25, fo = 350, iL = 150, oL = 150, mu = 150, Pa = 300, Vr = 40, fu = 25, aL = 300;
|
|
29071
29096
|
function lL(e, t) {
|
|
29072
29097
|
const n = w.keyBy(t, (i) => i.id), s = [];
|
|
29073
29098
|
return e.current.forEach((i, o) => {
|
|
29074
29099
|
i.panelIDs.forEach((a, l) => {
|
|
29075
|
-
const c = pu(l, Vr, fu) +
|
|
29100
|
+
const c = pu(l, Vr, fu) + mo, d = n[a];
|
|
29076
29101
|
if (!d) {
|
|
29077
29102
|
s.push({
|
|
29078
29103
|
id: a,
|
|
@@ -29088,7 +29113,7 @@ function lL(e, t) {
|
|
|
29088
29113
|
sourcePosition: _t.Right,
|
|
29089
29114
|
targetPosition: _t.Left,
|
|
29090
29115
|
style: {
|
|
29091
|
-
width:
|
|
29116
|
+
width: Pa,
|
|
29092
29117
|
height: Vr
|
|
29093
29118
|
}
|
|
29094
29119
|
});
|
|
@@ -29109,7 +29134,7 @@ function lL(e, t) {
|
|
|
29109
29134
|
sourcePosition: _t.Right,
|
|
29110
29135
|
targetPosition: _t.Left,
|
|
29111
29136
|
style: {
|
|
29112
|
-
width:
|
|
29137
|
+
width: Pa,
|
|
29113
29138
|
height: Vr
|
|
29114
29139
|
}
|
|
29115
29140
|
});
|
|
@@ -29123,7 +29148,7 @@ const cL = {
|
|
|
29123
29148
|
}, dL = xz;
|
|
29124
29149
|
function uL(e) {
|
|
29125
29150
|
return e.current.map((n, s) => {
|
|
29126
|
-
const i = sL(n.panelIDs.length, Vr, fu) +
|
|
29151
|
+
const i = sL(n.panelIDs.length, Vr, fu) + mo + xu;
|
|
29127
29152
|
let o = [];
|
|
29128
29153
|
return n.type === G.Tabs && (o = n.config.tabsInOrder.map((l) => l.view_id)), {
|
|
29129
29154
|
id: n.id,
|
|
@@ -29144,7 +29169,7 @@ function uL(e) {
|
|
|
29144
29169
|
className: "light",
|
|
29145
29170
|
style: {
|
|
29146
29171
|
backgroundColor: dL[n.type],
|
|
29147
|
-
width:
|
|
29172
|
+
width: fo,
|
|
29148
29173
|
height: i
|
|
29149
29174
|
}
|
|
29150
29175
|
};
|
|
@@ -29170,12 +29195,12 @@ function xL({
|
|
|
29170
29195
|
edges: n
|
|
29171
29196
|
}) {
|
|
29172
29197
|
t.forEach((s) => {
|
|
29173
|
-
s._node_type !== "view-root" || s._view_type !== G.Tabs || (s.sourcePosition = _t.Bottom, s.style.width =
|
|
29198
|
+
s._node_type !== "view-root" || s._view_type !== G.Tabs || (s.sourcePosition = _t.Bottom, s.style.width = fo + Xr * 2, s.style.height = xu + s._tab_view_ids.reduce((i, o) => {
|
|
29174
29199
|
const a = e[o];
|
|
29175
29200
|
a.position.y = i, a.position.x = Xr;
|
|
29176
29201
|
const l = a.style.height;
|
|
29177
29202
|
return i + l + 20;
|
|
29178
|
-
},
|
|
29203
|
+
}, mo));
|
|
29179
29204
|
});
|
|
29180
29205
|
}
|
|
29181
29206
|
function mL({
|
|
@@ -29218,7 +29243,7 @@ function gL({
|
|
|
29218
29243
|
n.forEach((a) => {
|
|
29219
29244
|
s.add(a.source), i.add(a.target);
|
|
29220
29245
|
}), t.filter((a) => a._node_type !== "view-root" || a.id === "Main" || a.parentNode ? !1 : !s.has(a.id) && !i.has(a.id)).forEach((a, l) => {
|
|
29221
|
-
a.position.x = pu(l,
|
|
29246
|
+
a.position.x = pu(l, fo, oL), a.position.y = 0 - iL - mu;
|
|
29222
29247
|
});
|
|
29223
29248
|
}
|
|
29224
29249
|
function bL({
|
|
@@ -29308,7 +29333,7 @@ const vL = Xu(({
|
|
|
29308
29333
|
}) => {
|
|
29309
29334
|
const o = T(() => jL(e.interactions), [e.interactions]);
|
|
29310
29335
|
return /* @__PURE__ */ r.jsxs(r.Fragment, { children: [
|
|
29311
|
-
/* @__PURE__ */ r.jsx(
|
|
29336
|
+
/* @__PURE__ */ r.jsx(Jo, { type: "target", position: s, isConnectable: t }),
|
|
29312
29337
|
/* @__PURE__ */ r.jsx(z, { sx: {
|
|
29313
29338
|
position: "absolute",
|
|
29314
29339
|
top: 0,
|
|
@@ -29318,7 +29343,7 @@ const vL = Xu(({
|
|
|
29318
29343
|
/* @__PURE__ */ r.jsx(De.Target, { children: /* @__PURE__ */ r.jsx(j, { children: e.label }) }),
|
|
29319
29344
|
/* @__PURE__ */ r.jsx(De.Dropdown, { children: /* @__PURE__ */ r.jsx(at, { spacing: "xs", size: "sm", center: !0, children: o.map((a) => /* @__PURE__ */ r.jsx(at.Item, { icon: a.icon, children: a.text }, a.key)) }) })
|
|
29320
29345
|
] }),
|
|
29321
|
-
/* @__PURE__ */ r.jsx(
|
|
29346
|
+
/* @__PURE__ */ r.jsx(Jo, { type: "source", position: n, isConnectable: t })
|
|
29322
29347
|
] });
|
|
29323
29348
|
});
|
|
29324
29349
|
const wL = {
|
|
@@ -29474,7 +29499,7 @@ const TL = k(() => {
|
|
|
29474
29499
|
}, children: [
|
|
29475
29500
|
/* @__PURE__ */ r.jsx(je, { label: e("filter.labels"), withinPortal: !0, children: /* @__PURE__ */ r.jsx(W, { variant: "default", radius: 0, size: "md", sx: {
|
|
29476
29501
|
height: "30px"
|
|
29477
|
-
}, onClick: i, children: /* @__PURE__ */ r.jsx(
|
|
29502
|
+
}, onClick: i, children: /* @__PURE__ */ r.jsx(pl, { size: 18 }) }) }),
|
|
29478
29503
|
/* @__PURE__ */ r.jsx(je, { label: e("query.labels"), withinPortal: !0, children: /* @__PURE__ */ r.jsx(W, { variant: "default", radius: 0, size: "md", sx: {
|
|
29479
29504
|
height: "30px"
|
|
29480
29505
|
}, onClick: s, children: /* @__PURE__ */ r.jsx(ss, { size: 18 }) }) }),
|
|
@@ -29500,14 +29525,14 @@ const TL = k(() => {
|
|
|
29500
29525
|
}), DL = ["function getDefaultValue(filter, utils, context) {", ' return "";', "}"].join(`
|
|
29501
29526
|
`), Hn = k(({
|
|
29502
29527
|
filter: e
|
|
29503
|
-
}) => /* @__PURE__ */ r.jsx(
|
|
29528
|
+
}) => /* @__PURE__ */ r.jsx(Pc, { label: "", title: "Custom Default Value", triggerLabel: "Default by function", value: e.default_value_func, onChange: e.setDefaultValueFunc, defaultValue: DL, triggerButtonProps: {
|
|
29504
29529
|
size: "xs",
|
|
29505
29530
|
color: "grape",
|
|
29506
29531
|
sx: {
|
|
29507
29532
|
flexGrow: 0,
|
|
29508
29533
|
alignSelf: "flex-start"
|
|
29509
29534
|
},
|
|
29510
|
-
leftIcon: /* @__PURE__ */ r.jsx(
|
|
29535
|
+
leftIcon: /* @__PURE__ */ r.jsx(ul, { size: 16 })
|
|
29511
29536
|
}, description: /* @__PURE__ */ r.jsx(es, { title: "Tips", color: "gray", mb: 16, children: /* @__PURE__ */ r.jsxs(at, { size: 13, type: "ordered", children: [
|
|
29512
29537
|
/* @__PURE__ */ r.jsx(at.Item, { children: "Function has the highest priority of getting filter's default value" }),
|
|
29513
29538
|
/* @__PURE__ */ r.jsx(at.Item, { children: "Leave this editor empty to disable this feature" })
|
|
@@ -29564,7 +29589,7 @@ const TL = k(() => {
|
|
|
29564
29589
|
] }),
|
|
29565
29590
|
/* @__PURE__ */ r.jsxs(y, { children: [
|
|
29566
29591
|
/* @__PURE__ */ r.jsx(
|
|
29567
|
-
|
|
29592
|
+
jd,
|
|
29568
29593
|
{
|
|
29569
29594
|
label: "Default Value",
|
|
29570
29595
|
config: n,
|
|
@@ -29579,7 +29604,7 @@ const TL = k(() => {
|
|
|
29579
29604
|
] }),
|
|
29580
29605
|
/* @__PURE__ */ r.jsx(Hn, { filter: t })
|
|
29581
29606
|
] });
|
|
29582
|
-
}),
|
|
29607
|
+
}), go = k(({
|
|
29583
29608
|
value: e,
|
|
29584
29609
|
onChange: t
|
|
29585
29610
|
}) => {
|
|
@@ -29673,7 +29698,7 @@ const TL = k(() => {
|
|
|
29673
29698
|
] }),
|
|
29674
29699
|
/* @__PURE__ */ r.jsx(L, { label: "Or fetch options from database", labelPosition: "center" }),
|
|
29675
29700
|
/* @__PURE__ */ r.jsx(Y, { value: n.default_selection_count, onChange: n.setDefaultSelectionCount, label: "Select first N options by default" }),
|
|
29676
|
-
/* @__PURE__ */ r.jsx(
|
|
29701
|
+
/* @__PURE__ */ r.jsx(go, { value: n.options_query_id, onChange: n.setOptionsQueryID }),
|
|
29677
29702
|
/* @__PURE__ */ r.jsx(gu, {})
|
|
29678
29703
|
] });
|
|
29679
29704
|
}), RL = k(function({
|
|
@@ -29744,7 +29769,7 @@ const TL = k(() => {
|
|
|
29744
29769
|
] }),
|
|
29745
29770
|
/* @__PURE__ */ r.jsx(L, { label: n("filter.widget.common.or_fetch_options_from_datasource"), labelPosition: "center" }),
|
|
29746
29771
|
/* @__PURE__ */ r.jsx(J, { checked: i.default_selection_count === 1, onChange: (c) => i.setDefaultSelectionCount(c.currentTarget.checked ? 1 : 0), label: n("filter.widget.select.select_first_option_by_default") }),
|
|
29747
|
-
/* @__PURE__ */ r.jsx(
|
|
29772
|
+
/* @__PURE__ */ r.jsx(go, { value: i.options_query_id, onChange: i.setOptionsQueryID }),
|
|
29748
29773
|
/* @__PURE__ */ r.jsx(gu, {})
|
|
29749
29774
|
] });
|
|
29750
29775
|
}), FL = k(function({
|
|
@@ -29791,7 +29816,7 @@ const TL = k(() => {
|
|
|
29791
29816
|
/* @__PURE__ */ r.jsx(L, { label: "Fetch options from database", labelPosition: "center" }),
|
|
29792
29817
|
/* @__PURE__ */ r.jsx(J, { checked: n.treeCheckStrictly, onChange: (s) => n.setTreeCheckStrictly(s.currentTarget.checked), label: "Parent and children nodes are not associated" }),
|
|
29793
29818
|
/* @__PURE__ */ r.jsx(Y, { value: n.default_selection_count, onChange: n.setDefaultSelectionCount, label: "Select first N options by default" }),
|
|
29794
|
-
/* @__PURE__ */ r.jsx(
|
|
29819
|
+
/* @__PURE__ */ r.jsx(go, { value: n.options_query_id, onChange: n.setOptionsQueryID }),
|
|
29795
29820
|
/* @__PURE__ */ r.jsx(OL, {})
|
|
29796
29821
|
] });
|
|
29797
29822
|
}), VL = k(function({
|
|
@@ -30041,7 +30066,7 @@ const TL = k(() => {
|
|
|
30041
30066
|
maxWidth: "unset !important"
|
|
30042
30067
|
}, children: [
|
|
30043
30068
|
/* @__PURE__ */ r.jsx(j, { children: e("mock_context.hint") }),
|
|
30044
|
-
/* @__PURE__ */ r.jsx(
|
|
30069
|
+
/* @__PURE__ */ r.jsx(Ua, { validationError: "Invalid json", formatOnBlur: !0, autosize: !0, minRows: 30, value: n, onChange: s, sx: {
|
|
30045
30070
|
flexGrow: 1
|
|
30046
30071
|
} })
|
|
30047
30072
|
] }),
|
|
@@ -30103,7 +30128,7 @@ const TL = k(() => {
|
|
|
30103
30128
|
panel: t
|
|
30104
30129
|
} = Tt(), {
|
|
30105
30130
|
name: n
|
|
30106
|
-
} = t, [s, i] =
|
|
30131
|
+
} = t, [s, i] = al(n), o = n !== s, a = M.useCallback(() => {
|
|
30107
30132
|
o && t.setName(s);
|
|
30108
30133
|
}, [o, s]);
|
|
30109
30134
|
O(() => {
|
|
@@ -30189,15 +30214,15 @@ function bu({
|
|
|
30189
30214
|
const t = T(() => {
|
|
30190
30215
|
if (!Array.isArray(e) || e.length === 0)
|
|
30191
30216
|
return [];
|
|
30192
|
-
const s =
|
|
30217
|
+
const s = El();
|
|
30193
30218
|
return Object.keys(e[0]).map((i) => s.accessor(i, {
|
|
30194
30219
|
cell: (o) => o.getValue()
|
|
30195
30220
|
}));
|
|
30196
|
-
}, [e]), n =
|
|
30221
|
+
}, [e]), n = Rl({
|
|
30197
30222
|
data: e,
|
|
30198
30223
|
columns: t,
|
|
30199
30224
|
columnResizeMode: "onChange",
|
|
30200
|
-
getCoreRowModel:
|
|
30225
|
+
getCoreRowModel: Fl()
|
|
30201
30226
|
});
|
|
30202
30227
|
return e.length === 0 ? /* @__PURE__ */ r.jsx(z, { sx: {
|
|
30203
30228
|
height: "5em"
|
|
@@ -30250,7 +30275,7 @@ const ZL = [{
|
|
|
30250
30275
|
const d = l === 1 && a <= 10;
|
|
30251
30276
|
return /* @__PURE__ */ r.jsxs(y, { pt: 10, px: 10, position: "apart", children: [
|
|
30252
30277
|
/* @__PURE__ */ r.jsxs(y, { position: "left", children: [
|
|
30253
|
-
l > 1 && /* @__PURE__ */ r.jsx(
|
|
30278
|
+
l > 1 && /* @__PURE__ */ r.jsx(Ka, { size: "sm", value: t, onChange: n, total: l, withEdges: l > 7, styles: {
|
|
30254
30279
|
control: {
|
|
30255
30280
|
height: "30px"
|
|
30256
30281
|
}
|
|
@@ -30442,7 +30467,7 @@ class oM {
|
|
|
30442
30467
|
this.panel.addVariable(Ne({
|
|
30443
30468
|
...Qs,
|
|
30444
30469
|
name: `${Qs.name}${t || ""}`
|
|
30445
|
-
})), this.selected =
|
|
30470
|
+
})), this.selected = nl(this.panel.variables);
|
|
30446
30471
|
}
|
|
30447
30472
|
select(t) {
|
|
30448
30473
|
this.selected = t;
|
|
@@ -30462,7 +30487,7 @@ class oM {
|
|
|
30462
30487
|
remove(t) {
|
|
30463
30488
|
this.selected === t && (this.selected = void 0);
|
|
30464
30489
|
const n = this.panel.variables.indexOf(t);
|
|
30465
|
-
if (this.panel.removeVariable(t), !this.selected && !
|
|
30490
|
+
if (this.panel.removeVariable(t), !this.selected && !sl(this.panel.variables)) {
|
|
30466
30491
|
const s = Math.min(this.panel.variables.length - 1, n);
|
|
30467
30492
|
this.selected = this.panel.variables[s];
|
|
30468
30493
|
}
|
|
@@ -30485,7 +30510,7 @@ function lM({
|
|
|
30485
30510
|
o((x) => (x.splice(p, 1), [...x]));
|
|
30486
30511
|
}, [o]), c = M.useMemo(() => !w.isEqual(i, t), [i, t]), d = () => {
|
|
30487
30512
|
n(i.map((p) => p.toString()));
|
|
30488
|
-
}, h =
|
|
30513
|
+
}, h = Ga(), u = M.useMemo(() => Object.entries(h.colors).map(([p, x]) => x[6]), [h]);
|
|
30489
30514
|
return /* @__PURE__ */ r.jsxs(r.Fragment, { children: [
|
|
30490
30515
|
/* @__PURE__ */ r.jsxs(y, { position: "left", ref: s, children: [
|
|
30491
30516
|
/* @__PURE__ */ r.jsx(j, { children: e }),
|
|
@@ -30569,7 +30594,7 @@ const uM = M.forwardRef(dM), hM = M.forwardRef(function({
|
|
|
30569
30594
|
flexGrow: 1,
|
|
30570
30595
|
maxWidth: "100%"
|
|
30571
30596
|
}
|
|
30572
|
-
}, children: /* @__PURE__ */ r.jsx(
|
|
30597
|
+
}, children: /* @__PURE__ */ r.jsx(hd, { label: i("panel.variable.styles.font_weight.label"), value: t.weight, onChange: (c) => a("weight", c) }) }),
|
|
30573
30598
|
/* @__PURE__ */ r.jsx(L, { mt: "lg", mb: 0, variant: "dashed", label: "Style", labelPosition: "center" }),
|
|
30574
30599
|
/* @__PURE__ */ r.jsxs(S, { children: [
|
|
30575
30600
|
/* @__PURE__ */ r.jsx(A, { label: "Color Type", data: [{
|
|
@@ -30698,13 +30723,13 @@ const yM = k(({
|
|
|
30698
30723
|
}) => {
|
|
30699
30724
|
const {
|
|
30700
30725
|
t: n
|
|
30701
|
-
} = $(), [s, i] =
|
|
30726
|
+
} = $(), [s, i] = al(e);
|
|
30702
30727
|
O(() => {
|
|
30703
30728
|
i(e);
|
|
30704
30729
|
}, [e]);
|
|
30705
30730
|
const o = bM(), a = e !== s;
|
|
30706
30731
|
return /* @__PURE__ */ r.jsx(A, { label: n("visualization.component"), value: s, searchable: !0, onChange: i, data: o, rightSection: /* @__PURE__ */ r.jsx(W, { disabled: !a, onClick: () => t(s), children: /* @__PURE__ */ r.jsx(ge, { size: 20 }) }), maxDropdownHeight: 600 });
|
|
30707
|
-
}),
|
|
30732
|
+
}), Va = [];
|
|
30708
30733
|
function jM(e, t) {
|
|
30709
30734
|
try {
|
|
30710
30735
|
return e.resolveComponent(t).createConfig();
|
|
@@ -30761,8 +30786,8 @@ const wM = k(() => {
|
|
|
30761
30786
|
}
|
|
30762
30787
|
}, o = M.useMemo(() => {
|
|
30763
30788
|
var d;
|
|
30764
|
-
return (d =
|
|
30765
|
-
}, [t.type,
|
|
30789
|
+
return (d = Va.find((h) => h.value === t.type)) == null ? void 0 : d.Panel;
|
|
30790
|
+
}, [t.type, Va]), a = vM(), l = o ? Jr(o, {
|
|
30766
30791
|
data: e,
|
|
30767
30792
|
conf: t.conf,
|
|
30768
30793
|
setConf: t.setConf
|
|
@@ -30778,7 +30803,7 @@ const wM = k(() => {
|
|
|
30778
30803
|
maxHeight: "100%",
|
|
30779
30804
|
overflow: "auto"
|
|
30780
30805
|
}, children: c }),
|
|
30781
|
-
!c && /* @__PURE__ */ r.jsx(
|
|
30806
|
+
!c && /* @__PURE__ */ r.jsx(Ua, { minRows: 20, label: "Config", value: JSON.stringify(t.conf, null, 2), onChange: i })
|
|
30782
30807
|
] })
|
|
30783
30808
|
] });
|
|
30784
30809
|
}), _M = k(({
|
|
@@ -30798,21 +30823,21 @@ const wM = k(() => {
|
|
|
30798
30823
|
e.moveToView(t, i), c();
|
|
30799
30824
|
};
|
|
30800
30825
|
return /* @__PURE__ */ r.jsxs(r.Fragment, { children: [
|
|
30801
|
-
/* @__PURE__ */ r.jsx(C, { size: "xs", variant: "subtle", color: "blue", onClick: l, leftIcon: /* @__PURE__ */ r.jsx(
|
|
30826
|
+
/* @__PURE__ */ r.jsx(C, { size: "xs", variant: "subtle", color: "blue", onClick: l, leftIcon: /* @__PURE__ */ r.jsx(xl, { size: 14 }), children: n("panel.settings.change_view") }),
|
|
30802
30827
|
/* @__PURE__ */ r.jsx(be, { opened: a, onClose: c, title: n("panel.settings.change_view_title"), zIndex: 320, children: /* @__PURE__ */ r.jsxs(S, { sx: {
|
|
30803
30828
|
maxHeight: "calc(100vh - 185px)",
|
|
30804
30829
|
overflow: "hidden"
|
|
30805
30830
|
}, children: [
|
|
30806
|
-
/* @__PURE__ */ r.jsx(
|
|
30831
|
+
/* @__PURE__ */ r.jsx(Bo.Group, { value: i, onChange: o, pb: 10, sx: {
|
|
30807
30832
|
flexGrow: 1,
|
|
30808
30833
|
maxHeight: "calc(100vh - 185px - 30px)",
|
|
30809
30834
|
overflow: "auto"
|
|
30810
|
-
}, children: /* @__PURE__ */ r.jsx(S, { spacing: "xs", children: s.views.options.map((h) => /* @__PURE__ */ r.jsx(
|
|
30835
|
+
}, children: /* @__PURE__ */ r.jsx(S, { spacing: "xs", children: s.views.options.map((h) => /* @__PURE__ */ r.jsx(Bo, { value: h.value, label: h.label }, h.value)) }) }),
|
|
30811
30836
|
/* @__PURE__ */ r.jsxs(y, { noWrap: !0, position: "apart", sx: {
|
|
30812
30837
|
flexGrow: 0,
|
|
30813
30838
|
flexShrink: 0
|
|
30814
30839
|
}, children: [
|
|
30815
|
-
/* @__PURE__ */ r.jsx(C, { size: "xs", color: "red", leftIcon: /* @__PURE__ */ r.jsx(
|
|
30840
|
+
/* @__PURE__ */ r.jsx(C, { size: "xs", color: "red", leftIcon: /* @__PURE__ */ r.jsx(fl, { size: 14 }), onClick: c, children: n("common.actions.cancel") }),
|
|
30816
30841
|
/* @__PURE__ */ r.jsx(C, { size: "xs", color: "blue", leftIcon: /* @__PURE__ */ r.jsx(Ft, { size: 14 }), onClick: d, disabled: i === t, children: n("common.actions.confirm") })
|
|
30817
30842
|
] })
|
|
30818
30843
|
] }) })
|
|
@@ -30884,7 +30909,7 @@ const kM = k(({
|
|
|
30884
30909
|
},
|
|
30885
30910
|
zIndex: 320
|
|
30886
30911
|
});
|
|
30887
|
-
return /* @__PURE__ */ r.jsxs(
|
|
30912
|
+
return /* @__PURE__ */ r.jsxs(oc, { value: {
|
|
30888
30913
|
panel: e,
|
|
30889
30914
|
data: e.data,
|
|
30890
30915
|
loading: d,
|
|
@@ -31082,8 +31107,8 @@ const kM = k(({
|
|
|
31082
31107
|
spacing: i = 16,
|
|
31083
31108
|
pl: o = 0
|
|
31084
31109
|
}) => /* @__PURE__ */ r.jsxs(S, { spacing: i, mt: 6, pl: o, children: [
|
|
31085
|
-
Array.from(new Array(s - 1), (a, l) => /* @__PURE__ */ r.jsx(
|
|
31086
|
-
/* @__PURE__ */ r.jsx(
|
|
31110
|
+
Array.from(new Array(s - 1), (a, l) => /* @__PURE__ */ r.jsx(Wo, { width: e, height: n, radius: "xs" }, l)),
|
|
31111
|
+
/* @__PURE__ */ r.jsx(Wo, { width: t, height: n, radius: "xs" })
|
|
31087
31112
|
] }), sr = ({
|
|
31088
31113
|
value: e
|
|
31089
31114
|
}) => e === null || e === "" ? null : /* @__PURE__ */ r.jsx(je, { label: e, disabled: !e, multiline: !0, children: /* @__PURE__ */ r.jsx(W, { children: /* @__PURE__ */ r.jsx(Sn, { size: 14 }) }) }), LM = ({
|
|
@@ -31275,7 +31300,7 @@ const kM = k(({
|
|
|
31275
31300
|
function $M({
|
|
31276
31301
|
table_type: e
|
|
31277
31302
|
}) {
|
|
31278
|
-
return e === "VIEW" ? /* @__PURE__ */ r.jsx(
|
|
31303
|
+
return e === "VIEW" ? /* @__PURE__ */ r.jsx(gl, { size: 14 }) : e === "BASE TABLE" ? /* @__PURE__ */ r.jsx(kp, { size: 14 }) : null;
|
|
31279
31304
|
}
|
|
31280
31305
|
const OM = k(({
|
|
31281
31306
|
dataSource: e
|
|
@@ -31330,7 +31355,7 @@ const OM = k(({
|
|
|
31330
31355
|
} = e;
|
|
31331
31356
|
return /* @__PURE__ */ r.jsxs(y, { pt: 10, px: 10, position: "apart", children: [
|
|
31332
31357
|
/* @__PURE__ */ r.jsxs(y, { position: "left", children: [
|
|
31333
|
-
n.maxPage > 1 && /* @__PURE__ */ r.jsx(
|
|
31358
|
+
n.maxPage > 1 && /* @__PURE__ */ r.jsx(Ka, { size: "sm", value: n.page, onChange: n.setPage, total: n.maxPage, withEdges: n.maxPage > 7, styles: {
|
|
31334
31359
|
control: {
|
|
31335
31360
|
height: "30px"
|
|
31336
31361
|
}
|
|
@@ -31532,7 +31557,7 @@ const OM = k(({
|
|
|
31532
31557
|
}
|
|
31533
31558
|
}
|
|
31534
31559
|
}, disabled: o, value: e.key, onChange: c });
|
|
31535
|
-
}),
|
|
31560
|
+
}), qa = me((e, t) => {
|
|
31536
31561
|
const {
|
|
31537
31562
|
label: n,
|
|
31538
31563
|
description: s,
|
|
@@ -31573,8 +31598,8 @@ const OM = k(({
|
|
|
31573
31598
|
e.setKey(o), e.setType(i);
|
|
31574
31599
|
} }),
|
|
31575
31600
|
/* @__PURE__ */ r.jsx(L, { mt: 10, mb: -10, variant: "dashed", label: t("query.conditions"), labelPosition: "center" }),
|
|
31576
|
-
/* @__PURE__ */ r.jsx($n, { label: t("query.run_by_condition.label"), placeholder: t("query.run_by_condition.unset"), data: e.conditionOptions, value: [...e.run_by], onChange: e.setRunBy, itemComponent:
|
|
31577
|
-
e.typedAsHTTP && /* @__PURE__ */ r.jsx($n, { label: t("query.re_run_condition.label"), placeholder: t("query.re_run_condition.label"), data: e.conditionOptions, value: [...e.react_to], onChange: e.setReactTo, itemComponent:
|
|
31601
|
+
/* @__PURE__ */ r.jsx($n, { label: t("query.run_by_condition.label"), placeholder: t("query.run_by_condition.unset"), data: e.conditionOptions, value: [...e.run_by], onChange: e.setRunBy, itemComponent: qa, maxDropdownHeight: 500 }),
|
|
31602
|
+
e.typedAsHTTP && /* @__PURE__ */ r.jsx($n, { label: t("query.re_run_condition.label"), placeholder: t("query.re_run_condition.label"), data: e.conditionOptions, value: [...e.react_to], onChange: e.setReactTo, itemComponent: qa, maxDropdownHeight: 500 }),
|
|
31578
31603
|
/* @__PURE__ */ r.jsx(L, { mt: 20, mb: 10, variant: "dashed" }),
|
|
31579
31604
|
/* @__PURE__ */ r.jsx(zM, { queryModel: e })
|
|
31580
31605
|
] }) });
|
|
@@ -31583,7 +31608,7 @@ function YM({
|
|
|
31583
31608
|
content: e
|
|
31584
31609
|
}) {
|
|
31585
31610
|
return /* @__PURE__ */ r.jsxs(De, { width: "60vw", shadow: "md", children: [
|
|
31586
|
-
/* @__PURE__ */ r.jsx(De.Target, { children: /* @__PURE__ */ r.jsx(W, { size: 16, color: "blue", children: /* @__PURE__ */ r.jsx(
|
|
31611
|
+
/* @__PURE__ */ r.jsx(De.Target, { children: /* @__PURE__ */ r.jsx(W, { size: 16, color: "blue", children: /* @__PURE__ */ r.jsx(gl, {}) }) }),
|
|
31587
31612
|
/* @__PURE__ */ r.jsx(De.Dropdown, { children: /* @__PURE__ */ r.jsx(nn, { language: "sql", noCopy: !0, withLineNumbers: !0, children: e }) })
|
|
31588
31613
|
] });
|
|
31589
31614
|
}
|
|
@@ -31639,8 +31664,8 @@ WHERE
|
|
|
31639
31664
|
...n
|
|
31640
31665
|
}, children: /* @__PURE__ */ r.jsxs(f, { defaultValue: "guide", keepMounted: !1, children: [
|
|
31641
31666
|
/* @__PURE__ */ r.jsxs(f.List, { grow: !0, children: [
|
|
31642
|
-
/* @__PURE__ */ r.jsx(f.Tab, { value: "guide", icon: /* @__PURE__ */ r.jsx(
|
|
31643
|
-
/* @__PURE__ */ r.jsx(f.Tab, { value: "local_query_vars", icon: /* @__PURE__ */ r.jsx(
|
|
31667
|
+
/* @__PURE__ */ r.jsx(f.Tab, { value: "guide", icon: /* @__PURE__ */ r.jsx(Ko, { size: 14 }), children: s("query_variable.guide.tabs.guide") }),
|
|
31668
|
+
/* @__PURE__ */ r.jsx(f.Tab, { value: "local_query_vars", icon: /* @__PURE__ */ r.jsx(hl, { size: 14 }), children: s("query_variable.guide.tabs.variables_in_this_dashboard") }),
|
|
31644
31669
|
/* @__PURE__ */ r.jsx(f.Tab, { value: "global_sql_snippets", icon: /* @__PURE__ */ r.jsx(Dp, { size: 14 }), children: s("query_variable.guide.tabs.global_sql_snippets") })
|
|
31645
31670
|
] }),
|
|
31646
31671
|
/* @__PURE__ */ r.jsx(f.Panel, { value: "guide", pt: "xs", children: /* @__PURE__ */ r.jsx(nn, { language: "sql", sx: {
|
|
@@ -31650,11 +31675,11 @@ WHERE
|
|
|
31650
31675
|
width: "100%"
|
|
31651
31676
|
}, noCopy: !0, colorScheme: "dark", children: l }) }),
|
|
31652
31677
|
/* @__PURE__ */ r.jsx(f.Panel, { value: "global_sql_snippets", pt: "xs", children: /* @__PURE__ */ r.jsxs(S, { spacing: 10, children: [
|
|
31653
|
-
/* @__PURE__ */ r.jsx(es, { icon: /* @__PURE__ */ r.jsx(
|
|
31678
|
+
/* @__PURE__ */ r.jsx(es, { icon: /* @__PURE__ */ r.jsx(Ko, { size: 16 }), title: s("global_sql_snippet.labels"), children: s("global_sql_snippet.description") }),
|
|
31654
31679
|
/* @__PURE__ */ r.jsx(XM, {})
|
|
31655
31680
|
] }) })
|
|
31656
31681
|
] }) });
|
|
31657
|
-
}),
|
|
31682
|
+
}), bo = k(() => {
|
|
31658
31683
|
const {
|
|
31659
31684
|
t: e
|
|
31660
31685
|
} = $(), [t, n] = B(!1);
|
|
@@ -31666,7 +31691,7 @@ WHERE
|
|
|
31666
31691
|
}
|
|
31667
31692
|
}, children: e("query_variable.open") })
|
|
31668
31693
|
] });
|
|
31669
|
-
}),
|
|
31694
|
+
}), Na = {
|
|
31670
31695
|
pre: ["function build_request({ context, filters }, utils) {", " // build the quest", " return { method: 'POST', url: '/', params: {}, headers: {}, data: {} }", "}"].join(`
|
|
31671
31696
|
`),
|
|
31672
31697
|
post: ["function process_result(res, utils, state) {", " // your code goes here", " return data", "}"].join(`
|
|
@@ -31683,12 +31708,12 @@ WHERE
|
|
|
31683
31708
|
/* @__PURE__ */ r.jsxs(f.List, { children: [
|
|
31684
31709
|
/* @__PURE__ */ r.jsx(f.Tab, { value: "pre_process", children: t("query.build_request") }),
|
|
31685
31710
|
/* @__PURE__ */ r.jsx(f.Tab, { value: "post_process", children: t("query.process_result") }),
|
|
31686
|
-
/* @__PURE__ */ r.jsx(
|
|
31711
|
+
/* @__PURE__ */ r.jsx(bo, {})
|
|
31687
31712
|
] }),
|
|
31688
31713
|
/* @__PURE__ */ r.jsx(f.Panel, { value: "pre_process", sx: {
|
|
31689
31714
|
position: "relative"
|
|
31690
|
-
}, p: "sm", children: /* @__PURE__ */ r.jsx(Vn, { label: "", value: e.pre_process, onChange: e.setPreProcess, defaultValue:
|
|
31691
|
-
/* @__PURE__ */ r.jsx(f.Panel, { value: "post_process", p: "sm", children: /* @__PURE__ */ r.jsx(Vn, { label: "", value: e.post_process, onChange: e.setPostProcess, defaultValue:
|
|
31715
|
+
}, p: "sm", children: /* @__PURE__ */ r.jsx(Vn, { label: "", value: e.pre_process, onChange: e.setPreProcess, defaultValue: Na.pre }) }),
|
|
31716
|
+
/* @__PURE__ */ r.jsx(f.Panel, { value: "post_process", p: "sm", children: /* @__PURE__ */ r.jsx(Vn, { label: "", value: e.post_process, onChange: e.setPostProcess, defaultValue: Na.post }) })
|
|
31692
31717
|
] }) : null;
|
|
31693
31718
|
}), eA = k(({
|
|
31694
31719
|
queryID: e,
|
|
@@ -31730,7 +31755,7 @@ WHERE
|
|
|
31730
31755
|
] }) })
|
|
31731
31756
|
] }, a.id)) })
|
|
31732
31757
|
] }) });
|
|
31733
|
-
}),
|
|
31758
|
+
}), yo = ({
|
|
31734
31759
|
value: e,
|
|
31735
31760
|
onChange: t,
|
|
31736
31761
|
height: n = "200px",
|
|
@@ -31759,7 +31784,7 @@ WHERE
|
|
|
31759
31784
|
t
|
|
31760
31785
|
} = $(), n = T(() => w.groupBy(e.dependencies, "type"), [e.dependencies]), s = T(() => e.dependencies.some((o) => !o.valid), [e.dependencies]), i = e.dependencies.length > 0;
|
|
31761
31786
|
return i ? /* @__PURE__ */ r.jsxs(De, { withinPortal: !0, zIndex: 340, shadow: "md", disabled: !i, children: [
|
|
31762
|
-
/* @__PURE__ */ r.jsx(De.Target, { children: /* @__PURE__ */ r.jsx(C, { size: "xs", variant: "subtle", color: s ? "red" : "green", disabled: !i, leftIcon: s ? /* @__PURE__ */ r.jsx(
|
|
31787
|
+
/* @__PURE__ */ r.jsx(De.Target, { children: /* @__PURE__ */ r.jsx(C, { size: "xs", variant: "subtle", color: s ? "red" : "green", disabled: !i, leftIcon: s ? /* @__PURE__ */ r.jsx(ml, { size: 16 }) : /* @__PURE__ */ r.jsx(Lp, { size: 16 }), children: t("query.dependency.label") }) }),
|
|
31763
31788
|
/* @__PURE__ */ r.jsx(De.Dropdown, { children: /* @__PURE__ */ r.jsx(at, { spacing: "md", size: 14, listStyleType: "none", children: Object.entries(n).map(([o, a]) => /* @__PURE__ */ r.jsxs(at.Item, { children: [
|
|
31764
31789
|
/* @__PURE__ */ r.jsx(j, { fw: "bold", ff: "monospace", children: t(`${o}.label`) }),
|
|
31765
31790
|
/* @__PURE__ */ r.jsx(at, { withPadding: !0, size: 14, sx: {
|
|
@@ -31803,12 +31828,12 @@ WHERE
|
|
|
31803
31828
|
}, children: [
|
|
31804
31829
|
/* @__PURE__ */ r.jsx(y, { position: "left", children: /* @__PURE__ */ r.jsx(tA, { queryModel: e }) }),
|
|
31805
31830
|
/* @__PURE__ */ r.jsxs(y, { position: "right", children: [
|
|
31806
|
-
/* @__PURE__ */ r.jsx(C, { onClick: a, size: "xs", variant: "default", leftIcon: /* @__PURE__ */ r.jsx(
|
|
31831
|
+
/* @__PURE__ */ r.jsx(C, { onClick: a, size: "xs", variant: "default", leftIcon: /* @__PURE__ */ r.jsx(dl, { size: 16 }), children: t("common.actions.reset_to_default") }),
|
|
31807
31832
|
/* @__PURE__ */ r.jsx(C, { onClick: o, color: "red", size: "xs", disabled: !l, leftIcon: /* @__PURE__ */ r.jsx(mr, { size: 16 }), children: t("common.actions.revert_changes") }),
|
|
31808
31833
|
/* @__PURE__ */ r.jsx(C, { color: "green", size: "xs", onClick: i, disabled: !l, leftIcon: /* @__PURE__ */ r.jsx(Ft, { size: 16 }), children: t("common.actions.save_changes") })
|
|
31809
31834
|
] })
|
|
31810
31835
|
] }),
|
|
31811
|
-
/* @__PURE__ */ r.jsx(
|
|
31836
|
+
/* @__PURE__ */ r.jsx(yo, { height: "100%", value: n, onChange: s, theme: "sql-dark", defaultLanguage: "sql" })
|
|
31812
31837
|
] });
|
|
31813
31838
|
}), sA = ({
|
|
31814
31839
|
value: e,
|
|
@@ -31828,7 +31853,7 @@ WHERE
|
|
|
31828
31853
|
}) => {
|
|
31829
31854
|
const n = Pe().payloadForSQL, s = M.useMemo(() => ji(e, n), [e, n]);
|
|
31830
31855
|
return /* @__PURE__ */ r.jsx(sA, { height: "100%", value: s });
|
|
31831
|
-
}),
|
|
31856
|
+
}), Ba = {
|
|
31832
31857
|
pre: ["function process_request({ context, filters, sql }, utils) {", " // modify and return sql", " return sql", "}"].join(`
|
|
31833
31858
|
`),
|
|
31834
31859
|
post: ["function process_result(data, utils, state) {", " // process data and return the result", " return data", "}"].join(`
|
|
@@ -31853,7 +31878,7 @@ WHERE
|
|
|
31853
31878
|
/* @__PURE__ */ r.jsx(f.Tab, { value: "Preview", children: t("query.preview_sql") }),
|
|
31854
31879
|
/* @__PURE__ */ r.jsx(f.Tab, { value: "pre_process", children: t("query.process_request") }),
|
|
31855
31880
|
/* @__PURE__ */ r.jsx(f.Tab, { value: "post_process", children: t("query.process_result") }),
|
|
31856
|
-
/* @__PURE__ */ r.jsx(
|
|
31881
|
+
/* @__PURE__ */ r.jsx(bo, {}),
|
|
31857
31882
|
e.datasource && /* @__PURE__ */ r.jsx(ju, { dataSource: e.datasource })
|
|
31858
31883
|
] }),
|
|
31859
31884
|
/* @__PURE__ */ r.jsx(f.Panel, { value: "Edit", sx: {
|
|
@@ -31862,8 +31887,8 @@ WHERE
|
|
|
31862
31887
|
/* @__PURE__ */ r.jsx(f.Panel, { value: "Preview", p: 0, pl: 4, children: /* @__PURE__ */ r.jsx(iA, { value: e.sql }) }),
|
|
31863
31888
|
/* @__PURE__ */ r.jsx(f.Panel, { value: "pre_process", sx: {
|
|
31864
31889
|
position: "relative"
|
|
31865
|
-
}, p: "sm", children: /* @__PURE__ */ r.jsx(Vn, { label: "", value: e.pre_process, onChange: e.setPreProcess, defaultValue:
|
|
31866
|
-
/* @__PURE__ */ r.jsx(f.Panel, { value: "post_process", p: "sm", children: /* @__PURE__ */ r.jsx(Vn, { label: "", value: e.post_process, onChange: e.setPostProcess, defaultValue:
|
|
31890
|
+
}, p: "sm", children: /* @__PURE__ */ r.jsx(Vn, { label: "", value: e.pre_process, onChange: e.setPreProcess, defaultValue: Ba.pre }) }),
|
|
31891
|
+
/* @__PURE__ */ r.jsx(f.Panel, { value: "post_process", p: "sm", children: /* @__PURE__ */ r.jsx(Vn, { label: "", value: e.post_process, onChange: e.setPostProcess, defaultValue: Ba.post }) })
|
|
31867
31892
|
] }) : null;
|
|
31868
31893
|
}), aA = {
|
|
31869
31894
|
pre: ["function transform(queries, state, utils) {", " // use queries & dashboar state to build new data", " const data = []", " return data", "}"].join(`
|
|
@@ -31938,7 +31963,7 @@ WHERE
|
|
|
31938
31963
|
value: e
|
|
31939
31964
|
}) => {
|
|
31940
31965
|
const n = Pe().payloadForSQL, s = T(() => ji(e, n), [e, n]);
|
|
31941
|
-
return /* @__PURE__ */ r.jsx(
|
|
31966
|
+
return /* @__PURE__ */ r.jsx(yo, { height: "100%", value: s });
|
|
31942
31967
|
}), hA = k(({
|
|
31943
31968
|
item: e,
|
|
31944
31969
|
remove: t,
|
|
@@ -32005,14 +32030,14 @@ WHERE
|
|
|
32005
32030
|
}, children: [
|
|
32006
32031
|
/* @__PURE__ */ r.jsx(f.Tab, { value: "SQL", children: "SQL" }),
|
|
32007
32032
|
/* @__PURE__ */ r.jsx(f.Tab, { value: "Preview", children: "Preview" }),
|
|
32008
|
-
/* @__PURE__ */ r.jsx(
|
|
32033
|
+
/* @__PURE__ */ r.jsx(bo, {}),
|
|
32009
32034
|
/* @__PURE__ */ r.jsx(W, { color: "blue", variant: "filled", onClick: x, disabled: !g, sx: {
|
|
32010
32035
|
position: "absolute",
|
|
32011
32036
|
top: 0,
|
|
32012
32037
|
right: 10
|
|
32013
32038
|
}, children: /* @__PURE__ */ r.jsx(ge, { size: 18 }) })
|
|
32014
32039
|
] }),
|
|
32015
|
-
/* @__PURE__ */ r.jsx(f.Panel, { value: "SQL", pt: "sm", children: /* @__PURE__ */ r.jsx(
|
|
32040
|
+
/* @__PURE__ */ r.jsx(f.Panel, { value: "SQL", pt: "sm", children: /* @__PURE__ */ r.jsx(yo, { height: "100%", value: u, onChange: p, defaultLanguage: "sql", theme: "sql-dark" }) }),
|
|
32016
32041
|
/* @__PURE__ */ r.jsx(f.Panel, { value: "Preview", pt: "sm", children: /* @__PURE__ */ r.jsx(uA, { value: u }) })
|
|
32017
32042
|
] })
|
|
32018
32043
|
] });
|
|
@@ -32221,7 +32246,7 @@ WHERE
|
|
|
32221
32246
|
return /* @__PURE__ */ r.jsxs(r.Fragment, { children: [
|
|
32222
32247
|
/* @__PURE__ */ r.jsx(W, { size: "lg", color: "blue", variant: "filled", mt: 26, onClick: i, sx: {
|
|
32223
32248
|
flexGrow: 0
|
|
32224
|
-
}, children: /* @__PURE__ */ r.jsx(
|
|
32249
|
+
}, children: /* @__PURE__ */ r.jsx(cl, { size: 14 }) }),
|
|
32225
32250
|
/* @__PURE__ */ r.jsx(be, { size: 800, title: n("view.component.modal.custom_title"), opened: s, onClose: o, closeOnClickOutside: !1, withCloseButton: !1, zIndex: 320, children: s && /* @__PURE__ */ r.jsxs(S, { children: [
|
|
32226
32251
|
/* @__PURE__ */ r.jsx(J, { mt: 10, label: n("common.enabled"), checked: a.enabled, onChange: (x) => c(x.currentTarget.checked) }),
|
|
32227
32252
|
/* @__PURE__ */ r.jsx(gA, { value: a.func_content, onChange: u, disabled: !a.enabled }),
|
|
@@ -32542,7 +32567,7 @@ const AA = k(() => /* @__PURE__ */ r.jsx(S, { sx: {
|
|
|
32542
32567
|
}, children: /* @__PURE__ */ r.jsx(GA, {}) }),
|
|
32543
32568
|
/* @__PURE__ */ r.jsx(qt.Section, { children: /* @__PURE__ */ r.jsx(y, { grow: !0, p: "md", pt: "sm", sx: {
|
|
32544
32569
|
borderTop: "1px solid #eee"
|
|
32545
|
-
}, children: /* @__PURE__ */ r.jsx(C, { size: "xs", color: "red", leftIcon: /* @__PURE__ */ r.jsx(
|
|
32570
|
+
}, children: /* @__PURE__ */ r.jsx(C, { size: "xs", color: "red", leftIcon: /* @__PURE__ */ r.jsx(fl, { size: 18 }), onClick: () => t.editor.close(), children: e("common.actions.close") }) }) })
|
|
32546
32571
|
] });
|
|
32547
32572
|
}), HA = {
|
|
32548
32573
|
root: {
|
|
@@ -32578,7 +32603,7 @@ const AA = k(() => /* @__PURE__ */ r.jsx(S, { sx: {
|
|
|
32578
32603
|
// @ts-expect-error important
|
|
32579
32604
|
overflowY: "hidden !important"
|
|
32580
32605
|
}
|
|
32581
|
-
}, children: /* @__PURE__ */ r.jsx(
|
|
32606
|
+
}, children: /* @__PURE__ */ r.jsx(Ya, { padding: 0, navbar: /* @__PURE__ */ r.jsx(QA, {}), styles: HA, children: /* @__PURE__ */ r.jsx(RA, {}) }) });
|
|
32582
32607
|
}), KA = (e) => e.replace(/([^:])(\/\/+)/g, "$1/");
|
|
32583
32608
|
function YA(e) {
|
|
32584
32609
|
O(() => {
|
|
@@ -32593,8 +32618,8 @@ function YA(e) {
|
|
|
32593
32618
|
}), Es.init().then((s) => console.log("monaco instance:", s));
|
|
32594
32619
|
}, []);
|
|
32595
32620
|
}
|
|
32596
|
-
Bl();
|
|
32597
32621
|
Wl();
|
|
32622
|
+
Gl();
|
|
32598
32623
|
const XA = {
|
|
32599
32624
|
root: {
|
|
32600
32625
|
height: "100vh",
|
|
@@ -32627,7 +32652,7 @@ const XA = {
|
|
|
32627
32652
|
onExit: h,
|
|
32628
32653
|
lang: u
|
|
32629
32654
|
}, p) => {
|
|
32630
|
-
YA(o.monacoPath),
|
|
32655
|
+
YA(o.monacoPath), Nl(o);
|
|
32631
32656
|
const {
|
|
32632
32657
|
i18n: x
|
|
32633
32658
|
} = $();
|
|
@@ -32638,7 +32663,7 @@ const XA = {
|
|
|
32638
32663
|
data: g = []
|
|
32639
32664
|
} = gn(_i), {
|
|
32640
32665
|
data: _ = []
|
|
32641
|
-
} = gn(
|
|
32666
|
+
} = gn(Ql), I = M.useMemo(() => Fz(t, n, g, _, e, c ?? {}), [t, n]);
|
|
32642
32667
|
M.useImperativeHandle(p, () => I, [I]), uu(I.content, !0), M.useEffect(() => {
|
|
32643
32668
|
I.context.replace(e);
|
|
32644
32669
|
}, [e]), M.useEffect(() => {
|
|
@@ -32655,12 +32680,12 @@ const XA = {
|
|
|
32655
32680
|
const E = async () => {
|
|
32656
32681
|
await s(I.json, I.content.json);
|
|
32657
32682
|
}, q = St(ao, []), U = hu(q);
|
|
32658
|
-
return /* @__PURE__ */ r.jsx(
|
|
32683
|
+
return /* @__PURE__ */ r.jsx(Xa, { children: /* @__PURE__ */ r.jsx(tc, { value: {
|
|
32659
32684
|
searchButtonProps: o.searchButtonProps
|
|
32660
|
-
}, children: /* @__PURE__ */ r.jsx(
|
|
32685
|
+
}, children: /* @__PURE__ */ r.jsx(Jl, { value: I, children: /* @__PURE__ */ r.jsx(rc, { value: I.content, children: /* @__PURE__ */ r.jsx(ki.Provider, { value: {
|
|
32661
32686
|
inEditMode: !0
|
|
32662
32687
|
}, children: /* @__PURE__ */ r.jsx($t.Provider, { value: q, children: /* @__PURE__ */ r.jsxs(vs, { configure: U, children: [
|
|
32663
|
-
/* @__PURE__ */ r.jsx(
|
|
32688
|
+
/* @__PURE__ */ r.jsx(Ya, { padding: 0, header: /* @__PURE__ */ r.jsx(tL, { onExit: h, saveDashboardChanges: E, headerSlot: l }), navbar: /* @__PURE__ */ r.jsx(IL, {}), styles: XA, children: /* @__PURE__ */ r.jsx(z, { className: `${i} dashboard-root`, sx: {
|
|
32664
32689
|
position: "relative"
|
|
32665
32690
|
}, children: I.content.views.visibleViews.map((te) => /* @__PURE__ */ r.jsx(hz, { view: te }, te.id)) }) }),
|
|
32666
32691
|
/* @__PURE__ */ r.jsx(UA, {})
|
|
@@ -32820,7 +32845,7 @@ const eE = m.model({
|
|
|
32820
32845
|
content_id: m.string,
|
|
32821
32846
|
datasources: fD,
|
|
32822
32847
|
globalSQLSnippets: $d,
|
|
32823
|
-
context:
|
|
32848
|
+
context: ho
|
|
32824
32849
|
});
|
|
32825
32850
|
function tE({
|
|
32826
32851
|
id: e,
|
|
@@ -32843,8 +32868,8 @@ function tE({
|
|
|
32843
32868
|
context: Od(l)
|
|
32844
32869
|
});
|
|
32845
32870
|
}
|
|
32846
|
-
Bl();
|
|
32847
32871
|
Wl();
|
|
32872
|
+
Gl();
|
|
32848
32873
|
const nE = ({
|
|
32849
32874
|
context: e,
|
|
32850
32875
|
dashboard: t,
|
|
@@ -32857,7 +32882,7 @@ const nE = ({
|
|
|
32857
32882
|
onFilterValuesChange: c,
|
|
32858
32883
|
lang: d
|
|
32859
32884
|
}) => {
|
|
32860
|
-
|
|
32885
|
+
Nl(i);
|
|
32861
32886
|
const {
|
|
32862
32887
|
i18n: h
|
|
32863
32888
|
} = $();
|
|
@@ -32868,7 +32893,7 @@ const nE = ({
|
|
|
32868
32893
|
data: u = []
|
|
32869
32894
|
} = gn(_i), {
|
|
32870
32895
|
data: p = []
|
|
32871
|
-
} = gn(
|
|
32896
|
+
} = gn(Ql), x = M.useMemo(() => tE(t, n, u, p, e, l ?? {}), [t, n]);
|
|
32872
32897
|
uu(x.content, !1), M.useEffect(() => {
|
|
32873
32898
|
x.context.replace(e);
|
|
32874
32899
|
}, [e]), M.useEffect(() => {
|
|
@@ -32881,14 +32906,14 @@ const nE = ({
|
|
|
32881
32906
|
l && x.content.filters.patchValues(l);
|
|
32882
32907
|
}, [l, x.content.filters.patchValues]);
|
|
32883
32908
|
const g = St(ao, []), _ = hu(g);
|
|
32884
|
-
return /* @__PURE__ */ r.jsx(
|
|
32909
|
+
return /* @__PURE__ */ r.jsx(Xa, { children: /* @__PURE__ */ r.jsx(tc, { value: {
|
|
32885
32910
|
searchButtonProps: i.searchButtonProps
|
|
32886
|
-
}, children: /* @__PURE__ */ r.jsx(
|
|
32911
|
+
}, children: /* @__PURE__ */ r.jsx(Jl, { value: x, children: /* @__PURE__ */ r.jsx(rc, { value: x.content, children: /* @__PURE__ */ r.jsx(lc.Provider, { value: {
|
|
32887
32912
|
fullScreenPanelID: o,
|
|
32888
32913
|
setFullScreenPanelID: a
|
|
32889
32914
|
}, children: /* @__PURE__ */ r.jsx(ki.Provider, { value: {
|
|
32890
32915
|
inEditMode: !1
|
|
32891
|
-
}, children: /* @__PURE__ */ r.jsx(z, { className: `${s} dashboard-root`, children: /* @__PURE__ */ r.jsx($t.Provider, { value: g, children: /* @__PURE__ */ r.jsx(vs, { configure: _, children: x.content.views.visibleViews.map((I) => /* @__PURE__ */ r.jsx(
|
|
32916
|
+
}, children: /* @__PURE__ */ r.jsx(z, { className: `${s} dashboard-root`, children: /* @__PURE__ */ r.jsx($t.Provider, { value: g, children: /* @__PURE__ */ r.jsx(vs, { configure: _, children: x.content.views.visibleViews.map((I) => /* @__PURE__ */ r.jsx(xo, { view: I }, I.id)) }) }) }) }) }) }) }) }) });
|
|
32892
32917
|
}, r2 = k(nE);
|
|
32893
32918
|
F.extend(hx);
|
|
32894
32919
|
F.extend(px);
|
|
@@ -32955,7 +32980,8 @@ const rE = {
|
|
|
32955
32980
|
},
|
|
32956
32981
|
common: {
|
|
32957
32982
|
use_query_data_as_options: "Use query data as options",
|
|
32958
|
-
or_fetch_options_from_datasource: "Or fetch options from datasource"
|
|
32983
|
+
or_fetch_options_from_datasource: "Or fetch options from datasource",
|
|
32984
|
+
selector_option_empty: "Not found"
|
|
32959
32985
|
},
|
|
32960
32986
|
text_input: {
|
|
32961
32987
|
default_value: "Default Value",
|
|
@@ -33278,7 +33304,8 @@ const rE = {
|
|
|
33278
33304
|
},
|
|
33279
33305
|
common: {
|
|
33280
33306
|
use_query_data_as_options: "使用所查数据为选项",
|
|
33281
|
-
or_fetch_options_from_datasource: "或从数据源查选项"
|
|
33307
|
+
or_fetch_options_from_datasource: "或从数据源查选项",
|
|
33308
|
+
selector_option_empty: "无选项可用"
|
|
33282
33309
|
},
|
|
33283
33310
|
text_input: {
|
|
33284
33311
|
default_value: "默认值",
|
|
@@ -33592,9 +33619,9 @@ export {
|
|
|
33592
33619
|
Nt as APIClient,
|
|
33593
33620
|
on as CURRENT_SCHEMA_VERSION,
|
|
33594
33621
|
du as ContentModel,
|
|
33595
|
-
|
|
33622
|
+
rc as ContentModelContextProvider,
|
|
33596
33623
|
_u as ContentRenderModel,
|
|
33597
|
-
|
|
33624
|
+
ho as ContextMeta,
|
|
33598
33625
|
di as DEFAULT_CUSTOM_MODAL_TITLE,
|
|
33599
33626
|
am as DashboardApiClient,
|
|
33600
33627
|
lm as DashboardApiFacadeClient,
|
|
@@ -33602,11 +33629,11 @@ export {
|
|
|
33602
33629
|
Re as DashboardFilterType,
|
|
33603
33630
|
pz as DashboardMode,
|
|
33604
33631
|
Rz as DashboardModel,
|
|
33605
|
-
|
|
33632
|
+
Jl as DashboardModelContextProvider,
|
|
33606
33633
|
eE as DashboardRenderModel,
|
|
33607
|
-
|
|
33634
|
+
tc as DashboardThemeContextProvider,
|
|
33608
33635
|
hz as DashboardViewEditor,
|
|
33609
|
-
|
|
33636
|
+
xo as DashboardViewRender,
|
|
33610
33637
|
Fd as DataSourceMetaModel,
|
|
33611
33638
|
Ae as DataSourceType,
|
|
33612
33639
|
fD as DataSourcesMetaModel,
|
|
@@ -33625,7 +33652,7 @@ export {
|
|
|
33625
33652
|
fz as FiltersModel,
|
|
33626
33653
|
Hd as FiltersRenderModel,
|
|
33627
33654
|
HD as FullScreenPanel,
|
|
33628
|
-
|
|
33655
|
+
lc as FullScreenPanelContext,
|
|
33629
33656
|
gD as GlobalSQLSnippetMeta,
|
|
33630
33657
|
$d as GlobalSQLSnippetsMeta,
|
|
33631
33658
|
JI as LayoutItemMeta,
|
|
@@ -33635,7 +33662,7 @@ export {
|
|
|
33635
33662
|
wd as MockContextMeta,
|
|
33636
33663
|
_D as MuteQueryModel,
|
|
33637
33664
|
ND as Panel,
|
|
33638
|
-
|
|
33665
|
+
oc as PanelContextProvider,
|
|
33639
33666
|
OD as PanelErrorOrStateMessage,
|
|
33640
33667
|
YI as PanelMeta,
|
|
33641
33668
|
Dz as PanelModel,
|
|
@@ -33670,7 +33697,7 @@ export {
|
|
|
33670
33697
|
Vd as ViewsRenderModel,
|
|
33671
33698
|
$D as Viz,
|
|
33672
33699
|
t2 as applyPartialDashboard,
|
|
33673
|
-
|
|
33700
|
+
Nl as configureAPIClient,
|
|
33674
33701
|
Ez as createContentModel,
|
|
33675
33702
|
ZA as createContentRenderModel,
|
|
33676
33703
|
Od as createContextMeta,
|
|
@@ -33697,7 +33724,7 @@ export {
|
|
|
33697
33724
|
vD as getNewPanel,
|
|
33698
33725
|
s2 as getVersion,
|
|
33699
33726
|
JR as initialDashboardContent,
|
|
33700
|
-
|
|
33727
|
+
Zl as useDashboardContext,
|
|
33701
33728
|
Xm as useDashboardThemeContext,
|
|
33702
33729
|
oe as useEditContentModelContext,
|
|
33703
33730
|
pe as useEditDashboardContext,
|