@devtable/dashboard 6.23.1 → 6.24.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
CHANGED
|
@@ -13469,7 +13469,7 @@ const XR = (e) => {
|
|
|
13469
13469
|
getColor: ia(["#fff7f1", "darkorange", "#b60000"]),
|
|
13470
13470
|
name: "orange",
|
|
13471
13471
|
category: "sequential"
|
|
13472
|
-
}, oT = "6.
|
|
13472
|
+
}, oT = "6.24.0";
|
|
13473
13473
|
class iT {
|
|
13474
13474
|
constructor(t) {
|
|
13475
13475
|
he(this, "staticColors", /* @__PURE__ */ new Map());
|
|
@@ -14851,22 +14851,49 @@ function ws(e, t, n) {
|
|
|
14851
14851
|
}).join("");
|
|
14852
14852
|
}
|
|
14853
14853
|
const pl = ["max", "q3", "median", "q1", "min"];
|
|
14854
|
-
function XT(e) {
|
|
14854
|
+
function XT({ config: e }) {
|
|
14855
|
+
return {
|
|
14856
|
+
show: !0,
|
|
14857
|
+
bottom: 0,
|
|
14858
|
+
left: "center",
|
|
14859
|
+
type: "scroll",
|
|
14860
|
+
data: [
|
|
14861
|
+
{
|
|
14862
|
+
name: "Box",
|
|
14863
|
+
icon: "roundRect",
|
|
14864
|
+
itemStyle: {
|
|
14865
|
+
color: e.color
|
|
14866
|
+
}
|
|
14867
|
+
},
|
|
14868
|
+
{
|
|
14869
|
+
name: "Outlier",
|
|
14870
|
+
icon: "circle",
|
|
14871
|
+
itemStyle: {
|
|
14872
|
+
color: "#2F8CC0"
|
|
14873
|
+
}
|
|
14874
|
+
}
|
|
14875
|
+
]
|
|
14876
|
+
};
|
|
14877
|
+
}
|
|
14878
|
+
function QT(e) {
|
|
14855
14879
|
return `
|
|
14856
14880
|
<table>
|
|
14881
|
+
<thead>
|
|
14882
|
+
<th colspan="2" style="text-align: left;">${e[0]}</th>
|
|
14883
|
+
</thead>
|
|
14857
14884
|
<tbody>
|
|
14858
14885
|
<tr>
|
|
14859
|
-
<th style="text-align: left;"
|
|
14886
|
+
<th style="text-align: left;">Outlier</th>
|
|
14860
14887
|
<td style="text-align: right;">${e[1]}</td>
|
|
14861
14888
|
</tr>
|
|
14862
14889
|
</tbody>
|
|
14863
14890
|
</table>
|
|
14864
14891
|
`;
|
|
14865
14892
|
}
|
|
14866
|
-
const
|
|
14893
|
+
const JT = (e) => (t) => {
|
|
14867
14894
|
const { componentSubType: n, value: r } = t;
|
|
14868
14895
|
if (n === "scatter")
|
|
14869
|
-
return
|
|
14896
|
+
return QT(r);
|
|
14870
14897
|
const o = pl.map((a) => `
|
|
14871
14898
|
<tr>
|
|
14872
14899
|
<th style="text-align: left;">${Be.capitalize(a)}</th>
|
|
@@ -14887,14 +14914,14 @@ const QT = (e) => (t) => {
|
|
|
14887
14914
|
</table>
|
|
14888
14915
|
`;
|
|
14889
14916
|
};
|
|
14890
|
-
function
|
|
14917
|
+
function ZT({ config: e }) {
|
|
14891
14918
|
return {
|
|
14892
14919
|
trigger: "item",
|
|
14893
14920
|
confine: !0,
|
|
14894
|
-
formatter:
|
|
14921
|
+
formatter: JT(e)
|
|
14895
14922
|
};
|
|
14896
14923
|
}
|
|
14897
|
-
function
|
|
14924
|
+
function eM(e, t) {
|
|
14898
14925
|
return Object.entries(e).map(([r, o]) => {
|
|
14899
14926
|
var h, v, b, y;
|
|
14900
14927
|
const i = Jr(o, t, { type: "quantile", config: { p: 0.25 } }), a = Jr(o, t, { type: "quantile", config: { p: 0.75 } }), s = Jr(o, t, { type: "median", config: {} }), c = a - i, u = i - 1.5 * c, d = i + 1.5 * c, f = o.map((S) => [r, S[t]]), p = f.filter((S) => u <= S[1] && S[1] <= d), g = f.filter((S) => S[1] < u || S[1] > d);
|
|
@@ -14909,7 +14936,7 @@ function ZT(e, t) {
|
|
|
14909
14936
|
};
|
|
14910
14937
|
});
|
|
14911
14938
|
}
|
|
14912
|
-
function
|
|
14939
|
+
function tM(e, t, n) {
|
|
14913
14940
|
const r = t.reduce((o, i) => {
|
|
14914
14941
|
const a = Ss(i, n);
|
|
14915
14942
|
return o[i.name] = li(i, a), o;
|
|
@@ -14936,8 +14963,8 @@ function eM(e, t, n) {
|
|
|
14936
14963
|
}
|
|
14937
14964
|
}));
|
|
14938
14965
|
}
|
|
14939
|
-
function
|
|
14940
|
-
const { x_axis: r, y_axis: o, color: i, reference_lines: a } = e, s = Be.groupBy(t, r.data_key), c =
|
|
14966
|
+
function nM({ config: e, data: t, variables: n }) {
|
|
14967
|
+
const { x_axis: r, y_axis: o, color: i, reference_lines: a } = e, s = Be.groupBy(t, r.data_key), c = eM(s, o.data_key), u = c.map((d) => d.outliers).flat();
|
|
14941
14968
|
return {
|
|
14942
14969
|
dataset: [
|
|
14943
14970
|
{
|
|
@@ -14947,7 +14974,8 @@ function tM({ config: e, data: t, variables: n }) {
|
|
|
14947
14974
|
source: u
|
|
14948
14975
|
}
|
|
14949
14976
|
],
|
|
14950
|
-
|
|
14977
|
+
legend: XT({ config: e }),
|
|
14978
|
+
tooltip: ZT({ config: e }),
|
|
14951
14979
|
xAxis: [
|
|
14952
14980
|
{
|
|
14953
14981
|
type: "category",
|
|
@@ -14973,7 +15001,7 @@ function tM({ config: e, data: t, variables: n }) {
|
|
|
14973
15001
|
],
|
|
14974
15002
|
series: [
|
|
14975
15003
|
{
|
|
14976
|
-
name:
|
|
15004
|
+
name: "Box",
|
|
14977
15005
|
type: "boxplot",
|
|
14978
15006
|
itemStyle: {
|
|
14979
15007
|
color: i,
|
|
@@ -14993,26 +15021,26 @@ function tM({ config: e, data: t, variables: n }) {
|
|
|
14993
15021
|
}
|
|
14994
15022
|
},
|
|
14995
15023
|
{
|
|
14996
|
-
name:
|
|
15024
|
+
name: "Outlier",
|
|
14997
15025
|
type: "scatter",
|
|
14998
15026
|
symbolSize: 5,
|
|
14999
15027
|
itemStyle: {
|
|
15000
|
-
color:
|
|
15028
|
+
color: "#2F8CC0"
|
|
15001
15029
|
},
|
|
15002
15030
|
emphasis: {
|
|
15003
15031
|
scale: 2
|
|
15004
15032
|
},
|
|
15005
15033
|
datasetIndex: 1
|
|
15006
15034
|
},
|
|
15007
|
-
...
|
|
15035
|
+
...tM(a, n, t)
|
|
15008
15036
|
]
|
|
15009
15037
|
};
|
|
15010
15038
|
}
|
|
15011
15039
|
const Mg = {
|
|
15012
15040
|
id: "builtin:echarts:click-echart:series",
|
|
15013
15041
|
displayName: "Click Chart Series",
|
|
15014
|
-
nameRender:
|
|
15015
|
-
configRender:
|
|
15042
|
+
nameRender: oM,
|
|
15043
|
+
configRender: rM,
|
|
15016
15044
|
payload: [{
|
|
15017
15045
|
name: "type",
|
|
15018
15046
|
description: "Always 'click'",
|
|
@@ -15039,10 +15067,10 @@ const Mg = {
|
|
|
15039
15067
|
valueType: "object"
|
|
15040
15068
|
}]
|
|
15041
15069
|
};
|
|
15042
|
-
function
|
|
15070
|
+
function rM(e) {
|
|
15043
15071
|
return /* @__PURE__ */ l($e, {});
|
|
15044
15072
|
}
|
|
15045
|
-
function
|
|
15073
|
+
function oM(e) {
|
|
15046
15074
|
return /* @__PURE__ */ l(F, {
|
|
15047
15075
|
children: "Click chart's series"
|
|
15048
15076
|
});
|
|
@@ -15061,7 +15089,7 @@ const Cs = {
|
|
|
15061
15089
|
reference_lines: []
|
|
15062
15090
|
};
|
|
15063
15091
|
Pt.use([ei, Ev, Il, Lr, Vr, Fr, Jn]);
|
|
15064
|
-
function
|
|
15092
|
+
function iM({
|
|
15065
15093
|
context: e,
|
|
15066
15094
|
instance: t
|
|
15067
15095
|
}) {
|
|
@@ -15085,7 +15113,7 @@ function oM({
|
|
|
15085
15113
|
rowData: h
|
|
15086
15114
|
});
|
|
15087
15115
|
});
|
|
15088
|
-
}, p = de(() =>
|
|
15116
|
+
}, p = de(() => nM({
|
|
15089
15117
|
config: s,
|
|
15090
15118
|
data: o,
|
|
15091
15119
|
variables: r
|
|
@@ -15102,7 +15130,7 @@ function oM({
|
|
|
15102
15130
|
}
|
|
15103
15131
|
});
|
|
15104
15132
|
}
|
|
15105
|
-
function
|
|
15133
|
+
function aM({
|
|
15106
15134
|
control: e,
|
|
15107
15135
|
index: t,
|
|
15108
15136
|
remove: n,
|
|
@@ -15177,7 +15205,7 @@ function iM({
|
|
|
15177
15205
|
})]
|
|
15178
15206
|
}, t);
|
|
15179
15207
|
}
|
|
15180
|
-
function
|
|
15208
|
+
function lM({
|
|
15181
15209
|
control: e,
|
|
15182
15210
|
watch: t,
|
|
15183
15211
|
variables: n
|
|
@@ -15201,7 +15229,7 @@ function aM({
|
|
|
15201
15229
|
value: d.name
|
|
15202
15230
|
})), [n]);
|
|
15203
15231
|
return /* @__PURE__ */ m(W, {
|
|
15204
|
-
children: [s.map((d, f) => /* @__PURE__ */ l(
|
|
15232
|
+
children: [s.map((d, f) => /* @__PURE__ */ l(aM, {
|
|
15205
15233
|
control: e,
|
|
15206
15234
|
index: f,
|
|
15207
15235
|
remove: i,
|
|
@@ -15216,7 +15244,7 @@ function aM({
|
|
|
15216
15244
|
})]
|
|
15217
15245
|
});
|
|
15218
15246
|
}
|
|
15219
|
-
const
|
|
15247
|
+
const sM = ({
|
|
15220
15248
|
control: e,
|
|
15221
15249
|
data: t,
|
|
15222
15250
|
watch: n
|
|
@@ -15250,7 +15278,7 @@ const lM = ({
|
|
|
15250
15278
|
...r
|
|
15251
15279
|
})
|
|
15252
15280
|
})]
|
|
15253
|
-
})),
|
|
15281
|
+
})), cM = ({
|
|
15254
15282
|
control: e,
|
|
15255
15283
|
data: t,
|
|
15256
15284
|
watch: n
|
|
@@ -15302,7 +15330,7 @@ const lM = ({
|
|
|
15302
15330
|
})]
|
|
15303
15331
|
})]
|
|
15304
15332
|
}));
|
|
15305
|
-
function
|
|
15333
|
+
function uM({
|
|
15306
15334
|
context: e
|
|
15307
15335
|
}) {
|
|
15308
15336
|
const {
|
|
@@ -15377,14 +15405,14 @@ function cM({
|
|
|
15377
15405
|
})]
|
|
15378
15406
|
}), /* @__PURE__ */ l(N.Panel, {
|
|
15379
15407
|
value: "X Axis",
|
|
15380
|
-
children: /* @__PURE__ */ l(
|
|
15408
|
+
children: /* @__PURE__ */ l(sM, {
|
|
15381
15409
|
control: a,
|
|
15382
15410
|
data: r,
|
|
15383
15411
|
watch: c
|
|
15384
15412
|
})
|
|
15385
15413
|
}), /* @__PURE__ */ l(N.Panel, {
|
|
15386
15414
|
value: "Y Axis",
|
|
15387
|
-
children: /* @__PURE__ */ l(
|
|
15415
|
+
children: /* @__PURE__ */ l(cM, {
|
|
15388
15416
|
control: a,
|
|
15389
15417
|
data: r,
|
|
15390
15418
|
watch: c
|
|
@@ -15408,7 +15436,7 @@ function cM({
|
|
|
15408
15436
|
})
|
|
15409
15437
|
}), /* @__PURE__ */ l(N.Panel, {
|
|
15410
15438
|
value: "Reference Lines",
|
|
15411
|
-
children: /* @__PURE__ */ l(
|
|
15439
|
+
children: /* @__PURE__ */ l(lM, {
|
|
15412
15440
|
variables: o,
|
|
15413
15441
|
control: a,
|
|
15414
15442
|
watch: c
|
|
@@ -15418,10 +15446,10 @@ function cM({
|
|
|
15418
15446
|
})
|
|
15419
15447
|
});
|
|
15420
15448
|
}
|
|
15421
|
-
function
|
|
15449
|
+
function dM(e) {
|
|
15422
15450
|
return kr(e, "variables");
|
|
15423
15451
|
}
|
|
15424
|
-
function
|
|
15452
|
+
function fM(e) {
|
|
15425
15453
|
const {
|
|
15426
15454
|
label_formatter: t = Cr,
|
|
15427
15455
|
...n
|
|
@@ -15434,7 +15462,7 @@ function dM(e) {
|
|
|
15434
15462
|
}
|
|
15435
15463
|
};
|
|
15436
15464
|
}
|
|
15437
|
-
class
|
|
15465
|
+
class pM extends en {
|
|
15438
15466
|
constructor() {
|
|
15439
15467
|
super(...arguments);
|
|
15440
15468
|
he(this, "VERSION", 3);
|
|
@@ -15452,7 +15480,7 @@ class fM extends en {
|
|
|
15452
15480
|
return (o.variables || []).forEach((a) => {
|
|
15453
15481
|
r.variables.find((s) => s.name === a.name) || r.addVariable(a);
|
|
15454
15482
|
}), {
|
|
15455
|
-
config:
|
|
15483
|
+
config: dM(o)
|
|
15456
15484
|
};
|
|
15457
15485
|
}), this.version(3, (n) => {
|
|
15458
15486
|
const {
|
|
@@ -15460,30 +15488,30 @@ class fM extends en {
|
|
|
15460
15488
|
} = n;
|
|
15461
15489
|
return {
|
|
15462
15490
|
version: 3,
|
|
15463
|
-
config:
|
|
15491
|
+
config: fM(r)
|
|
15464
15492
|
};
|
|
15465
15493
|
});
|
|
15466
15494
|
}
|
|
15467
15495
|
}
|
|
15468
|
-
const
|
|
15496
|
+
const gM = {
|
|
15469
15497
|
displayName: "Boxplot",
|
|
15470
|
-
migrator: new
|
|
15498
|
+
migrator: new pM(),
|
|
15471
15499
|
name: "boxplot",
|
|
15472
|
-
viewRender:
|
|
15473
|
-
configRender:
|
|
15500
|
+
viewRender: iM,
|
|
15501
|
+
configRender: uM,
|
|
15474
15502
|
createConfig: () => Cs,
|
|
15475
15503
|
triggers: [Mg]
|
|
15476
15504
|
}, Dg = {
|
|
15477
15505
|
id: "builtin:button:click-button",
|
|
15478
15506
|
displayName: "Click Button",
|
|
15479
|
-
nameRender:
|
|
15480
|
-
configRender:
|
|
15507
|
+
nameRender: vM,
|
|
15508
|
+
configRender: hM,
|
|
15481
15509
|
payload: []
|
|
15482
15510
|
};
|
|
15483
|
-
function
|
|
15511
|
+
function hM(e) {
|
|
15484
15512
|
return /* @__PURE__ */ l($e, {});
|
|
15485
15513
|
}
|
|
15486
|
-
function
|
|
15514
|
+
function vM(e) {
|
|
15487
15515
|
return /* @__PURE__ */ l(F, {
|
|
15488
15516
|
children: "Click this button"
|
|
15489
15517
|
});
|
|
@@ -15496,15 +15524,15 @@ const xs = {
|
|
|
15496
15524
|
compact: !1,
|
|
15497
15525
|
horizontal_align: "left",
|
|
15498
15526
|
vertical_align: "center"
|
|
15499
|
-
},
|
|
15527
|
+
}, mM = {
|
|
15500
15528
|
left: "flex-start",
|
|
15501
15529
|
center: "center",
|
|
15502
15530
|
right: "flex-end"
|
|
15503
|
-
},
|
|
15531
|
+
}, yM = {
|
|
15504
15532
|
top: "flex-start",
|
|
15505
15533
|
center: "center",
|
|
15506
15534
|
bottom: "flex-end"
|
|
15507
|
-
},
|
|
15535
|
+
}, bM = Q(({
|
|
15508
15536
|
context: e,
|
|
15509
15537
|
instance: t
|
|
15510
15538
|
}) => {
|
|
@@ -15533,8 +15561,8 @@ const xs = {
|
|
|
15533
15561
|
sx: {
|
|
15534
15562
|
width: f,
|
|
15535
15563
|
height: p,
|
|
15536
|
-
justifyContent:
|
|
15537
|
-
alignItems:
|
|
15564
|
+
justifyContent: mM[c],
|
|
15565
|
+
alignItems: yM[u]
|
|
15538
15566
|
},
|
|
15539
15567
|
children: /* @__PURE__ */ l(fe, {
|
|
15540
15568
|
...d,
|
|
@@ -15542,7 +15570,7 @@ const xs = {
|
|
|
15542
15570
|
children: Ol(s)(g)
|
|
15543
15571
|
})
|
|
15544
15572
|
});
|
|
15545
|
-
}),
|
|
15573
|
+
}), SM = ({
|
|
15546
15574
|
value: e,
|
|
15547
15575
|
onChange: t,
|
|
15548
15576
|
label: n
|
|
@@ -15577,19 +15605,19 @@ const xs = {
|
|
|
15577
15605
|
})
|
|
15578
15606
|
})]
|
|
15579
15607
|
});
|
|
15580
|
-
},
|
|
15608
|
+
}, wM = Ph.map((e) => ({
|
|
15581
15609
|
label: e.toUpperCase(),
|
|
15582
15610
|
value: e
|
|
15583
|
-
})),
|
|
15611
|
+
})), CM = ({
|
|
15584
15612
|
label: e,
|
|
15585
15613
|
value: t,
|
|
15586
15614
|
onChange: n
|
|
15587
15615
|
}) => /* @__PURE__ */ l(Ee, {
|
|
15588
|
-
data:
|
|
15616
|
+
data: wM,
|
|
15589
15617
|
label: e,
|
|
15590
15618
|
value: t,
|
|
15591
15619
|
onChange: n
|
|
15592
|
-
}),
|
|
15620
|
+
}), xM = [{
|
|
15593
15621
|
label: "Filled",
|
|
15594
15622
|
value: "filled"
|
|
15595
15623
|
}, {
|
|
@@ -15611,7 +15639,7 @@ const xs = {
|
|
|
15611
15639
|
label: "Gradient",
|
|
15612
15640
|
value: "gradient",
|
|
15613
15641
|
disabled: !0
|
|
15614
|
-
}],
|
|
15642
|
+
}], _M = [{
|
|
15615
15643
|
label: "Left",
|
|
15616
15644
|
value: "left"
|
|
15617
15645
|
}, {
|
|
@@ -15620,7 +15648,7 @@ const xs = {
|
|
|
15620
15648
|
}, {
|
|
15621
15649
|
label: "Right",
|
|
15622
15650
|
value: "right"
|
|
15623
|
-
}],
|
|
15651
|
+
}], EM = [{
|
|
15624
15652
|
label: "Top",
|
|
15625
15653
|
value: "top"
|
|
15626
15654
|
}, {
|
|
@@ -15630,7 +15658,7 @@ const xs = {
|
|
|
15630
15658
|
label: "Bottom",
|
|
15631
15659
|
value: "bottom"
|
|
15632
15660
|
}];
|
|
15633
|
-
function
|
|
15661
|
+
function OM({
|
|
15634
15662
|
context: e
|
|
15635
15663
|
}) {
|
|
15636
15664
|
const {
|
|
@@ -15659,17 +15687,17 @@ function EM({
|
|
|
15659
15687
|
cols: 2,
|
|
15660
15688
|
children: [/* @__PURE__ */ l(Ee, {
|
|
15661
15689
|
label: "Variant",
|
|
15662
|
-
data:
|
|
15690
|
+
data: xM,
|
|
15663
15691
|
value: r.variant,
|
|
15664
15692
|
onChange: (i) => o("variant", i)
|
|
15665
|
-
}), /* @__PURE__ */ l(
|
|
15693
|
+
}), /* @__PURE__ */ l(SM, {
|
|
15666
15694
|
label: "Theme",
|
|
15667
15695
|
value: r.color,
|
|
15668
15696
|
onChange: (i) => o("color", i)
|
|
15669
15697
|
})]
|
|
15670
15698
|
}), /* @__PURE__ */ m(Yr, {
|
|
15671
15699
|
cols: 2,
|
|
15672
|
-
children: [/* @__PURE__ */ l(
|
|
15700
|
+
children: [/* @__PURE__ */ l(CM, {
|
|
15673
15701
|
label: "Size",
|
|
15674
15702
|
value: r.size,
|
|
15675
15703
|
onChange: (i) => o("size", i)
|
|
@@ -15683,19 +15711,19 @@ function EM({
|
|
|
15683
15711
|
cols: 2,
|
|
15684
15712
|
children: [/* @__PURE__ */ l(Ee, {
|
|
15685
15713
|
label: "Horizontal Alignment",
|
|
15686
|
-
data:
|
|
15714
|
+
data: _M,
|
|
15687
15715
|
value: r.horizontal_align,
|
|
15688
15716
|
onChange: (i) => o("horizontal_align", i)
|
|
15689
15717
|
}), /* @__PURE__ */ l(Ee, {
|
|
15690
15718
|
label: "Vertical Alignment",
|
|
15691
|
-
data:
|
|
15719
|
+
data: EM,
|
|
15692
15720
|
value: r.vertical_align,
|
|
15693
15721
|
onChange: (i) => o("vertical_align", i)
|
|
15694
15722
|
})]
|
|
15695
15723
|
})]
|
|
15696
15724
|
});
|
|
15697
15725
|
}
|
|
15698
|
-
class
|
|
15726
|
+
class RM extends en {
|
|
15699
15727
|
constructor() {
|
|
15700
15728
|
super(...arguments);
|
|
15701
15729
|
he(this, "VERSION", 1);
|
|
@@ -15718,23 +15746,23 @@ class OM extends en {
|
|
|
15718
15746
|
}));
|
|
15719
15747
|
}
|
|
15720
15748
|
}
|
|
15721
|
-
const
|
|
15749
|
+
const TM = {
|
|
15722
15750
|
displayName: "Button",
|
|
15723
|
-
migrator: new
|
|
15751
|
+
migrator: new RM(),
|
|
15724
15752
|
name: "button",
|
|
15725
|
-
viewRender:
|
|
15726
|
-
configRender:
|
|
15753
|
+
viewRender: bM,
|
|
15754
|
+
configRender: OM,
|
|
15727
15755
|
createConfig: () => xs,
|
|
15728
15756
|
triggers: [Dg]
|
|
15729
15757
|
};
|
|
15730
|
-
function
|
|
15758
|
+
function MM(e) {
|
|
15731
15759
|
const t = e.y_axes.some((n) => !!n.name);
|
|
15732
15760
|
return {
|
|
15733
15761
|
bottom: e.x_axis_name ? 40 : 25,
|
|
15734
15762
|
top: t ? 30 : 10
|
|
15735
15763
|
};
|
|
15736
15764
|
}
|
|
15737
|
-
function
|
|
15765
|
+
function DM({ regressions: e = [] }, t) {
|
|
15738
15766
|
const n = [], r = [], o = [];
|
|
15739
15767
|
return t.length === 0 ? { regressionDataSets: n, regressionSeries: r, regressionXAxes: o } : (e.forEach(({ transform: i, plot: a, name: s, y_axis_data_key: c }) => {
|
|
15740
15768
|
const u = `x-axis-for-${s}`, d = `dataset-for-${s}--raw`, f = `dataset-for-${s}--transformed`;
|
|
@@ -15762,7 +15790,7 @@ function MM({ regressions: e = [] }, t) {
|
|
|
15762
15790
|
});
|
|
15763
15791
|
}), { regressionDataSets: n, regressionSeries: r, regressionXAxes: o });
|
|
15764
15792
|
}
|
|
15765
|
-
function
|
|
15793
|
+
function kM({ type: e, ...t }, n, r, o) {
|
|
15766
15794
|
if (!e)
|
|
15767
15795
|
return 10;
|
|
15768
15796
|
if (e === "static") {
|
|
@@ -15787,7 +15815,7 @@ function Ju(e, t, n, r) {
|
|
|
15787
15815
|
const o = t.map((i) => [i[n], i[r]]);
|
|
15788
15816
|
return Be.unionBy(o, e, 0);
|
|
15789
15817
|
}
|
|
15790
|
-
function
|
|
15818
|
+
function PM(e, t, n, r) {
|
|
15791
15819
|
return e.map((o) => {
|
|
15792
15820
|
const i = o.orientation === "horizontal", a = i ? "yAxis" : "xAxis", s = i ? "insideEndTop" : "end";
|
|
15793
15821
|
return {
|
|
@@ -15813,7 +15841,7 @@ function kM(e, t, n, r) {
|
|
|
15813
15841
|
};
|
|
15814
15842
|
});
|
|
15815
15843
|
}
|
|
15816
|
-
function
|
|
15844
|
+
function IM(e, t) {
|
|
15817
15845
|
return e.map((n) => ({
|
|
15818
15846
|
name: "",
|
|
15819
15847
|
type: "line",
|
|
@@ -15836,7 +15864,7 @@ function PM(e, t) {
|
|
|
15836
15864
|
}
|
|
15837
15865
|
}));
|
|
15838
15866
|
}
|
|
15839
|
-
function
|
|
15867
|
+
function AM({ x_axis_data_key: e }, {
|
|
15840
15868
|
y_axis_data_key: t,
|
|
15841
15869
|
yAxisIndex: n,
|
|
15842
15870
|
label_position: r,
|
|
@@ -15860,7 +15888,7 @@ function IM({ x_axis_data_key: e }, {
|
|
|
15860
15888
|
yAxisIndex: n,
|
|
15861
15889
|
stack: a,
|
|
15862
15890
|
color: s,
|
|
15863
|
-
symbolSize:
|
|
15891
|
+
symbolSize: kM(u, h, e, v),
|
|
15864
15892
|
...f
|
|
15865
15893
|
};
|
|
15866
15894
|
if (c && (y.endLabel = {
|
|
@@ -15876,9 +15904,9 @@ function IM({ x_axis_data_key: e }, {
|
|
|
15876
15904
|
return C.data = Ju(p, E, e, t), C.name = w, C.color = void 0, C;
|
|
15877
15905
|
});
|
|
15878
15906
|
}
|
|
15879
|
-
function
|
|
15907
|
+
function $M(e, t, n, r, o, i, a) {
|
|
15880
15908
|
const s = t.map((u) => [u, 0]);
|
|
15881
|
-
return e.series.map((u) =>
|
|
15909
|
+
return e.series.map((u) => AM(e, u, s, n, r, a, o)).flat().concat(PM(e.reference_lines, i, a, r)).concat(IM(e.reference_areas, a));
|
|
15882
15910
|
}
|
|
15883
15911
|
function kg({ enabled: e, func_content: t }) {
|
|
15884
15912
|
return (n, r) => {
|
|
@@ -15891,14 +15919,14 @@ function kg({ enabled: e, func_content: t }) {
|
|
|
15891
15919
|
}
|
|
15892
15920
|
};
|
|
15893
15921
|
}
|
|
15894
|
-
function
|
|
15922
|
+
function NM(e, t) {
|
|
15895
15923
|
const n = e.find((s) => s.axisDim === "x" && s.axisId === "main-x-axis");
|
|
15896
15924
|
if (!n)
|
|
15897
15925
|
return "";
|
|
15898
15926
|
const { name: r, axisType: o, axisValue: i, axisIndex: a } = n;
|
|
15899
15927
|
return o === "xAxis.category" ? r : kg(t.x_axis.axisLabel.formatter)(i, a);
|
|
15900
15928
|
}
|
|
15901
|
-
function
|
|
15929
|
+
function LM(e, t) {
|
|
15902
15930
|
const n = e.series.reduce(
|
|
15903
15931
|
(r, { yAxisIndex: o, name: i }) => (r[i] = o, r),
|
|
15904
15932
|
{}
|
|
@@ -15908,7 +15936,7 @@ function NM(e, t) {
|
|
|
15908
15936
|
const o = Array.isArray(r) ? r : [r];
|
|
15909
15937
|
if (o.length === 0)
|
|
15910
15938
|
return "";
|
|
15911
|
-
const i =
|
|
15939
|
+
const i = NM(o, e), a = o.map(({ seriesName: s, value: c }) => {
|
|
15912
15940
|
var f;
|
|
15913
15941
|
if (Array.isArray(c) && c.length === 2 && (c = c[1]), !s)
|
|
15914
15942
|
return c;
|
|
@@ -15919,7 +15947,7 @@ function NM(e, t) {
|
|
|
15919
15947
|
}
|
|
15920
15948
|
};
|
|
15921
15949
|
}
|
|
15922
|
-
function
|
|
15950
|
+
function VM(e, t, n) {
|
|
15923
15951
|
var i;
|
|
15924
15952
|
const r = t.every((a) => !Number.isNaN(Number(a))), { axisLabel: o } = e.x_axis;
|
|
15925
15953
|
return [
|
|
@@ -15940,7 +15968,7 @@ function LM(e, t, n) {
|
|
|
15940
15968
|
...n
|
|
15941
15969
|
];
|
|
15942
15970
|
}
|
|
15943
|
-
function
|
|
15971
|
+
function FM(e, t) {
|
|
15944
15972
|
return e.y_axes.map(({ nameAlignment: n, ...r }, o) => {
|
|
15945
15973
|
var a;
|
|
15946
15974
|
let i = r.position;
|
|
@@ -15966,7 +15994,7 @@ function VM(e, t) {
|
|
|
15966
15994
|
};
|
|
15967
15995
|
});
|
|
15968
15996
|
}
|
|
15969
|
-
function
|
|
15997
|
+
function zM(e) {
|
|
15970
15998
|
switch (e) {
|
|
15971
15999
|
case "line":
|
|
15972
16000
|
return;
|
|
@@ -15976,7 +16004,7 @@ function FM(e) {
|
|
|
15976
16004
|
return "circle";
|
|
15977
16005
|
}
|
|
15978
16006
|
}
|
|
15979
|
-
function
|
|
16007
|
+
function jM(e) {
|
|
15980
16008
|
const t = {
|
|
15981
16009
|
show: !0,
|
|
15982
16010
|
bottom: 0,
|
|
@@ -15985,10 +16013,10 @@ function zM(e) {
|
|
|
15985
16013
|
};
|
|
15986
16014
|
return t.data = e.series.filter((n) => !n.hide_in_legend).map(({ name: n, type: r }) => ({
|
|
15987
16015
|
name: n,
|
|
15988
|
-
icon:
|
|
16016
|
+
icon: zM(r)
|
|
15989
16017
|
})), t;
|
|
15990
16018
|
}
|
|
15991
|
-
const
|
|
16019
|
+
const KM = {
|
|
15992
16020
|
dataZoom: [
|
|
15993
16021
|
{
|
|
15994
16022
|
type: "inside",
|
|
@@ -16027,7 +16055,7 @@ const jM = {
|
|
|
16027
16055
|
containLabel: !0
|
|
16028
16056
|
}
|
|
16029
16057
|
};
|
|
16030
|
-
function
|
|
16058
|
+
function HM(e, t, n) {
|
|
16031
16059
|
const r = n.reduce((p, g) => {
|
|
16032
16060
|
const h = Ss(g, t);
|
|
16033
16061
|
return p[g.name] = li(g, h), p;
|
|
@@ -16045,22 +16073,22 @@ function KM(e, t, n) {
|
|
|
16045
16073
|
{
|
|
16046
16074
|
default: ({ value: p }) => p
|
|
16047
16075
|
}
|
|
16048
|
-
), i = Be.uniq(t.map((p) => p[e.x_axis_data_key])), a = i.every((p) => !Number.isNaN(Number(p))), s =
|
|
16049
|
-
xAxis:
|
|
16050
|
-
yAxis:
|
|
16076
|
+
), i = Be.uniq(t.map((p) => p[e.x_axis_data_key])), a = i.every((p) => !Number.isNaN(Number(p))), s = $M(e, i, a, t, o, n, r), { regressionDataSets: c, regressionSeries: u, regressionXAxes: d } = DM(e, t), f = {
|
|
16077
|
+
xAxis: VM(e, i, d),
|
|
16078
|
+
yAxis: FM(e, o),
|
|
16051
16079
|
dataset: [...c],
|
|
16052
16080
|
series: [...s, ...u],
|
|
16053
|
-
tooltip:
|
|
16054
|
-
grid:
|
|
16055
|
-
legend:
|
|
16081
|
+
tooltip: LM(e, o),
|
|
16082
|
+
grid: MM(e),
|
|
16083
|
+
legend: jM(e)
|
|
16056
16084
|
};
|
|
16057
|
-
return nn({}, f,
|
|
16085
|
+
return nn({}, f, KM);
|
|
16058
16086
|
}
|
|
16059
16087
|
const Pg = {
|
|
16060
16088
|
id: "builtin:echarts:click-echart:series",
|
|
16061
16089
|
displayName: "Click Chart Series",
|
|
16062
|
-
nameRender:
|
|
16063
|
-
configRender:
|
|
16090
|
+
nameRender: GM,
|
|
16091
|
+
configRender: BM,
|
|
16064
16092
|
payload: [{
|
|
16065
16093
|
name: "seriesType",
|
|
16066
16094
|
description: "'line' | 'scatter' | 'bar'",
|
|
@@ -16087,10 +16115,10 @@ const Pg = {
|
|
|
16087
16115
|
valueType: "object"
|
|
16088
16116
|
}]
|
|
16089
16117
|
};
|
|
16090
|
-
function
|
|
16118
|
+
function BM(e) {
|
|
16091
16119
|
return /* @__PURE__ */ l($e, {});
|
|
16092
16120
|
}
|
|
16093
|
-
function
|
|
16121
|
+
function GM(e) {
|
|
16094
16122
|
return /* @__PURE__ */ l(F, {
|
|
16095
16123
|
children: "Click chart's series"
|
|
16096
16124
|
});
|
|
@@ -16127,7 +16155,7 @@ Pt.registerTransform(Ll.regression);
|
|
|
16127
16155
|
function Zu(e) {
|
|
16128
16156
|
return e.trim().length > 0;
|
|
16129
16157
|
}
|
|
16130
|
-
function
|
|
16158
|
+
function WM({
|
|
16131
16159
|
conf: e,
|
|
16132
16160
|
data: t,
|
|
16133
16161
|
width: n,
|
|
@@ -16145,7 +16173,7 @@ function GM({
|
|
|
16145
16173
|
rowData: f
|
|
16146
16174
|
});
|
|
16147
16175
|
});
|
|
16148
|
-
}, u = j.useMemo(() =>
|
|
16176
|
+
}, u = j.useMemo(() => HM(e, t, i), [e, t]);
|
|
16149
16177
|
return !n || !r ? null : /* @__PURE__ */ l(Zn, {
|
|
16150
16178
|
echarts: Pt,
|
|
16151
16179
|
option: u,
|
|
@@ -16158,7 +16186,7 @@ function GM({
|
|
|
16158
16186
|
}
|
|
16159
16187
|
});
|
|
16160
16188
|
}
|
|
16161
|
-
function
|
|
16189
|
+
function qM({
|
|
16162
16190
|
context: e,
|
|
16163
16191
|
instance: t
|
|
16164
16192
|
}) {
|
|
@@ -16196,7 +16224,7 @@ function WM({
|
|
|
16196
16224
|
size: "xs",
|
|
16197
16225
|
pl: "sm",
|
|
16198
16226
|
children: Object.values(g.top).map((v) => v)
|
|
16199
|
-
}), /* @__PURE__ */ l(
|
|
16227
|
+
}), /* @__PURE__ */ l(WM, {
|
|
16200
16228
|
variables: o,
|
|
16201
16229
|
width: s,
|
|
16202
16230
|
height: h,
|
|
@@ -16212,14 +16240,14 @@ function WM({
|
|
|
16212
16240
|
})]
|
|
16213
16241
|
});
|
|
16214
16242
|
}
|
|
16215
|
-
const
|
|
16243
|
+
const UM = [{
|
|
16216
16244
|
label: "Rectangle",
|
|
16217
16245
|
value: "rectangle"
|
|
16218
|
-
}],
|
|
16246
|
+
}], YM = [{
|
|
16219
16247
|
label: "Horizontal",
|
|
16220
16248
|
value: "horizontal"
|
|
16221
16249
|
}];
|
|
16222
|
-
function
|
|
16250
|
+
function XM({
|
|
16223
16251
|
control: e,
|
|
16224
16252
|
index: t,
|
|
16225
16253
|
remove: n,
|
|
@@ -16272,7 +16300,7 @@ function YM({
|
|
|
16272
16300
|
}) => /* @__PURE__ */ l(Ee, {
|
|
16273
16301
|
label: "Type",
|
|
16274
16302
|
required: !0,
|
|
16275
|
-
data:
|
|
16303
|
+
data: UM,
|
|
16276
16304
|
sx: {
|
|
16277
16305
|
flex: 1
|
|
16278
16306
|
},
|
|
@@ -16286,7 +16314,7 @@ function YM({
|
|
|
16286
16314
|
}) => /* @__PURE__ */ l(Ee, {
|
|
16287
16315
|
label: "Direction",
|
|
16288
16316
|
required: !0,
|
|
16289
|
-
data:
|
|
16317
|
+
data: YM,
|
|
16290
16318
|
sx: {
|
|
16291
16319
|
flex: 1
|
|
16292
16320
|
},
|
|
@@ -16344,7 +16372,7 @@ function YM({
|
|
|
16344
16372
|
})]
|
|
16345
16373
|
}, t);
|
|
16346
16374
|
}
|
|
16347
|
-
function
|
|
16375
|
+
function QM({
|
|
16348
16376
|
control: e,
|
|
16349
16377
|
watch: t,
|
|
16350
16378
|
variables: n
|
|
@@ -16398,7 +16426,7 @@ function XM({
|
|
|
16398
16426
|
})]
|
|
16399
16427
|
}), s.map((d, f) => /* @__PURE__ */ l(N.Panel, {
|
|
16400
16428
|
value: f.toString(),
|
|
16401
|
-
children: /* @__PURE__ */ l(
|
|
16429
|
+
children: /* @__PURE__ */ l(XM, {
|
|
16402
16430
|
control: e,
|
|
16403
16431
|
index: f,
|
|
16404
16432
|
remove: i,
|
|
@@ -16407,14 +16435,14 @@ function XM({
|
|
|
16407
16435
|
}, f))]
|
|
16408
16436
|
});
|
|
16409
16437
|
}
|
|
16410
|
-
const
|
|
16438
|
+
const JM = [{
|
|
16411
16439
|
label: "Horizontal",
|
|
16412
16440
|
value: "horizontal"
|
|
16413
16441
|
}, {
|
|
16414
16442
|
label: "Vertical",
|
|
16415
16443
|
value: "vertical"
|
|
16416
16444
|
}];
|
|
16417
|
-
function
|
|
16445
|
+
function ZM({
|
|
16418
16446
|
control: e,
|
|
16419
16447
|
index: t,
|
|
16420
16448
|
remove: n,
|
|
@@ -16481,7 +16509,7 @@ function JM({
|
|
|
16481
16509
|
field: a
|
|
16482
16510
|
}) => /* @__PURE__ */ l(Ee, {
|
|
16483
16511
|
label: "Orientation",
|
|
16484
|
-
data:
|
|
16512
|
+
data: JM,
|
|
16485
16513
|
required: !0,
|
|
16486
16514
|
sx: {
|
|
16487
16515
|
flex: 1
|
|
@@ -16508,7 +16536,7 @@ function JM({
|
|
|
16508
16536
|
})]
|
|
16509
16537
|
}, t);
|
|
16510
16538
|
}
|
|
16511
|
-
function
|
|
16539
|
+
function eD({
|
|
16512
16540
|
control: e,
|
|
16513
16541
|
watch: t,
|
|
16514
16542
|
variables: n
|
|
@@ -16559,7 +16587,7 @@ function ZM({
|
|
|
16559
16587
|
})]
|
|
16560
16588
|
}), s.map((d, f) => /* @__PURE__ */ l(N.Panel, {
|
|
16561
16589
|
value: f.toString(),
|
|
16562
|
-
children: /* @__PURE__ */ l(
|
|
16590
|
+
children: /* @__PURE__ */ l(ZM, {
|
|
16563
16591
|
control: e,
|
|
16564
16592
|
index: f,
|
|
16565
16593
|
remove: i,
|
|
@@ -16569,7 +16597,7 @@ function ZM({
|
|
|
16569
16597
|
}, f))]
|
|
16570
16598
|
});
|
|
16571
16599
|
}
|
|
16572
|
-
const
|
|
16600
|
+
const tD = [{
|
|
16573
16601
|
label: "Linear",
|
|
16574
16602
|
value: "linear"
|
|
16575
16603
|
}, {
|
|
@@ -16581,7 +16609,7 @@ const eD = [{
|
|
|
16581
16609
|
}, {
|
|
16582
16610
|
label: "Polynomial",
|
|
16583
16611
|
value: "polynomial"
|
|
16584
|
-
}],
|
|
16612
|
+
}], nD = [{
|
|
16585
16613
|
label: "solid",
|
|
16586
16614
|
value: "solid"
|
|
16587
16615
|
}, {
|
|
@@ -16591,7 +16619,7 @@ const eD = [{
|
|
|
16591
16619
|
label: "dotted",
|
|
16592
16620
|
value: "dotted"
|
|
16593
16621
|
}];
|
|
16594
|
-
function
|
|
16622
|
+
function rD({
|
|
16595
16623
|
control: e,
|
|
16596
16624
|
regressionItem: t,
|
|
16597
16625
|
index: n,
|
|
@@ -16676,7 +16704,7 @@ function nD({
|
|
|
16676
16704
|
field: s
|
|
16677
16705
|
}) => /* @__PURE__ */ l(Ee, {
|
|
16678
16706
|
label: "Method",
|
|
16679
|
-
data:
|
|
16707
|
+
data: tD,
|
|
16680
16708
|
sx: {
|
|
16681
16709
|
flex: 1
|
|
16682
16710
|
},
|
|
@@ -16709,7 +16737,7 @@ function nD({
|
|
|
16709
16737
|
field: s
|
|
16710
16738
|
}) => /* @__PURE__ */ l(Ee, {
|
|
16711
16739
|
label: "Line Type",
|
|
16712
|
-
data:
|
|
16740
|
+
data: nD,
|
|
16713
16741
|
sx: {
|
|
16714
16742
|
flexGrow: 1
|
|
16715
16743
|
},
|
|
@@ -16759,7 +16787,7 @@ function nD({
|
|
|
16759
16787
|
})]
|
|
16760
16788
|
}, n);
|
|
16761
16789
|
}
|
|
16762
|
-
function
|
|
16790
|
+
function oD({
|
|
16763
16791
|
control: e,
|
|
16764
16792
|
watch: t,
|
|
16765
16793
|
data: n
|
|
@@ -16828,7 +16856,7 @@ function rD({
|
|
|
16828
16856
|
})]
|
|
16829
16857
|
}), s.map((f, p) => /* @__PURE__ */ l(N.Panel, {
|
|
16830
16858
|
value: p.toString(),
|
|
16831
|
-
children: /* @__PURE__ */ l(
|
|
16859
|
+
children: /* @__PURE__ */ l(rD, {
|
|
16832
16860
|
regressionItem: f,
|
|
16833
16861
|
control: e,
|
|
16834
16862
|
index: p,
|
|
@@ -16854,14 +16882,14 @@ const Wo = {
|
|
|
16854
16882
|
].join(`
|
|
16855
16883
|
`)
|
|
16856
16884
|
}
|
|
16857
|
-
},
|
|
16885
|
+
}, iD = [{
|
|
16858
16886
|
label: "No gap between bars",
|
|
16859
16887
|
value: "0%"
|
|
16860
16888
|
}, {
|
|
16861
16889
|
label: "Bars overlapping on each other",
|
|
16862
16890
|
value: "-100%"
|
|
16863
16891
|
}];
|
|
16864
|
-
function
|
|
16892
|
+
function aD({
|
|
16865
16893
|
control: e,
|
|
16866
16894
|
index: t
|
|
16867
16895
|
}) {
|
|
@@ -16902,7 +16930,7 @@ function iD({
|
|
|
16902
16930
|
field: n
|
|
16903
16931
|
}) => /* @__PURE__ */ l(Ee, {
|
|
16904
16932
|
label: "Bar Gap",
|
|
16905
|
-
data:
|
|
16933
|
+
data: iD,
|
|
16906
16934
|
sx: {
|
|
16907
16935
|
flexGrow: 1
|
|
16908
16936
|
},
|
|
@@ -16911,7 +16939,7 @@ function iD({
|
|
|
16911
16939
|
})]
|
|
16912
16940
|
});
|
|
16913
16941
|
}
|
|
16914
|
-
const
|
|
16942
|
+
const lD = [{
|
|
16915
16943
|
label: "off",
|
|
16916
16944
|
value: "false"
|
|
16917
16945
|
}, {
|
|
@@ -16923,7 +16951,7 @@ const aD = [{
|
|
|
16923
16951
|
}, {
|
|
16924
16952
|
label: "end",
|
|
16925
16953
|
value: "end"
|
|
16926
|
-
}],
|
|
16954
|
+
}], sD = [{
|
|
16927
16955
|
label: "solid",
|
|
16928
16956
|
value: "solid"
|
|
16929
16957
|
}, {
|
|
@@ -16933,7 +16961,7 @@ const aD = [{
|
|
|
16933
16961
|
label: "dotted",
|
|
16934
16962
|
value: "dotted"
|
|
16935
16963
|
}];
|
|
16936
|
-
function
|
|
16964
|
+
function cD({
|
|
16937
16965
|
control: e,
|
|
16938
16966
|
index: t
|
|
16939
16967
|
}) {
|
|
@@ -16952,7 +16980,7 @@ function sD({
|
|
|
16952
16980
|
field: n
|
|
16953
16981
|
}) => /* @__PURE__ */ l(Ee, {
|
|
16954
16982
|
label: "Line Type",
|
|
16955
|
-
data:
|
|
16983
|
+
data: sD,
|
|
16956
16984
|
sx: {
|
|
16957
16985
|
flexGrow: 1
|
|
16958
16986
|
},
|
|
@@ -16983,7 +17011,7 @@ function sD({
|
|
|
16983
17011
|
field: n
|
|
16984
17012
|
}) => /* @__PURE__ */ l(Ee, {
|
|
16985
17013
|
label: "Step",
|
|
16986
|
-
data:
|
|
17014
|
+
data: lD,
|
|
16987
17015
|
sx: {
|
|
16988
17016
|
flexGrow: 1,
|
|
16989
17017
|
maxWidth: "48%"
|
|
@@ -17034,7 +17062,7 @@ function sD({
|
|
|
17034
17062
|
})]
|
|
17035
17063
|
});
|
|
17036
17064
|
}
|
|
17037
|
-
const
|
|
17065
|
+
const uD = ({
|
|
17038
17066
|
value: e,
|
|
17039
17067
|
onChange: t
|
|
17040
17068
|
}) => /* @__PURE__ */ l(Ae, {
|
|
@@ -17052,7 +17080,7 @@ const cD = ({
|
|
|
17052
17080
|
}
|
|
17053
17081
|
}
|
|
17054
17082
|
})
|
|
17055
|
-
}),
|
|
17083
|
+
}), dD = ({
|
|
17056
17084
|
value: e,
|
|
17057
17085
|
onChange: t,
|
|
17058
17086
|
data: n
|
|
@@ -17108,7 +17136,7 @@ const cD = ({
|
|
|
17108
17136
|
label: "Dynamic by a custom function",
|
|
17109
17137
|
labelPosition: "center",
|
|
17110
17138
|
variant: "dashed"
|
|
17111
|
-
}), /* @__PURE__ */ l(
|
|
17139
|
+
}), /* @__PURE__ */ l(uD, {
|
|
17112
17140
|
value: a.func_content,
|
|
17113
17141
|
onChange: d
|
|
17114
17142
|
}), /* @__PURE__ */ m(D, {
|
|
@@ -17135,15 +17163,15 @@ const cD = ({
|
|
|
17135
17163
|
})
|
|
17136
17164
|
})]
|
|
17137
17165
|
});
|
|
17138
|
-
},
|
|
17166
|
+
}, fD = ({
|
|
17139
17167
|
value: e,
|
|
17140
17168
|
onChange: t,
|
|
17141
17169
|
data: n
|
|
17142
|
-
}) => e.type !== "dynamic" ? null : /* @__PURE__ */ l(
|
|
17170
|
+
}) => e.type !== "dynamic" ? null : /* @__PURE__ */ l(dD, {
|
|
17143
17171
|
value: e,
|
|
17144
17172
|
onChange: t,
|
|
17145
17173
|
data: n
|
|
17146
|
-
}),
|
|
17174
|
+
}), pD = ({
|
|
17147
17175
|
value: e,
|
|
17148
17176
|
onChange: t
|
|
17149
17177
|
}) => {
|
|
@@ -17165,13 +17193,13 @@ const cD = ({
|
|
|
17165
17193
|
onChange: n
|
|
17166
17194
|
})
|
|
17167
17195
|
});
|
|
17168
|
-
},
|
|
17196
|
+
}, gD = [{
|
|
17169
17197
|
label: "Static",
|
|
17170
17198
|
value: "static"
|
|
17171
17199
|
}, {
|
|
17172
17200
|
label: "Dynamic",
|
|
17173
17201
|
value: "dynamic"
|
|
17174
|
-
}],
|
|
17202
|
+
}], hD = An(({
|
|
17175
17203
|
label: e = "Size",
|
|
17176
17204
|
value: t,
|
|
17177
17205
|
onChange: n,
|
|
@@ -17187,23 +17215,23 @@ const cD = ({
|
|
|
17187
17215
|
children: [/* @__PURE__ */ l(Ee, {
|
|
17188
17216
|
ref: o,
|
|
17189
17217
|
label: e,
|
|
17190
|
-
data:
|
|
17218
|
+
data: gD,
|
|
17191
17219
|
value: t.type,
|
|
17192
17220
|
onChange: i,
|
|
17193
17221
|
sx: {
|
|
17194
17222
|
flexGrow: 1
|
|
17195
17223
|
}
|
|
17196
|
-
}), /* @__PURE__ */ l(
|
|
17224
|
+
}), /* @__PURE__ */ l(pD, {
|
|
17197
17225
|
value: t,
|
|
17198
17226
|
onChange: n
|
|
17199
|
-
}), /* @__PURE__ */ l(
|
|
17227
|
+
}), /* @__PURE__ */ l(fD, {
|
|
17200
17228
|
value: t,
|
|
17201
17229
|
onChange: n,
|
|
17202
17230
|
data: r
|
|
17203
17231
|
})]
|
|
17204
17232
|
});
|
|
17205
17233
|
});
|
|
17206
|
-
function
|
|
17234
|
+
function vD({
|
|
17207
17235
|
control: e,
|
|
17208
17236
|
index: t,
|
|
17209
17237
|
data: n
|
|
@@ -17213,14 +17241,14 @@ function hD({
|
|
|
17213
17241
|
control: e,
|
|
17214
17242
|
render: ({
|
|
17215
17243
|
field: r
|
|
17216
|
-
}) => /* @__PURE__ */ l(
|
|
17244
|
+
}) => /* @__PURE__ */ l(hD, {
|
|
17217
17245
|
label: "Size",
|
|
17218
17246
|
data: n,
|
|
17219
17247
|
...r
|
|
17220
17248
|
})
|
|
17221
17249
|
});
|
|
17222
17250
|
}
|
|
17223
|
-
const
|
|
17251
|
+
const mD = [{
|
|
17224
17252
|
label: "off",
|
|
17225
17253
|
value: ""
|
|
17226
17254
|
}, {
|
|
@@ -17263,7 +17291,7 @@ const vD = [{
|
|
|
17263
17291
|
label: "insideBottomRight",
|
|
17264
17292
|
value: "insideBottomRight"
|
|
17265
17293
|
}];
|
|
17266
|
-
function
|
|
17294
|
+
function yD({
|
|
17267
17295
|
control: e,
|
|
17268
17296
|
index: t,
|
|
17269
17297
|
remove: n,
|
|
@@ -17380,13 +17408,13 @@ function mD({
|
|
|
17380
17408
|
...s
|
|
17381
17409
|
})
|
|
17382
17410
|
})]
|
|
17383
|
-
}), a === "line" && /* @__PURE__ */ l(
|
|
17411
|
+
}), a === "line" && /* @__PURE__ */ l(cD, {
|
|
17384
17412
|
index: t,
|
|
17385
17413
|
control: e
|
|
17386
|
-
}), a === "bar" && /* @__PURE__ */ l(
|
|
17414
|
+
}), a === "bar" && /* @__PURE__ */ l(aD, {
|
|
17387
17415
|
index: t,
|
|
17388
17416
|
control: e
|
|
17389
|
-
}), a === "scatter" && /* @__PURE__ */ l(
|
|
17417
|
+
}), a === "scatter" && /* @__PURE__ */ l(vD, {
|
|
17390
17418
|
index: t,
|
|
17391
17419
|
control: e,
|
|
17392
17420
|
data: i
|
|
@@ -17403,7 +17431,7 @@ function mD({
|
|
|
17403
17431
|
field: s
|
|
17404
17432
|
}) => /* @__PURE__ */ l(Ee, {
|
|
17405
17433
|
label: "Label Position",
|
|
17406
|
-
data:
|
|
17434
|
+
data: mD,
|
|
17407
17435
|
...s
|
|
17408
17436
|
})
|
|
17409
17437
|
}), /* @__PURE__ */ m(W, {
|
|
@@ -17455,7 +17483,7 @@ function mD({
|
|
|
17455
17483
|
})]
|
|
17456
17484
|
}, t);
|
|
17457
17485
|
}
|
|
17458
|
-
function
|
|
17486
|
+
function bD({
|
|
17459
17487
|
control: e,
|
|
17460
17488
|
watch: t,
|
|
17461
17489
|
data: n
|
|
@@ -17524,7 +17552,7 @@ function yD({
|
|
|
17524
17552
|
})]
|
|
17525
17553
|
}), s.map((f, p) => /* @__PURE__ */ l(N.Panel, {
|
|
17526
17554
|
value: p.toString(),
|
|
17527
|
-
children: /* @__PURE__ */ l(
|
|
17555
|
+
children: /* @__PURE__ */ l(yD, {
|
|
17528
17556
|
control: e,
|
|
17529
17557
|
index: p,
|
|
17530
17558
|
remove: i,
|
|
@@ -17535,7 +17563,7 @@ function yD({
|
|
|
17535
17563
|
}, f.id))]
|
|
17536
17564
|
});
|
|
17537
17565
|
}
|
|
17538
|
-
function
|
|
17566
|
+
function SD({
|
|
17539
17567
|
control: e,
|
|
17540
17568
|
watch: t
|
|
17541
17569
|
}) {
|
|
@@ -17572,7 +17600,7 @@ function bD({
|
|
|
17572
17600
|
})
|
|
17573
17601
|
});
|
|
17574
17602
|
}
|
|
17575
|
-
const
|
|
17603
|
+
const wD = ({
|
|
17576
17604
|
disabled: e,
|
|
17577
17605
|
value: t,
|
|
17578
17606
|
onChange: n
|
|
@@ -17600,7 +17628,7 @@ const SD = ({
|
|
|
17600
17628
|
}
|
|
17601
17629
|
}
|
|
17602
17630
|
})]
|
|
17603
|
-
}),
|
|
17631
|
+
}), CD = ({
|
|
17604
17632
|
value: e,
|
|
17605
17633
|
onChange: t,
|
|
17606
17634
|
data: n
|
|
@@ -17655,7 +17683,7 @@ const SD = ({
|
|
|
17655
17683
|
label: "Enabled",
|
|
17656
17684
|
checked: a.enabled,
|
|
17657
17685
|
onChange: (g) => c(g.currentTarget.checked)
|
|
17658
|
-
}), /* @__PURE__ */ l(
|
|
17686
|
+
}), /* @__PURE__ */ l(wD, {
|
|
17659
17687
|
value: a.func_content,
|
|
17660
17688
|
onChange: f,
|
|
17661
17689
|
disabled: !a.enabled
|
|
@@ -17684,7 +17712,7 @@ const SD = ({
|
|
|
17684
17712
|
})]
|
|
17685
17713
|
});
|
|
17686
17714
|
};
|
|
17687
|
-
function
|
|
17715
|
+
function xD({
|
|
17688
17716
|
data: e,
|
|
17689
17717
|
control: t,
|
|
17690
17718
|
watch: n
|
|
@@ -17758,7 +17786,7 @@ function CD({
|
|
|
17758
17786
|
control: t,
|
|
17759
17787
|
render: ({
|
|
17760
17788
|
field: r
|
|
17761
|
-
}) => /* @__PURE__ */ l(
|
|
17789
|
+
}) => /* @__PURE__ */ l(CD, {
|
|
17762
17790
|
data: e,
|
|
17763
17791
|
...r
|
|
17764
17792
|
})
|
|
@@ -17766,7 +17794,7 @@ function CD({
|
|
|
17766
17794
|
})]
|
|
17767
17795
|
});
|
|
17768
17796
|
}
|
|
17769
|
-
const
|
|
17797
|
+
const _D = [{
|
|
17770
17798
|
label: "left",
|
|
17771
17799
|
value: "left"
|
|
17772
17800
|
}, {
|
|
@@ -17775,14 +17803,14 @@ const xD = [{
|
|
|
17775
17803
|
}, {
|
|
17776
17804
|
label: "right",
|
|
17777
17805
|
value: "right"
|
|
17778
|
-
}],
|
|
17806
|
+
}], ED = [{
|
|
17779
17807
|
label: "left",
|
|
17780
17808
|
value: "left"
|
|
17781
17809
|
}, {
|
|
17782
17810
|
label: "right",
|
|
17783
17811
|
value: "right"
|
|
17784
17812
|
}];
|
|
17785
|
-
function
|
|
17813
|
+
function OD({
|
|
17786
17814
|
control: e,
|
|
17787
17815
|
index: t,
|
|
17788
17816
|
remove: n
|
|
@@ -17823,7 +17851,7 @@ function ED({
|
|
|
17823
17851
|
}) => /* @__PURE__ */ l(Ee, {
|
|
17824
17852
|
label: "Align",
|
|
17825
17853
|
required: !0,
|
|
17826
|
-
data:
|
|
17854
|
+
data: _D,
|
|
17827
17855
|
sx: {
|
|
17828
17856
|
flex: 1
|
|
17829
17857
|
},
|
|
@@ -17846,7 +17874,7 @@ function ED({
|
|
|
17846
17874
|
}) => /* @__PURE__ */ l(Ee, {
|
|
17847
17875
|
label: "Position",
|
|
17848
17876
|
required: !0,
|
|
17849
|
-
data:
|
|
17877
|
+
data: ED,
|
|
17850
17878
|
sx: {
|
|
17851
17879
|
flex: 1
|
|
17852
17880
|
},
|
|
@@ -17881,7 +17909,7 @@ function ED({
|
|
|
17881
17909
|
})]
|
|
17882
17910
|
});
|
|
17883
17911
|
}
|
|
17884
|
-
function
|
|
17912
|
+
function RD({
|
|
17885
17913
|
control: e,
|
|
17886
17914
|
watch: t
|
|
17887
17915
|
}) {
|
|
@@ -17926,7 +17954,7 @@ function OD({
|
|
|
17926
17954
|
})]
|
|
17927
17955
|
}), a.map((c, u) => /* @__PURE__ */ l(N.Panel, {
|
|
17928
17956
|
value: u.toString(),
|
|
17929
|
-
children: /* @__PURE__ */ l(
|
|
17957
|
+
children: /* @__PURE__ */ l(OD, {
|
|
17930
17958
|
control: e,
|
|
17931
17959
|
index: u,
|
|
17932
17960
|
remove: o
|
|
@@ -17934,7 +17962,7 @@ function OD({
|
|
|
17934
17962
|
}, u))]
|
|
17935
17963
|
});
|
|
17936
17964
|
}
|
|
17937
|
-
function
|
|
17965
|
+
function TD(e) {
|
|
17938
17966
|
function t({
|
|
17939
17967
|
name: n = "",
|
|
17940
17968
|
template: r = "",
|
|
@@ -17950,7 +17978,7 @@ function RD(e) {
|
|
|
17950
17978
|
}
|
|
17951
17979
|
return e.map(t);
|
|
17952
17980
|
}
|
|
17953
|
-
function
|
|
17981
|
+
function MD(e) {
|
|
17954
17982
|
function t({
|
|
17955
17983
|
type: n,
|
|
17956
17984
|
name: r,
|
|
@@ -17999,7 +18027,7 @@ function TD(e) {
|
|
|
17999
18027
|
}
|
|
18000
18028
|
return e.map(t);
|
|
18001
18029
|
}
|
|
18002
|
-
function
|
|
18030
|
+
function DD(e) {
|
|
18003
18031
|
return e || {
|
|
18004
18032
|
templates: {
|
|
18005
18033
|
top: "",
|
|
@@ -18007,20 +18035,20 @@ function MD(e) {
|
|
|
18007
18035
|
}
|
|
18008
18036
|
};
|
|
18009
18037
|
}
|
|
18010
|
-
function
|
|
18038
|
+
function kD({
|
|
18011
18039
|
series: e,
|
|
18012
18040
|
stats: t,
|
|
18013
18041
|
reference_lines: n,
|
|
18014
18042
|
...r
|
|
18015
18043
|
}) {
|
|
18016
18044
|
return {
|
|
18017
|
-
series:
|
|
18018
|
-
stats:
|
|
18019
|
-
reference_lines:
|
|
18045
|
+
series: MD(e != null ? e : []),
|
|
18046
|
+
stats: DD(t),
|
|
18047
|
+
reference_lines: TD(n != null ? n : []),
|
|
18020
18048
|
...r
|
|
18021
18049
|
};
|
|
18022
18050
|
}
|
|
18023
|
-
function
|
|
18051
|
+
function PD({
|
|
18024
18052
|
context: e
|
|
18025
18053
|
}) {
|
|
18026
18054
|
const {
|
|
@@ -18028,7 +18056,7 @@ function kD({
|
|
|
18028
18056
|
set: n
|
|
18029
18057
|
} = rt(e.instanceData, "config"), {
|
|
18030
18058
|
variables: r
|
|
18031
|
-
} = e, o = e.data, i = de(() => nn({}, t, Es), [t]), a = de(() =>
|
|
18059
|
+
} = e, o = e.data, i = de(() => nn({}, t, Es), [t]), a = de(() => kD(i), [i]);
|
|
18032
18060
|
ke(() => {
|
|
18033
18061
|
!Vt(i, a) && (console.log("config malformed, resetting to defaults", i, a), n(a));
|
|
18034
18062
|
}, [i, a]);
|
|
@@ -18108,48 +18136,48 @@ function kD({
|
|
|
18108
18136
|
})]
|
|
18109
18137
|
}), /* @__PURE__ */ l(N.Panel, {
|
|
18110
18138
|
value: "X Axis",
|
|
18111
|
-
children: /* @__PURE__ */ l(
|
|
18139
|
+
children: /* @__PURE__ */ l(xD, {
|
|
18112
18140
|
control: s,
|
|
18113
18141
|
watch: u,
|
|
18114
18142
|
data: o
|
|
18115
18143
|
})
|
|
18116
18144
|
}), /* @__PURE__ */ l(N.Panel, {
|
|
18117
18145
|
value: "Y Axes",
|
|
18118
|
-
children: /* @__PURE__ */ l(
|
|
18146
|
+
children: /* @__PURE__ */ l(RD, {
|
|
18119
18147
|
control: s,
|
|
18120
18148
|
watch: u
|
|
18121
18149
|
})
|
|
18122
18150
|
}), /* @__PURE__ */ l(N.Panel, {
|
|
18123
18151
|
value: "Series",
|
|
18124
|
-
children: /* @__PURE__ */ l(
|
|
18152
|
+
children: /* @__PURE__ */ l(bD, {
|
|
18125
18153
|
control: s,
|
|
18126
18154
|
watch: u,
|
|
18127
18155
|
data: o
|
|
18128
18156
|
})
|
|
18129
18157
|
}), /* @__PURE__ */ l(N.Panel, {
|
|
18130
18158
|
value: "Regression Lines",
|
|
18131
|
-
children: /* @__PURE__ */ l(
|
|
18159
|
+
children: /* @__PURE__ */ l(oD, {
|
|
18132
18160
|
control: s,
|
|
18133
18161
|
watch: u,
|
|
18134
18162
|
data: o
|
|
18135
18163
|
})
|
|
18136
18164
|
}), /* @__PURE__ */ l(N.Panel, {
|
|
18137
18165
|
value: "Stats",
|
|
18138
|
-
children: /* @__PURE__ */ l(
|
|
18166
|
+
children: /* @__PURE__ */ l(SD, {
|
|
18139
18167
|
control: s,
|
|
18140
18168
|
watch: u,
|
|
18141
18169
|
data: o
|
|
18142
18170
|
})
|
|
18143
18171
|
}), /* @__PURE__ */ l(N.Panel, {
|
|
18144
18172
|
value: "Reference Lines",
|
|
18145
|
-
children: /* @__PURE__ */ l(
|
|
18173
|
+
children: /* @__PURE__ */ l(eD, {
|
|
18146
18174
|
variables: r,
|
|
18147
18175
|
control: s,
|
|
18148
18176
|
watch: u
|
|
18149
18177
|
})
|
|
18150
18178
|
}), /* @__PURE__ */ l(N.Panel, {
|
|
18151
18179
|
value: "Reference Areas",
|
|
18152
|
-
children: /* @__PURE__ */ l(
|
|
18180
|
+
children: /* @__PURE__ */ l(QM, {
|
|
18153
18181
|
variables: r,
|
|
18154
18182
|
control: s,
|
|
18155
18183
|
watch: u
|
|
@@ -18159,11 +18187,11 @@ function kD({
|
|
|
18159
18187
|
})
|
|
18160
18188
|
});
|
|
18161
18189
|
}
|
|
18162
|
-
function
|
|
18190
|
+
function ID(e) {
|
|
18163
18191
|
const t = Xo(kr(e, "variables"));
|
|
18164
18192
|
return t.stats = kr(t.stats, "variables"), t;
|
|
18165
18193
|
}
|
|
18166
|
-
function
|
|
18194
|
+
function AD(e) {
|
|
18167
18195
|
const {
|
|
18168
18196
|
rotate: t,
|
|
18169
18197
|
formatter: n = _s
|
|
@@ -18179,7 +18207,7 @@ function ID(e) {
|
|
|
18179
18207
|
}
|
|
18180
18208
|
};
|
|
18181
18209
|
}
|
|
18182
|
-
class
|
|
18210
|
+
class $D extends en {
|
|
18183
18211
|
constructor() {
|
|
18184
18212
|
super(...arguments);
|
|
18185
18213
|
he(this, "VERSION", 3);
|
|
@@ -18199,27 +18227,27 @@ class AD extends en {
|
|
|
18199
18227
|
}), (dt(o, "stats.variables") || []).forEach((s) => {
|
|
18200
18228
|
r.variables.find((c) => c.name === s.name) || r.addVariable(s);
|
|
18201
18229
|
}), {
|
|
18202
|
-
config:
|
|
18230
|
+
config: ID(o)
|
|
18203
18231
|
};
|
|
18204
18232
|
}), this.version(3, (n) => ({
|
|
18205
18233
|
version: 3,
|
|
18206
|
-
config:
|
|
18234
|
+
config: AD(n.config)
|
|
18207
18235
|
}));
|
|
18208
18236
|
}
|
|
18209
18237
|
}
|
|
18210
|
-
const
|
|
18238
|
+
const ND = {
|
|
18211
18239
|
displayName: "Cartesian Chart",
|
|
18212
|
-
migrator: new
|
|
18240
|
+
migrator: new $D(),
|
|
18213
18241
|
name: "cartesian",
|
|
18214
|
-
viewRender:
|
|
18215
|
-
configRender:
|
|
18242
|
+
viewRender: qM,
|
|
18243
|
+
configRender: PD,
|
|
18216
18244
|
createConfig: () => Es,
|
|
18217
18245
|
triggers: [Pg]
|
|
18218
18246
|
}, Ig = {
|
|
18219
18247
|
id: "builtin:echarts:click-echart:series",
|
|
18220
18248
|
displayName: "Click Chart Series",
|
|
18221
|
-
nameRender:
|
|
18222
|
-
configRender:
|
|
18249
|
+
nameRender: VD,
|
|
18250
|
+
configRender: LD,
|
|
18223
18251
|
payload: [{
|
|
18224
18252
|
name: "type",
|
|
18225
18253
|
description: "Always 'click'",
|
|
@@ -18242,10 +18270,10 @@ const $D = {
|
|
|
18242
18270
|
valueType: "object"
|
|
18243
18271
|
}]
|
|
18244
18272
|
};
|
|
18245
|
-
function
|
|
18273
|
+
function LD(e) {
|
|
18246
18274
|
return /* @__PURE__ */ l($e, {});
|
|
18247
18275
|
}
|
|
18248
|
-
function
|
|
18276
|
+
function VD(e) {
|
|
18249
18277
|
return /* @__PURE__ */ l(F, {
|
|
18250
18278
|
children: "Click chart's series"
|
|
18251
18279
|
});
|
|
@@ -18271,7 +18299,7 @@ function Rs(e) {
|
|
|
18271
18299
|
mantissa: 0
|
|
18272
18300
|
});
|
|
18273
18301
|
}
|
|
18274
|
-
function
|
|
18302
|
+
function FD(e) {
|
|
18275
18303
|
const t = e.value[1];
|
|
18276
18304
|
try {
|
|
18277
18305
|
return Rs(t);
|
|
@@ -18279,7 +18307,7 @@ function VD(e) {
|
|
|
18279
18307
|
return console.error(n), t;
|
|
18280
18308
|
}
|
|
18281
18309
|
}
|
|
18282
|
-
function
|
|
18310
|
+
function zD(e) {
|
|
18283
18311
|
const t = Array.isArray(e) ? e : [e];
|
|
18284
18312
|
if (t.length === 0)
|
|
18285
18313
|
return "";
|
|
@@ -18290,7 +18318,7 @@ function FD(e) {
|
|
|
18290
18318
|
return n.unshift(`<strong>${t[0].name}</strong>`), n.join("<br />");
|
|
18291
18319
|
}
|
|
18292
18320
|
Pt.use([Al, $l, ei, Lr, Vr, Fr, Jn]);
|
|
18293
|
-
function
|
|
18321
|
+
function jD({
|
|
18294
18322
|
context: e,
|
|
18295
18323
|
instance: t
|
|
18296
18324
|
}) {
|
|
@@ -18339,7 +18367,7 @@ function zD({
|
|
|
18339
18367
|
}],
|
|
18340
18368
|
tooltip: {
|
|
18341
18369
|
trigger: "axis",
|
|
18342
|
-
formatter:
|
|
18370
|
+
formatter: zD
|
|
18343
18371
|
},
|
|
18344
18372
|
xAxis: [{
|
|
18345
18373
|
type: "category",
|
|
@@ -18407,7 +18435,7 @@ function zD({
|
|
|
18407
18435
|
label: {
|
|
18408
18436
|
show: !0,
|
|
18409
18437
|
position: "top",
|
|
18410
|
-
formatter:
|
|
18438
|
+
formatter: FD
|
|
18411
18439
|
},
|
|
18412
18440
|
yAxisIndex: 1,
|
|
18413
18441
|
data: v
|
|
@@ -18425,7 +18453,7 @@ function zD({
|
|
|
18425
18453
|
}
|
|
18426
18454
|
});
|
|
18427
18455
|
}
|
|
18428
|
-
function
|
|
18456
|
+
function KD({
|
|
18429
18457
|
context: e
|
|
18430
18458
|
}) {
|
|
18431
18459
|
const {
|
|
@@ -18585,7 +18613,7 @@ function jD({
|
|
|
18585
18613
|
})
|
|
18586
18614
|
});
|
|
18587
18615
|
}
|
|
18588
|
-
class
|
|
18616
|
+
class HD extends en {
|
|
18589
18617
|
constructor() {
|
|
18590
18618
|
super(...arguments);
|
|
18591
18619
|
he(this, "VERSION", 1);
|
|
@@ -18597,12 +18625,12 @@ class KD extends en {
|
|
|
18597
18625
|
}));
|
|
18598
18626
|
}
|
|
18599
18627
|
}
|
|
18600
|
-
const
|
|
18628
|
+
const BD = {
|
|
18601
18629
|
displayName: "Pareto Chart",
|
|
18602
|
-
migrator: new
|
|
18630
|
+
migrator: new HD(),
|
|
18603
18631
|
name: "paretoChart",
|
|
18604
|
-
viewRender:
|
|
18605
|
-
configRender:
|
|
18632
|
+
viewRender: jD,
|
|
18633
|
+
configRender: KD,
|
|
18606
18634
|
createConfig: () => Os,
|
|
18607
18635
|
triggers: [Ig]
|
|
18608
18636
|
}, Ts = {
|
|
@@ -18610,7 +18638,7 @@ const HD = {
|
|
|
18610
18638
|
value_field: ""
|
|
18611
18639
|
};
|
|
18612
18640
|
Pt.use([Ov, Jn]);
|
|
18613
|
-
const
|
|
18641
|
+
const GD = {
|
|
18614
18642
|
tooltip: {
|
|
18615
18643
|
show: !0
|
|
18616
18644
|
},
|
|
@@ -18644,7 +18672,7 @@ const BD = {
|
|
|
18644
18672
|
right: 10
|
|
18645
18673
|
}
|
|
18646
18674
|
};
|
|
18647
|
-
function
|
|
18675
|
+
function WD({
|
|
18648
18676
|
context: e
|
|
18649
18677
|
}) {
|
|
18650
18678
|
const {
|
|
@@ -18667,7 +18695,7 @@ function GD({
|
|
|
18667
18695
|
};
|
|
18668
18696
|
}
|
|
18669
18697
|
}
|
|
18670
|
-
}), [r]), u = Sd({},
|
|
18698
|
+
}), [r]), u = Sd({}, GD, c, {
|
|
18671
18699
|
series: {
|
|
18672
18700
|
data: s
|
|
18673
18701
|
}
|
|
@@ -18681,7 +18709,7 @@ function GD({
|
|
|
18681
18709
|
}
|
|
18682
18710
|
});
|
|
18683
18711
|
}
|
|
18684
|
-
function
|
|
18712
|
+
function qD({
|
|
18685
18713
|
context: e
|
|
18686
18714
|
}) {
|
|
18687
18715
|
const {
|
|
@@ -18747,7 +18775,7 @@ function WD({
|
|
|
18747
18775
|
})
|
|
18748
18776
|
});
|
|
18749
18777
|
}
|
|
18750
|
-
class
|
|
18778
|
+
class UD extends en {
|
|
18751
18779
|
constructor() {
|
|
18752
18780
|
super(...arguments);
|
|
18753
18781
|
he(this, "VERSION", 1);
|
|
@@ -18759,12 +18787,12 @@ class qD extends en {
|
|
|
18759
18787
|
}));
|
|
18760
18788
|
}
|
|
18761
18789
|
}
|
|
18762
|
-
const
|
|
18790
|
+
const YD = {
|
|
18763
18791
|
displayName: "Pie Chart",
|
|
18764
|
-
migrator: new
|
|
18792
|
+
migrator: new UD(),
|
|
18765
18793
|
name: "pie",
|
|
18766
|
-
viewRender:
|
|
18767
|
-
configRender:
|
|
18794
|
+
viewRender: WD,
|
|
18795
|
+
configRender: qD,
|
|
18768
18796
|
createConfig: () => Ts
|
|
18769
18797
|
};
|
|
18770
18798
|
function Ag(e) {
|
|
@@ -18776,13 +18804,13 @@ function Ag(e) {
|
|
|
18776
18804
|
}
|
|
18777
18805
|
} : (t) => t;
|
|
18778
18806
|
}
|
|
18779
|
-
function
|
|
18807
|
+
function XD(e) {
|
|
18780
18808
|
return {
|
|
18781
18809
|
show: !0,
|
|
18782
18810
|
formatter: ({ dimensionIndex: t, value: n }) => Ag(e.dimensions[t].formatter)(n)
|
|
18783
18811
|
};
|
|
18784
18812
|
}
|
|
18785
|
-
function
|
|
18813
|
+
function QD(e) {
|
|
18786
18814
|
return ({ name: t, marker: n, value: r }) => {
|
|
18787
18815
|
if (r.length === 0)
|
|
18788
18816
|
return "";
|
|
@@ -18821,7 +18849,7 @@ function XD(e) {
|
|
|
18821
18849
|
`;
|
|
18822
18850
|
};
|
|
18823
18851
|
}
|
|
18824
|
-
const
|
|
18852
|
+
const JD = {
|
|
18825
18853
|
legend: {
|
|
18826
18854
|
show: !0,
|
|
18827
18855
|
bottom: 0,
|
|
@@ -18831,7 +18859,7 @@ const QD = {
|
|
|
18831
18859
|
trigger: "item"
|
|
18832
18860
|
}
|
|
18833
18861
|
};
|
|
18834
|
-
function
|
|
18862
|
+
function ZD(e, t) {
|
|
18835
18863
|
const n = [
|
|
18836
18864
|
"#66B4DB",
|
|
18837
18865
|
"#39BFA2",
|
|
@@ -18868,7 +18896,7 @@ function JD(e, t) {
|
|
|
18868
18896
|
},
|
|
18869
18897
|
tooltip: {
|
|
18870
18898
|
confine: !0,
|
|
18871
|
-
formatter:
|
|
18899
|
+
formatter: QD(e)
|
|
18872
18900
|
},
|
|
18873
18901
|
legend: {
|
|
18874
18902
|
show: !0,
|
|
@@ -18884,18 +18912,18 @@ function JD(e, t) {
|
|
|
18884
18912
|
areaStyle: {
|
|
18885
18913
|
opacity: 0.4
|
|
18886
18914
|
},
|
|
18887
|
-
label:
|
|
18915
|
+
label: XD(e)
|
|
18888
18916
|
},
|
|
18889
18917
|
color: n
|
|
18890
18918
|
};
|
|
18891
|
-
return Be.merge({},
|
|
18919
|
+
return Be.merge({}, JD, i);
|
|
18892
18920
|
}
|
|
18893
18921
|
const Ms = {
|
|
18894
18922
|
series_name_key: "name",
|
|
18895
18923
|
dimensions: []
|
|
18896
18924
|
};
|
|
18897
18925
|
Pt.use([Rv, Lr, Vr, Fr, Jn]);
|
|
18898
|
-
function
|
|
18926
|
+
function ek({
|
|
18899
18927
|
context: e
|
|
18900
18928
|
}) {
|
|
18901
18929
|
const {
|
|
@@ -18903,7 +18931,7 @@ function ZD({
|
|
|
18903
18931
|
} = rt(e.instanceData, "config"), {
|
|
18904
18932
|
width: n,
|
|
18905
18933
|
height: r
|
|
18906
|
-
} = e.viewport, o = e.data, i = de(() =>
|
|
18934
|
+
} = e.viewport, o = e.data, i = de(() => ZD(nn({}, t, Ms), o), [t, o]);
|
|
18907
18935
|
return !n || !r || !t || Ml(t == null ? void 0 : t.dimensions) ? null : /* @__PURE__ */ l(Ae, {
|
|
18908
18936
|
children: /* @__PURE__ */ l(Zn, {
|
|
18909
18937
|
echarts: Pt,
|
|
@@ -18915,7 +18943,7 @@ function ZD({
|
|
|
18915
18943
|
})
|
|
18916
18944
|
});
|
|
18917
18945
|
}
|
|
18918
|
-
function
|
|
18946
|
+
function tk({
|
|
18919
18947
|
control: e,
|
|
18920
18948
|
index: t,
|
|
18921
18949
|
remove: n,
|
|
@@ -19005,7 +19033,7 @@ function ek({
|
|
|
19005
19033
|
})]
|
|
19006
19034
|
}, t);
|
|
19007
19035
|
}
|
|
19008
|
-
function
|
|
19036
|
+
function nk({
|
|
19009
19037
|
control: e,
|
|
19010
19038
|
watch: t,
|
|
19011
19039
|
data: n
|
|
@@ -19027,7 +19055,7 @@ function tk({
|
|
|
19027
19055
|
formatter: Cr
|
|
19028
19056
|
});
|
|
19029
19057
|
return /* @__PURE__ */ m(W, {
|
|
19030
|
-
children: [s.map((u, d) => /* @__PURE__ */ l(
|
|
19058
|
+
children: [s.map((u, d) => /* @__PURE__ */ l(tk, {
|
|
19031
19059
|
data: n,
|
|
19032
19060
|
control: e,
|
|
19033
19061
|
index: d,
|
|
@@ -19042,7 +19070,7 @@ function tk({
|
|
|
19042
19070
|
})]
|
|
19043
19071
|
});
|
|
19044
19072
|
}
|
|
19045
|
-
function
|
|
19073
|
+
function rk(e) {
|
|
19046
19074
|
function t({
|
|
19047
19075
|
name: n = "",
|
|
19048
19076
|
data_key: r = "",
|
|
@@ -19058,7 +19086,7 @@ function nk(e) {
|
|
|
19058
19086
|
}
|
|
19059
19087
|
return e.map(t);
|
|
19060
19088
|
}
|
|
19061
|
-
function
|
|
19089
|
+
function ok({
|
|
19062
19090
|
context: e
|
|
19063
19091
|
}) {
|
|
19064
19092
|
const t = e.data, {
|
|
@@ -19068,7 +19096,7 @@ function rk({
|
|
|
19068
19096
|
dimensions: i,
|
|
19069
19097
|
series_name_key: a
|
|
19070
19098
|
} = o, s = de(() => ({
|
|
19071
|
-
dimensions:
|
|
19099
|
+
dimensions: rk(i != null ? i : []),
|
|
19072
19100
|
series_name_key: a
|
|
19073
19101
|
}), [i, a]);
|
|
19074
19102
|
ke(() => {
|
|
@@ -19129,7 +19157,7 @@ function rk({
|
|
|
19129
19157
|
...v
|
|
19130
19158
|
})
|
|
19131
19159
|
})
|
|
19132
|
-
}), /* @__PURE__ */ l(
|
|
19160
|
+
}), /* @__PURE__ */ l(nk, {
|
|
19133
19161
|
control: c,
|
|
19134
19162
|
watch: d,
|
|
19135
19163
|
data: t
|
|
@@ -19137,7 +19165,7 @@ function rk({
|
|
|
19137
19165
|
})
|
|
19138
19166
|
});
|
|
19139
19167
|
}
|
|
19140
|
-
class
|
|
19168
|
+
class ik extends en {
|
|
19141
19169
|
constructor() {
|
|
19142
19170
|
super(...arguments);
|
|
19143
19171
|
he(this, "VERSION", 1);
|
|
@@ -19149,15 +19177,15 @@ class ok extends en {
|
|
|
19149
19177
|
}));
|
|
19150
19178
|
}
|
|
19151
19179
|
}
|
|
19152
|
-
const
|
|
19180
|
+
const ak = {
|
|
19153
19181
|
displayName: "Radar Chart",
|
|
19154
|
-
migrator: new
|
|
19182
|
+
migrator: new ik(),
|
|
19155
19183
|
name: "radar",
|
|
19156
|
-
viewRender:
|
|
19157
|
-
configRender:
|
|
19184
|
+
viewRender: ek,
|
|
19185
|
+
configRender: ok,
|
|
19158
19186
|
createConfig: () => Ms
|
|
19159
19187
|
};
|
|
19160
|
-
function
|
|
19188
|
+
function lk(e, t) {
|
|
19161
19189
|
switch (e.config.method) {
|
|
19162
19190
|
case "linear":
|
|
19163
19191
|
return [...cr.regressionLinear()(t)];
|
|
@@ -19171,11 +19199,11 @@ function ak(e, t) {
|
|
|
19171
19199
|
return [];
|
|
19172
19200
|
}
|
|
19173
19201
|
}
|
|
19174
|
-
function
|
|
19202
|
+
function sk({ regression: e }, t) {
|
|
19175
19203
|
const n = [], r = [];
|
|
19176
19204
|
if (t.length === 0)
|
|
19177
19205
|
return { regressionSeries: n, regressionXAxes: r };
|
|
19178
|
-
const { transform: o, plot: i, name: a } = e, s =
|
|
19206
|
+
const { transform: o, plot: i, name: a } = e, s = lk(o, t);
|
|
19179
19207
|
return n.push({
|
|
19180
19208
|
...i,
|
|
19181
19209
|
name: a,
|
|
@@ -19187,7 +19215,7 @@ function lk({ regression: e }, t) {
|
|
|
19187
19215
|
}
|
|
19188
19216
|
}), { regressionSeries: n, regressionXAxes: r };
|
|
19189
19217
|
}
|
|
19190
|
-
const
|
|
19218
|
+
const ck = {
|
|
19191
19219
|
tooltip: {
|
|
19192
19220
|
trigger: "axis"
|
|
19193
19221
|
},
|
|
@@ -19209,12 +19237,12 @@ const sk = {
|
|
|
19209
19237
|
}
|
|
19210
19238
|
]
|
|
19211
19239
|
};
|
|
19212
|
-
function
|
|
19240
|
+
function uk(e, t) {
|
|
19213
19241
|
var i, a;
|
|
19214
19242
|
const n = Be.uniqBy(
|
|
19215
19243
|
t.map((s) => [s[e.x_axis.data_key], s[e.regression.y_axis_data_key]]),
|
|
19216
19244
|
0
|
|
19217
|
-
), { regressionSeries: r } =
|
|
19245
|
+
), { regressionSeries: r } = sk(e, n), o = {
|
|
19218
19246
|
xAxis: {
|
|
19219
19247
|
type: "category",
|
|
19220
19248
|
name: (i = e.x_axis.name) != null ? i : "",
|
|
@@ -19240,12 +19268,12 @@ function ck(e, t) {
|
|
|
19240
19268
|
...r
|
|
19241
19269
|
]
|
|
19242
19270
|
};
|
|
19243
|
-
return nn({}, o,
|
|
19271
|
+
return nn({}, o, ck);
|
|
19244
19272
|
}
|
|
19245
19273
|
function yi(e, t, n) {
|
|
19246
19274
|
return 1 - (1 - e) * (t - 1) / (t - n - 1);
|
|
19247
19275
|
}
|
|
19248
|
-
function
|
|
19276
|
+
function dk(e, t) {
|
|
19249
19277
|
if (!t)
|
|
19250
19278
|
return {
|
|
19251
19279
|
expression: "",
|
|
@@ -19427,7 +19455,7 @@ const Ds = {
|
|
|
19427
19455
|
};
|
|
19428
19456
|
Pt.use([ei, Nl, Lr, Vr, Fr, Jn]);
|
|
19429
19457
|
Pt.registerTransform(Ll.regression);
|
|
19430
|
-
function
|
|
19458
|
+
function fk({
|
|
19431
19459
|
context: e
|
|
19432
19460
|
}) {
|
|
19433
19461
|
const {
|
|
@@ -19442,11 +19470,11 @@ function dk({
|
|
|
19442
19470
|
...g,
|
|
19443
19471
|
[f]: Number(g[f])
|
|
19444
19472
|
}) : d;
|
|
19445
|
-
}, [e.data, t == null ? void 0 : t.regression.y_axis_data_key]), i = de(() =>
|
|
19473
|
+
}, [e.data, t == null ? void 0 : t.regression.y_axis_data_key]), i = de(() => uk(nn({}, t, Ds), o), [t, o]), {
|
|
19446
19474
|
expression: a,
|
|
19447
19475
|
rSquared: s,
|
|
19448
19476
|
adjustedRSquared: c
|
|
19449
|
-
} = de(() =>
|
|
19477
|
+
} = de(() => dk(o, t), [t, o]);
|
|
19450
19478
|
if (!n || !r || !t)
|
|
19451
19479
|
return null;
|
|
19452
19480
|
let u = r;
|
|
@@ -19513,7 +19541,7 @@ function dk({
|
|
|
19513
19541
|
})]
|
|
19514
19542
|
});
|
|
19515
19543
|
}
|
|
19516
|
-
const
|
|
19544
|
+
const pk = [{
|
|
19517
19545
|
label: "Linear",
|
|
19518
19546
|
value: "linear"
|
|
19519
19547
|
}, {
|
|
@@ -19526,7 +19554,7 @@ const fk = [{
|
|
|
19526
19554
|
label: "Polynomial",
|
|
19527
19555
|
value: "polynomial"
|
|
19528
19556
|
}];
|
|
19529
|
-
function
|
|
19557
|
+
function gk({
|
|
19530
19558
|
control: e,
|
|
19531
19559
|
watch: t,
|
|
19532
19560
|
data: n
|
|
@@ -19574,7 +19602,7 @@ function pk({
|
|
|
19574
19602
|
field: o
|
|
19575
19603
|
}) => /* @__PURE__ */ l(Ee, {
|
|
19576
19604
|
label: "Method",
|
|
19577
|
-
data:
|
|
19605
|
+
data: pk,
|
|
19578
19606
|
sx: {
|
|
19579
19607
|
flex: 1
|
|
19580
19608
|
},
|
|
@@ -19610,7 +19638,7 @@ function pk({
|
|
|
19610
19638
|
})]
|
|
19611
19639
|
});
|
|
19612
19640
|
}
|
|
19613
|
-
function
|
|
19641
|
+
function hk({
|
|
19614
19642
|
context: e
|
|
19615
19643
|
}) {
|
|
19616
19644
|
const {
|
|
@@ -19715,7 +19743,7 @@ function gk({
|
|
|
19715
19743
|
children: [/* @__PURE__ */ l(_r.Control, {
|
|
19716
19744
|
children: "Regression Line"
|
|
19717
19745
|
}), /* @__PURE__ */ l(_r.Panel, {
|
|
19718
|
-
children: /* @__PURE__ */ l(
|
|
19746
|
+
children: /* @__PURE__ */ l(gk, {
|
|
19719
19747
|
control: i,
|
|
19720
19748
|
watch: s,
|
|
19721
19749
|
data: r
|
|
@@ -19726,7 +19754,7 @@ function gk({
|
|
|
19726
19754
|
})
|
|
19727
19755
|
});
|
|
19728
19756
|
}
|
|
19729
|
-
class
|
|
19757
|
+
class vk extends en {
|
|
19730
19758
|
constructor() {
|
|
19731
19759
|
super(...arguments);
|
|
19732
19760
|
he(this, "VERSION", 1);
|
|
@@ -19738,17 +19766,17 @@ class hk extends en {
|
|
|
19738
19766
|
}));
|
|
19739
19767
|
}
|
|
19740
19768
|
}
|
|
19741
|
-
const
|
|
19769
|
+
const mk = {
|
|
19742
19770
|
displayName: "Regression Chart",
|
|
19743
|
-
migrator: new
|
|
19771
|
+
migrator: new vk(),
|
|
19744
19772
|
name: "regressionChart",
|
|
19745
|
-
viewRender:
|
|
19746
|
-
configRender:
|
|
19773
|
+
viewRender: fk,
|
|
19774
|
+
configRender: hk,
|
|
19747
19775
|
createConfig: () => Ds
|
|
19748
19776
|
}, ks = {
|
|
19749
19777
|
content: ""
|
|
19750
19778
|
};
|
|
19751
|
-
function
|
|
19779
|
+
function yk({
|
|
19752
19780
|
context: e
|
|
19753
19781
|
}) {
|
|
19754
19782
|
const {
|
|
@@ -19810,7 +19838,7 @@ const $g = An(({
|
|
|
19810
19838
|
}), /* @__PURE__ */ l(it.Content, {})]
|
|
19811
19839
|
});
|
|
19812
19840
|
});
|
|
19813
|
-
function
|
|
19841
|
+
function bk({
|
|
19814
19842
|
context: e
|
|
19815
19843
|
}) {
|
|
19816
19844
|
const {
|
|
@@ -19879,7 +19907,7 @@ function yk({
|
|
|
19879
19907
|
})
|
|
19880
19908
|
});
|
|
19881
19909
|
}
|
|
19882
|
-
class
|
|
19910
|
+
class Sk extends en {
|
|
19883
19911
|
constructor() {
|
|
19884
19912
|
super(...arguments);
|
|
19885
19913
|
he(this, "VERSION", 1);
|
|
@@ -19894,18 +19922,18 @@ class bk extends en {
|
|
|
19894
19922
|
}));
|
|
19895
19923
|
}
|
|
19896
19924
|
}
|
|
19897
|
-
const
|
|
19925
|
+
const wk = {
|
|
19898
19926
|
displayName: "RichText",
|
|
19899
|
-
migrator: new
|
|
19927
|
+
migrator: new Sk(),
|
|
19900
19928
|
name: "richText",
|
|
19901
|
-
viewRender:
|
|
19902
|
-
configRender:
|
|
19929
|
+
viewRender: yk,
|
|
19930
|
+
configRender: bk,
|
|
19903
19931
|
createConfig: () => ks
|
|
19904
19932
|
}, Ps = {
|
|
19905
19933
|
align: "center",
|
|
19906
19934
|
template: "The variable ${value} is defined in Variables section"
|
|
19907
19935
|
};
|
|
19908
|
-
function
|
|
19936
|
+
function Ck(e) {
|
|
19909
19937
|
if ("variables" in e)
|
|
19910
19938
|
return e;
|
|
19911
19939
|
const {
|
|
@@ -19939,10 +19967,10 @@ function wk(e) {
|
|
|
19939
19967
|
]
|
|
19940
19968
|
};
|
|
19941
19969
|
}
|
|
19942
|
-
function
|
|
19970
|
+
function xk(e) {
|
|
19943
19971
|
return kr(e, ["variables"]);
|
|
19944
19972
|
}
|
|
19945
|
-
function
|
|
19973
|
+
function _k(e) {
|
|
19946
19974
|
const t = Xo(e), n = dt(t, "color.valueRange");
|
|
19947
19975
|
return n !== void 0 && Rl(
|
|
19948
19976
|
t,
|
|
@@ -19950,21 +19978,21 @@ function xk(e) {
|
|
|
19950
19978
|
n.map((r) => Number(r))
|
|
19951
19979
|
), t;
|
|
19952
19980
|
}
|
|
19953
|
-
class
|
|
19981
|
+
class Ek extends en {
|
|
19954
19982
|
constructor() {
|
|
19955
19983
|
super(...arguments);
|
|
19956
19984
|
he(this, "VERSION", 2);
|
|
19957
19985
|
}
|
|
19958
19986
|
configVersions() {
|
|
19959
|
-
this.version(1, (n) => ({ config:
|
|
19987
|
+
this.version(1, (n) => ({ config: Ck(n) })), this.version(2, (n, { panelModel: r }) => {
|
|
19960
19988
|
const { config: o } = n;
|
|
19961
19989
|
return (o.variables || []).forEach((a) => {
|
|
19962
|
-
r.variables.find((s) => s.name === a.name) || r.addVariable(
|
|
19963
|
-
}), { config:
|
|
19990
|
+
r.variables.find((s) => s.name === a.name) || r.addVariable(_k(a));
|
|
19991
|
+
}), { config: xk(o) };
|
|
19964
19992
|
});
|
|
19965
19993
|
}
|
|
19966
19994
|
}
|
|
19967
|
-
const
|
|
19995
|
+
const Ok = Q(({
|
|
19968
19996
|
context: e
|
|
19969
19997
|
}) => {
|
|
19970
19998
|
const t = lt(), {
|
|
@@ -19991,7 +20019,7 @@ const Ek = Q(({
|
|
|
19991
20019
|
children: c
|
|
19992
20020
|
}, u))
|
|
19993
20021
|
});
|
|
19994
|
-
}),
|
|
20022
|
+
}), Rk = [{
|
|
19995
20023
|
label: "Left",
|
|
19996
20024
|
value: "left"
|
|
19997
20025
|
}, {
|
|
@@ -20001,7 +20029,7 @@ const Ek = Q(({
|
|
|
20001
20029
|
label: "Right",
|
|
20002
20030
|
value: "right"
|
|
20003
20031
|
}];
|
|
20004
|
-
function
|
|
20032
|
+
function Tk({
|
|
20005
20033
|
context: e
|
|
20006
20034
|
}) {
|
|
20007
20035
|
const {
|
|
@@ -20075,14 +20103,14 @@ function Rk({
|
|
|
20075
20103
|
field: f
|
|
20076
20104
|
}) => /* @__PURE__ */ l(Ee, {
|
|
20077
20105
|
label: "Horizontal Alignment",
|
|
20078
|
-
data:
|
|
20106
|
+
data: Rk,
|
|
20079
20107
|
...f
|
|
20080
20108
|
})
|
|
20081
20109
|
})]
|
|
20082
20110
|
})
|
|
20083
20111
|
});
|
|
20084
20112
|
}
|
|
20085
|
-
const
|
|
20113
|
+
const Mk = {
|
|
20086
20114
|
createConfig() {
|
|
20087
20115
|
return {
|
|
20088
20116
|
version: 1,
|
|
@@ -20090,16 +20118,16 @@ const Tk = {
|
|
|
20090
20118
|
};
|
|
20091
20119
|
},
|
|
20092
20120
|
displayName: "Stats",
|
|
20093
|
-
migrator: new
|
|
20121
|
+
migrator: new Ek(),
|
|
20094
20122
|
name: "stats",
|
|
20095
|
-
viewRender:
|
|
20096
|
-
configRender:
|
|
20123
|
+
viewRender: Ok,
|
|
20124
|
+
configRender: Tk
|
|
20097
20125
|
}, Is = {
|
|
20098
20126
|
label_field: "",
|
|
20099
20127
|
value_field: ""
|
|
20100
20128
|
};
|
|
20101
20129
|
Pt.use([Tv, Jn]);
|
|
20102
|
-
const
|
|
20130
|
+
const Dk = {
|
|
20103
20131
|
tooltip: {
|
|
20104
20132
|
show: !0
|
|
20105
20133
|
},
|
|
@@ -20111,7 +20139,7 @@ const Mk = {
|
|
|
20111
20139
|
}
|
|
20112
20140
|
}
|
|
20113
20141
|
};
|
|
20114
|
-
function
|
|
20142
|
+
function kk({
|
|
20115
20143
|
context: e
|
|
20116
20144
|
}) {
|
|
20117
20145
|
const {
|
|
@@ -20137,7 +20165,7 @@ function Dk({
|
|
|
20137
20165
|
}) => p / c < 0.2 ? " " : f
|
|
20138
20166
|
}
|
|
20139
20167
|
}
|
|
20140
|
-
}), [c]), d = Sd({},
|
|
20168
|
+
}), [c]), d = Sd({}, Dk, u, {
|
|
20141
20169
|
series: {
|
|
20142
20170
|
data: s
|
|
20143
20171
|
}
|
|
@@ -20151,7 +20179,7 @@ function Dk({
|
|
|
20151
20179
|
}
|
|
20152
20180
|
});
|
|
20153
20181
|
}
|
|
20154
|
-
function
|
|
20182
|
+
function Pk({
|
|
20155
20183
|
context: e
|
|
20156
20184
|
}) {
|
|
20157
20185
|
const {
|
|
@@ -20217,7 +20245,7 @@ function kk({
|
|
|
20217
20245
|
})
|
|
20218
20246
|
});
|
|
20219
20247
|
}
|
|
20220
|
-
class
|
|
20248
|
+
class Ik extends en {
|
|
20221
20249
|
constructor() {
|
|
20222
20250
|
super(...arguments);
|
|
20223
20251
|
he(this, "VERSION", 1);
|
|
@@ -20229,12 +20257,12 @@ class Pk extends en {
|
|
|
20229
20257
|
}));
|
|
20230
20258
|
}
|
|
20231
20259
|
}
|
|
20232
|
-
const
|
|
20260
|
+
const Ak = {
|
|
20233
20261
|
displayName: "Sunburst",
|
|
20234
|
-
migrator: new
|
|
20262
|
+
migrator: new Ik(),
|
|
20235
20263
|
name: "sunburst",
|
|
20236
|
-
viewRender:
|
|
20237
|
-
configRender:
|
|
20264
|
+
viewRender: kk,
|
|
20265
|
+
configRender: Pk,
|
|
20238
20266
|
createConfig: () => Is
|
|
20239
20267
|
};
|
|
20240
20268
|
var kn = /* @__PURE__ */ ((e) => (e.string = "string", e.number = "number", e.eloc = "eloc", e.percentage = "percentage", e.custom = "custom", e))(kn || {});
|
|
@@ -20278,7 +20306,7 @@ function bn(e, t) {
|
|
|
20278
20306
|
function ji(e) {
|
|
20279
20307
|
return e instanceof Function;
|
|
20280
20308
|
}
|
|
20281
|
-
function
|
|
20309
|
+
function $k(e, t) {
|
|
20282
20310
|
const n = [], r = (o) => {
|
|
20283
20311
|
o.forEach((i) => {
|
|
20284
20312
|
n.push(i);
|
|
@@ -20312,7 +20340,7 @@ function He(e, t, n) {
|
|
|
20312
20340
|
return o;
|
|
20313
20341
|
};
|
|
20314
20342
|
}
|
|
20315
|
-
function
|
|
20343
|
+
function Nk(e, t, n, r) {
|
|
20316
20344
|
var o, i;
|
|
20317
20345
|
const s = {
|
|
20318
20346
|
...e._getDefaultColumnDef(),
|
|
@@ -20389,7 +20417,7 @@ function ed(e, t, n) {
|
|
|
20389
20417
|
Object.assign(i, a.createHeader == null ? void 0 : a.createHeader(i, e));
|
|
20390
20418
|
}), i;
|
|
20391
20419
|
}
|
|
20392
|
-
const
|
|
20420
|
+
const Lk = {
|
|
20393
20421
|
createTable: (e) => ({
|
|
20394
20422
|
getHeaderGroups: He(() => [e.getAllColumns(), e.getVisibleLeafColumns(), e.getState().columnPinning.left, e.getState().columnPinning.right], (t, n, r, o) => {
|
|
20395
20423
|
var i, a;
|
|
@@ -20596,7 +20624,7 @@ const Si = {
|
|
|
20596
20624
|
deltaPercentage: null,
|
|
20597
20625
|
isResizingColumn: !1,
|
|
20598
20626
|
columnSizingStart: []
|
|
20599
|
-
}),
|
|
20627
|
+
}), Vk = {
|
|
20600
20628
|
getDefaultColumnDef: () => Si,
|
|
20601
20629
|
getInitialState: (e) => ({
|
|
20602
20630
|
columnSizing: {},
|
|
@@ -20696,7 +20724,7 @@ const Si = {
|
|
|
20696
20724
|
upHandler: (g) => {
|
|
20697
20725
|
document.removeEventListener("mousemove", f.moveHandler), document.removeEventListener("mouseup", f.upHandler), d(g.clientX);
|
|
20698
20726
|
}
|
|
20699
|
-
}, p =
|
|
20727
|
+
}, p = Fk() ? {
|
|
20700
20728
|
passive: !1
|
|
20701
20729
|
} : !1;
|
|
20702
20730
|
Ma(o) || (document.addEventListener("mousemove", f.moveHandler, p), document.addEventListener("mouseup", f.upHandler, p)), t.setColumnSizingInfo((g) => ({
|
|
@@ -20741,7 +20769,7 @@ const Si = {
|
|
|
20741
20769
|
})
|
|
20742
20770
|
};
|
|
20743
20771
|
let wi = null;
|
|
20744
|
-
function
|
|
20772
|
+
function Fk() {
|
|
20745
20773
|
if (typeof wi == "boolean")
|
|
20746
20774
|
return wi;
|
|
20747
20775
|
let e = !1;
|
|
@@ -20761,7 +20789,7 @@ function Vk() {
|
|
|
20761
20789
|
function Ma(e) {
|
|
20762
20790
|
return e.type === "touchstart";
|
|
20763
20791
|
}
|
|
20764
|
-
const
|
|
20792
|
+
const zk = {
|
|
20765
20793
|
getInitialState: (e) => ({
|
|
20766
20794
|
expanded: {},
|
|
20767
20795
|
...e
|
|
@@ -20922,7 +20950,7 @@ const zn = {
|
|
|
20922
20950
|
function En(e) {
|
|
20923
20951
|
return e == null || e === "";
|
|
20924
20952
|
}
|
|
20925
|
-
const
|
|
20953
|
+
const jk = {
|
|
20926
20954
|
getDefaultColumnDef: () => ({
|
|
20927
20955
|
filterFn: "auto"
|
|
20928
20956
|
}),
|
|
@@ -21050,35 +21078,35 @@ const zk = {
|
|
|
21050
21078
|
function td(e, t, n) {
|
|
21051
21079
|
return (e && e.autoRemove ? e.autoRemove(t, n) : !1) || typeof t > "u" || typeof t == "string" && !t;
|
|
21052
21080
|
}
|
|
21053
|
-
const
|
|
21081
|
+
const Kk = (e, t, n) => n.reduce((r, o) => {
|
|
21054
21082
|
const i = o.getValue(e);
|
|
21055
21083
|
return r + (typeof i == "number" ? i : 0);
|
|
21056
|
-
}, 0),
|
|
21084
|
+
}, 0), Hk = (e, t, n) => {
|
|
21057
21085
|
let r;
|
|
21058
21086
|
return n.forEach((o) => {
|
|
21059
21087
|
const i = o.getValue(e);
|
|
21060
21088
|
i != null && (r > i || r === void 0 && i >= i) && (r = i);
|
|
21061
21089
|
}), r;
|
|
21062
|
-
},
|
|
21090
|
+
}, Bk = (e, t, n) => {
|
|
21063
21091
|
let r;
|
|
21064
21092
|
return n.forEach((o) => {
|
|
21065
21093
|
const i = o.getValue(e);
|
|
21066
21094
|
i != null && (r < i || r === void 0 && i >= i) && (r = i);
|
|
21067
21095
|
}), r;
|
|
21068
|
-
},
|
|
21096
|
+
}, Gk = (e, t, n) => {
|
|
21069
21097
|
let r, o;
|
|
21070
21098
|
return n.forEach((i) => {
|
|
21071
21099
|
const a = i.getValue(e);
|
|
21072
21100
|
a != null && (r === void 0 ? a >= a && (r = o = a) : (r > a && (r = a), o < a && (o = a)));
|
|
21073
21101
|
}), [r, o];
|
|
21074
|
-
},
|
|
21102
|
+
}, Wk = (e, t) => {
|
|
21075
21103
|
let n = 0, r = 0;
|
|
21076
21104
|
if (t.forEach((o) => {
|
|
21077
21105
|
let i = o.getValue(e);
|
|
21078
21106
|
i != null && (i = +i) >= i && (++n, r += i);
|
|
21079
21107
|
}), n)
|
|
21080
21108
|
return r / n;
|
|
21081
|
-
},
|
|
21109
|
+
}, qk = (e, t) => {
|
|
21082
21110
|
if (!t.length)
|
|
21083
21111
|
return;
|
|
21084
21112
|
let n = 0, r = 0;
|
|
@@ -21086,17 +21114,17 @@ const jk = (e, t, n) => n.reduce((r, o) => {
|
|
|
21086
21114
|
let i = o.getValue(e);
|
|
21087
21115
|
typeof i == "number" && (n = Math.min(n, i), r = Math.max(r, i));
|
|
21088
21116
|
}), (n + r) / 2;
|
|
21089
|
-
},
|
|
21090
|
-
sum:
|
|
21091
|
-
min:
|
|
21092
|
-
max:
|
|
21093
|
-
extent:
|
|
21094
|
-
mean:
|
|
21095
|
-
median:
|
|
21096
|
-
unique:
|
|
21097
|
-
uniqueCount:
|
|
21098
|
-
count:
|
|
21099
|
-
},
|
|
21117
|
+
}, Uk = (e, t) => Array.from(new Set(t.map((n) => n.getValue(e))).values()), Yk = (e, t) => new Set(t.map((n) => n.getValue(e))).size, Xk = (e, t) => t.length, Da = {
|
|
21118
|
+
sum: Kk,
|
|
21119
|
+
min: Hk,
|
|
21120
|
+
max: Bk,
|
|
21121
|
+
extent: Gk,
|
|
21122
|
+
mean: Wk,
|
|
21123
|
+
median: qk,
|
|
21124
|
+
unique: Uk,
|
|
21125
|
+
uniqueCount: Yk,
|
|
21126
|
+
count: Xk
|
|
21127
|
+
}, Qk = {
|
|
21100
21128
|
getDefaultColumnDef: () => ({
|
|
21101
21129
|
aggregatedCell: (e) => {
|
|
21102
21130
|
var t, n;
|
|
@@ -21170,13 +21198,13 @@ const jk = (e, t, n) => n.reduce((r, o) => {
|
|
|
21170
21198
|
}
|
|
21171
21199
|
})
|
|
21172
21200
|
};
|
|
21173
|
-
function
|
|
21201
|
+
function Jk(e, t, n) {
|
|
21174
21202
|
if (!(t != null && t.length) || !n)
|
|
21175
21203
|
return e;
|
|
21176
21204
|
const r = e.filter((i) => !t.includes(i.id));
|
|
21177
21205
|
return n === "remove" ? r : [...t.map((i) => e.find((a) => a.id === i)).filter(Boolean), ...r];
|
|
21178
21206
|
}
|
|
21179
|
-
const
|
|
21207
|
+
const Zk = {
|
|
21180
21208
|
getInitialState: (e) => ({
|
|
21181
21209
|
columnOrder: [],
|
|
21182
21210
|
...e
|
|
@@ -21202,7 +21230,7 @@ const Jk = {
|
|
|
21202
21230
|
}
|
|
21203
21231
|
i = [...i, ...s];
|
|
21204
21232
|
}
|
|
21205
|
-
return
|
|
21233
|
+
return Jk(i, n, r);
|
|
21206
21234
|
}, {
|
|
21207
21235
|
key: process.env.NODE_ENV === "development" && "getOrderColumnsFn"
|
|
21208
21236
|
})
|
|
@@ -21210,7 +21238,7 @@ const Jk = {
|
|
|
21210
21238
|
}, gl = 0, hl = 10, ka = () => ({
|
|
21211
21239
|
pageIndex: gl,
|
|
21212
21240
|
pageSize: hl
|
|
21213
|
-
}),
|
|
21241
|
+
}), eP = {
|
|
21214
21242
|
getInitialState: (e) => ({
|
|
21215
21243
|
...e,
|
|
21216
21244
|
pagination: {
|
|
@@ -21314,7 +21342,7 @@ const Jk = {
|
|
|
21314
21342
|
}, Pa = () => ({
|
|
21315
21343
|
left: [],
|
|
21316
21344
|
right: []
|
|
21317
|
-
}),
|
|
21345
|
+
}), tP = {
|
|
21318
21346
|
getInitialState: (e) => ({
|
|
21319
21347
|
columnPinning: Pa(),
|
|
21320
21348
|
...e
|
|
@@ -21436,7 +21464,7 @@ const Jk = {
|
|
|
21436
21464
|
}
|
|
21437
21465
|
})
|
|
21438
21466
|
})
|
|
21439
|
-
},
|
|
21467
|
+
}, nP = {
|
|
21440
21468
|
getInitialState: (e) => ({
|
|
21441
21469
|
rowSelection: {},
|
|
21442
21470
|
...e
|
|
@@ -21624,10 +21652,10 @@ function nd(e, t, n) {
|
|
|
21624
21652
|
}
|
|
21625
21653
|
return !1;
|
|
21626
21654
|
}
|
|
21627
|
-
const ml = /([0-9]+)/gm,
|
|
21655
|
+
const ml = /([0-9]+)/gm, rP = (e, t, n) => Gg(br(e.getValue(n)).toLowerCase(), br(t.getValue(n)).toLowerCase()), oP = (e, t, n) => Gg(br(e.getValue(n)), br(t.getValue(n))), iP = (e, t, n) => Ls(br(e.getValue(n)).toLowerCase(), br(t.getValue(n)).toLowerCase()), aP = (e, t, n) => Ls(br(e.getValue(n)), br(t.getValue(n))), lP = (e, t, n) => {
|
|
21628
21656
|
const r = e.getValue(n), o = t.getValue(n);
|
|
21629
21657
|
return r > o ? 1 : r < o ? -1 : 0;
|
|
21630
|
-
},
|
|
21658
|
+
}, sP = (e, t, n) => Ls(e.getValue(n), t.getValue(n));
|
|
21631
21659
|
function Ls(e, t) {
|
|
21632
21660
|
return e === t ? 0 : e > t ? 1 : -1;
|
|
21633
21661
|
}
|
|
@@ -21655,13 +21683,13 @@ function Gg(e, t) {
|
|
|
21655
21683
|
return n.length - r.length;
|
|
21656
21684
|
}
|
|
21657
21685
|
const xo = {
|
|
21658
|
-
alphanumeric:
|
|
21659
|
-
alphanumericCaseSensitive:
|
|
21660
|
-
text:
|
|
21661
|
-
textCaseSensitive:
|
|
21662
|
-
datetime:
|
|
21663
|
-
basic:
|
|
21664
|
-
},
|
|
21686
|
+
alphanumeric: rP,
|
|
21687
|
+
alphanumericCaseSensitive: oP,
|
|
21688
|
+
text: iP,
|
|
21689
|
+
textCaseSensitive: aP,
|
|
21690
|
+
datetime: lP,
|
|
21691
|
+
basic: sP
|
|
21692
|
+
}, cP = {
|
|
21665
21693
|
getInitialState: (e) => ({
|
|
21666
21694
|
sorting: [],
|
|
21667
21695
|
...e
|
|
@@ -21763,7 +21791,7 @@ const xo = {
|
|
|
21763
21791
|
getPreSortedRowModel: () => e.getGroupedRowModel(),
|
|
21764
21792
|
getSortedRowModel: () => (!e._getSortedRowModel && e.options.getSortedRowModel && (e._getSortedRowModel = e.options.getSortedRowModel(e)), e.options.manualSorting || !e._getSortedRowModel ? e.getPreSortedRowModel() : e._getSortedRowModel())
|
|
21765
21793
|
})
|
|
21766
|
-
},
|
|
21794
|
+
}, uP = {
|
|
21767
21795
|
getInitialState: (e) => ({
|
|
21768
21796
|
columnVisibility: {},
|
|
21769
21797
|
...e
|
|
@@ -21840,8 +21868,8 @@ const xo = {
|
|
|
21840
21868
|
}
|
|
21841
21869
|
};
|
|
21842
21870
|
}
|
|
21843
|
-
}, rd = [
|
|
21844
|
-
function
|
|
21871
|
+
}, rd = [Lk, uP, Zk, tP, jk, cP, Qk, zk, eP, nP, Vk];
|
|
21872
|
+
function dP(e) {
|
|
21845
21873
|
var t;
|
|
21846
21874
|
(e.debugAll || e.debugTable) && console.info("Creating Table Instance...");
|
|
21847
21875
|
let n = {
|
|
@@ -21925,7 +21953,7 @@ function uP(e) {
|
|
|
21925
21953
|
getAllColumns: He(() => [n._getColumnDefs()], (d) => {
|
|
21926
21954
|
const f = function(p, g, h) {
|
|
21927
21955
|
return h === void 0 && (h = 0), p.map((v) => {
|
|
21928
|
-
const b =
|
|
21956
|
+
const b = Nk(n, v, h, g), y = v;
|
|
21929
21957
|
return b.columns = y.columns ? f(y.columns, b, h + 1) : [], b;
|
|
21930
21958
|
});
|
|
21931
21959
|
};
|
|
@@ -21970,7 +21998,7 @@ function uP(e) {
|
|
|
21970
21998
|
};
|
|
21971
21999
|
return Object.assign(n, u), n._features.forEach((d) => Object.assign(n, d.createTable == null ? void 0 : d.createTable(n))), n;
|
|
21972
22000
|
}
|
|
21973
|
-
function
|
|
22001
|
+
function fP(e, t, n, r) {
|
|
21974
22002
|
const o = () => {
|
|
21975
22003
|
var a;
|
|
21976
22004
|
return (a = i.getValue()) != null ? a : e.options.renderFallbackValue;
|
|
@@ -21996,7 +22024,7 @@ function dP(e, t, n, r) {
|
|
|
21996
22024
|
Object.assign(i, a.createCell == null ? void 0 : a.createCell(i, n, t, e));
|
|
21997
22025
|
}, {}), i;
|
|
21998
22026
|
}
|
|
21999
|
-
const
|
|
22027
|
+
const pP = (e, t, n, r, o, i) => {
|
|
22000
22028
|
let a = {
|
|
22001
22029
|
id: t,
|
|
22002
22030
|
index: r,
|
|
@@ -22015,8 +22043,8 @@ const fP = (e, t, n, r, o, i) => {
|
|
|
22015
22043
|
return (c = a.getValue(s)) != null ? c : e.options.renderFallbackValue;
|
|
22016
22044
|
},
|
|
22017
22045
|
subRows: i != null ? i : [],
|
|
22018
|
-
getLeafRows: () =>
|
|
22019
|
-
getAllCells: He(() => [e.getAllLeafColumns()], (s) => s.map((c) =>
|
|
22046
|
+
getLeafRows: () => $k(a.subRows, (s) => s.subRows),
|
|
22047
|
+
getAllCells: He(() => [e.getAllLeafColumns()], (s) => s.map((c) => fP(e, a, c, c.id)), {
|
|
22020
22048
|
key: process.env.NODE_ENV === "development" && "row.getAllCells",
|
|
22021
22049
|
debug: () => {
|
|
22022
22050
|
var s;
|
|
@@ -22037,7 +22065,7 @@ const fP = (e, t, n, r, o, i) => {
|
|
|
22037
22065
|
}
|
|
22038
22066
|
return a;
|
|
22039
22067
|
};
|
|
22040
|
-
function
|
|
22068
|
+
function gP() {
|
|
22041
22069
|
return {
|
|
22042
22070
|
accessor: (e, t) => typeof e == "function" ? {
|
|
22043
22071
|
...t,
|
|
@@ -22050,7 +22078,7 @@ function pP() {
|
|
|
22050
22078
|
group: (e) => e
|
|
22051
22079
|
};
|
|
22052
22080
|
}
|
|
22053
|
-
function
|
|
22081
|
+
function hP() {
|
|
22054
22082
|
return (e) => He(() => [e.options.data], (t) => {
|
|
22055
22083
|
const n = {
|
|
22056
22084
|
rows: [],
|
|
@@ -22060,7 +22088,7 @@ function gP() {
|
|
|
22060
22088
|
i === void 0 && (i = 0);
|
|
22061
22089
|
const s = [];
|
|
22062
22090
|
for (let u = 0; u < o.length; u++) {
|
|
22063
|
-
const d =
|
|
22091
|
+
const d = pP(e, e._getRowId(o[u], u, a), o[u], u, i);
|
|
22064
22092
|
if (n.flatRows.push(d), n.rowsById[d.id] = d, s.push(d), e.options.getSubRows) {
|
|
22065
22093
|
var c;
|
|
22066
22094
|
d.originalSubRows = e.options.getSubRows(o[u], u), (c = d.originalSubRows) != null && c.length && (d.subRows = r(d.originalSubRows, i + 1, d));
|
|
@@ -22080,7 +22108,7 @@ function gP() {
|
|
|
22080
22108
|
}
|
|
22081
22109
|
});
|
|
22082
22110
|
}
|
|
22083
|
-
function
|
|
22111
|
+
function vP() {
|
|
22084
22112
|
return (e) => He(() => [e.getState().sorting, e.getPreSortedRowModel()], (t, n) => {
|
|
22085
22113
|
if (!n.rows.length || !(t != null && t.length))
|
|
22086
22114
|
return n;
|
|
@@ -22130,23 +22158,23 @@ function hP() {
|
|
|
22130
22158
|
});
|
|
22131
22159
|
}
|
|
22132
22160
|
function Wg(e, t) {
|
|
22133
|
-
return e ?
|
|
22161
|
+
return e ? mP(e) ? /* @__PURE__ */ l(e, {
|
|
22134
22162
|
...t
|
|
22135
22163
|
}) : e : null;
|
|
22136
22164
|
}
|
|
22137
|
-
function vP(e) {
|
|
22138
|
-
return mP(e) || typeof e == "function" || yP(e);
|
|
22139
|
-
}
|
|
22140
22165
|
function mP(e) {
|
|
22166
|
+
return yP(e) || typeof e == "function" || bP(e);
|
|
22167
|
+
}
|
|
22168
|
+
function yP(e) {
|
|
22141
22169
|
return typeof e == "function" && (() => {
|
|
22142
22170
|
const t = Object.getPrototypeOf(e);
|
|
22143
22171
|
return t.prototype && t.prototype.isReactComponent;
|
|
22144
22172
|
})();
|
|
22145
22173
|
}
|
|
22146
|
-
function
|
|
22174
|
+
function bP(e) {
|
|
22147
22175
|
return typeof e == "object" && typeof e.$$typeof == "symbol" && ["react.memo", "react.forward_ref"].includes(e.$$typeof.description);
|
|
22148
22176
|
}
|
|
22149
|
-
function
|
|
22177
|
+
function SP(e) {
|
|
22150
22178
|
const t = {
|
|
22151
22179
|
state: {},
|
|
22152
22180
|
onStateChange: () => {
|
|
@@ -22154,7 +22182,7 @@ function bP(e) {
|
|
|
22154
22182
|
renderFallbackValue: null,
|
|
22155
22183
|
...e
|
|
22156
22184
|
}, [n] = x.useState(() => ({
|
|
22157
|
-
current:
|
|
22185
|
+
current: dP(t)
|
|
22158
22186
|
})), [r, o] = x.useState(() => n.current.initialState);
|
|
22159
22187
|
return n.current.setOptions((i) => ({
|
|
22160
22188
|
...i,
|
|
@@ -22171,7 +22199,7 @@ function bP(e) {
|
|
|
22171
22199
|
function od(e, t, n) {
|
|
22172
22200
|
return Math.min(Math.max(e, t), n);
|
|
22173
22201
|
}
|
|
22174
|
-
class
|
|
22202
|
+
class wP {
|
|
22175
22203
|
constructor(t) {
|
|
22176
22204
|
this.steps = t;
|
|
22177
22205
|
const n = [], r = /* @__PURE__ */ new Set();
|
|
@@ -22193,7 +22221,7 @@ class SP {
|
|
|
22193
22221
|
return od(this.getStepFunctionForValue(t)(t), 0, 100);
|
|
22194
22222
|
}
|
|
22195
22223
|
}
|
|
22196
|
-
const
|
|
22224
|
+
const CP = ({
|
|
22197
22225
|
header: e,
|
|
22198
22226
|
cx: t
|
|
22199
22227
|
}) => /* @__PURE__ */ m(F, {
|
|
@@ -22201,10 +22229,10 @@ const wP = ({
|
|
|
22201
22229
|
"table-head-cell--sortable": e.column.getCanSort()
|
|
22202
22230
|
}),
|
|
22203
22231
|
onClick: e.column.getToggleSortingHandler(),
|
|
22204
|
-
children: [e.isPlaceholder ? null : Wg(e.column.columnDef.header, e.getContext()), /* @__PURE__ */ l(
|
|
22232
|
+
children: [e.isPlaceholder ? null : Wg(e.column.columnDef.header, e.getContext()), /* @__PURE__ */ l(xP, {
|
|
22205
22233
|
direction: e.column.getIsSorted()
|
|
22206
22234
|
})]
|
|
22207
|
-
}),
|
|
22235
|
+
}), xP = ({
|
|
22208
22236
|
direction: e
|
|
22209
22237
|
}) => {
|
|
22210
22238
|
switch (e) {
|
|
@@ -22222,8 +22250,8 @@ const wP = ({
|
|
|
22222
22250
|
}, Vs = {
|
|
22223
22251
|
id: "builtin:table:click-cell-content",
|
|
22224
22252
|
displayName: "Click Cell Content",
|
|
22225
|
-
nameRender:
|
|
22226
|
-
configRender:
|
|
22253
|
+
nameRender: TP,
|
|
22254
|
+
configRender: OP,
|
|
22227
22255
|
payload: [{
|
|
22228
22256
|
name: "row_index",
|
|
22229
22257
|
description: "Index of the row that the cell belongs to",
|
|
@@ -22237,7 +22265,7 @@ const wP = ({
|
|
|
22237
22265
|
description: "Data of the row that the cell belongs to",
|
|
22238
22266
|
valueType: "object"
|
|
22239
22267
|
}]
|
|
22240
|
-
},
|
|
22268
|
+
}, _P = {
|
|
22241
22269
|
column: ""
|
|
22242
22270
|
};
|
|
22243
22271
|
function qg(e) {
|
|
@@ -22249,19 +22277,19 @@ function qg(e) {
|
|
|
22249
22277
|
value: r.toString()
|
|
22250
22278
|
})) : [];
|
|
22251
22279
|
}
|
|
22252
|
-
function
|
|
22280
|
+
function EP(e) {
|
|
22253
22281
|
return Ml(e) ? [] : Object.keys(e[0]).map((t) => ({
|
|
22254
22282
|
label: t,
|
|
22255
22283
|
value: t
|
|
22256
22284
|
}));
|
|
22257
22285
|
}
|
|
22258
|
-
function
|
|
22259
|
-
const t = qg(e.instance), n =
|
|
22286
|
+
function OP(e) {
|
|
22287
|
+
const t = qg(e.instance), n = EP(e.sampleData), r = t.length > 0 ? t : n, {
|
|
22260
22288
|
value: o,
|
|
22261
22289
|
set: i
|
|
22262
22290
|
} = rt(e.trigger.triggerData, "config"), {
|
|
22263
22291
|
column: a
|
|
22264
|
-
} = jt({}, o,
|
|
22292
|
+
} = jt({}, o, _P), s = (c) => {
|
|
22265
22293
|
isNaN(+c) ? i({
|
|
22266
22294
|
column: c
|
|
22267
22295
|
}) : i({
|
|
@@ -22276,18 +22304,18 @@ function EP(e) {
|
|
|
22276
22304
|
onChange: s
|
|
22277
22305
|
});
|
|
22278
22306
|
}
|
|
22279
|
-
function
|
|
22307
|
+
function RP(e, t) {
|
|
22280
22308
|
return e ? Gh(e.column) ? `Click cell of ${t[e.column].label}` : `Click cell of ${e.column}` : "Click cell content (click to config)";
|
|
22281
22309
|
}
|
|
22282
|
-
function
|
|
22310
|
+
function TP(e) {
|
|
22283
22311
|
const t = qg(e.instance), {
|
|
22284
22312
|
value: n
|
|
22285
22313
|
} = rt(e.trigger.triggerData, "config");
|
|
22286
22314
|
return /* @__PURE__ */ l(F, {
|
|
22287
|
-
children:
|
|
22315
|
+
children: RP(n, t)
|
|
22288
22316
|
});
|
|
22289
22317
|
}
|
|
22290
|
-
const
|
|
22318
|
+
const MP = qo((e) => ({
|
|
22291
22319
|
root: {
|
|
22292
22320
|
overflow: "auto",
|
|
22293
22321
|
"& .table-head-cell": {
|
|
@@ -22312,7 +22340,7 @@ const TP = qo((e) => ({
|
|
|
22312
22340
|
position: "sticky",
|
|
22313
22341
|
top: 0
|
|
22314
22342
|
}
|
|
22315
|
-
})),
|
|
22343
|
+
})), DP = qo((e, t) => ({
|
|
22316
22344
|
content: {
|
|
22317
22345
|
display: "flex",
|
|
22318
22346
|
alignItems: "center",
|
|
@@ -22325,24 +22353,24 @@ const TP = qo((e) => ({
|
|
|
22325
22353
|
}
|
|
22326
22354
|
}
|
|
22327
22355
|
}));
|
|
22328
|
-
function
|
|
22356
|
+
function kP(e) {
|
|
22329
22357
|
return e ? No(e).oklch()[0] > 0.7 ? "black" : "white" : "inherit";
|
|
22330
22358
|
}
|
|
22331
|
-
function
|
|
22359
|
+
function PP(e) {
|
|
22332
22360
|
const t = e.tableCellContext.bgColor;
|
|
22333
22361
|
return {
|
|
22334
22362
|
backgroundColor: t,
|
|
22335
|
-
color:
|
|
22363
|
+
color: kP(t)
|
|
22336
22364
|
};
|
|
22337
22365
|
}
|
|
22338
22366
|
function sa(e) {
|
|
22339
|
-
const t = e.tableCellContext.isClickable(), n =
|
|
22367
|
+
const t = e.tableCellContext.isClickable(), n = DP({
|
|
22340
22368
|
clickable: t
|
|
22341
22369
|
});
|
|
22342
22370
|
return /* @__PURE__ */ l("div", {
|
|
22343
22371
|
className: n.classes.content,
|
|
22344
22372
|
style: {
|
|
22345
|
-
...
|
|
22373
|
+
...PP(e)
|
|
22346
22374
|
},
|
|
22347
22375
|
children: /* @__PURE__ */ l(F, {
|
|
22348
22376
|
className: "table-cell-text",
|
|
@@ -22353,19 +22381,19 @@ function sa(e) {
|
|
|
22353
22381
|
})
|
|
22354
22382
|
});
|
|
22355
22383
|
}
|
|
22356
|
-
function
|
|
22384
|
+
function IP(e) {
|
|
22357
22385
|
return /* @__PURE__ */ l(sa, {
|
|
22358
22386
|
...e,
|
|
22359
22387
|
children: e.value
|
|
22360
22388
|
});
|
|
22361
22389
|
}
|
|
22362
|
-
function
|
|
22390
|
+
function AP(e) {
|
|
22363
22391
|
return /* @__PURE__ */ l(sa, {
|
|
22364
22392
|
...e,
|
|
22365
22393
|
children: e.value
|
|
22366
22394
|
});
|
|
22367
22395
|
}
|
|
22368
|
-
function
|
|
22396
|
+
function $P(e) {
|
|
22369
22397
|
const t = tn(e.value).format({
|
|
22370
22398
|
thousandSeparated: !0
|
|
22371
22399
|
});
|
|
@@ -22374,7 +22402,7 @@ function AP(e) {
|
|
|
22374
22402
|
children: t
|
|
22375
22403
|
});
|
|
22376
22404
|
}
|
|
22377
|
-
function
|
|
22405
|
+
function NP(e) {
|
|
22378
22406
|
const t = tn(e.value).format({
|
|
22379
22407
|
output: "percent",
|
|
22380
22408
|
mantissa: 3
|
|
@@ -22384,43 +22412,43 @@ function $P(e) {
|
|
|
22384
22412
|
children: t
|
|
22385
22413
|
});
|
|
22386
22414
|
}
|
|
22387
|
-
function
|
|
22415
|
+
function LP(e) {
|
|
22388
22416
|
const t = e.value, n = e.func_content;
|
|
22389
22417
|
return n ? new Function(`return ${n}`)()({
|
|
22390
22418
|
value: t
|
|
22391
22419
|
}) : t;
|
|
22392
22420
|
}
|
|
22393
|
-
function
|
|
22421
|
+
function VP(e) {
|
|
22394
22422
|
switch (e.type) {
|
|
22395
22423
|
case kn.string:
|
|
22396
|
-
return /* @__PURE__ */ l(
|
|
22424
|
+
return /* @__PURE__ */ l(IP, {
|
|
22397
22425
|
...e
|
|
22398
22426
|
});
|
|
22399
22427
|
case kn.eloc:
|
|
22400
|
-
return /* @__PURE__ */ l(
|
|
22428
|
+
return /* @__PURE__ */ l(AP, {
|
|
22401
22429
|
...e
|
|
22402
22430
|
});
|
|
22403
22431
|
case kn.number:
|
|
22404
|
-
return /* @__PURE__ */ l(
|
|
22432
|
+
return /* @__PURE__ */ l($P, {
|
|
22405
22433
|
...e
|
|
22406
22434
|
});
|
|
22407
22435
|
case kn.percentage:
|
|
22408
|
-
return /* @__PURE__ */ l(
|
|
22436
|
+
return /* @__PURE__ */ l(NP, {
|
|
22409
22437
|
...e
|
|
22410
22438
|
});
|
|
22411
22439
|
case kn.custom:
|
|
22412
|
-
return /* @__PURE__ */ l(
|
|
22440
|
+
return /* @__PURE__ */ l(LP, {
|
|
22413
22441
|
...e
|
|
22414
22442
|
});
|
|
22415
22443
|
}
|
|
22416
22444
|
}
|
|
22417
|
-
const
|
|
22445
|
+
const FP = (e) => {
|
|
22418
22446
|
const t = vo(e), n = ho(t.triggerManager, Vs.id), {
|
|
22419
22447
|
colorManager: r
|
|
22420
22448
|
} = Xn(Ln);
|
|
22421
|
-
return gr((o) => new
|
|
22449
|
+
return gr((o) => new jP(e.getColIndex, o, n, t, r), [n, t, e.getColIndex]);
|
|
22422
22450
|
};
|
|
22423
|
-
function
|
|
22451
|
+
function zP({
|
|
22424
22452
|
context: e,
|
|
22425
22453
|
instance: t
|
|
22426
22454
|
}) {
|
|
@@ -22437,18 +22465,18 @@ function FP({
|
|
|
22437
22465
|
} = i, {
|
|
22438
22466
|
classes: u,
|
|
22439
22467
|
cx: d
|
|
22440
|
-
} =
|
|
22468
|
+
} = MP(), f = j.useMemo(() => a ? Object.keys(n[0]).map((O) => ({
|
|
22441
22469
|
id: O,
|
|
22442
22470
|
label: O,
|
|
22443
22471
|
value_field: O,
|
|
22444
22472
|
value_type: kn.string
|
|
22445
|
-
})) : s, [a, s, n]), p =
|
|
22473
|
+
})) : s, [a, s, n]), p = FP({
|
|
22446
22474
|
getColIndex: gr((O) => f.indexOf(O.column.columnDef.meta), [f]),
|
|
22447
22475
|
vizManager: e.vizManager,
|
|
22448
22476
|
instance: t
|
|
22449
22477
|
}), g = de(() => {
|
|
22450
|
-
const O =
|
|
22451
|
-
cell: (V) => /* @__PURE__ */ l(
|
|
22478
|
+
const O = gP(), P = f.map((I) => O.accessor(I.value_field, {
|
|
22479
|
+
cell: (V) => /* @__PURE__ */ l(VP, {
|
|
22452
22480
|
tableCellContext: p(V.cell),
|
|
22453
22481
|
value: V.getValue(),
|
|
22454
22482
|
type: I.value_type,
|
|
@@ -22464,15 +22492,15 @@ function FP({
|
|
|
22464
22492
|
header: "#",
|
|
22465
22493
|
size: 10 * (n.length.toString().length + 1)
|
|
22466
22494
|
}), ...P];
|
|
22467
|
-
}, [f, p]), [h, v] = Qe([]), b =
|
|
22495
|
+
}, [f, p]), [h, v] = Qe([]), b = SP({
|
|
22468
22496
|
data: n,
|
|
22469
22497
|
state: {
|
|
22470
22498
|
sorting: h
|
|
22471
22499
|
},
|
|
22472
22500
|
onSortingChange: v,
|
|
22473
22501
|
columns: g,
|
|
22474
|
-
getCoreRowModel:
|
|
22475
|
-
getSortedRowModel:
|
|
22502
|
+
getCoreRowModel: hP(),
|
|
22503
|
+
getSortedRowModel: vP()
|
|
22476
22504
|
}), {
|
|
22477
22505
|
rows: y
|
|
22478
22506
|
} = b.getRowModel(), S = j.useRef(null), w = Dv({
|
|
@@ -22506,7 +22534,7 @@ function FP({
|
|
|
22506
22534
|
style: {
|
|
22507
22535
|
width: P.getSize()
|
|
22508
22536
|
},
|
|
22509
|
-
children: /* @__PURE__ */ l(
|
|
22537
|
+
children: /* @__PURE__ */ l(CP, {
|
|
22510
22538
|
header: P,
|
|
22511
22539
|
cx: d
|
|
22512
22540
|
})
|
|
@@ -22537,7 +22565,7 @@ function FP({
|
|
|
22537
22565
|
})
|
|
22538
22566
|
});
|
|
22539
22567
|
}
|
|
22540
|
-
class
|
|
22568
|
+
class jP {
|
|
22541
22569
|
constructor(t, n, r, o, i) {
|
|
22542
22570
|
this.getColIndex = t, this.cell = n, this.triggers = r, this.interactionManager = o, this.colorManager = i;
|
|
22543
22571
|
}
|
|
@@ -22574,7 +22602,7 @@ class zP {
|
|
|
22574
22602
|
return t;
|
|
22575
22603
|
const n = +this.cell.getValue();
|
|
22576
22604
|
if (isFinite(n)) {
|
|
22577
|
-
const r = this.colorManager.decodeInterpolation(t.interpolation), i = new
|
|
22605
|
+
const r = this.colorManager.decodeInterpolation(t.interpolation), i = new wP(t.steps).mapValue(n);
|
|
22578
22606
|
return r == null ? void 0 : r.getColor(i);
|
|
22579
22607
|
}
|
|
22580
22608
|
}
|
|
@@ -22602,14 +22630,14 @@ const Ug = qo(() => ({
|
|
|
22602
22630
|
}
|
|
22603
22631
|
}
|
|
22604
22632
|
}
|
|
22605
|
-
})),
|
|
22633
|
+
})), KP = [{
|
|
22606
22634
|
from: 0,
|
|
22607
22635
|
to: 0
|
|
22608
22636
|
}, {
|
|
22609
22637
|
from: 100,
|
|
22610
22638
|
to: 100
|
|
22611
22639
|
}];
|
|
22612
|
-
class
|
|
22640
|
+
class HP {
|
|
22613
22641
|
constructor() {
|
|
22614
22642
|
he(this, "steps", /* @__PURE__ */ new Map());
|
|
22615
22643
|
he(this, "interpolation");
|
|
@@ -22634,7 +22662,7 @@ class KP {
|
|
|
22634
22662
|
})).sort((n, r) => n.to - r.to || n.from - r.from));
|
|
22635
22663
|
}
|
|
22636
22664
|
fromProps(t) {
|
|
22637
|
-
t.steps.length < 2 ? this.setSteps(
|
|
22665
|
+
t.steps.length < 2 ? this.setSteps(KP) : this.setSteps(t.steps), this.interpolation = t.interpolation, this.onChange = t.onChange;
|
|
22638
22666
|
}
|
|
22639
22667
|
changeStep(t, n) {
|
|
22640
22668
|
t == null ? this.steps.delete(n) : this.steps.set(n, t);
|
|
@@ -22643,7 +22671,7 @@ class KP {
|
|
|
22643
22671
|
return this.steps.get(t);
|
|
22644
22672
|
}
|
|
22645
22673
|
}
|
|
22646
|
-
function
|
|
22674
|
+
function BP(e) {
|
|
22647
22675
|
const {
|
|
22648
22676
|
onChange: t,
|
|
22649
22677
|
color: n,
|
|
@@ -22723,7 +22751,7 @@ function HP(e) {
|
|
|
22723
22751
|
})]
|
|
22724
22752
|
});
|
|
22725
22753
|
}
|
|
22726
|
-
const
|
|
22754
|
+
const GP = Q(({
|
|
22727
22755
|
model: e
|
|
22728
22756
|
}) => {
|
|
22729
22757
|
const {
|
|
@@ -22731,21 +22759,21 @@ const BP = Q(({
|
|
|
22731
22759
|
} = Ug(), n = Wh(0, 13, 1).map((r) => 100 / 12 * r).map((r) => [e.interpolation.getColor(r), r]);
|
|
22732
22760
|
return /* @__PURE__ */ l("div", {
|
|
22733
22761
|
className: t.palette,
|
|
22734
|
-
children: n.map(([r, o], i) => /* @__PURE__ */ l(
|
|
22762
|
+
children: n.map(([r, o], i) => /* @__PURE__ */ l(BP, {
|
|
22735
22763
|
index: i,
|
|
22736
22764
|
color: r,
|
|
22737
22765
|
value: e.getStepFromValue(o),
|
|
22738
22766
|
onChange: (a) => e.changeStep(a, o)
|
|
22739
22767
|
}, r))
|
|
22740
22768
|
});
|
|
22741
|
-
}),
|
|
22742
|
-
const n = On(() => new
|
|
22769
|
+
}), WP = Q(function(t) {
|
|
22770
|
+
const n = On(() => new HP(), []);
|
|
22743
22771
|
return ke(() => {
|
|
22744
22772
|
n.fromProps(t);
|
|
22745
|
-
}), n.interpolation == null ? null : /* @__PURE__ */ l(
|
|
22773
|
+
}), n.interpolation == null ? null : /* @__PURE__ */ l(GP, {
|
|
22746
22774
|
model: n
|
|
22747
22775
|
});
|
|
22748
|
-
}),
|
|
22776
|
+
}), qP = (e) => {
|
|
22749
22777
|
const {
|
|
22750
22778
|
value: t,
|
|
22751
22779
|
onChange: n,
|
|
@@ -22793,7 +22821,7 @@ const BP = Q(({
|
|
|
22793
22821
|
value: i.interpolation,
|
|
22794
22822
|
data: f,
|
|
22795
22823
|
onChange: p
|
|
22796
|
-
}), /* @__PURE__ */ l(
|
|
22824
|
+
}), /* @__PURE__ */ l(WP, {
|
|
22797
22825
|
steps: i.steps,
|
|
22798
22826
|
interpolation: s,
|
|
22799
22827
|
onChange: h
|
|
@@ -22811,7 +22839,7 @@ const BP = Q(({
|
|
|
22811
22839
|
})
|
|
22812
22840
|
})]
|
|
22813
22841
|
});
|
|
22814
|
-
},
|
|
22842
|
+
}, UP = ["static", "interpolation", "none"], YP = [{
|
|
22815
22843
|
from: 0,
|
|
22816
22844
|
to: 0
|
|
22817
22845
|
}, {
|
|
@@ -22821,20 +22849,20 @@ const BP = Q(({
|
|
|
22821
22849
|
function Yg(e) {
|
|
22822
22850
|
return e ? wd(e) ? e === "none" ? "none" : "static" : "interpolation" : "none";
|
|
22823
22851
|
}
|
|
22824
|
-
function
|
|
22852
|
+
function XP(e, t) {
|
|
22825
22853
|
var n;
|
|
22826
22854
|
return Yg(t) === "static" ? t : (n = e.getStaticColors()[0]) == null ? void 0 : n.value;
|
|
22827
22855
|
}
|
|
22828
|
-
function
|
|
22856
|
+
function QP(e, t) {
|
|
22829
22857
|
return vd(t) ? t : {
|
|
22830
|
-
steps:
|
|
22858
|
+
steps: YP,
|
|
22831
22859
|
interpolation: e.encodeColor(e.getColorInterpolations()[0])
|
|
22832
22860
|
};
|
|
22833
22861
|
}
|
|
22834
|
-
const
|
|
22862
|
+
const JP = (e) => {
|
|
22835
22863
|
const {
|
|
22836
22864
|
colorManager: t
|
|
22837
|
-
} = Xn(Ln), [n, r] = Qe(Yg(e.value)), [o, i] = Qe(
|
|
22865
|
+
} = Xn(Ln), [n, r] = Qe(Yg(e.value)), [o, i] = Qe(XP(t, e.value)), a = Ys(o), [s, c] = Qe(QP(t, e.value)), u = Ys(s);
|
|
22838
22866
|
return /* @__PURE__ */ m(W, {
|
|
22839
22867
|
align: "stretch",
|
|
22840
22868
|
children: [/* @__PURE__ */ l(Ee, {
|
|
@@ -22844,14 +22872,14 @@ const QP = (e) => {
|
|
|
22844
22872
|
var h, v, b;
|
|
22845
22873
|
r(g || "none"), g === "static" ? (h = e.onChange) == null || h.call(e, a.current) : g === "none" || !g ? (v = e.onChange) == null || v.call(e, "none") : (b = e.onChange) == null || b.call(e, u.current);
|
|
22846
22874
|
},
|
|
22847
|
-
data:
|
|
22875
|
+
data: UP
|
|
22848
22876
|
}), n === "static" && /* @__PURE__ */ l(Yn, {
|
|
22849
22877
|
value: o,
|
|
22850
22878
|
onChange: (g) => {
|
|
22851
22879
|
var h;
|
|
22852
22880
|
i(g), (h = e.onChange) == null || h.call(e, g);
|
|
22853
22881
|
}
|
|
22854
|
-
}), n === "interpolation" && /* @__PURE__ */ l(
|
|
22882
|
+
}), n === "interpolation" && /* @__PURE__ */ l(qP, {
|
|
22855
22883
|
colorManager: t,
|
|
22856
22884
|
value: s,
|
|
22857
22885
|
onChange: (g) => {
|
|
@@ -22860,11 +22888,11 @@ const QP = (e) => {
|
|
|
22860
22888
|
}
|
|
22861
22889
|
})]
|
|
22862
22890
|
});
|
|
22863
|
-
},
|
|
22891
|
+
}, ZP = Object.values(kn).map((e) => ({
|
|
22864
22892
|
label: e,
|
|
22865
22893
|
value: e
|
|
22866
22894
|
}));
|
|
22867
|
-
function
|
|
22895
|
+
function eI({
|
|
22868
22896
|
label: e,
|
|
22869
22897
|
value: t,
|
|
22870
22898
|
onChange: n,
|
|
@@ -22872,13 +22900,13 @@ function ZP({
|
|
|
22872
22900
|
}) {
|
|
22873
22901
|
return /* @__PURE__ */ l(Ee, {
|
|
22874
22902
|
label: e,
|
|
22875
|
-
data:
|
|
22903
|
+
data: ZP,
|
|
22876
22904
|
value: t,
|
|
22877
22905
|
onChange: n,
|
|
22878
22906
|
sx: r
|
|
22879
22907
|
});
|
|
22880
22908
|
}
|
|
22881
|
-
const
|
|
22909
|
+
const tI = An(({
|
|
22882
22910
|
value: e,
|
|
22883
22911
|
onChange: t
|
|
22884
22912
|
}, n) => {
|
|
@@ -22951,7 +22979,7 @@ const eI = An(({
|
|
|
22951
22979
|
})
|
|
22952
22980
|
})]
|
|
22953
22981
|
});
|
|
22954
|
-
}),
|
|
22982
|
+
}), nI = ({
|
|
22955
22983
|
control: e,
|
|
22956
22984
|
index: t,
|
|
22957
22985
|
watch: n,
|
|
@@ -23000,7 +23028,7 @@ const eI = An(({
|
|
|
23000
23028
|
control: e,
|
|
23001
23029
|
render: ({
|
|
23002
23030
|
field: s
|
|
23003
|
-
}) => /* @__PURE__ */ l(
|
|
23031
|
+
}) => /* @__PURE__ */ l(eI, {
|
|
23004
23032
|
label: "Value Type",
|
|
23005
23033
|
sx: {
|
|
23006
23034
|
flex: 1
|
|
@@ -23014,7 +23042,7 @@ const eI = An(({
|
|
|
23014
23042
|
field: s
|
|
23015
23043
|
}) => {
|
|
23016
23044
|
var c;
|
|
23017
|
-
return /* @__PURE__ */ l(
|
|
23045
|
+
return /* @__PURE__ */ l(tI, {
|
|
23018
23046
|
value: (c = s.value) != null ? c : Ng,
|
|
23019
23047
|
onChange: (u) => s.onChange(u != null ? u : "")
|
|
23020
23048
|
});
|
|
@@ -23025,7 +23053,7 @@ const eI = An(({
|
|
|
23025
23053
|
control: e,
|
|
23026
23054
|
render: ({
|
|
23027
23055
|
field: s
|
|
23028
|
-
}) => /* @__PURE__ */ l(
|
|
23056
|
+
}) => /* @__PURE__ */ l(JP, {
|
|
23029
23057
|
...s
|
|
23030
23058
|
})
|
|
23031
23059
|
}), /* @__PURE__ */ l(qe, {
|
|
@@ -23042,7 +23070,7 @@ const eI = An(({
|
|
|
23042
23070
|
children: "Delete this column"
|
|
23043
23071
|
})]
|
|
23044
23072
|
});
|
|
23045
|
-
},
|
|
23073
|
+
}, rI = ({
|
|
23046
23074
|
control: e,
|
|
23047
23075
|
watch: t,
|
|
23048
23076
|
data: n
|
|
@@ -23114,7 +23142,7 @@ const eI = An(({
|
|
|
23114
23142
|
})]
|
|
23115
23143
|
}), r.map((u, d) => /* @__PURE__ */ l(N.Panel, {
|
|
23116
23144
|
value: d.toString(),
|
|
23117
|
-
children: /* @__PURE__ */ l(
|
|
23145
|
+
children: /* @__PURE__ */ l(nI, {
|
|
23118
23146
|
control: e,
|
|
23119
23147
|
watch: t,
|
|
23120
23148
|
index: d,
|
|
@@ -23127,7 +23155,7 @@ const eI = An(({
|
|
|
23127
23155
|
})]
|
|
23128
23156
|
});
|
|
23129
23157
|
};
|
|
23130
|
-
function
|
|
23158
|
+
function oI({
|
|
23131
23159
|
control: e,
|
|
23132
23160
|
watch: t,
|
|
23133
23161
|
data: n
|
|
@@ -23223,7 +23251,7 @@ function rI({
|
|
|
23223
23251
|
})]
|
|
23224
23252
|
});
|
|
23225
23253
|
}
|
|
23226
|
-
function
|
|
23254
|
+
function iI({
|
|
23227
23255
|
columns: e,
|
|
23228
23256
|
...t
|
|
23229
23257
|
}) {
|
|
@@ -23238,13 +23266,13 @@ function oI({
|
|
|
23238
23266
|
}))
|
|
23239
23267
|
};
|
|
23240
23268
|
}
|
|
23241
|
-
function
|
|
23269
|
+
function aI({
|
|
23242
23270
|
context: e
|
|
23243
23271
|
}) {
|
|
23244
23272
|
const {
|
|
23245
23273
|
value: t,
|
|
23246
23274
|
set: n
|
|
23247
|
-
} = rt(e.instanceData, "config"), r = e.data, o = de(() => nn({}, t, As), [t]), i = de(() =>
|
|
23275
|
+
} = rt(e.instanceData, "config"), r = e.data, o = de(() => nn({}, t, As), [t]), i = de(() => iI(o), [o]);
|
|
23248
23276
|
ke(() => {
|
|
23249
23277
|
!Vt(o, i) && (console.log("config malformed, resetting to defaults", o, i), n(i));
|
|
23250
23278
|
}, [o, i]);
|
|
@@ -23327,14 +23355,14 @@ function iI({
|
|
|
23327
23355
|
})
|
|
23328
23356
|
}), /* @__PURE__ */ l(N.Panel, {
|
|
23329
23357
|
value: "Style",
|
|
23330
|
-
children: /* @__PURE__ */ l(
|
|
23358
|
+
children: /* @__PURE__ */ l(oI, {
|
|
23331
23359
|
control: a,
|
|
23332
23360
|
watch: c,
|
|
23333
23361
|
data: r
|
|
23334
23362
|
})
|
|
23335
23363
|
}), /* @__PURE__ */ l(N.Panel, {
|
|
23336
23364
|
value: "Columns",
|
|
23337
|
-
children: /* @__PURE__ */ l(
|
|
23365
|
+
children: /* @__PURE__ */ l(rI, {
|
|
23338
23366
|
control: a,
|
|
23339
23367
|
watch: c,
|
|
23340
23368
|
data: r
|
|
@@ -23355,7 +23383,7 @@ function iI({
|
|
|
23355
23383
|
})]
|
|
23356
23384
|
});
|
|
23357
23385
|
}
|
|
23358
|
-
class
|
|
23386
|
+
class lI extends en {
|
|
23359
23387
|
constructor() {
|
|
23360
23388
|
super(...arguments);
|
|
23361
23389
|
he(this, "VERSION", 2);
|
|
@@ -23387,12 +23415,12 @@ const yl = {
|
|
|
23387
23415
|
};
|
|
23388
23416
|
},
|
|
23389
23417
|
displayName: "Table",
|
|
23390
|
-
migrator: new
|
|
23418
|
+
migrator: new lI(),
|
|
23391
23419
|
name: "table",
|
|
23392
|
-
viewRender:
|
|
23393
|
-
configRender:
|
|
23420
|
+
viewRender: zP,
|
|
23421
|
+
configRender: aI,
|
|
23394
23422
|
triggers: [Vs]
|
|
23395
|
-
},
|
|
23423
|
+
}, sI = () => /* @__PURE__ */ m("svg", {
|
|
23396
23424
|
width: "64",
|
|
23397
23425
|
height: "64",
|
|
23398
23426
|
viewBox: "0 0 64 64",
|
|
@@ -23415,7 +23443,7 @@ function id(e, t) {
|
|
|
23415
23443
|
if (n)
|
|
23416
23444
|
throw new Error(n);
|
|
23417
23445
|
}
|
|
23418
|
-
async function
|
|
23446
|
+
async function cI(e, t, n, r = {}) {
|
|
23419
23447
|
const o = {
|
|
23420
23448
|
"X-Requested-With": "XMLHttpRequest",
|
|
23421
23449
|
"Content-Type": r.string ? "application/x-www-form-urlencoded" : "application/json",
|
|
@@ -23429,7 +23457,7 @@ async function sI(e, t, n, r = {}) {
|
|
|
23429
23457
|
};
|
|
23430
23458
|
return i.data = r.string ? JSON.stringify(n) : n, Dl(i).then((a) => a.data).catch((a) => Promise.reject(a));
|
|
23431
23459
|
}
|
|
23432
|
-
const
|
|
23460
|
+
const uI = ({ conf: e, data: t }) => async () => {
|
|
23433
23461
|
const { expertSystemURL: n, goal: r, question: o } = e;
|
|
23434
23462
|
if (!n || !r || !o)
|
|
23435
23463
|
return;
|
|
@@ -23439,7 +23467,7 @@ const cI = ({ conf: e, data: t }) => async () => {
|
|
|
23439
23467
|
data: t
|
|
23440
23468
|
};
|
|
23441
23469
|
try {
|
|
23442
|
-
return await
|
|
23470
|
+
return await cI(n, `/expert/v3/devtable/${e.path}`, i, {});
|
|
23443
23471
|
} catch (a) {
|
|
23444
23472
|
throw id(a, "response.data.detail"), id(a, "response.data.error"), console.error(a), a;
|
|
23445
23473
|
}
|
|
@@ -23448,7 +23476,7 @@ const cI = ({ conf: e, data: t }) => async () => {
|
|
|
23448
23476
|
path: "",
|
|
23449
23477
|
goal: "",
|
|
23450
23478
|
question: ""
|
|
23451
|
-
},
|
|
23479
|
+
}, dI = {
|
|
23452
23480
|
ul: {
|
|
23453
23481
|
paddingLeft: "2em",
|
|
23454
23482
|
margin: "6px 0 0"
|
|
@@ -23457,7 +23485,7 @@ const cI = ({ conf: e, data: t }) => async () => {
|
|
|
23457
23485
|
margin: 0
|
|
23458
23486
|
}
|
|
23459
23487
|
};
|
|
23460
|
-
function
|
|
23488
|
+
function fI({
|
|
23461
23489
|
context: e
|
|
23462
23490
|
}) {
|
|
23463
23491
|
var u;
|
|
@@ -23470,7 +23498,7 @@ function dI({
|
|
|
23470
23498
|
data: a,
|
|
23471
23499
|
error: s,
|
|
23472
23500
|
loading: c
|
|
23473
|
-
} = El(
|
|
23501
|
+
} = El(uI({
|
|
23474
23502
|
conf: n,
|
|
23475
23503
|
data: i
|
|
23476
23504
|
}), {
|
|
@@ -23492,7 +23520,7 @@ function dI({
|
|
|
23492
23520
|
children: /* @__PURE__ */ m(W, {
|
|
23493
23521
|
align: "center",
|
|
23494
23522
|
spacing: 20,
|
|
23495
|
-
children: [/* @__PURE__ */ l(
|
|
23523
|
+
children: [/* @__PURE__ */ l(sI, {}), /* @__PURE__ */ l(F, {
|
|
23496
23524
|
align: "center",
|
|
23497
23525
|
size: 14,
|
|
23498
23526
|
color: "#3D3E45",
|
|
@@ -23503,7 +23531,7 @@ function dI({
|
|
|
23503
23531
|
})]
|
|
23504
23532
|
})
|
|
23505
23533
|
}) : !a || !Array.isArray(a.replies) || a.replies.length === 0 ? null : /* @__PURE__ */ l(Ae, {
|
|
23506
|
-
sx:
|
|
23534
|
+
sx: dI,
|
|
23507
23535
|
children: a.replies.map((d, f) => /* @__PURE__ */ l("div", {
|
|
23508
23536
|
dangerouslySetInnerHTML: {
|
|
23509
23537
|
__html: d.interpretation.html
|
|
@@ -23516,7 +23544,7 @@ function dI({
|
|
|
23516
23544
|
}, f))
|
|
23517
23545
|
});
|
|
23518
23546
|
}
|
|
23519
|
-
function
|
|
23547
|
+
function pI({
|
|
23520
23548
|
context: e
|
|
23521
23549
|
}) {
|
|
23522
23550
|
const {
|
|
@@ -23566,7 +23594,7 @@ function fI({
|
|
|
23566
23594
|
})]
|
|
23567
23595
|
});
|
|
23568
23596
|
}
|
|
23569
|
-
class
|
|
23597
|
+
class gI extends en {
|
|
23570
23598
|
constructor() {
|
|
23571
23599
|
super(...arguments);
|
|
23572
23600
|
he(this, "VERSION", 1);
|
|
@@ -23578,22 +23606,22 @@ class pI extends en {
|
|
|
23578
23606
|
}));
|
|
23579
23607
|
}
|
|
23580
23608
|
}
|
|
23581
|
-
const
|
|
23609
|
+
const hI = {
|
|
23582
23610
|
displayName: "Merico GQM",
|
|
23583
|
-
migrator: new
|
|
23611
|
+
migrator: new gI(),
|
|
23584
23612
|
name: "mericoGQM",
|
|
23585
|
-
viewRender:
|
|
23586
|
-
configRender:
|
|
23613
|
+
viewRender: fI,
|
|
23614
|
+
configRender: pI,
|
|
23587
23615
|
createConfig: () => Fs
|
|
23588
23616
|
};
|
|
23589
|
-
function
|
|
23617
|
+
function vI(e) {
|
|
23590
23618
|
const t = e.y_axes.some((n) => !!n.name);
|
|
23591
23619
|
return {
|
|
23592
23620
|
bottom: e.x_axis.name ? 40 : 25,
|
|
23593
23621
|
top: t ? 30 : 10
|
|
23594
23622
|
};
|
|
23595
23623
|
}
|
|
23596
|
-
function
|
|
23624
|
+
function mI({ type: e, ...t }, n, r, o) {
|
|
23597
23625
|
if (!e)
|
|
23598
23626
|
return 10;
|
|
23599
23627
|
if (e === "static") {
|
|
@@ -23614,7 +23642,7 @@ function vI({ type: e, ...t }, n, r, o) {
|
|
|
23614
23642
|
}
|
|
23615
23643
|
};
|
|
23616
23644
|
}
|
|
23617
|
-
function
|
|
23645
|
+
function yI(e, t, n, r) {
|
|
23618
23646
|
return e.map((o) => {
|
|
23619
23647
|
const i = o.orientation === "horizontal", a = i ? "yAxis" : "xAxis", s = i ? "insideEndTop" : "end";
|
|
23620
23648
|
return {
|
|
@@ -23640,7 +23668,7 @@ function mI(e, t, n, r) {
|
|
|
23640
23668
|
};
|
|
23641
23669
|
});
|
|
23642
23670
|
}
|
|
23643
|
-
function
|
|
23671
|
+
function bI(e, t) {
|
|
23644
23672
|
return e.map((n) => ({
|
|
23645
23673
|
name: "",
|
|
23646
23674
|
type: "line",
|
|
@@ -23663,7 +23691,7 @@ function yI(e, t) {
|
|
|
23663
23691
|
}
|
|
23664
23692
|
}));
|
|
23665
23693
|
}
|
|
23666
|
-
function
|
|
23694
|
+
function SI({ x_axis: e, scatter: t }, n, r, o) {
|
|
23667
23695
|
return {
|
|
23668
23696
|
label: {
|
|
23669
23697
|
show: !!t.label_position,
|
|
@@ -23675,15 +23703,15 @@ function bI({ x_axis: e, scatter: t }, n, r, o) {
|
|
|
23675
23703
|
xAxisId: "main-x-axis",
|
|
23676
23704
|
yAxisIndex: 0,
|
|
23677
23705
|
color: t.color,
|
|
23678
|
-
symbolSize:
|
|
23706
|
+
symbolSize: mI(t.symbolSize, n, e.data_key, r),
|
|
23679
23707
|
data: n.map((i) => {
|
|
23680
23708
|
const a = i[e.data_key], s = i[t.y_data_key], c = i[t.name_data_key];
|
|
23681
23709
|
return [a, s, c];
|
|
23682
23710
|
})
|
|
23683
23711
|
};
|
|
23684
23712
|
}
|
|
23685
|
-
function
|
|
23686
|
-
return [
|
|
23713
|
+
function wI(e, t, n, r, o, i, a) {
|
|
23714
|
+
return [SI(e, r, a)].concat(yI(e.reference_lines, i, a, r)).concat(bI(e.reference_areas, a));
|
|
23687
23715
|
}
|
|
23688
23716
|
function Xg({ enabled: e, func_content: t }) {
|
|
23689
23717
|
return (n, r) => {
|
|
@@ -23696,21 +23724,21 @@ function Xg({ enabled: e, func_content: t }) {
|
|
|
23696
23724
|
}
|
|
23697
23725
|
};
|
|
23698
23726
|
}
|
|
23699
|
-
function
|
|
23727
|
+
function CI(e, t) {
|
|
23700
23728
|
const n = e.find((a) => a.axisDim === "x" && a.axisId === "main-x-axis");
|
|
23701
23729
|
if (!n)
|
|
23702
23730
|
return "";
|
|
23703
23731
|
const { name: r, axisValue: o, axisIndex: i } = n;
|
|
23704
23732
|
return t.x_axis.axisLabel.formatter.enabled ? Xg(t.x_axis.axisLabel.formatter)(o, i) : o;
|
|
23705
23733
|
}
|
|
23706
|
-
function
|
|
23734
|
+
function xI(e, t) {
|
|
23707
23735
|
return {
|
|
23708
23736
|
formatter: function(n) {
|
|
23709
23737
|
var c;
|
|
23710
23738
|
const r = (c = t[0]) != null ? c : t.default, o = Array.isArray(n) ? n : [n];
|
|
23711
23739
|
if (o.length === 0)
|
|
23712
23740
|
return "";
|
|
23713
|
-
const i =
|
|
23741
|
+
const i = CI(o, e), a = o.map(({ value: u }) => `
|
|
23714
23742
|
<tr>
|
|
23715
23743
|
<th style="text-align: right;">${u[2]}</th>
|
|
23716
23744
|
<td style="text-align: right; padding-right: .5em;">${i}</td>
|
|
@@ -23735,7 +23763,7 @@ function CI(e, t) {
|
|
|
23735
23763
|
}
|
|
23736
23764
|
};
|
|
23737
23765
|
}
|
|
23738
|
-
function
|
|
23766
|
+
function _I(e, t) {
|
|
23739
23767
|
var o;
|
|
23740
23768
|
const n = t.every((i) => !Number.isNaN(Number(i))), { axisLabel: r } = e.x_axis;
|
|
23741
23769
|
return [
|
|
@@ -23755,7 +23783,7 @@ function xI(e, t) {
|
|
|
23755
23783
|
}
|
|
23756
23784
|
];
|
|
23757
23785
|
}
|
|
23758
|
-
function
|
|
23786
|
+
function EI(e, t) {
|
|
23759
23787
|
return e.y_axes.map(({ nameAlignment: n, ...r }, o) => {
|
|
23760
23788
|
var a;
|
|
23761
23789
|
let i = r.position;
|
|
@@ -23781,7 +23809,7 @@ function _I(e, t) {
|
|
|
23781
23809
|
};
|
|
23782
23810
|
});
|
|
23783
23811
|
}
|
|
23784
|
-
function
|
|
23812
|
+
function OI() {
|
|
23785
23813
|
return {
|
|
23786
23814
|
show: !1,
|
|
23787
23815
|
bottom: 0,
|
|
@@ -23789,7 +23817,7 @@ function EI() {
|
|
|
23789
23817
|
type: "scroll"
|
|
23790
23818
|
};
|
|
23791
23819
|
}
|
|
23792
|
-
const
|
|
23820
|
+
const RI = {
|
|
23793
23821
|
dataZoom: [
|
|
23794
23822
|
{
|
|
23795
23823
|
type: "inside",
|
|
@@ -23828,7 +23856,7 @@ const OI = {
|
|
|
23828
23856
|
containLabel: !0
|
|
23829
23857
|
}
|
|
23830
23858
|
};
|
|
23831
|
-
function
|
|
23859
|
+
function TI(e, t, n) {
|
|
23832
23860
|
const r = n.reduce((u, d) => {
|
|
23833
23861
|
const f = Ss(d, t);
|
|
23834
23862
|
return u[d.name] = li(d, f), u;
|
|
@@ -23846,21 +23874,21 @@ function RI(e, t, n) {
|
|
|
23846
23874
|
{
|
|
23847
23875
|
default: ({ value: u }) => u
|
|
23848
23876
|
}
|
|
23849
|
-
), i = Be.uniq(t.map((u) => u[e.x_axis.data_key])), a = i.every((u) => !Number.isNaN(Number(u))), s =
|
|
23850
|
-
xAxis:
|
|
23851
|
-
yAxis:
|
|
23877
|
+
), i = Be.uniq(t.map((u) => u[e.x_axis.data_key])), a = i.every((u) => !Number.isNaN(Number(u))), s = wI(e, i, a, t, o, n, r), c = {
|
|
23878
|
+
xAxis: _I(e, i),
|
|
23879
|
+
yAxis: EI(e, o),
|
|
23852
23880
|
series: s,
|
|
23853
|
-
tooltip:
|
|
23854
|
-
grid:
|
|
23855
|
-
legend:
|
|
23881
|
+
tooltip: xI(e, o),
|
|
23882
|
+
grid: vI(e),
|
|
23883
|
+
legend: OI()
|
|
23856
23884
|
};
|
|
23857
|
-
return nn({}, c,
|
|
23885
|
+
return nn({}, c, RI);
|
|
23858
23886
|
}
|
|
23859
23887
|
const Qg = {
|
|
23860
23888
|
id: "builtin:echarts:click-scatter-chart:series",
|
|
23861
23889
|
displayName: "Click Scatter",
|
|
23862
|
-
nameRender:
|
|
23863
|
-
configRender:
|
|
23890
|
+
nameRender: DI,
|
|
23891
|
+
configRender: MI,
|
|
23864
23892
|
payload: [{
|
|
23865
23893
|
name: "seriesType",
|
|
23866
23894
|
description: "'scatter'",
|
|
@@ -23887,10 +23915,10 @@ const Qg = {
|
|
|
23887
23915
|
valueType: "object"
|
|
23888
23916
|
}]
|
|
23889
23917
|
};
|
|
23890
|
-
function
|
|
23918
|
+
function MI(e) {
|
|
23891
23919
|
return /* @__PURE__ */ l($e, {});
|
|
23892
23920
|
}
|
|
23893
|
-
function
|
|
23921
|
+
function DI(e) {
|
|
23894
23922
|
return /* @__PURE__ */ l(F, {
|
|
23895
23923
|
children: "Click scatter"
|
|
23896
23924
|
});
|
|
@@ -23937,7 +23965,7 @@ const Jg = {
|
|
|
23937
23965
|
};
|
|
23938
23966
|
Pt.use([ei, Al, $l, Nl, Lr, Vr, Fr, Jn, Il, Id]);
|
|
23939
23967
|
Pt.registerTransform(Ll.regression);
|
|
23940
|
-
function
|
|
23968
|
+
function kI({
|
|
23941
23969
|
conf: e,
|
|
23942
23970
|
data: t,
|
|
23943
23971
|
width: n,
|
|
@@ -23955,7 +23983,7 @@ function DI({
|
|
|
23955
23983
|
rowData: p
|
|
23956
23984
|
});
|
|
23957
23985
|
});
|
|
23958
|
-
}, u = j.useMemo(() =>
|
|
23986
|
+
}, u = j.useMemo(() => TI(e, t, i), [e, t]);
|
|
23959
23987
|
return !n || !r ? null : /* @__PURE__ */ l(Zn, {
|
|
23960
23988
|
echarts: Pt,
|
|
23961
23989
|
option: u,
|
|
@@ -23968,7 +23996,7 @@ function DI({
|
|
|
23968
23996
|
}
|
|
23969
23997
|
});
|
|
23970
23998
|
}
|
|
23971
|
-
function
|
|
23999
|
+
function PI({
|
|
23972
24000
|
context: e,
|
|
23973
24001
|
instance: t
|
|
23974
24002
|
}) {
|
|
@@ -24006,7 +24034,7 @@ function kI({
|
|
|
24006
24034
|
size: "xs",
|
|
24007
24035
|
pl: "sm",
|
|
24008
24036
|
children: Object.values(g.top).map((v) => v)
|
|
24009
|
-
}), /* @__PURE__ */ l(
|
|
24037
|
+
}), /* @__PURE__ */ l(kI, {
|
|
24010
24038
|
variables: o,
|
|
24011
24039
|
width: s,
|
|
24012
24040
|
height: h,
|
|
@@ -24022,14 +24050,14 @@ function kI({
|
|
|
24022
24050
|
})]
|
|
24023
24051
|
});
|
|
24024
24052
|
}
|
|
24025
|
-
const
|
|
24053
|
+
const II = [{
|
|
24026
24054
|
label: "Horizontal",
|
|
24027
24055
|
value: "horizontal"
|
|
24028
24056
|
}, {
|
|
24029
24057
|
label: "Vertical",
|
|
24030
24058
|
value: "vertical"
|
|
24031
24059
|
}];
|
|
24032
|
-
function
|
|
24060
|
+
function AI({
|
|
24033
24061
|
control: e,
|
|
24034
24062
|
index: t,
|
|
24035
24063
|
remove: n,
|
|
@@ -24096,7 +24124,7 @@ function II({
|
|
|
24096
24124
|
field: a
|
|
24097
24125
|
}) => /* @__PURE__ */ l(Ee, {
|
|
24098
24126
|
label: "Orientation",
|
|
24099
|
-
data:
|
|
24127
|
+
data: II,
|
|
24100
24128
|
required: !0,
|
|
24101
24129
|
sx: {
|
|
24102
24130
|
flex: 1
|
|
@@ -24123,7 +24151,7 @@ function II({
|
|
|
24123
24151
|
})]
|
|
24124
24152
|
}, t);
|
|
24125
24153
|
}
|
|
24126
|
-
function
|
|
24154
|
+
function $I({
|
|
24127
24155
|
control: e,
|
|
24128
24156
|
watch: t,
|
|
24129
24157
|
variables: n
|
|
@@ -24174,7 +24202,7 @@ function AI({
|
|
|
24174
24202
|
})]
|
|
24175
24203
|
}), s.map((d, f) => /* @__PURE__ */ l(N.Panel, {
|
|
24176
24204
|
value: f.toString(),
|
|
24177
|
-
children: /* @__PURE__ */ l(
|
|
24205
|
+
children: /* @__PURE__ */ l(AI, {
|
|
24178
24206
|
control: e,
|
|
24179
24207
|
index: f,
|
|
24180
24208
|
remove: i,
|
|
@@ -24184,7 +24212,7 @@ function AI({
|
|
|
24184
24212
|
}, f))]
|
|
24185
24213
|
});
|
|
24186
24214
|
}
|
|
24187
|
-
const
|
|
24215
|
+
const NI = ({
|
|
24188
24216
|
value: e,
|
|
24189
24217
|
onChange: t
|
|
24190
24218
|
}) => /* @__PURE__ */ l(Ae, {
|
|
@@ -24217,7 +24245,7 @@ const $I = ({
|
|
|
24217
24245
|
].join(`
|
|
24218
24246
|
`)
|
|
24219
24247
|
}
|
|
24220
|
-
},
|
|
24248
|
+
}, LI = ({
|
|
24221
24249
|
value: e,
|
|
24222
24250
|
onChange: t,
|
|
24223
24251
|
data: n
|
|
@@ -24273,7 +24301,7 @@ const $I = ({
|
|
|
24273
24301
|
label: "Dynamic by a custom function",
|
|
24274
24302
|
labelPosition: "center",
|
|
24275
24303
|
variant: "dashed"
|
|
24276
|
-
}), /* @__PURE__ */ l(
|
|
24304
|
+
}), /* @__PURE__ */ l(NI, {
|
|
24277
24305
|
value: a.func_content,
|
|
24278
24306
|
onChange: d
|
|
24279
24307
|
}), /* @__PURE__ */ m(D, {
|
|
@@ -24300,15 +24328,15 @@ const $I = ({
|
|
|
24300
24328
|
})
|
|
24301
24329
|
})]
|
|
24302
24330
|
});
|
|
24303
|
-
},
|
|
24331
|
+
}, VI = ({
|
|
24304
24332
|
value: e,
|
|
24305
24333
|
onChange: t,
|
|
24306
24334
|
data: n
|
|
24307
|
-
}) => e.type !== "dynamic" ? null : /* @__PURE__ */ l(
|
|
24335
|
+
}) => e.type !== "dynamic" ? null : /* @__PURE__ */ l(LI, {
|
|
24308
24336
|
value: e,
|
|
24309
24337
|
onChange: t,
|
|
24310
24338
|
data: n
|
|
24311
|
-
}),
|
|
24339
|
+
}), FI = ({
|
|
24312
24340
|
value: e,
|
|
24313
24341
|
onChange: t
|
|
24314
24342
|
}) => {
|
|
@@ -24330,13 +24358,13 @@ const $I = ({
|
|
|
24330
24358
|
onChange: n
|
|
24331
24359
|
})
|
|
24332
24360
|
});
|
|
24333
|
-
},
|
|
24361
|
+
}, zI = [{
|
|
24334
24362
|
label: "Static",
|
|
24335
24363
|
value: "static"
|
|
24336
24364
|
}, {
|
|
24337
24365
|
label: "Dynamic",
|
|
24338
24366
|
value: "dynamic"
|
|
24339
|
-
}],
|
|
24367
|
+
}], jI = An(({
|
|
24340
24368
|
label: e = "Size",
|
|
24341
24369
|
value: t,
|
|
24342
24370
|
onChange: n,
|
|
@@ -24352,22 +24380,22 @@ const $I = ({
|
|
|
24352
24380
|
children: [/* @__PURE__ */ l(Ee, {
|
|
24353
24381
|
ref: o,
|
|
24354
24382
|
label: e,
|
|
24355
|
-
data:
|
|
24383
|
+
data: zI,
|
|
24356
24384
|
value: t.type,
|
|
24357
24385
|
onChange: i,
|
|
24358
24386
|
sx: {
|
|
24359
24387
|
flexGrow: 1
|
|
24360
24388
|
}
|
|
24361
|
-
}), /* @__PURE__ */ l(
|
|
24389
|
+
}), /* @__PURE__ */ l(FI, {
|
|
24362
24390
|
value: t,
|
|
24363
24391
|
onChange: n
|
|
24364
|
-
}), /* @__PURE__ */ l(
|
|
24392
|
+
}), /* @__PURE__ */ l(VI, {
|
|
24365
24393
|
value: t,
|
|
24366
24394
|
onChange: n,
|
|
24367
24395
|
data: r
|
|
24368
24396
|
})]
|
|
24369
24397
|
});
|
|
24370
|
-
}),
|
|
24398
|
+
}), KI = [{
|
|
24371
24399
|
label: "off",
|
|
24372
24400
|
value: ""
|
|
24373
24401
|
}, {
|
|
@@ -24410,7 +24438,7 @@ const $I = ({
|
|
|
24410
24438
|
label: "insideBottomRight",
|
|
24411
24439
|
value: "insideBottomRight"
|
|
24412
24440
|
}];
|
|
24413
|
-
function
|
|
24441
|
+
function HI({
|
|
24414
24442
|
data: e,
|
|
24415
24443
|
control: t,
|
|
24416
24444
|
watch: n
|
|
@@ -24457,7 +24485,7 @@ function KI({
|
|
|
24457
24485
|
control: t,
|
|
24458
24486
|
render: ({
|
|
24459
24487
|
field: r
|
|
24460
|
-
}) => /* @__PURE__ */ l(
|
|
24488
|
+
}) => /* @__PURE__ */ l(jI, {
|
|
24461
24489
|
label: "Size",
|
|
24462
24490
|
data: e,
|
|
24463
24491
|
...r
|
|
@@ -24490,14 +24518,14 @@ function KI({
|
|
|
24490
24518
|
field: r
|
|
24491
24519
|
}) => /* @__PURE__ */ l(Ee, {
|
|
24492
24520
|
label: "Label Position",
|
|
24493
|
-
data:
|
|
24521
|
+
data: KI,
|
|
24494
24522
|
...r
|
|
24495
24523
|
})
|
|
24496
24524
|
})
|
|
24497
24525
|
})]
|
|
24498
24526
|
});
|
|
24499
24527
|
}
|
|
24500
|
-
function
|
|
24528
|
+
function BI({
|
|
24501
24529
|
control: e,
|
|
24502
24530
|
watch: t
|
|
24503
24531
|
}) {
|
|
@@ -24534,7 +24562,7 @@ function HI({
|
|
|
24534
24562
|
})
|
|
24535
24563
|
});
|
|
24536
24564
|
}
|
|
24537
|
-
const
|
|
24565
|
+
const GI = ({
|
|
24538
24566
|
disabled: e,
|
|
24539
24567
|
value: t,
|
|
24540
24568
|
onChange: n
|
|
@@ -24562,7 +24590,7 @@ const BI = ({
|
|
|
24562
24590
|
}
|
|
24563
24591
|
}
|
|
24564
24592
|
})]
|
|
24565
|
-
}),
|
|
24593
|
+
}), WI = ({
|
|
24566
24594
|
value: e,
|
|
24567
24595
|
onChange: t,
|
|
24568
24596
|
data: n
|
|
@@ -24617,7 +24645,7 @@ const BI = ({
|
|
|
24617
24645
|
label: "Enabled",
|
|
24618
24646
|
checked: a.enabled,
|
|
24619
24647
|
onChange: (g) => c(g.currentTarget.checked)
|
|
24620
|
-
}), /* @__PURE__ */ l(
|
|
24648
|
+
}), /* @__PURE__ */ l(GI, {
|
|
24621
24649
|
value: a.func_content,
|
|
24622
24650
|
onChange: f,
|
|
24623
24651
|
disabled: !a.enabled
|
|
@@ -24646,7 +24674,7 @@ const BI = ({
|
|
|
24646
24674
|
})]
|
|
24647
24675
|
});
|
|
24648
24676
|
};
|
|
24649
|
-
function
|
|
24677
|
+
function qI({
|
|
24650
24678
|
data: e,
|
|
24651
24679
|
control: t,
|
|
24652
24680
|
watch: n
|
|
@@ -24720,7 +24748,7 @@ function WI({
|
|
|
24720
24748
|
control: t,
|
|
24721
24749
|
render: ({
|
|
24722
24750
|
field: r
|
|
24723
|
-
}) => /* @__PURE__ */ l(
|
|
24751
|
+
}) => /* @__PURE__ */ l(WI, {
|
|
24724
24752
|
data: e,
|
|
24725
24753
|
...r
|
|
24726
24754
|
})
|
|
@@ -24728,7 +24756,7 @@ function WI({
|
|
|
24728
24756
|
})]
|
|
24729
24757
|
});
|
|
24730
24758
|
}
|
|
24731
|
-
const
|
|
24759
|
+
const UI = [{
|
|
24732
24760
|
label: "left",
|
|
24733
24761
|
value: "left"
|
|
24734
24762
|
}, {
|
|
@@ -24737,14 +24765,14 @@ const qI = [{
|
|
|
24737
24765
|
}, {
|
|
24738
24766
|
label: "right",
|
|
24739
24767
|
value: "right"
|
|
24740
|
-
}],
|
|
24768
|
+
}], YI = [{
|
|
24741
24769
|
label: "left",
|
|
24742
24770
|
value: "left"
|
|
24743
24771
|
}, {
|
|
24744
24772
|
label: "right",
|
|
24745
24773
|
value: "right"
|
|
24746
24774
|
}];
|
|
24747
|
-
function
|
|
24775
|
+
function XI({
|
|
24748
24776
|
control: e,
|
|
24749
24777
|
index: t,
|
|
24750
24778
|
remove: n
|
|
@@ -24785,7 +24813,7 @@ function YI({
|
|
|
24785
24813
|
}) => /* @__PURE__ */ l(Ee, {
|
|
24786
24814
|
label: "Align",
|
|
24787
24815
|
required: !0,
|
|
24788
|
-
data:
|
|
24816
|
+
data: UI,
|
|
24789
24817
|
sx: {
|
|
24790
24818
|
flex: 1
|
|
24791
24819
|
},
|
|
@@ -24808,7 +24836,7 @@ function YI({
|
|
|
24808
24836
|
}) => /* @__PURE__ */ l(Ee, {
|
|
24809
24837
|
label: "Position",
|
|
24810
24838
|
required: !0,
|
|
24811
|
-
data:
|
|
24839
|
+
data: YI,
|
|
24812
24840
|
sx: {
|
|
24813
24841
|
flex: 1
|
|
24814
24842
|
},
|
|
@@ -24843,7 +24871,7 @@ function YI({
|
|
|
24843
24871
|
})]
|
|
24844
24872
|
});
|
|
24845
24873
|
}
|
|
24846
|
-
function
|
|
24874
|
+
function QI({
|
|
24847
24875
|
control: e,
|
|
24848
24876
|
watch: t
|
|
24849
24877
|
}) {
|
|
@@ -24888,7 +24916,7 @@ function XI({
|
|
|
24888
24916
|
})]
|
|
24889
24917
|
}), a.map((c, u) => /* @__PURE__ */ l(N.Panel, {
|
|
24890
24918
|
value: u.toString(),
|
|
24891
|
-
children: /* @__PURE__ */ l(
|
|
24919
|
+
children: /* @__PURE__ */ l(XI, {
|
|
24892
24920
|
control: e,
|
|
24893
24921
|
index: u,
|
|
24894
24922
|
remove: o
|
|
@@ -24896,7 +24924,7 @@ function XI({
|
|
|
24896
24924
|
}, u))]
|
|
24897
24925
|
});
|
|
24898
24926
|
}
|
|
24899
|
-
function
|
|
24927
|
+
function JI(e) {
|
|
24900
24928
|
return e || {
|
|
24901
24929
|
templates: {
|
|
24902
24930
|
top: "",
|
|
@@ -24904,18 +24932,18 @@ function QI(e) {
|
|
|
24904
24932
|
}
|
|
24905
24933
|
};
|
|
24906
24934
|
}
|
|
24907
|
-
function
|
|
24935
|
+
function ZI({
|
|
24908
24936
|
reference_lines: e = [],
|
|
24909
24937
|
stats: t,
|
|
24910
24938
|
...n
|
|
24911
24939
|
}) {
|
|
24912
24940
|
return {
|
|
24913
24941
|
reference_lines: e,
|
|
24914
|
-
stats:
|
|
24942
|
+
stats: JI(t),
|
|
24915
24943
|
...n
|
|
24916
24944
|
};
|
|
24917
24945
|
}
|
|
24918
|
-
function
|
|
24946
|
+
function eA({
|
|
24919
24947
|
context: e
|
|
24920
24948
|
}) {
|
|
24921
24949
|
const {
|
|
@@ -24923,7 +24951,7 @@ function ZI({
|
|
|
24923
24951
|
set: n
|
|
24924
24952
|
} = rt(e.instanceData, "config"), {
|
|
24925
24953
|
variables: r
|
|
24926
|
-
} = e, o = e.data, i = de(() => nn({}, t, zs), [t]), a = de(() =>
|
|
24954
|
+
} = e, o = e.data, i = de(() => nn({}, t, zs), [t]), a = de(() => ZI(i), [i]);
|
|
24927
24955
|
ke(() => {
|
|
24928
24956
|
!Vt(i, a) && (console.log("config malformed, resetting to defaults", i, a), n(a));
|
|
24929
24957
|
}, [i, a]);
|
|
@@ -24997,34 +25025,34 @@ function ZI({
|
|
|
24997
25025
|
})]
|
|
24998
25026
|
}), /* @__PURE__ */ l(N.Panel, {
|
|
24999
25027
|
value: "X Axis",
|
|
25000
|
-
children: /* @__PURE__ */ l(
|
|
25028
|
+
children: /* @__PURE__ */ l(qI, {
|
|
25001
25029
|
control: s,
|
|
25002
25030
|
watch: u,
|
|
25003
25031
|
data: o
|
|
25004
25032
|
})
|
|
25005
25033
|
}), /* @__PURE__ */ l(N.Panel, {
|
|
25006
25034
|
value: "Y Axes",
|
|
25007
|
-
children: /* @__PURE__ */ l(
|
|
25035
|
+
children: /* @__PURE__ */ l(QI, {
|
|
25008
25036
|
control: s,
|
|
25009
25037
|
watch: u
|
|
25010
25038
|
})
|
|
25011
25039
|
}), /* @__PURE__ */ l(N.Panel, {
|
|
25012
25040
|
value: "Scatter",
|
|
25013
|
-
children: /* @__PURE__ */ l(
|
|
25041
|
+
children: /* @__PURE__ */ l(HI, {
|
|
25014
25042
|
control: s,
|
|
25015
25043
|
watch: u,
|
|
25016
25044
|
data: o
|
|
25017
25045
|
})
|
|
25018
25046
|
}), /* @__PURE__ */ l(N.Panel, {
|
|
25019
25047
|
value: "Stats",
|
|
25020
|
-
children: /* @__PURE__ */ l(
|
|
25048
|
+
children: /* @__PURE__ */ l(BI, {
|
|
25021
25049
|
control: s,
|
|
25022
25050
|
watch: u,
|
|
25023
25051
|
data: o
|
|
25024
25052
|
})
|
|
25025
25053
|
}), /* @__PURE__ */ l(N.Panel, {
|
|
25026
25054
|
value: "Reference Lines",
|
|
25027
|
-
children: /* @__PURE__ */ l(
|
|
25055
|
+
children: /* @__PURE__ */ l($I, {
|
|
25028
25056
|
variables: r,
|
|
25029
25057
|
control: s,
|
|
25030
25058
|
watch: u
|
|
@@ -25034,7 +25062,7 @@ function ZI({
|
|
|
25034
25062
|
})
|
|
25035
25063
|
});
|
|
25036
25064
|
}
|
|
25037
|
-
class
|
|
25065
|
+
class tA extends en {
|
|
25038
25066
|
constructor() {
|
|
25039
25067
|
super(...arguments);
|
|
25040
25068
|
he(this, "VERSION", 1);
|
|
@@ -25046,12 +25074,12 @@ class eA extends en {
|
|
|
25046
25074
|
}));
|
|
25047
25075
|
}
|
|
25048
25076
|
}
|
|
25049
|
-
const
|
|
25077
|
+
const nA = {
|
|
25050
25078
|
displayName: "Scatter Chart",
|
|
25051
|
-
migrator: new
|
|
25079
|
+
migrator: new tA(),
|
|
25052
25080
|
name: "scatterChart",
|
|
25053
|
-
viewRender:
|
|
25054
|
-
configRender:
|
|
25081
|
+
viewRender: PI,
|
|
25082
|
+
configRender: eA,
|
|
25055
25083
|
createConfig: () => zs,
|
|
25056
25084
|
triggers: [Qg]
|
|
25057
25085
|
}, eh = [
|
|
@@ -25065,7 +25093,7 @@ const tA = {
|
|
|
25065
25093
|
horizontal_align: "left",
|
|
25066
25094
|
font_size: "14px",
|
|
25067
25095
|
font_weight: "normal"
|
|
25068
|
-
},
|
|
25096
|
+
}, rA = Q(({
|
|
25069
25097
|
context: e
|
|
25070
25098
|
}) => {
|
|
25071
25099
|
const t = lt(), {
|
|
@@ -25091,7 +25119,7 @@ const tA = {
|
|
|
25091
25119
|
},
|
|
25092
25120
|
children: c
|
|
25093
25121
|
});
|
|
25094
|
-
}),
|
|
25122
|
+
}), oA = ({
|
|
25095
25123
|
value: e,
|
|
25096
25124
|
onChange: t
|
|
25097
25125
|
}) => /* @__PURE__ */ l(Ae, {
|
|
@@ -25112,7 +25140,7 @@ const tA = {
|
|
|
25112
25140
|
}
|
|
25113
25141
|
}
|
|
25114
25142
|
})
|
|
25115
|
-
}),
|
|
25143
|
+
}), iA = An(({
|
|
25116
25144
|
value: e,
|
|
25117
25145
|
onChange: t
|
|
25118
25146
|
}, n) => {
|
|
@@ -25145,7 +25173,7 @@ const tA = {
|
|
|
25145
25173
|
closeOnClickOutside: !1,
|
|
25146
25174
|
withCloseButton: !1,
|
|
25147
25175
|
children: r && /* @__PURE__ */ m(W, {
|
|
25148
|
-
children: [/* @__PURE__ */ l(
|
|
25176
|
+
children: [/* @__PURE__ */ l(oA, {
|
|
25149
25177
|
value: a,
|
|
25150
25178
|
onChange: s
|
|
25151
25179
|
}), /* @__PURE__ */ m(D, {
|
|
@@ -25172,7 +25200,7 @@ const tA = {
|
|
|
25172
25200
|
})
|
|
25173
25201
|
})]
|
|
25174
25202
|
});
|
|
25175
|
-
}),
|
|
25203
|
+
}), aA = [{
|
|
25176
25204
|
label: "Left",
|
|
25177
25205
|
value: "left"
|
|
25178
25206
|
}, {
|
|
@@ -25182,7 +25210,7 @@ const tA = {
|
|
|
25182
25210
|
label: "Right",
|
|
25183
25211
|
value: "right"
|
|
25184
25212
|
}];
|
|
25185
|
-
function
|
|
25213
|
+
function lA({
|
|
25186
25214
|
context: e
|
|
25187
25215
|
}) {
|
|
25188
25216
|
const {
|
|
@@ -25251,7 +25279,7 @@ function aA({
|
|
|
25251
25279
|
control: i,
|
|
25252
25280
|
render: ({
|
|
25253
25281
|
field: p
|
|
25254
|
-
}) => /* @__PURE__ */ l(
|
|
25282
|
+
}) => /* @__PURE__ */ l(iA, {
|
|
25255
25283
|
...p
|
|
25256
25284
|
})
|
|
25257
25285
|
}), /* @__PURE__ */ l(qe, {
|
|
@@ -25267,7 +25295,7 @@ function aA({
|
|
|
25267
25295
|
field: p
|
|
25268
25296
|
}) => /* @__PURE__ */ l(Ee, {
|
|
25269
25297
|
label: "Horizontal Alignment",
|
|
25270
|
-
data:
|
|
25298
|
+
data: aA,
|
|
25271
25299
|
...p
|
|
25272
25300
|
})
|
|
25273
25301
|
}), /* @__PURE__ */ l(z, {
|
|
@@ -25307,7 +25335,7 @@ function aA({
|
|
|
25307
25335
|
})
|
|
25308
25336
|
});
|
|
25309
25337
|
}
|
|
25310
|
-
class
|
|
25338
|
+
class sA extends en {
|
|
25311
25339
|
constructor() {
|
|
25312
25340
|
super(...arguments);
|
|
25313
25341
|
he(this, "VERSION", 1);
|
|
@@ -25319,14 +25347,14 @@ class lA extends en {
|
|
|
25319
25347
|
}));
|
|
25320
25348
|
}
|
|
25321
25349
|
}
|
|
25322
|
-
const
|
|
25350
|
+
const cA = {
|
|
25323
25351
|
displayName: "Text",
|
|
25324
|
-
migrator: new
|
|
25352
|
+
migrator: new sA(),
|
|
25325
25353
|
name: "text",
|
|
25326
|
-
viewRender:
|
|
25327
|
-
configRender:
|
|
25354
|
+
viewRender: rA,
|
|
25355
|
+
configRender: lA,
|
|
25328
25356
|
createConfig: () => js
|
|
25329
|
-
},
|
|
25357
|
+
}, uA = [{
|
|
25330
25358
|
value: "#25262B",
|
|
25331
25359
|
name: "Dark"
|
|
25332
25360
|
}, {
|
|
@@ -25373,12 +25401,12 @@ const sA = {
|
|
|
25373
25401
|
value: e.value,
|
|
25374
25402
|
type: "single",
|
|
25375
25403
|
category: "basic"
|
|
25376
|
-
})),
|
|
25404
|
+
})), dA = [JR, ZR, nT, tT, eT, rT], th = () => ({
|
|
25377
25405
|
id: "dashboard",
|
|
25378
25406
|
version: oT,
|
|
25379
25407
|
manifest: {
|
|
25380
|
-
viz: [yl,
|
|
25381
|
-
color: [...
|
|
25408
|
+
viz: [yl, Mk, cA, wk, Ak, YD, fT, gM, BD, ND, nA, ak, mk, hI, TM],
|
|
25409
|
+
color: [...uA, ...dA]
|
|
25382
25410
|
}
|
|
25383
25411
|
}), Oo = new aT(), Nt = {
|
|
25384
25412
|
pluginManager: Vn("pluginManager"),
|
|
@@ -25408,7 +25436,7 @@ try {
|
|
|
25408
25436
|
Oo.install(th());
|
|
25409
25437
|
} catch {
|
|
25410
25438
|
}
|
|
25411
|
-
function
|
|
25439
|
+
function fA(e, t) {
|
|
25412
25440
|
const {
|
|
25413
25441
|
value: n,
|
|
25414
25442
|
set: r
|
|
@@ -25423,12 +25451,12 @@ function dA(e, t) {
|
|
|
25423
25451
|
commit: a
|
|
25424
25452
|
};
|
|
25425
25453
|
}
|
|
25426
|
-
function
|
|
25454
|
+
function pA(e) {
|
|
25427
25455
|
const {
|
|
25428
25456
|
config: t,
|
|
25429
25457
|
setConfig: n,
|
|
25430
25458
|
commit: r
|
|
25431
|
-
} =
|
|
25459
|
+
} = fA(e, {
|
|
25432
25460
|
urlTemplate: "",
|
|
25433
25461
|
openInNewTab: !0
|
|
25434
25462
|
});
|
|
@@ -25458,7 +25486,7 @@ function fA(e) {
|
|
|
25458
25486
|
})]
|
|
25459
25487
|
});
|
|
25460
25488
|
}
|
|
25461
|
-
async function
|
|
25489
|
+
async function gA(e, t) {
|
|
25462
25490
|
const {
|
|
25463
25491
|
urlTemplate: n,
|
|
25464
25492
|
openInNewTab: r
|
|
@@ -25471,7 +25499,7 @@ async function pA(e, t) {
|
|
|
25471
25499
|
}
|
|
25472
25500
|
}));
|
|
25473
25501
|
}
|
|
25474
|
-
class
|
|
25502
|
+
class hA extends en {
|
|
25475
25503
|
constructor() {
|
|
25476
25504
|
super(...arguments);
|
|
25477
25505
|
he(this, "VERSION", 1);
|
|
@@ -25480,12 +25508,12 @@ class gA extends en {
|
|
|
25480
25508
|
this.version(1, (n) => n);
|
|
25481
25509
|
}
|
|
25482
25510
|
}
|
|
25483
|
-
const
|
|
25511
|
+
const vA = {
|
|
25484
25512
|
displayName: "Open Link",
|
|
25485
25513
|
id: "builtin:op:open-link",
|
|
25486
|
-
configRender:
|
|
25487
|
-
run:
|
|
25488
|
-
migrator: new
|
|
25514
|
+
configRender: pA,
|
|
25515
|
+
run: gA,
|
|
25516
|
+
migrator: new hA(),
|
|
25489
25517
|
createDefaultConfig: () => ({
|
|
25490
25518
|
version: 1,
|
|
25491
25519
|
config: {
|
|
@@ -25494,7 +25522,7 @@ const hA = {
|
|
|
25494
25522
|
}
|
|
25495
25523
|
})
|
|
25496
25524
|
};
|
|
25497
|
-
function
|
|
25525
|
+
function mA(e) {
|
|
25498
25526
|
const {
|
|
25499
25527
|
value: t,
|
|
25500
25528
|
set: n
|
|
@@ -25503,24 +25531,24 @@ function vA(e) {
|
|
|
25503
25531
|
});
|
|
25504
25532
|
return [(t == null ? void 0 : t.template) || "", r];
|
|
25505
25533
|
}
|
|
25506
|
-
function
|
|
25507
|
-
const [t, n] =
|
|
25534
|
+
function yA(e) {
|
|
25535
|
+
const [t, n] = mA(e.operation);
|
|
25508
25536
|
return /* @__PURE__ */ l(ce, {
|
|
25509
25537
|
defaultValue: t,
|
|
25510
25538
|
onBlur: (r) => n(r.currentTarget.value),
|
|
25511
25539
|
label: "console.log"
|
|
25512
25540
|
});
|
|
25513
25541
|
}
|
|
25514
|
-
async function
|
|
25542
|
+
async function bA(e, t) {
|
|
25515
25543
|
const n = await t.operationData.getItem("config"), r = Ol(n.template || "");
|
|
25516
25544
|
console.log("run with payload", e), console.log(r(e));
|
|
25517
25545
|
}
|
|
25518
|
-
const
|
|
25546
|
+
const SA = {
|
|
25519
25547
|
displayName: "console.log (debug)",
|
|
25520
25548
|
id: "builtin:op:debug",
|
|
25521
|
-
configRender:
|
|
25522
|
-
run:
|
|
25523
|
-
},
|
|
25549
|
+
configRender: yA,
|
|
25550
|
+
run: bA
|
|
25551
|
+
}, wA = Q((e) => {
|
|
25524
25552
|
const t = lt(), {
|
|
25525
25553
|
value: n,
|
|
25526
25554
|
set: r
|
|
@@ -25540,7 +25568,7 @@ const bA = {
|
|
|
25540
25568
|
data: t.views.options
|
|
25541
25569
|
});
|
|
25542
25570
|
});
|
|
25543
|
-
async function
|
|
25571
|
+
async function CA(e, t) {
|
|
25544
25572
|
const r = (await t.operationData.getItem("config")).viewID;
|
|
25545
25573
|
window.dispatchEvent(new CustomEvent("open-view", {
|
|
25546
25574
|
detail: {
|
|
@@ -25548,16 +25576,16 @@ async function wA(e, t) {
|
|
|
25548
25576
|
}
|
|
25549
25577
|
}));
|
|
25550
25578
|
}
|
|
25551
|
-
const
|
|
25579
|
+
const xA = {
|
|
25552
25580
|
displayName: "Open View",
|
|
25553
25581
|
id: "builtin:op:open_view",
|
|
25554
|
-
configRender:
|
|
25555
|
-
run:
|
|
25556
|
-
},
|
|
25582
|
+
configRender: wA,
|
|
25583
|
+
run: CA
|
|
25584
|
+
}, _A = {
|
|
25557
25585
|
dictionary: {}
|
|
25558
|
-
},
|
|
25586
|
+
}, EA = Q((e) => {
|
|
25559
25587
|
const t = lt(), {
|
|
25560
|
-
value: n =
|
|
25588
|
+
value: n = _A,
|
|
25561
25589
|
set: r
|
|
25562
25590
|
} = rt(e.operation.operationData, "config"), {
|
|
25563
25591
|
dictionary: o = {}
|
|
@@ -25614,7 +25642,7 @@ const CA = {
|
|
|
25614
25642
|
})]
|
|
25615
25643
|
});
|
|
25616
25644
|
});
|
|
25617
|
-
async function
|
|
25645
|
+
async function OA(e, t) {
|
|
25618
25646
|
const r = (await t.operationData.getItem("config")).dictionary;
|
|
25619
25647
|
window.dispatchEvent(new CustomEvent("set-filter-values", {
|
|
25620
25648
|
detail: {
|
|
@@ -25623,13 +25651,13 @@ async function EA(e, t) {
|
|
|
25623
25651
|
}
|
|
25624
25652
|
}));
|
|
25625
25653
|
}
|
|
25626
|
-
const
|
|
25654
|
+
const RA = {
|
|
25627
25655
|
displayName: "Set Filter Values",
|
|
25628
25656
|
id: "builtin:op:set_filter_values",
|
|
25629
|
-
configRender:
|
|
25630
|
-
run:
|
|
25631
|
-
}, ca = [
|
|
25632
|
-
class
|
|
25657
|
+
configRender: EA,
|
|
25658
|
+
run: OA
|
|
25659
|
+
}, ca = [SA, vA, xA, RA];
|
|
25660
|
+
class TA {
|
|
25633
25661
|
constructor(t, n = ca) {
|
|
25634
25662
|
he(this, "attachments");
|
|
25635
25663
|
this.operations = n;
|
|
@@ -25706,7 +25734,7 @@ class Hs {
|
|
|
25706
25734
|
he(this, "operationManager");
|
|
25707
25735
|
he(this, "triggerManager");
|
|
25708
25736
|
he(this, "attachments");
|
|
25709
|
-
this.operationManager = new
|
|
25737
|
+
this.operationManager = new TA(t, r), this.triggerManager = new pT(t, n);
|
|
25710
25738
|
const o = async (i) => {
|
|
25711
25739
|
const { id: a, triggerRef: s, operationRef: c } = await i.getItem(null);
|
|
25712
25740
|
return {
|
|
@@ -25754,14 +25782,14 @@ class Hs {
|
|
|
25754
25782
|
);
|
|
25755
25783
|
}
|
|
25756
25784
|
}
|
|
25757
|
-
function
|
|
25785
|
+
function MA(e, t) {
|
|
25758
25786
|
const [n, r] = Qe([]);
|
|
25759
25787
|
return Yo(async () => {
|
|
25760
25788
|
const o = await e.getInteractionList();
|
|
25761
25789
|
r(o);
|
|
25762
25790
|
}, [t]), n;
|
|
25763
25791
|
}
|
|
25764
|
-
const
|
|
25792
|
+
const DA = Q(({
|
|
25765
25793
|
item: e,
|
|
25766
25794
|
manager: t,
|
|
25767
25795
|
instance: n,
|
|
@@ -25795,13 +25823,13 @@ const MA = Q(({
|
|
|
25795
25823
|
});
|
|
25796
25824
|
}
|
|
25797
25825
|
return null;
|
|
25798
|
-
}),
|
|
25826
|
+
}), kA = (e) => {
|
|
25799
25827
|
const [t, n] = Qe(0), {
|
|
25800
25828
|
interactionManager: r,
|
|
25801
25829
|
instance: o,
|
|
25802
25830
|
sampleData: i,
|
|
25803
25831
|
variables: a
|
|
25804
|
-
} = e, s =
|
|
25832
|
+
} = e, s = MA(r, t), c = async () => {
|
|
25805
25833
|
const p = await r.triggerManager.createOrGetTrigger(gn(), r.triggerManager.getTriggerSchemaList()[0]), g = await r.operationManager.createOrGetOperation(gn(), r.operationManager.getOperationSchemaList()[0]);
|
|
25806
25834
|
await r.addInteraction(p, g), n((h) => h + 1);
|
|
25807
25835
|
};
|
|
@@ -25828,7 +25856,7 @@ const MA = Q(({
|
|
|
25828
25856
|
title: "Unavailable",
|
|
25829
25857
|
color: "gray",
|
|
25830
25858
|
children: "This visualization does not have available interactions to choose from"
|
|
25831
|
-
}), s.map((p) => /* @__PURE__ */ l(
|
|
25859
|
+
}), s.map((p) => /* @__PURE__ */ l(DA, {
|
|
25832
25860
|
onRemove: u,
|
|
25833
25861
|
instance: o,
|
|
25834
25862
|
sampleData: i,
|
|
@@ -25844,7 +25872,7 @@ const MA = Q(({
|
|
|
25844
25872
|
children: "Add interaction"
|
|
25845
25873
|
})]
|
|
25846
25874
|
});
|
|
25847
|
-
},
|
|
25875
|
+
}, PA = () => {
|
|
25848
25876
|
const {
|
|
25849
25877
|
panel: e,
|
|
25850
25878
|
data: t
|
|
@@ -25866,12 +25894,12 @@ const MA = Q(({
|
|
|
25866
25894
|
sampleData: t,
|
|
25867
25895
|
variables: []
|
|
25868
25896
|
};
|
|
25869
|
-
},
|
|
25870
|
-
const e =
|
|
25871
|
-
return /* @__PURE__ */ l(
|
|
25897
|
+
}, IA = () => {
|
|
25898
|
+
const e = PA();
|
|
25899
|
+
return /* @__PURE__ */ l(kA, {
|
|
25872
25900
|
...e
|
|
25873
25901
|
});
|
|
25874
|
-
},
|
|
25902
|
+
}, AA = Q(() => {
|
|
25875
25903
|
const {
|
|
25876
25904
|
panel: e
|
|
25877
25905
|
} = Gt(), [t, n] = j.useState(e.description), r = e.description !== t, o = j.useCallback(() => {
|
|
@@ -25908,7 +25936,7 @@ const MA = Q(({
|
|
|
25908
25936
|
}
|
|
25909
25937
|
})]
|
|
25910
25938
|
});
|
|
25911
|
-
}),
|
|
25939
|
+
}), $A = Q(() => {
|
|
25912
25940
|
const {
|
|
25913
25941
|
panel: e
|
|
25914
25942
|
} = Gt(), {
|
|
@@ -25921,7 +25949,7 @@ const MA = Q(({
|
|
|
25921
25949
|
onChange: (n) => t.border.setEnabled(n.currentTarget.checked)
|
|
25922
25950
|
})
|
|
25923
25951
|
});
|
|
25924
|
-
}),
|
|
25952
|
+
}), NA = Q(() => {
|
|
25925
25953
|
const {
|
|
25926
25954
|
panel: {
|
|
25927
25955
|
title: e,
|
|
@@ -25976,7 +26004,7 @@ const MA = Q(({
|
|
|
25976
26004
|
})]
|
|
25977
26005
|
})
|
|
25978
26006
|
});
|
|
25979
|
-
}),
|
|
26007
|
+
}), LA = Q(() => {
|
|
25980
26008
|
const {
|
|
25981
26009
|
panel: e
|
|
25982
26010
|
} = Gt(), {
|
|
@@ -26013,7 +26041,7 @@ const MA = Q(({
|
|
|
26013
26041
|
}
|
|
26014
26042
|
});
|
|
26015
26043
|
});
|
|
26016
|
-
function
|
|
26044
|
+
function VA() {
|
|
26017
26045
|
return /* @__PURE__ */ m(D, {
|
|
26018
26046
|
grow: !0,
|
|
26019
26047
|
noWrap: !0,
|
|
@@ -26032,22 +26060,22 @@ function LA() {
|
|
|
26032
26060
|
label: "Style",
|
|
26033
26061
|
labelPosition: "center",
|
|
26034
26062
|
variant: "dashed"
|
|
26035
|
-
}), /* @__PURE__ */ l(
|
|
26063
|
+
}), /* @__PURE__ */ l($A, {}), /* @__PURE__ */ l(qe, {
|
|
26036
26064
|
label: "Info",
|
|
26037
26065
|
labelPosition: "center",
|
|
26038
26066
|
variant: "dashed"
|
|
26039
|
-
}), /* @__PURE__ */ l(
|
|
26067
|
+
}), /* @__PURE__ */ l(LA, {}), /* @__PURE__ */ l(AA, {})]
|
|
26040
26068
|
}), /* @__PURE__ */ l(Ae, {
|
|
26041
26069
|
sx: {
|
|
26042
26070
|
height: "100%",
|
|
26043
26071
|
flexGrow: 1,
|
|
26044
26072
|
maxWidth: "60%"
|
|
26045
26073
|
},
|
|
26046
|
-
children: /* @__PURE__ */ l(
|
|
26074
|
+
children: /* @__PURE__ */ l(NA, {})
|
|
26047
26075
|
})]
|
|
26048
26076
|
});
|
|
26049
26077
|
}
|
|
26050
|
-
const
|
|
26078
|
+
const FA = Q(function() {
|
|
26051
26079
|
const t = lt(), {
|
|
26052
26080
|
panel: {
|
|
26053
26081
|
queryID: n,
|
|
@@ -26082,7 +26110,7 @@ const VA = Q(function() {
|
|
|
26082
26110
|
});
|
|
26083
26111
|
});
|
|
26084
26112
|
var nh = /* @__PURE__ */ ((e) => (e.migrated = "migrated", e.nothingToMigrate = "nothingToMigrate", e.checkFailed = "checkFailed", e.migrationFailed = "migrationFailed", e))(nh || {}), xi = /* @__PURE__ */ ((e) => (e.notStarted = "notStarted", e.inProgress = "inProgress", e.done = "done", e))(xi || {});
|
|
26085
|
-
class
|
|
26113
|
+
class zA {
|
|
26086
26114
|
constructor(t) {
|
|
26087
26115
|
he(this, "vizInstance");
|
|
26088
26116
|
he(this, "operationManager");
|
|
@@ -26134,7 +26162,7 @@ function rh(e) {
|
|
|
26134
26162
|
return n.createScoped().provideFactory(Nt.instanceScope.vizInstance, () => r.getOrCreateInstance(e)).provideFactory(Nt.instanceScope.interactionManager, (i) => {
|
|
26135
26163
|
const a = i.getRequired(Nt.instanceScope.vizInstance);
|
|
26136
26164
|
return new Hs(a, o, ca);
|
|
26137
|
-
}).provideFactory(Nt.instanceScope.operationManager, (i) => i.getRequired(Nt.instanceScope.interactionManager).operationManager).provideFactory(Nt.instanceScope.triggerManager, (i) => i.getRequired(Nt.instanceScope.interactionManager).triggerManager).provideValue(Nt.instanceScope.panelModel, t).provideFactory(Nt.instanceScope.migrator, (i) => new
|
|
26165
|
+
}).provideFactory(Nt.instanceScope.operationManager, (i) => i.getRequired(Nt.instanceScope.interactionManager).operationManager).provideFactory(Nt.instanceScope.triggerManager, (i) => i.getRequired(Nt.instanceScope.interactionManager).triggerManager).provideValue(Nt.instanceScope.panelModel, t).provideFactory(Nt.instanceScope.migrator, (i) => new zA(i));
|
|
26138
26166
|
},
|
|
26139
26167
|
[e.viz.type, e.viz.conf]
|
|
26140
26168
|
);
|
|
@@ -26156,7 +26184,7 @@ function ih(e, t) {
|
|
|
26156
26184
|
e(r);
|
|
26157
26185
|
}), [e, t.viz.type]), n;
|
|
26158
26186
|
}
|
|
26159
|
-
function
|
|
26187
|
+
function jA({
|
|
26160
26188
|
setVizConf: e,
|
|
26161
26189
|
...t
|
|
26162
26190
|
}) {
|
|
@@ -26176,7 +26204,7 @@ function zA({
|
|
|
26176
26204
|
children: "Checking update..."
|
|
26177
26205
|
});
|
|
26178
26206
|
}
|
|
26179
|
-
function
|
|
26207
|
+
function KA(e) {
|
|
26180
26208
|
const {
|
|
26181
26209
|
panel: t,
|
|
26182
26210
|
setVizConf: n
|
|
@@ -26192,7 +26220,7 @@ function jA(e) {
|
|
|
26192
26220
|
children: "Checking update"
|
|
26193
26221
|
});
|
|
26194
26222
|
}
|
|
26195
|
-
function
|
|
26223
|
+
function HA(e, t) {
|
|
26196
26224
|
const {
|
|
26197
26225
|
vizManager: n
|
|
26198
26226
|
} = Xn(Ln), {
|
|
@@ -26215,7 +26243,7 @@ function KA(e, t) {
|
|
|
26215
26243
|
try {
|
|
26216
26244
|
return n.resolveComponent(r.type), /* @__PURE__ */ l(Gi, {
|
|
26217
26245
|
configure: d,
|
|
26218
|
-
children: /* @__PURE__ */ l(
|
|
26246
|
+
children: /* @__PURE__ */ l(KA, {
|
|
26219
26247
|
setVizConf: r.setConf,
|
|
26220
26248
|
panel: u,
|
|
26221
26249
|
data: e,
|
|
@@ -26227,7 +26255,7 @@ function KA(e, t) {
|
|
|
26227
26255
|
return console.info(dt(f, "message")), null;
|
|
26228
26256
|
}
|
|
26229
26257
|
}
|
|
26230
|
-
const
|
|
26258
|
+
const BA = ["richText", "button"], ah = Q(function({
|
|
26231
26259
|
height: t,
|
|
26232
26260
|
viz: n,
|
|
26233
26261
|
data: r,
|
|
@@ -26238,11 +26266,11 @@ const HA = ["richText", "button"], ah = Q(function({
|
|
|
26238
26266
|
ref: a,
|
|
26239
26267
|
width: s,
|
|
26240
26268
|
height: c
|
|
26241
|
-
} = $o(), u = j.useMemo(() => !Array.isArray(r) || r.length === 0, [r]), d =
|
|
26269
|
+
} = $o(), u = j.useMemo(() => !Array.isArray(r) || r.length === 0, [r]), d = HA(r, {
|
|
26242
26270
|
w: s,
|
|
26243
26271
|
h: c
|
|
26244
26272
|
});
|
|
26245
|
-
return
|
|
26273
|
+
return BA.includes(n.type) ? /* @__PURE__ */ l("div", {
|
|
26246
26274
|
className: "viz-root",
|
|
26247
26275
|
style: {
|
|
26248
26276
|
height: t
|
|
@@ -26283,7 +26311,7 @@ const HA = ["richText", "button"], ah = Q(function({
|
|
|
26283
26311
|
children: d
|
|
26284
26312
|
})]
|
|
26285
26313
|
});
|
|
26286
|
-
}),
|
|
26314
|
+
}), GA = Q(() => {
|
|
26287
26315
|
const {
|
|
26288
26316
|
data: e,
|
|
26289
26317
|
loading: t,
|
|
@@ -26298,7 +26326,7 @@ const HA = ["richText", "button"], ah = Q(function({
|
|
|
26298
26326
|
height: "100%"
|
|
26299
26327
|
});
|
|
26300
26328
|
}), bl = [];
|
|
26301
|
-
function
|
|
26329
|
+
function WA() {
|
|
26302
26330
|
const {
|
|
26303
26331
|
vizManager: e
|
|
26304
26332
|
} = Xn(Ln);
|
|
@@ -26307,14 +26335,14 @@ function GA() {
|
|
|
26307
26335
|
label: t.displayName
|
|
26308
26336
|
})).concat(bl), [e]);
|
|
26309
26337
|
}
|
|
26310
|
-
function
|
|
26338
|
+
function qA(e, t) {
|
|
26311
26339
|
try {
|
|
26312
26340
|
return e.resolveComponent(t).createConfig();
|
|
26313
26341
|
} catch {
|
|
26314
26342
|
return null;
|
|
26315
26343
|
}
|
|
26316
26344
|
}
|
|
26317
|
-
function
|
|
26345
|
+
function UA() {
|
|
26318
26346
|
const {
|
|
26319
26347
|
data: e,
|
|
26320
26348
|
panel: {
|
|
@@ -26344,7 +26372,7 @@ function qA() {
|
|
|
26344
26372
|
try {
|
|
26345
26373
|
return d.resolveComponent(f.viz.type), /* @__PURE__ */ l(Gi, {
|
|
26346
26374
|
configure: g,
|
|
26347
|
-
children: /* @__PURE__ */ l(
|
|
26375
|
+
children: /* @__PURE__ */ l(jA, {
|
|
26348
26376
|
variables: t,
|
|
26349
26377
|
setVizConf: n.setConf,
|
|
26350
26378
|
panel: f,
|
|
@@ -26357,7 +26385,7 @@ function qA() {
|
|
|
26357
26385
|
return console.info(dt(h, "message")), null;
|
|
26358
26386
|
}
|
|
26359
26387
|
}
|
|
26360
|
-
const
|
|
26388
|
+
const YA = Q(() => {
|
|
26361
26389
|
const {
|
|
26362
26390
|
data: e,
|
|
26363
26391
|
panel: {
|
|
@@ -26368,7 +26396,7 @@ const UA = Q(() => {
|
|
|
26368
26396
|
} = Xn(Ln), a = j.useCallback(() => {
|
|
26369
26397
|
if (!o)
|
|
26370
26398
|
return;
|
|
26371
|
-
const g =
|
|
26399
|
+
const g = qA(i, n);
|
|
26372
26400
|
t.setType(n), t.setConf(g || {});
|
|
26373
26401
|
}, [t, o, n]), s = (g) => {
|
|
26374
26402
|
try {
|
|
@@ -26379,11 +26407,11 @@ const UA = Q(() => {
|
|
|
26379
26407
|
}, c = j.useMemo(() => {
|
|
26380
26408
|
var g;
|
|
26381
26409
|
return (g = bl.find((h) => h.value === n)) == null ? void 0 : g.Panel;
|
|
26382
|
-
}, [n, bl]), u =
|
|
26410
|
+
}, [n, bl]), u = UA(), d = c ? Sr(c, {
|
|
26383
26411
|
data: e,
|
|
26384
26412
|
conf: t.conf,
|
|
26385
26413
|
setConf: t.setConf
|
|
26386
|
-
}) : null, f = u || d, p =
|
|
26414
|
+
}) : null, f = u || d, p = WA();
|
|
26387
26415
|
return /* @__PURE__ */ m($e, {
|
|
26388
26416
|
children: [/* @__PURE__ */ l(Ee, {
|
|
26389
26417
|
label: "Visualization",
|
|
@@ -26405,7 +26433,7 @@ const UA = Q(() => {
|
|
|
26405
26433
|
})]
|
|
26406
26434
|
});
|
|
26407
26435
|
});
|
|
26408
|
-
function
|
|
26436
|
+
function XA() {
|
|
26409
26437
|
return /* @__PURE__ */ m(D, {
|
|
26410
26438
|
grow: !0,
|
|
26411
26439
|
noWrap: !0,
|
|
@@ -26422,18 +26450,18 @@ function YA() {
|
|
|
26422
26450
|
overflow: "scroll",
|
|
26423
26451
|
height: "100%"
|
|
26424
26452
|
},
|
|
26425
|
-
children: /* @__PURE__ */ l(
|
|
26453
|
+
children: /* @__PURE__ */ l(YA, {})
|
|
26426
26454
|
}), /* @__PURE__ */ l(Ae, {
|
|
26427
26455
|
sx: {
|
|
26428
26456
|
height: "100%",
|
|
26429
26457
|
flexGrow: 1,
|
|
26430
26458
|
maxWidth: "60%"
|
|
26431
26459
|
},
|
|
26432
|
-
children: /* @__PURE__ */ l(
|
|
26460
|
+
children: /* @__PURE__ */ l(GA, {})
|
|
26433
26461
|
})]
|
|
26434
26462
|
});
|
|
26435
26463
|
}
|
|
26436
|
-
const
|
|
26464
|
+
const QA = T.model("VariableModel", {
|
|
26437
26465
|
name: T.string,
|
|
26438
26466
|
size: T.string,
|
|
26439
26467
|
weight: T.string,
|
|
@@ -26468,7 +26496,7 @@ const XA = T.model("VariableModel", {
|
|
|
26468
26496
|
return Pn(e);
|
|
26469
26497
|
}
|
|
26470
26498
|
}));
|
|
26471
|
-
class
|
|
26499
|
+
class JA {
|
|
26472
26500
|
constructor(t) {
|
|
26473
26501
|
he(this, "origin");
|
|
26474
26502
|
he(this, "copy");
|
|
@@ -26484,7 +26512,7 @@ class QA {
|
|
|
26484
26512
|
Rr(this.copy, t);
|
|
26485
26513
|
}
|
|
26486
26514
|
}
|
|
26487
|
-
const
|
|
26515
|
+
const ZA = (e) => new JA(e), Aa = {
|
|
26488
26516
|
name: "new_var",
|
|
26489
26517
|
size: "1rem",
|
|
26490
26518
|
weight: "initial",
|
|
@@ -26504,7 +26532,7 @@ const JA = (e) => new QA(e), Aa = {
|
|
|
26504
26532
|
average: !1
|
|
26505
26533
|
}
|
|
26506
26534
|
};
|
|
26507
|
-
class
|
|
26535
|
+
class e$ {
|
|
26508
26536
|
constructor(t) {
|
|
26509
26537
|
he(this, "panel");
|
|
26510
26538
|
he(this, "selected");
|
|
@@ -26529,11 +26557,11 @@ class ZA {
|
|
|
26529
26557
|
}
|
|
26530
26558
|
}
|
|
26531
26559
|
}
|
|
26532
|
-
function
|
|
26560
|
+
function t$() {
|
|
26533
26561
|
const { panel: e } = Gt();
|
|
26534
|
-
return On(() => new
|
|
26562
|
+
return On(() => new e$(e), [e]);
|
|
26535
26563
|
}
|
|
26536
|
-
const
|
|
26564
|
+
const n$ = j.forwardRef(function({
|
|
26537
26565
|
value: t,
|
|
26538
26566
|
onChange: n,
|
|
26539
26567
|
data: r,
|
|
@@ -26608,7 +26636,7 @@ const t$ = j.forwardRef(function({
|
|
|
26608
26636
|
overflow: "auto",
|
|
26609
26637
|
paddingRight: 10
|
|
26610
26638
|
}
|
|
26611
|
-
})),
|
|
26639
|
+
})), r$ = (e) => {
|
|
26612
26640
|
const {
|
|
26613
26641
|
uiModel: t
|
|
26614
26642
|
} = e;
|
|
@@ -26621,7 +26649,7 @@ const t$ = j.forwardRef(function({
|
|
|
26621
26649
|
children: n.name
|
|
26622
26650
|
}, n.name))
|
|
26623
26651
|
});
|
|
26624
|
-
},
|
|
26652
|
+
}, o$ = Q(r$), i$ = ({
|
|
26625
26653
|
variable: e,
|
|
26626
26654
|
data: t
|
|
26627
26655
|
}) => /* @__PURE__ */ l(D, {
|
|
@@ -26634,8 +26662,8 @@ const t$ = j.forwardRef(function({
|
|
|
26634
26662
|
p: "md",
|
|
26635
26663
|
children: Tg(e, t)
|
|
26636
26664
|
})
|
|
26637
|
-
}),
|
|
26638
|
-
const t = On(() =>
|
|
26665
|
+
}), a$ = Q(i$), l$ = (e) => {
|
|
26666
|
+
const t = On(() => ZA(e.variable), [e.variable]), {
|
|
26639
26667
|
classes: n
|
|
26640
26668
|
} = lh(), {
|
|
26641
26669
|
data: r
|
|
@@ -26662,18 +26690,18 @@ const t$ = j.forwardRef(function({
|
|
|
26662
26690
|
onClick: () => e.uiModel.remove(e.variable),
|
|
26663
26691
|
children: /* @__PURE__ */ l(Bp, {})
|
|
26664
26692
|
})]
|
|
26665
|
-
}), /* @__PURE__ */ l(
|
|
26693
|
+
}), /* @__PURE__ */ l(n$, {
|
|
26666
26694
|
value: Pn(t.copy),
|
|
26667
26695
|
onChange: t.update,
|
|
26668
26696
|
data: r
|
|
26669
26697
|
})]
|
|
26670
|
-
}), /* @__PURE__ */ l(
|
|
26698
|
+
}), /* @__PURE__ */ l(a$, {
|
|
26671
26699
|
variable: Pn(t.copy),
|
|
26672
26700
|
data: r
|
|
26673
26701
|
})]
|
|
26674
26702
|
});
|
|
26675
|
-
},
|
|
26676
|
-
const e =
|
|
26703
|
+
}, s$ = Q(l$), c$ = () => {
|
|
26704
|
+
const e = t$(), {
|
|
26677
26705
|
classes: t
|
|
26678
26706
|
} = lh();
|
|
26679
26707
|
return /* @__PURE__ */ m(D, {
|
|
@@ -26695,12 +26723,12 @@ const t$ = j.forwardRef(function({
|
|
|
26695
26723
|
fullWidth: !0,
|
|
26696
26724
|
children: "Add Variable"
|
|
26697
26725
|
})
|
|
26698
|
-
}), /* @__PURE__ */ l(
|
|
26726
|
+
}), /* @__PURE__ */ l(o$, {
|
|
26699
26727
|
uiModel: e
|
|
26700
26728
|
})]
|
|
26701
26729
|
})
|
|
26702
26730
|
}), e.selected ? /* @__PURE__ */ l($e, {
|
|
26703
|
-
children: /* @__PURE__ */ l(
|
|
26731
|
+
children: /* @__PURE__ */ l(s$, {
|
|
26704
26732
|
uiModel: e,
|
|
26705
26733
|
variable: e.selected
|
|
26706
26734
|
})
|
|
@@ -26708,7 +26736,7 @@ const t$ = j.forwardRef(function({
|
|
|
26708
26736
|
children: "Select or create a new variable on right side"
|
|
26709
26737
|
})]
|
|
26710
26738
|
});
|
|
26711
|
-
},
|
|
26739
|
+
}, u$ = Q(c$), d$ = Q(function({
|
|
26712
26740
|
opened: t,
|
|
26713
26741
|
close: n
|
|
26714
26742
|
}) {
|
|
@@ -26776,30 +26804,30 @@ const t$ = j.forwardRef(function({
|
|
|
26776
26804
|
children: [/* @__PURE__ */ l(Uo, {
|
|
26777
26805
|
visible: s,
|
|
26778
26806
|
exitTransitionDuration: 0
|
|
26779
|
-
}), /* @__PURE__ */ l(
|
|
26807
|
+
}), /* @__PURE__ */ l(FA, {})]
|
|
26780
26808
|
}), /* @__PURE__ */ l(N.Panel, {
|
|
26781
26809
|
value: "Panel",
|
|
26782
26810
|
pt: "sm",
|
|
26783
|
-
children: o === "Panel" && /* @__PURE__ */ l(
|
|
26811
|
+
children: o === "Panel" && /* @__PURE__ */ l(VA, {})
|
|
26784
26812
|
}), /* @__PURE__ */ l(N.Panel, {
|
|
26785
26813
|
value: "Variables",
|
|
26786
26814
|
pt: "sm",
|
|
26787
|
-
children: o === "Variables" && /* @__PURE__ */ l(
|
|
26815
|
+
children: o === "Variables" && /* @__PURE__ */ l(u$, {})
|
|
26788
26816
|
}), /* @__PURE__ */ l(N.Panel, {
|
|
26789
26817
|
value: "Visualization",
|
|
26790
26818
|
pt: "sm",
|
|
26791
|
-
children: o === "Visualization" && /* @__PURE__ */ l(
|
|
26819
|
+
children: o === "Visualization" && /* @__PURE__ */ l(XA, {})
|
|
26792
26820
|
}), /* @__PURE__ */ l(N.Panel, {
|
|
26793
26821
|
value: "Interactions",
|
|
26794
26822
|
pt: "sm",
|
|
26795
26823
|
children: /* @__PURE__ */ l(Zr, {
|
|
26796
|
-
children: /* @__PURE__ */ l(
|
|
26824
|
+
children: /* @__PURE__ */ l(IA, {})
|
|
26797
26825
|
})
|
|
26798
26826
|
})]
|
|
26799
26827
|
})
|
|
26800
26828
|
})
|
|
26801
26829
|
});
|
|
26802
|
-
}),
|
|
26830
|
+
}), f$ = Q(({
|
|
26803
26831
|
view: e
|
|
26804
26832
|
}) => {
|
|
26805
26833
|
const t = lt(), n = $h(), [r, o] = j.useState(!1), i = () => o(!0), a = () => o(!1), {
|
|
@@ -26890,13 +26918,13 @@ const t$ = j.forwardRef(function({
|
|
|
26890
26918
|
})]
|
|
26891
26919
|
})]
|
|
26892
26920
|
})
|
|
26893
|
-
}), d && /* @__PURE__ */ l(
|
|
26921
|
+
}), d && /* @__PURE__ */ l(d$, {
|
|
26894
26922
|
opened: r,
|
|
26895
26923
|
close: a
|
|
26896
26924
|
})]
|
|
26897
26925
|
});
|
|
26898
26926
|
});
|
|
26899
|
-
const
|
|
26927
|
+
const p$ = Q(function() {
|
|
26900
26928
|
const {
|
|
26901
26929
|
panel: t
|
|
26902
26930
|
} = Gt(), {
|
|
@@ -26918,10 +26946,10 @@ const f$ = Q(function() {
|
|
|
26918
26946
|
})
|
|
26919
26947
|
}) : null;
|
|
26920
26948
|
});
|
|
26921
|
-
function
|
|
26949
|
+
function g$(e) {
|
|
26922
26950
|
return !["richText", "button"].includes(e);
|
|
26923
26951
|
}
|
|
26924
|
-
const
|
|
26952
|
+
const h$ = {
|
|
26925
26953
|
border: "1px solid #e9ecef"
|
|
26926
26954
|
}, ad = {
|
|
26927
26955
|
border: "1px dashed transparent",
|
|
@@ -26930,8 +26958,8 @@ const g$ = {
|
|
|
26930
26958
|
borderColor: "#e9ecef"
|
|
26931
26959
|
}
|
|
26932
26960
|
};
|
|
26933
|
-
function
|
|
26934
|
-
return e.style.border.enabled ?
|
|
26961
|
+
function v$(e, t, n) {
|
|
26962
|
+
return e.style.border.enabled ? h$ : n || t ? ad : {
|
|
26935
26963
|
border: "1px dashed transparent"
|
|
26936
26964
|
};
|
|
26937
26965
|
}
|
|
@@ -26945,7 +26973,7 @@ const Bs = Q(function({
|
|
|
26945
26973
|
data: i,
|
|
26946
26974
|
state: a,
|
|
26947
26975
|
error: s
|
|
26948
|
-
} = r.getDataStuffByID(t.queryID), c =
|
|
26976
|
+
} = r.getDataStuffByID(t.queryID), c = g$(t.viz.type), u = c && a === "loading", d = t.title ? "calc(100% - 25px - 5px)" : "100%", f = v$(t, c, o), p = c || o;
|
|
26949
26977
|
return /* @__PURE__ */ l(Vv, {
|
|
26950
26978
|
value: {
|
|
26951
26979
|
panel: t,
|
|
@@ -26968,9 +26996,9 @@ const Bs = Q(function({
|
|
|
26968
26996
|
zIndex: 310
|
|
26969
26997
|
},
|
|
26970
26998
|
children: /* @__PURE__ */ l(og, {})
|
|
26971
|
-
}), p && /* @__PURE__ */ l(
|
|
26999
|
+
}), p && /* @__PURE__ */ l(f$, {
|
|
26972
27000
|
view: n
|
|
26973
|
-
}), /* @__PURE__ */ l(
|
|
27001
|
+
}), /* @__PURE__ */ l(p$, {}), /* @__PURE__ */ l(ah, {
|
|
26974
27002
|
viz: t.viz,
|
|
26975
27003
|
data: i,
|
|
26976
27004
|
loading: u,
|
|
@@ -27044,7 +27072,7 @@ function uh() {
|
|
|
27044
27072
|
};
|
|
27045
27073
|
}, []);
|
|
27046
27074
|
}
|
|
27047
|
-
const
|
|
27075
|
+
const m$ = j.forwardRef(({
|
|
27048
27076
|
handleAxis: e
|
|
27049
27077
|
}, t) => /* @__PURE__ */ l(Te, {
|
|
27050
27078
|
ref: t,
|
|
@@ -27064,7 +27092,7 @@ const v$ = j.forwardRef(({
|
|
|
27064
27092
|
children: /* @__PURE__ */ l(av, {
|
|
27065
27093
|
size: 16
|
|
27066
27094
|
})
|
|
27067
|
-
})),
|
|
27095
|
+
})), y$ = j.forwardRef(({
|
|
27068
27096
|
handleAxis: e,
|
|
27069
27097
|
...t
|
|
27070
27098
|
}, n) => /* @__PURE__ */ l(Te, {
|
|
@@ -27086,7 +27114,7 @@ const v$ = j.forwardRef(({
|
|
|
27086
27114
|
children: /* @__PURE__ */ l(lv, {
|
|
27087
27115
|
size: 16
|
|
27088
27116
|
})
|
|
27089
|
-
})),
|
|
27117
|
+
})), b$ = Nd($d), S$ = Q(function({
|
|
27090
27118
|
view: t,
|
|
27091
27119
|
className: n = "layout",
|
|
27092
27120
|
rowHeight: r = 10,
|
|
@@ -27102,7 +27130,7 @@ const v$ = j.forwardRef(({
|
|
|
27102
27130
|
!d || d.layout.set(u);
|
|
27103
27131
|
});
|
|
27104
27132
|
}, [t]);
|
|
27105
|
-
return /* @__PURE__ */ l(
|
|
27133
|
+
return /* @__PURE__ */ l(b$, {
|
|
27106
27134
|
onLayoutChange: a,
|
|
27107
27135
|
className: `dashboard-layout ${n}`,
|
|
27108
27136
|
rowHeight: r,
|
|
@@ -27110,7 +27138,7 @@ const v$ = j.forwardRef(({
|
|
|
27110
27138
|
isDraggable: o,
|
|
27111
27139
|
isResizable: i,
|
|
27112
27140
|
draggableHandle: ".react-grid-customDragHandle",
|
|
27113
|
-
resizeHandle: /* @__PURE__ */ l(
|
|
27141
|
+
resizeHandle: /* @__PURE__ */ l(y$, {}),
|
|
27114
27142
|
children: t.panels.list.map((s, c) => /* @__PURE__ */ m("div", {
|
|
27115
27143
|
"data-grid": {
|
|
27116
27144
|
...s.layout
|
|
@@ -27118,18 +27146,18 @@ const v$ = j.forwardRef(({
|
|
|
27118
27146
|
style: {
|
|
27119
27147
|
position: "relative"
|
|
27120
27148
|
},
|
|
27121
|
-
children: [o && /* @__PURE__ */ l(
|
|
27149
|
+
children: [o && /* @__PURE__ */ l(m$, {}), /* @__PURE__ */ l(Bs, {
|
|
27122
27150
|
view: t,
|
|
27123
27151
|
panel: s
|
|
27124
27152
|
})]
|
|
27125
27153
|
}, s.id))
|
|
27126
27154
|
});
|
|
27127
|
-
}),
|
|
27155
|
+
}), w$ = Nd($d), C$ = Q(function({
|
|
27128
27156
|
view: t,
|
|
27129
27157
|
className: n = "layout",
|
|
27130
27158
|
rowHeight: r = 10
|
|
27131
27159
|
}) {
|
|
27132
|
-
return /* @__PURE__ */ l(
|
|
27160
|
+
return /* @__PURE__ */ l(w$, {
|
|
27133
27161
|
className: `dashboard-layout ${n}`,
|
|
27134
27162
|
rowHeight: r,
|
|
27135
27163
|
isDraggable: !1,
|
|
@@ -27143,11 +27171,11 @@ const v$ = j.forwardRef(({
|
|
|
27143
27171
|
})
|
|
27144
27172
|
}, o.id))
|
|
27145
27173
|
});
|
|
27146
|
-
}),
|
|
27174
|
+
}), x$ = Q(({
|
|
27147
27175
|
children: e
|
|
27148
27176
|
}) => /* @__PURE__ */ l(Ae, {
|
|
27149
27177
|
children: e
|
|
27150
|
-
})),
|
|
27178
|
+
})), _$ = Q(({
|
|
27151
27179
|
children: e,
|
|
27152
27180
|
view: t
|
|
27153
27181
|
}) => /* @__PURE__ */ l(Zt, {
|
|
@@ -27182,23 +27210,23 @@ const v$ = j.forwardRef(({
|
|
|
27182
27210
|
withinPortal: !1,
|
|
27183
27211
|
transitionDuration: 0,
|
|
27184
27212
|
children: e
|
|
27185
|
-
})),
|
|
27213
|
+
})), E$ = Q(({
|
|
27186
27214
|
view: e,
|
|
27187
27215
|
children: t
|
|
27188
27216
|
}) => {
|
|
27189
27217
|
switch (e.type) {
|
|
27190
27218
|
case Rn.Modal:
|
|
27191
|
-
return /* @__PURE__ */ l(
|
|
27219
|
+
return /* @__PURE__ */ l(_$, {
|
|
27192
27220
|
view: e,
|
|
27193
27221
|
children: t
|
|
27194
27222
|
});
|
|
27195
27223
|
case Rn.Division:
|
|
27196
27224
|
default:
|
|
27197
|
-
return /* @__PURE__ */ l(
|
|
27225
|
+
return /* @__PURE__ */ l(x$, {
|
|
27198
27226
|
children: t
|
|
27199
27227
|
});
|
|
27200
27228
|
}
|
|
27201
|
-
}),
|
|
27229
|
+
}), O$ = Q(function({
|
|
27202
27230
|
view: t,
|
|
27203
27231
|
saveDashboardChanges: n,
|
|
27204
27232
|
fullScreenPanelID: r,
|
|
@@ -27228,7 +27256,7 @@ const v$ = j.forwardRef(({
|
|
|
27228
27256
|
exitFullScreen: a
|
|
27229
27257
|
}), !s && /* @__PURE__ */ l(Up, {
|
|
27230
27258
|
saveChanges: n
|
|
27231
|
-
}), /* @__PURE__ */ l(
|
|
27259
|
+
}), /* @__PURE__ */ l(E$, {
|
|
27232
27260
|
view: t,
|
|
27233
27261
|
children: /* @__PURE__ */ m(Ae, {
|
|
27234
27262
|
className: "dashboard-sticky-parent",
|
|
@@ -27237,7 +27265,7 @@ const v$ = j.forwardRef(({
|
|
|
27237
27265
|
children: /* @__PURE__ */ l(Fp, {
|
|
27238
27266
|
view: t
|
|
27239
27267
|
})
|
|
27240
|
-
}), !s && /* @__PURE__ */ l(
|
|
27268
|
+
}), !s && /* @__PURE__ */ l(S$, {
|
|
27241
27269
|
view: t,
|
|
27242
27270
|
isDraggable: !0,
|
|
27243
27271
|
isResizable: !0
|
|
@@ -27246,11 +27274,11 @@ const v$ = j.forwardRef(({
|
|
|
27246
27274
|
})]
|
|
27247
27275
|
})
|
|
27248
27276
|
});
|
|
27249
|
-
}),
|
|
27277
|
+
}), R$ = Q(({
|
|
27250
27278
|
children: e
|
|
27251
27279
|
}) => /* @__PURE__ */ l(Ae, {
|
|
27252
27280
|
children: e
|
|
27253
|
-
})),
|
|
27281
|
+
})), T$ = Q(({
|
|
27254
27282
|
children: e,
|
|
27255
27283
|
view: t
|
|
27256
27284
|
}) => {
|
|
@@ -27279,23 +27307,23 @@ const v$ = j.forwardRef(({
|
|
|
27279
27307
|
transitionDuration: 0,
|
|
27280
27308
|
children: e
|
|
27281
27309
|
});
|
|
27282
|
-
}),
|
|
27310
|
+
}), M$ = Q(({
|
|
27283
27311
|
view: e,
|
|
27284
27312
|
children: t
|
|
27285
27313
|
}) => {
|
|
27286
27314
|
switch (e.type) {
|
|
27287
27315
|
case Rn.Modal:
|
|
27288
|
-
return /* @__PURE__ */ l(
|
|
27316
|
+
return /* @__PURE__ */ l(T$, {
|
|
27289
27317
|
view: e,
|
|
27290
27318
|
children: t
|
|
27291
27319
|
});
|
|
27292
27320
|
case Rn.Division:
|
|
27293
27321
|
default:
|
|
27294
|
-
return /* @__PURE__ */ l(
|
|
27322
|
+
return /* @__PURE__ */ l(R$, {
|
|
27295
27323
|
children: t
|
|
27296
27324
|
});
|
|
27297
27325
|
}
|
|
27298
|
-
}),
|
|
27326
|
+
}), D$ = Q(function({
|
|
27299
27327
|
view: t,
|
|
27300
27328
|
fullScreenPanelID: n,
|
|
27301
27329
|
setFullScreenPanelID: r
|
|
@@ -27324,7 +27352,7 @@ const v$ = j.forwardRef(({
|
|
|
27324
27352
|
exitFullScreen: i
|
|
27325
27353
|
}), !a && /* @__PURE__ */ l(Up, {
|
|
27326
27354
|
saveChanges: Be.noop
|
|
27327
|
-
}), /* @__PURE__ */ l(
|
|
27355
|
+
}), /* @__PURE__ */ l(M$, {
|
|
27328
27356
|
view: t,
|
|
27329
27357
|
children: /* @__PURE__ */ m(Ae, {
|
|
27330
27358
|
className: "dashboard-sticky-parent",
|
|
@@ -27333,7 +27361,7 @@ const v$ = j.forwardRef(({
|
|
|
27333
27361
|
children: /* @__PURE__ */ l(Fp, {
|
|
27334
27362
|
view: t
|
|
27335
27363
|
})
|
|
27336
|
-
}), !a && /* @__PURE__ */ l(
|
|
27364
|
+
}), !a && /* @__PURE__ */ l(C$, {
|
|
27337
27365
|
view: t
|
|
27338
27366
|
})]
|
|
27339
27367
|
})
|
|
@@ -27347,10 +27375,10 @@ const v$ = j.forwardRef(({
|
|
|
27347
27375
|
setDefaultValue(t) {
|
|
27348
27376
|
e.default_value = t;
|
|
27349
27377
|
}
|
|
27350
|
-
})),
|
|
27378
|
+
})), k$ = () => dh.create({
|
|
27351
27379
|
_name: "checkbox",
|
|
27352
27380
|
default_value: !1
|
|
27353
|
-
}),
|
|
27381
|
+
}), P$ = T.model("FilterConfigModel_DateRange", {
|
|
27354
27382
|
_name: T.literal("date-range"),
|
|
27355
27383
|
required: T.boolean,
|
|
27356
27384
|
inputFormat: T.enumeration("DateRangeInputFormat", ["YYYY", "YYYYMM", "YYYYMMDD", "YYYY-MM", "YYYY-MM-DD"]),
|
|
@@ -27369,7 +27397,7 @@ const v$ = j.forwardRef(({
|
|
|
27369
27397
|
setDefaultValue(t) {
|
|
27370
27398
|
e.default_value.length = 0, e.default_value.push(...t);
|
|
27371
27399
|
}
|
|
27372
|
-
})), fh = T.snapshotProcessor(
|
|
27400
|
+
})), fh = T.snapshotProcessor(P$, {
|
|
27373
27401
|
preProcessor({ default_value: e, ...t }) {
|
|
27374
27402
|
return {
|
|
27375
27403
|
...t,
|
|
@@ -27388,13 +27416,13 @@ const v$ = j.forwardRef(({
|
|
|
27388
27416
|
})
|
|
27389
27417
|
};
|
|
27390
27418
|
}
|
|
27391
|
-
}),
|
|
27419
|
+
}), I$ = () => fh.create({
|
|
27392
27420
|
_name: "date-range",
|
|
27393
27421
|
required: !1,
|
|
27394
27422
|
inputFormat: "YYYY-MM-DD",
|
|
27395
27423
|
clearable: !1,
|
|
27396
27424
|
default_value: [null, null]
|
|
27397
|
-
}),
|
|
27425
|
+
}), A$ = T.model({
|
|
27398
27426
|
label: T.string,
|
|
27399
27427
|
value: T.string
|
|
27400
27428
|
}).actions((e) => ({
|
|
@@ -27405,7 +27433,7 @@ const v$ = j.forwardRef(({
|
|
|
27405
27433
|
e.value = t;
|
|
27406
27434
|
}
|
|
27407
27435
|
})), Gs = T.model("FilterConfigModel_BaseSelect", {
|
|
27408
|
-
static_options: T.optional(T.array(
|
|
27436
|
+
static_options: T.optional(T.array(A$), []),
|
|
27409
27437
|
options_query_id: T.optional(T.string, ""),
|
|
27410
27438
|
select_first_by_default: T.optional(T.boolean, !1)
|
|
27411
27439
|
}).views((e) => ({
|
|
@@ -27444,7 +27472,7 @@ const v$ = j.forwardRef(({
|
|
|
27444
27472
|
setMinWidth(t) {
|
|
27445
27473
|
e.min_width = t;
|
|
27446
27474
|
}
|
|
27447
|
-
})),
|
|
27475
|
+
})), $$ = () => ph.create({
|
|
27448
27476
|
_name: "multi-select",
|
|
27449
27477
|
default_value: [],
|
|
27450
27478
|
static_options: [],
|
|
@@ -27465,7 +27493,7 @@ const v$ = j.forwardRef(({
|
|
|
27465
27493
|
setMinWidth(t) {
|
|
27466
27494
|
e.min_width = t;
|
|
27467
27495
|
}
|
|
27468
|
-
})),
|
|
27496
|
+
})), N$ = () => gh.create({
|
|
27469
27497
|
_name: "tree-select",
|
|
27470
27498
|
default_value: [],
|
|
27471
27499
|
static_options: [],
|
|
@@ -27490,7 +27518,7 @@ const v$ = j.forwardRef(({
|
|
|
27490
27518
|
setWidth(t) {
|
|
27491
27519
|
e.width = t;
|
|
27492
27520
|
}
|
|
27493
|
-
})),
|
|
27521
|
+
})), L$ = () => hh.create({
|
|
27494
27522
|
_name: "select",
|
|
27495
27523
|
required: !1,
|
|
27496
27524
|
default_value: "",
|
|
@@ -27538,22 +27566,22 @@ const v$ = j.forwardRef(({
|
|
|
27538
27566
|
setType(t) {
|
|
27539
27567
|
switch (t) {
|
|
27540
27568
|
case ln.Select:
|
|
27541
|
-
e.config =
|
|
27569
|
+
e.config = L$();
|
|
27542
27570
|
break;
|
|
27543
27571
|
case ln.MultiSelect:
|
|
27544
|
-
e.config =
|
|
27572
|
+
e.config = $$();
|
|
27545
27573
|
break;
|
|
27546
27574
|
case ln.TreeSelect:
|
|
27547
|
-
e.config =
|
|
27575
|
+
e.config = N$();
|
|
27548
27576
|
break;
|
|
27549
27577
|
case ln.TextInput:
|
|
27550
27578
|
e.config = Wp();
|
|
27551
27579
|
break;
|
|
27552
27580
|
case ln.Checkbox:
|
|
27553
|
-
e.config =
|
|
27581
|
+
e.config = k$();
|
|
27554
27582
|
break;
|
|
27555
27583
|
case ln.DateRange:
|
|
27556
|
-
e.config =
|
|
27584
|
+
e.config = I$();
|
|
27557
27585
|
break;
|
|
27558
27586
|
}
|
|
27559
27587
|
e.type = t;
|
|
@@ -27582,7 +27610,7 @@ function vh(e, t) {
|
|
|
27582
27610
|
function mh(e) {
|
|
27583
27611
|
return e.reduce((t, n) => (t[n.key] = vh(n.config.default_value, n.config), t), {});
|
|
27584
27612
|
}
|
|
27585
|
-
function
|
|
27613
|
+
function V$(e, t, n) {
|
|
27586
27614
|
Od(
|
|
27587
27615
|
e,
|
|
27588
27616
|
dv(e, (r, o) => {
|
|
@@ -27592,7 +27620,7 @@ function L$(e, t, n) {
|
|
|
27592
27620
|
})
|
|
27593
27621
|
);
|
|
27594
27622
|
}
|
|
27595
|
-
const
|
|
27623
|
+
const F$ = T.model("FiltersModel", {
|
|
27596
27624
|
current: T.optional(T.array(ld), []),
|
|
27597
27625
|
values: T.optional(T.frozen(), {}),
|
|
27598
27626
|
previewValues: T.optional(T.frozen(), {})
|
|
@@ -27647,7 +27675,7 @@ const V$ = T.model("FiltersModel", {
|
|
|
27647
27675
|
}
|
|
27648
27676
|
})).actions((e) => {
|
|
27649
27677
|
function t() {
|
|
27650
|
-
|
|
27678
|
+
V$(e.current, ld, (n, r) => {
|
|
27651
27679
|
if (n === "setType") {
|
|
27652
27680
|
const o = vh(r.config.default_value, r.config);
|
|
27653
27681
|
e.setValueByKey(r.key, o), e.updatePreviewValues({
|
|
@@ -27663,13 +27691,13 @@ const V$ = T.model("FiltersModel", {
|
|
|
27663
27691
|
}
|
|
27664
27692
|
};
|
|
27665
27693
|
});
|
|
27666
|
-
function
|
|
27694
|
+
function z$(e) {
|
|
27667
27695
|
return {
|
|
27668
27696
|
current: e,
|
|
27669
27697
|
values: mh(e)
|
|
27670
27698
|
};
|
|
27671
27699
|
}
|
|
27672
|
-
const
|
|
27700
|
+
const j$ = T.model("QueryModel", {
|
|
27673
27701
|
id: T.string,
|
|
27674
27702
|
name: T.string,
|
|
27675
27703
|
type: T.enumeration("DataSourceType", [pr.Postgresql, pr.MySQL, pr.HTTP]),
|
|
@@ -27683,9 +27711,9 @@ const z$ = T.model("QueryModel", {
|
|
|
27683
27711
|
const { id: t, name: n, type: r, key: o, sql: i } = e;
|
|
27684
27712
|
return { id: t, name: n, type: r, key: o, sql: i };
|
|
27685
27713
|
}
|
|
27686
|
-
})),
|
|
27714
|
+
})), K$ = T.compose(
|
|
27687
27715
|
"QueryModel",
|
|
27688
|
-
|
|
27716
|
+
j$,
|
|
27689
27717
|
T.model({
|
|
27690
27718
|
state: T.optional(T.enumeration(["idle", "loading", "error"]), "idle"),
|
|
27691
27719
|
data: T.optional(T.array(T.frozen()), []),
|
|
@@ -27749,8 +27777,8 @@ const z$ = T.model("QueryModel", {
|
|
|
27749
27777
|
})
|
|
27750
27778
|
);
|
|
27751
27779
|
}
|
|
27752
|
-
})),
|
|
27753
|
-
current: T.optional(T.array(
|
|
27780
|
+
})), H$ = T.model("QueriesModel", {
|
|
27781
|
+
current: T.optional(T.array(K$), [])
|
|
27754
27782
|
}).views((e) => ({
|
|
27755
27783
|
get firstID() {
|
|
27756
27784
|
if (e.current.length !== 0)
|
|
@@ -27809,7 +27837,7 @@ const z$ = T.model("QueryModel", {
|
|
|
27809
27837
|
const n = e.current.find((r) => r.id === t);
|
|
27810
27838
|
n && (hv(n), e.current.remove(n));
|
|
27811
27839
|
}
|
|
27812
|
-
})),
|
|
27840
|
+
})), B$ = T.model("SQLSnippetModel", {
|
|
27813
27841
|
key: T.string,
|
|
27814
27842
|
value: T.string
|
|
27815
27843
|
}).views((e) => ({
|
|
@@ -27830,8 +27858,8 @@ const z$ = T.model("QueryModel", {
|
|
|
27830
27858
|
setValue(t) {
|
|
27831
27859
|
e.value = t;
|
|
27832
27860
|
}
|
|
27833
|
-
})),
|
|
27834
|
-
current: T.optional(T.array(
|
|
27861
|
+
})), G$ = T.model("SQLSnippetsModel", {
|
|
27862
|
+
current: T.optional(T.array(B$), [])
|
|
27835
27863
|
}).views((e) => ({
|
|
27836
27864
|
get json() {
|
|
27837
27865
|
return e.current.map((t) => t.json);
|
|
@@ -27859,7 +27887,7 @@ const z$ = T.model("QueryModel", {
|
|
|
27859
27887
|
replaceByIndex(t, n) {
|
|
27860
27888
|
e.current.splice(t, 1, n);
|
|
27861
27889
|
}
|
|
27862
|
-
})),
|
|
27890
|
+
})), W$ = T.model("ContextModel", {
|
|
27863
27891
|
current: T.optional(T.frozen(), {})
|
|
27864
27892
|
}).views((e) => ({
|
|
27865
27893
|
get keys() {
|
|
@@ -27878,7 +27906,7 @@ const z$ = T.model("QueryModel", {
|
|
|
27878
27906
|
set(t, n) {
|
|
27879
27907
|
e.current[t] = n;
|
|
27880
27908
|
}
|
|
27881
|
-
})),
|
|
27909
|
+
})), q$ = T.model("MockContextModel", {
|
|
27882
27910
|
current: T.optional(T.frozen(), {})
|
|
27883
27911
|
}).views((e) => ({
|
|
27884
27912
|
get keys() {
|
|
@@ -27897,7 +27925,7 @@ const z$ = T.model("QueryModel", {
|
|
|
27897
27925
|
set(t, n) {
|
|
27898
27926
|
e.current[t] = n;
|
|
27899
27927
|
}
|
|
27900
|
-
})),
|
|
27928
|
+
})), U$ = T.model("PanelLayoutModel", {
|
|
27901
27929
|
x: T.number,
|
|
27902
27930
|
y: T.number,
|
|
27903
27931
|
w: T.number,
|
|
@@ -27921,7 +27949,7 @@ const z$ = T.model("QueryModel", {
|
|
|
27921
27949
|
const { x: n, y: r, w: o, h: i, moved: a } = t;
|
|
27922
27950
|
e.x = n, e.y = r, e.w = o, e.h = i, e.moved = !!a, e.static = !!t.static;
|
|
27923
27951
|
}
|
|
27924
|
-
})),
|
|
27952
|
+
})), Y$ = T.model("PanelStyleBorderModel", {
|
|
27925
27953
|
enabled: T.boolean
|
|
27926
27954
|
}).views((e) => ({
|
|
27927
27955
|
get json() {
|
|
@@ -27934,8 +27962,8 @@ const z$ = T.model("QueryModel", {
|
|
|
27934
27962
|
setEnabled(t) {
|
|
27935
27963
|
e.enabled = t;
|
|
27936
27964
|
}
|
|
27937
|
-
})),
|
|
27938
|
-
border:
|
|
27965
|
+
})), X$ = T.model("PanelStyleModel", {
|
|
27966
|
+
border: Y$
|
|
27939
27967
|
}).views((e) => ({
|
|
27940
27968
|
get json() {
|
|
27941
27969
|
const { border: t } = e;
|
|
@@ -27943,7 +27971,7 @@ const z$ = T.model("QueryModel", {
|
|
|
27943
27971
|
border: t.json
|
|
27944
27972
|
};
|
|
27945
27973
|
}
|
|
27946
|
-
})).actions((e) => ({})),
|
|
27974
|
+
})).actions((e) => ({})), Q$ = T.model("PanelVizModel", {
|
|
27947
27975
|
type: T.string,
|
|
27948
27976
|
conf: T.frozen()
|
|
27949
27977
|
}).views((e) => ({
|
|
@@ -27960,15 +27988,15 @@ const z$ = T.model("QueryModel", {
|
|
|
27960
27988
|
setConf(t) {
|
|
27961
27989
|
e.conf = t;
|
|
27962
27990
|
}
|
|
27963
|
-
})),
|
|
27991
|
+
})), J$ = T.model({
|
|
27964
27992
|
id: T.string,
|
|
27965
27993
|
title: T.string,
|
|
27966
27994
|
description: T.string,
|
|
27967
|
-
layout:
|
|
27995
|
+
layout: U$,
|
|
27968
27996
|
queryID: T.string,
|
|
27969
|
-
viz:
|
|
27970
|
-
style:
|
|
27971
|
-
variables: T.optional(T.array(
|
|
27997
|
+
viz: Q$,
|
|
27998
|
+
style: X$,
|
|
27999
|
+
variables: T.optional(T.array(QA), [])
|
|
27972
28000
|
}).views((e) => ({
|
|
27973
28001
|
get query() {
|
|
27974
28002
|
return Xs(e, Sl).queries.findByID(e.queryID);
|
|
@@ -28008,8 +28036,8 @@ const z$ = T.model("QueryModel", {
|
|
|
28008
28036
|
removeVariable(t) {
|
|
28009
28037
|
e.variables.remove(t);
|
|
28010
28038
|
}
|
|
28011
|
-
})),
|
|
28012
|
-
list: T.optional(T.array(
|
|
28039
|
+
})), Z$ = T.model("PanelsModel", {
|
|
28040
|
+
list: T.optional(T.array(J$), [])
|
|
28013
28041
|
}).views((e) => ({
|
|
28014
28042
|
get json() {
|
|
28015
28043
|
return e.list.map((t) => t.json);
|
|
@@ -28081,12 +28109,12 @@ const z$ = T.model("QueryModel", {
|
|
|
28081
28109
|
replaceByIndex(t, n) {
|
|
28082
28110
|
e.list.splice(t, 1, n);
|
|
28083
28111
|
}
|
|
28084
|
-
})),
|
|
28112
|
+
})), eN = T.model({
|
|
28085
28113
|
id: T.identifier,
|
|
28086
28114
|
name: T.string,
|
|
28087
28115
|
type: T.string,
|
|
28088
28116
|
config: T.frozen(),
|
|
28089
|
-
panels:
|
|
28117
|
+
panels: Z$
|
|
28090
28118
|
}).views((e) => ({
|
|
28091
28119
|
get json() {
|
|
28092
28120
|
const { id: t, name: n, type: r, config: o } = e;
|
|
@@ -28117,8 +28145,8 @@ const z$ = T.model("QueryModel", {
|
|
|
28117
28145
|
[t]: n
|
|
28118
28146
|
};
|
|
28119
28147
|
}
|
|
28120
|
-
})).actions((e) => ({})),
|
|
28121
|
-
current: T.optional(T.array(
|
|
28148
|
+
})).actions((e) => ({})), tN = T.model("ViewsModel", {
|
|
28149
|
+
current: T.optional(T.array(eN), []),
|
|
28122
28150
|
visibleViewIDs: T.array(T.string),
|
|
28123
28151
|
idOfVIE: T.string
|
|
28124
28152
|
}).views((e) => ({
|
|
@@ -28200,7 +28228,7 @@ const z$ = T.model("QueryModel", {
|
|
|
28200
28228
|
n !== -1 && e.visibleViewIDs.splice(n, 1);
|
|
28201
28229
|
}
|
|
28202
28230
|
}));
|
|
28203
|
-
function
|
|
28231
|
+
function nN(e) {
|
|
28204
28232
|
const t = e.length > 0 ? [e[0].id] : [], n = e.length > 0 ? e[0].id : "";
|
|
28205
28233
|
return {
|
|
28206
28234
|
current: e.map((o) => ({
|
|
@@ -28213,16 +28241,16 @@ function tN(e) {
|
|
|
28213
28241
|
idOfVIE: n
|
|
28214
28242
|
};
|
|
28215
28243
|
}
|
|
28216
|
-
const
|
|
28244
|
+
const rN = T.model({
|
|
28217
28245
|
id: T.identifier,
|
|
28218
28246
|
name: T.string,
|
|
28219
28247
|
version: T.string,
|
|
28220
|
-
filters:
|
|
28221
|
-
queries:
|
|
28222
|
-
sqlSnippets:
|
|
28223
|
-
views:
|
|
28224
|
-
context:
|
|
28225
|
-
mock_context:
|
|
28248
|
+
filters: F$,
|
|
28249
|
+
queries: H$,
|
|
28250
|
+
sqlSnippets: G$,
|
|
28251
|
+
views: tN,
|
|
28252
|
+
context: W$,
|
|
28253
|
+
mock_context: q$,
|
|
28226
28254
|
origin: T.maybe(T.frozen())
|
|
28227
28255
|
}).views((e) => ({
|
|
28228
28256
|
get filtersChanged() {
|
|
@@ -28293,7 +28321,7 @@ const nN = T.model({
|
|
|
28293
28321
|
resetFilters() {
|
|
28294
28322
|
Rr(e.filters.current, e.origin.filters.current);
|
|
28295
28323
|
}
|
|
28296
|
-
})), Sl = T.snapshotProcessor(
|
|
28324
|
+
})), Sl = T.snapshotProcessor(rN, {
|
|
28297
28325
|
preProcessor(e) {
|
|
28298
28326
|
return {
|
|
28299
28327
|
...e,
|
|
@@ -28311,7 +28339,7 @@ function yh({ id: e, name: t, version: n, filters: r, views: o, definition: { qu
|
|
|
28311
28339
|
id: e,
|
|
28312
28340
|
name: t,
|
|
28313
28341
|
version: n,
|
|
28314
|
-
filters:
|
|
28342
|
+
filters: z$(r),
|
|
28315
28343
|
queries: {
|
|
28316
28344
|
current: i
|
|
28317
28345
|
},
|
|
@@ -28324,13 +28352,13 @@ function yh({ id: e, name: t, version: n, filters: r, views: o, definition: { qu
|
|
|
28324
28352
|
mock_context: {
|
|
28325
28353
|
current: s
|
|
28326
28354
|
},
|
|
28327
|
-
views:
|
|
28355
|
+
views: nN(o)
|
|
28328
28356
|
});
|
|
28329
28357
|
}
|
|
28330
28358
|
function bh(e) {
|
|
28331
28359
|
return j.useCallback((t) => t.provideValue(Nt.pluginManager, e.pluginManager).provideValue(Nt.vizManager, e.vizManager).provideValue(Nt.colorManager, e.colorManager), []);
|
|
28332
28360
|
}
|
|
28333
|
-
const
|
|
28361
|
+
const qN = Q(function({
|
|
28334
28362
|
context: t,
|
|
28335
28363
|
dashboard: n,
|
|
28336
28364
|
update: r,
|
|
@@ -28378,7 +28406,7 @@ const WN = Q(function({
|
|
|
28378
28406
|
value: p,
|
|
28379
28407
|
children: /* @__PURE__ */ l(Gi, {
|
|
28380
28408
|
configure: g,
|
|
28381
|
-
children: d.views.visibleViews.map((h) => /* @__PURE__ */ l(
|
|
28409
|
+
children: d.views.visibleViews.map((h) => /* @__PURE__ */ l(O$, {
|
|
28382
28410
|
view: h,
|
|
28383
28411
|
saveDashboardChanges: f,
|
|
28384
28412
|
fullScreenPanelID: a,
|
|
@@ -28390,7 +28418,7 @@ const WN = Q(function({
|
|
|
28390
28418
|
})
|
|
28391
28419
|
})
|
|
28392
28420
|
});
|
|
28393
|
-
}),
|
|
28421
|
+
}), UN = Q(({
|
|
28394
28422
|
context: e,
|
|
28395
28423
|
dashboard: t,
|
|
28396
28424
|
className: n = "dashboard",
|
|
@@ -28420,7 +28448,7 @@ const WN = Q(function({
|
|
|
28420
28448
|
value: s,
|
|
28421
28449
|
children: /* @__PURE__ */ l(Gi, {
|
|
28422
28450
|
configure: c,
|
|
28423
|
-
children: a.views.visibleViews.map((u) => /* @__PURE__ */ l(
|
|
28451
|
+
children: a.views.visibleViews.map((u) => /* @__PURE__ */ l(D$, {
|
|
28424
28452
|
view: u,
|
|
28425
28453
|
fullScreenPanelID: o,
|
|
28426
28454
|
setFullScreenPanelID: i
|
|
@@ -28495,7 +28523,7 @@ var Sh = { exports: {} };
|
|
|
28495
28523
|
};
|
|
28496
28524
|
});
|
|
28497
28525
|
})(Sh);
|
|
28498
|
-
const
|
|
28526
|
+
const oN = Sh.exports;
|
|
28499
28527
|
var wh = { exports: {} };
|
|
28500
28528
|
(function(e, t) {
|
|
28501
28529
|
(function(n, r) {
|
|
@@ -28577,35 +28605,35 @@ var wh = { exports: {} };
|
|
|
28577
28605
|
};
|
|
28578
28606
|
});
|
|
28579
28607
|
})(wh);
|
|
28580
|
-
const
|
|
28608
|
+
const iN = wh.exports;
|
|
28609
|
+
hr.extend(iN);
|
|
28581
28610
|
hr.extend(oN);
|
|
28582
|
-
hr.extend(rN);
|
|
28583
28611
|
hr.tz.setDefault("UTC");
|
|
28584
28612
|
export {
|
|
28585
|
-
|
|
28586
|
-
|
|
28613
|
+
W$ as ContextModel,
|
|
28614
|
+
qN as Dashboard,
|
|
28587
28615
|
xR as DashboardFilterType,
|
|
28588
28616
|
CR as DashboardMode,
|
|
28589
28617
|
Sl as DashboardModel,
|
|
28590
28618
|
Rn as EViewComponentType,
|
|
28591
28619
|
ld as FilterModel,
|
|
28592
|
-
|
|
28620
|
+
F$ as FiltersModel,
|
|
28593
28621
|
Nn as LayoutStateContext,
|
|
28594
|
-
|
|
28622
|
+
O$ as MainDashboardView,
|
|
28595
28623
|
zd as ModelContextProvider,
|
|
28596
28624
|
Bs as Panel,
|
|
28597
28625
|
Vv as PanelContextProvider,
|
|
28598
|
-
|
|
28599
|
-
|
|
28600
|
-
|
|
28601
|
-
|
|
28602
|
-
|
|
28603
|
-
|
|
28604
|
-
|
|
28605
|
-
|
|
28626
|
+
H$ as QueriesModel,
|
|
28627
|
+
K$ as QueryModel,
|
|
28628
|
+
UN as ReadOnlyDashboard,
|
|
28629
|
+
D$ as ReadOnlyDashboardView,
|
|
28630
|
+
B$ as SQLSnippetModel,
|
|
28631
|
+
G$ as SQLSnippetsModel,
|
|
28632
|
+
eN as ViewModel,
|
|
28633
|
+
tN as ViewsModel,
|
|
28606
28634
|
yh as createDashboardModel,
|
|
28607
|
-
|
|
28608
|
-
|
|
28635
|
+
nN as createDashboardViewsModel,
|
|
28636
|
+
z$ as getInitialFiltersPayload,
|
|
28609
28637
|
lt as useModelContext,
|
|
28610
28638
|
Gt as usePanelContext,
|
|
28611
28639
|
bh as useTopLevelServices
|