yahee-components 0.0.113 → 0.0.114

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 (174) hide show
  1. package/es/annex-upload/annex-upload.vue.js +55 -0
  2. package/es/annex-upload/annex-upload.vue2.js +121 -0
  3. package/es/annex-upload/index.js +7 -0
  4. package/es/annex-upload/mimeType.js +822 -0
  5. package/es/annex-upload/style/index.css +7 -0
  6. package/es/border-wrap/border-wrap.vue.js +75 -0
  7. package/es/border-wrap/border-wrap.vue2.js +48 -0
  8. package/es/border-wrap/index.js +7 -0
  9. package/es/border-wrap/props.js +11 -0
  10. package/es/border-wrap/style/index.css +24 -0
  11. package/es/common-import/common-import.vue.js +394 -0
  12. package/es/common-import/common-import.vue2.js +366 -0
  13. package/es/common-import/index.js +7 -0
  14. package/es/common-import/props.js +23 -0
  15. package/es/common-import/style/index.css +32 -0
  16. package/es/complex-search/batch-search-dialog.vue.js +119 -0
  17. package/es/complex-search/batch-search-dialog.vue2.js +50 -0
  18. package/es/complex-search/complex-search.vue.js +122 -0
  19. package/es/complex-search/complex-search.vue2.js +71 -0
  20. package/es/complex-search/index.js +7 -0
  21. package/es/complex-search/props.js +19 -0
  22. package/es/complex-search/style/index.css +24 -0
  23. package/es/complex-search/useComplexSearch.js +44 -0
  24. package/es/copy/copy.vue.js +39 -0
  25. package/es/copy/copy.vue2.js +36 -0
  26. package/es/copy/index.js +7 -0
  27. package/es/copy/props.js +9 -0
  28. package/es/copy/style/index.css +12 -0
  29. package/es/country-platform-shop-condition/country-platform-shop-condition.vue.js +120 -0
  30. package/es/country-platform-shop-condition/country-platform-shop-condition.vue2.js +127 -0
  31. package/es/country-platform-shop-condition/index.js +7 -0
  32. package/es/country-platform-shop-condition/style/index.css +59 -0
  33. package/es/drop-down-condition/drop-down-condition.vue.js +125 -0
  34. package/es/drop-down-condition/drop-down-condition.vue2.js +129 -0
  35. package/es/drop-down-condition/index.js +7 -0
  36. package/es/drop-down-condition/style/index.css +64 -0
  37. package/es/echart-gauge/echart-gauge.vue.js +14 -0
  38. package/es/echart-gauge/echart-gauge.vue2.js +149 -0
  39. package/es/echart-gauge/index.js +7 -0
  40. package/es/echart-gauge/props.js +9 -0
  41. package/es/echart-gauge/style/index.css +4 -0
  42. package/es/file-download-wrapper/file-download-wrapper.vue.js +164 -0
  43. package/es/file-download-wrapper/file-download-wrapper.vue2.js +115 -0
  44. package/es/file-download-wrapper/index.js +7 -0
  45. package/es/file-download-wrapper/key.js +17 -0
  46. package/es/file-download-wrapper/props.js +12 -0
  47. package/es/file-download-wrapper/style/index.css +66 -0
  48. package/es/filter-container/filter-container.vue.js +24 -0
  49. package/es/filter-container/filter-container.vue2.js +61 -0
  50. package/es/filter-container/index.js +7 -0
  51. package/es/filter-container/key.js +4 -0
  52. package/es/filter-container/props.js +11 -0
  53. package/es/filter-container/style/index.css +16 -0
  54. package/es/filter-wrapper/filter-wrapper.vue.js +19 -0
  55. package/es/filter-wrapper/filter-wrapper.vue2.js +56 -0
  56. package/es/filter-wrapper/index.js +7 -0
  57. package/es/filter-wrapper/props.js +10 -0
  58. package/es/filter-wrapper/style/index.css +3 -0
  59. package/es/height-collapse/height-collapse.vue.js +26 -0
  60. package/es/height-collapse/height-collapse.vue2.js +44 -0
  61. package/es/height-collapse/index.js +7 -0
  62. package/es/height-collapse/props.js +11 -0
  63. package/es/height-collapse/style/index.css +32 -0
  64. package/es/help-tag/help-tag.vue.js +46 -0
  65. package/es/help-tag/help-tag.vue2.js +51 -0
  66. package/es/help-tag/index.js +7 -0
  67. package/es/help-tag/props.js +9 -0
  68. package/es/help-tag/style/index.css +8 -0
  69. package/es/image-upload/image-upload.vue.js +116 -0
  70. package/es/image-upload/image-upload.vue2.js +93 -0
  71. package/es/image-upload/index.js +7 -0
  72. package/es/image-upload/style/index.css +33 -0
  73. package/es/index.js +63 -0
  74. package/es/installs.js +41 -0
  75. package/es/left-condition/index.js +7 -0
  76. package/es/left-condition/left-condition-sub.vue.js +36 -0
  77. package/es/left-condition/left-condition-sub.vue2.js +78 -0
  78. package/es/left-condition/left-condition.vue.js +77 -0
  79. package/es/left-condition/left-condition.vue2.js +162 -0
  80. package/es/left-condition/style/index.css +10 -0
  81. package/es/left-condition-enum/index.js +7 -0
  82. package/es/left-condition-enum/left-condition-enum.vue.js +22 -0
  83. package/es/left-condition-enum/left-condition-enum.vue2.js +42 -0
  84. package/es/left-condition-enum/style/index.css +10 -0
  85. package/es/node_modules/.pnpm/@vueuse_core@11.3.0_vue@3.5.17_typescript@5.8.3_/node_modules/@vueuse/core/index.js +99 -0
  86. package/es/node_modules/.pnpm/@vueuse_shared@11.3.0_vue@3.5.17_typescript@5.8.3_/node_modules/@vueuse/shared/index.js +22 -0
  87. package/es/node_modules/.pnpm/axios@1.10.0/node_modules/axios/index.js +38 -0
  88. package/es/node_modules/.pnpm/axios@1.10.0/node_modules/axios/lib/adapters/adapters.js +53 -0
  89. package/es/node_modules/.pnpm/axios@1.10.0/node_modules/axios/lib/adapters/fetch.js +141 -0
  90. package/es/node_modules/.pnpm/axios@1.10.0/node_modules/axios/lib/adapters/xhr.js +71 -0
  91. package/es/node_modules/.pnpm/axios@1.10.0/node_modules/axios/lib/axios.js +46 -0
  92. package/es/node_modules/.pnpm/axios@1.10.0/node_modules/axios/lib/cancel/CancelToken.js +77 -0
  93. package/es/node_modules/.pnpm/axios@1.10.0/node_modules/axios/lib/cancel/CanceledError.js +11 -0
  94. package/es/node_modules/.pnpm/axios@1.10.0/node_modules/axios/lib/cancel/isCancel.js +6 -0
  95. package/es/node_modules/.pnpm/axios@1.10.0/node_modules/axios/lib/core/Axios.js +136 -0
  96. package/es/node_modules/.pnpm/axios@1.10.0/node_modules/axios/lib/core/AxiosError.js +54 -0
  97. package/es/node_modules/.pnpm/axios@1.10.0/node_modules/axios/lib/core/AxiosHeaders.js +181 -0
  98. package/es/node_modules/.pnpm/axios@1.10.0/node_modules/axios/lib/core/InterceptorManager.js +58 -0
  99. package/es/node_modules/.pnpm/axios@1.10.0/node_modules/axios/lib/core/buildFullPath.js +9 -0
  100. package/es/node_modules/.pnpm/axios@1.10.0/node_modules/axios/lib/core/dispatchRequest.js +31 -0
  101. package/es/node_modules/.pnpm/axios@1.10.0/node_modules/axios/lib/core/mergeConfig.js +70 -0
  102. package/es/node_modules/.pnpm/axios@1.10.0/node_modules/axios/lib/core/settle.js +14 -0
  103. package/es/node_modules/.pnpm/axios@1.10.0/node_modules/axios/lib/core/transformData.js +13 -0
  104. package/es/node_modules/.pnpm/axios@1.10.0/node_modules/axios/lib/defaults/index.js +89 -0
  105. package/es/node_modules/.pnpm/axios@1.10.0/node_modules/axios/lib/defaults/transitional.js +8 -0
  106. package/es/node_modules/.pnpm/axios@1.10.0/node_modules/axios/lib/env/data.js +4 -0
  107. package/es/node_modules/.pnpm/axios@1.10.0/node_modules/axios/lib/helpers/AxiosURLSearchParams.js +33 -0
  108. package/es/node_modules/.pnpm/axios@1.10.0/node_modules/axios/lib/helpers/HttpStatusCode.js +71 -0
  109. package/es/node_modules/.pnpm/axios@1.10.0/node_modules/axios/lib/helpers/bind.js +8 -0
  110. package/es/node_modules/.pnpm/axios@1.10.0/node_modules/axios/lib/helpers/buildURL.js +23 -0
  111. package/es/node_modules/.pnpm/axios@1.10.0/node_modules/axios/lib/helpers/combineURLs.js +6 -0
  112. package/es/node_modules/.pnpm/axios@1.10.0/node_modules/axios/lib/helpers/composeSignals.js +30 -0
  113. package/es/node_modules/.pnpm/axios@1.10.0/node_modules/axios/lib/helpers/cookies.js +32 -0
  114. package/es/node_modules/.pnpm/axios@1.10.0/node_modules/axios/lib/helpers/formDataToJSON.js +31 -0
  115. package/es/node_modules/.pnpm/axios@1.10.0/node_modules/axios/lib/helpers/isAbsoluteURL.js +6 -0
  116. package/es/node_modules/.pnpm/axios@1.10.0/node_modules/axios/lib/helpers/isAxiosError.js +7 -0
  117. package/es/node_modules/.pnpm/axios@1.10.0/node_modules/axios/lib/helpers/isURLSameOrigin.js +8 -0
  118. package/es/node_modules/.pnpm/axios@1.10.0/node_modules/axios/lib/helpers/null.js +4 -0
  119. package/es/node_modules/.pnpm/axios@1.10.0/node_modules/axios/lib/helpers/parseHeaders.js +30 -0
  120. package/es/node_modules/.pnpm/axios@1.10.0/node_modules/axios/lib/helpers/parseProtocol.js +7 -0
  121. package/es/node_modules/.pnpm/axios@1.10.0/node_modules/axios/lib/helpers/progressEventReducer.js +35 -0
  122. package/es/node_modules/.pnpm/axios@1.10.0/node_modules/axios/lib/helpers/resolveConfig.js +33 -0
  123. package/es/node_modules/.pnpm/axios@1.10.0/node_modules/axios/lib/helpers/speedometer.js +19 -0
  124. package/es/node_modules/.pnpm/axios@1.10.0/node_modules/axios/lib/helpers/spread.js +8 -0
  125. package/es/node_modules/.pnpm/axios@1.10.0/node_modules/axios/lib/helpers/throttle.js +15 -0
  126. package/es/node_modules/.pnpm/axios@1.10.0/node_modules/axios/lib/helpers/toFormData.js +85 -0
  127. package/es/node_modules/.pnpm/axios@1.10.0/node_modules/axios/lib/helpers/toURLEncodedForm.js +13 -0
  128. package/es/node_modules/.pnpm/axios@1.10.0/node_modules/axios/lib/helpers/trackStream.js +63 -0
  129. package/es/node_modules/.pnpm/axios@1.10.0/node_modules/axios/lib/helpers/validator.js +54 -0
  130. package/es/node_modules/.pnpm/axios@1.10.0/node_modules/axios/lib/platform/browser/classes/Blob.js +4 -0
  131. package/es/node_modules/.pnpm/axios@1.10.0/node_modules/axios/lib/platform/browser/classes/FormData.js +4 -0
  132. package/es/node_modules/.pnpm/axios@1.10.0/node_modules/axios/lib/platform/browser/classes/URLSearchParams.js +5 -0
  133. package/es/node_modules/.pnpm/axios@1.10.0/node_modules/axios/lib/platform/browser/index.js +15 -0
  134. package/es/node_modules/.pnpm/axios@1.10.0/node_modules/axios/lib/platform/common/utils.js +9 -0
  135. package/es/node_modules/.pnpm/axios@1.10.0/node_modules/axios/lib/platform/index.js +9 -0
  136. package/es/node_modules/.pnpm/axios@1.10.0/node_modules/axios/lib/utils.js +222 -0
  137. package/es/node_modules/.pnpm/dayjs@1.11.13/node_modules/dayjs/dayjs.min.js +282 -0
  138. package/es/node_modules/.pnpm/echarts@6.0.0/node_modules/echarts/index.js +97 -0
  139. package/es/node_modules/.pnpm/echarts@6.0.0/node_modules/echarts/lib/animation/basicTransition.js +96 -0
  140. package/es/node_modules/.pnpm/echarts@6.0.0/node_modules/echarts/lib/animation/customGraphicKeyframeAnimation.js +56 -0
  141. package/es/node_modules/.pnpm/echarts@6.0.0/node_modules/echarts/lib/animation/customGraphicTransition.js +242 -0
  142. package/es/node_modules/.pnpm/echarts@6.0.0/node_modules/echarts/lib/animation/morphTransitionHelper.js +106 -0
  143. package/es/node_modules/.pnpm/echarts@6.0.0/node_modules/echarts/lib/animation/universalTransition.js +345 -0
  144. package/es/node_modules/.pnpm/echarts@6.0.0/node_modules/echarts/lib/chart/bar/BarSeries.js +56 -0
  145. package/es/node_modules/.pnpm/echarts@6.0.0/node_modules/echarts/lib/chart/bar/BarView.js +487 -0
  146. package/es/node_modules/.pnpm/echarts@6.0.0/node_modules/echarts/lib/chart/bar/BaseBarSeries.js +77 -0
  147. package/es/node_modules/.pnpm/echarts@6.0.0/node_modules/echarts/lib/chart/bar/PictorialBarSeries.js +49 -0
  148. package/es/node_modules/.pnpm/echarts@6.0.0/node_modules/echarts/lib/chart/bar/PictorialBarView.js +325 -0
  149. package/es/node_modules/.pnpm/echarts@6.0.0/node_modules/echarts/lib/chart/bar/install.js +23 -0
  150. package/es/node_modules/.pnpm/echarts@6.0.0/node_modules/echarts/lib/chart/bar/installPictorialBar.js +10 -0
  151. package/lib/annex-upload/style/index.css +7 -0
  152. package/lib/border-wrap/style/index.css +24 -0
  153. package/lib/common-import/style/index.css +32 -0
  154. package/lib/complex-search/style/index.css +24 -0
  155. package/lib/copy/style/index.css +12 -0
  156. package/lib/country-platform-shop-condition/style/index.css +59 -0
  157. package/lib/drop-down-condition/style/index.css +64 -0
  158. package/lib/echart-gauge/style/index.css +4 -0
  159. package/lib/file-download-wrapper/style/index.css +66 -0
  160. package/lib/filter-container/style/index.css +16 -0
  161. package/lib/filter-wrapper/style/index.css +3 -0
  162. package/lib/height-collapse/style/index.css +32 -0
  163. package/lib/help-tag/style/index.css +8 -0
  164. package/lib/image-upload/style/index.css +33 -0
  165. package/lib/left-condition/style/index.css +10 -0
  166. package/lib/left-condition-enum/style/index.css +10 -0
  167. package/lib/operation-log/style/index.css +234 -0
  168. package/lib/scale-screen/style/index.css +0 -0
  169. package/lib/style.css +1405 -0
  170. package/lib/styles/custom.css +82 -0
  171. package/lib/styles/globals.css +699 -0
  172. package/lib/styles/index.css +753 -0
  173. package/lib/styles/variables.css +34 -0
  174. package/package.json +1 -1
