yahee-components 0.0.112 → 0.0.113

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 (175) hide show
  1. package/es/operation-log/operation-log-form.vue.js +39 -40
  2. package/package.json +1 -1
  3. package/es/annex-upload/annex-upload.vue.js +0 -55
  4. package/es/annex-upload/annex-upload.vue2.js +0 -121
  5. package/es/annex-upload/index.js +0 -7
  6. package/es/annex-upload/mimeType.js +0 -822
  7. package/es/annex-upload/style/index.css +0 -7
  8. package/es/border-wrap/border-wrap.vue.js +0 -75
  9. package/es/border-wrap/border-wrap.vue2.js +0 -48
  10. package/es/border-wrap/index.js +0 -7
  11. package/es/border-wrap/props.js +0 -11
  12. package/es/border-wrap/style/index.css +0 -24
  13. package/es/common-import/common-import.vue.js +0 -394
  14. package/es/common-import/common-import.vue2.js +0 -366
  15. package/es/common-import/index.js +0 -7
  16. package/es/common-import/props.js +0 -23
  17. package/es/common-import/style/index.css +0 -32
  18. package/es/complex-search/batch-search-dialog.vue.js +0 -119
  19. package/es/complex-search/batch-search-dialog.vue2.js +0 -50
  20. package/es/complex-search/complex-search.vue.js +0 -122
  21. package/es/complex-search/complex-search.vue2.js +0 -71
  22. package/es/complex-search/index.js +0 -7
  23. package/es/complex-search/props.js +0 -19
  24. package/es/complex-search/style/index.css +0 -24
  25. package/es/complex-search/useComplexSearch.js +0 -44
  26. package/es/copy/copy.vue.js +0 -39
  27. package/es/copy/copy.vue2.js +0 -36
  28. package/es/copy/index.js +0 -7
  29. package/es/copy/props.js +0 -9
  30. package/es/copy/style/index.css +0 -12
  31. package/es/country-platform-shop-condition/country-platform-shop-condition.vue.js +0 -120
  32. package/es/country-platform-shop-condition/country-platform-shop-condition.vue2.js +0 -127
  33. package/es/country-platform-shop-condition/index.js +0 -7
  34. package/es/country-platform-shop-condition/style/index.css +0 -59
  35. package/es/drop-down-condition/drop-down-condition.vue.js +0 -125
  36. package/es/drop-down-condition/drop-down-condition.vue2.js +0 -129
  37. package/es/drop-down-condition/index.js +0 -7
  38. package/es/drop-down-condition/style/index.css +0 -64
  39. package/es/echart-gauge/echart-gauge.vue.js +0 -14
  40. package/es/echart-gauge/echart-gauge.vue2.js +0 -149
  41. package/es/echart-gauge/index.js +0 -7
  42. package/es/echart-gauge/props.js +0 -9
  43. package/es/echart-gauge/style/index.css +0 -4
  44. package/es/file-download-wrapper/file-download-wrapper.vue.js +0 -164
  45. package/es/file-download-wrapper/file-download-wrapper.vue2.js +0 -115
  46. package/es/file-download-wrapper/index.js +0 -7
  47. package/es/file-download-wrapper/key.js +0 -17
  48. package/es/file-download-wrapper/props.js +0 -12
  49. package/es/file-download-wrapper/style/index.css +0 -66
  50. package/es/filter-container/filter-container.vue.js +0 -24
  51. package/es/filter-container/filter-container.vue2.js +0 -61
  52. package/es/filter-container/index.js +0 -7
  53. package/es/filter-container/key.js +0 -4
  54. package/es/filter-container/props.js +0 -11
  55. package/es/filter-container/style/index.css +0 -16
  56. package/es/filter-wrapper/filter-wrapper.vue.js +0 -19
  57. package/es/filter-wrapper/filter-wrapper.vue2.js +0 -56
  58. package/es/filter-wrapper/index.js +0 -7
  59. package/es/filter-wrapper/props.js +0 -10
  60. package/es/filter-wrapper/style/index.css +0 -3
  61. package/es/height-collapse/height-collapse.vue.js +0 -26
  62. package/es/height-collapse/height-collapse.vue2.js +0 -44
  63. package/es/height-collapse/index.js +0 -7
  64. package/es/height-collapse/props.js +0 -11
  65. package/es/height-collapse/style/index.css +0 -32
  66. package/es/help-tag/help-tag.vue.js +0 -46
  67. package/es/help-tag/help-tag.vue2.js +0 -51
  68. package/es/help-tag/index.js +0 -7
  69. package/es/help-tag/props.js +0 -9
  70. package/es/help-tag/style/index.css +0 -8
  71. package/es/image-upload/image-upload.vue.js +0 -116
  72. package/es/image-upload/image-upload.vue2.js +0 -93
  73. package/es/image-upload/index.js +0 -7
  74. package/es/image-upload/style/index.css +0 -33
  75. package/es/index.js +0 -63
  76. package/es/installs.js +0 -41
  77. package/es/left-condition/index.js +0 -7
  78. package/es/left-condition/left-condition-sub.vue.js +0 -36
  79. package/es/left-condition/left-condition-sub.vue2.js +0 -78
  80. package/es/left-condition/left-condition.vue.js +0 -77
  81. package/es/left-condition/left-condition.vue2.js +0 -162
  82. package/es/left-condition/style/index.css +0 -10
  83. package/es/left-condition-enum/index.js +0 -7
  84. package/es/left-condition-enum/left-condition-enum.vue.js +0 -22
  85. package/es/left-condition-enum/left-condition-enum.vue2.js +0 -42
  86. package/es/left-condition-enum/style/index.css +0 -10
  87. package/es/node_modules/.pnpm/@vueuse_core@11.3.0_vue@3.5.17_typescript@5.8.3_/node_modules/@vueuse/core/index.js +0 -99
  88. package/es/node_modules/.pnpm/@vueuse_shared@11.3.0_vue@3.5.17_typescript@5.8.3_/node_modules/@vueuse/shared/index.js +0 -22
  89. package/es/node_modules/.pnpm/axios@1.10.0/node_modules/axios/index.js +0 -38
  90. package/es/node_modules/.pnpm/axios@1.10.0/node_modules/axios/lib/adapters/adapters.js +0 -53
  91. package/es/node_modules/.pnpm/axios@1.10.0/node_modules/axios/lib/adapters/fetch.js +0 -141
  92. package/es/node_modules/.pnpm/axios@1.10.0/node_modules/axios/lib/adapters/xhr.js +0 -71
  93. package/es/node_modules/.pnpm/axios@1.10.0/node_modules/axios/lib/axios.js +0 -46
  94. package/es/node_modules/.pnpm/axios@1.10.0/node_modules/axios/lib/cancel/CancelToken.js +0 -77
  95. package/es/node_modules/.pnpm/axios@1.10.0/node_modules/axios/lib/cancel/CanceledError.js +0 -11
  96. package/es/node_modules/.pnpm/axios@1.10.0/node_modules/axios/lib/cancel/isCancel.js +0 -6
  97. package/es/node_modules/.pnpm/axios@1.10.0/node_modules/axios/lib/core/Axios.js +0 -136
  98. package/es/node_modules/.pnpm/axios@1.10.0/node_modules/axios/lib/core/AxiosError.js +0 -54
  99. package/es/node_modules/.pnpm/axios@1.10.0/node_modules/axios/lib/core/AxiosHeaders.js +0 -181
  100. package/es/node_modules/.pnpm/axios@1.10.0/node_modules/axios/lib/core/InterceptorManager.js +0 -58
  101. package/es/node_modules/.pnpm/axios@1.10.0/node_modules/axios/lib/core/buildFullPath.js +0 -9
  102. package/es/node_modules/.pnpm/axios@1.10.0/node_modules/axios/lib/core/dispatchRequest.js +0 -31
  103. package/es/node_modules/.pnpm/axios@1.10.0/node_modules/axios/lib/core/mergeConfig.js +0 -70
  104. package/es/node_modules/.pnpm/axios@1.10.0/node_modules/axios/lib/core/settle.js +0 -14
  105. package/es/node_modules/.pnpm/axios@1.10.0/node_modules/axios/lib/core/transformData.js +0 -13
  106. package/es/node_modules/.pnpm/axios@1.10.0/node_modules/axios/lib/defaults/index.js +0 -89
  107. package/es/node_modules/.pnpm/axios@1.10.0/node_modules/axios/lib/defaults/transitional.js +0 -8
  108. package/es/node_modules/.pnpm/axios@1.10.0/node_modules/axios/lib/env/data.js +0 -4
  109. package/es/node_modules/.pnpm/axios@1.10.0/node_modules/axios/lib/helpers/AxiosURLSearchParams.js +0 -33
  110. package/es/node_modules/.pnpm/axios@1.10.0/node_modules/axios/lib/helpers/HttpStatusCode.js +0 -71
  111. package/es/node_modules/.pnpm/axios@1.10.0/node_modules/axios/lib/helpers/bind.js +0 -8
  112. package/es/node_modules/.pnpm/axios@1.10.0/node_modules/axios/lib/helpers/buildURL.js +0 -23
  113. package/es/node_modules/.pnpm/axios@1.10.0/node_modules/axios/lib/helpers/combineURLs.js +0 -6
  114. package/es/node_modules/.pnpm/axios@1.10.0/node_modules/axios/lib/helpers/composeSignals.js +0 -30
  115. package/es/node_modules/.pnpm/axios@1.10.0/node_modules/axios/lib/helpers/cookies.js +0 -32
  116. package/es/node_modules/.pnpm/axios@1.10.0/node_modules/axios/lib/helpers/formDataToJSON.js +0 -31
  117. package/es/node_modules/.pnpm/axios@1.10.0/node_modules/axios/lib/helpers/isAbsoluteURL.js +0 -6
  118. package/es/node_modules/.pnpm/axios@1.10.0/node_modules/axios/lib/helpers/isAxiosError.js +0 -7
  119. package/es/node_modules/.pnpm/axios@1.10.0/node_modules/axios/lib/helpers/isURLSameOrigin.js +0 -8
  120. package/es/node_modules/.pnpm/axios@1.10.0/node_modules/axios/lib/helpers/null.js +0 -4
  121. package/es/node_modules/.pnpm/axios@1.10.0/node_modules/axios/lib/helpers/parseHeaders.js +0 -30
  122. package/es/node_modules/.pnpm/axios@1.10.0/node_modules/axios/lib/helpers/parseProtocol.js +0 -7
  123. package/es/node_modules/.pnpm/axios@1.10.0/node_modules/axios/lib/helpers/progressEventReducer.js +0 -35
  124. package/es/node_modules/.pnpm/axios@1.10.0/node_modules/axios/lib/helpers/resolveConfig.js +0 -33
  125. package/es/node_modules/.pnpm/axios@1.10.0/node_modules/axios/lib/helpers/speedometer.js +0 -19
  126. package/es/node_modules/.pnpm/axios@1.10.0/node_modules/axios/lib/helpers/spread.js +0 -8
  127. package/es/node_modules/.pnpm/axios@1.10.0/node_modules/axios/lib/helpers/throttle.js +0 -15
  128. package/es/node_modules/.pnpm/axios@1.10.0/node_modules/axios/lib/helpers/toFormData.js +0 -85
  129. package/es/node_modules/.pnpm/axios@1.10.0/node_modules/axios/lib/helpers/toURLEncodedForm.js +0 -13
  130. package/es/node_modules/.pnpm/axios@1.10.0/node_modules/axios/lib/helpers/trackStream.js +0 -63
  131. package/es/node_modules/.pnpm/axios@1.10.0/node_modules/axios/lib/helpers/validator.js +0 -54
  132. package/es/node_modules/.pnpm/axios@1.10.0/node_modules/axios/lib/platform/browser/classes/Blob.js +0 -4
  133. package/es/node_modules/.pnpm/axios@1.10.0/node_modules/axios/lib/platform/browser/classes/FormData.js +0 -4
  134. package/es/node_modules/.pnpm/axios@1.10.0/node_modules/axios/lib/platform/browser/classes/URLSearchParams.js +0 -5
  135. package/es/node_modules/.pnpm/axios@1.10.0/node_modules/axios/lib/platform/browser/index.js +0 -15
  136. package/es/node_modules/.pnpm/axios@1.10.0/node_modules/axios/lib/platform/common/utils.js +0 -9
  137. package/es/node_modules/.pnpm/axios@1.10.0/node_modules/axios/lib/platform/index.js +0 -9
  138. package/es/node_modules/.pnpm/axios@1.10.0/node_modules/axios/lib/utils.js +0 -222
  139. package/es/node_modules/.pnpm/dayjs@1.11.13/node_modules/dayjs/dayjs.min.js +0 -282
  140. package/es/node_modules/.pnpm/echarts@6.0.0/node_modules/echarts/index.js +0 -97
  141. package/es/node_modules/.pnpm/echarts@6.0.0/node_modules/echarts/lib/animation/basicTransition.js +0 -96
  142. package/es/node_modules/.pnpm/echarts@6.0.0/node_modules/echarts/lib/animation/customGraphicKeyframeAnimation.js +0 -56
  143. package/es/node_modules/.pnpm/echarts@6.0.0/node_modules/echarts/lib/animation/customGraphicTransition.js +0 -242
  144. package/es/node_modules/.pnpm/echarts@6.0.0/node_modules/echarts/lib/animation/morphTransitionHelper.js +0 -106
  145. package/es/node_modules/.pnpm/echarts@6.0.0/node_modules/echarts/lib/animation/universalTransition.js +0 -345
  146. package/es/node_modules/.pnpm/echarts@6.0.0/node_modules/echarts/lib/chart/bar/BarSeries.js +0 -56
  147. package/es/node_modules/.pnpm/echarts@6.0.0/node_modules/echarts/lib/chart/bar/BarView.js +0 -487
  148. package/es/node_modules/.pnpm/echarts@6.0.0/node_modules/echarts/lib/chart/bar/BaseBarSeries.js +0 -77
  149. package/es/node_modules/.pnpm/echarts@6.0.0/node_modules/echarts/lib/chart/bar/PictorialBarSeries.js +0 -49
  150. package/es/node_modules/.pnpm/echarts@6.0.0/node_modules/echarts/lib/chart/bar/PictorialBarView.js +0 -325
  151. package/es/node_modules/.pnpm/echarts@6.0.0/node_modules/echarts/lib/chart/bar/install.js +0 -23
  152. package/es/node_modules/.pnpm/echarts@6.0.0/node_modules/echarts/lib/chart/bar/installPictorialBar.js +0 -10
  153. package/lib/annex-upload/style/index.css +0 -7
  154. package/lib/border-wrap/style/index.css +0 -24
  155. package/lib/common-import/style/index.css +0 -32
  156. package/lib/complex-search/style/index.css +0 -24
  157. package/lib/copy/style/index.css +0 -12
  158. package/lib/country-platform-shop-condition/style/index.css +0 -59
  159. package/lib/drop-down-condition/style/index.css +0 -64
  160. package/lib/echart-gauge/style/index.css +0 -4
  161. package/lib/file-download-wrapper/style/index.css +0 -66
  162. package/lib/filter-container/style/index.css +0 -16
  163. package/lib/filter-wrapper/style/index.css +0 -3
  164. package/lib/height-collapse/style/index.css +0 -32
  165. package/lib/help-tag/style/index.css +0 -8
  166. package/lib/image-upload/style/index.css +0 -33
  167. package/lib/left-condition/style/index.css +0 -10
  168. package/lib/left-condition-enum/style/index.css +0 -10
  169. package/lib/operation-log/style/index.css +0 -234
  170. package/lib/scale-screen/style/index.css +0 -0
  171. package/lib/style.css +0 -1405
  172. package/lib/styles/custom.css +0 -82
  173. package/lib/styles/globals.css +0 -699
  174. package/lib/styles/index.css +0 -753
  175. package/lib/styles/variables.css +0 -34
@@ -1,487 +0,0 @@
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
- };
@@ -1,77 +0,0 @@
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
- };
@@ -1,49 +0,0 @@
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
- };