@devtable/dashboard 6.30.0 → 6.32.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/dashboard.es.js +735 -717
- package/dist/dashboard.umd.js +40 -40
- package/dist/plugins/viz-components/cartesian/option/index.d.ts +1 -1
- package/dist/plugins/viz-components/cartesian/option/legend.d.ts +9 -2
- package/dist/plugins/viz-components/cartesian/option/utils/label-formatter.d.ts +2 -0
- package/dist/plugins/viz-components/cartesian/option/utils/variables.d.ts +3 -0
- package/package.json +1 -1
package/dist/dashboard.es.js
CHANGED
|
@@ -13512,7 +13512,7 @@ const gT = (e) => {
|
|
|
13512
13512
|
getColor: la(["#fff7f1", "darkorange", "#b60000"]),
|
|
13513
13513
|
name: "orange",
|
|
13514
13514
|
category: "sequential"
|
|
13515
|
-
}, fg = "@devtable/dashboard", hs = "6.
|
|
13515
|
+
}, fg = "@devtable/dashboard", hs = "6.32.0", pg = "Apache-2.0", gg = {
|
|
13516
13516
|
access: "public",
|
|
13517
13517
|
registry: "https://registry.npmjs.org/"
|
|
13518
13518
|
}, hg = [
|
|
@@ -15979,7 +15979,37 @@ function UM(e) {
|
|
|
15979
15979
|
top: t ? 30 : 10
|
|
15980
15980
|
};
|
|
15981
15981
|
}
|
|
15982
|
-
function YM(
|
|
15982
|
+
function YM(e) {
|
|
15983
|
+
return e !== "line" ? {} : {
|
|
15984
|
+
itemStyle: {
|
|
15985
|
+
opacity: 0
|
|
15986
|
+
}
|
|
15987
|
+
};
|
|
15988
|
+
}
|
|
15989
|
+
function XM(e) {
|
|
15990
|
+
switch (e) {
|
|
15991
|
+
case "line":
|
|
15992
|
+
return;
|
|
15993
|
+
case "bar":
|
|
15994
|
+
return "roundRect";
|
|
15995
|
+
case "scatter":
|
|
15996
|
+
return "circle";
|
|
15997
|
+
}
|
|
15998
|
+
}
|
|
15999
|
+
function QM(e) {
|
|
16000
|
+
const t = {
|
|
16001
|
+
show: !0,
|
|
16002
|
+
bottom: 0,
|
|
16003
|
+
left: "center",
|
|
16004
|
+
type: "scroll"
|
|
16005
|
+
};
|
|
16006
|
+
return t.data = e.filter((n) => !n.hide_in_legend).map(({ name: n, type: r }) => ({
|
|
16007
|
+
name: n,
|
|
16008
|
+
icon: XM(r),
|
|
16009
|
+
...YM(r)
|
|
16010
|
+
})), t;
|
|
16011
|
+
}
|
|
16012
|
+
function JM({ regressions: e = [] }, t) {
|
|
15983
16013
|
const n = [], r = [], o = [];
|
|
15984
16014
|
return t.length === 0 ? { regressionDataSets: n, regressionSeries: r, regressionXAxes: o } : (e.forEach(({ transform: i, plot: a, name: s, y_axis_data_key: c }) => {
|
|
15985
16015
|
const u = `x-axis-for-${s}`, d = `dataset-for-${s}--raw`, f = `dataset-for-${s}--transformed`;
|
|
@@ -16007,7 +16037,7 @@ function YM({ regressions: e = [] }, t) {
|
|
|
16007
16037
|
});
|
|
16008
16038
|
}), { regressionDataSets: n, regressionSeries: r, regressionXAxes: o });
|
|
16009
16039
|
}
|
|
16010
|
-
function
|
|
16040
|
+
function ZM({ type: e, ...t }, n, r, o) {
|
|
16011
16041
|
if (!e)
|
|
16012
16042
|
return 10;
|
|
16013
16043
|
if (e === "static") {
|
|
@@ -16032,12 +16062,13 @@ function Zu(e, t, n, r) {
|
|
|
16032
16062
|
const o = t.map((i) => [i[n], i[r]]);
|
|
16033
16063
|
return Le.unionBy(o, e, 0);
|
|
16034
16064
|
}
|
|
16035
|
-
function
|
|
16065
|
+
function ek(e, t, n, r) {
|
|
16036
16066
|
return e.map((o) => {
|
|
16037
16067
|
const i = o.orientation === "horizontal", a = i ? "yAxis" : "xAxis", s = i ? "insideEndTop" : "end";
|
|
16038
16068
|
return {
|
|
16039
16069
|
name: "refs",
|
|
16040
16070
|
type: "scatter",
|
|
16071
|
+
hide_in_legend: !0,
|
|
16041
16072
|
data: [],
|
|
16042
16073
|
markLine: {
|
|
16043
16074
|
data: [
|
|
@@ -16058,10 +16089,11 @@ function QM(e, t, n, r) {
|
|
|
16058
16089
|
};
|
|
16059
16090
|
});
|
|
16060
16091
|
}
|
|
16061
|
-
function
|
|
16092
|
+
function tk(e, t) {
|
|
16062
16093
|
return e.map((n) => ({
|
|
16063
16094
|
name: "",
|
|
16064
16095
|
type: "line",
|
|
16096
|
+
hide_in_legend: !0,
|
|
16065
16097
|
data: [],
|
|
16066
16098
|
markArea: {
|
|
16067
16099
|
itemStyle: {
|
|
@@ -16081,7 +16113,7 @@ function JM(e, t) {
|
|
|
16081
16113
|
}
|
|
16082
16114
|
}));
|
|
16083
16115
|
}
|
|
16084
|
-
function
|
|
16116
|
+
function nk({ x_axis_data_key: e }, {
|
|
16085
16117
|
y_axis_data_key: t,
|
|
16086
16118
|
yAxisIndex: n,
|
|
16087
16119
|
label_position: r,
|
|
@@ -16105,7 +16137,8 @@ function ZM({ x_axis_data_key: e }, {
|
|
|
16105
16137
|
yAxisIndex: n,
|
|
16106
16138
|
stack: a,
|
|
16107
16139
|
color: s,
|
|
16108
|
-
symbolSize:
|
|
16140
|
+
symbolSize: ZM(u, h, e, m),
|
|
16141
|
+
hide_in_legend: d,
|
|
16109
16142
|
...f
|
|
16110
16143
|
};
|
|
16111
16144
|
if (c && (y.endLabel = {
|
|
@@ -16121,9 +16154,9 @@ function ZM({ x_axis_data_key: e }, {
|
|
|
16121
16154
|
return C.data = Zu(p, E, e, t), C.name = S, C.color = void 0, C;
|
|
16122
16155
|
});
|
|
16123
16156
|
}
|
|
16124
|
-
function
|
|
16157
|
+
function rk(e, t, n, r, o, i, a) {
|
|
16125
16158
|
const s = t.map((u) => [u, 0]);
|
|
16126
|
-
return e.series.map((u) =>
|
|
16159
|
+
return e.series.map((u) => nk(e, u, s, n, r, a, o)).flat().concat(ek(e.reference_lines, i, a, r)).concat(tk(e.reference_areas, a));
|
|
16127
16160
|
}
|
|
16128
16161
|
function Wg({ enabled: e, func_content: t }) {
|
|
16129
16162
|
return (n, r) => {
|
|
@@ -16136,14 +16169,14 @@ function Wg({ enabled: e, func_content: t }) {
|
|
|
16136
16169
|
}
|
|
16137
16170
|
};
|
|
16138
16171
|
}
|
|
16139
|
-
function
|
|
16172
|
+
function ok(e, t) {
|
|
16140
16173
|
const n = e.find((s) => s.axisDim === "x" && s.axisId === "main-x-axis");
|
|
16141
16174
|
if (!n)
|
|
16142
16175
|
return "";
|
|
16143
16176
|
const { name: r, axisType: o, axisValue: i, axisIndex: a } = n;
|
|
16144
16177
|
return o === "xAxis.category" ? r : Wg(t.x_axis.axisLabel.formatter)(i, a);
|
|
16145
16178
|
}
|
|
16146
|
-
function
|
|
16179
|
+
function ik(e, t) {
|
|
16147
16180
|
const n = e.series.reduce(
|
|
16148
16181
|
(r, { yAxisIndex: o, name: i }) => (r[i] = o, r),
|
|
16149
16182
|
{}
|
|
@@ -16153,7 +16186,7 @@ function nk(e, t) {
|
|
|
16153
16186
|
const o = Array.isArray(r) ? r : [r];
|
|
16154
16187
|
if (o.length === 0)
|
|
16155
16188
|
return "";
|
|
16156
|
-
const i =
|
|
16189
|
+
const i = ok(o, e), a = o.map(({ seriesName: s, value: c }) => {
|
|
16157
16190
|
var f;
|
|
16158
16191
|
if (Array.isArray(c) && c.length === 2 && (c = c[1]), !s)
|
|
16159
16192
|
return c;
|
|
@@ -16164,7 +16197,31 @@ function nk(e, t) {
|
|
|
16164
16197
|
}
|
|
16165
16198
|
};
|
|
16166
16199
|
}
|
|
16167
|
-
function
|
|
16200
|
+
function ak(e) {
|
|
16201
|
+
return e.y_axes.reduce(
|
|
16202
|
+
(n, { label_formatter: r }, o) => (n[o] = function(a) {
|
|
16203
|
+
let s = a;
|
|
16204
|
+
if (typeof a == "object" && (Array.isArray(a.value) && a.value.length === 2 ? s = a.value[1] : s = a.value), !r)
|
|
16205
|
+
return s;
|
|
16206
|
+
try {
|
|
16207
|
+
return Zt(s).format(r);
|
|
16208
|
+
} catch (c) {
|
|
16209
|
+
return console.error(c), s;
|
|
16210
|
+
}
|
|
16211
|
+
}, n),
|
|
16212
|
+
{
|
|
16213
|
+
default: ({ value: n }) => n
|
|
16214
|
+
}
|
|
16215
|
+
);
|
|
16216
|
+
}
|
|
16217
|
+
function lk(e, t) {
|
|
16218
|
+
const n = {};
|
|
16219
|
+
return t.map((r) => {
|
|
16220
|
+
const o = ws(r, e);
|
|
16221
|
+
n[r.name] = li(r, o);
|
|
16222
|
+
}), n;
|
|
16223
|
+
}
|
|
16224
|
+
function sk(e, t, n) {
|
|
16168
16225
|
var i;
|
|
16169
16226
|
const r = t.every((a) => !Number.isNaN(Number(a))), { axisLabel: o } = e.x_axis;
|
|
16170
16227
|
return [
|
|
@@ -16185,7 +16242,7 @@ function rk(e, t, n) {
|
|
|
16185
16242
|
...n
|
|
16186
16243
|
];
|
|
16187
16244
|
}
|
|
16188
|
-
function
|
|
16245
|
+
function ck(e, t) {
|
|
16189
16246
|
return e.y_axes.map(({ nameAlignment: n, ...r }, o) => {
|
|
16190
16247
|
var a;
|
|
16191
16248
|
let i = r.position;
|
|
@@ -16211,29 +16268,7 @@ function ok(e, t) {
|
|
|
16211
16268
|
};
|
|
16212
16269
|
});
|
|
16213
16270
|
}
|
|
16214
|
-
|
|
16215
|
-
switch (e) {
|
|
16216
|
-
case "line":
|
|
16217
|
-
return;
|
|
16218
|
-
case "bar":
|
|
16219
|
-
return "roundRect";
|
|
16220
|
-
case "scatter":
|
|
16221
|
-
return "circle";
|
|
16222
|
-
}
|
|
16223
|
-
}
|
|
16224
|
-
function ak(e) {
|
|
16225
|
-
const t = {
|
|
16226
|
-
show: !0,
|
|
16227
|
-
bottom: 0,
|
|
16228
|
-
left: "center",
|
|
16229
|
-
type: "scroll"
|
|
16230
|
-
};
|
|
16231
|
-
return t.data = e.series.filter((n) => !n.hide_in_legend).map(({ name: n, type: r }) => ({
|
|
16232
|
-
name: n,
|
|
16233
|
-
icon: ik(r)
|
|
16234
|
-
})), t;
|
|
16235
|
-
}
|
|
16236
|
-
const lk = {
|
|
16271
|
+
const uk = {
|
|
16237
16272
|
dataZoom: [
|
|
16238
16273
|
{
|
|
16239
16274
|
type: "inside",
|
|
@@ -16272,40 +16307,23 @@ const lk = {
|
|
|
16272
16307
|
containLabel: !0
|
|
16273
16308
|
}
|
|
16274
16309
|
};
|
|
16275
|
-
function
|
|
16276
|
-
const r = n.
|
|
16277
|
-
|
|
16278
|
-
|
|
16279
|
-
}, {}), o = e.y_axes.reduce(
|
|
16280
|
-
(p, { label_formatter: g }, h) => (p[h] = function(b) {
|
|
16281
|
-
let y = b;
|
|
16282
|
-
if (typeof b == "object" && (Array.isArray(b.value) && b.value.length === 2 ? y = b.value[1] : y = b.value), !g)
|
|
16283
|
-
return y;
|
|
16284
|
-
try {
|
|
16285
|
-
return Zt(y).format(g);
|
|
16286
|
-
} catch (w) {
|
|
16287
|
-
return console.error(w), y;
|
|
16288
|
-
}
|
|
16289
|
-
}, p),
|
|
16290
|
-
{
|
|
16291
|
-
default: ({ value: p }) => p
|
|
16292
|
-
}
|
|
16293
|
-
), i = Le.uniq(t.map((p) => p[e.x_axis_data_key])), a = i.every((p) => !Number.isNaN(Number(p))), s = ek(e, i, a, t, o, n, r), { regressionDataSets: c, regressionSeries: u, regressionXAxes: d } = YM(e, t), f = {
|
|
16294
|
-
xAxis: rk(e, i, d),
|
|
16295
|
-
yAxis: ok(e, o),
|
|
16310
|
+
function dk(e, t, n) {
|
|
16311
|
+
const r = lk(t, n), o = ak(e), i = Le.uniq(t.map((p) => p[e.x_axis_data_key])), a = i.every((p) => !Number.isNaN(Number(p))), s = rk(e, i, a, t, o, n, r), { regressionDataSets: c, regressionSeries: u, regressionXAxes: d } = JM(e, t), f = {
|
|
16312
|
+
xAxis: sk(e, i, d),
|
|
16313
|
+
yAxis: ck(e, o),
|
|
16296
16314
|
dataset: [...c],
|
|
16297
16315
|
series: [...s, ...u],
|
|
16298
|
-
tooltip:
|
|
16316
|
+
tooltip: ik(e, o),
|
|
16299
16317
|
grid: UM(e),
|
|
16300
|
-
legend:
|
|
16318
|
+
legend: QM(s)
|
|
16301
16319
|
};
|
|
16302
|
-
return nn({}, f,
|
|
16320
|
+
return nn({}, f, uk);
|
|
16303
16321
|
}
|
|
16304
16322
|
const qg = {
|
|
16305
16323
|
id: "builtin:echarts:click-echart:series",
|
|
16306
16324
|
displayName: "Click Chart Series",
|
|
16307
|
-
nameRender:
|
|
16308
|
-
configRender:
|
|
16325
|
+
nameRender: pk,
|
|
16326
|
+
configRender: fk,
|
|
16309
16327
|
payload: [{
|
|
16310
16328
|
name: "seriesType",
|
|
16311
16329
|
description: "'line' | 'scatter' | 'bar'",
|
|
@@ -16332,10 +16350,10 @@ const qg = {
|
|
|
16332
16350
|
valueType: "object"
|
|
16333
16351
|
}]
|
|
16334
16352
|
};
|
|
16335
|
-
function
|
|
16353
|
+
function fk(e) {
|
|
16336
16354
|
return /* @__PURE__ */ l(Ne, {});
|
|
16337
16355
|
}
|
|
16338
|
-
function
|
|
16356
|
+
function pk(e) {
|
|
16339
16357
|
return /* @__PURE__ */ l(z, {
|
|
16340
16358
|
children: "Click chart's series"
|
|
16341
16359
|
});
|
|
@@ -16372,7 +16390,7 @@ $t.registerTransform(Nl.regression);
|
|
|
16372
16390
|
function ed(e) {
|
|
16373
16391
|
return e.trim().length > 0;
|
|
16374
16392
|
}
|
|
16375
|
-
function
|
|
16393
|
+
function gk({
|
|
16376
16394
|
conf: e,
|
|
16377
16395
|
data: t,
|
|
16378
16396
|
width: n,
|
|
@@ -16390,7 +16408,7 @@ function dk({
|
|
|
16390
16408
|
rowData: f
|
|
16391
16409
|
});
|
|
16392
16410
|
});
|
|
16393
|
-
}, u = j.useMemo(() =>
|
|
16411
|
+
}, u = j.useMemo(() => dk(e, t, i), [e, t]);
|
|
16394
16412
|
return !n || !r ? null : /* @__PURE__ */ l(Zn, {
|
|
16395
16413
|
echarts: $t,
|
|
16396
16414
|
option: u,
|
|
@@ -16403,7 +16421,7 @@ function dk({
|
|
|
16403
16421
|
}
|
|
16404
16422
|
});
|
|
16405
16423
|
}
|
|
16406
|
-
function
|
|
16424
|
+
function hk({
|
|
16407
16425
|
context: e,
|
|
16408
16426
|
instance: t
|
|
16409
16427
|
}) {
|
|
@@ -16441,7 +16459,7 @@ function fk({
|
|
|
16441
16459
|
size: "xs",
|
|
16442
16460
|
pl: "sm",
|
|
16443
16461
|
children: Object.values(g.top).map((m) => m)
|
|
16444
|
-
}), /* @__PURE__ */ l(
|
|
16462
|
+
}), /* @__PURE__ */ l(gk, {
|
|
16445
16463
|
variables: o,
|
|
16446
16464
|
width: s,
|
|
16447
16465
|
height: h,
|
|
@@ -16457,14 +16475,14 @@ function fk({
|
|
|
16457
16475
|
})]
|
|
16458
16476
|
});
|
|
16459
16477
|
}
|
|
16460
|
-
const
|
|
16478
|
+
const mk = [{
|
|
16461
16479
|
label: "Rectangle",
|
|
16462
16480
|
value: "rectangle"
|
|
16463
|
-
}],
|
|
16481
|
+
}], vk = [{
|
|
16464
16482
|
label: "Horizontal",
|
|
16465
16483
|
value: "horizontal"
|
|
16466
16484
|
}];
|
|
16467
|
-
function
|
|
16485
|
+
function yk({
|
|
16468
16486
|
control: e,
|
|
16469
16487
|
index: t,
|
|
16470
16488
|
remove: n,
|
|
@@ -16517,7 +16535,7 @@ function hk({
|
|
|
16517
16535
|
}) => /* @__PURE__ */ l(Ee, {
|
|
16518
16536
|
label: "Type",
|
|
16519
16537
|
required: !0,
|
|
16520
|
-
data:
|
|
16538
|
+
data: mk,
|
|
16521
16539
|
sx: {
|
|
16522
16540
|
flex: 1
|
|
16523
16541
|
},
|
|
@@ -16531,7 +16549,7 @@ function hk({
|
|
|
16531
16549
|
}) => /* @__PURE__ */ l(Ee, {
|
|
16532
16550
|
label: "Direction",
|
|
16533
16551
|
required: !0,
|
|
16534
|
-
data:
|
|
16552
|
+
data: vk,
|
|
16535
16553
|
sx: {
|
|
16536
16554
|
flex: 1
|
|
16537
16555
|
},
|
|
@@ -16589,7 +16607,7 @@ function hk({
|
|
|
16589
16607
|
})]
|
|
16590
16608
|
}, t);
|
|
16591
16609
|
}
|
|
16592
|
-
function
|
|
16610
|
+
function bk({
|
|
16593
16611
|
control: e,
|
|
16594
16612
|
watch: t,
|
|
16595
16613
|
variables: n
|
|
@@ -16643,7 +16661,7 @@ function mk({
|
|
|
16643
16661
|
})]
|
|
16644
16662
|
}), s.map((d, f) => /* @__PURE__ */ l(I.Panel, {
|
|
16645
16663
|
value: f.toString(),
|
|
16646
|
-
children: /* @__PURE__ */ l(
|
|
16664
|
+
children: /* @__PURE__ */ l(yk, {
|
|
16647
16665
|
control: e,
|
|
16648
16666
|
index: f,
|
|
16649
16667
|
remove: i,
|
|
@@ -16652,14 +16670,14 @@ function mk({
|
|
|
16652
16670
|
}, f))]
|
|
16653
16671
|
});
|
|
16654
16672
|
}
|
|
16655
|
-
const
|
|
16673
|
+
const Sk = [{
|
|
16656
16674
|
label: "Horizontal",
|
|
16657
16675
|
value: "horizontal"
|
|
16658
16676
|
}, {
|
|
16659
16677
|
label: "Vertical",
|
|
16660
16678
|
value: "vertical"
|
|
16661
16679
|
}];
|
|
16662
|
-
function
|
|
16680
|
+
function wk({
|
|
16663
16681
|
control: e,
|
|
16664
16682
|
index: t,
|
|
16665
16683
|
remove: n,
|
|
@@ -16726,7 +16744,7 @@ function yk({
|
|
|
16726
16744
|
field: a
|
|
16727
16745
|
}) => /* @__PURE__ */ l(Ee, {
|
|
16728
16746
|
label: "Orientation",
|
|
16729
|
-
data:
|
|
16747
|
+
data: Sk,
|
|
16730
16748
|
required: !0,
|
|
16731
16749
|
sx: {
|
|
16732
16750
|
flex: 1
|
|
@@ -16753,7 +16771,7 @@ function yk({
|
|
|
16753
16771
|
})]
|
|
16754
16772
|
}, t);
|
|
16755
16773
|
}
|
|
16756
|
-
function
|
|
16774
|
+
function Ck({
|
|
16757
16775
|
control: e,
|
|
16758
16776
|
watch: t,
|
|
16759
16777
|
variables: n
|
|
@@ -16804,7 +16822,7 @@ function bk({
|
|
|
16804
16822
|
})]
|
|
16805
16823
|
}), s.map((d, f) => /* @__PURE__ */ l(I.Panel, {
|
|
16806
16824
|
value: f.toString(),
|
|
16807
|
-
children: /* @__PURE__ */ l(
|
|
16825
|
+
children: /* @__PURE__ */ l(wk, {
|
|
16808
16826
|
control: e,
|
|
16809
16827
|
index: f,
|
|
16810
16828
|
remove: i,
|
|
@@ -16814,7 +16832,7 @@ function bk({
|
|
|
16814
16832
|
}, f))]
|
|
16815
16833
|
});
|
|
16816
16834
|
}
|
|
16817
|
-
const
|
|
16835
|
+
const xk = [{
|
|
16818
16836
|
label: "Linear",
|
|
16819
16837
|
value: "linear"
|
|
16820
16838
|
}, {
|
|
@@ -16826,7 +16844,7 @@ const Sk = [{
|
|
|
16826
16844
|
}, {
|
|
16827
16845
|
label: "Polynomial",
|
|
16828
16846
|
value: "polynomial"
|
|
16829
|
-
}],
|
|
16847
|
+
}], _k = [{
|
|
16830
16848
|
label: "solid",
|
|
16831
16849
|
value: "solid"
|
|
16832
16850
|
}, {
|
|
@@ -16836,7 +16854,7 @@ const Sk = [{
|
|
|
16836
16854
|
label: "dotted",
|
|
16837
16855
|
value: "dotted"
|
|
16838
16856
|
}];
|
|
16839
|
-
function
|
|
16857
|
+
function Ek({
|
|
16840
16858
|
control: e,
|
|
16841
16859
|
regressionItem: t,
|
|
16842
16860
|
index: n,
|
|
@@ -16921,7 +16939,7 @@ function Ck({
|
|
|
16921
16939
|
field: s
|
|
16922
16940
|
}) => /* @__PURE__ */ l(Ee, {
|
|
16923
16941
|
label: "Method",
|
|
16924
|
-
data:
|
|
16942
|
+
data: xk,
|
|
16925
16943
|
sx: {
|
|
16926
16944
|
flex: 1
|
|
16927
16945
|
},
|
|
@@ -16954,7 +16972,7 @@ function Ck({
|
|
|
16954
16972
|
field: s
|
|
16955
16973
|
}) => /* @__PURE__ */ l(Ee, {
|
|
16956
16974
|
label: "Line Type",
|
|
16957
|
-
data:
|
|
16975
|
+
data: _k,
|
|
16958
16976
|
sx: {
|
|
16959
16977
|
flexGrow: 1
|
|
16960
16978
|
},
|
|
@@ -17004,7 +17022,7 @@ function Ck({
|
|
|
17004
17022
|
})]
|
|
17005
17023
|
}, n);
|
|
17006
17024
|
}
|
|
17007
|
-
function
|
|
17025
|
+
function Ok({
|
|
17008
17026
|
control: e,
|
|
17009
17027
|
watch: t,
|
|
17010
17028
|
data: n
|
|
@@ -17073,7 +17091,7 @@ function xk({
|
|
|
17073
17091
|
})]
|
|
17074
17092
|
}), s.map((f, p) => /* @__PURE__ */ l(I.Panel, {
|
|
17075
17093
|
value: p.toString(),
|
|
17076
|
-
children: /* @__PURE__ */ l(
|
|
17094
|
+
children: /* @__PURE__ */ l(Ek, {
|
|
17077
17095
|
regressionItem: f,
|
|
17078
17096
|
control: e,
|
|
17079
17097
|
index: p,
|
|
@@ -17099,14 +17117,14 @@ const Wo = {
|
|
|
17099
17117
|
].join(`
|
|
17100
17118
|
`)
|
|
17101
17119
|
}
|
|
17102
|
-
},
|
|
17120
|
+
}, Rk = [{
|
|
17103
17121
|
label: "No gap between bars",
|
|
17104
17122
|
value: "0%"
|
|
17105
17123
|
}, {
|
|
17106
17124
|
label: "Bars overlapping on each other",
|
|
17107
17125
|
value: "-100%"
|
|
17108
17126
|
}];
|
|
17109
|
-
function
|
|
17127
|
+
function Tk({
|
|
17110
17128
|
control: e,
|
|
17111
17129
|
index: t
|
|
17112
17130
|
}) {
|
|
@@ -17147,7 +17165,7 @@ function Ek({
|
|
|
17147
17165
|
field: n
|
|
17148
17166
|
}) => /* @__PURE__ */ l(Ee, {
|
|
17149
17167
|
label: "Bar Gap",
|
|
17150
|
-
data:
|
|
17168
|
+
data: Rk,
|
|
17151
17169
|
sx: {
|
|
17152
17170
|
flexGrow: 1
|
|
17153
17171
|
},
|
|
@@ -17156,7 +17174,7 @@ function Ek({
|
|
|
17156
17174
|
})]
|
|
17157
17175
|
});
|
|
17158
17176
|
}
|
|
17159
|
-
const
|
|
17177
|
+
const Mk = ({
|
|
17160
17178
|
value: e,
|
|
17161
17179
|
onChange: t
|
|
17162
17180
|
}) => /* @__PURE__ */ l(Ie, {
|
|
@@ -17174,7 +17192,7 @@ const Ok = ({
|
|
|
17174
17192
|
}
|
|
17175
17193
|
}
|
|
17176
17194
|
})
|
|
17177
|
-
}),
|
|
17195
|
+
}), kk = ({
|
|
17178
17196
|
value: e,
|
|
17179
17197
|
onChange: t,
|
|
17180
17198
|
data: n
|
|
@@ -17230,7 +17248,7 @@ const Ok = ({
|
|
|
17230
17248
|
label: "Dynamic by a custom function",
|
|
17231
17249
|
labelPosition: "center",
|
|
17232
17250
|
variant: "dashed"
|
|
17233
|
-
}), /* @__PURE__ */ l(
|
|
17251
|
+
}), /* @__PURE__ */ l(Mk, {
|
|
17234
17252
|
value: a.func_content,
|
|
17235
17253
|
onChange: d
|
|
17236
17254
|
}), /* @__PURE__ */ v(k, {
|
|
@@ -17257,15 +17275,15 @@ const Ok = ({
|
|
|
17257
17275
|
})
|
|
17258
17276
|
})]
|
|
17259
17277
|
});
|
|
17260
|
-
},
|
|
17278
|
+
}, Dk = ({
|
|
17261
17279
|
value: e,
|
|
17262
17280
|
onChange: t,
|
|
17263
17281
|
data: n
|
|
17264
|
-
}) => e.type !== "dynamic" ? null : /* @__PURE__ */ l(
|
|
17282
|
+
}) => e.type !== "dynamic" ? null : /* @__PURE__ */ l(kk, {
|
|
17265
17283
|
value: e,
|
|
17266
17284
|
onChange: t,
|
|
17267
17285
|
data: n
|
|
17268
|
-
}),
|
|
17286
|
+
}), Pk = ({
|
|
17269
17287
|
value: e,
|
|
17270
17288
|
onChange: t
|
|
17271
17289
|
}) => {
|
|
@@ -17287,7 +17305,7 @@ const Ok = ({
|
|
|
17287
17305
|
onChange: n
|
|
17288
17306
|
})
|
|
17289
17307
|
});
|
|
17290
|
-
},
|
|
17308
|
+
}, Ik = [{
|
|
17291
17309
|
label: "Static",
|
|
17292
17310
|
value: "static"
|
|
17293
17311
|
}, {
|
|
@@ -17309,22 +17327,22 @@ const Ok = ({
|
|
|
17309
17327
|
children: [/* @__PURE__ */ l(Ee, {
|
|
17310
17328
|
ref: o,
|
|
17311
17329
|
label: e,
|
|
17312
|
-
data:
|
|
17330
|
+
data: Ik,
|
|
17313
17331
|
value: t.type,
|
|
17314
17332
|
onChange: i,
|
|
17315
17333
|
sx: {
|
|
17316
17334
|
flexGrow: 1
|
|
17317
17335
|
}
|
|
17318
|
-
}), /* @__PURE__ */ l(
|
|
17336
|
+
}), /* @__PURE__ */ l(Pk, {
|
|
17319
17337
|
value: t,
|
|
17320
17338
|
onChange: n
|
|
17321
|
-
}), /* @__PURE__ */ l(
|
|
17339
|
+
}), /* @__PURE__ */ l(Dk, {
|
|
17322
17340
|
value: t,
|
|
17323
17341
|
onChange: n,
|
|
17324
17342
|
data: r
|
|
17325
17343
|
})]
|
|
17326
17344
|
});
|
|
17327
|
-
}),
|
|
17345
|
+
}), $k = [{
|
|
17328
17346
|
label: "off",
|
|
17329
17347
|
value: "false"
|
|
17330
17348
|
}, {
|
|
@@ -17336,7 +17354,7 @@ const Ok = ({
|
|
|
17336
17354
|
}, {
|
|
17337
17355
|
label: "end",
|
|
17338
17356
|
value: "end"
|
|
17339
|
-
}],
|
|
17357
|
+
}], Ak = [{
|
|
17340
17358
|
label: "solid",
|
|
17341
17359
|
value: "solid"
|
|
17342
17360
|
}, {
|
|
@@ -17346,7 +17364,7 @@ const Ok = ({
|
|
|
17346
17364
|
label: "dotted",
|
|
17347
17365
|
value: "dotted"
|
|
17348
17366
|
}];
|
|
17349
|
-
function
|
|
17367
|
+
function Nk({
|
|
17350
17368
|
control: e,
|
|
17351
17369
|
index: t,
|
|
17352
17370
|
seriesItem: n,
|
|
@@ -17368,7 +17386,7 @@ function Ik({
|
|
|
17368
17386
|
field: i
|
|
17369
17387
|
}) => /* @__PURE__ */ l(Ee, {
|
|
17370
17388
|
label: "Line Type",
|
|
17371
|
-
data:
|
|
17389
|
+
data: Ak,
|
|
17372
17390
|
sx: {
|
|
17373
17391
|
flexGrow: 1
|
|
17374
17392
|
},
|
|
@@ -17399,7 +17417,7 @@ function Ik({
|
|
|
17399
17417
|
field: i
|
|
17400
17418
|
}) => /* @__PURE__ */ l(Ee, {
|
|
17401
17419
|
label: "Step",
|
|
17402
|
-
data:
|
|
17420
|
+
data: $k,
|
|
17403
17421
|
sx: {
|
|
17404
17422
|
flexGrow: 1,
|
|
17405
17423
|
maxWidth: "48%"
|
|
@@ -17479,7 +17497,7 @@ function Ik({
|
|
|
17479
17497
|
})]
|
|
17480
17498
|
});
|
|
17481
17499
|
}
|
|
17482
|
-
function
|
|
17500
|
+
function Lk({
|
|
17483
17501
|
control: e,
|
|
17484
17502
|
index: t,
|
|
17485
17503
|
data: n
|
|
@@ -17496,7 +17514,7 @@ function $k({
|
|
|
17496
17514
|
})
|
|
17497
17515
|
});
|
|
17498
17516
|
}
|
|
17499
|
-
const
|
|
17517
|
+
const Vk = [{
|
|
17500
17518
|
label: "off",
|
|
17501
17519
|
value: ""
|
|
17502
17520
|
}, {
|
|
@@ -17539,7 +17557,7 @@ const Ak = [{
|
|
|
17539
17557
|
label: "insideBottomRight",
|
|
17540
17558
|
value: "insideBottomRight"
|
|
17541
17559
|
}];
|
|
17542
|
-
function
|
|
17560
|
+
function Fk({
|
|
17543
17561
|
control: e,
|
|
17544
17562
|
index: t,
|
|
17545
17563
|
remove: n,
|
|
@@ -17656,15 +17674,15 @@ function Nk({
|
|
|
17656
17674
|
...s
|
|
17657
17675
|
})
|
|
17658
17676
|
})]
|
|
17659
|
-
}), a === "line" && /* @__PURE__ */ l(
|
|
17677
|
+
}), a === "line" && /* @__PURE__ */ l(Nk, {
|
|
17660
17678
|
index: t,
|
|
17661
17679
|
control: e,
|
|
17662
17680
|
seriesItem: r,
|
|
17663
17681
|
data: i
|
|
17664
|
-
}), a === "bar" && /* @__PURE__ */ l(
|
|
17682
|
+
}), a === "bar" && /* @__PURE__ */ l(Tk, {
|
|
17665
17683
|
index: t,
|
|
17666
17684
|
control: e
|
|
17667
|
-
}), a === "scatter" && /* @__PURE__ */ l(
|
|
17685
|
+
}), a === "scatter" && /* @__PURE__ */ l(Lk, {
|
|
17668
17686
|
index: t,
|
|
17669
17687
|
control: e,
|
|
17670
17688
|
data: i
|
|
@@ -17681,7 +17699,7 @@ function Nk({
|
|
|
17681
17699
|
field: s
|
|
17682
17700
|
}) => /* @__PURE__ */ l(Ee, {
|
|
17683
17701
|
label: "Label Position",
|
|
17684
|
-
data:
|
|
17702
|
+
data: Vk,
|
|
17685
17703
|
...s
|
|
17686
17704
|
})
|
|
17687
17705
|
}), /* @__PURE__ */ v(B, {
|
|
@@ -17733,7 +17751,7 @@ function Nk({
|
|
|
17733
17751
|
})]
|
|
17734
17752
|
}, t);
|
|
17735
17753
|
}
|
|
17736
|
-
function
|
|
17754
|
+
function zk({
|
|
17737
17755
|
control: e,
|
|
17738
17756
|
watch: t,
|
|
17739
17757
|
data: n
|
|
@@ -17802,7 +17820,7 @@ function Lk({
|
|
|
17802
17820
|
})]
|
|
17803
17821
|
}), s.map((f, p) => /* @__PURE__ */ l(I.Panel, {
|
|
17804
17822
|
value: p.toString(),
|
|
17805
|
-
children: /* @__PURE__ */ l(
|
|
17823
|
+
children: /* @__PURE__ */ l(Fk, {
|
|
17806
17824
|
control: e,
|
|
17807
17825
|
index: p,
|
|
17808
17826
|
remove: i,
|
|
@@ -17813,7 +17831,7 @@ function Lk({
|
|
|
17813
17831
|
}, f.id))]
|
|
17814
17832
|
});
|
|
17815
17833
|
}
|
|
17816
|
-
function
|
|
17834
|
+
function jk({
|
|
17817
17835
|
control: e,
|
|
17818
17836
|
watch: t
|
|
17819
17837
|
}) {
|
|
@@ -17850,7 +17868,7 @@ function Vk({
|
|
|
17850
17868
|
})
|
|
17851
17869
|
});
|
|
17852
17870
|
}
|
|
17853
|
-
const
|
|
17871
|
+
const Hk = ({
|
|
17854
17872
|
disabled: e,
|
|
17855
17873
|
value: t,
|
|
17856
17874
|
onChange: n
|
|
@@ -17878,7 +17896,7 @@ const Fk = ({
|
|
|
17878
17896
|
}
|
|
17879
17897
|
}
|
|
17880
17898
|
})]
|
|
17881
|
-
}),
|
|
17899
|
+
}), Kk = ({
|
|
17882
17900
|
value: e,
|
|
17883
17901
|
onChange: t,
|
|
17884
17902
|
data: n
|
|
@@ -17933,7 +17951,7 @@ const Fk = ({
|
|
|
17933
17951
|
label: "Enabled",
|
|
17934
17952
|
checked: a.enabled,
|
|
17935
17953
|
onChange: (g) => c(g.currentTarget.checked)
|
|
17936
|
-
}), /* @__PURE__ */ l(
|
|
17954
|
+
}), /* @__PURE__ */ l(Hk, {
|
|
17937
17955
|
value: a.func_content,
|
|
17938
17956
|
onChange: f,
|
|
17939
17957
|
disabled: !a.enabled
|
|
@@ -17962,7 +17980,7 @@ const Fk = ({
|
|
|
17962
17980
|
})]
|
|
17963
17981
|
});
|
|
17964
17982
|
};
|
|
17965
|
-
function
|
|
17983
|
+
function Bk({
|
|
17966
17984
|
data: e,
|
|
17967
17985
|
control: t,
|
|
17968
17986
|
watch: n
|
|
@@ -18036,7 +18054,7 @@ function jk({
|
|
|
18036
18054
|
control: t,
|
|
18037
18055
|
render: ({
|
|
18038
18056
|
field: r
|
|
18039
|
-
}) => /* @__PURE__ */ l(
|
|
18057
|
+
}) => /* @__PURE__ */ l(Kk, {
|
|
18040
18058
|
data: e,
|
|
18041
18059
|
...r
|
|
18042
18060
|
})
|
|
@@ -18044,7 +18062,7 @@ function jk({
|
|
|
18044
18062
|
})]
|
|
18045
18063
|
});
|
|
18046
18064
|
}
|
|
18047
|
-
const
|
|
18065
|
+
const Gk = [{
|
|
18048
18066
|
label: "left",
|
|
18049
18067
|
value: "left"
|
|
18050
18068
|
}, {
|
|
@@ -18053,14 +18071,14 @@ const Hk = [{
|
|
|
18053
18071
|
}, {
|
|
18054
18072
|
label: "right",
|
|
18055
18073
|
value: "right"
|
|
18056
|
-
}],
|
|
18074
|
+
}], Wk = [{
|
|
18057
18075
|
label: "left",
|
|
18058
18076
|
value: "left"
|
|
18059
18077
|
}, {
|
|
18060
18078
|
label: "right",
|
|
18061
18079
|
value: "right"
|
|
18062
18080
|
}];
|
|
18063
|
-
function
|
|
18081
|
+
function qk({
|
|
18064
18082
|
control: e,
|
|
18065
18083
|
index: t,
|
|
18066
18084
|
remove: n
|
|
@@ -18101,7 +18119,7 @@ function Bk({
|
|
|
18101
18119
|
}) => /* @__PURE__ */ l(Ee, {
|
|
18102
18120
|
label: "Align",
|
|
18103
18121
|
required: !0,
|
|
18104
|
-
data:
|
|
18122
|
+
data: Gk,
|
|
18105
18123
|
sx: {
|
|
18106
18124
|
flex: 1
|
|
18107
18125
|
},
|
|
@@ -18124,7 +18142,7 @@ function Bk({
|
|
|
18124
18142
|
}) => /* @__PURE__ */ l(Ee, {
|
|
18125
18143
|
label: "Position",
|
|
18126
18144
|
required: !0,
|
|
18127
|
-
data:
|
|
18145
|
+
data: Wk,
|
|
18128
18146
|
sx: {
|
|
18129
18147
|
flex: 1
|
|
18130
18148
|
},
|
|
@@ -18159,7 +18177,7 @@ function Bk({
|
|
|
18159
18177
|
})]
|
|
18160
18178
|
});
|
|
18161
18179
|
}
|
|
18162
|
-
function
|
|
18180
|
+
function Uk({
|
|
18163
18181
|
control: e,
|
|
18164
18182
|
watch: t
|
|
18165
18183
|
}) {
|
|
@@ -18204,7 +18222,7 @@ function Gk({
|
|
|
18204
18222
|
})]
|
|
18205
18223
|
}), a.map((c, u) => /* @__PURE__ */ l(I.Panel, {
|
|
18206
18224
|
value: u.toString(),
|
|
18207
|
-
children: /* @__PURE__ */ l(
|
|
18225
|
+
children: /* @__PURE__ */ l(qk, {
|
|
18208
18226
|
control: e,
|
|
18209
18227
|
index: u,
|
|
18210
18228
|
remove: o
|
|
@@ -18212,7 +18230,7 @@ function Gk({
|
|
|
18212
18230
|
}, u))]
|
|
18213
18231
|
});
|
|
18214
18232
|
}
|
|
18215
|
-
function
|
|
18233
|
+
function Yk(e) {
|
|
18216
18234
|
function t({
|
|
18217
18235
|
name: n = "",
|
|
18218
18236
|
template: r = "",
|
|
@@ -18228,7 +18246,7 @@ function Wk(e) {
|
|
|
18228
18246
|
}
|
|
18229
18247
|
return e.map(t);
|
|
18230
18248
|
}
|
|
18231
|
-
function
|
|
18249
|
+
function Xk(e) {
|
|
18232
18250
|
function t({
|
|
18233
18251
|
type: n,
|
|
18234
18252
|
name: r,
|
|
@@ -18277,7 +18295,7 @@ function qk(e) {
|
|
|
18277
18295
|
}
|
|
18278
18296
|
return e.map(t);
|
|
18279
18297
|
}
|
|
18280
|
-
function
|
|
18298
|
+
function Qk(e) {
|
|
18281
18299
|
return e || {
|
|
18282
18300
|
templates: {
|
|
18283
18301
|
top: "",
|
|
@@ -18285,20 +18303,20 @@ function Uk(e) {
|
|
|
18285
18303
|
}
|
|
18286
18304
|
};
|
|
18287
18305
|
}
|
|
18288
|
-
function
|
|
18306
|
+
function Jk({
|
|
18289
18307
|
series: e,
|
|
18290
18308
|
stats: t,
|
|
18291
18309
|
reference_lines: n,
|
|
18292
18310
|
...r
|
|
18293
18311
|
}) {
|
|
18294
18312
|
return {
|
|
18295
|
-
series:
|
|
18296
|
-
stats:
|
|
18297
|
-
reference_lines:
|
|
18313
|
+
series: Xk(e != null ? e : []),
|
|
18314
|
+
stats: Qk(t),
|
|
18315
|
+
reference_lines: Yk(n != null ? n : []),
|
|
18298
18316
|
...r
|
|
18299
18317
|
};
|
|
18300
18318
|
}
|
|
18301
|
-
function
|
|
18319
|
+
function Zk({
|
|
18302
18320
|
context: e
|
|
18303
18321
|
}) {
|
|
18304
18322
|
const {
|
|
@@ -18306,7 +18324,7 @@ function Xk({
|
|
|
18306
18324
|
set: n
|
|
18307
18325
|
} = rt(e.instanceData, "config"), {
|
|
18308
18326
|
variables: r
|
|
18309
|
-
} = e, o = e.data, i = de(() => nn({}, t, Os), [t]), a = de(() =>
|
|
18327
|
+
} = e, o = e.data, i = de(() => nn({}, t, Os), [t]), a = de(() => Jk(i), [i]);
|
|
18310
18328
|
Me(() => {
|
|
18311
18329
|
!Dt(i, a) && (console.log("config malformed, resetting to defaults", i, a), n(a));
|
|
18312
18330
|
}, [i, a]);
|
|
@@ -18386,48 +18404,48 @@ function Xk({
|
|
|
18386
18404
|
})]
|
|
18387
18405
|
}), /* @__PURE__ */ l(I.Panel, {
|
|
18388
18406
|
value: "X Axis",
|
|
18389
|
-
children: /* @__PURE__ */ l(
|
|
18407
|
+
children: /* @__PURE__ */ l(Bk, {
|
|
18390
18408
|
control: s,
|
|
18391
18409
|
watch: u,
|
|
18392
18410
|
data: o
|
|
18393
18411
|
})
|
|
18394
18412
|
}), /* @__PURE__ */ l(I.Panel, {
|
|
18395
18413
|
value: "Y Axes",
|
|
18396
|
-
children: /* @__PURE__ */ l(
|
|
18414
|
+
children: /* @__PURE__ */ l(Uk, {
|
|
18397
18415
|
control: s,
|
|
18398
18416
|
watch: u
|
|
18399
18417
|
})
|
|
18400
18418
|
}), /* @__PURE__ */ l(I.Panel, {
|
|
18401
18419
|
value: "Series",
|
|
18402
|
-
children: /* @__PURE__ */ l(
|
|
18420
|
+
children: /* @__PURE__ */ l(zk, {
|
|
18403
18421
|
control: s,
|
|
18404
18422
|
watch: u,
|
|
18405
18423
|
data: o
|
|
18406
18424
|
})
|
|
18407
18425
|
}), /* @__PURE__ */ l(I.Panel, {
|
|
18408
18426
|
value: "Regression Lines",
|
|
18409
|
-
children: /* @__PURE__ */ l(
|
|
18427
|
+
children: /* @__PURE__ */ l(Ok, {
|
|
18410
18428
|
control: s,
|
|
18411
18429
|
watch: u,
|
|
18412
18430
|
data: o
|
|
18413
18431
|
})
|
|
18414
18432
|
}), /* @__PURE__ */ l(I.Panel, {
|
|
18415
18433
|
value: "Stats",
|
|
18416
|
-
children: /* @__PURE__ */ l(
|
|
18434
|
+
children: /* @__PURE__ */ l(jk, {
|
|
18417
18435
|
control: s,
|
|
18418
18436
|
watch: u,
|
|
18419
18437
|
data: o
|
|
18420
18438
|
})
|
|
18421
18439
|
}), /* @__PURE__ */ l(I.Panel, {
|
|
18422
18440
|
value: "Reference Lines",
|
|
18423
|
-
children: /* @__PURE__ */ l(
|
|
18441
|
+
children: /* @__PURE__ */ l(Ck, {
|
|
18424
18442
|
variables: r,
|
|
18425
18443
|
control: s,
|
|
18426
18444
|
watch: u
|
|
18427
18445
|
})
|
|
18428
18446
|
}), /* @__PURE__ */ l(I.Panel, {
|
|
18429
18447
|
value: "Reference Areas",
|
|
18430
|
-
children: /* @__PURE__ */ l(
|
|
18448
|
+
children: /* @__PURE__ */ l(bk, {
|
|
18431
18449
|
variables: r,
|
|
18432
18450
|
control: s,
|
|
18433
18451
|
watch: u
|
|
@@ -18437,11 +18455,11 @@ function Xk({
|
|
|
18437
18455
|
})
|
|
18438
18456
|
});
|
|
18439
18457
|
}
|
|
18440
|
-
function
|
|
18458
|
+
function eD(e) {
|
|
18441
18459
|
const t = Xo(Dr(e, "variables"));
|
|
18442
18460
|
return t.stats = Dr(t.stats, "variables"), t;
|
|
18443
18461
|
}
|
|
18444
|
-
function
|
|
18462
|
+
function tD(e) {
|
|
18445
18463
|
const {
|
|
18446
18464
|
rotate: t,
|
|
18447
18465
|
formatter: n = Es
|
|
@@ -18457,7 +18475,7 @@ function Jk(e) {
|
|
|
18457
18475
|
}
|
|
18458
18476
|
};
|
|
18459
18477
|
}
|
|
18460
|
-
class
|
|
18478
|
+
class nD extends tn {
|
|
18461
18479
|
constructor() {
|
|
18462
18480
|
super(...arguments);
|
|
18463
18481
|
he(this, "VERSION", 3);
|
|
@@ -18477,27 +18495,27 @@ class Zk extends tn {
|
|
|
18477
18495
|
}), (dt(o, "stats.variables") || []).forEach((s) => {
|
|
18478
18496
|
r.variables.find((c) => c.name === s.name) || r.addVariable(s);
|
|
18479
18497
|
}), {
|
|
18480
|
-
config:
|
|
18498
|
+
config: eD(o)
|
|
18481
18499
|
};
|
|
18482
18500
|
}), this.version(3, (n) => ({
|
|
18483
18501
|
version: 3,
|
|
18484
|
-
config:
|
|
18502
|
+
config: tD(n.config)
|
|
18485
18503
|
}));
|
|
18486
18504
|
}
|
|
18487
18505
|
}
|
|
18488
|
-
const
|
|
18506
|
+
const rD = {
|
|
18489
18507
|
displayName: "Cartesian Chart",
|
|
18490
|
-
migrator: new
|
|
18508
|
+
migrator: new nD(),
|
|
18491
18509
|
name: "cartesian",
|
|
18492
|
-
viewRender:
|
|
18493
|
-
configRender:
|
|
18510
|
+
viewRender: hk,
|
|
18511
|
+
configRender: Zk,
|
|
18494
18512
|
createConfig: () => Os,
|
|
18495
18513
|
triggers: [qg]
|
|
18496
18514
|
}, Yg = {
|
|
18497
18515
|
id: "builtin:echarts:click-echart:series",
|
|
18498
18516
|
displayName: "Click Chart Series",
|
|
18499
|
-
nameRender:
|
|
18500
|
-
configRender:
|
|
18517
|
+
nameRender: iD,
|
|
18518
|
+
configRender: oD,
|
|
18501
18519
|
payload: [{
|
|
18502
18520
|
name: "type",
|
|
18503
18521
|
description: "Always 'click'",
|
|
@@ -18520,10 +18538,10 @@ const eD = {
|
|
|
18520
18538
|
valueType: "object"
|
|
18521
18539
|
}]
|
|
18522
18540
|
};
|
|
18523
|
-
function
|
|
18541
|
+
function oD(e) {
|
|
18524
18542
|
return /* @__PURE__ */ l(Ne, {});
|
|
18525
18543
|
}
|
|
18526
|
-
function
|
|
18544
|
+
function iD(e) {
|
|
18527
18545
|
return /* @__PURE__ */ l(z, {
|
|
18528
18546
|
children: "Click chart's series"
|
|
18529
18547
|
});
|
|
@@ -18549,7 +18567,7 @@ function Ts(e) {
|
|
|
18549
18567
|
mantissa: 0
|
|
18550
18568
|
});
|
|
18551
18569
|
}
|
|
18552
|
-
function
|
|
18570
|
+
function aD(e) {
|
|
18553
18571
|
const t = e.value[1];
|
|
18554
18572
|
try {
|
|
18555
18573
|
return Ts(t);
|
|
@@ -18557,7 +18575,7 @@ function rD(e) {
|
|
|
18557
18575
|
return console.error(n), t;
|
|
18558
18576
|
}
|
|
18559
18577
|
}
|
|
18560
|
-
function
|
|
18578
|
+
function lD(e) {
|
|
18561
18579
|
const t = Array.isArray(e) ? e : [e];
|
|
18562
18580
|
if (t.length === 0)
|
|
18563
18581
|
return "";
|
|
@@ -18568,7 +18586,7 @@ function oD(e) {
|
|
|
18568
18586
|
return n.unshift(`<strong>${t[0].name}</strong>`), n.join("<br />");
|
|
18569
18587
|
}
|
|
18570
18588
|
$t.use([Il, $l, ei, Lr, Vr, Fr, Jn]);
|
|
18571
|
-
function
|
|
18589
|
+
function sD({
|
|
18572
18590
|
context: e,
|
|
18573
18591
|
instance: t
|
|
18574
18592
|
}) {
|
|
@@ -18617,7 +18635,7 @@ function iD({
|
|
|
18617
18635
|
}],
|
|
18618
18636
|
tooltip: {
|
|
18619
18637
|
trigger: "axis",
|
|
18620
|
-
formatter:
|
|
18638
|
+
formatter: lD
|
|
18621
18639
|
},
|
|
18622
18640
|
xAxis: [{
|
|
18623
18641
|
type: "category",
|
|
@@ -18685,7 +18703,7 @@ function iD({
|
|
|
18685
18703
|
label: {
|
|
18686
18704
|
show: !0,
|
|
18687
18705
|
position: "top",
|
|
18688
|
-
formatter:
|
|
18706
|
+
formatter: aD
|
|
18689
18707
|
},
|
|
18690
18708
|
yAxisIndex: 1,
|
|
18691
18709
|
data: m
|
|
@@ -18703,7 +18721,7 @@ function iD({
|
|
|
18703
18721
|
}
|
|
18704
18722
|
});
|
|
18705
18723
|
}
|
|
18706
|
-
function
|
|
18724
|
+
function cD({
|
|
18707
18725
|
context: e
|
|
18708
18726
|
}) {
|
|
18709
18727
|
const {
|
|
@@ -18863,7 +18881,7 @@ function aD({
|
|
|
18863
18881
|
})
|
|
18864
18882
|
});
|
|
18865
18883
|
}
|
|
18866
|
-
class
|
|
18884
|
+
class uD extends tn {
|
|
18867
18885
|
constructor() {
|
|
18868
18886
|
super(...arguments);
|
|
18869
18887
|
he(this, "VERSION", 1);
|
|
@@ -18875,12 +18893,12 @@ class lD extends tn {
|
|
|
18875
18893
|
}));
|
|
18876
18894
|
}
|
|
18877
18895
|
}
|
|
18878
|
-
const
|
|
18896
|
+
const dD = {
|
|
18879
18897
|
displayName: "Pareto Chart",
|
|
18880
|
-
migrator: new
|
|
18898
|
+
migrator: new uD(),
|
|
18881
18899
|
name: "paretoChart",
|
|
18882
|
-
viewRender:
|
|
18883
|
-
configRender:
|
|
18900
|
+
viewRender: sD,
|
|
18901
|
+
configRender: cD,
|
|
18884
18902
|
createConfig: () => Rs,
|
|
18885
18903
|
triggers: [Yg]
|
|
18886
18904
|
}, Ms = {
|
|
@@ -18888,7 +18906,7 @@ const sD = {
|
|
|
18888
18906
|
value_field: ""
|
|
18889
18907
|
};
|
|
18890
18908
|
$t.use([Bm, Jn]);
|
|
18891
|
-
const
|
|
18909
|
+
const fD = {
|
|
18892
18910
|
tooltip: {
|
|
18893
18911
|
show: !0
|
|
18894
18912
|
},
|
|
@@ -18922,7 +18940,7 @@ const cD = {
|
|
|
18922
18940
|
right: 10
|
|
18923
18941
|
}
|
|
18924
18942
|
};
|
|
18925
|
-
function
|
|
18943
|
+
function pD({
|
|
18926
18944
|
context: e
|
|
18927
18945
|
}) {
|
|
18928
18946
|
const {
|
|
@@ -18945,7 +18963,7 @@ function uD({
|
|
|
18945
18963
|
};
|
|
18946
18964
|
}
|
|
18947
18965
|
}
|
|
18948
|
-
}), [r]), u = Cd({},
|
|
18966
|
+
}), [r]), u = Cd({}, fD, c, {
|
|
18949
18967
|
series: {
|
|
18950
18968
|
data: s
|
|
18951
18969
|
}
|
|
@@ -18959,7 +18977,7 @@ function uD({
|
|
|
18959
18977
|
}
|
|
18960
18978
|
});
|
|
18961
18979
|
}
|
|
18962
|
-
function
|
|
18980
|
+
function gD({
|
|
18963
18981
|
context: e
|
|
18964
18982
|
}) {
|
|
18965
18983
|
const {
|
|
@@ -19025,7 +19043,7 @@ function dD({
|
|
|
19025
19043
|
})
|
|
19026
19044
|
});
|
|
19027
19045
|
}
|
|
19028
|
-
class
|
|
19046
|
+
class hD extends tn {
|
|
19029
19047
|
constructor() {
|
|
19030
19048
|
super(...arguments);
|
|
19031
19049
|
he(this, "VERSION", 1);
|
|
@@ -19037,12 +19055,12 @@ class fD extends tn {
|
|
|
19037
19055
|
}));
|
|
19038
19056
|
}
|
|
19039
19057
|
}
|
|
19040
|
-
const
|
|
19058
|
+
const mD = {
|
|
19041
19059
|
displayName: "Pie Chart",
|
|
19042
|
-
migrator: new
|
|
19060
|
+
migrator: new hD(),
|
|
19043
19061
|
name: "pie",
|
|
19044
|
-
viewRender:
|
|
19045
|
-
configRender:
|
|
19062
|
+
viewRender: pD,
|
|
19063
|
+
configRender: gD,
|
|
19046
19064
|
createConfig: () => Ms
|
|
19047
19065
|
};
|
|
19048
19066
|
function Xg(e) {
|
|
@@ -19054,13 +19072,13 @@ function Xg(e) {
|
|
|
19054
19072
|
}
|
|
19055
19073
|
} : (t) => t;
|
|
19056
19074
|
}
|
|
19057
|
-
function
|
|
19075
|
+
function vD(e) {
|
|
19058
19076
|
return {
|
|
19059
19077
|
show: !0,
|
|
19060
19078
|
formatter: ({ dimensionIndex: t, value: n }) => Xg(e.dimensions[t].formatter)(n)
|
|
19061
19079
|
};
|
|
19062
19080
|
}
|
|
19063
|
-
function
|
|
19081
|
+
function yD(e) {
|
|
19064
19082
|
return ({ name: t, marker: n, value: r }) => {
|
|
19065
19083
|
if (r.length === 0)
|
|
19066
19084
|
return "";
|
|
@@ -19099,7 +19117,7 @@ function hD(e) {
|
|
|
19099
19117
|
`;
|
|
19100
19118
|
};
|
|
19101
19119
|
}
|
|
19102
|
-
const
|
|
19120
|
+
const bD = {
|
|
19103
19121
|
legend: {
|
|
19104
19122
|
show: !0,
|
|
19105
19123
|
bottom: 0,
|
|
@@ -19109,7 +19127,7 @@ const mD = {
|
|
|
19109
19127
|
trigger: "item"
|
|
19110
19128
|
}
|
|
19111
19129
|
};
|
|
19112
|
-
function
|
|
19130
|
+
function SD(e, t) {
|
|
19113
19131
|
const n = [
|
|
19114
19132
|
"#66B4DB",
|
|
19115
19133
|
"#39BFA2",
|
|
@@ -19146,7 +19164,7 @@ function vD(e, t) {
|
|
|
19146
19164
|
},
|
|
19147
19165
|
tooltip: {
|
|
19148
19166
|
confine: !0,
|
|
19149
|
-
formatter:
|
|
19167
|
+
formatter: yD(e)
|
|
19150
19168
|
},
|
|
19151
19169
|
legend: {
|
|
19152
19170
|
show: !0,
|
|
@@ -19162,18 +19180,18 @@ function vD(e, t) {
|
|
|
19162
19180
|
areaStyle: {
|
|
19163
19181
|
opacity: 0.4
|
|
19164
19182
|
},
|
|
19165
|
-
label:
|
|
19183
|
+
label: vD(e)
|
|
19166
19184
|
},
|
|
19167
19185
|
color: n
|
|
19168
19186
|
};
|
|
19169
|
-
return Le.merge({},
|
|
19187
|
+
return Le.merge({}, bD, i);
|
|
19170
19188
|
}
|
|
19171
19189
|
const ks = {
|
|
19172
19190
|
series_name_key: "name",
|
|
19173
19191
|
dimensions: []
|
|
19174
19192
|
};
|
|
19175
19193
|
$t.use([Gm, Lr, Vr, Fr, Jn]);
|
|
19176
|
-
function
|
|
19194
|
+
function wD({
|
|
19177
19195
|
context: e
|
|
19178
19196
|
}) {
|
|
19179
19197
|
const {
|
|
@@ -19181,7 +19199,7 @@ function yD({
|
|
|
19181
19199
|
} = rt(e.instanceData, "config"), {
|
|
19182
19200
|
width: n,
|
|
19183
19201
|
height: r
|
|
19184
|
-
} = e.viewport, o = e.data, i = de(() =>
|
|
19202
|
+
} = e.viewport, o = e.data, i = de(() => SD(nn({}, t, ks), o), [t, o]);
|
|
19185
19203
|
return !n || !r || !t || Tl(t == null ? void 0 : t.dimensions) ? null : /* @__PURE__ */ l(Ie, {
|
|
19186
19204
|
children: /* @__PURE__ */ l(Zn, {
|
|
19187
19205
|
echarts: $t,
|
|
@@ -19193,7 +19211,7 @@ function yD({
|
|
|
19193
19211
|
})
|
|
19194
19212
|
});
|
|
19195
19213
|
}
|
|
19196
|
-
function
|
|
19214
|
+
function CD({
|
|
19197
19215
|
control: e,
|
|
19198
19216
|
index: t,
|
|
19199
19217
|
remove: n,
|
|
@@ -19283,7 +19301,7 @@ function bD({
|
|
|
19283
19301
|
})]
|
|
19284
19302
|
}, t);
|
|
19285
19303
|
}
|
|
19286
|
-
function
|
|
19304
|
+
function xD({
|
|
19287
19305
|
control: e,
|
|
19288
19306
|
watch: t,
|
|
19289
19307
|
data: n
|
|
@@ -19305,7 +19323,7 @@ function SD({
|
|
|
19305
19323
|
formatter: Cr
|
|
19306
19324
|
});
|
|
19307
19325
|
return /* @__PURE__ */ v(B, {
|
|
19308
|
-
children: [s.map((u, d) => /* @__PURE__ */ l(
|
|
19326
|
+
children: [s.map((u, d) => /* @__PURE__ */ l(CD, {
|
|
19309
19327
|
data: n,
|
|
19310
19328
|
control: e,
|
|
19311
19329
|
index: d,
|
|
@@ -19320,7 +19338,7 @@ function SD({
|
|
|
19320
19338
|
})]
|
|
19321
19339
|
});
|
|
19322
19340
|
}
|
|
19323
|
-
function
|
|
19341
|
+
function _D(e) {
|
|
19324
19342
|
function t({
|
|
19325
19343
|
name: n = "",
|
|
19326
19344
|
data_key: r = "",
|
|
@@ -19336,7 +19354,7 @@ function wD(e) {
|
|
|
19336
19354
|
}
|
|
19337
19355
|
return e.map(t);
|
|
19338
19356
|
}
|
|
19339
|
-
function
|
|
19357
|
+
function ED({
|
|
19340
19358
|
context: e
|
|
19341
19359
|
}) {
|
|
19342
19360
|
const t = e.data, {
|
|
@@ -19346,7 +19364,7 @@ function CD({
|
|
|
19346
19364
|
dimensions: i,
|
|
19347
19365
|
series_name_key: a
|
|
19348
19366
|
} = o, s = de(() => ({
|
|
19349
|
-
dimensions:
|
|
19367
|
+
dimensions: _D(i != null ? i : []),
|
|
19350
19368
|
series_name_key: a
|
|
19351
19369
|
}), [i, a]);
|
|
19352
19370
|
Me(() => {
|
|
@@ -19407,7 +19425,7 @@ function CD({
|
|
|
19407
19425
|
...m
|
|
19408
19426
|
})
|
|
19409
19427
|
})
|
|
19410
|
-
}), /* @__PURE__ */ l(
|
|
19428
|
+
}), /* @__PURE__ */ l(xD, {
|
|
19411
19429
|
control: c,
|
|
19412
19430
|
watch: d,
|
|
19413
19431
|
data: t
|
|
@@ -19415,7 +19433,7 @@ function CD({
|
|
|
19415
19433
|
})
|
|
19416
19434
|
});
|
|
19417
19435
|
}
|
|
19418
|
-
class
|
|
19436
|
+
class OD extends tn {
|
|
19419
19437
|
constructor() {
|
|
19420
19438
|
super(...arguments);
|
|
19421
19439
|
he(this, "VERSION", 1);
|
|
@@ -19427,15 +19445,15 @@ class xD extends tn {
|
|
|
19427
19445
|
}));
|
|
19428
19446
|
}
|
|
19429
19447
|
}
|
|
19430
|
-
const
|
|
19448
|
+
const RD = {
|
|
19431
19449
|
displayName: "Radar Chart",
|
|
19432
|
-
migrator: new
|
|
19450
|
+
migrator: new OD(),
|
|
19433
19451
|
name: "radar",
|
|
19434
|
-
viewRender:
|
|
19435
|
-
configRender:
|
|
19452
|
+
viewRender: wD,
|
|
19453
|
+
configRender: ED,
|
|
19436
19454
|
createConfig: () => ks
|
|
19437
19455
|
};
|
|
19438
|
-
function
|
|
19456
|
+
function TD(e, t) {
|
|
19439
19457
|
switch (e.config.method) {
|
|
19440
19458
|
case "linear":
|
|
19441
19459
|
return [...cr.regressionLinear()(t)];
|
|
@@ -19449,11 +19467,11 @@ function ED(e, t) {
|
|
|
19449
19467
|
return [];
|
|
19450
19468
|
}
|
|
19451
19469
|
}
|
|
19452
|
-
function
|
|
19470
|
+
function MD({ regression: e }, t) {
|
|
19453
19471
|
const n = [], r = [];
|
|
19454
19472
|
if (t.length === 0)
|
|
19455
19473
|
return { regressionSeries: n, regressionXAxes: r };
|
|
19456
|
-
const { transform: o, plot: i, name: a } = e, s =
|
|
19474
|
+
const { transform: o, plot: i, name: a } = e, s = TD(o, t);
|
|
19457
19475
|
return n.push({
|
|
19458
19476
|
...i,
|
|
19459
19477
|
name: a,
|
|
@@ -19465,7 +19483,7 @@ function OD({ regression: e }, t) {
|
|
|
19465
19483
|
}
|
|
19466
19484
|
}), { regressionSeries: n, regressionXAxes: r };
|
|
19467
19485
|
}
|
|
19468
|
-
const
|
|
19486
|
+
const kD = {
|
|
19469
19487
|
tooltip: {
|
|
19470
19488
|
trigger: "axis"
|
|
19471
19489
|
},
|
|
@@ -19487,12 +19505,12 @@ const RD = {
|
|
|
19487
19505
|
}
|
|
19488
19506
|
]
|
|
19489
19507
|
};
|
|
19490
|
-
function
|
|
19508
|
+
function DD(e, t) {
|
|
19491
19509
|
var i, a;
|
|
19492
19510
|
const n = Le.uniqBy(
|
|
19493
19511
|
t.map((s) => [s[e.x_axis.data_key], s[e.regression.y_axis_data_key]]),
|
|
19494
19512
|
0
|
|
19495
|
-
), { regressionSeries: r } =
|
|
19513
|
+
), { regressionSeries: r } = MD(e, n), o = {
|
|
19496
19514
|
xAxis: {
|
|
19497
19515
|
type: "category",
|
|
19498
19516
|
name: (i = e.x_axis.name) != null ? i : "",
|
|
@@ -19518,12 +19536,12 @@ function TD(e, t) {
|
|
|
19518
19536
|
...r
|
|
19519
19537
|
]
|
|
19520
19538
|
};
|
|
19521
|
-
return nn({}, o,
|
|
19539
|
+
return nn({}, o, kD);
|
|
19522
19540
|
}
|
|
19523
19541
|
function yi(e, t, n) {
|
|
19524
19542
|
return 1 - (1 - e) * (t - 1) / (t - n - 1);
|
|
19525
19543
|
}
|
|
19526
|
-
function
|
|
19544
|
+
function PD(e, t) {
|
|
19527
19545
|
if (!t)
|
|
19528
19546
|
return {
|
|
19529
19547
|
expression: "",
|
|
@@ -19705,7 +19723,7 @@ const Ds = {
|
|
|
19705
19723
|
};
|
|
19706
19724
|
$t.use([ei, Al, Lr, Vr, Fr, Jn]);
|
|
19707
19725
|
$t.registerTransform(Nl.regression);
|
|
19708
|
-
function
|
|
19726
|
+
function ID({
|
|
19709
19727
|
context: e
|
|
19710
19728
|
}) {
|
|
19711
19729
|
const {
|
|
@@ -19720,11 +19738,11 @@ function kD({
|
|
|
19720
19738
|
...g,
|
|
19721
19739
|
[f]: Number(g[f])
|
|
19722
19740
|
}) : d;
|
|
19723
|
-
}, [e.data, t == null ? void 0 : t.regression.y_axis_data_key]), i = de(() =>
|
|
19741
|
+
}, [e.data, t == null ? void 0 : t.regression.y_axis_data_key]), i = de(() => DD(nn({}, t, Ds), o), [t, o]), {
|
|
19724
19742
|
expression: a,
|
|
19725
19743
|
rSquared: s,
|
|
19726
19744
|
adjustedRSquared: c
|
|
19727
|
-
} = de(() =>
|
|
19745
|
+
} = de(() => PD(o, t), [t, o]);
|
|
19728
19746
|
if (!n || !r || !t)
|
|
19729
19747
|
return null;
|
|
19730
19748
|
let u = r;
|
|
@@ -19791,7 +19809,7 @@ function kD({
|
|
|
19791
19809
|
})]
|
|
19792
19810
|
});
|
|
19793
19811
|
}
|
|
19794
|
-
const
|
|
19812
|
+
const $D = [{
|
|
19795
19813
|
label: "Linear",
|
|
19796
19814
|
value: "linear"
|
|
19797
19815
|
}, {
|
|
@@ -19804,7 +19822,7 @@ const DD = [{
|
|
|
19804
19822
|
label: "Polynomial",
|
|
19805
19823
|
value: "polynomial"
|
|
19806
19824
|
}];
|
|
19807
|
-
function
|
|
19825
|
+
function AD({
|
|
19808
19826
|
control: e,
|
|
19809
19827
|
watch: t,
|
|
19810
19828
|
data: n
|
|
@@ -19852,7 +19870,7 @@ function PD({
|
|
|
19852
19870
|
field: o
|
|
19853
19871
|
}) => /* @__PURE__ */ l(Ee, {
|
|
19854
19872
|
label: "Method",
|
|
19855
|
-
data:
|
|
19873
|
+
data: $D,
|
|
19856
19874
|
sx: {
|
|
19857
19875
|
flex: 1
|
|
19858
19876
|
},
|
|
@@ -19888,7 +19906,7 @@ function PD({
|
|
|
19888
19906
|
})]
|
|
19889
19907
|
});
|
|
19890
19908
|
}
|
|
19891
|
-
function
|
|
19909
|
+
function ND({
|
|
19892
19910
|
context: e
|
|
19893
19911
|
}) {
|
|
19894
19912
|
const {
|
|
@@ -19993,7 +20011,7 @@ function ID({
|
|
|
19993
20011
|
children: [/* @__PURE__ */ l(_r.Control, {
|
|
19994
20012
|
children: "Regression Line"
|
|
19995
20013
|
}), /* @__PURE__ */ l(_r.Panel, {
|
|
19996
|
-
children: /* @__PURE__ */ l(
|
|
20014
|
+
children: /* @__PURE__ */ l(AD, {
|
|
19997
20015
|
control: i,
|
|
19998
20016
|
watch: s,
|
|
19999
20017
|
data: r
|
|
@@ -20004,7 +20022,7 @@ function ID({
|
|
|
20004
20022
|
})
|
|
20005
20023
|
});
|
|
20006
20024
|
}
|
|
20007
|
-
class
|
|
20025
|
+
class LD extends tn {
|
|
20008
20026
|
constructor() {
|
|
20009
20027
|
super(...arguments);
|
|
20010
20028
|
he(this, "VERSION", 1);
|
|
@@ -20016,17 +20034,17 @@ class $D extends tn {
|
|
|
20016
20034
|
}));
|
|
20017
20035
|
}
|
|
20018
20036
|
}
|
|
20019
|
-
const
|
|
20037
|
+
const VD = {
|
|
20020
20038
|
displayName: "Regression Chart",
|
|
20021
|
-
migrator: new
|
|
20039
|
+
migrator: new LD(),
|
|
20022
20040
|
name: "regressionChart",
|
|
20023
|
-
viewRender:
|
|
20024
|
-
configRender:
|
|
20041
|
+
viewRender: ID,
|
|
20042
|
+
configRender: ND,
|
|
20025
20043
|
createConfig: () => Ds
|
|
20026
20044
|
}, Ps = {
|
|
20027
20045
|
content: ""
|
|
20028
20046
|
};
|
|
20029
|
-
function
|
|
20047
|
+
function FD({
|
|
20030
20048
|
context: e
|
|
20031
20049
|
}) {
|
|
20032
20050
|
const {
|
|
@@ -20088,7 +20106,7 @@ const Qg = Nn(({
|
|
|
20088
20106
|
}), /* @__PURE__ */ l(it.Content, {})]
|
|
20089
20107
|
});
|
|
20090
20108
|
});
|
|
20091
|
-
function
|
|
20109
|
+
function zD({
|
|
20092
20110
|
context: e
|
|
20093
20111
|
}) {
|
|
20094
20112
|
const {
|
|
@@ -20157,7 +20175,7 @@ function LD({
|
|
|
20157
20175
|
})
|
|
20158
20176
|
});
|
|
20159
20177
|
}
|
|
20160
|
-
class
|
|
20178
|
+
class jD extends tn {
|
|
20161
20179
|
constructor() {
|
|
20162
20180
|
super(...arguments);
|
|
20163
20181
|
he(this, "VERSION", 1);
|
|
@@ -20172,18 +20190,18 @@ class VD extends tn {
|
|
|
20172
20190
|
}));
|
|
20173
20191
|
}
|
|
20174
20192
|
}
|
|
20175
|
-
const
|
|
20193
|
+
const HD = {
|
|
20176
20194
|
displayName: "RichText",
|
|
20177
|
-
migrator: new
|
|
20195
|
+
migrator: new jD(),
|
|
20178
20196
|
name: "richText",
|
|
20179
|
-
viewRender:
|
|
20180
|
-
configRender:
|
|
20197
|
+
viewRender: FD,
|
|
20198
|
+
configRender: zD,
|
|
20181
20199
|
createConfig: () => Ps
|
|
20182
20200
|
}, Is = {
|
|
20183
20201
|
align: "center",
|
|
20184
20202
|
template: "The variable ${value} is defined in Variables section"
|
|
20185
20203
|
};
|
|
20186
|
-
function
|
|
20204
|
+
function KD(e) {
|
|
20187
20205
|
if ("variables" in e)
|
|
20188
20206
|
return e;
|
|
20189
20207
|
const {
|
|
@@ -20217,10 +20235,10 @@ function zD(e) {
|
|
|
20217
20235
|
]
|
|
20218
20236
|
};
|
|
20219
20237
|
}
|
|
20220
|
-
function
|
|
20238
|
+
function BD(e) {
|
|
20221
20239
|
return Dr(e, ["variables"]);
|
|
20222
20240
|
}
|
|
20223
|
-
function
|
|
20241
|
+
function GD(e) {
|
|
20224
20242
|
const t = Xo(e), n = dt(t, "color.valueRange");
|
|
20225
20243
|
return n !== void 0 && Rl(
|
|
20226
20244
|
t,
|
|
@@ -20228,21 +20246,21 @@ function HD(e) {
|
|
|
20228
20246
|
n.map((r) => Number(r))
|
|
20229
20247
|
), t;
|
|
20230
20248
|
}
|
|
20231
|
-
class
|
|
20249
|
+
class WD extends tn {
|
|
20232
20250
|
constructor() {
|
|
20233
20251
|
super(...arguments);
|
|
20234
20252
|
he(this, "VERSION", 2);
|
|
20235
20253
|
}
|
|
20236
20254
|
configVersions() {
|
|
20237
|
-
this.version(1, (n) => ({ config:
|
|
20255
|
+
this.version(1, (n) => ({ config: KD(n) })), this.version(2, (n, { panelModel: r }) => {
|
|
20238
20256
|
const { config: o } = n;
|
|
20239
20257
|
return (o.variables || []).forEach((a) => {
|
|
20240
|
-
r.variables.find((s) => s.name === a.name) || r.addVariable(
|
|
20241
|
-
}), { config:
|
|
20258
|
+
r.variables.find((s) => s.name === a.name) || r.addVariable(GD(a));
|
|
20259
|
+
}), { config: BD(o) };
|
|
20242
20260
|
});
|
|
20243
20261
|
}
|
|
20244
20262
|
}
|
|
20245
|
-
const
|
|
20263
|
+
const qD = Q(({
|
|
20246
20264
|
context: e
|
|
20247
20265
|
}) => {
|
|
20248
20266
|
const t = lt(), {
|
|
@@ -20269,7 +20287,7 @@ const BD = Q(({
|
|
|
20269
20287
|
children: c
|
|
20270
20288
|
}, u))
|
|
20271
20289
|
});
|
|
20272
|
-
}),
|
|
20290
|
+
}), UD = [{
|
|
20273
20291
|
label: "Left",
|
|
20274
20292
|
value: "left"
|
|
20275
20293
|
}, {
|
|
@@ -20279,7 +20297,7 @@ const BD = Q(({
|
|
|
20279
20297
|
label: "Right",
|
|
20280
20298
|
value: "right"
|
|
20281
20299
|
}];
|
|
20282
|
-
function
|
|
20300
|
+
function YD({
|
|
20283
20301
|
context: e
|
|
20284
20302
|
}) {
|
|
20285
20303
|
const {
|
|
@@ -20353,14 +20371,14 @@ function WD({
|
|
|
20353
20371
|
field: f
|
|
20354
20372
|
}) => /* @__PURE__ */ l(Ee, {
|
|
20355
20373
|
label: "Horizontal Alignment",
|
|
20356
|
-
data:
|
|
20374
|
+
data: UD,
|
|
20357
20375
|
...f
|
|
20358
20376
|
})
|
|
20359
20377
|
})]
|
|
20360
20378
|
})
|
|
20361
20379
|
});
|
|
20362
20380
|
}
|
|
20363
|
-
const
|
|
20381
|
+
const XD = {
|
|
20364
20382
|
createConfig() {
|
|
20365
20383
|
return {
|
|
20366
20384
|
version: 1,
|
|
@@ -20368,16 +20386,16 @@ const qD = {
|
|
|
20368
20386
|
};
|
|
20369
20387
|
},
|
|
20370
20388
|
displayName: "Stats",
|
|
20371
|
-
migrator: new
|
|
20389
|
+
migrator: new WD(),
|
|
20372
20390
|
name: "stats",
|
|
20373
|
-
viewRender:
|
|
20374
|
-
configRender:
|
|
20391
|
+
viewRender: qD,
|
|
20392
|
+
configRender: YD
|
|
20375
20393
|
}, $s = {
|
|
20376
20394
|
label_field: "",
|
|
20377
20395
|
value_field: ""
|
|
20378
20396
|
};
|
|
20379
20397
|
$t.use([Wm, Jn]);
|
|
20380
|
-
const
|
|
20398
|
+
const QD = {
|
|
20381
20399
|
tooltip: {
|
|
20382
20400
|
show: !0
|
|
20383
20401
|
},
|
|
@@ -20389,7 +20407,7 @@ const UD = {
|
|
|
20389
20407
|
}
|
|
20390
20408
|
}
|
|
20391
20409
|
};
|
|
20392
|
-
function
|
|
20410
|
+
function JD({
|
|
20393
20411
|
context: e
|
|
20394
20412
|
}) {
|
|
20395
20413
|
const {
|
|
@@ -20415,7 +20433,7 @@ function YD({
|
|
|
20415
20433
|
}) => p / c < 0.2 ? " " : f
|
|
20416
20434
|
}
|
|
20417
20435
|
}
|
|
20418
|
-
}), [c]), d = Cd({},
|
|
20436
|
+
}), [c]), d = Cd({}, QD, u, {
|
|
20419
20437
|
series: {
|
|
20420
20438
|
data: s
|
|
20421
20439
|
}
|
|
@@ -20429,7 +20447,7 @@ function YD({
|
|
|
20429
20447
|
}
|
|
20430
20448
|
});
|
|
20431
20449
|
}
|
|
20432
|
-
function
|
|
20450
|
+
function ZD({
|
|
20433
20451
|
context: e
|
|
20434
20452
|
}) {
|
|
20435
20453
|
const {
|
|
@@ -20495,7 +20513,7 @@ function XD({
|
|
|
20495
20513
|
})
|
|
20496
20514
|
});
|
|
20497
20515
|
}
|
|
20498
|
-
class
|
|
20516
|
+
class eP extends tn {
|
|
20499
20517
|
constructor() {
|
|
20500
20518
|
super(...arguments);
|
|
20501
20519
|
he(this, "VERSION", 1);
|
|
@@ -20507,12 +20525,12 @@ class QD extends tn {
|
|
|
20507
20525
|
}));
|
|
20508
20526
|
}
|
|
20509
20527
|
}
|
|
20510
|
-
const
|
|
20528
|
+
const tP = {
|
|
20511
20529
|
displayName: "Sunburst",
|
|
20512
|
-
migrator: new
|
|
20530
|
+
migrator: new eP(),
|
|
20513
20531
|
name: "sunburst",
|
|
20514
|
-
viewRender:
|
|
20515
|
-
configRender:
|
|
20532
|
+
viewRender: JD,
|
|
20533
|
+
configRender: ZD,
|
|
20516
20534
|
createConfig: () => $s
|
|
20517
20535
|
};
|
|
20518
20536
|
var Pn = /* @__PURE__ */ ((e) => (e.string = "string", e.number = "number", e.eloc = "eloc", e.percentage = "percentage", e.custom = "custom", e))(Pn || {});
|
|
@@ -20556,7 +20574,7 @@ function Sn(e, t) {
|
|
|
20556
20574
|
function Hi(e) {
|
|
20557
20575
|
return e instanceof Function;
|
|
20558
20576
|
}
|
|
20559
|
-
function
|
|
20577
|
+
function nP(e, t) {
|
|
20560
20578
|
const n = [], r = (o) => {
|
|
20561
20579
|
o.forEach((i) => {
|
|
20562
20580
|
n.push(i);
|
|
@@ -20590,7 +20608,7 @@ function Ge(e, t, n) {
|
|
|
20590
20608
|
return o;
|
|
20591
20609
|
};
|
|
20592
20610
|
}
|
|
20593
|
-
function
|
|
20611
|
+
function rP(e, t, n, r) {
|
|
20594
20612
|
var o, i;
|
|
20595
20613
|
const s = {
|
|
20596
20614
|
...e._getDefaultColumnDef(),
|
|
@@ -20667,7 +20685,7 @@ function td(e, t, n) {
|
|
|
20667
20685
|
Object.assign(i, a.createHeader == null ? void 0 : a.createHeader(i, e));
|
|
20668
20686
|
}), i;
|
|
20669
20687
|
}
|
|
20670
|
-
const
|
|
20688
|
+
const oP = {
|
|
20671
20689
|
createTable: (e) => ({
|
|
20672
20690
|
getHeaderGroups: Ge(() => [e.getAllColumns(), e.getVisibleLeafColumns(), e.getState().columnPinning.left, e.getState().columnPinning.right], (t, n, r, o) => {
|
|
20673
20691
|
var i, a;
|
|
@@ -20874,7 +20892,7 @@ const Si = {
|
|
|
20874
20892
|
deltaPercentage: null,
|
|
20875
20893
|
isResizingColumn: !1,
|
|
20876
20894
|
columnSizingStart: []
|
|
20877
|
-
}),
|
|
20895
|
+
}), iP = {
|
|
20878
20896
|
getDefaultColumnDef: () => Si,
|
|
20879
20897
|
getInitialState: (e) => ({
|
|
20880
20898
|
columnSizing: {},
|
|
@@ -20974,7 +20992,7 @@ const Si = {
|
|
|
20974
20992
|
upHandler: (g) => {
|
|
20975
20993
|
document.removeEventListener("mousemove", f.moveHandler), document.removeEventListener("mouseup", f.upHandler), d(g.clientX);
|
|
20976
20994
|
}
|
|
20977
|
-
}, p =
|
|
20995
|
+
}, p = aP() ? {
|
|
20978
20996
|
passive: !1
|
|
20979
20997
|
} : !1;
|
|
20980
20998
|
Da(o) || (document.addEventListener("mousemove", f.moveHandler, p), document.addEventListener("mouseup", f.upHandler, p)), t.setColumnSizingInfo((g) => ({
|
|
@@ -21019,7 +21037,7 @@ const Si = {
|
|
|
21019
21037
|
})
|
|
21020
21038
|
};
|
|
21021
21039
|
let wi = null;
|
|
21022
|
-
function
|
|
21040
|
+
function aP() {
|
|
21023
21041
|
if (typeof wi == "boolean")
|
|
21024
21042
|
return wi;
|
|
21025
21043
|
let e = !1;
|
|
@@ -21039,7 +21057,7 @@ function rP() {
|
|
|
21039
21057
|
function Da(e) {
|
|
21040
21058
|
return e.type === "touchstart";
|
|
21041
21059
|
}
|
|
21042
|
-
const
|
|
21060
|
+
const lP = {
|
|
21043
21061
|
getInitialState: (e) => ({
|
|
21044
21062
|
expanded: {},
|
|
21045
21063
|
...e
|
|
@@ -21200,7 +21218,7 @@ const Hn = {
|
|
|
21200
21218
|
function En(e) {
|
|
21201
21219
|
return e == null || e === "";
|
|
21202
21220
|
}
|
|
21203
|
-
const
|
|
21221
|
+
const sP = {
|
|
21204
21222
|
getDefaultColumnDef: () => ({
|
|
21205
21223
|
filterFn: "auto"
|
|
21206
21224
|
}),
|
|
@@ -21328,35 +21346,35 @@ const iP = {
|
|
|
21328
21346
|
function nd(e, t, n) {
|
|
21329
21347
|
return (e && e.autoRemove ? e.autoRemove(t, n) : !1) || typeof t > "u" || typeof t == "string" && !t;
|
|
21330
21348
|
}
|
|
21331
|
-
const
|
|
21349
|
+
const cP = (e, t, n) => n.reduce((r, o) => {
|
|
21332
21350
|
const i = o.getValue(e);
|
|
21333
21351
|
return r + (typeof i == "number" ? i : 0);
|
|
21334
|
-
}, 0),
|
|
21352
|
+
}, 0), uP = (e, t, n) => {
|
|
21335
21353
|
let r;
|
|
21336
21354
|
return n.forEach((o) => {
|
|
21337
21355
|
const i = o.getValue(e);
|
|
21338
21356
|
i != null && (r > i || r === void 0 && i >= i) && (r = i);
|
|
21339
21357
|
}), r;
|
|
21340
|
-
},
|
|
21358
|
+
}, dP = (e, t, n) => {
|
|
21341
21359
|
let r;
|
|
21342
21360
|
return n.forEach((o) => {
|
|
21343
21361
|
const i = o.getValue(e);
|
|
21344
21362
|
i != null && (r < i || r === void 0 && i >= i) && (r = i);
|
|
21345
21363
|
}), r;
|
|
21346
|
-
},
|
|
21364
|
+
}, fP = (e, t, n) => {
|
|
21347
21365
|
let r, o;
|
|
21348
21366
|
return n.forEach((i) => {
|
|
21349
21367
|
const a = i.getValue(e);
|
|
21350
21368
|
a != null && (r === void 0 ? a >= a && (r = o = a) : (r > a && (r = a), o < a && (o = a)));
|
|
21351
21369
|
}), [r, o];
|
|
21352
|
-
},
|
|
21370
|
+
}, pP = (e, t) => {
|
|
21353
21371
|
let n = 0, r = 0;
|
|
21354
21372
|
if (t.forEach((o) => {
|
|
21355
21373
|
let i = o.getValue(e);
|
|
21356
21374
|
i != null && (i = +i) >= i && (++n, r += i);
|
|
21357
21375
|
}), n)
|
|
21358
21376
|
return r / n;
|
|
21359
|
-
},
|
|
21377
|
+
}, gP = (e, t) => {
|
|
21360
21378
|
if (!t.length)
|
|
21361
21379
|
return;
|
|
21362
21380
|
let n = 0, r = 0;
|
|
@@ -21364,17 +21382,17 @@ const aP = (e, t, n) => n.reduce((r, o) => {
|
|
|
21364
21382
|
let i = o.getValue(e);
|
|
21365
21383
|
typeof i == "number" && (n = Math.min(n, i), r = Math.max(r, i));
|
|
21366
21384
|
}), (n + r) / 2;
|
|
21367
|
-
},
|
|
21368
|
-
sum:
|
|
21369
|
-
min:
|
|
21370
|
-
max:
|
|
21371
|
-
extent:
|
|
21372
|
-
mean:
|
|
21373
|
-
median:
|
|
21374
|
-
unique:
|
|
21375
|
-
uniqueCount:
|
|
21376
|
-
count:
|
|
21377
|
-
},
|
|
21385
|
+
}, hP = (e, t) => Array.from(new Set(t.map((n) => n.getValue(e))).values()), mP = (e, t) => new Set(t.map((n) => n.getValue(e))).size, vP = (e, t) => t.length, Pa = {
|
|
21386
|
+
sum: cP,
|
|
21387
|
+
min: uP,
|
|
21388
|
+
max: dP,
|
|
21389
|
+
extent: fP,
|
|
21390
|
+
mean: pP,
|
|
21391
|
+
median: gP,
|
|
21392
|
+
unique: hP,
|
|
21393
|
+
uniqueCount: mP,
|
|
21394
|
+
count: vP
|
|
21395
|
+
}, yP = {
|
|
21378
21396
|
getDefaultColumnDef: () => ({
|
|
21379
21397
|
aggregatedCell: (e) => {
|
|
21380
21398
|
var t, n;
|
|
@@ -21448,13 +21466,13 @@ const aP = (e, t, n) => n.reduce((r, o) => {
|
|
|
21448
21466
|
}
|
|
21449
21467
|
})
|
|
21450
21468
|
};
|
|
21451
|
-
function
|
|
21469
|
+
function bP(e, t, n) {
|
|
21452
21470
|
if (!(t != null && t.length) || !n)
|
|
21453
21471
|
return e;
|
|
21454
21472
|
const r = e.filter((i) => !t.includes(i.id));
|
|
21455
21473
|
return n === "remove" ? r : [...t.map((i) => e.find((a) => a.id === i)).filter(Boolean), ...r];
|
|
21456
21474
|
}
|
|
21457
|
-
const
|
|
21475
|
+
const SP = {
|
|
21458
21476
|
getInitialState: (e) => ({
|
|
21459
21477
|
columnOrder: [],
|
|
21460
21478
|
...e
|
|
@@ -21480,7 +21498,7 @@ const vP = {
|
|
|
21480
21498
|
}
|
|
21481
21499
|
i = [...i, ...s];
|
|
21482
21500
|
}
|
|
21483
|
-
return
|
|
21501
|
+
return bP(i, n, r);
|
|
21484
21502
|
}, {
|
|
21485
21503
|
key: process.env.NODE_ENV === "development" && "getOrderColumnsFn"
|
|
21486
21504
|
})
|
|
@@ -21488,7 +21506,7 @@ const vP = {
|
|
|
21488
21506
|
}, hl = 0, ml = 10, Ia = () => ({
|
|
21489
21507
|
pageIndex: hl,
|
|
21490
21508
|
pageSize: ml
|
|
21491
|
-
}),
|
|
21509
|
+
}), wP = {
|
|
21492
21510
|
getInitialState: (e) => ({
|
|
21493
21511
|
...e,
|
|
21494
21512
|
pagination: {
|
|
@@ -21592,7 +21610,7 @@ const vP = {
|
|
|
21592
21610
|
}, $a = () => ({
|
|
21593
21611
|
left: [],
|
|
21594
21612
|
right: []
|
|
21595
|
-
}),
|
|
21613
|
+
}), CP = {
|
|
21596
21614
|
getInitialState: (e) => ({
|
|
21597
21615
|
columnPinning: $a(),
|
|
21598
21616
|
...e
|
|
@@ -21714,7 +21732,7 @@ const vP = {
|
|
|
21714
21732
|
}
|
|
21715
21733
|
})
|
|
21716
21734
|
})
|
|
21717
|
-
},
|
|
21735
|
+
}, xP = {
|
|
21718
21736
|
getInitialState: (e) => ({
|
|
21719
21737
|
rowSelection: {},
|
|
21720
21738
|
...e
|
|
@@ -21902,10 +21920,10 @@ function rd(e, t, n) {
|
|
|
21902
21920
|
}
|
|
21903
21921
|
return !1;
|
|
21904
21922
|
}
|
|
21905
|
-
const yl = /([0-9]+)/gm,
|
|
21923
|
+
const yl = /([0-9]+)/gm, _P = (e, t, n) => lh(br(e.getValue(n)).toLowerCase(), br(t.getValue(n)).toLowerCase()), EP = (e, t, n) => lh(br(e.getValue(n)), br(t.getValue(n))), OP = (e, t, n) => Vs(br(e.getValue(n)).toLowerCase(), br(t.getValue(n)).toLowerCase()), RP = (e, t, n) => Vs(br(e.getValue(n)), br(t.getValue(n))), TP = (e, t, n) => {
|
|
21906
21924
|
const r = e.getValue(n), o = t.getValue(n);
|
|
21907
21925
|
return r > o ? 1 : r < o ? -1 : 0;
|
|
21908
|
-
},
|
|
21926
|
+
}, MP = (e, t, n) => Vs(e.getValue(n), t.getValue(n));
|
|
21909
21927
|
function Vs(e, t) {
|
|
21910
21928
|
return e === t ? 0 : e > t ? 1 : -1;
|
|
21911
21929
|
}
|
|
@@ -21933,13 +21951,13 @@ function lh(e, t) {
|
|
|
21933
21951
|
return n.length - r.length;
|
|
21934
21952
|
}
|
|
21935
21953
|
const xo = {
|
|
21936
|
-
alphanumeric:
|
|
21937
|
-
alphanumericCaseSensitive:
|
|
21938
|
-
text:
|
|
21939
|
-
textCaseSensitive:
|
|
21940
|
-
datetime:
|
|
21941
|
-
basic:
|
|
21942
|
-
},
|
|
21954
|
+
alphanumeric: _P,
|
|
21955
|
+
alphanumericCaseSensitive: EP,
|
|
21956
|
+
text: OP,
|
|
21957
|
+
textCaseSensitive: RP,
|
|
21958
|
+
datetime: TP,
|
|
21959
|
+
basic: MP
|
|
21960
|
+
}, kP = {
|
|
21943
21961
|
getInitialState: (e) => ({
|
|
21944
21962
|
sorting: [],
|
|
21945
21963
|
...e
|
|
@@ -22041,7 +22059,7 @@ const xo = {
|
|
|
22041
22059
|
getPreSortedRowModel: () => e.getGroupedRowModel(),
|
|
22042
22060
|
getSortedRowModel: () => (!e._getSortedRowModel && e.options.getSortedRowModel && (e._getSortedRowModel = e.options.getSortedRowModel(e)), e.options.manualSorting || !e._getSortedRowModel ? e.getPreSortedRowModel() : e._getSortedRowModel())
|
|
22043
22061
|
})
|
|
22044
|
-
},
|
|
22062
|
+
}, DP = {
|
|
22045
22063
|
getInitialState: (e) => ({
|
|
22046
22064
|
columnVisibility: {},
|
|
22047
22065
|
...e
|
|
@@ -22118,8 +22136,8 @@ const xo = {
|
|
|
22118
22136
|
}
|
|
22119
22137
|
};
|
|
22120
22138
|
}
|
|
22121
|
-
}, od = [
|
|
22122
|
-
function
|
|
22139
|
+
}, od = [oP, DP, SP, CP, sP, kP, yP, lP, wP, xP, iP];
|
|
22140
|
+
function PP(e) {
|
|
22123
22141
|
var t;
|
|
22124
22142
|
(e.debugAll || e.debugTable) && console.info("Creating Table Instance...");
|
|
22125
22143
|
let n = {
|
|
@@ -22203,7 +22221,7 @@ function MP(e) {
|
|
|
22203
22221
|
getAllColumns: Ge(() => [n._getColumnDefs()], (d) => {
|
|
22204
22222
|
const f = function(p, g, h) {
|
|
22205
22223
|
return h === void 0 && (h = 0), p.map((m) => {
|
|
22206
|
-
const b =
|
|
22224
|
+
const b = rP(n, m, h, g), y = m;
|
|
22207
22225
|
return b.columns = y.columns ? f(y.columns, b, h + 1) : [], b;
|
|
22208
22226
|
});
|
|
22209
22227
|
};
|
|
@@ -22248,7 +22266,7 @@ function MP(e) {
|
|
|
22248
22266
|
};
|
|
22249
22267
|
return Object.assign(n, u), n._features.forEach((d) => Object.assign(n, d.createTable == null ? void 0 : d.createTable(n))), n;
|
|
22250
22268
|
}
|
|
22251
|
-
function
|
|
22269
|
+
function IP(e, t, n, r) {
|
|
22252
22270
|
const o = () => {
|
|
22253
22271
|
var a;
|
|
22254
22272
|
return (a = i.getValue()) != null ? a : e.options.renderFallbackValue;
|
|
@@ -22274,7 +22292,7 @@ function kP(e, t, n, r) {
|
|
|
22274
22292
|
Object.assign(i, a.createCell == null ? void 0 : a.createCell(i, n, t, e));
|
|
22275
22293
|
}, {}), i;
|
|
22276
22294
|
}
|
|
22277
|
-
const
|
|
22295
|
+
const $P = (e, t, n, r, o, i) => {
|
|
22278
22296
|
let a = {
|
|
22279
22297
|
id: t,
|
|
22280
22298
|
index: r,
|
|
@@ -22293,8 +22311,8 @@ const DP = (e, t, n, r, o, i) => {
|
|
|
22293
22311
|
return (c = a.getValue(s)) != null ? c : e.options.renderFallbackValue;
|
|
22294
22312
|
},
|
|
22295
22313
|
subRows: i != null ? i : [],
|
|
22296
|
-
getLeafRows: () =>
|
|
22297
|
-
getAllCells: Ge(() => [e.getAllLeafColumns()], (s) => s.map((c) =>
|
|
22314
|
+
getLeafRows: () => nP(a.subRows, (s) => s.subRows),
|
|
22315
|
+
getAllCells: Ge(() => [e.getAllLeafColumns()], (s) => s.map((c) => IP(e, a, c, c.id)), {
|
|
22298
22316
|
key: process.env.NODE_ENV === "development" && "row.getAllCells",
|
|
22299
22317
|
debug: () => {
|
|
22300
22318
|
var s;
|
|
@@ -22315,7 +22333,7 @@ const DP = (e, t, n, r, o, i) => {
|
|
|
22315
22333
|
}
|
|
22316
22334
|
return a;
|
|
22317
22335
|
};
|
|
22318
|
-
function
|
|
22336
|
+
function AP() {
|
|
22319
22337
|
return {
|
|
22320
22338
|
accessor: (e, t) => typeof e == "function" ? {
|
|
22321
22339
|
...t,
|
|
@@ -22328,7 +22346,7 @@ function PP() {
|
|
|
22328
22346
|
group: (e) => e
|
|
22329
22347
|
};
|
|
22330
22348
|
}
|
|
22331
|
-
function
|
|
22349
|
+
function NP() {
|
|
22332
22350
|
return (e) => Ge(() => [e.options.data], (t) => {
|
|
22333
22351
|
const n = {
|
|
22334
22352
|
rows: [],
|
|
@@ -22338,7 +22356,7 @@ function IP() {
|
|
|
22338
22356
|
i === void 0 && (i = 0);
|
|
22339
22357
|
const s = [];
|
|
22340
22358
|
for (let u = 0; u < o.length; u++) {
|
|
22341
|
-
const d =
|
|
22359
|
+
const d = $P(e, e._getRowId(o[u], u, a), o[u], u, i);
|
|
22342
22360
|
if (n.flatRows.push(d), n.rowsById[d.id] = d, s.push(d), e.options.getSubRows) {
|
|
22343
22361
|
var c;
|
|
22344
22362
|
d.originalSubRows = e.options.getSubRows(o[u], u), (c = d.originalSubRows) != null && c.length && (d.subRows = r(d.originalSubRows, i + 1, d));
|
|
@@ -22358,7 +22376,7 @@ function IP() {
|
|
|
22358
22376
|
}
|
|
22359
22377
|
});
|
|
22360
22378
|
}
|
|
22361
|
-
function
|
|
22379
|
+
function LP() {
|
|
22362
22380
|
return (e) => Ge(() => [e.getState().sorting, e.getPreSortedRowModel()], (t, n) => {
|
|
22363
22381
|
if (!n.rows.length || !(t != null && t.length))
|
|
22364
22382
|
return n;
|
|
@@ -22408,23 +22426,23 @@ function $P() {
|
|
|
22408
22426
|
});
|
|
22409
22427
|
}
|
|
22410
22428
|
function sh(e, t) {
|
|
22411
|
-
return e ?
|
|
22429
|
+
return e ? VP(e) ? /* @__PURE__ */ l(e, {
|
|
22412
22430
|
...t
|
|
22413
22431
|
}) : e : null;
|
|
22414
22432
|
}
|
|
22415
|
-
function
|
|
22416
|
-
return
|
|
22433
|
+
function VP(e) {
|
|
22434
|
+
return FP(e) || typeof e == "function" || zP(e);
|
|
22417
22435
|
}
|
|
22418
|
-
function
|
|
22436
|
+
function FP(e) {
|
|
22419
22437
|
return typeof e == "function" && (() => {
|
|
22420
22438
|
const t = Object.getPrototypeOf(e);
|
|
22421
22439
|
return t.prototype && t.prototype.isReactComponent;
|
|
22422
22440
|
})();
|
|
22423
22441
|
}
|
|
22424
|
-
function
|
|
22442
|
+
function zP(e) {
|
|
22425
22443
|
return typeof e == "object" && typeof e.$$typeof == "symbol" && ["react.memo", "react.forward_ref"].includes(e.$$typeof.description);
|
|
22426
22444
|
}
|
|
22427
|
-
function
|
|
22445
|
+
function jP(e) {
|
|
22428
22446
|
const t = {
|
|
22429
22447
|
state: {},
|
|
22430
22448
|
onStateChange: () => {
|
|
@@ -22432,7 +22450,7 @@ function VP(e) {
|
|
|
22432
22450
|
renderFallbackValue: null,
|
|
22433
22451
|
...e
|
|
22434
22452
|
}, [n] = x.useState(() => ({
|
|
22435
|
-
current:
|
|
22453
|
+
current: PP(t)
|
|
22436
22454
|
})), [r, o] = x.useState(() => n.current.initialState);
|
|
22437
22455
|
return n.current.setOptions((i) => ({
|
|
22438
22456
|
...i,
|
|
@@ -22449,7 +22467,7 @@ function VP(e) {
|
|
|
22449
22467
|
function id(e, t, n) {
|
|
22450
22468
|
return Math.min(Math.max(e, t), n);
|
|
22451
22469
|
}
|
|
22452
|
-
class
|
|
22470
|
+
class HP {
|
|
22453
22471
|
constructor(t) {
|
|
22454
22472
|
this.steps = t;
|
|
22455
22473
|
const n = [], r = /* @__PURE__ */ new Set();
|
|
@@ -22471,7 +22489,7 @@ class FP {
|
|
|
22471
22489
|
return id(this.getStepFunctionForValue(t)(t), 0, 100);
|
|
22472
22490
|
}
|
|
22473
22491
|
}
|
|
22474
|
-
const
|
|
22492
|
+
const KP = ({
|
|
22475
22493
|
header: e,
|
|
22476
22494
|
cx: t
|
|
22477
22495
|
}) => /* @__PURE__ */ v(z, {
|
|
@@ -22479,10 +22497,10 @@ const zP = ({
|
|
|
22479
22497
|
"table-head-cell--sortable": e.column.getCanSort()
|
|
22480
22498
|
}),
|
|
22481
22499
|
onClick: e.column.getToggleSortingHandler(),
|
|
22482
|
-
children: [e.isPlaceholder ? null : sh(e.column.columnDef.header, e.getContext()), /* @__PURE__ */ l(
|
|
22500
|
+
children: [e.isPlaceholder ? null : sh(e.column.columnDef.header, e.getContext()), /* @__PURE__ */ l(BP, {
|
|
22483
22501
|
direction: e.column.getIsSorted()
|
|
22484
22502
|
})]
|
|
22485
|
-
}),
|
|
22503
|
+
}), BP = ({
|
|
22486
22504
|
direction: e
|
|
22487
22505
|
}) => {
|
|
22488
22506
|
switch (e) {
|
|
@@ -22500,8 +22518,8 @@ const zP = ({
|
|
|
22500
22518
|
}, Fs = {
|
|
22501
22519
|
id: "builtin:table:click-cell-content",
|
|
22502
22520
|
displayName: "Click Cell Content",
|
|
22503
|
-
nameRender:
|
|
22504
|
-
configRender:
|
|
22521
|
+
nameRender: YP,
|
|
22522
|
+
configRender: qP,
|
|
22505
22523
|
payload: [{
|
|
22506
22524
|
name: "row_index",
|
|
22507
22525
|
description: "Index of the row that the cell belongs to",
|
|
@@ -22515,7 +22533,7 @@ const zP = ({
|
|
|
22515
22533
|
description: "Data of the row that the cell belongs to",
|
|
22516
22534
|
valueType: "object"
|
|
22517
22535
|
}]
|
|
22518
|
-
},
|
|
22536
|
+
}, GP = {
|
|
22519
22537
|
column: ""
|
|
22520
22538
|
};
|
|
22521
22539
|
function ch(e) {
|
|
@@ -22527,19 +22545,19 @@ function ch(e) {
|
|
|
22527
22545
|
value: r.toString()
|
|
22528
22546
|
})) : [];
|
|
22529
22547
|
}
|
|
22530
|
-
function
|
|
22548
|
+
function WP(e) {
|
|
22531
22549
|
return Tl(e) ? [] : Object.keys(e[0]).map((t) => ({
|
|
22532
22550
|
label: t,
|
|
22533
22551
|
value: t
|
|
22534
22552
|
}));
|
|
22535
22553
|
}
|
|
22536
|
-
function
|
|
22537
|
-
const t = ch(e.instance), n =
|
|
22554
|
+
function qP(e) {
|
|
22555
|
+
const t = ch(e.instance), n = WP(e.sampleData), r = t.length > 0 ? t : n, {
|
|
22538
22556
|
value: o,
|
|
22539
22557
|
set: i
|
|
22540
22558
|
} = rt(e.trigger.triggerData, "config"), {
|
|
22541
22559
|
column: a
|
|
22542
|
-
} = jt({}, o,
|
|
22560
|
+
} = jt({}, o, GP), s = (c) => {
|
|
22543
22561
|
isNaN(+c) ? i({
|
|
22544
22562
|
column: c
|
|
22545
22563
|
}) : i({
|
|
@@ -22554,18 +22572,18 @@ function BP(e) {
|
|
|
22554
22572
|
onChange: s
|
|
22555
22573
|
});
|
|
22556
22574
|
}
|
|
22557
|
-
function
|
|
22575
|
+
function UP(e, t) {
|
|
22558
22576
|
return e ? cm(e.column) ? `Click cell of ${t[e.column].label}` : `Click cell of ${e.column}` : "Click cell content (click to config)";
|
|
22559
22577
|
}
|
|
22560
|
-
function
|
|
22578
|
+
function YP(e) {
|
|
22561
22579
|
const t = ch(e.instance), {
|
|
22562
22580
|
value: n
|
|
22563
22581
|
} = rt(e.trigger.triggerData, "config");
|
|
22564
22582
|
return /* @__PURE__ */ l(z, {
|
|
22565
|
-
children:
|
|
22583
|
+
children: UP(n, t)
|
|
22566
22584
|
});
|
|
22567
22585
|
}
|
|
22568
|
-
const
|
|
22586
|
+
const XP = qo((e) => ({
|
|
22569
22587
|
root: {
|
|
22570
22588
|
overflow: "auto",
|
|
22571
22589
|
"& .table-head-cell": {
|
|
@@ -22590,7 +22608,7 @@ const qP = qo((e) => ({
|
|
|
22590
22608
|
position: "sticky",
|
|
22591
22609
|
top: 0
|
|
22592
22610
|
}
|
|
22593
|
-
})),
|
|
22611
|
+
})), QP = qo((e, t) => ({
|
|
22594
22612
|
content: {
|
|
22595
22613
|
display: "flex",
|
|
22596
22614
|
alignItems: "center",
|
|
@@ -22603,24 +22621,24 @@ const qP = qo((e) => ({
|
|
|
22603
22621
|
}
|
|
22604
22622
|
}
|
|
22605
22623
|
}));
|
|
22606
|
-
function
|
|
22624
|
+
function JP(e) {
|
|
22607
22625
|
return e ? No(e).oklch()[0] > 0.7 ? "black" : "white" : "inherit";
|
|
22608
22626
|
}
|
|
22609
|
-
function
|
|
22627
|
+
function ZP(e) {
|
|
22610
22628
|
const t = e.tableCellContext.bgColor;
|
|
22611
22629
|
return {
|
|
22612
22630
|
backgroundColor: t,
|
|
22613
|
-
color:
|
|
22631
|
+
color: JP(t)
|
|
22614
22632
|
};
|
|
22615
22633
|
}
|
|
22616
22634
|
function ua(e) {
|
|
22617
|
-
const t = e.tableCellContext.isClickable(), n =
|
|
22635
|
+
const t = e.tableCellContext.isClickable(), n = QP({
|
|
22618
22636
|
clickable: t
|
|
22619
22637
|
});
|
|
22620
22638
|
return /* @__PURE__ */ l("div", {
|
|
22621
22639
|
className: n.classes.content,
|
|
22622
22640
|
style: {
|
|
22623
|
-
...
|
|
22641
|
+
...ZP(e)
|
|
22624
22642
|
},
|
|
22625
22643
|
children: /* @__PURE__ */ l(z, {
|
|
22626
22644
|
className: "table-cell-text",
|
|
@@ -22631,19 +22649,19 @@ function ua(e) {
|
|
|
22631
22649
|
})
|
|
22632
22650
|
});
|
|
22633
22651
|
}
|
|
22634
|
-
function
|
|
22652
|
+
function eI(e) {
|
|
22635
22653
|
return /* @__PURE__ */ l(ua, {
|
|
22636
22654
|
...e,
|
|
22637
22655
|
children: e.value
|
|
22638
22656
|
});
|
|
22639
22657
|
}
|
|
22640
|
-
function
|
|
22658
|
+
function tI(e) {
|
|
22641
22659
|
return /* @__PURE__ */ l(ua, {
|
|
22642
22660
|
...e,
|
|
22643
22661
|
children: e.value
|
|
22644
22662
|
});
|
|
22645
22663
|
}
|
|
22646
|
-
function
|
|
22664
|
+
function nI(e) {
|
|
22647
22665
|
const t = Zt(e.value).format({
|
|
22648
22666
|
thousandSeparated: !0
|
|
22649
22667
|
});
|
|
@@ -22652,7 +22670,7 @@ function ZP(e) {
|
|
|
22652
22670
|
children: t
|
|
22653
22671
|
});
|
|
22654
22672
|
}
|
|
22655
|
-
function
|
|
22673
|
+
function rI(e) {
|
|
22656
22674
|
const t = Zt(e.value).format({
|
|
22657
22675
|
output: "percent",
|
|
22658
22676
|
mantissa: 3
|
|
@@ -22662,43 +22680,43 @@ function eI(e) {
|
|
|
22662
22680
|
children: t
|
|
22663
22681
|
});
|
|
22664
22682
|
}
|
|
22665
|
-
function
|
|
22683
|
+
function oI(e) {
|
|
22666
22684
|
const t = e.value, n = e.func_content;
|
|
22667
22685
|
return n ? new Function(`return ${n}`)()({
|
|
22668
22686
|
value: t
|
|
22669
22687
|
}) : t;
|
|
22670
22688
|
}
|
|
22671
|
-
function
|
|
22689
|
+
function iI(e) {
|
|
22672
22690
|
switch (e.type) {
|
|
22673
22691
|
case Pn.string:
|
|
22674
|
-
return /* @__PURE__ */ l(
|
|
22692
|
+
return /* @__PURE__ */ l(eI, {
|
|
22675
22693
|
...e
|
|
22676
22694
|
});
|
|
22677
22695
|
case Pn.eloc:
|
|
22678
|
-
return /* @__PURE__ */ l(
|
|
22696
|
+
return /* @__PURE__ */ l(tI, {
|
|
22679
22697
|
...e
|
|
22680
22698
|
});
|
|
22681
22699
|
case Pn.number:
|
|
22682
|
-
return /* @__PURE__ */ l(
|
|
22700
|
+
return /* @__PURE__ */ l(nI, {
|
|
22683
22701
|
...e
|
|
22684
22702
|
});
|
|
22685
22703
|
case Pn.percentage:
|
|
22686
|
-
return /* @__PURE__ */ l(
|
|
22704
|
+
return /* @__PURE__ */ l(rI, {
|
|
22687
22705
|
...e
|
|
22688
22706
|
});
|
|
22689
22707
|
case Pn.custom:
|
|
22690
|
-
return /* @__PURE__ */ l(
|
|
22708
|
+
return /* @__PURE__ */ l(oI, {
|
|
22691
22709
|
...e
|
|
22692
22710
|
});
|
|
22693
22711
|
}
|
|
22694
22712
|
}
|
|
22695
|
-
const
|
|
22713
|
+
const aI = (e) => {
|
|
22696
22714
|
const t = mo(e), n = ho(t.triggerManager, Fs.id), {
|
|
22697
22715
|
colorManager: r
|
|
22698
22716
|
} = Qn(Fn);
|
|
22699
|
-
return gr((o) => new
|
|
22717
|
+
return gr((o) => new sI(e.getColIndex, o, n, t, r), [n, t, e.getColIndex]);
|
|
22700
22718
|
};
|
|
22701
|
-
function
|
|
22719
|
+
function lI({
|
|
22702
22720
|
context: e,
|
|
22703
22721
|
instance: t
|
|
22704
22722
|
}) {
|
|
@@ -22715,18 +22733,18 @@ function oI({
|
|
|
22715
22733
|
} = i, {
|
|
22716
22734
|
classes: u,
|
|
22717
22735
|
cx: d
|
|
22718
|
-
} =
|
|
22736
|
+
} = XP(), f = j.useMemo(() => a ? Object.keys(n[0]).map((O) => ({
|
|
22719
22737
|
id: O,
|
|
22720
22738
|
label: O,
|
|
22721
22739
|
value_field: O,
|
|
22722
22740
|
value_type: Pn.string
|
|
22723
|
-
})) : s, [a, s, n]), p =
|
|
22741
|
+
})) : s, [a, s, n]), p = aI({
|
|
22724
22742
|
getColIndex: gr((O) => f.indexOf(O.column.columnDef.meta), [f]),
|
|
22725
22743
|
vizManager: e.vizManager,
|
|
22726
22744
|
instance: t
|
|
22727
22745
|
}), g = de(() => {
|
|
22728
|
-
const O =
|
|
22729
|
-
cell: (F) => /* @__PURE__ */ l(
|
|
22746
|
+
const O = AP(), P = f.map(($) => O.accessor($.value_field, {
|
|
22747
|
+
cell: (F) => /* @__PURE__ */ l(iI, {
|
|
22730
22748
|
tableCellContext: p(F.cell),
|
|
22731
22749
|
value: F.getValue(),
|
|
22732
22750
|
type: $.value_type,
|
|
@@ -22742,15 +22760,15 @@ function oI({
|
|
|
22742
22760
|
header: "#",
|
|
22743
22761
|
size: 10 * (n.length.toString().length + 1)
|
|
22744
22762
|
}), ...P];
|
|
22745
|
-
}, [f, p]), [h, m] = Xe([]), b =
|
|
22763
|
+
}, [f, p]), [h, m] = Xe([]), b = jP({
|
|
22746
22764
|
data: n,
|
|
22747
22765
|
state: {
|
|
22748
22766
|
sorting: h
|
|
22749
22767
|
},
|
|
22750
22768
|
onSortingChange: m,
|
|
22751
22769
|
columns: g,
|
|
22752
|
-
getCoreRowModel:
|
|
22753
|
-
getSortedRowModel:
|
|
22770
|
+
getCoreRowModel: NP(),
|
|
22771
|
+
getSortedRowModel: LP()
|
|
22754
22772
|
}), {
|
|
22755
22773
|
rows: y
|
|
22756
22774
|
} = b.getRowModel(), w = j.useRef(null), S = qm({
|
|
@@ -22784,7 +22802,7 @@ function oI({
|
|
|
22784
22802
|
style: {
|
|
22785
22803
|
width: P.getSize()
|
|
22786
22804
|
},
|
|
22787
|
-
children: /* @__PURE__ */ l(
|
|
22805
|
+
children: /* @__PURE__ */ l(KP, {
|
|
22788
22806
|
header: P,
|
|
22789
22807
|
cx: d
|
|
22790
22808
|
})
|
|
@@ -22815,7 +22833,7 @@ function oI({
|
|
|
22815
22833
|
})
|
|
22816
22834
|
});
|
|
22817
22835
|
}
|
|
22818
|
-
class
|
|
22836
|
+
class sI {
|
|
22819
22837
|
constructor(t, n, r, o, i) {
|
|
22820
22838
|
this.getColIndex = t, this.cell = n, this.triggers = r, this.interactionManager = o, this.colorManager = i;
|
|
22821
22839
|
}
|
|
@@ -22852,7 +22870,7 @@ class iI {
|
|
|
22852
22870
|
return t;
|
|
22853
22871
|
const n = +this.cell.getValue();
|
|
22854
22872
|
if (isFinite(n)) {
|
|
22855
|
-
const r = this.colorManager.decodeInterpolation(t.interpolation), i = new
|
|
22873
|
+
const r = this.colorManager.decodeInterpolation(t.interpolation), i = new HP(t.steps).mapValue(n);
|
|
22856
22874
|
return r == null ? void 0 : r.getColor(i);
|
|
22857
22875
|
}
|
|
22858
22876
|
}
|
|
@@ -22880,14 +22898,14 @@ const uh = qo(() => ({
|
|
|
22880
22898
|
}
|
|
22881
22899
|
}
|
|
22882
22900
|
}
|
|
22883
|
-
})),
|
|
22901
|
+
})), cI = [{
|
|
22884
22902
|
from: 0,
|
|
22885
22903
|
to: 0
|
|
22886
22904
|
}, {
|
|
22887
22905
|
from: 100,
|
|
22888
22906
|
to: 100
|
|
22889
22907
|
}];
|
|
22890
|
-
class
|
|
22908
|
+
class uI {
|
|
22891
22909
|
constructor() {
|
|
22892
22910
|
he(this, "steps", /* @__PURE__ */ new Map());
|
|
22893
22911
|
he(this, "interpolation");
|
|
@@ -22912,7 +22930,7 @@ class lI {
|
|
|
22912
22930
|
})).sort((n, r) => n.to - r.to || n.from - r.from));
|
|
22913
22931
|
}
|
|
22914
22932
|
fromProps(t) {
|
|
22915
|
-
t.steps.length < 2 ? this.setSteps(
|
|
22933
|
+
t.steps.length < 2 ? this.setSteps(cI) : this.setSteps(t.steps), this.interpolation = t.interpolation, this.onChange = t.onChange;
|
|
22916
22934
|
}
|
|
22917
22935
|
changeStep(t, n) {
|
|
22918
22936
|
t == null ? this.steps.delete(n) : this.steps.set(n, t);
|
|
@@ -22921,7 +22939,7 @@ class lI {
|
|
|
22921
22939
|
return this.steps.get(t);
|
|
22922
22940
|
}
|
|
22923
22941
|
}
|
|
22924
|
-
function
|
|
22942
|
+
function dI(e) {
|
|
22925
22943
|
const {
|
|
22926
22944
|
onChange: t,
|
|
22927
22945
|
color: n,
|
|
@@ -23001,7 +23019,7 @@ function sI(e) {
|
|
|
23001
23019
|
})]
|
|
23002
23020
|
});
|
|
23003
23021
|
}
|
|
23004
|
-
const
|
|
23022
|
+
const fI = Q(({
|
|
23005
23023
|
model: e
|
|
23006
23024
|
}) => {
|
|
23007
23025
|
const {
|
|
@@ -23009,21 +23027,21 @@ const cI = Q(({
|
|
|
23009
23027
|
} = uh(), n = um(0, 13, 1).map((r) => 100 / 12 * r).map((r) => [e.interpolation.getColor(r), r]);
|
|
23010
23028
|
return /* @__PURE__ */ l("div", {
|
|
23011
23029
|
className: t.palette,
|
|
23012
|
-
children: n.map(([r, o], i) => /* @__PURE__ */ l(
|
|
23030
|
+
children: n.map(([r, o], i) => /* @__PURE__ */ l(dI, {
|
|
23013
23031
|
index: i,
|
|
23014
23032
|
color: r,
|
|
23015
23033
|
value: e.getStepFromValue(o),
|
|
23016
23034
|
onChange: (a) => e.changeStep(a, o)
|
|
23017
23035
|
}, r))
|
|
23018
23036
|
});
|
|
23019
|
-
}),
|
|
23020
|
-
const n = On(() => new
|
|
23037
|
+
}), pI = Q(function(t) {
|
|
23038
|
+
const n = On(() => new uI(), []);
|
|
23021
23039
|
return Me(() => {
|
|
23022
23040
|
n.fromProps(t);
|
|
23023
|
-
}), n.interpolation == null ? null : /* @__PURE__ */ l(
|
|
23041
|
+
}), n.interpolation == null ? null : /* @__PURE__ */ l(fI, {
|
|
23024
23042
|
model: n
|
|
23025
23043
|
});
|
|
23026
|
-
}),
|
|
23044
|
+
}), gI = (e) => {
|
|
23027
23045
|
const {
|
|
23028
23046
|
value: t,
|
|
23029
23047
|
onChange: n,
|
|
@@ -23071,7 +23089,7 @@ const cI = Q(({
|
|
|
23071
23089
|
value: i.interpolation,
|
|
23072
23090
|
data: f,
|
|
23073
23091
|
onChange: p
|
|
23074
|
-
}), /* @__PURE__ */ l(
|
|
23092
|
+
}), /* @__PURE__ */ l(pI, {
|
|
23075
23093
|
steps: i.steps,
|
|
23076
23094
|
interpolation: s,
|
|
23077
23095
|
onChange: h
|
|
@@ -23089,7 +23107,7 @@ const cI = Q(({
|
|
|
23089
23107
|
})
|
|
23090
23108
|
})]
|
|
23091
23109
|
});
|
|
23092
|
-
},
|
|
23110
|
+
}, hI = ["static", "interpolation", "none"], mI = [{
|
|
23093
23111
|
from: 0,
|
|
23094
23112
|
to: 0
|
|
23095
23113
|
}, {
|
|
@@ -23099,20 +23117,20 @@ const cI = Q(({
|
|
|
23099
23117
|
function dh(e) {
|
|
23100
23118
|
return e ? xd(e) ? e === "none" ? "none" : "static" : "interpolation" : "none";
|
|
23101
23119
|
}
|
|
23102
|
-
function
|
|
23120
|
+
function vI(e, t) {
|
|
23103
23121
|
var n;
|
|
23104
23122
|
return dh(t) === "static" ? t : (n = e.getStaticColors()[0]) == null ? void 0 : n.value;
|
|
23105
23123
|
}
|
|
23106
|
-
function
|
|
23124
|
+
function yI(e, t) {
|
|
23107
23125
|
return yd(t) ? t : {
|
|
23108
|
-
steps:
|
|
23126
|
+
steps: mI,
|
|
23109
23127
|
interpolation: e.encodeColor(e.getColorInterpolations()[0])
|
|
23110
23128
|
};
|
|
23111
23129
|
}
|
|
23112
|
-
const
|
|
23130
|
+
const bI = (e) => {
|
|
23113
23131
|
const {
|
|
23114
23132
|
colorManager: t
|
|
23115
|
-
} = Qn(Fn), [n, r] = Xe(dh(e.value)), [o, i] = Xe(
|
|
23133
|
+
} = Qn(Fn), [n, r] = Xe(dh(e.value)), [o, i] = Xe(vI(t, e.value)), a = Xs(o), [s, c] = Xe(yI(t, e.value)), u = Xs(s);
|
|
23116
23134
|
return /* @__PURE__ */ v(B, {
|
|
23117
23135
|
align: "stretch",
|
|
23118
23136
|
children: [/* @__PURE__ */ l(Ee, {
|
|
@@ -23122,14 +23140,14 @@ const mI = (e) => {
|
|
|
23122
23140
|
var h, m, b;
|
|
23123
23141
|
r(g || "none"), g === "static" ? (h = e.onChange) == null || h.call(e, a.current) : g === "none" || !g ? (m = e.onChange) == null || m.call(e, "none") : (b = e.onChange) == null || b.call(e, u.current);
|
|
23124
23142
|
},
|
|
23125
|
-
data:
|
|
23143
|
+
data: hI
|
|
23126
23144
|
}), n === "static" && /* @__PURE__ */ l(Xn, {
|
|
23127
23145
|
value: o,
|
|
23128
23146
|
onChange: (g) => {
|
|
23129
23147
|
var h;
|
|
23130
23148
|
i(g), (h = e.onChange) == null || h.call(e, g);
|
|
23131
23149
|
}
|
|
23132
|
-
}), n === "interpolation" && /* @__PURE__ */ l(
|
|
23150
|
+
}), n === "interpolation" && /* @__PURE__ */ l(gI, {
|
|
23133
23151
|
colorManager: t,
|
|
23134
23152
|
value: s,
|
|
23135
23153
|
onChange: (g) => {
|
|
@@ -23138,11 +23156,11 @@ const mI = (e) => {
|
|
|
23138
23156
|
}
|
|
23139
23157
|
})]
|
|
23140
23158
|
});
|
|
23141
|
-
},
|
|
23159
|
+
}, SI = Object.values(Pn).map((e) => ({
|
|
23142
23160
|
label: e,
|
|
23143
23161
|
value: e
|
|
23144
23162
|
}));
|
|
23145
|
-
function
|
|
23163
|
+
function wI({
|
|
23146
23164
|
label: e,
|
|
23147
23165
|
value: t,
|
|
23148
23166
|
onChange: n,
|
|
@@ -23150,13 +23168,13 @@ function yI({
|
|
|
23150
23168
|
}) {
|
|
23151
23169
|
return /* @__PURE__ */ l(Ee, {
|
|
23152
23170
|
label: e,
|
|
23153
|
-
data:
|
|
23171
|
+
data: SI,
|
|
23154
23172
|
value: t,
|
|
23155
23173
|
onChange: n,
|
|
23156
23174
|
sx: r
|
|
23157
23175
|
});
|
|
23158
23176
|
}
|
|
23159
|
-
const
|
|
23177
|
+
const CI = Nn(({
|
|
23160
23178
|
value: e,
|
|
23161
23179
|
onChange: t
|
|
23162
23180
|
}, n) => {
|
|
@@ -23229,7 +23247,7 @@ const bI = Nn(({
|
|
|
23229
23247
|
})
|
|
23230
23248
|
})]
|
|
23231
23249
|
});
|
|
23232
|
-
}),
|
|
23250
|
+
}), xI = ({
|
|
23233
23251
|
control: e,
|
|
23234
23252
|
index: t,
|
|
23235
23253
|
watch: n,
|
|
@@ -23278,7 +23296,7 @@ const bI = Nn(({
|
|
|
23278
23296
|
control: e,
|
|
23279
23297
|
render: ({
|
|
23280
23298
|
field: s
|
|
23281
|
-
}) => /* @__PURE__ */ l(
|
|
23299
|
+
}) => /* @__PURE__ */ l(wI, {
|
|
23282
23300
|
label: "Value Type",
|
|
23283
23301
|
sx: {
|
|
23284
23302
|
flex: 1
|
|
@@ -23292,7 +23310,7 @@ const bI = Nn(({
|
|
|
23292
23310
|
field: s
|
|
23293
23311
|
}) => {
|
|
23294
23312
|
var c;
|
|
23295
|
-
return /* @__PURE__ */ l(
|
|
23313
|
+
return /* @__PURE__ */ l(CI, {
|
|
23296
23314
|
value: (c = s.value) != null ? c : Jg,
|
|
23297
23315
|
onChange: (u) => s.onChange(u != null ? u : "")
|
|
23298
23316
|
});
|
|
@@ -23303,7 +23321,7 @@ const bI = Nn(({
|
|
|
23303
23321
|
control: e,
|
|
23304
23322
|
render: ({
|
|
23305
23323
|
field: s
|
|
23306
|
-
}) => /* @__PURE__ */ l(
|
|
23324
|
+
}) => /* @__PURE__ */ l(bI, {
|
|
23307
23325
|
...s
|
|
23308
23326
|
})
|
|
23309
23327
|
}), /* @__PURE__ */ l(Ae, {
|
|
@@ -23320,7 +23338,7 @@ const bI = Nn(({
|
|
|
23320
23338
|
children: "Delete this column"
|
|
23321
23339
|
})]
|
|
23322
23340
|
});
|
|
23323
|
-
},
|
|
23341
|
+
}, _I = ({
|
|
23324
23342
|
control: e,
|
|
23325
23343
|
watch: t,
|
|
23326
23344
|
data: n
|
|
@@ -23392,7 +23410,7 @@ const bI = Nn(({
|
|
|
23392
23410
|
})]
|
|
23393
23411
|
}), r.map((u, d) => /* @__PURE__ */ l(I.Panel, {
|
|
23394
23412
|
value: d.toString(),
|
|
23395
|
-
children: /* @__PURE__ */ l(
|
|
23413
|
+
children: /* @__PURE__ */ l(xI, {
|
|
23396
23414
|
control: e,
|
|
23397
23415
|
watch: t,
|
|
23398
23416
|
index: d,
|
|
@@ -23405,7 +23423,7 @@ const bI = Nn(({
|
|
|
23405
23423
|
})]
|
|
23406
23424
|
});
|
|
23407
23425
|
};
|
|
23408
|
-
function
|
|
23426
|
+
function EI({
|
|
23409
23427
|
control: e,
|
|
23410
23428
|
watch: t,
|
|
23411
23429
|
data: n
|
|
@@ -23501,7 +23519,7 @@ function CI({
|
|
|
23501
23519
|
})]
|
|
23502
23520
|
});
|
|
23503
23521
|
}
|
|
23504
|
-
function
|
|
23522
|
+
function OI({
|
|
23505
23523
|
columns: e,
|
|
23506
23524
|
...t
|
|
23507
23525
|
}) {
|
|
@@ -23516,13 +23534,13 @@ function xI({
|
|
|
23516
23534
|
}))
|
|
23517
23535
|
};
|
|
23518
23536
|
}
|
|
23519
|
-
function
|
|
23537
|
+
function RI({
|
|
23520
23538
|
context: e
|
|
23521
23539
|
}) {
|
|
23522
23540
|
const {
|
|
23523
23541
|
value: t,
|
|
23524
23542
|
set: n
|
|
23525
|
-
} = rt(e.instanceData, "config"), r = e.data, o = de(() => nn({}, t, As), [t]), i = de(() =>
|
|
23543
|
+
} = rt(e.instanceData, "config"), r = e.data, o = de(() => nn({}, t, As), [t]), i = de(() => OI(o), [o]);
|
|
23526
23544
|
Me(() => {
|
|
23527
23545
|
!Dt(o, i) && (console.log("config malformed, resetting to defaults", o, i), n(i));
|
|
23528
23546
|
}, [o, i]);
|
|
@@ -23605,14 +23623,14 @@ function _I({
|
|
|
23605
23623
|
})
|
|
23606
23624
|
}), /* @__PURE__ */ l(I.Panel, {
|
|
23607
23625
|
value: "Style",
|
|
23608
|
-
children: /* @__PURE__ */ l(
|
|
23626
|
+
children: /* @__PURE__ */ l(EI, {
|
|
23609
23627
|
control: a,
|
|
23610
23628
|
watch: c,
|
|
23611
23629
|
data: r
|
|
23612
23630
|
})
|
|
23613
23631
|
}), /* @__PURE__ */ l(I.Panel, {
|
|
23614
23632
|
value: "Columns",
|
|
23615
|
-
children: /* @__PURE__ */ l(
|
|
23633
|
+
children: /* @__PURE__ */ l(_I, {
|
|
23616
23634
|
control: a,
|
|
23617
23635
|
watch: c,
|
|
23618
23636
|
data: r
|
|
@@ -23633,7 +23651,7 @@ function _I({
|
|
|
23633
23651
|
})]
|
|
23634
23652
|
});
|
|
23635
23653
|
}
|
|
23636
|
-
class
|
|
23654
|
+
class TI extends tn {
|
|
23637
23655
|
constructor() {
|
|
23638
23656
|
super(...arguments);
|
|
23639
23657
|
he(this, "VERSION", 2);
|
|
@@ -23665,12 +23683,12 @@ const bl = {
|
|
|
23665
23683
|
};
|
|
23666
23684
|
},
|
|
23667
23685
|
displayName: "Table",
|
|
23668
|
-
migrator: new
|
|
23686
|
+
migrator: new TI(),
|
|
23669
23687
|
name: "table",
|
|
23670
|
-
viewRender:
|
|
23671
|
-
configRender:
|
|
23688
|
+
viewRender: lI,
|
|
23689
|
+
configRender: RI,
|
|
23672
23690
|
triggers: [Fs]
|
|
23673
|
-
},
|
|
23691
|
+
}, MI = () => /* @__PURE__ */ v("svg", {
|
|
23674
23692
|
width: "64",
|
|
23675
23693
|
height: "64",
|
|
23676
23694
|
viewBox: "0 0 64 64",
|
|
@@ -23693,7 +23711,7 @@ function ad(e, t) {
|
|
|
23693
23711
|
if (n)
|
|
23694
23712
|
throw new Error(n);
|
|
23695
23713
|
}
|
|
23696
|
-
async function
|
|
23714
|
+
async function kI(e, t, n, r = {}) {
|
|
23697
23715
|
const o = {
|
|
23698
23716
|
"X-Requested-With": "XMLHttpRequest",
|
|
23699
23717
|
"Content-Type": r.string ? "application/x-www-form-urlencoded" : "application/json",
|
|
@@ -23707,7 +23725,7 @@ async function RI(e, t, n, r = {}) {
|
|
|
23707
23725
|
};
|
|
23708
23726
|
return i.data = r.string ? JSON.stringify(n) : n, Ml(i).then((a) => a.data).catch((a) => Promise.reject(a));
|
|
23709
23727
|
}
|
|
23710
|
-
const
|
|
23728
|
+
const DI = ({ conf: e, data: t }) => async () => {
|
|
23711
23729
|
const { expertSystemURL: n, path: r, goal: o, question: i } = e;
|
|
23712
23730
|
if (!r || !o || !i)
|
|
23713
23731
|
return;
|
|
@@ -23718,7 +23736,7 @@ const TI = ({ conf: e, data: t }) => async () => {
|
|
|
23718
23736
|
};
|
|
23719
23737
|
try {
|
|
23720
23738
|
const s = n.startsWith("http") ? n : window.location.origin;
|
|
23721
|
-
return await
|
|
23739
|
+
return await kI(s, `/expert/v3/devtable/${r}`, a, {});
|
|
23722
23740
|
} catch (s) {
|
|
23723
23741
|
throw ad(s, "response.data.detail"), ad(s, "response.data.error"), console.error(s), s;
|
|
23724
23742
|
}
|
|
@@ -23749,7 +23767,7 @@ const TI = ({ conf: e, data: t }) => async () => {
|
|
|
23749
23767
|
color: "#3D3E45"
|
|
23750
23768
|
}
|
|
23751
23769
|
})
|
|
23752
|
-
}),
|
|
23770
|
+
}), PI = ({
|
|
23753
23771
|
error: e,
|
|
23754
23772
|
width: t,
|
|
23755
23773
|
height: n
|
|
@@ -23765,13 +23783,13 @@ const TI = ({ conf: e, data: t }) => async () => {
|
|
|
23765
23783
|
children: /* @__PURE__ */ v(B, {
|
|
23766
23784
|
align: "center",
|
|
23767
23785
|
spacing: 20,
|
|
23768
|
-
children: [/* @__PURE__ */ l(
|
|
23786
|
+
children: [/* @__PURE__ */ l(MI, {}), /* @__PURE__ */ l(ld, {
|
|
23769
23787
|
message: r
|
|
23770
23788
|
})]
|
|
23771
23789
|
})
|
|
23772
23790
|
});
|
|
23773
23791
|
};
|
|
23774
|
-
function
|
|
23792
|
+
function II({
|
|
23775
23793
|
context: e
|
|
23776
23794
|
}) {
|
|
23777
23795
|
var u;
|
|
@@ -23784,7 +23802,7 @@ function kI({
|
|
|
23784
23802
|
data: a,
|
|
23785
23803
|
error: s,
|
|
23786
23804
|
loading: c
|
|
23787
|
-
} = El(
|
|
23805
|
+
} = El(DI({
|
|
23788
23806
|
conf: n,
|
|
23789
23807
|
data: i
|
|
23790
23808
|
}), {
|
|
@@ -23798,7 +23816,7 @@ function kI({
|
|
|
23798
23816
|
children: /* @__PURE__ */ l(Uo, {
|
|
23799
23817
|
visible: !0
|
|
23800
23818
|
})
|
|
23801
|
-
}) : s ? /* @__PURE__ */ l(
|
|
23819
|
+
}) : s ? /* @__PURE__ */ l(PI, {
|
|
23802
23820
|
error: s,
|
|
23803
23821
|
width: r,
|
|
23804
23822
|
height: o
|
|
@@ -23816,7 +23834,7 @@ function kI({
|
|
|
23816
23834
|
}, f))
|
|
23817
23835
|
});
|
|
23818
23836
|
}
|
|
23819
|
-
function
|
|
23837
|
+
function $I({
|
|
23820
23838
|
context: e
|
|
23821
23839
|
}) {
|
|
23822
23840
|
const {
|
|
@@ -23903,7 +23921,7 @@ function DI({
|
|
|
23903
23921
|
})
|
|
23904
23922
|
});
|
|
23905
23923
|
}
|
|
23906
|
-
class
|
|
23924
|
+
class AI extends tn {
|
|
23907
23925
|
constructor() {
|
|
23908
23926
|
super(...arguments);
|
|
23909
23927
|
he(this, "VERSION", 1);
|
|
@@ -23915,22 +23933,22 @@ class PI extends tn {
|
|
|
23915
23933
|
}));
|
|
23916
23934
|
}
|
|
23917
23935
|
}
|
|
23918
|
-
const
|
|
23936
|
+
const NI = {
|
|
23919
23937
|
displayName: "Merico GQM",
|
|
23920
|
-
migrator: new
|
|
23938
|
+
migrator: new AI(),
|
|
23921
23939
|
name: "mericoGQM",
|
|
23922
|
-
viewRender:
|
|
23923
|
-
configRender:
|
|
23940
|
+
viewRender: II,
|
|
23941
|
+
configRender: $I,
|
|
23924
23942
|
createConfig: () => zs
|
|
23925
23943
|
};
|
|
23926
|
-
function
|
|
23944
|
+
function LI(e) {
|
|
23927
23945
|
const t = e.y_axes.some((n) => !!n.name);
|
|
23928
23946
|
return {
|
|
23929
23947
|
bottom: e.x_axis.name ? 40 : 25,
|
|
23930
23948
|
top: t ? 30 : 10
|
|
23931
23949
|
};
|
|
23932
23950
|
}
|
|
23933
|
-
function
|
|
23951
|
+
function VI({ type: e, ...t }, n, r, o) {
|
|
23934
23952
|
if (!e)
|
|
23935
23953
|
return 10;
|
|
23936
23954
|
if (e === "static") {
|
|
@@ -23951,7 +23969,7 @@ function AI({ type: e, ...t }, n, r, o) {
|
|
|
23951
23969
|
}
|
|
23952
23970
|
};
|
|
23953
23971
|
}
|
|
23954
|
-
function
|
|
23972
|
+
function FI(e, t, n, r) {
|
|
23955
23973
|
return e.map((o) => {
|
|
23956
23974
|
const i = o.orientation === "horizontal", a = i ? "yAxis" : "xAxis", s = i ? "insideEndTop" : "end";
|
|
23957
23975
|
return {
|
|
@@ -23977,7 +23995,7 @@ function NI(e, t, n, r) {
|
|
|
23977
23995
|
};
|
|
23978
23996
|
});
|
|
23979
23997
|
}
|
|
23980
|
-
function
|
|
23998
|
+
function zI(e, t) {
|
|
23981
23999
|
return e.map((n) => ({
|
|
23982
24000
|
name: "",
|
|
23983
24001
|
type: "line",
|
|
@@ -24000,7 +24018,7 @@ function LI(e, t) {
|
|
|
24000
24018
|
}
|
|
24001
24019
|
}));
|
|
24002
24020
|
}
|
|
24003
|
-
function
|
|
24021
|
+
function jI({ x_axis: e, scatter: t }, n, r, o) {
|
|
24004
24022
|
return {
|
|
24005
24023
|
label: {
|
|
24006
24024
|
show: !!t.label_position,
|
|
@@ -24013,12 +24031,12 @@ function VI({ x_axis: e, scatter: t }, n, r, o) {
|
|
|
24013
24031
|
yAxisIndex: 0,
|
|
24014
24032
|
datasetIndex: 0,
|
|
24015
24033
|
color: t.color,
|
|
24016
|
-
symbolSize:
|
|
24034
|
+
symbolSize: VI(t.symbolSize, n, e.data_key, r),
|
|
24017
24035
|
encode: { x: e.data_key, y: t.y_data_key }
|
|
24018
24036
|
};
|
|
24019
24037
|
}
|
|
24020
|
-
function
|
|
24021
|
-
return [
|
|
24038
|
+
function HI(e, t, n, r, o, i, a) {
|
|
24039
|
+
return [jI(e, r, a)].concat(FI(e.reference_lines, i, a, r)).concat(zI(e.reference_areas, a));
|
|
24022
24040
|
}
|
|
24023
24041
|
function ph({ enabled: e, func_content: t }) {
|
|
24024
24042
|
return (n, r) => {
|
|
@@ -24031,14 +24049,14 @@ function ph({ enabled: e, func_content: t }) {
|
|
|
24031
24049
|
}
|
|
24032
24050
|
};
|
|
24033
24051
|
}
|
|
24034
|
-
function
|
|
24052
|
+
function KI(e, t) {
|
|
24035
24053
|
const n = e.find((a) => a.axisDim === "x" && a.axisId === "main-x-axis");
|
|
24036
24054
|
if (!n)
|
|
24037
24055
|
return "";
|
|
24038
24056
|
const { name: r, axisValue: o, axisIndex: i } = n;
|
|
24039
24057
|
return t.x_axis.axisLabel.formatter.enabled ? ph(t.x_axis.axisLabel.formatter)(o, i) : o;
|
|
24040
24058
|
}
|
|
24041
|
-
const
|
|
24059
|
+
const BI = (e) => {
|
|
24042
24060
|
try {
|
|
24043
24061
|
return Zt(e).format({
|
|
24044
24062
|
trimMantissa: !0,
|
|
@@ -24048,7 +24066,7 @@ const jI = (e) => {
|
|
|
24048
24066
|
return e;
|
|
24049
24067
|
}
|
|
24050
24068
|
};
|
|
24051
|
-
function
|
|
24069
|
+
function GI(e, t) {
|
|
24052
24070
|
const { scatter: n } = e;
|
|
24053
24071
|
return {
|
|
24054
24072
|
confine: !0,
|
|
@@ -24057,7 +24075,7 @@ function HI(e, t) {
|
|
|
24057
24075
|
const o = (f = t[0]) != null ? f : t.default, i = Array.isArray(r) ? r : [r];
|
|
24058
24076
|
if (i.length === 0)
|
|
24059
24077
|
return "";
|
|
24060
|
-
const a =
|
|
24078
|
+
const a = KI(i, e), s = i.map(
|
|
24061
24079
|
({ value: p }) => `<th style="text-align: right; padding-right: 1em">${p[n.name_data_key]}</th>`
|
|
24062
24080
|
);
|
|
24063
24081
|
s.unshift("<th></th>");
|
|
@@ -24074,7 +24092,7 @@ function HI(e, t) {
|
|
|
24074
24092
|
</tr>`
|
|
24075
24093
|
], u = e.tooltip.metrics.map((p) => `<tr>
|
|
24076
24094
|
<th style="text-align: right;">${p.name}</th>
|
|
24077
|
-
${i.map(({ value: g }) => `<td style="text-align: right; padding: 0 1em;">${
|
|
24095
|
+
${i.map(({ value: g }) => `<td style="text-align: right; padding: 0 1em;">${BI(g[p.data_key])}</td>`).join("")}
|
|
24078
24096
|
</tr>`);
|
|
24079
24097
|
return c.push(...u), `
|
|
24080
24098
|
<table>
|
|
@@ -24085,7 +24103,7 @@ function HI(e, t) {
|
|
|
24085
24103
|
}
|
|
24086
24104
|
};
|
|
24087
24105
|
}
|
|
24088
|
-
function
|
|
24106
|
+
function WI(e, t) {
|
|
24089
24107
|
var o;
|
|
24090
24108
|
const n = t.every((i) => !Number.isNaN(Number(i))), { axisLabel: r } = e.x_axis;
|
|
24091
24109
|
return [
|
|
@@ -24105,7 +24123,7 @@ function KI(e, t) {
|
|
|
24105
24123
|
}
|
|
24106
24124
|
];
|
|
24107
24125
|
}
|
|
24108
|
-
function
|
|
24126
|
+
function qI(e, t) {
|
|
24109
24127
|
return e.y_axes.map(({ nameAlignment: n, ...r }, o) => {
|
|
24110
24128
|
var a;
|
|
24111
24129
|
let i = r.position;
|
|
@@ -24131,7 +24149,7 @@ function BI(e, t) {
|
|
|
24131
24149
|
};
|
|
24132
24150
|
});
|
|
24133
24151
|
}
|
|
24134
|
-
function
|
|
24152
|
+
function UI() {
|
|
24135
24153
|
return {
|
|
24136
24154
|
show: !1,
|
|
24137
24155
|
bottom: 0,
|
|
@@ -24139,7 +24157,7 @@ function GI() {
|
|
|
24139
24157
|
type: "scroll"
|
|
24140
24158
|
};
|
|
24141
24159
|
}
|
|
24142
|
-
const
|
|
24160
|
+
const YI = {
|
|
24143
24161
|
dataZoom: [
|
|
24144
24162
|
{
|
|
24145
24163
|
type: "inside",
|
|
@@ -24178,7 +24196,7 @@ const WI = {
|
|
|
24178
24196
|
containLabel: !0
|
|
24179
24197
|
}
|
|
24180
24198
|
};
|
|
24181
|
-
function
|
|
24199
|
+
function XI(e, t, n) {
|
|
24182
24200
|
const r = n.reduce((u, d) => {
|
|
24183
24201
|
const f = ws(d, t);
|
|
24184
24202
|
return u[d.name] = li(d, f), u;
|
|
@@ -24196,26 +24214,26 @@ function qI(e, t, n) {
|
|
|
24196
24214
|
{
|
|
24197
24215
|
default: ({ value: u }) => u
|
|
24198
24216
|
}
|
|
24199
|
-
), i = Le.uniq(t.map((u) => u[e.x_axis.data_key])), a = i.every((u) => !Number.isNaN(Number(u))), s =
|
|
24200
|
-
xAxis:
|
|
24201
|
-
yAxis:
|
|
24217
|
+
), i = Le.uniq(t.map((u) => u[e.x_axis.data_key])), a = i.every((u) => !Number.isNaN(Number(u))), s = HI(e, i, a, t, o, n, r), c = {
|
|
24218
|
+
xAxis: WI(e, i),
|
|
24219
|
+
yAxis: qI(e, o),
|
|
24202
24220
|
series: s,
|
|
24203
24221
|
dataset: [
|
|
24204
24222
|
{
|
|
24205
24223
|
source: t
|
|
24206
24224
|
}
|
|
24207
24225
|
],
|
|
24208
|
-
tooltip:
|
|
24209
|
-
grid:
|
|
24210
|
-
legend:
|
|
24226
|
+
tooltip: GI(e, o),
|
|
24227
|
+
grid: LI(e),
|
|
24228
|
+
legend: UI()
|
|
24211
24229
|
};
|
|
24212
|
-
return nn({}, c,
|
|
24230
|
+
return nn({}, c, YI);
|
|
24213
24231
|
}
|
|
24214
24232
|
const gh = {
|
|
24215
24233
|
id: "builtin:echarts:click-scatter-chart:series",
|
|
24216
24234
|
displayName: "Click Scatter",
|
|
24217
|
-
nameRender:
|
|
24218
|
-
configRender:
|
|
24235
|
+
nameRender: JI,
|
|
24236
|
+
configRender: QI,
|
|
24219
24237
|
payload: [{
|
|
24220
24238
|
name: "seriesType",
|
|
24221
24239
|
description: "'scatter'",
|
|
@@ -24242,10 +24260,10 @@ const gh = {
|
|
|
24242
24260
|
valueType: "object"
|
|
24243
24261
|
}]
|
|
24244
24262
|
};
|
|
24245
|
-
function
|
|
24263
|
+
function QI(e) {
|
|
24246
24264
|
return /* @__PURE__ */ l(Ne, {});
|
|
24247
24265
|
}
|
|
24248
|
-
function
|
|
24266
|
+
function JI(e) {
|
|
24249
24267
|
return /* @__PURE__ */ l(z, {
|
|
24250
24268
|
children: "Click scatter"
|
|
24251
24269
|
});
|
|
@@ -24295,7 +24313,7 @@ const hh = {
|
|
|
24295
24313
|
};
|
|
24296
24314
|
$t.use([ei, Il, $l, Al, Lr, Vr, Fr, Jn, Pl, Nd]);
|
|
24297
24315
|
$t.registerTransform(Nl.regression);
|
|
24298
|
-
function
|
|
24316
|
+
function ZI({
|
|
24299
24317
|
conf: e,
|
|
24300
24318
|
data: t,
|
|
24301
24319
|
width: n,
|
|
@@ -24313,7 +24331,7 @@ function XI({
|
|
|
24313
24331
|
rowData: p
|
|
24314
24332
|
});
|
|
24315
24333
|
});
|
|
24316
|
-
}, u = j.useMemo(() =>
|
|
24334
|
+
}, u = j.useMemo(() => XI(e, t, i), [e, t]);
|
|
24317
24335
|
return !n || !r ? null : /* @__PURE__ */ l(Zn, {
|
|
24318
24336
|
echarts: $t,
|
|
24319
24337
|
option: u,
|
|
@@ -24326,7 +24344,7 @@ function XI({
|
|
|
24326
24344
|
}
|
|
24327
24345
|
});
|
|
24328
24346
|
}
|
|
24329
|
-
function
|
|
24347
|
+
function e$({
|
|
24330
24348
|
context: e,
|
|
24331
24349
|
instance: t
|
|
24332
24350
|
}) {
|
|
@@ -24364,7 +24382,7 @@ function QI({
|
|
|
24364
24382
|
size: "xs",
|
|
24365
24383
|
pl: "sm",
|
|
24366
24384
|
children: Object.values(g.top).map((m) => m)
|
|
24367
|
-
}), /* @__PURE__ */ l(
|
|
24385
|
+
}), /* @__PURE__ */ l(ZI, {
|
|
24368
24386
|
variables: o,
|
|
24369
24387
|
width: s,
|
|
24370
24388
|
height: h,
|
|
@@ -24380,14 +24398,14 @@ function QI({
|
|
|
24380
24398
|
})]
|
|
24381
24399
|
});
|
|
24382
24400
|
}
|
|
24383
|
-
const
|
|
24401
|
+
const t$ = [{
|
|
24384
24402
|
label: "Horizontal",
|
|
24385
24403
|
value: "horizontal"
|
|
24386
24404
|
}, {
|
|
24387
24405
|
label: "Vertical",
|
|
24388
24406
|
value: "vertical"
|
|
24389
24407
|
}];
|
|
24390
|
-
function
|
|
24408
|
+
function n$({
|
|
24391
24409
|
control: e,
|
|
24392
24410
|
index: t,
|
|
24393
24411
|
remove: n,
|
|
@@ -24454,7 +24472,7 @@ function ZI({
|
|
|
24454
24472
|
field: a
|
|
24455
24473
|
}) => /* @__PURE__ */ l(Ee, {
|
|
24456
24474
|
label: "Orientation",
|
|
24457
|
-
data:
|
|
24475
|
+
data: t$,
|
|
24458
24476
|
required: !0,
|
|
24459
24477
|
sx: {
|
|
24460
24478
|
flex: 1
|
|
@@ -24481,7 +24499,7 @@ function ZI({
|
|
|
24481
24499
|
})]
|
|
24482
24500
|
}, t);
|
|
24483
24501
|
}
|
|
24484
|
-
function
|
|
24502
|
+
function r$({
|
|
24485
24503
|
control: e,
|
|
24486
24504
|
watch: t,
|
|
24487
24505
|
variables: n
|
|
@@ -24532,7 +24550,7 @@ function e$({
|
|
|
24532
24550
|
})]
|
|
24533
24551
|
}), s.map((d, f) => /* @__PURE__ */ l(I.Panel, {
|
|
24534
24552
|
value: f.toString(),
|
|
24535
|
-
children: /* @__PURE__ */ l(
|
|
24553
|
+
children: /* @__PURE__ */ l(n$, {
|
|
24536
24554
|
control: e,
|
|
24537
24555
|
index: f,
|
|
24538
24556
|
remove: i,
|
|
@@ -24542,7 +24560,7 @@ function e$({
|
|
|
24542
24560
|
}, f))]
|
|
24543
24561
|
});
|
|
24544
24562
|
}
|
|
24545
|
-
const
|
|
24563
|
+
const o$ = ({
|
|
24546
24564
|
value: e,
|
|
24547
24565
|
onChange: t
|
|
24548
24566
|
}) => /* @__PURE__ */ l(Ie, {
|
|
@@ -24575,7 +24593,7 @@ const t$ = ({
|
|
|
24575
24593
|
].join(`
|
|
24576
24594
|
`)
|
|
24577
24595
|
}
|
|
24578
|
-
},
|
|
24596
|
+
}, i$ = ({
|
|
24579
24597
|
value: e,
|
|
24580
24598
|
onChange: t,
|
|
24581
24599
|
data: n
|
|
@@ -24631,7 +24649,7 @@ const t$ = ({
|
|
|
24631
24649
|
label: "Dynamic by a custom function",
|
|
24632
24650
|
labelPosition: "center",
|
|
24633
24651
|
variant: "dashed"
|
|
24634
|
-
}), /* @__PURE__ */ l(
|
|
24652
|
+
}), /* @__PURE__ */ l(o$, {
|
|
24635
24653
|
value: a.func_content,
|
|
24636
24654
|
onChange: d
|
|
24637
24655
|
}), /* @__PURE__ */ v(k, {
|
|
@@ -24658,15 +24676,15 @@ const t$ = ({
|
|
|
24658
24676
|
})
|
|
24659
24677
|
})]
|
|
24660
24678
|
});
|
|
24661
|
-
},
|
|
24679
|
+
}, a$ = ({
|
|
24662
24680
|
value: e,
|
|
24663
24681
|
onChange: t,
|
|
24664
24682
|
data: n
|
|
24665
|
-
}) => e.type !== "dynamic" ? null : /* @__PURE__ */ l(
|
|
24683
|
+
}) => e.type !== "dynamic" ? null : /* @__PURE__ */ l(i$, {
|
|
24666
24684
|
value: e,
|
|
24667
24685
|
onChange: t,
|
|
24668
24686
|
data: n
|
|
24669
|
-
}),
|
|
24687
|
+
}), l$ = ({
|
|
24670
24688
|
value: e,
|
|
24671
24689
|
onChange: t
|
|
24672
24690
|
}) => {
|
|
@@ -24688,13 +24706,13 @@ const t$ = ({
|
|
|
24688
24706
|
onChange: n
|
|
24689
24707
|
})
|
|
24690
24708
|
});
|
|
24691
|
-
},
|
|
24709
|
+
}, s$ = [{
|
|
24692
24710
|
label: "Static",
|
|
24693
24711
|
value: "static"
|
|
24694
24712
|
}, {
|
|
24695
24713
|
label: "Dynamic",
|
|
24696
24714
|
value: "dynamic"
|
|
24697
|
-
}],
|
|
24715
|
+
}], c$ = Nn(({
|
|
24698
24716
|
label: e = "Size",
|
|
24699
24717
|
value: t,
|
|
24700
24718
|
onChange: n,
|
|
@@ -24710,22 +24728,22 @@ const t$ = ({
|
|
|
24710
24728
|
children: [/* @__PURE__ */ l(Ee, {
|
|
24711
24729
|
ref: o,
|
|
24712
24730
|
label: e,
|
|
24713
|
-
data:
|
|
24731
|
+
data: s$,
|
|
24714
24732
|
value: t.type,
|
|
24715
24733
|
onChange: i,
|
|
24716
24734
|
sx: {
|
|
24717
24735
|
flexGrow: 1
|
|
24718
24736
|
}
|
|
24719
|
-
}), /* @__PURE__ */ l(
|
|
24737
|
+
}), /* @__PURE__ */ l(l$, {
|
|
24720
24738
|
value: t,
|
|
24721
24739
|
onChange: n
|
|
24722
|
-
}), /* @__PURE__ */ l(
|
|
24740
|
+
}), /* @__PURE__ */ l(a$, {
|
|
24723
24741
|
value: t,
|
|
24724
24742
|
onChange: n,
|
|
24725
24743
|
data: r
|
|
24726
24744
|
})]
|
|
24727
24745
|
});
|
|
24728
|
-
}),
|
|
24746
|
+
}), u$ = [{
|
|
24729
24747
|
label: "off",
|
|
24730
24748
|
value: ""
|
|
24731
24749
|
}, {
|
|
@@ -24768,7 +24786,7 @@ const t$ = ({
|
|
|
24768
24786
|
label: "insideBottomRight",
|
|
24769
24787
|
value: "insideBottomRight"
|
|
24770
24788
|
}];
|
|
24771
|
-
function
|
|
24789
|
+
function d$({
|
|
24772
24790
|
data: e,
|
|
24773
24791
|
control: t,
|
|
24774
24792
|
watch: n
|
|
@@ -24815,7 +24833,7 @@ function s$({
|
|
|
24815
24833
|
control: t,
|
|
24816
24834
|
render: ({
|
|
24817
24835
|
field: r
|
|
24818
|
-
}) => /* @__PURE__ */ l(
|
|
24836
|
+
}) => /* @__PURE__ */ l(c$, {
|
|
24819
24837
|
label: "Size",
|
|
24820
24838
|
data: e,
|
|
24821
24839
|
...r
|
|
@@ -24848,14 +24866,14 @@ function s$({
|
|
|
24848
24866
|
field: r
|
|
24849
24867
|
}) => /* @__PURE__ */ l(Ee, {
|
|
24850
24868
|
label: "Label Position",
|
|
24851
|
-
data:
|
|
24869
|
+
data: u$,
|
|
24852
24870
|
...r
|
|
24853
24871
|
})
|
|
24854
24872
|
})
|
|
24855
24873
|
})]
|
|
24856
24874
|
});
|
|
24857
24875
|
}
|
|
24858
|
-
function
|
|
24876
|
+
function f$({
|
|
24859
24877
|
control: e,
|
|
24860
24878
|
watch: t
|
|
24861
24879
|
}) {
|
|
@@ -24892,7 +24910,7 @@ function c$({
|
|
|
24892
24910
|
})
|
|
24893
24911
|
});
|
|
24894
24912
|
}
|
|
24895
|
-
const
|
|
24913
|
+
const p$ = ({
|
|
24896
24914
|
control: e,
|
|
24897
24915
|
data: t,
|
|
24898
24916
|
index: n,
|
|
@@ -24946,7 +24964,7 @@ const u$ = ({
|
|
|
24946
24964
|
},
|
|
24947
24965
|
children: "Delete this Metric"
|
|
24948
24966
|
})]
|
|
24949
|
-
}),
|
|
24967
|
+
}), g$ = ({
|
|
24950
24968
|
control: e,
|
|
24951
24969
|
watch: t,
|
|
24952
24970
|
data: n
|
|
@@ -25015,7 +25033,7 @@ const u$ = ({
|
|
|
25015
25033
|
})]
|
|
25016
25034
|
}), s.map((p, g) => /* @__PURE__ */ l(I.Panel, {
|
|
25017
25035
|
value: p.id,
|
|
25018
|
-
children: /* @__PURE__ */ l(
|
|
25036
|
+
children: /* @__PURE__ */ l(p$, {
|
|
25019
25037
|
control: e,
|
|
25020
25038
|
index: g,
|
|
25021
25039
|
remove: i,
|
|
@@ -25025,18 +25043,18 @@ const u$ = ({
|
|
|
25025
25043
|
})]
|
|
25026
25044
|
});
|
|
25027
25045
|
};
|
|
25028
|
-
function
|
|
25046
|
+
function h$({
|
|
25029
25047
|
data: e,
|
|
25030
25048
|
control: t,
|
|
25031
25049
|
watch: n
|
|
25032
25050
|
}) {
|
|
25033
|
-
return /* @__PURE__ */ l(
|
|
25051
|
+
return /* @__PURE__ */ l(g$, {
|
|
25034
25052
|
control: t,
|
|
25035
25053
|
watch: n,
|
|
25036
25054
|
data: e
|
|
25037
25055
|
});
|
|
25038
25056
|
}
|
|
25039
|
-
const
|
|
25057
|
+
const m$ = ({
|
|
25040
25058
|
disabled: e,
|
|
25041
25059
|
value: t,
|
|
25042
25060
|
onChange: n
|
|
@@ -25064,7 +25082,7 @@ const p$ = ({
|
|
|
25064
25082
|
}
|
|
25065
25083
|
}
|
|
25066
25084
|
})]
|
|
25067
|
-
}),
|
|
25085
|
+
}), v$ = ({
|
|
25068
25086
|
value: e,
|
|
25069
25087
|
onChange: t,
|
|
25070
25088
|
data: n
|
|
@@ -25119,7 +25137,7 @@ const p$ = ({
|
|
|
25119
25137
|
label: "Enabled",
|
|
25120
25138
|
checked: a.enabled,
|
|
25121
25139
|
onChange: (g) => c(g.currentTarget.checked)
|
|
25122
|
-
}), /* @__PURE__ */ l(
|
|
25140
|
+
}), /* @__PURE__ */ l(m$, {
|
|
25123
25141
|
value: a.func_content,
|
|
25124
25142
|
onChange: f,
|
|
25125
25143
|
disabled: !a.enabled
|
|
@@ -25148,7 +25166,7 @@ const p$ = ({
|
|
|
25148
25166
|
})]
|
|
25149
25167
|
});
|
|
25150
25168
|
};
|
|
25151
|
-
function
|
|
25169
|
+
function y$({
|
|
25152
25170
|
data: e,
|
|
25153
25171
|
control: t,
|
|
25154
25172
|
watch: n
|
|
@@ -25222,7 +25240,7 @@ function h$({
|
|
|
25222
25240
|
control: t,
|
|
25223
25241
|
render: ({
|
|
25224
25242
|
field: r
|
|
25225
|
-
}) => /* @__PURE__ */ l(
|
|
25243
|
+
}) => /* @__PURE__ */ l(v$, {
|
|
25226
25244
|
data: e,
|
|
25227
25245
|
...r
|
|
25228
25246
|
})
|
|
@@ -25230,7 +25248,7 @@ function h$({
|
|
|
25230
25248
|
})]
|
|
25231
25249
|
});
|
|
25232
25250
|
}
|
|
25233
|
-
const
|
|
25251
|
+
const b$ = [{
|
|
25234
25252
|
label: "left",
|
|
25235
25253
|
value: "left"
|
|
25236
25254
|
}, {
|
|
@@ -25239,14 +25257,14 @@ const m$ = [{
|
|
|
25239
25257
|
}, {
|
|
25240
25258
|
label: "right",
|
|
25241
25259
|
value: "right"
|
|
25242
|
-
}],
|
|
25260
|
+
}], S$ = [{
|
|
25243
25261
|
label: "left",
|
|
25244
25262
|
value: "left"
|
|
25245
25263
|
}, {
|
|
25246
25264
|
label: "right",
|
|
25247
25265
|
value: "right"
|
|
25248
25266
|
}];
|
|
25249
|
-
function
|
|
25267
|
+
function w$({
|
|
25250
25268
|
control: e,
|
|
25251
25269
|
index: t,
|
|
25252
25270
|
remove: n
|
|
@@ -25287,7 +25305,7 @@ function y$({
|
|
|
25287
25305
|
}) => /* @__PURE__ */ l(Ee, {
|
|
25288
25306
|
label: "Align",
|
|
25289
25307
|
required: !0,
|
|
25290
|
-
data:
|
|
25308
|
+
data: b$,
|
|
25291
25309
|
sx: {
|
|
25292
25310
|
flex: 1
|
|
25293
25311
|
},
|
|
@@ -25310,7 +25328,7 @@ function y$({
|
|
|
25310
25328
|
}) => /* @__PURE__ */ l(Ee, {
|
|
25311
25329
|
label: "Position",
|
|
25312
25330
|
required: !0,
|
|
25313
|
-
data:
|
|
25331
|
+
data: S$,
|
|
25314
25332
|
sx: {
|
|
25315
25333
|
flex: 1
|
|
25316
25334
|
},
|
|
@@ -25345,7 +25363,7 @@ function y$({
|
|
|
25345
25363
|
})]
|
|
25346
25364
|
});
|
|
25347
25365
|
}
|
|
25348
|
-
function
|
|
25366
|
+
function C$({
|
|
25349
25367
|
control: e,
|
|
25350
25368
|
watch: t
|
|
25351
25369
|
}) {
|
|
@@ -25390,7 +25408,7 @@ function b$({
|
|
|
25390
25408
|
})]
|
|
25391
25409
|
}), a.map((c, u) => /* @__PURE__ */ l(I.Panel, {
|
|
25392
25410
|
value: u.toString(),
|
|
25393
|
-
children: /* @__PURE__ */ l(
|
|
25411
|
+
children: /* @__PURE__ */ l(w$, {
|
|
25394
25412
|
control: e,
|
|
25395
25413
|
index: u,
|
|
25396
25414
|
remove: o
|
|
@@ -25398,7 +25416,7 @@ function b$({
|
|
|
25398
25416
|
}, u))]
|
|
25399
25417
|
});
|
|
25400
25418
|
}
|
|
25401
|
-
function
|
|
25419
|
+
function x$(e) {
|
|
25402
25420
|
return e || {
|
|
25403
25421
|
templates: {
|
|
25404
25422
|
top: "",
|
|
@@ -25406,18 +25424,18 @@ function S$(e) {
|
|
|
25406
25424
|
}
|
|
25407
25425
|
};
|
|
25408
25426
|
}
|
|
25409
|
-
function
|
|
25427
|
+
function _$({
|
|
25410
25428
|
reference_lines: e = [],
|
|
25411
25429
|
stats: t,
|
|
25412
25430
|
...n
|
|
25413
25431
|
}) {
|
|
25414
25432
|
return {
|
|
25415
25433
|
reference_lines: e,
|
|
25416
|
-
stats:
|
|
25434
|
+
stats: x$(t),
|
|
25417
25435
|
...n
|
|
25418
25436
|
};
|
|
25419
25437
|
}
|
|
25420
|
-
function
|
|
25438
|
+
function E$({
|
|
25421
25439
|
context: e
|
|
25422
25440
|
}) {
|
|
25423
25441
|
const {
|
|
@@ -25425,7 +25443,7 @@ function C$({
|
|
|
25425
25443
|
set: n
|
|
25426
25444
|
} = rt(e.instanceData, "config"), {
|
|
25427
25445
|
variables: r
|
|
25428
|
-
} = e, o = e.data, i = de(() => nn({}, t, js), [t]), a = de(() =>
|
|
25446
|
+
} = e, o = e.data, i = de(() => nn({}, t, js), [t]), a = de(() => _$(i), [i]);
|
|
25429
25447
|
Me(() => {
|
|
25430
25448
|
!Dt(i, a) && (console.log("config malformed, resetting to defaults", i, a), n(a));
|
|
25431
25449
|
}, [i, a]);
|
|
@@ -25502,41 +25520,41 @@ function C$({
|
|
|
25502
25520
|
})]
|
|
25503
25521
|
}), /* @__PURE__ */ l(I.Panel, {
|
|
25504
25522
|
value: "X Axis",
|
|
25505
|
-
children: /* @__PURE__ */ l(
|
|
25523
|
+
children: /* @__PURE__ */ l(y$, {
|
|
25506
25524
|
control: s,
|
|
25507
25525
|
watch: u,
|
|
25508
25526
|
data: o
|
|
25509
25527
|
})
|
|
25510
25528
|
}), /* @__PURE__ */ l(I.Panel, {
|
|
25511
25529
|
value: "Y Axes",
|
|
25512
|
-
children: /* @__PURE__ */ l(
|
|
25530
|
+
children: /* @__PURE__ */ l(C$, {
|
|
25513
25531
|
control: s,
|
|
25514
25532
|
watch: u
|
|
25515
25533
|
})
|
|
25516
25534
|
}), /* @__PURE__ */ l(I.Panel, {
|
|
25517
25535
|
value: "Scatter",
|
|
25518
|
-
children: /* @__PURE__ */ l(
|
|
25536
|
+
children: /* @__PURE__ */ l(d$, {
|
|
25519
25537
|
control: s,
|
|
25520
25538
|
watch: u,
|
|
25521
25539
|
data: o
|
|
25522
25540
|
})
|
|
25523
25541
|
}), /* @__PURE__ */ l(I.Panel, {
|
|
25524
25542
|
value: "Tooltip",
|
|
25525
|
-
children: /* @__PURE__ */ l(
|
|
25543
|
+
children: /* @__PURE__ */ l(h$, {
|
|
25526
25544
|
control: s,
|
|
25527
25545
|
watch: u,
|
|
25528
25546
|
data: o
|
|
25529
25547
|
})
|
|
25530
25548
|
}), /* @__PURE__ */ l(I.Panel, {
|
|
25531
25549
|
value: "Stats",
|
|
25532
|
-
children: /* @__PURE__ */ l(
|
|
25550
|
+
children: /* @__PURE__ */ l(f$, {
|
|
25533
25551
|
control: s,
|
|
25534
25552
|
watch: u,
|
|
25535
25553
|
data: o
|
|
25536
25554
|
})
|
|
25537
25555
|
}), /* @__PURE__ */ l(I.Panel, {
|
|
25538
25556
|
value: "Reference Lines",
|
|
25539
|
-
children: /* @__PURE__ */ l(
|
|
25557
|
+
children: /* @__PURE__ */ l(r$, {
|
|
25540
25558
|
variables: r,
|
|
25541
25559
|
control: s,
|
|
25542
25560
|
watch: u
|
|
@@ -25546,7 +25564,7 @@ function C$({
|
|
|
25546
25564
|
})
|
|
25547
25565
|
});
|
|
25548
25566
|
}
|
|
25549
|
-
class
|
|
25567
|
+
class O$ extends tn {
|
|
25550
25568
|
constructor() {
|
|
25551
25569
|
super(...arguments);
|
|
25552
25570
|
he(this, "VERSION", 2);
|
|
@@ -25572,12 +25590,12 @@ class x$ extends tn {
|
|
|
25572
25590
|
});
|
|
25573
25591
|
}
|
|
25574
25592
|
}
|
|
25575
|
-
const
|
|
25593
|
+
const R$ = {
|
|
25576
25594
|
displayName: "Scatter Chart",
|
|
25577
|
-
migrator: new
|
|
25595
|
+
migrator: new O$(),
|
|
25578
25596
|
name: "scatterChart",
|
|
25579
|
-
viewRender:
|
|
25580
|
-
configRender:
|
|
25597
|
+
viewRender: e$,
|
|
25598
|
+
configRender: E$,
|
|
25581
25599
|
createConfig: () => js,
|
|
25582
25600
|
triggers: [gh]
|
|
25583
25601
|
}, vh = [
|
|
@@ -25591,7 +25609,7 @@ const _$ = {
|
|
|
25591
25609
|
horizontal_align: "left",
|
|
25592
25610
|
font_size: "14px",
|
|
25593
25611
|
font_weight: "normal"
|
|
25594
|
-
},
|
|
25612
|
+
}, T$ = Q(({
|
|
25595
25613
|
context: e
|
|
25596
25614
|
}) => {
|
|
25597
25615
|
const t = lt(), {
|
|
@@ -25617,7 +25635,7 @@ const _$ = {
|
|
|
25617
25635
|
},
|
|
25618
25636
|
children: c
|
|
25619
25637
|
});
|
|
25620
|
-
}),
|
|
25638
|
+
}), M$ = ({
|
|
25621
25639
|
value: e,
|
|
25622
25640
|
onChange: t
|
|
25623
25641
|
}) => /* @__PURE__ */ l(Ie, {
|
|
@@ -25638,7 +25656,7 @@ const _$ = {
|
|
|
25638
25656
|
}
|
|
25639
25657
|
}
|
|
25640
25658
|
})
|
|
25641
|
-
}),
|
|
25659
|
+
}), k$ = Nn(({
|
|
25642
25660
|
value: e,
|
|
25643
25661
|
onChange: t
|
|
25644
25662
|
}, n) => {
|
|
@@ -25671,7 +25689,7 @@ const _$ = {
|
|
|
25671
25689
|
closeOnClickOutside: !1,
|
|
25672
25690
|
withCloseButton: !1,
|
|
25673
25691
|
children: r && /* @__PURE__ */ v(B, {
|
|
25674
|
-
children: [/* @__PURE__ */ l(
|
|
25692
|
+
children: [/* @__PURE__ */ l(M$, {
|
|
25675
25693
|
value: a,
|
|
25676
25694
|
onChange: s
|
|
25677
25695
|
}), /* @__PURE__ */ v(k, {
|
|
@@ -25698,7 +25716,7 @@ const _$ = {
|
|
|
25698
25716
|
})
|
|
25699
25717
|
})]
|
|
25700
25718
|
});
|
|
25701
|
-
}),
|
|
25719
|
+
}), D$ = [{
|
|
25702
25720
|
label: "Left",
|
|
25703
25721
|
value: "left"
|
|
25704
25722
|
}, {
|
|
@@ -25708,7 +25726,7 @@ const _$ = {
|
|
|
25708
25726
|
label: "Right",
|
|
25709
25727
|
value: "right"
|
|
25710
25728
|
}];
|
|
25711
|
-
function
|
|
25729
|
+
function P$({
|
|
25712
25730
|
context: e
|
|
25713
25731
|
}) {
|
|
25714
25732
|
const {
|
|
@@ -25777,7 +25795,7 @@ function M$({
|
|
|
25777
25795
|
control: i,
|
|
25778
25796
|
render: ({
|
|
25779
25797
|
field: p
|
|
25780
|
-
}) => /* @__PURE__ */ l(
|
|
25798
|
+
}) => /* @__PURE__ */ l(k$, {
|
|
25781
25799
|
...p
|
|
25782
25800
|
})
|
|
25783
25801
|
}), /* @__PURE__ */ l(Ae, {
|
|
@@ -25793,7 +25811,7 @@ function M$({
|
|
|
25793
25811
|
field: p
|
|
25794
25812
|
}) => /* @__PURE__ */ l(Ee, {
|
|
25795
25813
|
label: "Horizontal Alignment",
|
|
25796
|
-
data:
|
|
25814
|
+
data: D$,
|
|
25797
25815
|
...p
|
|
25798
25816
|
})
|
|
25799
25817
|
}), /* @__PURE__ */ l(V, {
|
|
@@ -25833,7 +25851,7 @@ function M$({
|
|
|
25833
25851
|
})
|
|
25834
25852
|
});
|
|
25835
25853
|
}
|
|
25836
|
-
class
|
|
25854
|
+
class I$ extends tn {
|
|
25837
25855
|
constructor() {
|
|
25838
25856
|
super(...arguments);
|
|
25839
25857
|
he(this, "VERSION", 1);
|
|
@@ -25845,14 +25863,14 @@ class k$ extends tn {
|
|
|
25845
25863
|
}));
|
|
25846
25864
|
}
|
|
25847
25865
|
}
|
|
25848
|
-
const
|
|
25866
|
+
const $$ = {
|
|
25849
25867
|
displayName: "Text",
|
|
25850
|
-
migrator: new
|
|
25868
|
+
migrator: new I$(),
|
|
25851
25869
|
name: "text",
|
|
25852
|
-
viewRender:
|
|
25853
|
-
configRender:
|
|
25870
|
+
viewRender: T$,
|
|
25871
|
+
configRender: P$,
|
|
25854
25872
|
createConfig: () => Hs
|
|
25855
|
-
},
|
|
25873
|
+
}, A$ = [{
|
|
25856
25874
|
value: "#25262B",
|
|
25857
25875
|
name: "Dark"
|
|
25858
25876
|
}, {
|
|
@@ -25899,12 +25917,12 @@ const D$ = {
|
|
|
25899
25917
|
value: e.value,
|
|
25900
25918
|
type: "single",
|
|
25901
25919
|
category: "basic"
|
|
25902
|
-
})),
|
|
25920
|
+
})), N$ = [mT, vT, ST, bT, yT, wT], yh = () => ({
|
|
25903
25921
|
id: "dashboard",
|
|
25904
25922
|
version: hs,
|
|
25905
25923
|
manifest: {
|
|
25906
|
-
viz: [bl,
|
|
25907
|
-
color: [...
|
|
25924
|
+
viz: [bl, XD, $$, HD, tP, mD, DT, IM, dD, rD, R$, RD, VD, NI, qM],
|
|
25925
|
+
color: [...A$, ...N$]
|
|
25908
25926
|
}
|
|
25909
25927
|
}), Oo = new ET(), Vt = {
|
|
25910
25928
|
pluginManager: zn("pluginManager"),
|
|
@@ -25934,7 +25952,7 @@ try {
|
|
|
25934
25952
|
Oo.install(yh());
|
|
25935
25953
|
} catch {
|
|
25936
25954
|
}
|
|
25937
|
-
function
|
|
25955
|
+
function L$(e, t) {
|
|
25938
25956
|
const {
|
|
25939
25957
|
value: n,
|
|
25940
25958
|
set: r
|
|
@@ -25949,12 +25967,12 @@ function $$(e, t) {
|
|
|
25949
25967
|
commit: a
|
|
25950
25968
|
};
|
|
25951
25969
|
}
|
|
25952
|
-
function
|
|
25970
|
+
function V$(e) {
|
|
25953
25971
|
const {
|
|
25954
25972
|
config: t,
|
|
25955
25973
|
setConfig: n,
|
|
25956
25974
|
commit: r
|
|
25957
|
-
} =
|
|
25975
|
+
} = L$(e, {
|
|
25958
25976
|
urlTemplate: "",
|
|
25959
25977
|
openInNewTab: !0
|
|
25960
25978
|
});
|
|
@@ -25984,7 +26002,7 @@ function A$(e) {
|
|
|
25984
26002
|
})]
|
|
25985
26003
|
});
|
|
25986
26004
|
}
|
|
25987
|
-
async function
|
|
26005
|
+
async function F$(e, t) {
|
|
25988
26006
|
const {
|
|
25989
26007
|
urlTemplate: n,
|
|
25990
26008
|
openInNewTab: r
|
|
@@ -25997,7 +26015,7 @@ async function N$(e, t) {
|
|
|
25997
26015
|
}
|
|
25998
26016
|
}));
|
|
25999
26017
|
}
|
|
26000
|
-
class
|
|
26018
|
+
class z$ extends tn {
|
|
26001
26019
|
constructor() {
|
|
26002
26020
|
super(...arguments);
|
|
26003
26021
|
he(this, "VERSION", 1);
|
|
@@ -26006,12 +26024,12 @@ class L$ extends tn {
|
|
|
26006
26024
|
this.version(1, (n) => n);
|
|
26007
26025
|
}
|
|
26008
26026
|
}
|
|
26009
|
-
const
|
|
26027
|
+
const j$ = {
|
|
26010
26028
|
displayName: "Open Link",
|
|
26011
26029
|
id: "builtin:op:open-link",
|
|
26012
|
-
configRender:
|
|
26013
|
-
run:
|
|
26014
|
-
migrator: new
|
|
26030
|
+
configRender: V$,
|
|
26031
|
+
run: F$,
|
|
26032
|
+
migrator: new z$(),
|
|
26015
26033
|
createDefaultConfig: () => ({
|
|
26016
26034
|
version: 1,
|
|
26017
26035
|
config: {
|
|
@@ -26020,7 +26038,7 @@ const V$ = {
|
|
|
26020
26038
|
}
|
|
26021
26039
|
})
|
|
26022
26040
|
};
|
|
26023
|
-
function
|
|
26041
|
+
function H$(e) {
|
|
26024
26042
|
const {
|
|
26025
26043
|
value: t,
|
|
26026
26044
|
set: n
|
|
@@ -26029,24 +26047,24 @@ function F$(e) {
|
|
|
26029
26047
|
});
|
|
26030
26048
|
return [(t == null ? void 0 : t.template) || "", r];
|
|
26031
26049
|
}
|
|
26032
|
-
function
|
|
26033
|
-
const [t, n] =
|
|
26050
|
+
function K$(e) {
|
|
26051
|
+
const [t, n] = H$(e.operation);
|
|
26034
26052
|
return /* @__PURE__ */ l(se, {
|
|
26035
26053
|
defaultValue: t,
|
|
26036
26054
|
onBlur: (r) => n(r.currentTarget.value),
|
|
26037
26055
|
label: "console.log"
|
|
26038
26056
|
});
|
|
26039
26057
|
}
|
|
26040
|
-
async function
|
|
26058
|
+
async function B$(e, t) {
|
|
26041
26059
|
const n = await t.operationData.getItem("config"), r = Ol(n.template || "");
|
|
26042
26060
|
console.log("run with payload", e), console.log(r(e));
|
|
26043
26061
|
}
|
|
26044
|
-
const
|
|
26062
|
+
const G$ = {
|
|
26045
26063
|
displayName: "console.log (debug)",
|
|
26046
26064
|
id: "builtin:op:debug",
|
|
26047
|
-
configRender:
|
|
26048
|
-
run:
|
|
26049
|
-
},
|
|
26065
|
+
configRender: K$,
|
|
26066
|
+
run: B$
|
|
26067
|
+
}, W$ = Q((e) => {
|
|
26050
26068
|
const t = lt(), {
|
|
26051
26069
|
value: n,
|
|
26052
26070
|
set: r
|
|
@@ -26066,7 +26084,7 @@ const H$ = {
|
|
|
26066
26084
|
data: t.views.options
|
|
26067
26085
|
});
|
|
26068
26086
|
});
|
|
26069
|
-
async function
|
|
26087
|
+
async function q$(e, t) {
|
|
26070
26088
|
const r = (await t.operationData.getItem("config")).viewID;
|
|
26071
26089
|
window.dispatchEvent(new CustomEvent("open-view", {
|
|
26072
26090
|
detail: {
|
|
@@ -26074,16 +26092,16 @@ async function B$(e, t) {
|
|
|
26074
26092
|
}
|
|
26075
26093
|
}));
|
|
26076
26094
|
}
|
|
26077
|
-
const
|
|
26095
|
+
const U$ = {
|
|
26078
26096
|
displayName: "Open View",
|
|
26079
26097
|
id: "builtin:op:open_view",
|
|
26080
|
-
configRender:
|
|
26081
|
-
run:
|
|
26082
|
-
},
|
|
26098
|
+
configRender: W$,
|
|
26099
|
+
run: q$
|
|
26100
|
+
}, Y$ = {
|
|
26083
26101
|
dictionary: {}
|
|
26084
|
-
},
|
|
26102
|
+
}, X$ = Q((e) => {
|
|
26085
26103
|
const t = lt(), {
|
|
26086
|
-
value: n =
|
|
26104
|
+
value: n = Y$,
|
|
26087
26105
|
set: r
|
|
26088
26106
|
} = rt(e.operation.operationData, "config"), {
|
|
26089
26107
|
dictionary: o = {}
|
|
@@ -26140,7 +26158,7 @@ const G$ = {
|
|
|
26140
26158
|
})]
|
|
26141
26159
|
});
|
|
26142
26160
|
});
|
|
26143
|
-
async function
|
|
26161
|
+
async function Q$(e, t) {
|
|
26144
26162
|
const r = (await t.operationData.getItem("config")).dictionary;
|
|
26145
26163
|
window.dispatchEvent(new CustomEvent("set-filter-values", {
|
|
26146
26164
|
detail: {
|
|
@@ -26149,13 +26167,13 @@ async function U$(e, t) {
|
|
|
26149
26167
|
}
|
|
26150
26168
|
}));
|
|
26151
26169
|
}
|
|
26152
|
-
const
|
|
26170
|
+
const J$ = {
|
|
26153
26171
|
displayName: "Set Filter Values",
|
|
26154
26172
|
id: "builtin:op:set_filter_values",
|
|
26155
|
-
configRender:
|
|
26156
|
-
run:
|
|
26157
|
-
}, da = [
|
|
26158
|
-
class
|
|
26173
|
+
configRender: X$,
|
|
26174
|
+
run: Q$
|
|
26175
|
+
}, da = [G$, j$, U$, J$];
|
|
26176
|
+
class Z$ {
|
|
26159
26177
|
constructor(t, n = da) {
|
|
26160
26178
|
he(this, "attachments");
|
|
26161
26179
|
this.operations = n;
|
|
@@ -26232,7 +26250,7 @@ class Bs {
|
|
|
26232
26250
|
he(this, "operationManager");
|
|
26233
26251
|
he(this, "triggerManager");
|
|
26234
26252
|
he(this, "attachments");
|
|
26235
|
-
this.operationManager = new
|
|
26253
|
+
this.operationManager = new Z$(t, r), this.triggerManager = new PT(t, n);
|
|
26236
26254
|
const o = async (i) => {
|
|
26237
26255
|
const { id: a, triggerRef: s, operationRef: c } = await i.getItem(null);
|
|
26238
26256
|
return {
|
|
@@ -26280,14 +26298,14 @@ class Bs {
|
|
|
26280
26298
|
);
|
|
26281
26299
|
}
|
|
26282
26300
|
}
|
|
26283
|
-
function
|
|
26301
|
+
function eA(e, t) {
|
|
26284
26302
|
const [n, r] = Xe([]);
|
|
26285
26303
|
return Yo(async () => {
|
|
26286
26304
|
const o = await e.getInteractionList();
|
|
26287
26305
|
r(o);
|
|
26288
26306
|
}, [t]), n;
|
|
26289
26307
|
}
|
|
26290
|
-
const
|
|
26308
|
+
const tA = Q(({
|
|
26291
26309
|
item: e,
|
|
26292
26310
|
manager: t,
|
|
26293
26311
|
instance: n,
|
|
@@ -26321,13 +26339,13 @@ const J$ = Q(({
|
|
|
26321
26339
|
});
|
|
26322
26340
|
}
|
|
26323
26341
|
return null;
|
|
26324
|
-
}),
|
|
26342
|
+
}), nA = (e) => {
|
|
26325
26343
|
const [t, n] = Xe(0), {
|
|
26326
26344
|
interactionManager: r,
|
|
26327
26345
|
instance: o,
|
|
26328
26346
|
sampleData: i,
|
|
26329
26347
|
variables: a
|
|
26330
|
-
} = e, s =
|
|
26348
|
+
} = e, s = eA(r, t), c = async () => {
|
|
26331
26349
|
const p = await r.triggerManager.createOrGetTrigger(gn(), r.triggerManager.getTriggerSchemaList()[0]), g = await r.operationManager.createOrGetOperation(gn(), r.operationManager.getOperationSchemaList()[0]);
|
|
26332
26350
|
await r.addInteraction(p, g), n((h) => h + 1);
|
|
26333
26351
|
};
|
|
@@ -26354,7 +26372,7 @@ const J$ = Q(({
|
|
|
26354
26372
|
title: "Unavailable",
|
|
26355
26373
|
color: "gray",
|
|
26356
26374
|
children: "This visualization does not have available interactions to choose from"
|
|
26357
|
-
}), s.map((p) => /* @__PURE__ */ l(
|
|
26375
|
+
}), s.map((p) => /* @__PURE__ */ l(tA, {
|
|
26358
26376
|
onRemove: u,
|
|
26359
26377
|
instance: o,
|
|
26360
26378
|
sampleData: i,
|
|
@@ -26370,7 +26388,7 @@ const J$ = Q(({
|
|
|
26370
26388
|
children: "Add interaction"
|
|
26371
26389
|
})]
|
|
26372
26390
|
});
|
|
26373
|
-
},
|
|
26391
|
+
}, rA = () => {
|
|
26374
26392
|
const {
|
|
26375
26393
|
panel: e,
|
|
26376
26394
|
data: t
|
|
@@ -26392,12 +26410,12 @@ const J$ = Q(({
|
|
|
26392
26410
|
sampleData: t,
|
|
26393
26411
|
variables: []
|
|
26394
26412
|
};
|
|
26395
|
-
},
|
|
26396
|
-
const e =
|
|
26397
|
-
return /* @__PURE__ */ l(
|
|
26413
|
+
}, oA = () => {
|
|
26414
|
+
const e = rA();
|
|
26415
|
+
return /* @__PURE__ */ l(nA, {
|
|
26398
26416
|
...e
|
|
26399
26417
|
});
|
|
26400
|
-
},
|
|
26418
|
+
}, iA = Q(() => {
|
|
26401
26419
|
const {
|
|
26402
26420
|
panel: e
|
|
26403
26421
|
} = Gt(), [t, n] = j.useState(e.description), r = e.description !== t, o = j.useCallback(() => {
|
|
@@ -26434,7 +26452,7 @@ const J$ = Q(({
|
|
|
26434
26452
|
}
|
|
26435
26453
|
})]
|
|
26436
26454
|
});
|
|
26437
|
-
}),
|
|
26455
|
+
}), aA = Q(() => {
|
|
26438
26456
|
const {
|
|
26439
26457
|
panel: e
|
|
26440
26458
|
} = Gt(), {
|
|
@@ -26447,7 +26465,7 @@ const J$ = Q(({
|
|
|
26447
26465
|
onChange: (n) => t.border.setEnabled(n.currentTarget.checked)
|
|
26448
26466
|
})
|
|
26449
26467
|
});
|
|
26450
|
-
}),
|
|
26468
|
+
}), lA = Q(() => {
|
|
26451
26469
|
const {
|
|
26452
26470
|
panel: {
|
|
26453
26471
|
title: e,
|
|
@@ -26502,7 +26520,7 @@ const J$ = Q(({
|
|
|
26502
26520
|
})]
|
|
26503
26521
|
})
|
|
26504
26522
|
});
|
|
26505
|
-
}),
|
|
26523
|
+
}), sA = Q(() => {
|
|
26506
26524
|
const {
|
|
26507
26525
|
panel: e
|
|
26508
26526
|
} = Gt(), {
|
|
@@ -26539,7 +26557,7 @@ const J$ = Q(({
|
|
|
26539
26557
|
}
|
|
26540
26558
|
});
|
|
26541
26559
|
});
|
|
26542
|
-
function
|
|
26560
|
+
function cA() {
|
|
26543
26561
|
return /* @__PURE__ */ v(k, {
|
|
26544
26562
|
grow: !0,
|
|
26545
26563
|
noWrap: !0,
|
|
@@ -26558,22 +26576,22 @@ function aA() {
|
|
|
26558
26576
|
label: "Style",
|
|
26559
26577
|
labelPosition: "center",
|
|
26560
26578
|
variant: "dashed"
|
|
26561
|
-
}), /* @__PURE__ */ l(
|
|
26579
|
+
}), /* @__PURE__ */ l(aA, {}), /* @__PURE__ */ l(Ae, {
|
|
26562
26580
|
label: "Info",
|
|
26563
26581
|
labelPosition: "center",
|
|
26564
26582
|
variant: "dashed"
|
|
26565
|
-
}), /* @__PURE__ */ l(
|
|
26583
|
+
}), /* @__PURE__ */ l(sA, {}), /* @__PURE__ */ l(iA, {})]
|
|
26566
26584
|
}), /* @__PURE__ */ l(Ie, {
|
|
26567
26585
|
sx: {
|
|
26568
26586
|
height: "100%",
|
|
26569
26587
|
flexGrow: 1,
|
|
26570
26588
|
maxWidth: "60%"
|
|
26571
26589
|
},
|
|
26572
|
-
children: /* @__PURE__ */ l(
|
|
26590
|
+
children: /* @__PURE__ */ l(lA, {})
|
|
26573
26591
|
})]
|
|
26574
26592
|
});
|
|
26575
26593
|
}
|
|
26576
|
-
const
|
|
26594
|
+
const uA = Q(function() {
|
|
26577
26595
|
const t = lt(), {
|
|
26578
26596
|
panel: {
|
|
26579
26597
|
queryID: n,
|
|
@@ -26608,7 +26626,7 @@ const lA = Q(function() {
|
|
|
26608
26626
|
});
|
|
26609
26627
|
});
|
|
26610
26628
|
var bh = /* @__PURE__ */ ((e) => (e.migrated = "migrated", e.nothingToMigrate = "nothingToMigrate", e.checkFailed = "checkFailed", e.migrationFailed = "migrationFailed", e))(bh || {}), _i = /* @__PURE__ */ ((e) => (e.notStarted = "notStarted", e.inProgress = "inProgress", e.done = "done", e))(_i || {});
|
|
26611
|
-
class
|
|
26629
|
+
class dA {
|
|
26612
26630
|
constructor(t) {
|
|
26613
26631
|
he(this, "vizInstance");
|
|
26614
26632
|
he(this, "operationManager");
|
|
@@ -26660,7 +26678,7 @@ function Sh(e) {
|
|
|
26660
26678
|
return n.createScoped().provideFactory(Vt.instanceScope.vizInstance, () => r.getOrCreateInstance(e)).provideFactory(Vt.instanceScope.interactionManager, (i) => {
|
|
26661
26679
|
const a = i.getRequired(Vt.instanceScope.vizInstance);
|
|
26662
26680
|
return new Bs(a, o, da);
|
|
26663
|
-
}).provideFactory(Vt.instanceScope.operationManager, (i) => i.getRequired(Vt.instanceScope.interactionManager).operationManager).provideFactory(Vt.instanceScope.triggerManager, (i) => i.getRequired(Vt.instanceScope.interactionManager).triggerManager).provideValue(Vt.instanceScope.panelModel, t).provideFactory(Vt.instanceScope.migrator, (i) => new
|
|
26681
|
+
}).provideFactory(Vt.instanceScope.operationManager, (i) => i.getRequired(Vt.instanceScope.interactionManager).operationManager).provideFactory(Vt.instanceScope.triggerManager, (i) => i.getRequired(Vt.instanceScope.interactionManager).triggerManager).provideValue(Vt.instanceScope.panelModel, t).provideFactory(Vt.instanceScope.migrator, (i) => new dA(i));
|
|
26664
26682
|
},
|
|
26665
26683
|
[e.viz.type, e.viz.conf]
|
|
26666
26684
|
);
|
|
@@ -26682,7 +26700,7 @@ function Ch(e, t) {
|
|
|
26682
26700
|
e(r);
|
|
26683
26701
|
}), [e, t.viz.type]), n;
|
|
26684
26702
|
}
|
|
26685
|
-
function
|
|
26703
|
+
function fA({
|
|
26686
26704
|
setVizConf: e,
|
|
26687
26705
|
...t
|
|
26688
26706
|
}) {
|
|
@@ -26702,7 +26720,7 @@ function cA({
|
|
|
26702
26720
|
children: "Checking update..."
|
|
26703
26721
|
});
|
|
26704
26722
|
}
|
|
26705
|
-
function
|
|
26723
|
+
function pA(e) {
|
|
26706
26724
|
const {
|
|
26707
26725
|
panel: t,
|
|
26708
26726
|
setVizConf: n
|
|
@@ -26718,7 +26736,7 @@ function uA(e) {
|
|
|
26718
26736
|
children: "Checking update"
|
|
26719
26737
|
});
|
|
26720
26738
|
}
|
|
26721
|
-
function
|
|
26739
|
+
function gA(e, t) {
|
|
26722
26740
|
const {
|
|
26723
26741
|
vizManager: n
|
|
26724
26742
|
} = Qn(Fn), {
|
|
@@ -26741,7 +26759,7 @@ function dA(e, t) {
|
|
|
26741
26759
|
try {
|
|
26742
26760
|
return n.resolveComponent(r.type), /* @__PURE__ */ l(qi, {
|
|
26743
26761
|
configure: d,
|
|
26744
|
-
children: /* @__PURE__ */ l(
|
|
26762
|
+
children: /* @__PURE__ */ l(pA, {
|
|
26745
26763
|
setVizConf: r.setConf,
|
|
26746
26764
|
panel: u,
|
|
26747
26765
|
data: e,
|
|
@@ -26753,7 +26771,7 @@ function dA(e, t) {
|
|
|
26753
26771
|
return console.info(dt(f, "message")), null;
|
|
26754
26772
|
}
|
|
26755
26773
|
}
|
|
26756
|
-
const
|
|
26774
|
+
const hA = ["richText", "button"], xh = Q(function({
|
|
26757
26775
|
height: t,
|
|
26758
26776
|
viz: n,
|
|
26759
26777
|
data: r,
|
|
@@ -26765,11 +26783,11 @@ const fA = ["richText", "button"], xh = Q(function({
|
|
|
26765
26783
|
ref: s,
|
|
26766
26784
|
width: c,
|
|
26767
26785
|
height: u
|
|
26768
|
-
} = Ao(), d =
|
|
26786
|
+
} = Ao(), d = gA(r, {
|
|
26769
26787
|
w: c,
|
|
26770
26788
|
h: u
|
|
26771
26789
|
});
|
|
26772
|
-
if (
|
|
26790
|
+
if (hA.includes(n.type))
|
|
26773
26791
|
return /* @__PURE__ */ l("div", {
|
|
26774
26792
|
className: "viz-root",
|
|
26775
26793
|
style: {
|
|
@@ -26815,7 +26833,7 @@ const fA = ["richText", "button"], xh = Q(function({
|
|
|
26815
26833
|
children: d
|
|
26816
26834
|
})]
|
|
26817
26835
|
});
|
|
26818
|
-
}),
|
|
26836
|
+
}), mA = Q(() => {
|
|
26819
26837
|
const {
|
|
26820
26838
|
data: e,
|
|
26821
26839
|
loading: t,
|
|
@@ -26830,7 +26848,7 @@ const fA = ["richText", "button"], xh = Q(function({
|
|
|
26830
26848
|
height: "100%"
|
|
26831
26849
|
});
|
|
26832
26850
|
}), Sl = [];
|
|
26833
|
-
function
|
|
26851
|
+
function vA() {
|
|
26834
26852
|
const {
|
|
26835
26853
|
vizManager: e
|
|
26836
26854
|
} = Qn(Fn);
|
|
@@ -26839,14 +26857,14 @@ function gA() {
|
|
|
26839
26857
|
label: t.displayName
|
|
26840
26858
|
})).concat(Sl), [e]);
|
|
26841
26859
|
}
|
|
26842
|
-
function
|
|
26860
|
+
function yA(e, t) {
|
|
26843
26861
|
try {
|
|
26844
26862
|
return e.resolveComponent(t).createConfig();
|
|
26845
26863
|
} catch {
|
|
26846
26864
|
return null;
|
|
26847
26865
|
}
|
|
26848
26866
|
}
|
|
26849
|
-
function
|
|
26867
|
+
function bA() {
|
|
26850
26868
|
const {
|
|
26851
26869
|
data: e,
|
|
26852
26870
|
panel: {
|
|
@@ -26876,7 +26894,7 @@ function mA() {
|
|
|
26876
26894
|
try {
|
|
26877
26895
|
return d.resolveComponent(f.viz.type), /* @__PURE__ */ l(qi, {
|
|
26878
26896
|
configure: g,
|
|
26879
|
-
children: /* @__PURE__ */ l(
|
|
26897
|
+
children: /* @__PURE__ */ l(fA, {
|
|
26880
26898
|
variables: t,
|
|
26881
26899
|
setVizConf: n.setConf,
|
|
26882
26900
|
panel: f,
|
|
@@ -26889,7 +26907,7 @@ function mA() {
|
|
|
26889
26907
|
return console.info(dt(h, "message")), null;
|
|
26890
26908
|
}
|
|
26891
26909
|
}
|
|
26892
|
-
const
|
|
26910
|
+
const SA = Q(() => {
|
|
26893
26911
|
const {
|
|
26894
26912
|
data: e,
|
|
26895
26913
|
panel: {
|
|
@@ -26900,7 +26918,7 @@ const vA = Q(() => {
|
|
|
26900
26918
|
} = Qn(Fn), a = j.useCallback(() => {
|
|
26901
26919
|
if (!o)
|
|
26902
26920
|
return;
|
|
26903
|
-
const g =
|
|
26921
|
+
const g = yA(i, n);
|
|
26904
26922
|
t.setType(n), t.setConf(g || {});
|
|
26905
26923
|
}, [t, o, n]), s = (g) => {
|
|
26906
26924
|
try {
|
|
@@ -26911,11 +26929,11 @@ const vA = Q(() => {
|
|
|
26911
26929
|
}, c = j.useMemo(() => {
|
|
26912
26930
|
var g;
|
|
26913
26931
|
return (g = Sl.find((h) => h.value === n)) == null ? void 0 : g.Panel;
|
|
26914
|
-
}, [n, Sl]), u =
|
|
26932
|
+
}, [n, Sl]), u = bA(), d = c ? Sr(c, {
|
|
26915
26933
|
data: e,
|
|
26916
26934
|
conf: t.conf,
|
|
26917
26935
|
setConf: t.setConf
|
|
26918
|
-
}) : null, f = u || d, p =
|
|
26936
|
+
}) : null, f = u || d, p = vA();
|
|
26919
26937
|
return /* @__PURE__ */ v(Ne, {
|
|
26920
26938
|
children: [/* @__PURE__ */ l(Ee, {
|
|
26921
26939
|
label: "Visualization",
|
|
@@ -26937,7 +26955,7 @@ const vA = Q(() => {
|
|
|
26937
26955
|
})]
|
|
26938
26956
|
});
|
|
26939
26957
|
});
|
|
26940
|
-
function
|
|
26958
|
+
function wA() {
|
|
26941
26959
|
return /* @__PURE__ */ v(k, {
|
|
26942
26960
|
grow: !0,
|
|
26943
26961
|
noWrap: !0,
|
|
@@ -26954,18 +26972,18 @@ function yA() {
|
|
|
26954
26972
|
overflow: "scroll",
|
|
26955
26973
|
height: "100%"
|
|
26956
26974
|
},
|
|
26957
|
-
children: /* @__PURE__ */ l(
|
|
26975
|
+
children: /* @__PURE__ */ l(SA, {})
|
|
26958
26976
|
}), /* @__PURE__ */ l(Ie, {
|
|
26959
26977
|
sx: {
|
|
26960
26978
|
height: "100%",
|
|
26961
26979
|
flexGrow: 1,
|
|
26962
26980
|
maxWidth: "60%"
|
|
26963
26981
|
},
|
|
26964
|
-
children: /* @__PURE__ */ l(
|
|
26982
|
+
children: /* @__PURE__ */ l(mA, {})
|
|
26965
26983
|
})]
|
|
26966
26984
|
});
|
|
26967
26985
|
}
|
|
26968
|
-
const
|
|
26986
|
+
const CA = R.model("VariableModel", {
|
|
26969
26987
|
name: R.string,
|
|
26970
26988
|
size: R.string,
|
|
26971
26989
|
weight: R.string,
|
|
@@ -27000,7 +27018,7 @@ const bA = R.model("VariableModel", {
|
|
|
27000
27018
|
return In(e);
|
|
27001
27019
|
}
|
|
27002
27020
|
}));
|
|
27003
|
-
class
|
|
27021
|
+
class xA {
|
|
27004
27022
|
constructor(t) {
|
|
27005
27023
|
he(this, "origin");
|
|
27006
27024
|
he(this, "copy");
|
|
@@ -27016,7 +27034,7 @@ class SA {
|
|
|
27016
27034
|
Rr(this.copy, t);
|
|
27017
27035
|
}
|
|
27018
27036
|
}
|
|
27019
|
-
const
|
|
27037
|
+
const _A = (e) => new xA(e), Na = {
|
|
27020
27038
|
name: "new_var",
|
|
27021
27039
|
size: "1rem",
|
|
27022
27040
|
weight: "initial",
|
|
@@ -27036,7 +27054,7 @@ const wA = (e) => new SA(e), Na = {
|
|
|
27036
27054
|
average: !1
|
|
27037
27055
|
}
|
|
27038
27056
|
};
|
|
27039
|
-
class
|
|
27057
|
+
class EA {
|
|
27040
27058
|
constructor(t) {
|
|
27041
27059
|
he(this, "panel");
|
|
27042
27060
|
he(this, "selected");
|
|
@@ -27061,11 +27079,11 @@ class CA {
|
|
|
27061
27079
|
}
|
|
27062
27080
|
}
|
|
27063
27081
|
}
|
|
27064
|
-
function
|
|
27082
|
+
function OA() {
|
|
27065
27083
|
const { panel: e } = Gt();
|
|
27066
|
-
return On(() => new
|
|
27084
|
+
return On(() => new EA(e), [e]);
|
|
27067
27085
|
}
|
|
27068
|
-
const
|
|
27086
|
+
const RA = j.forwardRef(function({
|
|
27069
27087
|
value: t,
|
|
27070
27088
|
onChange: n,
|
|
27071
27089
|
data: r,
|
|
@@ -27140,7 +27158,7 @@ const _A = j.forwardRef(function({
|
|
|
27140
27158
|
overflow: "auto",
|
|
27141
27159
|
paddingRight: 10
|
|
27142
27160
|
}
|
|
27143
|
-
})),
|
|
27161
|
+
})), TA = (e) => {
|
|
27144
27162
|
const {
|
|
27145
27163
|
uiModel: t
|
|
27146
27164
|
} = e;
|
|
@@ -27153,7 +27171,7 @@ const _A = j.forwardRef(function({
|
|
|
27153
27171
|
children: n.name
|
|
27154
27172
|
}, n.name))
|
|
27155
27173
|
});
|
|
27156
|
-
},
|
|
27174
|
+
}, MA = Q(TA), kA = ({
|
|
27157
27175
|
variable: e,
|
|
27158
27176
|
data: t
|
|
27159
27177
|
}) => /* @__PURE__ */ l(k, {
|
|
@@ -27166,8 +27184,8 @@ const _A = j.forwardRef(function({
|
|
|
27166
27184
|
p: "md",
|
|
27167
27185
|
children: Kg(e, t)
|
|
27168
27186
|
})
|
|
27169
|
-
}),
|
|
27170
|
-
const t = On(() =>
|
|
27187
|
+
}), DA = Q(kA), PA = (e) => {
|
|
27188
|
+
const t = On(() => _A(e.variable), [e.variable]), {
|
|
27171
27189
|
classes: n
|
|
27172
27190
|
} = _h(), {
|
|
27173
27191
|
data: r
|
|
@@ -27194,18 +27212,18 @@ const _A = j.forwardRef(function({
|
|
|
27194
27212
|
onClick: () => e.uiModel.remove(e.variable),
|
|
27195
27213
|
children: /* @__PURE__ */ l(Wp, {})
|
|
27196
27214
|
})]
|
|
27197
|
-
}), /* @__PURE__ */ l(
|
|
27215
|
+
}), /* @__PURE__ */ l(RA, {
|
|
27198
27216
|
value: In(t.copy),
|
|
27199
27217
|
onChange: t.update,
|
|
27200
27218
|
data: r
|
|
27201
27219
|
})]
|
|
27202
|
-
}), /* @__PURE__ */ l(
|
|
27220
|
+
}), /* @__PURE__ */ l(DA, {
|
|
27203
27221
|
variable: In(t.copy),
|
|
27204
27222
|
data: r
|
|
27205
27223
|
})]
|
|
27206
27224
|
});
|
|
27207
|
-
},
|
|
27208
|
-
const e =
|
|
27225
|
+
}, IA = Q(PA), $A = () => {
|
|
27226
|
+
const e = OA(), {
|
|
27209
27227
|
classes: t
|
|
27210
27228
|
} = _h();
|
|
27211
27229
|
return /* @__PURE__ */ v(k, {
|
|
@@ -27227,12 +27245,12 @@ const _A = j.forwardRef(function({
|
|
|
27227
27245
|
fullWidth: !0,
|
|
27228
27246
|
children: "Add Variable"
|
|
27229
27247
|
})
|
|
27230
|
-
}), /* @__PURE__ */ l(
|
|
27248
|
+
}), /* @__PURE__ */ l(MA, {
|
|
27231
27249
|
uiModel: e
|
|
27232
27250
|
})]
|
|
27233
27251
|
})
|
|
27234
27252
|
}), e.selected ? /* @__PURE__ */ l(Ne, {
|
|
27235
|
-
children: /* @__PURE__ */ l(
|
|
27253
|
+
children: /* @__PURE__ */ l(IA, {
|
|
27236
27254
|
uiModel: e,
|
|
27237
27255
|
variable: e.selected
|
|
27238
27256
|
})
|
|
@@ -27240,7 +27258,7 @@ const _A = j.forwardRef(function({
|
|
|
27240
27258
|
children: "Select or create a new variable on right side"
|
|
27241
27259
|
})]
|
|
27242
27260
|
});
|
|
27243
|
-
},
|
|
27261
|
+
}, AA = Q($A), NA = Q(function({
|
|
27244
27262
|
opened: t,
|
|
27245
27263
|
close: n
|
|
27246
27264
|
}) {
|
|
@@ -27308,30 +27326,30 @@ const _A = j.forwardRef(function({
|
|
|
27308
27326
|
children: [/* @__PURE__ */ l(Uo, {
|
|
27309
27327
|
visible: s,
|
|
27310
27328
|
exitTransitionDuration: 0
|
|
27311
|
-
}), /* @__PURE__ */ l(
|
|
27329
|
+
}), /* @__PURE__ */ l(uA, {})]
|
|
27312
27330
|
}), /* @__PURE__ */ l(I.Panel, {
|
|
27313
27331
|
value: "Panel",
|
|
27314
27332
|
pt: "sm",
|
|
27315
|
-
children: o === "Panel" && /* @__PURE__ */ l(
|
|
27333
|
+
children: o === "Panel" && /* @__PURE__ */ l(cA, {})
|
|
27316
27334
|
}), /* @__PURE__ */ l(I.Panel, {
|
|
27317
27335
|
value: "Variables",
|
|
27318
27336
|
pt: "sm",
|
|
27319
|
-
children: o === "Variables" && /* @__PURE__ */ l(
|
|
27337
|
+
children: o === "Variables" && /* @__PURE__ */ l(AA, {})
|
|
27320
27338
|
}), /* @__PURE__ */ l(I.Panel, {
|
|
27321
27339
|
value: "Visualization",
|
|
27322
27340
|
pt: "sm",
|
|
27323
|
-
children: o === "Visualization" && /* @__PURE__ */ l(
|
|
27341
|
+
children: o === "Visualization" && /* @__PURE__ */ l(wA, {})
|
|
27324
27342
|
}), /* @__PURE__ */ l(I.Panel, {
|
|
27325
27343
|
value: "Interactions",
|
|
27326
27344
|
pt: "sm",
|
|
27327
27345
|
children: /* @__PURE__ */ l(Zr, {
|
|
27328
|
-
children: /* @__PURE__ */ l(
|
|
27346
|
+
children: /* @__PURE__ */ l(oA, {})
|
|
27329
27347
|
})
|
|
27330
27348
|
})]
|
|
27331
27349
|
})
|
|
27332
27350
|
})
|
|
27333
27351
|
});
|
|
27334
|
-
}),
|
|
27352
|
+
}), LA = Q(({
|
|
27335
27353
|
view: e
|
|
27336
27354
|
}) => {
|
|
27337
27355
|
const t = lt(), n = Jh(), [r, o] = j.useState(!1), i = () => o(!0), a = () => o(!1), {
|
|
@@ -27422,13 +27440,13 @@ const _A = j.forwardRef(function({
|
|
|
27422
27440
|
})]
|
|
27423
27441
|
})]
|
|
27424
27442
|
})
|
|
27425
|
-
}), d && /* @__PURE__ */ l(
|
|
27443
|
+
}), d && /* @__PURE__ */ l(NA, {
|
|
27426
27444
|
opened: r,
|
|
27427
27445
|
close: a
|
|
27428
27446
|
})]
|
|
27429
27447
|
});
|
|
27430
27448
|
});
|
|
27431
|
-
const
|
|
27449
|
+
const VA = Q(function() {
|
|
27432
27450
|
const {
|
|
27433
27451
|
panel: t
|
|
27434
27452
|
} = Gt(), {
|
|
@@ -27450,10 +27468,10 @@ const AA = Q(function() {
|
|
|
27450
27468
|
})
|
|
27451
27469
|
}) : null;
|
|
27452
27470
|
});
|
|
27453
|
-
function
|
|
27471
|
+
function FA(e) {
|
|
27454
27472
|
return !["richText", "button"].includes(e);
|
|
27455
27473
|
}
|
|
27456
|
-
const
|
|
27474
|
+
const zA = {
|
|
27457
27475
|
border: "1px solid #e9ecef"
|
|
27458
27476
|
}, sd = {
|
|
27459
27477
|
border: "1px dashed transparent",
|
|
@@ -27462,8 +27480,8 @@ const LA = {
|
|
|
27462
27480
|
borderColor: "#e9ecef"
|
|
27463
27481
|
}
|
|
27464
27482
|
};
|
|
27465
|
-
function
|
|
27466
|
-
return e.style.border.enabled ?
|
|
27483
|
+
function jA(e, t, n) {
|
|
27484
|
+
return e.style.border.enabled ? zA : n || t ? sd : {
|
|
27467
27485
|
border: "1px dashed transparent"
|
|
27468
27486
|
};
|
|
27469
27487
|
}
|
|
@@ -27477,7 +27495,7 @@ const Gs = Q(function({
|
|
|
27477
27495
|
data: i,
|
|
27478
27496
|
state: a,
|
|
27479
27497
|
error: s
|
|
27480
|
-
} = r.getDataStuffByID(t.queryID), c = r.queries.findByID(t.queryID), u =
|
|
27498
|
+
} = r.getDataStuffByID(t.queryID), c = r.queries.findByID(t.queryID), u = FA(t.viz.type), d = u && a === "loading", f = t.title ? "calc(100% - 25px - 5px)" : "100%", p = jA(t, u, o), g = u || o;
|
|
27481
27499
|
return /* @__PURE__ */ l(tv, {
|
|
27482
27500
|
value: {
|
|
27483
27501
|
panel: t,
|
|
@@ -27500,9 +27518,9 @@ const Gs = Q(function({
|
|
|
27500
27518
|
zIndex: 310
|
|
27501
27519
|
},
|
|
27502
27520
|
children: /* @__PURE__ */ l(lg, {})
|
|
27503
|
-
}), g && /* @__PURE__ */ l(
|
|
27521
|
+
}), g && /* @__PURE__ */ l(LA, {
|
|
27504
27522
|
view: n
|
|
27505
|
-
}), /* @__PURE__ */ l(
|
|
27523
|
+
}), /* @__PURE__ */ l(VA, {}), /* @__PURE__ */ l(xh, {
|
|
27506
27524
|
viz: t.viz,
|
|
27507
27525
|
data: i,
|
|
27508
27526
|
loading: d,
|
|
@@ -27577,7 +27595,7 @@ function Rh() {
|
|
|
27577
27595
|
};
|
|
27578
27596
|
}, []);
|
|
27579
27597
|
}
|
|
27580
|
-
const
|
|
27598
|
+
const HA = j.forwardRef(({
|
|
27581
27599
|
handleAxis: e
|
|
27582
27600
|
}, t) => /* @__PURE__ */ l(Te, {
|
|
27583
27601
|
ref: t,
|
|
@@ -27597,7 +27615,7 @@ const FA = j.forwardRef(({
|
|
|
27597
27615
|
children: /* @__PURE__ */ l(xm, {
|
|
27598
27616
|
size: 16
|
|
27599
27617
|
})
|
|
27600
|
-
})),
|
|
27618
|
+
})), KA = j.forwardRef(({
|
|
27601
27619
|
handleAxis: e,
|
|
27602
27620
|
...t
|
|
27603
27621
|
}, n) => /* @__PURE__ */ l(Te, {
|
|
@@ -27619,7 +27637,7 @@ const FA = j.forwardRef(({
|
|
|
27619
27637
|
children: /* @__PURE__ */ l(_m, {
|
|
27620
27638
|
size: 16
|
|
27621
27639
|
})
|
|
27622
|
-
})),
|
|
27640
|
+
})), BA = Fd(Vd), GA = Q(function({
|
|
27623
27641
|
view: t,
|
|
27624
27642
|
className: n = "layout",
|
|
27625
27643
|
rowHeight: r = 10,
|
|
@@ -27635,7 +27653,7 @@ const FA = j.forwardRef(({
|
|
|
27635
27653
|
!d || d.layout.set(u);
|
|
27636
27654
|
});
|
|
27637
27655
|
}, [t]);
|
|
27638
|
-
return /* @__PURE__ */ l(
|
|
27656
|
+
return /* @__PURE__ */ l(BA, {
|
|
27639
27657
|
onLayoutChange: a,
|
|
27640
27658
|
className: `dashboard-layout ${n}`,
|
|
27641
27659
|
rowHeight: r,
|
|
@@ -27643,7 +27661,7 @@ const FA = j.forwardRef(({
|
|
|
27643
27661
|
isDraggable: o,
|
|
27644
27662
|
isResizable: i,
|
|
27645
27663
|
draggableHandle: ".react-grid-customDragHandle",
|
|
27646
|
-
resizeHandle: /* @__PURE__ */ l(
|
|
27664
|
+
resizeHandle: /* @__PURE__ */ l(KA, {}),
|
|
27647
27665
|
children: t.panels.list.map((s, c) => /* @__PURE__ */ v("div", {
|
|
27648
27666
|
"data-grid": {
|
|
27649
27667
|
...s.layout
|
|
@@ -27651,18 +27669,18 @@ const FA = j.forwardRef(({
|
|
|
27651
27669
|
style: {
|
|
27652
27670
|
position: "relative"
|
|
27653
27671
|
},
|
|
27654
|
-
children: [o && /* @__PURE__ */ l(
|
|
27672
|
+
children: [o && /* @__PURE__ */ l(HA, {}), /* @__PURE__ */ l(Gs, {
|
|
27655
27673
|
view: t,
|
|
27656
27674
|
panel: s
|
|
27657
27675
|
})]
|
|
27658
27676
|
}, s.id))
|
|
27659
27677
|
});
|
|
27660
|
-
}),
|
|
27678
|
+
}), WA = Fd(Vd), qA = Q(function({
|
|
27661
27679
|
view: t,
|
|
27662
27680
|
className: n = "layout",
|
|
27663
27681
|
rowHeight: r = 10
|
|
27664
27682
|
}) {
|
|
27665
|
-
return /* @__PURE__ */ l(
|
|
27683
|
+
return /* @__PURE__ */ l(WA, {
|
|
27666
27684
|
className: `dashboard-layout ${n}`,
|
|
27667
27685
|
rowHeight: r,
|
|
27668
27686
|
isDraggable: !1,
|
|
@@ -27676,11 +27694,11 @@ const FA = j.forwardRef(({
|
|
|
27676
27694
|
})
|
|
27677
27695
|
}, o.id))
|
|
27678
27696
|
});
|
|
27679
|
-
}),
|
|
27697
|
+
}), UA = Q(({
|
|
27680
27698
|
children: e
|
|
27681
27699
|
}) => /* @__PURE__ */ l(Ie, {
|
|
27682
27700
|
children: e
|
|
27683
|
-
})),
|
|
27701
|
+
})), YA = Q(({
|
|
27684
27702
|
children: e,
|
|
27685
27703
|
view: t
|
|
27686
27704
|
}) => /* @__PURE__ */ l(en, {
|
|
@@ -27715,23 +27733,23 @@ const FA = j.forwardRef(({
|
|
|
27715
27733
|
withinPortal: !1,
|
|
27716
27734
|
transitionDuration: 0,
|
|
27717
27735
|
children: e
|
|
27718
|
-
})),
|
|
27736
|
+
})), XA = Q(({
|
|
27719
27737
|
view: e,
|
|
27720
27738
|
children: t
|
|
27721
27739
|
}) => {
|
|
27722
27740
|
switch (e.type) {
|
|
27723
27741
|
case Rn.Modal:
|
|
27724
|
-
return /* @__PURE__ */ l(
|
|
27742
|
+
return /* @__PURE__ */ l(YA, {
|
|
27725
27743
|
view: e,
|
|
27726
27744
|
children: t
|
|
27727
27745
|
});
|
|
27728
27746
|
case Rn.Division:
|
|
27729
27747
|
default:
|
|
27730
|
-
return /* @__PURE__ */ l(
|
|
27748
|
+
return /* @__PURE__ */ l(UA, {
|
|
27731
27749
|
children: t
|
|
27732
27750
|
});
|
|
27733
27751
|
}
|
|
27734
|
-
}),
|
|
27752
|
+
}), QA = Q(function({
|
|
27735
27753
|
view: t,
|
|
27736
27754
|
saveDashboardChanges: n,
|
|
27737
27755
|
fullScreenPanelID: r,
|
|
@@ -27761,7 +27779,7 @@ const FA = j.forwardRef(({
|
|
|
27761
27779
|
exitFullScreen: a
|
|
27762
27780
|
}), !s && /* @__PURE__ */ l(Qp, {
|
|
27763
27781
|
saveChanges: n
|
|
27764
|
-
}), /* @__PURE__ */ l(
|
|
27782
|
+
}), /* @__PURE__ */ l(XA, {
|
|
27765
27783
|
view: t,
|
|
27766
27784
|
children: /* @__PURE__ */ v(Ie, {
|
|
27767
27785
|
className: "dashboard-sticky-parent",
|
|
@@ -27770,7 +27788,7 @@ const FA = j.forwardRef(({
|
|
|
27770
27788
|
children: /* @__PURE__ */ l(Hp, {
|
|
27771
27789
|
view: t
|
|
27772
27790
|
})
|
|
27773
|
-
}), !s && /* @__PURE__ */ l(
|
|
27791
|
+
}), !s && /* @__PURE__ */ l(GA, {
|
|
27774
27792
|
view: t,
|
|
27775
27793
|
isDraggable: !0,
|
|
27776
27794
|
isResizable: !0
|
|
@@ -27779,11 +27797,11 @@ const FA = j.forwardRef(({
|
|
|
27779
27797
|
})]
|
|
27780
27798
|
})
|
|
27781
27799
|
});
|
|
27782
|
-
}),
|
|
27800
|
+
}), JA = Q(({
|
|
27783
27801
|
children: e
|
|
27784
27802
|
}) => /* @__PURE__ */ l(Ie, {
|
|
27785
27803
|
children: e
|
|
27786
|
-
})),
|
|
27804
|
+
})), ZA = Q(({
|
|
27787
27805
|
children: e,
|
|
27788
27806
|
view: t
|
|
27789
27807
|
}) => {
|
|
@@ -27812,23 +27830,23 @@ const FA = j.forwardRef(({
|
|
|
27812
27830
|
transitionDuration: 0,
|
|
27813
27831
|
children: e
|
|
27814
27832
|
});
|
|
27815
|
-
}),
|
|
27833
|
+
}), eN = Q(({
|
|
27816
27834
|
view: e,
|
|
27817
27835
|
children: t
|
|
27818
27836
|
}) => {
|
|
27819
27837
|
switch (e.type) {
|
|
27820
27838
|
case Rn.Modal:
|
|
27821
|
-
return /* @__PURE__ */ l(
|
|
27839
|
+
return /* @__PURE__ */ l(ZA, {
|
|
27822
27840
|
view: e,
|
|
27823
27841
|
children: t
|
|
27824
27842
|
});
|
|
27825
27843
|
case Rn.Division:
|
|
27826
27844
|
default:
|
|
27827
|
-
return /* @__PURE__ */ l(
|
|
27845
|
+
return /* @__PURE__ */ l(JA, {
|
|
27828
27846
|
children: t
|
|
27829
27847
|
});
|
|
27830
27848
|
}
|
|
27831
|
-
}),
|
|
27849
|
+
}), tN = Q(function({
|
|
27832
27850
|
view: t,
|
|
27833
27851
|
fullScreenPanelID: n,
|
|
27834
27852
|
setFullScreenPanelID: r
|
|
@@ -27857,7 +27875,7 @@ const FA = j.forwardRef(({
|
|
|
27857
27875
|
exitFullScreen: i
|
|
27858
27876
|
}), !a && /* @__PURE__ */ l(Qp, {
|
|
27859
27877
|
saveChanges: Le.noop
|
|
27860
|
-
}), /* @__PURE__ */ l(
|
|
27878
|
+
}), /* @__PURE__ */ l(eN, {
|
|
27861
27879
|
view: t,
|
|
27862
27880
|
children: /* @__PURE__ */ v(Ie, {
|
|
27863
27881
|
className: "dashboard-sticky-parent",
|
|
@@ -27866,7 +27884,7 @@ const FA = j.forwardRef(({
|
|
|
27866
27884
|
children: /* @__PURE__ */ l(Hp, {
|
|
27867
27885
|
view: t
|
|
27868
27886
|
})
|
|
27869
|
-
}), !a && /* @__PURE__ */ l(
|
|
27887
|
+
}), !a && /* @__PURE__ */ l(qA, {
|
|
27870
27888
|
view: t
|
|
27871
27889
|
})]
|
|
27872
27890
|
})
|
|
@@ -27880,10 +27898,10 @@ const FA = j.forwardRef(({
|
|
|
27880
27898
|
setDefaultValue(t) {
|
|
27881
27899
|
e.default_value = t;
|
|
27882
27900
|
}
|
|
27883
|
-
})),
|
|
27901
|
+
})), nN = () => Th.create({
|
|
27884
27902
|
_name: "checkbox",
|
|
27885
27903
|
default_value: !1
|
|
27886
|
-
}),
|
|
27904
|
+
}), rN = R.model("FilterConfigModel_DateRange", {
|
|
27887
27905
|
_name: R.literal("date-range"),
|
|
27888
27906
|
required: R.boolean,
|
|
27889
27907
|
inputFormat: R.enumeration("DateRangeInputFormat", ["YYYY", "YYYYMM", "YYYYMMDD", "YYYY-MM", "YYYY-MM-DD"]),
|
|
@@ -27902,7 +27920,7 @@ const FA = j.forwardRef(({
|
|
|
27902
27920
|
setDefaultValue(t) {
|
|
27903
27921
|
e.default_value.length = 0, e.default_value.push(...t);
|
|
27904
27922
|
}
|
|
27905
|
-
})), Mh = R.snapshotProcessor(
|
|
27923
|
+
})), Mh = R.snapshotProcessor(rN, {
|
|
27906
27924
|
preProcessor({ default_value: e, ...t }) {
|
|
27907
27925
|
return {
|
|
27908
27926
|
...t,
|
|
@@ -27921,13 +27939,13 @@ const FA = j.forwardRef(({
|
|
|
27921
27939
|
})
|
|
27922
27940
|
};
|
|
27923
27941
|
}
|
|
27924
|
-
}),
|
|
27942
|
+
}), oN = () => Mh.create({
|
|
27925
27943
|
_name: "date-range",
|
|
27926
27944
|
required: !1,
|
|
27927
27945
|
inputFormat: "YYYY-MM-DD",
|
|
27928
27946
|
clearable: !1,
|
|
27929
27947
|
default_value: [null, null]
|
|
27930
|
-
}),
|
|
27948
|
+
}), iN = R.model({
|
|
27931
27949
|
label: R.string,
|
|
27932
27950
|
value: R.string
|
|
27933
27951
|
}).actions((e) => ({
|
|
@@ -27938,7 +27956,7 @@ const FA = j.forwardRef(({
|
|
|
27938
27956
|
e.value = t;
|
|
27939
27957
|
}
|
|
27940
27958
|
})), Ws = R.model("FilterConfigModel_BaseSelect", {
|
|
27941
|
-
static_options: R.optional(R.array(
|
|
27959
|
+
static_options: R.optional(R.array(iN), []),
|
|
27942
27960
|
options_query_id: R.optional(R.string, ""),
|
|
27943
27961
|
select_first_by_default: R.optional(R.boolean, !1)
|
|
27944
27962
|
}).views((e) => ({
|
|
@@ -27977,7 +27995,7 @@ const FA = j.forwardRef(({
|
|
|
27977
27995
|
setMinWidth(t) {
|
|
27978
27996
|
e.min_width = t;
|
|
27979
27997
|
}
|
|
27980
|
-
})),
|
|
27998
|
+
})), aN = () => kh.create({
|
|
27981
27999
|
_name: "multi-select",
|
|
27982
28000
|
default_value: [],
|
|
27983
28001
|
static_options: [],
|
|
@@ -27998,7 +28016,7 @@ const FA = j.forwardRef(({
|
|
|
27998
28016
|
setMinWidth(t) {
|
|
27999
28017
|
e.min_width = t;
|
|
28000
28018
|
}
|
|
28001
|
-
})),
|
|
28019
|
+
})), lN = () => Dh.create({
|
|
28002
28020
|
_name: "tree-select",
|
|
28003
28021
|
default_value: [],
|
|
28004
28022
|
static_options: [],
|
|
@@ -28023,7 +28041,7 @@ const FA = j.forwardRef(({
|
|
|
28023
28041
|
setWidth(t) {
|
|
28024
28042
|
e.width = t;
|
|
28025
28043
|
}
|
|
28026
|
-
})),
|
|
28044
|
+
})), sN = () => Ph.create({
|
|
28027
28045
|
_name: "select",
|
|
28028
28046
|
required: !1,
|
|
28029
28047
|
default_value: "",
|
|
@@ -28071,22 +28089,22 @@ const FA = j.forwardRef(({
|
|
|
28071
28089
|
setType(t) {
|
|
28072
28090
|
switch (t) {
|
|
28073
28091
|
case ln.Select:
|
|
28074
|
-
e.config =
|
|
28092
|
+
e.config = sN();
|
|
28075
28093
|
break;
|
|
28076
28094
|
case ln.MultiSelect:
|
|
28077
|
-
e.config =
|
|
28095
|
+
e.config = aN();
|
|
28078
28096
|
break;
|
|
28079
28097
|
case ln.TreeSelect:
|
|
28080
|
-
e.config =
|
|
28098
|
+
e.config = lN();
|
|
28081
28099
|
break;
|
|
28082
28100
|
case ln.TextInput:
|
|
28083
28101
|
e.config = Yp();
|
|
28084
28102
|
break;
|
|
28085
28103
|
case ln.Checkbox:
|
|
28086
|
-
e.config =
|
|
28104
|
+
e.config = nN();
|
|
28087
28105
|
break;
|
|
28088
28106
|
case ln.DateRange:
|
|
28089
|
-
e.config =
|
|
28107
|
+
e.config = oN();
|
|
28090
28108
|
break;
|
|
28091
28109
|
}
|
|
28092
28110
|
e.type = t;
|
|
@@ -28115,7 +28133,7 @@ function Ih(e, t) {
|
|
|
28115
28133
|
function $h(e) {
|
|
28116
28134
|
return e.reduce((t, n) => (t[n.key] = Ih(n.config.default_value, n.config), t), {});
|
|
28117
28135
|
}
|
|
28118
|
-
function
|
|
28136
|
+
function cN(e, t, n) {
|
|
28119
28137
|
kd(
|
|
28120
28138
|
e,
|
|
28121
28139
|
km(e, (r, o) => {
|
|
@@ -28125,7 +28143,7 @@ function aN(e, t, n) {
|
|
|
28125
28143
|
})
|
|
28126
28144
|
);
|
|
28127
28145
|
}
|
|
28128
|
-
const
|
|
28146
|
+
const uN = R.model("FiltersModel", {
|
|
28129
28147
|
current: R.optional(R.array(cd), []),
|
|
28130
28148
|
values: R.optional(R.frozen(), {}),
|
|
28131
28149
|
previewValues: R.optional(R.frozen(), {})
|
|
@@ -28183,7 +28201,7 @@ const lN = R.model("FiltersModel", {
|
|
|
28183
28201
|
}
|
|
28184
28202
|
})).actions((e) => {
|
|
28185
28203
|
function t() {
|
|
28186
|
-
|
|
28204
|
+
cN(e.current, cd, (n, r) => {
|
|
28187
28205
|
if (n === "setType") {
|
|
28188
28206
|
const o = Ih(r.config.default_value, r.config);
|
|
28189
28207
|
e.setValueByKey(r.key, o), e.updatePreviewValues({
|
|
@@ -28199,13 +28217,13 @@ const lN = R.model("FiltersModel", {
|
|
|
28199
28217
|
}
|
|
28200
28218
|
};
|
|
28201
28219
|
});
|
|
28202
|
-
function
|
|
28220
|
+
function dN(e) {
|
|
28203
28221
|
return {
|
|
28204
28222
|
current: e,
|
|
28205
28223
|
values: $h(e)
|
|
28206
28224
|
};
|
|
28207
28225
|
}
|
|
28208
|
-
const
|
|
28226
|
+
const fN = R.model("QueryModel", {
|
|
28209
28227
|
id: R.string,
|
|
28210
28228
|
name: R.string,
|
|
28211
28229
|
type: R.enumeration("DataSourceType", [pr.Postgresql, pr.MySQL, pr.HTTP]),
|
|
@@ -28257,9 +28275,9 @@ const cN = R.model("QueryModel", {
|
|
|
28257
28275
|
filters: r
|
|
28258
28276
|
};
|
|
28259
28277
|
}
|
|
28260
|
-
})),
|
|
28278
|
+
})), pN = R.compose(
|
|
28261
28279
|
"QueryModel",
|
|
28262
|
-
|
|
28280
|
+
fN,
|
|
28263
28281
|
R.model({
|
|
28264
28282
|
state: R.optional(R.enumeration(["idle", "loading", "error"]), "idle"),
|
|
28265
28283
|
data: R.optional(R.array(R.frozen()), []),
|
|
@@ -28339,8 +28357,8 @@ const cN = R.model("QueryModel", {
|
|
|
28339
28357
|
})
|
|
28340
28358
|
);
|
|
28341
28359
|
}
|
|
28342
|
-
})),
|
|
28343
|
-
current: R.optional(R.array(
|
|
28360
|
+
})), gN = R.model("QueriesModel", {
|
|
28361
|
+
current: R.optional(R.array(pN), [])
|
|
28344
28362
|
}).views((e) => ({
|
|
28345
28363
|
get firstID() {
|
|
28346
28364
|
if (e.current.length !== 0)
|
|
@@ -28399,7 +28417,7 @@ const cN = R.model("QueryModel", {
|
|
|
28399
28417
|
const n = e.current.find((r) => r.id === t);
|
|
28400
28418
|
n && ($m(n), e.current.remove(n));
|
|
28401
28419
|
}
|
|
28402
|
-
})),
|
|
28420
|
+
})), hN = R.model("SQLSnippetModel", {
|
|
28403
28421
|
key: R.string,
|
|
28404
28422
|
value: R.string
|
|
28405
28423
|
}).views((e) => ({
|
|
@@ -28420,8 +28438,8 @@ const cN = R.model("QueryModel", {
|
|
|
28420
28438
|
setValue(t) {
|
|
28421
28439
|
e.value = t;
|
|
28422
28440
|
}
|
|
28423
|
-
})),
|
|
28424
|
-
current: R.optional(R.array(
|
|
28441
|
+
})), mN = R.model("SQLSnippetsModel", {
|
|
28442
|
+
current: R.optional(R.array(hN), [])
|
|
28425
28443
|
}).views((e) => ({
|
|
28426
28444
|
get json() {
|
|
28427
28445
|
return e.current.map((t) => t.json);
|
|
@@ -28449,7 +28467,7 @@ const cN = R.model("QueryModel", {
|
|
|
28449
28467
|
replaceByIndex(t, n) {
|
|
28450
28468
|
e.current.splice(t, 1, n);
|
|
28451
28469
|
}
|
|
28452
|
-
})),
|
|
28470
|
+
})), vN = R.model("ContextModel", {
|
|
28453
28471
|
current: R.optional(R.frozen(), {})
|
|
28454
28472
|
}).views((e) => ({
|
|
28455
28473
|
get keys() {
|
|
@@ -28468,7 +28486,7 @@ const cN = R.model("QueryModel", {
|
|
|
28468
28486
|
set(t, n) {
|
|
28469
28487
|
e.current[t] = n;
|
|
28470
28488
|
}
|
|
28471
|
-
})),
|
|
28489
|
+
})), yN = R.model("MockContextModel", {
|
|
28472
28490
|
current: R.optional(R.frozen(), {})
|
|
28473
28491
|
}).views((e) => ({
|
|
28474
28492
|
get keys() {
|
|
@@ -28487,7 +28505,7 @@ const cN = R.model("QueryModel", {
|
|
|
28487
28505
|
set(t, n) {
|
|
28488
28506
|
e.current[t] = n;
|
|
28489
28507
|
}
|
|
28490
|
-
})),
|
|
28508
|
+
})), bN = R.model("PanelLayoutModel", {
|
|
28491
28509
|
x: R.number,
|
|
28492
28510
|
y: R.number,
|
|
28493
28511
|
w: R.number,
|
|
@@ -28511,7 +28529,7 @@ const cN = R.model("QueryModel", {
|
|
|
28511
28529
|
const { x: n, y: r, w: o, h: i, moved: a } = t;
|
|
28512
28530
|
e.x = n, e.y = r, e.w = o, e.h = i, e.moved = !!a, e.static = !!t.static;
|
|
28513
28531
|
}
|
|
28514
|
-
})),
|
|
28532
|
+
})), SN = R.model("PanelStyleBorderModel", {
|
|
28515
28533
|
enabled: R.boolean
|
|
28516
28534
|
}).views((e) => ({
|
|
28517
28535
|
get json() {
|
|
@@ -28524,8 +28542,8 @@ const cN = R.model("QueryModel", {
|
|
|
28524
28542
|
setEnabled(t) {
|
|
28525
28543
|
e.enabled = t;
|
|
28526
28544
|
}
|
|
28527
|
-
})),
|
|
28528
|
-
border:
|
|
28545
|
+
})), wN = R.model("PanelStyleModel", {
|
|
28546
|
+
border: SN
|
|
28529
28547
|
}).views((e) => ({
|
|
28530
28548
|
get json() {
|
|
28531
28549
|
const { border: t } = e;
|
|
@@ -28533,7 +28551,7 @@ const cN = R.model("QueryModel", {
|
|
|
28533
28551
|
border: t.json
|
|
28534
28552
|
};
|
|
28535
28553
|
}
|
|
28536
|
-
})).actions((e) => ({})),
|
|
28554
|
+
})).actions((e) => ({})), CN = R.model("PanelVizModel", {
|
|
28537
28555
|
type: R.string,
|
|
28538
28556
|
conf: R.frozen()
|
|
28539
28557
|
}).views((e) => ({
|
|
@@ -28550,15 +28568,15 @@ const cN = R.model("QueryModel", {
|
|
|
28550
28568
|
setConf(t) {
|
|
28551
28569
|
e.conf = t;
|
|
28552
28570
|
}
|
|
28553
|
-
})),
|
|
28571
|
+
})), xN = R.model({
|
|
28554
28572
|
id: R.string,
|
|
28555
28573
|
title: R.string,
|
|
28556
28574
|
description: R.string,
|
|
28557
|
-
layout:
|
|
28575
|
+
layout: bN,
|
|
28558
28576
|
queryID: R.string,
|
|
28559
|
-
viz:
|
|
28560
|
-
style:
|
|
28561
|
-
variables: R.optional(R.array(
|
|
28577
|
+
viz: CN,
|
|
28578
|
+
style: wN,
|
|
28579
|
+
variables: R.optional(R.array(CA), [])
|
|
28562
28580
|
}).views((e) => ({
|
|
28563
28581
|
get query() {
|
|
28564
28582
|
return Qs(e, wl).queries.findByID(e.queryID);
|
|
@@ -28598,8 +28616,8 @@ const cN = R.model("QueryModel", {
|
|
|
28598
28616
|
removeVariable(t) {
|
|
28599
28617
|
e.variables.remove(t);
|
|
28600
28618
|
}
|
|
28601
|
-
})),
|
|
28602
|
-
list: R.optional(R.array(
|
|
28619
|
+
})), _N = R.model("PanelsModel", {
|
|
28620
|
+
list: R.optional(R.array(xN), [])
|
|
28603
28621
|
}).views((e) => ({
|
|
28604
28622
|
get json() {
|
|
28605
28623
|
return e.list.map((t) => t.json);
|
|
@@ -28671,12 +28689,12 @@ const cN = R.model("QueryModel", {
|
|
|
28671
28689
|
replaceByIndex(t, n) {
|
|
28672
28690
|
e.list.splice(t, 1, n);
|
|
28673
28691
|
}
|
|
28674
|
-
})),
|
|
28692
|
+
})), EN = R.model({
|
|
28675
28693
|
id: R.identifier,
|
|
28676
28694
|
name: R.string,
|
|
28677
28695
|
type: R.string,
|
|
28678
28696
|
config: R.frozen(),
|
|
28679
|
-
panels:
|
|
28697
|
+
panels: _N
|
|
28680
28698
|
}).views((e) => ({
|
|
28681
28699
|
get json() {
|
|
28682
28700
|
const { id: t, name: n, type: r, config: o } = e;
|
|
@@ -28707,8 +28725,8 @@ const cN = R.model("QueryModel", {
|
|
|
28707
28725
|
[t]: n
|
|
28708
28726
|
};
|
|
28709
28727
|
}
|
|
28710
|
-
})).actions((e) => ({})),
|
|
28711
|
-
current: R.optional(R.array(
|
|
28728
|
+
})).actions((e) => ({})), ON = R.model("ViewsModel", {
|
|
28729
|
+
current: R.optional(R.array(EN), []),
|
|
28712
28730
|
visibleViewIDs: R.array(R.string),
|
|
28713
28731
|
idOfVIE: R.string
|
|
28714
28732
|
}).views((e) => ({
|
|
@@ -28790,7 +28808,7 @@ const cN = R.model("QueryModel", {
|
|
|
28790
28808
|
n !== -1 && e.visibleViewIDs.splice(n, 1);
|
|
28791
28809
|
}
|
|
28792
28810
|
}));
|
|
28793
|
-
function
|
|
28811
|
+
function RN(e) {
|
|
28794
28812
|
const t = e.length > 0 ? [e[0].id] : [], n = e.length > 0 ? e[0].id : "";
|
|
28795
28813
|
return {
|
|
28796
28814
|
current: e.map((o) => ({
|
|
@@ -28803,16 +28821,16 @@ function _N(e) {
|
|
|
28803
28821
|
idOfVIE: n
|
|
28804
28822
|
};
|
|
28805
28823
|
}
|
|
28806
|
-
const
|
|
28824
|
+
const TN = R.model({
|
|
28807
28825
|
id: R.identifier,
|
|
28808
28826
|
name: R.string,
|
|
28809
28827
|
version: R.string,
|
|
28810
|
-
filters:
|
|
28811
|
-
queries:
|
|
28812
|
-
sqlSnippets:
|
|
28813
|
-
views:
|
|
28814
|
-
context:
|
|
28815
|
-
mock_context:
|
|
28828
|
+
filters: uN,
|
|
28829
|
+
queries: gN,
|
|
28830
|
+
sqlSnippets: mN,
|
|
28831
|
+
views: ON,
|
|
28832
|
+
context: vN,
|
|
28833
|
+
mock_context: yN,
|
|
28816
28834
|
origin: R.maybe(R.frozen())
|
|
28817
28835
|
}).views((e) => ({
|
|
28818
28836
|
get filtersChanged() {
|
|
@@ -28883,7 +28901,7 @@ const EN = R.model({
|
|
|
28883
28901
|
resetFilters() {
|
|
28884
28902
|
Rr(e.filters.current, e.origin.filters.current);
|
|
28885
28903
|
}
|
|
28886
|
-
})), wl = R.snapshotProcessor(
|
|
28904
|
+
})), wl = R.snapshotProcessor(TN, {
|
|
28887
28905
|
preProcessor(e) {
|
|
28888
28906
|
return {
|
|
28889
28907
|
...e,
|
|
@@ -28901,7 +28919,7 @@ function Ah({ id: e, name: t, version: n, filters: r, views: o, definition: { qu
|
|
|
28901
28919
|
id: e,
|
|
28902
28920
|
name: t,
|
|
28903
28921
|
version: n,
|
|
28904
|
-
filters:
|
|
28922
|
+
filters: dN(r),
|
|
28905
28923
|
queries: {
|
|
28906
28924
|
current: i
|
|
28907
28925
|
},
|
|
@@ -28914,13 +28932,13 @@ function Ah({ id: e, name: t, version: n, filters: r, views: o, definition: { qu
|
|
|
28914
28932
|
mock_context: {
|
|
28915
28933
|
current: s
|
|
28916
28934
|
},
|
|
28917
|
-
views:
|
|
28935
|
+
views: RN(o)
|
|
28918
28936
|
});
|
|
28919
28937
|
}
|
|
28920
28938
|
function Nh(e) {
|
|
28921
28939
|
return j.useCallback((t) => t.provideValue(Vt.pluginManager, e.pluginManager).provideValue(Vt.vizManager, e.vizManager).provideValue(Vt.colorManager, e.colorManager), []);
|
|
28922
28940
|
}
|
|
28923
|
-
const
|
|
28941
|
+
const yL = Q(function({
|
|
28924
28942
|
context: t,
|
|
28925
28943
|
dashboard: n,
|
|
28926
28944
|
update: r,
|
|
@@ -28968,7 +28986,7 @@ const hL = Q(function({
|
|
|
28968
28986
|
value: p,
|
|
28969
28987
|
children: /* @__PURE__ */ l(qi, {
|
|
28970
28988
|
configure: g,
|
|
28971
|
-
children: d.views.visibleViews.map((h) => /* @__PURE__ */ l(
|
|
28989
|
+
children: d.views.visibleViews.map((h) => /* @__PURE__ */ l(QA, {
|
|
28972
28990
|
view: h,
|
|
28973
28991
|
saveDashboardChanges: f,
|
|
28974
28992
|
fullScreenPanelID: a,
|
|
@@ -28980,7 +28998,7 @@ const hL = Q(function({
|
|
|
28980
28998
|
})
|
|
28981
28999
|
})
|
|
28982
29000
|
});
|
|
28983
|
-
}),
|
|
29001
|
+
}), bL = Q(({
|
|
28984
29002
|
context: e,
|
|
28985
29003
|
dashboard: t,
|
|
28986
29004
|
className: n = "dashboard",
|
|
@@ -29010,7 +29028,7 @@ const hL = Q(function({
|
|
|
29010
29028
|
value: s,
|
|
29011
29029
|
children: /* @__PURE__ */ l(qi, {
|
|
29012
29030
|
configure: c,
|
|
29013
|
-
children: a.views.visibleViews.map((u) => /* @__PURE__ */ l(
|
|
29031
|
+
children: a.views.visibleViews.map((u) => /* @__PURE__ */ l(tN, {
|
|
29014
29032
|
view: u,
|
|
29015
29033
|
fullScreenPanelID: o,
|
|
29016
29034
|
setFullScreenPanelID: i
|
|
@@ -29085,7 +29103,7 @@ var Lh = { exports: {} };
|
|
|
29085
29103
|
};
|
|
29086
29104
|
});
|
|
29087
29105
|
})(Lh);
|
|
29088
|
-
const
|
|
29106
|
+
const MN = Lh.exports;
|
|
29089
29107
|
var Vh = { exports: {} };
|
|
29090
29108
|
(function(e, t) {
|
|
29091
29109
|
(function(n, r) {
|
|
@@ -29167,36 +29185,36 @@ var Vh = { exports: {} };
|
|
|
29167
29185
|
};
|
|
29168
29186
|
});
|
|
29169
29187
|
})(Vh);
|
|
29170
|
-
const
|
|
29171
|
-
hr.extend(
|
|
29172
|
-
hr.extend(
|
|
29188
|
+
const kN = Vh.exports, SL = () => Promise.resolve().then(() => xT).then(({ version: e }) => (console.log(`[@devtable/dashboard] version: ${e}`), e));
|
|
29189
|
+
hr.extend(kN);
|
|
29190
|
+
hr.extend(MN);
|
|
29173
29191
|
hr.tz.setDefault("UTC");
|
|
29174
29192
|
export {
|
|
29175
|
-
|
|
29176
|
-
|
|
29193
|
+
vN as ContextModel,
|
|
29194
|
+
yL as Dashboard,
|
|
29177
29195
|
jR as DashboardFilterType,
|
|
29178
29196
|
zR as DashboardMode,
|
|
29179
29197
|
wl as DashboardModel,
|
|
29180
29198
|
Rn as EViewComponentType,
|
|
29181
29199
|
cd as FilterModel,
|
|
29182
|
-
|
|
29200
|
+
uN as FiltersModel,
|
|
29183
29201
|
Vn as LayoutStateContext,
|
|
29184
|
-
|
|
29202
|
+
QA as MainDashboardView,
|
|
29185
29203
|
Kd as ModelContextProvider,
|
|
29186
29204
|
Gs as Panel,
|
|
29187
29205
|
tv as PanelContextProvider,
|
|
29188
|
-
|
|
29189
|
-
|
|
29190
|
-
|
|
29191
|
-
|
|
29192
|
-
|
|
29193
|
-
|
|
29194
|
-
|
|
29195
|
-
|
|
29206
|
+
gN as QueriesModel,
|
|
29207
|
+
pN as QueryModel,
|
|
29208
|
+
bL as ReadOnlyDashboard,
|
|
29209
|
+
tN as ReadOnlyDashboardView,
|
|
29210
|
+
hN as SQLSnippetModel,
|
|
29211
|
+
mN as SQLSnippetsModel,
|
|
29212
|
+
EN as ViewModel,
|
|
29213
|
+
ON as ViewsModel,
|
|
29196
29214
|
Ah as createDashboardModel,
|
|
29197
|
-
|
|
29198
|
-
|
|
29199
|
-
|
|
29215
|
+
RN as createDashboardViewsModel,
|
|
29216
|
+
dN as getInitialFiltersPayload,
|
|
29217
|
+
SL as getVersion,
|
|
29200
29218
|
lt as useModelContext,
|
|
29201
29219
|
Gt as usePanelContext,
|
|
29202
29220
|
Nh as useTopLevelServices
|