qy-vue-plugins 1.0.2-beta → 1.0.2

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 (246) hide show
  1. package/dist/apply-element-plus-theme.cjs +1 -0
  2. package/dist/apply-element-plus-theme.mjs +22 -0
  3. package/dist/beijihua-map-icon/hiper-map-icon-1.png +0 -0
  4. package/dist/beijihua-map-icon/hiper-map-icon-10.png +0 -0
  5. package/dist/beijihua-map-icon/hiper-map-icon-11.png +0 -0
  6. package/dist/beijihua-map-icon/hiper-map-icon-12.png +0 -0
  7. package/dist/beijihua-map-icon/hiper-map-icon-13.png +0 -0
  8. package/dist/beijihua-map-icon/hiper-map-icon-14.png +0 -0
  9. package/dist/beijihua-map-icon/hiper-map-icon-15.png +0 -0
  10. package/dist/beijihua-map-icon/hiper-map-icon-16.png +0 -0
  11. package/dist/beijihua-map-icon/hiper-map-icon-17.png +0 -0
  12. package/dist/beijihua-map-icon/hiper-map-icon-18.png +0 -0
  13. package/dist/beijihua-map-icon/hiper-map-icon-19.png +0 -0
  14. package/dist/beijihua-map-icon/hiper-map-icon-2.png +0 -0
  15. package/dist/beijihua-map-icon/hiper-map-icon-20.png +0 -0
  16. package/dist/beijihua-map-icon/hiper-map-icon-21.png +0 -0
  17. package/dist/beijihua-map-icon/hiper-map-icon-22.png +0 -0
  18. package/dist/beijihua-map-icon/hiper-map-icon-23.png +0 -0
  19. package/dist/beijihua-map-icon/hiper-map-icon-24.png +0 -0
  20. package/dist/beijihua-map-icon/hiper-map-icon-25.png +0 -0
  21. package/dist/beijihua-map-icon/hiper-map-icon-26.png +0 -0
  22. package/dist/beijihua-map-icon/hiper-map-icon-27.png +0 -0
  23. package/dist/beijihua-map-icon/hiper-map-icon-28.png +0 -0
  24. package/dist/beijihua-map-icon/hiper-map-icon-29.png +0 -0
  25. package/dist/beijihua-map-icon/hiper-map-icon-3.png +0 -0
  26. package/dist/beijihua-map-icon/hiper-map-icon-30.png +0 -0
  27. package/dist/beijihua-map-icon/hiper-map-icon-31.png +0 -0
  28. package/dist/beijihua-map-icon/hiper-map-icon-32.png +0 -0
  29. package/dist/beijihua-map-icon/hiper-map-icon-33.png +0 -0
  30. package/dist/beijihua-map-icon/hiper-map-icon-34.png +0 -0
  31. package/dist/beijihua-map-icon/hiper-map-icon-35.png +0 -0
  32. package/dist/beijihua-map-icon/hiper-map-icon-36.png +0 -0
  33. package/dist/beijihua-map-icon/hiper-map-icon-37.png +0 -0
  34. package/dist/beijihua-map-icon/hiper-map-icon-38.png +0 -0
  35. package/dist/beijihua-map-icon/hiper-map-icon-39.png +0 -0
  36. package/dist/beijihua-map-icon/hiper-map-icon-4.png +0 -0
  37. package/dist/beijihua-map-icon/hiper-map-icon-40.png +0 -0
  38. package/dist/beijihua-map-icon/hiper-map-icon-41.png +0 -0
  39. package/dist/beijihua-map-icon/hiper-map-icon-42.png +0 -0
  40. package/dist/beijihua-map-icon/hiper-map-icon-43.png +0 -0
  41. package/dist/beijihua-map-icon/hiper-map-icon-44.png +0 -0
  42. package/dist/beijihua-map-icon/hiper-map-icon-45.png +0 -0
  43. package/dist/beijihua-map-icon/hiper-map-icon-46.png +0 -0
  44. package/dist/beijihua-map-icon/hiper-map-icon-47.png +0 -0
  45. package/dist/beijihua-map-icon/hiper-map-icon-48.png +0 -0
  46. package/dist/beijihua-map-icon/hiper-map-icon-49.png +0 -0
  47. package/dist/beijihua-map-icon/hiper-map-icon-5.png +0 -0
  48. package/dist/beijihua-map-icon/hiper-map-icon-50.png +0 -0
  49. package/dist/beijihua-map-icon/hiper-map-icon-51.png +0 -0
  50. package/dist/beijihua-map-icon/hiper-map-icon-52.png +0 -0
  51. package/dist/beijihua-map-icon/hiper-map-icon-53.png +0 -0
  52. package/dist/beijihua-map-icon/hiper-map-icon-54.png +0 -0
  53. package/dist/beijihua-map-icon/hiper-map-icon-55.png +0 -0
  54. package/dist/beijihua-map-icon/hiper-map-icon-56.png +0 -0
  55. package/dist/beijihua-map-icon/hiper-map-icon-57.png +0 -0
  56. package/dist/beijihua-map-icon/hiper-map-icon-58.png +0 -0
  57. package/dist/beijihua-map-icon/hiper-map-icon-59.png +0 -0
  58. package/dist/beijihua-map-icon/hiper-map-icon-6.png +0 -0
  59. package/dist/beijihua-map-icon/hiper-map-icon-60.png +0 -0
  60. package/dist/beijihua-map-icon/hiper-map-icon-61.png +0 -0
  61. package/dist/beijihua-map-icon/hiper-map-icon-62.png +0 -0
  62. package/dist/beijihua-map-icon/hiper-map-icon-63.png +0 -0
  63. package/dist/beijihua-map-icon/hiper-map-icon-64.png +0 -0
  64. package/dist/beijihua-map-icon/hiper-map-icon-65.png +0 -0
  65. package/dist/beijihua-map-icon/hiper-map-icon-7.png +0 -0
  66. package/dist/beijihua-map-icon/hiper-map-icon-8.png +0 -0
  67. package/dist/beijihua-map-icon/hiper-map-icon-9.png +0 -0
  68. package/dist/chunks/{EventKeys-1aL9cgT0.js → EventKeys-DZ_Hahro.js} +4 -4
  69. package/dist/chunks/{MapTools.vue_vue_type_style_index_0_lang-C3__NQXN.js → MapTools.vue_vue_type_style_index_0_lang-C0C9opKY.js} +1 -1
  70. package/dist/chunks/{MapTools.vue_vue_type_style_index_0_lang-BJi8BdV8.js → MapTools.vue_vue_type_style_index_0_lang-CZ_dEmHg.js} +2 -2
  71. package/dist/chunks/{ReplaceSpeciesNameDialog.vue_vue_type_script_setup_true_lang-C8wD6gZS.js → ReplaceSpeciesNameDialog.vue_vue_type_script_setup_true_lang-CjJ3e53H.js} +12 -13
  72. package/dist/chunks/ReplaceSpeciesNameDialog.vue_vue_type_script_setup_true_lang-m9hkScAC.js +1 -0
  73. package/dist/chunks/apply-element-plus-theme-DdN9KOhk.js +1 -0
  74. package/dist/chunks/apply-element-plus-theme-UHVxP4VN.js +22 -0
  75. package/dist/chunks/aria-B5rZ0WFy.js +5 -0
  76. package/dist/chunks/aria-BEkkcjlH.js +115 -0
  77. package/dist/chunks/constant-Bq4ASE9Q.js +1 -0
  78. package/dist/chunks/{constant-BqK1UnfT.js → constant-E83OJqPQ.js} +17 -36
  79. package/dist/chunks/debounce-CHS-N31c.js +1 -0
  80. package/dist/chunks/debounce-DBq5TVsN.js +55 -0
  81. package/dist/chunks/{el-loading-CBXyo6la.js → directive-C-4KkhaM.js} +2 -2
  82. package/dist/chunks/directive-DRO4tFsQ.js +1 -0
  83. package/dist/chunks/index-03UF6hCZ.js +14 -0
  84. package/dist/chunks/index-B6SD5IcP.js +1 -0
  85. package/dist/chunks/{index-DHO_7w-5.js → index-BCQYbM-I.js} +22 -22
  86. package/dist/chunks/{el-input-DCpRXscw.js → index-BdloQTv1.js} +171 -175
  87. package/dist/chunks/{el-overlay-BJQjrf5W.js → index-BeskO4C8.js} +76 -75
  88. package/dist/chunks/index-BoFuR9-k.js +2 -0
  89. package/dist/chunks/index-Bs9zhLlD.js +1 -0
  90. package/dist/chunks/index-C-WIOEu8.js +1 -0
  91. package/dist/chunks/index-CD-vLVPt.js +1 -0
  92. package/dist/chunks/index-CD4bijv7.js +1 -0
  93. package/dist/chunks/index-CHRyd-8X.js +1 -0
  94. package/dist/chunks/{el-button-Dh7ROB0R.js → index-CgKiWbxR.js} +110 -117
  95. package/dist/chunks/{el-popper-zUql4Vp-.js → index-Cv_K9rbv.js} +47 -46
  96. package/dist/chunks/{el-select-Dil0JEvg.js → index-Cyrc4mj-.js} +467 -492
  97. package/dist/chunks/index-DLBjU25P.js +3 -0
  98. package/dist/chunks/index-DgwQEHlD.js +12 -0
  99. package/dist/chunks/index-LWCtnbZP.js +13 -0
  100. package/dist/chunks/index-OtE8c8y9.js +1 -0
  101. package/dist/chunks/index-Qzqd5jTh.js +1 -0
  102. package/dist/chunks/index-VbRYJz2E.js +1 -0
  103. package/dist/chunks/index-YiSmXvH8.js +975 -0
  104. package/dist/chunks/{index-Dq3Y5qiS.js → index-_At9ftZd.js} +35 -35
  105. package/dist/chunks/{index-Cw_w6CLf.js → index-ieQ_IULW.js} +11 -11
  106. package/dist/chunks/{el-form-item-CXLLocXw.js → index-mDs-Bipv.js} +151 -150
  107. package/dist/chunks/mapSetting-B1a88k-v.js +635 -0
  108. package/dist/chunks/mapSetting-Ba76lOJd.js +1 -0
  109. package/dist/chunks/{base-DfCoKyyG.js → style-COMeMpO8.js} +81 -80
  110. package/dist/chunks/{base-DK_JFP90.js → style-DiDWGUIe.js} +1 -1
  111. package/dist/chunks/toNumber-CCcOx5KD.js +1 -0
  112. package/dist/chunks/toNumber-CDwzVyqL.js +30 -0
  113. package/dist/chunks/use-form-common-props-BQtZKazE.js +66 -0
  114. package/dist/chunks/use-form-common-props-SdGVhyVk.js +1 -0
  115. package/dist/chunks/{use-global-config-DXAWJFeA.js → use-global-config-Ba3i7fKX.js} +18 -17
  116. package/dist/chunks/use-global-config-PaSl-b_9.js +1 -0
  117. package/dist/chunks/utils-BJ8Lu8TY.js +516 -0
  118. package/dist/chunks/utils-CrwGKkIz.js +1 -0
  119. package/dist/chunks/vnode-CvqQoLhR.js +1 -0
  120. package/dist/chunks/vnode-DpjFDm4v.js +70 -0
  121. package/dist/element-plus-style.cjs +1 -0
  122. package/dist/element-plus-style.mjs +1 -0
  123. package/dist/index.cjs +1 -1
  124. package/dist/index.mjs +13 -10
  125. package/dist/manageTable/ReplaceSpeciesNameDialog.cjs +1 -1
  126. package/dist/manageTable/ReplaceSpeciesNameDialog.mjs +1 -1
  127. package/dist/manageTable/index.cjs +1 -1
  128. package/dist/manageTable/index.mjs +10 -8
  129. package/dist/manageTable/manageTable.cjs +1 -1
  130. package/dist/manageTable/manageTable.mjs +1 -1
  131. package/dist/mapbox/components/VideoDialog.cjs +1 -1
  132. package/dist/mapbox/components/VideoDialog.mjs +16 -17
  133. package/dist/mapbox/widgets/LayerAttributeDialog.cjs +1 -1
  134. package/dist/mapbox/widgets/LayerAttributeDialog.mjs +30 -31
  135. package/dist/mapbox.cjs +1 -1
  136. package/dist/mapbox.mjs +22 -20
  137. package/dist/mapboxV2/MapView.cjs +1 -1
  138. package/dist/mapboxV2/MapView.mjs +3728 -1256
  139. package/dist/mapboxV2/components/MapLegend.cjs +1 -1
  140. package/dist/mapboxV2/components/MapLegend.mjs +51 -167
  141. package/dist/mapboxV2/components/MapTools.cjs +1 -1
  142. package/dist/mapboxV2/components/MapTools.mjs +1 -1
  143. package/dist/mapboxV2/components/VideoDialog.cjs +1 -1
  144. package/dist/mapboxV2/components/VideoDialog.mjs +12 -13
  145. package/dist/mapboxV2/components/mapSetting.cjs +1 -1
  146. package/dist/mapboxV2/components/mapSetting.mjs +1 -1
  147. package/dist/mapboxV2/components/mapTopic.cjs +1 -1
  148. package/dist/mapboxV2/components/mapTopic.mjs +349 -446
  149. package/dist/mapboxV2/constant.cjs +1 -1
  150. package/dist/mapboxV2/constant.mjs +13 -17
  151. package/dist/mapboxV2/useTif.cjs +1 -1
  152. package/dist/mapboxV2/useTif.mjs +86 -86
  153. package/dist/mapboxV2/utils.cjs +1 -1
  154. package/dist/mapboxV2/utils.mjs +362 -279
  155. package/dist/mapboxV2/widgets/CustomShapeDialog.cjs +1 -1
  156. package/dist/mapboxV2/widgets/CustomShapeDialog.mjs +87 -67
  157. package/dist/mapboxV2/widgets/IconPicker.cjs +1 -1
  158. package/dist/mapboxV2/widgets/IconPicker.mjs +59 -48
  159. package/dist/mapboxV2/widgets/LayerAttributeDialog.cjs +1 -1
  160. package/dist/mapboxV2/widgets/LayerAttributeDialog.mjs +17 -18
  161. package/dist/mapboxV2/widgets/LayerDialog.cjs +1 -1
  162. package/dist/mapboxV2/widgets/LayerDialog.mjs +94 -86
  163. package/dist/mapboxV2/widgets/LegendDialogLine.cjs +1 -1
  164. package/dist/mapboxV2/widgets/LegendDialogLine.mjs +95 -90
  165. package/dist/mapboxV2/widgets/LegendDialogPoint.cjs +1 -1
  166. package/dist/mapboxV2/widgets/LegendDialogPoint.mjs +90 -85
  167. package/dist/mapboxV2/widgets/LegendLine.cjs +1 -1
  168. package/dist/mapboxV2/widgets/LegendLine.mjs +28 -61
  169. package/dist/mapboxV2/widgets/LegendPoint.cjs +1 -1
  170. package/dist/mapboxV2/widgets/LegendPoint.mjs +52 -66
  171. package/dist/mapboxV2/widgets/LegendPopInterestPoint.cjs +1 -1
  172. package/dist/mapboxV2/widgets/LegendPopInterestPoint.mjs +16 -18
  173. package/dist/mapboxV2/widgets/LegendPopLine.cjs +1 -1
  174. package/dist/mapboxV2/widgets/LegendPopLine.mjs +72 -73
  175. package/dist/mapboxV2/widgets/LegendPopPoint.cjs +1 -1
  176. package/dist/mapboxV2/widgets/LegendPopPoint.mjs +113 -112
  177. package/dist/mapboxV2/widgets/LegendShape.cjs +1 -1
  178. package/dist/mapboxV2/widgets/LegendShape.mjs +17 -14
  179. package/dist/mapboxV2/widgets/LegendSymbol.cjs +1 -1
  180. package/dist/mapboxV2/widgets/LegendSymbol.mjs +5 -5
  181. package/dist/mapboxV2/widgets/ShapeDialog.cjs +1 -1
  182. package/dist/mapboxV2/widgets/ShapeDialog.mjs +1663 -1422
  183. package/dist/mapboxV2/widgets/TopicItemPop.cjs +1 -1
  184. package/dist/mapboxV2/widgets/TopicItemPop.mjs +2 -2
  185. package/dist/mapboxV2/widgets/TopicPop.mjs +1 -1
  186. package/dist/mapboxV2.cjs +3 -3
  187. package/dist/mapboxV2.mjs +673 -824
  188. package/dist/qy-vue-plugins.css +1 -1
  189. package/dist/types/apply-element-plus-theme.d.ts +1 -0
  190. package/dist/types/element-plus-style.d.ts +0 -0
  191. package/dist/types/manageTable/manageTable.vue.d.ts +2 -2
  192. package/dist/types/mapboxV2/MapView.vue.d.ts +130 -3
  193. package/dist/types/mapboxV2/components/mapTopic.vue.d.ts +10 -591
  194. package/dist/types/mapboxV2/types/map-layer.d.ts +185 -3
  195. package/dist/types/mapboxV2/useTif.d.ts +2 -2
  196. package/dist/types/mapboxV2/utils/geojsonRenderer.d.ts +123 -0
  197. package/dist/types/mapboxV2/utils.d.ts +5 -0
  198. package/dist/types/mapboxV2/widgets/IconPicker.vue.d.ts +8 -10
  199. package/dist/types/mapboxV2/widgets/index.d.ts +3 -0
  200. package/dist/types/mapboxV2/widgets/track/TrackImageDialog.vue.d.ts +11 -0
  201. package/dist/types/mapboxV2/widgets/track/TrackTextDialog.vue.d.ts +11 -0
  202. package/dist/types/mapboxV2/widgets/track/TrackVoiceDialog.vue.d.ts +11 -0
  203. package/dist/types/mapboxV2/widgets/track/index.d.ts +3 -0
  204. package/dist/types/store/mapStore.d.ts +122 -0
  205. package/dist/types/types/map.d.ts +111 -7
  206. package/package/apply-element-plus-theme.ts +23 -0
  207. package/package/css/common.scss +33 -0
  208. package/package/css/element-plus-theme.scss +30 -0
  209. package/package/css/map.scss +42 -0
  210. package/package/element-plus-style.ts +48 -0
  211. package/package/manageTable/index.ts +5 -0
  212. package/package/mapbox/index.ts +5 -0
  213. package/package/mapboxV2/constant.ts +4 -12
  214. package/package/mapboxV2/index.ts +5 -0
  215. package/package/mapboxV2/useTif.ts +18 -13
  216. package/package/mapboxV2/utils.ts +303 -143
  217. package/package/mapboxV2/widgets/index.ts +5 -0
  218. package/package/types/map.ts +129 -32
  219. package/package.json +27 -3
  220. package/dist/chunks/ReplaceSpeciesNameDialog.vue_vue_type_script_setup_true_lang-DnYed7Kh.js +0 -1
  221. package/dist/chunks/aria-B-Cm8P6h.js +0 -5
  222. package/dist/chunks/aria-GiGFrmP1.js +0 -175
  223. package/dist/chunks/constant-mXEWtcQf.js +0 -1
  224. package/dist/chunks/el-button-w9UOZkmd.js +0 -3
  225. package/dist/chunks/el-color-picker-panel-BWjyXHBz.js +0 -1
  226. package/dist/chunks/el-color-picker-panel-BfOVWDkH.js +0 -1024
  227. package/dist/chunks/el-form-item-ECXS8pAs.js +0 -12
  228. package/dist/chunks/el-input-tAiZBp5N.js +0 -1
  229. package/dist/chunks/el-loading-BDhLUhme.js +0 -1
  230. package/dist/chunks/el-overlay-BEd31jh6.js +0 -1
  231. package/dist/chunks/el-popper-C6hJmTeX.js +0 -1
  232. package/dist/chunks/el-select-BXP0YqqB.js +0 -1
  233. package/dist/chunks/index-BIPr63lF.js +0 -1
  234. package/dist/chunks/index-BIaoqnN4.js +0 -1
  235. package/dist/chunks/index-D9eecDRK.js +0 -2
  236. package/dist/chunks/mapSetting-BRasGCqk.js +0 -597
  237. package/dist/chunks/mapSetting-CfE-5SCc.js +0 -1
  238. package/dist/chunks/use-global-config-y6gk28OO.js +0 -1
  239. package/dist/chunks/utils-CZxmwfl_.js +0 -1
  240. package/dist/chunks/utils-n1i0zWzc.js +0 -454
  241. package/dist/chunks/vnode-CyTnPoXJ.js +0 -47
  242. package/dist/chunks/vnode-eKMqbqaC.js +0 -1
  243. package/dist/chunks//346/255/243/344/270/211/350/247/222/345/275/242-BRUTHTNe.js +0 -12
  244. package/dist/chunks//346/255/243/344/270/211/350/247/222/345/275/242-CksusXxb.js +0 -28
  245. package/dist/chunks//346/255/243/344/270/211/350/247/222/345/275/242-DchJeGnp.js +0 -1
  246. package/dist/chunks//346/255/243/344/270/211/350/247/222/345/275/242-yXKDlNvO.js +0 -17
