@devtable/dashboard 13.6.1 → 13.7.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/dashboard.es.js
CHANGED
|
@@ -146,58 +146,58 @@ var ar = {};
|
|
|
146
146
|
var mo;
|
|
147
147
|
function cx() {
|
|
148
148
|
return mo || (mo = 1, process.env.NODE_ENV !== "production" && function() {
|
|
149
|
-
var t = L, e = Symbol.for("react.element"), n = Symbol.for("react.portal"), s = Symbol.for("react.fragment"), i = Symbol.for("react.strict_mode"), a = Symbol.for("react.profiler"), o = Symbol.for("react.provider"), l = Symbol.for("react.context"), c = Symbol.for("react.forward_ref"), d = Symbol.for("react.suspense"), u = Symbol.for("react.suspense_list"), h = Symbol.for("react.memo"), m = Symbol.for("react.lazy"), p = Symbol.for("react.offscreen"), f = Symbol.iterator,
|
|
150
|
-
function T(
|
|
151
|
-
if (
|
|
149
|
+
var t = L, e = Symbol.for("react.element"), n = Symbol.for("react.portal"), s = Symbol.for("react.fragment"), i = Symbol.for("react.strict_mode"), a = Symbol.for("react.profiler"), o = Symbol.for("react.provider"), l = Symbol.for("react.context"), c = Symbol.for("react.forward_ref"), d = Symbol.for("react.suspense"), u = Symbol.for("react.suspense_list"), h = Symbol.for("react.memo"), m = Symbol.for("react.lazy"), p = Symbol.for("react.offscreen"), f = Symbol.iterator, v = "@@iterator";
|
|
150
|
+
function T(j) {
|
|
151
|
+
if (j === null || typeof j != "object")
|
|
152
152
|
return null;
|
|
153
|
-
var A = f &&
|
|
153
|
+
var A = f && j[f] || j[v];
|
|
154
154
|
return typeof A == "function" ? A : null;
|
|
155
155
|
}
|
|
156
156
|
var E = t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
|
|
157
|
-
function P(
|
|
157
|
+
function P(j) {
|
|
158
158
|
{
|
|
159
159
|
for (var A = arguments.length, V = new Array(A > 1 ? A - 1 : 0), U = 1; U < A; U++)
|
|
160
160
|
V[U - 1] = arguments[U];
|
|
161
|
-
q("error",
|
|
161
|
+
q("error", j, V);
|
|
162
162
|
}
|
|
163
163
|
}
|
|
164
|
-
function q(
|
|
164
|
+
function q(j, A, V) {
|
|
165
165
|
{
|
|
166
166
|
var U = E.ReactDebugCurrentFrame, de = U.getStackAddendum();
|
|
167
167
|
de !== "" && (A += "%s", V = V.concat([de]));
|
|
168
168
|
var fe = V.map(function(ce) {
|
|
169
169
|
return String(ce);
|
|
170
170
|
});
|
|
171
|
-
fe.unshift("Warning: " + A), Function.prototype.apply.call(console[
|
|
171
|
+
fe.unshift("Warning: " + A), Function.prototype.apply.call(console[j], console, fe);
|
|
172
172
|
}
|
|
173
173
|
}
|
|
174
174
|
var Z = !1, ae = !1, K = !1, J = !1, ve = !1, ye;
|
|
175
175
|
ye = Symbol.for("react.module.reference");
|
|
176
|
-
function Ft(
|
|
177
|
-
return !!(typeof
|
|
176
|
+
function Ft(j) {
|
|
177
|
+
return !!(typeof j == "string" || typeof j == "function" || j === s || j === a || ve || j === i || j === d || j === u || J || j === p || Z || ae || K || typeof j == "object" && j !== null && (j.$$typeof === m || j.$$typeof === h || j.$$typeof === o || j.$$typeof === l || j.$$typeof === c || // This needs to include all possible module reference object
|
|
178
178
|
// types supported by any Flight configuration anywhere since
|
|
179
179
|
// we don't know which Flight build this will end up being used
|
|
180
180
|
// with.
|
|
181
|
-
|
|
181
|
+
j.$$typeof === ye || j.getModuleId !== void 0));
|
|
182
182
|
}
|
|
183
|
-
function Ee(
|
|
184
|
-
var U =
|
|
183
|
+
function Ee(j, A, V) {
|
|
184
|
+
var U = j.displayName;
|
|
185
185
|
if (U)
|
|
186
186
|
return U;
|
|
187
187
|
var de = A.displayName || A.name || "";
|
|
188
188
|
return de !== "" ? V + "(" + de + ")" : V;
|
|
189
189
|
}
|
|
190
|
-
function Dr(
|
|
191
|
-
return
|
|
190
|
+
function Dr(j) {
|
|
191
|
+
return j.displayName || "Context";
|
|
192
192
|
}
|
|
193
|
-
function ot(
|
|
194
|
-
if (
|
|
193
|
+
function ot(j) {
|
|
194
|
+
if (j == null)
|
|
195
195
|
return null;
|
|
196
|
-
if (typeof
|
|
197
|
-
return
|
|
198
|
-
if (typeof
|
|
199
|
-
return
|
|
200
|
-
switch (
|
|
196
|
+
if (typeof j.tag == "number" && P("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."), typeof j == "function")
|
|
197
|
+
return j.displayName || j.name || null;
|
|
198
|
+
if (typeof j == "string")
|
|
199
|
+
return j;
|
|
200
|
+
switch (j) {
|
|
201
201
|
case s:
|
|
202
202
|
return "Fragment";
|
|
203
203
|
case n:
|
|
@@ -211,21 +211,21 @@ function cx() {
|
|
|
211
211
|
case u:
|
|
212
212
|
return "SuspenseList";
|
|
213
213
|
}
|
|
214
|
-
if (typeof
|
|
215
|
-
switch (
|
|
214
|
+
if (typeof j == "object")
|
|
215
|
+
switch (j.$$typeof) {
|
|
216
216
|
case l:
|
|
217
|
-
var A =
|
|
217
|
+
var A = j;
|
|
218
218
|
return Dr(A) + ".Consumer";
|
|
219
219
|
case o:
|
|
220
|
-
var V =
|
|
220
|
+
var V = j;
|
|
221
221
|
return Dr(V._context) + ".Provider";
|
|
222
222
|
case c:
|
|
223
|
-
return Ee(
|
|
223
|
+
return Ee(j, j.render, "ForwardRef");
|
|
224
224
|
case h:
|
|
225
|
-
var U =
|
|
226
|
-
return U !== null ? U : ot(
|
|
225
|
+
var U = j.displayName || null;
|
|
226
|
+
return U !== null ? U : ot(j.type) || "Memo";
|
|
227
227
|
case m: {
|
|
228
|
-
var de =
|
|
228
|
+
var de = j, fe = de._payload, ce = de._init;
|
|
229
229
|
try {
|
|
230
230
|
return ot(ce(fe));
|
|
231
231
|
} catch {
|
|
@@ -243,20 +243,20 @@ function cx() {
|
|
|
243
243
|
{
|
|
244
244
|
if (rr === 0) {
|
|
245
245
|
La = console.log, Ea = console.info, Aa = console.warn, Ra = console.error, $a = console.group, Pa = console.groupCollapsed, Oa = console.groupEnd;
|
|
246
|
-
var
|
|
246
|
+
var j = {
|
|
247
247
|
configurable: !0,
|
|
248
248
|
enumerable: !0,
|
|
249
249
|
value: Fa,
|
|
250
250
|
writable: !0
|
|
251
251
|
};
|
|
252
252
|
Object.defineProperties(console, {
|
|
253
|
-
info:
|
|
254
|
-
log:
|
|
255
|
-
warn:
|
|
256
|
-
error:
|
|
257
|
-
group:
|
|
258
|
-
groupCollapsed:
|
|
259
|
-
groupEnd:
|
|
253
|
+
info: j,
|
|
254
|
+
log: j,
|
|
255
|
+
warn: j,
|
|
256
|
+
error: j,
|
|
257
|
+
group: j,
|
|
258
|
+
groupCollapsed: j,
|
|
259
|
+
groupEnd: j
|
|
260
260
|
});
|
|
261
261
|
}
|
|
262
262
|
rr++;
|
|
@@ -265,31 +265,31 @@ function cx() {
|
|
|
265
265
|
function $u() {
|
|
266
266
|
{
|
|
267
267
|
if (rr--, rr === 0) {
|
|
268
|
-
var
|
|
268
|
+
var j = {
|
|
269
269
|
configurable: !0,
|
|
270
270
|
enumerable: !0,
|
|
271
271
|
writable: !0
|
|
272
272
|
};
|
|
273
273
|
Object.defineProperties(console, {
|
|
274
|
-
log: mn({},
|
|
274
|
+
log: mn({}, j, {
|
|
275
275
|
value: La
|
|
276
276
|
}),
|
|
277
|
-
info: mn({},
|
|
277
|
+
info: mn({}, j, {
|
|
278
278
|
value: Ea
|
|
279
279
|
}),
|
|
280
|
-
warn: mn({},
|
|
280
|
+
warn: mn({}, j, {
|
|
281
281
|
value: Aa
|
|
282
282
|
}),
|
|
283
|
-
error: mn({},
|
|
283
|
+
error: mn({}, j, {
|
|
284
284
|
value: Ra
|
|
285
285
|
}),
|
|
286
|
-
group: mn({},
|
|
286
|
+
group: mn({}, j, {
|
|
287
287
|
value: $a
|
|
288
288
|
}),
|
|
289
|
-
groupCollapsed: mn({},
|
|
289
|
+
groupCollapsed: mn({}, j, {
|
|
290
290
|
value: Pa
|
|
291
291
|
}),
|
|
292
|
-
groupEnd: mn({},
|
|
292
|
+
groupEnd: mn({}, j, {
|
|
293
293
|
value: Oa
|
|
294
294
|
})
|
|
295
295
|
});
|
|
@@ -298,7 +298,7 @@ function cx() {
|
|
|
298
298
|
}
|
|
299
299
|
}
|
|
300
300
|
var Ps = E.ReactCurrentDispatcher, Os;
|
|
301
|
-
function Mr(
|
|
301
|
+
function Mr(j, A, V) {
|
|
302
302
|
{
|
|
303
303
|
if (Os === void 0)
|
|
304
304
|
try {
|
|
@@ -308,7 +308,7 @@ function cx() {
|
|
|
308
308
|
Os = U && U[1] || "";
|
|
309
309
|
}
|
|
310
310
|
return `
|
|
311
|
-
` + Os +
|
|
311
|
+
` + Os + j;
|
|
312
312
|
}
|
|
313
313
|
}
|
|
314
314
|
var Fs = !1, Lr;
|
|
@@ -316,11 +316,11 @@ function cx() {
|
|
|
316
316
|
var Pu = typeof WeakMap == "function" ? WeakMap : Map;
|
|
317
317
|
Lr = new Pu();
|
|
318
318
|
}
|
|
319
|
-
function Va(
|
|
320
|
-
if (!
|
|
319
|
+
function Va(j, A) {
|
|
320
|
+
if (!j || Fs)
|
|
321
321
|
return "";
|
|
322
322
|
{
|
|
323
|
-
var V = Lr.get(
|
|
323
|
+
var V = Lr.get(j);
|
|
324
324
|
if (V !== void 0)
|
|
325
325
|
return V;
|
|
326
326
|
}
|
|
@@ -345,14 +345,14 @@ function cx() {
|
|
|
345
345
|
} catch (Vt) {
|
|
346
346
|
U = Vt;
|
|
347
347
|
}
|
|
348
|
-
Reflect.construct(
|
|
348
|
+
Reflect.construct(j, [], ce);
|
|
349
349
|
} else {
|
|
350
350
|
try {
|
|
351
351
|
ce.call();
|
|
352
352
|
} catch (Vt) {
|
|
353
353
|
U = Vt;
|
|
354
354
|
}
|
|
355
|
-
|
|
355
|
+
j.call(ce.prototype);
|
|
356
356
|
}
|
|
357
357
|
} else {
|
|
358
358
|
try {
|
|
@@ -360,7 +360,7 @@ function cx() {
|
|
|
360
360
|
} catch (Vt) {
|
|
361
361
|
U = Vt;
|
|
362
362
|
}
|
|
363
|
-
|
|
363
|
+
j();
|
|
364
364
|
}
|
|
365
365
|
} catch (Vt) {
|
|
366
366
|
if (Vt && U && typeof Vt.stack == "string") {
|
|
@@ -375,7 +375,7 @@ function cx() {
|
|
|
375
375
|
if (ze--, Te--, Te < 0 || re[ze] !== Je[Te]) {
|
|
376
376
|
var ut = `
|
|
377
377
|
` + re[ze].replace(" at new ", " at ");
|
|
378
|
-
return
|
|
378
|
+
return j.displayName && ut.includes("<anonymous>") && (ut = ut.replace("<anonymous>", j.displayName)), typeof j == "function" && Lr.set(j, ut), ut;
|
|
379
379
|
}
|
|
380
380
|
while (ze >= 1 && Te >= 0);
|
|
381
381
|
break;
|
|
@@ -384,37 +384,37 @@ function cx() {
|
|
|
384
384
|
} finally {
|
|
385
385
|
Fs = !1, Ps.current = fe, $u(), Error.prepareStackTrace = de;
|
|
386
386
|
}
|
|
387
|
-
var Rn =
|
|
388
|
-
return typeof
|
|
387
|
+
var Rn = j ? j.displayName || j.name : "", Za = Rn ? Mr(Rn) : "";
|
|
388
|
+
return typeof j == "function" && Lr.set(j, Za), Za;
|
|
389
389
|
}
|
|
390
|
-
function Ou(
|
|
391
|
-
return Va(
|
|
390
|
+
function Ou(j, A, V) {
|
|
391
|
+
return Va(j, !1);
|
|
392
392
|
}
|
|
393
|
-
function Fu(
|
|
394
|
-
var A =
|
|
393
|
+
function Fu(j) {
|
|
394
|
+
var A = j.prototype;
|
|
395
395
|
return !!(A && A.isReactComponent);
|
|
396
396
|
}
|
|
397
|
-
function Er(
|
|
398
|
-
if (
|
|
397
|
+
function Er(j, A, V) {
|
|
398
|
+
if (j == null)
|
|
399
399
|
return "";
|
|
400
|
-
if (typeof
|
|
401
|
-
return Va(
|
|
402
|
-
if (typeof
|
|
403
|
-
return Mr(
|
|
404
|
-
switch (
|
|
400
|
+
if (typeof j == "function")
|
|
401
|
+
return Va(j, Fu(j));
|
|
402
|
+
if (typeof j == "string")
|
|
403
|
+
return Mr(j);
|
|
404
|
+
switch (j) {
|
|
405
405
|
case d:
|
|
406
406
|
return Mr("Suspense");
|
|
407
407
|
case u:
|
|
408
408
|
return Mr("SuspenseList");
|
|
409
409
|
}
|
|
410
|
-
if (typeof
|
|
411
|
-
switch (
|
|
410
|
+
if (typeof j == "object")
|
|
411
|
+
switch (j.$$typeof) {
|
|
412
412
|
case c:
|
|
413
|
-
return Ou(
|
|
413
|
+
return Ou(j.render);
|
|
414
414
|
case h:
|
|
415
|
-
return Er(
|
|
415
|
+
return Er(j.type, A, V);
|
|
416
416
|
case m: {
|
|
417
|
-
var U =
|
|
417
|
+
var U = j, de = U._payload, fe = U._init;
|
|
418
418
|
try {
|
|
419
419
|
return Er(fe(de), A, V);
|
|
420
420
|
} catch {
|
|
@@ -424,25 +424,25 @@ function cx() {
|
|
|
424
424
|
return "";
|
|
425
425
|
}
|
|
426
426
|
var Ar = Object.prototype.hasOwnProperty, qa = {}, Na = E.ReactDebugCurrentFrame;
|
|
427
|
-
function Rr(
|
|
428
|
-
if (
|
|
429
|
-
var A =
|
|
427
|
+
function Rr(j) {
|
|
428
|
+
if (j) {
|
|
429
|
+
var A = j._owner, V = Er(j.type, j._source, A ? A.type : null);
|
|
430
430
|
Na.setExtraStackFrame(V);
|
|
431
431
|
} else
|
|
432
432
|
Na.setExtraStackFrame(null);
|
|
433
433
|
}
|
|
434
|
-
function Vu(
|
|
434
|
+
function Vu(j, A, V, U, de) {
|
|
435
435
|
{
|
|
436
436
|
var fe = Function.call.bind(Ar);
|
|
437
|
-
for (var ce in
|
|
438
|
-
if (fe(
|
|
437
|
+
for (var ce in j)
|
|
438
|
+
if (fe(j, ce)) {
|
|
439
439
|
var re = void 0;
|
|
440
440
|
try {
|
|
441
|
-
if (typeof
|
|
442
|
-
var Je = Error((U || "React class") + ": " + V + " type `" + ce + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof
|
|
441
|
+
if (typeof j[ce] != "function") {
|
|
442
|
+
var Je = Error((U || "React class") + ": " + V + " type `" + ce + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof j[ce] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");
|
|
443
443
|
throw Je.name = "Invariant Violation", Je;
|
|
444
444
|
}
|
|
445
|
-
re =
|
|
445
|
+
re = j[ce](A, ce, U, V, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
|
|
446
446
|
} catch (ze) {
|
|
447
447
|
re = ze;
|
|
448
448
|
}
|
|
@@ -451,28 +451,28 @@ function cx() {
|
|
|
451
451
|
}
|
|
452
452
|
}
|
|
453
453
|
var qu = Array.isArray;
|
|
454
|
-
function Vs(
|
|
455
|
-
return qu(
|
|
454
|
+
function Vs(j) {
|
|
455
|
+
return qu(j);
|
|
456
456
|
}
|
|
457
|
-
function Nu(
|
|
457
|
+
function Nu(j) {
|
|
458
458
|
{
|
|
459
|
-
var A = typeof Symbol == "function" && Symbol.toStringTag, V = A &&
|
|
459
|
+
var A = typeof Symbol == "function" && Symbol.toStringTag, V = A && j[Symbol.toStringTag] || j.constructor.name || "Object";
|
|
460
460
|
return V;
|
|
461
461
|
}
|
|
462
462
|
}
|
|
463
|
-
function Bu(
|
|
463
|
+
function Bu(j) {
|
|
464
464
|
try {
|
|
465
|
-
return Ba(
|
|
465
|
+
return Ba(j), !1;
|
|
466
466
|
} catch {
|
|
467
467
|
return !0;
|
|
468
468
|
}
|
|
469
469
|
}
|
|
470
|
-
function Ba(
|
|
471
|
-
return "" +
|
|
470
|
+
function Ba(j) {
|
|
471
|
+
return "" + j;
|
|
472
472
|
}
|
|
473
|
-
function Wa(
|
|
474
|
-
if (Bu(
|
|
475
|
-
return P("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", Nu(
|
|
473
|
+
function Wa(j) {
|
|
474
|
+
if (Bu(j))
|
|
475
|
+
return P("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", Nu(j)), Ba(j);
|
|
476
476
|
}
|
|
477
477
|
var sr = E.ReactCurrentOwner, Wu = {
|
|
478
478
|
key: !0,
|
|
@@ -481,56 +481,56 @@ function cx() {
|
|
|
481
481
|
__source: !0
|
|
482
482
|
}, Ga, Qa, qs;
|
|
483
483
|
qs = {};
|
|
484
|
-
function Gu(
|
|
485
|
-
if (Ar.call(
|
|
486
|
-
var A = Object.getOwnPropertyDescriptor(
|
|
484
|
+
function Gu(j) {
|
|
485
|
+
if (Ar.call(j, "ref")) {
|
|
486
|
+
var A = Object.getOwnPropertyDescriptor(j, "ref").get;
|
|
487
487
|
if (A && A.isReactWarning)
|
|
488
488
|
return !1;
|
|
489
489
|
}
|
|
490
|
-
return
|
|
490
|
+
return j.ref !== void 0;
|
|
491
491
|
}
|
|
492
|
-
function Qu(
|
|
493
|
-
if (Ar.call(
|
|
494
|
-
var A = Object.getOwnPropertyDescriptor(
|
|
492
|
+
function Qu(j) {
|
|
493
|
+
if (Ar.call(j, "key")) {
|
|
494
|
+
var A = Object.getOwnPropertyDescriptor(j, "key").get;
|
|
495
495
|
if (A && A.isReactWarning)
|
|
496
496
|
return !1;
|
|
497
497
|
}
|
|
498
|
-
return
|
|
498
|
+
return j.key !== void 0;
|
|
499
499
|
}
|
|
500
|
-
function Hu(
|
|
501
|
-
if (typeof
|
|
500
|
+
function Hu(j, A) {
|
|
501
|
+
if (typeof j.ref == "string" && sr.current && A && sr.current.stateNode !== A) {
|
|
502
502
|
var V = ot(sr.current.type);
|
|
503
|
-
qs[V] || (P('Component "%s" contains the string ref "%s". Support for string refs will be removed in a future major release. This case cannot be automatically converted to an arrow function. We ask you to manually fix this case by using useRef() or createRef() instead. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-string-ref', ot(sr.current.type),
|
|
503
|
+
qs[V] || (P('Component "%s" contains the string ref "%s". Support for string refs will be removed in a future major release. This case cannot be automatically converted to an arrow function. We ask you to manually fix this case by using useRef() or createRef() instead. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-string-ref', ot(sr.current.type), j.ref), qs[V] = !0);
|
|
504
504
|
}
|
|
505
505
|
}
|
|
506
|
-
function Uu(
|
|
506
|
+
function Uu(j, A) {
|
|
507
507
|
{
|
|
508
508
|
var V = function() {
|
|
509
509
|
Ga || (Ga = !0, P("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", A));
|
|
510
510
|
};
|
|
511
|
-
V.isReactWarning = !0, Object.defineProperty(
|
|
511
|
+
V.isReactWarning = !0, Object.defineProperty(j, "key", {
|
|
512
512
|
get: V,
|
|
513
513
|
configurable: !0
|
|
514
514
|
});
|
|
515
515
|
}
|
|
516
516
|
}
|
|
517
|
-
function Yu(
|
|
517
|
+
function Yu(j, A) {
|
|
518
518
|
{
|
|
519
519
|
var V = function() {
|
|
520
520
|
Qa || (Qa = !0, P("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", A));
|
|
521
521
|
};
|
|
522
|
-
V.isReactWarning = !0, Object.defineProperty(
|
|
522
|
+
V.isReactWarning = !0, Object.defineProperty(j, "ref", {
|
|
523
523
|
get: V,
|
|
524
524
|
configurable: !0
|
|
525
525
|
});
|
|
526
526
|
}
|
|
527
527
|
}
|
|
528
|
-
var Ku = function(
|
|
528
|
+
var Ku = function(j, A, V, U, de, fe, ce) {
|
|
529
529
|
var re = {
|
|
530
530
|
// This tag allows us to uniquely identify this as a React Element
|
|
531
531
|
$$typeof: e,
|
|
532
532
|
// Built-in properties that belong on the element
|
|
533
|
-
type:
|
|
533
|
+
type: j,
|
|
534
534
|
key: A,
|
|
535
535
|
ref: V,
|
|
536
536
|
props: ce,
|
|
@@ -554,53 +554,53 @@ function cx() {
|
|
|
554
554
|
value: de
|
|
555
555
|
}), Object.freeze && (Object.freeze(re.props), Object.freeze(re)), re;
|
|
556
556
|
};
|
|
557
|
-
function Ju(
|
|
557
|
+
function Ju(j, A, V, U, de) {
|
|
558
558
|
{
|
|
559
559
|
var fe, ce = {}, re = null, Je = null;
|
|
560
560
|
V !== void 0 && (Wa(V), re = "" + V), Qu(A) && (Wa(A.key), re = "" + A.key), Gu(A) && (Je = A.ref, Hu(A, de));
|
|
561
561
|
for (fe in A)
|
|
562
562
|
Ar.call(A, fe) && !Wu.hasOwnProperty(fe) && (ce[fe] = A[fe]);
|
|
563
|
-
if (
|
|
564
|
-
var ze =
|
|
563
|
+
if (j && j.defaultProps) {
|
|
564
|
+
var ze = j.defaultProps;
|
|
565
565
|
for (fe in ze)
|
|
566
566
|
ce[fe] === void 0 && (ce[fe] = ze[fe]);
|
|
567
567
|
}
|
|
568
568
|
if (re || Je) {
|
|
569
|
-
var Te = typeof
|
|
569
|
+
var Te = typeof j == "function" ? j.displayName || j.name || "Unknown" : j;
|
|
570
570
|
re && Uu(ce, Te), Je && Yu(ce, Te);
|
|
571
571
|
}
|
|
572
|
-
return Ku(
|
|
572
|
+
return Ku(j, re, Je, de, U, sr.current, ce);
|
|
573
573
|
}
|
|
574
574
|
}
|
|
575
575
|
var Ns = E.ReactCurrentOwner, Ha = E.ReactDebugCurrentFrame;
|
|
576
|
-
function An(
|
|
577
|
-
if (
|
|
578
|
-
var A =
|
|
576
|
+
function An(j) {
|
|
577
|
+
if (j) {
|
|
578
|
+
var A = j._owner, V = Er(j.type, j._source, A ? A.type : null);
|
|
579
579
|
Ha.setExtraStackFrame(V);
|
|
580
580
|
} else
|
|
581
581
|
Ha.setExtraStackFrame(null);
|
|
582
582
|
}
|
|
583
583
|
var Bs;
|
|
584
584
|
Bs = !1;
|
|
585
|
-
function Ws(
|
|
586
|
-
return typeof
|
|
585
|
+
function Ws(j) {
|
|
586
|
+
return typeof j == "object" && j !== null && j.$$typeof === e;
|
|
587
587
|
}
|
|
588
588
|
function Ua() {
|
|
589
589
|
{
|
|
590
590
|
if (Ns.current) {
|
|
591
|
-
var
|
|
592
|
-
if (
|
|
591
|
+
var j = ot(Ns.current.type);
|
|
592
|
+
if (j)
|
|
593
593
|
return `
|
|
594
594
|
|
|
595
|
-
Check the render method of \`` +
|
|
595
|
+
Check the render method of \`` + j + "`.";
|
|
596
596
|
}
|
|
597
597
|
return "";
|
|
598
598
|
}
|
|
599
599
|
}
|
|
600
|
-
function Xu(
|
|
600
|
+
function Xu(j) {
|
|
601
601
|
{
|
|
602
|
-
if (
|
|
603
|
-
var A =
|
|
602
|
+
if (j !== void 0) {
|
|
603
|
+
var A = j.fileName.replace(/^.*[\\\/]/, ""), V = j.lineNumber;
|
|
604
604
|
return `
|
|
605
605
|
|
|
606
606
|
Check your code at ` + A + ":" + V + ".";
|
|
@@ -609,11 +609,11 @@ Check your code at ` + A + ":" + V + ".";
|
|
|
609
609
|
}
|
|
610
610
|
}
|
|
611
611
|
var Ya = {};
|
|
612
|
-
function Zu(
|
|
612
|
+
function Zu(j) {
|
|
613
613
|
{
|
|
614
614
|
var A = Ua();
|
|
615
615
|
if (!A) {
|
|
616
|
-
var V = typeof
|
|
616
|
+
var V = typeof j == "string" ? j : j.displayName || j.name;
|
|
617
617
|
V && (A = `
|
|
618
618
|
|
|
619
619
|
Check the top-level render call using <` + V + ">.");
|
|
@@ -621,41 +621,41 @@ Check the top-level render call using <` + V + ">.");
|
|
|
621
621
|
return A;
|
|
622
622
|
}
|
|
623
623
|
}
|
|
624
|
-
function Ka(
|
|
624
|
+
function Ka(j, A) {
|
|
625
625
|
{
|
|
626
|
-
if (!
|
|
626
|
+
if (!j._store || j._store.validated || j.key != null)
|
|
627
627
|
return;
|
|
628
|
-
|
|
628
|
+
j._store.validated = !0;
|
|
629
629
|
var V = Zu(A);
|
|
630
630
|
if (Ya[V])
|
|
631
631
|
return;
|
|
632
632
|
Ya[V] = !0;
|
|
633
633
|
var U = "";
|
|
634
|
-
|
|
634
|
+
j && j._owner && j._owner !== Ns.current && (U = " It was passed a child from " + ot(j._owner.type) + "."), An(j), P('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', V, U), An(null);
|
|
635
635
|
}
|
|
636
636
|
}
|
|
637
|
-
function Ja(
|
|
637
|
+
function Ja(j, A) {
|
|
638
638
|
{
|
|
639
|
-
if (typeof
|
|
639
|
+
if (typeof j != "object")
|
|
640
640
|
return;
|
|
641
|
-
if (Vs(
|
|
642
|
-
for (var V = 0; V <
|
|
643
|
-
var U =
|
|
641
|
+
if (Vs(j))
|
|
642
|
+
for (var V = 0; V < j.length; V++) {
|
|
643
|
+
var U = j[V];
|
|
644
644
|
Ws(U) && Ka(U, A);
|
|
645
645
|
}
|
|
646
|
-
else if (Ws(
|
|
647
|
-
|
|
648
|
-
else if (
|
|
649
|
-
var de = T(
|
|
650
|
-
if (typeof de == "function" && de !==
|
|
651
|
-
for (var fe = de.call(
|
|
646
|
+
else if (Ws(j))
|
|
647
|
+
j._store && (j._store.validated = !0);
|
|
648
|
+
else if (j) {
|
|
649
|
+
var de = T(j);
|
|
650
|
+
if (typeof de == "function" && de !== j.entries)
|
|
651
|
+
for (var fe = de.call(j), ce; !(ce = fe.next()).done; )
|
|
652
652
|
Ws(ce.value) && Ka(ce.value, A);
|
|
653
653
|
}
|
|
654
654
|
}
|
|
655
655
|
}
|
|
656
|
-
function eh(
|
|
656
|
+
function eh(j) {
|
|
657
657
|
{
|
|
658
|
-
var A =
|
|
658
|
+
var A = j.type;
|
|
659
659
|
if (A == null || typeof A == "string")
|
|
660
660
|
return;
|
|
661
661
|
var V;
|
|
@@ -669,7 +669,7 @@ Check the top-level render call using <` + V + ">.");
|
|
|
669
669
|
return;
|
|
670
670
|
if (V) {
|
|
671
671
|
var U = ot(A);
|
|
672
|
-
Vu(V,
|
|
672
|
+
Vu(V, j.props, "prop", U, j);
|
|
673
673
|
} else if (A.PropTypes !== void 0 && !Bs) {
|
|
674
674
|
Bs = !0;
|
|
675
675
|
var de = ot(A);
|
|
@@ -678,30 +678,30 @@ Check the top-level render call using <` + V + ">.");
|
|
|
678
678
|
typeof A.getDefaultProps == "function" && !A.getDefaultProps.isReactClassApproved && P("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.");
|
|
679
679
|
}
|
|
680
680
|
}
|
|
681
|
-
function th(
|
|
681
|
+
function th(j) {
|
|
682
682
|
{
|
|
683
|
-
for (var A = Object.keys(
|
|
683
|
+
for (var A = Object.keys(j.props), V = 0; V < A.length; V++) {
|
|
684
684
|
var U = A[V];
|
|
685
685
|
if (U !== "children" && U !== "key") {
|
|
686
|
-
An(
|
|
686
|
+
An(j), P("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", U), An(null);
|
|
687
687
|
break;
|
|
688
688
|
}
|
|
689
689
|
}
|
|
690
|
-
|
|
690
|
+
j.ref !== null && (An(j), P("Invalid attribute `ref` supplied to `React.Fragment`."), An(null));
|
|
691
691
|
}
|
|
692
692
|
}
|
|
693
|
-
function Xa(
|
|
693
|
+
function Xa(j, A, V, U, de, fe) {
|
|
694
694
|
{
|
|
695
|
-
var ce = Ft(
|
|
695
|
+
var ce = Ft(j);
|
|
696
696
|
if (!ce) {
|
|
697
697
|
var re = "";
|
|
698
|
-
(
|
|
698
|
+
(j === void 0 || typeof j == "object" && j !== null && Object.keys(j).length === 0) && (re += " You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");
|
|
699
699
|
var Je = Xu(de);
|
|
700
700
|
Je ? re += Je : re += Ua();
|
|
701
701
|
var ze;
|
|
702
|
-
|
|
702
|
+
j === null ? ze = "null" : Vs(j) ? ze = "array" : j !== void 0 && j.$$typeof === e ? (ze = "<" + (ot(j.type) || "Unknown") + " />", re = " Did you accidentally export a JSX literal instead of a component?") : ze = typeof j, P("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", ze, re);
|
|
703
703
|
}
|
|
704
|
-
var Te = Ju(
|
|
704
|
+
var Te = Ju(j, A, V, de, fe);
|
|
705
705
|
if (Te == null)
|
|
706
706
|
return Te;
|
|
707
707
|
if (ce) {
|
|
@@ -710,21 +710,21 @@ Check the top-level render call using <` + V + ">.");
|
|
|
710
710
|
if (U)
|
|
711
711
|
if (Vs(ut)) {
|
|
712
712
|
for (var Rn = 0; Rn < ut.length; Rn++)
|
|
713
|
-
Ja(ut[Rn],
|
|
713
|
+
Ja(ut[Rn], j);
|
|
714
714
|
Object.freeze && Object.freeze(ut);
|
|
715
715
|
} else
|
|
716
716
|
P("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");
|
|
717
717
|
else
|
|
718
|
-
Ja(ut,
|
|
718
|
+
Ja(ut, j);
|
|
719
719
|
}
|
|
720
|
-
return
|
|
720
|
+
return j === s ? th(Te) : eh(Te), Te;
|
|
721
721
|
}
|
|
722
722
|
}
|
|
723
|
-
function nh(
|
|
724
|
-
return Xa(
|
|
723
|
+
function nh(j, A, V) {
|
|
724
|
+
return Xa(j, A, V, !0);
|
|
725
725
|
}
|
|
726
|
-
function rh(
|
|
727
|
-
return Xa(
|
|
726
|
+
function rh(j, A, V) {
|
|
727
|
+
return Xa(j, A, V, !1);
|
|
728
728
|
}
|
|
729
729
|
var sh = rh, ih = nh;
|
|
730
730
|
ar.Fragment = s, ar.jsx = sh, ar.jsxs = ih;
|
|
@@ -1731,7 +1731,7 @@ class Pi {
|
|
|
1731
1731
|
}), this.instanceRegistry.clear(), this.factoryRegistry.clear();
|
|
1732
1732
|
}
|
|
1733
1733
|
}
|
|
1734
|
-
const cc = "13.
|
|
1734
|
+
const cc = "13.7.0", ng = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
1735
1735
|
__proto__: null,
|
|
1736
1736
|
version: cc
|
|
1737
1737
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
@@ -1925,7 +1925,7 @@ function ag({
|
|
|
1925
1925
|
y: O(o),
|
|
1926
1926
|
z: O(l)
|
|
1927
1927
|
}), [a, o, l]), {
|
|
1928
|
-
min:
|
|
1928
|
+
min: v,
|
|
1929
1929
|
max: T
|
|
1930
1930
|
} = C(() => {
|
|
1931
1931
|
const P = zh(h, (Z) => Z[f.columnKey]), q = Ih(h, (Z) => Z[f.columnKey]);
|
|
@@ -1939,7 +1939,7 @@ function ag({
|
|
|
1939
1939
|
visualMap: {
|
|
1940
1940
|
show: !0,
|
|
1941
1941
|
dimension: 2,
|
|
1942
|
-
min:
|
|
1942
|
+
min: v,
|
|
1943
1943
|
max: T,
|
|
1944
1944
|
inRange: {
|
|
1945
1945
|
color: ["#313695", "#4575b4", "#74add1", "#abd9e9", "#e0f3f8", "#ffffbf", "#fee090", "#fdae61", "#f46d43", "#d73027", "#a50026"]
|
|
@@ -2286,12 +2286,12 @@ const Ct = ne(({
|
|
|
2286
2286
|
}));
|
|
2287
2287
|
}, f = () => {
|
|
2288
2288
|
p(Ue().func_content);
|
|
2289
|
-
},
|
|
2289
|
+
}, v = n ?? i("chart.axis.customize_label");
|
|
2290
2290
|
return /* @__PURE__ */ r.jsxs(r.Fragment, { children: [
|
|
2291
2291
|
/* @__PURE__ */ r.jsx(I, { variant: "filled", color: "grape", leftIcon: /* @__PURE__ */ r.jsx(ln, { size: 16 }), mt: 24, onClick: o, sx: {
|
|
2292
2292
|
flexGrow: 0
|
|
2293
|
-
}, children:
|
|
2294
|
-
/* @__PURE__ */ r.jsx(we, { size: 800, title:
|
|
2293
|
+
}, children: v }),
|
|
2294
|
+
/* @__PURE__ */ r.jsx(we, { size: 800, title: v, opened: a, onClose: l, closeOnClickOutside: !1, withCloseButton: !1, zIndex: 320, children: a && /* @__PURE__ */ r.jsxs(k, { children: [
|
|
2295
2295
|
/* @__PURE__ */ r.jsx(ee, { mt: 10, label: i("common.enabled"), checked: c.enabled, onChange: (T) => u(T.currentTarget.checked) }),
|
|
2296
2296
|
/* @__PURE__ */ r.jsx(_g, { value: c.func_content, onChange: p, disabled: !c.enabled }),
|
|
2297
2297
|
/* @__PURE__ */ r.jsxs(b, { position: "apart", children: [
|
|
@@ -3278,7 +3278,7 @@ const uf = z(({
|
|
|
3278
3278
|
variables: l
|
|
3279
3279
|
} = t, c = df(i, n), d = async () => {
|
|
3280
3280
|
const p = await i.triggerManager.createOrGetTrigger(Cn(), i.triggerManager.getTriggerSchemaList()[0]), f = await i.operationManager.createOrGetOperation(Cn(), i.operationManager.getOperationSchemaList()[0]);
|
|
3281
|
-
await i.addInteraction(p, f), s((
|
|
3281
|
+
await i.addInteraction(p, f), s((v) => v + 1);
|
|
3282
3282
|
};
|
|
3283
3283
|
async function u(p) {
|
|
3284
3284
|
await i.removeInteraction(p.id), s((f) => f + 1);
|
|
@@ -3397,20 +3397,20 @@ function vf(t, e) {
|
|
|
3397
3397
|
const n = [], s = [];
|
|
3398
3398
|
return {
|
|
3399
3399
|
boxplotData: Object.entries(t).map(([a, o]) => {
|
|
3400
|
-
const l = o.map((E) => E[e]).sort((E, P) => E - P), c = Br(l, 0.25) ?? 0, d = Br(l, 0.5) ?? 0, u = Br(l, 0.75) ?? 0, h = u - c, m = c - 1.5 * h, p = u + 1.5 * h, f = Math.max(l[0], m),
|
|
3400
|
+
const l = o.map((E) => E[e]).sort((E, P) => E - P), c = Br(l, 0.25) ?? 0, d = Br(l, 0.5) ?? 0, u = Br(l, 0.75) ?? 0, h = u - c, m = c - 1.5 * h, p = u + 1.5 * h, f = Math.max(l[0], m), v = Math.min(S.last(l) ?? 0, p);
|
|
3401
3401
|
return o.filter((E) => {
|
|
3402
3402
|
const P = E[e];
|
|
3403
|
-
return P < f || P >
|
|
3403
|
+
return P < f || P > v;
|
|
3404
3404
|
}).forEach((E) => n.push([a, E[e], E])), o.filter((E) => {
|
|
3405
3405
|
const P = E[e];
|
|
3406
|
-
return P >= f && P <=
|
|
3406
|
+
return P >= f && P <= v;
|
|
3407
3407
|
}).forEach((E) => s.push([a, E[e], E])), {
|
|
3408
3408
|
name: a,
|
|
3409
3409
|
min: f,
|
|
3410
3410
|
q1: c,
|
|
3411
3411
|
median: d,
|
|
3412
3412
|
q3: u,
|
|
3413
|
-
max:
|
|
3413
|
+
max: v
|
|
3414
3414
|
};
|
|
3415
3415
|
}),
|
|
3416
3416
|
outliersData: n,
|
|
@@ -3533,7 +3533,7 @@ function Cf(t, e, n) {
|
|
|
3533
3533
|
median: e.coord([l, h]),
|
|
3534
3534
|
q3: e.coord([l, m]),
|
|
3535
3535
|
max: e.coord([l, p])
|
|
3536
|
-
},
|
|
3536
|
+
}, v = {
|
|
3537
3537
|
left: o[1].offset,
|
|
3538
3538
|
center: (o[1].offset + o[1].width) / 2,
|
|
3539
3539
|
right: o[1].width
|
|
@@ -3543,35 +3543,35 @@ function Cf(t, e, n) {
|
|
|
3543
3543
|
}, E = [
|
|
3544
3544
|
// max
|
|
3545
3545
|
{
|
|
3546
|
-
x1: f.max[0] +
|
|
3547
|
-
x2: f.max[0] +
|
|
3546
|
+
x1: f.max[0] + v.left,
|
|
3547
|
+
x2: f.max[0] + v.right,
|
|
3548
3548
|
y1: f.max[1],
|
|
3549
3549
|
y2: f.max[1]
|
|
3550
3550
|
},
|
|
3551
3551
|
// median
|
|
3552
3552
|
{
|
|
3553
|
-
x1: f.median[0] +
|
|
3554
|
-
x2: f.median[0] +
|
|
3553
|
+
x1: f.median[0] + v.left,
|
|
3554
|
+
x2: f.median[0] + v.right,
|
|
3555
3555
|
y1: f.median[1],
|
|
3556
3556
|
y2: f.median[1]
|
|
3557
3557
|
},
|
|
3558
3558
|
// min
|
|
3559
3559
|
{
|
|
3560
|
-
x1: f.min[0] +
|
|
3561
|
-
x2: f.min[0] +
|
|
3560
|
+
x1: f.min[0] + v.left,
|
|
3561
|
+
x2: f.min[0] + v.right,
|
|
3562
3562
|
y1: f.min[1],
|
|
3563
3563
|
y2: f.min[1]
|
|
3564
3564
|
},
|
|
3565
3565
|
// vertical center lines
|
|
3566
3566
|
{
|
|
3567
|
-
x1: f.min[0] +
|
|
3568
|
-
x2: f.min[0] +
|
|
3567
|
+
x1: f.min[0] + v.center,
|
|
3568
|
+
x2: f.min[0] + v.center,
|
|
3569
3569
|
y1: f.min[1],
|
|
3570
3570
|
y2: f.q1[1]
|
|
3571
3571
|
},
|
|
3572
3572
|
{
|
|
3573
|
-
x1: f.max[0] +
|
|
3574
|
-
x2: f.max[0] +
|
|
3573
|
+
x1: f.max[0] + v.center,
|
|
3574
|
+
x2: f.max[0] + v.center,
|
|
3575
3575
|
y1: f.max[1],
|
|
3576
3576
|
y2: f.q3[1]
|
|
3577
3577
|
}
|
|
@@ -3588,9 +3588,9 @@ function Cf(t, e, n) {
|
|
|
3588
3588
|
}), T.children.push({
|
|
3589
3589
|
type: "rect",
|
|
3590
3590
|
shape: {
|
|
3591
|
-
x: f.q1[0] +
|
|
3591
|
+
x: f.q1[0] + v.left,
|
|
3592
3592
|
y: f.q1[1],
|
|
3593
|
-
width:
|
|
3593
|
+
width: v.right - v.left,
|
|
3594
3594
|
height: f.q3[1] - f.q1[1]
|
|
3595
3595
|
},
|
|
3596
3596
|
style: {
|
|
@@ -3922,13 +3922,13 @@ function Nf({
|
|
|
3922
3922
|
} = t.viewport, c = je({}, s, Vi), d = yt({
|
|
3923
3923
|
vizManager: t.vizManager,
|
|
3924
3924
|
instance: e
|
|
3925
|
-
}), u = bt(d.triggerManager, Sc.id), h = En(a, c.x_axis.data_key), m = Ge((
|
|
3926
|
-
const T = S.get(h,
|
|
3925
|
+
}), u = bt(d.triggerManager, Sc.id), h = En(a, c.x_axis.data_key), m = Ge((v) => {
|
|
3926
|
+
const T = S.get(h, v.name, {
|
|
3927
3927
|
error: "rowData is not found"
|
|
3928
3928
|
});
|
|
3929
3929
|
u.forEach((E) => {
|
|
3930
3930
|
d.runInteraction(E.id, {
|
|
3931
|
-
...
|
|
3931
|
+
...v,
|
|
3932
3932
|
rowData: T
|
|
3933
3933
|
});
|
|
3934
3934
|
});
|
|
@@ -4126,7 +4126,7 @@ function Qf(t) {
|
|
|
4126
4126
|
} = Mc(), [l, c] = Q(a), [d, {
|
|
4127
4127
|
setTrue: u,
|
|
4128
4128
|
setFalse: h
|
|
4129
|
-
}] = st(!1), m = i % 2 === 1, p = m && a != null, f = !m && a != null,
|
|
4129
|
+
}] = st(!1), m = i % 2 === 1, p = m && a != null, f = !m && a != null, v = `map ${a} to color ${i}`, T = () => {
|
|
4130
4130
|
c(a), h();
|
|
4131
4131
|
}, E = () => {
|
|
4132
4132
|
h(), n == null || n(l);
|
|
@@ -4137,7 +4137,7 @@ function Qf(t) {
|
|
|
4137
4137
|
absolute: !1
|
|
4138
4138
|
});
|
|
4139
4139
|
return /* @__PURE__ */ r.jsxs("div", { "data-testid": `palette-item-${i}`, className: o.paletteItem, children: [
|
|
4140
|
-
/* @__PURE__ */ r.jsx(w, { title:
|
|
4140
|
+
/* @__PURE__ */ r.jsx(w, { title: v, style: {
|
|
4141
4141
|
opacity: p ? 1 : 0
|
|
4142
4142
|
}, color: "dimmed", size: "sm", className: "palette-value--up palette-value", children: P }),
|
|
4143
4143
|
/* @__PURE__ */ r.jsxs(qn, { width: 200, trapFocus: !0, opened: d, onClose: h, zIndex: 340, withinPortal: !0, children: [
|
|
@@ -4155,7 +4155,7 @@ function Qf(t) {
|
|
|
4155
4155
|
] })
|
|
4156
4156
|
] }) })
|
|
4157
4157
|
] }),
|
|
4158
|
-
/* @__PURE__ */ r.jsx(w, { title:
|
|
4158
|
+
/* @__PURE__ */ r.jsx(w, { title: v, style: {
|
|
4159
4159
|
opacity: f ? 1 : 0
|
|
4160
4160
|
}, color: "dimmed", size: "sm", className: "palette-value--bottom palette-value", children: P })
|
|
4161
4161
|
] });
|
|
@@ -4194,7 +4194,7 @@ const Hf = z(({
|
|
|
4194
4194
|
interpolation: P
|
|
4195
4195
|
}));
|
|
4196
4196
|
}
|
|
4197
|
-
const
|
|
4197
|
+
const v = () => {
|
|
4198
4198
|
m(), i == null || i(Jt(l));
|
|
4199
4199
|
};
|
|
4200
4200
|
function T(P) {
|
|
@@ -4213,7 +4213,7 @@ const Hf = z(({
|
|
|
4213
4213
|
/* @__PURE__ */ r.jsx(Uf, { steps: l.steps, interpolation: d, onChange: T }),
|
|
4214
4214
|
/* @__PURE__ */ r.jsxs(b, { position: "apart", children: [
|
|
4215
4215
|
/* @__PURE__ */ r.jsx(I, { onClick: E, variant: "subtle", children: e("common.actions.cancel") }),
|
|
4216
|
-
/* @__PURE__ */ r.jsx(I, { color: "green", leftIcon: /* @__PURE__ */ r.jsx(Oe, { size: 16 }), onClick:
|
|
4216
|
+
/* @__PURE__ */ r.jsx(I, { color: "green", leftIcon: /* @__PURE__ */ r.jsx(Oe, { size: 16 }), onClick: v, children: e("common.actions.save") })
|
|
4217
4217
|
] })
|
|
4218
4218
|
] }) })
|
|
4219
4219
|
] });
|
|
@@ -4315,20 +4315,20 @@ const Hf = z(({
|
|
|
4315
4315
|
} = ps({
|
|
4316
4316
|
control: t,
|
|
4317
4317
|
name: n
|
|
4318
|
-
}), m = e(n), p = d.map((
|
|
4319
|
-
...
|
|
4318
|
+
}), m = e(n), p = d.map((v, T) => ({
|
|
4319
|
+
...v,
|
|
4320
4320
|
...m[T]
|
|
4321
4321
|
})), f = () => {
|
|
4322
4322
|
u(s());
|
|
4323
4323
|
};
|
|
4324
4324
|
return /* @__PURE__ */ r.jsxs(_, { defaultValue: "0", styles: Zf, children: [
|
|
4325
4325
|
/* @__PURE__ */ r.jsxs(_.List, { children: [
|
|
4326
|
-
p.map((
|
|
4326
|
+
p.map((v, T) => /* @__PURE__ */ r.jsx(_.Tab, { value: T.toString(), children: l(v, T) }, v.id)),
|
|
4327
4327
|
/* @__PURE__ */ r.jsx(_.Tab, { onClick: f, value: "add", children: /* @__PURE__ */ r.jsx(xe, { label: a, children: /* @__PURE__ */ r.jsx(an, { children: /* @__PURE__ */ r.jsx(wt, { size: 18, color: "#228be6" }) }) }) })
|
|
4328
4328
|
] }),
|
|
4329
|
-
p.map((
|
|
4329
|
+
p.map((v, T) => /* @__PURE__ */ r.jsx(_.Panel, { value: T.toString(), children: /* @__PURE__ */ r.jsxs(k, { children: [
|
|
4330
4330
|
i({
|
|
4331
|
-
field:
|
|
4331
|
+
field: v,
|
|
4332
4332
|
index: T
|
|
4333
4333
|
}),
|
|
4334
4334
|
/* @__PURE__ */ r.jsx(R, { mb: -10, mt: 10, variant: "dashed" }),
|
|
@@ -4336,11 +4336,11 @@ const Hf = z(({
|
|
|
4336
4336
|
top: 15,
|
|
4337
4337
|
right: 5
|
|
4338
4338
|
}, disabled: c == null ? void 0 : c({
|
|
4339
|
-
field:
|
|
4339
|
+
field: v,
|
|
4340
4340
|
index: T,
|
|
4341
4341
|
fields: p
|
|
4342
4342
|
}), children: o })
|
|
4343
|
-
] }) },
|
|
4343
|
+
] }) }, v.id))
|
|
4344
4344
|
] });
|
|
4345
4345
|
}, Cs = ne(({
|
|
4346
4346
|
value: t,
|
|
@@ -5074,8 +5074,8 @@ const Wi = {
|
|
|
5074
5074
|
width: h,
|
|
5075
5075
|
height: m
|
|
5076
5076
|
} = t.viewport, p = i.payloadForSQL, f = () => {
|
|
5077
|
-
s.forEach((
|
|
5078
|
-
n.runInteraction(
|
|
5077
|
+
s.forEach((v) => {
|
|
5078
|
+
n.runInteraction(v.id, {});
|
|
5079
5079
|
});
|
|
5080
5080
|
};
|
|
5081
5081
|
return /* @__PURE__ */ r.jsx(an, { sx: {
|
|
@@ -5445,7 +5445,7 @@ function Bb({
|
|
|
5445
5445
|
columnKey: c
|
|
5446
5446
|
} = O(a.y_axis_data_key), d = S.groupBy(ys(n, a.y_axis_data_key), l);
|
|
5447
5447
|
Object.entries(d).forEach(([u, h]) => {
|
|
5448
|
-
const m = h.map((f,
|
|
5448
|
+
const m = h.map((f, v) => [v, Number(f[c])]);
|
|
5449
5449
|
i(a, u, u, m);
|
|
5450
5450
|
});
|
|
5451
5451
|
}), s;
|
|
@@ -5611,7 +5611,7 @@ function Xb({
|
|
|
5611
5611
|
symbolSize: h,
|
|
5612
5612
|
hide_in_legend: m,
|
|
5613
5613
|
...p
|
|
5614
|
-
}, f,
|
|
5614
|
+
}, f, v, T, E) {
|
|
5615
5615
|
const P = e.type !== "category", q = {
|
|
5616
5616
|
label: {
|
|
5617
5617
|
show: !!i,
|
|
@@ -5623,7 +5623,7 @@ function Xb({
|
|
|
5623
5623
|
yAxisIndex: s,
|
|
5624
5624
|
stack: c,
|
|
5625
5625
|
color: d,
|
|
5626
|
-
symbolSize: Jb(h,
|
|
5626
|
+
symbolSize: Jb(h, v, t, T),
|
|
5627
5627
|
hide_in_legend: m,
|
|
5628
5628
|
labelLayout: {
|
|
5629
5629
|
hideOverlap: !0
|
|
@@ -5643,7 +5643,7 @@ function Xb({
|
|
|
5643
5643
|
}), !o || o === t)
|
|
5644
5644
|
return q.data = Yb({
|
|
5645
5645
|
dataTemplate: f,
|
|
5646
|
-
data:
|
|
5646
|
+
data: v,
|
|
5647
5647
|
aggregation_on_value: l,
|
|
5648
5648
|
x_axis_data_key: t,
|
|
5649
5649
|
y_axis_data_key: n,
|
|
@@ -5651,7 +5651,7 @@ function Xb({
|
|
|
5651
5651
|
}), q;
|
|
5652
5652
|
const Z = Kb({
|
|
5653
5653
|
group_by_key: o,
|
|
5654
|
-
data:
|
|
5654
|
+
data: v,
|
|
5655
5655
|
x_axis_data_key: t,
|
|
5656
5656
|
y_axis_data_key: n
|
|
5657
5657
|
});
|
|
@@ -5698,12 +5698,12 @@ function ny(t, e, n, s) {
|
|
|
5698
5698
|
}) => {
|
|
5699
5699
|
if (Array.isArray(p) && p.length === 2 && (p = p[1]), !h)
|
|
5700
5700
|
return p;
|
|
5701
|
-
const f = i[h],
|
|
5701
|
+
const f = i[h], v = s[f] ?? s.default;
|
|
5702
5702
|
return `
|
|
5703
5703
|
<tr>
|
|
5704
5704
|
<td>${m}</td>
|
|
5705
5705
|
<th style="text-align: right; padding: 0 1em;">${h}</th>
|
|
5706
|
-
<td style="text-align: left; padding: 0 1em;">${
|
|
5706
|
+
<td style="text-align: left; padding: 0 1em;">${v({
|
|
5707
5707
|
value: p
|
|
5708
5708
|
})}</td>
|
|
5709
5709
|
</tr>
|
|
@@ -5888,8 +5888,8 @@ function dy({
|
|
|
5888
5888
|
const f = S.get(o, p.name, {
|
|
5889
5889
|
error: "rowData is not found"
|
|
5890
5890
|
});
|
|
5891
|
-
l.forEach((
|
|
5892
|
-
i.runInteraction(
|
|
5891
|
+
l.forEach((v) => {
|
|
5892
|
+
i.runInteraction(v.id, {
|
|
5893
5893
|
...p,
|
|
5894
5894
|
rowData: f
|
|
5895
5895
|
});
|
|
@@ -5936,12 +5936,12 @@ function uy({
|
|
|
5936
5936
|
top: gr(T.top, i, o),
|
|
5937
5937
|
bottom: gr(T.bottom, i, o)
|
|
5938
5938
|
};
|
|
5939
|
-
}, [a, o]), f = Math.max(0, kt(c) - u - m),
|
|
5939
|
+
}, [a, o]), f = Math.max(0, kt(c) - u - m), v = St(l);
|
|
5940
5940
|
return /* @__PURE__ */ r.jsxs(it, { width: l, height: c, children: [
|
|
5941
5941
|
/* @__PURE__ */ r.jsx(w, { ref: d, align: "left", size: "xs", pl: "sm", sx: {
|
|
5942
5942
|
display: bo(a.stats.templates.top) ? "block" : "none"
|
|
5943
5943
|
}, children: Object.values(p.top).map((T, E) => /* @__PURE__ */ r.jsx(L.Fragment, { children: T }, E)) }),
|
|
5944
|
-
/* @__PURE__ */ r.jsx(dy, { variables: i, width:
|
|
5944
|
+
/* @__PURE__ */ r.jsx(dy, { variables: i, width: v, height: f, data: o, conf: a, interactionManager: n }),
|
|
5945
5945
|
/* @__PURE__ */ r.jsx(w, { ref: h, align: "left", size: "xs", pl: "sm", sx: {
|
|
5946
5946
|
display: bo(a.stats.templates.bottom) ? "block" : "none"
|
|
5947
5947
|
}, children: Object.values(p.bottom).map((T, E) => /* @__PURE__ */ r.jsx(L.Fragment, { children: T }, E)) })
|
|
@@ -7665,8 +7665,8 @@ class ht {
|
|
|
7665
7665
|
let m = d ? e == c ? -1 : e == h ? 1 : n : n, p = c + i + (m < 0 ? 0 : u);
|
|
7666
7666
|
if (s)
|
|
7667
7667
|
return p;
|
|
7668
|
-
let f = e == (n < 0 ? c : h) ? null : Ty(l / 3, e - c),
|
|
7669
|
-
return (n < 0 ? e != c : e != h) && (
|
|
7668
|
+
let f = e == (n < 0 ? c : h) ? null : Ty(l / 3, e - c), v = e == c ? Bc : e == h ? Nc : Qr;
|
|
7669
|
+
return (n < 0 ? e != c : e != h) && (v |= Wc), new wo(p, v, f);
|
|
7670
7670
|
}
|
|
7671
7671
|
i += u - d;
|
|
7672
7672
|
}
|
|
@@ -8111,8 +8111,8 @@ function Hr(t, e, n = 1, s) {
|
|
|
8111
8111
|
return !1;
|
|
8112
8112
|
let p = h.content.cutByIndex(m, h.childCount), f = s && s[u + 1];
|
|
8113
8113
|
f && (p = p.replaceChild(0, f.type.create(f.attrs)));
|
|
8114
|
-
let
|
|
8115
|
-
if (!h.canReplace(m + 1, h.childCount) || !
|
|
8114
|
+
let v = s && s[u] || h;
|
|
8115
|
+
if (!h.canReplace(m + 1, h.childCount) || !v.type.validContent(p))
|
|
8116
8116
|
return !1;
|
|
8117
8117
|
}
|
|
8118
8118
|
let l = i.indexAfter(a), c = s && s[0];
|
|
@@ -8701,8 +8701,8 @@ class $y {
|
|
|
8701
8701
|
}
|
|
8702
8702
|
createChain(e, n = !0) {
|
|
8703
8703
|
const { rawCommands: s, editor: i, state: a } = this, { view: o } = i, l = [], c = !!e, d = e || a.tr, u = () => (!c && n && !d.getMeta("preventDispatch") && !this.hasCustomState && o.dispatch(d), l.every((m) => m === !0)), h = {
|
|
8704
|
-
...Object.fromEntries(Object.entries(s).map(([m, p]) => [m, (...
|
|
8705
|
-
const T = this.buildProps(d, n), E = p(...
|
|
8704
|
+
...Object.fromEntries(Object.entries(s).map(([m, p]) => [m, (...v) => {
|
|
8705
|
+
const T = this.buildProps(d, n), E = p(...v)(T);
|
|
8706
8706
|
return l.push(E), h;
|
|
8707
8707
|
}])),
|
|
8708
8708
|
run: u
|
|
@@ -8868,8 +8868,8 @@ const By = () => ({ editor: t, view: e }) => (requestAnimationFrame(() => {
|
|
|
8868
8868
|
return;
|
|
8869
8869
|
const f = Ly(p);
|
|
8870
8870
|
if (l.type.isTextblock) {
|
|
8871
|
-
const { defaultType:
|
|
8872
|
-
e.setNodeMarkup(p.start,
|
|
8871
|
+
const { defaultType: v } = h.parent.contentMatchAt(h.index());
|
|
8872
|
+
e.setNodeMarkup(p.start, v);
|
|
8873
8873
|
}
|
|
8874
8874
|
(f || f === 0) && e.lift(p, f);
|
|
8875
8875
|
});
|
|
@@ -9198,11 +9198,11 @@ function E_(t, e, n = {}) {
|
|
|
9198
9198
|
const l = [];
|
|
9199
9199
|
if (i.forEach(({ $from: h, $to: m }) => {
|
|
9200
9200
|
const p = h.pos, f = m.pos;
|
|
9201
|
-
t.doc.nodesBetween(p, f, (
|
|
9202
|
-
if (!
|
|
9201
|
+
t.doc.nodesBetween(p, f, (v, T) => {
|
|
9202
|
+
if (!v.isText && !v.marks.length)
|
|
9203
9203
|
return;
|
|
9204
|
-
const E = Math.max(p, T), P = Math.min(f, T +
|
|
9205
|
-
o += q, l.push(...
|
|
9204
|
+
const E = Math.max(p, T), P = Math.min(f, T + v.nodeSize), q = P - E;
|
|
9205
|
+
o += q, l.push(...v.marks.map((Z) => ({
|
|
9206
9206
|
mark: Z,
|
|
9207
9207
|
from: E,
|
|
9208
9208
|
to: P
|
|
@@ -9239,7 +9239,7 @@ function A_(t, e, n) {
|
|
|
9239
9239
|
if (d)
|
|
9240
9240
|
return !1;
|
|
9241
9241
|
if (u.isInline) {
|
|
9242
|
-
const p = !m || m.type.allowsMarkType(n), f = !!n.isInSet(u.marks) || !u.marks.some((
|
|
9242
|
+
const p = !m || m.type.allowsMarkType(n), f = !!n.isInSet(u.marks) || !u.marks.some((v) => v.type.excludes(n));
|
|
9243
9243
|
d = p && f;
|
|
9244
9244
|
}
|
|
9245
9245
|
return !d;
|
|
@@ -9259,13 +9259,13 @@ const R_ = (t, e = {}) => ({ tr: n, state: s, dispatch: i }) => {
|
|
|
9259
9259
|
l.forEach((d) => {
|
|
9260
9260
|
const u = d.$from.pos, h = d.$to.pos;
|
|
9261
9261
|
s.doc.nodesBetween(u, h, (m, p) => {
|
|
9262
|
-
const f = Math.max(p, u),
|
|
9262
|
+
const f = Math.max(p, u), v = Math.min(p + m.nodeSize, h);
|
|
9263
9263
|
m.marks.find((E) => E.type === c) ? m.marks.forEach((E) => {
|
|
9264
|
-
c === E.type && n.addMark(f,
|
|
9264
|
+
c === E.type && n.addMark(f, v, c.create({
|
|
9265
9265
|
...E.attrs,
|
|
9266
9266
|
...e
|
|
9267
9267
|
}));
|
|
9268
|
-
}) : n.addMark(f,
|
|
9268
|
+
}) : n.addMark(f, v, c.create(e));
|
|
9269
9269
|
});
|
|
9270
9270
|
});
|
|
9271
9271
|
return A_(s, n, c);
|
|
@@ -9317,7 +9317,7 @@ const q_ = ({ keepMarks: t = !0 } = {}) => ({ tr: e, state: n, dispatch: s, edit
|
|
|
9317
9317
|
attrs: u
|
|
9318
9318
|
}
|
|
9319
9319
|
] : void 0), f && (e.split(e.mapping.map(l.pos), 1, p), m && !h && !l.parentOffset && l.parent.type !== m)) {
|
|
9320
|
-
const
|
|
9320
|
+
const v = e.mapping.map(l.before()), T = e.doc.resolve(v);
|
|
9321
9321
|
l.node(-1).canReplaceWith(T.index(), T.index() + 1, m) && e.setNodeMarkup(e.mapping.map(l.before()), m);
|
|
9322
9322
|
}
|
|
9323
9323
|
t && Mo(n, i.extensionManager.splittableMarks), e.scrollIntoView();
|
|
@@ -9355,7 +9355,7 @@ const q_ = ({ keepMarks: t = !0 } = {}) => ({ tr: e, state: n, dispatch: s, edit
|
|
|
9355
9355
|
}
|
|
9356
9356
|
const m = c.pos === l.end() ? u.contentMatchAt(0).defaultType : null, p = Ur(h, u.type.name, u.attrs), f = Ur(h, l.node().type.name, l.node().attrs);
|
|
9357
9357
|
e.delete(l.pos, c.pos);
|
|
9358
|
-
const
|
|
9358
|
+
const v = m ? [
|
|
9359
9359
|
{ type: o, attrs: p },
|
|
9360
9360
|
{ type: m, attrs: f }
|
|
9361
9361
|
] : [{ type: o, attrs: p }];
|
|
@@ -9363,7 +9363,7 @@ const q_ = ({ keepMarks: t = !0 } = {}) => ({ tr: e, state: n, dispatch: s, edit
|
|
|
9363
9363
|
return !1;
|
|
9364
9364
|
if (s) {
|
|
9365
9365
|
const { selection: T, storedMarks: E } = n, { splittableMarks: P } = i.extensionManager, q = E || T.$to.parentOffset && T.$from.marks();
|
|
9366
|
-
if (e.split(l.pos, 2,
|
|
9366
|
+
if (e.split(l.pos, 2, v).scrollIntoView(), !q || !s)
|
|
9367
9367
|
return !0;
|
|
9368
9368
|
const Z = q.filter((ae) => P.includes(ae.type.name));
|
|
9369
9369
|
e.ensureMarks(Z);
|
|
@@ -9388,10 +9388,10 @@ const q_ = ({ keepMarks: t = !0 } = {}) => ({ tr: e, state: n, dispatch: s, edit
|
|
|
9388
9388
|
const i = t.doc.nodeAt(s);
|
|
9389
9389
|
return n.node.type === (i == null ? void 0 : i.type) && Gc(t.doc, s) && t.join(s), !0;
|
|
9390
9390
|
}, B_ = (t, e, n, s = {}) => ({ editor: i, tr: a, state: o, dispatch: l, chain: c, commands: d, can: u }) => {
|
|
9391
|
-
const { extensions: h, splittableMarks: m } = i.extensionManager, p = Ye(t, o.schema), f = Ye(e, o.schema), { selection:
|
|
9391
|
+
const { extensions: h, splittableMarks: m } = i.extensionManager, p = Ye(t, o.schema), f = Ye(e, o.schema), { selection: v, storedMarks: T } = o, { $from: E, $to: P } = v, q = E.blockRange(P), Z = T || v.$to.parentOffset && v.$from.marks();
|
|
9392
9392
|
if (!q)
|
|
9393
9393
|
return !1;
|
|
9394
|
-
const ae = ta((K) => Do(K.type.name, h))(
|
|
9394
|
+
const ae = ta((K) => Do(K.type.name, h))(v);
|
|
9395
9395
|
if (q.depth >= 1 && ae && q.depth - ae.depth <= 1) {
|
|
9396
9396
|
if (ae.node.type === p)
|
|
9397
9397
|
return d.liftListItem(f);
|
|
@@ -9443,8 +9443,8 @@ const q_ = ({ keepMarks: t = !0 } = {}) => ({ tr: e, state: n, dispatch: s, edit
|
|
|
9443
9443
|
return !0;
|
|
9444
9444
|
if (u && o) {
|
|
9445
9445
|
let { from: m, to: p } = l;
|
|
9446
|
-
const f = (a = d.marks().find((T) => T.type === c)) === null || a === void 0 ? void 0 : a.attrs,
|
|
9447
|
-
|
|
9446
|
+
const f = (a = d.marks().find((T) => T.type === c)) === null || a === void 0 ? void 0 : a.attrs, v = Kc(d, c, f);
|
|
9447
|
+
v && (m = v.from, p = v.to), n.removeMark(m, p, c);
|
|
9448
9448
|
} else
|
|
9449
9449
|
h.forEach((m) => {
|
|
9450
9450
|
n.removeMark(m.$from.pos, m.$to.pos, c);
|
|
@@ -9461,8 +9461,8 @@ const q_ = ({ keepMarks: t = !0 } = {}) => ({ tr: e, state: n, dispatch: s, edit
|
|
|
9461
9461
|
...e
|
|
9462
9462
|
}), o && h.marks.length && h.marks.forEach((p) => {
|
|
9463
9463
|
if (o === p.type) {
|
|
9464
|
-
const f = Math.max(m, d),
|
|
9465
|
-
n.addMark(f,
|
|
9464
|
+
const f = Math.max(m, d), v = Math.min(m + h.nodeSize, u);
|
|
9465
|
+
n.addMark(f, v, o.create({
|
|
9466
9466
|
...p.attrs,
|
|
9467
9467
|
...e
|
|
9468
9468
|
}));
|
|
@@ -11110,9 +11110,9 @@ function Qv(t, e) {
|
|
|
11110
11110
|
} = n;
|
|
11111
11111
|
if (!s || !i)
|
|
11112
11112
|
return {};
|
|
11113
|
-
const h = O(s), m = O(i), p = e[h.queryID].map((
|
|
11114
|
-
name:
|
|
11115
|
-
value:
|
|
11113
|
+
const h = O(s), m = O(i), p = e[h.queryID].map((v) => ({
|
|
11114
|
+
name: v[h.columnKey],
|
|
11115
|
+
value: v[m.columnKey]
|
|
11116
11116
|
})), f = ft(a.overflow.on_axis);
|
|
11117
11117
|
return {
|
|
11118
11118
|
type: "funnel",
|
|
@@ -11691,10 +11691,10 @@ function xj({
|
|
|
11691
11691
|
value: ""
|
|
11692
11692
|
}
|
|
11693
11693
|
}, p = [u, h, m], f = s[`${l}---${c}`];
|
|
11694
|
-
return f && t.tooltip.metrics.forEach((
|
|
11695
|
-
const T = O(
|
|
11694
|
+
return f && t.tooltip.metrics.forEach((v) => {
|
|
11695
|
+
const T = O(v.data_key);
|
|
11696
11696
|
p.push({
|
|
11697
|
-
label:
|
|
11697
|
+
label: v.name,
|
|
11698
11698
|
value: pj(S.get(f, T.columnKey, "")),
|
|
11699
11699
|
style: {
|
|
11700
11700
|
label: "",
|
|
@@ -12267,7 +12267,7 @@ function Ej(t, e, n, s, i) {
|
|
|
12267
12267
|
}, {}), o = kj(t.visualMap, a), {
|
|
12268
12268
|
min: l,
|
|
12269
12269
|
max: c
|
|
12270
|
-
} = o, d = dj(t), u = uj(t), h = O(t.x_axis.data_key), m = O(t.y_axis.data_key), p = O(t.heat_block.data_key), f = S.uniq(e[h.queryID].map((q) => q[h.columnKey])),
|
|
12270
|
+
} = o, d = dj(t), u = uj(t), h = O(t.x_axis.data_key), m = O(t.y_axis.data_key), p = O(t.heat_block.data_key), f = S.uniq(e[h.queryID].map((q) => q[h.columnKey])), v = S.uniq(e[h.queryID].map((q) => q[m.columnKey])), T = e[h.queryID].map((q) => {
|
|
12271
12271
|
const Z = S.get(q, h.columnKey), ae = S.get(q, m.columnKey), K = S.get(q, p.columnKey), J = {
|
|
12272
12272
|
value: [Z, ae, K]
|
|
12273
12273
|
}, {
|
|
@@ -12277,10 +12277,10 @@ function Ej(t, e, n, s, i) {
|
|
|
12277
12277
|
return ve || (J.visualMap = !1, J.itemStyle = {
|
|
12278
12278
|
color: ye
|
|
12279
12279
|
}), J;
|
|
12280
|
-
}), E = Lj(f.length,
|
|
12280
|
+
}), E = Lj(f.length, v.length, s, i);
|
|
12281
12281
|
return {
|
|
12282
12282
|
xAxis: fj(t, f, d.x_axis, E),
|
|
12283
|
-
yAxis: bj(t,
|
|
12283
|
+
yAxis: bj(t, v, d.y_axis, E),
|
|
12284
12284
|
series: mj(t, T, E),
|
|
12285
12285
|
tooltip: gj(t, e, d, u),
|
|
12286
12286
|
grid: hj(t),
|
|
@@ -12375,8 +12375,8 @@ function $j({
|
|
|
12375
12375
|
const [m, p] = h.value, f = S.get(o, `${m}---${p}`, {
|
|
12376
12376
|
error: "rowData is not found"
|
|
12377
12377
|
});
|
|
12378
|
-
l.forEach((
|
|
12379
|
-
i.runInteraction(
|
|
12378
|
+
l.forEach((v) => {
|
|
12379
|
+
i.runInteraction(v.id, {
|
|
12380
12380
|
...h,
|
|
12381
12381
|
rowData: f
|
|
12382
12382
|
});
|
|
@@ -13001,8 +13001,8 @@ function cw(t, e, n) {
|
|
|
13001
13001
|
if (a.queryID !== o.queryID)
|
|
13002
13002
|
throw new Error("Please use the same query for X & Y axis");
|
|
13003
13003
|
const l = e[a.queryID].map((m) => [m[a.columnKey], Number(m[o.columnKey])]).sort((m, p) => p[1] - m[1]), c = l.reduce((m, p) => m + p[1], 0), d = l.reduce((m, p, f) => {
|
|
13004
|
-
const
|
|
13005
|
-
return m.push([p[0],
|
|
13004
|
+
const v = f === 0 ? 0 : m[f - 1][1];
|
|
13005
|
+
return m.push([p[0], v + p[1]]), m;
|
|
13006
13006
|
}, []).map((m) => [m[0], m[1] / c]), {
|
|
13007
13007
|
markLine: u,
|
|
13008
13008
|
markArea: h
|
|
@@ -13161,8 +13161,8 @@ function xw({
|
|
|
13161
13161
|
const f = S.get(u, p.name, {
|
|
13162
13162
|
error: "rowData is not found"
|
|
13163
13163
|
});
|
|
13164
|
-
d.forEach((
|
|
13165
|
-
c.runInteraction(
|
|
13164
|
+
d.forEach((v) => {
|
|
13165
|
+
c.runInteraction(v.id, {
|
|
13166
13166
|
...p,
|
|
13167
13167
|
rowData: f
|
|
13168
13168
|
});
|
|
@@ -14091,10 +14091,10 @@ function s0({
|
|
|
14091
14091
|
const {
|
|
14092
14092
|
queryID: h,
|
|
14093
14093
|
columnKey: m
|
|
14094
|
-
} = O(t.series_name_key), p = S.keyBy(e[h], m), f = t.additional_series.reduce((
|
|
14094
|
+
} = O(t.series_name_key), p = S.keyBy(e[h], m), f = t.additional_series.reduce((v, T) => {
|
|
14095
14095
|
const E = O(T.name_key), P = S.keyBy(e[E.queryID], E.columnKey);
|
|
14096
14096
|
return {
|
|
14097
|
-
...
|
|
14097
|
+
...v,
|
|
14098
14098
|
...P
|
|
14099
14099
|
};
|
|
14100
14100
|
}, p);
|
|
@@ -15870,8 +15870,8 @@ function wS(t, e) {
|
|
|
15870
15870
|
</tr>`], m = t.tooltip.metrics.map((f) => `<tr>
|
|
15871
15871
|
<th style="text-align: right;">${f.name}</th>
|
|
15872
15872
|
${o.map(({
|
|
15873
|
-
value:
|
|
15874
|
-
}) => `<td style="text-align: right; padding: 0 1em;">${jS(Wr(
|
|
15873
|
+
value: v
|
|
15874
|
+
}) => `<td style="text-align: right; padding: 0 1em;">${jS(Wr(v, f.data_key))}</td>`).join("")}
|
|
15875
15875
|
</tr>`);
|
|
15876
15876
|
return h.push(...m), `
|
|
15877
15877
|
<table style="width: auto">
|
|
@@ -16037,22 +16037,22 @@ function TS({
|
|
|
16037
16037
|
} = mr(), p = L.useMemo(() => {
|
|
16038
16038
|
const {
|
|
16039
16039
|
stats: {
|
|
16040
|
-
templates:
|
|
16040
|
+
templates: v
|
|
16041
16041
|
}
|
|
16042
16042
|
} = a;
|
|
16043
16043
|
return {
|
|
16044
|
-
top: gr(
|
|
16045
|
-
bottom: gr(
|
|
16044
|
+
top: gr(v.top, i, o),
|
|
16045
|
+
bottom: gr(v.bottom, i, o)
|
|
16046
16046
|
};
|
|
16047
16047
|
}, [a, o]), f = Math.max(0, kt(c) - u - m);
|
|
16048
16048
|
return !l || !c ? null : /* @__PURE__ */ r.jsxs(it, { width: l, height: c, children: [
|
|
16049
16049
|
/* @__PURE__ */ r.jsx(w, { ref: d, align: "left", size: "xs", pl: "sm", sx: {
|
|
16050
16050
|
display: $o(a.stats.templates.top) ? "block" : "none"
|
|
16051
|
-
}, children: Object.values(p.top).map((
|
|
16051
|
+
}, children: Object.values(p.top).map((v) => v) }),
|
|
16052
16052
|
/* @__PURE__ */ r.jsx(IS, { variables: i, width: St(l), height: f, data: o, conf: a, interactionManager: n }),
|
|
16053
16053
|
/* @__PURE__ */ r.jsx(w, { ref: h, align: "left", size: "xs", pl: "sm", sx: {
|
|
16054
16054
|
display: $o(a.stats.templates.bottom) ? "block" : "none"
|
|
16055
|
-
}, children: Object.values(p.bottom).map((
|
|
16055
|
+
}, children: Object.values(p.bottom).map((v) => v) })
|
|
16056
16056
|
] });
|
|
16057
16057
|
}
|
|
16058
16058
|
const DS = ne(({
|
|
@@ -18039,7 +18039,7 @@ function Oo({
|
|
|
18039
18039
|
getColIndex: Ge((ye) => p.indexOf(ye.column.columnDef.meta), [p]),
|
|
18040
18040
|
vizManager: i.vizManager,
|
|
18041
18041
|
instance: a
|
|
18042
|
-
}),
|
|
18042
|
+
}), v = C(() => {
|
|
18043
18043
|
const ye = Hl();
|
|
18044
18044
|
return p.map((Ee) => {
|
|
18045
18045
|
const Dr = vx(Ee.value_field);
|
|
@@ -18058,7 +18058,7 @@ function Oo({
|
|
|
18058
18058
|
sorting: T
|
|
18059
18059
|
},
|
|
18060
18060
|
onSortingChange: E,
|
|
18061
|
-
columns:
|
|
18061
|
+
columns: v,
|
|
18062
18062
|
getCoreRowModel: Yl(),
|
|
18063
18063
|
getSortedRowModel: hp()
|
|
18064
18064
|
}), {
|
|
@@ -18173,15 +18173,15 @@ const y1 = ne((t, e) => {
|
|
|
18173
18173
|
t: n
|
|
18174
18174
|
} = y(), {
|
|
18175
18175
|
colorManager: s
|
|
18176
|
-
} = Yt(Ot), [i, a] = Q(_d(t.value)), [o, l] = Q(f1(s, t.value)), c = ro(o), [d, u] = Q(b1(s, t.value)), h = ro(d), m = (
|
|
18176
|
+
} = Yt(Ot), [i, a] = Q(_d(t.value)), [o, l] = Q(f1(s, t.value)), c = ro(o), [d, u] = Q(b1(s, t.value)), h = ro(d), m = (v) => {
|
|
18177
18177
|
var T, E, P;
|
|
18178
|
-
a(
|
|
18179
|
-
}, p = (
|
|
18178
|
+
a(v || "none"), v === "static" ? (T = t.onChange) == null || T.call(t, c.current) : v === "none" || !v ? (E = t.onChange) == null || E.call(t, "none") : (P = t.onChange) == null || P.call(t, h.current);
|
|
18179
|
+
}, p = (v) => {
|
|
18180
18180
|
var T;
|
|
18181
|
-
l(
|
|
18182
|
-
}, f = (
|
|
18181
|
+
l(v), (T = t.onChange) == null || T.call(t, v);
|
|
18182
|
+
}, f = (v) => {
|
|
18183
18183
|
var T;
|
|
18184
|
-
u(
|
|
18184
|
+
u(v), (T = t.onChange) == null || T.call(t, v);
|
|
18185
18185
|
};
|
|
18186
18186
|
return /* @__PURE__ */ r.jsxs(k, { align: "stretch", children: [
|
|
18187
18187
|
/* @__PURE__ */ r.jsx(Kf, { label: n("viz.table.column.cell_background"), value: i || "none", onChange: m }),
|
|
@@ -18797,13 +18797,13 @@ function V1({
|
|
|
18797
18797
|
const {
|
|
18798
18798
|
func_content: p,
|
|
18799
18799
|
horizontal_align: f,
|
|
18800
|
-
font_size:
|
|
18800
|
+
font_size: v,
|
|
18801
18801
|
font_weight: T
|
|
18802
18802
|
} = i;
|
|
18803
18803
|
return {
|
|
18804
18804
|
func_content: p,
|
|
18805
18805
|
horizontal_align: f,
|
|
18806
|
-
font_size:
|
|
18806
|
+
font_size: v,
|
|
18807
18807
|
font_weight: T
|
|
18808
18808
|
};
|
|
18809
18809
|
}, [i]);
|
|
@@ -19369,8 +19369,8 @@ function yC({
|
|
|
19369
19369
|
const [m, p] = h.value, f = S.get(o, m, {
|
|
19370
19370
|
error: "rowData is not found"
|
|
19371
19371
|
});
|
|
19372
|
-
l.forEach((
|
|
19373
|
-
i.runInteraction(
|
|
19372
|
+
l.forEach((v) => {
|
|
19373
|
+
i.runInteraction(v.id, {
|
|
19374
19374
|
...h,
|
|
19375
19375
|
rowData: f
|
|
19376
19376
|
});
|
|
@@ -19905,7 +19905,7 @@ function QC({
|
|
|
19905
19905
|
invisible: u,
|
|
19906
19906
|
id: h,
|
|
19907
19907
|
...m
|
|
19908
|
-
}, p, f,
|
|
19908
|
+
}, p, f, v, T, E) {
|
|
19909
19909
|
const P = {
|
|
19910
19910
|
label: {
|
|
19911
19911
|
show: !!s,
|
|
@@ -19929,7 +19929,7 @@ function QC({
|
|
|
19929
19929
|
if (!a || a === t.data_key)
|
|
19930
19930
|
return P.data = WC({
|
|
19931
19931
|
dataTemplate: p,
|
|
19932
|
-
data:
|
|
19932
|
+
data: v,
|
|
19933
19933
|
aggregation_on_value: o,
|
|
19934
19934
|
name_data_key: t.data_key,
|
|
19935
19935
|
value_data_key: e,
|
|
@@ -19937,7 +19937,7 @@ function QC({
|
|
|
19937
19937
|
}), P;
|
|
19938
19938
|
const q = GC({
|
|
19939
19939
|
group_by_key: a,
|
|
19940
|
-
data:
|
|
19940
|
+
data: v,
|
|
19941
19941
|
name_data_key: t.data_key,
|
|
19942
19942
|
value_data_key: e
|
|
19943
19943
|
});
|
|
@@ -20863,8 +20863,8 @@ function Sz(t, e, n, s) {
|
|
|
20863
20863
|
const h = S.countBy(n[u], (p) => p.level.diff), m = S.sum(Object.values(h));
|
|
20864
20864
|
Object.entries(h).forEach(([p, f]) => {
|
|
20865
20865
|
i[p] || (i[p] = []);
|
|
20866
|
-
const
|
|
20867
|
-
i[p].push([u,
|
|
20866
|
+
const v = f / m;
|
|
20867
|
+
i[p].push([u, v, f, m]);
|
|
20868
20868
|
});
|
|
20869
20869
|
});
|
|
20870
20870
|
const a = Object.entries(i).map(([u]) => Number(u)).sort((u, h) => u - h), o = Math.max(...a), l = Math.min(...a), c = Tn([o, 0, l], ["#D15A40", "#FFF", "#418AAF"]);
|
|
@@ -20886,7 +20886,7 @@ function Sz(t, e, n, s) {
|
|
|
20886
20886
|
const {
|
|
20887
20887
|
x: p,
|
|
20888
20888
|
percentage: f,
|
|
20889
|
-
count:
|
|
20889
|
+
count: v,
|
|
20890
20890
|
sum: T
|
|
20891
20891
|
} = wz(m);
|
|
20892
20892
|
return `
|
|
@@ -20916,7 +20916,7 @@ function Sz(t, e, n, s) {
|
|
|
20916
20916
|
</tr>
|
|
20917
20917
|
<tr>
|
|
20918
20918
|
<th style="text-align: right;">数量</th>
|
|
20919
|
-
<td style="text-align: left; padding: 0 1em;">${
|
|
20919
|
+
<td style="text-align: left; padding: 0 1em;">${v}</td>
|
|
20920
20920
|
</tr>
|
|
20921
20921
|
<tr>
|
|
20922
20922
|
<th style="text-align: right;">总数</th>
|
|
@@ -22298,10 +22298,10 @@ function II({
|
|
|
22298
22298
|
value: ""
|
|
22299
22299
|
}
|
|
22300
22300
|
}, p = [u, h, m], f = s[`${l}---${c}`];
|
|
22301
|
-
return f && t.tooltip.metrics.forEach((
|
|
22302
|
-
const T = O(
|
|
22301
|
+
return f && t.tooltip.metrics.forEach((v) => {
|
|
22302
|
+
const T = O(v.data_key);
|
|
22303
22303
|
p.push({
|
|
22304
|
-
label:
|
|
22304
|
+
label: v.name,
|
|
22305
22305
|
value: zI(S.get(f, T.columnKey, "")),
|
|
22306
22306
|
style: {
|
|
22307
22307
|
label: "",
|
|
@@ -22479,8 +22479,8 @@ function AI({
|
|
|
22479
22479
|
const [m, p] = h.value, f = S.get(o, `${m}---${p}`, {
|
|
22480
22480
|
error: "rowData is not found"
|
|
22481
22481
|
});
|
|
22482
|
-
l.forEach((
|
|
22483
|
-
i.runInteraction(
|
|
22482
|
+
l.forEach((v) => {
|
|
22483
|
+
i.runInteraction(v.id, {
|
|
22484
22484
|
...h,
|
|
22485
22485
|
rowData: f
|
|
22486
22486
|
});
|
|
@@ -23214,9 +23214,9 @@ const UI = ({
|
|
|
23214
23214
|
classNames: e,
|
|
23215
23215
|
styles: n,
|
|
23216
23216
|
unstyled: s
|
|
23217
|
-
}), [
|
|
23217
|
+
}), [v, T] = Q(!1), E = (K) => {
|
|
23218
23218
|
T(K);
|
|
23219
|
-
}, P =
|
|
23219
|
+
}, P = v && (l == null ? void 0 : l.length) > 0, [q, Z] = Q(""), ae = C(() => {
|
|
23220
23220
|
if (!q)
|
|
23221
23221
|
return d;
|
|
23222
23222
|
const K = q.toLowerCase(), J = (ve) => {
|
|
@@ -23608,7 +23608,7 @@ const nT = ({
|
|
|
23608
23608
|
t: p
|
|
23609
23609
|
} = y(), {
|
|
23610
23610
|
classes: f,
|
|
23611
|
-
cx:
|
|
23611
|
+
cx: v
|
|
23612
23612
|
} = aT({
|
|
23613
23613
|
radius: i
|
|
23614
23614
|
}, {
|
|
@@ -23636,8 +23636,8 @@ const nT = ({
|
|
|
23636
23636
|
allowClear: !0,
|
|
23637
23637
|
treeCheckStrictly: m,
|
|
23638
23638
|
labelInValue: !0,
|
|
23639
|
-
className:
|
|
23640
|
-
dropdownClassName:
|
|
23639
|
+
className: v(f.root, "check-select"),
|
|
23640
|
+
dropdownClassName: v(f.dropdown, ""),
|
|
23641
23641
|
onDropdownVisibleChange: P,
|
|
23642
23642
|
transitionName: "rc-tree-select-dropdown-slide-up",
|
|
23643
23643
|
choiceTransitionName: "rc-tree-select-selection__choice-zoom",
|
|
@@ -23760,8 +23760,8 @@ const mT = ({
|
|
|
23760
23760
|
const d = i.filters.visibleInView(e.id), u = C(() => d.every((f) => f.should_auto_submit), [d]), h = C(() => d.filter((f) => S.get(f, "config.required", !1)), [d]), m = C(() => h.length === 0 ? !1 : h.some((f) => !f.requiredAndPass(c[f.key])), [c, h]);
|
|
23761
23761
|
if (d.length === 0)
|
|
23762
23762
|
return null;
|
|
23763
|
-
const p = (f,
|
|
23764
|
-
|
|
23763
|
+
const p = (f, v) => (T, E) => {
|
|
23764
|
+
v(T), (f.should_auto_submit || E) && i.filters.setValueByKey(f.key, T);
|
|
23765
23765
|
};
|
|
23766
23766
|
return /* @__PURE__ */ r.jsxs("form", { onSubmit: o(i.filters.setValues), children: [
|
|
23767
23767
|
/* @__PURE__ */ r.jsx(mT, { opened: n, toggle: s }),
|
|
@@ -23771,8 +23771,8 @@ const mT = ({
|
|
|
23771
23771
|
padding: "16px"
|
|
23772
23772
|
}, children: [
|
|
23773
23773
|
/* @__PURE__ */ r.jsx(b, { align: "flex-start", children: d.map((f) => /* @__PURE__ */ r.jsx(g, { name: f.key, control: a, render: ({
|
|
23774
|
-
field:
|
|
23775
|
-
}) => /* @__PURE__ */ r.jsx(dT, { filter: f, value:
|
|
23774
|
+
field: v
|
|
23775
|
+
}) => /* @__PURE__ */ r.jsx(dT, { filter: f, value: v.value, onChange: p(f, v.onChange) }) }, f.id)) }),
|
|
23776
23776
|
!u && /* @__PURE__ */ r.jsx(b, { sx: {
|
|
23777
23777
|
alignSelf: "flex-end"
|
|
23778
23778
|
}, children: /* @__PURE__ */ r.jsx(uT, { disabled: m }) })
|
|
@@ -26125,57 +26125,58 @@ class JT {
|
|
|
26125
26125
|
}
|
|
26126
26126
|
}
|
|
26127
26127
|
const XT = (t) => new JT(t), ZT = z(({
|
|
26128
|
-
view: t
|
|
26128
|
+
view: t,
|
|
26129
|
+
title: e
|
|
26129
26130
|
}) => {
|
|
26130
26131
|
const {
|
|
26131
|
-
t:
|
|
26132
|
-
} = y(),
|
|
26133
|
-
panel:
|
|
26134
|
-
downloadPanelScreenshot:
|
|
26132
|
+
t: n
|
|
26133
|
+
} = y(), s = me(), i = le(), a = At(), {
|
|
26134
|
+
panel: o,
|
|
26135
|
+
downloadPanelScreenshot: l
|
|
26135
26136
|
} = gt(), {
|
|
26136
|
-
id:
|
|
26137
|
-
} =
|
|
26138
|
-
viewPanelInFullScreen:
|
|
26139
|
-
inFullScreen:
|
|
26140
|
-
} = L.useContext(Rs),
|
|
26141
|
-
|
|
26142
|
-
},
|
|
26143
|
-
|
|
26144
|
-
},
|
|
26145
|
-
title: `${
|
|
26137
|
+
id: c
|
|
26138
|
+
} = o, {
|
|
26139
|
+
viewPanelInFullScreen: d,
|
|
26140
|
+
inFullScreen: u
|
|
26141
|
+
} = L.useContext(Rs), h = () => {
|
|
26142
|
+
i.duplicatePanelByID(c, t.id);
|
|
26143
|
+
}, m = () => {
|
|
26144
|
+
s.editor.open(["_VIEWS_", t.id, "_PANELS_", c]);
|
|
26145
|
+
}, p = () => a.openConfirmModal({
|
|
26146
|
+
title: `${n("panel.delete")}?`,
|
|
26146
26147
|
labels: {
|
|
26147
|
-
confirm:
|
|
26148
|
-
cancel:
|
|
26148
|
+
confirm: n("common.actions.confirm"),
|
|
26149
|
+
cancel: n("common.actions.cancel")
|
|
26149
26150
|
},
|
|
26150
26151
|
onCancel: () => console.log("Cancel"),
|
|
26151
|
-
onConfirm: () =>
|
|
26152
|
+
onConfirm: () => i.removePanelByID(c, t.id),
|
|
26152
26153
|
confirmProps: {
|
|
26153
26154
|
color: "red"
|
|
26154
26155
|
},
|
|
26155
26156
|
zIndex: 320
|
|
26156
|
-
}),
|
|
26157
|
-
c
|
|
26158
|
-
}, [
|
|
26157
|
+
}), f = L.useCallback(() => {
|
|
26158
|
+
d(c);
|
|
26159
|
+
}, [c, d]), v = !u && t.type !== W.Modal;
|
|
26159
26160
|
return /* @__PURE__ */ r.jsx(r.Fragment, { children: /* @__PURE__ */ r.jsx(M, { sx: {
|
|
26160
26161
|
position: "absolute",
|
|
26161
26162
|
top: 0,
|
|
26162
26163
|
left: 0,
|
|
26163
26164
|
right: 0,
|
|
26164
26165
|
zIndex: 300
|
|
26165
|
-
}, children: /* @__PURE__ */ r.jsxs(Y, { withinPortal: !0, children: [
|
|
26166
|
+
}, title: e, children: /* @__PURE__ */ r.jsxs(Y, { withinPortal: !0, children: [
|
|
26166
26167
|
/* @__PURE__ */ r.jsx(Y.Target, { children: /* @__PURE__ */ r.jsx(M, { className: "panel-dropdown-target", sx: {
|
|
26167
26168
|
width: "100%"
|
|
26168
26169
|
} }) }),
|
|
26169
26170
|
/* @__PURE__ */ r.jsxs(Y.Dropdown, { children: [
|
|
26170
|
-
/* @__PURE__ */ r.jsx(Y.Item, { onClick:
|
|
26171
|
-
/* @__PURE__ */ r.jsx(Y.Item, { onClick:
|
|
26172
|
-
/* @__PURE__ */ r.jsx(Y.Item, { onClick:
|
|
26173
|
-
/* @__PURE__ */ r.jsx(Y.Item, { onClick:
|
|
26174
|
-
|
|
26175
|
-
/* @__PURE__ */ r.jsx(R, { label:
|
|
26176
|
-
/* @__PURE__ */ r.jsx(Y.Item, { onClick:
|
|
26177
|
-
/* @__PURE__ */ r.jsx(Y.Item, { onClick:
|
|
26178
|
-
/* @__PURE__ */ r.jsx(Y.Item, { color: "red", onClick:
|
|
26171
|
+
/* @__PURE__ */ r.jsx(Y.Item, { onClick: o.refreshData, icon: /* @__PURE__ */ r.jsx(Ii, { size: 14 }), children: n("common.actions.refresh") }),
|
|
26172
|
+
/* @__PURE__ */ r.jsx(Y.Item, { onClick: o.downloadData, icon: /* @__PURE__ */ r.jsx(Ti, { size: 14 }), children: n("common.actions.download_data") }),
|
|
26173
|
+
/* @__PURE__ */ r.jsx(Y.Item, { onClick: o.downloadSchema, icon: /* @__PURE__ */ r.jsx(zn, { size: 14 }), children: n("common.actions.download_schema") }),
|
|
26174
|
+
/* @__PURE__ */ r.jsx(Y.Item, { onClick: l, icon: /* @__PURE__ */ r.jsx(gs, { size: 14 }), children: n("common.actions.download_screenshot") }),
|
|
26175
|
+
v && /* @__PURE__ */ r.jsx(Y.Item, { onClick: f, icon: /* @__PURE__ */ r.jsx(jl, { size: 14 }), disabled: !0, children: n("common.actions.enter_fullscreen") }),
|
|
26176
|
+
/* @__PURE__ */ r.jsx(R, { label: n("common.actions.edit"), labelPosition: "center" }),
|
|
26177
|
+
/* @__PURE__ */ r.jsx(Y.Item, { onClick: m, icon: /* @__PURE__ */ r.jsx(wl, { size: 14 }), children: n("common.titles.settings") }),
|
|
26178
|
+
/* @__PURE__ */ r.jsx(Y.Item, { onClick: h, icon: /* @__PURE__ */ r.jsx(dm, { size: 14 }), children: n("common.actions.duplicate") }),
|
|
26179
|
+
/* @__PURE__ */ r.jsx(Y.Item, { color: "red", onClick: p, icon: /* @__PURE__ */ r.jsx(Rt, { size: 14 }), children: n("common.actions.delete") })
|
|
26179
26180
|
] })
|
|
26180
26181
|
] }) }) });
|
|
26181
26182
|
});
|
|
@@ -26454,40 +26455,41 @@ const hD = z(function({
|
|
|
26454
26455
|
view: n
|
|
26455
26456
|
}) {
|
|
26456
26457
|
const s = uD(e);
|
|
26457
|
-
return /* @__PURE__ */ r.jsx(xu, { panel: e, panelStyle: s, dropdownContent: /* @__PURE__ */ r.jsx(ZT, { view: n }) });
|
|
26458
|
+
return /* @__PURE__ */ r.jsx(xu, { panel: e, panelStyle: s, dropdownContent: /* @__PURE__ */ r.jsx(ZT, { view: n, title: e.name }) });
|
|
26458
26459
|
});
|
|
26459
26460
|
function mD(t) {
|
|
26460
26461
|
return !["richText", "button"].includes(t);
|
|
26461
26462
|
}
|
|
26462
26463
|
const pD = z(({
|
|
26463
|
-
view: t
|
|
26464
|
+
view: t,
|
|
26465
|
+
title: e
|
|
26464
26466
|
}) => {
|
|
26465
26467
|
const {
|
|
26466
|
-
t:
|
|
26468
|
+
t: n
|
|
26467
26469
|
} = y(), {
|
|
26468
|
-
panel:
|
|
26469
|
-
downloadPanelScreenshot:
|
|
26470
|
+
panel: s,
|
|
26471
|
+
downloadPanelScreenshot: i
|
|
26470
26472
|
} = cn(), {
|
|
26471
|
-
id:
|
|
26472
|
-
} =
|
|
26473
|
-
viewPanelInFullScreen:
|
|
26474
|
-
inFullScreen:
|
|
26475
|
-
} = L.useContext(Rs),
|
|
26476
|
-
a
|
|
26477
|
-
}, [
|
|
26478
|
-
return mD(
|
|
26473
|
+
id: a
|
|
26474
|
+
} = s, {
|
|
26475
|
+
viewPanelInFullScreen: o,
|
|
26476
|
+
inFullScreen: l
|
|
26477
|
+
} = L.useContext(Rs), c = L.useCallback(() => {
|
|
26478
|
+
o(a);
|
|
26479
|
+
}, [a, o]), d = !l && t.type !== W.Modal;
|
|
26480
|
+
return mD(s.viz.type) ? /* @__PURE__ */ r.jsx(M, { sx: {
|
|
26479
26481
|
position: "absolute",
|
|
26480
26482
|
top: 0,
|
|
26481
26483
|
left: 0,
|
|
26482
26484
|
right: 0,
|
|
26483
26485
|
zIndex: 300
|
|
26484
|
-
}, children: /* @__PURE__ */ r.jsxs(Y, { withinPortal: !0, children: [
|
|
26486
|
+
}, title: e, children: /* @__PURE__ */ r.jsxs(Y, { withinPortal: !0, children: [
|
|
26485
26487
|
/* @__PURE__ */ r.jsx(Y.Target, { children: /* @__PURE__ */ r.jsx(M, { className: "panel-dropdown-target" }) }),
|
|
26486
26488
|
/* @__PURE__ */ r.jsxs(Y.Dropdown, { children: [
|
|
26487
|
-
/* @__PURE__ */ r.jsx(Y.Item, { onClick:
|
|
26488
|
-
/* @__PURE__ */ r.jsx(Y.Item, { onClick:
|
|
26489
|
-
/* @__PURE__ */ r.jsx(Y.Item, { onClick:
|
|
26490
|
-
|
|
26489
|
+
/* @__PURE__ */ r.jsx(Y.Item, { onClick: s.refreshData, icon: /* @__PURE__ */ r.jsx(Ii, { size: 14 }), children: n("common.actions.refresh") }),
|
|
26490
|
+
/* @__PURE__ */ r.jsx(Y.Item, { onClick: s.downloadData, icon: /* @__PURE__ */ r.jsx(Ti, { size: 14 }), children: n("common.actions.download_data") }),
|
|
26491
|
+
/* @__PURE__ */ r.jsx(Y.Item, { onClick: i, icon: /* @__PURE__ */ r.jsx(gs, { size: 14 }), children: n("common.actions.download_screenshot") }),
|
|
26492
|
+
d && /* @__PURE__ */ r.jsx(Y.Item, { onClick: c, icon: /* @__PURE__ */ r.jsx(jl, { size: 14 }), children: n("common.actions.enter_fullscreen") })
|
|
26491
26493
|
] })
|
|
26492
26494
|
] }) }) : null;
|
|
26493
26495
|
});
|
|
@@ -26501,7 +26503,7 @@ const gu = z(({
|
|
|
26501
26503
|
view: e
|
|
26502
26504
|
}) => {
|
|
26503
26505
|
const n = xD(t);
|
|
26504
|
-
return /* @__PURE__ */ r.jsx(xu, { panel: t, panelStyle: n, dropdownContent: /* @__PURE__ */ r.jsx(pD, { view: e }) });
|
|
26506
|
+
return /* @__PURE__ */ r.jsx(xu, { panel: t, panelStyle: n, dropdownContent: /* @__PURE__ */ r.jsx(pD, { title: t.name, view: e }) });
|
|
26505
26507
|
}), gD = {
|
|
26506
26508
|
modal: {
|
|
26507
26509
|
display: "flex",
|
|
@@ -28187,7 +28189,7 @@ const rM = x.model({
|
|
|
28187
28189
|
}
|
|
28188
28190
|
if (Array.isArray(n)) {
|
|
28189
28191
|
const m = n.map((p) => {
|
|
28190
|
-
const f = p.panelIDs.map((
|
|
28192
|
+
const f = p.panelIDs.map((v) => u.get(v) ?? v);
|
|
28191
28193
|
return {
|
|
28192
28194
|
...p,
|
|
28193
28195
|
id: Gt(),
|
|
@@ -28197,24 +28199,24 @@ const rM = x.model({
|
|
|
28197
28199
|
t.views.appendMultiple(m);
|
|
28198
28200
|
}
|
|
28199
28201
|
if (Array.isArray(o)) {
|
|
28200
|
-
const m = (
|
|
28202
|
+
const m = (v, T) => t.layouts.breakpointNameRecord[v] === T;
|
|
28201
28203
|
let p = [];
|
|
28202
|
-
const f = o.filter((
|
|
28203
|
-
f.forEach((
|
|
28204
|
-
|
|
28204
|
+
const f = o.filter((v) => m(v.name, v.breakpoint));
|
|
28205
|
+
f.forEach((v) => {
|
|
28206
|
+
v.id === "basis" && (p = v.list), v.list.forEach((T) => {
|
|
28205
28207
|
const E = u.get(T.panelID);
|
|
28206
28208
|
T.id = Gt(), T.panelID = E;
|
|
28207
28209
|
});
|
|
28208
|
-
}), t.layouts.list.forEach((
|
|
28209
|
-
const T = f.find((E) => E.name ===
|
|
28210
|
+
}), t.layouts.list.forEach((v) => {
|
|
28211
|
+
const T = f.find((E) => E.name === v.name && E.breakpoint === v.breakpoint);
|
|
28210
28212
|
if (!T) {
|
|
28211
28213
|
p.forEach((E) => {
|
|
28212
|
-
|
|
28214
|
+
v.addLayout(E);
|
|
28213
28215
|
});
|
|
28214
28216
|
return;
|
|
28215
28217
|
}
|
|
28216
28218
|
T.list.forEach((E) => {
|
|
28217
|
-
|
|
28219
|
+
v.addLayout(E);
|
|
28218
28220
|
});
|
|
28219
28221
|
});
|
|
28220
28222
|
}
|
|
@@ -28291,7 +28293,7 @@ function sM({
|
|
|
28291
28293
|
definition: {
|
|
28292
28294
|
queries: p,
|
|
28293
28295
|
sqlSnippets: f,
|
|
28294
|
-
mock_context:
|
|
28296
|
+
mock_context: v = {}
|
|
28295
28297
|
}
|
|
28296
28298
|
} = a;
|
|
28297
28299
|
return _u.create({
|
|
@@ -28301,14 +28303,14 @@ function sM({
|
|
|
28301
28303
|
create_time: s,
|
|
28302
28304
|
update_time: i,
|
|
28303
28305
|
version: c,
|
|
28304
|
-
filters: su(d, o,
|
|
28306
|
+
filters: su(d, o, v, l),
|
|
28305
28307
|
queries: {
|
|
28306
28308
|
current: p
|
|
28307
28309
|
},
|
|
28308
28310
|
sqlSnippets: {
|
|
28309
28311
|
current: f
|
|
28310
28312
|
},
|
|
28311
|
-
mock_context: Ed(
|
|
28313
|
+
mock_context: Ed(v),
|
|
28312
28314
|
views: yu(u),
|
|
28313
28315
|
panels: {
|
|
28314
28316
|
list: h
|
|
@@ -30413,7 +30415,7 @@ const cM = z(({
|
|
|
30413
30415
|
return "Screen sizes should be unique by min width";
|
|
30414
30416
|
}
|
|
30415
30417
|
}
|
|
30416
|
-
}), f = l("list"),
|
|
30418
|
+
}), f = l("list"), v = h.map((J, ve) => ({
|
|
30417
30419
|
...J,
|
|
30418
30420
|
...f[ve]
|
|
30419
30421
|
})), T = () => {
|
|
@@ -30447,7 +30449,7 @@ const cM = z(({
|
|
|
30447
30449
|
/* @__PURE__ */ r.jsx("th", {})
|
|
30448
30450
|
] }) }),
|
|
30449
30451
|
/* @__PURE__ */ r.jsxs("tbody", { children: [
|
|
30450
|
-
|
|
30452
|
+
v.map((J, ve) => /* @__PURE__ */ r.jsxs("tr", { children: [
|
|
30451
30453
|
/* @__PURE__ */ r.jsx("th", { children: J.id === "basis" ? J.name : /* @__PURE__ */ r.jsx(g, { name: `list.${ve}.name`, control: a, render: ({
|
|
30452
30454
|
field: ye
|
|
30453
30455
|
}) => /* @__PURE__ */ r.jsx(D, { size: "xs", label: "", required: !0, sx: {
|
|
@@ -30751,7 +30753,7 @@ const wM = z(({
|
|
|
30751
30753
|
}));
|
|
30752
30754
|
};
|
|
30753
30755
|
}, [m]);
|
|
30754
|
-
const [f] = c(["content"]),
|
|
30756
|
+
const [f] = c(["content"]), v = !f, T = (E = o == null ? void 0 : o.content) == null ? void 0 : E.message;
|
|
30755
30757
|
return B(() => {
|
|
30756
30758
|
!f || T ? n() : e();
|
|
30757
30759
|
}, [f, T]), /* @__PURE__ */ r.jsx(M, { mx: "auto", sx: {
|
|
@@ -30773,7 +30775,7 @@ const wM = z(({
|
|
|
30773
30775
|
] })
|
|
30774
30776
|
] }) }) : /* @__PURE__ */ r.jsxs(r.Fragment, { children: [
|
|
30775
30777
|
/* @__PURE__ */ r.jsx(vM, { content: f }),
|
|
30776
|
-
/* @__PURE__ */ r.jsx(b, { position: "right", my: "md", children: /* @__PURE__ */ r.jsx(I, { type: "submit", color: "green", disabled:
|
|
30778
|
+
/* @__PURE__ */ r.jsx(b, { position: "right", my: "md", children: /* @__PURE__ */ r.jsx(I, { type: "submit", color: "green", disabled: v, children: s("common.actions.confirm") }) })
|
|
30777
30779
|
] })
|
|
30778
30780
|
] }) });
|
|
30779
30781
|
}), Jo = {
|
|
@@ -30854,11 +30856,11 @@ function IM(t, e, n) {
|
|
|
30854
30856
|
} = p;
|
|
30855
30857
|
switch (m) {
|
|
30856
30858
|
case "builtin:op:open-link":
|
|
30857
|
-
let
|
|
30858
|
-
f.urlTemplate.length >= 20 && (
|
|
30859
|
+
let v = f.urlTemplate.substring(0, 100);
|
|
30860
|
+
f.urlTemplate.length >= 20 && (v += "..."), o.type = "interaction", o.data.interactions.push({
|
|
30859
30861
|
schemaRef: m,
|
|
30860
30862
|
urlTemplate: f.urlTemplate,
|
|
30861
|
-
shortURLTemplate:
|
|
30863
|
+
shortURLTemplate: v
|
|
30862
30864
|
});
|
|
30863
30865
|
return;
|
|
30864
30866
|
case "builtin:op:open_view":
|
|
@@ -32358,7 +32360,7 @@ function AL({
|
|
|
32358
32360
|
] }),
|
|
32359
32361
|
/* @__PURE__ */ r.jsxs(b, { children: [
|
|
32360
32362
|
i.map((m, p) => /* @__PURE__ */ r.jsx(Wn, { value: m, onChange: (f) => {
|
|
32361
|
-
a((
|
|
32363
|
+
a((v) => (v.splice(p, 1, f), [...v]));
|
|
32362
32364
|
}, swatches: h, rightSection: /* @__PURE__ */ r.jsx(X, { onClick: () => l(p), color: "red", children: /* @__PURE__ */ r.jsx(Rt, { size: 14 }) }), sx: {
|
|
32363
32365
|
width: "45%"
|
|
32364
32366
|
} })),
|
|
@@ -32388,7 +32390,7 @@ function $L({
|
|
|
32388
32390
|
/* @__PURE__ */ r.jsxs(b, { children: [
|
|
32389
32391
|
a.map((h, m) => /* @__PURE__ */ r.jsx(D, { type: s, value: h, onChange: (p) => {
|
|
32390
32392
|
const f = p.currentTarget.value;
|
|
32391
|
-
o((
|
|
32393
|
+
o((v) => (v.splice(m, 1, f), [...v]));
|
|
32392
32394
|
}, rightSection: /* @__PURE__ */ r.jsx(X, { onClick: () => c(m), color: "red", children: /* @__PURE__ */ r.jsx(Rt, { size: 14 }) }), sx: {
|
|
32393
32395
|
width: "45%"
|
|
32394
32396
|
} })),
|
|
@@ -33823,8 +33825,8 @@ WHERE
|
|
|
33823
33825
|
B(() => {
|
|
33824
33826
|
l(t.key), m(t.value);
|
|
33825
33827
|
}, [t]);
|
|
33826
|
-
const f = h !== t.value,
|
|
33827
|
-
|
|
33828
|
+
const f = h !== t.value, v = At(), T = () => {
|
|
33829
|
+
v.openConfirmModal({
|
|
33828
33830
|
title: `${s("sql_snippet.delete")}?`,
|
|
33829
33831
|
labels: {
|
|
33830
33832
|
confirm: s("common.actions.confirm"),
|
|
@@ -34072,11 +34074,11 @@ WHERE
|
|
|
34072
34074
|
const {
|
|
34073
34075
|
enabled: p,
|
|
34074
34076
|
func_content: f
|
|
34075
|
-
} = o,
|
|
34077
|
+
} = o, v = {
|
|
34076
34078
|
enabled: p,
|
|
34077
34079
|
func_content: f
|
|
34078
34080
|
};
|
|
34079
|
-
l(
|
|
34081
|
+
l(v), e(v);
|
|
34080
34082
|
}, u = () => {
|
|
34081
34083
|
a(), l(t);
|
|
34082
34084
|
}, h = (p) => {
|
|
@@ -34501,31 +34503,31 @@ const wA = {
|
|
|
34501
34503
|
data: p = []
|
|
34502
34504
|
} = Sn($i), {
|
|
34503
34505
|
data: f = []
|
|
34504
|
-
} = Sn(ic),
|
|
34505
|
-
L.useImperativeHandle(m, () =>
|
|
34506
|
-
|
|
34506
|
+
} = Sn(ic), v = L.useMemo(() => aM(e, n, p, f, t, c ?? {}), [e, n]);
|
|
34507
|
+
L.useImperativeHandle(m, () => v, [v]), ju(v.content, !0), L.useEffect(() => {
|
|
34508
|
+
v.context.replace(t);
|
|
34507
34509
|
}, [t]), L.useEffect(() => {
|
|
34508
|
-
|
|
34510
|
+
v.datasources.replace(p);
|
|
34509
34511
|
}, [p]), L.useEffect(() => {
|
|
34510
|
-
|
|
34512
|
+
v.globalSQLSnippets.replace(f);
|
|
34511
34513
|
}, [f]), L.useEffect(() => {
|
|
34512
|
-
d == null || d(
|
|
34513
|
-
}, [d,
|
|
34514
|
-
c &&
|
|
34515
|
-
}, [c,
|
|
34514
|
+
d == null || d(v.content.filters.values);
|
|
34515
|
+
}, [d, v.content.filters.values]), L.useEffect(() => {
|
|
34516
|
+
c && v.content.filters.patchValues(c);
|
|
34517
|
+
}, [c, v.content.filters.patchValues]), L.useEffect(() => tt(() => Jt(v.json), (q) => {
|
|
34516
34518
|
o == null || o(q);
|
|
34517
|
-
}), [
|
|
34519
|
+
}), [v]);
|
|
34518
34520
|
const T = async () => {
|
|
34519
|
-
await s(
|
|
34521
|
+
await s(v.json, v.content.json);
|
|
34520
34522
|
}, E = jt(_a, []), P = wu(E);
|
|
34521
34523
|
return /* @__PURE__ */ r.jsx(vu, { lang: h, children: /* @__PURE__ */ r.jsx(ul, { children: /* @__PURE__ */ r.jsx(jc, { children: /* @__PURE__ */ r.jsx(pc, { value: {
|
|
34522
34524
|
searchButtonProps: a.searchButtonProps
|
|
34523
|
-
}, children: /* @__PURE__ */ r.jsx(uc, { value:
|
|
34525
|
+
}, children: /* @__PURE__ */ r.jsx(uc, { value: v, children: /* @__PURE__ */ r.jsx(gc, { value: v.content, children: /* @__PURE__ */ r.jsx(Fi.Provider, { value: {
|
|
34524
34526
|
inEditMode: !0
|
|
34525
34527
|
}, children: /* @__PURE__ */ r.jsx(Ot.Provider, { value: E, children: /* @__PURE__ */ r.jsxs(As, { configure: P, children: [
|
|
34526
34528
|
/* @__PURE__ */ r.jsx(dl, { padding: 0, header: /* @__PURE__ */ r.jsx(zM, { onExit: u, saveDashboardChanges: T, headerSlot: l }), navbar: /* @__PURE__ */ r.jsx(eL, {}), styles: wA, children: /* @__PURE__ */ r.jsx(M, { className: `${i} dashboard-root`, sx: {
|
|
34527
34529
|
position: "relative"
|
|
34528
|
-
}, children:
|
|
34530
|
+
}, children: v.content.views.visibleViews.map((q) => /* @__PURE__ */ r.jsx($D, { view: q }, q.id)) }) }),
|
|
34529
34531
|
/* @__PURE__ */ r.jsx(_A, {})
|
|
34530
34532
|
] }) }) }) }) }) }) }) }) });
|
|
34531
34533
|
}, C2 = z(ne(SA));
|
|
@@ -34651,7 +34653,7 @@ function kA({
|
|
|
34651
34653
|
definition: {
|
|
34652
34654
|
queries: p,
|
|
34653
34655
|
sqlSnippets: f,
|
|
34654
|
-
mock_context:
|
|
34656
|
+
mock_context: v = {}
|
|
34655
34657
|
}
|
|
34656
34658
|
} = a;
|
|
34657
34659
|
return Au.create({
|
|
@@ -34661,10 +34663,10 @@ function kA({
|
|
|
34661
34663
|
create_time: s,
|
|
34662
34664
|
update_time: i,
|
|
34663
34665
|
version: c,
|
|
34664
|
-
filters: su(d, o,
|
|
34666
|
+
filters: su(d, o, v, l),
|
|
34665
34667
|
queries: UT(p),
|
|
34666
34668
|
sqlSnippets: KT(f),
|
|
34667
|
-
mock_context: Ed(
|
|
34669
|
+
mock_context: Ed(v),
|
|
34668
34670
|
views: NT(u),
|
|
34669
34671
|
panels: {
|
|
34670
34672
|
list: h
|
|
@@ -34745,7 +34747,7 @@ const IA = ({
|
|
|
34745
34747
|
setFullScreenPanelID: o
|
|
34746
34748
|
}, children: /* @__PURE__ */ r.jsx(Fi.Provider, { value: {
|
|
34747
34749
|
inEditMode: !1
|
|
34748
|
-
}, children: /* @__PURE__ */ r.jsx(M, { className: `${s} dashboard-root`, children: /* @__PURE__ */ r.jsx(Ot.Provider, { value: p, children: /* @__PURE__ */ r.jsx(As, { configure: f, children: m.content.views.visibleViews.map((
|
|
34750
|
+
}, children: /* @__PURE__ */ r.jsx(M, { className: `${s} dashboard-root`, children: /* @__PURE__ */ r.jsx(Ot.Provider, { value: p, children: /* @__PURE__ */ r.jsx(As, { configure: f, children: m.content.views.visibleViews.map((v) => /* @__PURE__ */ r.jsx(Ca, { view: v }, v.id)) }) }) }) }) }) }) }) }) }) }) });
|
|
34749
34751
|
}, z2 = z(IA);
|
|
34750
34752
|
$.extend(wp);
|
|
34751
34753
|
$.extend(Sp);
|