@@ -0,0 +1,487 @@
1
+ import { __extends as ee } from "../../../../../../tslib@2.3.0/node_modules/tslib/tslib.es6.js";
2
+ import ue from "../../../../../../zrender@6.0.0/node_modules/zrender/lib/graphic/Path.js";
3
+ import fe from "../../../../../../zrender@6.0.0/node_modules/zrender/lib/graphic/Group.js";
4
+ import { map as ge, extend as te, each as de } from "../../../../../../zrender@6.0.0/node_modules/zrender/lib/core/util.js";
5
+ import { traverseElements as le } from "../../util/graphic.js";
6
+ import { getECData as F } from "../../util/innerStore.js";
7
+ import { toggleHoverEmphasis as ce, setStatesStylesFromModel as ve } from "../../util/states.js";
8
+ import { labelInner as me, getLabelStatesModels as _e, setLabelStyle as be, setLabelValueAnimation as ye } from "../../label/labelStyle.js";
9
+ import { throttle as Ae } from "../../util/throttle.js";
10
+ import { createClipPath as xe } from "../helper/createClipPathFromCoordSys.js";
11
+ import U from "../../util/shape/sausage.js";
12
+ import we from "../../view/Chart.js";
13
+ import { isCoordinateSystemType as re } from "../../coord/CoordinateSystem.js";
14
+ import { getDefaultLabel as Se, getDefaultInterpolatedLabel as De } from "../helper/labelHelper.js";
15
+ import { warn as B } from "../../util/log.js";
16
+ import { createSectorCalculateTextPosition as Le, setSectorTextRotation as Ce } from "../../label/sectorLabel.js";
17
+ import { initProps as I, updateProps as L, removeElementWithFadeOut as E, saveOldStyle as ke } from "../../animation/basicTransition.js";
18
+ import { getSectorCornerRadius as Ie } from "../helper/sectorHelper.js";
19
+ import ae from "../../../../../../zrender@6.0.0/node_modules/zrender/lib/graphic/shape/Sector.js";
20
+ import ie from "../../../../../../zrender@6.0.0/node_modules/zrender/lib/graphic/shape/Rect.js";
21
+ var R = Math.max, W = Math.min;
22
+ function Pe(i, r) {
23
+ var e = i.getArea && i.getArea();
24
+ if (re(i, "cartesian2d")) {
25
+ var t = i.getBaseAxis();
26
+ if (t.type !== "category" || !t.onBand) {
27
+ var a = r.getLayout("bandWidth");
28
+ t.isHorizontal() ? (e.x -= a, e.width += a * 2) : (e.y -= a, e.height += a * 2);
29
+ }
30
+ }
31
+ return e;
32
+ }
33
+ var nt = (
34
+ /** @class */
35
+ function(i) {
36
+ ee(r, i);
37
+ function r() {
38
+ var e = i.call(this) || this;
39
+ return e.type = r.type, e._isFirstFrame = !0, e;
40
+ }
41
+ return r.prototype.render = function(e, t, a, n) {
42
+ this._model = e, this._removeOnRenderedListener(a), this._updateDrawMode(e);
43
+ var o = e.get("coordinateSystem");
44
+ o === "cartesian2d" || o === "polar" ? (this._progressiveEls = null, this._isLargeDraw ? this._renderLarge(e, t, a) : this._renderNormal(e, t, a, n)) : process.env.NODE_ENV !== "production" && B("Only cartesian2d and polar supported for bar.");
45
+ }, r.prototype.incrementalPrepareRender = function(e) {
46
+ this._clear(), this._updateDrawMode(e), this._updateLargeClip(e);
47
+ }, r.prototype.incrementalRender = function(e, t) {
48
+ this._progressiveEls = [], this._incrementalRenderLarge(e, t);
49
+ }, r.prototype.eachRendered = function(e) {
50
+ le(this._progressiveEls || this.group, e);
51
+ }, r.prototype._updateDrawMode = function(e) {
52
+ var t = e.pipelineContext.large;
53
+ (this._isLargeDraw == null || t !== this._isLargeDraw) && (this._isLargeDraw = t, this._clear());
54
+ }, r.prototype._renderNormal = function(e, t, a, n) {
55
+ var o = this.group, s = e.getData(), u = this._data, h = e.coordinateSystem, p = h.getBaseAxis(), f;
56
+ h.type === "cartesian2d" ? f = p.isHorizontal() : h.type === "polar" && (f = p.dim === "angle");
57
+ var m = e.isAnimationEnabled() ? e : null, c = Ve(e, h);
58
+ c && this._enableRealtimeSort(c, s, a);
59
+ var A = e.get("clip", !0) || c, S = Pe(h, s);
60
+ o.removeClipPath();
61
+ var x = e.get("roundCap", !0), w = e.get("showBackground", !0), y = e.getModel("backgroundStyle"), C = y.get("borderRadius") || 0, D = [], G = this._backgroundEls, T = n && n.isInitSort, X = n && n.type === "changeAxisOrder";
62
+ function z(g) {
63
+ var _ = k[h.type](s, g);
64
+ if (!_)
65
+ return null;
66
+ var l = Fe(h, f, _);
67
+ return l.useStyle(y.getItemStyle()), h.type === "cartesian2d" ? l.setShape("r", C) : l.setShape("cornerRadius", C), D[g] = l, l;
68
+ }
69
+ s.diff(u).add(function(g) {
70
+ var _ = s.getItemModel(g), l = k[h.type](s, g, _);
71
+ if (l && (w && z(g), !(!s.hasValue(g) || !J[h.type](l)))) {
72
+ var b = !1;
73
+ A && (b = Y[h.type](S, l));
74
+ var v = Z[h.type](e, s, g, l, f, m, p.model, !1, x);
75
+ c && (v.forceLabelAnimation = !0), K(v, s, g, _, l, e, f, h.type === "polar"), T ? v.attr({
76
+ shape: l
77
+ }) : c ? j(c, m, v, l, g, f, !1, !1) : I(v, {
78
+ shape: l
79
+ }, e, g), s.setItemGraphicEl(g, v), o.add(v), v.ignore = b;
80
+ }
81
+ }).update(function(g, _) {
82
+ var l = s.getItemModel(g), b = k[h.type](s, g, l);
83
+ if (b) {
84
+ if (w) {
85
+ var v = void 0;
86
+ G.length === 0 ? v = z(_) : (v = G[_], v.useStyle(y.getItemStyle()), h.type === "cartesian2d" ? v.setShape("r", C) : v.setShape("cornerRadius", C), D[g] = v);
87
+ var oe = k[h.type](s, g), he = se(f, oe, h);
88
+ L(v, {
89
+ shape: he
90
+ }, m, g);
91
+ }
92
+ var d = u.getItemGraphicEl(_);
93
+ if (!s.hasValue(g) || !J[h.type](b)) {
94
+ o.remove(d);
95
+ return;
96
+ }
97
+ var N = !1;
98
+ A && (N = Y[h.type](S, b), N && o.remove(d));
99
+ var pe = d && (d.type === "sector" && x || d.type === "sausage" && !x);
100
+ if (pe && (d && E(d, e, _), d = null), d ? ke(d) : d = Z[h.type](e, s, g, b, f, m, p.model, !0, x), c && (d.forceLabelAnimation = !0), X) {
101
+ var M = d.getTextContent();
102
+ if (M) {
103
+ var O = me(M);
104
+ O.prevValue != null && (O.prevValue = O.value);
105
+ }
106
+ } else
107
+ K(d, s, g, l, b, e, f, h.type === "polar");
108
+ T ? d.attr({
109
+ shape: b
110
+ }) : c ? j(c, m, d, b, g, f, !0, X) : L(d, {
111
+ shape: b
112
+ }, e, g, null), s.setItemGraphicEl(g, d), d.ignore = N, o.add(d);
113
+ }
114
+ }).remove(function(g) {
115
+ var _ = u.getItemGraphicEl(g);
116
+ _ && E(_, e, g);
117
+ }).execute();
118
+ var P = this._backgroundGroup || (this._backgroundGroup = new fe());
119
+ P.removeAll();
120
+ for (var V = 0; V < D.length; ++V)
121
+ P.add(D[V]);
122
+ o.add(P), this._backgroundEls = D, this._data = s;
123
+ }, r.prototype._renderLarge = function(e, t, a) {
124
+ this._clear(), $(e, this.group), this._updateLargeClip(e);
125
+ }, r.prototype._incrementalRenderLarge = function(e, t) {
126
+ this._removeBackground(), $(t, this.group, this._progressiveEls, !0);
127
+ }, r.prototype._updateLargeClip = function(e) {
128
+ var t = e.get("clip", !0) && xe(e.coordinateSystem, !1, e), a = this.group;
129
+ t ? a.setClipPath(t) : a.removeClipPath();
130
+ }, r.prototype._enableRealtimeSort = function(e, t, a) {
131
+ var n = this;
132
+ if (t.count()) {
133
+ var o = e.baseAxis;
134
+ if (this._isFirstFrame)
135
+ this._dispatchInitSort(t, e, a), this._isFirstFrame = !1;
136
+ else {
137
+ var s = function(u) {
138
+ var h = t.getItemGraphicEl(u), p = h && h.shape;
139
+ return p && // The result should be consistent with the initial sort by data value.
140
+ // Do not support the case that both positive and negative exist.
141
+ Math.abs(o.isHorizontal() ? p.height : p.width) || 0;
142
+ };
143
+ this._onRendered = function() {
144
+ n._updateSortWithinSameData(t, s, o, a);
145
+ }, a.getZr().on("rendered", this._onRendered);
146
+ }
147
+ }
148
+ }, r.prototype._dataSort = function(e, t, a) {
149
+ var n = [];
150
+ return e.each(e.mapDimension(t.dim), function(o, s) {
151
+ var u = a(s);
152
+ u = u ?? NaN, n.push({
153
+ dataIndex: s,
154
+ mappedValue: u,
155
+ ordinalNumber: o
156
+ });
157
+ }), n.sort(function(o, s) {
158
+ return s.mappedValue - o.mappedValue;
159
+ }), {
160
+ ordinalNumbers: ge(n, function(o) {
161
+ return o.ordinalNumber;
162
+ })
163
+ };
164
+ }, r.prototype._isOrderChangedWithinSameData = function(e, t, a) {
165
+ for (var n = a.scale, o = e.mapDimension(a.dim), s = Number.MAX_VALUE, u = 0, h = n.getOrdinalMeta().categories.length; u < h; ++u) {
166
+ var p = e.rawIndexOf(o, n.getRawOrdinalNumber(u)), f = p < 0 ? Number.MIN_VALUE : t(e.indexOfRawIndex(p));
167
+ if (f > s)
168
+ return !0;
169
+ s = f;
170
+ }
171
+ return !1;
172
+ }, r.prototype._isOrderDifferentInView = function(e, t) {
173
+ for (var a = t.scale, n = a.getExtent(), o = Math.max(0, n[0]), s = Math.min(n[1], a.getOrdinalMeta().categories.length - 1); o <= s; ++o)
174
+ if (e.ordinalNumbers[o] !== a.getRawOrdinalNumber(o))
175
+ return !0;
176
+ }, r.prototype._updateSortWithinSameData = function(e, t, a, n) {
177
+ if (this._isOrderChangedWithinSameData(e, t, a)) {
178
+ var o = this._dataSort(e, a, t);
179
+ this._isOrderDifferentInView(o, a) && (this._removeOnRenderedListener(n), n.dispatchAction({
180
+ type: "changeAxisOrder",
181
+ componentType: a.dim + "Axis",
182
+ axisId: a.index,
183
+ sortInfo: o
184
+ }));
185
+ }
186
+ }, r.prototype._dispatchInitSort = function(e, t, a) {
187
+ var n = t.baseAxis, o = this._dataSort(e, n, function(s) {
188
+ return e.get(e.mapDimension(t.otherAxis.dim), s);
189
+ });
190
+ a.dispatchAction({
191
+ type: "changeAxisOrder",
192
+ componentType: n.dim + "Axis",
193
+ isInitSort: !0,
194
+ axisId: n.index,
195
+ sortInfo: o
196
+ });
197
+ }, r.prototype.remove = function(e, t) {
198
+ this._clear(this._model), this._removeOnRenderedListener(t);
199
+ }, r.prototype.dispose = function(e, t) {
200
+ this._removeOnRenderedListener(t);
201
+ }, r.prototype._removeOnRenderedListener = function(e) {
202
+ this._onRendered && (e.getZr().off("rendered", this._onRendered), this._onRendered = null);
203
+ }, r.prototype._clear = function(e) {
204
+ var t = this.group, a = this._data;
205
+ e && e.isAnimationEnabled() && a && !this._isLargeDraw ? (this._removeBackground(), this._backgroundEls = [], a.eachItemGraphicEl(function(n) {
206
+ E(n, e, F(n).dataIndex);
207
+ })) : t.removeAll(), this._data = null, this._isFirstFrame = !0;
208
+ }, r.prototype._removeBackground = function() {
209
+ this.group.remove(this._backgroundGroup), this._backgroundGroup = null;
210
+ }, r.type = "bar", r;
211
+ }(we)
212
+ ), Y = {
213
+ cartesian2d: function(i, r) {
214
+ var e = r.width < 0 ? -1 : 1, t = r.height < 0 ? -1 : 1;
215
+ e < 0 && (r.x += r.width, r.width = -r.width), t < 0 && (r.y += r.height, r.height = -r.height);
216
+ var a = i.x + i.width, n = i.y + i.height, o = R(r.x, i.x), s = W(r.x + r.width, a), u = R(r.y, i.y), h = W(r.y + r.height, n), p = s < o, f = h < u;
217
+ return r.x = p && o > a ? s : o, r.y = f && u > n ? h : u, r.width = p ? 0 : s - o, r.height = f ? 0 : h - u, e < 0 && (r.x += r.width, r.width = -r.width), t < 0 && (r.y += r.height, r.height = -r.height), p || f;
218
+ },
219
+ polar: function(i, r) {
220
+ var e = r.r0 <= r.r ? 1 : -1;
221
+ if (e < 0) {
222
+ var t = r.r;
223
+ r.r = r.r0, r.r0 = t;
224
+ }
225
+ var a = W(r.r, i.r), n = R(r.r0, i.r0);
226
+ r.r = a, r.r0 = n;
227
+ var o = a - n < 0;
228
+ if (e < 0) {
229
+ var t = r.r;
230
+ r.r = r.r0, r.r0 = t;
231
+ }
232
+ return o;
233
+ }
234
+ }, Z = {
235
+ cartesian2d: function(i, r, e, t, a, n, o, s, u) {
236
+ var h = new ie({
237
+ shape: te({}, t),
238
+ z2: 1
239
+ });
240
+ if (h.__dataIndex = e, h.name = "item", n) {
241
+ var p = h.shape, f = a ? "height" : "width";
242
+ p[f] = 0;
243
+ }
244
+ return h;
245
+ },
246
+ polar: function(i, r, e, t, a, n, o, s, u) {
247
+ var h = !a && u ? U : ae, p = new h({
248
+ shape: t,
249
+ z2: 1
250
+ });
251
+ p.name = "item";
252
+ var f = ne(a);
253
+ if (p.calculateTextPosition = Le(f, {
254
+ isRoundCap: h === U
255
+ }), n) {
256
+ var m = p.shape, c = a ? "r" : "endAngle", A = {};
257
+ m[c] = a ? t.r0 : t.startAngle, A[c] = t[c], (s ? L : I)(p, {
258
+ shape: A
259
+ // __value: typeof dataValue === 'string' ? parseInt(dataValue, 10) : dataValue
260
+ }, n);
261
+ }
262
+ return p;
263
+ }
264
+ };
265
+ function Ve(i, r) {
266
+ var e = i.get("realtimeSort", !0), t = r.getBaseAxis();
267
+ if (process.env.NODE_ENV !== "production" && e && (t.type !== "category" && B("`realtimeSort` will not work because this bar series is not based on a category axis."), r.type !== "cartesian2d" && B("`realtimeSort` will not work because this bar series is not on cartesian2d.")), e && t.type === "category" && r.type === "cartesian2d")
268
+ return {
269
+ baseAxis: t,
270
+ otherAxis: r.getOtherAxis(t)
271
+ };
272
+ }
273
+ function j(i, r, e, t, a, n, o, s) {
274
+ var u, h;
275
+ n ? (h = {
276
+ x: t.x,
277
+ width: t.width
278
+ }, u = {
279
+ y: t.y,
280
+ height: t.height
281
+ }) : (h = {
282
+ y: t.y,
283
+ height: t.height
284
+ }, u = {
285
+ x: t.x,
286
+ width: t.width
287
+ }), s || (o ? L : I)(e, {
288
+ shape: u
289
+ }, r, a, null);
290
+ var p = r ? i.baseAxis.model : null;
291
+ (o ? L : I)(e, {
292
+ shape: h
293
+ }, p, a);
294
+ }
295
+ function q(i, r) {
296
+ for (var e = 0; e < r.length; e++)
297
+ if (!isFinite(i[r[e]]))
298
+ return !0;
299
+ return !1;
300
+ }
301
+ var Ne = ["x", "y", "width", "height"], Oe = ["cx", "cy", "r", "startAngle", "endAngle"], J = {
302
+ cartesian2d: function(i) {
303
+ return !q(i, Ne);
304
+ },
305
+ polar: function(i) {
306
+ return !q(i, Oe);
307
+ }
308
+ }, k = {
309
+ // itemModel is only used to get borderWidth, which is not needed
310
+ // when calculating bar background layout.
311
+ cartesian2d: function(i, r, e) {
312
+ var t = i.getItemLayout(r);
313
+ if (!t)
314
+ return null;
315
+ var a = e ? Re(e, t) : 0, n = t.width > 0 ? 1 : -1, o = t.height > 0 ? 1 : -1;
316
+ return {
317
+ x: t.x + n * a / 2,
318
+ y: t.y + o * a / 2,
319
+ width: t.width - n * a,
320
+ height: t.height - o * a
321
+ };
322
+ },
323
+ polar: function(i, r, e) {
324
+ var t = i.getItemLayout(r);
325
+ return {
326
+ cx: t.cx,
327
+ cy: t.cy,
328
+ r0: t.r0,
329
+ r: t.r,
330
+ startAngle: t.startAngle,
331
+ endAngle: t.endAngle,
332
+ clockwise: t.clockwise
333
+ };
334
+ }
335
+ };
336
+ function Ee(i) {
337
+ return i.startAngle != null && i.endAngle != null && i.startAngle === i.endAngle;
338
+ }
339
+ function ne(i) {
340
+ return /* @__PURE__ */ function(r) {
341
+ var e = r ? "Arc" : "Angle";
342
+ return function(t) {
343
+ switch (t) {
344
+ case "start":
345
+ case "insideStart":
346
+ case "end":
347
+ case "insideEnd":
348
+ return t + e;
349
+ default:
350
+ return t;
351
+ }
352
+ };
353
+ }(i);
354
+ }
355
+ function K(i, r, e, t, a, n, o, s) {
356
+ var u = r.getItemVisual(e, "style");
357
+ if (s) {
358
+ if (!n.get("roundCap")) {
359
+ var p = i.shape, f = Ie(t.getModel("itemStyle"), p, !0);
360
+ te(p, f), i.setShape(p);
361
+ }
362
+ } else {
363
+ var h = t.get(["itemStyle", "borderRadius"]) || 0;
364
+ i.setShape("r", h);
365
+ }
366
+ i.useStyle(u);
367
+ var m = t.getShallow("cursor");
368
+ m && i.attr("cursor", m);
369
+ var c = s ? o ? a.r >= a.r0 ? "endArc" : "startArc" : a.endAngle >= a.startAngle ? "endAngle" : "startAngle" : o ? a.height >= 0 ? "bottom" : "top" : a.width >= 0 ? "right" : "left", A = _e(t);
370
+ be(i, A, {
371
+ labelFetcher: n,
372
+ labelDataIndex: e,
373
+ defaultText: Se(n.getData(), e),
374
+ inheritColor: u.fill,
375
+ defaultOpacity: u.opacity,
376
+ defaultOutsidePosition: c
377
+ });
378
+ var S = i.getTextContent();
379
+ if (s && S) {
380
+ var x = t.get(["label", "position"]);
381
+ i.textConfig.inside = x === "middle" ? !0 : null, Ce(i, x === "outside" ? c : x, ne(o), t.get(["label", "rotate"]));
382
+ }
383
+ ye(S, A, n.getRawValue(e), function(y) {
384
+ return De(r, y);
385
+ });
386
+ var w = t.getModel(["emphasis"]);
387
+ ce(i, w.get("focus"), w.get("blurScope"), w.get("disabled")), ve(i, t), Ee(a) && (i.style.fill = "none", i.style.stroke = "none", de(i.states, function(y) {
388
+ y.style && (y.style.fill = y.style.stroke = "none");
389
+ }));
390
+ }
391
+ function Re(i, r) {
392
+ var e = i.get(["itemStyle", "borderColor"]);
393
+ if (!e || e === "none")
394
+ return 0;
395
+ var t = i.get(["itemStyle", "borderWidth"]) || 0, a = isNaN(r.width) ? Number.MAX_VALUE : Math.abs(r.width), n = isNaN(r.height) ? Number.MAX_VALUE : Math.abs(r.height);
396
+ return Math.min(t, a, n);
397
+ }
398
+ var We = (
399
+ /** @class */
400
+ /* @__PURE__ */ function() {
401
+ function i() {
402
+ }
403
+ return i;
404
+ }()
405
+ ), Q = (
406
+ /** @class */
407
+ function(i) {
408
+ ee(r, i);
409
+ function r(e) {
410
+ var t = i.call(this, e) || this;
411
+ return t.type = "largeBar", t;
412
+ }
413
+ return r.prototype.getDefaultShape = function() {
414
+ return new We();
415
+ }, r.prototype.buildPath = function(e, t) {
416
+ for (var a = t.points, n = this.baseDimIdx, o = 1 - this.baseDimIdx, s = [], u = [], h = this.barWidth, p = 0; p < a.length; p += 3)
417
+ u[n] = h, u[o] = a[p + 2], s[n] = a[p + n], s[o] = a[p + o], e.rect(s[0], s[1], u[0], u[1]);
418
+ }, r;
419
+ }(ue)
420
+ );
421
+ function $(i, r, e, t) {
422
+ var a = i.getData(), n = a.getLayout("valueAxisHorizontal") ? 1 : 0, o = a.getLayout("largeDataIndices"), s = a.getLayout("size"), u = i.getModel("backgroundStyle"), h = a.getLayout("largeBackgroundPoints");
423
+ if (h) {
424
+ var p = new Q({
425
+ shape: {
426
+ points: h
427
+ },
428
+ incremental: !!t,
429
+ silent: !0,
430
+ z2: 0
431
+ });
432
+ p.baseDimIdx = n, p.largeDataIndices = o, p.barWidth = s, p.useStyle(u.getItemStyle()), r.add(p), e && e.push(p);
433
+ }
434
+ var f = new Q({
435
+ shape: {
436
+ points: a.getLayout("largePoints")
437
+ },
438
+ incremental: !!t,
439
+ ignoreCoarsePointer: !0,
440
+ z2: 1
441
+ });
442
+ f.baseDimIdx = n, f.largeDataIndices = o, f.barWidth = s, r.add(f), f.useStyle(a.getVisual("style")), f.style.stroke = null, F(f).seriesIndex = i.seriesIndex, i.get("silent") || (f.on("mousedown", H), f.on("mousemove", H)), e && e.push(f);
443
+ }
444
+ var H = Ae(function(i) {
445
+ var r = this, e = Be(r, i.offsetX, i.offsetY);
446
+ F(r).dataIndex = e >= 0 ? e : null;
447
+ }, 30, !1);
448
+ function Be(i, r, e) {
449
+ for (var t = i.baseDimIdx, a = 1 - t, n = i.shape.points, o = i.largeDataIndices, s = [], u = [], h = i.barWidth, p = 0, f = n.length / 3; p < f; p++) {
450
+ var m = p * 3;
451
+ if (u[t] = h, u[a] = n[m + 2], s[t] = n[m + t], s[a] = n[m + a], u[a] < 0 && (s[a] += u[a], u[a] = -u[a]), r >= s[0] && r <= s[0] + u[0] && e >= s[1] && e <= s[1] + u[1])
452
+ return o[p];
453
+ }
454
+ return -1;
455
+ }
456
+ function se(i, r, e) {
457
+ if (re(e, "cartesian2d")) {
458
+ var t = r, a = e.getArea();
459
+ return {
460
+ x: i ? t.x : a.x,
461
+ y: i ? a.y : t.y,
462
+ width: i ? t.width : a.width,
463
+ height: i ? a.height : t.height
464
+ };
465
+ } else {
466
+ var a = e.getArea(), n = r;
467
+ return {
468
+ cx: a.cx,
469
+ cy: a.cy,
470
+ r0: i ? a.r0 : n.r0,
471
+ r: i ? a.r : n.r,
472
+ startAngle: i ? n.startAngle : 0,
473
+ endAngle: i ? n.endAngle : Math.PI * 2
474
+ };
475
+ }
476
+ }
477
+ function Fe(i, r, e) {
478
+ var t = i.type === "polar" ? ae : ie;
479
+ return new t({
480
+ shape: se(r, e, i),
481
+ silent: !0,
482
+ z2: 0
483
+ });
484
+ }
485
+ export {
486
+ nt as default
487
+ };
@@ -0,0 +1,77 @@
1
+ import { __extends as A } from "../../../../../../tslib@2.3.0/node_modules/tslib/tslib.es6.js";
2
+ import S from "../../model/Series.js";
3
+ import G from "../helper/createSeriesData.js";
4
+ import { each as H } from "../../../../../../zrender@6.0.0/node_modules/zrender/lib/core/util.js";
5
+ var P = (
6
+ /** @class */
7
+ function(h) {
8
+ A(a, h);
9
+ function a() {
10
+ var f = h !== null && h.apply(this, arguments) || this;
11
+ return f.type = a.type, f;
12
+ }
13
+ return a.prototype.getInitialData = function(f, s) {
14
+ return G(null, this, {
15
+ useEncodeDefaulter: !0
16
+ });
17
+ }, a.prototype.getMarkerPosition = function(f, s, B) {
18
+ var t = this.coordinateSystem;
19
+ if (t && t.clampData) {
20
+ var y = t.clampData(f), u = t.dataToPoint(y);
21
+ if (B)
22
+ H(t.getAxes(), function(n, i) {
23
+ if (n.type === "category" && s != null) {
24
+ var e = n.getTicksCoords(), z = n.getTickModel().get("alignWithLabel"), g = y[i], b = s[i] === "x1" || s[i] === "y1";
25
+ if (b && !z && (g += 1), e.length < 2)
26
+ return;
27
+ if (e.length === 2) {
28
+ u[i] = n.toGlobalCoord(n.getExtent()[b ? 1 : 0]);
29
+ return;
30
+ }
31
+ for (var o = void 0, l = void 0, M = 1, r = 0; r < e.length; r++) {
32
+ var p = e[r].coord, v = r === e.length - 1 ? e[r - 1].tickValue + M : e[r].tickValue;
33
+ if (v === g) {
34
+ l = p;
35
+ break;
36
+ } else if (v < g)
37
+ o = p;
38
+ else if (o != null && v > g) {
39
+ l = (p + o) / 2;
40
+ break;
41
+ }
42
+ r === 1 && (M = v - e[0].tickValue);
43
+ }
44
+ l == null && (o ? o && (l = e[e.length - 1].coord) : l = e[0].coord), u[i] = n.toGlobalCoord(l);
45
+ }
46
+ });
47
+ else {
48
+ var m = this.getData(), D = m.getLayout("offset"), L = m.getLayout("size"), N = t.getBaseAxis().isHorizontal() ? 0 : 1;
49
+ u[N] += D + L / 2;
50
+ }
51
+ return u;
52
+ }
53
+ return [NaN, NaN];
54
+ }, a.type = "series.__base_bar__", a.defaultOption = {
55
+ // zlevel: 0,
56
+ z: 2,
57
+ coordinateSystem: "cartesian2d",
58
+ legendHoverLink: !0,
59
+ // stack: null
60
+ // Cartesian coordinate system
61
+ // xAxisIndex: 0,
62
+ // yAxisIndex: 0,
63
+ barMinHeight: 0,
64
+ barMinAngle: 0,
65
+ // cursor: null,
66
+ large: !1,
67
+ largeThreshold: 400,
68
+ progressive: 3e3,
69
+ progressiveChunkMode: "mod",
70
+ defaultBarGap: "10%"
71
+ }, a;
72
+ }(S)
73
+ );
74
+ S.registerClass(P);
75
+ export {
76
+ P as default
77
+ };
@@ -0,0 +1,49 @@
1
+ import { __extends as i } from "../../../../../../tslib@2.3.0/node_modules/tslib/tslib.es6.js";
2
+ import o from "./BaseBarSeries.js";
3
+ import { inheritDefaultOption as r } from "../../util/component.js";
4
+ import a from "../../visual/tokens.js";
5
+ var u = (
6
+ /** @class */
7
+ function(l) {
8
+ i(e, l);
9
+ function e() {
10
+ var t = l !== null && l.apply(this, arguments) || this;
11
+ return t.type = e.type, t.hasSymbolVisual = !0, t.defaultSymbol = "roundRect", t;
12
+ }
13
+ return e.prototype.getInitialData = function(t) {
14
+ return t.stack = null, l.prototype.getInitialData.apply(this, arguments);
15
+ }, e.type = "series.pictorialBar", e.dependencies = ["grid"], e.defaultOption = r(o.defaultOption, {
16
+ symbol: "circle",
17
+ symbolSize: null,
18
+ symbolRotate: null,
19
+ symbolPosition: null,
20
+ symbolOffset: null,
21
+ symbolMargin: null,
22
+ symbolRepeat: !1,
23
+ symbolRepeatDirection: "end",
24
+ symbolClip: !1,
25
+ symbolBoundingData: null,
26
+ symbolPatternSize: 400,
27
+ barGap: "-100%",
28
+ // Pictorial bar do not clip by default because in many cases
29
+ // xAxis and yAxis are not displayed and it's expected not to clip
30
+ clip: !1,
31
+ // z can be set in data item, which is z2 actually.
32
+ // Disable progressive
33
+ progressive: 0,
34
+ emphasis: {
35
+ // By default pictorialBar do not hover scale. Hover scale is not suitable
36
+ // for the case that both has foreground and background.
37
+ scale: !1
38
+ },
39
+ select: {
40
+ itemStyle: {
41
+ borderColor: a.color.primary
42
+ }
43
+ }
44
+ }), e;
45
+ }(o)
46
+ );
47
+ export {
48
+ u as default
49
+ };