@tenorlab/react-dashboard 1.5.22 → 1.5.24
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/react-dashboard.d.ts +3 -1
- package/dist/react-dashboard.es.js +159 -143
- package/package.json +1 -1
|
@@ -68,7 +68,7 @@ export declare interface IButtonProps {
|
|
|
68
68
|
shadow?: string;
|
|
69
69
|
shadowHover?: string;
|
|
70
70
|
addCss?: string;
|
|
71
|
-
onClick: () => any;
|
|
71
|
+
onClick: (ev?: any) => any;
|
|
72
72
|
children: React.ReactNode;
|
|
73
73
|
}
|
|
74
74
|
|
|
@@ -307,6 +307,8 @@ export declare function MoveRightIcon({ className }: TIconProps): JSX_2.Element;
|
|
|
307
307
|
|
|
308
308
|
export declare function RedoIcon({ className }: TIconProps): JSX_2.Element;
|
|
309
309
|
|
|
310
|
+
export declare function RenameIcon({ className }: TIconProps): JSX_2.Element;
|
|
311
|
+
|
|
310
312
|
export declare function SettingsIcon({ className }: TIconProps): JSX_2.Element;
|
|
311
313
|
|
|
312
314
|
export declare const showToast: (options: any) => void;
|
|
@@ -329,7 +329,7 @@ const wt = (e) => (i, t, r) => {
|
|
|
329
329
|
// (Optional: You might expose undoHistory and historyIndex if needed for debugging)
|
|
330
330
|
};
|
|
331
331
|
};
|
|
332
|
-
function
|
|
332
|
+
function U({
|
|
333
333
|
children: e,
|
|
334
334
|
className: i
|
|
335
335
|
}) {
|
|
@@ -351,14 +351,14 @@ function B({
|
|
|
351
351
|
);
|
|
352
352
|
}
|
|
353
353
|
function mn({ className: e }) {
|
|
354
|
-
return /* @__PURE__ */ $(
|
|
354
|
+
return /* @__PURE__ */ $(U, { className: `lucide lucide-circle-plus-icon lucide-circle-plus ${e}`, children: [
|
|
355
355
|
/* @__PURE__ */ n("circle", { cx: "12", cy: "12", r: "10" }),
|
|
356
356
|
/* @__PURE__ */ n("path", { d: "M8 12h8" }),
|
|
357
357
|
/* @__PURE__ */ n("path", { d: "M12 8v8" })
|
|
358
358
|
] });
|
|
359
359
|
}
|
|
360
360
|
function pn({ className: e }) {
|
|
361
|
-
return /* @__PURE__ */ $(
|
|
361
|
+
return /* @__PURE__ */ $(U, { className: `lucide lucide-trash2-icon lucide-trash-2 ${e}`, children: [
|
|
362
362
|
/* @__PURE__ */ n("path", { d: "M10 11v6" }),
|
|
363
363
|
/* @__PURE__ */ n("path", { d: "M14 11v6" }),
|
|
364
364
|
/* @__PURE__ */ n("path", { d: "M19 6v14a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V6" }),
|
|
@@ -367,13 +367,28 @@ function pn({ className: e }) {
|
|
|
367
367
|
] });
|
|
368
368
|
}
|
|
369
369
|
function yn({ className: e }) {
|
|
370
|
-
return /* @__PURE__ */ $(
|
|
370
|
+
return /* @__PURE__ */ $(U, { className: `lucide lucide-square-pen-icon lucide-square-pen ${e}`, children: [
|
|
371
371
|
/* @__PURE__ */ n("path", { d: "M12 3H5a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2v-7" }),
|
|
372
372
|
/* @__PURE__ */ n("path", { d: "M18.375 2.625a1 1 0 0 1 3 3l-9.013 9.014a2 2 0 0 1-.853.505l-2.873.84a.5.5 0 0 1-.62-.62l.84-2.873a2 2 0 0 1 .506-.852z" })
|
|
373
373
|
] });
|
|
374
374
|
}
|
|
375
375
|
function bn({ className: e }) {
|
|
376
|
-
return /* @__PURE__ */ $(
|
|
376
|
+
return /* @__PURE__ */ $(
|
|
377
|
+
U,
|
|
378
|
+
{
|
|
379
|
+
className: `lucide lucide-text-cursor-input-icon lucide-text-cursor-input ${e}`,
|
|
380
|
+
children: [
|
|
381
|
+
/* @__PURE__ */ n("path", { d: "M12 20h-1a2 2 0 0 1-2-2 2 2 0 0 1-2 2H6" }),
|
|
382
|
+
/* @__PURE__ */ n("path", { d: "M13 8h7a2 2 0 0 1 2 2v4a2 2 0 0 1-2 2h-7" }),
|
|
383
|
+
/* @__PURE__ */ n("path", { d: "M5 16H4a2 2 0 0 1-2-2v-4a2 2 0 0 1 2-2h1" }),
|
|
384
|
+
/* @__PURE__ */ n("path", { d: "M6 4h1a2 2 0 0 1 2 2 2 2 0 0 1 2-2h1" }),
|
|
385
|
+
/* @__PURE__ */ n("path", { d: "M9 6v12" })
|
|
386
|
+
]
|
|
387
|
+
}
|
|
388
|
+
);
|
|
389
|
+
}
|
|
390
|
+
function vn({ className: e }) {
|
|
391
|
+
return /* @__PURE__ */ $(U, { className: `lucide lucide-grid3x3-icon lucide-grid-3x3 ${e}`, children: [
|
|
377
392
|
/* @__PURE__ */ n("rect", { width: "18", height: "18", x: "3", y: "3", rx: "2" }),
|
|
378
393
|
/* @__PURE__ */ n("path", { d: "M3 9h18" }),
|
|
379
394
|
/* @__PURE__ */ n("path", { d: "M3 15h18" }),
|
|
@@ -381,16 +396,16 @@ function bn({ className: e }) {
|
|
|
381
396
|
/* @__PURE__ */ n("path", { d: "M15 3v18" })
|
|
382
397
|
] });
|
|
383
398
|
}
|
|
384
|
-
function
|
|
385
|
-
return /* @__PURE__ */ $(
|
|
399
|
+
function xn({ className: e }) {
|
|
400
|
+
return /* @__PURE__ */ $(U, { className: `lucide lucide-monitor-icon lucide-monitor ${e}`, children: [
|
|
386
401
|
/* @__PURE__ */ n("rect", { width: "20", height: "14", x: "2", y: "3", rx: "2" }),
|
|
387
402
|
/* @__PURE__ */ n("line", { x1: "8", x2: "16", y1: "21", y2: "21" }),
|
|
388
403
|
/* @__PURE__ */ n("line", { x1: "12", x2: "12", y1: "17", y2: "21" })
|
|
389
404
|
] });
|
|
390
405
|
}
|
|
391
|
-
function
|
|
406
|
+
function Cn({ className: e }) {
|
|
392
407
|
return /* @__PURE__ */ $(
|
|
393
|
-
|
|
408
|
+
U,
|
|
394
409
|
{
|
|
395
410
|
className: `lucide lucide-monitor-smartphone-icon lucide-monitor-smartphone ${e}`,
|
|
396
411
|
children: [
|
|
@@ -404,7 +419,7 @@ function xn({ className: e }) {
|
|
|
404
419
|
}
|
|
405
420
|
function it({ className: e }) {
|
|
406
421
|
return /* @__PURE__ */ $(
|
|
407
|
-
|
|
422
|
+
U,
|
|
408
423
|
{
|
|
409
424
|
className: `lucide lucide-circle-arrow-left-icon lucide-circle-arrow-left ${e}`,
|
|
410
425
|
children: [
|
|
@@ -417,7 +432,7 @@ function it({ className: e }) {
|
|
|
417
432
|
}
|
|
418
433
|
function at({ className: e }) {
|
|
419
434
|
return /* @__PURE__ */ $(
|
|
420
|
-
|
|
435
|
+
U,
|
|
421
436
|
{
|
|
422
437
|
className: `lucide lucide-circle-arrow-right-icon lucide-circle-arrow-right ${e}`,
|
|
423
438
|
children: [
|
|
@@ -429,14 +444,14 @@ function at({ className: e }) {
|
|
|
429
444
|
);
|
|
430
445
|
}
|
|
431
446
|
function Pt({ className: e }) {
|
|
432
|
-
return /* @__PURE__ */ $(
|
|
447
|
+
return /* @__PURE__ */ $(U, { className: `lucide lucide-settings-icon lucide-settings ${e}`, children: [
|
|
433
448
|
/* @__PURE__ */ n("path", { d: "M9.671 4.136a2.34 2.34 0 0 1 4.659 0 2.34 2.34 0 0 0 3.319 1.915 2.34 2.34 0 0 1 2.33 4.033 2.34 2.34 0 0 0 0 3.831 2.34 2.34 0 0 1-2.33 4.033 2.34 2.34 0 0 0-3.319 1.915 2.34 2.34 0 0 1-4.659 0 2.34 2.34 0 0 0-3.32-1.915 2.34 2.34 0 0 1-2.33-4.033 2.34 2.34 0 0 0 0-3.831A2.34 2.34 0 0 1 6.35 6.051a2.34 2.34 0 0 0 3.319-1.915" }),
|
|
434
449
|
/* @__PURE__ */ n("circle", { cx: "12", cy: "12", r: "3" })
|
|
435
450
|
] });
|
|
436
451
|
}
|
|
437
|
-
function
|
|
452
|
+
function wn({ className: e }) {
|
|
438
453
|
return /* @__PURE__ */ $(
|
|
439
|
-
|
|
454
|
+
U,
|
|
440
455
|
{
|
|
441
456
|
className: `lucide lucide-tablet-smartphone-icon lucide-tablet-smartphone ${e}`,
|
|
442
457
|
children: [
|
|
@@ -448,49 +463,49 @@ function Cn({ className: e }) {
|
|
|
448
463
|
);
|
|
449
464
|
}
|
|
450
465
|
function st({ className: e }) {
|
|
451
|
-
return /* @__PURE__ */ $(
|
|
466
|
+
return /* @__PURE__ */ $(U, { className: `lucide lucide-circle-x-icon lucide-circle-x ${e}`, children: [
|
|
452
467
|
/* @__PURE__ */ n("circle", { cx: "12", cy: "12", r: "10" }),
|
|
453
468
|
/* @__PURE__ */ n("path", { d: "m15 9-6 6" }),
|
|
454
469
|
/* @__PURE__ */ n("path", { d: "m9 9 6 6" })
|
|
455
470
|
] });
|
|
456
471
|
}
|
|
457
|
-
function
|
|
458
|
-
return /* @__PURE__ */ $(
|
|
472
|
+
function Sn({ className: e }) {
|
|
473
|
+
return /* @__PURE__ */ $(U, { className: `lucide lucide-zoom-in-icon lucide-zoom-in ${e}`, children: [
|
|
459
474
|
/* @__PURE__ */ n("circle", { cx: "11", cy: "11", r: "8" }),
|
|
460
475
|
/* @__PURE__ */ n("line", { x1: "21", x2: "16.65", y1: "21", y2: "16.65" }),
|
|
461
476
|
/* @__PURE__ */ n("line", { x1: "11", x2: "11", y1: "8", y2: "14" }),
|
|
462
477
|
/* @__PURE__ */ n("line", { x1: "8", x2: "14", y1: "11", y2: "11" })
|
|
463
478
|
] });
|
|
464
479
|
}
|
|
465
|
-
function
|
|
466
|
-
return /* @__PURE__ */ $(
|
|
480
|
+
function Dn({ className: e }) {
|
|
481
|
+
return /* @__PURE__ */ $(U, { className: `lucide lucide-zoom-out-icon lucide-zoom-out ${e}`, children: [
|
|
467
482
|
/* @__PURE__ */ n("circle", { cx: "11", cy: "11", r: "8" }),
|
|
468
483
|
/* @__PURE__ */ n("line", { x1: "21", x2: "16.65", y1: "21", y2: "16.65" }),
|
|
469
484
|
/* @__PURE__ */ n("line", { x1: "8", x2: "14", y1: "11", y2: "11" })
|
|
470
485
|
] });
|
|
471
486
|
}
|
|
472
487
|
function $t({ className: e }) {
|
|
473
|
-
return /* @__PURE__ */ $(
|
|
488
|
+
return /* @__PURE__ */ $(U, { className: `lucide lucide-timer-reset-icon lucide-timer-reset ${e}`, children: [
|
|
474
489
|
/* @__PURE__ */ n("path", { d: "M10 2h4" }),
|
|
475
490
|
/* @__PURE__ */ n("path", { d: "M12 14v-4" }),
|
|
476
491
|
/* @__PURE__ */ n("path", { d: "M4 13a8 8 0 0 1 8-7 8 8 0 1 1-5.3 14L4 17.6" }),
|
|
477
492
|
/* @__PURE__ */ n("path", { d: "M9 17H4v5" })
|
|
478
493
|
] });
|
|
479
494
|
}
|
|
480
|
-
function
|
|
481
|
-
return /* @__PURE__ */ $(
|
|
495
|
+
function Rt({ className: e }) {
|
|
496
|
+
return /* @__PURE__ */ $(U, { className: `lucide lucide-undo-icon lucide-undo ${e}`, children: [
|
|
482
497
|
/* @__PURE__ */ n("path", { d: "M3 7v6h6" }),
|
|
483
498
|
/* @__PURE__ */ n("path", { d: "M21 17a9 9 0 0 0-9-9 9 9 0 0 0-6 2.3L3 13" })
|
|
484
499
|
] });
|
|
485
500
|
}
|
|
486
|
-
function
|
|
487
|
-
return /* @__PURE__ */ $(
|
|
501
|
+
function Wt({ className: e }) {
|
|
502
|
+
return /* @__PURE__ */ $(U, { className: `lucide lucide-redo-icon lucide-redo ${e}`, children: [
|
|
488
503
|
/* @__PURE__ */ n("path", { d: "M21 7v6h-6" }),
|
|
489
504
|
/* @__PURE__ */ n("path", { d: "M3 17a9 9 0 0 1 9-9 9 9 0 0 1 6 2.3l3 2.7" })
|
|
490
505
|
] });
|
|
491
506
|
}
|
|
492
507
|
function It({ className: e }) {
|
|
493
|
-
return /* @__PURE__ */ $(
|
|
508
|
+
return /* @__PURE__ */ $(U, { className: `lucide lucide-hand-icon lucide-hand ${e}`, children: [
|
|
494
509
|
/* @__PURE__ */ n("path", { d: "M18 11V6a2 2 0 0 0-2-2a2 2 0 0 0-2 2" }),
|
|
495
510
|
/* @__PURE__ */ n("path", { d: "M14 10V4a2 2 0 0 0-2-2a2 2 0 0 0-2 2v2" }),
|
|
496
511
|
/* @__PURE__ */ n("path", { d: "M10 10.5V6a2 2 0 0 0-2-2a2 2 0 0 0-2 2v8" }),
|
|
@@ -498,7 +513,7 @@ function It({ className: e }) {
|
|
|
498
513
|
] });
|
|
499
514
|
}
|
|
500
515
|
function Ot({ className: e }) {
|
|
501
|
-
return /* @__PURE__ */ $(
|
|
516
|
+
return /* @__PURE__ */ $(U, { className: `lucide lucide-hand-grab-icon lucide-hand-grab ${e}`, children: [
|
|
502
517
|
/* @__PURE__ */ n("path", { d: "M18 11.5V9a2 2 0 0 0-2-2a2 2 0 0 0-2 2v1.4" }),
|
|
503
518
|
/* @__PURE__ */ n("path", { d: "M14 10V8a2 2 0 0 0-2-2a2 2 0 0 0-2 2v2" }),
|
|
504
519
|
/* @__PURE__ */ n("path", { d: "M10 9.9V9a2 2 0 0 0-2-2a2 2 0 0 0-2 2v5" }),
|
|
@@ -507,15 +522,15 @@ function Ot({ className: e }) {
|
|
|
507
522
|
] });
|
|
508
523
|
}
|
|
509
524
|
function kt({ className: e }) {
|
|
510
|
-
return /* @__PURE__ */ $(
|
|
525
|
+
return /* @__PURE__ */ $(U, { className: `lucide lucide-crosshair-icon lucide-crosshair ${e}`, children: [
|
|
511
526
|
/* @__PURE__ */ n("line", { x1: "22", x2: "18", y1: "12", y2: "12" }),
|
|
512
527
|
/* @__PURE__ */ n("line", { x1: "6", x2: "2", y1: "12", y2: "12" }),
|
|
513
528
|
/* @__PURE__ */ n("line", { x1: "12", x2: "12", y1: "6", y2: "2" }),
|
|
514
529
|
/* @__PURE__ */ n("line", { x1: "12", x2: "12", y1: "22", y2: "18" })
|
|
515
530
|
] });
|
|
516
531
|
}
|
|
517
|
-
function
|
|
518
|
-
return /* @__PURE__ */ $(
|
|
532
|
+
function Tn({ className: e }) {
|
|
533
|
+
return /* @__PURE__ */ $(U, { className: `lucide lucide-target-icon lucide-target ${e}`, children: [
|
|
519
534
|
/* @__PURE__ */ n("circle", { cx: "12", cy: "12", r: "10" }),
|
|
520
535
|
/* @__PURE__ */ n("circle", { cx: "12", cy: "12", r: "6" }),
|
|
521
536
|
/* @__PURE__ */ n("circle", { cx: "12", cy: "12", r: "2" })
|
|
@@ -523,7 +538,7 @@ function Dn({ className: e }) {
|
|
|
523
538
|
}
|
|
524
539
|
function jt({ className: e }) {
|
|
525
540
|
return /* @__PURE__ */ $(
|
|
526
|
-
|
|
541
|
+
U,
|
|
527
542
|
{
|
|
528
543
|
className: `lucide lucide-file-question-mark-icon lucide-file-question-mark ${e}`,
|
|
529
544
|
children: [
|
|
@@ -610,9 +625,9 @@ function J(e) {
|
|
|
610
625
|
g === "ghost" ? _.push("text-disabled border-disabled cursor-not-allowed") : _.push("bg-disabled content-disabled border-disabled cursor-not-allowed");
|
|
611
626
|
else {
|
|
612
627
|
_.push("cursor-pointer");
|
|
613
|
-
let
|
|
614
|
-
Ce.has(g) ?
|
|
615
|
-
const z =
|
|
628
|
+
let R = "";
|
|
629
|
+
Ce.has(g) ? R = `${Ce.get(g)}` : R = `${Ce.get("normal")}`, S < 1 && (R = R.replace("border-[category]", ""));
|
|
630
|
+
const z = R.replace(/\[category\]/g, T).trim();
|
|
616
631
|
_.push(z);
|
|
617
632
|
}
|
|
618
633
|
return S > 0 ? (_.push(`border-[${S}px]`), _.push(`border-${D}`)) : (_.push("border-[1px]"), _.push("border-transparent")), l > 0 ? (_.push(`hover:border-[${l}px] group-hover:border-[${l}px]`), _.push(`hover:border-${D} group-hover:border-${D}`)) : _.push("hover:border-[1px] group-hover:border-[1px]"), _.push(`shadow-${M}`), _.push(`hover:shadow-${s} group-hover:shadow-${s}`), f.length > 0 && _.push(f), f.indexOf("hidden") === -1 && _.push("inline-flex"), _.push(u), _.join(" ").trim();
|
|
@@ -629,7 +644,7 @@ function Lt(e) {
|
|
|
629
644
|
const { children: i, testId: t, classNames: r, direction: a, ...o } = e, c = At(e);
|
|
630
645
|
return /* @__PURE__ */ n("div", { "data-testid": t || "not-set", className: c, ...o, children: i });
|
|
631
646
|
}
|
|
632
|
-
const
|
|
647
|
+
const Nn = se(
|
|
633
648
|
(e, i) => {
|
|
634
649
|
const { classNames: t, innerClass: r, ...a } = e, o = G(t || "", "w-full"), c = G(
|
|
635
650
|
`w-full flex overflow-hidden justify-between items-center gap-0
|
|
@@ -638,7 +653,7 @@ const Tn = se(
|
|
|
638
653
|
);
|
|
639
654
|
return /* @__PURE__ */ n(Lt, { direction: "row", classNames: o, ...a, children: /* @__PURE__ */ n("div", { className: c, children: e.children }) });
|
|
640
655
|
}
|
|
641
|
-
),
|
|
656
|
+
), En = se((e, i) => /* @__PURE__ */ n(
|
|
642
657
|
"div",
|
|
643
658
|
{
|
|
644
659
|
"data-testid": e.testId || "not-set",
|
|
@@ -649,7 +664,7 @@ const Tn = se(
|
|
|
649
664
|
},
|
|
650
665
|
children: e.children
|
|
651
666
|
}
|
|
652
|
-
)),
|
|
667
|
+
)), _n = se(
|
|
653
668
|
(e, i) => /* @__PURE__ */ n(
|
|
654
669
|
"div",
|
|
655
670
|
{
|
|
@@ -658,7 +673,7 @@ const Tn = se(
|
|
|
658
673
|
children: e.children
|
|
659
674
|
}
|
|
660
675
|
)
|
|
661
|
-
),
|
|
676
|
+
), Mn = se((e, i) => /* @__PURE__ */ n(
|
|
662
677
|
"div",
|
|
663
678
|
{
|
|
664
679
|
"data-testid": e.testId || "not-set",
|
|
@@ -781,7 +796,7 @@ function Yt() {
|
|
|
781
796
|
}
|
|
782
797
|
}
|
|
783
798
|
}
|
|
784
|
-
var l = C, M = v, s = h, f = c, u = i, _ = m,
|
|
799
|
+
var l = C, M = v, s = h, f = c, u = i, _ = m, R = r, z = T, X = p, V = t, Q = o, H = a, ee = d, ie = !1;
|
|
785
800
|
function le(E) {
|
|
786
801
|
return ie || (ie = !0, console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")), x(E) || D(E) === C;
|
|
787
802
|
}
|
|
@@ -797,7 +812,7 @@ function Yt() {
|
|
|
797
812
|
function O(E) {
|
|
798
813
|
return typeof E == "object" && E !== null && E.$$typeof === i;
|
|
799
814
|
}
|
|
800
|
-
function
|
|
815
|
+
function W(E) {
|
|
801
816
|
return D(E) === m;
|
|
802
817
|
}
|
|
803
818
|
function A(E) {
|
|
@@ -821,7 +836,7 @@ function Yt() {
|
|
|
821
836
|
function Z(E) {
|
|
822
837
|
return D(E) === d;
|
|
823
838
|
}
|
|
824
|
-
Y.AsyncMode = l, Y.ConcurrentMode = M, Y.ContextConsumer = s, Y.ContextProvider = f, Y.Element = u, Y.ForwardRef = _, Y.Fragment =
|
|
839
|
+
Y.AsyncMode = l, Y.ConcurrentMode = M, Y.ContextConsumer = s, Y.ContextProvider = f, Y.Element = u, Y.ForwardRef = _, Y.Fragment = R, Y.Lazy = z, Y.Memo = X, Y.Portal = V, Y.Profiler = Q, Y.StrictMode = H, Y.Suspense = ee, Y.isAsyncMode = le, Y.isConcurrentMode = x, Y.isContextConsumer = P, Y.isContextProvider = j, Y.isElement = O, Y.isForwardRef = W, Y.isFragment = A, Y.isLazy = I, Y.isMemo = k, Y.isPortal = L, Y.isProfiler = F, Y.isStrictMode = q, Y.isSuspense = Z, Y.isValidElementType = S, Y.typeOf = D;
|
|
825
840
|
})()), Y;
|
|
826
841
|
}
|
|
827
842
|
var Ae;
|
|
@@ -875,7 +890,7 @@ function Ft() {
|
|
|
875
890
|
}, Se;
|
|
876
891
|
}
|
|
877
892
|
var De, qe;
|
|
878
|
-
function
|
|
893
|
+
function Re() {
|
|
879
894
|
if (qe) return De;
|
|
880
895
|
qe = 1;
|
|
881
896
|
var e = "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";
|
|
@@ -892,7 +907,7 @@ function Ut() {
|
|
|
892
907
|
var e = function() {
|
|
893
908
|
};
|
|
894
909
|
if (process.env.NODE_ENV !== "production") {
|
|
895
|
-
var i = /* @__PURE__ */
|
|
910
|
+
var i = /* @__PURE__ */ Re(), t = {}, r = /* @__PURE__ */ dt();
|
|
896
911
|
e = function(o) {
|
|
897
912
|
var c = "Warning: " + o;
|
|
898
913
|
typeof console < "u" && console.error(c);
|
|
@@ -938,7 +953,7 @@ var Ee, Fe;
|
|
|
938
953
|
function Bt() {
|
|
939
954
|
if (Fe) return Ee;
|
|
940
955
|
Fe = 1;
|
|
941
|
-
var e = ct(), i = Ft(), t = /* @__PURE__ */
|
|
956
|
+
var e = ct(), i = Ft(), t = /* @__PURE__ */ Re(), r = /* @__PURE__ */ dt(), a = /* @__PURE__ */ Ut(), o = function() {
|
|
942
957
|
};
|
|
943
958
|
process.env.NODE_ENV !== "production" && (o = function(h) {
|
|
944
959
|
var C = "Warning: " + h;
|
|
@@ -1006,16 +1021,16 @@ function Bt() {
|
|
|
1006
1021
|
}
|
|
1007
1022
|
return I[k] == null ? A ? I[k] === null ? new g("The " + F + " `" + q + "` is marked as required " + ("in `" + L + "`, but its value is `null`.")) : new g("The " + F + " `" + q + "` is marked as required in " + ("`" + L + "`, but its value is `undefined`.")) : null : x(I, k, L, F, q);
|
|
1008
1023
|
}
|
|
1009
|
-
var
|
|
1010
|
-
return
|
|
1024
|
+
var W = O.bind(null, !1);
|
|
1025
|
+
return W.isRequired = O.bind(null, !0), W;
|
|
1011
1026
|
}
|
|
1012
1027
|
function w(x) {
|
|
1013
|
-
function P(j, O,
|
|
1028
|
+
function P(j, O, W, A, I, k) {
|
|
1014
1029
|
var L = j[O], F = H(L);
|
|
1015
1030
|
if (F !== x) {
|
|
1016
1031
|
var q = ee(L);
|
|
1017
1032
|
return new g(
|
|
1018
|
-
"Invalid " + A + " `" + I + "` of type " + ("`" + q + "` supplied to `" +
|
|
1033
|
+
"Invalid " + A + " `" + I + "` of type " + ("`" + q + "` supplied to `" + W + "`, expected ") + ("`" + x + "`."),
|
|
1019
1034
|
{ expectedType: x }
|
|
1020
1035
|
);
|
|
1021
1036
|
}
|
|
@@ -1027,16 +1042,16 @@ function Bt() {
|
|
|
1027
1042
|
return b(c);
|
|
1028
1043
|
}
|
|
1029
1044
|
function S(x) {
|
|
1030
|
-
function P(j, O,
|
|
1045
|
+
function P(j, O, W, A, I) {
|
|
1031
1046
|
if (typeof x != "function")
|
|
1032
|
-
return new g("Property `" + I + "` of component `" +
|
|
1047
|
+
return new g("Property `" + I + "` of component `" + W + "` has invalid PropType notation inside arrayOf.");
|
|
1033
1048
|
var k = j[O];
|
|
1034
1049
|
if (!Array.isArray(k)) {
|
|
1035
1050
|
var L = H(k);
|
|
1036
|
-
return new g("Invalid " + A + " `" + I + "` of type " + ("`" + L + "` supplied to `" +
|
|
1051
|
+
return new g("Invalid " + A + " `" + I + "` of type " + ("`" + L + "` supplied to `" + W + "`, expected an array."));
|
|
1037
1052
|
}
|
|
1038
1053
|
for (var F = 0; F < k.length; F++) {
|
|
1039
|
-
var q = x(k, F,
|
|
1054
|
+
var q = x(k, F, W, A, I + "[" + F + "]", t);
|
|
1040
1055
|
if (q instanceof Error)
|
|
1041
1056
|
return q;
|
|
1042
1057
|
}
|
|
@@ -1045,32 +1060,32 @@ function Bt() {
|
|
|
1045
1060
|
return b(P);
|
|
1046
1061
|
}
|
|
1047
1062
|
function D() {
|
|
1048
|
-
function x(P, j, O,
|
|
1063
|
+
function x(P, j, O, W, A) {
|
|
1049
1064
|
var I = P[j];
|
|
1050
1065
|
if (!h(I)) {
|
|
1051
1066
|
var k = H(I);
|
|
1052
|
-
return new g("Invalid " +
|
|
1067
|
+
return new g("Invalid " + W + " `" + A + "` of type " + ("`" + k + "` supplied to `" + O + "`, expected a single ReactElement."));
|
|
1053
1068
|
}
|
|
1054
1069
|
return null;
|
|
1055
1070
|
}
|
|
1056
1071
|
return b(x);
|
|
1057
1072
|
}
|
|
1058
1073
|
function l() {
|
|
1059
|
-
function x(P, j, O,
|
|
1074
|
+
function x(P, j, O, W, A) {
|
|
1060
1075
|
var I = P[j];
|
|
1061
1076
|
if (!e.isValidElementType(I)) {
|
|
1062
1077
|
var k = H(I);
|
|
1063
|
-
return new g("Invalid " +
|
|
1078
|
+
return new g("Invalid " + W + " `" + A + "` of type " + ("`" + k + "` supplied to `" + O + "`, expected a single ReactElement type."));
|
|
1064
1079
|
}
|
|
1065
1080
|
return null;
|
|
1066
1081
|
}
|
|
1067
1082
|
return b(x);
|
|
1068
1083
|
}
|
|
1069
1084
|
function M(x) {
|
|
1070
|
-
function P(j, O,
|
|
1085
|
+
function P(j, O, W, A, I) {
|
|
1071
1086
|
if (!(j[O] instanceof x)) {
|
|
1072
1087
|
var k = x.name || y, L = le(j[O]);
|
|
1073
|
-
return new g("Invalid " + A + " `" + I + "` of type " + ("`" + L + "` supplied to `" +
|
|
1088
|
+
return new g("Invalid " + A + " `" + I + "` of type " + ("`" + L + "` supplied to `" + W + "`, expected ") + ("instance of `" + k + "`."));
|
|
1074
1089
|
}
|
|
1075
1090
|
return null;
|
|
1076
1091
|
}
|
|
@@ -1081,7 +1096,7 @@ function Bt() {
|
|
|
1081
1096
|
return process.env.NODE_ENV !== "production" && (arguments.length > 1 ? o(
|
|
1082
1097
|
"Invalid arguments supplied to oneOf, expected an array, got " + arguments.length + " arguments. A common mistake is to write oneOf(x, y, z) instead of oneOf([x, y, z])."
|
|
1083
1098
|
) : o("Invalid argument supplied to oneOf, expected an array.")), c;
|
|
1084
|
-
function P(j, O,
|
|
1099
|
+
function P(j, O, W, A, I) {
|
|
1085
1100
|
for (var k = j[O], L = 0; L < x.length; L++)
|
|
1086
1101
|
if (T(k, x[L]))
|
|
1087
1102
|
return null;
|
|
@@ -1089,20 +1104,20 @@ function Bt() {
|
|
|
1089
1104
|
var te = ee(E);
|
|
1090
1105
|
return te === "symbol" ? String(E) : E;
|
|
1091
1106
|
});
|
|
1092
|
-
return new g("Invalid " + A + " `" + I + "` of value `" + String(k) + "` " + ("supplied to `" +
|
|
1107
|
+
return new g("Invalid " + A + " `" + I + "` of value `" + String(k) + "` " + ("supplied to `" + W + "`, expected one of " + F + "."));
|
|
1093
1108
|
}
|
|
1094
1109
|
return b(P);
|
|
1095
1110
|
}
|
|
1096
1111
|
function f(x) {
|
|
1097
|
-
function P(j, O,
|
|
1112
|
+
function P(j, O, W, A, I) {
|
|
1098
1113
|
if (typeof x != "function")
|
|
1099
|
-
return new g("Property `" + I + "` of component `" +
|
|
1114
|
+
return new g("Property `" + I + "` of component `" + W + "` has invalid PropType notation inside objectOf.");
|
|
1100
1115
|
var k = j[O], L = H(k);
|
|
1101
1116
|
if (L !== "object")
|
|
1102
|
-
return new g("Invalid " + A + " `" + I + "` of type " + ("`" + L + "` supplied to `" +
|
|
1117
|
+
return new g("Invalid " + A + " `" + I + "` of type " + ("`" + L + "` supplied to `" + W + "`, expected an object."));
|
|
1103
1118
|
for (var F in k)
|
|
1104
1119
|
if (r(k, F)) {
|
|
1105
|
-
var q = x(k, F,
|
|
1120
|
+
var q = x(k, F, W, A, I + "." + F, t);
|
|
1106
1121
|
if (q instanceof Error)
|
|
1107
1122
|
return q;
|
|
1108
1123
|
}
|
|
@@ -1120,9 +1135,9 @@ function Bt() {
|
|
|
1120
1135
|
"Invalid argument supplied to oneOfType. Expected an array of check functions, but received " + ie(j) + " at index " + P + "."
|
|
1121
1136
|
), c;
|
|
1122
1137
|
}
|
|
1123
|
-
function O(
|
|
1138
|
+
function O(W, A, I, k, L) {
|
|
1124
1139
|
for (var F = [], q = 0; q < x.length; q++) {
|
|
1125
|
-
var Z = x[q], E = Z(
|
|
1140
|
+
var Z = x[q], E = Z(W, A, I, k, L, t);
|
|
1126
1141
|
if (E == null)
|
|
1127
1142
|
return null;
|
|
1128
1143
|
E.data && r(E.data, "expectedType") && F.push(E.data.expectedType);
|
|
@@ -1133,26 +1148,26 @@ function Bt() {
|
|
|
1133
1148
|
return b(O);
|
|
1134
1149
|
}
|
|
1135
1150
|
function _() {
|
|
1136
|
-
function x(P, j, O,
|
|
1137
|
-
return V(P[j]) ? null : new g("Invalid " +
|
|
1151
|
+
function x(P, j, O, W, A) {
|
|
1152
|
+
return V(P[j]) ? null : new g("Invalid " + W + " `" + A + "` supplied to " + ("`" + O + "`, expected a ReactNode."));
|
|
1138
1153
|
}
|
|
1139
1154
|
return b(x);
|
|
1140
1155
|
}
|
|
1141
|
-
function
|
|
1156
|
+
function R(x, P, j, O, W) {
|
|
1142
1157
|
return new g(
|
|
1143
|
-
(x || "React class") + ": " + P + " type `" + j + "." + O + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" +
|
|
1158
|
+
(x || "React class") + ": " + P + " type `" + j + "." + O + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + W + "`."
|
|
1144
1159
|
);
|
|
1145
1160
|
}
|
|
1146
1161
|
function z(x) {
|
|
1147
|
-
function P(j, O,
|
|
1162
|
+
function P(j, O, W, A, I) {
|
|
1148
1163
|
var k = j[O], L = H(k);
|
|
1149
1164
|
if (L !== "object")
|
|
1150
|
-
return new g("Invalid " + A + " `" + I + "` of type `" + L + "` " + ("supplied to `" +
|
|
1165
|
+
return new g("Invalid " + A + " `" + I + "` of type `" + L + "` " + ("supplied to `" + W + "`, expected `object`."));
|
|
1151
1166
|
for (var F in x) {
|
|
1152
1167
|
var q = x[F];
|
|
1153
1168
|
if (typeof q != "function")
|
|
1154
|
-
return W
|
|
1155
|
-
var Z = q(k, F,
|
|
1169
|
+
return R(W, A, I, F, ee(q));
|
|
1170
|
+
var Z = q(k, F, W, A, I + "." + F, t);
|
|
1156
1171
|
if (Z)
|
|
1157
1172
|
return Z;
|
|
1158
1173
|
}
|
|
@@ -1161,21 +1176,21 @@ function Bt() {
|
|
|
1161
1176
|
return b(P);
|
|
1162
1177
|
}
|
|
1163
1178
|
function X(x) {
|
|
1164
|
-
function P(j, O,
|
|
1179
|
+
function P(j, O, W, A, I) {
|
|
1165
1180
|
var k = j[O], L = H(k);
|
|
1166
1181
|
if (L !== "object")
|
|
1167
|
-
return new g("Invalid " + A + " `" + I + "` of type `" + L + "` " + ("supplied to `" +
|
|
1182
|
+
return new g("Invalid " + A + " `" + I + "` of type `" + L + "` " + ("supplied to `" + W + "`, expected `object`."));
|
|
1168
1183
|
var F = i({}, j[O], x);
|
|
1169
1184
|
for (var q in F) {
|
|
1170
1185
|
var Z = x[q];
|
|
1171
1186
|
if (r(x, q) && typeof Z != "function")
|
|
1172
|
-
return W
|
|
1187
|
+
return R(W, A, I, q, ee(Z));
|
|
1173
1188
|
if (!Z)
|
|
1174
1189
|
return new g(
|
|
1175
|
-
"Invalid " + A + " `" + I + "` key `" + q + "` supplied to `" +
|
|
1190
|
+
"Invalid " + A + " `" + I + "` key `" + q + "` supplied to `" + W + "`.\nBad object: " + JSON.stringify(j[O], null, " ") + `
|
|
1176
1191
|
Valid keys: ` + JSON.stringify(Object.keys(x), null, " ")
|
|
1177
1192
|
);
|
|
1178
|
-
var E = Z(k, q,
|
|
1193
|
+
var E = Z(k, q, W, A, I + "." + q, t);
|
|
1179
1194
|
if (E)
|
|
1180
1195
|
return E;
|
|
1181
1196
|
}
|
|
@@ -1205,8 +1220,8 @@ Valid keys: ` + JSON.stringify(Object.keys(x), null, " ")
|
|
|
1205
1220
|
return !1;
|
|
1206
1221
|
} else
|
|
1207
1222
|
for (; !(O = j.next()).done; ) {
|
|
1208
|
-
var
|
|
1209
|
-
if (
|
|
1223
|
+
var W = O.value;
|
|
1224
|
+
if (W && !V(W[1]))
|
|
1210
1225
|
return !1;
|
|
1211
1226
|
}
|
|
1212
1227
|
} else
|
|
@@ -1259,7 +1274,7 @@ var _e, Ue;
|
|
|
1259
1274
|
function Ht() {
|
|
1260
1275
|
if (Ue) return _e;
|
|
1261
1276
|
Ue = 1;
|
|
1262
|
-
var e = /* @__PURE__ */
|
|
1277
|
+
var e = /* @__PURE__ */ Re();
|
|
1263
1278
|
function i() {
|
|
1264
1279
|
}
|
|
1265
1280
|
function t() {
|
|
@@ -1332,7 +1347,7 @@ function zt() {
|
|
|
1332
1347
|
}
|
|
1333
1348
|
return me.exports = i, me.exports.clsx = i, me.exports;
|
|
1334
1349
|
}
|
|
1335
|
-
var
|
|
1350
|
+
var B = {}, re = {}, ze;
|
|
1336
1351
|
function ve() {
|
|
1337
1352
|
if (ze) return re;
|
|
1338
1353
|
ze = 1, Object.defineProperty(re, "__esModule", {
|
|
@@ -1388,23 +1403,23 @@ function Xt() {
|
|
|
1388
1403
|
return oe.default = i(), oe;
|
|
1389
1404
|
}
|
|
1390
1405
|
var Ve;
|
|
1391
|
-
function
|
|
1392
|
-
if (Ve) return
|
|
1393
|
-
Ve = 1, Object.defineProperty(
|
|
1406
|
+
function We() {
|
|
1407
|
+
if (Ve) return B;
|
|
1408
|
+
Ve = 1, Object.defineProperty(B, "__esModule", {
|
|
1394
1409
|
value: !0
|
|
1395
|
-
}),
|
|
1410
|
+
}), B.addClassName = l, B.addEvent = c, B.addUserSelectStyles = N, B.createCSSTransform = p, B.createSVGTransform = T, B.getTouch = b, B.getTouchIdentifier = w, B.getTranslation = g, B.innerHeight = m, B.innerWidth = d, B.matchesSelector = a, B.matchesSelectorAndParentsTo = o, B.offsetXYFromParent = y, B.outerHeight = C, B.outerWidth = v, B.removeClassName = M, B.removeEvent = h, B.scheduleRemoveUserSelectStyles = S;
|
|
1396
1411
|
var e = ve(), i = t(Xt());
|
|
1397
1412
|
function t(s, f) {
|
|
1398
1413
|
if (typeof WeakMap == "function") var u = /* @__PURE__ */ new WeakMap(), _ = /* @__PURE__ */ new WeakMap();
|
|
1399
|
-
return (t = function(
|
|
1400
|
-
if (!z &&
|
|
1401
|
-
var X, V, Q = { __proto__: null, default:
|
|
1402
|
-
if (
|
|
1414
|
+
return (t = function(R, z) {
|
|
1415
|
+
if (!z && R && R.__esModule) return R;
|
|
1416
|
+
var X, V, Q = { __proto__: null, default: R };
|
|
1417
|
+
if (R === null || typeof R != "object" && typeof R != "function") return Q;
|
|
1403
1418
|
if (X = z ? _ : u) {
|
|
1404
|
-
if (X.has(
|
|
1405
|
-
X.set(
|
|
1419
|
+
if (X.has(R)) return X.get(R);
|
|
1420
|
+
X.set(R, Q);
|
|
1406
1421
|
}
|
|
1407
|
-
for (const H in
|
|
1422
|
+
for (const H in R) H !== "default" && {}.hasOwnProperty.call(R, H) && ((V = (X = Object.defineProperty) && Object.getOwnPropertyDescriptor(R, H)) && (V.get || V.set) ? X(Q, H, V) : Q[H] = R[H]);
|
|
1408
1423
|
return Q;
|
|
1409
1424
|
})(s, f);
|
|
1410
1425
|
}
|
|
@@ -1425,19 +1440,19 @@ function Re() {
|
|
|
1425
1440
|
}
|
|
1426
1441
|
function c(s, f, u, _) {
|
|
1427
1442
|
if (!s) return;
|
|
1428
|
-
const
|
|
1443
|
+
const R = {
|
|
1429
1444
|
capture: !0,
|
|
1430
1445
|
..._
|
|
1431
1446
|
};
|
|
1432
|
-
s.addEventListener ? s.addEventListener(f, u,
|
|
1447
|
+
s.addEventListener ? s.addEventListener(f, u, R) : s.attachEvent ? s.attachEvent("on" + f, u) : s["on" + f] = u;
|
|
1433
1448
|
}
|
|
1434
1449
|
function h(s, f, u, _) {
|
|
1435
1450
|
if (!s) return;
|
|
1436
|
-
const
|
|
1451
|
+
const R = {
|
|
1437
1452
|
capture: !0,
|
|
1438
1453
|
..._
|
|
1439
1454
|
};
|
|
1440
|
-
s.removeEventListener ? s.removeEventListener(f, u,
|
|
1455
|
+
s.removeEventListener ? s.removeEventListener(f, u, R) : s.detachEvent ? s.detachEvent("on" + f, u) : s["on" + f] = null;
|
|
1441
1456
|
}
|
|
1442
1457
|
function C(s) {
|
|
1443
1458
|
let f = s.clientHeight;
|
|
@@ -1460,10 +1475,10 @@ function Re() {
|
|
|
1460
1475
|
return f -= (0, e.int)(u.paddingLeft), f -= (0, e.int)(u.paddingRight), f;
|
|
1461
1476
|
}
|
|
1462
1477
|
function y(s, f, u) {
|
|
1463
|
-
const
|
|
1478
|
+
const R = f === f.ownerDocument.body ? {
|
|
1464
1479
|
left: 0,
|
|
1465
1480
|
top: 0
|
|
1466
|
-
} : f.getBoundingClientRect(), z = (s.clientX + f.scrollLeft -
|
|
1481
|
+
} : f.getBoundingClientRect(), z = (s.clientX + f.scrollLeft - R.left) / u, X = (s.clientY + f.scrollTop - R.top) / u;
|
|
1467
1482
|
return {
|
|
1468
1483
|
x: z,
|
|
1469
1484
|
y: X
|
|
@@ -1481,8 +1496,8 @@ function Re() {
|
|
|
1481
1496
|
function g(s, f, u) {
|
|
1482
1497
|
let {
|
|
1483
1498
|
x: _,
|
|
1484
|
-
y:
|
|
1485
|
-
} = s, z = `translate(${_}${u},${
|
|
1499
|
+
y: R
|
|
1500
|
+
} = s, z = `translate(${_}${u},${R}${u})`;
|
|
1486
1501
|
if (f) {
|
|
1487
1502
|
const X = `${typeof f.x == "string" ? f.x : f.x + u}`, V = `${typeof f.y == "string" ? f.y : f.y + u}`;
|
|
1488
1503
|
z = `translate(${X}, ${V})` + z;
|
|
@@ -1526,7 +1541,7 @@ function Re() {
|
|
|
1526
1541
|
function M(s, f) {
|
|
1527
1542
|
s.classList ? s.classList.remove(f) : s.className = s.className.replace(new RegExp(`(?:^|\\s)${f}(?!\\S)`, "g"), "");
|
|
1528
1543
|
}
|
|
1529
|
-
return
|
|
1544
|
+
return B;
|
|
1530
1545
|
}
|
|
1531
1546
|
var ne = {}, Ge;
|
|
1532
1547
|
function ft() {
|
|
@@ -1534,7 +1549,7 @@ function ft() {
|
|
|
1534
1549
|
Ge = 1, Object.defineProperty(ne, "__esModule", {
|
|
1535
1550
|
value: !0
|
|
1536
1551
|
}), ne.canDragX = a, ne.canDragY = o, ne.createCoreData = h, ne.createDraggableData = C, ne.getBoundPosition = t, ne.getControlPosition = c, ne.snapToGrid = r;
|
|
1537
|
-
var e = ve(), i =
|
|
1552
|
+
var e = ve(), i = We();
|
|
1538
1553
|
function t(d, y, p) {
|
|
1539
1554
|
if (!d.props.bounds) return [y, p];
|
|
1540
1555
|
let {
|
|
@@ -1639,7 +1654,7 @@ function Vt() {
|
|
|
1639
1654
|
Je = 1, Object.defineProperty(ue, "__esModule", {
|
|
1640
1655
|
value: !0
|
|
1641
1656
|
}), ue.default = void 0;
|
|
1642
|
-
var e = C(be), i = h(/* @__PURE__ */ ut()), t = h(ot), r =
|
|
1657
|
+
var e = C(be), i = h(/* @__PURE__ */ ut()), t = h(ot), r = We(), a = ft(), o = ve(), c = h(ht());
|
|
1643
1658
|
function h(g) {
|
|
1644
1659
|
return g && g.__esModule ? g : { default: g };
|
|
1645
1660
|
}
|
|
@@ -1944,7 +1959,7 @@ function Gt() {
|
|
|
1944
1959
|
return C.default;
|
|
1945
1960
|
}
|
|
1946
1961
|
}), e.default = void 0;
|
|
1947
|
-
var i = d(be), t = m(/* @__PURE__ */ ut()), r = m(ot), a = zt(), o =
|
|
1962
|
+
var i = d(be), t = m(/* @__PURE__ */ ut()), r = m(ot), a = zt(), o = We(), c = ft(), h = ve(), C = m(Vt()), v = m(ht());
|
|
1948
1963
|
function m(w) {
|
|
1949
1964
|
return w && w.__esModule ? w : { default: w };
|
|
1950
1965
|
}
|
|
@@ -2030,8 +2045,8 @@ function Gt() {
|
|
|
2030
2045
|
y: u
|
|
2031
2046
|
} = M;
|
|
2032
2047
|
M.x += this.state.slackX, M.y += this.state.slackY;
|
|
2033
|
-
const [_,
|
|
2034
|
-
M.x = _, M.y =
|
|
2048
|
+
const [_, R] = (0, c.getBoundPosition)(this, M.x, M.y);
|
|
2049
|
+
M.x = _, M.y = R, M.slackX = this.state.slackX + (f - M.x), M.slackY = this.state.slackY + (u - M.y), l.x = M.x, l.y = M.y, l.deltaX = M.x - this.state.x, l.deltaY = M.y - this.state.y;
|
|
2035
2050
|
}
|
|
2036
2051
|
if (this.props.onDrag(S, l) === !1) return !1;
|
|
2037
2052
|
this.setState(M);
|
|
@@ -2095,7 +2110,7 @@ function Gt() {
|
|
|
2095
2110
|
defaultClassNameDragged: f,
|
|
2096
2111
|
position: u,
|
|
2097
2112
|
positionOffset: _,
|
|
2098
|
-
scale:
|
|
2113
|
+
scale: R,
|
|
2099
2114
|
...z
|
|
2100
2115
|
} = this.props;
|
|
2101
2116
|
let X = {}, V = null;
|
|
@@ -2298,7 +2313,7 @@ const Qt = /* @__PURE__ */ qt(Jt), en = se((e, i) => {
|
|
|
2298
2313
|
)
|
|
2299
2314
|
);
|
|
2300
2315
|
});
|
|
2301
|
-
function
|
|
2316
|
+
function $n({ children: e, addCssClasses: i }) {
|
|
2302
2317
|
const t = G(
|
|
2303
2318
|
"w-full h-full flex-1 flex flex-col",
|
|
2304
2319
|
(i || "gap-2 items-end justify-end content-end").trim()
|
|
@@ -2314,7 +2329,7 @@ function Pn({ children: e, addCssClasses: i }) {
|
|
|
2314
2329
|
}
|
|
2315
2330
|
);
|
|
2316
2331
|
}
|
|
2317
|
-
function
|
|
2332
|
+
function Rn({ children: e, addCssClasses: i }) {
|
|
2318
2333
|
const t = G(
|
|
2319
2334
|
"w-full flex flex-col",
|
|
2320
2335
|
(i || "items-end").trim()
|
|
@@ -2323,7 +2338,7 @@ function $n({ children: e, addCssClasses: i }) {
|
|
|
2323
2338
|
}
|
|
2324
2339
|
const Wn = (e) => {
|
|
2325
2340
|
console.warn("showToast TODO", e);
|
|
2326
|
-
}, tn = (e) => e < 0.8 ? 1 : e <= 1 ? 0 : e > 1 ? -1 : 0,
|
|
2341
|
+
}, tn = (e) => e < 0.8 ? 1 : e <= 1 ? 0 : e > 1 ? -1 : 0, In = se((e, i) => {
|
|
2327
2342
|
let t = pt(Number(e.zoomScale || 0));
|
|
2328
2343
|
const r = e.responsiveGrid || !1, a = e.isEditing || !1, o = {
|
|
2329
2344
|
"--bwj-dashboard-transform-scale": t,
|
|
@@ -2482,9 +2497,9 @@ function an({
|
|
|
2482
2497
|
] }),
|
|
2483
2498
|
/* @__PURE__ */ $("div", { className: "flex flex-col mt-3", children: [
|
|
2484
2499
|
/* @__PURE__ */ n("h5", { children: "Externals:" }),
|
|
2485
|
-
/* @__PURE__ */ n("dl", { className: "ml-2 flex flex-col text-xs", children: f.map((
|
|
2500
|
+
/* @__PURE__ */ n("dl", { className: "ml-2 flex flex-col text-xs", children: f.map((R, z) => /* @__PURE__ */ $("dd", { children: [
|
|
2486
2501
|
"- ",
|
|
2487
|
-
|
|
2502
|
+
R
|
|
2488
2503
|
] }, z)) })
|
|
2489
2504
|
] })
|
|
2490
2505
|
] }) })
|
|
@@ -2496,8 +2511,8 @@ function an({
|
|
|
2496
2511
|
const _ = async () => {
|
|
2497
2512
|
try {
|
|
2498
2513
|
return await g.loader();
|
|
2499
|
-
} catch (
|
|
2500
|
-
return console.error(`CDN Load Failure for ${t}:`,
|
|
2514
|
+
} catch (R) {
|
|
2515
|
+
return console.error(`CDN Load Failure for ${t}:`, R), {
|
|
2501
2516
|
default: () => /* @__PURE__ */ n(tt, { ...l, children: /* @__PURE__ */ $("div", { className: "p-4 border border-dashed border-danger", children: [
|
|
2502
2517
|
/* @__PURE__ */ $("p", { className: "font-bold", children: [
|
|
2503
2518
|
'Failed to load "',
|
|
@@ -2643,15 +2658,15 @@ function Ie(e) {
|
|
|
2643
2658
|
/* @__PURE__ */ n("div", { "data-testid": `childrenwrapper_${e.widgetKey}`, className: "widget-container-inner", children: e.children })
|
|
2644
2659
|
] });
|
|
2645
2660
|
}
|
|
2646
|
-
function
|
|
2661
|
+
function On(e) {
|
|
2647
2662
|
const { direction: i, ...t } = e;
|
|
2648
2663
|
return /* @__PURE__ */ n(Ie, { direction: "column", ...t });
|
|
2649
2664
|
}
|
|
2650
|
-
function
|
|
2665
|
+
function kn(e) {
|
|
2651
2666
|
const { size: i, ...t } = e;
|
|
2652
2667
|
return /* @__PURE__ */ n(Ie, { size: "large", ...t });
|
|
2653
2668
|
}
|
|
2654
|
-
function
|
|
2669
|
+
function jn(e) {
|
|
2655
2670
|
const { direction: i, ...t } = e;
|
|
2656
2671
|
return /* @__PURE__ */ n(Ie, { direction: "row", ...t });
|
|
2657
2672
|
}
|
|
@@ -2729,7 +2744,7 @@ const $e = (e, i) => [
|
|
|
2729
2744
|
...i.widgets.filter((r) => r.indexOf("Container") === -1),
|
|
2730
2745
|
...i.childWidgetsConfig.map((r) => r.widgetKey)
|
|
2731
2746
|
].includes(e);
|
|
2732
|
-
function
|
|
2747
|
+
function An(e) {
|
|
2733
2748
|
const {
|
|
2734
2749
|
currentDashboardConfig: i,
|
|
2735
2750
|
undoStatus: t,
|
|
@@ -2754,7 +2769,7 @@ function jn(e) {
|
|
|
2754
2769
|
), D = (u) => {
|
|
2755
2770
|
g ? e.addWidget(u, e.targetContainerKey) : e.addWidget(u);
|
|
2756
2771
|
}, l = (u) => {
|
|
2757
|
-
const _ = (e.currentDashboardConfig.cssSettings || []).map((
|
|
2772
|
+
const _ = (e.currentDashboardConfig.cssSettings || []).map((R) => R.key === u.key ? u : R);
|
|
2758
2773
|
e.onSettingItemsUpdated(_);
|
|
2759
2774
|
}, [M, s] = ae(!1), f = (u) => {
|
|
2760
2775
|
s(u);
|
|
@@ -2804,7 +2819,7 @@ function jn(e) {
|
|
|
2804
2819
|
},
|
|
2805
2820
|
disabled: t.isUndoDisabled,
|
|
2806
2821
|
onClick: () => o("Undo"),
|
|
2807
|
-
children: /* @__PURE__ */ n(
|
|
2822
|
+
children: /* @__PURE__ */ n(Rt, { className: "size-5" })
|
|
2808
2823
|
}
|
|
2809
2824
|
),
|
|
2810
2825
|
/* @__PURE__ */ n(
|
|
@@ -2818,7 +2833,7 @@ function jn(e) {
|
|
|
2818
2833
|
},
|
|
2819
2834
|
disabled: t.isRedoDisabled,
|
|
2820
2835
|
onClick: () => o("Redo"),
|
|
2821
|
-
children: /* @__PURE__ */ n(
|
|
2836
|
+
children: /* @__PURE__ */ n(Wt, { className: "size-5" })
|
|
2822
2837
|
}
|
|
2823
2838
|
),
|
|
2824
2839
|
/* @__PURE__ */ n(
|
|
@@ -2926,41 +2941,42 @@ export {
|
|
|
2926
2941
|
J as Button,
|
|
2927
2942
|
jt as CircleQuestionMark,
|
|
2928
2943
|
kt as CrosshairIcon,
|
|
2929
|
-
|
|
2944
|
+
In as DashboardGrid,
|
|
2930
2945
|
tt as DashboardWidgetBase,
|
|
2931
2946
|
pn as DeleteIcon,
|
|
2932
2947
|
en as DraggablePanel,
|
|
2933
2948
|
an as DynamicWidgetLoader,
|
|
2934
2949
|
yn as EditIcon,
|
|
2935
|
-
|
|
2950
|
+
vn as GridIcon,
|
|
2936
2951
|
Ot as HandGrabIcon,
|
|
2937
2952
|
It as HandIcon,
|
|
2938
|
-
|
|
2939
|
-
|
|
2940
|
-
|
|
2941
|
-
|
|
2942
|
-
|
|
2943
|
-
|
|
2953
|
+
Nn as ListItem,
|
|
2954
|
+
En as ListItemLeftChild,
|
|
2955
|
+
_n as ListItemMiddleChild,
|
|
2956
|
+
Mn as ListItemRightChild,
|
|
2957
|
+
xn as MonitorIcon,
|
|
2958
|
+
Cn as MonitorSmartphoneIcon,
|
|
2944
2959
|
it as MoveLeftIcon,
|
|
2945
2960
|
at as MoveRightIcon,
|
|
2946
|
-
|
|
2961
|
+
Wt as RedoIcon,
|
|
2962
|
+
bn as RenameIcon,
|
|
2947
2963
|
Pt as SettingsIcon,
|
|
2948
2964
|
Lt as Stack,
|
|
2949
|
-
|
|
2950
|
-
|
|
2951
|
-
|
|
2965
|
+
U as SvgBaseWrapper,
|
|
2966
|
+
wn as TabletSmartphoneIcon,
|
|
2967
|
+
Tn as TargetIcon,
|
|
2952
2968
|
lt as TextField,
|
|
2953
2969
|
$t as TimerResetIcon,
|
|
2954
|
-
|
|
2955
|
-
|
|
2956
|
-
|
|
2957
|
-
|
|
2958
|
-
|
|
2959
|
-
|
|
2960
|
-
|
|
2970
|
+
Rt as UndoIcon,
|
|
2971
|
+
On as WidgetContainerColumn,
|
|
2972
|
+
kn as WidgetContainerLarge,
|
|
2973
|
+
jn as WidgetContainerRow,
|
|
2974
|
+
An as WidgetsCatalogFlyout,
|
|
2975
|
+
$n as WrapperColumnContent,
|
|
2976
|
+
Rn as WrapperColumnContentListItem,
|
|
2961
2977
|
st as XCircleIcon,
|
|
2962
|
-
|
|
2963
|
-
|
|
2978
|
+
Sn as ZoomInIcon,
|
|
2979
|
+
Dn as ZoomOutIcon,
|
|
2964
2980
|
rn as _isVersionCompatible,
|
|
2965
2981
|
Wn as showToast,
|
|
2966
2982
|
hn as useDashboardStore,
|