st-comp 0.0.248 → 0.0.250

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 (163) hide show
  1. package/components.d.ts +1 -0
  2. package/es/ChartLayout.js +4 -4
  3. package/es/CustomFunction.cjs +2 -2
  4. package/es/CustomFunction.js +82 -80
  5. package/es/FactorWarning.cjs +1 -1
  6. package/es/FactorWarning.js +36 -35
  7. package/es/Kline.cjs +1 -1
  8. package/es/Kline.js +20 -19
  9. package/es/KlineBasic.cjs +1 -1
  10. package/es/KlineBasic.js +30 -28
  11. package/es/KlineConfig.cjs +1 -1
  12. package/es/KlineConfig.js +83 -82
  13. package/es/KlineNew.cjs +1 -1
  14. package/es/KlineNew.js +19 -18
  15. package/es/KlinePlus.cjs +1 -1
  16. package/es/KlinePlus.js +22 -21
  17. package/es/LinearLegend.cjs +1 -1
  18. package/es/LinearLegend.js +63 -1
  19. package/es/MonacoEditor.cjs +1 -1
  20. package/es/MonacoEditor.js +28 -26
  21. package/es/Pagination.cjs +1 -1
  22. package/es/Pagination.js +121 -120
  23. package/es/PasswordPrompt.cjs +1 -1
  24. package/es/PasswordPrompt.js +3 -3
  25. package/es/Table.cjs +1 -1
  26. package/es/Table.js +31 -30
  27. package/es/User.cjs +1 -1
  28. package/es/User.js +157 -155
  29. package/es/VarSelectDialog.cjs +2 -2
  30. package/es/VarSelectDialog.js +29 -27
  31. package/es/VarietyAiHelper.cjs +4 -0
  32. package/es/VarietyAiHelper.js +276 -0
  33. package/es/VarietyAutoComplete.cjs +1 -1
  34. package/es/VarietyAutoComplete.js +13 -12
  35. package/es/VarietySearch.cjs +10 -10
  36. package/es/VarietySearch.js +70 -68
  37. package/es/{VarietySelect-2fd501da.cjs → VarietySelect-5c845562.cjs} +1 -1
  38. package/es/{VarietySelect-b9fe3000.js → VarietySelect-9f267958.js} +4 -4
  39. package/es/VarietyTextCopy.cjs +1 -1
  40. package/es/VarietyTextCopy.js +24 -22
  41. package/es/VirtualTable.cjs +1 -1
  42. package/es/VirtualTable.js +70 -70
  43. package/es/{_initCloneObject-3823a101.cjs → _initCloneObject-2b82e9f7.cjs} +1 -1
  44. package/es/{_initCloneObject-382335b2.js → _initCloneObject-69c8ae23.js} +7 -7
  45. package/es/aiTools.js +36 -0
  46. package/es/{base-ff0e366f.js → base-29f73b05.js} +40 -40
  47. package/es/{castArray-15070be9.js → castArray-609a313e.js} +1 -1
  48. package/es/{config-provider-2182708a.cjs → config-provider-2ae47cc8.cjs} +1 -1
  49. package/es/{config-provider-2e85eee8.js → config-provider-7860903c.js} +6 -6
  50. package/es/{debounce-e9e47f9a.js → debounce-a09ce9a3.js} +1 -1
  51. package/es/{dropdown-2b35a683.js → dropdown-497442b7.js} +30 -29
  52. package/es/dropdown-eba9eaf5.cjs +1 -0
  53. package/es/{el-autocomplete-18be2c5a.js → el-autocomplete-27c60cc8.js} +24 -23
  54. package/es/el-autocomplete-b59eb529.cjs +1 -0
  55. package/es/{el-button-68baab7b.cjs → el-button-974ff9e9.cjs} +1 -1
  56. package/es/{el-button-f08c0639.js → el-button-e2c63c08.js} +39 -39
  57. package/es/el-checkbox-08185353.cjs +1 -0
  58. package/es/{el-checkbox-058dba2d.js → el-checkbox-71ebd862.js} +31 -31
  59. package/es/el-dialog-1b185570.cjs +1 -0
  60. package/es/{el-dialog-d328e0d8.js → el-dialog-eedcfd3e.js} +15 -15
  61. package/es/{el-divider-4fe55ebe.js → el-divider-523e5874.js} +1 -1
  62. package/es/{el-empty-ceecb81c.js → el-empty-f5a1607a.js} +5 -5
  63. package/es/{el-form-item-cb328886.js → el-form-item-bdcfd297.js} +36 -36
  64. package/es/{el-form-item-4076e55f.cjs → el-form-item-c997b4fa.cjs} +1 -1
  65. package/es/{el-input-0f6ead19.js → el-input-d47281da.js} +91 -91
  66. package/es/el-input-fa18ef84.cjs +1 -0
  67. package/es/el-input-number-3d94fa58.cjs +1 -0
  68. package/es/{el-input-number-66e68609.js → el-input-number-c8018cb1.js} +28 -28
  69. package/es/{el-loading-412370c7.js → el-loading-0cd81d05.js} +5 -5
  70. package/es/{el-loading-05826e64.cjs → el-loading-969a79ca.cjs} +1 -1
  71. package/es/el-menu-item-26071fd6.cjs +1 -0
  72. package/es/{el-menu-item-0ee8ad18.js → el-menu-item-dac65bb3.js} +31 -30
  73. package/es/el-message-0ea8fbf8.cjs +1 -0
  74. package/es/el-message-4ed993c7.js +1 -0
  75. package/es/el-message-box-31e0aa98.cjs +1 -0
  76. package/es/{el-message-box-6db52b29.js → el-message-box-fea4fca8.js} +11 -11
  77. package/es/{el-overlay-981f8d49.js → el-overlay-1ee0338d.js} +63 -63
  78. package/es/el-overlay-ea65cb05.cjs +1 -0
  79. package/es/{el-popconfirm-005013fa.js → el-popconfirm-089b8bec.js} +17 -16
  80. package/es/el-popconfirm-9e232436.cjs +1 -0
  81. package/es/el-popper-2d3914e4.cjs +1 -0
  82. package/es/el-popper-c9b3d3cf.js +1662 -0
  83. package/es/el-segmented-140ac042.cjs +1 -0
  84. package/es/{el-segmented-050d0090.js → el-segmented-9d3a9e11.js} +8 -8
  85. package/es/el-select-a11f33e8.cjs +1 -0
  86. package/es/{el-select-23a1f302.js → el-select-e51e11c1.js} +92 -91
  87. package/es/{el-table-column-d0c374cf.js → el-table-column-05d292a8.js} +25 -24
  88. package/es/el-table-column-98570a4d.cjs +14 -0
  89. package/es/{el-tag-f13f463b.js → el-tag-17cd04a1.js} +14 -14
  90. package/es/el-tag-6d8e653e.cjs +1 -0
  91. package/es/{el-text-27cef2be.js → el-text-2710fff3.js} +2 -2
  92. package/es/{el-text-1470de46.cjs → el-text-a18106cb.cjs} +1 -1
  93. package/es/{index-09bd2621.js → index-0ee486ad.js} +43 -43
  94. package/es/index-0f79095c.js +440 -0
  95. package/es/{index-e0901394.js → index-1d9b50de.js} +34 -34
  96. package/es/index-28e03bad.cjs +1 -0
  97. package/es/{index-269b22da.cjs → index-299ee017.cjs} +1 -1
  98. package/es/{index-cebc7160.cjs → index-33f80550.cjs} +1 -1
  99. package/es/{index-4f48940d.cjs → index-37b8d3c6.cjs} +1 -1
  100. package/es/{index-2375023e.cjs → index-5befc414.cjs} +4 -4
  101. package/es/{index-696b6a94.cjs → index-6b99def3.cjs} +1 -1
  102. package/es/index-6ca95c8a.cjs +1 -0
  103. package/es/index-7dce9f59.cjs +1 -0
  104. package/es/{index-269b8a8c.js → index-8391a3df.js} +37 -37
  105. package/es/{index-c266c23a.js → index-8f9d0d17.js} +16 -15
  106. package/es/{index-15b9603e.js → index-95e5d454.js} +3 -3
  107. package/es/{index-b937ea22.js → index-b0117ba2.js} +2 -2
  108. package/es/{index-80a7ad32.js → index-bcd895a0.js} +17 -17
  109. package/es/{index-ec7ad93f.js → index-c2b9bbfd.js} +95 -65
  110. package/es/{index-4a3f30c5.js → index-c71e37dc.js} +11 -11
  111. package/es/{index-93a8960e.js → index-de24705f.js} +1 -1
  112. package/es/index-e8eeea22.cjs +1 -0
  113. package/es/{index-ee977f79.cjs → index-eb99b188.cjs} +1 -1
  114. package/es/{el-message-e6c755df.js → index-f30561d3.js} +33 -33
  115. package/es/{python-c67c8901.cjs → python-27ece6fa.cjs} +2 -2
  116. package/es/{python-823b276b.js → python-656db04f.js} +30 -28
  117. package/es/raf-744cf95a.js +6 -0
  118. package/es/{scroll-41b4f625.js → scroll-6799bafc.js} +5 -5
  119. package/es/style.css +1 -1
  120. package/es/{use-form-common-props-631cacae.js → use-form-common-props-cb0ca65c.js} +72 -72
  121. package/es/{use-form-common-props-344056f9.cjs → use-form-common-props-d3ed62c6.cjs} +1 -1
  122. package/es/{use-global-config-cf78ebac.cjs → use-global-config-c80f33a4.cjs} +1 -1
  123. package/es/{use-global-config-5d001623.js → use-global-config-cdaeca54.js} +14 -14
  124. package/es/{validator-3cad04b2.cjs → validator-07160325.cjs} +1 -1
  125. package/es/{validator-4160d9e7.js → validator-4ab9774f.js} +1 -1
  126. package/es/{vnode-06571d5b.js → vnode-a83e6de8.js} +1 -1
  127. package/es/{zh-cn-aabfaa94.cjs → zh-cn-6a0f844c.cjs} +1 -1
  128. package/es/{zh-cn-5df98ac2.js → zh-cn-8a6390a4.js} +2 -2
  129. package/lib/aiTools.js +36 -0
  130. package/lib/bundle.js +1 -1
  131. package/lib/bundle.umd.cjs +157 -154
  132. package/lib/{index-f00d1e1f.js → index-b51777a3.js} +16211 -15934
  133. package/lib/{python-0f34e2e6.js → python-ac4949ec.js} +1 -1
  134. package/lib/style.css +1 -1
  135. package/package.json +1 -1
  136. package/packages/VarietyAiHelper/index.ts +8 -0
  137. package/packages/VarietyAiHelper/index.vue +438 -0
  138. package/packages/index.ts +2 -0
  139. package/public/aiTools.js +36 -0
  140. package/src/App.vue +24 -14
  141. package/src/pages/VarietyAiHelper/index.vue +20 -0
  142. package/src/pages/VarietySearch/index.vue +76 -51
  143. package/src/router/routes.ts +5 -0
  144. package/es/dropdown-89b74bc9.cjs +0 -1
  145. package/es/el-autocomplete-b9a3054a.cjs +0 -1
  146. package/es/el-checkbox-b982e2ef.cjs +0 -1
  147. package/es/el-dialog-ad7309e9.cjs +0 -1
  148. package/es/el-input-172c49f8.cjs +0 -1
  149. package/es/el-input-number-c2e71528.cjs +0 -1
  150. package/es/el-menu-item-7f986598.cjs +0 -1
  151. package/es/el-message-a86c0efa.cjs +0 -1
  152. package/es/el-message-box-40ff2af5.cjs +0 -1
  153. package/es/el-overlay-d7a6e4a9.cjs +0 -1
  154. package/es/el-popconfirm-737a015b.cjs +0 -1
  155. package/es/el-popper-7ba87e05.cjs +0 -1
  156. package/es/el-popper-fdc7c793.js +0 -2094
  157. package/es/el-segmented-3fd66a0e.cjs +0 -1
  158. package/es/el-select-12f6deb7.cjs +0 -1
  159. package/es/el-table-column-516a0ed9.cjs +0 -14
  160. package/es/el-tag-789f05d3.cjs +0 -1
  161. package/es/index-8de94a49.cjs +0 -1
  162. package/es/index-c04f444f.cjs +0 -1
  163. package/es/raf-8e05a7f4.js +0 -6
