reke-ui 0.5.2 → 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.
Files changed (159) hide show
  1. package/custom-elements.json +764 -3
  2. package/dist/components/reke-bar-chart/reke-bar-chart.d.ts +99 -0
  3. package/dist/components/reke-bar-chart/reke-bar-chart.d.ts.map +1 -0
  4. package/dist/components/reke-bar-chart/reke-bar-chart.js +319 -0
  5. package/dist/components/reke-bar-chart/reke-bar-chart.styles.d.ts +2 -0
  6. package/dist/components/reke-bar-chart/reke-bar-chart.styles.d.ts.map +1 -0
  7. package/dist/components/reke-bar-chart/reke-bar-chart.styles.js +36 -0
  8. package/dist/components/reke-dialog/reke-dialog.d.ts +19 -0
  9. package/dist/components/reke-dialog/reke-dialog.d.ts.map +1 -1
  10. package/dist/components/reke-dialog/reke-dialog.js +40 -15
  11. package/dist/components/reke-dialog/reke-dialog.styles.d.ts.map +1 -1
  12. package/dist/components/reke-dialog/reke-dialog.styles.js +110 -0
  13. package/dist/components/reke-pie-chart/reke-pie-chart.d.ts +52 -1
  14. package/dist/components/reke-pie-chart/reke-pie-chart.d.ts.map +1 -1
  15. package/dist/components/reke-pie-chart/reke-pie-chart.js +181 -42
  16. package/dist/components/reke-pie-chart/reke-pie-chart.styles.d.ts.map +1 -1
  17. package/dist/components/reke-pie-chart/reke-pie-chart.styles.js +47 -0
  18. package/dist/index.d.ts +2 -0
  19. package/dist/index.d.ts.map +1 -1
  20. package/dist/index.js +21 -20
  21. package/dist/node_modules/echarts/lib/chart/bar/BarSeries.js +50 -0
  22. package/dist/node_modules/echarts/lib/chart/bar/BarView.js +431 -0
  23. package/dist/node_modules/echarts/lib/chart/bar/BaseBarSeries.js +65 -0
  24. package/dist/node_modules/echarts/lib/chart/bar/install.js +22 -0
  25. package/dist/node_modules/echarts/lib/chart/helper/Symbol.js +142 -0
  26. package/dist/node_modules/echarts/lib/chart/helper/SymbolDraw.js +99 -0
  27. package/dist/node_modules/echarts/lib/chart/helper/axisSnippets.js +19 -0
  28. package/dist/node_modules/echarts/lib/chart/helper/createClipPathFromCoordSys.js +50 -0
  29. package/dist/node_modules/echarts/lib/chart/helper/createSeriesData.js +55 -0
  30. package/dist/node_modules/echarts/lib/chart/helper/createSeriesDataSimply.js +3 -3
  31. package/dist/node_modules/echarts/lib/chart/helper/labelHelper.js +24 -0
  32. package/dist/node_modules/echarts/lib/chart/line/LineSeries.js +60 -0
  33. package/dist/node_modules/echarts/lib/chart/line/LineView.js +471 -0
  34. package/dist/node_modules/echarts/lib/chart/line/helper.js +34 -0
  35. package/dist/node_modules/echarts/lib/chart/line/install.js +16 -0
  36. package/dist/node_modules/echarts/lib/chart/line/lineAnimationDiff.js +59 -0
  37. package/dist/node_modules/echarts/lib/chart/line/poly.js +135 -0
  38. package/dist/node_modules/echarts/lib/chart/pie/PieSeries.js +32 -32
  39. package/dist/node_modules/echarts/lib/chart/pie/PieView.js +69 -69
  40. package/dist/node_modules/echarts/lib/chart/pie/labelLayout.js +25 -25
  41. package/dist/node_modules/echarts/lib/chart/pie/pieLayout.js +16 -16
  42. package/dist/node_modules/echarts/lib/component/axis/AxisBuilder.js +153 -153
  43. package/dist/node_modules/echarts/lib/component/axis/AxisView.js +13 -13
  44. package/dist/node_modules/echarts/lib/component/axis/CartesianAxisView.js +106 -0
  45. package/dist/node_modules/echarts/lib/component/axis/axisSplitHelper.js +50 -0
  46. package/dist/node_modules/echarts/lib/component/axisPointer/BaseAxisPointer.js +20 -20
  47. package/dist/node_modules/echarts/lib/component/axisPointer/CartesianAxisPointer.js +30 -30
  48. package/dist/node_modules/echarts/lib/component/axisPointer/viewHelper.js +13 -13
  49. package/dist/node_modules/echarts/lib/component/dataZoom/AxisProxy.js +114 -0
  50. package/dist/node_modules/echarts/lib/component/dataZoom/DataZoomModel.js +189 -0
  51. package/dist/node_modules/echarts/lib/component/dataZoom/DataZoomView.js +15 -0
  52. package/dist/node_modules/echarts/lib/component/dataZoom/InsideZoomModel.js +21 -0
  53. package/dist/node_modules/echarts/lib/component/dataZoom/InsideZoomView.js +67 -0
  54. package/dist/node_modules/echarts/lib/component/dataZoom/SliderZoomModel.js +75 -0
  55. package/dist/node_modules/echarts/lib/component/dataZoom/SliderZoomView.js +465 -0
  56. package/dist/node_modules/echarts/lib/component/dataZoom/dataZoomAction.js +17 -0
  57. package/dist/node_modules/echarts/lib/component/dataZoom/dataZoomProcessor.js +55 -0
  58. package/dist/node_modules/echarts/lib/component/dataZoom/helper.js +88 -0
  59. package/dist/node_modules/echarts/lib/component/dataZoom/installCommon.js +14 -0
  60. package/dist/node_modules/echarts/lib/component/dataZoom/installDataZoomInside.js +10 -0
  61. package/dist/node_modules/echarts/lib/component/dataZoom/installDataZoomSlider.js +9 -0
  62. package/dist/node_modules/echarts/lib/component/dataZoom/roams.js +132 -0
  63. package/dist/node_modules/echarts/lib/component/grid/install.js +9 -0
  64. package/dist/node_modules/echarts/lib/component/grid/installSimple.js +32 -0
  65. package/dist/node_modules/echarts/lib/component/helper/RoamController.js +172 -0
  66. package/dist/node_modules/echarts/lib/component/helper/cursorHelper.js +17 -0
  67. package/dist/node_modules/echarts/lib/component/helper/interactionMutex.js +15 -0
  68. package/dist/node_modules/echarts/lib/component/helper/sliderMove.js +29 -0
  69. package/dist/node_modules/echarts/lib/component/legend/LegendModel.js +31 -31
  70. package/dist/node_modules/echarts/lib/component/legend/LegendView.js +61 -61
  71. package/dist/node_modules/echarts/lib/component/legend/ScrollableLegendView.js +29 -29
  72. package/dist/node_modules/echarts/lib/component/tooltip/TooltipRichContent.js +4 -4
  73. package/dist/node_modules/echarts/lib/component/tooltip/TooltipView.js +105 -105
  74. package/dist/node_modules/echarts/lib/coord/Axis.js +92 -0
  75. package/dist/node_modules/echarts/lib/coord/CoordinateSystem.js +6 -0
  76. package/dist/node_modules/echarts/lib/coord/axisAlignTicks.js +76 -0
  77. package/dist/node_modules/echarts/lib/coord/axisCommonTypes.js +9 -0
  78. package/dist/node_modules/echarts/lib/coord/axisDefault.js +124 -0
  79. package/dist/node_modules/echarts/lib/coord/axisHelper.js +123 -14
  80. package/dist/node_modules/echarts/lib/coord/axisModelCommonMixin.js +9 -0
  81. package/dist/node_modules/echarts/lib/coord/axisModelCreator.js +39 -0
  82. package/dist/node_modules/echarts/lib/coord/axisNiceTicks.js +64 -0
  83. package/dist/node_modules/echarts/lib/coord/axisStatistics.js +101 -22
  84. package/dist/node_modules/echarts/lib/coord/axisStatisticsMetricsImpl.js +43 -0
  85. package/dist/node_modules/echarts/lib/coord/axisTickLabelBuilder.js +151 -5
  86. package/dist/node_modules/echarts/lib/coord/cartesian/Axis2D.js +24 -0
  87. package/dist/node_modules/echarts/lib/coord/cartesian/AxisModel.js +18 -0
  88. package/dist/node_modules/echarts/lib/coord/cartesian/Cartesian.js +23 -0
  89. package/dist/node_modules/echarts/lib/coord/cartesian/Cartesian2D.js +69 -0
  90. package/dist/node_modules/echarts/lib/coord/cartesian/Grid.js +314 -0
  91. package/dist/node_modules/echarts/lib/coord/cartesian/GridModel.js +40 -0
  92. package/dist/node_modules/echarts/lib/coord/cartesian/cartesianAxisHelper.js +43 -12
  93. package/dist/node_modules/echarts/lib/coord/scaleRawExtentInfo.js +175 -0
  94. package/dist/node_modules/echarts/lib/core/CoordinateSystem.js +39 -16
  95. package/dist/node_modules/echarts/lib/core/echarts.js +421 -421
  96. package/dist/node_modules/echarts/lib/data/OrdinalMeta.js +30 -0
  97. package/dist/node_modules/echarts/lib/data/SeriesData.js +18 -18
  98. package/dist/node_modules/echarts/lib/data/helper/createDimensions.js +6 -6
  99. package/dist/node_modules/echarts/lib/data/helper/dataStackHelper.js +59 -0
  100. package/dist/node_modules/echarts/lib/data/helper/dataValueHelper.js +13 -13
  101. package/dist/node_modules/echarts/lib/data/helper/dimensionHelper.js +7 -4
  102. package/dist/node_modules/echarts/lib/data/helper/sourceHelper.js +40 -8
  103. package/dist/node_modules/echarts/lib/data/helper/sourceManager.js +3 -3
  104. package/dist/node_modules/echarts/lib/data/helper/transform.js +8 -8
  105. package/dist/node_modules/echarts/lib/extension.js +10 -10
  106. package/dist/node_modules/echarts/lib/label/labelGuideHelper.js +10 -10
  107. package/dist/node_modules/echarts/lib/label/labelStyle.js +34 -25
  108. package/dist/node_modules/echarts/lib/label/sectorLabel.js +83 -0
  109. package/dist/node_modules/echarts/lib/layout/barCommon.js +19 -0
  110. package/dist/node_modules/echarts/lib/layout/barGrid.js +165 -0
  111. package/dist/node_modules/echarts/lib/layout/points.js +37 -0
  112. package/dist/node_modules/echarts/lib/loading/default.js +6 -6
  113. package/dist/node_modules/echarts/lib/model/Component.js +39 -39
  114. package/dist/node_modules/echarts/lib/model/Global.js +122 -122
  115. package/dist/node_modules/echarts/lib/model/Series.js +78 -78
  116. package/dist/node_modules/echarts/lib/model/referHelper.js +58 -0
  117. package/dist/node_modules/echarts/lib/processor/dataSample.js +43 -0
  118. package/dist/node_modules/echarts/lib/scale/Interval.js +68 -0
  119. package/dist/node_modules/echarts/lib/scale/Log.js +100 -0
  120. package/dist/node_modules/echarts/lib/scale/Ordinal.js +92 -0
  121. package/dist/node_modules/echarts/lib/scale/Scale.js +13 -0
  122. package/dist/node_modules/echarts/lib/scale/Time.js +242 -0
  123. package/dist/node_modules/echarts/lib/scale/break.js +10 -2
  124. package/dist/node_modules/echarts/lib/scale/helper.js +61 -3
  125. package/dist/node_modules/echarts/lib/scale/minorTicks.js +22 -0
  126. package/dist/node_modules/echarts/lib/scale/scaleMapper.js +89 -7
  127. package/dist/node_modules/echarts/lib/util/clazz.js +35 -35
  128. package/dist/node_modules/echarts/lib/util/component.js +16 -16
  129. package/dist/node_modules/echarts/lib/util/cycleCache.js +4 -1
  130. package/dist/node_modules/echarts/lib/util/decal.js +11 -11
  131. package/dist/node_modules/echarts/lib/util/format.js +1 -1
  132. package/dist/node_modules/echarts/lib/util/graphic.js +170 -170
  133. package/dist/node_modules/echarts/lib/util/layout.js +23 -23
  134. package/dist/node_modules/echarts/lib/util/model.js +128 -68
  135. package/dist/node_modules/echarts/lib/util/number.js +55 -37
  136. package/dist/node_modules/echarts/lib/util/shape/sausage.js +25 -0
  137. package/dist/node_modules/echarts/lib/util/states.js +96 -82
  138. package/dist/node_modules/echarts/lib/util/styleCompat.js +10 -0
  139. package/dist/node_modules/echarts/lib/util/symbol.js +24 -21
  140. package/dist/node_modules/echarts/lib/util/time.js +154 -18
  141. package/dist/node_modules/echarts/lib/util/vendor.js +26 -0
  142. package/dist/node_modules/echarts/lib/view/Chart.js +19 -19
  143. package/dist/node_modules/echarts/lib/view/Component.js +7 -7
  144. package/dist/node_modules/echarts/lib/visual/style.js +5 -5
  145. package/dist/node_modules/zrender/lib/Element.js +35 -35
  146. package/dist/node_modules/zrender/lib/canvas/graphic.js +36 -36
  147. package/dist/node_modules/zrender/lib/core/PathProxy.js +25 -25
  148. package/dist/node_modules/zrender/lib/core/event.js +4 -1
  149. package/dist/node_modules/zrender/lib/core/util.js +69 -64
  150. package/dist/node_modules/zrender/lib/graphic/TSpan.js +7 -7
  151. package/dist/node_modules/zrender/lib/graphic/Text.js +37 -37
  152. package/dist/node_modules/zrender/lib/graphic/helper/parseText.js +59 -59
  153. package/dist/node_modules/zrender/lib/tool/color.js +60 -41
  154. package/dist/react.d.ts +10 -0
  155. package/dist/react.d.ts.map +1 -1
  156. package/dist/react.js +85 -73
  157. package/dist/shared/tailwind.js +1 -1
  158. package/dist/tokens/reke-tokens.css +1 -0
  159. package/package.json +5 -1
