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