dlzn-ui 2.0.8 → 2.0.11

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 (173) hide show
  1. package/chunks/{AssignUser-Dj8rq5gH.mjs → AssignUser-BPrzGjCg.mjs} +3 -3
  2. package/chunks/{Common-CnrITpXz.mjs → Common-Ds4A0g73.mjs} +1 -1
  3. package/chunks/{Day-tjS-0iDA.mjs → Day-CWWVjsXu.mjs} +1 -1
  4. package/chunks/{DictTypeDetail-CcohOVfN.mjs → DictTypeDetail-ijxK2MDm.mjs} +2 -2
  5. package/chunks/{Hour-B9fx59cM.mjs → Hour-D-2s4xgR.mjs} +1 -1
  6. package/chunks/{Index-CrxoIuR-.mjs → Index-Bi44jQm2.mjs} +1 -1
  7. package/chunks/{Index-B-_PVf5U.mjs → Index-Bu5a_B5n.mjs} +1 -1
  8. package/chunks/{Index-D-gi1OVy.mjs → Index-D0dEcWw2.mjs} +2 -2
  9. package/chunks/{Index-baebFewJ.mjs → Index-De48YIRG.mjs} +1 -1
  10. package/chunks/{Index-DlrNiiDp.mjs → Index-DhkEiAro.mjs} +1 -1
  11. package/chunks/{Index-BTEVAXbg.mjs → Index-DoPLbOv7.mjs} +2 -2
  12. package/chunks/{Index-z9vUMzmS.mjs → Index-az-w01U3.mjs} +2 -2
  13. package/chunks/{Index-BxfxoY-l.mjs → Index-bEWcnIHJ.mjs} +1 -1
  14. package/chunks/{IndexItem-rt5wZA39.mjs → IndexItem-KlRJte7i.mjs} +2 -2
  15. package/chunks/{Log-DK5aduPG.mjs → Log-LYCmf0zI.mjs} +2 -2
  16. package/chunks/{MenuNode-DEBSfNz9.mjs → MenuNode-6Nca-v9i.mjs} +1 -1
  17. package/chunks/{MenuNode-B0M4WpOn.mjs → MenuNode-ByutDAqI.mjs} +1 -1
  18. package/chunks/{Minute-hPwzkaCM.mjs → Minute-8BpPY8V6.mjs} +1 -1
  19. package/chunks/{Month-Cnjhbs28.mjs → Month-C5iIZpY7.mjs} +1 -1
  20. package/chunks/{Second-DAYKul2s.mjs → Second-BKF09AKl.mjs} +1 -1
  21. package/chunks/{SelectDept-CC4ckbbt.mjs → SelectDept-C78pnJtp.mjs} +1 -1
  22. package/chunks/{SelectMenu-pBim6_Lj.mjs → SelectMenu-B2-QkHU2.mjs} +1 -1
  23. package/chunks/{SelectUser-D6dBXxlL.mjs → SelectUser-BuE4Lgm0.mjs} +2 -2
  24. package/chunks/{UserInfo-BUlPdKge.mjs → UserInfo-uDVj4WPH.mjs} +1 -1
  25. package/chunks/{app-Dk-mybzX.mjs → app-BXskd1Ae.mjs} +2 -2
  26. package/chunks/{custom-page-list-EQhltX7t.mjs → custom-page-list-r5EUcg98.mjs} +4 -4
  27. package/chunks/{custom-page-table-CYLFzT4F.mjs → custom-page-table-D1FmkEop.mjs} +2 -2
  28. package/chunks/date-picker-D15OhWnK.mjs +378 -0
  29. package/chunks/icon-COjp1yrx.mjs +21 -0
  30. package/chunks/{menu-DYwAudY3.mjs → menu-CjNx3wKR.mjs} +1 -1
  31. package/chunks/{overview-D9YB44O0.mjs → overview-BCXuALeB.mjs} +1 -1
  32. package/chunks/{page-list-BnGVTcad.mjs → page-list-Zp_EiMZd.mjs} +3 -3
  33. package/chunks/{page-query-QCT-mat_.mjs → page-query-CxZBtQht.mjs} +1 -1
  34. package/chunks/{page-table-DMOjg44G.mjs → page-table-BpyyKTMq.mjs} +3 -3
  35. package/chunks/{pagination-BNAZYVJk.mjs → pagination-y5tkmGDM.mjs} +1 -1
  36. package/chunks/{provider-DQIMA4mE.mjs → provider-C6TTHGoz.mjs} +600 -635
  37. package/chunks/{scrollbar-B0u39t4J.mjs → scrollbar-CI1mysNQ.mjs} +10 -9
  38. package/chunks/{table-BFP90EA0.mjs → table-2Eqd8Kcx.mjs} +2 -2
  39. package/chunks/{tag-BDpZ8-Fj.mjs → tag-CfeJWJii.mjs} +1 -1
  40. package/components/app/index.mjs +1 -1
  41. package/components/app/src/app.mjs +1 -1
  42. package/components/button/index.mjs +1 -1
  43. package/components/button/src/button.mjs +1 -1
  44. package/components/checkbox-group/index.mjs +1 -1
  45. package/components/checkbox-group/src/checkbox-group.mjs +1 -1
  46. package/components/cron/index.mjs +1 -1
  47. package/components/cron/src/Common.mjs +1 -1
  48. package/components/cron/src/Day.mjs +1 -1
  49. package/components/cron/src/Hour.mjs +1 -1
  50. package/components/cron/src/Minute.mjs +1 -1
  51. package/components/cron/src/Month.mjs +1 -1
  52. package/components/cron/src/Picker.mjs +103 -6206
  53. package/components/cron/src/Second.mjs +1 -1
  54. package/components/cron/src/cron.mjs +1 -1
  55. package/components/custom-page-list/index.mjs +1 -1
  56. package/components/custom-page-list/src/custom-page-list.mjs +1 -1
  57. package/components/custom-page-table/index.mjs +1 -1
  58. package/components/custom-page-table/src/custom-page-table.mjs +1 -1
  59. package/components/date-picker/index.mjs +1 -1
  60. package/components/date-picker/src/date-picker.mjs +1 -1
  61. package/components/form/index.mjs +1 -1
  62. package/components/form/src/form.mjs +1 -1
  63. package/components/icon/index.mjs +1 -1
  64. package/components/icon/src/icon.mjs +1 -1
  65. package/components/index.mjs +19 -19
  66. package/components/overview/index.mjs +1 -1
  67. package/components/overview/src/DicLabel/Index.mjs +1 -1
  68. package/components/overview/src/IndexItem.mjs +1 -1
  69. package/components/overview/src/OptionLabel/Index.mjs +1 -1
  70. package/components/overview/src/overview.mjs +1 -1
  71. package/components/page-list/index.mjs +1 -1
  72. package/components/page-list/src/page-list.mjs +1 -1
  73. package/components/page-query/index.mjs +1 -1
  74. package/components/page-query/src/page-query.mjs +1 -1
  75. package/components/page-table/index.mjs +1 -1
  76. package/components/page-table/src/page-table.mjs +1 -1
  77. package/components/pagination/index.mjs +1 -1
  78. package/components/pagination/src/pagination.mjs +1 -1
  79. package/components/provider/index.mjs +1 -1
  80. package/components/provider/src/Provider.mjs +1 -1
  81. package/components/radio-group/index.mjs +1 -1
  82. package/components/radio-group/src/radio-group.mjs +1 -1
  83. package/components/scrollbar/index.mjs +1 -1
  84. package/components/scrollbar/src/scrollbar.mjs +1 -1
  85. package/components/select/index.mjs +1 -1
  86. package/components/select/src/select.mjs +1 -1
  87. package/components/select-sys-user/index.mjs +1 -1
  88. package/components/select-sys-user/src/Picker.mjs +2 -2
  89. package/components/select-sys-user/src/select-sys-user.mjs +1 -1
  90. package/components/table/index.mjs +1 -1
  91. package/components/table/src/table.mjs +1 -1
  92. package/components/tag/index.mjs +1 -1
  93. package/components/tag/src/tag.mjs +1 -1
  94. package/components/tree/index.mjs +1 -1
  95. package/components/tree/src/tree.mjs +1 -1
  96. package/components/tree-select/index.mjs +1 -1
  97. package/components/tree-select/src/tree-select.mjs +1 -1
  98. package/components/upload/index.mjs +1 -1
  99. package/components/upload/src/upload.mjs +1 -1
  100. package/hooks/useAnimateAuto/index.mjs +6 -6
  101. package/hooks/useContextMenu/menu/index.mjs +1 -1
  102. package/hooks/useContextMenu/menu/src/MenuNode.mjs +1 -1
  103. package/hooks/useContextMenu/menu/src/menu.mjs +1 -1
  104. package/hooks/useDicOptions/index.mjs +1 -1
  105. package/hooks/useSysUser/index.mjs +1 -1
  106. package/layout/Entry.mjs +1 -1
  107. package/layout/Login.mjs +2 -2
  108. package/layout/NotFound.mjs +1 -1
  109. package/layout/modules/Aside.mjs +1 -1
  110. package/layout/modules/Breadcrumb.mjs +1 -1
  111. package/layout/modules/Header.mjs +1 -1
  112. package/layout/modules/MenuNode.mjs +1 -1
  113. package/layout/profile/Index.mjs +2 -2
  114. package/layout/profile/ResetPwd.mjs +1 -1
  115. package/layout/profile/UserInfo.mjs +1 -1
  116. package/layout/vueBits/LightRays.mjs +47 -47
  117. package/layout/vueBits/Plasma.mjs +29 -29
  118. package/layout/vueBits/Prism.mjs +51 -51
  119. package/main.mjs +9 -36
  120. package/package.json +3 -3
  121. package/plugins/autoImport/$alova/index.mjs +1 -1
  122. package/plugins/autoImport/$confirm/index.mjs +1 -1
  123. package/plugins/autoImport/$dialog/index.mjs +1 -1
  124. package/plugins/autoImport/$drawer/index.mjs +1 -1
  125. package/plugins/autoImport/$loading/index.mjs +38 -2
  126. package/plugins/captcha/captcha.mjs +2 -2
  127. package/plugins/captcha/index.mjs +1 -1
  128. package/plugins/echarts/index.mjs +25 -705
  129. package/plugins/initialize/index.mjs +1 -1
  130. package/plugins/initialize/webUpdateNotify.mjs +1 -1
  131. package/plugins/tableRenders/cell/Buttons/Index.mjs +1 -1
  132. package/plugins/tableRenders/cell/DicLabel/Index.mjs +1 -1
  133. package/plugins/tableRenders/cell/Icon/Index.mjs +1 -1
  134. package/plugins/tableRenders/cell/OptionLabel/Index.mjs +1 -1
  135. package/plugins/tableRenders/cell/Select/Index.mjs +1 -1
  136. package/plugins/tableRenders/cell/Tags/Index.mjs +1 -1
  137. package/plugins/tableRenders/cell/index.mjs +6 -6
  138. package/router/index.mjs +1 -1
  139. package/store/index.mjs +7 -2
  140. package/store/modules/common.mjs +1 -1
  141. package/store/modules/login.mjs +1 -1
  142. package/store/modules/recentRouters.mjs +1 -1
  143. package/store/modules/router.mjs +1 -1
  144. package/store/modules/user.mjs +1 -1
  145. package/utils/tool.mjs +15 -16
  146. package/views/system/dept/index.mjs +2 -2
  147. package/views/system/dept/utils.mjs +1 -1
  148. package/views/system/dict/index.mjs +3 -3
  149. package/views/system/dict/modules/DictTypeDetail.mjs +1 -1
  150. package/views/system/menu/index.mjs +3 -3
  151. package/views/system/post/index.mjs +2 -2
  152. package/views/system/role/index.mjs +5 -5
  153. package/views/system/role/modules/AssignUser.mjs +1 -1
  154. package/views/system/role/modules/SelectDept.mjs +1 -1
  155. package/views/system/role/modules/SelectMenu.mjs +1 -1
  156. package/views/system/role/modules/SelectUser.mjs +1 -1
  157. package/views/system/user/index.mjs +3 -3
  158. package/views/tool/job/index.mjs +3 -3
  159. package/views/tool/job/modules/Log.mjs +1 -1
  160. package/assets/$loading-D_Zs2VgL.css +0 -1
  161. package/assets/main-CxSb5Gqw.css +0 -2
  162. package/chunks/$loading-Df3COGfW.mjs +0 -241
  163. package/chunks/FileSaver.min-BAG7TK0U.mjs +0 -70
  164. package/chunks/Triangle-C5ogSVp9.mjs +0 -1140
  165. package/chunks/__vite-browser-external-D1GT_Hx9.mjs +0 -7
  166. package/chunks/auto-animate-FPySn19g.mjs +0 -341
  167. package/chunks/crypto-js-DWj_rBsG.mjs +0 -3695
  168. package/chunks/css-Cw_qlmlv.mjs +0 -521
  169. package/chunks/date-picker-C_5NJHjq.mjs +0 -8186
  170. package/chunks/icon-jnCbW4iu.mjs +0 -1013
  171. package/chunks/rolldown-runtime-D_tDV3RV.mjs +0 -23
  172. package/chunks/store-C46_JI7q.mjs +0 -112
  173. /package/{ejs → assets/ejs}/slide-puzzle.ejs +0 -0
