reke-ui 0.5.3 → 0.5.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/custom-elements.json +465 -0
- package/dist/components/reke-bar-chart/reke-bar-chart.d.ts +99 -0
- package/dist/components/reke-bar-chart/reke-bar-chart.d.ts.map +1 -0
- package/dist/components/reke-bar-chart/reke-bar-chart.js +319 -0
- package/dist/components/reke-bar-chart/reke-bar-chart.styles.d.ts +2 -0
- package/dist/components/reke-bar-chart/reke-bar-chart.styles.d.ts.map +1 -0
- package/dist/components/reke-bar-chart/reke-bar-chart.styles.js +36 -0
- package/dist/index.d.ts +2 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +21 -20
- package/dist/node_modules/echarts/lib/chart/bar/BarSeries.js +50 -0
- package/dist/node_modules/echarts/lib/chart/bar/BarView.js +431 -0
- package/dist/node_modules/echarts/lib/chart/bar/BaseBarSeries.js +65 -0
- package/dist/node_modules/echarts/lib/chart/bar/install.js +22 -0
- package/dist/node_modules/echarts/lib/chart/helper/Symbol.js +142 -0
- package/dist/node_modules/echarts/lib/chart/helper/SymbolDraw.js +99 -0
- package/dist/node_modules/echarts/lib/chart/helper/axisSnippets.js +19 -0
- package/dist/node_modules/echarts/lib/chart/helper/createClipPathFromCoordSys.js +50 -0
- package/dist/node_modules/echarts/lib/chart/helper/createSeriesData.js +55 -0
- package/dist/node_modules/echarts/lib/chart/helper/createSeriesDataSimply.js +3 -3
- package/dist/node_modules/echarts/lib/chart/helper/labelHelper.js +24 -0
- package/dist/node_modules/echarts/lib/chart/line/LineSeries.js +60 -0
- package/dist/node_modules/echarts/lib/chart/line/LineView.js +471 -0
- package/dist/node_modules/echarts/lib/chart/line/helper.js +34 -0
- package/dist/node_modules/echarts/lib/chart/line/install.js +16 -0
- package/dist/node_modules/echarts/lib/chart/line/lineAnimationDiff.js +59 -0
- package/dist/node_modules/echarts/lib/chart/line/poly.js +135 -0
- package/dist/node_modules/echarts/lib/chart/pie/PieSeries.js +32 -32
- package/dist/node_modules/echarts/lib/chart/pie/PieView.js +69 -69
- package/dist/node_modules/echarts/lib/chart/pie/labelLayout.js +25 -25
- package/dist/node_modules/echarts/lib/chart/pie/pieLayout.js +16 -16
- package/dist/node_modules/echarts/lib/component/axis/AxisBuilder.js +153 -153
- package/dist/node_modules/echarts/lib/component/axis/AxisView.js +13 -13
- package/dist/node_modules/echarts/lib/component/axis/CartesianAxisView.js +106 -0
- package/dist/node_modules/echarts/lib/component/axis/axisSplitHelper.js +50 -0
- package/dist/node_modules/echarts/lib/component/axisPointer/BaseAxisPointer.js +20 -20
- package/dist/node_modules/echarts/lib/component/axisPointer/CartesianAxisPointer.js +30 -30
- package/dist/node_modules/echarts/lib/component/axisPointer/viewHelper.js +13 -13
- package/dist/node_modules/echarts/lib/component/dataZoom/AxisProxy.js +114 -0
- package/dist/node_modules/echarts/lib/component/dataZoom/DataZoomModel.js +189 -0
- package/dist/node_modules/echarts/lib/component/dataZoom/DataZoomView.js +15 -0
- package/dist/node_modules/echarts/lib/component/dataZoom/InsideZoomModel.js +21 -0
- package/dist/node_modules/echarts/lib/component/dataZoom/InsideZoomView.js +67 -0
- package/dist/node_modules/echarts/lib/component/dataZoom/SliderZoomModel.js +75 -0
- package/dist/node_modules/echarts/lib/component/dataZoom/SliderZoomView.js +465 -0
- package/dist/node_modules/echarts/lib/component/dataZoom/dataZoomAction.js +17 -0
- package/dist/node_modules/echarts/lib/component/dataZoom/dataZoomProcessor.js +55 -0
- package/dist/node_modules/echarts/lib/component/dataZoom/helper.js +88 -0
- package/dist/node_modules/echarts/lib/component/dataZoom/installCommon.js +14 -0
- package/dist/node_modules/echarts/lib/component/dataZoom/installDataZoomInside.js +10 -0
- package/dist/node_modules/echarts/lib/component/dataZoom/installDataZoomSlider.js +9 -0
- package/dist/node_modules/echarts/lib/component/dataZoom/roams.js +132 -0
- package/dist/node_modules/echarts/lib/component/grid/install.js +9 -0
- package/dist/node_modules/echarts/lib/component/grid/installSimple.js +32 -0
- package/dist/node_modules/echarts/lib/component/helper/RoamController.js +172 -0
- package/dist/node_modules/echarts/lib/component/helper/cursorHelper.js +17 -0
- package/dist/node_modules/echarts/lib/component/helper/interactionMutex.js +15 -0
- package/dist/node_modules/echarts/lib/component/helper/sliderMove.js +29 -0
- package/dist/node_modules/echarts/lib/component/legend/LegendModel.js +31 -31
- package/dist/node_modules/echarts/lib/component/legend/LegendView.js +61 -61
- package/dist/node_modules/echarts/lib/component/legend/ScrollableLegendView.js +29 -29
- package/dist/node_modules/echarts/lib/component/tooltip/TooltipRichContent.js +4 -4
- package/dist/node_modules/echarts/lib/component/tooltip/TooltipView.js +105 -105
- package/dist/node_modules/echarts/lib/coord/Axis.js +92 -0
- package/dist/node_modules/echarts/lib/coord/CoordinateSystem.js +6 -0
- package/dist/node_modules/echarts/lib/coord/axisAlignTicks.js +76 -0
- package/dist/node_modules/echarts/lib/coord/axisCommonTypes.js +9 -0
- package/dist/node_modules/echarts/lib/coord/axisDefault.js +124 -0
- package/dist/node_modules/echarts/lib/coord/axisHelper.js +123 -14
- package/dist/node_modules/echarts/lib/coord/axisModelCommonMixin.js +9 -0
- package/dist/node_modules/echarts/lib/coord/axisModelCreator.js +39 -0
- package/dist/node_modules/echarts/lib/coord/axisNiceTicks.js +64 -0
- package/dist/node_modules/echarts/lib/coord/axisStatistics.js +101 -22
- package/dist/node_modules/echarts/lib/coord/axisStatisticsMetricsImpl.js +43 -0
- package/dist/node_modules/echarts/lib/coord/axisTickLabelBuilder.js +151 -5
- package/dist/node_modules/echarts/lib/coord/cartesian/Axis2D.js +24 -0
- package/dist/node_modules/echarts/lib/coord/cartesian/AxisModel.js +18 -0
- package/dist/node_modules/echarts/lib/coord/cartesian/Cartesian.js +23 -0
- package/dist/node_modules/echarts/lib/coord/cartesian/Cartesian2D.js +69 -0
- package/dist/node_modules/echarts/lib/coord/cartesian/Grid.js +314 -0
- package/dist/node_modules/echarts/lib/coord/cartesian/GridModel.js +40 -0
- package/dist/node_modules/echarts/lib/coord/cartesian/cartesianAxisHelper.js +43 -12
- package/dist/node_modules/echarts/lib/coord/scaleRawExtentInfo.js +175 -0
- package/dist/node_modules/echarts/lib/core/CoordinateSystem.js +39 -16
- package/dist/node_modules/echarts/lib/core/echarts.js +421 -421
- package/dist/node_modules/echarts/lib/data/OrdinalMeta.js +30 -0
- package/dist/node_modules/echarts/lib/data/SeriesData.js +18 -18
- package/dist/node_modules/echarts/lib/data/helper/createDimensions.js +6 -6
- package/dist/node_modules/echarts/lib/data/helper/dataStackHelper.js +59 -0
- package/dist/node_modules/echarts/lib/data/helper/dataValueHelper.js +13 -13
- package/dist/node_modules/echarts/lib/data/helper/dimensionHelper.js +7 -4
- package/dist/node_modules/echarts/lib/data/helper/sourceHelper.js +40 -8
- package/dist/node_modules/echarts/lib/data/helper/sourceManager.js +3 -3
- package/dist/node_modules/echarts/lib/data/helper/transform.js +8 -8
- package/dist/node_modules/echarts/lib/extension.js +10 -10
- package/dist/node_modules/echarts/lib/label/labelGuideHelper.js +10 -10
- package/dist/node_modules/echarts/lib/label/labelStyle.js +34 -25
- package/dist/node_modules/echarts/lib/label/sectorLabel.js +83 -0
- package/dist/node_modules/echarts/lib/layout/barCommon.js +19 -0
- package/dist/node_modules/echarts/lib/layout/barGrid.js +165 -0
- package/dist/node_modules/echarts/lib/layout/points.js +37 -0
- package/dist/node_modules/echarts/lib/loading/default.js +6 -6
- package/dist/node_modules/echarts/lib/model/Component.js +39 -39
- package/dist/node_modules/echarts/lib/model/Global.js +122 -122
- package/dist/node_modules/echarts/lib/model/Series.js +78 -78
- package/dist/node_modules/echarts/lib/model/referHelper.js +58 -0
- package/dist/node_modules/echarts/lib/processor/dataSample.js +43 -0
- package/dist/node_modules/echarts/lib/scale/Interval.js +68 -0
- package/dist/node_modules/echarts/lib/scale/Log.js +100 -0
- package/dist/node_modules/echarts/lib/scale/Ordinal.js +92 -0
- package/dist/node_modules/echarts/lib/scale/Scale.js +13 -0
- package/dist/node_modules/echarts/lib/scale/Time.js +242 -0
- package/dist/node_modules/echarts/lib/scale/break.js +10 -2
- package/dist/node_modules/echarts/lib/scale/helper.js +61 -3
- package/dist/node_modules/echarts/lib/scale/minorTicks.js +22 -0
- package/dist/node_modules/echarts/lib/scale/scaleMapper.js +89 -7
- package/dist/node_modules/echarts/lib/util/clazz.js +35 -35
- package/dist/node_modules/echarts/lib/util/component.js +16 -16
- package/dist/node_modules/echarts/lib/util/cycleCache.js +4 -1
- package/dist/node_modules/echarts/lib/util/decal.js +11 -11
- package/dist/node_modules/echarts/lib/util/format.js +1 -1
- package/dist/node_modules/echarts/lib/util/graphic.js +170 -170
- package/dist/node_modules/echarts/lib/util/layout.js +23 -23
- package/dist/node_modules/echarts/lib/util/model.js +128 -68
- package/dist/node_modules/echarts/lib/util/number.js +55 -37
- package/dist/node_modules/echarts/lib/util/shape/sausage.js +25 -0
- package/dist/node_modules/echarts/lib/util/states.js +96 -82
- package/dist/node_modules/echarts/lib/util/styleCompat.js +10 -0
- package/dist/node_modules/echarts/lib/util/symbol.js +24 -21
- package/dist/node_modules/echarts/lib/util/time.js +154 -18
- package/dist/node_modules/echarts/lib/util/vendor.js +26 -0
- package/dist/node_modules/echarts/lib/view/Chart.js +19 -19
- package/dist/node_modules/echarts/lib/view/Component.js +7 -7
- package/dist/node_modules/echarts/lib/visual/style.js +5 -5
- package/dist/node_modules/zrender/lib/Element.js +35 -35
- package/dist/node_modules/zrender/lib/canvas/graphic.js +36 -36
- package/dist/node_modules/zrender/lib/core/PathProxy.js +25 -25
- package/dist/node_modules/zrender/lib/core/event.js +4 -1
- package/dist/node_modules/zrender/lib/core/util.js +69 -64
- package/dist/node_modules/zrender/lib/graphic/TSpan.js +7 -7
- package/dist/node_modules/zrender/lib/graphic/Text.js +37 -37
- package/dist/node_modules/zrender/lib/graphic/helper/parseText.js +59 -59
- package/dist/node_modules/zrender/lib/tool/color.js +60 -41
- package/dist/react.d.ts +5 -0
- package/dist/react.d.ts.map +1 -1
- package/dist/react.js +83 -77
- package/package.json +5 -1
|
@@ -0,0 +1,319 @@
|
|
|
1
|
+
import { RekeElement as e } from "../../shared/base-element.js";
|
|
2
|
+
import { __decorate as t } from "../../_virtual/_@oxc-project_runtime@0.137.0/helpers/esm/decorate.js";
|
|
3
|
+
import { encodeHTML as n } from "../../node_modules/zrender/lib/core/dom.js";
|
|
4
|
+
import { install as r } from "../../node_modules/echarts/lib/chart/line/install.js";
|
|
5
|
+
import { install as i } from "../../node_modules/echarts/lib/chart/bar/install.js";
|
|
6
|
+
import { init as a } from "../../node_modules/echarts/lib/core/echarts.js";
|
|
7
|
+
import { use as o } from "../../node_modules/echarts/lib/extension.js";
|
|
8
|
+
import { install as s } from "../../node_modules/echarts/lib/component/grid/install.js";
|
|
9
|
+
import { install as c } from "../../node_modules/echarts/lib/component/tooltip/install.js";
|
|
10
|
+
import { install as l } from "../../node_modules/echarts/lib/component/legend/install.js";
|
|
11
|
+
import { install as u } from "../../node_modules/echarts/lib/component/dataZoom/installDataZoomInside.js";
|
|
12
|
+
import { install as d } from "../../node_modules/echarts/lib/component/dataZoom/installDataZoomSlider.js";
|
|
13
|
+
import { install as f } from "../../node_modules/echarts/lib/renderer/installCanvasRenderer.js";
|
|
14
|
+
import { styles as p } from "./reke-bar-chart.styles.js";
|
|
15
|
+
import { html as m } from "lit";
|
|
16
|
+
import { customElement as h, property as g } from "lit/decorators.js";
|
|
17
|
+
//#region src/components/reke-bar-chart/reke-bar-chart.ts
|
|
18
|
+
o([
|
|
19
|
+
i,
|
|
20
|
+
r,
|
|
21
|
+
s,
|
|
22
|
+
u,
|
|
23
|
+
d,
|
|
24
|
+
c,
|
|
25
|
+
l,
|
|
26
|
+
f
|
|
27
|
+
]);
|
|
28
|
+
var _ = [
|
|
29
|
+
"#22C55E",
|
|
30
|
+
"#3B82F6",
|
|
31
|
+
"#F59E0B",
|
|
32
|
+
"#EF4444",
|
|
33
|
+
"#A855F7",
|
|
34
|
+
"#14B8A6"
|
|
35
|
+
], v = "total", y = new Intl.NumberFormat(void 0, {
|
|
36
|
+
notation: "compact",
|
|
37
|
+
maximumFractionDigits: 1
|
|
38
|
+
}), b = new Intl.NumberFormat(void 0, { maximumFractionDigits: 2 });
|
|
39
|
+
function x(e, t) {
|
|
40
|
+
let n = e.trim().replace("#", ""), r = n.length === 3 ? [...n].map((e) => e + e).join("") : n;
|
|
41
|
+
if (!/^[0-9a-f]{6}$/i.test(r)) return `rgba(0, 0, 0, ${t})`;
|
|
42
|
+
let [i, a, o] = [
|
|
43
|
+
0,
|
|
44
|
+
2,
|
|
45
|
+
4
|
|
46
|
+
].map((e) => Number.parseInt(r.slice(e, e + 2), 16));
|
|
47
|
+
return `rgba(${i}, ${a}, ${o}, ${t})`;
|
|
48
|
+
}
|
|
49
|
+
var S = class extends e {
|
|
50
|
+
constructor(...e) {
|
|
51
|
+
super(...e), this.categories = [], this.series = [], this.label = "Bar chart", this.stacked = !1, this.showLegend = !1, this.loading = !1, this.animationDuration = 700, this.maxVisible = 0, this.repaint = () => {
|
|
52
|
+
this.chart?.setOption(this.buildOption(!1), !0), this.applyLoading();
|
|
53
|
+
};
|
|
54
|
+
}
|
|
55
|
+
static {
|
|
56
|
+
this.styles = p;
|
|
57
|
+
}
|
|
58
|
+
readToken(e, t) {
|
|
59
|
+
return getComputedStyle(this).getPropertyValue(e).trim() || t;
|
|
60
|
+
}
|
|
61
|
+
motionDuration() {
|
|
62
|
+
return typeof matchMedia == "function" && matchMedia("(prefers-reduced-motion: reduce)").matches ? 0 : Math.max(0, this.animationDuration);
|
|
63
|
+
}
|
|
64
|
+
resolvePalette() {
|
|
65
|
+
return this.palette?.length ? this.palette : _.map((e, t) => this.readToken(`--reke-chart-${t + 1}`, e));
|
|
66
|
+
}
|
|
67
|
+
firstUpdated() {
|
|
68
|
+
let e = this.renderRoot.querySelector(".chart");
|
|
69
|
+
this.chart = a(e), this.chart.setOption(this.buildOption(!0)), this.applyLoading(), this.chart.on("click", (e) => {
|
|
70
|
+
e.componentType === "series" && this.emit("reke-bar-chart-select", {
|
|
71
|
+
category: String(e.name),
|
|
72
|
+
series: String(e.seriesName),
|
|
73
|
+
value: Number(e.value),
|
|
74
|
+
index: Number(e.dataIndex)
|
|
75
|
+
});
|
|
76
|
+
}), this.observer = new ResizeObserver(() => this.chart?.resize()), this.observer.observe(e), this.watchTheme();
|
|
77
|
+
}
|
|
78
|
+
watchTheme() {
|
|
79
|
+
this.themeObserver = new MutationObserver(() => this.repaint()), this.themeObserver.observe(document.documentElement, {
|
|
80
|
+
attributes: !0,
|
|
81
|
+
attributeFilter: ["data-reke-theme"]
|
|
82
|
+
}), typeof matchMedia == "function" && (this.colorScheme = matchMedia("(prefers-color-scheme: light)"), this.colorScheme.addEventListener("change", this.repaint));
|
|
83
|
+
}
|
|
84
|
+
updated(e) {
|
|
85
|
+
this.chart && ((e.has("categories") || e.has("series") || e.has("stacked") || e.has("showLegend") || e.has("palette") || e.has("animationDuration") || e.has("maxVisible")) && this.chart.setOption(this.buildOption(!0), !0), e.has("loading") && this.applyLoading());
|
|
86
|
+
}
|
|
87
|
+
applyLoading() {
|
|
88
|
+
this.loading ? this.chart?.showLoading("default", {
|
|
89
|
+
text: "",
|
|
90
|
+
color: this.readToken("--reke-color-primary", "#22C55E"),
|
|
91
|
+
maskColor: x(this.readToken("--reke-color-bg", "#0A0A0B"), .6)
|
|
92
|
+
}) : this.chart?.hideLoading();
|
|
93
|
+
}
|
|
94
|
+
disconnectedCallback() {
|
|
95
|
+
this.themeObserver?.disconnect(), this.themeObserver = void 0, this.colorScheme?.removeEventListener("change", this.repaint), this.colorScheme = void 0, super.disconnectedCallback(), this.observer?.disconnect(), this.chart?.dispose(), this.chart = void 0;
|
|
96
|
+
}
|
|
97
|
+
describeCategory(e) {
|
|
98
|
+
let t = this.series.map((t) => `${t.name} ${b.format(t.data[e] ?? 0)}`);
|
|
99
|
+
return `${this.categories[e]}: ${t.join(", ")}`;
|
|
100
|
+
}
|
|
101
|
+
get chartAriaLabel() {
|
|
102
|
+
let e = this.series.map((e) => e.name).join(", ");
|
|
103
|
+
return `${this.label}. ${this.categories.length} categories, series: ${e}`;
|
|
104
|
+
}
|
|
105
|
+
buildOption(e) {
|
|
106
|
+
let t = e ? this.motionDuration() : 0, r = this.readToken("--reke-font-mono", "'JetBrains Mono', ui-monospace, monospace"), i = this.readToken("--reke-color-text", "#E5E5E5"), a = this.readToken("--reke-color-text-label", "#8A8A8A"), o = this.readToken("--reke-color-border", "#252525"), s = this.readToken("--reke-color-surface", "#1A1A1A"), c = this.stacked, l = this.maxVisible > 0 && this.categories.length > this.maxVisible, u = l ? {
|
|
107
|
+
startValue: this.categories.length - this.maxVisible,
|
|
108
|
+
endValue: this.categories.length - 1
|
|
109
|
+
} : void 0, d = this.readToken("--reke-color-primary", "#22C55E");
|
|
110
|
+
return {
|
|
111
|
+
color: this.resolvePalette(),
|
|
112
|
+
animation: t > 0,
|
|
113
|
+
animationDuration: t,
|
|
114
|
+
animationEasing: "cubicOut",
|
|
115
|
+
aria: { enabled: !0 },
|
|
116
|
+
textStyle: { fontFamily: r },
|
|
117
|
+
grid: {
|
|
118
|
+
left: 8,
|
|
119
|
+
right: 8,
|
|
120
|
+
top: this.showLegend ? 36 : 12,
|
|
121
|
+
bottom: l ? 44 : 8,
|
|
122
|
+
containLabel: !0
|
|
123
|
+
},
|
|
124
|
+
dataZoom: u ? [{
|
|
125
|
+
type: "inside",
|
|
126
|
+
xAxisIndex: 0,
|
|
127
|
+
...u,
|
|
128
|
+
zoomOnMouseWheel: "shift",
|
|
129
|
+
moveOnMouseWheel: !0
|
|
130
|
+
}, {
|
|
131
|
+
type: "slider",
|
|
132
|
+
xAxisIndex: 0,
|
|
133
|
+
...u,
|
|
134
|
+
height: 18,
|
|
135
|
+
bottom: 8,
|
|
136
|
+
brushSelect: !1,
|
|
137
|
+
borderColor: o,
|
|
138
|
+
backgroundColor: "transparent",
|
|
139
|
+
fillerColor: x(d, .15),
|
|
140
|
+
dataBackground: {
|
|
141
|
+
lineStyle: {
|
|
142
|
+
color: a,
|
|
143
|
+
opacity: .4
|
|
144
|
+
},
|
|
145
|
+
areaStyle: {
|
|
146
|
+
color: a,
|
|
147
|
+
opacity: .1
|
|
148
|
+
}
|
|
149
|
+
},
|
|
150
|
+
selectedDataBackground: {
|
|
151
|
+
lineStyle: {
|
|
152
|
+
color: d,
|
|
153
|
+
opacity: .6
|
|
154
|
+
},
|
|
155
|
+
areaStyle: {
|
|
156
|
+
color: d,
|
|
157
|
+
opacity: .15
|
|
158
|
+
}
|
|
159
|
+
},
|
|
160
|
+
handleStyle: {
|
|
161
|
+
color: s,
|
|
162
|
+
borderColor: a
|
|
163
|
+
},
|
|
164
|
+
moveHandleStyle: {
|
|
165
|
+
color: a,
|
|
166
|
+
opacity: .4
|
|
167
|
+
},
|
|
168
|
+
textStyle: {
|
|
169
|
+
color: a,
|
|
170
|
+
fontFamily: r,
|
|
171
|
+
fontSize: 10
|
|
172
|
+
}
|
|
173
|
+
}] : [],
|
|
174
|
+
tooltip: {
|
|
175
|
+
trigger: "axis",
|
|
176
|
+
axisPointer: {
|
|
177
|
+
type: "shadow",
|
|
178
|
+
shadowStyle: { color: x(i, .06) }
|
|
179
|
+
},
|
|
180
|
+
backgroundColor: s,
|
|
181
|
+
borderColor: o,
|
|
182
|
+
borderWidth: .5,
|
|
183
|
+
padding: [8, 12],
|
|
184
|
+
textStyle: {
|
|
185
|
+
color: i,
|
|
186
|
+
fontFamily: r,
|
|
187
|
+
fontSize: 12
|
|
188
|
+
},
|
|
189
|
+
extraCssText: `background: linear-gradient(180deg, #FFFFFF10 0%, #FFFFFF05 100%), ${s}; backdrop-filter: blur(40px); box-shadow: 0 12px 60px -2px #00000040; border-radius: 4px;`,
|
|
190
|
+
formatter: (e) => {
|
|
191
|
+
let t = e;
|
|
192
|
+
if (!t.length) return "";
|
|
193
|
+
let r = t.map((e) => `<div style="display:flex;align-items:center;gap:8px;"><span style="display:inline-block;width:8px;height:8px;border-radius:2px;background:${e.color};"></span>${n(e.seriesName)}<span style="margin-left:auto;padding-left:12px;font-weight:600;">${b.format(Number(e.value) || 0)}</span></div>`), s = t.filter((e) => (this.series[e.seriesIndex]?.type ?? "bar") === "bar"), c = s.reduce((e, t) => e + (Number(t.value) || 0), 0), l = s.length > 1 ? `<div style="display:flex;margin-top:4px;padding-top:4px;border-top:0.5px solid ${o};color:${a};">Total<span style="margin-left:auto;padding-left:12px;font-weight:600;color:${i};">${b.format(c)}</span></div>` : "";
|
|
194
|
+
return `<div style="margin-bottom:4px;color:${a};">${n(t[0].name)}</div>${r.join("")}${l}`;
|
|
195
|
+
}
|
|
196
|
+
},
|
|
197
|
+
legend: {
|
|
198
|
+
show: this.showLegend,
|
|
199
|
+
top: 0,
|
|
200
|
+
icon: "roundRect",
|
|
201
|
+
itemWidth: 10,
|
|
202
|
+
itemHeight: 10,
|
|
203
|
+
itemGap: 16,
|
|
204
|
+
textStyle: {
|
|
205
|
+
color: a,
|
|
206
|
+
fontFamily: r,
|
|
207
|
+
fontSize: 12
|
|
208
|
+
},
|
|
209
|
+
inactiveColor: this.readToken("--reke-color-text-disabled", "#3B3B3B")
|
|
210
|
+
},
|
|
211
|
+
xAxis: {
|
|
212
|
+
type: "category",
|
|
213
|
+
data: this.categories,
|
|
214
|
+
axisLine: { lineStyle: { color: o } },
|
|
215
|
+
axisTick: { show: !1 },
|
|
216
|
+
axisLabel: {
|
|
217
|
+
color: a,
|
|
218
|
+
fontFamily: r,
|
|
219
|
+
fontSize: 11
|
|
220
|
+
}
|
|
221
|
+
},
|
|
222
|
+
yAxis: {
|
|
223
|
+
type: "value",
|
|
224
|
+
splitLine: { lineStyle: {
|
|
225
|
+
color: o,
|
|
226
|
+
type: "dashed"
|
|
227
|
+
} },
|
|
228
|
+
axisLabel: {
|
|
229
|
+
color: a,
|
|
230
|
+
fontFamily: r,
|
|
231
|
+
fontSize: 11,
|
|
232
|
+
formatter: (e) => y.format(e)
|
|
233
|
+
}
|
|
234
|
+
},
|
|
235
|
+
series: this.series.map((e, t) => this.buildSeries(e, t, c))
|
|
236
|
+
};
|
|
237
|
+
}
|
|
238
|
+
itemRadius(e, t, n, r) {
|
|
239
|
+
if (!n) return 0;
|
|
240
|
+
let i = n > 0 ? [
|
|
241
|
+
4,
|
|
242
|
+
4,
|
|
243
|
+
0,
|
|
244
|
+
0
|
|
245
|
+
] : [
|
|
246
|
+
0,
|
|
247
|
+
0,
|
|
248
|
+
4,
|
|
249
|
+
4
|
|
250
|
+
];
|
|
251
|
+
if (!r) return i;
|
|
252
|
+
let a = -1;
|
|
253
|
+
return this.series.forEach((e, r) => {
|
|
254
|
+
let i = e.data[t] ?? 0;
|
|
255
|
+
(e.type ?? "bar") === "bar" && i !== 0 && Math.sign(i) === Math.sign(n) && (a = r);
|
|
256
|
+
}), e === a ? i : 0;
|
|
257
|
+
}
|
|
258
|
+
buildSeries(e, t, n) {
|
|
259
|
+
return e.type === "line" ? {
|
|
260
|
+
type: "line",
|
|
261
|
+
name: e.name,
|
|
262
|
+
data: e.data,
|
|
263
|
+
smooth: !0,
|
|
264
|
+
symbol: "circle",
|
|
265
|
+
symbolSize: 4,
|
|
266
|
+
showSymbol: !1,
|
|
267
|
+
lineStyle: {
|
|
268
|
+
width: 2,
|
|
269
|
+
color: e.color
|
|
270
|
+
},
|
|
271
|
+
itemStyle: { color: e.color },
|
|
272
|
+
emphasis: { focus: "series" },
|
|
273
|
+
z: 3
|
|
274
|
+
} : {
|
|
275
|
+
type: "bar",
|
|
276
|
+
name: e.name,
|
|
277
|
+
data: e.data.map((e, r) => ({
|
|
278
|
+
value: e,
|
|
279
|
+
itemStyle: { borderRadius: this.itemRadius(t, r, e, n) }
|
|
280
|
+
})),
|
|
281
|
+
stack: n ? v : void 0,
|
|
282
|
+
barMaxWidth: 32,
|
|
283
|
+
barGap: "20%",
|
|
284
|
+
itemStyle: { color: e.color },
|
|
285
|
+
emphasis: { focus: "series" },
|
|
286
|
+
blur: { itemStyle: { opacity: .35 } },
|
|
287
|
+
animationDelay: (e) => Math.min(e, 24) * 20
|
|
288
|
+
};
|
|
289
|
+
}
|
|
290
|
+
render() {
|
|
291
|
+
return m`
|
|
292
|
+
<div class="frame">
|
|
293
|
+
<div part="chart" class="chart" role="img" aria-label=${this.chartAriaLabel}></div>
|
|
294
|
+
</div>
|
|
295
|
+
<ul class="sr-only">
|
|
296
|
+
${this.categories.map((e, t) => m`<li>${this.describeCategory(t)}</li>`)}
|
|
297
|
+
</ul>
|
|
298
|
+
`;
|
|
299
|
+
}
|
|
300
|
+
};
|
|
301
|
+
t([g({ attribute: !1 })], S.prototype, "categories", void 0), t([g({ attribute: !1 })], S.prototype, "series", void 0), t([g()], S.prototype, "label", void 0), t([g({
|
|
302
|
+
type: Boolean,
|
|
303
|
+
reflect: !0
|
|
304
|
+
})], S.prototype, "stacked", void 0), t([g({
|
|
305
|
+
type: Boolean,
|
|
306
|
+
attribute: "show-legend",
|
|
307
|
+
reflect: !0
|
|
308
|
+
})], S.prototype, "showLegend", void 0), t([g({
|
|
309
|
+
type: Boolean,
|
|
310
|
+
reflect: !0
|
|
311
|
+
})], S.prototype, "loading", void 0), t([g({ attribute: !1 })], S.prototype, "palette", void 0), t([g({
|
|
312
|
+
type: Number,
|
|
313
|
+
attribute: "animation-duration"
|
|
314
|
+
})], S.prototype, "animationDuration", void 0), t([g({
|
|
315
|
+
type: Number,
|
|
316
|
+
attribute: "max-visible"
|
|
317
|
+
})], S.prototype, "maxVisible", void 0), S = t([h("reke-bar-chart")], S);
|
|
318
|
+
//#endregion
|
|
319
|
+
export { S as RekeBarChart };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"reke-bar-chart.styles.d.ts","sourceRoot":"","sources":["../../../src/components/reke-bar-chart/reke-bar-chart.styles.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,MAAM,2BAiClB,CAAC"}
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import { tailwindStyles as e } from "../../shared/tailwind-styles.js";
|
|
2
|
+
import { css as t } from "lit";
|
|
3
|
+
//#region src/components/reke-bar-chart/reke-bar-chart.styles.ts
|
|
4
|
+
var n = [e, t`
|
|
5
|
+
:host {
|
|
6
|
+
display: block;
|
|
7
|
+
width: 100%;
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
.frame {
|
|
11
|
+
position: relative;
|
|
12
|
+
width: 100%;
|
|
13
|
+
height: var(--reke-bar-chart-height, 280px);
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
.chart {
|
|
17
|
+
box-sizing: border-box;
|
|
18
|
+
width: 100%;
|
|
19
|
+
height: 100%;
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
/* Visually hidden but readable by screen readers — canvas is opaque to AT. */
|
|
23
|
+
.sr-only {
|
|
24
|
+
position: absolute;
|
|
25
|
+
width: 1px;
|
|
26
|
+
height: 1px;
|
|
27
|
+
padding: 0;
|
|
28
|
+
margin: -1px;
|
|
29
|
+
overflow: hidden;
|
|
30
|
+
clip: rect(0, 0, 0, 0);
|
|
31
|
+
white-space: nowrap;
|
|
32
|
+
border: 0;
|
|
33
|
+
}
|
|
34
|
+
`];
|
|
35
|
+
//#endregion
|
|
36
|
+
export { n as styles };
|
package/dist/index.d.ts
CHANGED
|
@@ -2,6 +2,8 @@ export type { AlertVariant } from './components/reke-alert/reke-alert.js';
|
|
|
2
2
|
export { RekeAlert } from './components/reke-alert/reke-alert.js';
|
|
3
3
|
export type { BadgeShape, BadgeSize, BadgeVariant } from './components/reke-badge/reke-badge.js';
|
|
4
4
|
export { RekeBadge } from './components/reke-badge/reke-badge.js';
|
|
5
|
+
export type { BarChartSelectDetail, BarChartSeries, } from './components/reke-bar-chart/reke-bar-chart.js';
|
|
6
|
+
export { RekeBarChart } from './components/reke-bar-chart/reke-bar-chart.js';
|
|
5
7
|
export type { ButtonSize, ButtonVariant } from './components/reke-button/reke-button.js';
|
|
6
8
|
export { RekeButton } from './components/reke-button/reke-button.js';
|
|
7
9
|
export type { CardAccent, CardPadding, CardVariant } from './components/reke-card/reke-card.js';
|
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,YAAY,EAAE,YAAY,EAAE,MAAM,uCAAuC,CAAC;AAC1E,OAAO,EAAE,SAAS,EAAE,MAAM,uCAAuC,CAAC;AAClE,YAAY,EAAE,UAAU,EAAE,SAAS,EAAE,YAAY,EAAE,MAAM,uCAAuC,CAAC;AACjG,OAAO,EAAE,SAAS,EAAE,MAAM,uCAAuC,CAAC;AAClE,YAAY,EAAE,UAAU,EAAE,aAAa,EAAE,MAAM,yCAAyC,CAAC;AACzF,OAAO,EAAE,UAAU,EAAE,MAAM,yCAAyC,CAAC;AACrE,YAAY,EAAE,UAAU,EAAE,WAAW,EAAE,WAAW,EAAE,MAAM,qCAAqC,CAAC;AAChG,OAAO,EAAE,QAAQ,EAAE,MAAM,qCAAqC,CAAC;AAC/D,OAAO,EAAE,YAAY,EAAE,MAAM,6CAA6C,CAAC;AAC3E,YAAY,EAAE,SAAS,EAAE,MAAM,qCAAqC,CAAC;AACrE,OAAO,EAAE,QAAQ,EAAE,MAAM,qCAAqC,CAAC;AAC/D,YAAY,EACV,cAAc,EACd,oBAAoB,EACpB,YAAY,GACb,MAAM,6CAA6C,CAAC;AACrD,OAAO,EAAE,YAAY,EAAE,MAAM,6CAA6C,CAAC;AAC3E,YAAY,EAAE,cAAc,EAAE,MAAM,iDAAiD,CAAC;AACtF,OAAO,EAAE,aAAa,EAAE,MAAM,iDAAiD,CAAC;AAChF,YAAY,EAAE,aAAa,EAAE,cAAc,EAAE,MAAM,yCAAyC,CAAC;AAC7F,OAAO,EAAE,UAAU,EAAE,MAAM,yCAAyC,CAAC;AACrE,OAAO,EAAE,cAAc,EAAE,MAAM,mDAAmD,CAAC;AACnF,YAAY,EAAE,SAAS,EAAE,MAAM,uCAAuC,CAAC;AACvE,OAAO,EAAE,SAAS,EAAE,MAAM,uCAAuC,CAAC;AAClE,OAAO,EAAE,QAAQ,EAAE,MAAM,qCAAqC,CAAC;AAC/D,YAAY,EAAE,eAAe,EAAE,MAAM,+CAA+C,CAAC;AACrF,OAAO,EAAE,YAAY,EAAE,MAAM,+CAA+C,CAAC;AAC7E,YAAY,EACV,aAAa,EACb,oBAAoB,EACpB,eAAe,GAChB,MAAM,+CAA+C,CAAC;AACvD,OAAO,EAAE,YAAY,EAAE,MAAM,+CAA+C,CAAC;AAC7E,YAAY,EAAE,mBAAmB,EAAE,MAAM,6CAA6C,CAAC;AACvF,OAAO,EAAE,YAAY,EAAE,MAAM,6CAA6C,CAAC;AAC3E,YAAY,EAAE,UAAU,EAAE,MAAM,yCAAyC,CAAC;AAC1E,OAAO,EAAE,UAAU,EAAE,MAAM,yCAAyC,CAAC;AACrE,YAAY,EACV,OAAO,EACP,kBAAkB,EAClB,SAAS,EACT,MAAM,EACN,WAAW,EACX,QAAQ,GACT,MAAM,uCAAuC,CAAC;AAC/C,OAAO,EAAE,SAAS,EAAE,MAAM,uCAAuC,CAAC;AAClE,YAAY,EAAE,YAAY,EAAE,MAAM,6CAA6C,CAAC;AAChF,OAAO,EAAE,YAAY,EAAE,MAAM,6CAA6C,CAAC;AAC3E,YAAY,EAAE,YAAY,EAAE,MAAM,uCAAuC,CAAC;AAC1E,OAAO,EAAE,SAAS,EAAE,MAAM,uCAAuC,CAAC;AAClE,OAAO,EAAE,UAAU,EAAE,MAAM,yCAAyC,CAAC;AACrE,YAAY,EAAE,eAAe,EAAE,MAAM,2CAA2C,CAAC;AACjF,OAAO,EAAE,WAAW,EAAE,MAAM,2CAA2C,CAAC;AACxE,OAAO,EAAE,WAAW,EAAE,MAAM,0BAA0B,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,YAAY,EAAE,YAAY,EAAE,MAAM,uCAAuC,CAAC;AAC1E,OAAO,EAAE,SAAS,EAAE,MAAM,uCAAuC,CAAC;AAClE,YAAY,EAAE,UAAU,EAAE,SAAS,EAAE,YAAY,EAAE,MAAM,uCAAuC,CAAC;AACjG,OAAO,EAAE,SAAS,EAAE,MAAM,uCAAuC,CAAC;AAClE,YAAY,EACV,oBAAoB,EACpB,cAAc,GACf,MAAM,+CAA+C,CAAC;AACvD,OAAO,EAAE,YAAY,EAAE,MAAM,+CAA+C,CAAC;AAC7E,YAAY,EAAE,UAAU,EAAE,aAAa,EAAE,MAAM,yCAAyC,CAAC;AACzF,OAAO,EAAE,UAAU,EAAE,MAAM,yCAAyC,CAAC;AACrE,YAAY,EAAE,UAAU,EAAE,WAAW,EAAE,WAAW,EAAE,MAAM,qCAAqC,CAAC;AAChG,OAAO,EAAE,QAAQ,EAAE,MAAM,qCAAqC,CAAC;AAC/D,OAAO,EAAE,YAAY,EAAE,MAAM,6CAA6C,CAAC;AAC3E,YAAY,EAAE,SAAS,EAAE,MAAM,qCAAqC,CAAC;AACrE,OAAO,EAAE,QAAQ,EAAE,MAAM,qCAAqC,CAAC;AAC/D,YAAY,EACV,cAAc,EACd,oBAAoB,EACpB,YAAY,GACb,MAAM,6CAA6C,CAAC;AACrD,OAAO,EAAE,YAAY,EAAE,MAAM,6CAA6C,CAAC;AAC3E,YAAY,EAAE,cAAc,EAAE,MAAM,iDAAiD,CAAC;AACtF,OAAO,EAAE,aAAa,EAAE,MAAM,iDAAiD,CAAC;AAChF,YAAY,EAAE,aAAa,EAAE,cAAc,EAAE,MAAM,yCAAyC,CAAC;AAC7F,OAAO,EAAE,UAAU,EAAE,MAAM,yCAAyC,CAAC;AACrE,OAAO,EAAE,cAAc,EAAE,MAAM,mDAAmD,CAAC;AACnF,YAAY,EAAE,SAAS,EAAE,MAAM,uCAAuC,CAAC;AACvE,OAAO,EAAE,SAAS,EAAE,MAAM,uCAAuC,CAAC;AAClE,OAAO,EAAE,QAAQ,EAAE,MAAM,qCAAqC,CAAC;AAC/D,YAAY,EAAE,eAAe,EAAE,MAAM,+CAA+C,CAAC;AACrF,OAAO,EAAE,YAAY,EAAE,MAAM,+CAA+C,CAAC;AAC7E,YAAY,EACV,aAAa,EACb,oBAAoB,EACpB,eAAe,GAChB,MAAM,+CAA+C,CAAC;AACvD,OAAO,EAAE,YAAY,EAAE,MAAM,+CAA+C,CAAC;AAC7E,YAAY,EAAE,mBAAmB,EAAE,MAAM,6CAA6C,CAAC;AACvF,OAAO,EAAE,YAAY,EAAE,MAAM,6CAA6C,CAAC;AAC3E,YAAY,EAAE,UAAU,EAAE,MAAM,yCAAyC,CAAC;AAC1E,OAAO,EAAE,UAAU,EAAE,MAAM,yCAAyC,CAAC;AACrE,YAAY,EACV,OAAO,EACP,kBAAkB,EAClB,SAAS,EACT,MAAM,EACN,WAAW,EACX,QAAQ,GACT,MAAM,uCAAuC,CAAC;AAC/C,OAAO,EAAE,SAAS,EAAE,MAAM,uCAAuC,CAAC;AAClE,YAAY,EAAE,YAAY,EAAE,MAAM,6CAA6C,CAAC;AAChF,OAAO,EAAE,YAAY,EAAE,MAAM,6CAA6C,CAAC;AAC3E,YAAY,EAAE,YAAY,EAAE,MAAM,uCAAuC,CAAC;AAC1E,OAAO,EAAE,SAAS,EAAE,MAAM,uCAAuC,CAAC;AAClE,OAAO,EAAE,UAAU,EAAE,MAAM,yCAAyC,CAAC;AACrE,YAAY,EAAE,eAAe,EAAE,MAAM,2CAA2C,CAAC;AACjF,OAAO,EAAE,WAAW,EAAE,MAAM,2CAA2C,CAAC;AACxE,OAAO,EAAE,WAAW,EAAE,MAAM,0BAA0B,CAAC"}
|
package/dist/index.js
CHANGED
|
@@ -1,23 +1,24 @@
|
|
|
1
1
|
import { RekeElement as e } from "./shared/base-element.js";
|
|
2
2
|
import { RekeAlert as t } from "./components/reke-alert/reke-alert.js";
|
|
3
3
|
import { RekeBadge as n } from "./components/reke-badge/reke-badge.js";
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
10
|
-
import {
|
|
11
|
-
import {
|
|
12
|
-
import {
|
|
13
|
-
import {
|
|
14
|
-
import {
|
|
15
|
-
import {
|
|
16
|
-
import {
|
|
17
|
-
import {
|
|
18
|
-
import {
|
|
19
|
-
import {
|
|
20
|
-
import {
|
|
21
|
-
import {
|
|
22
|
-
import {
|
|
23
|
-
|
|
4
|
+
import { RekeBarChart as r } from "./components/reke-bar-chart/reke-bar-chart.js";
|
|
5
|
+
import { RekeButton as i } from "./components/reke-button/reke-button.js";
|
|
6
|
+
import { RekeCard as a } from "./components/reke-card/reke-card.js";
|
|
7
|
+
import { RekeCheckbox as o } from "./components/reke-checkbox/reke-checkbox.js";
|
|
8
|
+
import { RekeChip as s } from "./components/reke-chip/reke-chip.js";
|
|
9
|
+
import { RekeCombobox as c } from "./components/reke-combobox/reke-combobox.js";
|
|
10
|
+
import { RekeDateRange as l } from "./components/reke-date-range/reke-date-range.js";
|
|
11
|
+
import { RekeDialog as u } from "./components/reke-dialog/reke-dialog.js";
|
|
12
|
+
import { RekeFileUpload as d } from "./components/reke-file-upload/reke-file-upload.js";
|
|
13
|
+
import { RekeInput as f } from "./components/reke-input/reke-input.js";
|
|
14
|
+
import { RekeMenu as p } from "./components/reke-menu/reke-menu.js";
|
|
15
|
+
import { RekeMenuItem as m } from "./components/reke-menu-item/reke-menu-item.js";
|
|
16
|
+
import { RekePieChart as h } from "./components/reke-pie-chart/reke-pie-chart.js";
|
|
17
|
+
import { RekeProgress as g } from "./components/reke-progress/reke-progress.js";
|
|
18
|
+
import { RekeSelect as _ } from "./components/reke-select/reke-select.js";
|
|
19
|
+
import { RekeTable as v } from "./components/reke-table/reke-table.js";
|
|
20
|
+
import { RekeTextarea as y } from "./components/reke-textarea/reke-textarea.js";
|
|
21
|
+
import { RekeToast as b } from "./components/reke-toast/reke-toast.js";
|
|
22
|
+
import { RekeToggle as x } from "./components/reke-toggle/reke-toggle.js";
|
|
23
|
+
import { RekeTooltip as S } from "./components/reke-tooltip/reke-tooltip.js";
|
|
24
|
+
export { t as RekeAlert, n as RekeBadge, r as RekeBarChart, i as RekeButton, a as RekeCard, o as RekeCheckbox, s as RekeChip, c as RekeCombobox, l as RekeDateRange, u as RekeDialog, e as RekeElement, d as RekeFileUpload, f as RekeInput, p as RekeMenu, m as RekeMenuItem, h as RekePieChart, g as RekeProgress, _ as RekeSelect, v as RekeTable, y as RekeTextarea, b as RekeToast, x as RekeToggle, S as RekeTooltip };
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
import { __extends as e } from "../../../node_modules/tslib/tslib.es6.js";
|
|
2
|
+
import { preparePipelineContext as t } from "../../util/model.js";
|
|
3
|
+
import n from "../helper/createSeriesData.js";
|
|
4
|
+
import { inheritDefaultOption as r } from "../../util/component.js";
|
|
5
|
+
import i from "../../visual/tokens.js";
|
|
6
|
+
import a from "./BaseBarSeries.js";
|
|
7
|
+
//#region node_modules/echarts/lib/chart/bar/BarSeries.js
|
|
8
|
+
var o = function(o) {
|
|
9
|
+
e(s, o);
|
|
10
|
+
function s() {
|
|
11
|
+
var e = o !== null && o.apply(this, arguments) || this;
|
|
12
|
+
return e.type = s.type, e;
|
|
13
|
+
}
|
|
14
|
+
return s.prototype.getInitialData = function() {
|
|
15
|
+
return n(null, this, {
|
|
16
|
+
useEncodeDefaulter: !0,
|
|
17
|
+
createInvertedIndices: !!this.get("realtimeSort", !0) || null
|
|
18
|
+
});
|
|
19
|
+
}, s.prototype.getProgressive = function() {
|
|
20
|
+
return this.get("large") ? this.get("progressive") : !1;
|
|
21
|
+
}, s.prototype.__preparePipelineContext = function(e, n) {
|
|
22
|
+
var r = t(this, e, n);
|
|
23
|
+
return r.progressiveRender && (r.large = !0), r;
|
|
24
|
+
}, s.prototype.brushSelector = function(e, t, n) {
|
|
25
|
+
return n.rect(t.getItemLayout(e));
|
|
26
|
+
}, s.type = "series.bar", s.dependencies = ["grid", "polar"], s.defaultOption = r(a.defaultOption, {
|
|
27
|
+
clip: !0,
|
|
28
|
+
roundCap: !1,
|
|
29
|
+
showBackground: !1,
|
|
30
|
+
backgroundStyle: {
|
|
31
|
+
color: "rgba(180, 180, 180, 0.2)",
|
|
32
|
+
borderColor: null,
|
|
33
|
+
borderWidth: 0,
|
|
34
|
+
borderType: "solid",
|
|
35
|
+
borderRadius: 0,
|
|
36
|
+
shadowBlur: 0,
|
|
37
|
+
shadowColor: null,
|
|
38
|
+
shadowOffsetX: 0,
|
|
39
|
+
shadowOffsetY: 0,
|
|
40
|
+
opacity: 1
|
|
41
|
+
},
|
|
42
|
+
select: { itemStyle: {
|
|
43
|
+
borderColor: i.color.primary,
|
|
44
|
+
borderWidth: 2
|
|
45
|
+
} },
|
|
46
|
+
realtimeSort: !1
|
|
47
|
+
}), s;
|
|
48
|
+
}(a);
|
|
49
|
+
//#endregion
|
|
50
|
+
export { o as default };
|