@sentio/ui-dashboard 0.2.2 → 0.2.4
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/index.css +155 -3
- package/dist/index.css.map +1 -1
- package/dist/index.d.mts +63 -23
- package/dist/index.d.ts +63 -23
- package/dist/index.js +970 -394
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +948 -379
- package/dist/index.mjs.map +1 -1
- package/dist/style.css +1 -1
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -2566,14 +2566,437 @@ var RefreshButton = (props) => {
|
|
|
2566
2566
|
) });
|
|
2567
2567
|
};
|
|
2568
2568
|
|
|
2569
|
+
// src/charts/ChartTypeButtonGroup.tsx
|
|
2570
|
+
import { useState as useState7 } from "react";
|
|
2571
|
+
import { useResizeDetector as useResizeDetector2 } from "react-resize-detector";
|
|
2572
|
+
import { NewButtonGroup as ButtonGroup } from "@sentio/ui-core";
|
|
2573
|
+
|
|
2574
|
+
// src/charts/icons/BarGuageIcon.tsx
|
|
2575
|
+
import { jsx as jsx11, jsxs as jsxs7 } from "react/jsx-runtime";
|
|
2576
|
+
var SvgIcon = ({ className }) => /* @__PURE__ */ jsxs7(
|
|
2577
|
+
"svg",
|
|
2578
|
+
{
|
|
2579
|
+
width: "14",
|
|
2580
|
+
height: "14",
|
|
2581
|
+
viewBox: "0 0 14 14",
|
|
2582
|
+
fill: "currentColor",
|
|
2583
|
+
className,
|
|
2584
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
2585
|
+
children: [
|
|
2586
|
+
/* @__PURE__ */ jsx11(
|
|
2587
|
+
"path",
|
|
2588
|
+
{
|
|
2589
|
+
d: "M2.12791 1.5625V12.4375C2.12791 12.5938 2.07311 12.7267 1.96349 12.836C1.85387 12.9453 1.7207 13 1.56396 13C1.40722 13 1.27404 12.9453 1.16442 12.836C1.05481 12.7267 1 12.5938 1 12.4375V1.5625C1 1.40617 1.05481 1.27333 1.16442 1.164C1.27404 1.05467 1.40722 1 1.56396 1C1.7207 1 1.85387 1.05467 1.96349 1.164C2.07311 1.27333 2.12791 1.40617 2.12791 1.5625ZM1.56396 11.875H12.436C12.5928 11.875 12.726 11.9297 12.8356 12.039C12.9452 12.1483 13 12.2812 13 12.4375C13 12.5938 12.9452 12.7267 12.8356 12.836C12.726 12.9453 12.5928 13 12.436 13H1.56396C1.40722 13 1.27404 12.9453 1.16442 12.836C1.05481 12.7267 1 12.5938 1 12.4375C1 12.2812 1.05481 12.1483 1.16442 12.039C1.27404 11.9297 1.40722 11.875 1.56396 11.875Z",
|
|
2590
|
+
fill: "currentColor"
|
|
2591
|
+
}
|
|
2592
|
+
),
|
|
2593
|
+
/* @__PURE__ */ jsx11(
|
|
2594
|
+
"path",
|
|
2595
|
+
{
|
|
2596
|
+
d: "M3.64159 4.02495H9.43859C9.59493 4.02495 9.72776 3.97014 9.83709 3.86052C9.94643 3.75091 10.0011 3.61773 10.0011 3.46099C10.0011 3.30425 9.94643 3.17108 9.83709 3.06146C9.72776 2.95184 9.59493 2.89703 9.43859 2.89703L3.64159 2.89703C3.48526 2.89703 3.35243 2.95184 3.24309 3.06146C3.13376 3.17108 3.07909 3.30425 3.07909 3.46099C3.07909 3.61773 3.13376 3.75091 3.24309 3.86052C3.35243 3.97014 3.48526 4.02495 3.64159 4.02495Z",
|
|
2597
|
+
fill: "currentColor"
|
|
2598
|
+
}
|
|
2599
|
+
),
|
|
2600
|
+
/* @__PURE__ */ jsx11(
|
|
2601
|
+
"path",
|
|
2602
|
+
{
|
|
2603
|
+
d: "M3.64209 10.0244H11.4701C11.6264 10.0244 11.7593 9.96964 11.8686 9.86002C11.9779 9.7504 12.0326 9.61723 12.0326 9.46049C12.0326 9.30375 11.9779 9.17057 11.8686 9.06096C11.7593 8.95134 11.6264 8.89653 11.4701 8.89653H3.64209C3.48576 8.89653 3.35293 8.95134 3.24359 9.06096C3.13426 9.17057 3.07959 9.30375 3.07959 9.46049C3.07959 9.61723 3.13426 9.7504 3.24359 9.86002C3.35293 9.96964 3.48576 10.0244 3.64209 10.0244Z",
|
|
2604
|
+
fill: "currentColor"
|
|
2605
|
+
}
|
|
2606
|
+
),
|
|
2607
|
+
/* @__PURE__ */ jsx11(
|
|
2608
|
+
"path",
|
|
2609
|
+
{
|
|
2610
|
+
d: "M3.64209 7.01668L7.47009 7.01668C7.62643 7.01634 7.75926 6.95886 7.86859 6.84423C7.97793 6.7296 8.03259 6.5991 8.03259 6.45272C8.03259 6.29598 7.97793 6.1628 7.86859 6.05319C7.75926 5.94357 7.62643 5.88876 7.47009 5.88876H3.64209C3.48576 5.88876 3.35293 5.94357 3.24359 6.05319C3.13426 6.1628 3.07959 6.29598 3.07959 6.45272C3.07959 6.60946 3.13426 6.74263 3.24359 6.85225C3.35293 6.96187 3.48576 7.01668 3.64209 7.01668Z",
|
|
2611
|
+
fill: "currentColor"
|
|
2612
|
+
}
|
|
2613
|
+
)
|
|
2614
|
+
]
|
|
2615
|
+
}
|
|
2616
|
+
);
|
|
2617
|
+
var BarGuageIcon_default = SvgIcon;
|
|
2618
|
+
|
|
2619
|
+
// src/charts/icons/QueryValueIcon.tsx
|
|
2620
|
+
import { jsx as jsx12, jsxs as jsxs8 } from "react/jsx-runtime";
|
|
2621
|
+
var SvgIcon2 = ({ className }) => /* @__PURE__ */ jsxs8(
|
|
2622
|
+
"svg",
|
|
2623
|
+
{
|
|
2624
|
+
width: "14",
|
|
2625
|
+
height: "14",
|
|
2626
|
+
viewBox: "0 0 14 14",
|
|
2627
|
+
fill: "none",
|
|
2628
|
+
className,
|
|
2629
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
2630
|
+
children: [
|
|
2631
|
+
/* @__PURE__ */ jsxs8("g", { clipPath: "url(#clip0_3670_4424)", children: [
|
|
2632
|
+
/* @__PURE__ */ jsx12(
|
|
2633
|
+
"path",
|
|
2634
|
+
{
|
|
2635
|
+
d: "M11.5 1.5H2.5C1.67157 1.5 1 2.11561 1 2.875V11.125C1 11.8844 1.67157 12.5 2.5 12.5H11.5C12.3284 12.5 13 11.8844 13 11.125V2.875C13 2.11561 12.3284 1.5 11.5 1.5Z",
|
|
2636
|
+
stroke: "currentColor",
|
|
2637
|
+
strokeWidth: "1.16667",
|
|
2638
|
+
strokeLinecap: "round",
|
|
2639
|
+
strokeLinejoin: "round"
|
|
2640
|
+
}
|
|
2641
|
+
),
|
|
2642
|
+
/* @__PURE__ */ jsx12(
|
|
2643
|
+
"path",
|
|
2644
|
+
{
|
|
2645
|
+
d: "M7.98188 5.77273H6.39097L5.75461 5.13636L6.39097 4.5H7.98188L8.61824 5.13636L7.98188 5.77273Z",
|
|
2646
|
+
fill: "currentColor"
|
|
2647
|
+
}
|
|
2648
|
+
),
|
|
2649
|
+
/* @__PURE__ */ jsx12(
|
|
2650
|
+
"path",
|
|
2651
|
+
{
|
|
2652
|
+
d: "M7.98188 11.5H6.39097L5.75461 10.8637L6.39097 10.2273H7.98188L8.61824 10.8637L7.98188 11.5Z",
|
|
2653
|
+
fill: "currentColor"
|
|
2654
|
+
}
|
|
2655
|
+
),
|
|
2656
|
+
/* @__PURE__ */ jsx12(
|
|
2657
|
+
"path",
|
|
2658
|
+
{
|
|
2659
|
+
d: "M8.30005 9.90907V6.09089L8.93641 5.45453L9.57278 6.09089V9.90907L8.93641 10.5454L8.30005 9.90907Z",
|
|
2660
|
+
fill: "currentColor"
|
|
2661
|
+
}
|
|
2662
|
+
),
|
|
2663
|
+
/* @__PURE__ */ jsx12(
|
|
2664
|
+
"path",
|
|
2665
|
+
{
|
|
2666
|
+
d: "M4.80005 9.90907V6.09089L5.43641 5.45453L6.07278 6.09089V9.90907L5.43641 10.5454L4.80005 9.90907Z",
|
|
2667
|
+
fill: "currentColor"
|
|
2668
|
+
}
|
|
2669
|
+
),
|
|
2670
|
+
/* @__PURE__ */ jsx12(
|
|
2671
|
+
"path",
|
|
2672
|
+
{
|
|
2673
|
+
d: "M1 3.5L13 3.5",
|
|
2674
|
+
stroke: "currentColor",
|
|
2675
|
+
strokeWidth: "1.16667",
|
|
2676
|
+
strokeLinecap: "round",
|
|
2677
|
+
strokeLinejoin: "round"
|
|
2678
|
+
}
|
|
2679
|
+
)
|
|
2680
|
+
] }),
|
|
2681
|
+
/* @__PURE__ */ jsx12("defs", { children: /* @__PURE__ */ jsx12("clipPath", { id: "clip0_3670_4424", children: /* @__PURE__ */ jsx12("rect", { width: "14", height: "14", fill: "white" }) }) })
|
|
2682
|
+
]
|
|
2683
|
+
}
|
|
2684
|
+
);
|
|
2685
|
+
var QueryValueIcon_default = SvgIcon2;
|
|
2686
|
+
|
|
2687
|
+
// src/charts/icons/TableIcon.tsx
|
|
2688
|
+
import { jsx as jsx13, jsxs as jsxs9 } from "react/jsx-runtime";
|
|
2689
|
+
var SvgIcon3 = ({ className }) => /* @__PURE__ */ jsxs9(
|
|
2690
|
+
"svg",
|
|
2691
|
+
{
|
|
2692
|
+
width: "14",
|
|
2693
|
+
height: "14",
|
|
2694
|
+
viewBox: "0 0 14 14",
|
|
2695
|
+
fill: "none",
|
|
2696
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
2697
|
+
className,
|
|
2698
|
+
children: [
|
|
2699
|
+
/* @__PURE__ */ jsxs9("g", { clipPath: "url(#clip0_3670_4416)", children: [
|
|
2700
|
+
/* @__PURE__ */ jsx13(
|
|
2701
|
+
"path",
|
|
2702
|
+
{
|
|
2703
|
+
d: "M11.5 2H2.5C1.67157 2 1 2.55964 1 3.25V10.75C1 11.4404 1.67157 12 2.5 12H11.5C12.3284 12 13 11.4404 13 10.75V3.25C13 2.55964 12.3284 2 11.5 2Z",
|
|
2704
|
+
stroke: "currentColor",
|
|
2705
|
+
strokeWidth: "1.16667",
|
|
2706
|
+
strokeLinecap: "round",
|
|
2707
|
+
strokeLinejoin: "round"
|
|
2708
|
+
}
|
|
2709
|
+
),
|
|
2710
|
+
/* @__PURE__ */ jsx13(
|
|
2711
|
+
"path",
|
|
2712
|
+
{
|
|
2713
|
+
d: "M1 5L13 5",
|
|
2714
|
+
stroke: "currentColor",
|
|
2715
|
+
strokeWidth: "1.16667",
|
|
2716
|
+
strokeLinecap: "round",
|
|
2717
|
+
strokeLinejoin: "round"
|
|
2718
|
+
}
|
|
2719
|
+
),
|
|
2720
|
+
/* @__PURE__ */ jsx13(
|
|
2721
|
+
"path",
|
|
2722
|
+
{
|
|
2723
|
+
d: "M6 2L6 12",
|
|
2724
|
+
stroke: "currentColor",
|
|
2725
|
+
strokeWidth: "1.16667",
|
|
2726
|
+
strokeLinecap: "round",
|
|
2727
|
+
strokeLinejoin: "round"
|
|
2728
|
+
}
|
|
2729
|
+
)
|
|
2730
|
+
] }),
|
|
2731
|
+
/* @__PURE__ */ jsx13("defs", { children: /* @__PURE__ */ jsx13("clipPath", { id: "clip0_3670_4416", children: /* @__PURE__ */ jsx13("rect", { width: "14", height: "14", fill: "white" }) }) })
|
|
2732
|
+
]
|
|
2733
|
+
}
|
|
2734
|
+
);
|
|
2735
|
+
var TableIcon_default = SvgIcon3;
|
|
2736
|
+
|
|
2737
|
+
// src/charts/icons/AreaIcon.tsx
|
|
2738
|
+
import { jsx as jsx14, jsxs as jsxs10 } from "react/jsx-runtime";
|
|
2739
|
+
var SvgIcon4 = ({ className }) => /* @__PURE__ */ jsxs10(
|
|
2740
|
+
"svg",
|
|
2741
|
+
{
|
|
2742
|
+
width: "14",
|
|
2743
|
+
height: "14",
|
|
2744
|
+
viewBox: "0 0 14 14",
|
|
2745
|
+
fill: "none",
|
|
2746
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
2747
|
+
className,
|
|
2748
|
+
children: [
|
|
2749
|
+
/* @__PURE__ */ jsx14("g", { clipPath: "url(#clip0_1774_9545)", children: /* @__PURE__ */ jsx14(
|
|
2750
|
+
"path",
|
|
2751
|
+
{
|
|
2752
|
+
d: "M12.6193 13.1249H1.35364C1.21685 13.1249 1.10062 13.0771 1.00495 12.9814C0.909284 12.8857 0.86145 12.7695 0.86145 12.6327V1.35352C0.86145 1.21672 0.909284 1.10049 1.00495 1.00483C1.10062 0.909161 1.21685 0.861328 1.35364 0.861328C1.49043 0.861328 1.60666 0.909161 1.70233 1.00483C1.79799 1.10049 1.84583 1.21672 1.84583 1.35352V12.1405H12.6193C12.7561 12.1405 12.8723 12.1883 12.968 12.284C13.0636 12.3797 13.1115 12.4959 13.1115 12.6327C13.1115 12.7695 13.0636 12.8857 12.968 12.9814C12.8723 13.0771 12.7561 13.1249 12.6193 13.1249ZM2.62501 10.9374L4.22451 8.08008C4.26097 8.0162 4.31566 7.97289 4.38858 7.95014C4.46149 7.92739 4.53441 7.92972 4.60733 7.95714L6.12501 8.66808L7.73851 6.33008C7.83885 6.19329 7.96193 6.16135 8.10776 6.23427L9.61189 6.99989L11.7994 3.56814C11.8633 3.46781 11.9521 3.43368 12.0658 3.46577C12.1796 3.49785 12.2366 3.5731 12.2369 3.69152V10.8009C12.2369 10.9467 12.1845 11.072 12.0798 11.1767C11.9751 11.2814 11.8498 11.3338 11.704 11.3338H2.87176C2.77143 11.3338 2.69399 11.2905 2.63945 11.2038C2.58491 11.1172 2.58039 11.0284 2.62589 10.9374H2.62501Z",
|
|
2753
|
+
fill: "currentColor"
|
|
2754
|
+
}
|
|
2755
|
+
) }),
|
|
2756
|
+
/* @__PURE__ */ jsx14("defs", { children: /* @__PURE__ */ jsx14("clipPath", { id: "clip0_1774_9545", children: /* @__PURE__ */ jsx14("rect", { width: "14", height: "14", fill: "white" }) }) })
|
|
2757
|
+
]
|
|
2758
|
+
}
|
|
2759
|
+
);
|
|
2760
|
+
var AreaIcon_default = SvgIcon4;
|
|
2761
|
+
|
|
2762
|
+
// src/charts/icons/BarIcon.tsx
|
|
2763
|
+
import { jsx as jsx15 } from "react/jsx-runtime";
|
|
2764
|
+
var SvgIcon5 = ({ className }) => /* @__PURE__ */ jsx15(
|
|
2765
|
+
"svg",
|
|
2766
|
+
{
|
|
2767
|
+
width: "14",
|
|
2768
|
+
height: "14",
|
|
2769
|
+
viewBox: "0 0 14 14",
|
|
2770
|
+
fill: "none",
|
|
2771
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
2772
|
+
className,
|
|
2773
|
+
children: /* @__PURE__ */ jsx15(
|
|
2774
|
+
"path",
|
|
2775
|
+
{
|
|
2776
|
+
d: "M2.12791 1.5625V12.4375C2.12791 12.5938 2.07311 12.7267 1.96349 12.836C1.85387 12.9453 1.7207 13 1.56396 13C1.40722 13 1.27404 12.9453 1.16442 12.836C1.05481 12.7267 1 12.5938 1 12.4375V1.5625C1 1.40617 1.05481 1.27333 1.16442 1.164C1.27404 1.05467 1.40722 1 1.56396 1C1.7207 1 1.85387 1.05467 1.96349 1.164C2.07311 1.27333 2.12791 1.40617 2.12791 1.5625ZM1.56396 11.875H12.436C12.5928 11.875 12.726 11.9297 12.8356 12.039C12.9452 12.1483 13 12.2812 13 12.4375C13 12.5938 12.9452 12.7267 12.8356 12.836C12.726 12.9453 12.5928 13 12.436 13H1.56396C1.40722 13 1.27404 12.9453 1.16442 12.836C1.05481 12.7267 1 12.5938 1 12.4375C1 12.2812 1.05481 12.1483 1.16442 12.039C1.27404 11.9297 1.40722 11.875 1.56396 11.875ZM5.12014 4.578V10.375C5.12014 10.5313 5.06534 10.6642 4.95572 10.7735C4.8461 10.8828 4.71293 10.9375 4.55619 10.9375C4.39945 10.9375 4.26627 10.8828 4.15665 10.7735C4.04704 10.6642 3.99223 10.5313 3.99223 10.375V4.578C3.99223 4.42167 4.04704 4.28883 4.15665 4.1795C4.26627 4.07017 4.39945 4.0155 4.55619 4.0155C4.71293 4.0155 4.8461 4.07017 4.95572 4.1795C5.06534 4.28883 5.12014 4.42167 5.12014 4.578ZM11.1196 2.5465V10.3745C11.1196 10.5308 11.0648 10.6637 10.9552 10.773C10.8456 10.8823 10.7124 10.937 10.5557 10.937C10.3989 10.937 10.2658 10.8823 10.1562 10.773C10.0465 10.6637 9.99173 10.5308 9.99173 10.3745V2.5465C9.99173 2.39017 10.0465 2.25733 10.1562 2.148C10.2658 2.03867 10.3989 1.984 10.5557 1.984C10.7124 1.984 10.8456 2.03867 10.9552 2.148C11.0648 2.25733 11.1196 2.39017 11.1196 2.5465ZM8.11187 6.5465V10.3745C8.11187 10.5308 8.05706 10.6637 7.94745 10.773C7.83783 10.8823 7.70465 10.937 7.54792 10.937C7.39118 10.937 7.258 10.8823 7.14838 10.773C7.03877 10.6637 6.98396 10.5308 6.98396 10.3745V6.5465C6.98396 6.39017 7.03877 6.25733 7.14838 6.148C7.258 6.03867 7.39118 5.984 7.54792 5.984C7.69429 5.984 7.8248 6.03867 7.93943 6.148C8.05406 6.25733 8.11154 6.39017 8.11187 6.5465Z",
|
|
2777
|
+
fill: "currentColor"
|
|
2778
|
+
}
|
|
2779
|
+
)
|
|
2780
|
+
}
|
|
2781
|
+
);
|
|
2782
|
+
var BarIcon_default = SvgIcon5;
|
|
2783
|
+
|
|
2784
|
+
// src/charts/icons/LineIcon.tsx
|
|
2785
|
+
import { jsx as jsx16, jsxs as jsxs11 } from "react/jsx-runtime";
|
|
2786
|
+
var SvgIcon6 = ({ className }) => /* @__PURE__ */ jsxs11(
|
|
2787
|
+
"svg",
|
|
2788
|
+
{
|
|
2789
|
+
width: "14",
|
|
2790
|
+
height: "14",
|
|
2791
|
+
viewBox: "0 0 14 14",
|
|
2792
|
+
fill: "none",
|
|
2793
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
2794
|
+
className,
|
|
2795
|
+
children: [
|
|
2796
|
+
/* @__PURE__ */ jsx16("g", { clipPath: "url(#clip0_1774_9563)", children: /* @__PURE__ */ jsx16(
|
|
2797
|
+
"path",
|
|
2798
|
+
{
|
|
2799
|
+
d: "M12.6191 13.1249H1.35352C1.21672 13.1249 1.10049 13.0771 1.00483 12.9814C0.909161 12.8857 0.861328 12.7695 0.861328 12.6327V1.35352C0.861328 1.21672 0.909161 1.10049 1.00483 1.00483C1.10049 0.909161 1.21672 0.861328 1.35352 0.861328C1.49031 0.861328 1.60654 0.909161 1.7022 1.00483C1.79787 1.10049 1.8457 1.21672 1.8457 1.35352V12.1405H12.6191C12.7559 12.1405 12.8722 12.1883 12.9678 12.284C13.0635 12.3797 13.1113 12.4959 13.1113 12.6327C13.1113 12.7695 13.0635 12.8857 12.9678 12.9814C12.8722 13.0771 12.7559 13.1249 12.6191 13.1249ZM5.26345 10.1582C5.0902 10.1582 4.95341 10.0853 4.85308 9.93945L2.7067 6.52127C2.63379 6.40285 2.61104 6.27758 2.63845 6.14545C2.66587 6.01333 2.73645 5.91081 2.8502 5.83789C2.96395 5.76497 3.08704 5.74222 3.21945 5.76964C3.35187 5.79706 3.45439 5.86545 3.52702 5.97483L5.05827 8.46333L5.68739 6.04352C5.72385 5.89768 5.81047 5.79283 5.94727 5.72895L8.43576 4.52583C8.55418 4.47099 8.67274 4.45962 8.79145 4.4917C8.91016 4.52379 9.00583 4.59437 9.07845 4.70345L10.3227 6.72689L12.155 1.21702C12.2005 1.08927 12.2826 0.993599 12.4013 0.930016C12.52 0.866432 12.6431 0.857245 12.7705 0.902453C12.898 0.947661 12.9936 1.02977 13.0575 1.14877C13.1214 1.26777 13.1306 1.39085 13.0851 1.51802L10.9247 8.03939C10.8608 8.24006 10.724 8.35177 10.5143 8.37452C10.3046 8.39727 10.1451 8.32202 10.0357 8.14877L8.46333 5.60558L6.59039 6.50814L5.74252 9.78939C5.68768 9.9991 5.55556 10.1177 5.34614 10.1451C5.31872 10.1541 5.29131 10.1586 5.26389 10.1586L5.26345 10.1582Z",
|
|
2800
|
+
fill: "currentColor"
|
|
2801
|
+
}
|
|
2802
|
+
) }),
|
|
2803
|
+
/* @__PURE__ */ jsx16("defs", { children: /* @__PURE__ */ jsx16("clipPath", { id: "clip0_1774_9563", children: /* @__PURE__ */ jsx16("rect", { width: "14", height: "14", fill: "white" }) }) })
|
|
2804
|
+
]
|
|
2805
|
+
}
|
|
2806
|
+
);
|
|
2807
|
+
var LineIcon_default = SvgIcon6;
|
|
2808
|
+
|
|
2809
|
+
// src/charts/icons/PieIcon.tsx
|
|
2810
|
+
import { jsx as jsx17, jsxs as jsxs12 } from "react/jsx-runtime";
|
|
2811
|
+
var SvgIcon7 = ({ className }) => /* @__PURE__ */ jsxs12(
|
|
2812
|
+
"svg",
|
|
2813
|
+
{
|
|
2814
|
+
width: "14",
|
|
2815
|
+
height: "14",
|
|
2816
|
+
viewBox: "0 0 14 14",
|
|
2817
|
+
fill: "none",
|
|
2818
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
2819
|
+
className,
|
|
2820
|
+
children: [
|
|
2821
|
+
/* @__PURE__ */ jsxs12("g", { clipPath: "url(#clip0_28267_7202)", children: [
|
|
2822
|
+
/* @__PURE__ */ jsx17(
|
|
2823
|
+
"path",
|
|
2824
|
+
{
|
|
2825
|
+
d: "M5.83329 1.86662C4.92079 2.07816 4.08149 2.52998 3.40247 3.17523C2.72345 3.82048 2.22942 4.63564 1.97164 5.53618C1.71386 6.43671 1.70171 7.38982 1.93644 8.29663C2.17118 9.20345 2.64426 10.0309 3.30661 10.6933C3.96896 11.3556 4.79646 11.8287 5.70327 12.0635C6.61009 12.2982 7.56319 12.286 8.46373 12.0283C9.36426 11.7705 10.1794 11.2765 10.8247 10.5974C11.4699 9.91841 11.9217 9.07912 12.1333 8.16662C12.1333 8.01191 12.0718 7.86353 11.9624 7.75414C11.853 7.64474 11.7047 7.58328 11.55 7.58328H7.58329C7.27387 7.58328 6.97713 7.46037 6.75833 7.24157C6.53954 7.02278 6.41662 6.72604 6.41662 6.41662V2.33328C6.40938 2.26417 6.38848 2.19719 6.35515 2.13621C6.32182 2.07524 6.27671 2.02149 6.22245 1.97808C6.16819 1.93467 6.10585 1.90247 6.03905 1.88333C5.97224 1.8642 5.90231 1.85852 5.83329 1.86662Z",
|
|
2826
|
+
stroke: "currentColor",
|
|
2827
|
+
strokeWidth: "1.16667",
|
|
2828
|
+
strokeLinecap: "round",
|
|
2829
|
+
strokeLinejoin: "round"
|
|
2830
|
+
}
|
|
2831
|
+
),
|
|
2832
|
+
/* @__PURE__ */ jsx17(
|
|
2833
|
+
"path",
|
|
2834
|
+
{
|
|
2835
|
+
d: "M8.75 2.04175C9.49067 2.30255 10.1634 2.72617 10.7187 3.28142C11.2739 3.83668 11.6975 4.50941 11.9583 5.25008H9.33333C9.17862 5.25008 9.03025 5.18862 8.92085 5.07923C8.81146 4.96983 8.75 4.82146 8.75 4.66675V2.04175Z",
|
|
2836
|
+
stroke: "currentColor",
|
|
2837
|
+
strokeWidth: "1.16667",
|
|
2838
|
+
strokeLinecap: "round",
|
|
2839
|
+
strokeLinejoin: "round"
|
|
2840
|
+
}
|
|
2841
|
+
)
|
|
2842
|
+
] }),
|
|
2843
|
+
/* @__PURE__ */ jsx17("defs", { children: /* @__PURE__ */ jsx17("clipPath", { id: "clip0_28267_7202", children: /* @__PURE__ */ jsx17("rect", { width: "14", height: "14", fill: "white" }) }) })
|
|
2844
|
+
]
|
|
2845
|
+
}
|
|
2846
|
+
);
|
|
2847
|
+
var PieIcon_default = SvgIcon7;
|
|
2848
|
+
|
|
2849
|
+
// src/charts/icons/ScatterIcon.tsx
|
|
2850
|
+
import { jsx as jsx18, jsxs as jsxs13 } from "react/jsx-runtime";
|
|
2851
|
+
var SvgIcon8 = ({ className }) => /* @__PURE__ */ jsxs13(
|
|
2852
|
+
"svg",
|
|
2853
|
+
{
|
|
2854
|
+
width: "14",
|
|
2855
|
+
height: "14",
|
|
2856
|
+
viewBox: "0 0 14 14",
|
|
2857
|
+
fill: "none",
|
|
2858
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
2859
|
+
className,
|
|
2860
|
+
children: [
|
|
2861
|
+
/* @__PURE__ */ jsxs13("g", { clipPath: "url(#clip0_28248_7302)", children: [
|
|
2862
|
+
/* @__PURE__ */ jsx18(
|
|
2863
|
+
"path",
|
|
2864
|
+
{
|
|
2865
|
+
d: "M1.75 1.75V12.25H12.25",
|
|
2866
|
+
stroke: "currentColor",
|
|
2867
|
+
strokeWidth: "1.16667",
|
|
2868
|
+
strokeLinecap: "round",
|
|
2869
|
+
strokeLinejoin: "round"
|
|
2870
|
+
}
|
|
2871
|
+
),
|
|
2872
|
+
/* @__PURE__ */ jsx18(
|
|
2873
|
+
"path",
|
|
2874
|
+
{
|
|
2875
|
+
d: "M4.66663 8.75879V8.76754",
|
|
2876
|
+
stroke: "currentColor",
|
|
2877
|
+
strokeWidth: "1.16667",
|
|
2878
|
+
strokeLinecap: "round",
|
|
2879
|
+
strokeLinejoin: "round"
|
|
2880
|
+
}
|
|
2881
|
+
),
|
|
2882
|
+
/* @__PURE__ */ jsx18(
|
|
2883
|
+
"path",
|
|
2884
|
+
{
|
|
2885
|
+
d: "M9.33337 9.34204V9.35079",
|
|
2886
|
+
stroke: "currentColor",
|
|
2887
|
+
strokeWidth: "1.16667",
|
|
2888
|
+
strokeLinecap: "round",
|
|
2889
|
+
strokeLinejoin: "round"
|
|
2890
|
+
}
|
|
2891
|
+
),
|
|
2892
|
+
/* @__PURE__ */ jsx18(
|
|
2893
|
+
"path",
|
|
2894
|
+
{
|
|
2895
|
+
d: "M4.66663 4.10083V4.10958",
|
|
2896
|
+
stroke: "currentColor",
|
|
2897
|
+
strokeWidth: "1.16667",
|
|
2898
|
+
strokeLinecap: "round",
|
|
2899
|
+
strokeLinejoin: "round"
|
|
2900
|
+
}
|
|
2901
|
+
),
|
|
2902
|
+
/* @__PURE__ */ jsx18(
|
|
2903
|
+
"path",
|
|
2904
|
+
{
|
|
2905
|
+
d: "M7 6.43408V6.44283",
|
|
2906
|
+
stroke: "currentColor",
|
|
2907
|
+
strokeWidth: "1.16667",
|
|
2908
|
+
strokeLinecap: "round",
|
|
2909
|
+
strokeLinejoin: "round"
|
|
2910
|
+
}
|
|
2911
|
+
),
|
|
2912
|
+
/* @__PURE__ */ jsx18(
|
|
2913
|
+
"path",
|
|
2914
|
+
{
|
|
2915
|
+
d: "M11.0834 6.43408V6.44283",
|
|
2916
|
+
stroke: "currentColor",
|
|
2917
|
+
strokeWidth: "1.16667",
|
|
2918
|
+
strokeLinecap: "round",
|
|
2919
|
+
strokeLinejoin: "round"
|
|
2920
|
+
}
|
|
2921
|
+
)
|
|
2922
|
+
] }),
|
|
2923
|
+
/* @__PURE__ */ jsx18("defs", { children: /* @__PURE__ */ jsx18("clipPath", { id: "clip0_28248_7302", children: /* @__PURE__ */ jsx18("rect", { width: "14", height: "14", fill: "white" }) }) })
|
|
2924
|
+
]
|
|
2925
|
+
}
|
|
2926
|
+
);
|
|
2927
|
+
var ScatterIcon_default = SvgIcon8;
|
|
2928
|
+
|
|
2929
|
+
// src/charts/ChartTypeButtonGroup.tsx
|
|
2930
|
+
import { jsx as jsx19 } from "react/jsx-runtime";
|
|
2931
|
+
var visuals = [
|
|
2932
|
+
{
|
|
2933
|
+
label: "Lines",
|
|
2934
|
+
value: "LINE",
|
|
2935
|
+
icon: /* @__PURE__ */ jsx19(LineIcon_default, { className: "mr-1 h-4 w-4" })
|
|
2936
|
+
},
|
|
2937
|
+
{ label: "Bars", value: "BAR", icon: /* @__PURE__ */ jsx19(BarIcon_default, { className: "mr-1 h-4 w-4" }) },
|
|
2938
|
+
{
|
|
2939
|
+
label: "Areas",
|
|
2940
|
+
value: "AREA",
|
|
2941
|
+
icon: /* @__PURE__ */ jsx19(AreaIcon_default, { className: "mr-1 h-4 w-4" })
|
|
2942
|
+
},
|
|
2943
|
+
{
|
|
2944
|
+
label: "Bar Gauge",
|
|
2945
|
+
value: "BAR_GAUGE",
|
|
2946
|
+
icon: /* @__PURE__ */ jsx19(BarGuageIcon_default, { className: "mr-1 h-4 w-4" })
|
|
2947
|
+
},
|
|
2948
|
+
{
|
|
2949
|
+
label: "Scatter",
|
|
2950
|
+
value: "SCATTER",
|
|
2951
|
+
icon: /* @__PURE__ */ jsx19(ScatterIcon_default, { className: "mr-1 h-4 w-4" })
|
|
2952
|
+
},
|
|
2953
|
+
{
|
|
2954
|
+
label: "Query Value",
|
|
2955
|
+
value: "QUERY_VALUE",
|
|
2956
|
+
icon: /* @__PURE__ */ jsx19(QueryValueIcon_default, { className: "mr-1 h-4 w-4" })
|
|
2957
|
+
},
|
|
2958
|
+
{
|
|
2959
|
+
label: "Table",
|
|
2960
|
+
value: "TABLE",
|
|
2961
|
+
icon: /* @__PURE__ */ jsx19(TableIcon_default, { className: "mr-1 h-4 w-4" })
|
|
2962
|
+
},
|
|
2963
|
+
{ label: "Pie", value: "PIE", icon: /* @__PURE__ */ jsx19(PieIcon_default, { className: "mr-1 h-4 w-4" }) }
|
|
2964
|
+
];
|
|
2965
|
+
var ChartTypeButtonGroup = ({
|
|
2966
|
+
value,
|
|
2967
|
+
onChange,
|
|
2968
|
+
small = false
|
|
2969
|
+
}) => {
|
|
2970
|
+
const [hideLabel, setHideLabel] = useState7(small);
|
|
2971
|
+
const { ref } = useResizeDetector2({
|
|
2972
|
+
onResize: ({ width }) => {
|
|
2973
|
+
if (width) {
|
|
2974
|
+
setHideLabel(width < 800);
|
|
2975
|
+
}
|
|
2976
|
+
},
|
|
2977
|
+
refreshMode: "throttle",
|
|
2978
|
+
refreshRate: 100
|
|
2979
|
+
});
|
|
2980
|
+
return /* @__PURE__ */ jsx19("div", { className: "w-full flex-1", ref, children: /* @__PURE__ */ jsx19(
|
|
2981
|
+
ButtonGroup,
|
|
2982
|
+
{
|
|
2983
|
+
buttons: visuals,
|
|
2984
|
+
value,
|
|
2985
|
+
onChange,
|
|
2986
|
+
small,
|
|
2987
|
+
hideLabel
|
|
2988
|
+
}
|
|
2989
|
+
) });
|
|
2990
|
+
};
|
|
2991
|
+
|
|
2569
2992
|
// src/charts/options/LineControls.tsx
|
|
2570
2993
|
import { produce as produce4 } from "immer";
|
|
2571
2994
|
import {
|
|
2572
2995
|
DisclosurePanel,
|
|
2573
|
-
NewButtonGroup as
|
|
2996
|
+
NewButtonGroup as ButtonGroup2,
|
|
2574
2997
|
Checkbox
|
|
2575
2998
|
} from "@sentio/ui-core";
|
|
2576
|
-
import { jsx as
|
|
2999
|
+
import { jsx as jsx20, jsxs as jsxs14 } from "react/jsx-runtime";
|
|
2577
3000
|
var lineStyles = [
|
|
2578
3001
|
{ label: "Solid", value: "Solid" },
|
|
2579
3002
|
{ label: "Dotted", value: "Dotted" }
|
|
@@ -2593,14 +3016,14 @@ var LineControls = ({ config, defaultOpen, onChange }) => {
|
|
|
2593
3016
|
})
|
|
2594
3017
|
);
|
|
2595
3018
|
};
|
|
2596
|
-
return /* @__PURE__ */
|
|
3019
|
+
return /* @__PURE__ */ jsx20(
|
|
2597
3020
|
DisclosurePanel,
|
|
2598
3021
|
{
|
|
2599
3022
|
title: "Line style",
|
|
2600
3023
|
containerClassName: "w-full bg-default-bg",
|
|
2601
|
-
children: /* @__PURE__ */
|
|
2602
|
-
/* @__PURE__ */
|
|
2603
|
-
|
|
3024
|
+
children: /* @__PURE__ */ jsxs14("div", { className: "flex items-center gap-4", children: [
|
|
3025
|
+
/* @__PURE__ */ jsx20(
|
|
3026
|
+
ButtonGroup2,
|
|
2604
3027
|
{
|
|
2605
3028
|
buttons: lineStyles,
|
|
2606
3029
|
value: config?.style || "Solid",
|
|
@@ -2608,7 +3031,7 @@ var LineControls = ({ config, defaultOpen, onChange }) => {
|
|
|
2608
3031
|
small: true
|
|
2609
3032
|
}
|
|
2610
3033
|
),
|
|
2611
|
-
/* @__PURE__ */
|
|
3034
|
+
/* @__PURE__ */ jsx20(
|
|
2612
3035
|
Checkbox,
|
|
2613
3036
|
{
|
|
2614
3037
|
label: "Smooth Curves",
|
|
@@ -2625,7 +3048,7 @@ var LineControls = ({ config, defaultOpen, onChange }) => {
|
|
|
2625
3048
|
import { useEffect as useEffect6, useMemo as useMemo5 } from "react";
|
|
2626
3049
|
import { produce as produce5 } from "immer";
|
|
2627
3050
|
import { Button as NewButton2, DisclosurePanel as DisclosurePanel2, HelpIcon as HelpIcon2 } from "@sentio/ui-core";
|
|
2628
|
-
import { jsx as
|
|
3051
|
+
import { jsx as jsx21, jsxs as jsxs15 } from "react/jsx-runtime";
|
|
2629
3052
|
var initialConfig = {
|
|
2630
3053
|
columns: [],
|
|
2631
3054
|
alias: ""
|
|
@@ -2667,25 +3090,25 @@ var LabelControls = ({ config, setConfig, defaultOpen }) => {
|
|
|
2667
3090
|
}
|
|
2668
3091
|
return config?.alias !== "" || config?.columns && config.columns.length > 0;
|
|
2669
3092
|
}, [config, defaultOpen]);
|
|
2670
|
-
return /* @__PURE__ */
|
|
3093
|
+
return /* @__PURE__ */ jsx21(
|
|
2671
3094
|
DisclosurePanel2,
|
|
2672
3095
|
{
|
|
2673
3096
|
title: "Label Controls",
|
|
2674
3097
|
defaultOpen: _defaultOpen,
|
|
2675
3098
|
containerClassName: "w-full bg-default-bg",
|
|
2676
|
-
children: /* @__PURE__ */
|
|
2677
|
-
/* @__PURE__ */
|
|
2678
|
-
/* @__PURE__ */
|
|
3099
|
+
children: /* @__PURE__ */ jsxs15("div", { className: "flex items-center gap-2", children: [
|
|
3100
|
+
/* @__PURE__ */ jsxs15("div", { className: "inline-flex h-8", children: [
|
|
3101
|
+
/* @__PURE__ */ jsxs15("span", { className: "sm:text-icontent border-main inline-flex items-center rounded-l-md border border-r-0 bg-gray-50 px-2 font-medium", children: [
|
|
2679
3102
|
"Label Alias",
|
|
2680
|
-
/* @__PURE__ */
|
|
3103
|
+
/* @__PURE__ */ jsx21(
|
|
2681
3104
|
HelpIcon2,
|
|
2682
3105
|
{
|
|
2683
|
-
text: /* @__PURE__ */
|
|
2684
|
-
/* @__PURE__ */
|
|
2685
|
-
/* @__PURE__ */
|
|
3106
|
+
text: /* @__PURE__ */ jsxs15("div", { className: "text-icontent text-text-foreground", children: [
|
|
3107
|
+
/* @__PURE__ */ jsx21("div", { children: "Series name override or template." }),
|
|
3108
|
+
/* @__PURE__ */ jsxs15("div", { children: [
|
|
2686
3109
|
"Ex.",
|
|
2687
3110
|
" ",
|
|
2688
|
-
/* @__PURE__ */
|
|
3111
|
+
/* @__PURE__ */ jsx21("span", { className: "text-primary mx-1 font-semibold italic", children: "{{contract}}" }),
|
|
2689
3112
|
" ",
|
|
2690
3113
|
"will be replaced with the value of the contract label."
|
|
2691
3114
|
] })
|
|
@@ -2693,7 +3116,7 @@ var LabelControls = ({ config, setConfig, defaultOpen }) => {
|
|
|
2693
3116
|
}
|
|
2694
3117
|
)
|
|
2695
3118
|
] }),
|
|
2696
|
-
/* @__PURE__ */
|
|
3119
|
+
/* @__PURE__ */ jsx21(
|
|
2697
3120
|
"input",
|
|
2698
3121
|
{
|
|
2699
3122
|
type: "text",
|
|
@@ -2704,7 +3127,7 @@ var LabelControls = ({ config, setConfig, defaultOpen }) => {
|
|
|
2704
3127
|
}
|
|
2705
3128
|
)
|
|
2706
3129
|
] }),
|
|
2707
|
-
/* @__PURE__ */
|
|
3130
|
+
/* @__PURE__ */ jsx21(
|
|
2708
3131
|
NewButton2,
|
|
2709
3132
|
{
|
|
2710
3133
|
type: "button",
|
|
@@ -2726,9 +3149,9 @@ import { defaults } from "lodash";
|
|
|
2726
3149
|
import {
|
|
2727
3150
|
Checkbox as Checkbox2,
|
|
2728
3151
|
DisclosurePanel as DisclosurePanel3,
|
|
2729
|
-
NewButtonGroup as
|
|
3152
|
+
NewButtonGroup as ButtonGroup3
|
|
2730
3153
|
} from "@sentio/ui-core";
|
|
2731
|
-
import { jsx as
|
|
3154
|
+
import { jsx as jsx22, jsxs as jsxs16 } from "react/jsx-runtime";
|
|
2732
3155
|
var defaultConfig = {
|
|
2733
3156
|
pieType: "Pie",
|
|
2734
3157
|
calculation: "LAST",
|
|
@@ -2763,15 +3186,15 @@ function PieChartControls({ config, defaultOpen, onChange }) {
|
|
|
2763
3186
|
})
|
|
2764
3187
|
);
|
|
2765
3188
|
}
|
|
2766
|
-
return /* @__PURE__ */
|
|
3189
|
+
return /* @__PURE__ */ jsx22(
|
|
2767
3190
|
DisclosurePanel3,
|
|
2768
3191
|
{
|
|
2769
3192
|
title: "Pie Chart Options",
|
|
2770
3193
|
defaultOpen,
|
|
2771
3194
|
containerClassName: "w-full bg-default-bg",
|
|
2772
|
-
children: /* @__PURE__ */
|
|
2773
|
-
/* @__PURE__ */
|
|
2774
|
-
|
|
3195
|
+
children: /* @__PURE__ */ jsxs16("div", { className: "flex items-center gap-4", children: [
|
|
3196
|
+
/* @__PURE__ */ jsx22("div", { className: "shadow-xs flex rounded-md", children: /* @__PURE__ */ jsx22(
|
|
3197
|
+
ButtonGroup3,
|
|
2775
3198
|
{
|
|
2776
3199
|
small: true,
|
|
2777
3200
|
buttons: PieTypeItems,
|
|
@@ -2779,21 +3202,21 @@ function PieChartControls({ config, defaultOpen, onChange }) {
|
|
|
2779
3202
|
onChange: onPieTypeChange
|
|
2780
3203
|
}
|
|
2781
3204
|
) }),
|
|
2782
|
-
/* @__PURE__ */
|
|
2783
|
-
/* @__PURE__ */
|
|
2784
|
-
/* @__PURE__ */
|
|
3205
|
+
/* @__PURE__ */ jsxs16("div", { className: "shadow-xs flex rounded-md", children: [
|
|
3206
|
+
/* @__PURE__ */ jsx22("span", { className: "sm:text-ilabel border-main inline-flex items-center rounded-l-md border border-r-0 bg-gray-50 px-3 ", children: "Calculation" }),
|
|
3207
|
+
/* @__PURE__ */ jsx22(
|
|
2785
3208
|
"select",
|
|
2786
3209
|
{
|
|
2787
3210
|
value: config.calculation,
|
|
2788
|
-
className: "sm:text-ilabel text-text-foreground border-main
|
|
3211
|
+
className: "sm:text-ilabel text-text-foreground border-main hover:border-primary-600 focus:ring-3 focus:ring-primary-600/30 focus:border-primary-600 inline-flex items-center rounded-r-md border pl-4 pr-7",
|
|
2789
3212
|
onChange: (e) => onCalculationChange(e.target.value),
|
|
2790
3213
|
children: CalculationItems.map((d) => {
|
|
2791
|
-
return /* @__PURE__ */
|
|
3214
|
+
return /* @__PURE__ */ jsx22("option", { value: d.value, children: d.label }, d.value);
|
|
2792
3215
|
})
|
|
2793
3216
|
}
|
|
2794
3217
|
)
|
|
2795
3218
|
] }),
|
|
2796
|
-
/* @__PURE__ */
|
|
3219
|
+
/* @__PURE__ */ jsx22(
|
|
2797
3220
|
Checkbox2,
|
|
2798
3221
|
{
|
|
2799
3222
|
checked: config?.showValue,
|
|
@@ -2802,7 +3225,7 @@ function PieChartControls({ config, defaultOpen, onChange }) {
|
|
|
2802
3225
|
labelClassName: "whitespace-nowrap"
|
|
2803
3226
|
}
|
|
2804
3227
|
),
|
|
2805
|
-
/* @__PURE__ */
|
|
3228
|
+
/* @__PURE__ */ jsx22(
|
|
2806
3229
|
Checkbox2,
|
|
2807
3230
|
{
|
|
2808
3231
|
checked: config?.showPercent,
|
|
@@ -2811,7 +3234,7 @@ function PieChartControls({ config, defaultOpen, onChange }) {
|
|
|
2811
3234
|
labelClassName: "whitespace-nowrap"
|
|
2812
3235
|
}
|
|
2813
3236
|
),
|
|
2814
|
-
/* @__PURE__ */
|
|
3237
|
+
/* @__PURE__ */ jsx22(
|
|
2815
3238
|
Checkbox2,
|
|
2816
3239
|
{
|
|
2817
3240
|
checked: config?.absValue,
|
|
@@ -2829,7 +3252,7 @@ function PieChartControls({ config, defaultOpen, onChange }) {
|
|
|
2829
3252
|
import { produce as produce7 } from "immer";
|
|
2830
3253
|
import { defaults as defaults2 } from "lodash";
|
|
2831
3254
|
import { DisclosurePanel as DisclosurePanel4 } from "@sentio/ui-core";
|
|
2832
|
-
import { jsx as
|
|
3255
|
+
import { jsx as jsx23, jsxs as jsxs17 } from "react/jsx-runtime";
|
|
2833
3256
|
var defaultConfig2 = {
|
|
2834
3257
|
direction: "HORIZONTAL",
|
|
2835
3258
|
calculation: "LAST",
|
|
@@ -2882,62 +3305,62 @@ function BarGaugeControls({ config, defaultOpen, onChange }) {
|
|
|
2882
3305
|
})
|
|
2883
3306
|
);
|
|
2884
3307
|
}
|
|
2885
|
-
return /* @__PURE__ */
|
|
3308
|
+
return /* @__PURE__ */ jsx23(
|
|
2886
3309
|
DisclosurePanel4,
|
|
2887
3310
|
{
|
|
2888
3311
|
title: "Bar Gauge Options",
|
|
2889
3312
|
defaultOpen,
|
|
2890
3313
|
containerClassName: "w-full bg-default-bg",
|
|
2891
|
-
children: /* @__PURE__ */
|
|
2892
|
-
/* @__PURE__ */
|
|
2893
|
-
/* @__PURE__ */
|
|
2894
|
-
/* @__PURE__ */
|
|
3314
|
+
children: /* @__PURE__ */ jsxs17("div", { className: "flex items-center gap-4", children: [
|
|
3315
|
+
/* @__PURE__ */ jsxs17("div", { className: "shadow-xs flex rounded-md", children: [
|
|
3316
|
+
/* @__PURE__ */ jsx23("span", { className: "sm:text-ilabel border-main inline-flex items-center rounded-l-md border border-r-0 bg-gray-50 px-3 ", children: "Direction" }),
|
|
3317
|
+
/* @__PURE__ */ jsx23(
|
|
2895
3318
|
"select",
|
|
2896
3319
|
{
|
|
2897
3320
|
value: config.direction,
|
|
2898
|
-
className: "sm:text-ilabel border-main text-text-foreground
|
|
3321
|
+
className: "sm:text-ilabel border-main text-text-foreground hover:border-primary-600 focus:ring-3 focus:ring-primary-600/30 focus:border-primary-600 inline-flex items-center rounded-r-md border pl-4 pr-7",
|
|
2899
3322
|
onChange: (e) => onDirectionChange(e.target.value),
|
|
2900
3323
|
children: directionItems.map((d) => {
|
|
2901
|
-
return /* @__PURE__ */
|
|
3324
|
+
return /* @__PURE__ */ jsx23("option", { value: d.value, children: d.label }, d.value);
|
|
2902
3325
|
})
|
|
2903
3326
|
}
|
|
2904
3327
|
)
|
|
2905
3328
|
] }),
|
|
2906
|
-
/* @__PURE__ */
|
|
2907
|
-
/* @__PURE__ */
|
|
2908
|
-
/* @__PURE__ */
|
|
3329
|
+
/* @__PURE__ */ jsxs17("div", { className: "shadow-xs flex rounded-md", children: [
|
|
3330
|
+
/* @__PURE__ */ jsx23("span", { className: "sm:text-ilabel border-main inline-flex items-center rounded-l-md border border-r-0 bg-gray-50 px-3 ", children: "Calculation" }),
|
|
3331
|
+
/* @__PURE__ */ jsx23(
|
|
2909
3332
|
"select",
|
|
2910
3333
|
{
|
|
2911
3334
|
value: config.calculation,
|
|
2912
|
-
className: "sm:text-ilabel border-main text-text-foreground
|
|
3335
|
+
className: "sm:text-ilabel border-main text-text-foreground hover:border-primary-600 focus:ring-3 focus:ring-primary-600/30 focus:border-primary-600 inline-flex items-center rounded-r-md border pl-4 pr-7",
|
|
2913
3336
|
onChange: (e) => onCalculationChange(e.target.value),
|
|
2914
3337
|
children: CalculationItems2.map((d) => {
|
|
2915
|
-
return /* @__PURE__ */
|
|
3338
|
+
return /* @__PURE__ */ jsx23("option", { value: d.value, children: d.label }, d.value);
|
|
2916
3339
|
})
|
|
2917
3340
|
}
|
|
2918
3341
|
)
|
|
2919
3342
|
] }),
|
|
2920
|
-
/* @__PURE__ */
|
|
2921
|
-
/* @__PURE__ */
|
|
2922
|
-
/* @__PURE__ */
|
|
3343
|
+
/* @__PURE__ */ jsxs17("div", { className: "shadow-xs flex rounded-md", children: [
|
|
3344
|
+
/* @__PURE__ */ jsx23("span", { className: "sm:text-ilabel border-main inline-flex items-center whitespace-nowrap rounded-l-md border border-r-0 bg-gray-50 px-3", children: "Sort by" }),
|
|
3345
|
+
/* @__PURE__ */ jsx23(
|
|
2923
3346
|
"select",
|
|
2924
3347
|
{
|
|
2925
3348
|
value: config?.sort?.sortBy,
|
|
2926
|
-
className: "sm:text-ilabel border-main text-text-foreground
|
|
3349
|
+
className: "sm:text-ilabel border-main text-text-foreground hover:border-primary-600 focus:ring-3 focus:ring-primary-600/30 focus:border-primary-600 inline-flex items-center border pl-4 pr-7",
|
|
2927
3350
|
onChange: (e) => onSortByChange(e.target.value),
|
|
2928
3351
|
children: sortByItems.map((d) => {
|
|
2929
|
-
return /* @__PURE__ */
|
|
3352
|
+
return /* @__PURE__ */ jsx23("option", { value: d.value, children: d.label }, d.value);
|
|
2930
3353
|
})
|
|
2931
3354
|
}
|
|
2932
3355
|
),
|
|
2933
|
-
/* @__PURE__ */
|
|
3356
|
+
/* @__PURE__ */ jsx23(
|
|
2934
3357
|
"select",
|
|
2935
3358
|
{
|
|
2936
3359
|
value: config?.sort?.orderDesc + "",
|
|
2937
|
-
className: "sm:text-ilabel border-main text-text-foreground
|
|
3360
|
+
className: "sm:text-ilabel border-main text-text-foreground hover:border-primary-600 focus:ring-3 focus:ring-primary-600/30 focus:border-primary-600 inline-flex items-center rounded-r-md border border-l-0 pl-4 pr-7",
|
|
2938
3361
|
onChange: (e) => onOrderChange(e.target.value === "true"),
|
|
2939
3362
|
children: orderItems.map((d) => {
|
|
2940
|
-
return /* @__PURE__ */
|
|
3363
|
+
return /* @__PURE__ */ jsx23("option", { value: d.value + "", children: d.label }, d.label);
|
|
2941
3364
|
})
|
|
2942
3365
|
}
|
|
2943
3366
|
)
|
|
@@ -2947,360 +3370,499 @@ function BarGaugeControls({ config, defaultOpen, onChange }) {
|
|
|
2947
3370
|
);
|
|
2948
3371
|
}
|
|
2949
3372
|
|
|
2950
|
-
// src/charts/
|
|
2951
|
-
import {
|
|
2952
|
-
|
|
2953
|
-
"svg",
|
|
2954
|
-
{
|
|
2955
|
-
width: "14",
|
|
2956
|
-
height: "14",
|
|
2957
|
-
viewBox: "0 0 14 14",
|
|
2958
|
-
fill: "none",
|
|
2959
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
2960
|
-
className,
|
|
2961
|
-
children: [
|
|
2962
|
-
/* @__PURE__ */ jsx15("g", { clipPath: "url(#clip0_1774_9563)", children: /* @__PURE__ */ jsx15(
|
|
2963
|
-
"path",
|
|
2964
|
-
{
|
|
2965
|
-
d: "M12.6191 13.1249H1.35352C1.21672 13.1249 1.10049 13.0771 1.00483 12.9814C0.909161 12.8857 0.861328 12.7695 0.861328 12.6327V1.35352C0.861328 1.21672 0.909161 1.10049 1.00483 1.00483C1.10049 0.909161 1.21672 0.861328 1.35352 0.861328C1.49031 0.861328 1.60654 0.909161 1.7022 1.00483C1.79787 1.10049 1.8457 1.21672 1.8457 1.35352V12.1405H12.6191C12.7559 12.1405 12.8722 12.1883 12.9678 12.284C13.0635 12.3797 13.1113 12.4959 13.1113 12.6327C13.1113 12.7695 13.0635 12.8857 12.9678 12.9814C12.8722 13.0771 12.7559 13.1249 12.6191 13.1249ZM5.26345 10.1582C5.0902 10.1582 4.95341 10.0853 4.85308 9.93945L2.7067 6.52127C2.63379 6.40285 2.61104 6.27758 2.63845 6.14545C2.66587 6.01333 2.73645 5.91081 2.8502 5.83789C2.96395 5.76497 3.08704 5.74222 3.21945 5.76964C3.35187 5.79706 3.45439 5.86545 3.52702 5.97483L5.05827 8.46333L5.68739 6.04352C5.72385 5.89768 5.81047 5.79283 5.94727 5.72895L8.43576 4.52583C8.55418 4.47099 8.67274 4.45962 8.79145 4.4917C8.91016 4.52379 9.00583 4.59437 9.07845 4.70345L10.3227 6.72689L12.155 1.21702C12.2005 1.08927 12.2826 0.993599 12.4013 0.930016C12.52 0.866432 12.6431 0.857245 12.7705 0.902453C12.898 0.947661 12.9936 1.02977 13.0575 1.14877C13.1214 1.26777 13.1306 1.39085 13.0851 1.51802L10.9247 8.03939C10.8608 8.24006 10.724 8.35177 10.5143 8.37452C10.3046 8.39727 10.1451 8.32202 10.0357 8.14877L8.46333 5.60558L6.59039 6.50814L5.74252 9.78939C5.68768 9.9991 5.55556 10.1177 5.34614 10.1451C5.31872 10.1541 5.29131 10.1586 5.26389 10.1586L5.26345 10.1582Z",
|
|
2966
|
-
fill: "currentColor"
|
|
2967
|
-
}
|
|
2968
|
-
) }),
|
|
2969
|
-
/* @__PURE__ */ jsx15("defs", { children: /* @__PURE__ */ jsx15("clipPath", { id: "clip0_1774_9563", children: /* @__PURE__ */ jsx15("rect", { width: "14", height: "14", fill: "white" }) }) })
|
|
2970
|
-
]
|
|
2971
|
-
}
|
|
2972
|
-
);
|
|
2973
|
-
var LineIcon_default = SvgIcon;
|
|
3373
|
+
// src/charts/options/ValueOptions.tsx
|
|
3374
|
+
import { produce as produce9 } from "immer";
|
|
3375
|
+
import { ComboInput, classNames as classNames6 } from "@sentio/ui-core";
|
|
2974
3376
|
|
|
2975
|
-
// src/charts/
|
|
2976
|
-
import {
|
|
2977
|
-
|
|
2978
|
-
|
|
2979
|
-
|
|
2980
|
-
|
|
2981
|
-
|
|
2982
|
-
|
|
2983
|
-
|
|
2984
|
-
|
|
2985
|
-
|
|
2986
|
-
|
|
2987
|
-
|
|
2988
|
-
|
|
2989
|
-
|
|
2990
|
-
|
|
2991
|
-
|
|
2992
|
-
|
|
2993
|
-
|
|
2994
|
-
|
|
2995
|
-
|
|
3377
|
+
// src/charts/options/ValueStringMapping.tsx
|
|
3378
|
+
import { LuPlus, LuTrash2 } from "react-icons/lu";
|
|
3379
|
+
import { Button, classNames as classNames5 } from "@sentio/ui-core";
|
|
3380
|
+
import { produce as produce8 } from "immer";
|
|
3381
|
+
import { jsx as jsx24, jsxs as jsxs18 } from "react/jsx-runtime";
|
|
3382
|
+
var operators = {
|
|
3383
|
+
">": "greater than",
|
|
3384
|
+
">=": "greater or equal",
|
|
3385
|
+
"==": "equal",
|
|
3386
|
+
"!=": "not equal",
|
|
3387
|
+
"<": "less than",
|
|
3388
|
+
"<=": "less or equal"
|
|
3389
|
+
};
|
|
3390
|
+
var renderTreeLine = (index, isLast) => {
|
|
3391
|
+
return /* @__PURE__ */ jsx24("div", { className: "mr-2 flex h-12 w-3 flex-col items-center justify-center", children: /* @__PURE__ */ jsxs18("div", { className: "flex h-full w-full items-center", children: [
|
|
3392
|
+
/* @__PURE__ */ jsx24(
|
|
3393
|
+
"div",
|
|
3394
|
+
{
|
|
3395
|
+
className: classNames5(
|
|
3396
|
+
"w-px bg-gray-300",
|
|
3397
|
+
isLast ? "h-1/2 self-start" : index === 0 ? "h-full self-end" : "h-full"
|
|
3398
|
+
)
|
|
3399
|
+
}
|
|
3400
|
+
),
|
|
3401
|
+
/* @__PURE__ */ jsx24("div", { className: "h-px w-3 bg-gray-300" })
|
|
3402
|
+
] }) });
|
|
3403
|
+
};
|
|
3404
|
+
function ValueStringMapping({ rules, onChange }) {
|
|
3405
|
+
const addRule = () => {
|
|
3406
|
+
onChange(
|
|
3407
|
+
produce8(rules, (draft) => {
|
|
3408
|
+
draft = draft || [];
|
|
3409
|
+
draft.push({
|
|
3410
|
+
comparison: "==",
|
|
3411
|
+
value: 0,
|
|
3412
|
+
text: ""
|
|
3413
|
+
});
|
|
3414
|
+
})
|
|
3415
|
+
);
|
|
3416
|
+
};
|
|
3417
|
+
function removeRule(index) {
|
|
3418
|
+
onChange(
|
|
3419
|
+
produce8(rules, (draft) => {
|
|
3420
|
+
draft.splice(index, 1);
|
|
3421
|
+
})
|
|
3422
|
+
);
|
|
2996
3423
|
}
|
|
2997
|
-
)
|
|
2998
|
-
|
|
2999
|
-
|
|
3000
|
-
|
|
3001
|
-
|
|
3002
|
-
|
|
3003
|
-
|
|
3004
|
-
|
|
3005
|
-
|
|
3006
|
-
|
|
3007
|
-
|
|
3008
|
-
|
|
3009
|
-
|
|
3010
|
-
|
|
3011
|
-
|
|
3012
|
-
|
|
3424
|
+
function changeRule(index, field, value) {
|
|
3425
|
+
onChange(
|
|
3426
|
+
produce8(rules, (draft) => {
|
|
3427
|
+
;
|
|
3428
|
+
draft[index][field] = value;
|
|
3429
|
+
})
|
|
3430
|
+
);
|
|
3431
|
+
}
|
|
3432
|
+
return /* @__PURE__ */ jsxs18("div", { className: "flex w-full flex-col rounded-md py-2", children: [
|
|
3433
|
+
(rules || []).map((rule, index) => {
|
|
3434
|
+
const isLast = index === (rules || []).length - 1;
|
|
3435
|
+
return /* @__PURE__ */ jsxs18(
|
|
3436
|
+
"div",
|
|
3437
|
+
{
|
|
3438
|
+
className: "text-text-foreground flex h-10 items-center py-1",
|
|
3439
|
+
children: [
|
|
3440
|
+
renderTreeLine(index, isLast),
|
|
3441
|
+
/* @__PURE__ */ jsx24("span", { className: "sm:text-ilabel inline-flex h-full items-center pr-3 font-medium", children: "If value is" }),
|
|
3442
|
+
/* @__PURE__ */ jsx24(
|
|
3443
|
+
"select",
|
|
3444
|
+
{
|
|
3445
|
+
value: rule.comparison,
|
|
3446
|
+
onChange: (e) => changeRule(index, "comparison", e.target.value),
|
|
3447
|
+
className: "rounded-r-0 sm:text-ilabel border-main text-text-foreground focus:border-primary-600 focus:ring-3 focus:ring-primary-600/30 inline-flex h-full items-center rounded-l-md border border-r-0 bg-gray-50 py-1 pl-4 pr-7",
|
|
3448
|
+
children: Object.entries(operators).map(([op, display]) => {
|
|
3449
|
+
return /* @__PURE__ */ jsxs18("option", { value: op, children: [
|
|
3450
|
+
"is ",
|
|
3451
|
+
display
|
|
3452
|
+
] }, op);
|
|
3453
|
+
})
|
|
3454
|
+
}
|
|
3455
|
+
),
|
|
3456
|
+
/* @__PURE__ */ jsx24(
|
|
3457
|
+
"input",
|
|
3458
|
+
{
|
|
3459
|
+
type: "text",
|
|
3460
|
+
name: "value",
|
|
3461
|
+
id: "value",
|
|
3462
|
+
className: "w-30 rounded-l-0 sm:text-ilabel border-main hover:border-primary-600 focus:border-primary-600 focus:ring-3 focus:ring-primary-600/30 block h-full rounded-r-md border px-2 py-1",
|
|
3463
|
+
placeholder: "0",
|
|
3464
|
+
value: rule.value,
|
|
3465
|
+
onChange: (e) => {
|
|
3466
|
+
changeRule(index, "value", e.target.value);
|
|
3467
|
+
}
|
|
3468
|
+
}
|
|
3469
|
+
),
|
|
3470
|
+
/* @__PURE__ */ jsx24("span", { className: "sm:text-ilabel inline-flex h-full items-center rounded-none px-3 font-medium", children: ", then show" }),
|
|
3471
|
+
/* @__PURE__ */ jsx24(
|
|
3472
|
+
"input",
|
|
3473
|
+
{
|
|
3474
|
+
type: "text",
|
|
3475
|
+
name: "text",
|
|
3476
|
+
id: "text",
|
|
3477
|
+
className: "sm:text-ilabel border-main hover:border-primary-600 focus:border-primary-600 focus:ring-3 focus:ring-primary-600/30 block h-full w-80 rounded-md px-2 py-1",
|
|
3478
|
+
placeholder: "Display text (e.g. High, Low, Normal)",
|
|
3479
|
+
value: rule.text,
|
|
3480
|
+
onChange: (e) => {
|
|
3481
|
+
changeRule(index, "text", e.target.value);
|
|
3482
|
+
}
|
|
3483
|
+
}
|
|
3484
|
+
),
|
|
3485
|
+
/* @__PURE__ */ jsx24(
|
|
3486
|
+
"button",
|
|
3487
|
+
{
|
|
3488
|
+
type: "button",
|
|
3489
|
+
className: "mx-2",
|
|
3490
|
+
"aria-label": "remove",
|
|
3491
|
+
onClick: () => removeRule(index),
|
|
3492
|
+
children: /* @__PURE__ */ jsx24(
|
|
3493
|
+
LuTrash2,
|
|
3494
|
+
{
|
|
3495
|
+
className: "icon text-text-foreground-disabled",
|
|
3496
|
+
"aria-hidden": "true"
|
|
3497
|
+
}
|
|
3498
|
+
)
|
|
3499
|
+
}
|
|
3500
|
+
)
|
|
3501
|
+
]
|
|
3502
|
+
},
|
|
3503
|
+
index
|
|
3504
|
+
);
|
|
3505
|
+
}),
|
|
3506
|
+
/* @__PURE__ */ jsxs18(
|
|
3507
|
+
Button,
|
|
3013
3508
|
{
|
|
3014
|
-
|
|
3015
|
-
|
|
3509
|
+
type: "button",
|
|
3510
|
+
role: "secondary",
|
|
3511
|
+
className: "mt-1 w-fit flex-none",
|
|
3512
|
+
"aria-label": "remove",
|
|
3513
|
+
onClick: addRule,
|
|
3514
|
+
children: [
|
|
3515
|
+
/* @__PURE__ */ jsx24(LuPlus, { className: classNames5("h-4 w-4"), "aria-hidden": "true" }),
|
|
3516
|
+
"Add Formatting Rule"
|
|
3517
|
+
]
|
|
3016
3518
|
}
|
|
3017
3519
|
)
|
|
3018
|
-
}
|
|
3019
|
-
|
|
3020
|
-
var BarIcon_default = SvgIcon3;
|
|
3520
|
+
] });
|
|
3521
|
+
}
|
|
3021
3522
|
|
|
3022
|
-
// src/charts/
|
|
3023
|
-
import { jsx as
|
|
3024
|
-
var
|
|
3025
|
-
"
|
|
3523
|
+
// src/charts/options/ValueOptions.tsx
|
|
3524
|
+
import { Fragment as Fragment5, jsx as jsx25, jsxs as jsxs19 } from "react/jsx-runtime";
|
|
3525
|
+
var ValueFormatters = [
|
|
3526
|
+
{ label: "Number", value: "NumberFormatter" },
|
|
3527
|
+
{ label: "Date", value: "DateFormatter" },
|
|
3528
|
+
{ label: "String", value: "StringFormatter" }
|
|
3529
|
+
];
|
|
3530
|
+
var defaultConfig3 = {
|
|
3531
|
+
valueFormatter: "NumberFormatter",
|
|
3532
|
+
showValueLabel: false,
|
|
3533
|
+
maxSignificantDigits: 3,
|
|
3534
|
+
dateFormat: "LLL",
|
|
3535
|
+
mappingRules: [],
|
|
3536
|
+
style: "None"
|
|
3537
|
+
};
|
|
3538
|
+
var dateFormats = [
|
|
3539
|
+
{ label: "Localized format", value: "LLL" },
|
|
3540
|
+
{ label: "ISO String", value: "YYYY-MM-DDTHH:mm:ss.sssZ" }
|
|
3541
|
+
];
|
|
3542
|
+
var CurrencySymbols = [
|
|
3543
|
+
{ label: "USD", value: "$" },
|
|
3544
|
+
{ label: "EUR", value: "\u20AC" },
|
|
3545
|
+
{ label: "GBP", value: "\xA3" },
|
|
3546
|
+
{ label: "CNY or JPY", value: "\xA5" },
|
|
3547
|
+
{ label: "BTC", value: "\u0243" },
|
|
3548
|
+
{ label: "ETH", value: "\u039E" }
|
|
3549
|
+
];
|
|
3550
|
+
var AddonLabel = ({
|
|
3551
|
+
className,
|
|
3552
|
+
children
|
|
3553
|
+
}) => /* @__PURE__ */ jsx25(
|
|
3554
|
+
"span",
|
|
3026
3555
|
{
|
|
3027
|
-
|
|
3028
|
-
|
|
3029
|
-
|
|
3030
|
-
|
|
3031
|
-
|
|
3032
|
-
|
|
3033
|
-
|
|
3034
|
-
|
|
3035
|
-
|
|
3036
|
-
|
|
3037
|
-
|
|
3038
|
-
|
|
3556
|
+
className: classNames6(
|
|
3557
|
+
"sm:text-ilabel border-main inline-flex items-center whitespace-nowrap bg-gray-50 px-3",
|
|
3558
|
+
className
|
|
3559
|
+
),
|
|
3560
|
+
children
|
|
3561
|
+
}
|
|
3562
|
+
);
|
|
3563
|
+
var ValueOptions = ({
|
|
3564
|
+
config,
|
|
3565
|
+
onChange,
|
|
3566
|
+
formatters = ValueFormatters,
|
|
3567
|
+
showPrefix,
|
|
3568
|
+
showSuffix
|
|
3569
|
+
}) => {
|
|
3570
|
+
function onChangeDateFormat(f) {
|
|
3571
|
+
onChange(produce9(config, (draft) => void (draft.dateFormat = f)));
|
|
3572
|
+
}
|
|
3573
|
+
function onChangeFormatter(f) {
|
|
3574
|
+
onChange(produce9(config, (draft) => void (draft.valueFormatter = f)));
|
|
3575
|
+
}
|
|
3576
|
+
function onChangeSymbol(symbol) {
|
|
3577
|
+
onChange(produce9(config, (draft) => void (draft.currencySymbol = symbol)));
|
|
3578
|
+
}
|
|
3579
|
+
function onStyleChange(notation) {
|
|
3580
|
+
onChange(
|
|
3581
|
+
produce9(config, (draft) => {
|
|
3582
|
+
draft.style = notation;
|
|
3583
|
+
})
|
|
3584
|
+
);
|
|
3585
|
+
}
|
|
3586
|
+
function onDigitsChange(value, option) {
|
|
3587
|
+
onChange(
|
|
3588
|
+
produce9(config, (draft) => {
|
|
3589
|
+
const d = draft;
|
|
3590
|
+
if (value) {
|
|
3591
|
+
const maxSignificantDigits = parseInt(value);
|
|
3592
|
+
if (maxSignificantDigits >= 0 && maxSignificantDigits <= 20) {
|
|
3593
|
+
d[option] = maxSignificantDigits;
|
|
3594
|
+
}
|
|
3595
|
+
} else {
|
|
3596
|
+
delete d[option];
|
|
3039
3597
|
}
|
|
3040
|
-
)
|
|
3041
|
-
|
|
3042
|
-
|
|
3043
|
-
|
|
3044
|
-
|
|
3045
|
-
|
|
3598
|
+
})
|
|
3599
|
+
);
|
|
3600
|
+
}
|
|
3601
|
+
function onMappingRulesChange(rules) {
|
|
3602
|
+
onChange(produce9(config, (draft) => void (draft.mappingRules = rules)));
|
|
3603
|
+
}
|
|
3604
|
+
function onPrefixChange(value) {
|
|
3605
|
+
onChange(
|
|
3606
|
+
produce9(config, (draft) => {
|
|
3607
|
+
if (value) {
|
|
3608
|
+
draft.prefix = value;
|
|
3609
|
+
} else {
|
|
3610
|
+
delete draft.prefix;
|
|
3046
3611
|
}
|
|
3047
|
-
)
|
|
3048
|
-
|
|
3049
|
-
|
|
3612
|
+
})
|
|
3613
|
+
);
|
|
3614
|
+
}
|
|
3615
|
+
function onSuffixChange(value) {
|
|
3616
|
+
onChange(
|
|
3617
|
+
produce9(config, (draft) => {
|
|
3618
|
+
if (value) {
|
|
3619
|
+
draft.suffix = value;
|
|
3620
|
+
} else {
|
|
3621
|
+
delete draft.suffix;
|
|
3622
|
+
}
|
|
3623
|
+
})
|
|
3624
|
+
);
|
|
3625
|
+
}
|
|
3626
|
+
function numberAddons(style) {
|
|
3627
|
+
switch (style) {
|
|
3628
|
+
case "None":
|
|
3629
|
+
return /* @__PURE__ */ jsxs19(Fragment5, { children: [
|
|
3630
|
+
/* @__PURE__ */ jsx25(AddonLabel, { className: "border border-l-0", children: "Fraction Digits" }),
|
|
3631
|
+
/* @__PURE__ */ jsx25(
|
|
3632
|
+
"input",
|
|
3633
|
+
{
|
|
3634
|
+
disabled: true,
|
|
3635
|
+
className: "focus:border-primary-500 sm:text-ilabel min-w-20 border-main rounded-r-md border border-l-0 py-1",
|
|
3636
|
+
value: ""
|
|
3637
|
+
}
|
|
3638
|
+
)
|
|
3639
|
+
] });
|
|
3640
|
+
case "Percent":
|
|
3641
|
+
case "Standard":
|
|
3642
|
+
return /* @__PURE__ */ jsxs19(Fragment5, { children: [
|
|
3643
|
+
/* @__PURE__ */ jsx25(AddonLabel, { className: "border border-x-0", children: "Fraction Digits" }),
|
|
3644
|
+
/* @__PURE__ */ jsx25(
|
|
3645
|
+
"input",
|
|
3646
|
+
{
|
|
3647
|
+
type: "number",
|
|
3648
|
+
min: 0,
|
|
3649
|
+
max: 20,
|
|
3650
|
+
className: "focus:border-primary-500 sm:text-ilabel min-w-20 border-main focus:ring-3 focus:ring-primary-600/30 hover:border-primary-600 rounded-r-md border py-1",
|
|
3651
|
+
value: config.maxFractionDigits,
|
|
3652
|
+
placeholder: "0-20",
|
|
3653
|
+
onChange: (e) => onDigitsChange(e.target.value, "maxFractionDigits")
|
|
3654
|
+
}
|
|
3655
|
+
)
|
|
3656
|
+
] });
|
|
3657
|
+
case "Currency":
|
|
3658
|
+
return /* @__PURE__ */ jsxs19(Fragment5, { children: [
|
|
3659
|
+
/* @__PURE__ */ jsx25(AddonLabel, { className: "border border-r-0", children: "Symbol" }),
|
|
3660
|
+
/* @__PURE__ */ jsx25("div", { className: "w-28 ", children: /* @__PURE__ */ jsx25(
|
|
3661
|
+
ComboInput,
|
|
3662
|
+
{
|
|
3663
|
+
onChange: onChangeSymbol,
|
|
3664
|
+
options: CurrencySymbols.map((s) => s.value),
|
|
3665
|
+
displayFn: (s) => {
|
|
3666
|
+
const name = CurrencySymbols.find((c) => c.value === s)?.label;
|
|
3667
|
+
return `${name} (${s})`;
|
|
3668
|
+
},
|
|
3669
|
+
placeholder: "$",
|
|
3670
|
+
value: config?.currencySymbol
|
|
3671
|
+
}
|
|
3672
|
+
) }),
|
|
3673
|
+
/* @__PURE__ */ jsx25(AddonLabel, { className: "border", children: "Precision" }),
|
|
3674
|
+
/* @__PURE__ */ jsx25(
|
|
3675
|
+
"input",
|
|
3676
|
+
{
|
|
3677
|
+
type: "number",
|
|
3678
|
+
min: 0,
|
|
3679
|
+
max: 20,
|
|
3680
|
+
className: "focus:border-primary-500 sm:text-ilabel min-w-20 border-main rounded-r-md border border-l-0 py-1",
|
|
3681
|
+
value: config.precision,
|
|
3682
|
+
defaultValue: 2,
|
|
3683
|
+
placeholder: "0-20",
|
|
3684
|
+
onChange: (e) => onDigitsChange(e.target.value, "precision")
|
|
3685
|
+
}
|
|
3686
|
+
)
|
|
3687
|
+
] });
|
|
3688
|
+
default:
|
|
3689
|
+
return /* @__PURE__ */ jsxs19(Fragment5, { children: [
|
|
3690
|
+
/* @__PURE__ */ jsx25(AddonLabel, { className: "border border-x-0", children: "Max significant digits" }),
|
|
3691
|
+
/* @__PURE__ */ jsx25(
|
|
3692
|
+
"input",
|
|
3693
|
+
{
|
|
3694
|
+
type: "number",
|
|
3695
|
+
min: 1,
|
|
3696
|
+
max: 21,
|
|
3697
|
+
className: "focus:border-primary-600 sm:text-ilabel min-w-20 border-main hover:border-primary-600 focus:ring-3 focus:ring-primary-600/30 rounded-r-md border py-1",
|
|
3698
|
+
value: config.maxSignificantDigits,
|
|
3699
|
+
placeholder: "1-21",
|
|
3700
|
+
onChange: (e) => onDigitsChange(e.target.value, "maxSignificantDigits")
|
|
3701
|
+
}
|
|
3702
|
+
)
|
|
3703
|
+
] });
|
|
3704
|
+
}
|
|
3705
|
+
}
|
|
3706
|
+
return /* @__PURE__ */ jsxs19(Fragment5, { children: [
|
|
3707
|
+
/* @__PURE__ */ jsx25("div", { children: /* @__PURE__ */ jsxs19("div", { className: "flex", children: [
|
|
3708
|
+
/* @__PURE__ */ jsx25(AddonLabel, { className: "rounded-l-md border border-r-0", children: "Value formatter" }),
|
|
3709
|
+
/* @__PURE__ */ jsx25(
|
|
3710
|
+
"select",
|
|
3050
3711
|
{
|
|
3051
|
-
|
|
3052
|
-
|
|
3712
|
+
value: config.valueFormatter,
|
|
3713
|
+
className: classNames6(
|
|
3714
|
+
"sm:text-ilabel border-main text-text-foreground hover:border-primary-600 inline-flex items-center border py-1.5 pl-4 pr-7 focus:ring-0",
|
|
3715
|
+
config.valueFormatter == "StringFormatter" ? "rounded-r-md" : ""
|
|
3716
|
+
),
|
|
3717
|
+
onChange: (e) => onChangeFormatter(e.target.value),
|
|
3718
|
+
children: formatters.map((d) => {
|
|
3719
|
+
return /* @__PURE__ */ jsx25("option", { value: d.value, children: d.label }, d.value);
|
|
3720
|
+
})
|
|
3053
3721
|
}
|
|
3054
3722
|
),
|
|
3055
|
-
/* @__PURE__ */
|
|
3056
|
-
"
|
|
3057
|
-
|
|
3058
|
-
|
|
3059
|
-
fill: "currentColor"
|
|
3060
|
-
}
|
|
3061
|
-
)
|
|
3062
|
-
]
|
|
3063
|
-
}
|
|
3064
|
-
);
|
|
3065
|
-
var BarGuageIcon_default = SvgIcon4;
|
|
3066
|
-
|
|
3067
|
-
// src/charts/icons/PieIcon.tsx
|
|
3068
|
-
import { jsx as jsx19, jsxs as jsxs14 } from "react/jsx-runtime";
|
|
3069
|
-
var SvgIcon5 = ({ className }) => /* @__PURE__ */ jsxs14(
|
|
3070
|
-
"svg",
|
|
3071
|
-
{
|
|
3072
|
-
width: "14",
|
|
3073
|
-
height: "14",
|
|
3074
|
-
viewBox: "0 0 14 14",
|
|
3075
|
-
fill: "none",
|
|
3076
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
3077
|
-
className,
|
|
3078
|
-
children: [
|
|
3079
|
-
/* @__PURE__ */ jsxs14("g", { clipPath: "url(#clip0_28267_7202)", children: [
|
|
3080
|
-
/* @__PURE__ */ jsx19(
|
|
3081
|
-
"path",
|
|
3723
|
+
config.valueFormatter == "NumberFormatter" && /* @__PURE__ */ jsxs19(Fragment5, { children: [
|
|
3724
|
+
/* @__PURE__ */ jsx25(AddonLabel, { className: "border border-l-0 border-r-0", children: "Style" }),
|
|
3725
|
+
/* @__PURE__ */ jsxs19(
|
|
3726
|
+
"select",
|
|
3082
3727
|
{
|
|
3083
|
-
|
|
3084
|
-
|
|
3085
|
-
|
|
3086
|
-
|
|
3087
|
-
|
|
3728
|
+
value: config.style,
|
|
3729
|
+
className: "sm:text-ilabel border-main text-text-foreground hover:border-primary-600 inline-flex items-center border py-1 pl-4 pr-7 focus:ring-0",
|
|
3730
|
+
onChange: (e) => onStyleChange(e.target.value),
|
|
3731
|
+
children: [
|
|
3732
|
+
/* @__PURE__ */ jsx25("option", { value: "None", children: "None" }),
|
|
3733
|
+
/* @__PURE__ */ jsx25("option", { value: "Compact", children: "Compact" }),
|
|
3734
|
+
/* @__PURE__ */ jsx25("option", { value: "Standard", children: "Standard" }),
|
|
3735
|
+
/* @__PURE__ */ jsx25("option", { value: "Scientific", children: "Scientific" }),
|
|
3736
|
+
/* @__PURE__ */ jsx25("option", { value: "Percent", children: "Percent" }),
|
|
3737
|
+
/* @__PURE__ */ jsx25("option", { value: "Currency", children: "Currency" })
|
|
3738
|
+
]
|
|
3088
3739
|
}
|
|
3089
3740
|
),
|
|
3090
|
-
|
|
3091
|
-
"path",
|
|
3092
|
-
{
|
|
3093
|
-
d: "M8.75 2.04175C9.49067 2.30255 10.1634 2.72617 10.7187 3.28142C11.2739 3.83668 11.6975 4.50941 11.9583 5.25008H9.33333C9.17862 5.25008 9.03025 5.18862 8.92085 5.07923C8.81146 4.96983 8.75 4.82146 8.75 4.66675V2.04175Z",
|
|
3094
|
-
stroke: "currentColor",
|
|
3095
|
-
strokeWidth: "1.16667",
|
|
3096
|
-
strokeLinecap: "round",
|
|
3097
|
-
strokeLinejoin: "round"
|
|
3098
|
-
}
|
|
3099
|
-
)
|
|
3741
|
+
config.style && numberAddons(config.style)
|
|
3100
3742
|
] }),
|
|
3101
|
-
|
|
3102
|
-
|
|
3103
|
-
|
|
3104
|
-
|
|
3105
|
-
var PieIcon_default = SvgIcon5;
|
|
3106
|
-
|
|
3107
|
-
// src/charts/icons/QueryValueIcon.tsx
|
|
3108
|
-
import { jsx as jsx20, jsxs as jsxs15 } from "react/jsx-runtime";
|
|
3109
|
-
var SvgIcon6 = ({ className }) => /* @__PURE__ */ jsxs15(
|
|
3110
|
-
"svg",
|
|
3111
|
-
{
|
|
3112
|
-
width: "14",
|
|
3113
|
-
height: "14",
|
|
3114
|
-
viewBox: "0 0 14 14",
|
|
3115
|
-
fill: "none",
|
|
3116
|
-
className,
|
|
3117
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
3118
|
-
children: [
|
|
3119
|
-
/* @__PURE__ */ jsxs15("g", { clipPath: "url(#clip0_3670_4424)", children: [
|
|
3120
|
-
/* @__PURE__ */ jsx20(
|
|
3121
|
-
"path",
|
|
3122
|
-
{
|
|
3123
|
-
d: "M11.5 1.5H2.5C1.67157 1.5 1 2.11561 1 2.875V11.125C1 11.8844 1.67157 12.5 2.5 12.5H11.5C12.3284 12.5 13 11.8844 13 11.125V2.875C13 2.11561 12.3284 1.5 11.5 1.5Z",
|
|
3124
|
-
stroke: "currentColor",
|
|
3125
|
-
strokeWidth: "1.16667",
|
|
3126
|
-
strokeLinecap: "round",
|
|
3127
|
-
strokeLinejoin: "round"
|
|
3128
|
-
}
|
|
3129
|
-
),
|
|
3130
|
-
/* @__PURE__ */ jsx20(
|
|
3131
|
-
"path",
|
|
3132
|
-
{
|
|
3133
|
-
d: "M7.98188 5.77273H6.39097L5.75461 5.13636L6.39097 4.5H7.98188L8.61824 5.13636L7.98188 5.77273Z",
|
|
3134
|
-
fill: "currentColor"
|
|
3135
|
-
}
|
|
3136
|
-
),
|
|
3137
|
-
/* @__PURE__ */ jsx20(
|
|
3138
|
-
"path",
|
|
3139
|
-
{
|
|
3140
|
-
d: "M7.98188 11.5H6.39097L5.75461 10.8637L6.39097 10.2273H7.98188L8.61824 10.8637L7.98188 11.5Z",
|
|
3141
|
-
fill: "currentColor"
|
|
3142
|
-
}
|
|
3143
|
-
),
|
|
3144
|
-
/* @__PURE__ */ jsx20(
|
|
3145
|
-
"path",
|
|
3146
|
-
{
|
|
3147
|
-
d: "M8.30005 9.90907V6.09089L8.93641 5.45453L9.57278 6.09089V9.90907L8.93641 10.5454L8.30005 9.90907Z",
|
|
3148
|
-
fill: "currentColor"
|
|
3149
|
-
}
|
|
3150
|
-
),
|
|
3151
|
-
/* @__PURE__ */ jsx20(
|
|
3152
|
-
"path",
|
|
3743
|
+
config.valueFormatter == "DateFormatter" && /* @__PURE__ */ jsxs19(Fragment5, { children: [
|
|
3744
|
+
/* @__PURE__ */ jsx25(AddonLabel, { className: "border border-l-0", children: "Date format" }),
|
|
3745
|
+
/* @__PURE__ */ jsx25(
|
|
3746
|
+
"select",
|
|
3153
3747
|
{
|
|
3154
|
-
|
|
3155
|
-
|
|
3748
|
+
value: config.dateFormat,
|
|
3749
|
+
className: "sm:text-ilabel border-main text-text-foreground inline-flex items-center rounded-r-md border border-l-0 py-1 pl-4 pr-7",
|
|
3750
|
+
onChange: (e) => onChangeDateFormat(e.target.value),
|
|
3751
|
+
children: dateFormats.map((d) => {
|
|
3752
|
+
return /* @__PURE__ */ jsx25("option", { value: d.value, children: d.label }, d.value);
|
|
3753
|
+
})
|
|
3156
3754
|
}
|
|
3157
|
-
)
|
|
3158
|
-
|
|
3159
|
-
|
|
3755
|
+
)
|
|
3756
|
+
] })
|
|
3757
|
+
] }) }),
|
|
3758
|
+
(showPrefix || showSuffix) && /* @__PURE__ */ jsx25("div", { children: /* @__PURE__ */ jsxs19("div", { className: "mt-2 flex items-center gap-4", children: [
|
|
3759
|
+
showPrefix && /* @__PURE__ */ jsxs19("div", { className: "border-main hover:border-primary-600 focus-within:border-primary-600 focus-within:ring-3 focus-within:ring-primary-500/30 text-icontent inline-flex items-center rounded-md border", children: [
|
|
3760
|
+
/* @__PURE__ */ jsx25("div", { className: "h-7.5 leading-7.5 border-r px-3", children: "Prefix" }),
|
|
3761
|
+
/* @__PURE__ */ jsx25(
|
|
3762
|
+
"input",
|
|
3160
3763
|
{
|
|
3161
|
-
|
|
3162
|
-
|
|
3163
|
-
|
|
3164
|
-
|
|
3165
|
-
|
|
3764
|
+
type: "text",
|
|
3765
|
+
className: "border-0 px-3 py-1.5 focus:ring-0",
|
|
3766
|
+
value: config.prefix || "",
|
|
3767
|
+
placeholder: "e.g., $, #",
|
|
3768
|
+
onChange: (e) => onPrefixChange(e.target.value)
|
|
3166
3769
|
}
|
|
3167
3770
|
)
|
|
3168
3771
|
] }),
|
|
3169
|
-
|
|
3170
|
-
|
|
3171
|
-
|
|
3172
|
-
|
|
3173
|
-
var QueryValueIcon_default = SvgIcon6;
|
|
3174
|
-
|
|
3175
|
-
// src/charts/icons/ScatterIcon.tsx
|
|
3176
|
-
import { jsx as jsx21, jsxs as jsxs16 } from "react/jsx-runtime";
|
|
3177
|
-
var SvgIcon7 = ({ className }) => /* @__PURE__ */ jsxs16(
|
|
3178
|
-
"svg",
|
|
3179
|
-
{
|
|
3180
|
-
width: "14",
|
|
3181
|
-
height: "14",
|
|
3182
|
-
viewBox: "0 0 14 14",
|
|
3183
|
-
fill: "none",
|
|
3184
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
3185
|
-
className,
|
|
3186
|
-
children: [
|
|
3187
|
-
/* @__PURE__ */ jsxs16("g", { clipPath: "url(#clip0_28248_7302)", children: [
|
|
3188
|
-
/* @__PURE__ */ jsx21(
|
|
3189
|
-
"path",
|
|
3772
|
+
showSuffix && /* @__PURE__ */ jsxs19("div", { className: "border-main hover:border-primary-600 focus-within:border-primary-600 focus-within:ring-3 focus-within:ring-primary-500/30 text-icontent inline-flex items-center rounded-md border", children: [
|
|
3773
|
+
/* @__PURE__ */ jsx25("div", { className: "h-7.5 leading-7.5 border-r px-3", children: "Suffix" }),
|
|
3774
|
+
/* @__PURE__ */ jsx25(
|
|
3775
|
+
"input",
|
|
3190
3776
|
{
|
|
3191
|
-
|
|
3192
|
-
|
|
3193
|
-
|
|
3194
|
-
|
|
3195
|
-
|
|
3196
|
-
}
|
|
3197
|
-
),
|
|
3198
|
-
/* @__PURE__ */ jsx21(
|
|
3199
|
-
"path",
|
|
3200
|
-
{
|
|
3201
|
-
d: "M4.66663 8.75879V8.76754",
|
|
3202
|
-
stroke: "currentColor",
|
|
3203
|
-
strokeWidth: "1.16667",
|
|
3204
|
-
strokeLinecap: "round",
|
|
3205
|
-
strokeLinejoin: "round"
|
|
3206
|
-
}
|
|
3207
|
-
),
|
|
3208
|
-
/* @__PURE__ */ jsx21(
|
|
3209
|
-
"path",
|
|
3210
|
-
{
|
|
3211
|
-
d: "M9.33337 9.34204V9.35079",
|
|
3212
|
-
stroke: "currentColor",
|
|
3213
|
-
strokeWidth: "1.16667",
|
|
3214
|
-
strokeLinecap: "round",
|
|
3215
|
-
strokeLinejoin: "round"
|
|
3216
|
-
}
|
|
3217
|
-
),
|
|
3218
|
-
/* @__PURE__ */ jsx21(
|
|
3219
|
-
"path",
|
|
3220
|
-
{
|
|
3221
|
-
d: "M4.66663 4.10083V4.10958",
|
|
3222
|
-
stroke: "currentColor",
|
|
3223
|
-
strokeWidth: "1.16667",
|
|
3224
|
-
strokeLinecap: "round",
|
|
3225
|
-
strokeLinejoin: "round"
|
|
3226
|
-
}
|
|
3227
|
-
),
|
|
3228
|
-
/* @__PURE__ */ jsx21(
|
|
3229
|
-
"path",
|
|
3230
|
-
{
|
|
3231
|
-
d: "M7 6.43408V6.44283",
|
|
3232
|
-
stroke: "currentColor",
|
|
3233
|
-
strokeWidth: "1.16667",
|
|
3234
|
-
strokeLinecap: "round",
|
|
3235
|
-
strokeLinejoin: "round"
|
|
3236
|
-
}
|
|
3237
|
-
),
|
|
3238
|
-
/* @__PURE__ */ jsx21(
|
|
3239
|
-
"path",
|
|
3240
|
-
{
|
|
3241
|
-
d: "M11.0834 6.43408V6.44283",
|
|
3242
|
-
stroke: "currentColor",
|
|
3243
|
-
strokeWidth: "1.16667",
|
|
3244
|
-
strokeLinecap: "round",
|
|
3245
|
-
strokeLinejoin: "round"
|
|
3777
|
+
type: "text",
|
|
3778
|
+
className: "min-w-32 border-0 px-3 py-1.5 focus:ring-0",
|
|
3779
|
+
value: config.suffix || "",
|
|
3780
|
+
placeholder: "e.g., %, USD, tokens",
|
|
3781
|
+
onChange: (e) => onSuffixChange(e.target.value)
|
|
3246
3782
|
}
|
|
3247
3783
|
)
|
|
3248
|
-
] })
|
|
3249
|
-
|
|
3250
|
-
|
|
3251
|
-
|
|
3252
|
-
|
|
3253
|
-
|
|
3784
|
+
] })
|
|
3785
|
+
] }) }),
|
|
3786
|
+
config.valueFormatter == "StringFormatter" && /* @__PURE__ */ jsx25(
|
|
3787
|
+
ValueStringMapping,
|
|
3788
|
+
{
|
|
3789
|
+
rules: config.mappingRules || [],
|
|
3790
|
+
onChange: onMappingRulesChange
|
|
3791
|
+
}
|
|
3792
|
+
)
|
|
3793
|
+
] });
|
|
3794
|
+
};
|
|
3254
3795
|
|
|
3255
|
-
// src/charts/
|
|
3256
|
-
import {
|
|
3257
|
-
|
|
3258
|
-
|
|
3259
|
-
|
|
3260
|
-
|
|
3261
|
-
|
|
3262
|
-
|
|
3263
|
-
|
|
3264
|
-
|
|
3265
|
-
|
|
3266
|
-
|
|
3267
|
-
|
|
3268
|
-
|
|
3269
|
-
|
|
3270
|
-
|
|
3271
|
-
|
|
3272
|
-
|
|
3273
|
-
|
|
3274
|
-
|
|
3275
|
-
|
|
3276
|
-
|
|
3277
|
-
|
|
3278
|
-
|
|
3279
|
-
|
|
3796
|
+
// src/charts/options/ValueControls.tsx
|
|
3797
|
+
import { defaults as defaults3 } from "lodash";
|
|
3798
|
+
import { Checkbox as Checkbox3, DisclosurePanel as DisclosurePanel5 } from "@sentio/ui-core";
|
|
3799
|
+
import { produce as produce10 } from "immer";
|
|
3800
|
+
import { jsx as jsx26, jsxs as jsxs20 } from "react/jsx-runtime";
|
|
3801
|
+
var defaultConfig4 = {
|
|
3802
|
+
valueFormatter: "NumberFormatter",
|
|
3803
|
+
showValueLabel: false,
|
|
3804
|
+
maxSignificantDigits: 3,
|
|
3805
|
+
dateFormat: "LLL",
|
|
3806
|
+
mappingRules: [],
|
|
3807
|
+
style: "None",
|
|
3808
|
+
maxFractionDigits: 2
|
|
3809
|
+
};
|
|
3810
|
+
var ValueControls = ({
|
|
3811
|
+
config,
|
|
3812
|
+
defaultOpen,
|
|
3813
|
+
onChange,
|
|
3814
|
+
formatters = ValueFormatters,
|
|
3815
|
+
showPrefix,
|
|
3816
|
+
showSuffix
|
|
3817
|
+
}) => {
|
|
3818
|
+
config = defaults3(config || {}, defaultConfig4);
|
|
3819
|
+
function toggleShowValueLabel(checked) {
|
|
3820
|
+
config && onChange(
|
|
3821
|
+
produce10(config, (draft) => void (draft.showValueLabel = checked))
|
|
3822
|
+
);
|
|
3823
|
+
}
|
|
3824
|
+
function toggleTooltipTotal(checked) {
|
|
3825
|
+
config && onChange(produce10(config, (draft) => void (draft.tooltipTotal = checked)));
|
|
3826
|
+
}
|
|
3827
|
+
return /* @__PURE__ */ jsxs20(
|
|
3828
|
+
DisclosurePanel5,
|
|
3829
|
+
{
|
|
3830
|
+
title: "Value Options",
|
|
3831
|
+
defaultOpen,
|
|
3832
|
+
containerClassName: "w-full bg-default-bg",
|
|
3833
|
+
children: [
|
|
3834
|
+
/* @__PURE__ */ jsx26(
|
|
3835
|
+
ValueOptions,
|
|
3280
3836
|
{
|
|
3281
|
-
|
|
3282
|
-
|
|
3283
|
-
|
|
3284
|
-
|
|
3285
|
-
|
|
3837
|
+
onChange,
|
|
3838
|
+
config,
|
|
3839
|
+
formatters,
|
|
3840
|
+
showPrefix,
|
|
3841
|
+
showSuffix
|
|
3286
3842
|
}
|
|
3287
3843
|
),
|
|
3288
|
-
/* @__PURE__ */
|
|
3289
|
-
|
|
3290
|
-
|
|
3291
|
-
|
|
3292
|
-
|
|
3293
|
-
|
|
3294
|
-
|
|
3295
|
-
|
|
3296
|
-
|
|
3297
|
-
|
|
3298
|
-
|
|
3299
|
-
|
|
3300
|
-
|
|
3301
|
-
|
|
3302
|
-
|
|
3303
|
-
|
|
3844
|
+
/* @__PURE__ */ jsxs20("div", { className: "mt-2 flex items-center gap-2", children: [
|
|
3845
|
+
/* @__PURE__ */ jsx26(
|
|
3846
|
+
Checkbox3,
|
|
3847
|
+
{
|
|
3848
|
+
checked: config?.showValueLabel,
|
|
3849
|
+
onChange: toggleShowValueLabel,
|
|
3850
|
+
label: "Show value label"
|
|
3851
|
+
}
|
|
3852
|
+
),
|
|
3853
|
+
/* @__PURE__ */ jsx26(
|
|
3854
|
+
Checkbox3,
|
|
3855
|
+
{
|
|
3856
|
+
checked: config?.tooltipTotal,
|
|
3857
|
+
onChange: toggleTooltipTotal,
|
|
3858
|
+
label: "Show total in tooltip"
|
|
3859
|
+
}
|
|
3860
|
+
)
|
|
3861
|
+
] })
|
|
3862
|
+
]
|
|
3863
|
+
}
|
|
3864
|
+
);
|
|
3865
|
+
};
|
|
3304
3866
|
export {
|
|
3305
3867
|
AggregateInput,
|
|
3306
3868
|
AreaIcon_default as AreaIcon,
|
|
@@ -3310,6 +3872,7 @@ export {
|
|
|
3310
3872
|
BarGuageIcon_default as BarGuageIcon,
|
|
3311
3873
|
BarIcon_default as BarIcon,
|
|
3312
3874
|
ChartLegend,
|
|
3875
|
+
ChartTypeButtonGroup,
|
|
3313
3876
|
EventsFunctionCategories,
|
|
3314
3877
|
EventsFunctionMap,
|
|
3315
3878
|
FunctionInput,
|
|
@@ -3330,8 +3893,14 @@ export {
|
|
|
3330
3893
|
ScatterIcon_default as ScatterIcon,
|
|
3331
3894
|
SystemLabels,
|
|
3332
3895
|
TableIcon_default as TableIcon,
|
|
3896
|
+
ValueControls,
|
|
3897
|
+
ValueFormatters,
|
|
3898
|
+
ValueOptions,
|
|
3899
|
+
ValueStringMapping,
|
|
3333
3900
|
defaultConfig2 as defaultBarGaugeConfig,
|
|
3334
3901
|
defaultConfig as defaultPieConfig,
|
|
3902
|
+
defaultConfig3 as defaultValueConfig,
|
|
3903
|
+
defaultConfig4 as defaultValueControlsConfig,
|
|
3335
3904
|
isAggrOrRollupFunction,
|
|
3336
3905
|
sentioColors,
|
|
3337
3906
|
sentioTheme,
|