reke-ui 0.3.0 → 0.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/custom-elements.json +991 -20
- package/dist/_virtual/_rolldown/runtime.js +11 -0
- package/dist/components/reke-chip/reke-chip.d.ts +7 -0
- package/dist/components/reke-chip/reke-chip.d.ts.map +1 -1
- package/dist/components/reke-chip/reke-chip.js +8 -2
- package/dist/components/reke-chip/reke-chip.styles.d.ts.map +1 -1
- package/dist/components/reke-chip/reke-chip.styles.js +32 -0
- package/dist/components/reke-combobox/reke-combobox.d.ts +21 -1
- package/dist/components/reke-combobox/reke-combobox.d.ts.map +1 -1
- package/dist/components/reke-combobox/reke-combobox.js +76 -16
- package/dist/components/reke-combobox/reke-combobox.styles.d.ts.map +1 -1
- package/dist/components/reke-combobox/reke-combobox.styles.js +128 -0
- package/dist/components/reke-input/reke-input.d.ts +14 -0
- package/dist/components/reke-input/reke-input.d.ts.map +1 -1
- package/dist/components/reke-input/reke-input.js +41 -22
- package/dist/components/reke-input/reke-input.styles.d.ts.map +1 -1
- package/dist/components/reke-input/reke-input.styles.js +44 -16
- package/dist/components/reke-menu/reke-menu.d.ts +51 -0
- package/dist/components/reke-menu/reke-menu.d.ts.map +1 -0
- package/dist/components/reke-menu/reke-menu.js +106 -0
- package/dist/components/reke-menu/reke-menu.styles.d.ts +2 -0
- package/dist/components/reke-menu/reke-menu.styles.d.ts.map +1 -0
- package/dist/components/reke-menu/reke-menu.styles.js +25 -0
- package/dist/components/reke-menu-item/reke-menu-item.d.ts +32 -0
- package/dist/components/reke-menu-item/reke-menu-item.d.ts.map +1 -0
- package/dist/components/reke-menu-item/reke-menu-item.js +49 -0
- package/dist/components/reke-menu-item/reke-menu-item.styles.d.ts +2 -0
- package/dist/components/reke-menu-item/reke-menu-item.styles.d.ts.map +1 -0
- package/dist/components/reke-menu-item/reke-menu-item.styles.js +53 -0
- package/dist/components/reke-pie-chart/reke-pie-chart.d.ts +59 -0
- package/dist/components/reke-pie-chart/reke-pie-chart.d.ts.map +1 -0
- package/dist/components/reke-pie-chart/reke-pie-chart.js +117 -0
- package/dist/components/reke-pie-chart/reke-pie-chart.styles.d.ts +2 -0
- package/dist/components/reke-pie-chart/reke-pie-chart.styles.d.ts.map +1 -0
- package/dist/components/reke-pie-chart/reke-pie-chart.styles.js +28 -0
- package/dist/components/reke-table/reke-table.d.ts +1 -0
- package/dist/components/reke-table/reke-table.d.ts.map +1 -1
- package/dist/components/reke-table/reke-table.js +6 -0
- package/dist/index.d.ts +5 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +10 -7
- package/dist/node_modules/echarts/lib/animation/basicTransition.js +70 -0
- package/dist/node_modules/echarts/lib/chart/custom/customSeriesRegister.js +7 -0
- package/dist/node_modules/echarts/lib/chart/helper/createRenderPlanner.js +11 -0
- package/dist/node_modules/echarts/lib/chart/helper/createSeriesDataSimply.js +11 -0
- package/dist/node_modules/echarts/lib/chart/helper/sectorHelper.js +19 -0
- package/dist/node_modules/echarts/lib/chart/pie/PieSeries.js +112 -0
- package/dist/node_modules/echarts/lib/chart/pie/PieView.js +119 -0
- package/dist/node_modules/echarts/lib/chart/pie/install.js +12 -0
- package/dist/node_modules/echarts/lib/chart/pie/labelLayout.js +190 -0
- package/dist/node_modules/echarts/lib/chart/pie/pieLayout.js +72 -0
- package/dist/node_modules/echarts/lib/component/axis/AxisBuilder.js +554 -0
- package/dist/node_modules/echarts/lib/component/axis/AxisView.js +36 -0
- package/dist/node_modules/echarts/lib/component/axis/axisAction.js +4 -0
- package/dist/node_modules/echarts/lib/component/axis/axisBreakHelper.js +5 -0
- package/dist/node_modules/echarts/lib/component/axisPointer/AxisPointerModel.js +57 -0
- package/dist/node_modules/echarts/lib/component/axisPointer/AxisPointerView.js +28 -0
- package/dist/node_modules/echarts/lib/component/axisPointer/BaseAxisPointer.js +174 -0
- package/dist/node_modules/echarts/lib/component/axisPointer/CartesianAxisPointer.js +65 -0
- package/dist/node_modules/echarts/lib/component/axisPointer/axisTrigger.js +189 -0
- package/dist/node_modules/echarts/lib/component/axisPointer/findPointFromSeries.js +27 -0
- package/dist/node_modules/echarts/lib/component/axisPointer/globalListener.js +56 -0
- package/dist/node_modules/echarts/lib/component/axisPointer/install.js +25 -0
- package/dist/node_modules/echarts/lib/component/axisPointer/modelHelper.js +117 -0
- package/dist/node_modules/echarts/lib/component/axisPointer/viewHelper.js +103 -0
- package/dist/node_modules/echarts/lib/component/helper/listComponent.js +20 -0
- package/dist/node_modules/echarts/lib/component/legend/LegendModel.js +184 -0
- package/dist/node_modules/echarts/lib/component/legend/LegendView.js +227 -0
- package/dist/node_modules/echarts/lib/component/legend/ScrollableLegendModel.js +45 -0
- package/dist/node_modules/echarts/lib/component/legend/ScrollableLegendView.js +145 -0
- package/dist/node_modules/echarts/lib/component/legend/install.js +9 -0
- package/dist/node_modules/echarts/lib/component/legend/installLegendPlain.js +12 -0
- package/dist/node_modules/echarts/lib/component/legend/installLegendScroll.js +11 -0
- package/dist/node_modules/echarts/lib/component/legend/legendAction.js +38 -0
- package/dist/node_modules/echarts/lib/component/legend/legendFilter.js +12 -0
- package/dist/node_modules/echarts/lib/component/legend/scrollableLegendAction.js +15 -0
- package/dist/node_modules/echarts/lib/component/tooltip/TooltipHTMLContent.js +170 -0
- package/dist/node_modules/echarts/lib/component/tooltip/TooltipModel.js +55 -0
- package/dist/node_modules/echarts/lib/component/tooltip/TooltipRichContent.js +102 -0
- package/dist/node_modules/echarts/lib/component/tooltip/TooltipView.js +367 -0
- package/dist/node_modules/echarts/lib/component/tooltip/helper.js +37 -0
- package/dist/node_modules/echarts/lib/component/tooltip/install.js +19 -0
- package/dist/node_modules/echarts/lib/component/tooltip/seriesFormatTooltip.js +56 -0
- package/dist/node_modules/echarts/lib/component/tooltip/tooltipMarkup.js +173 -0
- package/dist/node_modules/echarts/lib/coord/axisBand.js +31 -0
- package/dist/node_modules/echarts/lib/coord/axisHelper.js +21 -0
- package/dist/node_modules/echarts/lib/coord/axisStatistics.js +38 -0
- package/dist/node_modules/echarts/lib/coord/axisTickLabelBuilder.js +14 -0
- package/dist/node_modules/echarts/lib/coord/cartesian/cartesianAxisHelper.js +31 -0
- package/dist/node_modules/echarts/lib/core/CoordinateSystem.js +50 -0
- package/dist/node_modules/echarts/lib/core/ExtensionAPI.js +32 -0
- package/dist/node_modules/echarts/lib/core/Scheduler.js +203 -0
- package/dist/node_modules/echarts/lib/core/echarts.js +986 -0
- package/dist/node_modules/echarts/lib/core/impl.js +11 -0
- package/dist/node_modules/echarts/lib/core/lifecycle.js +5 -0
- package/dist/node_modules/echarts/lib/core/locale.js +27 -0
- package/dist/node_modules/echarts/lib/core/task.js +81 -0
- package/dist/node_modules/echarts/lib/data/DataDiffer.js +68 -0
- package/dist/node_modules/echarts/lib/data/DataStore.js +359 -0
- package/dist/node_modules/echarts/lib/data/SeriesData.js +328 -0
- package/dist/node_modules/echarts/lib/data/SeriesDimensionDefine.js +10 -0
- package/dist/node_modules/echarts/lib/data/Source.js +132 -0
- package/dist/node_modules/echarts/lib/data/helper/SeriesDataSchema.js +80 -0
- package/dist/node_modules/echarts/lib/data/helper/createDimensions.js +105 -0
- package/dist/node_modules/echarts/lib/data/helper/dataProvider.js +155 -0
- package/dist/node_modules/echarts/lib/data/helper/dataValueHelper.js +87 -0
- package/dist/node_modules/echarts/lib/data/helper/dimensionHelper.js +50 -0
- package/dist/node_modules/echarts/lib/data/helper/sourceHelper.js +98 -0
- package/dist/node_modules/echarts/lib/data/helper/sourceManager.js +115 -0
- package/dist/node_modules/echarts/lib/data/helper/transform.js +145 -0
- package/dist/node_modules/echarts/lib/extension.js +62 -0
- package/dist/node_modules/echarts/lib/i18n/langEN.js +148 -0
- package/dist/node_modules/echarts/lib/i18n/langZH.js +148 -0
- package/dist/node_modules/echarts/lib/label/labelGuideHelper.js +106 -0
- package/dist/node_modules/echarts/lib/label/labelLayoutHelper.js +152 -0
- package/dist/node_modules/echarts/lib/label/labelStyle.js +190 -0
- package/dist/node_modules/echarts/lib/legacy/dataSelectAction.js +53 -0
- package/dist/node_modules/echarts/lib/loading/default.js +85 -0
- package/dist/node_modules/echarts/lib/model/Component.js +64 -0
- package/dist/node_modules/echarts/lib/model/Global.js +320 -0
- package/dist/node_modules/echarts/lib/model/Model.js +50 -0
- package/dist/node_modules/echarts/lib/model/OptionManager.js +78 -0
- package/dist/node_modules/echarts/lib/model/Series.js +216 -0
- package/dist/node_modules/echarts/lib/model/globalDefault.js +94 -0
- package/dist/node_modules/echarts/lib/model/internalComponentCreator.js +14 -0
- package/dist/node_modules/echarts/lib/model/mixin/areaStyle.js +16 -0
- package/dist/node_modules/echarts/lib/model/mixin/dataFormat.js +63 -0
- package/dist/node_modules/echarts/lib/model/mixin/itemStyle.js +24 -0
- package/dist/node_modules/echarts/lib/model/mixin/lineStyle.js +23 -0
- package/dist/node_modules/echarts/lib/model/mixin/makeStyleMapper.js +17 -0
- package/dist/node_modules/echarts/lib/model/mixin/palette.js +32 -0
- package/dist/node_modules/echarts/lib/model/mixin/textStyle.js +36 -0
- package/dist/node_modules/echarts/lib/preprocessor/backwardCompat.js +89 -0
- package/dist/node_modules/echarts/lib/preprocessor/helper/compatStyle.js +118 -0
- package/dist/node_modules/echarts/lib/processor/dataFilter.js +18 -0
- package/dist/node_modules/echarts/lib/processor/dataStack.js +52 -0
- package/dist/node_modules/echarts/lib/processor/negativeDataFilter.js +16 -0
- package/dist/node_modules/echarts/lib/renderer/installCanvasRenderer.js +7 -0
- package/dist/node_modules/echarts/lib/scale/break.js +9 -0
- package/dist/node_modules/echarts/lib/scale/helper.js +9 -0
- package/dist/node_modules/echarts/lib/scale/scaleMapper.js +26 -0
- package/dist/node_modules/echarts/lib/theme/dark.js +159 -0
- package/dist/node_modules/echarts/lib/util/ECEventProcessor.js +52 -0
- package/dist/node_modules/echarts/lib/util/clazz.js +99 -0
- package/dist/node_modules/echarts/lib/util/component.js +75 -0
- package/dist/node_modules/echarts/lib/util/cycleCache.js +14 -0
- package/dist/node_modules/echarts/lib/util/decal.js +162 -0
- package/dist/node_modules/echarts/lib/util/event.js +7 -0
- package/dist/node_modules/echarts/lib/util/format.js +87 -0
- package/dist/node_modules/echarts/lib/util/graphic.js +361 -0
- package/dist/node_modules/echarts/lib/util/innerStore.js +13 -0
- package/dist/node_modules/echarts/lib/util/layout.js +174 -0
- package/dist/node_modules/echarts/lib/util/log.js +54 -0
- package/dist/node_modules/echarts/lib/util/model.js +296 -0
- package/dist/node_modules/echarts/lib/util/number.js +132 -0
- package/dist/node_modules/echarts/lib/util/states.js +323 -0
- package/dist/node_modules/echarts/lib/util/symbol.js +146 -0
- package/dist/node_modules/echarts/lib/util/throttle.js +37 -0
- package/dist/node_modules/echarts/lib/util/time.js +43 -0
- package/dist/node_modules/echarts/lib/util/types.js +13 -0
- package/dist/node_modules/echarts/lib/view/Chart.js +81 -0
- package/dist/node_modules/echarts/lib/view/Component.js +16 -0
- package/dist/node_modules/echarts/lib/visual/LegendVisualProvider.js +18 -0
- package/dist/node_modules/echarts/lib/visual/decal.js +25 -0
- package/dist/node_modules/echarts/lib/visual/helper.js +23 -0
- package/dist/node_modules/echarts/lib/visual/style.js +79 -0
- package/dist/node_modules/echarts/lib/visual/symbol.js +47 -0
- package/dist/node_modules/echarts/lib/visual/tokens.js +108 -0
- package/dist/node_modules/echarts/node_modules/tslib/tslib.es6.js +18 -0
- package/dist/node_modules/zrender/lib/Element.js +442 -0
- package/dist/node_modules/zrender/lib/Handler.js +167 -0
- package/dist/node_modules/zrender/lib/Storage.js +68 -0
- package/dist/node_modules/zrender/lib/animation/Animation.js +65 -0
- package/dist/node_modules/zrender/lib/animation/Animator.js +348 -0
- package/dist/node_modules/zrender/lib/animation/Clip.js +31 -0
- package/dist/node_modules/zrender/lib/animation/cubicEasing.js +17 -0
- package/dist/node_modules/zrender/lib/animation/easing.js +104 -0
- package/dist/node_modules/zrender/lib/animation/requestAnimationFrame.js +7 -0
- package/dist/node_modules/zrender/lib/canvas/Layer.js +135 -0
- package/dist/node_modules/zrender/lib/canvas/Painter.js +352 -0
- package/dist/node_modules/zrender/lib/canvas/dashStyle.js +17 -0
- package/dist/node_modules/zrender/lib/canvas/graphic.js +199 -0
- package/dist/node_modules/zrender/lib/canvas/helper.js +33 -0
- package/dist/node_modules/zrender/lib/config.js +7 -0
- package/dist/node_modules/zrender/lib/contain/arc.js +20 -0
- package/dist/node_modules/zrender/lib/contain/cubic.js +9 -0
- package/dist/node_modules/zrender/lib/contain/line.js +12 -0
- package/dist/node_modules/zrender/lib/contain/path.js +133 -0
- package/dist/node_modules/zrender/lib/contain/quadratic.js +9 -0
- package/dist/node_modules/zrender/lib/contain/text.js +106 -0
- package/dist/node_modules/zrender/lib/contain/util.js +7 -0
- package/dist/node_modules/zrender/lib/contain/windingLine.js +10 -0
- package/dist/node_modules/zrender/lib/core/BoundingRect.js +111 -0
- package/dist/node_modules/zrender/lib/core/Eventful.js +82 -0
- package/dist/node_modules/zrender/lib/core/GestureMgr.js +56 -0
- package/dist/node_modules/zrender/lib/core/LRU.js +49 -0
- package/dist/node_modules/zrender/lib/core/OrientedBoundingRect.js +41 -0
- package/dist/node_modules/zrender/lib/core/PathProxy.js +288 -0
- package/dist/node_modules/zrender/lib/core/Point.js +72 -0
- package/dist/node_modules/zrender/lib/core/Transformable.js +96 -0
- package/dist/node_modules/zrender/lib/core/WeakMap.js +25 -0
- package/dist/node_modules/zrender/lib/core/bbox.js +40 -0
- package/dist/node_modules/zrender/lib/core/curve.js +142 -0
- package/dist/node_modules/zrender/lib/core/dom.js +74 -0
- package/dist/node_modules/zrender/lib/core/env.js +22 -0
- package/dist/node_modules/zrender/lib/core/event.js +58 -0
- package/dist/node_modules/zrender/lib/core/fourPointsTransform.js +109 -0
- package/dist/node_modules/zrender/lib/core/matrix.js +39 -0
- package/dist/node_modules/zrender/lib/core/platform.js +42 -0
- package/dist/node_modules/zrender/lib/core/timsort.js +246 -0
- package/dist/node_modules/zrender/lib/core/util.js +314 -0
- package/dist/node_modules/zrender/lib/core/vector.js +52 -0
- package/dist/node_modules/zrender/lib/dom/HandlerProxy.js +190 -0
- package/dist/node_modules/zrender/lib/graphic/CompoundPath.js +25 -0
- package/dist/node_modules/zrender/lib/graphic/Displayable.js +133 -0
- package/dist/node_modules/zrender/lib/graphic/Gradient.js +14 -0
- package/dist/node_modules/zrender/lib/graphic/Group.js +86 -0
- package/dist/node_modules/zrender/lib/graphic/Image.js +49 -0
- package/dist/node_modules/zrender/lib/graphic/IncrementalDisplayable.js +65 -0
- package/dist/node_modules/zrender/lib/graphic/LinearGradient.js +13 -0
- package/dist/node_modules/zrender/lib/graphic/Path.js +200 -0
- package/dist/node_modules/zrender/lib/graphic/RadialGradient.js +13 -0
- package/dist/node_modules/zrender/lib/graphic/TSpan.js +39 -0
- package/dist/node_modules/zrender/lib/graphic/Text.js +216 -0
- package/dist/node_modules/zrender/lib/graphic/helper/image.js +39 -0
- package/dist/node_modules/zrender/lib/graphic/helper/parseText.js +226 -0
- package/dist/node_modules/zrender/lib/graphic/helper/poly.js +21 -0
- package/dist/node_modules/zrender/lib/graphic/helper/roundRect.js +9 -0
- package/dist/node_modules/zrender/lib/graphic/helper/roundSector.js +85 -0
- package/dist/node_modules/zrender/lib/graphic/helper/smoothBezier.js +26 -0
- package/dist/node_modules/zrender/lib/graphic/helper/subPixelOptimize.js +25 -0
- package/dist/node_modules/zrender/lib/graphic/shape/Arc.js +28 -0
- package/dist/node_modules/zrender/lib/graphic/shape/BezierCurve.js +40 -0
- package/dist/node_modules/zrender/lib/graphic/shape/Circle.js +22 -0
- package/dist/node_modules/zrender/lib/graphic/shape/Ellipse.js +23 -0
- package/dist/node_modules/zrender/lib/graphic/shape/Line.js +37 -0
- package/dist/node_modules/zrender/lib/graphic/shape/Polygon.js +23 -0
- package/dist/node_modules/zrender/lib/graphic/shape/Polyline.js +28 -0
- package/dist/node_modules/zrender/lib/graphic/shape/Rect.js +31 -0
- package/dist/node_modules/zrender/lib/graphic/shape/Ring.js +23 -0
- package/dist/node_modules/zrender/lib/graphic/shape/Sector.js +25 -0
- package/dist/node_modules/zrender/lib/mixin/Draggable.js +28 -0
- package/dist/node_modules/zrender/lib/svg/helper.js +19 -0
- package/dist/node_modules/zrender/lib/tool/color.js +1039 -0
- package/dist/node_modules/zrender/lib/tool/path.js +153 -0
- package/dist/node_modules/zrender/lib/tool/transformPath.js +41 -0
- package/dist/node_modules/zrender/lib/zrender.js +124 -0
- package/dist/node_modules/zrender/node_modules/tslib/tslib.es6.js +18 -0
- package/dist/react-bridge/table.d.ts.map +1 -1
- package/dist/react-bridge/table.js +36 -21
- package/dist/react.d.ts +8 -0
- package/dist/react.d.ts.map +1 -1
- package/dist/react.js +58 -46
- package/dist/shared/base-element.d.ts +1 -0
- package/dist/shared/base-element.d.ts.map +1 -1
- package/dist/shared/base-element.js +6 -0
- package/dist/shared/tailwind.js +1 -1
- package/dist/tokens/reke-tokens.css +15 -0
- package/package.json +14 -1
|
@@ -0,0 +1,117 @@
|
|
|
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 { install as n } from "../../node_modules/echarts/lib/chart/pie/install.js";
|
|
4
|
+
import { init as r } from "../../node_modules/echarts/lib/core/echarts.js";
|
|
5
|
+
import { use as i } from "../../node_modules/echarts/lib/extension.js";
|
|
6
|
+
import { install as a } from "../../node_modules/echarts/lib/component/tooltip/install.js";
|
|
7
|
+
import { install as o } from "../../node_modules/echarts/lib/component/legend/install.js";
|
|
8
|
+
import { install as s } from "../../node_modules/echarts/lib/renderer/installCanvasRenderer.js";
|
|
9
|
+
import { styles as c } from "./reke-pie-chart.styles.js";
|
|
10
|
+
import { html as l } from "lit";
|
|
11
|
+
import { customElement as u, property as d } from "lit/decorators.js";
|
|
12
|
+
//#region src/components/reke-pie-chart/reke-pie-chart.ts
|
|
13
|
+
i([
|
|
14
|
+
n,
|
|
15
|
+
a,
|
|
16
|
+
o,
|
|
17
|
+
s
|
|
18
|
+
]);
|
|
19
|
+
var f = [
|
|
20
|
+
"#22C55E",
|
|
21
|
+
"#3B82F6",
|
|
22
|
+
"#F59E0B",
|
|
23
|
+
"#EF4444",
|
|
24
|
+
"#A855F7",
|
|
25
|
+
"#14B8A6"
|
|
26
|
+
], p = class extends e {
|
|
27
|
+
constructor(...e) {
|
|
28
|
+
super(...e), this.data = [], this.variant = "donut", this.label = "Pie chart", this.showLegend = !1, this.loading = !1;
|
|
29
|
+
}
|
|
30
|
+
static {
|
|
31
|
+
this.styles = c;
|
|
32
|
+
}
|
|
33
|
+
readToken(e, t) {
|
|
34
|
+
return getComputedStyle(this).getPropertyValue(e).trim() || t;
|
|
35
|
+
}
|
|
36
|
+
resolvePalette() {
|
|
37
|
+
return this.palette?.length ? this.palette : f.map((e, t) => this.readToken(`--reke-chart-${t + 1}`, e));
|
|
38
|
+
}
|
|
39
|
+
firstUpdated() {
|
|
40
|
+
let e = this.renderRoot.querySelector(".chart");
|
|
41
|
+
this.chart = r(e), this.chart.setOption(this.buildOption()), this.applyLoading(), this.chart.on("click", (e) => {
|
|
42
|
+
this.emit("reke-pie-chart-select", {
|
|
43
|
+
name: String(e.name),
|
|
44
|
+
value: Number(e.value),
|
|
45
|
+
percent: Number(e.percent ?? 0)
|
|
46
|
+
});
|
|
47
|
+
}), this.observer = new ResizeObserver(() => this.chart?.resize()), this.observer.observe(e);
|
|
48
|
+
}
|
|
49
|
+
updated(e) {
|
|
50
|
+
this.chart && ((e.has("data") || e.has("variant") || e.has("showLegend") || e.has("palette")) && this.chart.setOption(this.buildOption(), !0), e.has("loading") && this.applyLoading());
|
|
51
|
+
}
|
|
52
|
+
applyLoading() {
|
|
53
|
+
this.loading ? this.chart?.showLoading("default", {
|
|
54
|
+
text: "",
|
|
55
|
+
color: this.readToken("--reke-color-primary", "#22C55E"),
|
|
56
|
+
maskColor: "rgba(10, 10, 11, 0.4)"
|
|
57
|
+
}) : this.chart?.hideLoading();
|
|
58
|
+
}
|
|
59
|
+
disconnectedCallback() {
|
|
60
|
+
super.disconnectedCallback(), this.observer?.disconnect(), this.chart?.dispose(), this.chart = void 0;
|
|
61
|
+
}
|
|
62
|
+
get total() {
|
|
63
|
+
return this.data.reduce((e, t) => e + t.value, 0) || 1;
|
|
64
|
+
}
|
|
65
|
+
get chartAriaLabel() {
|
|
66
|
+
let e = this.data.map((e) => `${e.name} ${Math.round(e.value / this.total * 100)}%`);
|
|
67
|
+
return `${this.label}. ${e.join(", ")}`;
|
|
68
|
+
}
|
|
69
|
+
buildOption() {
|
|
70
|
+
return {
|
|
71
|
+
color: this.resolvePalette(),
|
|
72
|
+
aria: { enabled: !0 },
|
|
73
|
+
tooltip: {
|
|
74
|
+
trigger: "item",
|
|
75
|
+
formatter: "{b}: {c} ({d}%)"
|
|
76
|
+
},
|
|
77
|
+
legend: this.showLegend ? { bottom: 0 } : void 0,
|
|
78
|
+
series: [{
|
|
79
|
+
type: "pie",
|
|
80
|
+
radius: this.variant === "donut" ? ["55%", "75%"] : "75%",
|
|
81
|
+
center: ["50%", this.showLegend ? "45%" : "50%"],
|
|
82
|
+
avoidLabelOverlap: !0,
|
|
83
|
+
label: { show: this.variant === "pie" },
|
|
84
|
+
data: this.data.map((e) => ({
|
|
85
|
+
name: e.name,
|
|
86
|
+
value: e.value,
|
|
87
|
+
itemStyle: e.color ? { color: e.color } : void 0
|
|
88
|
+
}))
|
|
89
|
+
}]
|
|
90
|
+
};
|
|
91
|
+
}
|
|
92
|
+
render() {
|
|
93
|
+
let e = this.size ? `${this.size}px` : "100%";
|
|
94
|
+
return l`
|
|
95
|
+
<div
|
|
96
|
+
part="chart"
|
|
97
|
+
class="chart"
|
|
98
|
+
role="img"
|
|
99
|
+
aria-label=${this.chartAriaLabel}
|
|
100
|
+
style="width:${e};height:${this.size ? `${this.size}px` : "240px"};"
|
|
101
|
+
></div>
|
|
102
|
+
<ul class="sr-only">
|
|
103
|
+
${this.data.map((e) => l`<li>${e.name}: ${Math.round(e.value / this.total * 100)}%</li>`)}
|
|
104
|
+
</ul>
|
|
105
|
+
`;
|
|
106
|
+
}
|
|
107
|
+
};
|
|
108
|
+
t([d({ attribute: !1 })], p.prototype, "data", void 0), t([d({ reflect: !0 })], p.prototype, "variant", void 0), t([d()], p.prototype, "label", void 0), t([d({ type: Number })], p.prototype, "size", void 0), t([d({
|
|
109
|
+
type: Boolean,
|
|
110
|
+
attribute: "show-legend",
|
|
111
|
+
reflect: !0
|
|
112
|
+
})], p.prototype, "showLegend", void 0), t([d({
|
|
113
|
+
type: Boolean,
|
|
114
|
+
reflect: !0
|
|
115
|
+
})], p.prototype, "loading", void 0), t([d({ attribute: !1 })], p.prototype, "palette", void 0), p = t([u("reke-pie-chart")], p);
|
|
116
|
+
//#endregion
|
|
117
|
+
export { p as RekePieChart };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"reke-pie-chart.styles.d.ts","sourceRoot":"","sources":["../../../src/components/reke-pie-chart/reke-pie-chart.styles.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,MAAM,2BAyBlB,CAAC"}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { tailwindStyles as e } from "../../shared/tailwind-styles.js";
|
|
2
|
+
import { css as t } from "lit";
|
|
3
|
+
//#region src/components/reke-pie-chart/reke-pie-chart.styles.ts
|
|
4
|
+
var n = [e, t`
|
|
5
|
+
:host {
|
|
6
|
+
display: block;
|
|
7
|
+
width: 100%;
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
.chart {
|
|
11
|
+
box-sizing: border-box;
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
/* Visually hidden but readable by screen readers — canvas is opaque to AT. */
|
|
15
|
+
.sr-only {
|
|
16
|
+
position: absolute;
|
|
17
|
+
width: 1px;
|
|
18
|
+
height: 1px;
|
|
19
|
+
padding: 0;
|
|
20
|
+
margin: -1px;
|
|
21
|
+
overflow: hidden;
|
|
22
|
+
clip: rect(0, 0, 0, 0);
|
|
23
|
+
white-space: nowrap;
|
|
24
|
+
border: 0;
|
|
25
|
+
}
|
|
26
|
+
`];
|
|
27
|
+
//#endregion
|
|
28
|
+
export { n as styles };
|
|
@@ -63,6 +63,7 @@ export type GetRowKey = (row: TableRow, index: number) => RowKey;
|
|
|
63
63
|
* - `expandOnRowClick` (attribute `expand-on-row-click`): Opt-in boolean (default `false`). When `true`, clicking anywhere on a row calls `toggleExpand(key)` internally. `reke-row-click` is STILL emitted on every row click. The chevron button calls `stopPropagation()` so chevron clicks do NOT double-toggle. Consumers MUST use EITHER this prop OR their own `reke-row-click` → `toggleExpand` handler, not both. For keyboard / screen-reader users, pair with `expandable`.
|
|
64
64
|
*/
|
|
65
65
|
export declare class RekeTable extends RekeElement {
|
|
66
|
+
static shadowRootOptions: ShadowRootInit;
|
|
66
67
|
static styles: import("lit").CSSResult[];
|
|
67
68
|
columns: TableColumn[];
|
|
68
69
|
rows: TableRow[];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"reke-table.d.ts","sourceRoot":"","sources":["../../../src/components/reke-table/reke-table.ts"],"names":[],"mappings":"AAAA,OAAO,EAAiB,KAAK,cAAc,EAAE,KAAK,cAAc,EAAE,MAAM,KAAK,CAAC;AAI9E,OAAO,EAAE,WAAW,EAAE,MAAM,8BAA8B,CAAC;AAG3D,MAAM,WAAW,WAAW;IAC1B,GAAG,EAAE,MAAM,CAAC;IACZ,MAAM,EAAE,MAAM,CAAC;IACf,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,KAAK,CAAC,EAAE,MAAM,GAAG,QAAQ,GAAG,OAAO,CAAC;IACpC,qEAAqE;IACrE,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,sFAAsF;IACtF,MAAM,CAAC,EAAE,CACP,KAAK,EAAE,OAAO,EACd,GAAG,EAAE,QAAQ,EACb,KAAK,EAAE,MAAM,KACV,cAAc,GAAG,MAAM,GAAG,WAAW,GA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28,6 +28,12 @@ var d = class extends e {
|
|
|
28
28
|
constructor(...e) {
|
|
29
29
|
super(...e), this.columns = [], this.rows = [], this.striped = !1, this.dense = !1, this.hoverable = !1, this.bordered = !1, this.borderless = !1, this.expandable = !1, this.expandOnRowClick = !1, this.sortKey = "", this.sortDirection = "asc", this.expandedRowElement = null, this.expandedRows = /* @__PURE__ */ new Set(), this._hostCache = /* @__PURE__ */ new Map(), this._cleanupMap = /* @__PURE__ */ new Map(), this._warnedDupKeys = /* @__PURE__ */ new Set(), this._warnedNumericTarget = !1, this._mountedKeys = /* @__PURE__ */ new Set(), this._collapsingKeys = /* @__PURE__ */ new Set(), this._enteringKeys = /* @__PURE__ */ new Set(), this._collapseEndHandlers = /* @__PURE__ */ new Map(), this._keyToRow = /* @__PURE__ */ new Map(), this._refCallbacks = /* @__PURE__ */ new Map(), this._hasToolbar = !1, this._hasFooter = !1, this._warnedLegacyApi = !1;
|
|
30
30
|
}
|
|
31
|
+
static {
|
|
32
|
+
this.shadowRootOptions = {
|
|
33
|
+
...e.shadowRootOptions,
|
|
34
|
+
delegatesFocus: !1
|
|
35
|
+
};
|
|
36
|
+
}
|
|
31
37
|
static {
|
|
32
38
|
this.styles = n;
|
|
33
39
|
}
|
package/dist/index.d.ts
CHANGED
|
@@ -18,6 +18,11 @@ export { RekeDialog } from './components/reke-dialog/reke-dialog.js';
|
|
|
18
18
|
export { RekeFileUpload } from './components/reke-file-upload/reke-file-upload.js';
|
|
19
19
|
export type { InputSize } from './components/reke-input/reke-input.js';
|
|
20
20
|
export { RekeInput } from './components/reke-input/reke-input.js';
|
|
21
|
+
export { RekeMenu } from './components/reke-menu/reke-menu.js';
|
|
22
|
+
export type { MenuItemVariant } from './components/reke-menu-item/reke-menu-item.js';
|
|
23
|
+
export { RekeMenuItem } from './components/reke-menu-item/reke-menu-item.js';
|
|
24
|
+
export type { PieChartDatum, PieChartSelectDetail, PieChartVariant, } from './components/reke-pie-chart/reke-pie-chart.js';
|
|
25
|
+
export { RekePieChart } from './components/reke-pie-chart/reke-pie-chart.js';
|
|
21
26
|
export type { SelectSize } from './components/reke-select/reke-select.js';
|
|
22
27
|
export { RekeSelect } from './components/reke-select/reke-select.js';
|
|
23
28
|
export type { Cleanup, ExpandedRowElement, GetRowKey, RowKey, TableColumn, TableRow, } from './components/reke-table/reke-table.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,EAAE,cAAc,EAAE,YAAY,EAAE,MAAM,6CAA6C,CAAC;AAChG,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;AA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kB,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
|
@@ -10,10 +10,13 @@ import { RekeDateRange as c } from "./components/reke-date-range/reke-date-range
|
|
|
10
10
|
import { RekeDialog as l } from "./components/reke-dialog/reke-dialog.js";
|
|
11
11
|
import { RekeFileUpload as u } from "./components/reke-file-upload/reke-file-upload.js";
|
|
12
12
|
import { RekeInput as d } from "./components/reke-input/reke-input.js";
|
|
13
|
-
import {
|
|
14
|
-
import {
|
|
15
|
-
import {
|
|
16
|
-
import {
|
|
17
|
-
import {
|
|
18
|
-
import {
|
|
19
|
-
|
|
13
|
+
import { RekeMenu as f } from "./components/reke-menu/reke-menu.js";
|
|
14
|
+
import { RekeMenuItem as p } from "./components/reke-menu-item/reke-menu-item.js";
|
|
15
|
+
import { RekePieChart as m } from "./components/reke-pie-chart/reke-pie-chart.js";
|
|
16
|
+
import { RekeSelect as h } from "./components/reke-select/reke-select.js";
|
|
17
|
+
import { RekeTable as g } from "./components/reke-table/reke-table.js";
|
|
18
|
+
import { RekeTextarea as _ } from "./components/reke-textarea/reke-textarea.js";
|
|
19
|
+
import { RekeToast as v } from "./components/reke-toast/reke-toast.js";
|
|
20
|
+
import { RekeToggle as y } from "./components/reke-toggle/reke-toggle.js";
|
|
21
|
+
import { RekeTooltip as b } from "./components/reke-tooltip/reke-tooltip.js";
|
|
22
|
+
export { t as RekeAlert, n as RekeBadge, r as RekeButton, i as RekeCard, a as RekeCheckbox, o as RekeChip, s as RekeCombobox, c as RekeDateRange, l as RekeDialog, e as RekeElement, u as RekeFileUpload, d as RekeInput, f as RekeMenu, p as RekeMenuItem, m as RekePieChart, h as RekeSelect, g as RekeTable, _ as RekeTextarea, v as RekeToast, y as RekeToggle, b as RekeTooltip };
|
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
import { isFunction as e, isObject as t, retrieve2 as n } from "../../../zrender/lib/core/util.js";
|
|
2
|
+
import { makeInner as r } from "../util/model.js";
|
|
3
|
+
//#region node_modules/echarts/lib/animation/basicTransition.js
|
|
4
|
+
var i = r();
|
|
5
|
+
function a(t, r, i, a, o) {
|
|
6
|
+
var s;
|
|
7
|
+
if (r && r.ecModel) {
|
|
8
|
+
var c = r.ecModel.getUpdatePayload();
|
|
9
|
+
s = c && c.animation;
|
|
10
|
+
}
|
|
11
|
+
var l = r && r.isAnimationEnabled(), u = t === "update";
|
|
12
|
+
if (l) {
|
|
13
|
+
var d = void 0, f = void 0, p = void 0;
|
|
14
|
+
return a ? (d = n(a.duration, 200), f = n(a.easing, "cubicOut"), p = 0) : (d = r.getShallow(u ? "animationDurationUpdate" : "animationDuration"), f = r.getShallow(u ? "animationEasingUpdate" : "animationEasing"), p = r.getShallow(u ? "animationDelayUpdate" : "animationDelay")), s && (s.duration != null && (d = s.duration), s.easing != null && (f = s.easing), s.delay != null && (p = s.delay)), e(p) && (p = p(i, o)), e(d) && (d = d(i)), {
|
|
15
|
+
duration: d || 0,
|
|
16
|
+
delay: p,
|
|
17
|
+
easing: f
|
|
18
|
+
};
|
|
19
|
+
} else return null;
|
|
20
|
+
}
|
|
21
|
+
function o(n, r, i, o, s, c, l) {
|
|
22
|
+
var u = !1, d;
|
|
23
|
+
e(s) ? (l = c, c = s, s = null) : t(s) && (c = s.cb, l = s.during, u = s.isFrom, d = s.removeOpt, s = s.dataIndex);
|
|
24
|
+
var f = n === "leave";
|
|
25
|
+
f || r.stopAnimation("leave");
|
|
26
|
+
var p = a(n, o, s, f ? d || {} : null, o && o.getAnimationDelayParams ? o.getAnimationDelayParams(r, s) : null);
|
|
27
|
+
if (p && p.duration > 0) {
|
|
28
|
+
var m = p.duration, h = p.delay, g = p.easing, _ = {
|
|
29
|
+
duration: m,
|
|
30
|
+
delay: h || 0,
|
|
31
|
+
easing: g,
|
|
32
|
+
done: c,
|
|
33
|
+
force: !!c || !!l,
|
|
34
|
+
setToFinal: !f,
|
|
35
|
+
scope: n,
|
|
36
|
+
during: l
|
|
37
|
+
};
|
|
38
|
+
u ? r.animateFrom(i, _) : r.animateTo(i, _);
|
|
39
|
+
} else r.stopAnimation(), !u && r.attr(i), l && l(1), c && c();
|
|
40
|
+
}
|
|
41
|
+
function s(e, t, n, r, i, a) {
|
|
42
|
+
o("update", e, t, n, r, i, a);
|
|
43
|
+
}
|
|
44
|
+
function c(e, t, n, r, i, a) {
|
|
45
|
+
o("enter", e, t, n, r, i, a);
|
|
46
|
+
}
|
|
47
|
+
function l(e) {
|
|
48
|
+
if (!e.__zr) return !0;
|
|
49
|
+
for (var t = 0; t < e.animators.length; t++) if (e.animators[t].scope === "leave") return !0;
|
|
50
|
+
return !1;
|
|
51
|
+
}
|
|
52
|
+
function u(e, t, n, r, i, a) {
|
|
53
|
+
l(e) || o("leave", e, t, n, r, i, a);
|
|
54
|
+
}
|
|
55
|
+
function d(e, t, n, r) {
|
|
56
|
+
e.removeTextContent(), e.removeTextGuideLine(), u(e, { style: { opacity: 0 } }, t, n, r);
|
|
57
|
+
}
|
|
58
|
+
function f(e, t, n) {
|
|
59
|
+
function r() {
|
|
60
|
+
e.parent && e.parent.remove(e);
|
|
61
|
+
}
|
|
62
|
+
e.isGroup ? e.traverse(function(e) {
|
|
63
|
+
e.isGroup || d(e, t, n, r);
|
|
64
|
+
}) : d(e, t, n, r);
|
|
65
|
+
}
|
|
66
|
+
function p(e) {
|
|
67
|
+
i(e).oldStyle = e.style;
|
|
68
|
+
}
|
|
69
|
+
//#endregion
|
|
70
|
+
export { c as initProps, l as isElementRemoved, u as removeElement, f as removeElementWithFadeOut, p as saveOldStyle, s as updateProps };
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { makeInner as e } from "../../util/model.js";
|
|
2
|
+
//#region node_modules/echarts/lib/chart/helper/createRenderPlanner.js
|
|
3
|
+
function t() {
|
|
4
|
+
var t = e();
|
|
5
|
+
return function(e) {
|
|
6
|
+
var n = t(e), r = e.pipelineContext, i = !!n.large, a = !!n.progressiveRender, o = n.large = !!(r && r.large), s = n.progressiveRender = !!(r && r.progressiveRender);
|
|
7
|
+
return (i !== o || a !== s) && "reset";
|
|
8
|
+
};
|
|
9
|
+
}
|
|
10
|
+
//#endregion
|
|
11
|
+
export { t as default };
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { extend as e, isArray as t } from "../../../../zrender/lib/core/util.js";
|
|
2
|
+
import n from "../../data/helper/createDimensions.js";
|
|
3
|
+
import r from "../../data/SeriesData.js";
|
|
4
|
+
//#region node_modules/echarts/lib/chart/helper/createSeriesDataSimply.js
|
|
5
|
+
function i(i, a, o) {
|
|
6
|
+
a = t(a) && { coordDimensions: a } || e({ encodeDefine: i.getEncode() }, a);
|
|
7
|
+
var s = i.getSource(), c = n(s, a).dimensions, l = new r(c, i);
|
|
8
|
+
return l.initData(s, o), l;
|
|
9
|
+
}
|
|
10
|
+
//#endregion
|
|
11
|
+
export { i as default };
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { isArray as e, map as t } from "../../../../zrender/lib/core/util.js";
|
|
2
|
+
import { parsePercent as n } from "../../../../zrender/lib/contain/text.js";
|
|
3
|
+
//#region node_modules/echarts/lib/chart/helper/sectorHelper.js
|
|
4
|
+
function r(r, i, a) {
|
|
5
|
+
var o = r.get("borderRadius");
|
|
6
|
+
if (o == null) return a ? { cornerRadius: 0 } : null;
|
|
7
|
+
e(o) || (o = [
|
|
8
|
+
o,
|
|
9
|
+
o,
|
|
10
|
+
o,
|
|
11
|
+
o
|
|
12
|
+
]);
|
|
13
|
+
var s = Math.abs(i.r || 0 - i.r0 || 0);
|
|
14
|
+
return { cornerRadius: t(o, function(e) {
|
|
15
|
+
return n(e, s);
|
|
16
|
+
}) };
|
|
17
|
+
}
|
|
18
|
+
//#endregion
|
|
19
|
+
export { r as getSectorCornerRadius };
|
|
@@ -0,0 +1,112 @@
|
|
|
1
|
+
import { bind as e, curry as t } from "../../../../zrender/lib/core/util.js";
|
|
2
|
+
import { getPercentSeats as n } from "../../util/number.js";
|
|
3
|
+
import { defaultEmphasis as r, makeInner as i } from "../../util/model.js";
|
|
4
|
+
import { __extends as a } from "../../../node_modules/tslib/tslib.es6.js";
|
|
5
|
+
import { makeSeriesEncodeForNameBased as o } from "../../data/helper/sourceHelper.js";
|
|
6
|
+
import s from "../helper/createSeriesDataSimply.js";
|
|
7
|
+
import c from "../../visual/LegendVisualProvider.js";
|
|
8
|
+
import { registerLayOutOnCoordSysUsage as l } from "../../core/CoordinateSystem.js";
|
|
9
|
+
import u from "../../model/Series.js";
|
|
10
|
+
var d = i(), f = function(i) {
|
|
11
|
+
a(l, i);
|
|
12
|
+
function l() {
|
|
13
|
+
var e = i !== null && i.apply(this, arguments) || this;
|
|
14
|
+
return e.type = l.type, e;
|
|
15
|
+
}
|
|
16
|
+
return l.prototype.init = function(t) {
|
|
17
|
+
i.prototype.init.apply(this, arguments), this.legendVisualProvider = new c(e(this.getData, this), e(this.getRawData, this)), this._defaultLabelLine(t);
|
|
18
|
+
}, l.prototype.mergeOption = function() {
|
|
19
|
+
i.prototype.mergeOption.apply(this, arguments);
|
|
20
|
+
}, l.prototype.getInitialData = function() {
|
|
21
|
+
return s(this, {
|
|
22
|
+
coordDimensions: ["value"],
|
|
23
|
+
encodeDefaulter: t(o, this)
|
|
24
|
+
});
|
|
25
|
+
}, l.prototype.getDataParams = function(e) {
|
|
26
|
+
var t = this.getData(), r = d(t), a = r.seats;
|
|
27
|
+
if (!a) {
|
|
28
|
+
var o = [];
|
|
29
|
+
t.each(t.mapDimension("value"), function(e) {
|
|
30
|
+
o.push(e);
|
|
31
|
+
}), a = r.seats = n(o, t.hostModel.get("percentPrecision"));
|
|
32
|
+
}
|
|
33
|
+
var s = i.prototype.getDataParams.call(this, e);
|
|
34
|
+
return s.percent = a[e] || 0, s.$vars.push("percent"), s;
|
|
35
|
+
}, l.prototype._defaultLabelLine = function(e) {
|
|
36
|
+
r(e, "labelLine", ["show"]);
|
|
37
|
+
var t = e.labelLine, n = e.emphasis.labelLine;
|
|
38
|
+
t.show = t.show && e.label.show, n.show = n.show && e.emphasis.label.show;
|
|
39
|
+
}, l.type = "series.pie", l.defaultOption = {
|
|
40
|
+
z: 2,
|
|
41
|
+
legendHoverLink: !0,
|
|
42
|
+
colorBy: "data",
|
|
43
|
+
center: ["50%", "50%"],
|
|
44
|
+
radius: [0, "50%"],
|
|
45
|
+
clockwise: !0,
|
|
46
|
+
startAngle: 90,
|
|
47
|
+
endAngle: "auto",
|
|
48
|
+
padAngle: 0,
|
|
49
|
+
minAngle: 0,
|
|
50
|
+
minShowLabelAngle: 0,
|
|
51
|
+
selectedOffset: 10,
|
|
52
|
+
percentPrecision: 2,
|
|
53
|
+
stillShowZeroSum: !0,
|
|
54
|
+
coordinateSystemUsage: "box",
|
|
55
|
+
left: 0,
|
|
56
|
+
top: 0,
|
|
57
|
+
right: 0,
|
|
58
|
+
bottom: 0,
|
|
59
|
+
width: null,
|
|
60
|
+
height: null,
|
|
61
|
+
label: {
|
|
62
|
+
rotate: 0,
|
|
63
|
+
show: !0,
|
|
64
|
+
overflow: "truncate",
|
|
65
|
+
position: "outer",
|
|
66
|
+
alignTo: "none",
|
|
67
|
+
edgeDistance: "25%",
|
|
68
|
+
distanceToLabelLine: 5
|
|
69
|
+
},
|
|
70
|
+
labelLine: {
|
|
71
|
+
show: !0,
|
|
72
|
+
length: 15,
|
|
73
|
+
length2: 30,
|
|
74
|
+
smooth: !1,
|
|
75
|
+
minTurnAngle: 90,
|
|
76
|
+
maxSurfaceAngle: 90,
|
|
77
|
+
lineStyle: {
|
|
78
|
+
width: 1,
|
|
79
|
+
type: "solid"
|
|
80
|
+
}
|
|
81
|
+
},
|
|
82
|
+
itemStyle: {
|
|
83
|
+
borderWidth: 1,
|
|
84
|
+
borderJoin: "round"
|
|
85
|
+
},
|
|
86
|
+
showEmptyCircle: !0,
|
|
87
|
+
emptyCircleStyle: {
|
|
88
|
+
color: "lightgray",
|
|
89
|
+
opacity: 1
|
|
90
|
+
},
|
|
91
|
+
labelLayout: { hideOverlap: !0 },
|
|
92
|
+
emphasis: {
|
|
93
|
+
scale: !0,
|
|
94
|
+
scaleSize: 5
|
|
95
|
+
},
|
|
96
|
+
avoidLabelOverlap: !0,
|
|
97
|
+
animationType: "expansion",
|
|
98
|
+
animationDuration: 1e3,
|
|
99
|
+
animationTypeUpdate: "transition",
|
|
100
|
+
animationEasingUpdate: "cubicInOut",
|
|
101
|
+
animationDurationUpdate: 500,
|
|
102
|
+
animationEasing: "cubicInOut"
|
|
103
|
+
}, l;
|
|
104
|
+
}(u);
|
|
105
|
+
l({
|
|
106
|
+
fullType: f.type,
|
|
107
|
+
getCoord2: function(e) {
|
|
108
|
+
return e.getShallow("center");
|
|
109
|
+
}
|
|
110
|
+
});
|
|
111
|
+
//#endregion
|
|
112
|
+
export { f as default };
|
|
@@ -0,0 +1,119 @@
|
|
|
1
|
+
import { clone as e, extend as t, retrieve3 as n } from "../../../../zrender/lib/core/util.js";
|
|
2
|
+
import { __extends as r } from "../../../node_modules/tslib/tslib.es6.js";
|
|
3
|
+
import i from "../../../../zrender/lib/graphic/Text.js";
|
|
4
|
+
import a from "../../../../zrender/lib/graphic/shape/Sector.js";
|
|
5
|
+
import o from "../../../../zrender/lib/graphic/shape/Polyline.js";
|
|
6
|
+
import { initProps as s, removeElementWithFadeOut as c, saveOldStyle as l, updateProps as u } from "../../animation/basicTransition.js";
|
|
7
|
+
import { setStatesStylesFromModel as d, toggleHoverEmphasis as f } from "../../util/states.js";
|
|
8
|
+
import p from "../../view/Chart.js";
|
|
9
|
+
import { getLabelStatesModels as m, setLabelStyle as h } from "../../label/labelStyle.js";
|
|
10
|
+
import { getLabelLineStatesModels as g, setLabelLineStyle as _ } from "../../label/labelGuideHelper.js";
|
|
11
|
+
import v from "./labelLayout.js";
|
|
12
|
+
import { getSectorCornerRadius as y } from "../helper/sectorHelper.js";
|
|
13
|
+
import { getSeriesLayoutData as b } from "./pieLayout.js";
|
|
14
|
+
//#region node_modules/echarts/lib/chart/pie/PieView.js
|
|
15
|
+
var x = function(e) {
|
|
16
|
+
r(a, e);
|
|
17
|
+
function a(t, n, r) {
|
|
18
|
+
var a = e.call(this) || this;
|
|
19
|
+
a.z2 = 2;
|
|
20
|
+
var o = new i();
|
|
21
|
+
return a.setTextContent(o), a.updateData(t, n, r, !0), a;
|
|
22
|
+
}
|
|
23
|
+
return a.prototype.updateData = function(e, n, r, i) {
|
|
24
|
+
var a = this, o = e.hostModel, c = e.getItemModel(n), p = c.getModel("emphasis"), m = e.getItemLayout(n), h = t(y(c.getModel("itemStyle"), m, !0), m);
|
|
25
|
+
if (isNaN(h.startAngle)) {
|
|
26
|
+
a.setShape(h);
|
|
27
|
+
return;
|
|
28
|
+
}
|
|
29
|
+
if (i) {
|
|
30
|
+
a.setShape(h);
|
|
31
|
+
var g = o.getShallow("animationType");
|
|
32
|
+
o.ecModel.ssr ? (s(a, {
|
|
33
|
+
scaleX: 0,
|
|
34
|
+
scaleY: 0
|
|
35
|
+
}, o, {
|
|
36
|
+
dataIndex: n,
|
|
37
|
+
isFrom: !0
|
|
38
|
+
}), a.originX = h.cx, a.originY = h.cy) : g === "scale" ? (a.shape.r = m.r0, s(a, { shape: { r: m.r } }, o, n)) : r == null ? (a.shape.endAngle = m.startAngle, u(a, { shape: { endAngle: m.endAngle } }, o, n)) : (a.setShape({
|
|
39
|
+
startAngle: r,
|
|
40
|
+
endAngle: r
|
|
41
|
+
}), s(a, { shape: {
|
|
42
|
+
startAngle: m.startAngle,
|
|
43
|
+
endAngle: m.endAngle
|
|
44
|
+
} }, o, n));
|
|
45
|
+
} else l(a), u(a, { shape: h }, o, n);
|
|
46
|
+
a.useStyle(e.getItemVisual(n, "style")), d(a, c);
|
|
47
|
+
var _ = (m.startAngle + m.endAngle) / 2, v = o.get("selectedOffset"), b = Math.cos(_) * v, x = Math.sin(_) * v, S = c.getShallow("cursor");
|
|
48
|
+
S && a.attr("cursor", S), this._updateLabel(o, e, n), a.ensureState("emphasis").shape = t({ r: m.r + (p.get("scale") && p.get("scaleSize") || 0) }, y(p.getModel("itemStyle"), m)), t(a.ensureState("select"), {
|
|
49
|
+
x: b,
|
|
50
|
+
y: x,
|
|
51
|
+
shape: y(c.getModel(["select", "itemStyle"]), m)
|
|
52
|
+
}), t(a.ensureState("blur"), { shape: y(c.getModel(["blur", "itemStyle"]), m) });
|
|
53
|
+
var C = a.getTextGuideLine(), w = a.getTextContent();
|
|
54
|
+
C && t(C.ensureState("select"), {
|
|
55
|
+
x: b,
|
|
56
|
+
y: x
|
|
57
|
+
}), t(w.ensureState("select"), {
|
|
58
|
+
x: b,
|
|
59
|
+
y: x
|
|
60
|
+
}), f(this, p.get("focus"), p.get("blurScope"), p.get("disabled"));
|
|
61
|
+
}, a.prototype._updateLabel = function(e, t, r) {
|
|
62
|
+
var i = this, a = t.getItemModel(r), s = a.getModel("labelLine"), c = t.getItemVisual(r, "style"), l = c && c.fill, u = c && c.opacity;
|
|
63
|
+
h(i, m(a), {
|
|
64
|
+
labelFetcher: t.hostModel,
|
|
65
|
+
labelDataIndex: r,
|
|
66
|
+
inheritColor: l,
|
|
67
|
+
defaultOpacity: u,
|
|
68
|
+
defaultText: e.getFormattedLabel(r, "normal") || t.getName(r)
|
|
69
|
+
});
|
|
70
|
+
var d = i.getTextContent();
|
|
71
|
+
i.setTextConfig({
|
|
72
|
+
position: null,
|
|
73
|
+
rotation: null
|
|
74
|
+
}), d.attr({ z2: 10 });
|
|
75
|
+
var f = a.get(["label", "position"]);
|
|
76
|
+
if (f !== "outside" && f !== "outer") i.removeTextGuideLine();
|
|
77
|
+
else {
|
|
78
|
+
var p = this.getTextGuideLine();
|
|
79
|
+
p || (p = new o(), this.setTextGuideLine(p)), _(this, g(a), {
|
|
80
|
+
stroke: l,
|
|
81
|
+
opacity: n(s.get(["lineStyle", "opacity"]), u, 1)
|
|
82
|
+
});
|
|
83
|
+
}
|
|
84
|
+
}, a;
|
|
85
|
+
}(a), S = function(t) {
|
|
86
|
+
r(n, t);
|
|
87
|
+
function n() {
|
|
88
|
+
var e = t !== null && t.apply(this, arguments) || this;
|
|
89
|
+
return e.type = "pie", e.ignoreLabelLineUpdate = !0, e;
|
|
90
|
+
}
|
|
91
|
+
return n.prototype.render = function(t, n, r, i) {
|
|
92
|
+
var o = t.getData(), s = this._data, l = this.group, u;
|
|
93
|
+
if (!s && o.count() > 0) {
|
|
94
|
+
for (var d = o.getItemLayout(0), f = 1; isNaN(d && d.startAngle) && f < o.count(); ++f) d = o.getItemLayout(f);
|
|
95
|
+
d && (u = d.startAngle);
|
|
96
|
+
}
|
|
97
|
+
if (this._emptyCircleSector && l.remove(this._emptyCircleSector), o.count() === 0 && t.get("showEmptyCircle")) {
|
|
98
|
+
var p = new a({ shape: e(b(t)) });
|
|
99
|
+
p.useStyle(t.getModel("emptyCircleStyle").getItemStyle()), this._emptyCircleSector = p, l.add(p);
|
|
100
|
+
}
|
|
101
|
+
o.diff(s).add(function(e) {
|
|
102
|
+
var t = new x(o, e, u);
|
|
103
|
+
o.setItemGraphicEl(e, t), l.add(t);
|
|
104
|
+
}).update(function(e, t) {
|
|
105
|
+
var n = s.getItemGraphicEl(t);
|
|
106
|
+
n.updateData(o, e, u), n.off("click"), l.add(n), o.setItemGraphicEl(e, n);
|
|
107
|
+
}).remove(function(e) {
|
|
108
|
+
c(s.getItemGraphicEl(e), t, e);
|
|
109
|
+
}).execute(), v(t), t.get("animationTypeUpdate") !== "expansion" && (this._data = o);
|
|
110
|
+
}, n.prototype.dispose = function() {}, n.prototype.containPoint = function(e, t) {
|
|
111
|
+
var n = t.getData().getItemLayout(0);
|
|
112
|
+
if (n) {
|
|
113
|
+
var r = e[0] - n.cx, i = e[1] - n.cy, a = Math.sqrt(r * r + i * i);
|
|
114
|
+
return a <= n.r && a >= n.r0;
|
|
115
|
+
}
|
|
116
|
+
}, n.type = "pie", n;
|
|
117
|
+
}(p);
|
|
118
|
+
//#endregion
|
|
119
|
+
export { S as default };
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { createLegacyDataSelectAction as e } from "../../legacy/dataSelectAction.js";
|
|
2
|
+
import t from "../../processor/dataFilter.js";
|
|
3
|
+
import n from "./PieSeries.js";
|
|
4
|
+
import { pieLayoutStageHandler as r } from "./pieLayout.js";
|
|
5
|
+
import i from "./PieView.js";
|
|
6
|
+
import a from "../../processor/negativeDataFilter.js";
|
|
7
|
+
//#region node_modules/echarts/lib/chart/pie/install.js
|
|
8
|
+
function o(o) {
|
|
9
|
+
o.registerChartView(i), o.registerSeriesModel(n), e("pie", o.registerAction), o.registerLayout(r), o.registerProcessor(t("pie")), o.registerProcessor(a("pie"));
|
|
10
|
+
}
|
|
11
|
+
//#endregion
|
|
12
|
+
export { o as install };
|