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,345 @@
1
+ import { SERIES_UNIVERSAL_TRANSITION_PROP as P } from "../model/Series.js";
2
+ import { each as m, createHashMap as x, isArray as L, filter as B, map as H, extend as _ } from "../../../../../zrender@6.0.0/node_modules/zrender/lib/core/util.js";
3
+ import { applyMorphAnimation as R, getPathList as N } from "./morphTransitionHelper.js";
4
+ import X from "../../../../../zrender@6.0.0/node_modules/zrender/lib/graphic/Path.js";
5
+ import "../util/graphic.js";
6
+ import b from "../data/DataDiffer.js";
7
+ import { makeInner as ee, normalizeToArray as k } from "../util/model.js";
8
+ import { warn as Y } from "../util/log.js";
9
+ import { getAnimationConfig as Z, initProps as te, getOldStyle as re } from "./basicTransition.js";
10
+ import ae from "../../../../../zrender@6.0.0/node_modules/zrender/lib/graphic/Displayable.js";
11
+ var $ = 1e4, ie = 0, j = 1, q = 2, ne = ee();
12
+ function oe(t, a) {
13
+ for (var i = t.dimensions, e = 0; e < i.length; e++) {
14
+ var r = t.getDimensionInfo(i[e]);
15
+ if (r && r.otherDims[a] === 0)
16
+ return i[e];
17
+ }
18
+ }
19
+ function de(t, a, i) {
20
+ var e = t.getDimensionInfo(i), r = e && e.ordinalMeta;
21
+ if (e) {
22
+ var u = t.get(e.name, a);
23
+ return r && r.categories[u] || u + "";
24
+ }
25
+ }
26
+ function z(t, a, i, e) {
27
+ var r = e ? "itemChildGroupId" : "itemGroupId", u = oe(t, r);
28
+ if (u) {
29
+ var n = de(t, a, u);
30
+ return n;
31
+ }
32
+ var d = t.getRawDataItem(a), p = e ? "childGroupId" : "groupId";
33
+ if (d && d[p])
34
+ return d[p] + "";
35
+ if (!e)
36
+ return i || t.getId(a);
37
+ }
38
+ function w(t) {
39
+ var a = [];
40
+ return m(t, function(i) {
41
+ var e = i.data, r = i.dataGroupId;
42
+ if (e.count() > $) {
43
+ process.env.NODE_ENV !== "production" && Y("Universal transition is disabled on large data > 10k.");
44
+ return;
45
+ }
46
+ for (var u = e.getIndices(), n = 0; n < u.length; n++)
47
+ a.push({
48
+ data: e,
49
+ groupId: z(e, n, r, !1),
50
+ childGroupId: z(e, n, r, !0),
51
+ divide: i.divide,
52
+ dataIndex: n
53
+ });
54
+ }), a;
55
+ }
56
+ function C(t, a, i) {
57
+ t.traverse(function(e) {
58
+ e instanceof X && te(e, {
59
+ style: {
60
+ opacity: 0
61
+ }
62
+ }, a, {
63
+ dataIndex: i,
64
+ isFrom: !0
65
+ });
66
+ });
67
+ }
68
+ function U(t) {
69
+ if (t.parent) {
70
+ var a = t.getComputedTransform();
71
+ t.setLocalTransform(a), t.parent.remove(t);
72
+ }
73
+ }
74
+ function O(t) {
75
+ t.stopAnimation(), t.isGroup && t.traverse(function(a) {
76
+ a.stopAnimation();
77
+ });
78
+ }
79
+ function ue(t, a, i) {
80
+ var e = Z("update", i, a);
81
+ e && t.traverse(function(r) {
82
+ if (r instanceof ae) {
83
+ var u = re(r);
84
+ u && r.animateFrom({
85
+ style: u
86
+ }, e);
87
+ }
88
+ });
89
+ }
90
+ function se(t, a) {
91
+ var i = t.length;
92
+ if (i !== a.length)
93
+ return !1;
94
+ for (var e = 0; e < i; e++) {
95
+ var r = t[e], u = a[e];
96
+ if (r.data.getId(r.dataIndex) !== u.data.getId(u.dataIndex))
97
+ return !1;
98
+ }
99
+ return !0;
100
+ }
101
+ function K(t, a, i) {
102
+ var e = w(t), r = w(a);
103
+ function u(s, G, o, f, I) {
104
+ (o || s) && G.animateFrom({
105
+ style: o && o !== s ? _(_({}, o.style), s.style) : s.style
106
+ }, I);
107
+ }
108
+ var n = !1, d = ie, p = x(), S = x();
109
+ e.forEach(function(s) {
110
+ s.groupId && p.set(s.groupId, !0), s.childGroupId && S.set(s.childGroupId, !0);
111
+ });
112
+ for (var l = 0; l < r.length; l++) {
113
+ var h = r[l].groupId;
114
+ if (S.get(h)) {
115
+ d = j;
116
+ break;
117
+ }
118
+ var T = r[l].childGroupId;
119
+ if (T && p.get(T)) {
120
+ d = q;
121
+ break;
122
+ }
123
+ }
124
+ function g(s, G) {
125
+ return function(o) {
126
+ var f = o.data, I = o.dataIndex;
127
+ return G ? f.getId(I) : s ? d === j ? o.childGroupId : o.groupId : d === q ? o.childGroupId : o.groupId;
128
+ };
129
+ }
130
+ var D = se(e, r), A = {};
131
+ if (!D)
132
+ for (var l = 0; l < r.length; l++) {
133
+ var M = r[l], V = M.data.getItemGraphicEl(M.dataIndex);
134
+ V && (A[V.id] = !0);
135
+ }
136
+ function F(s, G) {
137
+ var o = e[G], f = r[s], I = f.data.hostModel, c = o.data.getItemGraphicEl(o.dataIndex), v = f.data.getItemGraphicEl(f.dataIndex);
138
+ if (c === v) {
139
+ v && ue(v, f.dataIndex, I);
140
+ return;
141
+ }
142
+ // We can't use the elements that already being morphed
143
+ c && A[c.id] || v && (O(v), c ? (O(c), U(c), n = !0, R(N(c), N(v), f.divide, I, s, u)) : C(v, I, s));
144
+ }
145
+ new b(e, r, g(!0, D), g(!1, D), null, "multiple").update(F).updateManyToOne(function(s, G) {
146
+ var o = r[s], f = o.data, I = f.hostModel, c = f.getItemGraphicEl(o.dataIndex), v = B(H(G, function(E) {
147
+ return e[E].data.getItemGraphicEl(e[E].dataIndex);
148
+ }), function(E) {
149
+ return E && E !== c && !A[E.id];
150
+ });
151
+ c && (O(c), v.length ? (m(v, function(E) {
152
+ O(E), U(E);
153
+ }), n = !0, R(N(v), N(c), o.divide, I, s, u)) : C(c, I, o.dataIndex));
154
+ }).updateOneToMany(function(s, G) {
155
+ var o = e[G], f = o.data.getItemGraphicEl(o.dataIndex);
156
+ if (!(f && A[f.id])) {
157
+ var I = B(H(s, function(v) {
158
+ return r[v].data.getItemGraphicEl(r[v].dataIndex);
159
+ }), function(v) {
160
+ return v && v !== f;
161
+ }), c = r[s[0]].data.hostModel;
162
+ I.length && (m(I, function(v) {
163
+ return O(v);
164
+ }), f ? (O(f), U(f), n = !0, R(
165
+ N(f),
166
+ N(I),
167
+ o.divide,
168
+ // Use divide on old.
169
+ c,
170
+ s[0],
171
+ u
172
+ )) : m(I, function(v) {
173
+ return C(v, c, s[0]);
174
+ }));
175
+ }
176
+ }).updateManyToMany(function(s, G) {
177
+ new b(G, s, function(o) {
178
+ return e[o].data.getId(e[o].dataIndex);
179
+ }, function(o) {
180
+ return r[o].data.getId(r[o].dataIndex);
181
+ }).update(function(o, f) {
182
+ F(s[o], G[f]);
183
+ }).execute();
184
+ }).execute(), n && m(a, function(s) {
185
+ var G = s.data, o = G.hostModel, f = o && i.getViewOfSeriesModel(o), I = Z("update", o, 0);
186
+ f && o.isAnimationEnabled() && I && I.duration > 0 && f.group.traverse(function(c) {
187
+ c instanceof X && !c.animators.length && c.animateFrom({
188
+ style: {
189
+ opacity: 0
190
+ }
191
+ }, I);
192
+ });
193
+ });
194
+ }
195
+ function J(t) {
196
+ var a = t.getModel("universalTransition").get("seriesKey");
197
+ return a || t.id;
198
+ }
199
+ function Q(t) {
200
+ return L(t) ? t.sort().join(",") : t;
201
+ }
202
+ function y(t) {
203
+ if (t.hostModel)
204
+ return t.hostModel.getModel("universalTransition").get("divideShape");
205
+ }
206
+ function fe(t, a) {
207
+ var i = x(), e = x(), r = x();
208
+ m(t.oldSeries, function(n, d) {
209
+ var p = t.oldDataGroupIds[d], S = t.oldData[d], l = J(n), h = Q(l);
210
+ e.set(h, {
211
+ dataGroupId: p,
212
+ data: S
213
+ }), L(l) && m(l, function(T) {
214
+ r.set(T, {
215
+ key: h,
216
+ dataGroupId: p,
217
+ data: S
218
+ });
219
+ });
220
+ });
221
+ function u(n) {
222
+ i.get(n) && Y("Duplicated seriesKey in universalTransition " + n);
223
+ }
224
+ return m(a.updatedSeries, function(n) {
225
+ if (n.isUniversalTransitionEnabled() && n.isAnimationEnabled()) {
226
+ var d = n.get("dataGroupId"), p = n.getData(), S = J(n), l = Q(S), h = e.get(l);
227
+ if (h)
228
+ process.env.NODE_ENV !== "production" && u(l), i.set(l, {
229
+ oldSeries: [{
230
+ dataGroupId: h.dataGroupId,
231
+ divide: y(h.data),
232
+ data: h.data
233
+ }],
234
+ newSeries: [{
235
+ dataGroupId: d,
236
+ divide: y(p),
237
+ data: p
238
+ }]
239
+ });
240
+ else if (L(S)) {
241
+ process.env.NODE_ENV !== "production" && u(l);
242
+ var T = [];
243
+ m(S, function(A) {
244
+ var M = e.get(A);
245
+ M.data && T.push({
246
+ dataGroupId: M.dataGroupId,
247
+ divide: y(M.data),
248
+ data: M.data
249
+ });
250
+ }), T.length && i.set(l, {
251
+ oldSeries: T,
252
+ newSeries: [{
253
+ dataGroupId: d,
254
+ data: p,
255
+ divide: y(p)
256
+ }]
257
+ });
258
+ } else {
259
+ var g = r.get(S);
260
+ if (g) {
261
+ var D = i.get(g.key);
262
+ D || (D = {
263
+ oldSeries: [{
264
+ dataGroupId: g.dataGroupId,
265
+ data: g.data,
266
+ divide: y(g.data)
267
+ }],
268
+ newSeries: []
269
+ }, i.set(g.key, D)), D.newSeries.push({
270
+ dataGroupId: d,
271
+ data: p,
272
+ divide: y(p)
273
+ });
274
+ }
275
+ }
276
+ }
277
+ }), i;
278
+ }
279
+ function W(t, a) {
280
+ for (var i = 0; i < t.length; i++) {
281
+ var e = a.seriesIndex != null && a.seriesIndex === t[i].seriesIndex || a.seriesId != null && a.seriesId === t[i].id;
282
+ if (e)
283
+ return i;
284
+ }
285
+ }
286
+ function ve(t, a, i, e) {
287
+ var r = [], u = [];
288
+ m(k(t.from), function(n) {
289
+ var d = W(a.oldSeries, n);
290
+ d >= 0 && r.push({
291
+ dataGroupId: a.oldDataGroupIds[d],
292
+ data: a.oldData[d],
293
+ // TODO can specify divideShape in transition.
294
+ divide: y(a.oldData[d]),
295
+ groupIdDim: n.dimension
296
+ });
297
+ }), m(k(t.to), function(n) {
298
+ var d = W(i.updatedSeries, n);
299
+ if (d >= 0) {
300
+ var p = i.updatedSeries[d].getData();
301
+ u.push({
302
+ dataGroupId: a.oldDataGroupIds[d],
303
+ data: p,
304
+ divide: y(p),
305
+ groupIdDim: n.dimension
306
+ });
307
+ }
308
+ }), r.length > 0 && u.length > 0 && K(r, u, e);
309
+ }
310
+ function De(t) {
311
+ t.registerUpdateLifecycle("series:beforeupdate", function(a, i, e) {
312
+ m(k(e.seriesTransition), function(r) {
313
+ m(k(r.to), function(u) {
314
+ for (var n = e.updatedSeries, d = 0; d < n.length; d++)
315
+ (u.seriesIndex != null && u.seriesIndex === n[d].seriesIndex || u.seriesId != null && u.seriesId === n[d].id) && (n[d][P] = !0);
316
+ });
317
+ });
318
+ }), t.registerUpdateLifecycle("series:transition", function(a, i, e) {
319
+ var r = ne(i);
320
+ if (r.oldSeries && e.updatedSeries && e.optionChanged) {
321
+ var u = e.seriesTransition;
322
+ if (u)
323
+ m(k(u), function(g) {
324
+ ve(g, r, e, i);
325
+ });
326
+ else {
327
+ var n = fe(r, e);
328
+ m(n.keys(), function(g) {
329
+ var D = n.get(g);
330
+ K(D.oldSeries, D.newSeries, i);
331
+ });
332
+ }
333
+ m(e.updatedSeries, function(g) {
334
+ g[P] && (g[P] = !1);
335
+ });
336
+ }
337
+ for (var d = a.getSeries(), p = r.oldSeries = [], S = r.oldDataGroupIds = [], l = r.oldData = [], h = 0; h < d.length; h++) {
338
+ var T = d[h].getData();
339
+ T.count() < $ && (p.push(d[h]), S.push(d[h].get("dataGroupId")), l.push(T));
340
+ }
341
+ });
342
+ }
343
+ export {
344
+ De as installUniversalTransition
345
+ };
@@ -0,0 +1,56 @@
1
+ import { __extends as l } from "../../../../../../tslib@2.3.0/node_modules/tslib/tslib.es6.js";
2
+ import i from "./BaseBarSeries.js";
3
+ import a from "../helper/createSeriesData.js";
4
+ import { inheritDefaultOption as n } from "../../util/component.js";
5
+ import d from "../../visual/tokens.js";
6
+ var c = (
7
+ /** @class */
8
+ function(o) {
9
+ l(e, o);
10
+ function e() {
11
+ var r = o !== null && o.apply(this, arguments) || this;
12
+ return r.type = e.type, r;
13
+ }
14
+ return e.prototype.getInitialData = function() {
15
+ return a(null, this, {
16
+ useEncodeDefaulter: !0,
17
+ createInvertedIndices: !!this.get("realtimeSort", !0) || null
18
+ });
19
+ }, e.prototype.getProgressive = function() {
20
+ return this.get("large") ? this.get("progressive") : !1;
21
+ }, e.prototype.getProgressiveThreshold = function() {
22
+ var r = this.get("progressiveThreshold"), t = this.get("largeThreshold");
23
+ return t > r && (r = t), r;
24
+ }, e.prototype.brushSelector = function(r, t, s) {
25
+ return s.rect(t.getItemLayout(r));
26
+ }, e.type = "series.bar", e.dependencies = ["grid", "polar"], e.defaultOption = n(i.defaultOption, {
27
+ // If clipped
28
+ // Only available on cartesian2d
29
+ clip: !0,
30
+ roundCap: !1,
31
+ showBackground: !1,
32
+ backgroundStyle: {
33
+ color: "rgba(180, 180, 180, 0.2)",
34
+ borderColor: null,
35
+ borderWidth: 0,
36
+ borderType: "solid",
37
+ borderRadius: 0,
38
+ shadowBlur: 0,
39
+ shadowColor: null,
40
+ shadowOffsetX: 0,
41
+ shadowOffsetY: 0,
42
+ opacity: 1
43
+ },
44
+ select: {
45
+ itemStyle: {
46
+ borderColor: d.color.primary,
47
+ borderWidth: 2
48
+ }
49
+ },
50
+ realtimeSort: !1
51
+ }), e;
52
+ }(i)
53
+ );
54
+ export {
55
+ c as default
56
+ };