@@ -1,9 +1,9 @@
1
- import { assert as e, clone as t, createHashMap as n, each as r, extend as i, filter as a, isArray as o, isFunction as s, isObject as c, isString as l, merge as u, mixin as d } from "../../../zrender/lib/core/util.js";
2
- import { error as f, warn as p } from "../util/log.js";
3
- import { convertOptionIdName as m, isComponentIdInternal as h, mappingToExists as g, normalizeToArray as _, setComponentTypeToKeyInfo as v } from "../util/model.js";
4
- import { __extends as y } from "../../node_modules/tslib/tslib.es6.js";
5
- import { resetSourceDefaulter as b } from "../data/helper/sourceHelper.js";
6
- import x from "./Model.js";
1
+ import { __extends as e } from "../../node_modules/tslib/tslib.es6.js";
2
+ import { assert as t, clone as n, createHashMap as r, each as i, extend as a, filter as o, isArray as s, isFunction as c, isObject as l, isString as u, merge as d, mixin as f } from "../../../zrender/lib/core/util.js";
3
+ import { error as p, warn as m } from "../util/log.js";
4
+ import { convertOptionIdName as h, isComponentIdInternal as g, mappingToExists as _, normalizeToArray as v, setComponentTypeToKeyInfo as y } from "../util/model.js";
5
+ import b from "./Model.js";
6
+ import { resetSourceDefaulter as x } from "../data/helper/sourceHelper.js";
7
7
  import S from "./Component.js";