@@ -0,0 +1,55 @@
1
+ import { r as S, a as y } from "./style-COMeMpO8.js";
2
+ import { t as b } from "./toNumber-CDwzVyqL.js";
3
+ var h = function() {
4
+ return S.Date.now();
5
+ }, R = "Expected a function", A = Math.max, F = Math.min;
6
+ function _(x, i, a) {
7
+ var u, d, m, f, n, r, o = 0, E = !1, l = !1, g = !0;
8
+ if (typeof x != "function")
9
+ throw new TypeError(R);
10
+ i = b(i) || 0, y(a) && (E = !!a.leading, l = "maxWait" in a, m = l ? A(b(a.maxWait) || 0, i) : m, g = "trailing" in a ? !!a.trailing : g);
11
+ function v(e) {
12
+ var t = u, c = d;
13
+ return u = d = void 0, o = e, f = x.apply(c, t), f;
14
+ }
15
+ function p(e) {
16
+ return o = e, n = setTimeout(s, i), E ? v(e) : f;
17
+ }
18
+ function C(e) {
19
+ var t = e - r, c = e - o, W = i - t;
20
+ return l ? F(W, m - c) : W;
21
+ }
22
+ function k(e) {
23
+ var t = e - r, c = e - o;
24
+ return r === void 0 || t >= i || t < 0 || l && c >= m;
25
+ }
26
+ function s() {
27
+ var e = h();
28
+ if (k(e))
29
+ return I(e);
30
+ n = setTimeout(s, C(e));
31
+ }
32
+ function I(e) {
33
+ return n = void 0, g && u ? v(e) : (u = d = void 0, f);
34
+ }
35
+ function L() {
36
+ n !== void 0 && clearTimeout(n), o = 0, u = r = d = n = void 0;
37
+ }
38
+ function M() {
39
+ return n === void 0 ? f : I(h());
40
+ }
41
+ function T() {
42
+ var e = h(), t = k(e);
43
+ if (u = arguments, d = this, r = e, t) {
44
+ if (n === void 0)
45
+ return p(r);
46
+ if (l)
47
+ return clearTimeout(n), n = setTimeout(s, i), v(r);
48
+ }
49
+ return n === void 0 && (n = setTimeout(s, i)), f;
50
+ }
51
+ return T.cancel = L, T.flush = M, T;
52
+ }
53
+ export {
54
+ _ as d
55
+ };
@@ -1,6 +1,6 @@
1
1
  import { ref as B, reactive as P, defineComponent as O, h as g, Transition as j, withCtx as z, withDirectives as R, createVNode as q, vShow as D, createApp as F, toRefs as G, nextTick as I, isRef as H } from "vue";