@@ -1,6 +1,6 @@
1
1
  import { ref as B, reactive as P, defineComponent as O, h as m, 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-5d001623.js";
3
- import { r as C, a as M, e as S, k as b, l as A, h as $, m as Y } from "./base-ff0e366f.js";
2
+ import { u as K } from "./use-global-config-cdaeca54.js";
3
+ import { r as C, s as M, c as S, t as b, a as k, f as $, v as Y } from "./base-29f73b05.js";
4
4
  function Z(e, t) {
5
5
  let n;
6
6
  const s = B(!1), o = P({
@@ -42,10 +42,10 @@ function Z(e, t) {
42
42
  ns: i,
43
43
  zIndex: T
44
44
  }), () => {
45
- const k = o.spinner || o.svg, V = m("svg", {
45
+ const A = o.spinner || o.svg, V = m("svg", {
46
46
  class: "circular",
47
47
  viewBox: o.svgViewBox ? o.svgViewBox : "0 0 50 50",
48
- ...k ? { innerHTML: k } : {}
48
+ ...A ? { innerHTML: A } : {}
49
49
  }, [
50
50
  m("circle", {
51
51
  class: "path",
@@ -146,7 +146,7 @@ const L = function(e = {}) {
146
146
  n.$el.style[r] = c;
147
147
  }, h = (e, t, n) => {
148
148
  const s = n.vm.ns || n.vm._.exposed.ns;
149
- ["absolute", "fixed", "sticky"].includes(n.originalPosition.value) ? C(t, s.bm("parent", "relative")) : A(t, s.bm("parent", "relative")), e.fullscreen && e.lock ? A(t, s.bm("parent", "hidden")) : C(t, s.bm("parent", "hidden"));
149
+ ["absolute", "fixed", "sticky"].includes(n.originalPosition.value) ? C(t, s.bm("parent", "relative")) : k(t, s.bm("parent", "relative")), e.fullscreen && e.lock ? k(t, s.bm("parent", "hidden")) : C(t, s.bm("parent", "hidden"));
150
150
  };
151
151
  L._context = null;
152
152
  const x = Symbol("ElLoading"), f = (e) => `element-loading-${Y(e)}`, w = (e, t) => {
@@ -1 +1 @@
1
- "use strict";const a=require("vue"),I=require("./use-global-config-cf78ebac.cjs"),i=require("./base-ef747d02.cjs");function T(e,t){let n;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 u=o.getAttribute("loading-number");u=Number.parseInt(u)-1,u?o.setAttribute("loading-number",u.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(n),n=setTimeout(c,400),l.visible=!1,(o=e.closed)==null||o.call(e))}function c(){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:u,zIndex:w}=I.useGlobalComponentSettings("loading");return v({ns:u,zIndex:w}),()=>{const h=l.spinner||l.svg,S=a.h("svg",{class:"circular",viewBox:l.svgViewBox?l.svgViewBox:"0 0 50 50",...h?{innerHTML:h}:{}},[a.h("circle",{class:"path",cx:"25",cy:"25",r:"20",fill:"none"})]),B=l.text?a.h("p",{class:u.b("text")},[l.text]):void 0;return a.h(a.Transition,{name:u.b("fade"),onAfterLeave:c},{default:a.withCtx(()=>[a.withDirectives(a.createVNode("div",{style:{backgroundColor:l.background||""},class:[u.b("mask"),l.customClass,l.fullscreen?"is-fullscreen":""]},[a.h("div",{class:u.b("spinner")},[S,B])]),[[a.vShow,l.visible]])])})}}}),b=a.createApp(p);Object.assign(b._context,t??{});const f=b.mount(document.createElement("div"));return{...a.toRefs(l),setText:r,removeElLoadingChild:g,close:C,handleAfterLeave:c,vm:f,get $el(){return f.$el}}}let y;const _=function(e={}){if(!i.isClient)return;const t=$(e);if(t.fullscreen&&y)return y;const n=T({...t,closed:()=>{var l;(l=t.closed)==null||l.call(t),t.fullscreen&&(y=void 0)}},_._context);N(t,t.parent,n),k(t,t.parent,n),t.parent.vLoadingAddClassList=()=>k(t,t.parent,n);let s=t.parent.getAttribute("loading-number");return s?s=`${Number.parseInt(s)+1}`:s="1",t.parent.setAttribute("loading-number",s),t.parent.appendChild(n.$el),a.nextTick(()=>n.visible.value=t.visible),t.fullscreen&&(y=n),n},$=e=>{var t,n,s,l;let r;return i.isString(e.target)?r=(t=document.querySelector(e.target))!=null?t: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&&((n=e.fullscreen)!=null?n:!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}},N=async(e,t,n)=>{const{nextZIndex:s}=n.vm.zIndex||n.vm._.exposed.zIndex,l={};if(e.fullscreen)n.originalPosition.value=i.getStyle(document.body,"position"),n.originalOverflow.value=i.getStyle(document.body,"overflow"),l.zIndex=s();else if(e.parent===document.body){n.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 n.originalPosition.value=i.getStyle(t,"position");for(const[r,d]of Object.entries(l))n.$el.style[r]=d},k=(e,t,n)=>{const s=n.vm.ns||n.vm._.exposed.ns;["absolute","fixed","sticky"].includes(n.originalPosition.value)?i.removeClass(t,s.bm("parent","relative")):i.addClass(t,s.bm("parent","relative")),e.fullscreen&&e.lock?i.addClass(t,s.bm("parent","hidden")):i.removeClass(t,s.bm("parent","hidden"))};_._context=null;const x=Symbol("ElLoading"),m=e=>`element-loading-${i.hyphenate(e)}`,A=(e,t)=>{var n,s,l,r;const d=t.instance,g=o=>i.isObject(t.value)?t.value[o]:void 0,C=o=>{const v=i.isString(o)&&(d==null?void 0:d[o])||o;return a.ref(v)},c=o=>C(g(o)||e.getAttribute(m(o))),p=(n=g("fullscreen"))!=null?n:t.modifiers.fullscreen,b={text:c("text"),svg:c("svg"),svgViewBox:c("svgViewBox"),spinner:c("spinner"),background:c("background"),customClass:c("customClass"),fullscreen:p,target:(s=g("target"))!=null?s:p?void 0:e,body:(l=g("body"))!=null?l:t.modifiers.body,lock:(r=g("lock"))!=null?r:t.modifiers.lock},f=_(b);f._context=L._context,e[x]={options:b,instance:f}},V=(e,t)=>{for(const n of Object.keys(e))a.isRef(e[n])&&(e[n].value=t[n])},L={mounted(e,t){t.value&&A(e,t)},updated(e,t){const n=e[x];if(!t.value){n==null||n.instance.close(),e[x]=null;return}n?V(n.options,i.isObject(t.value)?t.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,t)},unmounted(e){var t;(t=e[x])==null||t.instance.close(),e[x]=null}};L._context=null;exports.vLoading=L;
1
+ "use strict";const a=require("vue"),I=require("./use-global-config-c80f33a4.cjs"),i=require("./base-ef747d02.cjs");function T(e,t){let n;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 u=o.getAttribute("loading-number");u=Number.parseInt(u)-1,u?o.setAttribute("loading-number",u.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(n),n=setTimeout(c,400),l.visible=!1,(o=e.closed)==null||o.call(e))}function c(){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:u,zIndex:w}=I.useGlobalComponentSettings("loading");return v({ns:u,zIndex:w}),()=>{const h=l.spinner||l.svg,S=a.h("svg",{class:"circular",viewBox:l.svgViewBox?l.svgViewBox:"0 0 50 50",...h?{innerHTML:h}:{}},[a.h("circle",{class:"path",cx:"25",cy:"25",r:"20",fill:"none"})]),B=l.text?a.h("p",{class:u.b("text")},[l.text]):void 0;return a.h(a.Transition,{name:u.b("fade"),onAfterLeave:c},{default:a.withCtx(()=>[a.withDirectives(a.createVNode("div",{style:{backgroundColor:l.background||""},class:[u.b("mask"),l.customClass,l.fullscreen?"is-fullscreen":""]},[a.h("div",{class:u.b("spinner")},[S,B])]),[[a.vShow,l.visible]])])})}}}),b=a.createApp(p);Object.assign(b._context,t??{});const f=b.mount(document.createElement("div"));return{...a.toRefs(l),setText:r,removeElLoadingChild:g,close:C,handleAfterLeave:c,vm:f,get $el(){return f.$el}}}let y;const _=function(e={}){if(!i.isClient)return;const t=$(e);if(t.fullscreen&&y)return y;const n=T({...t,closed:()=>{var l;(l=t.closed)==null||l.call(t),t.fullscreen&&(y=void 0)}},_._context);N(t,t.parent,n),k(t,t.parent,n),t.parent.vLoadingAddClassList=()=>k(t,t.parent,n);let s=t.parent.getAttribute("loading-number");return s?s=`${Number.parseInt(s)+1}`:s="1",t.parent.setAttribute("loading-number",s),t.parent.appendChild(n.$el),a.nextTick(()=>n.visible.value=t.visible),t.fullscreen&&(y=n),n},$=e=>{var t,n,s,l;let r;return i.isString(e.target)?r=(t=document.querySelector(e.target))!=null?t: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&&((n=e.fullscreen)!=null?n:!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}},N=async(e,t,n)=>{const{nextZIndex:s}=n.vm.zIndex||n.vm._.exposed.zIndex,l={};if(e.fullscreen)n.originalPosition.value=i.getStyle(document.body,"position"),n.originalOverflow.value=i.getStyle(document.body,"overflow"),l.zIndex=s();else if(e.parent===document.body){n.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 n.originalPosition.value=i.getStyle(t,"position");for(const[r,d]of Object.entries(l))n.$el.style[r]=d},k=(e,t,n)=>{const s=n.vm.ns||n.vm._.exposed.ns;["absolute","fixed","sticky"].includes(n.originalPosition.value)?i.removeClass(t,s.bm("parent","relative")):i.addClass(t,s.bm("parent","relative")),e.fullscreen&&e.lock?i.addClass(t,s.bm("parent","hidden")):i.removeClass(t,s.bm("parent","hidden"))};_._context=null;const x=Symbol("ElLoading"),m=e=>`element-loading-${i.hyphenate(e)}`,A=(e,t)=>{var n,s,l,r;const d=t.instance,g=o=>i.isObject(t.value)?t.value[o]:void 0,C=o=>{const v=i.isString(o)&&(d==null?void 0:d[o])||o;return a.ref(v)},c=o=>C(g(o)||e.getAttribute(m(o))),p=(n=g("fullscreen"))!=null?n:t.modifiers.fullscreen,b={text:c("text"),svg:c("svg"),svgViewBox:c("svgViewBox"),spinner:c("spinner"),background:c("background"),customClass:c("customClass"),fullscreen:p,target:(s=g("target"))!=null?s:p?void 0:e,body:(l=g("body"))!=null?l:t.modifiers.body,lock:(r=g("lock"))!=null?r:t.modifiers.lock},f=_(b);f._context=L._context,e[x]={options:b,instance:f}},V=(e,t)=>{for(const n of Object.keys(e))a.isRef(e[n])&&(e[n].value=t[n])},L={mounted(e,t){t.value&&A(e,t)},updated(e,t){const n=e[x];if(!t.value){n==null||n.instance.close(),e[x]=null;return}n?V(n.options,i.isObject(t.value)?t.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,t)},unmounted(e){var t;(t=e[x])==null||t.instance.close(),e[x]=null}};L._context=null;exports.vLoading=L;
@@ -0,0 +1 @@
1
+ "use strict";const e=require("vue"),P=require("./use-form-common-props-d3ed62c6.cjs"),H=require("./index-33f80550.cjs"),f=require("./index-28e03bad.cjs"),a=require("./base-ef747d02.cjs"),ee=require("./el-popper-2d3914e4.cjs"),ae=require("./index-eea0bcb3.cjs"),ue=require("./el-tag-6d8e653e.cjs"),re=require("./typescript-b63f8e83.cjs"),ie=require("./vnode-b906ae6d.cjs"),ce=e.defineComponent({name:"ElCollapseTransition"}),de=e.defineComponent({...ce,setup(n){const o=a.useNamespace("collapse-transition"),i=t=>{t.style.maxHeight="",t.style.overflow=t.dataset.oldOverflow,t.style.paddingTop=t.dataset.oldPaddingTop,t.style.paddingBottom=t.dataset.oldPaddingBottom},s={beforeEnter(t){t.dataset||(t.dataset={}),t.dataset.oldPaddingTop=t.style.paddingTop,t.dataset.oldPaddingBottom=t.style.paddingBottom,t.style.height&&(t.dataset.elExistsHeight=t.style.height),t.style.maxHeight=0,t.style.paddingTop=0,t.style.paddingBottom=0},enter(t){requestAnimationFrame(()=>{t.dataset.oldOverflow=t.style.overflow,t.dataset.elExistsHeight?t.style.maxHeight=t.dataset.elExistsHeight:t.scrollHeight!==0?t.style.maxHeight=`${t.scrollHeight}px`:t.style.maxHeight=0,t.style.paddingTop=t.dataset.oldPaddingTop,t.style.paddingBottom=t.dataset.oldPaddingBottom,t.style.overflow="hidden"})},afterEnter(t){t.style.maxHeight="",t.style.overflow=t.dataset.oldOverflow},enterCancelled(t){i(t)},beforeLeave(t){t.dataset||(t.dataset={}),t.dataset.oldPaddingTop=t.style.paddingTop,t.dataset.oldPaddingBottom=t.style.paddingBottom,t.dataset.oldOverflow=t.style.overflow,t.style.maxHeight=`${t.scrollHeight}px`,t.style.overflow="hidden"},leave(t){t.scrollHeight!==0&&(t.style.maxHeight=0,t.style.paddingTop=0,t.style.paddingBottom=0)},afterLeave(t){i(t)},leaveCancelled(t){i(t)}};return(t,b)=>(e.openBlock(),e.createBlock(e.Transition,e.mergeProps({name:e.unref(o).b()},e.toHandlers(s)),{default:e.withCtx(()=>[e.renderSlot(t.$slots,"default")]),_:3},16,["name"]))}});var pe=a._export_sfc(de,[["__file","collapse-transition.vue"]]);const me=a.withInstall(pe);let fe=class{constructor(o,i){this.parent=o,this.domNode=i,this.subIndex=0,this.subIndex=0,this.init()}init(){this.subMenuItems=this.domNode.querySelectorAll("li"),this.addListeners()}gotoSubIndex(o){o===this.subMenuItems.length?o=0:o<0&&(o=this.subMenuItems.length-1),this.subMenuItems[o].focus(),this.subIndex=o}addListeners(){const o=this.parent.domNode;Array.prototype.forEach.call(this.subMenuItems,i=>{i.addEventListener("keydown",s=>{let t=!1;switch(s.code){case f.EVENT_CODE.down:{this.gotoSubIndex(this.subIndex+1),t=!0;break}case f.EVENT_CODE.up:{this.gotoSubIndex(this.subIndex-1),t=!0;break}case f.EVENT_CODE.tab:{f.triggerEvent(o,"mouseleave");break}case f.EVENT_CODE.enter:case f.EVENT_CODE.numpadEnter:case f.EVENT_CODE.space:{t=!0,s.currentTarget.click();break}}return t&&(s.preventDefault(),s.stopPropagation()),!1})})}},ve=class{constructor(o,i){this.domNode=o,this.submenu=null,this.submenu=null,this.init(i)}init(o){this.domNode.setAttribute("tabindex","0");const i=this.domNode.querySelector(`.${o}-menu`);i&&(this.submenu=new fe(this,i)),this.addListeners()}addListeners(){this.domNode.addEventListener("keydown",o=>{let i=!1;switch(o.code){case f.EVENT_CODE.down:{f.triggerEvent(o.currentTarget,"mouseenter"),this.submenu&&this.submenu.gotoSubIndex(0),i=!0;break}case f.EVENT_CODE.up:{f.triggerEvent(o.currentTarget,"mouseenter"),this.submenu&&this.submenu.gotoSubIndex(this.submenu.subMenuItems.length-1),i=!0;break}case f.EVENT_CODE.tab:{f.triggerEvent(o.currentTarget,"mouseleave");break}case f.EVENT_CODE.enter:case f.EVENT_CODE.numpadEnter:case f.EVENT_CODE.space:{i=!0,o.currentTarget.click();break}}i&&o.preventDefault()})}},he=class{constructor(o,i){this.domNode=o,this.init(i)}init(o){const i=this.domNode.childNodes;Array.from(i).forEach(s=>{s.nodeType===1&&new ve(s,o)})}};const ge=e.defineComponent({name:"ElMenuCollapseTransition"}),be=e.defineComponent({...ge,setup(n){const o=a.useNamespace("menu"),i={onBeforeEnter:s=>s.style.opacity="0.2",onEnter(s,t){a.addClass(s,`${o.namespace.value}-opacity-transition`),s.style.opacity="1",t()},onAfterEnter(s){a.removeClass(s,`${o.namespace.value}-opacity-transition`),s.style.opacity=""},onBeforeLeave(s){s.dataset||(s.dataset={}),a.hasClass(s,o.m("collapse"))?(a.removeClass(s,o.m("collapse")),s.dataset.oldOverflow=s.style.overflow,s.dataset.scrollWidth=s.clientWidth.toString(),a.addClass(s,o.m("collapse"))):(a.addClass(s,o.m("collapse")),s.dataset.oldOverflow=s.style.overflow,s.dataset.scrollWidth=s.clientWidth.toString(),a.removeClass(s,o.m("collapse"))),s.style.width=`${s.scrollWidth}px`,s.style.overflow="hidden"},onLeave(s){a.addClass(s,"horizontal-collapse-transition"),s.style.width=`${s.dataset.scrollWidth}px`}};return(s,t)=>(e.openBlock(),e.createBlock(e.Transition,e.mergeProps({mode:"out-in"},e.unref(i)),{default:e.withCtx(()=>[e.renderSlot(s.$slots,"default")]),_:3},16))}});var Ee=a._export_sfc(be,[["__file","menu-collapse-transition.vue"]]);function te(n,o){const i=e.computed(()=>{let t=n.parent;const b=[o.value];for(;t.type.name!=="ElMenu";)t.props.index&&b.unshift(t.props.index),t=t.parent;return b});return{parentMenu:e.computed(()=>{let t=n.parent;for(;t&&!["ElMenu","ElSubMenu"].includes(t.type.name);)t=t.parent;return t}),indexPath:i}}function Me(n){return e.computed(()=>{const i=n.backgroundColor;return i?new ae.TinyColor(i).shade(20).toString():""})}const ne=(n,o)=>{const i=a.useNamespace("menu");return e.computed(()=>i.cssVarBlock({"text-color":n.textColor||"","hover-text-color":n.textColor||"","bg-color":n.backgroundColor||"","hover-bg-color":Me(n).value||"","active-color":n.activeTextColor||"",level:`${o}`}))},Q="rootMenu",U="subMenu:",ye=a.buildProps({index:{type:String,required:!0},showTimeout:Number,hideTimeout:Number,popperClass:String,disabled:Boolean,teleported:{type:Boolean,default:void 0},popperOffset:Number,expandCloseIcon:{type:P.iconPropType},expandOpenIcon:{type:P.iconPropType},collapseCloseIcon:{type:P.iconPropType},collapseOpenIcon:{type:P.iconPropType}}),K="ElSubMenu";var X=e.defineComponent({name:K,props:ye,setup(n,{slots:o,expose:i}){const s=e.getCurrentInstance(),{indexPath:t,parentMenu:b}=te(s,e.computed(()=>n.index)),h=a.useNamespace("menu"),y=a.useNamespace("sub-menu"),c=e.inject(Q);c||f.throwError(K,"can not inject root menu");const E=e.inject(`${U}${b.value.uid}`);E||f.throwError(K,"can not inject sub menu");const N=e.ref({}),C=e.ref({});let p;const x=e.ref(!1),M=e.ref(),_=e.ref(),B=e.computed(()=>E.level===0),q=e.computed(()=>k.value==="horizontal"&&B.value?"bottom-start":"right-start"),w=e.computed(()=>k.value==="horizontal"&&B.value||k.value==="vertical"&&!c.props.collapse?n.expandCloseIcon&&n.expandOpenIcon?T.value?n.expandOpenIcon:n.expandCloseIcon:H.arrow_down_default:n.collapseCloseIcon&&n.collapseOpenIcon?T.value?n.collapseOpenIcon:n.collapseCloseIcon:H.arrow_right_default),$=e.computed(()=>{const l=n.teleported;return a.isUndefined(l)?B.value:l}),L=e.computed(()=>c.props.collapse?`${h.namespace.value}-zoom-in-left`:`${h.namespace.value}-zoom-in-top`),G=e.computed(()=>k.value==="horizontal"&&B.value?["bottom-start","bottom-end","top-start","top-end","right-start","left-start"]:["right-start","right","right-end","left-start","bottom-start","bottom-end","top-start","top-end"]),T=e.computed(()=>c.openedMenus.includes(n.index)),z=e.computed(()=>[...Object.values(N.value),...Object.values(C.value)].some(({active:l})=>l)),k=e.computed(()=>c.props.mode),W=e.computed(()=>c.props.persistent),D=e.reactive({index:n.index,indexPath:t,active:z}),j=ne(c.props,E.level+1),F=e.computed(()=>{var l;return(l=n.popperOffset)!=null?l:c.props.popperOffset}),A=e.computed(()=>{var l;return(l=n.popperClass)!=null?l:c.props.popperClass}),V=e.computed(()=>{var l;return(l=n.showTimeout)!=null?l:c.props.showTimeout}),R=e.computed(()=>{var l;return(l=n.hideTimeout)!=null?l:c.props.hideTimeout}),J=()=>{var l,g,v;return(v=(g=(l=_.value)==null?void 0:l.popperRef)==null?void 0:g.popperInstanceRef)==null?void 0:v.destroy()},u=l=>{l||J()},r=()=>{c.props.menuTrigger==="hover"&&c.props.mode==="horizontal"||c.props.collapse&&c.props.mode==="vertical"||n.disabled||c.handleSubMenuClick({index:n.index,indexPath:t.value,active:z.value})},d=(l,g=V.value)=>{var v;if(l.type!=="focus"){if(c.props.menuTrigger==="click"&&c.props.mode==="horizontal"||!c.props.collapse&&c.props.mode==="vertical"||n.disabled){E.mouseInChild.value=!0;return}E.mouseInChild.value=!0,p==null||p(),{stop:p}=a.useTimeoutFn(()=>{c.openMenu(n.index,t.value)},g),$.value&&((v=b.value.vnode.el)==null||v.dispatchEvent(new MouseEvent("mouseenter"))),l.type==="mouseenter"&&l.target&&e.nextTick(()=>{f.focusElement(l.target,{preventScroll:!0})})}},m=(l=!1)=>{var g;if(c.props.menuTrigger==="click"&&c.props.mode==="horizontal"||!c.props.collapse&&c.props.mode==="vertical"){E.mouseInChild.value=!1;return}p==null||p(),E.mouseInChild.value=!1,{stop:p}=a.useTimeoutFn(()=>!x.value&&c.closeMenu(n.index,t.value),R.value),$.value&&l&&((g=E.handleMouseleave)==null||g.call(E,!0))};e.watch(()=>c.props.collapse,l=>u(!!l));{const l=v=>{C.value[v.index]=v},g=v=>{delete C.value[v.index]};e.provide(`${U}${s.uid}`,{addSubMenu:l,removeSubMenu:g,handleMouseleave:m,mouseInChild:x,level:E.level+1})}return i({opened:T}),e.onMounted(()=>{c.addSubMenu(D),E.addSubMenu(D)}),e.onBeforeUnmount(()=>{E.removeSubMenu(D),c.removeSubMenu(D)}),()=>{var l;const g=[(l=o.title)==null?void 0:l.call(o),e.h(H.ElIcon,{class:y.e("icon-arrow"),style:{transform:T.value?n.expandCloseIcon&&n.expandOpenIcon||n.collapseCloseIcon&&n.collapseOpenIcon&&c.props.collapse?"none":"rotateZ(180deg)":"none"}},{default:()=>a.isString(w.value)?e.h(s.appContext.components[w.value]):e.h(w.value)})],v=c.isMenuPopup?e.h(ee.ElTooltip,{ref:_,visible:T.value,effect:"light",pure:!0,offset:F.value,showArrow:!1,persistent:W.value,popperClass:A.value,placement:q.value,teleported:$.value,fallbackPlacements:G.value,transition:L.value,gpuAcceleration:!1},{content:()=>{var S;return e.h("div",{class:[h.m(k.value),h.m("popup-container"),A.value],onMouseenter:I=>d(I,100),onMouseleave:()=>m(!0),onFocus:I=>d(I,100)},[e.h("ul",{class:[h.b(),h.m("popup"),h.m(`popup-${q.value}`)],style:j.value},[(S=o.default)==null?void 0:S.call(o)])])},default:()=>e.h("div",{class:y.e("title"),onClick:r},g)}):e.h(e.Fragment,{},[e.h("div",{class:y.e("title"),ref:M,onClick:r},g),e.h(me,{},{default:()=>{var S;return e.withDirectives(e.h("ul",{role:"menu",class:[h.b(),h.m("inline")],style:j.value},[(S=o.default)==null?void 0:S.call(o)]),[[e.vShow,T.value]])}})]);return e.h("li",{class:[y.b(),y.is("active",z.value),y.is("opened",T.value),y.is("disabled",n.disabled)],role:"menuitem",ariaHaspopup:!0,ariaExpanded:T.value,onMouseenter:d,onMouseleave:()=>m(),onFocus:d},[v])}}});const Ce=a.buildProps({mode:{type:String,values:["horizontal","vertical"],default:"vertical"},defaultActive:{type:String,default:""},defaultOpeneds:{type:a.definePropType(Array),default:()=>re.mutable([])},uniqueOpened:Boolean,router:Boolean,menuTrigger:{type:String,values:["hover","click"],default:"hover"},collapse:Boolean,backgroundColor:String,textColor:String,activeTextColor:String,closeOnClickOutside:Boolean,collapseTransition:{type:Boolean,default:!0},ellipsis:{type:Boolean,default:!0},popperOffset:{type:Number,default:6},ellipsisIcon:{type:P.iconPropType,default:()=>H.more_default},popperEffect:{type:a.definePropType(String),default:"dark"},popperClass:String,showTimeout:{type:Number,default:300},hideTimeout:{type:Number,default:300},persistent:{type:Boolean,default:!0}}),Y=n=>a.isArray(n)&&n.every(o=>a.isString(o)),xe={close:(n,o)=>a.isString(n)&&Y(o),open:(n,o)=>a.isString(n)&&Y(o),select:(n,o,i,s)=>a.isString(n)&&Y(o)&&a.isObject(i)&&(a.isUndefined(s)||s instanceof Promise)};var Ie=e.defineComponent({name:"ElMenu",props:Ce,emits:xe,setup(n,{emit:o,slots:i,expose:s}){const t=e.getCurrentInstance(),b=t.appContext.config.globalProperties.$router,h=e.ref(),y=e.ref(),c=a.useNamespace("menu"),E=a.useNamespace("sub-menu");let N=64;const C=e.ref(-1),p=e.ref(n.defaultOpeneds&&!n.collapse?n.defaultOpeneds.slice(0):[]),x=e.ref(n.defaultActive),M=e.ref({}),_=e.ref({}),B=e.computed(()=>n.mode==="horizontal"||n.mode==="vertical"&&n.collapse),q=()=>{const u=x.value&&M.value[x.value];if(!u||n.mode==="horizontal"||n.collapse)return;u.indexPath.forEach(d=>{const m=_.value[d];m&&w(d,m.indexPath)})},w=(u,r)=>{p.value.includes(u)||(n.uniqueOpened&&(p.value=p.value.filter(d=>r.includes(d))),p.value.push(u),o("open",u,r))},$=u=>{const r=p.value.indexOf(u);r!==-1&&p.value.splice(r,1)},L=(u,r)=>{$(u),o("close",u,r)},G=({index:u,indexPath:r})=>{p.value.includes(u)?L(u,r):w(u,r)},T=u=>{(n.mode==="horizontal"||n.collapse)&&(p.value=[]);const{index:r,indexPath:d}=u;if(!(a.isNil(r)||a.isNil(d)))if(n.router&&b){const m=u.route||r,l=b.push(m).then(g=>(g||(x.value=r),g));o("select",r,d,{index:r,indexPath:d,route:m},l)}else x.value=r,o("select",r,d,{index:r,indexPath:d})},z=u=>{var r;const d=M.value,m=d[u]||x.value&&d[x.value]||d[n.defaultActive];x.value=(r=m==null?void 0:m.index)!=null?r:u},k=u=>{const r=getComputedStyle(u),d=Number.parseInt(r.marginLeft,10),m=Number.parseInt(r.marginRight,10);return u.offsetWidth+d+m||0},W=()=>{var u,r;if(!h.value)return-1;const d=Array.from((r=(u=h.value)==null?void 0:u.childNodes)!=null?r:[]).filter(O=>O.nodeName!=="#comment"&&(O.nodeName!=="#text"||O.nodeValue)),m=getComputedStyle(h.value),l=Number.parseInt(m.paddingLeft,10),g=Number.parseInt(m.paddingRight,10),v=h.value.clientWidth-l-g;let S=0,I=0;return d.forEach((O,le)=>{S+=k(O),S<=v-N&&(I=le+1)}),I===d.length?-1:I},D=u=>_.value[u].indexPath,j=(u,r=33.34)=>{let d;return()=>{d&&clearTimeout(d),d=setTimeout(()=>{u()},r)}};let F=!0;const A=()=>{const u=P.unrefElement(y);if(u&&(N=k(u)||64),C.value===W())return;const r=()=>{C.value=-1,e.nextTick(()=>{C.value=W()})};F?r():j(r)(),F=!1};e.watch(()=>n.defaultActive,u=>{M.value[u]||(x.value=""),z(u)}),e.watch(()=>n.collapse,u=>{u&&(p.value=[])}),e.watch(M.value,q);let V;e.watchEffect(()=>{n.mode==="horizontal"&&n.ellipsis?V=P.useResizeObserver(h,A).stop:V==null||V()});const R=e.ref(!1);{const u=l=>{_.value[l.index]=l},r=l=>{delete _.value[l.index]},d=l=>{M.value[l.index]=l},m=l=>{delete M.value[l.index]};e.provide(Q,e.reactive({props:n,openedMenus:p,items:M,subMenus:_,activeIndex:x,isMenuPopup:B,addMenuItem:d,removeMenuItem:m,addSubMenu:u,removeSubMenu:r,openMenu:w,closeMenu:L,handleMenuItemClick:T,handleSubMenuClick:G})),e.provide(`${U}${t.uid}`,{addSubMenu:u,removeSubMenu:r,mouseInChild:R,level:0})}e.onMounted(()=>{n.mode==="horizontal"&&new he(t.vnode.el,c.namespace.value)}),s({open:r=>{const{indexPath:d}=_.value[r];d.forEach(m=>w(m,d))},close:$,updateActiveIndex:z,handleResize:A});const J=ne(n,0);return()=>{var u,r;let d=(r=(u=i.default)==null?void 0:u.call(i))!=null?r:[];const m=[];if(n.mode==="horizontal"&&h.value){const v=ie.flattedChildren(d).filter(O=>(O==null?void 0:O.shapeFlag)!==8),S=C.value===-1?v:v.slice(0,C.value),I=C.value===-1?[]:v.slice(C.value);I!=null&&I.length&&n.ellipsis&&(d=S,m.push(e.h(X,{ref:y,index:"sub-menu-more",class:E.e("hide-arrow"),popperOffset:n.popperOffset},{title:()=>e.h(H.ElIcon,{class:E.e("icon-more")},{default:()=>e.h(n.ellipsisIcon)}),default:()=>I})))}const l=n.closeOnClickOutside?[[ue.ClickOutside,()=>{p.value.length&&(R.value||(p.value.forEach(v=>o("close",v,D(v))),p.value=[]))}]]:[],g=e.withDirectives(e.h("ul",{key:String(n.collapse),role:"menubar",ref:h,style:J.value,class:{[c.b()]:!0,[c.m(n.mode)]:!0,[c.m("collapse")]:n.collapse}},[...d,...m]),l);return n.collapseTransition&&n.mode==="vertical"?e.h(Ee,()=>g):g}}});const _e=a.buildProps({index:{type:a.definePropType([String,null]),default:null},route:{type:a.definePropType([String,Object])},disabled:Boolean}),Te={click:n=>a.isString(n.index)&&a.isArray(n.indexPath)},Z="ElMenuItem",Se=e.defineComponent({name:Z}),Ne=e.defineComponent({...Se,props:_e,emits:Te,setup(n,{expose:o,emit:i}){const s=n;a.isPropAbsent(s.index)&&f.debugWarn();const t=e.getCurrentInstance(),b=e.inject(Q),h=a.useNamespace("menu"),y=a.useNamespace("menu-item");b||f.throwError(Z,"can not inject root menu");const{parentMenu:c,indexPath:E}=te(t,e.toRef(s,"index")),N=e.inject(`${U}${c.value.uid}`);N||f.throwError(Z,"can not inject sub menu");const C=e.computed(()=>s.index===b.activeIndex),p=e.reactive({index:s.index,indexPath:E,active:C}),x=()=>{s.disabled||(b.handleMenuItemClick({index:s.index,indexPath:E.value,route:s.route}),i("click",p))};return e.onMounted(()=>{N.addSubMenu(p),b.addMenuItem(p)}),e.onBeforeUnmount(()=>{N.removeSubMenu(p),b.removeMenuItem(p)}),o({parentMenu:c,rootMenu:b,active:C,nsMenu:h,nsMenuItem:y,handleClick:x}),(M,_)=>(e.openBlock(),e.createElementBlock("li",{class:e.normalizeClass([e.unref(y).b(),e.unref(y).is("active",e.unref(C)),e.unref(y).is("disabled",M.disabled)]),role:"menuitem",tabindex:"-1",onClick:x},[e.unref(c).type.name==="ElMenu"&&e.unref(b).props.collapse&&M.$slots.title?(e.openBlock(),e.createBlock(e.unref(ee.ElTooltip),{key:0,effect:e.unref(b).props.popperEffect,placement:"right","fallback-placements":["left"],persistent:e.unref(b).props.persistent,"focus-on-target":""},{content:e.withCtx(()=>[e.renderSlot(M.$slots,"title")]),default:e.withCtx(()=>[e.createElementVNode("div",{class:e.normalizeClass(e.unref(h).be("tooltip","trigger"))},[e.renderSlot(M.$slots,"default")],2)]),_:3},8,["effect","persistent"])):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[e.renderSlot(M.$slots,"default"),e.renderSlot(M.$slots,"title")],64))],2))}});var oe=a._export_sfc(Ne,[["__file","menu-item.vue"]]);const we={title:String},ke=e.defineComponent({name:"ElMenuItemGroup"}),Oe=e.defineComponent({...ke,props:we,setup(n){const o=a.useNamespace("menu-item-group");return(i,s)=>(e.openBlock(),e.createElementBlock("li",{class:e.normalizeClass(e.unref(o).b())},[e.createElementVNode("div",{class:e.normalizeClass(e.unref(o).e("title"))},[i.$slots.title?e.renderSlot(i.$slots,"title",{key:1}):(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[e.createTextVNode(e.toDisplayString(i.title),1)],64))],2),e.createElementVNode("ul",null,[e.renderSlot(i.$slots,"default")])],2))}});var se=a._export_sfc(Oe,[["__file","menu-item-group.vue"]]);const Pe=a.withInstall(Ie,{MenuItem:oe,MenuItemGroup:se,SubMenu:X}),Be=a.withNoopInstall(oe);a.withNoopInstall(se);a.withNoopInstall(X);exports.ElMenu=Pe;exports.ElMenuItem=Be;
@@ -1,12 +1,13 @@
1
1
  import { defineComponent as N, openBlock as H, createBlock as be, Transition as we, mergeProps as ke, unref as C, toHandlers as Fe, withCtx as te, renderSlot as A, computed as m, getCurrentInstance as ge, inject as ne, ref as _, reactive as Me, watch as X, provide as ve, onMounted as ye, onBeforeUnmount as Oe, h as g, Fragment as Ie, withDirectives as Ne, vShow as qe, nextTick as Pe, watchEffect as Ve, toRef as Ue, createElementBlock as oe, normalizeClass as se, createElementVNode as fe, createTextVNode as Ge, toDisplayString as Je } from "vue";
2
- import { i as V, h as Ke, r as Ye } from "./use-form-common-props-631cacae.js";
3
- import { b as Ze, r as Qe, E as $e, t as Xe } from "./index-ec7ad93f.js";
4
- import { e as E, k as ee, t as ae, E as Be, l as et, d as tt } from "./el-popper-fdc7c793.js";
5
- import { u as O, _ as ie, w as ze, l as Q, r as de, y as nt, b as xe, o as Ae, e as j, z as Te, d as le, h as ot, v as Se, i as He, E as st, A as Ce } from "./base-ff0e366f.js";
2
+ import { i as V, u as Ke, a as Ye } from "./use-form-common-props-cb0ca65c.js";
3
+ import { f as Ze, g as Qe, E as $e, m as Xe } from "./index-c2b9bbfd.js";
4
+ import { E, t as ee, a as ae, f as et, d as tt } from "./index-0f79095c.js";
5
+ import { u as O, _ as ie, w as Be, a as Q, r as de, h as nt, b as xe, i as ze, c as D, d as Te, e as le, f as ot, g as Se, j as Ae, k as st, l as Ce } from "./base-29f73b05.js";
6
+ import { E as He } from "./el-popper-c9b3d3cf.js";
6
7
  import { T as at } from "./index-657047bb.js";
7
- import { C as lt } from "./el-tag-f13f463b.js";
8
+ import { C as lt } from "./el-tag-17cd04a1.js";
8
9
  import { m as ut } from "./typescript-7ae59c4c.js";
9
- import { f as it } from "./vnode-06571d5b.js";
10
+ import { f as it } from "./vnode-a83e6de8.js";
10
11
  const rt = N({
11
12
  name: "ElCollapseTransition"
12
13
  }), ct = /* @__PURE__ */ N({
@@ -53,7 +54,7 @@ const rt = N({
53
54
  }
54
55
  });
55
56
  var dt = /* @__PURE__ */ ie(ct, [["__file", "collapse-transition.vue"]]);
56
- const pt = ze(dt);
57
+ const pt = Be(dt);
57
58
  let mt = class {
58
59
  constructor(n, u) {
59
60
  this.parent = n, this.domNode = u, this.subIndex = 0, this.subIndex = 0, this.init();
@@ -241,7 +242,7 @@ var Ee = N({
241
242
  let c;
242
243
  const x = _(!1), M = _(), S = _(), L = m(() => b.level === 0), U = m(() => B.value === "horizontal" && L.value ? "bottom-start" : "right-start"), $ = m(() => B.value === "horizontal" && L.value || B.value === "vertical" && !i.props.collapse ? t.expandCloseIcon && t.expandOpenIcon ? w.value ? t.expandOpenIcon : t.expandCloseIcon : Ze : t.collapseCloseIcon && t.collapseOpenIcon ? w.value ? t.collapseOpenIcon : t.collapseCloseIcon : Qe), W = m(() => {
243
244
  const s = t.teleported;
244
- return Ae(s) ? L.value : s;
245
+ return ze(s) ? L.value : s;
245
246
  }), G = m(() => i.props.collapse ? `${v.namespace.value}-zoom-in-left` : `${v.namespace.value}-zoom-in-top`), re = m(() => B.value === "horizontal" && L.value ? [
246
247
  "bottom-start",
247
248
  "bottom-end",
@@ -258,7 +259,7 @@ var Ee = N({
258
259
  "bottom-end",
259
260
  "top-start",
260
261
  "top-end"
261
- ]), w = m(() => i.openedMenus.includes(t.index)), R = m(() => [...Object.values(P.value), ...Object.values(I.value)].some(({ active: s }) => s)), B = m(() => i.props.mode), J = m(() => i.props.persistent), D = Me({
262
+ ]), w = m(() => i.openedMenus.includes(t.index)), R = m(() => [...Object.values(P.value), ...Object.values(I.value)].some(({ active: s }) => s)), B = m(() => i.props.mode), J = m(() => i.props.persistent), j = Me({
262
263
  index: t.index,
263
264
  indexPath: e,
264
265
  active: R
@@ -324,9 +325,9 @@ var Ee = N({
324
325
  return u({
325
326
  opened: w
326
327
  }), ye(() => {
327
- i.addSubMenu(D), b.addSubMenu(D);
328
+ i.addSubMenu(j), b.addSubMenu(j);
328
329
  }), Oe(() => {
329
- b.removeSubMenu(D), i.removeSubMenu(D);
330
+ b.removeSubMenu(j), i.removeSubMenu(j);
330
331
  }), () => {
331
332
  var s;
332
333
  const f = [
@@ -337,9 +338,9 @@ var Ee = N({
337
338
  transform: w.value ? t.expandCloseIcon && t.expandOpenIcon || t.collapseCloseIcon && t.collapseOpenIcon && i.props.collapse ? "none" : "rotateZ(180deg)" : "none"
338
339
  }
339
340
  }, {
340
- default: () => j($.value) ? g(o.appContext.components[$.value]) : g($.value)
341
+ default: () => D($.value) ? g(o.appContext.components[$.value]) : g($.value)
341
342
  })
342
- ], p = i.isMenuPopup ? g(Be, {
343
+ ], p = i.isMenuPopup ? g(He, {
343
344
  ref: S,
344
345
  visible: w.value,
345
346
  effect: "light",
@@ -473,10 +474,10 @@ const It = xe({
473
474
  type: Boolean,
474
475
  default: !0
475
476
  }
476
- }), me = (t) => He(t) && t.every((n) => j(n)), xt = {
477
- close: (t, n) => j(t) && me(n),
478
- open: (t, n) => j(t) && me(n),
479
- select: (t, n, u, o) => j(t) && me(n) && ot(u) && (Ae(o) || o instanceof Promise)
477
+ }), me = (t) => Ae(t) && t.every((n) => D(n)), xt = {
478
+ close: (t, n) => D(t) && me(n),
479
+ open: (t, n) => D(t) && me(n),
480
+ select: (t, n, u, o) => D(t) && me(n) && ot(u) && (ze(o) || o instanceof Promise)
480
481
  };
481
482
  var Ct = N({
482
483
  name: "ElMenu",
@@ -527,10 +528,10 @@ var Ct = N({
527
528
  return -1;
528
529
  const r = Array.from((l = (a = v.value) == null ? void 0 : a.childNodes) != null ? l : []).filter((z) => z.nodeName !== "#comment" && (z.nodeName !== "#text" || z.nodeValue)), d = getComputedStyle(v.value), s = Number.parseInt(d.paddingLeft, 10), f = Number.parseInt(d.paddingRight, 10), p = v.value.clientWidth - s - f;
529
530
  let k = 0, T = 0;
530
- return r.forEach((z, je) => {
531
- k += B(z), k <= p - P && (T = je + 1);
531
+ return r.forEach((z, De) => {
532
+ k += B(z), k <= p - P && (T = De + 1);
532
533
  }), T === r.length ? -1 : T;
533
- }, D = (a) => S.value[a].indexPath, K = (a, l = 33.34) => {
534
+ }, j = (a) => S.value[a].indexPath, K = (a, l = 33.34) => {
534
535
  let r;
535
536
  return () => {
536
537
  r && clearTimeout(r), r = setTimeout(() => {
@@ -628,7 +629,7 @@ var Ct = N({
628
629
  [
629
630
  lt,
630
631
  () => {
631
- c.value.length && (Z.value || (c.value.forEach((p) => n("close", p, D(p))), c.value = []));
632
+ c.value.length && (Z.value || (c.value.forEach((p) => n("close", p, j(p))), c.value = []));
632
633
  }
633
634
  ]
634
635
  ] : [], f = Ne(g("ul", {
@@ -656,7 +657,7 @@ const _t = xe({
656
657
  },
657
658
  disabled: Boolean
658
659
  }), Et = {
659
- click: (t) => j(t.index) && He(t.indexPath)
660
+ click: (t) => D(t.index) && Ae(t.indexPath)
660
661
  }, he = "ElMenuItem", Tt = N({
661
662
  name: he
662
663
  }), St = /* @__PURE__ */ N({
@@ -702,7 +703,7 @@ const _t = xe({
702
703
  tabindex: "-1",
703
704
  onClick: x
704
705
  }, [
705
- C(i).type.name === "ElMenu" && C(h).props.collapse && M.$slots.title ? (H(), be(C(Be), {
706
+ C(i).type.name === "ElMenu" && C(h).props.collapse && M.$slots.title ? (H(), be(C(He), {
706
707
  key: 0,
707
708
  effect: C(h).props.popperEffect,
708
709
  placement: "right",
@@ -754,15 +755,15 @@ const wt = {
754
755
  ], 2));
755
756
  }
756
757
  });
757
- var De = /* @__PURE__ */ ie(Ot, [["__file", "menu-item-group.vue"]]);
758
- const Ft = ze(Ct, {
758
+ var je = /* @__PURE__ */ ie(Ot, [["__file", "menu-item-group.vue"]]);
759
+ const qt = Be(Ct, {
759
760
  MenuItem: Re,
760
- MenuItemGroup: De,
761
+ MenuItemGroup: je,
761
762
  SubMenu: Ee
762
- }), qt = Ce(Re);
763
- Ce(De);
763
+ }), Vt = Ce(Re);
764
+ Ce(je);
764
765
  Ce(Ee);
765
766
  export {
766
- qt as E,
767
- Ft as a
767
+ Vt as E,
768
+ qt as a
768
769
  };
@@ -0,0 +1 @@
1
+ "use strict";
@@ -0,0 +1 @@
1
+
@@ -0,0 +1 @@
1
+ "use strict";const n=require("vue"),Q=require("./el-button-974ff9e9.cjs"),Y=require("./el-input-fa18ef84.cjs"),V=require("./el-overlay-ea65cb05.cjs"),I=require("./index-33f80550.cjs"),M=require("./index-28e03bad.cjs"),c=require("./base-ef747d02.cjs"),T=require("./use-form-common-props-d3ed62c6.cjs"),x=require("./validator-07160325.cjs"),_=require("./use-global-config-c80f33a4.cjs"),L=require("./index-9780a537.cjs"),ee=require("./el-dialog-1b185570.cjs"),z="_trap-focus-children",C=[],q=e=>{if(C.length===0)return;const t=C[C.length-1][z];if(t.length>0&&e.code===M.EVENT_CODE.tab){if(t.length===1){e.preventDefault(),document.activeElement!==t[0]&&t[0].focus();return}const a=e.shiftKey,i=e.target===t[0],r=e.target===t[t.length-1];i&&a&&(e.preventDefault(),t[t.length-1].focus()),r&&!a&&(e.preventDefault(),t[0].focus())}},ne={beforeMount(e){e[z]=M.obtainAllFocusableElements(e),C.push(e),C.length<=1&&document.addEventListener("keydown",q)},updated(e){n.nextTick(()=>{e[z]=M.obtainAllFocusableElements(e)})},unmounted(){C.shift(),C.length===0&&document.removeEventListener("keydown",q)}},oe=n.defineComponent({name:"ElMessageBox",directives:{TrapFocus:ne},components:{ElButton:Q.ElButton,ElFocusTrap:M.ElFocusTrap,ElInput:Y.ElInput,ElOverlay:V.ElOverlay,ElIcon:I.ElIcon,...T.TypeComponents},inheritAttrs:!1,props:{buttonSize:{type:String,validator:x.isValidComponentSize},modal:{type:Boolean,default:!0},lockScroll:{type:Boolean,default:!0},showClose:{type:Boolean,default:!0},closeOnClickModal:{type:Boolean,default:!0},closeOnPressEscape:{type:Boolean,default:!0},closeOnHashChange:{type:Boolean,default:!0},center:Boolean,draggable:Boolean,overflow:Boolean,roundButton:Boolean,container:{type:String,default:"body"},boxType:{type:String,default:""}},emits:["vanish","action"],setup(e,{emit:t}){const{locale:a,zIndex:i,ns:r,size:l}=_.useGlobalComponentSettings("message-box",n.computed(()=>e.buttonSize)),{t:u}=a,{nextZIndex:p}=i,g=n.ref(!1),o=n.reactive({autofocus:!0,beforeClose:null,callback:null,cancelButtonText:"",cancelButtonClass:"",confirmButtonText:"",confirmButtonClass:"",customClass:"",customStyle:{},dangerouslyUseHTMLString:!1,distinguishCancelAndClose:!1,icon:"",closeIcon:"",inputPattern:null,inputPlaceholder:"",inputType:"text",inputValue:"",inputValidator:void 0,inputErrorMessage:"",message:"",modalFade:!0,modalClass:"",showCancelButton:!1,showConfirmButton:!0,type:"",title:void 0,showInput:!1,action:"",confirmButtonLoading:!1,cancelButtonLoading:!1,confirmButtonLoadingIcon:n.markRaw(I.loading_default),cancelButtonLoadingIcon:n.markRaw(I.loading_default),confirmButtonDisabled:!1,editorErrorMessage:"",validateError:!1,zIndex:p()}),S=n.computed(()=>{const s=o.type;return{[r.bm("icon",s)]:s&&T.TypeComponentsMap[s]}}),m=L.useId(),P=L.useId(),F=n.computed(()=>{const s=o.type;return o.icon||s&&T.TypeComponentsMap[s]||""}),K=n.computed(()=>!!o.message),h=n.ref(),N=n.ref(),b=n.ref(),w=n.ref(),A=n.ref(),U=n.computed(()=>o.confirmButtonClass);n.watch(()=>o.inputValue,async s=>{await n.nextTick(),e.boxType==="prompt"&&s&&O()},{immediate:!0}),n.watch(()=>g.value,s=>{var d,f;s&&(e.boxType!=="prompt"&&(o.autofocus?b.value=(f=(d=A.value)==null?void 0:d.$el)!=null?f:h.value:b.value=h.value),o.zIndex=p()),e.boxType==="prompt"&&(s?n.nextTick().then(()=>{var $;w.value&&w.value.$el&&(o.autofocus?b.value=($=Z())!=null?$:h.value:b.value=h.value)}):(o.editorErrorMessage="",o.validateError=!1))});const H=n.computed(()=>e.draggable),j=n.computed(()=>e.overflow),{isDragging:G}=ee.useDraggable(h,N,H,j);n.onMounted(async()=>{await n.nextTick(),e.closeOnHashChange&&window.addEventListener("hashchange",B)}),n.onBeforeUnmount(()=>{e.closeOnHashChange&&window.removeEventListener("hashchange",B)});function B(){g.value&&(g.value=!1,n.nextTick(()=>{o.action&&t("action",o.action)}))}const D=()=>{e.closeOnClickModal&&k(o.distinguishCancelAndClose?"close":"cancel")},X=V.useSameTarget(D),W=s=>{if(o.inputType!=="textarea")return s.preventDefault(),k("confirm")},k=s=>{var d;e.boxType==="prompt"&&s==="confirm"&&!O()||(o.action=s,o.beforeClose?(d=o.beforeClose)==null||d.call(o,s,o,B):B())},O=()=>{if(e.boxType==="prompt"){const s=o.inputPattern;if(s&&!s.test(o.inputValue||""))return o.editorErrorMessage=o.inputErrorMessage||u("el.messagebox.error"),o.validateError=!0,!1;const d=o.inputValidator;if(c.isFunction(d)){const f=d(o.inputValue);if(f===!1)return o.editorErrorMessage=o.inputErrorMessage||u("el.messagebox.error"),o.validateError=!0,!1;if(c.isString(f))return o.editorErrorMessage=f,o.validateError=!0,!1}}return o.editorErrorMessage="",o.validateError=!1,!0},Z=()=>{var s,d;const f=(s=w.value)==null?void 0:s.$refs;return(d=f==null?void 0:f.input)!=null?d:f==null?void 0:f.textarea},R=()=>{k("close")},J=()=>{e.closeOnPressEscape&&R()};return e.lockScroll&&V.useLockscreen(g),{...n.toRefs(o),ns:r,overlayEvent:X,visible:g,hasMessage:K,typeClass:S,contentId:m,inputId:P,btnSize:l,iconComponent:F,confirmButtonClasses:U,rootRef:h,focusStartRef:b,headerRef:N,inputRef:w,isDragging:G,confirmRef:A,doClose:B,handleClose:R,onCloseRequested:J,handleWrapperClick:D,handleInputEnter:W,handleAction:k,t:u}}});function te(e,t,a,i,r,l){const u=n.resolveComponent("el-icon"),p=n.resolveComponent("el-input"),g=n.resolveComponent("el-button"),o=n.resolveComponent("el-focus-trap"),S=n.resolveComponent("el-overlay");return n.openBlock(),n.createBlock(n.Transition,{name:"fade-in-linear",onAfterLeave:m=>e.$emit("vanish"),persisted:""},{default:n.withCtx(()=>[n.withDirectives(n.createVNode(S,{"z-index":e.zIndex,"overlay-class":[e.ns.is("message-box"),e.modalClass],mask:e.modal},{default:n.withCtx(()=>[n.createElementVNode("div",{role:"dialog","aria-label":e.title,"aria-modal":"true","aria-describedby":e.showInput?void 0:e.contentId,class:n.normalizeClass(`${e.ns.namespace.value}-overlay-message-box`),onClick:e.overlayEvent.onClick,onMousedown:e.overlayEvent.onMousedown,onMouseup:e.overlayEvent.onMouseup},[n.createVNode(o,{loop:"",trapped:e.visible,"focus-trap-el":e.rootRef,"focus-start-el":e.focusStartRef,onReleaseRequested:e.onCloseRequested},{default:n.withCtx(()=>[n.createElementVNode("div",{ref:"rootRef",class:n.normalizeClass([e.ns.b(),e.customClass,e.ns.is("draggable",e.draggable),e.ns.is("dragging",e.isDragging),{[e.ns.m("center")]:e.center}]),style:n.normalizeStyle(e.customStyle),tabindex:"-1",onClick:n.withModifiers(()=>{},["stop"])},[e.title!==null&&e.title!==void 0?(n.openBlock(),n.createElementBlock("div",{key:0,ref:"headerRef",class:n.normalizeClass([e.ns.e("header"),{"show-close":e.showClose}])},[n.createElementVNode("div",{class:n.normalizeClass(e.ns.e("title"))},[e.iconComponent&&e.center?(n.openBlock(),n.createBlock(u,{key:0,class:n.normalizeClass([e.ns.e("status"),e.typeClass])},{default:n.withCtx(()=>[(n.openBlock(),n.createBlock(n.resolveDynamicComponent(e.iconComponent)))]),_:1},8,["class"])):n.createCommentVNode("v-if",!0),n.createElementVNode("span",null,n.toDisplayString(e.title),1)],2),e.showClose?(n.openBlock(),n.createElementBlock("button",{key:0,type:"button",class:n.normalizeClass(e.ns.e("headerbtn")),"aria-label":e.t("el.messagebox.close"),onClick:m=>e.handleAction(e.distinguishCancelAndClose?"close":"cancel"),onKeydown:n.withKeys(n.withModifiers(m=>e.handleAction(e.distinguishCancelAndClose?"close":"cancel"),["prevent"]),["enter"])},[n.createVNode(u,{class:n.normalizeClass(e.ns.e("close"))},{default:n.withCtx(()=>[(n.openBlock(),n.createBlock(n.resolveDynamicComponent(e.closeIcon||"close")))]),_:1},8,["class"])],42,["aria-label","onClick","onKeydown"])):n.createCommentVNode("v-if",!0)],2)):n.createCommentVNode("v-if",!0),n.createElementVNode("div",{id:e.contentId,class:n.normalizeClass(e.ns.e("content"))},[n.createElementVNode("div",{class:n.normalizeClass(e.ns.e("container"))},[e.iconComponent&&!e.center&&e.hasMessage?(n.openBlock(),n.createBlock(u,{key:0,class:n.normalizeClass([e.ns.e("status"),e.typeClass])},{default:n.withCtx(()=>[(n.openBlock(),n.createBlock(n.resolveDynamicComponent(e.iconComponent)))]),_:1},8,["class"])):n.createCommentVNode("v-if",!0),e.hasMessage?(n.openBlock(),n.createElementBlock("div",{key:1,class:n.normalizeClass(e.ns.e("message"))},[n.renderSlot(e.$slots,"default",{},()=>[e.dangerouslyUseHTMLString?(n.openBlock(),n.createBlock(n.resolveDynamicComponent(e.showInput?"label":"p"),{key:1,for:e.showInput?e.inputId:void 0,innerHTML:e.message},null,8,["for","innerHTML"])):(n.openBlock(),n.createBlock(n.resolveDynamicComponent(e.showInput?"label":"p"),{key:0,for:e.showInput?e.inputId:void 0,textContent:n.toDisplayString(e.message)},null,8,["for","textContent"]))])],2)):n.createCommentVNode("v-if",!0)],2),n.withDirectives(n.createElementVNode("div",{class:n.normalizeClass(e.ns.e("input"))},[n.createVNode(p,{id:e.inputId,ref:"inputRef",modelValue:e.inputValue,"onUpdate:modelValue":m=>e.inputValue=m,type:e.inputType,placeholder:e.inputPlaceholder,"aria-invalid":e.validateError,class:n.normalizeClass({invalid:e.validateError}),onKeydown:n.withKeys(e.handleInputEnter,["enter"])},null,8,["id","modelValue","onUpdate:modelValue","type","placeholder","aria-invalid","class","onKeydown"]),n.createElementVNode("div",{class:n.normalizeClass(e.ns.e("errormsg")),style:n.normalizeStyle({visibility:e.editorErrorMessage?"visible":"hidden"})},n.toDisplayString(e.editorErrorMessage),7)],2),[[n.vShow,e.showInput]])],10,["id"]),n.createElementVNode("div",{class:n.normalizeClass(e.ns.e("btns"))},[e.showCancelButton?(n.openBlock(),n.createBlock(g,{key:0,loading:e.cancelButtonLoading,"loading-icon":e.cancelButtonLoadingIcon,class:n.normalizeClass([e.cancelButtonClass]),round:e.roundButton,size:e.btnSize,onClick:m=>e.handleAction("cancel"),onKeydown:n.withKeys(n.withModifiers(m=>e.handleAction("cancel"),["prevent"]),["enter"])},{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(e.cancelButtonText||e.t("el.messagebox.cancel")),1)]),_:1},8,["loading","loading-icon","class","round","size","onClick","onKeydown"])):n.createCommentVNode("v-if",!0),n.withDirectives(n.createVNode(g,{ref:"confirmRef",type:"primary",loading:e.confirmButtonLoading,"loading-icon":e.confirmButtonLoadingIcon,class:n.normalizeClass([e.confirmButtonClasses]),round:e.roundButton,disabled:e.confirmButtonDisabled,size:e.btnSize,onClick:m=>e.handleAction("confirm"),onKeydown:n.withKeys(n.withModifiers(m=>e.handleAction("confirm"),["prevent"]),["enter"])},{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(e.confirmButtonText||e.t("el.messagebox.confirm")),1)]),_:1},8,["loading","loading-icon","class","round","disabled","size","onClick","onKeydown"]),[[n.vShow,e.showConfirmButton]])],2)],14,["onClick"])]),_:3},8,["trapped","focus-trap-el","focus-start-el","onReleaseRequested"])],42,["aria-label","aria-describedby","onClick","onMousedown","onMouseup"])]),_:3},8,["z-index","overlay-class","mask"]),[[n.vShow,e.visible]])]),_:3},8,["onAfterLeave"])}var le=c._export_sfc(oe,[["render",te],["__file","index.vue"]]);const E=new Map,se=e=>{let t=document.body;return e.appendTo&&(c.isString(e.appendTo)&&(t=document.querySelector(e.appendTo)),c.isElement(e.appendTo)&&(t=e.appendTo),c.isElement(t)||(t=document.body)),t},ae=(e,t,a=null)=>{const i=n.createVNode(le,e,c.isFunction(e.message)||n.isVNode(e.message)?{default:c.isFunction(e.message)?e.message:()=>e.message}:null);return i.appContext=a,n.render(i,t),se(e).appendChild(t.firstElementChild),i.component},re=()=>document.createElement("div"),ie=(e,t)=>{const a=re();e.onVanish=()=>{n.render(null,a),E.delete(r)},e.onAction=l=>{const u=E.get(r);let p;e.showInput?p={value:r.inputValue,action:l}:p=l,e.callback?e.callback(p,i.proxy):l==="cancel"||l==="close"?e.distinguishCancelAndClose&&l!=="cancel"?u.reject("close"):u.reject("cancel"):u.resolve(p)};const i=ae(e,a,t),r=i.proxy;for(const l in e)c.hasOwn(e,l)&&!c.hasOwn(r.$props,l)&&(l==="closeIcon"&&c.isObject(e[l])?r[l]=n.markRaw(e[l]):r[l]=e[l]);return r.visible=!0,r};function y(e,t=null){if(!c.isClient)return Promise.reject();let a;return c.isString(e)||n.isVNode(e)?e={message:e}:a=e.callback,new Promise((i,r)=>{const l=ie(e,t??y._context);E.set(l,{options:e,callback:a,resolve:i,reject:r})})}const ce=["alert","confirm","prompt"],ue={alert:{closeOnPressEscape:!1,closeOnClickModal:!1},confirm:{showCancelButton:!0},prompt:{showCancelButton:!0,showInput:!0}};ce.forEach(e=>{y[e]=de(e)});function de(e){return(t,a,i,r)=>{let l="";return c.isObject(a)?(i=a,l=""):c.isUndefined(a)?l="":l=a,y(Object.assign({title:l,message:t,type:"",...ue[e]},i,{boxType:e}),r)}}y.close=()=>{E.forEach((e,t)=>{t.doClose()}),E.clear()};y._context=null;const v=y;v.install=e=>{v._context=e._context,e.config.globalProperties.$msgbox=v,e.config.globalProperties.$messageBox=v,e.config.globalProperties.$alert=v.alert,e.config.globalProperties.$confirm=v.confirm,e.config.globalProperties.$prompt=v.prompt};const fe=v;exports.ElMessageBox=fe;
@@ -1,15 +1,15 @@
1
1
  import { nextTick as V, defineComponent as Be, computed as b, ref as w, reactive as we, markRaw as N, watch as _, onMounted as Me, onBeforeUnmount as ke, toRefs as Ie, resolveComponent as A, openBlock as u, createBlock as g, Transition as Te, withCtx as C, withDirectives as K, createVNode as k, createElementVNode as v, normalizeClass as r, normalizeStyle as x, withModifiers as D, createElementBlock as U, resolveDynamicComponent as L, createCommentVNode as M, toDisplayString as R, withKeys as P, renderSlot as Se, vShow as H, createTextVNode as ee, isVNode as ie, render as ue } from "vue";
2
- import { E as Ae } from "./el-button-f08c0639.js";
3
- import { E as Le } from "./el-input-0f6ead19.js";
4
- import { E as Re, u as Ve, a as $e } from "./el-overlay-981f8d49.js";
5
- import { E as Oe, l as ne } from "./index-ec7ad93f.js";
6
- import { o as oe, e as ze, b as De } from "./el-popper-fdc7c793.js";
7
- import { c as j, e as G, _ as Pe, a as Fe, s as se, h as ce, o as Ke, t as te } from "./base-ff0e366f.js";
8
- import { T as Ue, m as ae } from "./use-form-common-props-631cacae.js";
9
- import { i as He } from "./validator-4160d9e7.js";
10
- import { u as Ne } from "./use-global-config-5d001623.js";
11
- import { u as le } from "./index-269b8a8c.js";
12
- import { u as je } from "./el-dialog-d328e0d8.js";
2
+ import { E as Ae } from "./el-button-e2c63c08.js";
3
+ import { E as Le } from "./el-input-d47281da.js";
4
+ import { E as Re, b as Ve, c as $e } from "./el-overlay-1ee0338d.js";
5
+ import { E as Oe, l as ne } from "./index-c2b9bbfd.js";
6
+ import { o as oe, E as ze, c as De } from "./index-0f79095c.js";
7
+ import { x as j, c as G, _ as Pe, s as Fe, y as se, f as ce, i as Ke, z as te } from "./base-29f73b05.js";
8
+ import { T as Ue, m as ae } from "./use-form-common-props-cb0ca65c.js";
9
+ import { i as He } from "./validator-4ab9774f.js";
10
+ import { u as Ne } from "./use-global-config-cdaeca54.js";
11
+ import { u as le } from "./index-8391a3df.js";
12
+ import { u as je } from "./el-dialog-eedcfd3e.js";
13
13
  const q = "_trap-focus-children", E = [], re = (e) => {
14
14
  if (E.length === 0)
15
15
  return;
@@ -1,14 +1,14 @@
1
- import { defineComponent as ce, createVNode as de, renderSlot as Y, h as fe, isRef as ve, computed as d, watch as _, onScopeDispose as ye, getCurrentInstance as me, ref as S, nextTick as ge, onMounted as be } from "vue";
2
- import { N as M, b as D, d as E, u as H, g as Ce, a as Z, y as $, l as pe, k as he, r as Se, q as _e, j as Ee, h as Be, i as we, c as K, z as W } from "./base-ff0e366f.js";
3
- import { P } from "./vnode-06571d5b.js";
4
- import { i as xe, k as Oe } from "./use-form-common-props-631cacae.js";
5
- import { g as Ie, U as J, t as Te } from "./el-popper-fdc7c793.js";
6
- import { g as ke } from "./scroll-41b4f625.js";
7
- import { u as q } from "./index-269b8a8c.js";
8
- import { a as Ae } from "./use-global-config-5d001623.js";
9
- const Le = (e) => {
1
+ import { defineComponent as ce, createVNode as de, renderSlot as Y, h as fe, isRef as ve, computed as d, watch as E, onScopeDispose as ye, getCurrentInstance as me, ref as S, nextTick as ge, onMounted as be } from "vue";
2
+ import { N as P, b as D, e as _, u as Z, o as Ce, s as q, h as $, a as pe, t as he, r as Se, E as Ee, n as _e, f as we, j as xe, x as K, d as W } from "./base-29f73b05.js";
3
+ import { P as k } from "./vnode-a83e6de8.js";
4
+ import { i as Be, w as Oe } from "./use-form-common-props-cb0ca65c.js";
5
+ import { j as Ie, U as J, a as Te } from "./index-0f79095c.js";
6
+ import { g as Ae } from "./scroll-6799bafc.js";
7
+ import { u as G } from "./index-8391a3df.js";
8
+ import { a as Le } from "./use-global-config-cdaeca54.js";
9
+ const Me = (e) => {
10
10
  if (!e)
11
- return { onClick: M, onMousedown: M, onMouseup: M };
11
+ return { onClick: P, onMousedown: P, onMouseup: P };
12
12
  let t = !1, s = !1;
13
13
  return { onClick: (l) => {
14
14
  t && s && e(l), t = s = !1;
@@ -17,33 +17,33 @@ const Le = (e) => {
17
17
  }, onMouseup: (l) => {
18
18
  s = l.target === l.currentTarget;
19
19
  } };
20
- }, Me = D({
20
+ }, Pe = D({
21
21
  mask: {
22
22
  type: Boolean,
23
23
  default: !0
24
24
  },
25
25
  customMaskEvent: Boolean,
26
26
  overlayClass: {
27
- type: E([
27
+ type: _([
28
28
  String,
29
29
  Array,
30
30
  Object
31
31
  ])
32
32
  },
33
33
  zIndex: {
34
- type: E([String, Number])
34
+ type: _([String, Number])
35
35
  }
36
- }), Pe = {
36
+ }), ke = {
37
37
  click: (e) => e instanceof MouseEvent
38
38
  }, De = "overlay";
39
39
  var Fe = ce({
40
40
  name: "ElOverlay",
41
- props: Me,
42
- emits: Pe,
41
+ props: Pe,
42
+ emits: ke,
43
43
  setup(e, { slots: t, emit: s }) {
44
- const f = H(De), a = (y) => {
44
+ const f = Z(De), a = (y) => {
45
45
  s("click", y);
46
- }, { onClick: u, onMousedown: l, onMouseup: v } = Le(e.customMaskEvent ? void 0 : a);
46
+ }, { onClick: u, onMousedown: l, onMouseup: v } = Me(e.customMaskEvent ? void 0 : a);
47
47
  return () => e.mask ? de("div", {
48
48
  class: [f.b(), e.overlayClass],
49
49
  style: {
@@ -52,7 +52,7 @@ var Fe = ce({
52
52
  onClick: u,
53
53
  onMousedown: l,
54
54
  onMouseup: v
55
- }, [Y(t, "default")], P.STYLE | P.CLASS | P.PROPS, ["onClick", "onMouseup", "onMousedown"]) : fe("div", {
55
+ }, [Y(t, "default")], k.STYLE | k.CLASS | k.PROPS, ["onClick", "onMouseup", "onMousedown"]) : fe("div", {
56
56
  class: e.overlayClass,
57
57
  style: {
58
58
  zIndex: e.zIndex,
@@ -65,14 +65,14 @@ var Fe = ce({
65
65
  }, [Y(t, "default")]);
66
66
  }
67
67
  });
68
- const Ge = Fe, He = Symbol("dialogInjectionKey"), G = "dialog-fade", Ne = D({
68
+ const He = Fe, Ze = Symbol("dialogInjectionKey"), H = "dialog-fade", Ne = D({
69
69
  center: Boolean,
70
70
  alignCenter: {
71
71
  type: Boolean,
72
72
  default: void 0
73
73
  },
74
74
  closeIcon: {
75
- type: xe
75
+ type: Be
76
76
  },
77
77
  draggable: {
78
78
  type: Boolean,
@@ -98,7 +98,7 @@ const Ge = Fe, He = Symbol("dialogInjectionKey"), G = "dialog-fade", Ne = D({
98
98
  type: String,
99
99
  default: "2"
100
100
  }
101
- }), Ze = {
101
+ }), qe = {
102
102
  close: () => !0
103
103
  }, Je = D({
104
104
  ...Ne,
@@ -108,7 +108,7 @@ const Ge = Fe, He = Symbol("dialogInjectionKey"), G = "dialog-fade", Ne = D({
108
108
  default: "body"
109
109
  },
110
110
  beforeClose: {
111
- type: E(Function)
111
+ type: _(Function)
112
112
  },
113
113
  destroyOnClose: Boolean,
114
114
  closeOnClickModal: {
@@ -156,7 +156,7 @@ const Ge = Fe, He = Symbol("dialogInjectionKey"), G = "dialog-fade", Ne = D({
156
156
  default: "2"
157
157
  },
158
158
  transition: {
159
- type: E([String, Object]),
159
+ type: _([String, Object]),
160
160
  default: void 0
161
161
  }
162
162
  }), Qe = {
@@ -169,8 +169,8 @@ const Ge = Fe, He = Symbol("dialogInjectionKey"), G = "dialog-fade", Ne = D({
169
169
  closeAutoFocus: () => !0
170
170
  }, ze = (e, t = {}) => {
171
171
  ve(e) || Te("[useLockscreen]", "You need to pass a ref param to this function");
172
- const s = t.ns || H("popup"), f = d(() => s.bm("parent", "hidden"));
173
- if (!Z || $(document.body, f.value))
172
+ const s = t.ns || Z("popup"), f = d(() => s.bm("parent", "hidden"));
173
+ if (!q || $(document.body, f.value))
174
174
  return;
175
175
  let a = 0, u = !1, l = "0";
176
176
  const v = () => {
@@ -178,12 +178,12 @@ const Ge = Fe, He = Symbol("dialogInjectionKey"), G = "dialog-fade", Ne = D({
178
178
  typeof document > "u" || u && document && (document.body.style.width = l, Se(document.body, f.value));
179
179
  }, 200);
180
180
  };
181
- _(e, (y) => {
181
+ E(e, (y) => {
182
182
  if (!y) {
183
183
  v();
184
184
  return;
185
185
  }
186
- u = !$(document.body, f.value), u && (l = document.body.style.width, pe(document.body, f.value)), a = ke(s.namespace.value);
186
+ u = !$(document.body, f.value), u && (l = document.body.style.width, pe(document.body, f.value)), a = Ae(s.namespace.value);
187
187
  const i = document.documentElement.clientHeight < document.body.scrollHeight, m = he(document.body, "overflowY");
188
188
  a > 0 && (i || m === "scroll") && u && (document.body.style.width = `calc(100% - ${a}px)`);
189
189
  }), ye(() => v());
@@ -191,17 +191,17 @@ const Ge = Fe, He = Symbol("dialogInjectionKey"), G = "dialog-fade", Ne = D({
191
191
  var s;
192
192
  const a = me().emit, { nextZIndex: u } = Oe();
193
193
  let l = "";
194
- const v = q(), y = q(), i = S(!1), m = S(!1), C = S(!1), B = S((s = e.zIndex) != null ? s : u());
194
+ const v = G(), y = G(), i = S(!1), m = S(!1), C = S(!1), w = S((s = e.zIndex) != null ? s : u());
195
195
  let g, b;
196
- const F = Ae(), Q = d(() => {
196
+ const F = Le(), Q = d(() => {
197
197
  var o, n;
198
- return (n = (o = F.value) == null ? void 0 : o.namespace) != null ? n : _e;
198
+ return (n = (o = F.value) == null ? void 0 : o.namespace) != null ? n : Ee;
199
199
  }), p = d(() => {
200
200
  var o;
201
201
  return (o = F.value) == null ? void 0 : o.dialog;
202
202
  }), X = d(() => {
203
203
  const o = {}, n = `--${Q.value}-dialog`;
204
- return e.fullscreen || (e.top && (o[`${n}-margin-top`] = e.top), e.width && (o[`${n}-width`] = Ee(e.width))), o;
204
+ return e.fullscreen || (e.top && (o[`${n}-margin-top`] = e.top), e.width && (o[`${n}-width`] = _e(e.width))), o;
205
205
  }), R = d(() => {
206
206
  var o, n, r;
207
207
  return ((r = (n = e.draggable) != null ? n : (o = p.value) == null ? void 0 : o.draggable) != null ? r : !1) && !e.fullscreen;
@@ -213,26 +213,26 @@ const Ge = Fe, He = Symbol("dialogInjectionKey"), G = "dialog-fade", Ne = D({
213
213
  return (r = (n = e.overflow) != null ? n : (o = p.value) == null ? void 0 : o.overflow) != null ? r : !1;
214
214
  }), oe = d(() => N.value ? { display: "flex" } : {}), ne = d(() => {
215
215
  var o, n, r;
216
- const A = (r = (n = e.transition) != null ? n : (o = p.value) == null ? void 0 : o.transition) != null ? r : G, re = {
217
- name: A,
218
- onAfterEnter: w,
216
+ const L = (r = (n = e.transition) != null ? n : (o = p.value) == null ? void 0 : o.transition) != null ? r : H, re = {
217
+ name: L,
218
+ onAfterEnter: x,
219
219
  onBeforeLeave: O,
220
- onAfterLeave: x
220
+ onAfterLeave: B
221
221
  };
222
- if (Be(A)) {
223
- const c = { ...A }, L = (h, ie) => (V) => {
224
- we(h) ? h.forEach((U) => {
222
+ if (we(L)) {
223
+ const c = { ...L }, M = (h, ie) => (V) => {
224
+ xe(h) ? h.forEach((U) => {
225
225
  K(U) && U(V);
226
226
  }) : K(h) && h(V), ie();
227
227
  };
228
- return c.onAfterEnter = L(c.onAfterEnter, w), c.onBeforeLeave = L(c.onBeforeLeave, O), c.onAfterLeave = L(c.onAfterLeave, x), c.name || (c.name = G), c;
228
+ return c.onAfterEnter = M(c.onAfterEnter, x), c.onBeforeLeave = M(c.onBeforeLeave, O), c.onAfterLeave = M(c.onAfterLeave, B), c.name || (c.name = H), c;
229
229
  }
230
230
  return re;
231
231
  });
232
- function w() {
232
+ function x() {
233
233
  a("opened");
234
234
  }
235
- function x() {
235
+ function B() {
236
236
  a("closed"), a(J, !1), e.destroyOnClose && (C.value = !1);
237
237
  }
238
238
  function O() {
@@ -242,7 +242,7 @@ const Ge = Fe, He = Symbol("dialogInjectionKey"), G = "dialog-fade", Ne = D({
242
242
  b == null || b(), g == null || g(), e.openDelay && e.openDelay > 0 ? { stop: g } = W(() => j(), e.openDelay) : j();
243
243
  }
244
244
  function I() {
245
- g == null || g(), b == null || b(), e.closeDelay && e.closeDelay > 0 ? { stop: b } = W(() => k(), e.closeDelay) : k();
245
+ g == null || g(), b == null || b(), e.closeDelay && e.closeDelay > 0 ? { stop: b } = W(() => A(), e.closeDelay) : A();
246
246
  }
247
247
  function T() {
248
248
  function o(n) {
@@ -254,9 +254,9 @@ const Ge = Fe, He = Symbol("dialogInjectionKey"), G = "dialog-fade", Ne = D({
254
254
  e.closeOnClickModal && T();
255
255
  }
256
256
  function j() {
257
- Z && (i.value = !0);
257
+ q && (i.value = !0);
258
258
  }
259
- function k() {
259
+ function A() {
260
260
  i.value = !1;
261
261
  }
262
262
  function le() {
@@ -273,26 +273,26 @@ const Ge = Fe, He = Symbol("dialogInjectionKey"), G = "dialog-fade", Ne = D({
273
273
  function ue() {
274
274
  e.closeOnPressEscape && T();
275
275
  }
276
- return _(() => e.zIndex, () => {
276
+ return E(() => e.zIndex, () => {
277
277
  var o;
278
- B.value = (o = e.zIndex) != null ? o : u();
279
- }), _(() => e.modelValue, (o) => {
278
+ w.value = (o = e.zIndex) != null ? o : u();
279
+ }), E(() => e.modelValue, (o) => {
280
280
  var n;
281
- o ? (m.value = !1, z(), C.value = !0, B.value = (n = e.zIndex) != null ? n : u(), ge(() => {
281
+ o ? (m.value = !1, z(), C.value = !0, w.value = (n = e.zIndex) != null ? n : u(), ge(() => {
282
282
  a("open"), t.value && (t.value.parentElement.scrollTop = 0, t.value.parentElement.scrollLeft = 0, t.value.scrollTop = 0);
283
283
  })) : i.value && I();
284
- }), _(() => e.fullscreen, (o) => {
284
+ }), E(() => e.fullscreen, (o) => {
285
285
  t.value && (o ? (l = t.value.style.transform, t.value.style.transform = "") : t.value.style.transform = l);
286
286
  }), be(() => {
287
287
  e.modelValue && (i.value = !0, C.value = !0, z());
288
288
  }), {
289
- afterEnter: w,
290
- afterLeave: x,
289
+ afterEnter: x,
290
+ afterLeave: B,
291
291
  beforeLeave: O,
292
292
  handleClose: T,
293
293
  onModalClick: te,
294
294
  close: I,
295
- doClose: k,
295
+ doClose: A,
296
296
  onOpenAutoFocus: le,
297
297
  onCloseAutoFocus: ae,
298
298
  onCloseRequested: ue,
@@ -304,7 +304,7 @@ const Ge = Fe, He = Symbol("dialogInjectionKey"), G = "dialog-fade", Ne = D({
304
304
  overlayDialogStyle: oe,
305
305
  rendered: C,
306
306
  visible: i,
307
- zIndex: B,
307
+ zIndex: w,
308
308
  transitionConfig: ne,
309
309
  _draggable: R,
310
310
  _alignCenter: N,
@@ -312,13 +312,13 @@ const Ge = Fe, He = Symbol("dialogInjectionKey"), G = "dialog-fade", Ne = D({
312
312
  };
313
313
  };
314
314
  export {
315
- Ge as E,
316
- Le as a,
317
- Ze as b,
318
- He as c,
319
- Ne as d,
320
- Je as e,
321
- Qe as f,
322
- Xe as g,
323
- ze as u
315
+ He as E,
316
+ Qe as a,
317
+ ze as b,
318
+ Me as c,
319
+ Je as d,
320
+ Ne as e,
321
+ qe as f,
322
+ Ze as g,
323
+ Xe as u
324
324
  };