@devtable/dashboard 6.31.0 → 6.32.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 +735 -725
- package/dist/dashboard.umd.js +40 -40
- package/dist/plugins/viz-components/cartesian/option/index.d.ts +1 -1
- package/dist/plugins/viz-components/cartesian/option/legend.d.ts +9 -2
- package/dist/plugins/viz-components/cartesian/option/utils/label-formatter.d.ts +2 -0
- package/dist/plugins/viz-components/cartesian/option/utils/variables.d.ts +3 -0
- package/package.json +1 -1
package/dist/dashboard.es.js
CHANGED
|
@@ -13512,7 +13512,7 @@ const gT = (e) => {
|
|
|
13512
13512
|
getColor: la(["#fff7f1", "darkorange", "#b60000"]),
|
|
13513
13513
|
name: "orange",
|
|
13514
13514
|
category: "sequential"
|
|
13515
|
-
}, fg = "@devtable/dashboard", hs = "6.
|
|
13515
|
+
}, fg = "@devtable/dashboard", hs = "6.32.0", pg = "Apache-2.0", gg = {
|
|
13516
13516
|
access: "public",
|
|
13517
13517
|
registry: "https://registry.npmjs.org/"
|
|
13518
13518
|
}, hg = [
|
|
@@ -15979,7 +15979,37 @@ function UM(e) {
|
|
|
15979
15979
|
top: t ? 30 : 10
|
|
15980
15980
|
};
|
|
15981
15981
|
}
|
|
15982
|
-
function YM(
|
|
15982
|
+
function YM(e) {
|
|
15983
|
+
return e !== "line" ? {} : {
|
|
15984
|
+
itemStyle: {
|
|
15985
|
+
opacity: 0
|
|
15986
|
+
}
|
|
15987
|
+
};
|
|
15988
|
+
}
|
|
15989
|
+
function XM(e) {
|
|
15990
|
+
switch (e) {
|
|
15991
|
+
case "line":
|
|
15992
|
+
return;
|
|
15993
|
+
case "bar":
|
|
15994
|
+
return "roundRect";
|
|
15995
|
+
case "scatter":
|
|
15996
|
+
return "circle";
|
|
15997
|
+
}
|
|
15998
|
+
}
|
|
15999
|
+
function QM(e) {
|
|
16000
|
+
const t = {
|
|
16001
|
+
show: !0,
|
|
16002
|
+
bottom: 0,
|
|
16003
|
+
left: "center",
|
|
16004
|
+
type: "scroll"
|
|
16005
|
+
};
|
|
16006
|
+
return t.data = e.filter((n) => !n.hide_in_legend).map(({ name: n, type: r }) => ({
|
|
16007
|
+
name: n,
|
|
16008
|
+
icon: XM(r),
|
|
16009
|
+
...YM(r)
|
|
16010
|
+
})), t;
|
|
16011
|
+
}
|
|
16012
|
+
function JM({ regressions: e = [] }, t) {
|
|
15983
16013
|
const n = [], r = [], o = [];
|
|
15984
16014
|
return t.length === 0 ? { regressionDataSets: n, regressionSeries: r, regressionXAxes: o } : (e.forEach(({ transform: i, plot: a, name: s, y_axis_data_key: c }) => {
|
|
15985
16015
|
const u = `x-axis-for-${s}`, d = `dataset-for-${s}--raw`, f = `dataset-for-${s}--transformed`;
|
|
@@ -16007,7 +16037,7 @@ function YM({ regressions: e = [] }, t) {
|
|
|
16007
16037
|
});
|
|
16008
16038
|
}), { regressionDataSets: n, regressionSeries: r, regressionXAxes: o });
|
|
16009
16039
|
}
|
|
16010
|
-
function
|
|
16040
|
+
function ZM({ type: e, ...t }, n, r, o) {
|
|
16011
16041
|
if (!e)
|
|
16012
16042
|
return 10;
|
|
16013
16043
|
if (e === "static") {
|
|
@@ -16032,12 +16062,13 @@ function Zu(e, t, n, r) {
|
|
|
16032
16062
|
const o = t.map((i) => [i[n], i[r]]);
|
|
16033
16063
|
return Le.unionBy(o, e, 0);
|
|
16034
16064
|
}
|
|
16035
|
-
function
|
|
16065
|
+
function ek(e, t, n, r) {
|
|
16036
16066
|
return e.map((o) => {
|
|
16037
16067
|
const i = o.orientation === "horizontal", a = i ? "yAxis" : "xAxis", s = i ? "insideEndTop" : "end";
|
|
16038
16068
|
return {
|
|
16039
16069
|
name: "refs",
|
|
16040
16070
|
type: "scatter",
|
|
16071
|
+
hide_in_legend: !0,
|
|
16041
16072
|
data: [],
|
|
16042
16073
|
markLine: {
|
|
16043
16074
|
data: [
|
|
@@ -16058,10 +16089,11 @@ function QM(e, t, n, r) {
|
|
|
16058
16089
|
};
|
|
16059
16090
|
});
|
|
16060
16091
|
}
|
|
16061
|
-
function
|
|
16092
|
+
function tk(e, t) {
|
|
16062
16093
|
return e.map((n) => ({
|
|
16063
16094
|
name: "",
|
|
16064
16095
|
type: "line",
|
|
16096
|
+
hide_in_legend: !0,
|
|
16065
16097
|
data: [],
|
|
16066
16098
|
markArea: {
|
|
16067
16099
|
itemStyle: {
|
|
@@ -16081,7 +16113,7 @@ function JM(e, t) {
|
|
|
16081
16113
|
}
|
|
16082
16114
|
}));
|
|
16083
16115
|
}
|
|
16084
|
-
function
|
|
16116
|
+
function nk({ x_axis_data_key: e }, {
|
|
16085
16117
|
y_axis_data_key: t,
|
|
16086
16118
|
yAxisIndex: n,
|
|
16087
16119
|
label_position: r,
|
|
@@ -16105,7 +16137,8 @@ function ZM({ x_axis_data_key: e }, {
|
|
|
16105
16137
|
yAxisIndex: n,
|
|
16106
16138
|
stack: a,
|
|
16107
16139
|
color: s,
|
|
16108
|
-
symbolSize:
|
|
16140
|
+
symbolSize: ZM(u, h, e, m),
|
|
16141
|
+
hide_in_legend: d,
|
|
16109
16142
|
...f
|
|
16110
16143
|
};
|
|
16111
16144
|
if (c && (y.endLabel = {
|
|
@@ -16121,9 +16154,9 @@ function ZM({ x_axis_data_key: e }, {
|
|
|
16121
16154
|
return C.data = Zu(p, E, e, t), C.name = S, C.color = void 0, C;
|
|
16122
16155
|
});
|
|
16123
16156
|
}
|
|
16124
|
-
function
|
|
16157
|
+
function rk(e, t, n, r, o, i, a) {
|
|
16125
16158
|
const s = t.map((u) => [u, 0]);
|
|
16126
|
-
return e.series.map((u) =>
|
|
16159
|
+
return e.series.map((u) => nk(e, u, s, n, r, a, o)).flat().concat(ek(e.reference_lines, i, a, r)).concat(tk(e.reference_areas, a));
|
|
16127
16160
|
}
|
|
16128
16161
|
function Wg({ enabled: e, func_content: t }) {
|
|
16129
16162
|
return (n, r) => {
|
|
@@ -16136,14 +16169,14 @@ function Wg({ enabled: e, func_content: t }) {
|
|
|
16136
16169
|
}
|
|
16137
16170
|
};
|
|
16138
16171
|
}
|
|
16139
|
-
function
|
|
16172
|
+
function ok(e, t) {
|
|
16140
16173
|
const n = e.find((s) => s.axisDim === "x" && s.axisId === "main-x-axis");
|
|
16141
16174
|
if (!n)
|
|
16142
16175
|
return "";
|
|
16143
16176
|
const { name: r, axisType: o, axisValue: i, axisIndex: a } = n;
|
|
16144
16177
|
return o === "xAxis.category" ? r : Wg(t.x_axis.axisLabel.formatter)(i, a);
|
|
16145
16178
|
}
|
|
16146
|
-
function
|
|
16179
|
+
function ik(e, t) {
|
|
16147
16180
|
const n = e.series.reduce(
|
|
16148
16181
|
(r, { yAxisIndex: o, name: i }) => (r[i] = o, r),
|
|
16149
16182
|
{}
|
|
@@ -16153,7 +16186,7 @@ function nk(e, t) {
|
|
|
16153
16186
|
const o = Array.isArray(r) ? r : [r];
|
|
16154
16187
|
if (o.length === 0)
|
|
16155
16188
|
return "";
|
|
16156
|
-
const i =
|
|
16189
|
+
const i = ok(o, e), a = o.map(({ seriesName: s, value: c }) => {
|
|
16157
16190
|
var f;
|
|
16158
16191
|
if (Array.isArray(c) && c.length === 2 && (c = c[1]), !s)
|
|
16159
16192
|
return c;
|
|
@@ -16164,7 +16197,31 @@ function nk(e, t) {
|
|
|
16164
16197
|
}
|
|
16165
16198
|
};
|
|
16166
16199
|
}
|
|
16167
|
-
function
|
|
16200
|
+
function ak(e) {
|
|
16201
|
+
return e.y_axes.reduce(
|
|
16202
|
+
(n, { label_formatter: r }, o) => (n[o] = function(a) {
|
|
16203
|
+
let s = a;
|
|
16204
|
+
if (typeof a == "object" && (Array.isArray(a.value) && a.value.length === 2 ? s = a.value[1] : s = a.value), !r)
|
|
16205
|
+
return s;
|
|
16206
|
+
try {
|
|
16207
|
+
return Zt(s).format(r);
|
|
16208
|
+
} catch (c) {
|
|
16209
|
+
return console.error(c), s;
|
|
16210
|
+
}
|
|
16211
|
+
}, n),
|
|
16212
|
+
{
|
|
16213
|
+
default: ({ value: n }) => n
|
|
16214
|
+
}
|
|
16215
|
+
);
|
|
16216
|
+
}
|
|
16217
|
+
function lk(e, t) {
|
|
16218
|
+
const n = {};
|
|
16219
|
+
return t.map((r) => {
|
|
16220
|
+
const o = ws(r, e);
|
|
16221
|
+
n[r.name] = li(r, o);
|
|
16222
|
+
}), n;
|
|
16223
|
+
}
|
|
16224
|
+
function sk(e, t, n) {
|
|
16168
16225
|
var i;
|
|
16169
16226
|
const r = t.every((a) => !Number.isNaN(Number(a))), { axisLabel: o } = e.x_axis;
|
|
16170
16227
|
return [
|
|
@@ -16185,7 +16242,7 @@ function rk(e, t, n) {
|
|
|
16185
16242
|
...n
|
|
16186
16243
|
];
|
|
16187
16244
|
}
|
|
16188
|
-
function
|
|
16245
|
+
function ck(e, t) {
|
|
16189
16246
|
return e.y_axes.map(({ nameAlignment: n, ...r }, o) => {
|
|
16190
16247
|
var a;
|
|
16191
16248
|
let i = r.position;
|
|
@@ -16211,37 +16268,7 @@ function ok(e, t) {
|
|
|
16211
16268
|
};
|
|
16212
16269
|
});
|
|
16213
16270
|
}
|
|
16214
|
-
|
|
16215
|
-
return e !== "line" ? {} : {
|
|
16216
|
-
itemStyle: {
|
|
16217
|
-
opacity: 0
|
|
16218
|
-
}
|
|
16219
|
-
};
|
|
16220
|
-
}
|
|
16221
|
-
function ak(e) {
|
|
16222
|
-
switch (e) {
|
|
16223
|
-
case "line":
|
|
16224
|
-
return;
|
|
16225
|
-
case "bar":
|
|
16226
|
-
return "roundRect";
|
|
16227
|
-
case "scatter":
|
|
16228
|
-
return "circle";
|
|
16229
|
-
}
|
|
16230
|
-
}
|
|
16231
|
-
function lk(e) {
|
|
16232
|
-
const t = {
|
|
16233
|
-
show: !0,
|
|
16234
|
-
bottom: 0,
|
|
16235
|
-
left: "center",
|
|
16236
|
-
type: "scroll"
|
|
16237
|
-
};
|
|
16238
|
-
return t.data = e.series.filter((n) => !n.hide_in_legend).map(({ name: n, type: r }) => ({
|
|
16239
|
-
name: n,
|
|
16240
|
-
icon: ak(r),
|
|
16241
|
-
...ik(r)
|
|
16242
|
-
})), t;
|
|
16243
|
-
}
|
|
16244
|
-
const sk = {
|
|
16271
|
+
const uk = {
|
|
16245
16272
|
dataZoom: [
|
|
16246
16273
|
{
|
|
16247
16274
|
type: "inside",
|
|
@@ -16280,40 +16307,23 @@ const sk = {
|
|
|
16280
16307
|
containLabel: !0
|
|
16281
16308
|
}
|
|
16282
16309
|
};
|
|
16283
|
-
function
|
|
16284
|
-
const r = n.
|
|
16285
|
-
|
|
16286
|
-
|
|
16287
|
-
}, {}), o = e.y_axes.reduce(
|
|
16288
|
-
(p, { label_formatter: g }, h) => (p[h] = function(b) {
|
|
16289
|
-
let y = b;
|
|
16290
|
-
if (typeof b == "object" && (Array.isArray(b.value) && b.value.length === 2 ? y = b.value[1] : y = b.value), !g)
|
|
16291
|
-
return y;
|
|
16292
|
-
try {
|
|
16293
|
-
return Zt(y).format(g);
|
|
16294
|
-
} catch (w) {
|
|
16295
|
-
return console.error(w), y;
|
|
16296
|
-
}
|
|
16297
|
-
}, p),
|
|
16298
|
-
{
|
|
16299
|
-
default: ({ value: p }) => p
|
|
16300
|
-
}
|
|
16301
|
-
), i = Le.uniq(t.map((p) => p[e.x_axis_data_key])), a = i.every((p) => !Number.isNaN(Number(p))), s = ek(e, i, a, t, o, n, r), { regressionDataSets: c, regressionSeries: u, regressionXAxes: d } = YM(e, t), f = {
|
|
16302
|
-
xAxis: rk(e, i, d),
|
|
16303
|
-
yAxis: ok(e, o),
|
|
16310
|
+
function dk(e, t, n) {
|
|
16311
|
+
const r = lk(t, n), o = ak(e), i = Le.uniq(t.map((p) => p[e.x_axis_data_key])), a = i.every((p) => !Number.isNaN(Number(p))), s = rk(e, i, a, t, o, n, r), { regressionDataSets: c, regressionSeries: u, regressionXAxes: d } = JM(e, t), f = {
|
|
16312
|
+
xAxis: sk(e, i, d),
|
|
16313
|
+
yAxis: ck(e, o),
|
|
16304
16314
|
dataset: [...c],
|
|
16305
16315
|
series: [...s, ...u],
|
|
16306
|
-
tooltip:
|
|
16316
|
+
tooltip: ik(e, o),
|
|
16307
16317
|
grid: UM(e),
|
|
16308
|
-
legend:
|
|
16318
|
+
legend: QM(s)
|
|
16309
16319
|
};
|
|
16310
|
-
return nn({}, f,
|
|
16320
|
+
return nn({}, f, uk);
|
|
16311
16321
|
}
|
|
16312
16322
|
const qg = {
|
|
16313
16323
|
id: "builtin:echarts:click-echart:series",
|
|
16314
16324
|
displayName: "Click Chart Series",
|
|
16315
|
-
nameRender:
|
|
16316
|
-
configRender:
|
|
16325
|
+
nameRender: pk,
|
|
16326
|
+
configRender: fk,
|
|
16317
16327
|
payload: [{
|
|
16318
16328
|
name: "seriesType",
|
|
16319
16329
|
description: "'line' | 'scatter' | 'bar'",
|
|
@@ -16340,10 +16350,10 @@ const qg = {
|
|
|
16340
16350
|
valueType: "object"
|
|
16341
16351
|
}]
|
|
16342
16352
|
};
|
|
16343
|
-
function
|
|
16353
|
+
function fk(e) {
|
|
16344
16354
|
return /* @__PURE__ */ l(Ne, {});
|
|
16345
16355
|
}
|
|
16346
|
-
function
|
|
16356
|
+
function pk(e) {
|
|
16347
16357
|
return /* @__PURE__ */ l(z, {
|
|
16348
16358
|
children: "Click chart's series"
|
|
16349
16359
|
});
|
|
@@ -16380,7 +16390,7 @@ $t.registerTransform(Nl.regression);
|
|
|
16380
16390
|
function ed(e) {
|
|
16381
16391
|
return e.trim().length > 0;
|
|
16382
16392
|
}
|
|
16383
|
-
function
|
|
16393
|
+
function gk({
|
|
16384
16394
|
conf: e,
|
|
16385
16395
|
data: t,
|
|
16386
16396
|
width: n,
|
|
@@ -16398,7 +16408,7 @@ function fk({
|
|
|
16398
16408
|
rowData: f
|
|
16399
16409
|
});
|
|
16400
16410
|
});
|
|
16401
|
-
}, u = j.useMemo(() =>
|
|
16411
|
+
}, u = j.useMemo(() => dk(e, t, i), [e, t]);
|
|
16402
16412
|
return !n || !r ? null : /* @__PURE__ */ l(Zn, {
|
|
16403
16413
|
echarts: $t,
|
|
16404
16414
|
option: u,
|
|
@@ -16411,7 +16421,7 @@ function fk({
|
|
|
16411
16421
|
}
|
|
16412
16422
|
});
|
|
16413
16423
|
}
|
|
16414
|
-
function
|
|
16424
|
+
function hk({
|
|
16415
16425
|
context: e,
|
|
16416
16426
|
instance: t
|
|
16417
16427
|
}) {
|
|
@@ -16449,7 +16459,7 @@ function pk({
|
|
|
16449
16459
|
size: "xs",
|
|
16450
16460
|
pl: "sm",
|
|
16451
16461
|
children: Object.values(g.top).map((m) => m)
|
|
16452
|
-
}), /* @__PURE__ */ l(
|
|
16462
|
+
}), /* @__PURE__ */ l(gk, {
|
|
16453
16463
|
variables: o,
|
|
16454
16464
|
width: s,
|
|
16455
16465
|
height: h,
|
|
@@ -16465,14 +16475,14 @@ function pk({
|
|
|
16465
16475
|
})]
|
|
16466
16476
|
});
|
|
16467
16477
|
}
|
|
16468
|
-
const
|
|
16478
|
+
const mk = [{
|
|
16469
16479
|
label: "Rectangle",
|
|
16470
16480
|
value: "rectangle"
|
|
16471
|
-
}],
|
|
16481
|
+
}], vk = [{
|
|
16472
16482
|
label: "Horizontal",
|
|
16473
16483
|
value: "horizontal"
|
|
16474
16484
|
}];
|
|
16475
|
-
function
|
|
16485
|
+
function yk({
|
|
16476
16486
|
control: e,
|
|
16477
16487
|
index: t,
|
|
16478
16488
|
remove: n,
|
|
@@ -16525,7 +16535,7 @@ function mk({
|
|
|
16525
16535
|
}) => /* @__PURE__ */ l(Ee, {
|
|
16526
16536
|
label: "Type",
|
|
16527
16537
|
required: !0,
|
|
16528
|
-
data:
|
|
16538
|
+
data: mk,
|
|
16529
16539
|
sx: {
|
|
16530
16540
|
flex: 1
|
|
16531
16541
|
},
|
|
@@ -16539,7 +16549,7 @@ function mk({
|
|
|
16539
16549
|
}) => /* @__PURE__ */ l(Ee, {
|
|
16540
16550
|
label: "Direction",
|
|
16541
16551
|
required: !0,
|
|
16542
|
-
data:
|
|
16552
|
+
data: vk,
|
|
16543
16553
|
sx: {
|
|
16544
16554
|
flex: 1
|
|
16545
16555
|
},
|
|
@@ -16597,7 +16607,7 @@ function mk({
|
|
|
16597
16607
|
})]
|
|
16598
16608
|
}, t);
|
|
16599
16609
|
}
|
|
16600
|
-
function
|
|
16610
|
+
function bk({
|
|
16601
16611
|
control: e,
|
|
16602
16612
|
watch: t,
|
|
16603
16613
|
variables: n
|
|
@@ -16651,7 +16661,7 @@ function vk({
|
|
|
16651
16661
|
})]
|
|
16652
16662
|
}), s.map((d, f) => /* @__PURE__ */ l(I.Panel, {
|
|
16653
16663
|
value: f.toString(),
|
|
16654
|
-
children: /* @__PURE__ */ l(
|
|
16664
|
+
children: /* @__PURE__ */ l(yk, {
|
|
16655
16665
|
control: e,
|
|
16656
16666
|
index: f,
|
|
16657
16667
|
remove: i,
|
|
@@ -16660,14 +16670,14 @@ function vk({
|
|
|
16660
16670
|
}, f))]
|
|
16661
16671
|
});
|
|
16662
16672
|
}
|
|
16663
|
-
const
|
|
16673
|
+
const Sk = [{
|
|
16664
16674
|
label: "Horizontal",
|
|
16665
16675
|
value: "horizontal"
|
|
16666
16676
|
}, {
|
|
16667
16677
|
label: "Vertical",
|
|
16668
16678
|
value: "vertical"
|
|
16669
16679
|
}];
|
|
16670
|
-
function
|
|
16680
|
+
function wk({
|
|
16671
16681
|
control: e,
|
|
16672
16682
|
index: t,
|
|
16673
16683
|
remove: n,
|
|
@@ -16734,7 +16744,7 @@ function bk({
|
|
|
16734
16744
|
field: a
|
|
16735
16745
|
}) => /* @__PURE__ */ l(Ee, {
|
|
16736
16746
|
label: "Orientation",
|
|
16737
|
-
data:
|
|
16747
|
+
data: Sk,
|
|
16738
16748
|
required: !0,
|
|
16739
16749
|
sx: {
|
|
16740
16750
|
flex: 1
|
|
@@ -16761,7 +16771,7 @@ function bk({
|
|
|
16761
16771
|
})]
|
|
16762
16772
|
}, t);
|
|
16763
16773
|
}
|
|
16764
|
-
function
|
|
16774
|
+
function Ck({
|
|
16765
16775
|
control: e,
|
|
16766
16776
|
watch: t,
|
|
16767
16777
|
variables: n
|
|
@@ -16812,7 +16822,7 @@ function Sk({
|
|
|
16812
16822
|
})]
|
|
16813
16823
|
}), s.map((d, f) => /* @__PURE__ */ l(I.Panel, {
|
|
16814
16824
|
value: f.toString(),
|
|
16815
|
-
children: /* @__PURE__ */ l(
|
|
16825
|
+
children: /* @__PURE__ */ l(wk, {
|
|
16816
16826
|
control: e,
|
|
16817
16827
|
index: f,
|
|
16818
16828
|
remove: i,
|
|
@@ -16822,7 +16832,7 @@ function Sk({
|
|
|
16822
16832
|
}, f))]
|
|
16823
16833
|
});
|
|
16824
16834
|
}
|
|
16825
|
-
const
|
|
16835
|
+
const xk = [{
|
|
16826
16836
|
label: "Linear",
|
|
16827
16837
|
value: "linear"
|
|
16828
16838
|
}, {
|
|
@@ -16834,7 +16844,7 @@ const wk = [{
|
|
|
16834
16844
|
}, {
|
|
16835
16845
|
label: "Polynomial",
|
|
16836
16846
|
value: "polynomial"
|
|
16837
|
-
}],
|
|
16847
|
+
}], _k = [{
|
|
16838
16848
|
label: "solid",
|
|
16839
16849
|
value: "solid"
|
|
16840
16850
|
}, {
|
|
@@ -16844,7 +16854,7 @@ const wk = [{
|
|
|
16844
16854
|
label: "dotted",
|
|
16845
16855
|
value: "dotted"
|
|
16846
16856
|
}];
|
|
16847
|
-
function
|
|
16857
|
+
function Ek({
|
|
16848
16858
|
control: e,
|
|
16849
16859
|
regressionItem: t,
|
|
16850
16860
|
index: n,
|
|
@@ -16929,7 +16939,7 @@ function xk({
|
|
|
16929
16939
|
field: s
|
|
16930
16940
|
}) => /* @__PURE__ */ l(Ee, {
|
|
16931
16941
|
label: "Method",
|
|
16932
|
-
data:
|
|
16942
|
+
data: xk,
|
|
16933
16943
|
sx: {
|
|
16934
16944
|
flex: 1
|
|
16935
16945
|
},
|
|
@@ -16962,7 +16972,7 @@ function xk({
|
|
|
16962
16972
|
field: s
|
|
16963
16973
|
}) => /* @__PURE__ */ l(Ee, {
|
|
16964
16974
|
label: "Line Type",
|
|
16965
|
-
data:
|
|
16975
|
+
data: _k,
|
|
16966
16976
|
sx: {
|
|
16967
16977
|
flexGrow: 1
|
|
16968
16978
|
},
|
|
@@ -17012,7 +17022,7 @@ function xk({
|
|
|
17012
17022
|
})]
|
|
17013
17023
|
}, n);
|
|
17014
17024
|
}
|
|
17015
|
-
function
|
|
17025
|
+
function Ok({
|
|
17016
17026
|
control: e,
|
|
17017
17027
|
watch: t,
|
|
17018
17028
|
data: n
|
|
@@ -17081,7 +17091,7 @@ function _k({
|
|
|
17081
17091
|
})]
|
|
17082
17092
|
}), s.map((f, p) => /* @__PURE__ */ l(I.Panel, {
|
|
17083
17093
|
value: p.toString(),
|
|
17084
|
-
children: /* @__PURE__ */ l(
|
|
17094
|
+
children: /* @__PURE__ */ l(Ek, {
|
|
17085
17095
|
regressionItem: f,
|
|
17086
17096
|
control: e,
|
|
17087
17097
|
index: p,
|
|
@@ -17107,14 +17117,14 @@ const Wo = {
|
|
|
17107
17117
|
].join(`
|
|
17108
17118
|
`)
|
|
17109
17119
|
}
|
|
17110
|
-
},
|
|
17120
|
+
}, Rk = [{
|
|
17111
17121
|
label: "No gap between bars",
|
|
17112
17122
|
value: "0%"
|
|
17113
17123
|
}, {
|
|
17114
17124
|
label: "Bars overlapping on each other",
|
|
17115
17125
|
value: "-100%"
|
|
17116
17126
|
}];
|
|
17117
|
-
function
|
|
17127
|
+
function Tk({
|
|
17118
17128
|
control: e,
|
|
17119
17129
|
index: t
|
|
17120
17130
|
}) {
|
|
@@ -17155,7 +17165,7 @@ function Ok({
|
|
|
17155
17165
|
field: n
|
|
17156
17166
|
}) => /* @__PURE__ */ l(Ee, {
|
|
17157
17167
|
label: "Bar Gap",
|
|
17158
|
-
data:
|
|
17168
|
+
data: Rk,
|
|
17159
17169
|
sx: {
|
|
17160
17170
|
flexGrow: 1
|
|
17161
17171
|
},
|
|
@@ -17164,7 +17174,7 @@ function Ok({
|
|
|
17164
17174
|
})]
|
|
17165
17175
|
});
|
|
17166
17176
|
}
|
|
17167
|
-
const
|
|
17177
|
+
const Mk = ({
|
|
17168
17178
|
value: e,
|
|
17169
17179
|
onChange: t
|
|
17170
17180
|
}) => /* @__PURE__ */ l(Ie, {
|
|
@@ -17182,7 +17192,7 @@ const Rk = ({
|
|
|
17182
17192
|
}
|
|
17183
17193
|
}
|
|
17184
17194
|
})
|
|
17185
|
-
}),
|
|
17195
|
+
}), kk = ({
|
|
17186
17196
|
value: e,
|
|
17187
17197
|
onChange: t,
|
|
17188
17198
|
data: n
|
|
@@ -17238,7 +17248,7 @@ const Rk = ({
|
|
|
17238
17248
|
label: "Dynamic by a custom function",
|
|
17239
17249
|
labelPosition: "center",
|
|
17240
17250
|
variant: "dashed"
|
|
17241
|
-
}), /* @__PURE__ */ l(
|
|
17251
|
+
}), /* @__PURE__ */ l(Mk, {
|
|
17242
17252
|
value: a.func_content,
|
|
17243
17253
|
onChange: d
|
|
17244
17254
|
}), /* @__PURE__ */ v(k, {
|
|
@@ -17265,15 +17275,15 @@ const Rk = ({
|
|
|
17265
17275
|
})
|
|
17266
17276
|
})]
|
|
17267
17277
|
});
|
|
17268
|
-
},
|
|
17278
|
+
}, Dk = ({
|
|
17269
17279
|
value: e,
|
|
17270
17280
|
onChange: t,
|
|
17271
17281
|
data: n
|
|
17272
|
-
}) => e.type !== "dynamic" ? null : /* @__PURE__ */ l(
|
|
17282
|
+
}) => e.type !== "dynamic" ? null : /* @__PURE__ */ l(kk, {
|
|
17273
17283
|
value: e,
|
|
17274
17284
|
onChange: t,
|
|
17275
17285
|
data: n
|
|
17276
|
-
}),
|
|
17286
|
+
}), Pk = ({
|
|
17277
17287
|
value: e,
|
|
17278
17288
|
onChange: t
|
|
17279
17289
|
}) => {
|
|
@@ -17295,7 +17305,7 @@ const Rk = ({
|
|
|
17295
17305
|
onChange: n
|
|
17296
17306
|
})
|
|
17297
17307
|
});
|
|
17298
|
-
},
|
|
17308
|
+
}, Ik = [{
|
|
17299
17309
|
label: "Static",
|
|
17300
17310
|
value: "static"
|
|
17301
17311
|
}, {
|
|
@@ -17317,22 +17327,22 @@ const Rk = ({
|
|
|
17317
17327
|
children: [/* @__PURE__ */ l(Ee, {
|
|
17318
17328
|
ref: o,
|
|
17319
17329
|
label: e,
|
|
17320
|
-
data:
|
|
17330
|
+
data: Ik,
|
|
17321
17331
|
value: t.type,
|
|
17322
17332
|
onChange: i,
|
|
17323
17333
|
sx: {
|
|
17324
17334
|
flexGrow: 1
|
|
17325
17335
|
}
|
|
17326
|
-
}), /* @__PURE__ */ l(
|
|
17336
|
+
}), /* @__PURE__ */ l(Pk, {
|
|
17327
17337
|
value: t,
|
|
17328
17338
|
onChange: n
|
|
17329
|
-
}), /* @__PURE__ */ l(
|
|
17339
|
+
}), /* @__PURE__ */ l(Dk, {
|
|
17330
17340
|
value: t,
|
|
17331
17341
|
onChange: n,
|
|
17332
17342
|
data: r
|
|
17333
17343
|
})]
|
|
17334
17344
|
});
|
|
17335
|
-
}),
|
|
17345
|
+
}), $k = [{
|
|
17336
17346
|
label: "off",
|
|
17337
17347
|
value: "false"
|
|
17338
17348
|
}, {
|
|
@@ -17344,7 +17354,7 @@ const Rk = ({
|
|
|
17344
17354
|
}, {
|
|
17345
17355
|
label: "end",
|
|
17346
17356
|
value: "end"
|
|
17347
|
-
}],
|
|
17357
|
+
}], Ak = [{
|
|
17348
17358
|
label: "solid",
|
|
17349
17359
|
value: "solid"
|
|
17350
17360
|
}, {
|
|
@@ -17354,7 +17364,7 @@ const Rk = ({
|
|
|
17354
17364
|
label: "dotted",
|
|
17355
17365
|
value: "dotted"
|
|
17356
17366
|
}];
|
|
17357
|
-
function
|
|
17367
|
+
function Nk({
|
|
17358
17368
|
control: e,
|
|
17359
17369
|
index: t,
|
|
17360
17370
|
seriesItem: n,
|
|
@@ -17376,7 +17386,7 @@ function $k({
|
|
|
17376
17386
|
field: i
|
|
17377
17387
|
}) => /* @__PURE__ */ l(Ee, {
|
|
17378
17388
|
label: "Line Type",
|
|
17379
|
-
data:
|
|
17389
|
+
data: Ak,
|
|
17380
17390
|
sx: {
|
|
17381
17391
|
flexGrow: 1
|
|
17382
17392
|
},
|
|
@@ -17407,7 +17417,7 @@ function $k({
|
|
|
17407
17417
|
field: i
|
|
17408
17418
|
}) => /* @__PURE__ */ l(Ee, {
|
|
17409
17419
|
label: "Step",
|
|
17410
|
-
data:
|
|
17420
|
+
data: $k,
|
|
17411
17421
|
sx: {
|
|
17412
17422
|
flexGrow: 1,
|
|
17413
17423
|
maxWidth: "48%"
|
|
@@ -17487,7 +17497,7 @@ function $k({
|
|
|
17487
17497
|
})]
|
|
17488
17498
|
});
|
|
17489
17499
|
}
|
|
17490
|
-
function
|
|
17500
|
+
function Lk({
|
|
17491
17501
|
control: e,
|
|
17492
17502
|
index: t,
|
|
17493
17503
|
data: n
|
|
@@ -17504,7 +17514,7 @@ function Ak({
|
|
|
17504
17514
|
})
|
|
17505
17515
|
});
|
|
17506
17516
|
}
|
|
17507
|
-
const
|
|
17517
|
+
const Vk = [{
|
|
17508
17518
|
label: "off",
|
|
17509
17519
|
value: ""
|
|
17510
17520
|
}, {
|
|
@@ -17547,7 +17557,7 @@ const Nk = [{
|
|
|
17547
17557
|
label: "insideBottomRight",
|
|
17548
17558
|
value: "insideBottomRight"
|
|
17549
17559
|
}];
|
|
17550
|
-
function
|
|
17560
|
+
function Fk({
|
|
17551
17561
|
control: e,
|
|
17552
17562
|
index: t,
|
|
17553
17563
|
remove: n,
|
|
@@ -17664,15 +17674,15 @@ function Lk({
|
|
|
17664
17674
|
...s
|
|
17665
17675
|
})
|
|
17666
17676
|
})]
|
|
17667
|
-
}), a === "line" && /* @__PURE__ */ l(
|
|
17677
|
+
}), a === "line" && /* @__PURE__ */ l(Nk, {
|
|
17668
17678
|
index: t,
|
|
17669
17679
|
control: e,
|
|
17670
17680
|
seriesItem: r,
|
|
17671
17681
|
data: i
|
|
17672
|
-
}), a === "bar" && /* @__PURE__ */ l(
|
|
17682
|
+
}), a === "bar" && /* @__PURE__ */ l(Tk, {
|
|
17673
17683
|
index: t,
|
|
17674
17684
|
control: e
|
|
17675
|
-
}), a === "scatter" && /* @__PURE__ */ l(
|
|
17685
|
+
}), a === "scatter" && /* @__PURE__ */ l(Lk, {
|
|
17676
17686
|
index: t,
|
|
17677
17687
|
control: e,
|
|
17678
17688
|
data: i
|
|
@@ -17689,7 +17699,7 @@ function Lk({
|
|
|
17689
17699
|
field: s
|
|
17690
17700
|
}) => /* @__PURE__ */ l(Ee, {
|
|
17691
17701
|
label: "Label Position",
|
|
17692
|
-
data:
|
|
17702
|
+
data: Vk,
|
|
17693
17703
|
...s
|
|
17694
17704
|
})
|
|
17695
17705
|
}), /* @__PURE__ */ v(B, {
|
|
@@ -17741,7 +17751,7 @@ function Lk({
|
|
|
17741
17751
|
})]
|
|
17742
17752
|
}, t);
|
|
17743
17753
|
}
|
|
17744
|
-
function
|
|
17754
|
+
function zk({
|
|
17745
17755
|
control: e,
|
|
17746
17756
|
watch: t,
|
|
17747
17757
|
data: n
|
|
@@ -17810,7 +17820,7 @@ function Vk({
|
|
|
17810
17820
|
})]
|
|
17811
17821
|
}), s.map((f, p) => /* @__PURE__ */ l(I.Panel, {
|
|
17812
17822
|
value: p.toString(),
|
|
17813
|
-
children: /* @__PURE__ */ l(
|
|
17823
|
+
children: /* @__PURE__ */ l(Fk, {
|
|
17814
17824
|
control: e,
|
|
17815
17825
|
index: p,
|
|
17816
17826
|
remove: i,
|
|
@@ -17821,7 +17831,7 @@ function Vk({
|
|
|
17821
17831
|
}, f.id))]
|
|
17822
17832
|
});
|
|
17823
17833
|
}
|
|
17824
|
-
function
|
|
17834
|
+
function jk({
|
|
17825
17835
|
control: e,
|
|
17826
17836
|
watch: t
|
|
17827
17837
|
}) {
|
|
@@ -17858,7 +17868,7 @@ function Fk({
|
|
|
17858
17868
|
})
|
|
17859
17869
|
});
|
|
17860
17870
|
}
|
|
17861
|
-
const
|
|
17871
|
+
const Hk = ({
|
|
17862
17872
|
disabled: e,
|
|
17863
17873
|
value: t,
|
|
17864
17874
|
onChange: n
|
|
@@ -17886,7 +17896,7 @@ const zk = ({
|
|
|
17886
17896
|
}
|
|
17887
17897
|
}
|
|
17888
17898
|
})]
|
|
17889
|
-
}),
|
|
17899
|
+
}), Kk = ({
|
|
17890
17900
|
value: e,
|
|
17891
17901
|
onChange: t,
|
|
17892
17902
|
data: n
|
|
@@ -17941,7 +17951,7 @@ const zk = ({
|
|
|
17941
17951
|
label: "Enabled",
|
|
17942
17952
|
checked: a.enabled,
|
|
17943
17953
|
onChange: (g) => c(g.currentTarget.checked)
|
|
17944
|
-
}), /* @__PURE__ */ l(
|
|
17954
|
+
}), /* @__PURE__ */ l(Hk, {
|
|
17945
17955
|
value: a.func_content,
|
|
17946
17956
|
onChange: f,
|
|
17947
17957
|
disabled: !a.enabled
|
|
@@ -17970,7 +17980,7 @@ const zk = ({
|
|
|
17970
17980
|
})]
|
|
17971
17981
|
});
|
|
17972
17982
|
};
|
|
17973
|
-
function
|
|
17983
|
+
function Bk({
|
|
17974
17984
|
data: e,
|
|
17975
17985
|
control: t,
|
|
17976
17986
|
watch: n
|
|
@@ -18044,7 +18054,7 @@ function Hk({
|
|
|
18044
18054
|
control: t,
|
|
18045
18055
|
render: ({
|
|
18046
18056
|
field: r
|
|
18047
|
-
}) => /* @__PURE__ */ l(
|
|
18057
|
+
}) => /* @__PURE__ */ l(Kk, {
|
|
18048
18058
|
data: e,
|
|
18049
18059
|
...r
|
|
18050
18060
|
})
|
|
@@ -18052,7 +18062,7 @@ function Hk({
|
|
|
18052
18062
|
})]
|
|
18053
18063
|
});
|
|
18054
18064
|
}
|
|
18055
|
-
const
|
|
18065
|
+
const Gk = [{
|
|
18056
18066
|
label: "left",
|
|
18057
18067
|
value: "left"
|
|
18058
18068
|
}, {
|
|
@@ -18061,14 +18071,14 @@ const Kk = [{
|
|
|
18061
18071
|
}, {
|
|
18062
18072
|
label: "right",
|
|
18063
18073
|
value: "right"
|
|
18064
|
-
}],
|
|
18074
|
+
}], Wk = [{
|
|
18065
18075
|
label: "left",
|
|
18066
18076
|
value: "left"
|
|
18067
18077
|
}, {
|
|
18068
18078
|
label: "right",
|
|
18069
18079
|
value: "right"
|
|
18070
18080
|
}];
|
|
18071
|
-
function
|
|
18081
|
+
function qk({
|
|
18072
18082
|
control: e,
|
|
18073
18083
|
index: t,
|
|
18074
18084
|
remove: n
|
|
@@ -18109,7 +18119,7 @@ function Gk({
|
|
|
18109
18119
|
}) => /* @__PURE__ */ l(Ee, {
|
|
18110
18120
|
label: "Align",
|
|
18111
18121
|
required: !0,
|
|
18112
|
-
data:
|
|
18122
|
+
data: Gk,
|
|
18113
18123
|
sx: {
|
|
18114
18124
|
flex: 1
|
|
18115
18125
|
},
|
|
@@ -18132,7 +18142,7 @@ function Gk({
|
|
|
18132
18142
|
}) => /* @__PURE__ */ l(Ee, {
|
|
18133
18143
|
label: "Position",
|
|
18134
18144
|
required: !0,
|
|
18135
|
-
data:
|
|
18145
|
+
data: Wk,
|
|
18136
18146
|
sx: {
|
|
18137
18147
|
flex: 1
|
|
18138
18148
|
},
|
|
@@ -18167,7 +18177,7 @@ function Gk({
|
|
|
18167
18177
|
})]
|
|
18168
18178
|
});
|
|
18169
18179
|
}
|
|
18170
|
-
function
|
|
18180
|
+
function Uk({
|
|
18171
18181
|
control: e,
|
|
18172
18182
|
watch: t
|
|
18173
18183
|
}) {
|
|
@@ -18212,7 +18222,7 @@ function Wk({
|
|
|
18212
18222
|
})]
|
|
18213
18223
|
}), a.map((c, u) => /* @__PURE__ */ l(I.Panel, {
|
|
18214
18224
|
value: u.toString(),
|
|
18215
|
-
children: /* @__PURE__ */ l(
|
|
18225
|
+
children: /* @__PURE__ */ l(qk, {
|
|
18216
18226
|
control: e,
|
|
18217
18227
|
index: u,
|
|
18218
18228
|
remove: o
|
|
@@ -18220,7 +18230,7 @@ function Wk({
|
|
|
18220
18230
|
}, u))]
|
|
18221
18231
|
});
|
|
18222
18232
|
}
|
|
18223
|
-
function
|
|
18233
|
+
function Yk(e) {
|
|
18224
18234
|
function t({
|
|
18225
18235
|
name: n = "",
|
|
18226
18236
|
template: r = "",
|
|
@@ -18236,7 +18246,7 @@ function qk(e) {
|
|
|
18236
18246
|
}
|
|
18237
18247
|
return e.map(t);
|
|
18238
18248
|
}
|
|
18239
|
-
function
|
|
18249
|
+
function Xk(e) {
|
|
18240
18250
|
function t({
|
|
18241
18251
|
type: n,
|
|
18242
18252
|
name: r,
|
|
@@ -18285,7 +18295,7 @@ function Uk(e) {
|
|
|
18285
18295
|
}
|
|
18286
18296
|
return e.map(t);
|
|
18287
18297
|
}
|
|
18288
|
-
function
|
|
18298
|
+
function Qk(e) {
|
|
18289
18299
|
return e || {
|
|
18290
18300
|
templates: {
|
|
18291
18301
|
top: "",
|
|
@@ -18293,20 +18303,20 @@ function Yk(e) {
|
|
|
18293
18303
|
}
|
|
18294
18304
|
};
|
|
18295
18305
|
}
|
|
18296
|
-
function
|
|
18306
|
+
function Jk({
|
|
18297
18307
|
series: e,
|
|
18298
18308
|
stats: t,
|
|
18299
18309
|
reference_lines: n,
|
|
18300
18310
|
...r
|
|
18301
18311
|
}) {
|
|
18302
18312
|
return {
|
|
18303
|
-
series:
|
|
18304
|
-
stats:
|
|
18305
|
-
reference_lines:
|
|
18313
|
+
series: Xk(e != null ? e : []),
|
|
18314
|
+
stats: Qk(t),
|
|
18315
|
+
reference_lines: Yk(n != null ? n : []),
|
|
18306
18316
|
...r
|
|
18307
18317
|
};
|
|
18308
18318
|
}
|
|
18309
|
-
function
|
|
18319
|
+
function Zk({
|
|
18310
18320
|
context: e
|
|
18311
18321
|
}) {
|
|
18312
18322
|
const {
|
|
@@ -18314,7 +18324,7 @@ function Qk({
|
|
|
18314
18324
|
set: n
|
|
18315
18325
|
} = rt(e.instanceData, "config"), {
|
|
18316
18326
|
variables: r
|
|
18317
|
-
} = e, o = e.data, i = de(() => nn({}, t, Os), [t]), a = de(() =>
|
|
18327
|
+
} = e, o = e.data, i = de(() => nn({}, t, Os), [t]), a = de(() => Jk(i), [i]);
|
|
18318
18328
|
Me(() => {
|
|
18319
18329
|
!Dt(i, a) && (console.log("config malformed, resetting to defaults", i, a), n(a));
|
|
18320
18330
|
}, [i, a]);
|
|
@@ -18394,48 +18404,48 @@ function Qk({
|
|
|
18394
18404
|
})]
|
|
18395
18405
|
}), /* @__PURE__ */ l(I.Panel, {
|
|
18396
18406
|
value: "X Axis",
|
|
18397
|
-
children: /* @__PURE__ */ l(
|
|
18407
|
+
children: /* @__PURE__ */ l(Bk, {
|
|
18398
18408
|
control: s,
|
|
18399
18409
|
watch: u,
|
|
18400
18410
|
data: o
|
|
18401
18411
|
})
|
|
18402
18412
|
}), /* @__PURE__ */ l(I.Panel, {
|
|
18403
18413
|
value: "Y Axes",
|
|
18404
|
-
children: /* @__PURE__ */ l(
|
|
18414
|
+
children: /* @__PURE__ */ l(Uk, {
|
|
18405
18415
|
control: s,
|
|
18406
18416
|
watch: u
|
|
18407
18417
|
})
|
|
18408
18418
|
}), /* @__PURE__ */ l(I.Panel, {
|
|
18409
18419
|
value: "Series",
|
|
18410
|
-
children: /* @__PURE__ */ l(
|
|
18420
|
+
children: /* @__PURE__ */ l(zk, {
|
|
18411
18421
|
control: s,
|
|
18412
18422
|
watch: u,
|
|
18413
18423
|
data: o
|
|
18414
18424
|
})
|
|
18415
18425
|
}), /* @__PURE__ */ l(I.Panel, {
|
|
18416
18426
|
value: "Regression Lines",
|
|
18417
|
-
children: /* @__PURE__ */ l(
|
|
18427
|
+
children: /* @__PURE__ */ l(Ok, {
|
|
18418
18428
|
control: s,
|
|
18419
18429
|
watch: u,
|
|
18420
18430
|
data: o
|
|
18421
18431
|
})
|
|
18422
18432
|
}), /* @__PURE__ */ l(I.Panel, {
|
|
18423
18433
|
value: "Stats",
|
|
18424
|
-
children: /* @__PURE__ */ l(
|
|
18434
|
+
children: /* @__PURE__ */ l(jk, {
|
|
18425
18435
|
control: s,
|
|
18426
18436
|
watch: u,
|
|
18427
18437
|
data: o
|
|
18428
18438
|
})
|
|
18429
18439
|
}), /* @__PURE__ */ l(I.Panel, {
|
|
18430
18440
|
value: "Reference Lines",
|
|
18431
|
-
children: /* @__PURE__ */ l(
|
|
18441
|
+
children: /* @__PURE__ */ l(Ck, {
|
|
18432
18442
|
variables: r,
|
|
18433
18443
|
control: s,
|
|
18434
18444
|
watch: u
|
|
18435
18445
|
})
|
|
18436
18446
|
}), /* @__PURE__ */ l(I.Panel, {
|
|
18437
18447
|
value: "Reference Areas",
|
|
18438
|
-
children: /* @__PURE__ */ l(
|
|
18448
|
+
children: /* @__PURE__ */ l(bk, {
|
|
18439
18449
|
variables: r,
|
|
18440
18450
|
control: s,
|
|
18441
18451
|
watch: u
|
|
@@ -18445,11 +18455,11 @@ function Qk({
|
|
|
18445
18455
|
})
|
|
18446
18456
|
});
|
|
18447
18457
|
}
|
|
18448
|
-
function
|
|
18458
|
+
function eD(e) {
|
|
18449
18459
|
const t = Xo(Dr(e, "variables"));
|
|
18450
18460
|
return t.stats = Dr(t.stats, "variables"), t;
|
|
18451
18461
|
}
|
|
18452
|
-
function
|
|
18462
|
+
function tD(e) {
|
|
18453
18463
|
const {
|
|
18454
18464
|
rotate: t,
|
|
18455
18465
|
formatter: n = Es
|
|
@@ -18465,7 +18475,7 @@ function Zk(e) {
|
|
|
18465
18475
|
}
|
|
18466
18476
|
};
|
|
18467
18477
|
}
|
|
18468
|
-
class
|
|
18478
|
+
class nD extends tn {
|
|
18469
18479
|
constructor() {
|
|
18470
18480
|
super(...arguments);
|
|
18471
18481
|
he(this, "VERSION", 3);
|
|
@@ -18485,27 +18495,27 @@ class eD extends tn {
|
|
|
18485
18495
|
}), (dt(o, "stats.variables") || []).forEach((s) => {
|
|
18486
18496
|
r.variables.find((c) => c.name === s.name) || r.addVariable(s);
|
|
18487
18497
|
}), {
|
|
18488
|
-
config:
|
|
18498
|
+
config: eD(o)
|
|
18489
18499
|
};
|
|
18490
18500
|
}), this.version(3, (n) => ({
|
|
18491
18501
|
version: 3,
|
|
18492
|
-
config:
|
|
18502
|
+
config: tD(n.config)
|
|
18493
18503
|
}));
|
|
18494
18504
|
}
|
|
18495
18505
|
}
|
|
18496
|
-
const
|
|
18506
|
+
const rD = {
|
|
18497
18507
|
displayName: "Cartesian Chart",
|
|
18498
|
-
migrator: new
|
|
18508
|
+
migrator: new nD(),
|
|
18499
18509
|
name: "cartesian",
|
|
18500
|
-
viewRender:
|
|
18501
|
-
configRender:
|
|
18510
|
+
viewRender: hk,
|
|
18511
|
+
configRender: Zk,
|
|
18502
18512
|
createConfig: () => Os,
|
|
18503
18513
|
triggers: [qg]
|
|
18504
18514
|
}, Yg = {
|
|
18505
18515
|
id: "builtin:echarts:click-echart:series",
|
|
18506
18516
|
displayName: "Click Chart Series",
|
|
18507
|
-
nameRender:
|
|
18508
|
-
configRender:
|
|
18517
|
+
nameRender: iD,
|
|
18518
|
+
configRender: oD,
|
|
18509
18519
|
payload: [{
|
|
18510
18520
|
name: "type",
|
|
18511
18521
|
description: "Always 'click'",
|
|
@@ -18528,10 +18538,10 @@ const tD = {
|
|
|
18528
18538
|
valueType: "object"
|
|
18529
18539
|
}]
|
|
18530
18540
|
};
|
|
18531
|
-
function
|
|
18541
|
+
function oD(e) {
|
|
18532
18542
|
return /* @__PURE__ */ l(Ne, {});
|
|
18533
18543
|
}
|
|
18534
|
-
function
|
|
18544
|
+
function iD(e) {
|
|
18535
18545
|
return /* @__PURE__ */ l(z, {
|
|
18536
18546
|
children: "Click chart's series"
|
|
18537
18547
|
});
|
|
@@ -18557,7 +18567,7 @@ function Ts(e) {
|
|
|
18557
18567
|
mantissa: 0
|
|
18558
18568
|
});
|
|
18559
18569
|
}
|
|
18560
|
-
function
|
|
18570
|
+
function aD(e) {
|
|
18561
18571
|
const t = e.value[1];
|
|
18562
18572
|
try {
|
|
18563
18573
|
return Ts(t);
|
|
@@ -18565,7 +18575,7 @@ function oD(e) {
|
|
|
18565
18575
|
return console.error(n), t;
|
|
18566
18576
|
}
|
|
18567
18577
|
}
|
|
18568
|
-
function
|
|
18578
|
+
function lD(e) {
|
|
18569
18579
|
const t = Array.isArray(e) ? e : [e];
|
|
18570
18580
|
if (t.length === 0)
|
|
18571
18581
|
return "";
|
|
@@ -18576,7 +18586,7 @@ function iD(e) {
|
|
|
18576
18586
|
return n.unshift(`<strong>${t[0].name}</strong>`), n.join("<br />");
|
|
18577
18587
|
}
|
|
18578
18588
|
$t.use([Il, $l, ei, Lr, Vr, Fr, Jn]);
|
|
18579
|
-
function
|
|
18589
|
+
function sD({
|
|
18580
18590
|
context: e,
|
|
18581
18591
|
instance: t
|
|
18582
18592
|
}) {
|
|
@@ -18625,7 +18635,7 @@ function aD({
|
|
|
18625
18635
|
}],
|
|
18626
18636
|
tooltip: {
|
|
18627
18637
|
trigger: "axis",
|
|
18628
|
-
formatter:
|
|
18638
|
+
formatter: lD
|
|
18629
18639
|
},
|
|
18630
18640
|
xAxis: [{
|
|
18631
18641
|
type: "category",
|
|
@@ -18693,7 +18703,7 @@ function aD({
|
|
|
18693
18703
|
label: {
|
|
18694
18704
|
show: !0,
|
|
18695
18705
|
position: "top",
|
|
18696
|
-
formatter:
|
|
18706
|
+
formatter: aD
|
|
18697
18707
|
},
|
|
18698
18708
|
yAxisIndex: 1,
|
|
18699
18709
|
data: m
|
|
@@ -18711,7 +18721,7 @@ function aD({
|
|
|
18711
18721
|
}
|
|
18712
18722
|
});
|
|
18713
18723
|
}
|
|
18714
|
-
function
|
|
18724
|
+
function cD({
|
|
18715
18725
|
context: e
|
|
18716
18726
|
}) {
|
|
18717
18727
|
const {
|
|
@@ -18871,7 +18881,7 @@ function lD({
|
|
|
18871
18881
|
})
|
|
18872
18882
|
});
|
|
18873
18883
|
}
|
|
18874
|
-
class
|
|
18884
|
+
class uD extends tn {
|
|
18875
18885
|
constructor() {
|
|
18876
18886
|
super(...arguments);
|
|
18877
18887
|
he(this, "VERSION", 1);
|
|
@@ -18883,12 +18893,12 @@ class sD extends tn {
|
|
|
18883
18893
|
}));
|
|
18884
18894
|
}
|
|
18885
18895
|
}
|
|
18886
|
-
const
|
|
18896
|
+
const dD = {
|
|
18887
18897
|
displayName: "Pareto Chart",
|
|
18888
|
-
migrator: new
|
|
18898
|
+
migrator: new uD(),
|
|
18889
18899
|
name: "paretoChart",
|
|
18890
|
-
viewRender:
|
|
18891
|
-
configRender:
|
|
18900
|
+
viewRender: sD,
|
|
18901
|
+
configRender: cD,
|
|
18892
18902
|
createConfig: () => Rs,
|
|
18893
18903
|
triggers: [Yg]
|
|
18894
18904
|
}, Ms = {
|
|
@@ -18896,7 +18906,7 @@ const cD = {
|
|
|
18896
18906
|
value_field: ""
|
|
18897
18907
|
};
|
|
18898
18908
|
$t.use([Bm, Jn]);
|
|
18899
|
-
const
|
|
18909
|
+
const fD = {
|
|
18900
18910
|
tooltip: {
|
|
18901
18911
|
show: !0
|
|
18902
18912
|
},
|
|
@@ -18930,7 +18940,7 @@ const uD = {
|
|
|
18930
18940
|
right: 10
|
|
18931
18941
|
}
|
|
18932
18942
|
};
|
|
18933
|
-
function
|
|
18943
|
+
function pD({
|
|
18934
18944
|
context: e
|
|
18935
18945
|
}) {
|
|
18936
18946
|
const {
|
|
@@ -18953,7 +18963,7 @@ function dD({
|
|
|
18953
18963
|
};
|
|
18954
18964
|
}
|
|
18955
18965
|
}
|
|
18956
|
-
}), [r]), u = Cd({},
|
|
18966
|
+
}), [r]), u = Cd({}, fD, c, {
|
|
18957
18967
|
series: {
|
|
18958
18968
|
data: s
|
|
18959
18969
|
}
|
|
@@ -18967,7 +18977,7 @@ function dD({
|
|
|
18967
18977
|
}
|
|
18968
18978
|
});
|
|
18969
18979
|
}
|
|
18970
|
-
function
|
|
18980
|
+
function gD({
|
|
18971
18981
|
context: e
|
|
18972
18982
|
}) {
|
|
18973
18983
|
const {
|
|
@@ -19033,7 +19043,7 @@ function fD({
|
|
|
19033
19043
|
})
|
|
19034
19044
|
});
|
|
19035
19045
|
}
|
|
19036
|
-
class
|
|
19046
|
+
class hD extends tn {
|
|
19037
19047
|
constructor() {
|
|
19038
19048
|
super(...arguments);
|
|
19039
19049
|
he(this, "VERSION", 1);
|
|
@@ -19045,12 +19055,12 @@ class pD extends tn {
|
|
|
19045
19055
|
}));
|
|
19046
19056
|
}
|
|
19047
19057
|
}
|
|
19048
|
-
const
|
|
19058
|
+
const mD = {
|
|
19049
19059
|
displayName: "Pie Chart",
|
|
19050
|
-
migrator: new
|
|
19060
|
+
migrator: new hD(),
|
|
19051
19061
|
name: "pie",
|
|
19052
|
-
viewRender:
|
|
19053
|
-
configRender:
|
|
19062
|
+
viewRender: pD,
|
|
19063
|
+
configRender: gD,
|
|
19054
19064
|
createConfig: () => Ms
|
|
19055
19065
|
};
|
|
19056
19066
|
function Xg(e) {
|
|
@@ -19062,13 +19072,13 @@ function Xg(e) {
|
|
|
19062
19072
|
}
|
|
19063
19073
|
} : (t) => t;
|
|
19064
19074
|
}
|
|
19065
|
-
function
|
|
19075
|
+
function vD(e) {
|
|
19066
19076
|
return {
|
|
19067
19077
|
show: !0,
|
|
19068
19078
|
formatter: ({ dimensionIndex: t, value: n }) => Xg(e.dimensions[t].formatter)(n)
|
|
19069
19079
|
};
|
|
19070
19080
|
}
|
|
19071
|
-
function
|
|
19081
|
+
function yD(e) {
|
|
19072
19082
|
return ({ name: t, marker: n, value: r }) => {
|
|
19073
19083
|
if (r.length === 0)
|
|
19074
19084
|
return "";
|
|
@@ -19107,7 +19117,7 @@ function mD(e) {
|
|
|
19107
19117
|
`;
|
|
19108
19118
|
};
|
|
19109
19119
|
}
|
|
19110
|
-
const
|
|
19120
|
+
const bD = {
|
|
19111
19121
|
legend: {
|
|
19112
19122
|
show: !0,
|
|
19113
19123
|
bottom: 0,
|
|
@@ -19117,7 +19127,7 @@ const vD = {
|
|
|
19117
19127
|
trigger: "item"
|
|
19118
19128
|
}
|
|
19119
19129
|
};
|
|
19120
|
-
function
|
|
19130
|
+
function SD(e, t) {
|
|
19121
19131
|
const n = [
|
|
19122
19132
|
"#66B4DB",
|
|
19123
19133
|
"#39BFA2",
|
|
@@ -19154,7 +19164,7 @@ function yD(e, t) {
|
|
|
19154
19164
|
},
|
|
19155
19165
|
tooltip: {
|
|
19156
19166
|
confine: !0,
|
|
19157
|
-
formatter:
|
|
19167
|
+
formatter: yD(e)
|
|
19158
19168
|
},
|
|
19159
19169
|
legend: {
|
|
19160
19170
|
show: !0,
|
|
@@ -19170,18 +19180,18 @@ function yD(e, t) {
|
|
|
19170
19180
|
areaStyle: {
|
|
19171
19181
|
opacity: 0.4
|
|
19172
19182
|
},
|
|
19173
|
-
label:
|
|
19183
|
+
label: vD(e)
|
|
19174
19184
|
},
|
|
19175
19185
|
color: n
|
|
19176
19186
|
};
|
|
19177
|
-
return Le.merge({},
|
|
19187
|
+
return Le.merge({}, bD, i);
|
|
19178
19188
|
}
|
|
19179
19189
|
const ks = {
|
|
19180
19190
|
series_name_key: "name",
|
|
19181
19191
|
dimensions: []
|
|
19182
19192
|
};
|
|
19183
19193
|
$t.use([Gm, Lr, Vr, Fr, Jn]);
|
|
19184
|
-
function
|
|
19194
|
+
function wD({
|
|
19185
19195
|
context: e
|
|
19186
19196
|
}) {
|
|
19187
19197
|
const {
|
|
@@ -19189,7 +19199,7 @@ function bD({
|
|
|
19189
19199
|
} = rt(e.instanceData, "config"), {
|
|
19190
19200
|
width: n,
|
|
19191
19201
|
height: r
|
|
19192
|
-
} = e.viewport, o = e.data, i = de(() =>
|
|
19202
|
+
} = e.viewport, o = e.data, i = de(() => SD(nn({}, t, ks), o), [t, o]);
|
|
19193
19203
|
return !n || !r || !t || Tl(t == null ? void 0 : t.dimensions) ? null : /* @__PURE__ */ l(Ie, {
|
|
19194
19204
|
children: /* @__PURE__ */ l(Zn, {
|
|
19195
19205
|
echarts: $t,
|
|
@@ -19201,7 +19211,7 @@ function bD({
|
|
|
19201
19211
|
})
|
|
19202
19212
|
});
|
|
19203
19213
|
}
|
|
19204
|
-
function
|
|
19214
|
+
function CD({
|
|
19205
19215
|
control: e,
|
|
19206
19216
|
index: t,
|
|
19207
19217
|
remove: n,
|
|
@@ -19291,7 +19301,7 @@ function SD({
|
|
|
19291
19301
|
})]
|
|
19292
19302
|
}, t);
|
|
19293
19303
|
}
|
|
19294
|
-
function
|
|
19304
|
+
function xD({
|
|
19295
19305
|
control: e,
|
|
19296
19306
|
watch: t,
|
|
19297
19307
|
data: n
|
|
@@ -19313,7 +19323,7 @@ function wD({
|
|
|
19313
19323
|
formatter: Cr
|
|
19314
19324
|
});
|
|
19315
19325
|
return /* @__PURE__ */ v(B, {
|
|
19316
|
-
children: [s.map((u, d) => /* @__PURE__ */ l(
|
|
19326
|
+
children: [s.map((u, d) => /* @__PURE__ */ l(CD, {
|
|
19317
19327
|
data: n,
|
|
19318
19328
|
control: e,
|
|
19319
19329
|
index: d,
|
|
@@ -19328,7 +19338,7 @@ function wD({
|
|
|
19328
19338
|
})]
|
|
19329
19339
|
});
|
|
19330
19340
|
}
|
|
19331
|
-
function
|
|
19341
|
+
function _D(e) {
|
|
19332
19342
|
function t({
|
|
19333
19343
|
name: n = "",
|
|
19334
19344
|
data_key: r = "",
|
|
@@ -19344,7 +19354,7 @@ function CD(e) {
|
|
|
19344
19354
|
}
|
|
19345
19355
|
return e.map(t);
|
|
19346
19356
|
}
|
|
19347
|
-
function
|
|
19357
|
+
function ED({
|
|
19348
19358
|
context: e
|
|
19349
19359
|
}) {
|
|
19350
19360
|
const t = e.data, {
|
|
@@ -19354,7 +19364,7 @@ function xD({
|
|
|
19354
19364
|
dimensions: i,
|
|
19355
19365
|
series_name_key: a
|
|
19356
19366
|
} = o, s = de(() => ({
|
|
19357
|
-
dimensions:
|
|
19367
|
+
dimensions: _D(i != null ? i : []),
|
|
19358
19368
|
series_name_key: a
|
|
19359
19369
|
}), [i, a]);
|
|
19360
19370
|
Me(() => {
|
|
@@ -19415,7 +19425,7 @@ function xD({
|
|
|
19415
19425
|
...m
|
|
19416
19426
|
})
|
|
19417
19427
|
})
|
|
19418
|
-
}), /* @__PURE__ */ l(
|
|
19428
|
+
}), /* @__PURE__ */ l(xD, {
|
|
19419
19429
|
control: c,
|
|
19420
19430
|
watch: d,
|
|
19421
19431
|
data: t
|
|
@@ -19423,7 +19433,7 @@ function xD({
|
|
|
19423
19433
|
})
|
|
19424
19434
|
});
|
|
19425
19435
|
}
|
|
19426
|
-
class
|
|
19436
|
+
class OD extends tn {
|
|
19427
19437
|
constructor() {
|
|
19428
19438
|
super(...arguments);
|
|
19429
19439
|
he(this, "VERSION", 1);
|
|
@@ -19435,15 +19445,15 @@ class _D extends tn {
|
|
|
19435
19445
|
}));
|
|
19436
19446
|
}
|
|
19437
19447
|
}
|
|
19438
|
-
const
|
|
19448
|
+
const RD = {
|
|
19439
19449
|
displayName: "Radar Chart",
|
|
19440
|
-
migrator: new
|
|
19450
|
+
migrator: new OD(),
|
|
19441
19451
|
name: "radar",
|
|
19442
|
-
viewRender:
|
|
19443
|
-
configRender:
|
|
19452
|
+
viewRender: wD,
|
|
19453
|
+
configRender: ED,
|
|
19444
19454
|
createConfig: () => ks
|
|
19445
19455
|
};
|
|
19446
|
-
function
|
|
19456
|
+
function TD(e, t) {
|
|
19447
19457
|
switch (e.config.method) {
|
|
19448
19458
|
case "linear":
|
|
19449
19459
|
return [...cr.regressionLinear()(t)];
|
|
@@ -19457,11 +19467,11 @@ function OD(e, t) {
|
|
|
19457
19467
|
return [];
|
|
19458
19468
|
}
|
|
19459
19469
|
}
|
|
19460
|
-
function
|
|
19470
|
+
function MD({ regression: e }, t) {
|
|
19461
19471
|
const n = [], r = [];
|
|
19462
19472
|
if (t.length === 0)
|
|
19463
19473
|
return { regressionSeries: n, regressionXAxes: r };
|
|
19464
|
-
const { transform: o, plot: i, name: a } = e, s =
|
|
19474
|
+
const { transform: o, plot: i, name: a } = e, s = TD(o, t);
|
|
19465
19475
|
return n.push({
|
|
19466
19476
|
...i,
|
|
19467
19477
|
name: a,
|
|
@@ -19473,7 +19483,7 @@ function RD({ regression: e }, t) {
|
|
|
19473
19483
|
}
|
|
19474
19484
|
}), { regressionSeries: n, regressionXAxes: r };
|
|
19475
19485
|
}
|
|
19476
|
-
const
|
|
19486
|
+
const kD = {
|
|
19477
19487
|
tooltip: {
|
|
19478
19488
|
trigger: "axis"
|
|
19479
19489
|
},
|
|
@@ -19495,12 +19505,12 @@ const TD = {
|
|
|
19495
19505
|
}
|
|
19496
19506
|
]
|
|
19497
19507
|
};
|
|
19498
|
-
function
|
|
19508
|
+
function DD(e, t) {
|
|
19499
19509
|
var i, a;
|
|
19500
19510
|
const n = Le.uniqBy(
|
|
19501
19511
|
t.map((s) => [s[e.x_axis.data_key], s[e.regression.y_axis_data_key]]),
|
|
19502
19512
|
0
|
|
19503
|
-
), { regressionSeries: r } =
|
|
19513
|
+
), { regressionSeries: r } = MD(e, n), o = {
|
|
19504
19514
|
xAxis: {
|
|
19505
19515
|
type: "category",
|
|
19506
19516
|
name: (i = e.x_axis.name) != null ? i : "",
|
|
@@ -19526,12 +19536,12 @@ function MD(e, t) {
|
|
|
19526
19536
|
...r
|
|
19527
19537
|
]
|
|
19528
19538
|
};
|
|
19529
|
-
return nn({}, o,
|
|
19539
|
+
return nn({}, o, kD);
|
|
19530
19540
|
}
|
|
19531
19541
|
function yi(e, t, n) {
|
|
19532
19542
|
return 1 - (1 - e) * (t - 1) / (t - n - 1);
|
|
19533
19543
|
}
|
|
19534
|
-
function
|
|
19544
|
+
function PD(e, t) {
|
|
19535
19545
|
if (!t)
|
|
19536
19546
|
return {
|
|
19537
19547
|
expression: "",
|
|
@@ -19713,7 +19723,7 @@ const Ds = {
|
|
|
19713
19723
|
};
|
|
19714
19724
|
$t.use([ei, Al, Lr, Vr, Fr, Jn]);
|
|
19715
19725
|
$t.registerTransform(Nl.regression);
|
|
19716
|
-
function
|
|
19726
|
+
function ID({
|
|
19717
19727
|
context: e
|
|
19718
19728
|
}) {
|
|
19719
19729
|
const {
|
|
@@ -19728,11 +19738,11 @@ function DD({
|
|
|
19728
19738
|
...g,
|
|
19729
19739
|
[f]: Number(g[f])
|
|
19730
19740
|
}) : d;
|
|
19731
|
-
}, [e.data, t == null ? void 0 : t.regression.y_axis_data_key]), i = de(() =>
|
|
19741
|
+
}, [e.data, t == null ? void 0 : t.regression.y_axis_data_key]), i = de(() => DD(nn({}, t, Ds), o), [t, o]), {
|
|
19732
19742
|
expression: a,
|
|
19733
19743
|
rSquared: s,
|
|
19734
19744
|
adjustedRSquared: c
|
|
19735
|
-
} = de(() =>
|
|
19745
|
+
} = de(() => PD(o, t), [t, o]);
|
|
19736
19746
|
if (!n || !r || !t)
|
|
19737
19747
|
return null;
|
|
19738
19748
|
let u = r;
|
|
@@ -19799,7 +19809,7 @@ function DD({
|
|
|
19799
19809
|
})]
|
|
19800
19810
|
});
|
|
19801
19811
|
}
|
|
19802
|
-
const
|
|
19812
|
+
const $D = [{
|
|
19803
19813
|
label: "Linear",
|
|
19804
19814
|
value: "linear"
|
|
19805
19815
|
}, {
|
|
@@ -19812,7 +19822,7 @@ const PD = [{
|
|
|
19812
19822
|
label: "Polynomial",
|
|
19813
19823
|
value: "polynomial"
|
|
19814
19824
|
}];
|
|
19815
|
-
function
|
|
19825
|
+
function AD({
|
|
19816
19826
|
control: e,
|
|
19817
19827
|
watch: t,
|
|
19818
19828
|
data: n
|
|
@@ -19860,7 +19870,7 @@ function ID({
|
|
|
19860
19870
|
field: o
|
|
19861
19871
|
}) => /* @__PURE__ */ l(Ee, {
|
|
19862
19872
|
label: "Method",
|
|
19863
|
-
data:
|
|
19873
|
+
data: $D,
|
|
19864
19874
|
sx: {
|
|
19865
19875
|
flex: 1
|
|
19866
19876
|
},
|
|
@@ -19896,7 +19906,7 @@ function ID({
|
|
|
19896
19906
|
})]
|
|
19897
19907
|
});
|
|
19898
19908
|
}
|
|
19899
|
-
function
|
|
19909
|
+
function ND({
|
|
19900
19910
|
context: e
|
|
19901
19911
|
}) {
|
|
19902
19912
|
const {
|
|
@@ -20001,7 +20011,7 @@ function $D({
|
|
|
20001
20011
|
children: [/* @__PURE__ */ l(_r.Control, {
|
|
20002
20012
|
children: "Regression Line"
|
|
20003
20013
|
}), /* @__PURE__ */ l(_r.Panel, {
|
|
20004
|
-
children: /* @__PURE__ */ l(
|
|
20014
|
+
children: /* @__PURE__ */ l(AD, {
|
|
20005
20015
|
control: i,
|
|
20006
20016
|
watch: s,
|
|
20007
20017
|
data: r
|
|
@@ -20012,7 +20022,7 @@ function $D({
|
|
|
20012
20022
|
})
|
|
20013
20023
|
});
|
|
20014
20024
|
}
|
|
20015
|
-
class
|
|
20025
|
+
class LD extends tn {
|
|
20016
20026
|
constructor() {
|
|
20017
20027
|
super(...arguments);
|
|
20018
20028
|
he(this, "VERSION", 1);
|
|
@@ -20024,17 +20034,17 @@ class AD extends tn {
|
|
|
20024
20034
|
}));
|
|
20025
20035
|
}
|
|
20026
20036
|
}
|
|
20027
|
-
const
|
|
20037
|
+
const VD = {
|
|
20028
20038
|
displayName: "Regression Chart",
|
|
20029
|
-
migrator: new
|
|
20039
|
+
migrator: new LD(),
|
|
20030
20040
|
name: "regressionChart",
|
|
20031
|
-
viewRender:
|
|
20032
|
-
configRender:
|
|
20041
|
+
viewRender: ID,
|
|
20042
|
+
configRender: ND,
|
|
20033
20043
|
createConfig: () => Ds
|
|
20034
20044
|
}, Ps = {
|
|
20035
20045
|
content: ""
|
|
20036
20046
|
};
|
|
20037
|
-
function
|
|
20047
|
+
function FD({
|
|
20038
20048
|
context: e
|
|
20039
20049
|
}) {
|
|
20040
20050
|
const {
|
|
@@ -20096,7 +20106,7 @@ const Qg = Nn(({
|
|
|
20096
20106
|
}), /* @__PURE__ */ l(it.Content, {})]
|
|
20097
20107
|
});
|
|
20098
20108
|
});
|
|
20099
|
-
function
|
|
20109
|
+
function zD({
|
|
20100
20110
|
context: e
|
|
20101
20111
|
}) {
|
|
20102
20112
|
const {
|
|
@@ -20165,7 +20175,7 @@ function VD({
|
|
|
20165
20175
|
})
|
|
20166
20176
|
});
|
|
20167
20177
|
}
|
|
20168
|
-
class
|
|
20178
|
+
class jD extends tn {
|
|
20169
20179
|
constructor() {
|
|
20170
20180
|
super(...arguments);
|
|
20171
20181
|
he(this, "VERSION", 1);
|
|
@@ -20180,18 +20190,18 @@ class FD extends tn {
|
|
|
20180
20190
|
}));
|
|
20181
20191
|
}
|
|
20182
20192
|
}
|
|
20183
|
-
const
|
|
20193
|
+
const HD = {
|
|
20184
20194
|
displayName: "RichText",
|
|
20185
|
-
migrator: new
|
|
20195
|
+
migrator: new jD(),
|
|
20186
20196
|
name: "richText",
|
|
20187
|
-
viewRender:
|
|
20188
|
-
configRender:
|
|
20197
|
+
viewRender: FD,
|
|
20198
|
+
configRender: zD,
|
|
20189
20199
|
createConfig: () => Ps
|
|
20190
20200
|
}, Is = {
|
|
20191
20201
|
align: "center",
|
|
20192
20202
|
template: "The variable ${value} is defined in Variables section"
|
|
20193
20203
|
};
|
|
20194
|
-
function
|
|
20204
|
+
function KD(e) {
|
|
20195
20205
|
if ("variables" in e)
|
|
20196
20206
|
return e;
|
|
20197
20207
|
const {
|
|
@@ -20225,10 +20235,10 @@ function jD(e) {
|
|
|
20225
20235
|
]
|
|
20226
20236
|
};
|
|
20227
20237
|
}
|
|
20228
|
-
function
|
|
20238
|
+
function BD(e) {
|
|
20229
20239
|
return Dr(e, ["variables"]);
|
|
20230
20240
|
}
|
|
20231
|
-
function
|
|
20241
|
+
function GD(e) {
|
|
20232
20242
|
const t = Xo(e), n = dt(t, "color.valueRange");
|
|
20233
20243
|
return n !== void 0 && Rl(
|
|
20234
20244
|
t,
|
|
@@ -20236,21 +20246,21 @@ function KD(e) {
|
|
|
20236
20246
|
n.map((r) => Number(r))
|
|
20237
20247
|
), t;
|
|
20238
20248
|
}
|
|
20239
|
-
class
|
|
20249
|
+
class WD extends tn {
|
|
20240
20250
|
constructor() {
|
|
20241
20251
|
super(...arguments);
|
|
20242
20252
|
he(this, "VERSION", 2);
|
|
20243
20253
|
}
|
|
20244
20254
|
configVersions() {
|
|
20245
|
-
this.version(1, (n) => ({ config:
|
|
20255
|
+
this.version(1, (n) => ({ config: KD(n) })), this.version(2, (n, { panelModel: r }) => {
|
|
20246
20256
|
const { config: o } = n;
|
|
20247
20257
|
return (o.variables || []).forEach((a) => {
|
|
20248
|
-
r.variables.find((s) => s.name === a.name) || r.addVariable(
|
|
20249
|
-
}), { config:
|
|
20258
|
+
r.variables.find((s) => s.name === a.name) || r.addVariable(GD(a));
|
|
20259
|
+
}), { config: BD(o) };
|
|
20250
20260
|
});
|
|
20251
20261
|
}
|
|
20252
20262
|
}
|
|
20253
|
-
const
|
|
20263
|
+
const qD = Q(({
|
|
20254
20264
|
context: e
|
|
20255
20265
|
}) => {
|
|
20256
20266
|
const t = lt(), {
|
|
@@ -20277,7 +20287,7 @@ const GD = Q(({
|
|
|
20277
20287
|
children: c
|
|
20278
20288
|
}, u))
|
|
20279
20289
|
});
|
|
20280
|
-
}),
|
|
20290
|
+
}), UD = [{
|
|
20281
20291
|
label: "Left",
|
|
20282
20292
|
value: "left"
|
|
20283
20293
|
}, {
|
|
@@ -20287,7 +20297,7 @@ const GD = Q(({
|
|
|
20287
20297
|
label: "Right",
|
|
20288
20298
|
value: "right"
|
|
20289
20299
|
}];
|
|
20290
|
-
function
|
|
20300
|
+
function YD({
|
|
20291
20301
|
context: e
|
|
20292
20302
|
}) {
|
|
20293
20303
|
const {
|
|
@@ -20361,14 +20371,14 @@ function qD({
|
|
|
20361
20371
|
field: f
|
|
20362
20372
|
}) => /* @__PURE__ */ l(Ee, {
|
|
20363
20373
|
label: "Horizontal Alignment",
|
|
20364
|
-
data:
|
|
20374
|
+
data: UD,
|
|
20365
20375
|
...f
|
|
20366
20376
|
})
|
|
20367
20377
|
})]
|
|
20368
20378
|
})
|
|
20369
20379
|
});
|
|
20370
20380
|
}
|
|
20371
|
-
const
|
|
20381
|
+
const XD = {
|
|
20372
20382
|
createConfig() {
|
|
20373
20383
|
return {
|
|
20374
20384
|
version: 1,
|
|
@@ -20376,16 +20386,16 @@ const UD = {
|
|
|
20376
20386
|
};
|
|
20377
20387
|
},
|
|
20378
20388
|
displayName: "Stats",
|
|
20379
|
-
migrator: new
|
|
20389
|
+
migrator: new WD(),
|
|
20380
20390
|
name: "stats",
|
|
20381
|
-
viewRender:
|
|
20382
|
-
configRender:
|
|
20391
|
+
viewRender: qD,
|
|
20392
|
+
configRender: YD
|
|
20383
20393
|
}, $s = {
|
|
20384
20394
|
label_field: "",
|
|
20385
20395
|
value_field: ""
|
|
20386
20396
|
};
|
|
20387
20397
|
$t.use([Wm, Jn]);
|
|
20388
|
-
const
|
|
20398
|
+
const QD = {
|
|
20389
20399
|
tooltip: {
|
|
20390
20400
|
show: !0
|
|
20391
20401
|
},
|
|
@@ -20397,7 +20407,7 @@ const YD = {
|
|
|
20397
20407
|
}
|
|
20398
20408
|
}
|
|
20399
20409
|
};
|
|
20400
|
-
function
|
|
20410
|
+
function JD({
|
|
20401
20411
|
context: e
|
|
20402
20412
|
}) {
|
|
20403
20413
|
const {
|
|
@@ -20423,7 +20433,7 @@ function XD({
|
|
|
20423
20433
|
}) => p / c < 0.2 ? " " : f
|
|
20424
20434
|
}
|
|
20425
20435
|
}
|
|
20426
|
-
}), [c]), d = Cd({},
|
|
20436
|
+
}), [c]), d = Cd({}, QD, u, {
|
|
20427
20437
|
series: {
|
|
20428
20438
|
data: s
|
|
20429
20439
|
}
|
|
@@ -20437,7 +20447,7 @@ function XD({
|
|
|
20437
20447
|
}
|
|
20438
20448
|
});
|
|
20439
20449
|
}
|
|
20440
|
-
function
|
|
20450
|
+
function ZD({
|
|
20441
20451
|
context: e
|
|
20442
20452
|
}) {
|
|
20443
20453
|
const {
|
|
@@ -20503,7 +20513,7 @@ function QD({
|
|
|
20503
20513
|
})
|
|
20504
20514
|
});
|
|
20505
20515
|
}
|
|
20506
|
-
class
|
|
20516
|
+
class eP extends tn {
|
|
20507
20517
|
constructor() {
|
|
20508
20518
|
super(...arguments);
|
|
20509
20519
|
he(this, "VERSION", 1);
|
|
@@ -20515,12 +20525,12 @@ class JD extends tn {
|
|
|
20515
20525
|
}));
|
|
20516
20526
|
}
|
|
20517
20527
|
}
|
|
20518
|
-
const
|
|
20528
|
+
const tP = {
|
|
20519
20529
|
displayName: "Sunburst",
|
|
20520
|
-
migrator: new
|
|
20530
|
+
migrator: new eP(),
|
|
20521
20531
|
name: "sunburst",
|
|
20522
|
-
viewRender:
|
|
20523
|
-
configRender:
|
|
20532
|
+
viewRender: JD,
|
|
20533
|
+
configRender: ZD,
|
|
20524
20534
|
createConfig: () => $s
|
|
20525
20535
|
};
|
|
20526
20536
|
var Pn = /* @__PURE__ */ ((e) => (e.string = "string", e.number = "number", e.eloc = "eloc", e.percentage = "percentage", e.custom = "custom", e))(Pn || {});
|
|
@@ -20564,7 +20574,7 @@ function Sn(e, t) {
|
|
|
20564
20574
|
function Hi(e) {
|
|
20565
20575
|
return e instanceof Function;
|
|
20566
20576
|
}
|
|
20567
|
-
function
|
|
20577
|
+
function nP(e, t) {
|
|
20568
20578
|
const n = [], r = (o) => {
|
|
20569
20579
|
o.forEach((i) => {
|
|
20570
20580
|
n.push(i);
|
|
@@ -20598,7 +20608,7 @@ function Ge(e, t, n) {
|
|
|
20598
20608
|
return o;
|
|
20599
20609
|
};
|
|
20600
20610
|
}
|
|
20601
|
-
function
|
|
20611
|
+
function rP(e, t, n, r) {
|
|
20602
20612
|
var o, i;
|
|
20603
20613
|
const s = {
|
|
20604
20614
|
...e._getDefaultColumnDef(),
|
|
@@ -20675,7 +20685,7 @@ function td(e, t, n) {
|
|
|
20675
20685
|
Object.assign(i, a.createHeader == null ? void 0 : a.createHeader(i, e));
|
|
20676
20686
|
}), i;
|
|
20677
20687
|
}
|
|
20678
|
-
const
|
|
20688
|
+
const oP = {
|
|
20679
20689
|
createTable: (e) => ({
|
|
20680
20690
|
getHeaderGroups: Ge(() => [e.getAllColumns(), e.getVisibleLeafColumns(), e.getState().columnPinning.left, e.getState().columnPinning.right], (t, n, r, o) => {
|
|
20681
20691
|
var i, a;
|
|
@@ -20882,7 +20892,7 @@ const Si = {
|
|
|
20882
20892
|
deltaPercentage: null,
|
|
20883
20893
|
isResizingColumn: !1,
|
|
20884
20894
|
columnSizingStart: []
|
|
20885
|
-
}),
|
|
20895
|
+
}), iP = {
|
|
20886
20896
|
getDefaultColumnDef: () => Si,
|
|
20887
20897
|
getInitialState: (e) => ({
|
|
20888
20898
|
columnSizing: {},
|
|
@@ -20982,7 +20992,7 @@ const Si = {
|
|
|
20982
20992
|
upHandler: (g) => {
|
|
20983
20993
|
document.removeEventListener("mousemove", f.moveHandler), document.removeEventListener("mouseup", f.upHandler), d(g.clientX);
|
|
20984
20994
|
}
|
|
20985
|
-
}, p =
|
|
20995
|
+
}, p = aP() ? {
|
|
20986
20996
|
passive: !1
|
|
20987
20997
|
} : !1;
|
|
20988
20998
|
Da(o) || (document.addEventListener("mousemove", f.moveHandler, p), document.addEventListener("mouseup", f.upHandler, p)), t.setColumnSizingInfo((g) => ({
|
|
@@ -21027,7 +21037,7 @@ const Si = {
|
|
|
21027
21037
|
})
|
|
21028
21038
|
};
|
|
21029
21039
|
let wi = null;
|
|
21030
|
-
function
|
|
21040
|
+
function aP() {
|
|
21031
21041
|
if (typeof wi == "boolean")
|
|
21032
21042
|
return wi;
|
|
21033
21043
|
let e = !1;
|
|
@@ -21047,7 +21057,7 @@ function oP() {
|
|
|
21047
21057
|
function Da(e) {
|
|
21048
21058
|
return e.type === "touchstart";
|
|
21049
21059
|
}
|
|
21050
|
-
const
|
|
21060
|
+
const lP = {
|
|
21051
21061
|
getInitialState: (e) => ({
|
|
21052
21062
|
expanded: {},
|
|
21053
21063
|
...e
|
|
@@ -21208,7 +21218,7 @@ const Hn = {
|
|
|
21208
21218
|
function En(e) {
|
|
21209
21219
|
return e == null || e === "";
|
|
21210
21220
|
}
|
|
21211
|
-
const
|
|
21221
|
+
const sP = {
|
|
21212
21222
|
getDefaultColumnDef: () => ({
|
|
21213
21223
|
filterFn: "auto"
|
|
21214
21224
|
}),
|
|
@@ -21336,35 +21346,35 @@ const aP = {
|
|
|
21336
21346
|
function nd(e, t, n) {
|
|
21337
21347
|
return (e && e.autoRemove ? e.autoRemove(t, n) : !1) || typeof t > "u" || typeof t == "string" && !t;
|
|
21338
21348
|
}
|
|
21339
|
-
const
|
|
21349
|
+
const cP = (e, t, n) => n.reduce((r, o) => {
|
|
21340
21350
|
const i = o.getValue(e);
|
|
21341
21351
|
return r + (typeof i == "number" ? i : 0);
|
|
21342
|
-
}, 0),
|
|
21352
|
+
}, 0), uP = (e, t, n) => {
|
|
21343
21353
|
let r;
|
|
21344
21354
|
return n.forEach((o) => {
|
|
21345
21355
|
const i = o.getValue(e);
|
|
21346
21356
|
i != null && (r > i || r === void 0 && i >= i) && (r = i);
|
|
21347
21357
|
}), r;
|
|
21348
|
-
},
|
|
21358
|
+
}, dP = (e, t, n) => {
|
|
21349
21359
|
let r;
|
|
21350
21360
|
return n.forEach((o) => {
|
|
21351
21361
|
const i = o.getValue(e);
|
|
21352
21362
|
i != null && (r < i || r === void 0 && i >= i) && (r = i);
|
|
21353
21363
|
}), r;
|
|
21354
|
-
},
|
|
21364
|
+
}, fP = (e, t, n) => {
|
|
21355
21365
|
let r, o;
|
|
21356
21366
|
return n.forEach((i) => {
|
|
21357
21367
|
const a = i.getValue(e);
|
|
21358
21368
|
a != null && (r === void 0 ? a >= a && (r = o = a) : (r > a && (r = a), o < a && (o = a)));
|
|
21359
21369
|
}), [r, o];
|
|
21360
|
-
},
|
|
21370
|
+
}, pP = (e, t) => {
|
|
21361
21371
|
let n = 0, r = 0;
|
|
21362
21372
|
if (t.forEach((o) => {
|
|
21363
21373
|
let i = o.getValue(e);
|
|
21364
21374
|
i != null && (i = +i) >= i && (++n, r += i);
|
|
21365
21375
|
}), n)
|
|
21366
21376
|
return r / n;
|
|
21367
|
-
},
|
|
21377
|
+
}, gP = (e, t) => {
|
|
21368
21378
|
if (!t.length)
|
|
21369
21379
|
return;
|
|
21370
21380
|
let n = 0, r = 0;
|
|
@@ -21372,17 +21382,17 @@ const lP = (e, t, n) => n.reduce((r, o) => {
|
|
|
21372
21382
|
let i = o.getValue(e);
|
|
21373
21383
|
typeof i == "number" && (n = Math.min(n, i), r = Math.max(r, i));
|
|
21374
21384
|
}), (n + r) / 2;
|
|
21375
|
-
},
|
|
21376
|
-
sum:
|
|
21377
|
-
min:
|
|
21378
|
-
max:
|
|
21379
|
-
extent:
|
|
21380
|
-
mean:
|
|
21381
|
-
median:
|
|
21382
|
-
unique:
|
|
21383
|
-
uniqueCount:
|
|
21384
|
-
count:
|
|
21385
|
-
},
|
|
21385
|
+
}, hP = (e, t) => Array.from(new Set(t.map((n) => n.getValue(e))).values()), mP = (e, t) => new Set(t.map((n) => n.getValue(e))).size, vP = (e, t) => t.length, Pa = {
|
|
21386
|
+
sum: cP,
|
|
21387
|
+
min: uP,
|
|
21388
|
+
max: dP,
|
|
21389
|
+
extent: fP,
|
|
21390
|
+
mean: pP,
|
|
21391
|
+
median: gP,
|
|
21392
|
+
unique: hP,
|
|
21393
|
+
uniqueCount: mP,
|
|
21394
|
+
count: vP
|
|
21395
|
+
}, yP = {
|
|
21386
21396
|
getDefaultColumnDef: () => ({
|
|
21387
21397
|
aggregatedCell: (e) => {
|
|
21388
21398
|
var t, n;
|
|
@@ -21456,13 +21466,13 @@ const lP = (e, t, n) => n.reduce((r, o) => {
|
|
|
21456
21466
|
}
|
|
21457
21467
|
})
|
|
21458
21468
|
};
|
|
21459
|
-
function
|
|
21469
|
+
function bP(e, t, n) {
|
|
21460
21470
|
if (!(t != null && t.length) || !n)
|
|
21461
21471
|
return e;
|
|
21462
21472
|
const r = e.filter((i) => !t.includes(i.id));
|
|
21463
21473
|
return n === "remove" ? r : [...t.map((i) => e.find((a) => a.id === i)).filter(Boolean), ...r];
|
|
21464
21474
|
}
|
|
21465
|
-
const
|
|
21475
|
+
const SP = {
|
|
21466
21476
|
getInitialState: (e) => ({
|
|
21467
21477
|
columnOrder: [],
|
|
21468
21478
|
...e
|
|
@@ -21488,7 +21498,7 @@ const yP = {
|
|
|
21488
21498
|
}
|
|
21489
21499
|
i = [...i, ...s];
|
|
21490
21500
|
}
|
|
21491
|
-
return
|
|
21501
|
+
return bP(i, n, r);
|
|
21492
21502
|
}, {
|
|
21493
21503
|
key: process.env.NODE_ENV === "development" && "getOrderColumnsFn"
|
|
21494
21504
|
})
|
|
@@ -21496,7 +21506,7 @@ const yP = {
|
|
|
21496
21506
|
}, hl = 0, ml = 10, Ia = () => ({
|
|
21497
21507
|
pageIndex: hl,
|
|
21498
21508
|
pageSize: ml
|
|
21499
|
-
}),
|
|
21509
|
+
}), wP = {
|
|
21500
21510
|
getInitialState: (e) => ({
|
|
21501
21511
|
...e,
|
|
21502
21512
|
pagination: {
|
|
@@ -21600,7 +21610,7 @@ const yP = {
|
|
|
21600
21610
|
}, $a = () => ({
|
|
21601
21611
|
left: [],
|
|
21602
21612
|
right: []
|
|
21603
|
-
}),
|
|
21613
|
+
}), CP = {
|
|
21604
21614
|
getInitialState: (e) => ({
|
|
21605
21615
|
columnPinning: $a(),
|
|
21606
21616
|
...e
|
|
@@ -21722,7 +21732,7 @@ const yP = {
|
|
|
21722
21732
|
}
|
|
21723
21733
|
})
|
|
21724
21734
|
})
|
|
21725
|
-
},
|
|
21735
|
+
}, xP = {
|
|
21726
21736
|
getInitialState: (e) => ({
|
|
21727
21737
|
rowSelection: {},
|
|
21728
21738
|
...e
|
|
@@ -21910,10 +21920,10 @@ function rd(e, t, n) {
|
|
|
21910
21920
|
}
|
|
21911
21921
|
return !1;
|
|
21912
21922
|
}
|
|
21913
|
-
const yl = /([0-9]+)/gm,
|
|
21923
|
+
const yl = /([0-9]+)/gm, _P = (e, t, n) => lh(br(e.getValue(n)).toLowerCase(), br(t.getValue(n)).toLowerCase()), EP = (e, t, n) => lh(br(e.getValue(n)), br(t.getValue(n))), OP = (e, t, n) => Vs(br(e.getValue(n)).toLowerCase(), br(t.getValue(n)).toLowerCase()), RP = (e, t, n) => Vs(br(e.getValue(n)), br(t.getValue(n))), TP = (e, t, n) => {
|
|
21914
21924
|
const r = e.getValue(n), o = t.getValue(n);
|
|
21915
21925
|
return r > o ? 1 : r < o ? -1 : 0;
|
|
21916
|
-
},
|
|
21926
|
+
}, MP = (e, t, n) => Vs(e.getValue(n), t.getValue(n));
|
|
21917
21927
|
function Vs(e, t) {
|
|
21918
21928
|
return e === t ? 0 : e > t ? 1 : -1;
|
|
21919
21929
|
}
|
|
@@ -21941,13 +21951,13 @@ function lh(e, t) {
|
|
|
21941
21951
|
return n.length - r.length;
|
|
21942
21952
|
}
|
|
21943
21953
|
const xo = {
|
|
21944
|
-
alphanumeric:
|
|
21945
|
-
alphanumericCaseSensitive:
|
|
21946
|
-
text:
|
|
21947
|
-
textCaseSensitive:
|
|
21948
|
-
datetime:
|
|
21949
|
-
basic:
|
|
21950
|
-
},
|
|
21954
|
+
alphanumeric: _P,
|
|
21955
|
+
alphanumericCaseSensitive: EP,
|
|
21956
|
+
text: OP,
|
|
21957
|
+
textCaseSensitive: RP,
|
|
21958
|
+
datetime: TP,
|
|
21959
|
+
basic: MP
|
|
21960
|
+
}, kP = {
|
|
21951
21961
|
getInitialState: (e) => ({
|
|
21952
21962
|
sorting: [],
|
|
21953
21963
|
...e
|
|
@@ -22049,7 +22059,7 @@ const xo = {
|
|
|
22049
22059
|
getPreSortedRowModel: () => e.getGroupedRowModel(),
|
|
22050
22060
|
getSortedRowModel: () => (!e._getSortedRowModel && e.options.getSortedRowModel && (e._getSortedRowModel = e.options.getSortedRowModel(e)), e.options.manualSorting || !e._getSortedRowModel ? e.getPreSortedRowModel() : e._getSortedRowModel())
|
|
22051
22061
|
})
|
|
22052
|
-
},
|
|
22062
|
+
}, DP = {
|
|
22053
22063
|
getInitialState: (e) => ({
|
|
22054
22064
|
columnVisibility: {},
|
|
22055
22065
|
...e
|
|
@@ -22126,8 +22136,8 @@ const xo = {
|
|
|
22126
22136
|
}
|
|
22127
22137
|
};
|
|
22128
22138
|
}
|
|
22129
|
-
}, od = [
|
|
22130
|
-
function
|
|
22139
|
+
}, od = [oP, DP, SP, CP, sP, kP, yP, lP, wP, xP, iP];
|
|
22140
|
+
function PP(e) {
|
|
22131
22141
|
var t;
|
|
22132
22142
|
(e.debugAll || e.debugTable) && console.info("Creating Table Instance...");
|
|
22133
22143
|
let n = {
|
|
@@ -22211,7 +22221,7 @@ function kP(e) {
|
|
|
22211
22221
|
getAllColumns: Ge(() => [n._getColumnDefs()], (d) => {
|
|
22212
22222
|
const f = function(p, g, h) {
|
|
22213
22223
|
return h === void 0 && (h = 0), p.map((m) => {
|
|
22214
|
-
const b =
|
|
22224
|
+
const b = rP(n, m, h, g), y = m;
|
|
22215
22225
|
return b.columns = y.columns ? f(y.columns, b, h + 1) : [], b;
|
|
22216
22226
|
});
|
|
22217
22227
|
};
|
|
@@ -22256,7 +22266,7 @@ function kP(e) {
|
|
|
22256
22266
|
};
|
|
22257
22267
|
return Object.assign(n, u), n._features.forEach((d) => Object.assign(n, d.createTable == null ? void 0 : d.createTable(n))), n;
|
|
22258
22268
|
}
|
|
22259
|
-
function
|
|
22269
|
+
function IP(e, t, n, r) {
|
|
22260
22270
|
const o = () => {
|
|
22261
22271
|
var a;
|
|
22262
22272
|
return (a = i.getValue()) != null ? a : e.options.renderFallbackValue;
|
|
@@ -22282,7 +22292,7 @@ function DP(e, t, n, r) {
|
|
|
22282
22292
|
Object.assign(i, a.createCell == null ? void 0 : a.createCell(i, n, t, e));
|
|
22283
22293
|
}, {}), i;
|
|
22284
22294
|
}
|
|
22285
|
-
const
|
|
22295
|
+
const $P = (e, t, n, r, o, i) => {
|
|
22286
22296
|
let a = {
|
|
22287
22297
|
id: t,
|
|
22288
22298
|
index: r,
|
|
@@ -22301,8 +22311,8 @@ const PP = (e, t, n, r, o, i) => {
|
|
|
22301
22311
|
return (c = a.getValue(s)) != null ? c : e.options.renderFallbackValue;
|
|
22302
22312
|
},
|
|
22303
22313
|
subRows: i != null ? i : [],
|
|
22304
|
-
getLeafRows: () =>
|
|
22305
|
-
getAllCells: Ge(() => [e.getAllLeafColumns()], (s) => s.map((c) =>
|
|
22314
|
+
getLeafRows: () => nP(a.subRows, (s) => s.subRows),
|
|
22315
|
+
getAllCells: Ge(() => [e.getAllLeafColumns()], (s) => s.map((c) => IP(e, a, c, c.id)), {
|
|
22306
22316
|
key: process.env.NODE_ENV === "development" && "row.getAllCells",
|
|
22307
22317
|
debug: () => {
|
|
22308
22318
|
var s;
|
|
@@ -22323,7 +22333,7 @@ const PP = (e, t, n, r, o, i) => {
|
|
|
22323
22333
|
}
|
|
22324
22334
|
return a;
|
|
22325
22335
|
};
|
|
22326
|
-
function
|
|
22336
|
+
function AP() {
|
|
22327
22337
|
return {
|
|
22328
22338
|
accessor: (e, t) => typeof e == "function" ? {
|
|
22329
22339
|
...t,
|
|
@@ -22336,7 +22346,7 @@ function IP() {
|
|
|
22336
22346
|
group: (e) => e
|
|
22337
22347
|
};
|
|
22338
22348
|
}
|
|
22339
|
-
function
|
|
22349
|
+
function NP() {
|
|
22340
22350
|
return (e) => Ge(() => [e.options.data], (t) => {
|
|
22341
22351
|
const n = {
|
|
22342
22352
|
rows: [],
|
|
@@ -22346,7 +22356,7 @@ function $P() {
|
|
|
22346
22356
|
i === void 0 && (i = 0);
|
|
22347
22357
|
const s = [];
|
|
22348
22358
|
for (let u = 0; u < o.length; u++) {
|
|
22349
|
-
const d =
|
|
22359
|
+
const d = $P(e, e._getRowId(o[u], u, a), o[u], u, i);
|
|
22350
22360
|
if (n.flatRows.push(d), n.rowsById[d.id] = d, s.push(d), e.options.getSubRows) {
|
|
22351
22361
|
var c;
|
|
22352
22362
|
d.originalSubRows = e.options.getSubRows(o[u], u), (c = d.originalSubRows) != null && c.length && (d.subRows = r(d.originalSubRows, i + 1, d));
|
|
@@ -22366,7 +22376,7 @@ function $P() {
|
|
|
22366
22376
|
}
|
|
22367
22377
|
});
|
|
22368
22378
|
}
|
|
22369
|
-
function
|
|
22379
|
+
function LP() {
|
|
22370
22380
|
return (e) => Ge(() => [e.getState().sorting, e.getPreSortedRowModel()], (t, n) => {
|
|
22371
22381
|
if (!n.rows.length || !(t != null && t.length))
|
|
22372
22382
|
return n;
|
|
@@ -22416,23 +22426,23 @@ function AP() {
|
|
|
22416
22426
|
});
|
|
22417
22427
|
}
|
|
22418
22428
|
function sh(e, t) {
|
|
22419
|
-
return e ?
|
|
22429
|
+
return e ? VP(e) ? /* @__PURE__ */ l(e, {
|
|
22420
22430
|
...t
|
|
22421
22431
|
}) : e : null;
|
|
22422
22432
|
}
|
|
22423
|
-
function
|
|
22424
|
-
return
|
|
22433
|
+
function VP(e) {
|
|
22434
|
+
return FP(e) || typeof e == "function" || zP(e);
|
|
22425
22435
|
}
|
|
22426
|
-
function
|
|
22436
|
+
function FP(e) {
|
|
22427
22437
|
return typeof e == "function" && (() => {
|
|
22428
22438
|
const t = Object.getPrototypeOf(e);
|
|
22429
22439
|
return t.prototype && t.prototype.isReactComponent;
|
|
22430
22440
|
})();
|
|
22431
22441
|
}
|
|
22432
|
-
function
|
|
22442
|
+
function zP(e) {
|
|
22433
22443
|
return typeof e == "object" && typeof e.$$typeof == "symbol" && ["react.memo", "react.forward_ref"].includes(e.$$typeof.description);
|
|
22434
22444
|
}
|
|
22435
|
-
function
|
|
22445
|
+
function jP(e) {
|
|
22436
22446
|
const t = {
|
|
22437
22447
|
state: {},
|
|
22438
22448
|
onStateChange: () => {
|
|
@@ -22440,7 +22450,7 @@ function FP(e) {
|
|
|
22440
22450
|
renderFallbackValue: null,
|
|
22441
22451
|
...e
|
|
22442
22452
|
}, [n] = x.useState(() => ({
|
|
22443
|
-
current:
|
|
22453
|
+
current: PP(t)
|
|
22444
22454
|
})), [r, o] = x.useState(() => n.current.initialState);
|
|
22445
22455
|
return n.current.setOptions((i) => ({
|
|
22446
22456
|
...i,
|
|
@@ -22457,7 +22467,7 @@ function FP(e) {
|
|
|
22457
22467
|
function id(e, t, n) {
|
|
22458
22468
|
return Math.min(Math.max(e, t), n);
|
|
22459
22469
|
}
|
|
22460
|
-
class
|
|
22470
|
+
class HP {
|
|
22461
22471
|
constructor(t) {
|
|
22462
22472
|
this.steps = t;
|
|
22463
22473
|
const n = [], r = /* @__PURE__ */ new Set();
|
|
@@ -22479,7 +22489,7 @@ class zP {
|
|
|
22479
22489
|
return id(this.getStepFunctionForValue(t)(t), 0, 100);
|
|
22480
22490
|
}
|
|
22481
22491
|
}
|
|
22482
|
-
const
|
|
22492
|
+
const KP = ({
|
|
22483
22493
|
header: e,
|
|
22484
22494
|
cx: t
|
|
22485
22495
|
}) => /* @__PURE__ */ v(z, {
|
|
@@ -22487,10 +22497,10 @@ const jP = ({
|
|
|
22487
22497
|
"table-head-cell--sortable": e.column.getCanSort()
|
|
22488
22498
|
}),
|
|
22489
22499
|
onClick: e.column.getToggleSortingHandler(),
|
|
22490
|
-
children: [e.isPlaceholder ? null : sh(e.column.columnDef.header, e.getContext()), /* @__PURE__ */ l(
|
|
22500
|
+
children: [e.isPlaceholder ? null : sh(e.column.columnDef.header, e.getContext()), /* @__PURE__ */ l(BP, {
|
|
22491
22501
|
direction: e.column.getIsSorted()
|
|
22492
22502
|
})]
|
|
22493
|
-
}),
|
|
22503
|
+
}), BP = ({
|
|
22494
22504
|
direction: e
|
|
22495
22505
|
}) => {
|
|
22496
22506
|
switch (e) {
|
|
@@ -22508,8 +22518,8 @@ const jP = ({
|
|
|
22508
22518
|
}, Fs = {
|
|
22509
22519
|
id: "builtin:table:click-cell-content",
|
|
22510
22520
|
displayName: "Click Cell Content",
|
|
22511
|
-
nameRender:
|
|
22512
|
-
configRender:
|
|
22521
|
+
nameRender: YP,
|
|
22522
|
+
configRender: qP,
|
|
22513
22523
|
payload: [{
|
|
22514
22524
|
name: "row_index",
|
|
22515
22525
|
description: "Index of the row that the cell belongs to",
|
|
@@ -22523,7 +22533,7 @@ const jP = ({
|
|
|
22523
22533
|
description: "Data of the row that the cell belongs to",
|
|
22524
22534
|
valueType: "object"
|
|
22525
22535
|
}]
|
|
22526
|
-
},
|
|
22536
|
+
}, GP = {
|
|
22527
22537
|
column: ""
|
|
22528
22538
|
};
|
|
22529
22539
|
function ch(e) {
|
|
@@ -22535,19 +22545,19 @@ function ch(e) {
|
|
|
22535
22545
|
value: r.toString()
|
|
22536
22546
|
})) : [];
|
|
22537
22547
|
}
|
|
22538
|
-
function
|
|
22548
|
+
function WP(e) {
|
|
22539
22549
|
return Tl(e) ? [] : Object.keys(e[0]).map((t) => ({
|
|
22540
22550
|
label: t,
|
|
22541
22551
|
value: t
|
|
22542
22552
|
}));
|
|
22543
22553
|
}
|
|
22544
|
-
function
|
|
22545
|
-
const t = ch(e.instance), n =
|
|
22554
|
+
function qP(e) {
|
|
22555
|
+
const t = ch(e.instance), n = WP(e.sampleData), r = t.length > 0 ? t : n, {
|
|
22546
22556
|
value: o,
|
|
22547
22557
|
set: i
|
|
22548
22558
|
} = rt(e.trigger.triggerData, "config"), {
|
|
22549
22559
|
column: a
|
|
22550
|
-
} = jt({}, o,
|
|
22560
|
+
} = jt({}, o, GP), s = (c) => {
|
|
22551
22561
|
isNaN(+c) ? i({
|
|
22552
22562
|
column: c
|
|
22553
22563
|
}) : i({
|
|
@@ -22562,18 +22572,18 @@ function GP(e) {
|
|
|
22562
22572
|
onChange: s
|
|
22563
22573
|
});
|
|
22564
22574
|
}
|
|
22565
|
-
function
|
|
22575
|
+
function UP(e, t) {
|
|
22566
22576
|
return e ? cm(e.column) ? `Click cell of ${t[e.column].label}` : `Click cell of ${e.column}` : "Click cell content (click to config)";
|
|
22567
22577
|
}
|
|
22568
|
-
function
|
|
22578
|
+
function YP(e) {
|
|
22569
22579
|
const t = ch(e.instance), {
|
|
22570
22580
|
value: n
|
|
22571
22581
|
} = rt(e.trigger.triggerData, "config");
|
|
22572
22582
|
return /* @__PURE__ */ l(z, {
|
|
22573
|
-
children:
|
|
22583
|
+
children: UP(n, t)
|
|
22574
22584
|
});
|
|
22575
22585
|
}
|
|
22576
|
-
const
|
|
22586
|
+
const XP = qo((e) => ({
|
|
22577
22587
|
root: {
|
|
22578
22588
|
overflow: "auto",
|
|
22579
22589
|
"& .table-head-cell": {
|
|
@@ -22598,7 +22608,7 @@ const UP = qo((e) => ({
|
|
|
22598
22608
|
position: "sticky",
|
|
22599
22609
|
top: 0
|
|
22600
22610
|
}
|
|
22601
|
-
})),
|
|
22611
|
+
})), QP = qo((e, t) => ({
|
|
22602
22612
|
content: {
|
|
22603
22613
|
display: "flex",
|
|
22604
22614
|
alignItems: "center",
|
|
@@ -22611,24 +22621,24 @@ const UP = qo((e) => ({
|
|
|
22611
22621
|
}
|
|
22612
22622
|
}
|
|
22613
22623
|
}));
|
|
22614
|
-
function
|
|
22624
|
+
function JP(e) {
|
|
22615
22625
|
return e ? No(e).oklch()[0] > 0.7 ? "black" : "white" : "inherit";
|
|
22616
22626
|
}
|
|
22617
|
-
function
|
|
22627
|
+
function ZP(e) {
|
|
22618
22628
|
const t = e.tableCellContext.bgColor;
|
|
22619
22629
|
return {
|
|
22620
22630
|
backgroundColor: t,
|
|
22621
|
-
color:
|
|
22631
|
+
color: JP(t)
|
|
22622
22632
|
};
|
|
22623
22633
|
}
|
|
22624
22634
|
function ua(e) {
|
|
22625
|
-
const t = e.tableCellContext.isClickable(), n =
|
|
22635
|
+
const t = e.tableCellContext.isClickable(), n = QP({
|
|
22626
22636
|
clickable: t
|
|
22627
22637
|
});
|
|
22628
22638
|
return /* @__PURE__ */ l("div", {
|
|
22629
22639
|
className: n.classes.content,
|
|
22630
22640
|
style: {
|
|
22631
|
-
...
|
|
22641
|
+
...ZP(e)
|
|
22632
22642
|
},
|
|
22633
22643
|
children: /* @__PURE__ */ l(z, {
|
|
22634
22644
|
className: "table-cell-text",
|
|
@@ -22639,19 +22649,19 @@ function ua(e) {
|
|
|
22639
22649
|
})
|
|
22640
22650
|
});
|
|
22641
22651
|
}
|
|
22642
|
-
function
|
|
22652
|
+
function eI(e) {
|
|
22643
22653
|
return /* @__PURE__ */ l(ua, {
|
|
22644
22654
|
...e,
|
|
22645
22655
|
children: e.value
|
|
22646
22656
|
});
|
|
22647
22657
|
}
|
|
22648
|
-
function
|
|
22658
|
+
function tI(e) {
|
|
22649
22659
|
return /* @__PURE__ */ l(ua, {
|
|
22650
22660
|
...e,
|
|
22651
22661
|
children: e.value
|
|
22652
22662
|
});
|
|
22653
22663
|
}
|
|
22654
|
-
function
|
|
22664
|
+
function nI(e) {
|
|
22655
22665
|
const t = Zt(e.value).format({
|
|
22656
22666
|
thousandSeparated: !0
|
|
22657
22667
|
});
|
|
@@ -22660,7 +22670,7 @@ function eI(e) {
|
|
|
22660
22670
|
children: t
|
|
22661
22671
|
});
|
|
22662
22672
|
}
|
|
22663
|
-
function
|
|
22673
|
+
function rI(e) {
|
|
22664
22674
|
const t = Zt(e.value).format({
|
|
22665
22675
|
output: "percent",
|
|
22666
22676
|
mantissa: 3
|
|
@@ -22670,43 +22680,43 @@ function tI(e) {
|
|
|
22670
22680
|
children: t
|
|
22671
22681
|
});
|
|
22672
22682
|
}
|
|
22673
|
-
function
|
|
22683
|
+
function oI(e) {
|
|
22674
22684
|
const t = e.value, n = e.func_content;
|
|
22675
22685
|
return n ? new Function(`return ${n}`)()({
|
|
22676
22686
|
value: t
|
|
22677
22687
|
}) : t;
|
|
22678
22688
|
}
|
|
22679
|
-
function
|
|
22689
|
+
function iI(e) {
|
|
22680
22690
|
switch (e.type) {
|
|
22681
22691
|
case Pn.string:
|
|
22682
|
-
return /* @__PURE__ */ l(
|
|
22692
|
+
return /* @__PURE__ */ l(eI, {
|
|
22683
22693
|
...e
|
|
22684
22694
|
});
|
|
22685
22695
|
case Pn.eloc:
|
|
22686
|
-
return /* @__PURE__ */ l(
|
|
22696
|
+
return /* @__PURE__ */ l(tI, {
|
|
22687
22697
|
...e
|
|
22688
22698
|
});
|
|
22689
22699
|
case Pn.number:
|
|
22690
|
-
return /* @__PURE__ */ l(
|
|
22700
|
+
return /* @__PURE__ */ l(nI, {
|
|
22691
22701
|
...e
|
|
22692
22702
|
});
|
|
22693
22703
|
case Pn.percentage:
|
|
22694
|
-
return /* @__PURE__ */ l(
|
|
22704
|
+
return /* @__PURE__ */ l(rI, {
|
|
22695
22705
|
...e
|
|
22696
22706
|
});
|
|
22697
22707
|
case Pn.custom:
|
|
22698
|
-
return /* @__PURE__ */ l(
|
|
22708
|
+
return /* @__PURE__ */ l(oI, {
|
|
22699
22709
|
...e
|
|
22700
22710
|
});
|
|
22701
22711
|
}
|
|
22702
22712
|
}
|
|
22703
|
-
const
|
|
22713
|
+
const aI = (e) => {
|
|
22704
22714
|
const t = mo(e), n = ho(t.triggerManager, Fs.id), {
|
|
22705
22715
|
colorManager: r
|
|
22706
22716
|
} = Qn(Fn);
|
|
22707
|
-
return gr((o) => new
|
|
22717
|
+
return gr((o) => new sI(e.getColIndex, o, n, t, r), [n, t, e.getColIndex]);
|
|
22708
22718
|
};
|
|
22709
|
-
function
|
|
22719
|
+
function lI({
|
|
22710
22720
|
context: e,
|
|
22711
22721
|
instance: t
|
|
22712
22722
|
}) {
|
|
@@ -22723,18 +22733,18 @@ function iI({
|
|
|
22723
22733
|
} = i, {
|
|
22724
22734
|
classes: u,
|
|
22725
22735
|
cx: d
|
|
22726
|
-
} =
|
|
22736
|
+
} = XP(), f = j.useMemo(() => a ? Object.keys(n[0]).map((O) => ({
|
|
22727
22737
|
id: O,
|
|
22728
22738
|
label: O,
|
|
22729
22739
|
value_field: O,
|
|
22730
22740
|
value_type: Pn.string
|
|
22731
|
-
})) : s, [a, s, n]), p =
|
|
22741
|
+
})) : s, [a, s, n]), p = aI({
|
|
22732
22742
|
getColIndex: gr((O) => f.indexOf(O.column.columnDef.meta), [f]),
|
|
22733
22743
|
vizManager: e.vizManager,
|
|
22734
22744
|
instance: t
|
|
22735
22745
|
}), g = de(() => {
|
|
22736
|
-
const O =
|
|
22737
|
-
cell: (F) => /* @__PURE__ */ l(
|
|
22746
|
+
const O = AP(), P = f.map(($) => O.accessor($.value_field, {
|
|
22747
|
+
cell: (F) => /* @__PURE__ */ l(iI, {
|
|
22738
22748
|
tableCellContext: p(F.cell),
|
|
22739
22749
|
value: F.getValue(),
|
|
22740
22750
|
type: $.value_type,
|
|
@@ -22750,15 +22760,15 @@ function iI({
|
|
|
22750
22760
|
header: "#",
|
|
22751
22761
|
size: 10 * (n.length.toString().length + 1)
|
|
22752
22762
|
}), ...P];
|
|
22753
|
-
}, [f, p]), [h, m] = Xe([]), b =
|
|
22763
|
+
}, [f, p]), [h, m] = Xe([]), b = jP({
|
|
22754
22764
|
data: n,
|
|
22755
22765
|
state: {
|
|
22756
22766
|
sorting: h
|
|
22757
22767
|
},
|
|
22758
22768
|
onSortingChange: m,
|
|
22759
22769
|
columns: g,
|
|
22760
|
-
getCoreRowModel:
|
|
22761
|
-
getSortedRowModel:
|
|
22770
|
+
getCoreRowModel: NP(),
|
|
22771
|
+
getSortedRowModel: LP()
|
|
22762
22772
|
}), {
|
|
22763
22773
|
rows: y
|
|
22764
22774
|
} = b.getRowModel(), w = j.useRef(null), S = qm({
|
|
@@ -22792,7 +22802,7 @@ function iI({
|
|
|
22792
22802
|
style: {
|
|
22793
22803
|
width: P.getSize()
|
|
22794
22804
|
},
|
|
22795
|
-
children: /* @__PURE__ */ l(
|
|
22805
|
+
children: /* @__PURE__ */ l(KP, {
|
|
22796
22806
|
header: P,
|
|
22797
22807
|
cx: d
|
|
22798
22808
|
})
|
|
@@ -22823,7 +22833,7 @@ function iI({
|
|
|
22823
22833
|
})
|
|
22824
22834
|
});
|
|
22825
22835
|
}
|
|
22826
|
-
class
|
|
22836
|
+
class sI {
|
|
22827
22837
|
constructor(t, n, r, o, i) {
|
|
22828
22838
|
this.getColIndex = t, this.cell = n, this.triggers = r, this.interactionManager = o, this.colorManager = i;
|
|
22829
22839
|
}
|
|
@@ -22860,7 +22870,7 @@ class aI {
|
|
|
22860
22870
|
return t;
|
|
22861
22871
|
const n = +this.cell.getValue();
|
|
22862
22872
|
if (isFinite(n)) {
|
|
22863
|
-
const r = this.colorManager.decodeInterpolation(t.interpolation), i = new
|
|
22873
|
+
const r = this.colorManager.decodeInterpolation(t.interpolation), i = new HP(t.steps).mapValue(n);
|
|
22864
22874
|
return r == null ? void 0 : r.getColor(i);
|
|
22865
22875
|
}
|
|
22866
22876
|
}
|
|
@@ -22888,14 +22898,14 @@ const uh = qo(() => ({
|
|
|
22888
22898
|
}
|
|
22889
22899
|
}
|
|
22890
22900
|
}
|
|
22891
|
-
})),
|
|
22901
|
+
})), cI = [{
|
|
22892
22902
|
from: 0,
|
|
22893
22903
|
to: 0
|
|
22894
22904
|
}, {
|
|
22895
22905
|
from: 100,
|
|
22896
22906
|
to: 100
|
|
22897
22907
|
}];
|
|
22898
|
-
class
|
|
22908
|
+
class uI {
|
|
22899
22909
|
constructor() {
|
|
22900
22910
|
he(this, "steps", /* @__PURE__ */ new Map());
|
|
22901
22911
|
he(this, "interpolation");
|
|
@@ -22920,7 +22930,7 @@ class sI {
|
|
|
22920
22930
|
})).sort((n, r) => n.to - r.to || n.from - r.from));
|
|
22921
22931
|
}
|
|
22922
22932
|
fromProps(t) {
|
|
22923
|
-
t.steps.length < 2 ? this.setSteps(
|
|
22933
|
+
t.steps.length < 2 ? this.setSteps(cI) : this.setSteps(t.steps), this.interpolation = t.interpolation, this.onChange = t.onChange;
|
|
22924
22934
|
}
|
|
22925
22935
|
changeStep(t, n) {
|
|
22926
22936
|
t == null ? this.steps.delete(n) : this.steps.set(n, t);
|
|
@@ -22929,7 +22939,7 @@ class sI {
|
|
|
22929
22939
|
return this.steps.get(t);
|
|
22930
22940
|
}
|
|
22931
22941
|
}
|
|
22932
|
-
function
|
|
22942
|
+
function dI(e) {
|
|
22933
22943
|
const {
|
|
22934
22944
|
onChange: t,
|
|
22935
22945
|
color: n,
|
|
@@ -23009,7 +23019,7 @@ function cI(e) {
|
|
|
23009
23019
|
})]
|
|
23010
23020
|
});
|
|
23011
23021
|
}
|
|
23012
|
-
const
|
|
23022
|
+
const fI = Q(({
|
|
23013
23023
|
model: e
|
|
23014
23024
|
}) => {
|
|
23015
23025
|
const {
|
|
@@ -23017,21 +23027,21 @@ const uI = Q(({
|
|
|
23017
23027
|
} = uh(), n = um(0, 13, 1).map((r) => 100 / 12 * r).map((r) => [e.interpolation.getColor(r), r]);
|
|
23018
23028
|
return /* @__PURE__ */ l("div", {
|
|
23019
23029
|
className: t.palette,
|
|
23020
|
-
children: n.map(([r, o], i) => /* @__PURE__ */ l(
|
|
23030
|
+
children: n.map(([r, o], i) => /* @__PURE__ */ l(dI, {
|
|
23021
23031
|
index: i,
|
|
23022
23032
|
color: r,
|
|
23023
23033
|
value: e.getStepFromValue(o),
|
|
23024
23034
|
onChange: (a) => e.changeStep(a, o)
|
|
23025
23035
|
}, r))
|
|
23026
23036
|
});
|
|
23027
|
-
}),
|
|
23028
|
-
const n = On(() => new
|
|
23037
|
+
}), pI = Q(function(t) {
|
|
23038
|
+
const n = On(() => new uI(), []);
|
|
23029
23039
|
return Me(() => {
|
|
23030
23040
|
n.fromProps(t);
|
|
23031
|
-
}), n.interpolation == null ? null : /* @__PURE__ */ l(
|
|
23041
|
+
}), n.interpolation == null ? null : /* @__PURE__ */ l(fI, {
|
|
23032
23042
|
model: n
|
|
23033
23043
|
});
|
|
23034
|
-
}),
|
|
23044
|
+
}), gI = (e) => {
|
|
23035
23045
|
const {
|
|
23036
23046
|
value: t,
|
|
23037
23047
|
onChange: n,
|
|
@@ -23079,7 +23089,7 @@ const uI = Q(({
|
|
|
23079
23089
|
value: i.interpolation,
|
|
23080
23090
|
data: f,
|
|
23081
23091
|
onChange: p
|
|
23082
|
-
}), /* @__PURE__ */ l(
|
|
23092
|
+
}), /* @__PURE__ */ l(pI, {
|
|
23083
23093
|
steps: i.steps,
|
|
23084
23094
|
interpolation: s,
|
|
23085
23095
|
onChange: h
|
|
@@ -23097,7 +23107,7 @@ const uI = Q(({
|
|
|
23097
23107
|
})
|
|
23098
23108
|
})]
|
|
23099
23109
|
});
|
|
23100
|
-
},
|
|
23110
|
+
}, hI = ["static", "interpolation", "none"], mI = [{
|
|
23101
23111
|
from: 0,
|
|
23102
23112
|
to: 0
|
|
23103
23113
|
}, {
|
|
@@ -23107,20 +23117,20 @@ const uI = Q(({
|
|
|
23107
23117
|
function dh(e) {
|
|
23108
23118
|
return e ? xd(e) ? e === "none" ? "none" : "static" : "interpolation" : "none";
|
|
23109
23119
|
}
|
|
23110
|
-
function
|
|
23120
|
+
function vI(e, t) {
|
|
23111
23121
|
var n;
|
|
23112
23122
|
return dh(t) === "static" ? t : (n = e.getStaticColors()[0]) == null ? void 0 : n.value;
|
|
23113
23123
|
}
|
|
23114
|
-
function
|
|
23124
|
+
function yI(e, t) {
|
|
23115
23125
|
return yd(t) ? t : {
|
|
23116
|
-
steps:
|
|
23126
|
+
steps: mI,
|
|
23117
23127
|
interpolation: e.encodeColor(e.getColorInterpolations()[0])
|
|
23118
23128
|
};
|
|
23119
23129
|
}
|
|
23120
|
-
const
|
|
23130
|
+
const bI = (e) => {
|
|
23121
23131
|
const {
|
|
23122
23132
|
colorManager: t
|
|
23123
|
-
} = Qn(Fn), [n, r] = Xe(dh(e.value)), [o, i] = Xe(
|
|
23133
|
+
} = Qn(Fn), [n, r] = Xe(dh(e.value)), [o, i] = Xe(vI(t, e.value)), a = Xs(o), [s, c] = Xe(yI(t, e.value)), u = Xs(s);
|
|
23124
23134
|
return /* @__PURE__ */ v(B, {
|
|
23125
23135
|
align: "stretch",
|
|
23126
23136
|
children: [/* @__PURE__ */ l(Ee, {
|
|
@@ -23130,14 +23140,14 @@ const vI = (e) => {
|
|
|
23130
23140
|
var h, m, b;
|
|
23131
23141
|
r(g || "none"), g === "static" ? (h = e.onChange) == null || h.call(e, a.current) : g === "none" || !g ? (m = e.onChange) == null || m.call(e, "none") : (b = e.onChange) == null || b.call(e, u.current);
|
|
23132
23142
|
},
|
|
23133
|
-
data:
|
|
23143
|
+
data: hI
|
|
23134
23144
|
}), n === "static" && /* @__PURE__ */ l(Xn, {
|
|
23135
23145
|
value: o,
|
|
23136
23146
|
onChange: (g) => {
|
|
23137
23147
|
var h;
|
|
23138
23148
|
i(g), (h = e.onChange) == null || h.call(e, g);
|
|
23139
23149
|
}
|
|
23140
|
-
}), n === "interpolation" && /* @__PURE__ */ l(
|
|
23150
|
+
}), n === "interpolation" && /* @__PURE__ */ l(gI, {
|
|
23141
23151
|
colorManager: t,
|
|
23142
23152
|
value: s,
|
|
23143
23153
|
onChange: (g) => {
|
|
@@ -23146,11 +23156,11 @@ const vI = (e) => {
|
|
|
23146
23156
|
}
|
|
23147
23157
|
})]
|
|
23148
23158
|
});
|
|
23149
|
-
},
|
|
23159
|
+
}, SI = Object.values(Pn).map((e) => ({
|
|
23150
23160
|
label: e,
|
|
23151
23161
|
value: e
|
|
23152
23162
|
}));
|
|
23153
|
-
function
|
|
23163
|
+
function wI({
|
|
23154
23164
|
label: e,
|
|
23155
23165
|
value: t,
|
|
23156
23166
|
onChange: n,
|
|
@@ -23158,13 +23168,13 @@ function bI({
|
|
|
23158
23168
|
}) {
|
|
23159
23169
|
return /* @__PURE__ */ l(Ee, {
|
|
23160
23170
|
label: e,
|
|
23161
|
-
data:
|
|
23171
|
+
data: SI,
|
|
23162
23172
|
value: t,
|
|
23163
23173
|
onChange: n,
|
|
23164
23174
|
sx: r
|
|
23165
23175
|
});
|
|
23166
23176
|
}
|
|
23167
|
-
const
|
|
23177
|
+
const CI = Nn(({
|
|
23168
23178
|
value: e,
|
|
23169
23179
|
onChange: t
|
|
23170
23180
|
}, n) => {
|
|
@@ -23237,7 +23247,7 @@ const SI = Nn(({
|
|
|
23237
23247
|
})
|
|
23238
23248
|
})]
|
|
23239
23249
|
});
|
|
23240
|
-
}),
|
|
23250
|
+
}), xI = ({
|
|
23241
23251
|
control: e,
|
|
23242
23252
|
index: t,
|
|
23243
23253
|
watch: n,
|
|
@@ -23286,7 +23296,7 @@ const SI = Nn(({
|
|
|
23286
23296
|
control: e,
|
|
23287
23297
|
render: ({
|
|
23288
23298
|
field: s
|
|
23289
|
-
}) => /* @__PURE__ */ l(
|
|
23299
|
+
}) => /* @__PURE__ */ l(wI, {
|
|
23290
23300
|
label: "Value Type",
|
|
23291
23301
|
sx: {
|
|
23292
23302
|
flex: 1
|
|
@@ -23300,7 +23310,7 @@ const SI = Nn(({
|
|
|
23300
23310
|
field: s
|
|
23301
23311
|
}) => {
|
|
23302
23312
|
var c;
|
|
23303
|
-
return /* @__PURE__ */ l(
|
|
23313
|
+
return /* @__PURE__ */ l(CI, {
|
|
23304
23314
|
value: (c = s.value) != null ? c : Jg,
|
|
23305
23315
|
onChange: (u) => s.onChange(u != null ? u : "")
|
|
23306
23316
|
});
|
|
@@ -23311,7 +23321,7 @@ const SI = Nn(({
|
|
|
23311
23321
|
control: e,
|
|
23312
23322
|
render: ({
|
|
23313
23323
|
field: s
|
|
23314
|
-
}) => /* @__PURE__ */ l(
|
|
23324
|
+
}) => /* @__PURE__ */ l(bI, {
|
|
23315
23325
|
...s
|
|
23316
23326
|
})
|
|
23317
23327
|
}), /* @__PURE__ */ l(Ae, {
|
|
@@ -23328,7 +23338,7 @@ const SI = Nn(({
|
|
|
23328
23338
|
children: "Delete this column"
|
|
23329
23339
|
})]
|
|
23330
23340
|
});
|
|
23331
|
-
},
|
|
23341
|
+
}, _I = ({
|
|
23332
23342
|
control: e,
|
|
23333
23343
|
watch: t,
|
|
23334
23344
|
data: n
|
|
@@ -23400,7 +23410,7 @@ const SI = Nn(({
|
|
|
23400
23410
|
})]
|
|
23401
23411
|
}), r.map((u, d) => /* @__PURE__ */ l(I.Panel, {
|
|
23402
23412
|
value: d.toString(),
|
|
23403
|
-
children: /* @__PURE__ */ l(
|
|
23413
|
+
children: /* @__PURE__ */ l(xI, {
|
|
23404
23414
|
control: e,
|
|
23405
23415
|
watch: t,
|
|
23406
23416
|
index: d,
|
|
@@ -23413,7 +23423,7 @@ const SI = Nn(({
|
|
|
23413
23423
|
})]
|
|
23414
23424
|
});
|
|
23415
23425
|
};
|
|
23416
|
-
function
|
|
23426
|
+
function EI({
|
|
23417
23427
|
control: e,
|
|
23418
23428
|
watch: t,
|
|
23419
23429
|
data: n
|
|
@@ -23509,7 +23519,7 @@ function xI({
|
|
|
23509
23519
|
})]
|
|
23510
23520
|
});
|
|
23511
23521
|
}
|
|
23512
|
-
function
|
|
23522
|
+
function OI({
|
|
23513
23523
|
columns: e,
|
|
23514
23524
|
...t
|
|
23515
23525
|
}) {
|
|
@@ -23524,13 +23534,13 @@ function _I({
|
|
|
23524
23534
|
}))
|
|
23525
23535
|
};
|
|
23526
23536
|
}
|
|
23527
|
-
function
|
|
23537
|
+
function RI({
|
|
23528
23538
|
context: e
|
|
23529
23539
|
}) {
|
|
23530
23540
|
const {
|
|
23531
23541
|
value: t,
|
|
23532
23542
|
set: n
|
|
23533
|
-
} = rt(e.instanceData, "config"), r = e.data, o = de(() => nn({}, t, As), [t]), i = de(() =>
|
|
23543
|
+
} = rt(e.instanceData, "config"), r = e.data, o = de(() => nn({}, t, As), [t]), i = de(() => OI(o), [o]);
|
|
23534
23544
|
Me(() => {
|
|
23535
23545
|
!Dt(o, i) && (console.log("config malformed, resetting to defaults", o, i), n(i));
|
|
23536
23546
|
}, [o, i]);
|
|
@@ -23613,14 +23623,14 @@ function EI({
|
|
|
23613
23623
|
})
|
|
23614
23624
|
}), /* @__PURE__ */ l(I.Panel, {
|
|
23615
23625
|
value: "Style",
|
|
23616
|
-
children: /* @__PURE__ */ l(
|
|
23626
|
+
children: /* @__PURE__ */ l(EI, {
|
|
23617
23627
|
control: a,
|
|
23618
23628
|
watch: c,
|
|
23619
23629
|
data: r
|
|
23620
23630
|
})
|
|
23621
23631
|
}), /* @__PURE__ */ l(I.Panel, {
|
|
23622
23632
|
value: "Columns",
|
|
23623
|
-
children: /* @__PURE__ */ l(
|
|
23633
|
+
children: /* @__PURE__ */ l(_I, {
|
|
23624
23634
|
control: a,
|
|
23625
23635
|
watch: c,
|
|
23626
23636
|
data: r
|
|
@@ -23641,7 +23651,7 @@ function EI({
|
|
|
23641
23651
|
})]
|
|
23642
23652
|
});
|
|
23643
23653
|
}
|
|
23644
|
-
class
|
|
23654
|
+
class TI extends tn {
|
|
23645
23655
|
constructor() {
|
|
23646
23656
|
super(...arguments);
|
|
23647
23657
|
he(this, "VERSION", 2);
|
|
@@ -23673,12 +23683,12 @@ const bl = {
|
|
|
23673
23683
|
};
|
|
23674
23684
|
},
|
|
23675
23685
|
displayName: "Table",
|
|
23676
|
-
migrator: new
|
|
23686
|
+
migrator: new TI(),
|
|
23677
23687
|
name: "table",
|
|
23678
|
-
viewRender:
|
|
23679
|
-
configRender:
|
|
23688
|
+
viewRender: lI,
|
|
23689
|
+
configRender: RI,
|
|
23680
23690
|
triggers: [Fs]
|
|
23681
|
-
},
|
|
23691
|
+
}, MI = () => /* @__PURE__ */ v("svg", {
|
|
23682
23692
|
width: "64",
|
|
23683
23693
|
height: "64",
|
|
23684
23694
|
viewBox: "0 0 64 64",
|
|
@@ -23701,7 +23711,7 @@ function ad(e, t) {
|
|
|
23701
23711
|
if (n)
|
|
23702
23712
|
throw new Error(n);
|
|
23703
23713
|
}
|
|
23704
|
-
async function
|
|
23714
|
+
async function kI(e, t, n, r = {}) {
|
|
23705
23715
|
const o = {
|
|
23706
23716
|
"X-Requested-With": "XMLHttpRequest",
|
|
23707
23717
|
"Content-Type": r.string ? "application/x-www-form-urlencoded" : "application/json",
|
|
@@ -23715,7 +23725,7 @@ async function TI(e, t, n, r = {}) {
|
|
|
23715
23725
|
};
|
|
23716
23726
|
return i.data = r.string ? JSON.stringify(n) : n, Ml(i).then((a) => a.data).catch((a) => Promise.reject(a));
|
|
23717
23727
|
}
|
|
23718
|
-
const
|
|
23728
|
+
const DI = ({ conf: e, data: t }) => async () => {
|
|
23719
23729
|
const { expertSystemURL: n, path: r, goal: o, question: i } = e;
|
|
23720
23730
|
if (!r || !o || !i)
|
|
23721
23731
|
return;
|
|
@@ -23726,7 +23736,7 @@ const MI = ({ conf: e, data: t }) => async () => {
|
|
|
23726
23736
|
};
|
|
23727
23737
|
try {
|
|
23728
23738
|
const s = n.startsWith("http") ? n : window.location.origin;
|
|
23729
|
-
return await
|
|
23739
|
+
return await kI(s, `/expert/v3/devtable/${r}`, a, {});
|
|
23730
23740
|
} catch (s) {
|
|
23731
23741
|
throw ad(s, "response.data.detail"), ad(s, "response.data.error"), console.error(s), s;
|
|
23732
23742
|
}
|
|
@@ -23757,7 +23767,7 @@ const MI = ({ conf: e, data: t }) => async () => {
|
|
|
23757
23767
|
color: "#3D3E45"
|
|
23758
23768
|
}
|
|
23759
23769
|
})
|
|
23760
|
-
}),
|
|
23770
|
+
}), PI = ({
|
|
23761
23771
|
error: e,
|
|
23762
23772
|
width: t,
|
|
23763
23773
|
height: n
|
|
@@ -23773,13 +23783,13 @@ const MI = ({ conf: e, data: t }) => async () => {
|
|
|
23773
23783
|
children: /* @__PURE__ */ v(B, {
|
|
23774
23784
|
align: "center",
|
|
23775
23785
|
spacing: 20,
|
|
23776
|
-
children: [/* @__PURE__ */ l(
|
|
23786
|
+
children: [/* @__PURE__ */ l(MI, {}), /* @__PURE__ */ l(ld, {
|
|
23777
23787
|
message: r
|
|
23778
23788
|
})]
|
|
23779
23789
|
})
|
|
23780
23790
|
});
|
|
23781
23791
|
};
|
|
23782
|
-
function
|
|
23792
|
+
function II({
|
|
23783
23793
|
context: e
|
|
23784
23794
|
}) {
|
|
23785
23795
|
var u;
|
|
@@ -23792,7 +23802,7 @@ function DI({
|
|
|
23792
23802
|
data: a,
|
|
23793
23803
|
error: s,
|
|
23794
23804
|
loading: c
|
|
23795
|
-
} = El(
|
|
23805
|
+
} = El(DI({
|
|
23796
23806
|
conf: n,
|
|
23797
23807
|
data: i
|
|
23798
23808
|
}), {
|
|
@@ -23806,7 +23816,7 @@ function DI({
|
|
|
23806
23816
|
children: /* @__PURE__ */ l(Uo, {
|
|
23807
23817
|
visible: !0
|
|
23808
23818
|
})
|
|
23809
|
-
}) : s ? /* @__PURE__ */ l(
|
|
23819
|
+
}) : s ? /* @__PURE__ */ l(PI, {
|
|
23810
23820
|
error: s,
|
|
23811
23821
|
width: r,
|
|
23812
23822
|
height: o
|
|
@@ -23824,7 +23834,7 @@ function DI({
|
|
|
23824
23834
|
}, f))
|
|
23825
23835
|
});
|
|
23826
23836
|
}
|
|
23827
|
-
function
|
|
23837
|
+
function $I({
|
|
23828
23838
|
context: e
|
|
23829
23839
|
}) {
|
|
23830
23840
|
const {
|
|
@@ -23911,7 +23921,7 @@ function PI({
|
|
|
23911
23921
|
})
|
|
23912
23922
|
});
|
|
23913
23923
|
}
|
|
23914
|
-
class
|
|
23924
|
+
class AI extends tn {
|
|
23915
23925
|
constructor() {
|
|
23916
23926
|
super(...arguments);
|
|
23917
23927
|
he(this, "VERSION", 1);
|
|
@@ -23923,22 +23933,22 @@ class II extends tn {
|
|
|
23923
23933
|
}));
|
|
23924
23934
|
}
|
|
23925
23935
|
}
|
|
23926
|
-
const
|
|
23936
|
+
const NI = {
|
|
23927
23937
|
displayName: "Merico GQM",
|
|
23928
|
-
migrator: new
|
|
23938
|
+
migrator: new AI(),
|
|
23929
23939
|
name: "mericoGQM",
|
|
23930
|
-
viewRender:
|
|
23931
|
-
configRender:
|
|
23940
|
+
viewRender: II,
|
|
23941
|
+
configRender: $I,
|
|
23932
23942
|
createConfig: () => zs
|
|
23933
23943
|
};
|
|
23934
|
-
function
|
|
23944
|
+
function LI(e) {
|
|
23935
23945
|
const t = e.y_axes.some((n) => !!n.name);
|
|
23936
23946
|
return {
|
|
23937
23947
|
bottom: e.x_axis.name ? 40 : 25,
|
|
23938
23948
|
top: t ? 30 : 10
|
|
23939
23949
|
};
|
|
23940
23950
|
}
|
|
23941
|
-
function
|
|
23951
|
+
function VI({ type: e, ...t }, n, r, o) {
|
|
23942
23952
|
if (!e)
|
|
23943
23953
|
return 10;
|
|
23944
23954
|
if (e === "static") {
|
|
@@ -23959,7 +23969,7 @@ function NI({ type: e, ...t }, n, r, o) {
|
|
|
23959
23969
|
}
|
|
23960
23970
|
};
|
|
23961
23971
|
}
|
|
23962
|
-
function
|
|
23972
|
+
function FI(e, t, n, r) {
|
|
23963
23973
|
return e.map((o) => {
|
|
23964
23974
|
const i = o.orientation === "horizontal", a = i ? "yAxis" : "xAxis", s = i ? "insideEndTop" : "end";
|
|
23965
23975
|
return {
|
|
@@ -23985,7 +23995,7 @@ function LI(e, t, n, r) {
|
|
|
23985
23995
|
};
|
|
23986
23996
|
});
|
|
23987
23997
|
}
|
|
23988
|
-
function
|
|
23998
|
+
function zI(e, t) {
|
|
23989
23999
|
return e.map((n) => ({
|
|
23990
24000
|
name: "",
|
|
23991
24001
|
type: "line",
|
|
@@ -24008,7 +24018,7 @@ function VI(e, t) {
|
|
|
24008
24018
|
}
|
|
24009
24019
|
}));
|
|
24010
24020
|
}
|
|
24011
|
-
function
|
|
24021
|
+
function jI({ x_axis: e, scatter: t }, n, r, o) {
|
|
24012
24022
|
return {
|
|
24013
24023
|
label: {
|
|
24014
24024
|
show: !!t.label_position,
|
|
@@ -24021,12 +24031,12 @@ function FI({ x_axis: e, scatter: t }, n, r, o) {
|
|
|
24021
24031
|
yAxisIndex: 0,
|
|
24022
24032
|
datasetIndex: 0,
|
|
24023
24033
|
color: t.color,
|
|
24024
|
-
symbolSize:
|
|
24034
|
+
symbolSize: VI(t.symbolSize, n, e.data_key, r),
|
|
24025
24035
|
encode: { x: e.data_key, y: t.y_data_key }
|
|
24026
24036
|
};
|
|
24027
24037
|
}
|
|
24028
|
-
function
|
|
24029
|
-
return [
|
|
24038
|
+
function HI(e, t, n, r, o, i, a) {
|
|
24039
|
+
return [jI(e, r, a)].concat(FI(e.reference_lines, i, a, r)).concat(zI(e.reference_areas, a));
|
|
24030
24040
|
}
|
|
24031
24041
|
function ph({ enabled: e, func_content: t }) {
|
|
24032
24042
|
return (n, r) => {
|
|
@@ -24039,14 +24049,14 @@ function ph({ enabled: e, func_content: t }) {
|
|
|
24039
24049
|
}
|
|
24040
24050
|
};
|
|
24041
24051
|
}
|
|
24042
|
-
function
|
|
24052
|
+
function KI(e, t) {
|
|
24043
24053
|
const n = e.find((a) => a.axisDim === "x" && a.axisId === "main-x-axis");
|
|
24044
24054
|
if (!n)
|
|
24045
24055
|
return "";
|
|
24046
24056
|
const { name: r, axisValue: o, axisIndex: i } = n;
|
|
24047
24057
|
return t.x_axis.axisLabel.formatter.enabled ? ph(t.x_axis.axisLabel.formatter)(o, i) : o;
|
|
24048
24058
|
}
|
|
24049
|
-
const
|
|
24059
|
+
const BI = (e) => {
|
|
24050
24060
|
try {
|
|
24051
24061
|
return Zt(e).format({
|
|
24052
24062
|
trimMantissa: !0,
|
|
@@ -24056,7 +24066,7 @@ const HI = (e) => {
|
|
|
24056
24066
|
return e;
|
|
24057
24067
|
}
|
|
24058
24068
|
};
|
|
24059
|
-
function
|
|
24069
|
+
function GI(e, t) {
|
|
24060
24070
|
const { scatter: n } = e;
|
|
24061
24071
|
return {
|
|
24062
24072
|
confine: !0,
|
|
@@ -24065,7 +24075,7 @@ function KI(e, t) {
|
|
|
24065
24075
|
const o = (f = t[0]) != null ? f : t.default, i = Array.isArray(r) ? r : [r];
|
|
24066
24076
|
if (i.length === 0)
|
|
24067
24077
|
return "";
|
|
24068
|
-
const a =
|
|
24078
|
+
const a = KI(i, e), s = i.map(
|
|
24069
24079
|
({ value: p }) => `<th style="text-align: right; padding-right: 1em">${p[n.name_data_key]}</th>`
|
|
24070
24080
|
);
|
|
24071
24081
|
s.unshift("<th></th>");
|
|
@@ -24082,7 +24092,7 @@ function KI(e, t) {
|
|
|
24082
24092
|
</tr>`
|
|
24083
24093
|
], u = e.tooltip.metrics.map((p) => `<tr>
|
|
24084
24094
|
<th style="text-align: right;">${p.name}</th>
|
|
24085
|
-
${i.map(({ value: g }) => `<td style="text-align: right; padding: 0 1em;">${
|
|
24095
|
+
${i.map(({ value: g }) => `<td style="text-align: right; padding: 0 1em;">${BI(g[p.data_key])}</td>`).join("")}
|
|
24086
24096
|
</tr>`);
|
|
24087
24097
|
return c.push(...u), `
|
|
24088
24098
|
<table>
|
|
@@ -24093,7 +24103,7 @@ function KI(e, t) {
|
|
|
24093
24103
|
}
|
|
24094
24104
|
};
|
|
24095
24105
|
}
|
|
24096
|
-
function
|
|
24106
|
+
function WI(e, t) {
|
|
24097
24107
|
var o;
|
|
24098
24108
|
const n = t.every((i) => !Number.isNaN(Number(i))), { axisLabel: r } = e.x_axis;
|
|
24099
24109
|
return [
|
|
@@ -24113,7 +24123,7 @@ function BI(e, t) {
|
|
|
24113
24123
|
}
|
|
24114
24124
|
];
|
|
24115
24125
|
}
|
|
24116
|
-
function
|
|
24126
|
+
function qI(e, t) {
|
|
24117
24127
|
return e.y_axes.map(({ nameAlignment: n, ...r }, o) => {
|
|
24118
24128
|
var a;
|
|
24119
24129
|
let i = r.position;
|
|
@@ -24139,7 +24149,7 @@ function GI(e, t) {
|
|
|
24139
24149
|
};
|
|
24140
24150
|
});
|
|
24141
24151
|
}
|
|
24142
|
-
function
|
|
24152
|
+
function UI() {
|
|
24143
24153
|
return {
|
|
24144
24154
|
show: !1,
|
|
24145
24155
|
bottom: 0,
|
|
@@ -24147,7 +24157,7 @@ function WI() {
|
|
|
24147
24157
|
type: "scroll"
|
|
24148
24158
|
};
|
|
24149
24159
|
}
|
|
24150
|
-
const
|
|
24160
|
+
const YI = {
|
|
24151
24161
|
dataZoom: [
|
|
24152
24162
|
{
|
|
24153
24163
|
type: "inside",
|
|
@@ -24186,7 +24196,7 @@ const qI = {
|
|
|
24186
24196
|
containLabel: !0
|
|
24187
24197
|
}
|
|
24188
24198
|
};
|
|
24189
|
-
function
|
|
24199
|
+
function XI(e, t, n) {
|
|
24190
24200
|
const r = n.reduce((u, d) => {
|
|
24191
24201
|
const f = ws(d, t);
|
|
24192
24202
|
return u[d.name] = li(d, f), u;
|
|
@@ -24204,26 +24214,26 @@ function UI(e, t, n) {
|
|
|
24204
24214
|
{
|
|
24205
24215
|
default: ({ value: u }) => u
|
|
24206
24216
|
}
|
|
24207
|
-
), i = Le.uniq(t.map((u) => u[e.x_axis.data_key])), a = i.every((u) => !Number.isNaN(Number(u))), s =
|
|
24208
|
-
xAxis:
|
|
24209
|
-
yAxis:
|
|
24217
|
+
), i = Le.uniq(t.map((u) => u[e.x_axis.data_key])), a = i.every((u) => !Number.isNaN(Number(u))), s = HI(e, i, a, t, o, n, r), c = {
|
|
24218
|
+
xAxis: WI(e, i),
|
|
24219
|
+
yAxis: qI(e, o),
|
|
24210
24220
|
series: s,
|
|
24211
24221
|
dataset: [
|
|
24212
24222
|
{
|
|
24213
24223
|
source: t
|
|
24214
24224
|
}
|
|
24215
24225
|
],
|
|
24216
|
-
tooltip:
|
|
24217
|
-
grid:
|
|
24218
|
-
legend:
|
|
24226
|
+
tooltip: GI(e, o),
|
|
24227
|
+
grid: LI(e),
|
|
24228
|
+
legend: UI()
|
|
24219
24229
|
};
|
|
24220
|
-
return nn({}, c,
|
|
24230
|
+
return nn({}, c, YI);
|
|
24221
24231
|
}
|
|
24222
24232
|
const gh = {
|
|
24223
24233
|
id: "builtin:echarts:click-scatter-chart:series",
|
|
24224
24234
|
displayName: "Click Scatter",
|
|
24225
|
-
nameRender:
|
|
24226
|
-
configRender:
|
|
24235
|
+
nameRender: JI,
|
|
24236
|
+
configRender: QI,
|
|
24227
24237
|
payload: [{
|
|
24228
24238
|
name: "seriesType",
|
|
24229
24239
|
description: "'scatter'",
|
|
@@ -24250,10 +24260,10 @@ const gh = {
|
|
|
24250
24260
|
valueType: "object"
|
|
24251
24261
|
}]
|
|
24252
24262
|
};
|
|
24253
|
-
function
|
|
24263
|
+
function QI(e) {
|
|
24254
24264
|
return /* @__PURE__ */ l(Ne, {});
|
|
24255
24265
|
}
|
|
24256
|
-
function
|
|
24266
|
+
function JI(e) {
|
|
24257
24267
|
return /* @__PURE__ */ l(z, {
|
|
24258
24268
|
children: "Click scatter"
|
|
24259
24269
|
});
|
|
@@ -24303,7 +24313,7 @@ const hh = {
|
|
|
24303
24313
|
};
|
|
24304
24314
|
$t.use([ei, Il, $l, Al, Lr, Vr, Fr, Jn, Pl, Nd]);
|
|
24305
24315
|
$t.registerTransform(Nl.regression);
|
|
24306
|
-
function
|
|
24316
|
+
function ZI({
|
|
24307
24317
|
conf: e,
|
|
24308
24318
|
data: t,
|
|
24309
24319
|
width: n,
|
|
@@ -24321,7 +24331,7 @@ function QI({
|
|
|
24321
24331
|
rowData: p
|
|
24322
24332
|
});
|
|
24323
24333
|
});
|
|
24324
|
-
}, u = j.useMemo(() =>
|
|
24334
|
+
}, u = j.useMemo(() => XI(e, t, i), [e, t]);
|
|
24325
24335
|
return !n || !r ? null : /* @__PURE__ */ l(Zn, {
|
|
24326
24336
|
echarts: $t,
|
|
24327
24337
|
option: u,
|
|
@@ -24334,7 +24344,7 @@ function QI({
|
|
|
24334
24344
|
}
|
|
24335
24345
|
});
|
|
24336
24346
|
}
|
|
24337
|
-
function
|
|
24347
|
+
function e$({
|
|
24338
24348
|
context: e,
|
|
24339
24349
|
instance: t
|
|
24340
24350
|
}) {
|
|
@@ -24372,7 +24382,7 @@ function JI({
|
|
|
24372
24382
|
size: "xs",
|
|
24373
24383
|
pl: "sm",
|
|
24374
24384
|
children: Object.values(g.top).map((m) => m)
|
|
24375
|
-
}), /* @__PURE__ */ l(
|
|
24385
|
+
}), /* @__PURE__ */ l(ZI, {
|
|
24376
24386
|
variables: o,
|
|
24377
24387
|
width: s,
|
|
24378
24388
|
height: h,
|
|
@@ -24388,14 +24398,14 @@ function JI({
|
|
|
24388
24398
|
})]
|
|
24389
24399
|
});
|
|
24390
24400
|
}
|
|
24391
|
-
const
|
|
24401
|
+
const t$ = [{
|
|
24392
24402
|
label: "Horizontal",
|
|
24393
24403
|
value: "horizontal"
|
|
24394
24404
|
}, {
|
|
24395
24405
|
label: "Vertical",
|
|
24396
24406
|
value: "vertical"
|
|
24397
24407
|
}];
|
|
24398
|
-
function
|
|
24408
|
+
function n$({
|
|
24399
24409
|
control: e,
|
|
24400
24410
|
index: t,
|
|
24401
24411
|
remove: n,
|
|
@@ -24462,7 +24472,7 @@ function e$({
|
|
|
24462
24472
|
field: a
|
|
24463
24473
|
}) => /* @__PURE__ */ l(Ee, {
|
|
24464
24474
|
label: "Orientation",
|
|
24465
|
-
data:
|
|
24475
|
+
data: t$,
|
|
24466
24476
|
required: !0,
|
|
24467
24477
|
sx: {
|
|
24468
24478
|
flex: 1
|
|
@@ -24489,7 +24499,7 @@ function e$({
|
|
|
24489
24499
|
})]
|
|
24490
24500
|
}, t);
|
|
24491
24501
|
}
|
|
24492
|
-
function
|
|
24502
|
+
function r$({
|
|
24493
24503
|
control: e,
|
|
24494
24504
|
watch: t,
|
|
24495
24505
|
variables: n
|
|
@@ -24540,7 +24550,7 @@ function t$({
|
|
|
24540
24550
|
})]
|
|
24541
24551
|
}), s.map((d, f) => /* @__PURE__ */ l(I.Panel, {
|
|
24542
24552
|
value: f.toString(),
|
|
24543
|
-
children: /* @__PURE__ */ l(
|
|
24553
|
+
children: /* @__PURE__ */ l(n$, {
|
|
24544
24554
|
control: e,
|
|
24545
24555
|
index: f,
|
|
24546
24556
|
remove: i,
|
|
@@ -24550,7 +24560,7 @@ function t$({
|
|
|
24550
24560
|
}, f))]
|
|
24551
24561
|
});
|
|
24552
24562
|
}
|
|
24553
|
-
const
|
|
24563
|
+
const o$ = ({
|
|
24554
24564
|
value: e,
|
|
24555
24565
|
onChange: t
|
|
24556
24566
|
}) => /* @__PURE__ */ l(Ie, {
|
|
@@ -24583,7 +24593,7 @@ const n$ = ({
|
|
|
24583
24593
|
].join(`
|
|
24584
24594
|
`)
|
|
24585
24595
|
}
|
|
24586
|
-
},
|
|
24596
|
+
}, i$ = ({
|
|
24587
24597
|
value: e,
|
|
24588
24598
|
onChange: t,
|
|
24589
24599
|
data: n
|
|
@@ -24639,7 +24649,7 @@ const n$ = ({
|
|
|
24639
24649
|
label: "Dynamic by a custom function",
|
|
24640
24650
|
labelPosition: "center",
|
|
24641
24651
|
variant: "dashed"
|
|
24642
|
-
}), /* @__PURE__ */ l(
|
|
24652
|
+
}), /* @__PURE__ */ l(o$, {
|
|
24643
24653
|
value: a.func_content,
|
|
24644
24654
|
onChange: d
|
|
24645
24655
|
}), /* @__PURE__ */ v(k, {
|
|
@@ -24666,15 +24676,15 @@ const n$ = ({
|
|
|
24666
24676
|
})
|
|
24667
24677
|
})]
|
|
24668
24678
|
});
|
|
24669
|
-
},
|
|
24679
|
+
}, a$ = ({
|
|
24670
24680
|
value: e,
|
|
24671
24681
|
onChange: t,
|
|
24672
24682
|
data: n
|
|
24673
|
-
}) => e.type !== "dynamic" ? null : /* @__PURE__ */ l(
|
|
24683
|
+
}) => e.type !== "dynamic" ? null : /* @__PURE__ */ l(i$, {
|
|
24674
24684
|
value: e,
|
|
24675
24685
|
onChange: t,
|
|
24676
24686
|
data: n
|
|
24677
|
-
}),
|
|
24687
|
+
}), l$ = ({
|
|
24678
24688
|
value: e,
|
|
24679
24689
|
onChange: t
|
|
24680
24690
|
}) => {
|
|
@@ -24696,13 +24706,13 @@ const n$ = ({
|
|
|
24696
24706
|
onChange: n
|
|
24697
24707
|
})
|
|
24698
24708
|
});
|
|
24699
|
-
},
|
|
24709
|
+
}, s$ = [{
|
|
24700
24710
|
label: "Static",
|
|
24701
24711
|
value: "static"
|
|
24702
24712
|
}, {
|
|
24703
24713
|
label: "Dynamic",
|
|
24704
24714
|
value: "dynamic"
|
|
24705
|
-
}],
|
|
24715
|
+
}], c$ = Nn(({
|
|
24706
24716
|
label: e = "Size",
|
|
24707
24717
|
value: t,
|
|
24708
24718
|
onChange: n,
|
|
@@ -24718,22 +24728,22 @@ const n$ = ({
|
|
|
24718
24728
|
children: [/* @__PURE__ */ l(Ee, {
|
|
24719
24729
|
ref: o,
|
|
24720
24730
|
label: e,
|
|
24721
|
-
data:
|
|
24731
|
+
data: s$,
|
|
24722
24732
|
value: t.type,
|
|
24723
24733
|
onChange: i,
|
|
24724
24734
|
sx: {
|
|
24725
24735
|
flexGrow: 1
|
|
24726
24736
|
}
|
|
24727
|
-
}), /* @__PURE__ */ l(
|
|
24737
|
+
}), /* @__PURE__ */ l(l$, {
|
|
24728
24738
|
value: t,
|
|
24729
24739
|
onChange: n
|
|
24730
|
-
}), /* @__PURE__ */ l(
|
|
24740
|
+
}), /* @__PURE__ */ l(a$, {
|
|
24731
24741
|
value: t,
|
|
24732
24742
|
onChange: n,
|
|
24733
24743
|
data: r
|
|
24734
24744
|
})]
|
|
24735
24745
|
});
|
|
24736
|
-
}),
|
|
24746
|
+
}), u$ = [{
|
|
24737
24747
|
label: "off",
|
|
24738
24748
|
value: ""
|
|
24739
24749
|
}, {
|
|
@@ -24776,7 +24786,7 @@ const n$ = ({
|
|
|
24776
24786
|
label: "insideBottomRight",
|
|
24777
24787
|
value: "insideBottomRight"
|
|
24778
24788
|
}];
|
|
24779
|
-
function
|
|
24789
|
+
function d$({
|
|
24780
24790
|
data: e,
|
|
24781
24791
|
control: t,
|
|
24782
24792
|
watch: n
|
|
@@ -24823,7 +24833,7 @@ function c$({
|
|
|
24823
24833
|
control: t,
|
|
24824
24834
|
render: ({
|
|
24825
24835
|
field: r
|
|
24826
|
-
}) => /* @__PURE__ */ l(
|
|
24836
|
+
}) => /* @__PURE__ */ l(c$, {
|
|
24827
24837
|
label: "Size",
|
|
24828
24838
|
data: e,
|
|
24829
24839
|
...r
|
|
@@ -24856,14 +24866,14 @@ function c$({
|
|
|
24856
24866
|
field: r
|
|
24857
24867
|
}) => /* @__PURE__ */ l(Ee, {
|
|
24858
24868
|
label: "Label Position",
|
|
24859
|
-
data:
|
|
24869
|
+
data: u$,
|
|
24860
24870
|
...r
|
|
24861
24871
|
})
|
|
24862
24872
|
})
|
|
24863
24873
|
})]
|
|
24864
24874
|
});
|
|
24865
24875
|
}
|
|
24866
|
-
function
|
|
24876
|
+
function f$({
|
|
24867
24877
|
control: e,
|
|
24868
24878
|
watch: t
|
|
24869
24879
|
}) {
|
|
@@ -24900,7 +24910,7 @@ function u$({
|
|
|
24900
24910
|
})
|
|
24901
24911
|
});
|
|
24902
24912
|
}
|
|
24903
|
-
const
|
|
24913
|
+
const p$ = ({
|
|
24904
24914
|
control: e,
|
|
24905
24915
|
data: t,
|
|
24906
24916
|
index: n,
|
|
@@ -24954,7 +24964,7 @@ const d$ = ({
|
|
|
24954
24964
|
},
|
|
24955
24965
|
children: "Delete this Metric"
|
|
24956
24966
|
})]
|
|
24957
|
-
}),
|
|
24967
|
+
}), g$ = ({
|
|
24958
24968
|
control: e,
|
|
24959
24969
|
watch: t,
|
|
24960
24970
|
data: n
|
|
@@ -25023,7 +25033,7 @@ const d$ = ({
|
|
|
25023
25033
|
})]
|
|
25024
25034
|
}), s.map((p, g) => /* @__PURE__ */ l(I.Panel, {
|
|
25025
25035
|
value: p.id,
|
|
25026
|
-
children: /* @__PURE__ */ l(
|
|
25036
|
+
children: /* @__PURE__ */ l(p$, {
|
|
25027
25037
|
control: e,
|
|
25028
25038
|
index: g,
|
|
25029
25039
|
remove: i,
|
|
@@ -25033,18 +25043,18 @@ const d$ = ({
|
|
|
25033
25043
|
})]
|
|
25034
25044
|
});
|
|
25035
25045
|
};
|
|
25036
|
-
function
|
|
25046
|
+
function h$({
|
|
25037
25047
|
data: e,
|
|
25038
25048
|
control: t,
|
|
25039
25049
|
watch: n
|
|
25040
25050
|
}) {
|
|
25041
|
-
return /* @__PURE__ */ l(
|
|
25051
|
+
return /* @__PURE__ */ l(g$, {
|
|
25042
25052
|
control: t,
|
|
25043
25053
|
watch: n,
|
|
25044
25054
|
data: e
|
|
25045
25055
|
});
|
|
25046
25056
|
}
|
|
25047
|
-
const
|
|
25057
|
+
const m$ = ({
|
|
25048
25058
|
disabled: e,
|
|
25049
25059
|
value: t,
|
|
25050
25060
|
onChange: n
|
|
@@ -25072,7 +25082,7 @@ const g$ = ({
|
|
|
25072
25082
|
}
|
|
25073
25083
|
}
|
|
25074
25084
|
})]
|
|
25075
|
-
}),
|
|
25085
|
+
}), v$ = ({
|
|
25076
25086
|
value: e,
|
|
25077
25087
|
onChange: t,
|
|
25078
25088
|
data: n
|
|
@@ -25127,7 +25137,7 @@ const g$ = ({
|
|
|
25127
25137
|
label: "Enabled",
|
|
25128
25138
|
checked: a.enabled,
|
|
25129
25139
|
onChange: (g) => c(g.currentTarget.checked)
|
|
25130
|
-
}), /* @__PURE__ */ l(
|
|
25140
|
+
}), /* @__PURE__ */ l(m$, {
|
|
25131
25141
|
value: a.func_content,
|
|
25132
25142
|
onChange: f,
|
|
25133
25143
|
disabled: !a.enabled
|
|
@@ -25156,7 +25166,7 @@ const g$ = ({
|
|
|
25156
25166
|
})]
|
|
25157
25167
|
});
|
|
25158
25168
|
};
|
|
25159
|
-
function
|
|
25169
|
+
function y$({
|
|
25160
25170
|
data: e,
|
|
25161
25171
|
control: t,
|
|
25162
25172
|
watch: n
|
|
@@ -25230,7 +25240,7 @@ function m$({
|
|
|
25230
25240
|
control: t,
|
|
25231
25241
|
render: ({
|
|
25232
25242
|
field: r
|
|
25233
|
-
}) => /* @__PURE__ */ l(
|
|
25243
|
+
}) => /* @__PURE__ */ l(v$, {
|
|
25234
25244
|
data: e,
|
|
25235
25245
|
...r
|
|
25236
25246
|
})
|
|
@@ -25238,7 +25248,7 @@ function m$({
|
|
|
25238
25248
|
})]
|
|
25239
25249
|
});
|
|
25240
25250
|
}
|
|
25241
|
-
const
|
|
25251
|
+
const b$ = [{
|
|
25242
25252
|
label: "left",
|
|
25243
25253
|
value: "left"
|
|
25244
25254
|
}, {
|
|
@@ -25247,14 +25257,14 @@ const v$ = [{
|
|
|
25247
25257
|
}, {
|
|
25248
25258
|
label: "right",
|
|
25249
25259
|
value: "right"
|
|
25250
|
-
}],
|
|
25260
|
+
}], S$ = [{
|
|
25251
25261
|
label: "left",
|
|
25252
25262
|
value: "left"
|
|
25253
25263
|
}, {
|
|
25254
25264
|
label: "right",
|
|
25255
25265
|
value: "right"
|
|
25256
25266
|
}];
|
|
25257
|
-
function
|
|
25267
|
+
function w$({
|
|
25258
25268
|
control: e,
|
|
25259
25269
|
index: t,
|
|
25260
25270
|
remove: n
|
|
@@ -25295,7 +25305,7 @@ function b$({
|
|
|
25295
25305
|
}) => /* @__PURE__ */ l(Ee, {
|
|
25296
25306
|
label: "Align",
|
|
25297
25307
|
required: !0,
|
|
25298
|
-
data:
|
|
25308
|
+
data: b$,
|
|
25299
25309
|
sx: {
|
|
25300
25310
|
flex: 1
|
|
25301
25311
|
},
|
|
@@ -25318,7 +25328,7 @@ function b$({
|
|
|
25318
25328
|
}) => /* @__PURE__ */ l(Ee, {
|
|
25319
25329
|
label: "Position",
|
|
25320
25330
|
required: !0,
|
|
25321
|
-
data:
|
|
25331
|
+
data: S$,
|
|
25322
25332
|
sx: {
|
|
25323
25333
|
flex: 1
|
|
25324
25334
|
},
|
|
@@ -25353,7 +25363,7 @@ function b$({
|
|
|
25353
25363
|
})]
|
|
25354
25364
|
});
|
|
25355
25365
|
}
|
|
25356
|
-
function
|
|
25366
|
+
function C$({
|
|
25357
25367
|
control: e,
|
|
25358
25368
|
watch: t
|
|
25359
25369
|
}) {
|
|
@@ -25398,7 +25408,7 @@ function S$({
|
|
|
25398
25408
|
})]
|
|
25399
25409
|
}), a.map((c, u) => /* @__PURE__ */ l(I.Panel, {
|
|
25400
25410
|
value: u.toString(),
|
|
25401
|
-
children: /* @__PURE__ */ l(
|
|
25411
|
+
children: /* @__PURE__ */ l(w$, {
|
|
25402
25412
|
control: e,
|
|
25403
25413
|
index: u,
|
|
25404
25414
|
remove: o
|
|
@@ -25406,7 +25416,7 @@ function S$({
|
|
|
25406
25416
|
}, u))]
|
|
25407
25417
|
});
|
|
25408
25418
|
}
|
|
25409
|
-
function
|
|
25419
|
+
function x$(e) {
|
|
25410
25420
|
return e || {
|
|
25411
25421
|
templates: {
|
|
25412
25422
|
top: "",
|
|
@@ -25414,18 +25424,18 @@ function w$(e) {
|
|
|
25414
25424
|
}
|
|
25415
25425
|
};
|
|
25416
25426
|
}
|
|
25417
|
-
function
|
|
25427
|
+
function _$({
|
|
25418
25428
|
reference_lines: e = [],
|
|
25419
25429
|
stats: t,
|
|
25420
25430
|
...n
|
|
25421
25431
|
}) {
|
|
25422
25432
|
return {
|
|
25423
25433
|
reference_lines: e,
|
|
25424
|
-
stats:
|
|
25434
|
+
stats: x$(t),
|
|
25425
25435
|
...n
|
|
25426
25436
|
};
|
|
25427
25437
|
}
|
|
25428
|
-
function
|
|
25438
|
+
function E$({
|
|
25429
25439
|
context: e
|
|
25430
25440
|
}) {
|
|
25431
25441
|
const {
|
|
@@ -25433,7 +25443,7 @@ function x$({
|
|
|
25433
25443
|
set: n
|
|
25434
25444
|
} = rt(e.instanceData, "config"), {
|
|
25435
25445
|
variables: r
|
|
25436
|
-
} = e, o = e.data, i = de(() => nn({}, t, js), [t]), a = de(() =>
|
|
25446
|
+
} = e, o = e.data, i = de(() => nn({}, t, js), [t]), a = de(() => _$(i), [i]);
|
|
25437
25447
|
Me(() => {
|
|
25438
25448
|
!Dt(i, a) && (console.log("config malformed, resetting to defaults", i, a), n(a));
|
|
25439
25449
|
}, [i, a]);
|
|
@@ -25510,41 +25520,41 @@ function x$({
|
|
|
25510
25520
|
})]
|
|
25511
25521
|
}), /* @__PURE__ */ l(I.Panel, {
|
|
25512
25522
|
value: "X Axis",
|
|
25513
|
-
children: /* @__PURE__ */ l(
|
|
25523
|
+
children: /* @__PURE__ */ l(y$, {
|
|
25514
25524
|
control: s,
|
|
25515
25525
|
watch: u,
|
|
25516
25526
|
data: o
|
|
25517
25527
|
})
|
|
25518
25528
|
}), /* @__PURE__ */ l(I.Panel, {
|
|
25519
25529
|
value: "Y Axes",
|
|
25520
|
-
children: /* @__PURE__ */ l(
|
|
25530
|
+
children: /* @__PURE__ */ l(C$, {
|
|
25521
25531
|
control: s,
|
|
25522
25532
|
watch: u
|
|
25523
25533
|
})
|
|
25524
25534
|
}), /* @__PURE__ */ l(I.Panel, {
|
|
25525
25535
|
value: "Scatter",
|
|
25526
|
-
children: /* @__PURE__ */ l(
|
|
25536
|
+
children: /* @__PURE__ */ l(d$, {
|
|
25527
25537
|
control: s,
|
|
25528
25538
|
watch: u,
|
|
25529
25539
|
data: o
|
|
25530
25540
|
})
|
|
25531
25541
|
}), /* @__PURE__ */ l(I.Panel, {
|
|
25532
25542
|
value: "Tooltip",
|
|
25533
|
-
children: /* @__PURE__ */ l(
|
|
25543
|
+
children: /* @__PURE__ */ l(h$, {
|
|
25534
25544
|
control: s,
|
|
25535
25545
|
watch: u,
|
|
25536
25546
|
data: o
|
|
25537
25547
|
})
|
|
25538
25548
|
}), /* @__PURE__ */ l(I.Panel, {
|
|
25539
25549
|
value: "Stats",
|
|
25540
|
-
children: /* @__PURE__ */ l(
|
|
25550
|
+
children: /* @__PURE__ */ l(f$, {
|
|
25541
25551
|
control: s,
|
|
25542
25552
|
watch: u,
|
|
25543
25553
|
data: o
|
|
25544
25554
|
})
|
|
25545
25555
|
}), /* @__PURE__ */ l(I.Panel, {
|
|
25546
25556
|
value: "Reference Lines",
|
|
25547
|
-
children: /* @__PURE__ */ l(
|
|
25557
|
+
children: /* @__PURE__ */ l(r$, {
|
|
25548
25558
|
variables: r,
|
|
25549
25559
|
control: s,
|
|
25550
25560
|
watch: u
|
|
@@ -25554,7 +25564,7 @@ function x$({
|
|
|
25554
25564
|
})
|
|
25555
25565
|
});
|
|
25556
25566
|
}
|
|
25557
|
-
class
|
|
25567
|
+
class O$ extends tn {
|
|
25558
25568
|
constructor() {
|
|
25559
25569
|
super(...arguments);
|
|
25560
25570
|
he(this, "VERSION", 2);
|
|
@@ -25580,12 +25590,12 @@ class _$ extends tn {
|
|
|
25580
25590
|
});
|
|
25581
25591
|
}
|
|
25582
25592
|
}
|
|
25583
|
-
const
|
|
25593
|
+
const R$ = {
|
|
25584
25594
|
displayName: "Scatter Chart",
|
|
25585
|
-
migrator: new
|
|
25595
|
+
migrator: new O$(),
|
|
25586
25596
|
name: "scatterChart",
|
|
25587
|
-
viewRender:
|
|
25588
|
-
configRender:
|
|
25597
|
+
viewRender: e$,
|
|
25598
|
+
configRender: E$,
|
|
25589
25599
|
createConfig: () => js,
|
|
25590
25600
|
triggers: [gh]
|
|
25591
25601
|
}, vh = [
|
|
@@ -25599,7 +25609,7 @@ const E$ = {
|
|
|
25599
25609
|
horizontal_align: "left",
|
|
25600
25610
|
font_size: "14px",
|
|
25601
25611
|
font_weight: "normal"
|
|
25602
|
-
},
|
|
25612
|
+
}, T$ = Q(({
|
|
25603
25613
|
context: e
|
|
25604
25614
|
}) => {
|
|
25605
25615
|
const t = lt(), {
|
|
@@ -25625,7 +25635,7 @@ const E$ = {
|
|
|
25625
25635
|
},
|
|
25626
25636
|
children: c
|
|
25627
25637
|
});
|
|
25628
|
-
}),
|
|
25638
|
+
}), M$ = ({
|
|
25629
25639
|
value: e,
|
|
25630
25640
|
onChange: t
|
|
25631
25641
|
}) => /* @__PURE__ */ l(Ie, {
|
|
@@ -25646,7 +25656,7 @@ const E$ = {
|
|
|
25646
25656
|
}
|
|
25647
25657
|
}
|
|
25648
25658
|
})
|
|
25649
|
-
}),
|
|
25659
|
+
}), k$ = Nn(({
|
|
25650
25660
|
value: e,
|
|
25651
25661
|
onChange: t
|
|
25652
25662
|
}, n) => {
|
|
@@ -25679,7 +25689,7 @@ const E$ = {
|
|
|
25679
25689
|
closeOnClickOutside: !1,
|
|
25680
25690
|
withCloseButton: !1,
|
|
25681
25691
|
children: r && /* @__PURE__ */ v(B, {
|
|
25682
|
-
children: [/* @__PURE__ */ l(
|
|
25692
|
+
children: [/* @__PURE__ */ l(M$, {
|
|
25683
25693
|
value: a,
|
|
25684
25694
|
onChange: s
|
|
25685
25695
|
}), /* @__PURE__ */ v(k, {
|
|
@@ -25706,7 +25716,7 @@ const E$ = {
|
|
|
25706
25716
|
})
|
|
25707
25717
|
})]
|
|
25708
25718
|
});
|
|
25709
|
-
}),
|
|
25719
|
+
}), D$ = [{
|
|
25710
25720
|
label: "Left",
|
|
25711
25721
|
value: "left"
|
|
25712
25722
|
}, {
|
|
@@ -25716,7 +25726,7 @@ const E$ = {
|
|
|
25716
25726
|
label: "Right",
|
|
25717
25727
|
value: "right"
|
|
25718
25728
|
}];
|
|
25719
|
-
function
|
|
25729
|
+
function P$({
|
|
25720
25730
|
context: e
|
|
25721
25731
|
}) {
|
|
25722
25732
|
const {
|
|
@@ -25785,7 +25795,7 @@ function k$({
|
|
|
25785
25795
|
control: i,
|
|
25786
25796
|
render: ({
|
|
25787
25797
|
field: p
|
|
25788
|
-
}) => /* @__PURE__ */ l(
|
|
25798
|
+
}) => /* @__PURE__ */ l(k$, {
|
|
25789
25799
|
...p
|
|
25790
25800
|
})
|
|
25791
25801
|
}), /* @__PURE__ */ l(Ae, {
|
|
@@ -25801,7 +25811,7 @@ function k$({
|
|
|
25801
25811
|
field: p
|
|
25802
25812
|
}) => /* @__PURE__ */ l(Ee, {
|
|
25803
25813
|
label: "Horizontal Alignment",
|
|
25804
|
-
data:
|
|
25814
|
+
data: D$,
|
|
25805
25815
|
...p
|
|
25806
25816
|
})
|
|
25807
25817
|
}), /* @__PURE__ */ l(V, {
|
|
@@ -25841,7 +25851,7 @@ function k$({
|
|
|
25841
25851
|
})
|
|
25842
25852
|
});
|
|
25843
25853
|
}
|
|
25844
|
-
class
|
|
25854
|
+
class I$ extends tn {
|
|
25845
25855
|
constructor() {
|
|
25846
25856
|
super(...arguments);
|
|
25847
25857
|
he(this, "VERSION", 1);
|
|
@@ -25853,14 +25863,14 @@ class D$ extends tn {
|
|
|
25853
25863
|
}));
|
|
25854
25864
|
}
|
|
25855
25865
|
}
|
|
25856
|
-
const
|
|
25866
|
+
const $$ = {
|
|
25857
25867
|
displayName: "Text",
|
|
25858
|
-
migrator: new
|
|
25868
|
+
migrator: new I$(),
|
|
25859
25869
|
name: "text",
|
|
25860
|
-
viewRender:
|
|
25861
|
-
configRender:
|
|
25870
|
+
viewRender: T$,
|
|
25871
|
+
configRender: P$,
|
|
25862
25872
|
createConfig: () => Hs
|
|
25863
|
-
},
|
|
25873
|
+
}, A$ = [{
|
|
25864
25874
|
value: "#25262B",
|
|
25865
25875
|
name: "Dark"
|
|
25866
25876
|
}, {
|
|
@@ -25907,12 +25917,12 @@ const P$ = {
|
|
|
25907
25917
|
value: e.value,
|
|
25908
25918
|
type: "single",
|
|
25909
25919
|
category: "basic"
|
|
25910
|
-
})),
|
|
25920
|
+
})), N$ = [mT, vT, ST, bT, yT, wT], yh = () => ({
|
|
25911
25921
|
id: "dashboard",
|
|
25912
25922
|
version: hs,
|
|
25913
25923
|
manifest: {
|
|
25914
|
-
viz: [bl,
|
|
25915
|
-
color: [...
|
|
25924
|
+
viz: [bl, XD, $$, HD, tP, mD, DT, IM, dD, rD, R$, RD, VD, NI, qM],
|
|
25925
|
+
color: [...A$, ...N$]
|
|
25916
25926
|
}
|
|
25917
25927
|
}), Oo = new ET(), Vt = {
|
|
25918
25928
|
pluginManager: zn("pluginManager"),
|
|
@@ -25942,7 +25952,7 @@ try {
|
|
|
25942
25952
|
Oo.install(yh());
|
|
25943
25953
|
} catch {
|
|
25944
25954
|
}
|
|
25945
|
-
function
|
|
25955
|
+
function L$(e, t) {
|
|
25946
25956
|
const {
|
|
25947
25957
|
value: n,
|
|
25948
25958
|
set: r
|
|
@@ -25957,12 +25967,12 @@ function A$(e, t) {
|
|
|
25957
25967
|
commit: a
|
|
25958
25968
|
};
|
|
25959
25969
|
}
|
|
25960
|
-
function
|
|
25970
|
+
function V$(e) {
|
|
25961
25971
|
const {
|
|
25962
25972
|
config: t,
|
|
25963
25973
|
setConfig: n,
|
|
25964
25974
|
commit: r
|
|
25965
|
-
} =
|
|
25975
|
+
} = L$(e, {
|
|
25966
25976
|
urlTemplate: "",
|
|
25967
25977
|
openInNewTab: !0
|
|
25968
25978
|
});
|
|
@@ -25992,7 +26002,7 @@ function N$(e) {
|
|
|
25992
26002
|
})]
|
|
25993
26003
|
});
|
|
25994
26004
|
}
|
|
25995
|
-
async function
|
|
26005
|
+
async function F$(e, t) {
|
|
25996
26006
|
const {
|
|
25997
26007
|
urlTemplate: n,
|
|
25998
26008
|
openInNewTab: r
|
|
@@ -26005,7 +26015,7 @@ async function L$(e, t) {
|
|
|
26005
26015
|
}
|
|
26006
26016
|
}));
|
|
26007
26017
|
}
|
|
26008
|
-
class
|
|
26018
|
+
class z$ extends tn {
|
|
26009
26019
|
constructor() {
|
|
26010
26020
|
super(...arguments);
|
|
26011
26021
|
he(this, "VERSION", 1);
|
|
@@ -26014,12 +26024,12 @@ class V$ extends tn {
|
|
|
26014
26024
|
this.version(1, (n) => n);
|
|
26015
26025
|
}
|
|
26016
26026
|
}
|
|
26017
|
-
const
|
|
26027
|
+
const j$ = {
|
|
26018
26028
|
displayName: "Open Link",
|
|
26019
26029
|
id: "builtin:op:open-link",
|
|
26020
|
-
configRender:
|
|
26021
|
-
run:
|
|
26022
|
-
migrator: new
|
|
26030
|
+
configRender: V$,
|
|
26031
|
+
run: F$,
|
|
26032
|
+
migrator: new z$(),
|
|
26023
26033
|
createDefaultConfig: () => ({
|
|
26024
26034
|
version: 1,
|
|
26025
26035
|
config: {
|
|
@@ -26028,7 +26038,7 @@ const F$ = {
|
|
|
26028
26038
|
}
|
|
26029
26039
|
})
|
|
26030
26040
|
};
|
|
26031
|
-
function
|
|
26041
|
+
function H$(e) {
|
|
26032
26042
|
const {
|
|
26033
26043
|
value: t,
|
|
26034
26044
|
set: n
|
|
@@ -26037,24 +26047,24 @@ function z$(e) {
|
|
|
26037
26047
|
});
|
|
26038
26048
|
return [(t == null ? void 0 : t.template) || "", r];
|
|
26039
26049
|
}
|
|
26040
|
-
function
|
|
26041
|
-
const [t, n] =
|
|
26050
|
+
function K$(e) {
|
|
26051
|
+
const [t, n] = H$(e.operation);
|
|
26042
26052
|
return /* @__PURE__ */ l(se, {
|
|
26043
26053
|
defaultValue: t,
|
|
26044
26054
|
onBlur: (r) => n(r.currentTarget.value),
|
|
26045
26055
|
label: "console.log"
|
|
26046
26056
|
});
|
|
26047
26057
|
}
|
|
26048
|
-
async function
|
|
26058
|
+
async function B$(e, t) {
|
|
26049
26059
|
const n = await t.operationData.getItem("config"), r = Ol(n.template || "");
|
|
26050
26060
|
console.log("run with payload", e), console.log(r(e));
|
|
26051
26061
|
}
|
|
26052
|
-
const
|
|
26062
|
+
const G$ = {
|
|
26053
26063
|
displayName: "console.log (debug)",
|
|
26054
26064
|
id: "builtin:op:debug",
|
|
26055
|
-
configRender:
|
|
26056
|
-
run:
|
|
26057
|
-
},
|
|
26065
|
+
configRender: K$,
|
|
26066
|
+
run: B$
|
|
26067
|
+
}, W$ = Q((e) => {
|
|
26058
26068
|
const t = lt(), {
|
|
26059
26069
|
value: n,
|
|
26060
26070
|
set: r
|
|
@@ -26074,7 +26084,7 @@ const K$ = {
|
|
|
26074
26084
|
data: t.views.options
|
|
26075
26085
|
});
|
|
26076
26086
|
});
|
|
26077
|
-
async function
|
|
26087
|
+
async function q$(e, t) {
|
|
26078
26088
|
const r = (await t.operationData.getItem("config")).viewID;
|
|
26079
26089
|
window.dispatchEvent(new CustomEvent("open-view", {
|
|
26080
26090
|
detail: {
|
|
@@ -26082,16 +26092,16 @@ async function G$(e, t) {
|
|
|
26082
26092
|
}
|
|
26083
26093
|
}));
|
|
26084
26094
|
}
|
|
26085
|
-
const
|
|
26095
|
+
const U$ = {
|
|
26086
26096
|
displayName: "Open View",
|
|
26087
26097
|
id: "builtin:op:open_view",
|
|
26088
|
-
configRender:
|
|
26089
|
-
run:
|
|
26090
|
-
},
|
|
26098
|
+
configRender: W$,
|
|
26099
|
+
run: q$
|
|
26100
|
+
}, Y$ = {
|
|
26091
26101
|
dictionary: {}
|
|
26092
|
-
},
|
|
26102
|
+
}, X$ = Q((e) => {
|
|
26093
26103
|
const t = lt(), {
|
|
26094
|
-
value: n =
|
|
26104
|
+
value: n = Y$,
|
|
26095
26105
|
set: r
|
|
26096
26106
|
} = rt(e.operation.operationData, "config"), {
|
|
26097
26107
|
dictionary: o = {}
|
|
@@ -26148,7 +26158,7 @@ const W$ = {
|
|
|
26148
26158
|
})]
|
|
26149
26159
|
});
|
|
26150
26160
|
});
|
|
26151
|
-
async function
|
|
26161
|
+
async function Q$(e, t) {
|
|
26152
26162
|
const r = (await t.operationData.getItem("config")).dictionary;
|
|
26153
26163
|
window.dispatchEvent(new CustomEvent("set-filter-values", {
|
|
26154
26164
|
detail: {
|
|
@@ -26157,13 +26167,13 @@ async function Y$(e, t) {
|
|
|
26157
26167
|
}
|
|
26158
26168
|
}));
|
|
26159
26169
|
}
|
|
26160
|
-
const
|
|
26170
|
+
const J$ = {
|
|
26161
26171
|
displayName: "Set Filter Values",
|
|
26162
26172
|
id: "builtin:op:set_filter_values",
|
|
26163
|
-
configRender:
|
|
26164
|
-
run:
|
|
26165
|
-
}, da = [
|
|
26166
|
-
class
|
|
26173
|
+
configRender: X$,
|
|
26174
|
+
run: Q$
|
|
26175
|
+
}, da = [G$, j$, U$, J$];
|
|
26176
|
+
class Z$ {
|
|
26167
26177
|
constructor(t, n = da) {
|
|
26168
26178
|
he(this, "attachments");
|
|
26169
26179
|
this.operations = n;
|
|
@@ -26240,7 +26250,7 @@ class Bs {
|
|
|
26240
26250
|
he(this, "operationManager");
|
|
26241
26251
|
he(this, "triggerManager");
|
|
26242
26252
|
he(this, "attachments");
|
|
26243
|
-
this.operationManager = new
|
|
26253
|
+
this.operationManager = new Z$(t, r), this.triggerManager = new PT(t, n);
|
|
26244
26254
|
const o = async (i) => {
|
|
26245
26255
|
const { id: a, triggerRef: s, operationRef: c } = await i.getItem(null);
|
|
26246
26256
|
return {
|
|
@@ -26288,14 +26298,14 @@ class Bs {
|
|
|
26288
26298
|
);
|
|
26289
26299
|
}
|
|
26290
26300
|
}
|
|
26291
|
-
function
|
|
26301
|
+
function eA(e, t) {
|
|
26292
26302
|
const [n, r] = Xe([]);
|
|
26293
26303
|
return Yo(async () => {
|
|
26294
26304
|
const o = await e.getInteractionList();
|
|
26295
26305
|
r(o);
|
|
26296
26306
|
}, [t]), n;
|
|
26297
26307
|
}
|
|
26298
|
-
const
|
|
26308
|
+
const tA = Q(({
|
|
26299
26309
|
item: e,
|
|
26300
26310
|
manager: t,
|
|
26301
26311
|
instance: n,
|
|
@@ -26329,13 +26339,13 @@ const Z$ = Q(({
|
|
|
26329
26339
|
});
|
|
26330
26340
|
}
|
|
26331
26341
|
return null;
|
|
26332
|
-
}),
|
|
26342
|
+
}), nA = (e) => {
|
|
26333
26343
|
const [t, n] = Xe(0), {
|
|
26334
26344
|
interactionManager: r,
|
|
26335
26345
|
instance: o,
|
|
26336
26346
|
sampleData: i,
|
|
26337
26347
|
variables: a
|
|
26338
|
-
} = e, s =
|
|
26348
|
+
} = e, s = eA(r, t), c = async () => {
|
|
26339
26349
|
const p = await r.triggerManager.createOrGetTrigger(gn(), r.triggerManager.getTriggerSchemaList()[0]), g = await r.operationManager.createOrGetOperation(gn(), r.operationManager.getOperationSchemaList()[0]);
|
|
26340
26350
|
await r.addInteraction(p, g), n((h) => h + 1);
|
|
26341
26351
|
};
|
|
@@ -26362,7 +26372,7 @@ const Z$ = Q(({
|
|
|
26362
26372
|
title: "Unavailable",
|
|
26363
26373
|
color: "gray",
|
|
26364
26374
|
children: "This visualization does not have available interactions to choose from"
|
|
26365
|
-
}), s.map((p) => /* @__PURE__ */ l(
|
|
26375
|
+
}), s.map((p) => /* @__PURE__ */ l(tA, {
|
|
26366
26376
|
onRemove: u,
|
|
26367
26377
|
instance: o,
|
|
26368
26378
|
sampleData: i,
|
|
@@ -26378,7 +26388,7 @@ const Z$ = Q(({
|
|
|
26378
26388
|
children: "Add interaction"
|
|
26379
26389
|
})]
|
|
26380
26390
|
});
|
|
26381
|
-
},
|
|
26391
|
+
}, rA = () => {
|
|
26382
26392
|
const {
|
|
26383
26393
|
panel: e,
|
|
26384
26394
|
data: t
|
|
@@ -26400,12 +26410,12 @@ const Z$ = Q(({
|
|
|
26400
26410
|
sampleData: t,
|
|
26401
26411
|
variables: []
|
|
26402
26412
|
};
|
|
26403
|
-
},
|
|
26404
|
-
const e =
|
|
26405
|
-
return /* @__PURE__ */ l(
|
|
26413
|
+
}, oA = () => {
|
|
26414
|
+
const e = rA();
|
|
26415
|
+
return /* @__PURE__ */ l(nA, {
|
|
26406
26416
|
...e
|
|
26407
26417
|
});
|
|
26408
|
-
},
|
|
26418
|
+
}, iA = Q(() => {
|
|
26409
26419
|
const {
|
|
26410
26420
|
panel: e
|
|
26411
26421
|
} = Gt(), [t, n] = j.useState(e.description), r = e.description !== t, o = j.useCallback(() => {
|
|
@@ -26442,7 +26452,7 @@ const Z$ = Q(({
|
|
|
26442
26452
|
}
|
|
26443
26453
|
})]
|
|
26444
26454
|
});
|
|
26445
|
-
}),
|
|
26455
|
+
}), aA = Q(() => {
|
|
26446
26456
|
const {
|
|
26447
26457
|
panel: e
|
|
26448
26458
|
} = Gt(), {
|
|
@@ -26455,7 +26465,7 @@ const Z$ = Q(({
|
|
|
26455
26465
|
onChange: (n) => t.border.setEnabled(n.currentTarget.checked)
|
|
26456
26466
|
})
|
|
26457
26467
|
});
|
|
26458
|
-
}),
|
|
26468
|
+
}), lA = Q(() => {
|
|
26459
26469
|
const {
|
|
26460
26470
|
panel: {
|
|
26461
26471
|
title: e,
|
|
@@ -26510,7 +26520,7 @@ const Z$ = Q(({
|
|
|
26510
26520
|
})]
|
|
26511
26521
|
})
|
|
26512
26522
|
});
|
|
26513
|
-
}),
|
|
26523
|
+
}), sA = Q(() => {
|
|
26514
26524
|
const {
|
|
26515
26525
|
panel: e
|
|
26516
26526
|
} = Gt(), {
|
|
@@ -26547,7 +26557,7 @@ const Z$ = Q(({
|
|
|
26547
26557
|
}
|
|
26548
26558
|
});
|
|
26549
26559
|
});
|
|
26550
|
-
function
|
|
26560
|
+
function cA() {
|
|
26551
26561
|
return /* @__PURE__ */ v(k, {
|
|
26552
26562
|
grow: !0,
|
|
26553
26563
|
noWrap: !0,
|
|
@@ -26566,22 +26576,22 @@ function lA() {
|
|
|
26566
26576
|
label: "Style",
|
|
26567
26577
|
labelPosition: "center",
|
|
26568
26578
|
variant: "dashed"
|
|
26569
|
-
}), /* @__PURE__ */ l(
|
|
26579
|
+
}), /* @__PURE__ */ l(aA, {}), /* @__PURE__ */ l(Ae, {
|
|
26570
26580
|
label: "Info",
|
|
26571
26581
|
labelPosition: "center",
|
|
26572
26582
|
variant: "dashed"
|
|
26573
|
-
}), /* @__PURE__ */ l(
|
|
26583
|
+
}), /* @__PURE__ */ l(sA, {}), /* @__PURE__ */ l(iA, {})]
|
|
26574
26584
|
}), /* @__PURE__ */ l(Ie, {
|
|
26575
26585
|
sx: {
|
|
26576
26586
|
height: "100%",
|
|
26577
26587
|
flexGrow: 1,
|
|
26578
26588
|
maxWidth: "60%"
|
|
26579
26589
|
},
|
|
26580
|
-
children: /* @__PURE__ */ l(
|
|
26590
|
+
children: /* @__PURE__ */ l(lA, {})
|
|
26581
26591
|
})]
|
|
26582
26592
|
});
|
|
26583
26593
|
}
|
|
26584
|
-
const
|
|
26594
|
+
const uA = Q(function() {
|
|
26585
26595
|
const t = lt(), {
|
|
26586
26596
|
panel: {
|
|
26587
26597
|
queryID: n,
|
|
@@ -26616,7 +26626,7 @@ const sA = Q(function() {
|
|
|
26616
26626
|
});
|
|
26617
26627
|
});
|
|
26618
26628
|
var bh = /* @__PURE__ */ ((e) => (e.migrated = "migrated", e.nothingToMigrate = "nothingToMigrate", e.checkFailed = "checkFailed", e.migrationFailed = "migrationFailed", e))(bh || {}), _i = /* @__PURE__ */ ((e) => (e.notStarted = "notStarted", e.inProgress = "inProgress", e.done = "done", e))(_i || {});
|
|
26619
|
-
class
|
|
26629
|
+
class dA {
|
|
26620
26630
|
constructor(t) {
|
|
26621
26631
|
he(this, "vizInstance");
|
|
26622
26632
|
he(this, "operationManager");
|
|
@@ -26668,7 +26678,7 @@ function Sh(e) {
|
|
|
26668
26678
|
return n.createScoped().provideFactory(Vt.instanceScope.vizInstance, () => r.getOrCreateInstance(e)).provideFactory(Vt.instanceScope.interactionManager, (i) => {
|
|
26669
26679
|
const a = i.getRequired(Vt.instanceScope.vizInstance);
|
|
26670
26680
|
return new Bs(a, o, da);
|
|
26671
|
-
}).provideFactory(Vt.instanceScope.operationManager, (i) => i.getRequired(Vt.instanceScope.interactionManager).operationManager).provideFactory(Vt.instanceScope.triggerManager, (i) => i.getRequired(Vt.instanceScope.interactionManager).triggerManager).provideValue(Vt.instanceScope.panelModel, t).provideFactory(Vt.instanceScope.migrator, (i) => new
|
|
26681
|
+
}).provideFactory(Vt.instanceScope.operationManager, (i) => i.getRequired(Vt.instanceScope.interactionManager).operationManager).provideFactory(Vt.instanceScope.triggerManager, (i) => i.getRequired(Vt.instanceScope.interactionManager).triggerManager).provideValue(Vt.instanceScope.panelModel, t).provideFactory(Vt.instanceScope.migrator, (i) => new dA(i));
|
|
26672
26682
|
},
|
|
26673
26683
|
[e.viz.type, e.viz.conf]
|
|
26674
26684
|
);
|
|
@@ -26690,7 +26700,7 @@ function Ch(e, t) {
|
|
|
26690
26700
|
e(r);
|
|
26691
26701
|
}), [e, t.viz.type]), n;
|
|
26692
26702
|
}
|
|
26693
|
-
function
|
|
26703
|
+
function fA({
|
|
26694
26704
|
setVizConf: e,
|
|
26695
26705
|
...t
|
|
26696
26706
|
}) {
|
|
@@ -26710,7 +26720,7 @@ function uA({
|
|
|
26710
26720
|
children: "Checking update..."
|
|
26711
26721
|
});
|
|
26712
26722
|
}
|
|
26713
|
-
function
|
|
26723
|
+
function pA(e) {
|
|
26714
26724
|
const {
|
|
26715
26725
|
panel: t,
|
|
26716
26726
|
setVizConf: n
|
|
@@ -26726,7 +26736,7 @@ function dA(e) {
|
|
|
26726
26736
|
children: "Checking update"
|
|
26727
26737
|
});
|
|
26728
26738
|
}
|
|
26729
|
-
function
|
|
26739
|
+
function gA(e, t) {
|
|
26730
26740
|
const {
|
|
26731
26741
|
vizManager: n
|
|
26732
26742
|
} = Qn(Fn), {
|
|
@@ -26749,7 +26759,7 @@ function fA(e, t) {
|
|
|
26749
26759
|
try {
|
|
26750
26760
|
return n.resolveComponent(r.type), /* @__PURE__ */ l(qi, {
|
|
26751
26761
|
configure: d,
|
|
26752
|
-
children: /* @__PURE__ */ l(
|
|
26762
|
+
children: /* @__PURE__ */ l(pA, {
|
|
26753
26763
|
setVizConf: r.setConf,
|
|
26754
26764
|
panel: u,
|
|
26755
26765
|
data: e,
|
|
@@ -26761,7 +26771,7 @@ function fA(e, t) {
|
|
|
26761
26771
|
return console.info(dt(f, "message")), null;
|
|
26762
26772
|
}
|
|
26763
26773
|
}
|
|
26764
|
-
const
|
|
26774
|
+
const hA = ["richText", "button"], xh = Q(function({
|
|
26765
26775
|
height: t,
|
|
26766
26776
|
viz: n,
|
|
26767
26777
|
data: r,
|
|
@@ -26773,11 +26783,11 @@ const pA = ["richText", "button"], xh = Q(function({
|
|
|
26773
26783
|
ref: s,
|
|
26774
26784
|
width: c,
|
|
26775
26785
|
height: u
|
|
26776
|
-
} = Ao(), d =
|
|
26786
|
+
} = Ao(), d = gA(r, {
|
|
26777
26787
|
w: c,
|
|
26778
26788
|
h: u
|
|
26779
26789
|
});
|
|
26780
|
-
if (
|
|
26790
|
+
if (hA.includes(n.type))
|
|
26781
26791
|
return /* @__PURE__ */ l("div", {
|
|
26782
26792
|
className: "viz-root",
|
|
26783
26793
|
style: {
|
|
@@ -26823,7 +26833,7 @@ const pA = ["richText", "button"], xh = Q(function({
|
|
|
26823
26833
|
children: d
|
|
26824
26834
|
})]
|
|
26825
26835
|
});
|
|
26826
|
-
}),
|
|
26836
|
+
}), mA = Q(() => {
|
|
26827
26837
|
const {
|
|
26828
26838
|
data: e,
|
|
26829
26839
|
loading: t,
|
|
@@ -26838,7 +26848,7 @@ const pA = ["richText", "button"], xh = Q(function({
|
|
|
26838
26848
|
height: "100%"
|
|
26839
26849
|
});
|
|
26840
26850
|
}), Sl = [];
|
|
26841
|
-
function
|
|
26851
|
+
function vA() {
|
|
26842
26852
|
const {
|
|
26843
26853
|
vizManager: e
|
|
26844
26854
|
} = Qn(Fn);
|
|
@@ -26847,14 +26857,14 @@ function hA() {
|
|
|
26847
26857
|
label: t.displayName
|
|
26848
26858
|
})).concat(Sl), [e]);
|
|
26849
26859
|
}
|
|
26850
|
-
function
|
|
26860
|
+
function yA(e, t) {
|
|
26851
26861
|
try {
|
|
26852
26862
|
return e.resolveComponent(t).createConfig();
|
|
26853
26863
|
} catch {
|
|
26854
26864
|
return null;
|
|
26855
26865
|
}
|
|
26856
26866
|
}
|
|
26857
|
-
function
|
|
26867
|
+
function bA() {
|
|
26858
26868
|
const {
|
|
26859
26869
|
data: e,
|
|
26860
26870
|
panel: {
|
|
@@ -26884,7 +26894,7 @@ function vA() {
|
|
|
26884
26894
|
try {
|
|
26885
26895
|
return d.resolveComponent(f.viz.type), /* @__PURE__ */ l(qi, {
|
|
26886
26896
|
configure: g,
|
|
26887
|
-
children: /* @__PURE__ */ l(
|
|
26897
|
+
children: /* @__PURE__ */ l(fA, {
|
|
26888
26898
|
variables: t,
|
|
26889
26899
|
setVizConf: n.setConf,
|
|
26890
26900
|
panel: f,
|
|
@@ -26897,7 +26907,7 @@ function vA() {
|
|
|
26897
26907
|
return console.info(dt(h, "message")), null;
|
|
26898
26908
|
}
|
|
26899
26909
|
}
|
|
26900
|
-
const
|
|
26910
|
+
const SA = Q(() => {
|
|
26901
26911
|
const {
|
|
26902
26912
|
data: e,
|
|
26903
26913
|
panel: {
|
|
@@ -26908,7 +26918,7 @@ const yA = Q(() => {
|
|
|
26908
26918
|
} = Qn(Fn), a = j.useCallback(() => {
|
|
26909
26919
|
if (!o)
|
|
26910
26920
|
return;
|
|
26911
|
-
const g =
|
|
26921
|
+
const g = yA(i, n);
|
|
26912
26922
|
t.setType(n), t.setConf(g || {});
|
|
26913
26923
|
}, [t, o, n]), s = (g) => {
|
|
26914
26924
|
try {
|
|
@@ -26919,11 +26929,11 @@ const yA = Q(() => {
|
|
|
26919
26929
|
}, c = j.useMemo(() => {
|
|
26920
26930
|
var g;
|
|
26921
26931
|
return (g = Sl.find((h) => h.value === n)) == null ? void 0 : g.Panel;
|
|
26922
|
-
}, [n, Sl]), u =
|
|
26932
|
+
}, [n, Sl]), u = bA(), d = c ? Sr(c, {
|
|
26923
26933
|
data: e,
|
|
26924
26934
|
conf: t.conf,
|
|
26925
26935
|
setConf: t.setConf
|
|
26926
|
-
}) : null, f = u || d, p =
|
|
26936
|
+
}) : null, f = u || d, p = vA();
|
|
26927
26937
|
return /* @__PURE__ */ v(Ne, {
|
|
26928
26938
|
children: [/* @__PURE__ */ l(Ee, {
|
|
26929
26939
|
label: "Visualization",
|
|
@@ -26945,7 +26955,7 @@ const yA = Q(() => {
|
|
|
26945
26955
|
})]
|
|
26946
26956
|
});
|
|
26947
26957
|
});
|
|
26948
|
-
function
|
|
26958
|
+
function wA() {
|
|
26949
26959
|
return /* @__PURE__ */ v(k, {
|
|
26950
26960
|
grow: !0,
|
|
26951
26961
|
noWrap: !0,
|
|
@@ -26962,18 +26972,18 @@ function bA() {
|
|
|
26962
26972
|
overflow: "scroll",
|
|
26963
26973
|
height: "100%"
|
|
26964
26974
|
},
|
|
26965
|
-
children: /* @__PURE__ */ l(
|
|
26975
|
+
children: /* @__PURE__ */ l(SA, {})
|
|
26966
26976
|
}), /* @__PURE__ */ l(Ie, {
|
|
26967
26977
|
sx: {
|
|
26968
26978
|
height: "100%",
|
|
26969
26979
|
flexGrow: 1,
|
|
26970
26980
|
maxWidth: "60%"
|
|
26971
26981
|
},
|
|
26972
|
-
children: /* @__PURE__ */ l(
|
|
26982
|
+
children: /* @__PURE__ */ l(mA, {})
|
|
26973
26983
|
})]
|
|
26974
26984
|
});
|
|
26975
26985
|
}
|
|
26976
|
-
const
|
|
26986
|
+
const CA = R.model("VariableModel", {
|
|
26977
26987
|
name: R.string,
|
|
26978
26988
|
size: R.string,
|
|
26979
26989
|
weight: R.string,
|
|
@@ -27008,7 +27018,7 @@ const SA = R.model("VariableModel", {
|
|
|
27008
27018
|
return In(e);
|
|
27009
27019
|
}
|
|
27010
27020
|
}));
|
|
27011
|
-
class
|
|
27021
|
+
class xA {
|
|
27012
27022
|
constructor(t) {
|
|
27013
27023
|
he(this, "origin");
|
|
27014
27024
|
he(this, "copy");
|
|
@@ -27024,7 +27034,7 @@ class wA {
|
|
|
27024
27034
|
Rr(this.copy, t);
|
|
27025
27035
|
}
|
|
27026
27036
|
}
|
|
27027
|
-
const
|
|
27037
|
+
const _A = (e) => new xA(e), Na = {
|
|
27028
27038
|
name: "new_var",
|
|
27029
27039
|
size: "1rem",
|
|
27030
27040
|
weight: "initial",
|
|
@@ -27044,7 +27054,7 @@ const CA = (e) => new wA(e), Na = {
|
|
|
27044
27054
|
average: !1
|
|
27045
27055
|
}
|
|
27046
27056
|
};
|
|
27047
|
-
class
|
|
27057
|
+
class EA {
|
|
27048
27058
|
constructor(t) {
|
|
27049
27059
|
he(this, "panel");
|
|
27050
27060
|
he(this, "selected");
|
|
@@ -27069,11 +27079,11 @@ class xA {
|
|
|
27069
27079
|
}
|
|
27070
27080
|
}
|
|
27071
27081
|
}
|
|
27072
|
-
function
|
|
27082
|
+
function OA() {
|
|
27073
27083
|
const { panel: e } = Gt();
|
|
27074
|
-
return On(() => new
|
|
27084
|
+
return On(() => new EA(e), [e]);
|
|
27075
27085
|
}
|
|
27076
|
-
const
|
|
27086
|
+
const RA = j.forwardRef(function({
|
|
27077
27087
|
value: t,
|
|
27078
27088
|
onChange: n,
|
|
27079
27089
|
data: r,
|
|
@@ -27148,7 +27158,7 @@ const EA = j.forwardRef(function({
|
|
|
27148
27158
|
overflow: "auto",
|
|
27149
27159
|
paddingRight: 10
|
|
27150
27160
|
}
|
|
27151
|
-
})),
|
|
27161
|
+
})), TA = (e) => {
|
|
27152
27162
|
const {
|
|
27153
27163
|
uiModel: t
|
|
27154
27164
|
} = e;
|
|
@@ -27161,7 +27171,7 @@ const EA = j.forwardRef(function({
|
|
|
27161
27171
|
children: n.name
|
|
27162
27172
|
}, n.name))
|
|
27163
27173
|
});
|
|
27164
|
-
},
|
|
27174
|
+
}, MA = Q(TA), kA = ({
|
|
27165
27175
|
variable: e,
|
|
27166
27176
|
data: t
|
|
27167
27177
|
}) => /* @__PURE__ */ l(k, {
|
|
@@ -27174,8 +27184,8 @@ const EA = j.forwardRef(function({
|
|
|
27174
27184
|
p: "md",
|
|
27175
27185
|
children: Kg(e, t)
|
|
27176
27186
|
})
|
|
27177
|
-
}),
|
|
27178
|
-
const t = On(() =>
|
|
27187
|
+
}), DA = Q(kA), PA = (e) => {
|
|
27188
|
+
const t = On(() => _A(e.variable), [e.variable]), {
|
|
27179
27189
|
classes: n
|
|
27180
27190
|
} = _h(), {
|
|
27181
27191
|
data: r
|
|
@@ -27202,18 +27212,18 @@ const EA = j.forwardRef(function({
|
|
|
27202
27212
|
onClick: () => e.uiModel.remove(e.variable),
|
|
27203
27213
|
children: /* @__PURE__ */ l(Wp, {})
|
|
27204
27214
|
})]
|
|
27205
|
-
}), /* @__PURE__ */ l(
|
|
27215
|
+
}), /* @__PURE__ */ l(RA, {
|
|
27206
27216
|
value: In(t.copy),
|
|
27207
27217
|
onChange: t.update,
|
|
27208
27218
|
data: r
|
|
27209
27219
|
})]
|
|
27210
|
-
}), /* @__PURE__ */ l(
|
|
27220
|
+
}), /* @__PURE__ */ l(DA, {
|
|
27211
27221
|
variable: In(t.copy),
|
|
27212
27222
|
data: r
|
|
27213
27223
|
})]
|
|
27214
27224
|
});
|
|
27215
|
-
},
|
|
27216
|
-
const e =
|
|
27225
|
+
}, IA = Q(PA), $A = () => {
|
|
27226
|
+
const e = OA(), {
|
|
27217
27227
|
classes: t
|
|
27218
27228
|
} = _h();
|
|
27219
27229
|
return /* @__PURE__ */ v(k, {
|
|
@@ -27235,12 +27245,12 @@ const EA = j.forwardRef(function({
|
|
|
27235
27245
|
fullWidth: !0,
|
|
27236
27246
|
children: "Add Variable"
|
|
27237
27247
|
})
|
|
27238
|
-
}), /* @__PURE__ */ l(
|
|
27248
|
+
}), /* @__PURE__ */ l(MA, {
|
|
27239
27249
|
uiModel: e
|
|
27240
27250
|
})]
|
|
27241
27251
|
})
|
|
27242
27252
|
}), e.selected ? /* @__PURE__ */ l(Ne, {
|
|
27243
|
-
children: /* @__PURE__ */ l(
|
|
27253
|
+
children: /* @__PURE__ */ l(IA, {
|
|
27244
27254
|
uiModel: e,
|
|
27245
27255
|
variable: e.selected
|
|
27246
27256
|
})
|
|
@@ -27248,7 +27258,7 @@ const EA = j.forwardRef(function({
|
|
|
27248
27258
|
children: "Select or create a new variable on right side"
|
|
27249
27259
|
})]
|
|
27250
27260
|
});
|
|
27251
|
-
},
|
|
27261
|
+
}, AA = Q($A), NA = Q(function({
|
|
27252
27262
|
opened: t,
|
|
27253
27263
|
close: n
|
|
27254
27264
|
}) {
|
|
@@ -27316,30 +27326,30 @@ const EA = j.forwardRef(function({
|
|
|
27316
27326
|
children: [/* @__PURE__ */ l(Uo, {
|
|
27317
27327
|
visible: s,
|
|
27318
27328
|
exitTransitionDuration: 0
|
|
27319
|
-
}), /* @__PURE__ */ l(
|
|
27329
|
+
}), /* @__PURE__ */ l(uA, {})]
|
|
27320
27330
|
}), /* @__PURE__ */ l(I.Panel, {
|
|
27321
27331
|
value: "Panel",
|
|
27322
27332
|
pt: "sm",
|
|
27323
|
-
children: o === "Panel" && /* @__PURE__ */ l(
|
|
27333
|
+
children: o === "Panel" && /* @__PURE__ */ l(cA, {})
|
|
27324
27334
|
}), /* @__PURE__ */ l(I.Panel, {
|
|
27325
27335
|
value: "Variables",
|
|
27326
27336
|
pt: "sm",
|
|
27327
|
-
children: o === "Variables" && /* @__PURE__ */ l(
|
|
27337
|
+
children: o === "Variables" && /* @__PURE__ */ l(AA, {})
|
|
27328
27338
|
}), /* @__PURE__ */ l(I.Panel, {
|
|
27329
27339
|
value: "Visualization",
|
|
27330
27340
|
pt: "sm",
|
|
27331
|
-
children: o === "Visualization" && /* @__PURE__ */ l(
|
|
27341
|
+
children: o === "Visualization" && /* @__PURE__ */ l(wA, {})
|
|
27332
27342
|
}), /* @__PURE__ */ l(I.Panel, {
|
|
27333
27343
|
value: "Interactions",
|
|
27334
27344
|
pt: "sm",
|
|
27335
27345
|
children: /* @__PURE__ */ l(Zr, {
|
|
27336
|
-
children: /* @__PURE__ */ l(
|
|
27346
|
+
children: /* @__PURE__ */ l(oA, {})
|
|
27337
27347
|
})
|
|
27338
27348
|
})]
|
|
27339
27349
|
})
|
|
27340
27350
|
})
|
|
27341
27351
|
});
|
|
27342
|
-
}),
|
|
27352
|
+
}), LA = Q(({
|
|
27343
27353
|
view: e
|
|
27344
27354
|
}) => {
|
|
27345
27355
|
const t = lt(), n = Jh(), [r, o] = j.useState(!1), i = () => o(!0), a = () => o(!1), {
|
|
@@ -27430,13 +27440,13 @@ const EA = j.forwardRef(function({
|
|
|
27430
27440
|
})]
|
|
27431
27441
|
})]
|
|
27432
27442
|
})
|
|
27433
|
-
}), d && /* @__PURE__ */ l(
|
|
27443
|
+
}), d && /* @__PURE__ */ l(NA, {
|
|
27434
27444
|
opened: r,
|
|
27435
27445
|
close: a
|
|
27436
27446
|
})]
|
|
27437
27447
|
});
|
|
27438
27448
|
});
|
|
27439
|
-
const
|
|
27449
|
+
const VA = Q(function() {
|
|
27440
27450
|
const {
|
|
27441
27451
|
panel: t
|
|
27442
27452
|
} = Gt(), {
|
|
@@ -27458,10 +27468,10 @@ const NA = Q(function() {
|
|
|
27458
27468
|
})
|
|
27459
27469
|
}) : null;
|
|
27460
27470
|
});
|
|
27461
|
-
function
|
|
27471
|
+
function FA(e) {
|
|
27462
27472
|
return !["richText", "button"].includes(e);
|
|
27463
27473
|
}
|
|
27464
|
-
const
|
|
27474
|
+
const zA = {
|
|
27465
27475
|
border: "1px solid #e9ecef"
|
|
27466
27476
|
}, sd = {
|
|
27467
27477
|
border: "1px dashed transparent",
|
|
@@ -27470,8 +27480,8 @@ const VA = {
|
|
|
27470
27480
|
borderColor: "#e9ecef"
|
|
27471
27481
|
}
|
|
27472
27482
|
};
|
|
27473
|
-
function
|
|
27474
|
-
return e.style.border.enabled ?
|
|
27483
|
+
function jA(e, t, n) {
|
|
27484
|
+
return e.style.border.enabled ? zA : n || t ? sd : {
|
|
27475
27485
|
border: "1px dashed transparent"
|
|
27476
27486
|
};
|
|
27477
27487
|
}
|
|
@@ -27485,7 +27495,7 @@ const Gs = Q(function({
|
|
|
27485
27495
|
data: i,
|
|
27486
27496
|
state: a,
|
|
27487
27497
|
error: s
|
|
27488
|
-
} = r.getDataStuffByID(t.queryID), c = r.queries.findByID(t.queryID), u =
|
|
27498
|
+
} = r.getDataStuffByID(t.queryID), c = r.queries.findByID(t.queryID), u = FA(t.viz.type), d = u && a === "loading", f = t.title ? "calc(100% - 25px - 5px)" : "100%", p = jA(t, u, o), g = u || o;
|
|
27489
27499
|
return /* @__PURE__ */ l(tv, {
|
|
27490
27500
|
value: {
|
|
27491
27501
|
panel: t,
|
|
@@ -27508,9 +27518,9 @@ const Gs = Q(function({
|
|
|
27508
27518
|
zIndex: 310
|
|
27509
27519
|
},
|
|
27510
27520
|
children: /* @__PURE__ */ l(lg, {})
|
|
27511
|
-
}), g && /* @__PURE__ */ l(
|
|
27521
|
+
}), g && /* @__PURE__ */ l(LA, {
|
|
27512
27522
|
view: n
|
|
27513
|
-
}), /* @__PURE__ */ l(
|
|
27523
|
+
}), /* @__PURE__ */ l(VA, {}), /* @__PURE__ */ l(xh, {
|
|
27514
27524
|
viz: t.viz,
|
|
27515
27525
|
data: i,
|
|
27516
27526
|
loading: d,
|
|
@@ -27585,7 +27595,7 @@ function Rh() {
|
|
|
27585
27595
|
};
|
|
27586
27596
|
}, []);
|
|
27587
27597
|
}
|
|
27588
|
-
const
|
|
27598
|
+
const HA = j.forwardRef(({
|
|
27589
27599
|
handleAxis: e
|
|
27590
27600
|
}, t) => /* @__PURE__ */ l(Te, {
|
|
27591
27601
|
ref: t,
|
|
@@ -27605,7 +27615,7 @@ const zA = j.forwardRef(({
|
|
|
27605
27615
|
children: /* @__PURE__ */ l(xm, {
|
|
27606
27616
|
size: 16
|
|
27607
27617
|
})
|
|
27608
|
-
})),
|
|
27618
|
+
})), KA = j.forwardRef(({
|
|
27609
27619
|
handleAxis: e,
|
|
27610
27620
|
...t
|
|
27611
27621
|
}, n) => /* @__PURE__ */ l(Te, {
|
|
@@ -27627,7 +27637,7 @@ const zA = j.forwardRef(({
|
|
|
27627
27637
|
children: /* @__PURE__ */ l(_m, {
|
|
27628
27638
|
size: 16
|
|
27629
27639
|
})
|
|
27630
|
-
})),
|
|
27640
|
+
})), BA = Fd(Vd), GA = Q(function({
|
|
27631
27641
|
view: t,
|
|
27632
27642
|
className: n = "layout",
|
|
27633
27643
|
rowHeight: r = 10,
|
|
@@ -27643,7 +27653,7 @@ const zA = j.forwardRef(({
|
|
|
27643
27653
|
!d || d.layout.set(u);
|
|
27644
27654
|
});
|
|
27645
27655
|
}, [t]);
|
|
27646
|
-
return /* @__PURE__ */ l(
|
|
27656
|
+
return /* @__PURE__ */ l(BA, {
|
|
27647
27657
|
onLayoutChange: a,
|
|
27648
27658
|
className: `dashboard-layout ${n}`,
|
|
27649
27659
|
rowHeight: r,
|
|
@@ -27651,7 +27661,7 @@ const zA = j.forwardRef(({
|
|
|
27651
27661
|
isDraggable: o,
|
|
27652
27662
|
isResizable: i,
|
|
27653
27663
|
draggableHandle: ".react-grid-customDragHandle",
|
|
27654
|
-
resizeHandle: /* @__PURE__ */ l(
|
|
27664
|
+
resizeHandle: /* @__PURE__ */ l(KA, {}),
|
|
27655
27665
|
children: t.panels.list.map((s, c) => /* @__PURE__ */ v("div", {
|
|
27656
27666
|
"data-grid": {
|
|
27657
27667
|
...s.layout
|
|
@@ -27659,18 +27669,18 @@ const zA = j.forwardRef(({
|
|
|
27659
27669
|
style: {
|
|
27660
27670
|
position: "relative"
|
|
27661
27671
|
},
|
|
27662
|
-
children: [o && /* @__PURE__ */ l(
|
|
27672
|
+
children: [o && /* @__PURE__ */ l(HA, {}), /* @__PURE__ */ l(Gs, {
|
|
27663
27673
|
view: t,
|
|
27664
27674
|
panel: s
|
|
27665
27675
|
})]
|
|
27666
27676
|
}, s.id))
|
|
27667
27677
|
});
|
|
27668
|
-
}),
|
|
27678
|
+
}), WA = Fd(Vd), qA = Q(function({
|
|
27669
27679
|
view: t,
|
|
27670
27680
|
className: n = "layout",
|
|
27671
27681
|
rowHeight: r = 10
|
|
27672
27682
|
}) {
|
|
27673
|
-
return /* @__PURE__ */ l(
|
|
27683
|
+
return /* @__PURE__ */ l(WA, {
|
|
27674
27684
|
className: `dashboard-layout ${n}`,
|
|
27675
27685
|
rowHeight: r,
|
|
27676
27686
|
isDraggable: !1,
|
|
@@ -27684,11 +27694,11 @@ const zA = j.forwardRef(({
|
|
|
27684
27694
|
})
|
|
27685
27695
|
}, o.id))
|
|
27686
27696
|
});
|
|
27687
|
-
}),
|
|
27697
|
+
}), UA = Q(({
|
|
27688
27698
|
children: e
|
|
27689
27699
|
}) => /* @__PURE__ */ l(Ie, {
|
|
27690
27700
|
children: e
|
|
27691
|
-
})),
|
|
27701
|
+
})), YA = Q(({
|
|
27692
27702
|
children: e,
|
|
27693
27703
|
view: t
|
|
27694
27704
|
}) => /* @__PURE__ */ l(en, {
|
|
@@ -27723,23 +27733,23 @@ const zA = j.forwardRef(({
|
|
|
27723
27733
|
withinPortal: !1,
|
|
27724
27734
|
transitionDuration: 0,
|
|
27725
27735
|
children: e
|
|
27726
|
-
})),
|
|
27736
|
+
})), XA = Q(({
|
|
27727
27737
|
view: e,
|
|
27728
27738
|
children: t
|
|
27729
27739
|
}) => {
|
|
27730
27740
|
switch (e.type) {
|
|
27731
27741
|
case Rn.Modal:
|
|
27732
|
-
return /* @__PURE__ */ l(
|
|
27742
|
+
return /* @__PURE__ */ l(YA, {
|
|
27733
27743
|
view: e,
|
|
27734
27744
|
children: t
|
|
27735
27745
|
});
|
|
27736
27746
|
case Rn.Division:
|
|
27737
27747
|
default:
|
|
27738
|
-
return /* @__PURE__ */ l(
|
|
27748
|
+
return /* @__PURE__ */ l(UA, {
|
|
27739
27749
|
children: t
|
|
27740
27750
|
});
|
|
27741
27751
|
}
|
|
27742
|
-
}),
|
|
27752
|
+
}), QA = Q(function({
|
|
27743
27753
|
view: t,
|
|
27744
27754
|
saveDashboardChanges: n,
|
|
27745
27755
|
fullScreenPanelID: r,
|
|
@@ -27769,7 +27779,7 @@ const zA = j.forwardRef(({
|
|
|
27769
27779
|
exitFullScreen: a
|
|
27770
27780
|
}), !s && /* @__PURE__ */ l(Qp, {
|
|
27771
27781
|
saveChanges: n
|
|
27772
|
-
}), /* @__PURE__ */ l(
|
|
27782
|
+
}), /* @__PURE__ */ l(XA, {
|
|
27773
27783
|
view: t,
|
|
27774
27784
|
children: /* @__PURE__ */ v(Ie, {
|
|
27775
27785
|
className: "dashboard-sticky-parent",
|
|
@@ -27778,7 +27788,7 @@ const zA = j.forwardRef(({
|
|
|
27778
27788
|
children: /* @__PURE__ */ l(Hp, {
|
|
27779
27789
|
view: t
|
|
27780
27790
|
})
|
|
27781
|
-
}), !s && /* @__PURE__ */ l(
|
|
27791
|
+
}), !s && /* @__PURE__ */ l(GA, {
|
|
27782
27792
|
view: t,
|
|
27783
27793
|
isDraggable: !0,
|
|
27784
27794
|
isResizable: !0
|
|
@@ -27787,11 +27797,11 @@ const zA = j.forwardRef(({
|
|
|
27787
27797
|
})]
|
|
27788
27798
|
})
|
|
27789
27799
|
});
|
|
27790
|
-
}),
|
|
27800
|
+
}), JA = Q(({
|
|
27791
27801
|
children: e
|
|
27792
27802
|
}) => /* @__PURE__ */ l(Ie, {
|
|
27793
27803
|
children: e
|
|
27794
|
-
})),
|
|
27804
|
+
})), ZA = Q(({
|
|
27795
27805
|
children: e,
|
|
27796
27806
|
view: t
|
|
27797
27807
|
}) => {
|
|
@@ -27820,23 +27830,23 @@ const zA = j.forwardRef(({
|
|
|
27820
27830
|
transitionDuration: 0,
|
|
27821
27831
|
children: e
|
|
27822
27832
|
});
|
|
27823
|
-
}),
|
|
27833
|
+
}), eN = Q(({
|
|
27824
27834
|
view: e,
|
|
27825
27835
|
children: t
|
|
27826
27836
|
}) => {
|
|
27827
27837
|
switch (e.type) {
|
|
27828
27838
|
case Rn.Modal:
|
|
27829
|
-
return /* @__PURE__ */ l(
|
|
27839
|
+
return /* @__PURE__ */ l(ZA, {
|
|
27830
27840
|
view: e,
|
|
27831
27841
|
children: t
|
|
27832
27842
|
});
|
|
27833
27843
|
case Rn.Division:
|
|
27834
27844
|
default:
|
|
27835
|
-
return /* @__PURE__ */ l(
|
|
27845
|
+
return /* @__PURE__ */ l(JA, {
|
|
27836
27846
|
children: t
|
|
27837
27847
|
});
|
|
27838
27848
|
}
|
|
27839
|
-
}),
|
|
27849
|
+
}), tN = Q(function({
|
|
27840
27850
|
view: t,
|
|
27841
27851
|
fullScreenPanelID: n,
|
|
27842
27852
|
setFullScreenPanelID: r
|
|
@@ -27865,7 +27875,7 @@ const zA = j.forwardRef(({
|
|
|
27865
27875
|
exitFullScreen: i
|
|
27866
27876
|
}), !a && /* @__PURE__ */ l(Qp, {
|
|
27867
27877
|
saveChanges: Le.noop
|
|
27868
|
-
}), /* @__PURE__ */ l(
|
|
27878
|
+
}), /* @__PURE__ */ l(eN, {
|
|
27869
27879
|
view: t,
|
|
27870
27880
|
children: /* @__PURE__ */ v(Ie, {
|
|
27871
27881
|
className: "dashboard-sticky-parent",
|
|
@@ -27874,7 +27884,7 @@ const zA = j.forwardRef(({
|
|
|
27874
27884
|
children: /* @__PURE__ */ l(Hp, {
|
|
27875
27885
|
view: t
|
|
27876
27886
|
})
|
|
27877
|
-
}), !a && /* @__PURE__ */ l(
|
|
27887
|
+
}), !a && /* @__PURE__ */ l(qA, {
|
|
27878
27888
|
view: t
|
|
27879
27889
|
})]
|
|
27880
27890
|
})
|
|
@@ -27888,10 +27898,10 @@ const zA = j.forwardRef(({
|
|
|
27888
27898
|
setDefaultValue(t) {
|
|
27889
27899
|
e.default_value = t;
|
|
27890
27900
|
}
|
|
27891
|
-
})),
|
|
27901
|
+
})), nN = () => Th.create({
|
|
27892
27902
|
_name: "checkbox",
|
|
27893
27903
|
default_value: !1
|
|
27894
|
-
}),
|
|
27904
|
+
}), rN = R.model("FilterConfigModel_DateRange", {
|
|
27895
27905
|
_name: R.literal("date-range"),
|
|
27896
27906
|
required: R.boolean,
|
|
27897
27907
|
inputFormat: R.enumeration("DateRangeInputFormat", ["YYYY", "YYYYMM", "YYYYMMDD", "YYYY-MM", "YYYY-MM-DD"]),
|
|
@@ -27910,7 +27920,7 @@ const zA = j.forwardRef(({
|
|
|
27910
27920
|
setDefaultValue(t) {
|
|
27911
27921
|
e.default_value.length = 0, e.default_value.push(...t);
|
|
27912
27922
|
}
|
|
27913
|
-
})), Mh = R.snapshotProcessor(
|
|
27923
|
+
})), Mh = R.snapshotProcessor(rN, {
|
|
27914
27924
|
preProcessor({ default_value: e, ...t }) {
|
|
27915
27925
|
return {
|
|
27916
27926
|
...t,
|
|
@@ -27929,13 +27939,13 @@ const zA = j.forwardRef(({
|
|
|
27929
27939
|
})
|
|
27930
27940
|
};
|
|
27931
27941
|
}
|
|
27932
|
-
}),
|
|
27942
|
+
}), oN = () => Mh.create({
|
|
27933
27943
|
_name: "date-range",
|
|
27934
27944
|
required: !1,
|
|
27935
27945
|
inputFormat: "YYYY-MM-DD",
|
|
27936
27946
|
clearable: !1,
|
|
27937
27947
|
default_value: [null, null]
|
|
27938
|
-
}),
|
|
27948
|
+
}), iN = R.model({
|
|
27939
27949
|
label: R.string,
|
|
27940
27950
|
value: R.string
|
|
27941
27951
|
}).actions((e) => ({
|
|
@@ -27946,7 +27956,7 @@ const zA = j.forwardRef(({
|
|
|
27946
27956
|
e.value = t;
|
|
27947
27957
|
}
|
|
27948
27958
|
})), Ws = R.model("FilterConfigModel_BaseSelect", {
|
|
27949
|
-
static_options: R.optional(R.array(
|
|
27959
|
+
static_options: R.optional(R.array(iN), []),
|
|
27950
27960
|
options_query_id: R.optional(R.string, ""),
|
|
27951
27961
|
select_first_by_default: R.optional(R.boolean, !1)
|
|
27952
27962
|
}).views((e) => ({
|
|
@@ -27985,7 +27995,7 @@ const zA = j.forwardRef(({
|
|
|
27985
27995
|
setMinWidth(t) {
|
|
27986
27996
|
e.min_width = t;
|
|
27987
27997
|
}
|
|
27988
|
-
})),
|
|
27998
|
+
})), aN = () => kh.create({
|
|
27989
27999
|
_name: "multi-select",
|
|
27990
28000
|
default_value: [],
|
|
27991
28001
|
static_options: [],
|
|
@@ -28006,7 +28016,7 @@ const zA = j.forwardRef(({
|
|
|
28006
28016
|
setMinWidth(t) {
|
|
28007
28017
|
e.min_width = t;
|
|
28008
28018
|
}
|
|
28009
|
-
})),
|
|
28019
|
+
})), lN = () => Dh.create({
|
|
28010
28020
|
_name: "tree-select",
|
|
28011
28021
|
default_value: [],
|
|
28012
28022
|
static_options: [],
|
|
@@ -28031,7 +28041,7 @@ const zA = j.forwardRef(({
|
|
|
28031
28041
|
setWidth(t) {
|
|
28032
28042
|
e.width = t;
|
|
28033
28043
|
}
|
|
28034
|
-
})),
|
|
28044
|
+
})), sN = () => Ph.create({
|
|
28035
28045
|
_name: "select",
|
|
28036
28046
|
required: !1,
|
|
28037
28047
|
default_value: "",
|
|
@@ -28079,22 +28089,22 @@ const zA = j.forwardRef(({
|
|
|
28079
28089
|
setType(t) {
|
|
28080
28090
|
switch (t) {
|
|
28081
28091
|
case ln.Select:
|
|
28082
|
-
e.config =
|
|
28092
|
+
e.config = sN();
|
|
28083
28093
|
break;
|
|
28084
28094
|
case ln.MultiSelect:
|
|
28085
|
-
e.config =
|
|
28095
|
+
e.config = aN();
|
|
28086
28096
|
break;
|
|
28087
28097
|
case ln.TreeSelect:
|
|
28088
|
-
e.config =
|
|
28098
|
+
e.config = lN();
|
|
28089
28099
|
break;
|
|
28090
28100
|
case ln.TextInput:
|
|
28091
28101
|
e.config = Yp();
|
|
28092
28102
|
break;
|
|
28093
28103
|
case ln.Checkbox:
|
|
28094
|
-
e.config =
|
|
28104
|
+
e.config = nN();
|
|
28095
28105
|
break;
|
|
28096
28106
|
case ln.DateRange:
|
|
28097
|
-
e.config =
|
|
28107
|
+
e.config = oN();
|
|
28098
28108
|
break;
|
|
28099
28109
|
}
|
|
28100
28110
|
e.type = t;
|
|
@@ -28123,7 +28133,7 @@ function Ih(e, t) {
|
|
|
28123
28133
|
function $h(e) {
|
|
28124
28134
|
return e.reduce((t, n) => (t[n.key] = Ih(n.config.default_value, n.config), t), {});
|
|
28125
28135
|
}
|
|
28126
|
-
function
|
|
28136
|
+
function cN(e, t, n) {
|
|
28127
28137
|
kd(
|
|
28128
28138
|
e,
|
|
28129
28139
|
km(e, (r, o) => {
|
|
@@ -28133,7 +28143,7 @@ function lN(e, t, n) {
|
|
|
28133
28143
|
})
|
|
28134
28144
|
);
|
|
28135
28145
|
}
|
|
28136
|
-
const
|
|
28146
|
+
const uN = R.model("FiltersModel", {
|
|
28137
28147
|
current: R.optional(R.array(cd), []),
|
|
28138
28148
|
values: R.optional(R.frozen(), {}),
|
|
28139
28149
|
previewValues: R.optional(R.frozen(), {})
|
|
@@ -28191,7 +28201,7 @@ const sN = R.model("FiltersModel", {
|
|
|
28191
28201
|
}
|
|
28192
28202
|
})).actions((e) => {
|
|
28193
28203
|
function t() {
|
|
28194
|
-
|
|
28204
|
+
cN(e.current, cd, (n, r) => {
|
|
28195
28205
|
if (n === "setType") {
|
|
28196
28206
|
const o = Ih(r.config.default_value, r.config);
|
|
28197
28207
|
e.setValueByKey(r.key, o), e.updatePreviewValues({
|
|
@@ -28207,13 +28217,13 @@ const sN = R.model("FiltersModel", {
|
|
|
28207
28217
|
}
|
|
28208
28218
|
};
|
|
28209
28219
|
});
|
|
28210
|
-
function
|
|
28220
|
+
function dN(e) {
|
|
28211
28221
|
return {
|
|
28212
28222
|
current: e,
|
|
28213
28223
|
values: $h(e)
|
|
28214
28224
|
};
|
|
28215
28225
|
}
|
|
28216
|
-
const
|
|
28226
|
+
const fN = R.model("QueryModel", {
|
|
28217
28227
|
id: R.string,
|
|
28218
28228
|
name: R.string,
|
|
28219
28229
|
type: R.enumeration("DataSourceType", [pr.Postgresql, pr.MySQL, pr.HTTP]),
|
|
@@ -28265,9 +28275,9 @@ const uN = R.model("QueryModel", {
|
|
|
28265
28275
|
filters: r
|
|
28266
28276
|
};
|
|
28267
28277
|
}
|
|
28268
|
-
})),
|
|
28278
|
+
})), pN = R.compose(
|
|
28269
28279
|
"QueryModel",
|
|
28270
|
-
|
|
28280
|
+
fN,
|
|
28271
28281
|
R.model({
|
|
28272
28282
|
state: R.optional(R.enumeration(["idle", "loading", "error"]), "idle"),
|
|
28273
28283
|
data: R.optional(R.array(R.frozen()), []),
|
|
@@ -28347,8 +28357,8 @@ const uN = R.model("QueryModel", {
|
|
|
28347
28357
|
})
|
|
28348
28358
|
);
|
|
28349
28359
|
}
|
|
28350
|
-
})),
|
|
28351
|
-
current: R.optional(R.array(
|
|
28360
|
+
})), gN = R.model("QueriesModel", {
|
|
28361
|
+
current: R.optional(R.array(pN), [])
|
|
28352
28362
|
}).views((e) => ({
|
|
28353
28363
|
get firstID() {
|
|
28354
28364
|
if (e.current.length !== 0)
|
|
@@ -28407,7 +28417,7 @@ const uN = R.model("QueryModel", {
|
|
|
28407
28417
|
const n = e.current.find((r) => r.id === t);
|
|
28408
28418
|
n && ($m(n), e.current.remove(n));
|
|
28409
28419
|
}
|
|
28410
|
-
})),
|
|
28420
|
+
})), hN = R.model("SQLSnippetModel", {
|
|
28411
28421
|
key: R.string,
|
|
28412
28422
|
value: R.string
|
|
28413
28423
|
}).views((e) => ({
|
|
@@ -28428,8 +28438,8 @@ const uN = R.model("QueryModel", {
|
|
|
28428
28438
|
setValue(t) {
|
|
28429
28439
|
e.value = t;
|
|
28430
28440
|
}
|
|
28431
|
-
})),
|
|
28432
|
-
current: R.optional(R.array(
|
|
28441
|
+
})), mN = R.model("SQLSnippetsModel", {
|
|
28442
|
+
current: R.optional(R.array(hN), [])
|
|
28433
28443
|
}).views((e) => ({
|
|
28434
28444
|
get json() {
|
|
28435
28445
|
return e.current.map((t) => t.json);
|
|
@@ -28457,7 +28467,7 @@ const uN = R.model("QueryModel", {
|
|
|
28457
28467
|
replaceByIndex(t, n) {
|
|
28458
28468
|
e.current.splice(t, 1, n);
|
|
28459
28469
|
}
|
|
28460
|
-
})),
|
|
28470
|
+
})), vN = R.model("ContextModel", {
|
|
28461
28471
|
current: R.optional(R.frozen(), {})
|
|
28462
28472
|
}).views((e) => ({
|
|
28463
28473
|
get keys() {
|
|
@@ -28476,7 +28486,7 @@ const uN = R.model("QueryModel", {
|
|
|
28476
28486
|
set(t, n) {
|
|
28477
28487
|
e.current[t] = n;
|
|
28478
28488
|
}
|
|
28479
|
-
})),
|
|
28489
|
+
})), yN = R.model("MockContextModel", {
|
|
28480
28490
|
current: R.optional(R.frozen(), {})
|
|
28481
28491
|
}).views((e) => ({
|
|
28482
28492
|
get keys() {
|
|
@@ -28495,7 +28505,7 @@ const uN = R.model("QueryModel", {
|
|
|
28495
28505
|
set(t, n) {
|
|
28496
28506
|
e.current[t] = n;
|
|
28497
28507
|
}
|
|
28498
|
-
})),
|
|
28508
|
+
})), bN = R.model("PanelLayoutModel", {
|
|
28499
28509
|
x: R.number,
|
|
28500
28510
|
y: R.number,
|
|
28501
28511
|
w: R.number,
|
|
@@ -28519,7 +28529,7 @@ const uN = R.model("QueryModel", {
|
|
|
28519
28529
|
const { x: n, y: r, w: o, h: i, moved: a } = t;
|
|
28520
28530
|
e.x = n, e.y = r, e.w = o, e.h = i, e.moved = !!a, e.static = !!t.static;
|
|
28521
28531
|
}
|
|
28522
|
-
})),
|
|
28532
|
+
})), SN = R.model("PanelStyleBorderModel", {
|
|
28523
28533
|
enabled: R.boolean
|
|
28524
28534
|
}).views((e) => ({
|
|
28525
28535
|
get json() {
|
|
@@ -28532,8 +28542,8 @@ const uN = R.model("QueryModel", {
|
|
|
28532
28542
|
setEnabled(t) {
|
|
28533
28543
|
e.enabled = t;
|
|
28534
28544
|
}
|
|
28535
|
-
})),
|
|
28536
|
-
border:
|
|
28545
|
+
})), wN = R.model("PanelStyleModel", {
|
|
28546
|
+
border: SN
|
|
28537
28547
|
}).views((e) => ({
|
|
28538
28548
|
get json() {
|
|
28539
28549
|
const { border: t } = e;
|
|
@@ -28541,7 +28551,7 @@ const uN = R.model("QueryModel", {
|
|
|
28541
28551
|
border: t.json
|
|
28542
28552
|
};
|
|
28543
28553
|
}
|
|
28544
|
-
})).actions((e) => ({})),
|
|
28554
|
+
})).actions((e) => ({})), CN = R.model("PanelVizModel", {
|
|
28545
28555
|
type: R.string,
|
|
28546
28556
|
conf: R.frozen()
|
|
28547
28557
|
}).views((e) => ({
|
|
@@ -28558,15 +28568,15 @@ const uN = R.model("QueryModel", {
|
|
|
28558
28568
|
setConf(t) {
|
|
28559
28569
|
e.conf = t;
|
|
28560
28570
|
}
|
|
28561
|
-
})),
|
|
28571
|
+
})), xN = R.model({
|
|
28562
28572
|
id: R.string,
|
|
28563
28573
|
title: R.string,
|
|
28564
28574
|
description: R.string,
|
|
28565
|
-
layout:
|
|
28575
|
+
layout: bN,
|
|
28566
28576
|
queryID: R.string,
|
|
28567
|
-
viz:
|
|
28568
|
-
style:
|
|
28569
|
-
variables: R.optional(R.array(
|
|
28577
|
+
viz: CN,
|
|
28578
|
+
style: wN,
|
|
28579
|
+
variables: R.optional(R.array(CA), [])
|
|
28570
28580
|
}).views((e) => ({
|
|
28571
28581
|
get query() {
|
|
28572
28582
|
return Qs(e, wl).queries.findByID(e.queryID);
|
|
@@ -28606,8 +28616,8 @@ const uN = R.model("QueryModel", {
|
|
|
28606
28616
|
removeVariable(t) {
|
|
28607
28617
|
e.variables.remove(t);
|
|
28608
28618
|
}
|
|
28609
|
-
})),
|
|
28610
|
-
list: R.optional(R.array(
|
|
28619
|
+
})), _N = R.model("PanelsModel", {
|
|
28620
|
+
list: R.optional(R.array(xN), [])
|
|
28611
28621
|
}).views((e) => ({
|
|
28612
28622
|
get json() {
|
|
28613
28623
|
return e.list.map((t) => t.json);
|
|
@@ -28679,12 +28689,12 @@ const uN = R.model("QueryModel", {
|
|
|
28679
28689
|
replaceByIndex(t, n) {
|
|
28680
28690
|
e.list.splice(t, 1, n);
|
|
28681
28691
|
}
|
|
28682
|
-
})),
|
|
28692
|
+
})), EN = R.model({
|
|
28683
28693
|
id: R.identifier,
|
|
28684
28694
|
name: R.string,
|
|
28685
28695
|
type: R.string,
|
|
28686
28696
|
config: R.frozen(),
|
|
28687
|
-
panels:
|
|
28697
|
+
panels: _N
|
|
28688
28698
|
}).views((e) => ({
|
|
28689
28699
|
get json() {
|
|
28690
28700
|
const { id: t, name: n, type: r, config: o } = e;
|
|
@@ -28715,8 +28725,8 @@ const uN = R.model("QueryModel", {
|
|
|
28715
28725
|
[t]: n
|
|
28716
28726
|
};
|
|
28717
28727
|
}
|
|
28718
|
-
})).actions((e) => ({})),
|
|
28719
|
-
current: R.optional(R.array(
|
|
28728
|
+
})).actions((e) => ({})), ON = R.model("ViewsModel", {
|
|
28729
|
+
current: R.optional(R.array(EN), []),
|
|
28720
28730
|
visibleViewIDs: R.array(R.string),
|
|
28721
28731
|
idOfVIE: R.string
|
|
28722
28732
|
}).views((e) => ({
|
|
@@ -28798,7 +28808,7 @@ const uN = R.model("QueryModel", {
|
|
|
28798
28808
|
n !== -1 && e.visibleViewIDs.splice(n, 1);
|
|
28799
28809
|
}
|
|
28800
28810
|
}));
|
|
28801
|
-
function
|
|
28811
|
+
function RN(e) {
|
|
28802
28812
|
const t = e.length > 0 ? [e[0].id] : [], n = e.length > 0 ? e[0].id : "";
|
|
28803
28813
|
return {
|
|
28804
28814
|
current: e.map((o) => ({
|
|
@@ -28811,16 +28821,16 @@ function EN(e) {
|
|
|
28811
28821
|
idOfVIE: n
|
|
28812
28822
|
};
|
|
28813
28823
|
}
|
|
28814
|
-
const
|
|
28824
|
+
const TN = R.model({
|
|
28815
28825
|
id: R.identifier,
|
|
28816
28826
|
name: R.string,
|
|
28817
28827
|
version: R.string,
|
|
28818
|
-
filters:
|
|
28819
|
-
queries:
|
|
28820
|
-
sqlSnippets:
|
|
28821
|
-
views:
|
|
28822
|
-
context:
|
|
28823
|
-
mock_context:
|
|
28828
|
+
filters: uN,
|
|
28829
|
+
queries: gN,
|
|
28830
|
+
sqlSnippets: mN,
|
|
28831
|
+
views: ON,
|
|
28832
|
+
context: vN,
|
|
28833
|
+
mock_context: yN,
|
|
28824
28834
|
origin: R.maybe(R.frozen())
|
|
28825
28835
|
}).views((e) => ({
|
|
28826
28836
|
get filtersChanged() {
|
|
@@ -28891,7 +28901,7 @@ const ON = R.model({
|
|
|
28891
28901
|
resetFilters() {
|
|
28892
28902
|
Rr(e.filters.current, e.origin.filters.current);
|
|
28893
28903
|
}
|
|
28894
|
-
})), wl = R.snapshotProcessor(
|
|
28904
|
+
})), wl = R.snapshotProcessor(TN, {
|
|
28895
28905
|
preProcessor(e) {
|
|
28896
28906
|
return {
|
|
28897
28907
|
...e,
|
|
@@ -28909,7 +28919,7 @@ function Ah({ id: e, name: t, version: n, filters: r, views: o, definition: { qu
|
|
|
28909
28919
|
id: e,
|
|
28910
28920
|
name: t,
|
|
28911
28921
|
version: n,
|
|
28912
|
-
filters:
|
|
28922
|
+
filters: dN(r),
|
|
28913
28923
|
queries: {
|
|
28914
28924
|
current: i
|
|
28915
28925
|
},
|
|
@@ -28922,13 +28932,13 @@ function Ah({ id: e, name: t, version: n, filters: r, views: o, definition: { qu
|
|
|
28922
28932
|
mock_context: {
|
|
28923
28933
|
current: s
|
|
28924
28934
|
},
|
|
28925
|
-
views:
|
|
28935
|
+
views: RN(o)
|
|
28926
28936
|
});
|
|
28927
28937
|
}
|
|
28928
28938
|
function Nh(e) {
|
|
28929
28939
|
return j.useCallback((t) => t.provideValue(Vt.pluginManager, e.pluginManager).provideValue(Vt.vizManager, e.vizManager).provideValue(Vt.colorManager, e.colorManager), []);
|
|
28930
28940
|
}
|
|
28931
|
-
const
|
|
28941
|
+
const yL = Q(function({
|
|
28932
28942
|
context: t,
|
|
28933
28943
|
dashboard: n,
|
|
28934
28944
|
update: r,
|
|
@@ -28976,7 +28986,7 @@ const mL = Q(function({
|
|
|
28976
28986
|
value: p,
|
|
28977
28987
|
children: /* @__PURE__ */ l(qi, {
|
|
28978
28988
|
configure: g,
|
|
28979
|
-
children: d.views.visibleViews.map((h) => /* @__PURE__ */ l(
|
|
28989
|
+
children: d.views.visibleViews.map((h) => /* @__PURE__ */ l(QA, {
|
|
28980
28990
|
view: h,
|
|
28981
28991
|
saveDashboardChanges: f,
|
|
28982
28992
|
fullScreenPanelID: a,
|
|
@@ -28988,7 +28998,7 @@ const mL = Q(function({
|
|
|
28988
28998
|
})
|
|
28989
28999
|
})
|
|
28990
29000
|
});
|
|
28991
|
-
}),
|
|
29001
|
+
}), bL = Q(({
|
|
28992
29002
|
context: e,
|
|
28993
29003
|
dashboard: t,
|
|
28994
29004
|
className: n = "dashboard",
|
|
@@ -29018,7 +29028,7 @@ const mL = Q(function({
|
|
|
29018
29028
|
value: s,
|
|
29019
29029
|
children: /* @__PURE__ */ l(qi, {
|
|
29020
29030
|
configure: c,
|
|
29021
|
-
children: a.views.visibleViews.map((u) => /* @__PURE__ */ l(
|
|
29031
|
+
children: a.views.visibleViews.map((u) => /* @__PURE__ */ l(tN, {
|
|
29022
29032
|
view: u,
|
|
29023
29033
|
fullScreenPanelID: o,
|
|
29024
29034
|
setFullScreenPanelID: i
|
|
@@ -29093,7 +29103,7 @@ var Lh = { exports: {} };
|
|
|
29093
29103
|
};
|
|
29094
29104
|
});
|
|
29095
29105
|
})(Lh);
|
|
29096
|
-
const
|
|
29106
|
+
const MN = Lh.exports;
|
|
29097
29107
|
var Vh = { exports: {} };
|
|
29098
29108
|
(function(e, t) {
|
|
29099
29109
|
(function(n, r) {
|
|
@@ -29175,36 +29185,36 @@ var Vh = { exports: {} };
|
|
|
29175
29185
|
};
|
|
29176
29186
|
});
|
|
29177
29187
|
})(Vh);
|
|
29178
|
-
const
|
|
29179
|
-
hr.extend(
|
|
29180
|
-
hr.extend(
|
|
29188
|
+
const kN = Vh.exports, SL = () => Promise.resolve().then(() => xT).then(({ version: e }) => (console.log(`[@devtable/dashboard] version: ${e}`), e));
|
|
29189
|
+
hr.extend(kN);
|
|
29190
|
+
hr.extend(MN);
|
|
29181
29191
|
hr.tz.setDefault("UTC");
|
|
29182
29192
|
export {
|
|
29183
|
-
|
|
29184
|
-
|
|
29193
|
+
vN as ContextModel,
|
|
29194
|
+
yL as Dashboard,
|
|
29185
29195
|
jR as DashboardFilterType,
|
|
29186
29196
|
zR as DashboardMode,
|
|
29187
29197
|
wl as DashboardModel,
|
|
29188
29198
|
Rn as EViewComponentType,
|
|
29189
29199
|
cd as FilterModel,
|
|
29190
|
-
|
|
29200
|
+
uN as FiltersModel,
|
|
29191
29201
|
Vn as LayoutStateContext,
|
|
29192
|
-
|
|
29202
|
+
QA as MainDashboardView,
|
|
29193
29203
|
Kd as ModelContextProvider,
|
|
29194
29204
|
Gs as Panel,
|
|
29195
29205
|
tv as PanelContextProvider,
|
|
29196
|
-
|
|
29197
|
-
|
|
29198
|
-
|
|
29199
|
-
|
|
29200
|
-
|
|
29201
|
-
|
|
29202
|
-
|
|
29203
|
-
|
|
29206
|
+
gN as QueriesModel,
|
|
29207
|
+
pN as QueryModel,
|
|
29208
|
+
bL as ReadOnlyDashboard,
|
|
29209
|
+
tN as ReadOnlyDashboardView,
|
|
29210
|
+
hN as SQLSnippetModel,
|
|
29211
|
+
mN as SQLSnippetsModel,
|
|
29212
|
+
EN as ViewModel,
|
|
29213
|
+
ON as ViewsModel,
|
|
29204
29214
|
Ah as createDashboardModel,
|
|
29205
|
-
|
|
29206
|
-
|
|
29207
|
-
|
|
29215
|
+
RN as createDashboardViewsModel,
|
|
29216
|
+
dN as getInitialFiltersPayload,
|
|
29217
|
+
SL as getVersion,
|
|
29208
29218
|
lt as useModelContext,
|
|
29209
29219
|
Gt as usePanelContext,
|
|
29210
29220
|
Nh as useTopLevelServices
|