2
- import { u as K } from "./use-global-config-DXAWJFeA.js";
3
- import { r as C, a as S, g as b, b as k, c as $, h as M } from "./base-DfCoKyyG.js";
2
+ import { u as K } from "./use-global-config-Ba3i7fKX.js";
3
+ import { b as C, c as S, g as b, e as k, h as $, j as M } from "./style-COMeMpO8.js";
4
4
  import { isClient as Y } from "@vueuse/core";
5
5
  function Z(e, n) {
6
6
  let t;
@@ -0,0 +1 @@
1
+ "use strict";const a=require("vue"),B=require("./use-global-config-PaSl-b_9.js"),i=require("./style-DiDWGUIe.js"),I=require("@vueuse/core");function T(e,n){let t;const s=a.ref(!1),l=a.reactive({...e,originalPosition:"",originalOverflow:"",visible:!1});function r(o){l.text=o}function d(){const o=l.parent,v=f.ns;if(!o.vLoadingAddClassList){let c=o.getAttribute("loading-number");c=Number.parseInt(c)-1,c?o.setAttribute("loading-number",c.toString()):(i.removeClass(o,v.bm("parent","relative")),o.removeAttribute("loading-number")),i.removeClass(o,v.bm("parent","hidden"))}g(),b.unmount()}function g(){var o,v;(v=(o=f.$el)==null?void 0:o.parentNode)==null||v.removeChild(f.$el)}function C(){var o;e.beforeClose&&!e.beforeClose()||(s.value=!0,clearTimeout(t),t=setTimeout(u,400),l.visible=!1,(o=e.closed)==null||o.call(e))}function u(){if(!s.value)return;const o=l.parent;s.value=!1,o.vLoadingAddClassList=void 0,d()}const p=a.defineComponent({name:"ElLoading",setup(o,{expose:v}){const{ns:c,zIndex:w}=B.useGlobalComponentSettings("loading");return v({ns:c,zIndex:w}),()=>{const L=l.spinner||l.svg,S=a.h("svg",{class:"circular",viewBox:l.svgViewBox?l.svgViewBox:"0 0 50 50",...L?{innerHTML:L}:{}},[a.h("circle",{class:"path",cx:"25",cy:"25",r:"20",fill:"none"})]),$=l.text?a.h("p",{class:c.b("text")},[l.text]):void 0;return a.h(a.Transition,{name:c.b("fade"),onAfterLeave:u},{default:a.withCtx(()=>[a.withDirectives(a.createVNode("div",{style:{backgroundColor:l.background||""},class:[c.b("mask"),l.customClass,c.is("fullscreen",l.fullscreen)]},[a.h("div",{class:c.b("spinner")},[S,$])]),[[a.vShow,l.visible]])])})}}}),b=a.createApp(p);Object.assign(b._context,n??{});const f=b.mount(document.createElement("div"));return{...a.toRefs(l),setText:r,removeElLoadingChild:g,close:C,handleAfterLeave:u,vm:f,get $el(){return f.$el}}}let y;const _=function(e={},n){if(!I.isClient)return;const t=N(e);if(t.fullscreen&&y)return y;const s=T({...t,closed:()=>{var r;(r=t.closed)==null||r.call(t),t.fullscreen&&(y=void 0)}},n??_._context);V(t,t.parent,s),k(t,t.parent,s),t.parent.vLoadingAddClassList=()=>k(t,t.parent,s);let l=t.parent.getAttribute("loading-number");return l?l=`${Number.parseInt(l)+1}`:l="1",t.parent.setAttribute("loading-number",l),t.parent.appendChild(s.$el),a.nextTick(()=>s.visible.value=t.visible),t.fullscreen&&(y=s),s},N=e=>{var n,t,s,l;let r;return i.isString(e.target)?r=(n=document.querySelector(e.target))!=null?n:document.body:r=e.target||document.body,{parent:r===document.body||e.body?document.body:r,background:e.background||"",svg:e.svg||"",svgViewBox:e.svgViewBox||"",spinner:e.spinner||!1,text:e.text||"",fullscreen:r===document.body&&((t=e.fullscreen)!=null?t:!0),lock:(s=e.lock)!=null?s:!1,customClass:e.customClass||"",visible:(l=e.visible)!=null?l:!0,beforeClose:e.beforeClose,closed:e.closed,target:r}},V=async(e,n,t)=>{const{nextZIndex:s}=t.vm.zIndex||t.vm._.exposed.zIndex,l={};if(e.fullscreen)t.originalPosition.value=i.getStyle(document.body,"position"),t.originalOverflow.value=i.getStyle(document.body,"overflow"),l.zIndex=s();else if(e.parent===document.body){t.originalPosition.value=i.getStyle(document.body,"position"),await a.nextTick();for(const r of["top","left"]){const d=r==="top"?"scrollTop":"scrollLeft";l[r]=`${e.target.getBoundingClientRect()[r]+document.body[d]+document.documentElement[d]-Number.parseInt(i.getStyle(document.body,`margin-${r}`),10)}px`}for(const r of["height","width"])l[r]=`${e.target.getBoundingClientRect()[r]}px`}else t.originalPosition.value=i.getStyle(n,"position");for(const[r,d]of Object.entries(l))t.$el.style[r]=d},k=(e,n,t)=>{const s=t.vm.ns||t.vm._.exposed.ns;["absolute","fixed","sticky"].includes(t.originalPosition.value)?i.removeClass(n,s.bm("parent","relative")):i.addClass(n,s.bm("parent","relative")),e.fullscreen&&e.lock?i.addClass(n,s.bm("parent","hidden")):i.removeClass(n,s.bm("parent","hidden"))};_._context=null;const x=Symbol("ElLoading"),m=e=>`element-loading-${i.hyphenate(e)}`,A=(e,n)=>{var t,s,l,r;const d=n.instance,g=o=>i.isObject$1(n.value)?n.value[o]:void 0,C=o=>{const v=i.isString(o)&&d?.[o]||o;return a.ref(v)},u=o=>C(g(o)||e.getAttribute(m(o))),p=(t=g("fullscreen"))!=null?t:n.modifiers.fullscreen,b={text:u("text"),svg:u("svg"),svgViewBox:u("svgViewBox"),spinner:u("spinner"),background:u("background"),customClass:u("customClass"),fullscreen:p,target:(s=g("target"))!=null?s:p?void 0:e,body:(l=g("body"))!=null?l:n.modifiers.body,lock:(r=g("lock"))!=null?r:n.modifiers.lock},f=_(b);f._context=h._context,e[x]={options:b,instance:f}},E=(e,n)=>{for(const t of Object.keys(e))a.isRef(e[t])&&(e[t].value=n[t])},h={mounted(e,n){n.value&&A(e,n)},updated(e,n){const t=e[x];if(!n.value){t?.instance.close(),e[x]=null;return}t?E(t.options,i.isObject$1(n.value)?n.value:{text:e.getAttribute(m("text")),svg:e.getAttribute(m("svg")),svgViewBox:e.getAttribute(m("svgViewBox")),spinner:e.getAttribute(m("spinner")),background:e.getAttribute(m("background")),customClass:e.getAttribute(m("customClass"))}):A(e,n)},unmounted(e){var n;(n=e[x])==null||n.instance.close(),e[x]=null}};h._context=null;exports.vLoading=h;
@@ -0,0 +1,14 @@
1
+ import { watch as m, unref as p } from "vue";
2
+ import { d as u } from "./style-COMeMpO8.js";
3
+ const c = ({ from: e, replacement: t, scope: r, version: a, ref: i, type: o = "API" }, s) => {
4
+ m(() => p(s), (d) => {
5
+ d && u(r, `[${o}] ${e} is about to be deprecated in version ${a}, please use ${t} instead.
6
+ For more detail, please visit: ${i}
7
+ `);
8
+ }, {
9
+ immediate: !0
10
+ });
11
+ };
12
+ export {
13
+ c as u
14
+ };
@@ -0,0 +1 @@
1
+ "use strict";const r=require("vue"),F=require("./aria-B5rZ0WFy.js"),q=require("@vueuse/core"),h=require("./style-DiDWGUIe.js"),N="focus-trap.focus-after-trapped",R="focus-trap.focus-after-released",te="focus-trap.focusout-prevented",H={cancelable:!0,bubbles:!1},ne={cancelable:!0,bubbles:!1},M="focusAfterTrapped",j="focusAfterReleased",G=Symbol("elFocusTrap"),A=r.ref(),P=r.ref(0),U=r.ref(0);let _=0;const Q=e=>{const t=[],o=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:s=>{const u=s.tagName==="INPUT"&&s.type==="hidden";return s.disabled||s.hidden||u?NodeFilter.FILTER_SKIP:s.tabIndex>=0||s===document.activeElement?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;o.nextNode();)t.push(o.currentNode);return t},x=(e,t)=>{for(const o of e)if(!oe(o,t))return o},oe=(e,t)=>{if(typeof process<"u"&&process.env.NODE_ENV==="test")return!1;if(getComputedStyle(e).visibility==="hidden")return!0;for(;e;){if(t&&e===t)return!1;if(getComputedStyle(e).display==="none")return!0;e=e.parentElement}return!1},se=e=>{const t=Q(e),o=x(t,e),s=x(t.reverse(),e);return[o,s]},re=e=>e instanceof HTMLInputElement&&"select"in e,p=(e,t)=>{if(e){const o=document.activeElement;F.focusElement(e,{preventScroll:!0}),U.value=window.performance.now(),e!==o&&re(e)&&t&&e.select()}};function J(e,t){const o=[...e],s=e.indexOf(t);return s!==-1&&o.splice(s,1),o}const ce=()=>{let e=[];return{push:s=>{const u=e[0];u&&s!==u&&u.pause(),e=J(e,s),e.unshift(s)},remove:s=>{var u,a;e=J(e,s),(a=(u=e[0])==null?void 0:u.resume)==null||a.call(u)}}},ue=(e,t=!1)=>{const o=document.activeElement;for(const s of e)if(p(s,t),document.activeElement!==o)return},W=ce(),ae=()=>P.value>U.value,b=()=>{A.value="pointer",P.value=window.performance.now()},Y=()=>{A.value="keyboard",P.value=window.performance.now()},ie=()=>(r.onMounted(()=>{_===0&&(document.addEventListener("mousedown",b),document.addEventListener("touchstart",b),document.addEventListener("keydown",Y)),_++}),r.onBeforeUnmount(()=>{_--,_<=0&&(document.removeEventListener("mousedown",b),document.removeEventListener("touchstart",b),document.removeEventListener("keydown",Y))}),{focusReason:A,lastUserFocusTimestamp:P,lastAutomatedFocusTimestamp:U}),w=e=>new CustomEvent(te,{...ne,detail:e}),T={tab:"Tab",enter:"Enter",space:"Space",left:"ArrowLeft",up:"ArrowUp",right:"ArrowRight",down:"ArrowDown",esc:"Escape",delete:"Delete",backspace:"Backspace",numpadEnter:"NumpadEnter",pageUp:"PageUp",pageDown:"PageDown",home:"Home",end:"End"},de=(e,t,{checkForDefaultPrevented:o=!0}={})=>u=>{const a=e?.(u);if(o===!1||!a)return t?.(u)},le=e=>t=>t.pointerType==="mouse"?e(t):void 0,I=e=>{if(e.code&&e.code!=="Unidentified")return e.code;const t=X(e);if(t){if(Object.values(T).includes(t))return t;switch(t){case" ":return T.space;default:return""}}return""},X=e=>{let t=e.key&&e.key!=="Unidentified"?e.key:"";if(!t&&e.type==="keyup"&&F.isAndroid()){const o=e.target;t=o.value.charAt(o.selectionStart-1)}return t};let E=[];const z=e=>{I(e)===T.esc&&E.forEach(o=>o(e))},fe=e=>{r.onMounted(()=>{E.length===0&&document.addEventListener("keydown",z),q.isClient&&E.push(e)}),r.onBeforeUnmount(()=>{E=E.filter(t=>t!==e),E.length===0&&q.isClient&&document.removeEventListener("keydown",z)})},pe=r.defineComponent({name:"ElFocusTrap",inheritAttrs:!1,props:{loop:Boolean,trapped:Boolean,focusTrapEl:Object,focusStartEl:{type:[Object,String],default:"first"}},emits:[M,j,"focusin","focusout","focusout-prevented","release-requested"],setup(e,{emit:t}){const o=r.ref();let s,u;const{focusReason:a}=ie();fe(n=>{e.trapped&&!v.paused&&t("release-requested",n)});const v={paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}},m=n=>{if(!e.loop&&!e.trapped||v.paused)return;const{altKey:c,ctrlKey:i,metaKey:d,currentTarget:l,shiftKey:C}=n,{loop:$}=e,ee=I(n)===T.tab&&!c&&!i&&!d,y=document.activeElement;if(ee&&y){const L=l,[O,k]=se(L);if(O&&k){if(!C&&y===k){const f=w({focusReason:a.value});t("focusout-prevented",f),f.defaultPrevented||(n.preventDefault(),$&&p(O,!0))}else if(C&&[O,L].includes(y)){const f=w({focusReason:a.value});t("focusout-prevented",f),f.defaultPrevented||(n.preventDefault(),$&&p(k,!0))}}else if(y===L){const f=w({focusReason:a.value});t("focusout-prevented",f),f.defaultPrevented||n.preventDefault()}}};r.provide(G,{focusTrapRef:o,onKeydown:m}),r.watch(()=>e.focusTrapEl,n=>{n&&(o.value=n)},{immediate:!0}),r.watch([o],([n],[c])=>{n&&(n.addEventListener("keydown",m),n.addEventListener("focusin",g),n.addEventListener("focusout",S)),c&&(c.removeEventListener("keydown",m),c.removeEventListener("focusin",g),c.removeEventListener("focusout",S))});const D=n=>{t(M,n)},K=n=>t(j,n),g=n=>{const c=r.unref(o);if(!c)return;const i=n.target,d=n.relatedTarget,l=i&&c.contains(i);e.trapped||d&&c.contains(d)||(s=d),l&&t("focusin",n),!v.paused&&e.trapped&&(l?u=i:p(u,!0))},S=n=>{const c=r.unref(o);if(!(v.paused||!c))if(e.trapped){const i=n.relatedTarget;!h.isNil(i)&&!c.contains(i)&&setTimeout(()=>{if(!v.paused&&e.trapped){const d=w({focusReason:a.value});t("focusout-prevented",d),d.defaultPrevented||p(u,!0)}},0)}else{const i=n.target;i&&c.contains(i)||t("focusout",n)}};async function B(){await r.nextTick();const n=r.unref(o);if(n){W.push(v);const c=n.contains(document.activeElement)?s:document.activeElement;if(s=c,!n.contains(c)){const d=new Event(N,H);n.addEventListener(N,D),n.dispatchEvent(d),d.defaultPrevented||r.nextTick(()=>{let l=e.focusStartEl;h.isString(l)||(p(l),document.activeElement!==l&&(l="first")),l==="first"&&ue(Q(n),!0),(document.activeElement===c||l==="container")&&p(n)})}}}function V(){const n=r.unref(o);if(n){n.removeEventListener(N,D);const c=new CustomEvent(R,{...H,detail:{focusReason:a.value}});n.addEventListener(R,K),n.dispatchEvent(c),!c.defaultPrevented&&(a.value=="keyboard"||!ae()||n.contains(document.activeElement))&&p(s??document.body),n.removeEventListener(R,K),W.remove(v),s=null,u=null}}return r.onMounted(()=>{e.trapped&&B(),r.watch(()=>e.trapped,n=>{n?B():V()})}),r.onBeforeUnmount(()=>{e.trapped&&V(),o.value&&(o.value.removeEventListener("keydown",m),o.value.removeEventListener("focusin",g),o.value.removeEventListener("focusout",S),o.value=void 0),s=null,u=null}),{onKeydown:m}}});function ve(e,t,o,s,u,a){return r.renderSlot(e.$slots,"default",{handleKeydown:e.onKeydown})}var Ee=F._export_sfc(pe,[["render",ve],["__file","focus-trap.vue"]]);const Z=h.buildProps({to:{type:h.definePropType([String,Object]),required:!0},disabled:Boolean}),me=r.defineComponent({__name:"teleport",props:Z,setup(e){return(t,o)=>t.disabled?r.renderSlot(t.$slots,"default",{key:0}):(r.openBlock(),r.createBlock(r.Teleport,{key:1,to:t.to},[r.renderSlot(t.$slots,"default")],8,["to"]))}});var Te=F._export_sfc(me,[["__file","teleport.vue"]]);const Fe=F.withInstall(Te);exports.EVENT_CODE=T;exports.ElFocusTrap=Ee;exports.ElTeleport=Fe;exports.FOCUS_TRAP_INJECTION_KEY=G;exports.composeEventHandlers=de;exports.getEventCode=I;exports.getEventKey=X;exports.teleportProps=Z;exports.whenMouse=le;
@@ -1,11 +1,11 @@
1
- import { z as g, A as C, B as w, C as b, D as A, E as P, F as T, G as O, H as _, I as k, d as I, j as N, J as D, y as S } from "./base-DfCoKyyG.js";
2
- import { getCurrentInstance as H, shallowRef as R, ref as E, watch as L, unref as p, onMounted as M, nextTick as z } from "vue";
1
+ import { E as g, F as C, G as w, H as b, I as O, J as P, K as T, L as A, M as _, O as k, l as I, q as N, P as H, B as S } from "./style-COMeMpO8.js";
2
+ import { getCurrentInstance as L, shallowRef as M, ref as E, watch as R, unref as p, onMounted as D, nextTick as K } from "vue";
3
3
  import { useEventListener as v } from "@vueuse/core";
