@sentio/ui-dashboard 0.2.1 → 0.2.3
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 +152 -0
- package/dist/index.css.map +1 -1
- package/dist/index.d.mts +56 -23
- package/dist/index.d.ts +56 -23
- package/dist/index.js +567 -60
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +561 -60
- package/dist/index.mjs.map +1 -1
- package/dist/style.css +1 -1
- package/package.json +3 -3
package/dist/index.mjs
CHANGED
|
@@ -2604,7 +2604,8 @@ var LineControls = ({ config, defaultOpen, onChange }) => {
|
|
|
2604
2604
|
{
|
|
2605
2605
|
buttons: lineStyles,
|
|
2606
2606
|
value: config?.style || "Solid",
|
|
2607
|
-
onChange: setStyle
|
|
2607
|
+
onChange: setStyle,
|
|
2608
|
+
small: true
|
|
2608
2609
|
}
|
|
2609
2610
|
),
|
|
2610
2611
|
/* @__PURE__ */ jsx11(
|
|
@@ -2779,12 +2780,12 @@ function PieChartControls({ config, defaultOpen, onChange }) {
|
|
|
2779
2780
|
}
|
|
2780
2781
|
) }),
|
|
2781
2782
|
/* @__PURE__ */ jsxs9("div", { className: "shadow-xs flex rounded-md", children: [
|
|
2782
|
-
/* @__PURE__ */ jsx13("span", { className: "sm:text-ilabel border-main inline-flex items-center rounded-l-md
|
|
2783
|
+
/* @__PURE__ */ jsx13("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" }),
|
|
2783
2784
|
/* @__PURE__ */ jsx13(
|
|
2784
2785
|
"select",
|
|
2785
2786
|
{
|
|
2786
2787
|
value: config.calculation,
|
|
2787
|
-
className: "sm:text-ilabel text-text-foreground border-main inline-flex items-center rounded-r-md border
|
|
2788
|
+
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",
|
|
2788
2789
|
onChange: (e) => onCalculationChange(e.target.value),
|
|
2789
2790
|
children: CalculationItems.map((d) => {
|
|
2790
2791
|
return /* @__PURE__ */ jsx13("option", { value: d.value, children: d.label }, d.value);
|
|
@@ -2889,12 +2890,12 @@ function BarGaugeControls({ config, defaultOpen, onChange }) {
|
|
|
2889
2890
|
containerClassName: "w-full bg-default-bg",
|
|
2890
2891
|
children: /* @__PURE__ */ jsxs10("div", { className: "flex items-center gap-4", children: [
|
|
2891
2892
|
/* @__PURE__ */ jsxs10("div", { className: "shadow-xs flex rounded-md", children: [
|
|
2892
|
-
/* @__PURE__ */ jsx14("span", { className: "sm:text-ilabel border-main inline-flex items-center rounded-l-md
|
|
2893
|
+
/* @__PURE__ */ jsx14("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" }),
|
|
2893
2894
|
/* @__PURE__ */ jsx14(
|
|
2894
2895
|
"select",
|
|
2895
2896
|
{
|
|
2896
2897
|
value: config.direction,
|
|
2897
|
-
className: "sm:text-ilabel border-main text-text-foreground inline-flex items-center rounded-r-md border
|
|
2898
|
+
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",
|
|
2898
2899
|
onChange: (e) => onDirectionChange(e.target.value),
|
|
2899
2900
|
children: directionItems.map((d) => {
|
|
2900
2901
|
return /* @__PURE__ */ jsx14("option", { value: d.value, children: d.label }, d.value);
|
|
@@ -2903,12 +2904,12 @@ function BarGaugeControls({ config, defaultOpen, onChange }) {
|
|
|
2903
2904
|
)
|
|
2904
2905
|
] }),
|
|
2905
2906
|
/* @__PURE__ */ jsxs10("div", { className: "shadow-xs flex rounded-md", children: [
|
|
2906
|
-
/* @__PURE__ */ jsx14("span", { className: "sm:text-ilabel border-main inline-flex items-center rounded-l-md
|
|
2907
|
+
/* @__PURE__ */ jsx14("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" }),
|
|
2907
2908
|
/* @__PURE__ */ jsx14(
|
|
2908
2909
|
"select",
|
|
2909
2910
|
{
|
|
2910
2911
|
value: config.calculation,
|
|
2911
|
-
className: "sm:text-ilabel border-main text-text-foreground inline-flex items-center rounded-r-md border
|
|
2912
|
+
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",
|
|
2912
2913
|
onChange: (e) => onCalculationChange(e.target.value),
|
|
2913
2914
|
children: CalculationItems2.map((d) => {
|
|
2914
2915
|
return /* @__PURE__ */ jsx14("option", { value: d.value, children: d.label }, d.value);
|
|
@@ -2917,12 +2918,12 @@ function BarGaugeControls({ config, defaultOpen, onChange }) {
|
|
|
2917
2918
|
)
|
|
2918
2919
|
] }),
|
|
2919
2920
|
/* @__PURE__ */ jsxs10("div", { className: "shadow-xs flex rounded-md", children: [
|
|
2920
|
-
/* @__PURE__ */ jsx14("span", { className: "sm:text-ilabel border-main inline-flex items-center whitespace-nowrap rounded-l-md border bg-gray-50 px-3", children: "Sort by" }),
|
|
2921
|
+
/* @__PURE__ */ jsx14("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" }),
|
|
2921
2922
|
/* @__PURE__ */ jsx14(
|
|
2922
2923
|
"select",
|
|
2923
2924
|
{
|
|
2924
2925
|
value: config?.sort?.sortBy,
|
|
2925
|
-
className: "sm:text-ilabel border-main text-text-foreground inline-flex items-center border
|
|
2926
|
+
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",
|
|
2926
2927
|
onChange: (e) => onSortByChange(e.target.value),
|
|
2927
2928
|
children: sortByItems.map((d) => {
|
|
2928
2929
|
return /* @__PURE__ */ jsx14("option", { value: d.value, children: d.label }, d.value);
|
|
@@ -2933,7 +2934,7 @@ function BarGaugeControls({ config, defaultOpen, onChange }) {
|
|
|
2933
2934
|
"select",
|
|
2934
2935
|
{
|
|
2935
2936
|
value: config?.sort?.orderDesc + "",
|
|
2936
|
-
className: "sm:text-ilabel border-main text-text-foreground inline-flex items-center rounded-r-md border
|
|
2937
|
+
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",
|
|
2937
2938
|
onChange: (e) => onOrderChange(e.target.value === "true"),
|
|
2938
2939
|
children: orderItems.map((d) => {
|
|
2939
2940
|
return /* @__PURE__ */ jsx14("option", { value: d.value + "", children: d.label }, d.label);
|
|
@@ -2946,9 +2947,503 @@ function BarGaugeControls({ config, defaultOpen, onChange }) {
|
|
|
2946
2947
|
);
|
|
2947
2948
|
}
|
|
2948
2949
|
|
|
2949
|
-
// src/charts/
|
|
2950
|
+
// src/charts/options/ValueOptions.tsx
|
|
2951
|
+
import { produce as produce9 } from "immer";
|
|
2952
|
+
import { ComboInput, classNames as classNames6 } from "@sentio/ui-core";
|
|
2953
|
+
|
|
2954
|
+
// src/charts/options/ValueStringMapping.tsx
|
|
2955
|
+
import { LuPlus, LuTrash2 } from "react-icons/lu";
|
|
2956
|
+
import { Button, classNames as classNames5 } from "@sentio/ui-core";
|
|
2957
|
+
import { produce as produce8 } from "immer";
|
|
2950
2958
|
import { jsx as jsx15, jsxs as jsxs11 } from "react/jsx-runtime";
|
|
2951
|
-
var
|
|
2959
|
+
var operators = {
|
|
2960
|
+
">": "greater than",
|
|
2961
|
+
">=": "greater or equal",
|
|
2962
|
+
"==": "equal",
|
|
2963
|
+
"!=": "not equal",
|
|
2964
|
+
"<": "less than",
|
|
2965
|
+
"<=": "less or equal"
|
|
2966
|
+
};
|
|
2967
|
+
var renderTreeLine = (index, isLast) => {
|
|
2968
|
+
return /* @__PURE__ */ jsx15("div", { className: "mr-2 flex h-12 w-3 flex-col items-center justify-center", children: /* @__PURE__ */ jsxs11("div", { className: "flex h-full w-full items-center", children: [
|
|
2969
|
+
/* @__PURE__ */ jsx15(
|
|
2970
|
+
"div",
|
|
2971
|
+
{
|
|
2972
|
+
className: classNames5(
|
|
2973
|
+
"w-px bg-gray-300",
|
|
2974
|
+
isLast ? "h-1/2 self-start" : index === 0 ? "h-full self-end" : "h-full"
|
|
2975
|
+
)
|
|
2976
|
+
}
|
|
2977
|
+
),
|
|
2978
|
+
/* @__PURE__ */ jsx15("div", { className: "h-px w-3 bg-gray-300" })
|
|
2979
|
+
] }) });
|
|
2980
|
+
};
|
|
2981
|
+
function ValueStringMapping({ rules, onChange }) {
|
|
2982
|
+
const addRule = () => {
|
|
2983
|
+
onChange(
|
|
2984
|
+
produce8(rules, (draft) => {
|
|
2985
|
+
draft = draft || [];
|
|
2986
|
+
draft.push({
|
|
2987
|
+
comparison: "==",
|
|
2988
|
+
value: 0,
|
|
2989
|
+
text: ""
|
|
2990
|
+
});
|
|
2991
|
+
})
|
|
2992
|
+
);
|
|
2993
|
+
};
|
|
2994
|
+
function removeRule(index) {
|
|
2995
|
+
onChange(
|
|
2996
|
+
produce8(rules, (draft) => {
|
|
2997
|
+
draft.splice(index, 1);
|
|
2998
|
+
})
|
|
2999
|
+
);
|
|
3000
|
+
}
|
|
3001
|
+
function changeRule(index, field, value) {
|
|
3002
|
+
onChange(
|
|
3003
|
+
produce8(rules, (draft) => {
|
|
3004
|
+
;
|
|
3005
|
+
draft[index][field] = value;
|
|
3006
|
+
})
|
|
3007
|
+
);
|
|
3008
|
+
}
|
|
3009
|
+
return /* @__PURE__ */ jsxs11("div", { className: "flex w-full flex-col rounded-md py-2", children: [
|
|
3010
|
+
(rules || []).map((rule, index) => {
|
|
3011
|
+
const isLast = index === (rules || []).length - 1;
|
|
3012
|
+
return /* @__PURE__ */ jsxs11(
|
|
3013
|
+
"div",
|
|
3014
|
+
{
|
|
3015
|
+
className: "text-text-foreground flex h-10 items-center py-1",
|
|
3016
|
+
children: [
|
|
3017
|
+
renderTreeLine(index, isLast),
|
|
3018
|
+
/* @__PURE__ */ jsx15("span", { className: "sm:text-ilabel inline-flex h-full items-center pr-3 font-medium", children: "If value is" }),
|
|
3019
|
+
/* @__PURE__ */ jsx15(
|
|
3020
|
+
"select",
|
|
3021
|
+
{
|
|
3022
|
+
value: rule.comparison,
|
|
3023
|
+
onChange: (e) => changeRule(index, "comparison", e.target.value),
|
|
3024
|
+
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",
|
|
3025
|
+
children: Object.entries(operators).map(([op, display]) => {
|
|
3026
|
+
return /* @__PURE__ */ jsxs11("option", { value: op, children: [
|
|
3027
|
+
"is ",
|
|
3028
|
+
display
|
|
3029
|
+
] }, op);
|
|
3030
|
+
})
|
|
3031
|
+
}
|
|
3032
|
+
),
|
|
3033
|
+
/* @__PURE__ */ jsx15(
|
|
3034
|
+
"input",
|
|
3035
|
+
{
|
|
3036
|
+
type: "text",
|
|
3037
|
+
name: "value",
|
|
3038
|
+
id: "value",
|
|
3039
|
+
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",
|
|
3040
|
+
placeholder: "0",
|
|
3041
|
+
value: rule.value,
|
|
3042
|
+
onChange: (e) => {
|
|
3043
|
+
changeRule(index, "value", e.target.value);
|
|
3044
|
+
}
|
|
3045
|
+
}
|
|
3046
|
+
),
|
|
3047
|
+
/* @__PURE__ */ jsx15("span", { className: "sm:text-ilabel inline-flex h-full items-center rounded-none px-3 font-medium", children: ", then show" }),
|
|
3048
|
+
/* @__PURE__ */ jsx15(
|
|
3049
|
+
"input",
|
|
3050
|
+
{
|
|
3051
|
+
type: "text",
|
|
3052
|
+
name: "text",
|
|
3053
|
+
id: "text",
|
|
3054
|
+
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",
|
|
3055
|
+
placeholder: "Display text (e.g. High, Low, Normal)",
|
|
3056
|
+
value: rule.text,
|
|
3057
|
+
onChange: (e) => {
|
|
3058
|
+
changeRule(index, "text", e.target.value);
|
|
3059
|
+
}
|
|
3060
|
+
}
|
|
3061
|
+
),
|
|
3062
|
+
/* @__PURE__ */ jsx15(
|
|
3063
|
+
"button",
|
|
3064
|
+
{
|
|
3065
|
+
type: "button",
|
|
3066
|
+
className: "mx-2",
|
|
3067
|
+
"aria-label": "remove",
|
|
3068
|
+
onClick: () => removeRule(index),
|
|
3069
|
+
children: /* @__PURE__ */ jsx15(
|
|
3070
|
+
LuTrash2,
|
|
3071
|
+
{
|
|
3072
|
+
className: "icon text-text-foreground-disabled",
|
|
3073
|
+
"aria-hidden": "true"
|
|
3074
|
+
}
|
|
3075
|
+
)
|
|
3076
|
+
}
|
|
3077
|
+
)
|
|
3078
|
+
]
|
|
3079
|
+
},
|
|
3080
|
+
index
|
|
3081
|
+
);
|
|
3082
|
+
}),
|
|
3083
|
+
/* @__PURE__ */ jsxs11(
|
|
3084
|
+
Button,
|
|
3085
|
+
{
|
|
3086
|
+
type: "button",
|
|
3087
|
+
role: "secondary",
|
|
3088
|
+
className: "mt-1 w-fit flex-none",
|
|
3089
|
+
"aria-label": "remove",
|
|
3090
|
+
onClick: addRule,
|
|
3091
|
+
children: [
|
|
3092
|
+
/* @__PURE__ */ jsx15(LuPlus, { className: classNames5("h-4 w-4"), "aria-hidden": "true" }),
|
|
3093
|
+
"Add Formatting Rule"
|
|
3094
|
+
]
|
|
3095
|
+
}
|
|
3096
|
+
)
|
|
3097
|
+
] });
|
|
3098
|
+
}
|
|
3099
|
+
|
|
3100
|
+
// src/charts/options/ValueOptions.tsx
|
|
3101
|
+
import { Fragment as Fragment5, jsx as jsx16, jsxs as jsxs12 } from "react/jsx-runtime";
|
|
3102
|
+
var ValueFormatters = [
|
|
3103
|
+
{ label: "Number", value: "NumberFormatter" },
|
|
3104
|
+
{ label: "Date", value: "DateFormatter" },
|
|
3105
|
+
{ label: "String", value: "StringFormatter" }
|
|
3106
|
+
];
|
|
3107
|
+
var defaultConfig3 = {
|
|
3108
|
+
valueFormatter: "NumberFormatter",
|
|
3109
|
+
showValueLabel: false,
|
|
3110
|
+
maxSignificantDigits: 3,
|
|
3111
|
+
dateFormat: "LLL",
|
|
3112
|
+
mappingRules: [],
|
|
3113
|
+
style: "None"
|
|
3114
|
+
};
|
|
3115
|
+
var dateFormats = [
|
|
3116
|
+
{ label: "Localized format", value: "LLL" },
|
|
3117
|
+
{ label: "ISO String", value: "YYYY-MM-DDTHH:mm:ss.sssZ" }
|
|
3118
|
+
];
|
|
3119
|
+
var CurrencySymbols = [
|
|
3120
|
+
{ label: "USD", value: "$" },
|
|
3121
|
+
{ label: "EUR", value: "\u20AC" },
|
|
3122
|
+
{ label: "GBP", value: "\xA3" },
|
|
3123
|
+
{ label: "CNY or JPY", value: "\xA5" },
|
|
3124
|
+
{ label: "BTC", value: "\u0243" },
|
|
3125
|
+
{ label: "ETH", value: "\u039E" }
|
|
3126
|
+
];
|
|
3127
|
+
var AddonLabel = ({
|
|
3128
|
+
className,
|
|
3129
|
+
children
|
|
3130
|
+
}) => /* @__PURE__ */ jsx16(
|
|
3131
|
+
"span",
|
|
3132
|
+
{
|
|
3133
|
+
className: classNames6(
|
|
3134
|
+
"sm:text-ilabel border-main inline-flex items-center whitespace-nowrap bg-gray-50 px-3",
|
|
3135
|
+
className
|
|
3136
|
+
),
|
|
3137
|
+
children
|
|
3138
|
+
}
|
|
3139
|
+
);
|
|
3140
|
+
var ValueOptions = ({
|
|
3141
|
+
config,
|
|
3142
|
+
onChange,
|
|
3143
|
+
formatters = ValueFormatters,
|
|
3144
|
+
showPrefix,
|
|
3145
|
+
showSuffix
|
|
3146
|
+
}) => {
|
|
3147
|
+
function onChangeDateFormat(f) {
|
|
3148
|
+
onChange(produce9(config, (draft) => void (draft.dateFormat = f)));
|
|
3149
|
+
}
|
|
3150
|
+
function onChangeFormatter(f) {
|
|
3151
|
+
onChange(produce9(config, (draft) => void (draft.valueFormatter = f)));
|
|
3152
|
+
}
|
|
3153
|
+
function onChangeSymbol(symbol) {
|
|
3154
|
+
onChange(produce9(config, (draft) => void (draft.currencySymbol = symbol)));
|
|
3155
|
+
}
|
|
3156
|
+
function onStyleChange(notation) {
|
|
3157
|
+
onChange(
|
|
3158
|
+
produce9(config, (draft) => {
|
|
3159
|
+
draft.style = notation;
|
|
3160
|
+
})
|
|
3161
|
+
);
|
|
3162
|
+
}
|
|
3163
|
+
function onDigitsChange(value, option) {
|
|
3164
|
+
onChange(
|
|
3165
|
+
produce9(config, (draft) => {
|
|
3166
|
+
const d = draft;
|
|
3167
|
+
if (value) {
|
|
3168
|
+
const maxSignificantDigits = parseInt(value);
|
|
3169
|
+
if (maxSignificantDigits >= 0 && maxSignificantDigits <= 20) {
|
|
3170
|
+
d[option] = maxSignificantDigits;
|
|
3171
|
+
}
|
|
3172
|
+
} else {
|
|
3173
|
+
delete d[option];
|
|
3174
|
+
}
|
|
3175
|
+
})
|
|
3176
|
+
);
|
|
3177
|
+
}
|
|
3178
|
+
function onMappingRulesChange(rules) {
|
|
3179
|
+
onChange(produce9(config, (draft) => void (draft.mappingRules = rules)));
|
|
3180
|
+
}
|
|
3181
|
+
function onPrefixChange(value) {
|
|
3182
|
+
onChange(
|
|
3183
|
+
produce9(config, (draft) => {
|
|
3184
|
+
if (value) {
|
|
3185
|
+
draft.prefix = value;
|
|
3186
|
+
} else {
|
|
3187
|
+
delete draft.prefix;
|
|
3188
|
+
}
|
|
3189
|
+
})
|
|
3190
|
+
);
|
|
3191
|
+
}
|
|
3192
|
+
function onSuffixChange(value) {
|
|
3193
|
+
onChange(
|
|
3194
|
+
produce9(config, (draft) => {
|
|
3195
|
+
if (value) {
|
|
3196
|
+
draft.suffix = value;
|
|
3197
|
+
} else {
|
|
3198
|
+
delete draft.suffix;
|
|
3199
|
+
}
|
|
3200
|
+
})
|
|
3201
|
+
);
|
|
3202
|
+
}
|
|
3203
|
+
function numberAddons(style) {
|
|
3204
|
+
switch (style) {
|
|
3205
|
+
case "None":
|
|
3206
|
+
return /* @__PURE__ */ jsxs12(Fragment5, { children: [
|
|
3207
|
+
/* @__PURE__ */ jsx16(AddonLabel, { className: "border border-l-0", children: "Fraction Digits" }),
|
|
3208
|
+
/* @__PURE__ */ jsx16(
|
|
3209
|
+
"input",
|
|
3210
|
+
{
|
|
3211
|
+
disabled: true,
|
|
3212
|
+
className: "focus:border-primary-500 sm:text-ilabel min-w-20 border-main rounded-r-md border border-l-0 py-1",
|
|
3213
|
+
value: ""
|
|
3214
|
+
}
|
|
3215
|
+
)
|
|
3216
|
+
] });
|
|
3217
|
+
case "Percent":
|
|
3218
|
+
case "Standard":
|
|
3219
|
+
return /* @__PURE__ */ jsxs12(Fragment5, { children: [
|
|
3220
|
+
/* @__PURE__ */ jsx16(AddonLabel, { className: "border border-x-0", children: "Fraction Digits" }),
|
|
3221
|
+
/* @__PURE__ */ jsx16(
|
|
3222
|
+
"input",
|
|
3223
|
+
{
|
|
3224
|
+
type: "number",
|
|
3225
|
+
min: 0,
|
|
3226
|
+
max: 20,
|
|
3227
|
+
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",
|
|
3228
|
+
value: config.maxFractionDigits,
|
|
3229
|
+
placeholder: "0-20",
|
|
3230
|
+
onChange: (e) => onDigitsChange(e.target.value, "maxFractionDigits")
|
|
3231
|
+
}
|
|
3232
|
+
)
|
|
3233
|
+
] });
|
|
3234
|
+
case "Currency":
|
|
3235
|
+
return /* @__PURE__ */ jsxs12(Fragment5, { children: [
|
|
3236
|
+
/* @__PURE__ */ jsx16(AddonLabel, { className: "border border-r-0", children: "Symbol" }),
|
|
3237
|
+
/* @__PURE__ */ jsx16("div", { className: "w-28 ", children: /* @__PURE__ */ jsx16(
|
|
3238
|
+
ComboInput,
|
|
3239
|
+
{
|
|
3240
|
+
onChange: onChangeSymbol,
|
|
3241
|
+
options: CurrencySymbols.map((s) => s.value),
|
|
3242
|
+
displayFn: (s) => {
|
|
3243
|
+
const name = CurrencySymbols.find((c) => c.value === s)?.label;
|
|
3244
|
+
return `${name} (${s})`;
|
|
3245
|
+
},
|
|
3246
|
+
placeholder: "$",
|
|
3247
|
+
value: config?.currencySymbol
|
|
3248
|
+
}
|
|
3249
|
+
) }),
|
|
3250
|
+
/* @__PURE__ */ jsx16(AddonLabel, { className: "border", children: "Precision" }),
|
|
3251
|
+
/* @__PURE__ */ jsx16(
|
|
3252
|
+
"input",
|
|
3253
|
+
{
|
|
3254
|
+
type: "number",
|
|
3255
|
+
min: 0,
|
|
3256
|
+
max: 20,
|
|
3257
|
+
className: "focus:border-primary-500 sm:text-ilabel min-w-20 border-main rounded-r-md border border-l-0 py-1",
|
|
3258
|
+
value: config.precision,
|
|
3259
|
+
defaultValue: 2,
|
|
3260
|
+
placeholder: "0-20",
|
|
3261
|
+
onChange: (e) => onDigitsChange(e.target.value, "precision")
|
|
3262
|
+
}
|
|
3263
|
+
)
|
|
3264
|
+
] });
|
|
3265
|
+
default:
|
|
3266
|
+
return /* @__PURE__ */ jsxs12(Fragment5, { children: [
|
|
3267
|
+
/* @__PURE__ */ jsx16(AddonLabel, { className: "border border-x-0", children: "Max significant digits" }),
|
|
3268
|
+
/* @__PURE__ */ jsx16(
|
|
3269
|
+
"input",
|
|
3270
|
+
{
|
|
3271
|
+
type: "number",
|
|
3272
|
+
min: 1,
|
|
3273
|
+
max: 21,
|
|
3274
|
+
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",
|
|
3275
|
+
value: config.maxSignificantDigits,
|
|
3276
|
+
placeholder: "1-21",
|
|
3277
|
+
onChange: (e) => onDigitsChange(e.target.value, "maxSignificantDigits")
|
|
3278
|
+
}
|
|
3279
|
+
)
|
|
3280
|
+
] });
|
|
3281
|
+
}
|
|
3282
|
+
}
|
|
3283
|
+
return /* @__PURE__ */ jsxs12(Fragment5, { children: [
|
|
3284
|
+
/* @__PURE__ */ jsx16("div", { children: /* @__PURE__ */ jsxs12("div", { className: "flex", children: [
|
|
3285
|
+
/* @__PURE__ */ jsx16(AddonLabel, { className: "rounded-l-md border border-r-0", children: "Value formatter" }),
|
|
3286
|
+
/* @__PURE__ */ jsx16(
|
|
3287
|
+
"select",
|
|
3288
|
+
{
|
|
3289
|
+
value: config.valueFormatter,
|
|
3290
|
+
className: classNames6(
|
|
3291
|
+
"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",
|
|
3292
|
+
config.valueFormatter == "StringFormatter" ? "rounded-r-md" : ""
|
|
3293
|
+
),
|
|
3294
|
+
onChange: (e) => onChangeFormatter(e.target.value),
|
|
3295
|
+
children: formatters.map((d) => {
|
|
3296
|
+
return /* @__PURE__ */ jsx16("option", { value: d.value, children: d.label }, d.value);
|
|
3297
|
+
})
|
|
3298
|
+
}
|
|
3299
|
+
),
|
|
3300
|
+
config.valueFormatter == "NumberFormatter" && /* @__PURE__ */ jsxs12(Fragment5, { children: [
|
|
3301
|
+
/* @__PURE__ */ jsx16(AddonLabel, { className: "border border-l-0 border-r-0", children: "Style" }),
|
|
3302
|
+
/* @__PURE__ */ jsxs12(
|
|
3303
|
+
"select",
|
|
3304
|
+
{
|
|
3305
|
+
value: config.style,
|
|
3306
|
+
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",
|
|
3307
|
+
onChange: (e) => onStyleChange(e.target.value),
|
|
3308
|
+
children: [
|
|
3309
|
+
/* @__PURE__ */ jsx16("option", { value: "None", children: "None" }),
|
|
3310
|
+
/* @__PURE__ */ jsx16("option", { value: "Compact", children: "Compact" }),
|
|
3311
|
+
/* @__PURE__ */ jsx16("option", { value: "Standard", children: "Standard" }),
|
|
3312
|
+
/* @__PURE__ */ jsx16("option", { value: "Scientific", children: "Scientific" }),
|
|
3313
|
+
/* @__PURE__ */ jsx16("option", { value: "Percent", children: "Percent" }),
|
|
3314
|
+
/* @__PURE__ */ jsx16("option", { value: "Currency", children: "Currency" })
|
|
3315
|
+
]
|
|
3316
|
+
}
|
|
3317
|
+
),
|
|
3318
|
+
config.style && numberAddons(config.style)
|
|
3319
|
+
] }),
|
|
3320
|
+
config.valueFormatter == "DateFormatter" && /* @__PURE__ */ jsxs12(Fragment5, { children: [
|
|
3321
|
+
/* @__PURE__ */ jsx16(AddonLabel, { className: "border border-l-0", children: "Date format" }),
|
|
3322
|
+
/* @__PURE__ */ jsx16(
|
|
3323
|
+
"select",
|
|
3324
|
+
{
|
|
3325
|
+
value: config.dateFormat,
|
|
3326
|
+
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",
|
|
3327
|
+
onChange: (e) => onChangeDateFormat(e.target.value),
|
|
3328
|
+
children: dateFormats.map((d) => {
|
|
3329
|
+
return /* @__PURE__ */ jsx16("option", { value: d.value, children: d.label }, d.value);
|
|
3330
|
+
})
|
|
3331
|
+
}
|
|
3332
|
+
)
|
|
3333
|
+
] })
|
|
3334
|
+
] }) }),
|
|
3335
|
+
(showPrefix || showSuffix) && /* @__PURE__ */ jsx16("div", { children: /* @__PURE__ */ jsxs12("div", { className: "mt-2 flex items-center gap-4", children: [
|
|
3336
|
+
showPrefix && /* @__PURE__ */ jsxs12("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: [
|
|
3337
|
+
/* @__PURE__ */ jsx16("div", { className: "h-7.5 leading-7.5 border-r px-3", children: "Prefix" }),
|
|
3338
|
+
/* @__PURE__ */ jsx16(
|
|
3339
|
+
"input",
|
|
3340
|
+
{
|
|
3341
|
+
type: "text",
|
|
3342
|
+
className: "border-0 px-3 py-1.5 focus:ring-0",
|
|
3343
|
+
value: config.prefix || "",
|
|
3344
|
+
placeholder: "e.g., $, #",
|
|
3345
|
+
onChange: (e) => onPrefixChange(e.target.value)
|
|
3346
|
+
}
|
|
3347
|
+
)
|
|
3348
|
+
] }),
|
|
3349
|
+
showSuffix && /* @__PURE__ */ jsxs12("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: [
|
|
3350
|
+
/* @__PURE__ */ jsx16("div", { className: "h-7.5 leading-7.5 border-r px-3", children: "Suffix" }),
|
|
3351
|
+
/* @__PURE__ */ jsx16(
|
|
3352
|
+
"input",
|
|
3353
|
+
{
|
|
3354
|
+
type: "text",
|
|
3355
|
+
className: "min-w-32 border-0 px-3 py-1.5 focus:ring-0",
|
|
3356
|
+
value: config.suffix || "",
|
|
3357
|
+
placeholder: "e.g., %, USD, tokens",
|
|
3358
|
+
onChange: (e) => onSuffixChange(e.target.value)
|
|
3359
|
+
}
|
|
3360
|
+
)
|
|
3361
|
+
] })
|
|
3362
|
+
] }) }),
|
|
3363
|
+
config.valueFormatter == "StringFormatter" && /* @__PURE__ */ jsx16(
|
|
3364
|
+
ValueStringMapping,
|
|
3365
|
+
{
|
|
3366
|
+
rules: config.mappingRules || [],
|
|
3367
|
+
onChange: onMappingRulesChange
|
|
3368
|
+
}
|
|
3369
|
+
)
|
|
3370
|
+
] });
|
|
3371
|
+
};
|
|
3372
|
+
|
|
3373
|
+
// src/charts/options/ValueControls.tsx
|
|
3374
|
+
import { defaults as defaults3 } from "lodash";
|
|
3375
|
+
import { Checkbox as Checkbox3, DisclosurePanel as DisclosurePanel5 } from "@sentio/ui-core";
|
|
3376
|
+
import { produce as produce10 } from "immer";
|
|
3377
|
+
import { jsx as jsx17, jsxs as jsxs13 } from "react/jsx-runtime";
|
|
3378
|
+
var defaultConfig4 = {
|
|
3379
|
+
valueFormatter: "NumberFormatter",
|
|
3380
|
+
showValueLabel: false,
|
|
3381
|
+
maxSignificantDigits: 3,
|
|
3382
|
+
dateFormat: "LLL",
|
|
3383
|
+
mappingRules: [],
|
|
3384
|
+
style: "None",
|
|
3385
|
+
maxFractionDigits: 2
|
|
3386
|
+
};
|
|
3387
|
+
var ValueControls = ({
|
|
3388
|
+
config,
|
|
3389
|
+
defaultOpen,
|
|
3390
|
+
onChange,
|
|
3391
|
+
formatters = ValueFormatters,
|
|
3392
|
+
showPrefix,
|
|
3393
|
+
showSuffix
|
|
3394
|
+
}) => {
|
|
3395
|
+
config = defaults3(config || {}, defaultConfig4);
|
|
3396
|
+
function toggleShowValueLabel(checked) {
|
|
3397
|
+
config && onChange(
|
|
3398
|
+
produce10(config, (draft) => void (draft.showValueLabel = checked))
|
|
3399
|
+
);
|
|
3400
|
+
}
|
|
3401
|
+
function toggleTooltipTotal(checked) {
|
|
3402
|
+
config && onChange(produce10(config, (draft) => void (draft.tooltipTotal = checked)));
|
|
3403
|
+
}
|
|
3404
|
+
return /* @__PURE__ */ jsxs13(
|
|
3405
|
+
DisclosurePanel5,
|
|
3406
|
+
{
|
|
3407
|
+
title: "Value Options",
|
|
3408
|
+
defaultOpen,
|
|
3409
|
+
containerClassName: "w-full bg-default-bg",
|
|
3410
|
+
children: [
|
|
3411
|
+
/* @__PURE__ */ jsx17(
|
|
3412
|
+
ValueOptions,
|
|
3413
|
+
{
|
|
3414
|
+
onChange,
|
|
3415
|
+
config,
|
|
3416
|
+
formatters,
|
|
3417
|
+
showPrefix,
|
|
3418
|
+
showSuffix
|
|
3419
|
+
}
|
|
3420
|
+
),
|
|
3421
|
+
/* @__PURE__ */ jsxs13("div", { className: "mt-2 flex items-center gap-2", children: [
|
|
3422
|
+
/* @__PURE__ */ jsx17(
|
|
3423
|
+
Checkbox3,
|
|
3424
|
+
{
|
|
3425
|
+
checked: config?.showValueLabel,
|
|
3426
|
+
onChange: toggleShowValueLabel,
|
|
3427
|
+
label: "Show value label"
|
|
3428
|
+
}
|
|
3429
|
+
),
|
|
3430
|
+
/* @__PURE__ */ jsx17(
|
|
3431
|
+
Checkbox3,
|
|
3432
|
+
{
|
|
3433
|
+
checked: config?.tooltipTotal,
|
|
3434
|
+
onChange: toggleTooltipTotal,
|
|
3435
|
+
label: "Show total in tooltip"
|
|
3436
|
+
}
|
|
3437
|
+
)
|
|
3438
|
+
] })
|
|
3439
|
+
]
|
|
3440
|
+
}
|
|
3441
|
+
);
|
|
3442
|
+
};
|
|
3443
|
+
|
|
3444
|
+
// src/charts/icons/LineIcon.tsx
|
|
3445
|
+
import { jsx as jsx18, jsxs as jsxs14 } from "react/jsx-runtime";
|
|
3446
|
+
var SvgIcon = ({ className }) => /* @__PURE__ */ jsxs14(
|
|
2952
3447
|
"svg",
|
|
2953
3448
|
{
|
|
2954
3449
|
width: "14",
|
|
@@ -2958,22 +3453,22 @@ var SvgIcon = ({ className }) => /* @__PURE__ */ jsxs11(
|
|
|
2958
3453
|
xmlns: "http://www.w3.org/2000/svg",
|
|
2959
3454
|
className,
|
|
2960
3455
|
children: [
|
|
2961
|
-
/* @__PURE__ */
|
|
3456
|
+
/* @__PURE__ */ jsx18("g", { clipPath: "url(#clip0_1774_9563)", children: /* @__PURE__ */ jsx18(
|
|
2962
3457
|
"path",
|
|
2963
3458
|
{
|
|
2964
3459
|
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",
|
|
2965
3460
|
fill: "currentColor"
|
|
2966
3461
|
}
|
|
2967
3462
|
) }),
|
|
2968
|
-
/* @__PURE__ */
|
|
3463
|
+
/* @__PURE__ */ jsx18("defs", { children: /* @__PURE__ */ jsx18("clipPath", { id: "clip0_1774_9563", children: /* @__PURE__ */ jsx18("rect", { width: "14", height: "14", fill: "white" }) }) })
|
|
2969
3464
|
]
|
|
2970
3465
|
}
|
|
2971
3466
|
);
|
|
2972
3467
|
var LineIcon_default = SvgIcon;
|
|
2973
3468
|
|
|
2974
3469
|
// src/charts/icons/AreaIcon.tsx
|
|
2975
|
-
import { jsx as
|
|
2976
|
-
var SvgIcon2 = ({ className }) => /* @__PURE__ */
|
|
3470
|
+
import { jsx as jsx19, jsxs as jsxs15 } from "react/jsx-runtime";
|
|
3471
|
+
var SvgIcon2 = ({ className }) => /* @__PURE__ */ jsxs15(
|
|
2977
3472
|
"svg",
|
|
2978
3473
|
{
|
|
2979
3474
|
width: "14",
|
|
@@ -2983,22 +3478,22 @@ var SvgIcon2 = ({ className }) => /* @__PURE__ */ jsxs12(
|
|
|
2983
3478
|
xmlns: "http://www.w3.org/2000/svg",
|
|
2984
3479
|
className,
|
|
2985
3480
|
children: [
|
|
2986
|
-
/* @__PURE__ */
|
|
3481
|
+
/* @__PURE__ */ jsx19("g", { clipPath: "url(#clip0_1774_9545)", children: /* @__PURE__ */ jsx19(
|
|
2987
3482
|
"path",
|
|
2988
3483
|
{
|
|
2989
3484
|
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",
|
|
2990
3485
|
fill: "currentColor"
|
|
2991
3486
|
}
|
|
2992
3487
|
) }),
|
|
2993
|
-
/* @__PURE__ */
|
|
3488
|
+
/* @__PURE__ */ jsx19("defs", { children: /* @__PURE__ */ jsx19("clipPath", { id: "clip0_1774_9545", children: /* @__PURE__ */ jsx19("rect", { width: "14", height: "14", fill: "white" }) }) })
|
|
2994
3489
|
]
|
|
2995
3490
|
}
|
|
2996
3491
|
);
|
|
2997
3492
|
var AreaIcon_default = SvgIcon2;
|
|
2998
3493
|
|
|
2999
3494
|
// src/charts/icons/BarIcon.tsx
|
|
3000
|
-
import { jsx as
|
|
3001
|
-
var SvgIcon3 = ({ className }) => /* @__PURE__ */
|
|
3495
|
+
import { jsx as jsx20 } from "react/jsx-runtime";
|
|
3496
|
+
var SvgIcon3 = ({ className }) => /* @__PURE__ */ jsx20(
|
|
3002
3497
|
"svg",
|
|
3003
3498
|
{
|
|
3004
3499
|
width: "14",
|
|
@@ -3007,7 +3502,7 @@ var SvgIcon3 = ({ className }) => /* @__PURE__ */ jsx17(
|
|
|
3007
3502
|
fill: "none",
|
|
3008
3503
|
xmlns: "http://www.w3.org/2000/svg",
|
|
3009
3504
|
className,
|
|
3010
|
-
children: /* @__PURE__ */
|
|
3505
|
+
children: /* @__PURE__ */ jsx20(
|
|
3011
3506
|
"path",
|
|
3012
3507
|
{
|
|
3013
3508
|
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",
|
|
@@ -3019,8 +3514,8 @@ var SvgIcon3 = ({ className }) => /* @__PURE__ */ jsx17(
|
|
|
3019
3514
|
var BarIcon_default = SvgIcon3;
|
|
3020
3515
|
|
|
3021
3516
|
// src/charts/icons/BarGuageIcon.tsx
|
|
3022
|
-
import { jsx as
|
|
3023
|
-
var SvgIcon4 = ({ className }) => /* @__PURE__ */
|
|
3517
|
+
import { jsx as jsx21, jsxs as jsxs16 } from "react/jsx-runtime";
|
|
3518
|
+
var SvgIcon4 = ({ className }) => /* @__PURE__ */ jsxs16(
|
|
3024
3519
|
"svg",
|
|
3025
3520
|
{
|
|
3026
3521
|
width: "14",
|
|
@@ -3030,28 +3525,28 @@ var SvgIcon4 = ({ className }) => /* @__PURE__ */ jsxs13(
|
|
|
3030
3525
|
className,
|
|
3031
3526
|
xmlns: "http://www.w3.org/2000/svg",
|
|
3032
3527
|
children: [
|
|
3033
|
-
/* @__PURE__ */
|
|
3528
|
+
/* @__PURE__ */ jsx21(
|
|
3034
3529
|
"path",
|
|
3035
3530
|
{
|
|
3036
3531
|
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",
|
|
3037
3532
|
fill: "currentColor"
|
|
3038
3533
|
}
|
|
3039
3534
|
),
|
|
3040
|
-
/* @__PURE__ */
|
|
3535
|
+
/* @__PURE__ */ jsx21(
|
|
3041
3536
|
"path",
|
|
3042
3537
|
{
|
|
3043
3538
|
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",
|
|
3044
3539
|
fill: "currentColor"
|
|
3045
3540
|
}
|
|
3046
3541
|
),
|
|
3047
|
-
/* @__PURE__ */
|
|
3542
|
+
/* @__PURE__ */ jsx21(
|
|
3048
3543
|
"path",
|
|
3049
3544
|
{
|
|
3050
3545
|
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",
|
|
3051
3546
|
fill: "currentColor"
|
|
3052
3547
|
}
|
|
3053
3548
|
),
|
|
3054
|
-
/* @__PURE__ */
|
|
3549
|
+
/* @__PURE__ */ jsx21(
|
|
3055
3550
|
"path",
|
|
3056
3551
|
{
|
|
3057
3552
|
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",
|
|
@@ -3064,8 +3559,8 @@ var SvgIcon4 = ({ className }) => /* @__PURE__ */ jsxs13(
|
|
|
3064
3559
|
var BarGuageIcon_default = SvgIcon4;
|
|
3065
3560
|
|
|
3066
3561
|
// src/charts/icons/PieIcon.tsx
|
|
3067
|
-
import { jsx as
|
|
3068
|
-
var SvgIcon5 = ({ className }) => /* @__PURE__ */
|
|
3562
|
+
import { jsx as jsx22, jsxs as jsxs17 } from "react/jsx-runtime";
|
|
3563
|
+
var SvgIcon5 = ({ className }) => /* @__PURE__ */ jsxs17(
|
|
3069
3564
|
"svg",
|
|
3070
3565
|
{
|
|
3071
3566
|
width: "14",
|
|
@@ -3075,8 +3570,8 @@ var SvgIcon5 = ({ className }) => /* @__PURE__ */ jsxs14(
|
|
|
3075
3570
|
xmlns: "http://www.w3.org/2000/svg",
|
|
3076
3571
|
className,
|
|
3077
3572
|
children: [
|
|
3078
|
-
/* @__PURE__ */
|
|
3079
|
-
/* @__PURE__ */
|
|
3573
|
+
/* @__PURE__ */ jsxs17("g", { clipPath: "url(#clip0_28267_7202)", children: [
|
|
3574
|
+
/* @__PURE__ */ jsx22(
|
|
3080
3575
|
"path",
|
|
3081
3576
|
{
|
|
3082
3577
|
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",
|
|
@@ -3086,7 +3581,7 @@ var SvgIcon5 = ({ className }) => /* @__PURE__ */ jsxs14(
|
|
|
3086
3581
|
strokeLinejoin: "round"
|
|
3087
3582
|
}
|
|
3088
3583
|
),
|
|
3089
|
-
/* @__PURE__ */
|
|
3584
|
+
/* @__PURE__ */ jsx22(
|
|
3090
3585
|
"path",
|
|
3091
3586
|
{
|
|
3092
3587
|
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",
|
|
@@ -3097,15 +3592,15 @@ var SvgIcon5 = ({ className }) => /* @__PURE__ */ jsxs14(
|
|
|
3097
3592
|
}
|
|
3098
3593
|
)
|
|
3099
3594
|
] }),
|
|
3100
|
-
/* @__PURE__ */
|
|
3595
|
+
/* @__PURE__ */ jsx22("defs", { children: /* @__PURE__ */ jsx22("clipPath", { id: "clip0_28267_7202", children: /* @__PURE__ */ jsx22("rect", { width: "14", height: "14", fill: "white" }) }) })
|
|
3101
3596
|
]
|
|
3102
3597
|
}
|
|
3103
3598
|
);
|
|
3104
3599
|
var PieIcon_default = SvgIcon5;
|
|
3105
3600
|
|
|
3106
3601
|
// src/charts/icons/QueryValueIcon.tsx
|
|
3107
|
-
import { jsx as
|
|
3108
|
-
var SvgIcon6 = ({ className }) => /* @__PURE__ */
|
|
3602
|
+
import { jsx as jsx23, jsxs as jsxs18 } from "react/jsx-runtime";
|
|
3603
|
+
var SvgIcon6 = ({ className }) => /* @__PURE__ */ jsxs18(
|
|
3109
3604
|
"svg",
|
|
3110
3605
|
{
|
|
3111
3606
|
width: "14",
|
|
@@ -3115,8 +3610,8 @@ var SvgIcon6 = ({ className }) => /* @__PURE__ */ jsxs15(
|
|
|
3115
3610
|
className,
|
|
3116
3611
|
xmlns: "http://www.w3.org/2000/svg",
|
|
3117
3612
|
children: [
|
|
3118
|
-
/* @__PURE__ */
|
|
3119
|
-
/* @__PURE__ */
|
|
3613
|
+
/* @__PURE__ */ jsxs18("g", { clipPath: "url(#clip0_3670_4424)", children: [
|
|
3614
|
+
/* @__PURE__ */ jsx23(
|
|
3120
3615
|
"path",
|
|
3121
3616
|
{
|
|
3122
3617
|
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",
|
|
@@ -3126,35 +3621,35 @@ var SvgIcon6 = ({ className }) => /* @__PURE__ */ jsxs15(
|
|
|
3126
3621
|
strokeLinejoin: "round"
|
|
3127
3622
|
}
|
|
3128
3623
|
),
|
|
3129
|
-
/* @__PURE__ */
|
|
3624
|
+
/* @__PURE__ */ jsx23(
|
|
3130
3625
|
"path",
|
|
3131
3626
|
{
|
|
3132
3627
|
d: "M7.98188 5.77273H6.39097L5.75461 5.13636L6.39097 4.5H7.98188L8.61824 5.13636L7.98188 5.77273Z",
|
|
3133
3628
|
fill: "currentColor"
|
|
3134
3629
|
}
|
|
3135
3630
|
),
|
|
3136
|
-
/* @__PURE__ */
|
|
3631
|
+
/* @__PURE__ */ jsx23(
|
|
3137
3632
|
"path",
|
|
3138
3633
|
{
|
|
3139
3634
|
d: "M7.98188 11.5H6.39097L5.75461 10.8637L6.39097 10.2273H7.98188L8.61824 10.8637L7.98188 11.5Z",
|
|
3140
3635
|
fill: "currentColor"
|
|
3141
3636
|
}
|
|
3142
3637
|
),
|
|
3143
|
-
/* @__PURE__ */
|
|
3638
|
+
/* @__PURE__ */ jsx23(
|
|
3144
3639
|
"path",
|
|
3145
3640
|
{
|
|
3146
3641
|
d: "M8.30005 9.90907V6.09089L8.93641 5.45453L9.57278 6.09089V9.90907L8.93641 10.5454L8.30005 9.90907Z",
|
|
3147
3642
|
fill: "currentColor"
|
|
3148
3643
|
}
|
|
3149
3644
|
),
|
|
3150
|
-
/* @__PURE__ */
|
|
3645
|
+
/* @__PURE__ */ jsx23(
|
|
3151
3646
|
"path",
|
|
3152
3647
|
{
|
|
3153
3648
|
d: "M4.80005 9.90907V6.09089L5.43641 5.45453L6.07278 6.09089V9.90907L5.43641 10.5454L4.80005 9.90907Z",
|
|
3154
3649
|
fill: "currentColor"
|
|
3155
3650
|
}
|
|
3156
3651
|
),
|
|
3157
|
-
/* @__PURE__ */
|
|
3652
|
+
/* @__PURE__ */ jsx23(
|
|
3158
3653
|
"path",
|
|
3159
3654
|
{
|
|
3160
3655
|
d: "M1 3.5L13 3.5",
|
|
@@ -3165,15 +3660,15 @@ var SvgIcon6 = ({ className }) => /* @__PURE__ */ jsxs15(
|
|
|
3165
3660
|
}
|
|
3166
3661
|
)
|
|
3167
3662
|
] }),
|
|
3168
|
-
/* @__PURE__ */
|
|
3663
|
+
/* @__PURE__ */ jsx23("defs", { children: /* @__PURE__ */ jsx23("clipPath", { id: "clip0_3670_4424", children: /* @__PURE__ */ jsx23("rect", { width: "14", height: "14", fill: "white" }) }) })
|
|
3169
3664
|
]
|
|
3170
3665
|
}
|
|
3171
3666
|
);
|
|
3172
3667
|
var QueryValueIcon_default = SvgIcon6;
|
|
3173
3668
|
|
|
3174
3669
|
// src/charts/icons/ScatterIcon.tsx
|
|
3175
|
-
import { jsx as
|
|
3176
|
-
var SvgIcon7 = ({ className }) => /* @__PURE__ */
|
|
3670
|
+
import { jsx as jsx24, jsxs as jsxs19 } from "react/jsx-runtime";
|
|
3671
|
+
var SvgIcon7 = ({ className }) => /* @__PURE__ */ jsxs19(
|
|
3177
3672
|
"svg",
|
|
3178
3673
|
{
|
|
3179
3674
|
width: "14",
|
|
@@ -3183,8 +3678,8 @@ var SvgIcon7 = ({ className }) => /* @__PURE__ */ jsxs16(
|
|
|
3183
3678
|
xmlns: "http://www.w3.org/2000/svg",
|
|
3184
3679
|
className,
|
|
3185
3680
|
children: [
|
|
3186
|
-
/* @__PURE__ */
|
|
3187
|
-
/* @__PURE__ */
|
|
3681
|
+
/* @__PURE__ */ jsxs19("g", { clipPath: "url(#clip0_28248_7302)", children: [
|
|
3682
|
+
/* @__PURE__ */ jsx24(
|
|
3188
3683
|
"path",
|
|
3189
3684
|
{
|
|
3190
3685
|
d: "M1.75 1.75V12.25H12.25",
|
|
@@ -3194,7 +3689,7 @@ var SvgIcon7 = ({ className }) => /* @__PURE__ */ jsxs16(
|
|
|
3194
3689
|
strokeLinejoin: "round"
|
|
3195
3690
|
}
|
|
3196
3691
|
),
|
|
3197
|
-
/* @__PURE__ */
|
|
3692
|
+
/* @__PURE__ */ jsx24(
|
|
3198
3693
|
"path",
|
|
3199
3694
|
{
|
|
3200
3695
|
d: "M4.66663 8.75879V8.76754",
|
|
@@ -3204,7 +3699,7 @@ var SvgIcon7 = ({ className }) => /* @__PURE__ */ jsxs16(
|
|
|
3204
3699
|
strokeLinejoin: "round"
|
|
3205
3700
|
}
|
|
3206
3701
|
),
|
|
3207
|
-
/* @__PURE__ */
|
|
3702
|
+
/* @__PURE__ */ jsx24(
|
|
3208
3703
|
"path",
|
|
3209
3704
|
{
|
|
3210
3705
|
d: "M9.33337 9.34204V9.35079",
|
|
@@ -3214,7 +3709,7 @@ var SvgIcon7 = ({ className }) => /* @__PURE__ */ jsxs16(
|
|
|
3214
3709
|
strokeLinejoin: "round"
|
|
3215
3710
|
}
|
|
3216
3711
|
),
|
|
3217
|
-
/* @__PURE__ */
|
|
3712
|
+
/* @__PURE__ */ jsx24(
|
|
3218
3713
|
"path",
|
|
3219
3714
|
{
|
|
3220
3715
|
d: "M4.66663 4.10083V4.10958",
|
|
@@ -3224,7 +3719,7 @@ var SvgIcon7 = ({ className }) => /* @__PURE__ */ jsxs16(
|
|
|
3224
3719
|
strokeLinejoin: "round"
|
|
3225
3720
|
}
|
|
3226
3721
|
),
|
|
3227
|
-
/* @__PURE__ */
|
|
3722
|
+
/* @__PURE__ */ jsx24(
|
|
3228
3723
|
"path",
|
|
3229
3724
|
{
|
|
3230
3725
|
d: "M7 6.43408V6.44283",
|
|
@@ -3234,7 +3729,7 @@ var SvgIcon7 = ({ className }) => /* @__PURE__ */ jsxs16(
|
|
|
3234
3729
|
strokeLinejoin: "round"
|
|
3235
3730
|
}
|
|
3236
3731
|
),
|
|
3237
|
-
/* @__PURE__ */
|
|
3732
|
+
/* @__PURE__ */ jsx24(
|
|
3238
3733
|
"path",
|
|
3239
3734
|
{
|
|
3240
3735
|
d: "M11.0834 6.43408V6.44283",
|
|
@@ -3245,15 +3740,15 @@ var SvgIcon7 = ({ className }) => /* @__PURE__ */ jsxs16(
|
|
|
3245
3740
|
}
|
|
3246
3741
|
)
|
|
3247
3742
|
] }),
|
|
3248
|
-
/* @__PURE__ */
|
|
3743
|
+
/* @__PURE__ */ jsx24("defs", { children: /* @__PURE__ */ jsx24("clipPath", { id: "clip0_28248_7302", children: /* @__PURE__ */ jsx24("rect", { width: "14", height: "14", fill: "white" }) }) })
|
|
3249
3744
|
]
|
|
3250
3745
|
}
|
|
3251
3746
|
);
|
|
3252
3747
|
var ScatterIcon_default = SvgIcon7;
|
|
3253
3748
|
|
|
3254
3749
|
// src/charts/icons/TableIcon.tsx
|
|
3255
|
-
import { jsx as
|
|
3256
|
-
var SvgIcon8 = ({ className }) => /* @__PURE__ */
|
|
3750
|
+
import { jsx as jsx25, jsxs as jsxs20 } from "react/jsx-runtime";
|
|
3751
|
+
var SvgIcon8 = ({ className }) => /* @__PURE__ */ jsxs20(
|
|
3257
3752
|
"svg",
|
|
3258
3753
|
{
|
|
3259
3754
|
width: "14",
|
|
@@ -3263,8 +3758,8 @@ var SvgIcon8 = ({ className }) => /* @__PURE__ */ jsxs17(
|
|
|
3263
3758
|
xmlns: "http://www.w3.org/2000/svg",
|
|
3264
3759
|
className,
|
|
3265
3760
|
children: [
|
|
3266
|
-
/* @__PURE__ */
|
|
3267
|
-
/* @__PURE__ */
|
|
3761
|
+
/* @__PURE__ */ jsxs20("g", { clipPath: "url(#clip0_3670_4416)", children: [
|
|
3762
|
+
/* @__PURE__ */ jsx25(
|
|
3268
3763
|
"path",
|
|
3269
3764
|
{
|
|
3270
3765
|
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",
|
|
@@ -3274,7 +3769,7 @@ var SvgIcon8 = ({ className }) => /* @__PURE__ */ jsxs17(
|
|
|
3274
3769
|
strokeLinejoin: "round"
|
|
3275
3770
|
}
|
|
3276
3771
|
),
|
|
3277
|
-
/* @__PURE__ */
|
|
3772
|
+
/* @__PURE__ */ jsx25(
|
|
3278
3773
|
"path",
|
|
3279
3774
|
{
|
|
3280
3775
|
d: "M1 5L13 5",
|
|
@@ -3284,7 +3779,7 @@ var SvgIcon8 = ({ className }) => /* @__PURE__ */ jsxs17(
|
|
|
3284
3779
|
strokeLinejoin: "round"
|
|
3285
3780
|
}
|
|
3286
3781
|
),
|
|
3287
|
-
/* @__PURE__ */
|
|
3782
|
+
/* @__PURE__ */ jsx25(
|
|
3288
3783
|
"path",
|
|
3289
3784
|
{
|
|
3290
3785
|
d: "M6 2L6 12",
|
|
@@ -3295,7 +3790,7 @@ var SvgIcon8 = ({ className }) => /* @__PURE__ */ jsxs17(
|
|
|
3295
3790
|
}
|
|
3296
3791
|
)
|
|
3297
3792
|
] }),
|
|
3298
|
-
/* @__PURE__ */
|
|
3793
|
+
/* @__PURE__ */ jsx25("defs", { children: /* @__PURE__ */ jsx25("clipPath", { id: "clip0_3670_4416", children: /* @__PURE__ */ jsx25("rect", { width: "14", height: "14", fill: "white" }) }) })
|
|
3299
3794
|
]
|
|
3300
3795
|
}
|
|
3301
3796
|
);
|
|
@@ -3329,8 +3824,14 @@ export {
|
|
|
3329
3824
|
ScatterIcon_default as ScatterIcon,
|
|
3330
3825
|
SystemLabels,
|
|
3331
3826
|
TableIcon_default as TableIcon,
|
|
3827
|
+
ValueControls,
|
|
3828
|
+
ValueFormatters,
|
|
3829
|
+
ValueOptions,
|
|
3830
|
+
ValueStringMapping,
|
|
3332
3831
|
defaultConfig2 as defaultBarGaugeConfig,
|
|
3333
3832
|
defaultConfig as defaultPieConfig,
|
|
3833
|
+
defaultConfig3 as defaultValueConfig,
|
|
3834
|
+
defaultConfig4 as defaultValueControlsConfig,
|
|
3334
3835
|
isAggrOrRollupFunction,
|
|
3335
3836
|
sentioColors,
|
|
3336
3837
|
sentioTheme,
|