@carto/ps-react-ui 4.3.9 → 4.4.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/components.js +692 -700
- package/dist/components.js.map +1 -1
- package/dist/{lasso-tool-jl4YK02H.js → lasso-tool-BYbxrJ-7.js} +184 -190
- package/dist/lasso-tool-BYbxrJ-7.js.map +1 -0
- package/dist/{row-BKmVAUN5.js → row-DTCV0Ocm.js} +2 -2
- package/dist/row-DTCV0Ocm.js.map +1 -0
- package/dist/{series-D1pynfeh.js → series-CYNOu2Ju.js} +2 -2
- package/dist/{series-D1pynfeh.js.map → series-CYNOu2Ju.js.map} +1 -1
- package/dist/smart-tooltip-D4vwQpFf.js +37 -0
- package/dist/smart-tooltip-D4vwQpFf.js.map +1 -0
- package/dist/{styles-DrPyd0y5.js → styles-CAroD5Rc.js} +12 -12
- package/dist/styles-CAroD5Rc.js.map +1 -0
- package/dist/types/hooks/use-widget-ref.d.ts +5 -2
- package/dist/types/widgets/_shared/chart-config/option-builders.d.ts +1 -1
- package/dist/types/widgets/actions/brush-toggle/brush-toggle.d.ts +21 -0
- package/dist/types/widgets/actions/{relative-data → brush-toggle}/style.d.ts +5 -0
- package/dist/types/widgets/actions/brush-toggle/types.d.ts +33 -0
- package/dist/types/widgets/actions/index.d.ts +2 -0
- package/dist/types/widgets/category/config.d.ts +3 -10
- package/dist/types/widgets/echart/types.d.ts +2 -1
- package/dist/types/widgets/echart/utils.d.ts +12 -6
- package/dist/types/widgets/range/config.d.ts +0 -4
- package/dist/types/widgets/spread/config.d.ts +0 -5
- package/dist/types/widgets/table/config.d.ts +1 -2
- package/dist/types/widgets/table/table-ui.d.ts +1 -1
- package/dist/types/widgets/wrapper/components/options.d.ts +1 -1
- package/dist/use-widget-ref-wtFLDFCD.js +25 -0
- package/dist/use-widget-ref-wtFLDFCD.js.map +1 -0
- package/dist/{utils-idmvq0Oa.js → utils-Cx3gYUcL.js} +74 -68
- package/dist/utils-Cx3gYUcL.js.map +1 -0
- package/dist/widgets/actions.js +788 -700
- package/dist/widgets/actions.js.map +1 -1
- package/dist/widgets/bar.js +48 -49
- package/dist/widgets/bar.js.map +1 -1
- package/dist/widgets/category.js +28 -28
- package/dist/widgets/category.js.map +1 -1
- package/dist/widgets/echart.js +85 -82
- package/dist/widgets/echart.js.map +1 -1
- package/dist/widgets/formula.js +7 -5
- package/dist/widgets/formula.js.map +1 -1
- package/dist/widgets/histogram.js +50 -50
- package/dist/widgets/histogram.js.map +1 -1
- package/dist/widgets/markdown.js +1 -1
- package/dist/widgets/pie.js +10 -10
- package/dist/widgets/pie.js.map +1 -1
- package/dist/widgets/range.js +1 -1
- package/dist/widgets/range.js.map +1 -1
- package/dist/widgets/scatterplot.js +14 -14
- package/dist/widgets/scatterplot.js.map +1 -1
- package/dist/widgets/spread.js +7 -5
- package/dist/widgets/spread.js.map +1 -1
- package/dist/widgets/table.js +5 -3
- package/dist/widgets/table.js.map +1 -1
- package/dist/widgets/timeseries.js +4 -4
- package/dist/widgets/timeseries.js.map +1 -1
- package/dist/widgets/wrapper.js +152 -162
- package/dist/widgets/wrapper.js.map +1 -1
- package/dist/widgets.js +1 -1
- package/package.json +1 -1
- package/src/components/basemaps/basemaps.tsx +3 -1
- package/src/components/geolocation-controls/geolocation-controls.tsx +10 -6
- package/src/components/lasso-tool/lasso-tool-inline.tsx +6 -2
- package/src/components/lasso-tool/lasso-tool.tsx +9 -3
- package/src/components/list-data/list-data-skeleton.tsx +1 -1
- package/src/components/list-data/list-data.tsx +5 -3
- package/src/components/measurement-tools/measurement-tools.tsx +5 -1
- package/src/components/smart-tooltip/smart-tooltip.tsx +3 -1
- package/src/hooks/use-widget-ref.ts +4 -3
- package/src/widgets/_shared/chart-config/option-builders.test.ts +2 -2
- package/src/widgets/_shared/chart-config/option-builders.ts +6 -4
- package/src/widgets/actions/brush-toggle/brush-toggle.tsx +220 -0
- package/src/widgets/actions/{relative-data → brush-toggle}/style.ts +5 -0
- package/src/widgets/actions/brush-toggle/types.ts +37 -0
- package/src/widgets/actions/download/download.test.tsx +6 -2
- package/src/widgets/actions/download/download.tsx +3 -1
- package/src/widgets/actions/fullscreen/fullscreen.tsx +8 -1
- package/src/widgets/actions/index.ts +9 -0
- package/src/widgets/actions/lock-selection/lock-selection.tsx +0 -9
- package/src/widgets/actions/relative-data/relative-data.tsx +2 -6
- package/src/widgets/actions/searcher/searcher.tsx +0 -6
- package/src/widgets/actions/stack-toggle/stack-toggle.test.tsx +4 -4
- package/src/widgets/actions/stack-toggle/stack-toggle.tsx +2 -13
- package/src/widgets/actions/zoom-toggle/zoom-toggle.tsx +2 -12
- package/src/widgets/bar/config.ts +8 -4
- package/src/widgets/bar/skeleton.tsx +1 -1
- package/src/widgets/category/components/category-row-multi.tsx +1 -1
- package/src/widgets/category/config.ts +1 -11
- package/src/widgets/echart/echart-ui.tsx +5 -2
- package/src/widgets/echart/echart.tsx +1 -1
- package/src/widgets/echart/types.ts +2 -1
- package/src/widgets/echart/utils.ts +20 -15
- package/src/widgets/formula/components/row.tsx +1 -1
- package/src/widgets/formula/formula-ui.tsx +1 -1
- package/src/widgets/histogram/config.ts +7 -2
- package/src/widgets/histogram/skeleton.tsx +2 -2
- package/src/widgets/pie/skeleton.tsx +1 -1
- package/src/widgets/range/config.ts +0 -5
- package/src/widgets/scatterplot/skeleton.tsx +2 -2
- package/src/widgets/spread/config.ts +0 -6
- package/src/widgets/spread/spread-ui.tsx +1 -1
- package/src/widgets/table/config.ts +1 -1
- package/src/widgets/table/table-ui.tsx +2 -2
- package/src/widgets/timeseries/skeleton.tsx +1 -1
- package/src/widgets/wrapper/components/actions.test.tsx +6 -2
- package/src/widgets/wrapper/components/actions.tsx +3 -1
- package/src/widgets/wrapper/components/options.test.tsx +12 -4
- package/src/widgets/wrapper/components/options.tsx +8 -3
- package/src/widgets/wrapper/wrapper-ui.tsx +5 -2
- package/src/widgets/wrapper/wrapper.tsx +2 -4
- package/dist/lasso-tool-jl4YK02H.js.map +0 -1
- package/dist/row-BKmVAUN5.js.map +0 -1
- package/dist/smart-tooltip-BEtBaIdz.js +0 -39
- package/dist/smart-tooltip-BEtBaIdz.js.map +0 -1
- package/dist/styles-DrPyd0y5.js.map +0 -1
- package/dist/types/widgets/actions/zoom-toggle/index.d.ts +0 -2
- package/dist/types/widgets/table/components/index.d.ts +0 -4
- package/dist/use-widget-ref-P-2i0MJG.js +0 -19
- package/dist/use-widget-ref-P-2i0MJG.js.map +0 -1
- package/dist/utils-idmvq0Oa.js.map +0 -1
- package/src/widgets/actions/zoom-toggle/index.ts +0 -2
- package/src/widgets/table/components/index.ts +0 -4
|
@@ -1,87 +1,87 @@
|
|
|
1
|
-
import { d
|
|
2
|
-
const
|
|
3
|
-
function h(...
|
|
4
|
-
return
|
|
5
|
-
customMerge: (
|
|
6
|
-
if (
|
|
7
|
-
return (
|
|
8
|
-
if (
|
|
9
|
-
return (
|
|
10
|
-
const
|
|
11
|
-
return
|
|
12
|
-
}) :
|
|
1
|
+
import { d } from "./cjs-D4KH3azB.js";
|
|
2
|
+
const m = "stacked";
|
|
3
|
+
function h(...o) {
|
|
4
|
+
return d(o[0] ?? {}, o[1] ?? {}, {
|
|
5
|
+
customMerge: (e) => {
|
|
6
|
+
if (e === "color")
|
|
7
|
+
return (i, I) => I;
|
|
8
|
+
if (e === "series")
|
|
9
|
+
return (i, I) => i.length ? I?.map((r, l) => {
|
|
10
|
+
const g = i?.[l] ?? {};
|
|
11
|
+
return d(g, r);
|
|
12
|
+
}) : i;
|
|
13
13
|
}
|
|
14
14
|
});
|
|
15
15
|
}
|
|
16
|
-
function p(
|
|
17
|
-
start:
|
|
18
|
-
end:
|
|
16
|
+
function p({
|
|
17
|
+
start: o,
|
|
18
|
+
end: e
|
|
19
19
|
} = {
|
|
20
20
|
start: 0,
|
|
21
21
|
end: 100
|
|
22
22
|
}, {
|
|
23
|
-
inside:
|
|
24
|
-
xSlider:
|
|
25
|
-
ySlider:
|
|
23
|
+
inside: i = !0,
|
|
24
|
+
xSlider: I = !0,
|
|
25
|
+
ySlider: a = !1,
|
|
26
26
|
showSliders: r = !0,
|
|
27
27
|
xAxisLabelFormatter: l,
|
|
28
|
-
bottomOffset:
|
|
29
|
-
} = {},
|
|
30
|
-
const
|
|
28
|
+
bottomOffset: g = 0
|
|
29
|
+
} = {}, t) {
|
|
30
|
+
const n = t ? s(t) : {};
|
|
31
31
|
return {
|
|
32
|
-
dataZoom: [
|
|
32
|
+
dataZoom: [i && {
|
|
33
33
|
throttle: 0,
|
|
34
34
|
type: "inside",
|
|
35
|
-
xAxisIndex:
|
|
36
|
-
yAxisIndex:
|
|
37
|
-
show:
|
|
38
|
-
zoomLock: !
|
|
39
|
-
start:
|
|
40
|
-
end:
|
|
41
|
-
},
|
|
35
|
+
xAxisIndex: I ? [0] : [],
|
|
36
|
+
yAxisIndex: a ? [0] : [],
|
|
37
|
+
show: !0,
|
|
38
|
+
zoomLock: !1,
|
|
39
|
+
start: o,
|
|
40
|
+
end: e
|
|
41
|
+
}, i && a && {
|
|
42
42
|
throttle: 0,
|
|
43
43
|
type: "inside",
|
|
44
|
-
show:
|
|
45
|
-
zoomLock: !
|
|
46
|
-
start:
|
|
47
|
-
end:
|
|
44
|
+
show: !0,
|
|
45
|
+
zoomLock: !1,
|
|
46
|
+
start: o,
|
|
47
|
+
end: e,
|
|
48
48
|
orientation: "vertical"
|
|
49
|
-
},
|
|
49
|
+
}, I && {
|
|
50
50
|
throttle: 0,
|
|
51
51
|
type: "slider",
|
|
52
52
|
xAxisIndex: [0],
|
|
53
|
-
bottom:
|
|
54
|
-
height: parseInt(
|
|
55
|
-
show:
|
|
56
|
-
zoomLock: !
|
|
57
|
-
start:
|
|
58
|
-
end:
|
|
53
|
+
bottom: g,
|
|
54
|
+
height: parseInt(t?.spacing?.(4) ?? "32"),
|
|
55
|
+
show: r,
|
|
56
|
+
zoomLock: !1,
|
|
57
|
+
start: o,
|
|
58
|
+
end: e,
|
|
59
59
|
labelFormatter: l,
|
|
60
60
|
showDetail: !1,
|
|
61
|
-
...
|
|
61
|
+
...n,
|
|
62
62
|
brushSelect: !1,
|
|
63
63
|
moveHandleSize: 8,
|
|
64
64
|
handleSize: "100%",
|
|
65
65
|
handleIcon: "image://data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iOSIgaGVpZ2h0PSIzNiIgdmlld0JveD0iMCAwIDkgMzYiIGZpbGw9Im5vbmUiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+CjxyZWN0IHg9IjAuNSIgeT0iLTAuNSIgd2lkdGg9IjgiIGhlaWdodD0iMTgiIHJ4PSI0IiB0cmFuc2Zvcm09Im1hdHJpeCgxIDAgMCAtMSAwIDI3KSIgZmlsbD0id2hpdGUiIHN0cm9rZT0iIzM1OEJFNyIvPgo8cmVjdCB3aWR0aD0iMyIgaGVpZ2h0PSIyIiByeD0iMSIgdHJhbnNmb3JtPSJtYXRyaXgoMSAwIDAgLTEgMyAyMykiIGZpbGw9IiMzNThCRTciLz4KPHJlY3Qgd2lkdGg9IjMiIGhlaWdodD0iMiIgcng9IjEiIHRyYW5zZm9ybT0ibWF0cml4KDEgMCAwIC0xIDMgMTkpIiBmaWxsPSIjMzU4QkU3Ii8+CjxyZWN0IHdpZHRoPSIzIiBoZWlnaHQ9IjIiIHJ4PSIxIiB0cmFuc2Zvcm09Im1hdHJpeCgxIDAgMCAtMSAzIDE1KSIgZmlsbD0iIzM1OEJFNyIvPgo8L3N2Zz4="
|
|
66
|
-
},
|
|
66
|
+
}, a && {
|
|
67
67
|
throttle: 0,
|
|
68
68
|
type: "slider",
|
|
69
|
-
left: parseInt(
|
|
70
|
-
width: parseInt(
|
|
69
|
+
left: parseInt(t?.spacing?.(6) ?? "48"),
|
|
70
|
+
width: parseInt(t?.spacing?.(4) ?? "32"),
|
|
71
71
|
yAxisIndex: [0],
|
|
72
|
-
show:
|
|
73
|
-
zoomLock: !
|
|
74
|
-
start:
|
|
75
|
-
end:
|
|
76
|
-
...
|
|
72
|
+
show: r,
|
|
73
|
+
zoomLock: !1,
|
|
74
|
+
start: o,
|
|
75
|
+
end: e,
|
|
76
|
+
...n,
|
|
77
77
|
brushSelect: !1,
|
|
78
78
|
moveHandleSize: 8,
|
|
79
79
|
handleSize: "100%",
|
|
80
80
|
handleIcon: "image://data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMzYiIGhlaWdodD0iOSIgdmlld0JveD0iMCAwIDM2IDkiIGZpbGw9Im5vbmUiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+CjxyZWN0IHg9IjAuNSIgeT0iMC41IiB3aWR0aD0iOCIgaGVpZ2h0PSIxOCIgcng9IjQiIHRyYW5zZm9ybT0icm90YXRlKC05MCAwLjUgMC41KSIgZmlsbD0id2hpdGUiIHN0cm9rZT0iIzM1OEJFNyIvPgo8cmVjdCB3aWR0aD0iMyIgaGVpZ2h0PSIyIiByeD0iMSIgdHJhbnNmb3JtPSJyb3RhdGUoLTkwIDEzIDYpIiBmaWxsPSIjMzU4QkU3Ii8+CjxyZWN0IHdpZHRoPSIzIiBoZWlnaHQ9IjIiIHJ4PSIxIiB0cmFuc2Zvcm09InJvdGF0ZSgtOTAgMTcgNikiIGZpbGw9IiMzNThCRTciLz4KPHJlY3Qgd2lkdGg9IjMiIGhlaWdodD0iMiIgcng9IjEiIHRyYW5zZm9ybT0icm90YXRlKC05MCAyMSA2KSIgZmlsbD0iIzM1OEJFNyIvPgo8L3N2Zz4="
|
|
81
|
-
}].filter((
|
|
81
|
+
}].filter((c) => !!c)
|
|
82
82
|
};
|
|
83
83
|
}
|
|
84
|
-
function
|
|
84
|
+
function s(o) {
|
|
85
85
|
return {
|
|
86
86
|
fillerColor: "rgba(53, 139, 231, 0.25)",
|
|
87
87
|
borderColor: "rgba(53, 139, 231, 0.3)",
|
|
@@ -94,7 +94,7 @@ function m(e) {
|
|
|
94
94
|
},
|
|
95
95
|
areaStyle: {
|
|
96
96
|
opacity: 1,
|
|
97
|
-
color:
|
|
97
|
+
color: o.palette.secondary.main
|
|
98
98
|
}
|
|
99
99
|
},
|
|
100
100
|
selectedDataBackground: {
|
|
@@ -103,11 +103,11 @@ function m(e) {
|
|
|
103
103
|
},
|
|
104
104
|
areaStyle: {
|
|
105
105
|
opacity: 1,
|
|
106
|
-
color:
|
|
106
|
+
color: o.palette.secondary.main
|
|
107
107
|
}
|
|
108
108
|
},
|
|
109
109
|
handleStyle: {
|
|
110
|
-
color:
|
|
110
|
+
color: o.palette.common.white,
|
|
111
111
|
borderColor: "rgba(3, 111, 226, 0.08)",
|
|
112
112
|
borderWidth: 1,
|
|
113
113
|
shadowBlur: 3,
|
|
@@ -116,30 +116,36 @@ function m(e) {
|
|
|
116
116
|
shadowOffsetY: 1
|
|
117
117
|
},
|
|
118
118
|
textStyle: {
|
|
119
|
-
color:
|
|
120
|
-
fontSize: parseInt(
|
|
121
|
-
fontFamily:
|
|
119
|
+
color: o.palette.black[60],
|
|
120
|
+
fontSize: parseInt(o.typography.overlineDelicate.fontSize),
|
|
121
|
+
fontFamily: o.typography.overlineDelicate.fontFamily
|
|
122
122
|
}
|
|
123
123
|
};
|
|
124
124
|
}
|
|
125
|
-
function
|
|
126
|
-
|
|
125
|
+
function z({
|
|
126
|
+
brushType: o = "lineX",
|
|
127
|
+
brushMode: e = "single",
|
|
128
|
+
xAxisIndex: i = 0
|
|
129
|
+
} = {}) {
|
|
130
|
+
return {
|
|
127
131
|
brush: {
|
|
128
|
-
|
|
129
|
-
|
|
132
|
+
toolbox: ["lineX", "clear"],
|
|
133
|
+
brushType: o,
|
|
134
|
+
brushMode: e,
|
|
135
|
+
xAxisIndex: i
|
|
130
136
|
}
|
|
131
|
-
}
|
|
137
|
+
};
|
|
132
138
|
}
|
|
133
|
-
function
|
|
139
|
+
function b(o = m) {
|
|
134
140
|
return {
|
|
135
|
-
stack:
|
|
141
|
+
stack: o
|
|
136
142
|
};
|
|
137
143
|
}
|
|
138
144
|
export {
|
|
139
|
-
|
|
140
|
-
|
|
145
|
+
m as D,
|
|
146
|
+
b as a,
|
|
141
147
|
p as b,
|
|
142
|
-
|
|
148
|
+
z as g,
|
|
143
149
|
h as m
|
|
144
150
|
};
|
|
145
|
-
//# sourceMappingURL=utils-
|
|
151
|
+
//# sourceMappingURL=utils-Cx3gYUcL.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"utils-Cx3gYUcL.js","sources":["../src/widgets/echart/const.ts","../src/widgets/echart/utils.ts"],"sourcesContent":["export const DEFAULT_STACK_GROUP = 'stacked'\n","import deepmerge from 'deepmerge'\nimport type { EchartOptionsProps } from './types'\nimport type { Theme } from '@mui/material'\nimport { DEFAULT_STACK_GROUP } from './const'\n\nexport function mergeEchartWidgetConfig<T extends EchartOptionsProps>(\n ...options: [T | undefined, T | undefined]\n): T {\n return deepmerge(options[0] ?? {}, options[1] ?? {}, {\n customMerge: (key) => {\n if (key === 'color') {\n return (_, b: T['color']) => b\n }\n if (key === 'series') {\n return (a: T['series'][], b: T['series'][]) => {\n if (!a.length) return a // If there is no series in a, return a as is\n\n const mergedSeries = b?.map((bItem, index) => {\n const aItem = a?.[index] ?? {}\n return deepmerge(aItem, bItem as object)\n })\n return mergedSeries\n }\n }\n },\n }) as T\n}\n\nexport function getEChartZoomConfig(\n { start, end }: { start: number; end: number } = { start: 0, end: 100 },\n {\n inside = true,\n xSlider = true,\n ySlider = false,\n showSliders = true,\n xAxisLabelFormatter,\n bottomOffset = 0,\n } = {} as {\n inside?: boolean\n xSlider?: boolean\n ySlider?: boolean\n showSliders?: boolean\n xAxisLabelFormatter?: (value: number) => string\n bottomOffset?: number\n },\n theme?: Theme,\n) {\n const zoom = true\n const sliderStyles = theme ? getEChartZoomSliderStyles(theme) : {}\n\n return {\n dataZoom: [\n inside && {\n throttle: 0,\n type: 'inside',\n xAxisIndex: xSlider ? [0] : [],\n yAxisIndex: ySlider ? [0] : [],\n show: zoom,\n zoomLock: !zoom,\n start,\n end,\n },\n inside &&\n ySlider && {\n throttle: 0,\n type: 'inside',\n show: zoom,\n zoomLock: !zoom,\n start,\n end,\n orientation: 'vertical',\n },\n xSlider && {\n throttle: 0,\n type: 'slider',\n xAxisIndex: [0],\n bottom: bottomOffset,\n height: parseInt(theme?.spacing?.(4) ?? '32'),\n show: zoom && showSliders,\n zoomLock: !zoom,\n start,\n end,\n labelFormatter: xAxisLabelFormatter,\n showDetail: false,\n ...sliderStyles,\n brushSelect: false,\n moveHandleSize: 8,\n handleSize: '100%',\n handleIcon:\n 'image://data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iOSIgaGVpZ2h0PSIzNiIgdmlld0JveD0iMCAwIDkgMzYiIGZpbGw9Im5vbmUiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+CjxyZWN0IHg9IjAuNSIgeT0iLTAuNSIgd2lkdGg9IjgiIGhlaWdodD0iMTgiIHJ4PSI0IiB0cmFuc2Zvcm09Im1hdHJpeCgxIDAgMCAtMSAwIDI3KSIgZmlsbD0id2hpdGUiIHN0cm9rZT0iIzM1OEJFNyIvPgo8cmVjdCB3aWR0aD0iMyIgaGVpZ2h0PSIyIiByeD0iMSIgdHJhbnNmb3JtPSJtYXRyaXgoMSAwIDAgLTEgMyAyMykiIGZpbGw9IiMzNThCRTciLz4KPHJlY3Qgd2lkdGg9IjMiIGhlaWdodD0iMiIgcng9IjEiIHRyYW5zZm9ybT0ibWF0cml4KDEgMCAwIC0xIDMgMTkpIiBmaWxsPSIjMzU4QkU3Ii8+CjxyZWN0IHdpZHRoPSIzIiBoZWlnaHQ9IjIiIHJ4PSIxIiB0cmFuc2Zvcm09Im1hdHJpeCgxIDAgMCAtMSAzIDE1KSIgZmlsbD0iIzM1OEJFNyIvPgo8L3N2Zz4=',\n },\n ySlider && {\n throttle: 0,\n type: 'slider',\n left: parseInt(theme?.spacing?.(6) ?? '48'),\n width: parseInt(theme?.spacing?.(4) ?? '32'),\n yAxisIndex: [0],\n show: zoom && showSliders,\n zoomLock: !zoom,\n start,\n end,\n ...sliderStyles,\n brushSelect: false,\n moveHandleSize: 8,\n handleSize: '100%',\n handleIcon:\n 'image://data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMzYiIGhlaWdodD0iOSIgdmlld0JveD0iMCAwIDM2IDkiIGZpbGw9Im5vbmUiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+CjxyZWN0IHg9IjAuNSIgeT0iMC41IiB3aWR0aD0iOCIgaGVpZ2h0PSIxOCIgcng9IjQiIHRyYW5zZm9ybT0icm90YXRlKC05MCAwLjUgMC41KSIgZmlsbD0id2hpdGUiIHN0cm9rZT0iIzM1OEJFNyIvPgo8cmVjdCB3aWR0aD0iMyIgaGVpZ2h0PSIyIiByeD0iMSIgdHJhbnNmb3JtPSJyb3RhdGUoLTkwIDEzIDYpIiBmaWxsPSIjMzU4QkU3Ii8+CjxyZWN0IHdpZHRoPSIzIiBoZWlnaHQ9IjIiIHJ4PSIxIiB0cmFuc2Zvcm09InJvdGF0ZSgtOTAgMTcgNikiIGZpbGw9IiMzNThCRTciLz4KPHJlY3Qgd2lkdGg9IjMiIGhlaWdodD0iMiIgcng9IjEiIHRyYW5zZm9ybT0icm90YXRlKC05MCAyMSA2KSIgZmlsbD0iIzM1OEJFNyIvPgo8L3N2Zz4=',\n },\n ].filter((d) => !!d),\n }\n}\n\nfunction getEChartZoomSliderStyles(theme: Theme) {\n return {\n fillerColor: 'rgba(53, 139, 231, 0.25)',\n borderColor: 'rgba(53, 139, 231, 0.3)',\n borderWidth: 0.5,\n backgroundColor: 'transparent',\n borderRadius: 4,\n dataBackground: {\n lineStyle: {\n opacity: 0,\n },\n areaStyle: {\n opacity: 1,\n color: theme.palette.secondary.main,\n },\n },\n selectedDataBackground: {\n lineStyle: {\n opacity: 0,\n },\n areaStyle: {\n opacity: 1,\n color: theme.palette.secondary.main,\n },\n },\n handleStyle: {\n color: theme.palette.common.white,\n borderColor: 'rgba(3, 111, 226, 0.08)',\n borderWidth: 1,\n shadowBlur: 3,\n shadowColor: 'rgba(0, 0, 0, 0.1)',\n shadowOffsetX: 0,\n shadowOffsetY: 1,\n },\n textStyle: {\n color: theme.palette.black[60],\n fontSize: parseInt(theme.typography.overlineDelicate.fontSize as string),\n fontFamily: theme.typography.overlineDelicate.fontFamily,\n },\n } as const\n}\n\nexport function getEChartBrushConfig(\n { brushType = 'lineX', brushMode = 'single', xAxisIndex = 0 } = {} as {\n brushType?: string\n brushMode?: string\n xAxisIndex?: number\n throttleType?: string\n throttleDelay?: number\n },\n) {\n return {\n brush: {\n toolbox: ['lineX', 'clear'],\n brushType,\n brushMode,\n xAxisIndex,\n },\n }\n}\n\nexport function getEChartStackConfig(stackGroup: string = DEFAULT_STACK_GROUP) {\n return { stack: stackGroup }\n}\n"],"names":["DEFAULT_STACK_GROUP","mergeEchartWidgetConfig","options","deepmerge","customMerge","key","_","b","a","length","map","bItem","index","aItem","getEChartZoomConfig","start","end","inside","xSlider","ySlider","showSliders","xAxisLabelFormatter","bottomOffset","theme","sliderStyles","getEChartZoomSliderStyles","dataZoom","throttle","type","xAxisIndex","yAxisIndex","show","zoom","zoomLock","orientation","bottom","height","parseInt","spacing","labelFormatter","showDetail","brushSelect","moveHandleSize","handleSize","handleIcon","left","width","filter","d","fillerColor","borderColor","borderWidth","backgroundColor","borderRadius","dataBackground","lineStyle","opacity","areaStyle","color","palette","secondary","main","selectedDataBackground","handleStyle","common","white","shadowBlur","shadowColor","shadowOffsetX","shadowOffsetY","textStyle","black","fontSize","typography","overlineDelicate","fontFamily","getEChartBrushConfig","brushType","brushMode","brush","toolbox","getEChartStackConfig","stackGroup","stack"],"mappings":";AAAO,MAAMA,IAAsB;ACK5B,SAASC,KACXC,GACA;AACH,SAAOC,EAAUD,EAAQ,CAAC,KAAK,CAAA,GAAIA,EAAQ,CAAC,KAAK,IAAI;AAAA,IACnDE,aAAcC,CAAAA,MAAQ;AACpB,UAA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