4
- import { l as B } from "./aria-GiGFrmP1.js";
5
- function G(n) {
4
+ import { g as q } from "./aria-BEkkcjlH.js";
5
+ function B(n) {
6
6
  return n;
7
7
  }
8
- function K(n, e, t) {
8
+ function G(n, e, t) {
9
9
  switch (t.length) {
10
10
  case 0:
11
11
  return n.call(e);
@@ -18,11 +18,11 @@ function K(n, e, t) {
18
18
  }
19
19
  return n.apply(e, t);
20
20
  }
21
- var U = 800, q = 16, J = Date.now;
21
+ var U = 800, z = 16, J = Date.now;
22
22
  function V(n) {
23
23
  var e = 0, t = 0;
24
24
  return function() {
25
- var i = J(), r = q - (i - t);
25
+ var i = J(), r = z - (i - t);
26
26
  if (t = i, r > 0) {
27
27
  if (++e >= U)
28
28
  return arguments[0];
@@ -43,26 +43,26 @@ var Q = g ? function(n, e) {
43
43
  value: $(e),
44
44
  writable: !0
45
45
  });
46
- } : G, W = V(Q), y = Math.max;
46
+ } : B, W = V(Q), x = Math.max;
47
47
  function X(n, e, t) {
48
- return e = y(e === void 0 ? n.length - 1 : e, 0), function() {
49
- for (var i = arguments, r = -1, u = y(i.length - e, 0), l = Array(u); ++r < u; )
48
+ return e = x(e === void 0 ? n.length - 1 : e, 0), function() {
49
+ for (var i = arguments, r = -1, u = x(i.length - e, 0), l = Array(u); ++r < u; )
50
50
  l[r] = i[e + r];
51
51
  r = -1;
52
52
  for (var a = Array(e + 1); ++r < e; )
53
53
  a[r] = i[r];
54
- return a[e] = t(l), K(n, this, a);
54
+ return a[e] = t(l), G(n, this, a);
55
55
  };
56
56
  }
57
- var x = C ? C.isConcatSpreadable : void 0;
57
+ var y = C ? C.isConcatSpreadable : void 0;
58
58
  function Y(n) {
59
- return w(n) || b(n) || !!(x && n && n[x]);
59
+ return w(n) || b(n) || !!(y && n && n[y]);
60
60
  }
61
61
  function Z(n, e, t, i, r) {
62
62
  var u = -1, l = n.length;
63
63
  for (t || (t = Y), r || (r = []); ++u < l; ) {
64
64
  var a = n[u];
65
- t(a) ? A(r, a) : r[r.length] = a;
65
+ t(a) ? O(r, a) : r[r.length] = a;
66
66
  }
67
67
  return r;
68
68
  }
@@ -84,7 +84,7 @@ function tn(n, e, t) {
84
84
  break;
85
85
  n = n[l];
86
86
  }
87
- return u || ++i != r ? u : (r = n == null ? 0 : n.length, !!r && O(r) && _(l, r) && (w(n) || b(n)));
87
+ return u || ++i != r ? u : (r = n == null ? 0 : n.length, !!r && A(r) && _(l, r) && (w(n) || b(n)));
88
88
  }
89
89
  function rn(n, e) {
90
90
  return n != null && tn(n, e, en);
@@ -119,7 +119,7 @@ function pn(n, {
119
119
  beforeBlur: r,
120
120
  afterBlur: u
121
121
  } = {}) {
122
- const l = H(), { emit: a } = l, s = R(), f = E(!1), d = (o) => {
122
+ const l = L(), { emit: a } = l, s = M(), f = E(!1), d = (o) => {
123
123
  const c = S(t) ? t(o) : !1;
124
124
  p(e) || f.value || c || (f.value = !0, a("focus", o), i?.());
125
125
  }, m = (o) => {
@@ -128,12 +128,12 @@ function pn(n, {
128
128
  p(e) || o.relatedTarget && ((c = s.value) != null && c.contains(o.relatedTarget)) || h || (f.value = !1, a("blur", o), u?.());
129
129
  }, F = (o) => {
130
130
  var c, h;
131
- p(e) || B(o.target) || (c = s.value) != null && c.contains(document.activeElement) && s.value !== document.activeElement || (h = n.value) == null || h.focus();
131
+ p(e) || q(o.target) || (c = s.value) != null && c.contains(document.activeElement) && s.value !== document.activeElement || (h = n.value) == null || h.focus();
132
132
  };
133
- return L([s, () => p(e)], ([o, c]) => {
133
+ return R([s, () => p(e)], ([o, c]) => {
134
134
  o && (c ? o.removeAttribute("tabindex") : o.setAttribute("tabindex", "-1"));
135
- }), v(s, "focus", d, !0), v(s, "blur", m, !0), v(s, "click", F, !0), typeof process < "u" && process.env.NODE_ENV === "test" && M(() => {
136
- const o = D(n.value) ? n.value : document.querySelector("input,textarea");
135
+ }), v(s, "focus", d, !0), v(s, "blur", m, !0), v(s, "click", F, !0), typeof process < "u" && process.env.NODE_ENV === "test" && D(() => {
136
+ const o = H(n.value) ? n.value : document.querySelector("input,textarea");
137
137
  o && (v(o, "focus", d, !0), v(o, "blur", m, !0));
138
138
  }), {
139
139
  isFocused: f,
@@ -155,7 +155,7 @@ function mn({
155
155
  const f = (s = a.target) == null ? void 0 : s.value, d = f[f.length - 1] || "";
156
156
  t.value = !sn(d);
157
157
  }, u = (a) => {
158
- e?.("compositionend", a), t.value && (t.value = !1, z(() => n(a)));
158
+ e?.("compositionend", a), t.value && (t.value = !1, K(() => n(a)));
159
159
  };
160
160
  return {
161
161
  isComposing: t,
@@ -172,7 +172,7 @@ export {
172
172
  mn as b,
173
173
  nn as f,
174
174
  rn as h,
175
- G as i,
175
+ B as i,
176
176
  on as p,
177
177
  hn as u
178
178
  };