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,296 @@
|
|
|
1
|
+
import { assert as e, createHashMap as t, each as n, hasOwn as r, indexOf as i, isArray as a, isNumber as o, isObject as s, isString as c, isStringSafe as l, map as u } from "../../../zrender/lib/core/util.js";
|
|
2
|
+
import { error as d, warn as f } from "./log.js";
|
|
3
|
+
import p from "../../../zrender/lib/core/env.js";
|
|
4
|
+
import { getRandomIdBase as m, isNumeric as h } from "./number.js";
|
|
5
|
+
//#region node_modules/echarts/lib/util/model.js
|
|
6
|
+
var g = "series\0", _ = "\0_ec_\0";
|
|
7
|
+
function v(e) {
|
|
8
|
+
return e instanceof Array ? e : e == null ? [] : [e];
|
|
9
|
+
}
|
|
10
|
+
function y(e, t, n) {
|
|
11
|
+
if (e) {
|
|
12
|
+
e[t] = e[t] || {}, e.emphasis = e.emphasis || {}, e.emphasis[t] = e.emphasis[t] || {};
|
|
13
|
+
for (var r = 0, i = n.length; r < i; r++) {
|
|
14
|
+
var a = n[r];
|
|
15
|
+
!e.emphasis[t].hasOwnProperty(a) && e[t].hasOwnProperty(a) && (e.emphasis[t][a] = e[t][a]);
|
|
16
|
+
}
|
|
17
|
+
}
|
|
18
|
+
}
|
|
19
|
+
var b = /* @__PURE__ */ "fontStyle.fontWeight.fontSize.fontFamily.rich.tag.color.textBorderColor.textBorderWidth.width.height.lineHeight.align.verticalAlign.baseline.shadowColor.shadowBlur.shadowOffsetX.shadowOffsetY.textShadowColor.textShadowBlur.textShadowOffsetX.textShadowOffsetY.backgroundColor.borderColor.borderWidth.borderRadius.padding".split(".");
|
|
20
|
+
function x(e) {
|
|
21
|
+
return s(e) && !a(e) && !(e instanceof Date) ? e.value : e;
|
|
22
|
+
}
|
|
23
|
+
function S(e) {
|
|
24
|
+
return s(e) && !(e instanceof Array);
|
|
25
|
+
}
|
|
26
|
+
function C(e, r, i) {
|
|
27
|
+
var a = i === "normalMerge", o = i === "replaceMerge", c = i === "replaceAll";
|
|
28
|
+
e ||= [], r = (r || []).slice();
|
|
29
|
+
var l = t();
|
|
30
|
+
n(r, function(e, t) {
|
|
31
|
+
if (!s(e)) {
|
|
32
|
+
r[t] = null;
|
|
33
|
+
return;
|
|
34
|
+
}
|
|
35
|
+
process.env.NODE_ENV !== "production" && (e.id != null && !P(e.id) && N(e.id), e.name != null && !P(e.name) && N(e.name));
|
|
36
|
+
});
|
|
37
|
+
var u = w(e, l, i);
|
|
38
|
+
return (a || o) && T(u, e, l, r), a && E(u, r), a || o ? D(u, r, o) : c && O(u, r), k(u), u;
|
|
39
|
+
}
|
|
40
|
+
function w(e, t, n) {
|
|
41
|
+
var r = [];
|
|
42
|
+
if (n === "replaceAll") return r;
|
|
43
|
+
for (var i = 0; i < e.length; i++) {
|
|
44
|
+
var a = e[i];
|
|
45
|
+
a && a.id != null && t.set(a.id, i), r.push({
|
|
46
|
+
existing: n === "replaceMerge" || I(a) ? null : a,
|
|
47
|
+
newOption: null,
|
|
48
|
+
keyInfo: null,
|
|
49
|
+
brandNew: null
|
|
50
|
+
});
|
|
51
|
+
}
|
|
52
|
+
return r;
|
|
53
|
+
}
|
|
54
|
+
function T(t, r, i, a) {
|
|
55
|
+
n(a, function(n, o) {
|
|
56
|
+
if (!(!n || n.id == null)) {
|
|
57
|
+
var s = j(n.id), c = i.get(s);
|
|
58
|
+
if (c != null) {
|
|
59
|
+
var l = t[c];
|
|
60
|
+
e(!l.newOption, "Duplicated option on id \"" + s + "\"."), l.newOption = n, l.existing = r[c], a[o] = null;
|
|
61
|
+
}
|
|
62
|
+
}
|
|
63
|
+
});
|
|
64
|
+
}
|
|
65
|
+
function E(e, t) {
|
|
66
|
+
n(t, function(n, r) {
|
|
67
|
+
if (!(!n || n.name == null)) for (var i = 0; i < e.length; i++) {
|
|
68
|
+
var a = e[i].existing;
|
|
69
|
+
if (!e[i].newOption && a && (a.id == null || n.id == null) && !I(n) && !I(a) && A("name", a, n)) {
|
|
70
|
+
e[i].newOption = n, t[r] = null;
|
|
71
|
+
return;
|
|
72
|
+
}
|
|
73
|
+
}
|
|
74
|
+
});
|
|
75
|
+
}
|
|
76
|
+
function D(e, t, r) {
|
|
77
|
+
n(t, function(t) {
|
|
78
|
+
if (t) {
|
|
79
|
+
for (var n, i = 0; (n = e[i]) && (n.newOption || I(n.existing) || n.existing && t.id != null && !A("id", t, n.existing));) i++;
|
|
80
|
+
n ? (n.newOption = t, n.brandNew = r) : e.push({
|
|
81
|
+
newOption: t,
|
|
82
|
+
brandNew: r,
|
|
83
|
+
existing: null,
|
|
84
|
+
keyInfo: null
|
|
85
|
+
}), i++;
|
|
86
|
+
}
|
|
87
|
+
});
|
|
88
|
+
}
|
|
89
|
+
function O(e, t) {
|
|
90
|
+
n(t, function(t) {
|
|
91
|
+
e.push({
|
|
92
|
+
newOption: t,
|
|
93
|
+
brandNew: !0,
|
|
94
|
+
existing: null,
|
|
95
|
+
keyInfo: null
|
|
96
|
+
});
|
|
97
|
+
});
|
|
98
|
+
}
|
|
99
|
+
function k(r) {
|
|
100
|
+
var i = t();
|
|
101
|
+
n(r, function(e) {
|
|
102
|
+
var t = e.existing;
|
|
103
|
+
t && i.set(t.id, e);
|
|
104
|
+
}), n(r, function(t) {
|
|
105
|
+
var n = t.newOption;
|
|
106
|
+
e(!n || n.id == null || !i.get(n.id) || i.get(n.id) === t, "id duplicates: " + (n && n.id)), n && n.id != null && i.set(n.id, t), !t.keyInfo && (t.keyInfo = {});
|
|
107
|
+
}), n(r, function(e, t) {
|
|
108
|
+
var n = e.existing, r = e.newOption, a = e.keyInfo;
|
|
109
|
+
if (s(r)) {
|
|
110
|
+
if (a.name = r.name == null ? n ? n.name : g + t : j(r.name), n) a.id = j(n.id);
|
|
111
|
+
else if (r.id != null) a.id = j(r.id);
|
|
112
|
+
else {
|
|
113
|
+
var o = 0;
|
|
114
|
+
do
|
|
115
|
+
a.id = "\0" + a.name + "\0" + o++;
|
|
116
|
+
while (i.get(a.id));
|
|
117
|
+
}
|
|
118
|
+
i.set(a.id, e);
|
|
119
|
+
}
|
|
120
|
+
});
|
|
121
|
+
}
|
|
122
|
+
function A(e, t, n) {
|
|
123
|
+
var r = M(t[e], null), i = M(n[e], null);
|
|
124
|
+
return r != null && i != null && r === i;
|
|
125
|
+
}
|
|
126
|
+
function j(e) {
|
|
127
|
+
if (process.env.NODE_ENV !== "production" && e == null) throw Error();
|
|
128
|
+
return M(e, "");
|
|
129
|
+
}
|
|
130
|
+
function M(e, t) {
|
|
131
|
+
return e == null ? t : c(e) ? e : o(e) || l(e) ? e + "" : t;
|
|
132
|
+
}
|
|
133
|
+
function N(e) {
|
|
134
|
+
process.env.NODE_ENV !== "production" && f("`" + e + "` is invalid id or name. Must be a string or number.");
|
|
135
|
+
}
|
|
136
|
+
function P(e) {
|
|
137
|
+
return l(e) || h(e);
|
|
138
|
+
}
|
|
139
|
+
function F(e) {
|
|
140
|
+
var t = e.name;
|
|
141
|
+
return !!(t && t.indexOf(g));
|
|
142
|
+
}
|
|
143
|
+
function I(e) {
|
|
144
|
+
return e && e.id != null && j(e.id).indexOf(_) === 0;
|
|
145
|
+
}
|
|
146
|
+
function L(e, t, r) {
|
|
147
|
+
n(e, function(e) {
|
|
148
|
+
var n = e.newOption;
|
|
149
|
+
s(n) && (e.keyInfo.mainType = t, e.keyInfo.subType = R(t, n, e.existing, r));
|
|
150
|
+
});
|
|
151
|
+
}
|
|
152
|
+
function R(e, t, n, r) {
|
|
153
|
+
return t.type ? t.type : n ? n.subType : r.determineSubType(e, t);
|
|
154
|
+
}
|
|
155
|
+
function z(e, t) {
|
|
156
|
+
if (t.dataIndexInside != null) return t.dataIndexInside;
|
|
157
|
+
if (t.dataIndex != null) return a(t.dataIndex) ? u(t.dataIndex, function(t) {
|
|
158
|
+
return e.indexOfRawIndex(t);
|
|
159
|
+
}) : e.indexOfRawIndex(t.dataIndex);
|
|
160
|
+
if (t.name != null) return a(t.name) ? u(t.name, function(t) {
|
|
161
|
+
return e.indexOfName(t);
|
|
162
|
+
}) : e.indexOfName(t.name);
|
|
163
|
+
}
|
|
164
|
+
function ee() {
|
|
165
|
+
var e = "__ec_inner_" + B++;
|
|
166
|
+
return function(t) {
|
|
167
|
+
return t[e] || (t[e] = {});
|
|
168
|
+
};
|
|
169
|
+
}
|
|
170
|
+
var B = m();
|
|
171
|
+
function V(e, t, n) {
|
|
172
|
+
var r = H(t, n), i = r.mainTypeSpecified, a = r.queryOptionMap, o = r.others, s = n ? n.defaultMainType : null;
|
|
173
|
+
return !i && s && a.set(s, {}), a.each(function(t, r) {
|
|
174
|
+
var i = W(e, r, t, {
|
|
175
|
+
useDefault: s === r,
|
|
176
|
+
enableAll: n && n.enableAll != null ? n.enableAll : !0,
|
|
177
|
+
enableNone: n && n.enableNone != null ? n.enableNone : !0
|
|
178
|
+
});
|
|
179
|
+
o[r + "Models"] = i.models, o[r + "Model"] = i.models[0];
|
|
180
|
+
}), o;
|
|
181
|
+
}
|
|
182
|
+
function H(e, r) {
|
|
183
|
+
var a;
|
|
184
|
+
if (c(e)) {
|
|
185
|
+
var o = {};
|
|
186
|
+
o[e + "Index"] = 0, a = o;
|
|
187
|
+
} else a = e;
|
|
188
|
+
var s = t(), l = {}, u = !1;
|
|
189
|
+
return n(a, function(e, t) {
|
|
190
|
+
if (t === "dataIndex" || t === "dataIndexInside") {
|
|
191
|
+
l[t] = e;
|
|
192
|
+
return;
|
|
193
|
+
}
|
|
194
|
+
var n = t.match(/^(\w+)(Index|Id|Name)$/) || [], a = n[1], o = (n[2] || "").toLowerCase();
|
|
195
|
+
if (!(!a || !o || r && r.includeMainTypes && i(r.includeMainTypes, a) < 0)) {
|
|
196
|
+
u ||= !!a;
|
|
197
|
+
var c = s.get(a) || s.set(a, {});
|
|
198
|
+
c[o] = e;
|
|
199
|
+
}
|
|
200
|
+
}), {
|
|
201
|
+
mainTypeSpecified: u,
|
|
202
|
+
queryOptionMap: s,
|
|
203
|
+
others: l
|
|
204
|
+
};
|
|
205
|
+
}
|
|
206
|
+
var U = {
|
|
207
|
+
useDefault: !0,
|
|
208
|
+
enableAll: !1,
|
|
209
|
+
enableNone: !1
|
|
210
|
+
};
|
|
211
|
+
function W(e, t, n, r) {
|
|
212
|
+
r ||= U;
|
|
213
|
+
var i = n.index, a = n.id, o = n.name, s = {
|
|
214
|
+
models: null,
|
|
215
|
+
specified: i != null || a != null || o != null
|
|
216
|
+
};
|
|
217
|
+
if (!s.specified) {
|
|
218
|
+
var c = void 0;
|
|
219
|
+
return s.models = r.useDefault && (c = e.getComponent(t)) ? [c] : [], s;
|
|
220
|
+
}
|
|
221
|
+
if (i === "none" || i === !1) {
|
|
222
|
+
if (r.enableNone) return s.models = [], s;
|
|
223
|
+
process.env.NODE_ENV !== "production" && d("`\"none\"` or `false` is not a valid value on index option."), i = -1;
|
|
224
|
+
}
|
|
225
|
+
return i === "all" && (r.enableAll ? i = a = o = null : (process.env.NODE_ENV !== "production" && d("`\"all\"` is not a valid value on index option."), i = -1)), s.models = e.queryComponents({
|
|
226
|
+
mainType: t,
|
|
227
|
+
index: i,
|
|
228
|
+
id: a,
|
|
229
|
+
name: o
|
|
230
|
+
}), s;
|
|
231
|
+
}
|
|
232
|
+
function G(t, n, r) {
|
|
233
|
+
process.env.NODE_ENV !== "production" && e(n);
|
|
234
|
+
var i = {};
|
|
235
|
+
i[n + "Id"] = t[n + "Id"], i[n + "Index"] = t[n + "Index"], i[n + "Name"] = t[n + "Name"];
|
|
236
|
+
var a = {
|
|
237
|
+
mainType: n,
|
|
238
|
+
query: i
|
|
239
|
+
};
|
|
240
|
+
return r && (a.subType = r), a;
|
|
241
|
+
}
|
|
242
|
+
function K(e, t, n) {
|
|
243
|
+
e.setAttribute ? e.setAttribute(t, n) : e[t] = n;
|
|
244
|
+
}
|
|
245
|
+
function q(e, t) {
|
|
246
|
+
return e.getAttribute ? e.getAttribute(t) : e[t];
|
|
247
|
+
}
|
|
248
|
+
function J(e) {
|
|
249
|
+
return e === "auto" ? p.domSupported ? "html" : "richText" : e || "html";
|
|
250
|
+
}
|
|
251
|
+
(function() {
|
|
252
|
+
function e() {}
|
|
253
|
+
return e.prototype.reset = function(e, t, n, r) {
|
|
254
|
+
return this._list = e, this._step = r ||= 1, this._idx = t, this._end = n ?? (r > 0 ? e.length : 0), this.item = null, this.key = NaN, this;
|
|
255
|
+
}, e.prototype.next = function() {
|
|
256
|
+
return (this._step > 0 ? this._idx < this._end : this._idx >= this._end) ? (this.item = this._list[this._idx], this.key = this._idx += this._step, !0) : !1;
|
|
257
|
+
}, e;
|
|
258
|
+
})();
|
|
259
|
+
function Y() {
|
|
260
|
+
return [Infinity, -Infinity];
|
|
261
|
+
}
|
|
262
|
+
function X() {
|
|
263
|
+
var t = "__ec_once_" + Z++;
|
|
264
|
+
return function(n, i) {
|
|
265
|
+
process.env.NODE_ENV !== "production" && e(n), r(n, t) || (n[t] = 1, i());
|
|
266
|
+
};
|
|
267
|
+
}
|
|
268
|
+
var Z = m();
|
|
269
|
+
function Q(r, i, a) {
|
|
270
|
+
var o = t(), s = 0;
|
|
271
|
+
n(r, function(t) {
|
|
272
|
+
var n = i(t);
|
|
273
|
+
process.env.NODE_ENV !== "production" && e(c(n));
|
|
274
|
+
var l = o.get(n) || 0;
|
|
275
|
+
a && a(t, l), !l && !a && (r[s++] = t), o.set(n, l + 1);
|
|
276
|
+
}), a || (r.length = s);
|
|
277
|
+
}
|
|
278
|
+
function $(e, t, n) {
|
|
279
|
+
var r = e.getData().count();
|
|
280
|
+
return {
|
|
281
|
+
progressiveRender: n.progressiveEnabled && t.incrementalPrepareRender && r >= n.threshold,
|
|
282
|
+
large: e.get("large") && r >= e.get("largeThreshold"),
|
|
283
|
+
modDataCount: e.get("progressiveChunkMode") === "mod" ? e.getData().count() : null
|
|
284
|
+
};
|
|
285
|
+
}
|
|
286
|
+
function te(e, t) {
|
|
287
|
+
return {
|
|
288
|
+
seriesType: e,
|
|
289
|
+
overallReset: t
|
|
290
|
+
};
|
|
291
|
+
}
|
|
292
|
+
function ne(e) {
|
|
293
|
+
return { overallReset: e };
|
|
294
|
+
}
|
|
295
|
+
//#endregion
|
|
296
|
+
export { U as SINGLE_REFERRING, b as TEXT_STYLE_OPTIONS, M as convertOptionIdName, te as createSimpleOverallStageHandler, ne as createSimpleOverallStageHandler2, y as defaultEmphasis, q as getAttribute, x as getDataItemValue, J as getTooltipRenderMode, Y as initExtentForUnion, I as isComponentIdInternal, S as isDataItemOption, F as isNameSpecified, X as makeCallOnlyOnce, ee as makeInner, G as makeQueryConditionKindA, C as mappingToExists, v as normalizeToArray, V as parseFinder, H as preParseFinder, $ as preparePipelineContext, z as queryDataIndex, W as queryReferringComponents, Q as removeDuplicates, K as setAttribute, L as setComponentTypeToKeyInfo };
|
|
@@ -0,0 +1,132 @@
|
|
|
1
|
+
import { assert as e, isString as t, map as n, reduce as r } from "../../../zrender/lib/core/util.js";
|
|
2
|
+
//#region node_modules/echarts/lib/util/number.js
|
|
3
|
+
var i = 1e-4, a = 20;
|
|
4
|
+
function o(e) {
|
|
5
|
+
return e.replace(/^\s+|\s+$/g, "");
|
|
6
|
+
}
|
|
7
|
+
var s = Math.min, c = Math.max, l = Math.abs, u = Math.round, d = Math.floor, f = Math.pow, p = Math.PI, m = Math.random;
|
|
8
|
+
function h(e, t, n, r) {
|
|
9
|
+
var i = t[0], a = t[1], o = n[0], s = n[1], c = a - i, l = s - o;
|
|
10
|
+
if (c === 0) return l === 0 ? o : (o + s) / 2;
|
|
11
|
+
if (r) {
|
|
12
|
+
if (c > 0) {
|
|
13
|
+
if (e <= i) return o;
|
|
14
|
+
if (e >= a) return s;
|
|
15
|
+
} else if (e >= i) return o;
|
|
16
|
+
else if (e <= a) return s;
|
|
17
|
+
} else {
|
|
18
|
+
if (e === i) return o;
|
|
19
|
+
if (e === a) return s;
|
|
20
|
+
}
|
|
21
|
+
return (e - i) / c * l + o;
|
|
22
|
+
}
|
|
23
|
+
var g = _;
|
|
24
|
+
function _(e, t, n) {
|
|
25
|
+
switch (e) {
|
|
26
|
+
case "center":
|
|
27
|
+
case "middle":
|
|
28
|
+
e = "50%";
|
|
29
|
+
break;
|
|
30
|
+
case "left":
|
|
31
|
+
case "top":
|
|
32
|
+
e = "0%";
|
|
33
|
+
break;
|
|
34
|
+
case "right":
|
|
35
|
+
case "bottom":
|
|
36
|
+
e = "100%";
|
|
37
|
+
break;
|
|
38
|
+
}
|
|
39
|
+
return v(e, t, n);
|
|
40
|
+
}
|
|
41
|
+
function v(e, n, r) {
|
|
42
|
+
return t(e) ? y(e) ? parseFloat(e) / 100 * n + (r || 0) : parseFloat(e) : e == null ? NaN : +e;
|
|
43
|
+
}
|
|
44
|
+
function y(e) {
|
|
45
|
+
return !!o(e).match(/%$/);
|
|
46
|
+
}
|
|
47
|
+
function b(t, n, r) {
|
|
48
|
+
return process.env.NODE_ENV !== "production" && e(n != null), isNaN(n) ? r ? "" + t : +t : (n = s(c(0, n), a), t = (+t).toFixed(n), r ? t : +t);
|
|
49
|
+
}
|
|
50
|
+
function x(e) {
|
|
51
|
+
return e.sort(function(e, t) {
|
|
52
|
+
return e - t;
|
|
53
|
+
}), e;
|
|
54
|
+
}
|
|
55
|
+
function S(e) {
|
|
56
|
+
if (e = +e, isNaN(e)) return 0;
|
|
57
|
+
if (e > 1e-14) {
|
|
58
|
+
for (var t = 1, n = 0; n < 15; n++, t *= 10) if (u(e * t) / t === e) return n;
|
|
59
|
+
}
|
|
60
|
+
return C(e);
|
|
61
|
+
}
|
|
62
|
+
function C(e) {
|
|
63
|
+
var t = e.toString().toLowerCase(), n = t.indexOf("e"), r = n > 0 ? +t.slice(n + 1) : 0, i = n > 0 ? n : t.length, a = t.indexOf(".");
|
|
64
|
+
return c(0, (a < 0 ? 0 : i - 1 - a) - r);
|
|
65
|
+
}
|
|
66
|
+
function w(e, t) {
|
|
67
|
+
var i = r(e, function(e, t) {
|
|
68
|
+
return e + (isNaN(t) ? 0 : t);
|
|
69
|
+
}, 0);
|
|
70
|
+
if (i === 0) return [];
|
|
71
|
+
for (var a = f(10, t), o = n(e, function(e) {
|
|
72
|
+
return (isNaN(e) ? 0 : e) / i * a * 100;
|
|
73
|
+
}), s = a * 100, c = n(o, function(e) {
|
|
74
|
+
return d(e);
|
|
75
|
+
}), l = r(c, function(e, t) {
|
|
76
|
+
return e + t;
|
|
77
|
+
}, 0), u = n(o, function(e, t) {
|
|
78
|
+
return e - c[t];
|
|
79
|
+
}); l < s;) {
|
|
80
|
+
for (var p = -Infinity, m = null, h = 0, g = u.length; h < g; ++h) u[h] > p && (p = u[h], m = h);
|
|
81
|
+
++c[m], u[m] = 0, ++l;
|
|
82
|
+
}
|
|
83
|
+
return n(c, function(e) {
|
|
84
|
+
return e / a;
|
|
85
|
+
});
|
|
86
|
+
}
|
|
87
|
+
function T(e, t) {
|
|
88
|
+
var n = c(S(e), S(t)), r = e + t;
|
|
89
|
+
return n > a ? r : b(r, n);
|
|
90
|
+
}
|
|
91
|
+
f(2, 53) - 1;
|
|
92
|
+
function E(e) {
|
|
93
|
+
var t = p * 2;
|
|
94
|
+
return (e % t + t) % t;
|
|
95
|
+
}
|
|
96
|
+
function D(e) {
|
|
97
|
+
return e > -i && e < i;
|
|
98
|
+
}
|
|
99
|
+
var O = /^(?:(\d{4})(?:[-\/](\d{1,2})(?:[-\/](\d{1,2})(?:[T ](\d{1,2})(?::(\d{1,2})(?::(\d{1,2})(?:[.,](\d+))?)?)?(Z|[\+\-]\d\d:?\d\d)?)?)?)?)?$/;
|
|
100
|
+
function k(e) {
|
|
101
|
+
if (e instanceof Date) return e;
|
|
102
|
+
if (t(e)) {
|
|
103
|
+
var n = O.exec(e);
|
|
104
|
+
if (!n) return /* @__PURE__ */ new Date(NaN);
|
|
105
|
+
if (n[8]) {
|
|
106
|
+
var r = +n[4] || 0;
|
|
107
|
+
return n[8].toUpperCase() !== "Z" && (r -= +n[8].slice(0, 3)), new Date(Date.UTC(+n[1], (n[2] || 1) - 1, +n[3] || 1, r, +(n[5] || 0), +n[6] || 0, n[7] ? +n[7].substring(0, 3) : 0));
|
|
108
|
+
} else return new Date(+n[1], (n[2] || 1) - 1, +n[3] || 1, +n[4] || 0, +(n[5] || 0), +n[6] || 0, n[7] ? +n[7].substring(0, 3) : 0);
|
|
109
|
+
} else if (e == null) return /* @__PURE__ */ new Date(NaN);
|
|
110
|
+
return new Date(u(e));
|
|
111
|
+
}
|
|
112
|
+
function A(e) {
|
|
113
|
+
var n = parseFloat(e);
|
|
114
|
+
return n == e && (n !== 0 || !t(e) || e.indexOf("x") <= 0) ? n : NaN;
|
|
115
|
+
}
|
|
116
|
+
function j(e) {
|
|
117
|
+
return !isNaN(A(e));
|
|
118
|
+
}
|
|
119
|
+
function M() {
|
|
120
|
+
return u(m() * 9);
|
|
121
|
+
}
|
|
122
|
+
function N(e, t) {
|
|
123
|
+
return t === 0 ? e : N(t, e % t);
|
|
124
|
+
}
|
|
125
|
+
function P(e, t) {
|
|
126
|
+
return e == null ? t : t == null ? e : e * t / N(e, t);
|
|
127
|
+
}
|
|
128
|
+
function F(e) {
|
|
129
|
+
return e != null && isFinite(e);
|
|
130
|
+
}
|
|
131
|
+
//#endregion
|
|
132
|
+
export { T as addSafe, x as asc, P as getLeastCommonMultiple, w as getPercentSeats, M as getRandomIdBase, F as isNullableNumberFinite, j as isNumeric, D as isRadianAroundZero, h as linearMap, l as mathAbs, c as mathMax, s as mathMin, A as numericToNumber, k as parseDate, g as parsePercent, E as remRadian };
|