@@ -1,689 +1,9 @@
1
- import { Teleport as e, computed as t, defineComponent as n, getCurrentInstance as r, h as i, inject as a, nextTick as o, onBeforeUnmount as s, onMounted as c, onScopeDispose as l, onUpdated as u, shallowReactive as d, shallowRef as f, toRef as p, toValue as m, warn as h, watch as g, watchSyncEffect as _ } from "vue";
2
- import { BarChart as v, LineChart as y, MapChart as b, PieChart as x, ScatterChart as S } from "echarts/charts";
3
- import { DataZoomComponent as C, GraphicComponent as w, GridComponent as ee, LegendComponent as te, MarkPointComponent as ne, TitleComponent as T, TooltipComponent as E, VisualMapComponent as D } from "echarts/components";
4
- import { ComponentModel as O, init as re, registerMap as ie, throttle as ae, use as k } from "echarts/core";
5
- import { CanvasRenderer as oe } from "echarts/renderers";
6
- //#region ../../node_modules/.pnpm/vue-echarts@8.3.0_echarts@6.1.0_vue@3.5.41/node_modules/vue-echarts/dist/update-CWPvYl2M.js
7
- function A(e) {
8
- return typeof e == "function" || Array.isArray(e) && e.length > 0;
9
- }
10
- function j(e) {
11
- if (typeof e == "function") return e;
12
- if (!(!Array.isArray(e) || e.length === 0)) return (...t) => {
13
- let n;
14
- for (let r of e.slice()) n = r(...t) || n;
15
- return n;
16
- };
17
- }
18
- function M() {
19
- return typeof window < "u" && typeof document < "u";
20
- }
21
- var N = /^on[^a-z]/, P = (e) => N.test(e);
22
- function F(e) {
23
- if (!P(e)) return null;
24
- let t = e.charAt(2).toLowerCase() + e.slice(3), n = t.endsWith("Once");
25
- return n && (t = t.slice(0, -4)), {
26
- event: t,
27
- once: n
28
- };
29
- }
30
- function I(e) {
31
- let t = Number(e);
32
- return Number.isInteger(t) && t >= 0 && t < 2 ** 32 - 1 && String(t) === e;
33
- }
34
- function L(e) {
35
- if (typeof e != "object" || !e) return !1;
36
- let t = Object.getPrototypeOf(e);
37
- return t === null || t === Object.prototype;
38
- }
39
- function se(e, t) {
40
- return e === 0 || t === 0;
41
- }
42
- function ce(e, t) {
43
- if (Object.is(e, t)) return typeof e != "object" || !e;
44
- if (!L(e) || !L(t)) return !1;
45
- let n = Object.keys(e);
46
- return n.length === Object.keys(t).length && n.every((n) => Object.hasOwn(t, n) && Object.is(e[n], t[n]));
47
- }
48
- var R = "[vue-echarts]";
49
- function z(e) {
50
- h(`${R} ${e}`);
51
- }
52
- function le(e) {
53
- return null;
54
- }
55
- function B(e) {
56
- return typeof e == "string" || typeof e == "number" ? String(e) : void 0;
57
- }
58
- function V(e, t, n) {
59
- if (!L(e)) return !0;
60
- let r = Object.create(null);
61
- for (let i of Object.keys(e)) {
62
- let a = e[i];
63
- if (a !== void 0) {
64
- if (n === "graphic" && i === "$action" && (t.hasAction = !0), n === "graphic" && (i === "elements" || i === "children") && Array.isArray(a)) {
65
- r[i] = H(a, t, "graphic", !0);
66
- continue;
67
- }
68
- if (n === "option") {
69
- let e = O.hasClass(i);
70
- if (Array.isArray(a) || e && L(a)) {
71
- r[i] = H(Array.isArray(a) ? a : [a], t, i === "graphic" ? "graphic" : void 0, e);
72
- continue;
73
- }
74
- }
75
- r[i] = n === "media" && i === "option" ? V(a, t, "option") : V(a, t);
76
- }
77
- }
78
- return r;
79
- }
80
- function H(e, t, n, r) {
81
- let i = [];
82
- for (let a of e) {
83
- let e = r ? a : void 0;
84
- i.push({
85
- id: B(e?.id),
86
- name: B(e?.name),
87
- ...n === "graphic" ? { type: B(e?.type) } : {},
88
- shape: V(a, t, n)
89
- });
90
- }
91
- return i;
92
- }
93
- function U(e) {
94
- let t = e, n = { hasAction: !1 }, r = Object.create(null), i = Object.create(null), a = [];
95
- for (let e of Object.keys(t)) {
96
- let o = t[e], s = O.hasClass(e);
97
- if (Array.isArray(o) || s && L(o)) {
98
- let t = e === "options" ? "option" : e === "media" ? "media" : e === "graphic" ? "graphic" : void 0;
99
- r[e] = H(Array.isArray(o) ? o : [o], n, t, s);
100
- continue;
101
- }
102
- if (L(o)) {
103
- i[e] = V(o, n, e === "baseOption" ? "option" : void 0);
104
- continue;
105
- }
106
- o !== void 0 && !s && a.push(e);
107
- }
108
- return {
109
- collections: r,
110
- objectShapes: i,
111
- leaves: a,
112
- hasAction: n.hasAction
113
- };
114
- }
115
- function W(e, t) {
116
- return t ? t.length < e.length : e.length > 0;
117
- }
118
- function G(e) {
119
- return e.id === void 0 ? e.name === void 0 ? void 0 : `name:${e.name}` : `id:${e.id}`;
120
- }
121
- function K(e, t) {
122
- let n = Math.min(e.length, t.length);
123
- for (let r = 0; r < n; r++) {
124
- let n = G(e[r]), i = G(t[r]);
125
- if (n !== i && (n !== void 0 || i !== void 0)) return !0;
126
- }
127
- return !1;
128
- }
129
- function ue(e, t) {
130
- let n = /* @__PURE__ */ new Map();
131
- for (let t = 0; t < e.length; t++) {
132
- let r = e[t];
133
- r.id !== void 0 && n.set(r.id, t);
134
- }
135
- return t.every((e, t) => {
136
- let r = e.id === void 0 ? void 0 : n.get(e.id);
137
- return r === void 0 || r === t;
138
- });
139
- }
140
- function q(e, t) {
141
- if (e === !0 || t === !0) return !1;
142
- let n = Array.isArray(e), r = Array.isArray(t);
143
- if (n || r) return !n || !r || W(e, t) || K(e, t) || J(e, t) !== 0;
144
- for (let n in e) {
145
- let r = t[n];
146
- if (r === void 0 || q(e[n], r)) return !0;
147
- }
148
- return !1;
149
- }
150
- function J(e, t) {
151
- let n = /* @__PURE__ */ new Map();
152
- for (let e of t) e.id !== void 0 && !n.has(e.id) && n.set(e.id, e);
153
- let r = 0;
154
- for (let i = 0; i < e.length; i++) {
155
- let a = e[i], o = a.id === void 0 ? t[i] : n.get(a.id);
156
- if (o && (a.type !== o.type || q(a.shape, o.shape))) {
157
- if (a.id !== void 0) return 2;
158
- r = 1;
159
- }
160
- }
161
- return r;
162
- }
163
- function Y(e, t) {
164
- if (t.objectShapes.aria && !e.objectShapes.aria) return !0;
165
- for (let n in t.collections) if (!e.collections[n] && !e.objectShapes[n] && !e.leaves.includes(n) && !O.hasClass(n)) return !0;
166
- for (let n in e.objectShapes) {
167
- let r = e.objectShapes[n], i = t.objectShapes[n];
168
- if (r && i) {
169
- if (q(r, i)) return !0;
170
- continue;
171
- }
172
- if (!t.leaves.includes(n)) return !0;
173
- }
174
- for (let n of e.leaves) if (!t.leaves.includes(n) && t.collections[n] === void 0 && t.objectShapes[n] === void 0) return !0;
175
- return !1;
176
- }
177
- function X(e, t) {
178
- let n = t ? J(e, t) : 0;
179
- return n === 2 ? n : n === 0 && !W(e, t) && !(t && K(e, t)) ? 0 : t && !ue(e, t) ? 2 : 1;
180
- }
181
- function de(e, t) {
182
- let n = U(t);
183
- if (!e) return {
184
- signature: n,
185
- plan: { notMerge: !1 }
186
- };
187
- let r = Y(e, n), i = [];
188
- for (let t in e.collections) {
189
- let a = n.collections[t], o = X(e.collections[t], a);
190
- O.hasClass(t) ? o === 2 ? r = !0 : o === 1 && i.push(t) : r ||= !a || o !== 0;
191
- }
192
- let a = n.hasAction ? i.filter((e) => e !== "graphic") : i, o = r && !n.hasAction;
193
- return {
194
- signature: n,
195
- plan: !o && a.length ? {
196
- notMerge: o,
197
- replaceMerge: a.sort()
198
- } : { notMerge: o }
199
- };
200
- }
201
- //#endregion
202
- //#region ../../node_modules/.pnpm/vue-echarts@8.3.0_echarts@6.1.0_vue@3.5.41/node_modules/vue-echarts/dist/index.js
203
- var fe = [
204
- "getWidth",
205
- "getHeight",
206
- "getDom",
207
- "getZr",
208
- "getId",
209
- "getOption",
210
- "isSSR",
211
- "getDevicePixelRatio",
212
- "resize",
213
- "makeActionFromEvent",
214
- "dispatchAction",
215
- "updateLabelLayout",
216
- "convertToPixel",
217
- "convertToLayout",
218
- "convertFromPixel",
219
- "containPixel",
220
- "getVisual",
221
- "renderToCanvas",
222
- "renderToSVGString",
223
- "getSvgDataURL",
224
- "getDataURL",
225
- "getConnectedDataURL",
226
- "appendData",
227
- "clear"
228
- ];
229
- function pe(e, t, n) {
230
- let r = () => {
231
- if (n()) throw Error("ECharts has been disposed.");
232
- let t = e.value;
233
- if (!t) throw Error("ECharts is not initialized yet.");
234
- return t;
235
- }, i = {};
236
- for (let e of fe) i[e] = (...t) => {
237
- let n = r();
238
- return Reflect.apply(n[e], n, t);
239
- };
240
- return i.dispose = t, i.isDisposed = n, i;
241
- }
242
- function me(e, t, n) {
243
- let r = () => typeof t.value == "object" ? t.value : void 0;
244
- return g([
245
- n,
246
- e,
247
- () => !!t.value,
248
- () => r()?.throttle ?? 100
249
- ], ([e, t, n, i], a, o) => {
250
- if (!t || !e || !n) return;
251
- let s = t.getWidth(), c = t.getHeight(), l = () => {
252
- se(s, c) || s === t.getWidth() && c === t.getHeight() || (t.resize(), r()?.onResize?.());
253
- }, u = i ? ae(l, i) : void 0, d = new ResizeObserver(([e]) => {
254
- s = e.contentRect.width, c = e.contentRect.height, (u ?? l)();
255
- });
256
- d.observe(e), o(() => {
257
- d.disconnect(), u?.clear();
258
- });
259
- }, { flush: "sync" });
260
- }
261
- var he = { autoresize: [Boolean, Object] }, ge = Symbol();
262
- function _e(e, t, n, r) {
263
- let i = a(ge, void 0);
264
- return g(() => t.value ? {
265
- instance: e.value,
266
- visible: !0,
267
- type: n.value || void 0,
268
- options: {
269
- ...m(i),
270
- ...r.value
271
- }
272
- } : {
273
- instance: e.value,
274
- visible: !1
275
- }, (e) => {
276
- let { instance: t } = e;
277
- if (!t) return;
278
- if (!e.visible) {
279
- t.hideLoading();
280
- return;
281
- }
282
- let { type: n, options: r } = e;
283
- n ? t.showLoading(n, r) : t.showLoading(r);
284
- }, {
285
- deep: !0,
286
- immediate: !0,
287
- flush: "sync"
288
- });
289
- }
290
- var ve = {
291
- loading: Boolean,
292
- loadingType: String,
293
- loadingOptions: Object
294
- }, Z = {
295
- tooltip: ["tooltip", "formatter"],
296
- dataView: [
297
- "toolbox",
298
- "feature",
299
- "dataView",
300
- "optionToContent"
301
- ]
302
- }, ye = /-__proto__(?:-|$)/;
303
- function be(e) {
304
- return (e === "tooltip" || e.startsWith("tooltip-") || e === "dataView" || e.startsWith("dataView-")) && !e.endsWith("-") && !e.includes("--") && !ye.test(e);
305
- }
306
- function xe(e) {
307
- let t = e.startsWith("tooltip") ? "tooltip" : "dataView", n = e.slice(t.length), r = n ? n.slice(1).split("-") : [], i = Z[t];
308
- if (I(r[0] ?? "")) {
309
- let e = r.shift();
310
- r.push(i[0], e, ...i.slice(1));
311
- } else r.push(...i);
312
- return r;
313
- }
314
- function Se(e, t, n) {
315
- let r = Array.isArray(e);
316
- if (r !== I(t)) return;
317
- let i = r ? e[Number(t)] : e[t], a;
318
- if (Array.isArray(i)) a = [...i];
319
- else if (L(i)) a = { ...i };
320
- else if (i === void 0 && !r && !I(n)) a = {};
321
- else return;
322
- return Ce(e, t, a), a;
323
- }
324
- function Ce(e, t, n) {
325
- if (Array.isArray(e)) {
326
- e[Number(t)] = n;
327
- return;
328
- }
329
- e[t] = n;
330
- }
331
- function we(e, t, n, r = !1) {
332
- let i = e;
333
- for (let e = 0; e < t.length - 1; e++) {
334
- let n = Se(i, t[e], t[e + 1]);
335
- if (!n) return !1;
336
- i = n;
337
- }
338
- if (Array.isArray(i)) return !1;
339
- let a = t[t.length - 1];
340
- return (!r || i[a] === void 0) && Ce(i, a, n), !0;
341
- }
342
- function Te(t, n) {
343
- let a = r(), o, s = d({}), l = d({}), p = f(!1), m = f(!1), h = (e = !1) => {
344
- let n = [];
345
- for (let r in t) r !== "graphic" && (be(r) ? n.push(r) : e && z(`Invalid slot name: ${r}`));
346
- return n;
347
- };
348
- h(!0);
349
- let g = [], _ = g, v = /* @__PURE__ */ new Set(), y = /* @__PURE__ */ new Map();
350
- function b(e) {
351
- if (m.value = e, !e) {
352
- v.clear();
353
- for (let e of Object.keys(l)) delete l[e];
354
- }
355
- }
356
- function x(e) {
357
- if (e.length === g.length && g.every((t) => e.includes(t))) return !1;
358
- for (let t of g) e.includes(t) || (delete l[t], delete s[t], y.delete(t));
359
- return g = e, !0;
360
- }
361
- let S = () => {
362
- if (_ = h(), _.length === 0 || !m.value || !p.value) return;
363
- let n = a.vnode.el.ownerDocument;
364
- return o ??= n.createElement("div"), i(e, { to: o }, _.map((e) => {
365
- let n = t[e], r = e in l ? n?.(l[e]) : void 0;
366
- return i("div", {
367
- key: e,
368
- ref: (t) => {
369
- t ? s[e] = t : delete s[e];
370
- },
371
- style: { display: "contents" }
372
- }, r);
373
- }));
374
- };
375
- function C(e) {
376
- let n = h();
377
- x(n);
378
- let r;
379
- for (let t of v) n.includes(t) || (r ??= { ...e }, we(r, xe(t), null, !0));
380
- n.length && (r ??= { ...e });
381
- let i = [];
382
- for (let e of n) {
383
- let n = y.get(e);
384
- n || (n = {
385
- path: xe(e),
386
- formatter: (n) => {
387
- if (t[e]) return e in l && Object.is(l[e], n) && delete l[e], l[e] = n, s[e];
388
- }
389
- }, y.set(e, n)), we(r, n.path, n.formatter) && i.push(e);
390
- }
391
- return {
392
- option: r ?? e,
393
- commit: () => {
394
- i.forEach((e) => v.add(e));
395
- }
396
- };
397
- }
398
- return u(() => {
399
- x(_) && n();
400
- }), c(() => {
401
- g = _, p.value = !0;
402
- }), {
403
- render: S,
404
- prepare: C,
405
- setReady: b,
406
- cancelPendingUpdate: () => {
407
- x(h());
408
- }
409
- };
410
- }
411
- var Ee = "x-vue-echarts", Q = Symbol.for("vue-echarts.lifecycle");
412
- function De() {
413
- let e = globalThis.customElements;
414
- if (!e) return !1;
415
- let t = e.get(Ee);
416
- if (t) return !!t[Q];
417
- class n extends HTMLElement {
418
- __dispose = null;
419
- disconnectedCallback() {
420
- this.__dispose && queueMicrotask(() => {
421
- if (!this.isConnected && this.__dispose) {
422
- let e = this.__dispose;
423
- this.__dispose = null, e();
424
- }
425
- });
426
- }
427
- }
428
- return Object.defineProperty(n, Q, { value: !0 }), e.define(Ee, n), !0;
429
- }
430
- var Oe = "onNative:";
431
- function ke(e, t) {
432
- let n = /* @__PURE__ */ new Map(), i = /* @__PURE__ */ new Map(), a = /* @__PURE__ */ new Set(), o;
433
- function s() {
434
- for (let e of n.values()) e.emitter.off(e.event, e.handler);
435
- n.clear();
436
- }
437
- function c() {
438
- a.clear();
439
- let r = e.value;
440
- for (let [e, n] of i) t[e] !== n && i.delete(e);
441
- if (!r) {
442
- s(), o = void 0;
443
- return;
444
- }
445
- o && o !== r && s(), o = r;
446
- for (let e in t) {
447
- let o = F(e);
448
- if (!o || o.event.startsWith("native:") || o.event === "zr:") continue;
449
- let s = o.event.startsWith("zr:"), c = (s ? o.event.slice(3) : o.event).toLowerCase(), l = t[e], u = n.get(e);
450
- if (o.once && i.get(e) === l) continue;
451
- if (u && u.source === l && A(l)) {
452
- a.add(e);
453
- continue;
454
- }
455
- let d = j(l);
456
- if (u && (u.emitter.off(u.event, u.handler), n.delete(e)), !d) continue;
457
- let f = s ? r.getZr() : r, p = d;
458
- o.once && (p = (...t) => {
459
- n.delete(e), i.set(e, l), f.off(c, p), d(...t);
460
- }), f.on(c, p), n.set(e, {
461
- emitter: f,
462
- event: c,
463
- source: l,
464
- handler: p
465
- }), a.add(e);
466
- }
467
- for (let [e, t] of n) a.has(e) || (t.emitter.off(t.event, t.handler), n.delete(e));
468
- }
469
- let d = _(c);
470
- r() && u(c);
471
- let f = () => {
472
- d(), s();
473
- };
474
- return l(f), {
475
- sync: c,
476
- stop: f
477
- };
478
- }
479
- function Ae(e) {
480
- let t = {};
481
- for (let n in e) {
482
- if (n.startsWith(Oe)) {
483
- let r = n.slice(9);
484
- r && (t[`on:${r}`] = e[n]);
485
- continue;
486
- }
487
- P(n) || (t[n] = e[n]);
488
- }
489
- return t;
490
- }
491
- var je = "x-vue-echarts{display:block;width:100%;height:100%;min-width:0;}\nx-vue-echarts>.echarts-host{display:block;width:100%;height:100%;min-width:0;}\nx-vue-echarts>.echarts-host>:first-child,x-vue-echarts>.echarts-host>:first-child>canvas{border-radius:inherit;}\n";
492
- if (M()) {
493
- if (Array.isArray(document.adoptedStyleSheets) && "replaceSync" in CSSStyleSheet.prototype) {
494
- let e = new CSSStyleSheet();
495
- e.replaceSync(je), document.adoptedStyleSheets = [...document.adoptedStyleSheets, e];
496
- } else {
497
- let e = document.createElement("style");
498
- e.textContent = je, document.head.appendChild(e);
499
- }
500
- }
501
- var Me = De(), $ = Symbol(), Ne = Symbol(), Pe = Symbol(), Fe = Symbol(), Ie = /* @__PURE__ */ n({
502
- name: "Echarts",
503
- inheritAttrs: !1,
504
- props: {
505
- option: Object,
506
- theme: { type: [Object, String] },
507
- initOptions: Object,
508
- updateOptions: Object,
509
- group: String,
510
- manualUpdate: Boolean,
511
- ...he,
512
- ...ve
513
- },
514
- emits: {},
515
- slots: Object,
516
- setup(e, { attrs: n, expose: r, slots: l }) {
517
- let u = f(), d = f(), h = f(), v = f(0), y = 0, b = a(Ne, null), x = a(Pe, null), S = a(Fe, null), C = p(e, "autoresize"), w = p(e, "manualUpdate"), ee = p(e, "loading"), te = p(e, "loadingType"), ne = p(e, "loadingOptions"), T = t(() => e.theme ?? m(b) ?? void 0), E = t(() => e.initOptions ?? m(x) ?? void 0), D = t(() => e.updateOptions ?? m(S)), O = f(!1), { render: ie, prepare: ae, setReady: k, cancelPendingUpdate: oe } = Te(l, K), A = le({
518
- slots: l,
519
- manualUpdate: w,
520
- requestUpdate: () => K(2)
521
- }), j, M, N = !1, P = !1, F = !1, I = !1, L = 0, R = !1;
522
- function B() {
523
- return e.option ?? (A && (l.graphic || I) ? {} : void 0);
524
- }
525
- function V(e) {
526
- return e !== void 0 && h.value === e && !O.value;
527
- }
528
- function H(e, t, n) {
529
- let r = ++L;
530
- return j = null, R = !1, t(), !V(e) || L !== r ? !1 : (j = n, R = !0, !0);
531
- }
532
- function U(e) {
533
- if (!P || N) return !1;
534
- let t = L + 1;
535
- N = !0;
536
- try {
537
- return H(e, () => e.setTheme(T.value || {}), j === void 0 ? void 0 : null);
538
- } catch (e) {
539
- throw L === t && (N = !1), e;
540
- }
541
- }
542
- function W(e, t, n, r) {
543
- let i = n === "manual";
544
- F = !1;
545
- let a = ae(t), o = a.option, s = !!(A && l.graphic), c = s ? {
546
- ...o,
547
- graphic: void 0
548
- } : o, u = i ? r : D.value ?? void 0, d = null, f = n === "graphic" && s && I && R;
549
- if (f) d = j ?? null;
550
- else if (!i && !u) {
551
- let e = de(j ?? void 0, c);
552
- u = !e.signature.hasAction && j === null ? {
553
- ...e.plan,
554
- notMerge: !0
555
- } : e.plan, d = e.signature;
556
- }
557
- let p = u?.replaceMerge, m = typeof p == "string" ? [p] : p ?? [], h = A?.prepare(o, !R || !I || !!u?.notMerge || m.includes("graphic") || i), g = h?.option ?? o;
558
- (h?.replace || I && !s) && !u?.notMerge && !m.includes("graphic") && (u = {
559
- ...u,
560
- replaceMerge: [...m, "graphic"]
561
- });
562
- let _ = m.some((e) => e !== "graphic");
563
- f && !u?.notMerge && !_ && (g = { graphic: g.graphic }), q(), H(e, () => e.setOption(g, u), d) && (a.commit(), h?.commit(), I = s, P = !0, i || (M = t), U(e) && !i && W(e, t));
564
- }
565
- function G(e) {
566
- y |= e, v.value++;
567
- }
568
- function K(e = 1) {
569
- !w.value && !F && !O.value && G(e);
570
- }
571
- function ue() {
572
- let e = y;
573
- y = 0;
574
- let t = h.value;
575
- if (!e || !V(t)) return;
576
- if (e & 8) {
577
- Y(), X();
578
- return;
579
- }
580
- if (F) return;
581
- q();
582
- let n = e & 3 ? B() ?? M : M, r = !N && P;
583
- r && !U(t) || !w.value && n && W(t, n, e === 2 && !r ? "graphic" : void 0);
584
- }
585
- l.graphic && !A && z("Detected `#graphic` slot but no extension is registered. Import from `vue-echarts/graphic` to enable it.");
586
- let { sync: q, stop: J } = ke(h, n);
587
- function Y() {
588
- y = 0, A?.cancelPendingFlush(), L++;
589
- let e = h.value;
590
- h.value = void 0, k(!1), j = void 0, R = !1, M = void 0, F = !1, I = !1, e?.dispose();
591
- }
592
- function X() {
593
- y = 0, P = !1;
594
- let t = d.value, n = re(t, T.value, E.value);
595
- if (h.value = n, !V(n)) return;
596
- N = !0;
597
- function r() {
598
- let t = w.value ? e.option : B();
599
- t && (w.value ? W(n, t, "manual", D.value ?? void 0) : W(n, t)), k(V(n));
600
- }
601
- if (C.value) {
602
- F = !0, o(() => {
603
- V(n) && (C.value && !se(t.offsetWidth, t.offsetHeight) && (n.resize(), !V(n)) || (F ? (F = !1, r()) : k(!0)));
604
- });
605
- return;
606
- }
607
- r();
608
- }
609
- let fe = (t, n, r) => {
610
- if (!e.manualUpdate) {
611
- z("`setOption` is only available when `manual-update` is `true`.");
612
- return;
613
- }
614
- let i = h.value;
615
- V(i) && W(i, t, "manual", typeof n == "boolean" ? {
616
- notMerge: n,
617
- lazyUpdate: r
618
- } : n ?? (r === void 0 ? void 0 : { lazyUpdate: r }));
619
- }, he = g(T, (e, t) => {
620
- ce(e, t) || (N = !1, G(4));
621
- }, {
622
- deep: !0,
623
- flush: "sync"
624
- }), ge = g(E, (e, t) => {
625
- ce(e, t) || G(8);
626
- }, {
627
- deep: !0,
628
- flush: "sync"
629
- });
630
- function ve() {
631
- return g(() => w.value ? $ : e.option, (e, t) => {
632
- e !== $ && t !== $ && (e ?? B()) && K();
633
- }, { deep: !0 });
634
- }
635
- let Z = ve(), ye = g(w, () => G(8), { flush: "sync" }), be = g(v, ue, { flush: "post" }), xe = _(() => {
636
- let t = h.value;
637
- V(t) && (t.group = e.group ?? "");
638
- }), Se = _e(h, ee, te, ne), Ce = me(h, C, d);
639
- function we() {
640
- O.value || (O.value = !0, he(), ge(), Z(), ye(), be(), xe(), Se(), Ce(), J(), Y());
641
- }
642
- let Q = pe(h, we, () => O.value), De = Q.clear;
643
- return Q.clear = () => {
644
- let e = h.value;
645
- if (!V(e)) return De();
646
- F = !1, y = 0, A?.cancelPendingFlush(), oe(), Z(), Z = ve(), H(e, () => e.clear(), void 0) && (M = void 0, I = !1, P = !0);
647
- }, c(() => {
648
- O.value || X();
649
- }), s(() => {
650
- if (Z(), O.value) return;
651
- O.value = !0;
652
- let e = u.value;
653
- if (Me && e?.isConnected && e.__dispose === null) {
654
- e.__dispose = Y;
655
- return;
656
- }
657
- Y();
658
- }), r(Object.assign({
659
- setOption: fe,
660
- get root() {
661
- return u.value ?? void 0;
662
- },
663
- get chart() {
664
- let e = h.value;
665
- return V(e) ? e : void 0;
666
- }
667
- }, Q)), (() => {
668
- let e = [i("div", {
669
- ref: d,
670
- class: "echarts-host"
671
- })];
672
- if (!O.value) {
673
- let t = ie();
674
- t && e.push(t);
675
- let n = A?.render();
676
- n && e.push(n);
677
- }
678
- let t = Ae(n);
679
- return i(Ee, {
680
- ...t,
681
- ref: u,
682
- class: ["echarts", t.class]
683
- }, e);
684
- });
685
- }
686
- }), Le = {
1
+ import { BarChart as e, LineChart as t, MapChart as n, PieChart as r, ScatterChart as i } from "echarts/charts";
2
+ import { DataZoomComponent as a, GraphicComponent as o, GridComponent as s, LegendComponent as c, MarkPointComponent as l, TitleComponent as u, TooltipComponent as d, VisualMapComponent as f } from "echarts/components";
3
+ import { registerMap as p, use as m } from "echarts/core";
4
+ import { CanvasRenderer as h } from "echarts/renderers";
5
+ import g from "vue-echarts";
6
+ var _ = {
687
7
  type: "FeatureCollection",
688
8
  features: [
689
9
  {
@@ -27229,26 +26549,26 @@ var Me = De(), $ = Symbol(), Ne = Symbol(), Pe = Symbol(), Fe = Symbol(), Ie = /
27229
26549
  }
27230
26550
  ]
27231
26551
  };
27232
- k([
27233
- y,
27234
- x,
27235
- v,
27236
- b,
27237
- S,
27238
- C,
27239
- ee,
27240
- oe,
27241
- w,
27242
- E,
27243
- te,
27244
- ne,
27245
- D,
27246
- T
27247
- ]), ie("china", Le);
27248
- var Re = Le.features.filter((e) => e.properties.name !== "").map((e) => ({
26552
+ m([
26553
+ t,
26554
+ r,
26555
+ e,
26556
+ n,
26557
+ i,
26558
+ a,
26559
+ s,
26560
+ h,
26561
+ o,
26562
+ d,
26563
+ c,
26564
+ l,
26565
+ f,
26566
+ u
26567
+ ]), p("china", _);
26568
+ var v = _.features.filter((e) => e.properties.name !== "").map((e) => ({
27249
26569
  adcode: e.properties.adcode,
27250
26570
  center: e.properties.center,
27251
26571
  name: e.properties.name
27252
- })), ze = Ie;
26572
+ })), y = g;
27253
26573
  //#endregion
27254
- export { ze as default, Re as mapFeaturesArr };
26574
+ export { y as default, v as mapFeaturesArr };