8
8
  import { PaletteMixin as C } from "./mixin/palette.js";
9
9
  import w from "./globalDefault.js";
@@ -60,104 +60,104 @@ var E, D, O, k = "\0_ec_inner", A = 1, j = {
60
60
  custom: "CustomChart"
61
61
  }, N = {};
62
62
  function P(e) {
63
- r(e, function(e, t) {
63
+ i(e, function(e, t) {
64
64
  if (!S.hasClass(t)) {
65
65
  var n = j[t];
66
- n && !N[n] && (f("Component " + t + " is used but not imported.\nimport { " + n + " } from 'echarts/components';\necharts.use([" + n + "]);"), N[n] = !0);
66
+ n && !N[n] && (p("Component " + t + " is used but not imported.\nimport { " + n + " } from 'echarts/components';\necharts.use([" + n + "]);"), N[n] = !0);
67
67
  }
68
68
  });
69
69
  }
70
- var F = function(o) {
71
- y(d, o);
72
- function d() {
73
- return o !== null && o.apply(this, arguments) || this;
70
+ var F = function(s) {
71
+ e(f, s);
72
+ function f() {
73
+ return s !== null && s.apply(this, arguments) || this;
74
74
  }
75
- return d.prototype.init = function(e, t, n, r, i, a) {
76
- r ||= {}, this.option = null, this._theme = new x(r), this._locale = new x(i), this._optionManager = a;
77
- }, d.prototype.setOption = function(t, n, r) {
78
- process.env.NODE_ENV !== "production" && (e(t != null, "option is null/undefined"), e(t[k] !== A, "please use chart.getOption()"));
75
+ return f.prototype.init = function(e, t, n, r, i, a) {
76
+ r ||= {}, this.option = null, this._theme = new b(r), this._locale = new b(i), this._optionManager = a;
77
+ }, f.prototype.setOption = function(e, n, r) {
78
+ process.env.NODE_ENV !== "production" && (t(e != null, "option is null/undefined"), t(e[k] !== A, "please use chart.getOption()"));
79
79
  var i = B(n);
80
- this._optionManager.setOption(t, r, i), this._resetOption(null, i);
81
- }, d.prototype.resetOption = function(e, t) {
80
+ this._optionManager.setOption(e, r, i), this._resetOption(null, i);
81
+ }, f.prototype.resetOption = function(e, t) {
82
82
  return this._resetOption(e, B(t));
83
- }, d.prototype._resetOption = function(e, t) {
84
- var n = !1, i = this._optionManager;
83
+ }, f.prototype._resetOption = function(e, t) {
84
+ var n = !1, r = this._optionManager;
85
85
  if (!e || e === "recreate") {
86
- var a = i.mountOption(e === "recreate");
86
+ var a = r.mountOption(e === "recreate");
87
87
  process.env.NODE_ENV !== "production" && P(a), !this.option || e === "recreate" ? O(this, a) : (this.restoreData(), this._mergeOption(a, t)), n = !0;
88
88
  }
89
89
  if ((e === "timeline" || e === "media") && this.restoreData(), !e || e === "recreate" || e === "timeline") {
90
- var o = i.getTimelineOption(this);
90
+ var o = r.getTimelineOption(this);
91
91
  o && (n = !0, this._mergeOption(o, t));
92
92
  }
93
93
  if (!e || e === "recreate" || e === "media") {
94
- var s = i.getMediaOption(this);
95
- s.length && r(s, function(e) {
94
+ var s = r.getMediaOption(this);
95
+ s.length && i(s, function(e) {
96
96
  n = !0, this._mergeOption(e, t);
97
97
  }, this);
98
98
  }
99
99
  return n;
100
- }, d.prototype.mergeOption = function(e) {
100
+ }, f.prototype.mergeOption = function(e) {
101
101
  this._mergeOption(e, null);
102
- }, d.prototype._mergeOption = function(e, a) {
103
- var o = this.option, s = this._componentsMap, c = this._componentsCount, l = [], d = n(), m = a && a.replaceMergeMainTypeMap;
104
- b(this), r(e, function(e, n) {
105
- e != null && (S.hasClass(n) ? n && (l.push(n), d.set(n, !0)) : o[n] = o[n] == null ? t(e) : u(o[n], e, !0));
106
- }), m && m.each(function(e, t) {
107
- S.hasClass(t) && !d.get(t) && (l.push(t), d.set(t, !0));
102
+ }, f.prototype._mergeOption = function(e, t) {
103
+ var o = this.option, s = this._componentsMap, c = this._componentsCount, l = [], u = r(), f = t && t.replaceMergeMainTypeMap;
104
+ x(this), i(e, function(e, t) {
105
+ e != null && (S.hasClass(t) ? t && (l.push(t), u.set(t, !0)) : o[t] = o[t] == null ? n(e) : d(o[t], e, !0));
106
+ }), f && f.each(function(e, t) {
107
+ S.hasClass(t) && !u.get(t) && (l.push(t), u.set(t, !0));
108
108
  }), S.topologicalTravel(l, S.getAllClassMainTypes(), h, this);
109
109
  function h(t) {
110
- var n = T(this, t, _(e[t])), a = s.get(t), l = g(a, n, a ? m && m.get(t) ? "replaceMerge" : "normalMerge" : "replaceAll");
111
- v(l, t, S), o[t] = null, s.set(t, null), c.set(t, 0);
112
- var u = [], d = [], h = 0, y, b;
113
- r(l, function(e, n) {
114
- var r = e.existing, a = e.newOption;
115
- if (!a) r && (r.mergeOption({}, this), r.optionUpdated({}, !1));
110
+ var n = T(this, t, v(e[t])), r = s.get(t), l = _(r, n, r ? f && f.get(t) ? "replaceMerge" : "normalMerge" : "replaceAll");
111
+ y(l, t, S), o[t] = null, s.set(t, null), c.set(t, 0);
112
+ var u = [], d = [], h = 0, g, b;
113
+ i(l, function(e, n) {
114
+ var r = e.existing, i = e.newOption;
115
+ if (!i) r && (r.mergeOption({}, this), r.optionUpdated({}, !1));
116
116
  else {
117
117
  var o = t === "series", s = S.getClass(t, e.keyInfo.subType, !o);
118
118
  if (!s) {
119
119
  if (process.env.NODE_ENV !== "production") {
120
120
  var c = e.keyInfo.subType, l = M[c];
121
- N[c] || (N[c] = !0, f(l ? "Series " + c + " is used but not imported.\nimport { " + l + " } from 'echarts/charts';\necharts.use([" + l + "]);" : "Unknown series " + c));
121
+ N[c] || (N[c] = !0, p(l ? "Series " + c + " is used but not imported.\nimport { " + l + " } from 'echarts/charts';\necharts.use([" + l + "]);" : "Unknown series " + c));
122
122
  }
123
123
  return;
124
124
  }
125
125
  if (t === "tooltip") {
126
- if (y) {
127
- process.env.NODE_ENV !== "production" && (b ||= (p("Currently only one tooltip component is allowed."), !0));
126
+ if (g) {
127
+ process.env.NODE_ENV !== "production" && (b ||= (m("Currently only one tooltip component is allowed."), !0));
128
128
  return;
129
129
  }
130
- y = !0;
130
+ g = !0;
131
131
  }
132
- if (r && r.constructor === s) r.name = e.keyInfo.name, r.mergeOption(a, this), r.optionUpdated(a, !1);
132
+ if (r && r.constructor === s) r.name = e.keyInfo.name, r.mergeOption(i, this), r.optionUpdated(i, !1);
133
133
  else {
134
- var m = i({ componentIndex: n }, e.keyInfo);
135
- r = new s(a, this, this, m), i(r, m), e.brandNew && (r.__requireNewView = !0), r.init(a, this, this), r.optionUpdated(null, !0);
134
+ var f = a({ componentIndex: n }, e.keyInfo);
135
+ r = new s(i, this, this, f), a(r, f), e.brandNew && (r.__requireNewView = !0), r.init(i, this, this), r.optionUpdated(null, !0);
136
136
  }
137
137
  }
138
138
  r ? (u.push(r.option), d.push(r), h++) : (u.push(void 0), d.push(void 0));
139
139
  }, this), o[t] = u, s.set(t, d), c.set(t, h), t === "series" && E(this);
140
140
  }
141
141
  this._seriesIndices || E(this);
142
- }, d.prototype.getOption = function() {
143
- var e = t(this.option);
144
- return r(e, function(t, n) {
142
+ }, f.prototype.getOption = function() {
143
+ var e = n(this.option);
144
+ return i(e, function(t, n) {
145
145
  if (S.hasClass(n)) {
146
- for (var r = _(t), i = r.length, a = !1, o = i - 1; o >= 0; o--) r[o] && !h(r[o]) ? a = !0 : (r[o] = null, !a && i--);
146
+ for (var r = v(t), i = r.length, a = !1, o = i - 1; o >= 0; o--) r[o] && !g(r[o]) ? a = !0 : (r[o] = null, !a && i--);
147
147
  r.length = i, e[n] = r;
148
148
  }
149
149
  }), delete e[k], e;
150
- }, d.prototype.setTheme = function(e) {
151
- this._theme = new x(e), this._resetOption("recreate", null);
152
- }, d.prototype.getTheme = function() {
150
+ }, f.prototype.setTheme = function(e) {
151
+ this._theme = new b(e), this._resetOption("recreate", null);
152
+ }, f.prototype.getTheme = function() {
153
153
  return this._theme;
154
- }, d.prototype.getLocaleModel = function() {
154
+ }, f.prototype.getLocaleModel = function() {
155
155
  return this._locale;
156
- }, d.prototype.setUpdatePayload = function(e) {
156
+ }, f.prototype.setUpdatePayload = function(e) {
157
157
  this._payload = e;
158
- }, d.prototype.getUpdatePayload = function() {
158
+ }, f.prototype.getUpdatePayload = function() {
159
159
  return this._payload;
160
- }, d.prototype.getComponent = function(e, t) {
160
+ }, f.prototype.getComponent = function(e, t) {
161
161
  var n = this._componentsMap.get(e);
162
162
  if (n) {
163
163
  var r = n[t || 0];
@@ -166,20 +166,20 @@ var F = function(o) {
166
166
  for (var i = 0; i < n.length; i++) if (n[i]) return n[i];
167
167
  }
168
168
  }
169
- }, d.prototype.queryComponents = function(e) {
169
+ }, f.prototype.queryComponents = function(e) {
170
170
  var t = e.mainType;
171
171
  if (!t) return [];
172
- var n = e.index, i = e.id, o = e.name, s = this._componentsMap.get(t);
172
+ var n = e.index, r = e.id, a = e.name, s = this._componentsMap.get(t);
173
173
  if (!s || !s.length) return [];
174
174
  var c;
175
- return n == null ? c = i == null ? o == null ? a(s, function(e) {
175
+ return n == null ? c = r == null ? a == null ? o(s, function(e) {
176
176
  return !!e;
177
- }) : R("name", o, s) : R("id", i, s) : (c = [], r(_(n), function(e) {
177
+ }) : R("name", a, s) : R("id", r, s) : (c = [], i(v(n), function(e) {
178
178
  s[e] && c.push(s[e]);
179
179
  })), z(c, e);
180
- }, d.prototype.findComponents = function(e) {
180
+ }, f.prototype.findComponents = function(e) {
181
181
  var t = e.query, n = e.mainType, r = i(t);
182
- return o(z(r ? this.queryComponents(r) : a(this._componentsMap.get(n), function(e) {
182
+ return a(z(r ? this.queryComponents(r) : o(this._componentsMap.get(n), function(e) {
183
183
  return !!e;
184
184
  }), e));
185
185
  function i(e) {
@@ -191,12 +191,12 @@ var F = function(o) {
191
191
  name: e[i]
192
192
  } : null;
193
193
  }
194
- function o(t) {
195
- return e.filter ? a(t, e.filter) : t;
194
+ function a(t) {
195
+ return e.filter ? o(t, e.filter) : t;
196
196
  }
197
- }, d.prototype.eachComponent = function(e, t, n) {
197
+ }, f.prototype.eachComponent = function(e, t, n) {
198
198
  var r = this._componentsMap;
199
- if (s(e)) {
199
+ if (c(e)) {
200
200
  var i = t, a = e;
201
201
  r.each(function(e, t) {
202
202
  for (var n = 0; e && n < e.length; n++) {
@@ -204,117 +204,117 @@ var F = function(o) {
204
204
  r && a.call(i, t, r, r.componentIndex);
205
205
  }
206
206
  });
207
- } else for (var o = l(e) ? r.get(e) : c(e) ? this.findComponents(e) : null, u = 0; o && u < o.length; u++) {
208
- var d = o[u];
207
+ } else for (var o = u(e) ? r.get(e) : l(e) ? this.findComponents(e) : null, s = 0; o && s < o.length; s++) {
208
+ var d = o[s];
209
209
  d && t.call(n, d, d.componentIndex);
210
210
  }
211
- }, d.prototype.getSeriesByName = function(e) {
212
- var t = m(e, null);
213
- return a(this._componentsMap.get("series"), function(e) {
211
+ }, f.prototype.getSeriesByName = function(e) {
212
+ var t = h(e, null);
213
+ return o(this._componentsMap.get("series"), function(e) {
214
214
  return !!e && t != null && e.name === t;
215
215
  });
216
- }, d.prototype.getSeriesByIndex = function(e) {
216
+ }, f.prototype.getSeriesByIndex = function(e) {
217
217
  return this._componentsMap.get("series")[e];
218
- }, d.prototype.getSeriesByType = function(e) {
219
- return a(this._componentsMap.get("series"), function(t) {
218
+ }, f.prototype.getSeriesByType = function(e) {
219
+ return o(this._componentsMap.get("series"), function(t) {
220
220
  return !!t && t.subType === e;
221
221
  });
222
- }, d.prototype.getSeries = function() {
223
- return a(this._componentsMap.get("series"), function(e) {
222
+ }, f.prototype.getSeries = function() {
223
+ return o(this._componentsMap.get("series"), function(e) {
224
224
  return !!e;
225
225
  });
226
- }, d.prototype.getSeriesCount = function() {
226
+ }, f.prototype.getSeriesCount = function() {
227
227
  return this._componentsCount.get("series");
228
- }, d.prototype.eachSeries = function(e, t) {
229
- D(this), r(this._seriesIndices, function(n) {
228
+ }, f.prototype.eachSeries = function(e, t) {
229
+ D(this), i(this._seriesIndices, function(n) {
230
230
  var r = this._componentsMap.get("series")[n];
231
231
  e.call(t, r, n);
232
232
  }, this);
233
- }, d.prototype.eachRawSeries = function(e, t) {
234
- r(this._componentsMap.get("series"), function(n) {
233
+ }, f.prototype.eachRawSeries = function(e, t) {
234
+ i(this._componentsMap.get("series"), function(n) {
235
235
  n && e.call(t, n, n.componentIndex);
236
236
  });
237
- }, d.prototype.eachSeriesByType = function(e, t, n) {
238
- D(this), r(this._seriesIndices, function(r) {
237
+ }, f.prototype.eachSeriesByType = function(e, t, n) {
238
+ D(this), i(this._seriesIndices, function(r) {
239
239
  var i = this._componentsMap.get("series")[r];
240
240
  i.subType === e && t.call(n, i, r);
241
241
  }, this);
242
- }, d.prototype.eachRawSeriesByType = function(e, t, n) {
243
- return r(this.getSeriesByType(e), t, n);
244
- }, d.prototype.isSeriesFiltered = function(e) {
242
+ }, f.prototype.eachRawSeriesByType = function(e, t, n) {
243
+ return i(this.getSeriesByType(e), t, n);
244
+ }, f.prototype.isSeriesFiltered = function(e) {
245
245
  return D(this), this._seriesIndicesMap.get(e.componentIndex) == null;
246
- }, d.prototype.getCurrentSeriesIndices = function() {
246
+ }, f.prototype.getCurrentSeriesIndices = function() {
247
247
  return (this._seriesIndices || []).slice();
248
- }, d.prototype.filterSeries = function(e, t) {
248
+ }, f.prototype.filterSeries = function(e, t) {
249
249
  D(this);
250
- var i = [];
251
- r(this._seriesIndices, function(n) {
252
- var r = this._componentsMap.get("series")[n];
253
- e.call(t, r, n) && i.push(n);
254
- }, this), this._seriesIndices = i, this._seriesIndicesMap = n(i);
255
- }, d.prototype.restoreData = function(e) {
250
+ var n = [];
251
+ i(this._seriesIndices, function(r) {
252
+ var i = this._componentsMap.get("series")[r];
253
+ e.call(t, i, r) && n.push(r);
254
+ }, this), this._seriesIndices = n, this._seriesIndicesMap = r(n);
255
+ }, f.prototype.restoreData = function(e) {
256
256
  E(this);
257
257
  var t = this._componentsMap, n = [];
258
258
  t.each(function(e, t) {
259
259
  S.hasClass(t) && n.push(t);
260
260
  }), S.topologicalTravel(n, S.getAllClassMainTypes(), function(n) {
261
- r(t.get(n), function(t) {
261
+ i(t.get(n), function(t) {
262
262
  t && (n !== "series" || !I(t, e)) && t.restoreData();
263
263
  });
264
264
  });
265
- }, d.internalField = function() {
265
+ }, f.internalField = function() {
266
266
  E = function(e) {
267
267
  var t = e._seriesIndices = [];
268
- r(e._componentsMap.get("series"), function(e) {
268
+ i(e._componentsMap.get("series"), function(e) {
269
269
  e && t.push(e.componentIndex);
270
- }), e._seriesIndicesMap = n(t);
270
+ }), e._seriesIndicesMap = r(t);
271
271
  }, D = function(e) {
272
272
  if (process.env.NODE_ENV !== "production" && !e._seriesIndices) throw Error("Option should contains series.");
273
273
  }, O = function(e, t) {
274
- e.option = {}, e.option[k] = A, e._componentsMap = n({ series: [] }), e._componentsCount = n();
275
- var r = t.aria;
276
- c(r) && r.enabled == null && (r.enabled = !0), L(t, e._theme.option), u(t, w, !1), e._mergeOption(t, null);
274
+ e.option = {}, e.option[k] = A, e._componentsMap = r({ series: [] }), e._componentsCount = r();
275
+ var n = t.aria;
276
+ l(n) && n.enabled == null && (n.enabled = !0), L(t, e._theme.option), d(t, w, !1), e._mergeOption(t, null);
277
277
  };
278
- }(), d;
279
- }(x);
278
+ }(), f;
279
+ }(b);
280
280
  function I(e, t) {
281
281
  if (t) {
282
282
  var n = t.seriesIndex, r = t.seriesId, i = t.seriesName;
283
283
  return n != null && e.componentIndex !== n || r != null && e.id !== r || i != null && e.name !== i;
284
284
  }
285
285
  }
286
- function L(e, n) {
287
- var i = e.color && !e.colorLayer;
288
- r(n, function(n, r) {
289
- r === "colorLayer" && i || r === "color" && e.color || S.hasClass(r) || (typeof n == "object" ? e[r] = e[r] ? u(e[r], n, !1) : t(n) : e[r] ?? (e[r] = n));
286
+ function L(e, t) {
287
+ var r = e.color && !e.colorLayer;
288
+ i(t, function(t, i) {
289
+ i === "colorLayer" && r || i === "color" && e.color || S.hasClass(i) || (typeof t == "object" ? e[i] = e[i] ? d(e[i], t, !1) : n(t) : e[i] ?? (e[i] = t));
290
290
  });
291
291
  }
292
- function R(e, t, i) {
293
- if (o(t)) {
294
- var s = n();
295
- return r(t, function(e) {
296
- e != null && m(e, null) != null && s.set(e, !0);
297
- }), a(i, function(t) {
298
- return t && s.get(t[e]);
292
+ function R(e, t, n) {
293
+ if (s(t)) {
294
+ var a = r();
295
+ return i(t, function(e) {
296
+ e != null && h(e, null) != null && a.set(e, !0);
297
+ }), o(n, function(t) {
298
+ return t && a.get(t[e]);
299
299
  });
300
300
  } else {
301
- var c = m(t, null);
302
- return a(i, function(t) {
301
+ var c = h(t, null);
302
+ return o(n, function(t) {
303
303
  return t && c != null && t[e] === c;
304
304
  });
305
305
  }
306
306
  }
307
307
  function z(e, t) {
308
- return t.hasOwnProperty("subType") ? a(e, function(e) {
308
+ return t.hasOwnProperty("subType") ? o(e, function(e) {
309
309
  return e && e.subType === t.subType;
310
310
  }) : e;
311
311
  }
312
- function B(t) {
313
- var i = n();
314
- return t && r(_(t.replaceMerge), function(t) {
315
- process.env.NODE_ENV !== "production" && e(S.hasClass(t), "\"" + t + "\" is not valid component main type in \"replaceMerge\""), i.set(t, !0);
316
- }), { replaceMergeMainTypeMap: i };
312
+ function B(e) {
313
+ var n = r();
314
+ return e && i(v(e.replaceMerge), function(e) {
315
+ process.env.NODE_ENV !== "production" && t(S.hasClass(e), "\"" + e + "\" is not valid component main type in \"replaceMerge\""), n.set(e, !0);
316
+ }), { replaceMergeMainTypeMap: n };
317
317
  }
318
- d(F, C);
318
+ f(F, C);
319
319
  //#endregion
320
320
  export { F as default };