@acedatacloud/nexior 3.18.5 → 3.18.7

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 (137) hide show
  1. package/dist/assets/{Auth-Duvpfexr.js → Auth-D0E88uU8.js} +1 -1
  2. package/dist/assets/{Callback-Cb2CSgs1.js → Callback-GZDJUsmS.js} +1 -1
  3. package/dist/assets/{Console-CkmGMbfk.css → Console-BAK6l-EJ.css} +1 -1
  4. package/dist/assets/Console-BRhPcg2a.js +1 -0
  5. package/dist/assets/{Conversation-CZ6CkO76.js → Conversation-BHdM-ZOP.js} +3 -3
  6. package/dist/assets/{Conversation-DEjpfchQ.css → Conversation-BnySvQJk.css} +1 -1
  7. package/dist/assets/{CopyToClipboard-RknI4LM3.js → CopyToClipboard-Hav2hml4.js} +1 -1
  8. package/dist/assets/{Detail-BfRjUWYa.js → Detail-DPHGblvD.js} +1 -1
  9. package/dist/assets/{EditArray-DqKEu71Y.js → EditArray-DD0egPyS.js} +1 -1
  10. package/dist/assets/{Extra-Cs_Ma2Mw.js → Extra-DvfnBzbb.js} +1 -1
  11. package/dist/assets/{FilePreview-D0-PWvO0.js → FilePreview-BNX-xiRe.js} +1 -1
  12. package/dist/assets/{History-xjK6Z4vN.js → History-CKlg6xmW.js} +1 -1
  13. package/dist/assets/{ImagePreview-TfSPkY4U.js → ImagePreview-OUZSFqRe.js} +1 -1
  14. package/dist/assets/ImageWrapper-DEadO_7m.css +1 -0
  15. package/dist/assets/{ImageWrapper-Clo9Sn7r.js → ImageWrapper-Wrpw_5jV.js} +1 -1
  16. package/dist/assets/{Index-BVgISA1_.js → Index-6wdKBGrW.js} +1 -1
  17. package/dist/assets/{Index-BpZ5e9uu.js → Index-B0gVKj-O.js} +1 -1
  18. package/dist/assets/{Index-DxNWg66E.js → Index-B6OWUmGD.js} +1 -1
  19. package/dist/assets/{Index-DlskCX9F.js → Index-BfFY_n6B.js} +1 -1
  20. package/dist/assets/Index-ByhRjEmp.css +1 -0
  21. package/dist/assets/{Index-Dym5ulon.js → Index-C1giqA6x.js} +1 -1
  22. package/dist/assets/{Index-D9g9sYNT.js → Index-CMQSpKVP.js} +1 -1
  23. package/dist/assets/{Index-DX38myeD.js → Index-CUVYGOao.js} +1 -1
  24. package/dist/assets/{Index-BujiG4ye.js → Index-D2vsNaX3.js} +1 -1
  25. package/dist/assets/{Index-CZKcMgt4.js → Index-DAQNVZGM.js} +1 -1
  26. package/dist/assets/{Index-D9A7f8cq.js → Index-DAiKDRxv.js} +1 -1
  27. package/dist/assets/{Index-CRVLW8Rz.js → Index-DEHJGQ55.js} +1 -1
  28. package/dist/assets/Index-RKtQZrzA.css +1 -0
  29. package/dist/assets/{Index-DRfg8BG9.js → Index-ZY5OJEVW.js} +1 -1
  30. package/dist/assets/{Index-BLnc2ujJ.js → Index-hYsF9zUi.js} +1 -1
  31. package/dist/assets/Index-tfCbAT4F.js +1 -0
  32. package/dist/assets/{InfoIcon-A1xDvxpg.js → InfoIcon-BwtK8GA6.js} +1 -1
  33. package/dist/assets/{Invitees-99jEJQ1p.js → Invitees-Dky4G8TR.js} +1 -1
  34. package/dist/assets/{List-BSLNdDsT.js → List-D-qSxPyW.js} +1 -1
  35. package/dist/assets/{List-T1IZ-72o.js → List-D37NPQIb.js} +1 -1
  36. package/dist/assets/{List-Dr9BZ1FU.js → List-DcveDkM0.js} +1 -1
  37. package/dist/assets/{Login-B6h-oco1.js → Login-8Tt7aIF5.js} +1 -1
  38. package/dist/assets/Main-B-eZyN3B.js +1 -0
  39. package/dist/assets/{Main-ciuyHaq3.css → Main-uNZuTHox.css} +1 -1
  40. package/dist/assets/{Navigator-BVabXyZw.css → Navigator-CGP8w-Hr.css} +1 -1
  41. package/dist/assets/{Navigator-B5ifBSsu.js → Navigator-DpgYZ96S.js} +1 -1
  42. package/dist/assets/NoTasks-Cc0R3Fu6.js +1 -0
  43. package/dist/assets/{Pagination-jZo6ton8.js → Pagination-BUqfeKxL.js} +1 -1
  44. package/dist/assets/{Status-DTw3gKLP.js → Status-BMWv2Lvq.js} +1 -1
  45. package/dist/assets/{Subscribe-CuRG2X0f.js → Subscribe-CvBDFTy5.js} +1 -1
  46. package/dist/assets/{VideoPlayer-bQ9vkI39.js → VideoPlayer-B2z-fteC.js} +1 -1
  47. package/dist/assets/{_baseClone-CSJOYRf5.js → _baseClone-CJfrYffb.js} +1 -1
  48. package/dist/assets/{_baseIteratee-EXwBHC6D.js → _baseIteratee-CcPXMZX8.js} +1 -1
  49. package/dist/assets/{_initCloneObject-BcH86D07.js → _initCloneObject-1-Me7HD_.js} +1 -1
  50. package/dist/assets/{castArray-DMPMSVhG.js → castArray-BUMlMGlh.js} +1 -1
  51. package/dist/assets/{debounce--4Ey-UiG.js → debounce-DECFekgp.js} +1 -1
  52. package/dist/assets/{distribution-CRIdn9R_.js → distribution--a6ikL4D.js} +1 -1
  53. package/dist/assets/{dropdown-e5HICCuH.js → dropdown-DAoWl2Zf.js} +1 -1
  54. package/dist/assets/{index-Bt9N_pkq.js → index-06ewE7Mw.js} +1 -1
  55. package/dist/assets/{index-DG1ztSVj.js → index-B279n2SU.js} +1 -1
  56. package/dist/assets/{index-spFFY5P2.js → index-BFUeirJF.js} +1 -1
  57. package/dist/assets/{index-Bg5mlWRY.js → index-BNR4FIDg.js} +1 -1
  58. package/dist/assets/{index-Cgvi9qKr.js → index-BPxi9ga3.js} +25 -25
  59. package/dist/assets/{index-6-cLyr4W.js → index-BdwM5BLe.js} +1 -1
  60. package/dist/assets/{index-Df5a9WGp.js → index-Bm2EGIx2.js} +1 -1
  61. package/dist/assets/{index-CeFYRj3z.js → index-BpxAMMhB.js} +1 -1
  62. package/dist/assets/{index-DNgFozYk.js → index-Byhqw1uO.js} +1 -1
  63. package/dist/assets/{index-BUJDKI34.js → index-C0D1eZ2Z.js} +1 -1
  64. package/dist/assets/{index-D2hwZIWA.js → index-C9xzV0Q7.js} +1 -1
  65. package/dist/assets/{index-BT7WrUPB.js → index-CYne5B4k.js} +1 -1
  66. package/dist/assets/{index-C_tipjVA.js → index-C_A5OyhT.js} +1 -1
  67. package/dist/assets/{index-Gj7AGill.js → index-CcHXhRSM.js} +1 -1
  68. package/dist/assets/{index-CvSpx81L.js → index-D-pDYa6O.js} +1 -1
  69. package/dist/assets/{index-qGVWSNsj.js → index-D1RNQpBT.js} +1 -1
  70. package/dist/assets/{index-D402UB4e.js → index-D2XucFi1.js} +1 -1
  71. package/dist/assets/{index-DTCoUzbs.js → index-D4CU7VXM.js} +1 -1
  72. package/dist/assets/{index-I8eUQ22m.js → index-DBGyP5fo.js} +1 -1
  73. package/dist/assets/{index-C-wmX7EI.js → index-DaoKJ7xF.js} +1 -1
  74. package/dist/assets/{index-C1ao7hiD.js → index-DcLgGPiX.js} +1 -1
  75. package/dist/assets/{index-BTalZB4F.js → index-DdsTi3DP.js} +1 -1
  76. package/dist/assets/{index-BgUK6CFV.js → index-Dg0VTGhm.js} +1 -1
  77. package/dist/assets/{index-BQq3lXfU.js → index-DiAQvbPQ.js} +1 -1
  78. package/dist/assets/{index-Dr1yWI9s.js → index-EaL01-bR.js} +1 -1
  79. package/dist/assets/{index-BdcqrZwU.js → index-ZS6ZzoG6.js} +1 -1
  80. package/dist/assets/{index-DB_BXJo9.css → index-kRFwCZww.css} +1 -1
  81. package/dist/assets/{index-VD3Emf8V.js → index-nWt46AGY.js} +1 -1
  82. package/dist/assets/{index-BOWgmkBj.js → index-wVVoJUgj.js} +1 -1
  83. package/dist/assets/{index-GjQsR5KG.js → index-yDaLeZ9r.js} +1 -1
  84. package/dist/assets/{index.es-CIc56cl6.js → index.es-DAxeCwmH.js} +1 -1
  85. package/dist/assets/{isEqual-CNVV21LA.js → isEqual-DCq9iBB-.js} +1 -1
  86. package/dist/assets/{isPlainObject-CBF1AW8-.js → isPlainObject-BcBVDz8v.js} +1 -1
  87. package/dist/assets/{order-hEvneraR.js → order-RHAZQZ2R.js} +1 -1
  88. package/dist/assets/{price-JcCbdpjd.js → price-cfV_g5sr.js} +1 -1
  89. package/dist/assets/{strings-CaFLJNhw.js → strings-Dx5Ed-QV.js} +1 -1
  90. package/dist/assets/{typescript-BJQTyG9d.js → typescript--c8-UPe1.js} +1 -1
  91. package/dist/assets/{use-form-item-tWhUsWWY.js → use-form-item-Dix3-pV7.js} +1 -1
  92. package/dist/assets/veo--CAsMLom.js +1 -0
  93. package/dist/assets/veo--kO3FA9T.js +1 -0
  94. package/dist/assets/veo-B34SXxzG.js +1 -0
  95. package/dist/assets/veo-BAhFOg8n.js +1 -0
  96. package/dist/assets/veo-BG_BPWA7.js +1 -0
  97. package/dist/assets/veo-BVUH9DMj.js +1 -0
  98. package/dist/assets/veo-BrWLYOWh.js +1 -0
  99. package/dist/assets/veo-CAvHt3bO.js +1 -0
  100. package/dist/assets/veo-CK1RX16r.js +1 -0
  101. package/dist/assets/veo-Ci9-YxdR.js +1 -0
  102. package/dist/assets/veo-CujXHnaB.js +1 -0
  103. package/dist/assets/veo-D9CYjnO7.js +1 -0
  104. package/dist/assets/veo-DMcoRp1x.js +1 -0
  105. package/dist/assets/veo-DleTm3qB.js +1 -0
  106. package/dist/assets/veo-Do9_kzEp.js +1 -0
  107. package/dist/assets/veo-gIi3xPQL.js +1 -0
  108. package/dist/assets/veo-k0yFd2Pf.js +1 -0
  109. package/dist/assets/veo-uN01Q1TN.js +1 -0
  110. package/dist/index.html +2 -2
  111. package/package.json +1 -1
  112. package/dist/assets/Console-DPd5nJQ6.js +0 -1
  113. package/dist/assets/ImageWrapper-cN_O9DCY.css +0 -1
  114. package/dist/assets/Index-B8qS_0St.css +0 -1
  115. package/dist/assets/Index-Bi0z75LU.css +0 -1
  116. package/dist/assets/Index-c3LJz0E-.js +0 -1
  117. package/dist/assets/Main-BYLLCBpR.js +0 -1
  118. package/dist/assets/NoTasks-C_P7dqM5.css +0 -1
  119. package/dist/assets/NoTasks-Cdp8T7aA.js +0 -1
  120. package/dist/assets/veo-3zKgxer5.js +0 -1
  121. package/dist/assets/veo-BI4g6x_1.js +0 -1
  122. package/dist/assets/veo-BR3H2R4F.js +0 -1
  123. package/dist/assets/veo-BXcltFVR.js +0 -1
  124. package/dist/assets/veo-BocIIMgA.js +0 -1
  125. package/dist/assets/veo-CVaSyNQn.js +0 -1
  126. package/dist/assets/veo-CZOVKp22.js +0 -1
  127. package/dist/assets/veo-CZqDkrPQ.js +0 -1
  128. package/dist/assets/veo-CZra50B-.js +0 -1
  129. package/dist/assets/veo-DDTWG0_-.js +0 -1
  130. package/dist/assets/veo-DU-VU18f.js +0 -1
  131. package/dist/assets/veo-D_Y5yWq9.js +0 -1
  132. package/dist/assets/veo-DhJcbz6F.js +0 -1
  133. package/dist/assets/veo-Ds3v9g7y.js +0 -1
  134. package/dist/assets/veo-Dv9GDwlT.js +0 -1
  135. package/dist/assets/veo-K6G5xBEu.js +0 -1
  136. package/dist/assets/veo-RAvxcZeN.js +0 -1
  137. package/dist/assets/veo-a4_wVvTS.js +0 -1
@@ -1 +1 @@
1
- import{aC as tt,al as E,c as u,aj as al,an as ge,bE as nt,as as F,d0 as at,cZ as X,aw as j,aK as ye,_ as Se,d as re,J as ae,K as ke,b as I,o as g,r as k,t as V,x as W,ah as B,n as v,a as se,aW as ol,e as Ee,ca as De,bG as ie,ao as sl,bc as H,y as M,f as he,av as Re,b1 as ot,d2 as st,aN as P,ck as it,bo as rt,bF as be,bx as Ze,bJ as ut,aL as ne,bN as Xe,d3 as dt,ch as Z,aI as ct,cs as pt,cg as il,aB as ft,ak as vt,bh as mt,d4 as bt,ap as le,d5 as Ye,A as ht,bI as _e,cn as gt,bS as yt,l as G,cN as St,k as q,j as L,i as A,F as xe,v as el,D as ll,c8 as te,d6 as Ct,b8 as Ve,d7 as Ot,E as wt,c7 as It,am as rl,bK as Et,cz as Vt,w as ul,g as Tt}from"./index-Cgvi9qKr.js";import{u as tl,b as kt,E as Dt}from"./index-Gj7AGill.js";import{s as Rt,E as Mt}from"./index-I8eUQ22m.js";import{e as $t}from"./strings-CaFLJNhw.js";import{c as U}from"./castArray-DMPMSVhG.js";import{i as oe}from"./isEqual-CNVV21LA.js";import{b as Q,d as Lt}from"./typescript-BJQTyG9d.js";import{u as Nt,a as Bt}from"./use-form-item-tWhUsWWY.js";import{u as Wt,a as Ft}from"./index-D402UB4e.js";import{d as Pt}from"./debounce--4Ey-UiG.js";import{b as zt}from"./_baseIteratee-EXwBHC6D.js";import{u as Kt}from"./index-BTalZB4F.js";import{C as At}from"./index-Bg5mlWRY.js";function Ht(e,o,a,m){e.length;for(var c=a+1;c--;)if(o(e[c],c,e))return c;return-1}function Ut(e,o,a){var m=e==null?0:e.length;if(!m)return-1;var c=m-1;return Ht(e,zt(o),c)}function jt(){const e=tt(),o=E(0),a=11,m=u(()=>({minWidth:`${Math.max(o.value,a)}px`}));return Q(e,()=>{var S,t;o.value=(t=(S=e.value)==null?void 0:S.getBoundingClientRect().width)!=null?t:0}),{calculatorRef:e,calculatorWidth:o,inputStyle:m}}const dl=Symbol("ElSelectGroup"),Ce=Symbol("ElSelect"),Te="ElOption",Gt=al({value:{type:[String,Number,Boolean,Object],required:!0},label:{type:[String,Number]},created:Boolean,disabled:Boolean});function qt(e,o){const a=ge(Ce);a||nt(Te,"usage: <el-select><el-option /></el-select/>");const m=ge(dl,{disabled:!1}),c=u(()=>f(U(a.props.modelValue),e.value)),S=u(()=>{var s;if(a.props.multiple){const p=U((s=a.props.modelValue)!=null?s:[]);return!c.value&&p.length>=a.props.multipleLimit&&a.props.multipleLimit>0}else return!1}),t=u(()=>{var s;return(s=e.label)!=null?s:F(e.value)?"":e.value}),C=u(()=>e.value||e.label||""),h=u(()=>e.disabled||o.groupDisabled||S.value),b=ye(),f=(s=[],p)=>{if(F(e.value)){const w=a.props.valueKey;return s&&s.some(T=>at(X(T,w))===X(p,w))}else return s&&s.includes(p)},d=()=>{!e.disabled&&!m.disabled&&(a.states.hoveringIndex=a.optionsArray.indexOf(b.proxy))},i=s=>{const p=new RegExp($t(s),"i");o.visible=p.test(String(t.value))||e.created};return j(()=>t.value,()=>{!e.created&&!a.props.remote&&a.setSelected()}),j(()=>e.value,(s,p)=>{const{remote:w,valueKey:T}=a.props;if((w?s!==p:!oe(s,p))&&(a.onOptionDestroy(p,b.proxy),a.onOptionCreate(b.proxy)),!e.created&&!w){if(T&&F(s)&&F(p)&&s[T]===p[T])return;a.setSelected()}}),j(()=>m.disabled,()=>{o.groupDisabled=m.disabled},{immediate:!0}),{select:a,currentLabel:t,currentValue:C,itemSelected:c,isDisabled:h,hoverItem:d,updateOption:i}}const Qt=re({name:Te,componentName:Te,props:Gt,setup(e){const o=se("select"),a=ol(),m=u(()=>[o.be("dropdown","item"),o.is("disabled",Ee(C)),o.is("selected",Ee(t)),o.is("hovering",Ee(i))]),c=ie({index:-1,groupDisabled:!1,visible:!0,hover:!1}),{currentLabel:S,itemSelected:t,isDisabled:C,select:h,hoverItem:b,updateOption:f}=qt(e,c),{visible:d,hover:i}=De(c),s=ye().proxy;h.onOptionCreate(s),sl(()=>{const w=s.value,{selected:T}=h.states,D=T.some(y=>y.value===s.value);H(()=>{h.states.cachedOptions.get(w)===s&&!D&&h.states.cachedOptions.delete(w)}),h.onOptionDestroy(w,s)});function p(){C.value||h.handleOptionSelect(s)}return{ns:o,id:a,containerKls:m,currentLabel:S,itemSelected:t,isDisabled:C,select:h,visible:d,hover:i,states:c,hoverItem:b,updateOption:f,selectOptionClick:p}}});function Jt(e,o){return ae((g(),I("li",{id:e.id,class:v(e.containerKls),role:"option","aria-disabled":e.isDisabled||void 0,"aria-selected":e.itemSelected,onMousemove:e.hoverItem,onClick:B(e.selectOptionClick,["stop"])},[k(e.$slots,"default",{},()=>[V("span",null,W(e.currentLabel),1)])],42,["id","aria-disabled","aria-selected","onMousemove","onClick"])),[[ke,e.visible]])}var Me=Se(Qt,[["render",Jt],["__file","option.vue"]]);const Zt=re({name:"ElSelectDropdown",componentName:"ElSelectDropdown",setup(){const e=ge(Ce),o=se("select"),a=u(()=>e.props.popperClass),m=u(()=>e.props.multiple),c=u(()=>e.props.fitInputWidth),S=E("");function t(){var C;S.value=`${(C=e.selectRef)==null?void 0:C.offsetWidth}px`}return Re(()=>{t(),Q(e.selectRef,t)}),{ns:o,minWidth:S,popperClass:a,isMultiple:m,isFitInputWidth:c}}});function Xt(e,o,a,m,c,S){return g(),I("div",{class:v([e.ns.b("dropdown"),e.ns.is("multiple",e.isMultiple),e.popperClass]),style:he({[e.isFitInputWidth?"width":"minWidth"]:e.minWidth})},[e.$slots.header?(g(),I("div",{key:0,class:v(e.ns.be("dropdown","header"))},[k(e.$slots,"header")],2)):M("v-if",!0),k(e.$slots,"default"),e.$slots.footer?(g(),I("div",{key:1,class:v(e.ns.be("dropdown","footer"))},[k(e.$slots,"footer")],2)):M("v-if",!0)],6)}var Yt=Se(Zt,[["render",Xt],["__file","select-dropdown.vue"]]);const _t=(e,o)=>{const{t:a}=ot(),m=ol(),c=se("select"),S=se("input"),t=ie({inputValue:"",options:new Map,cachedOptions:new Map,optionValues:[],selected:[],selectionWidth:0,collapseItemWidth:0,selectedLabel:"",hoveringIndex:-1,previousQuery:null,inputHovering:!1,menuVisibleOnFocus:!1,isBeforeHide:!1}),C=E(),h=E(),b=E(),f=E(),d=E(),i=E(),s=E(),p=E(),w=E(),T=E(),D=E(),y=E(!1),N=E(),{form:ue,formItem:z}=Nt(),{inputId:pl}=Bt(e,{formItemContext:z}),{valueOnClear:fl,isEmptyValue:vl}=st(e),{isComposing:$e,handleCompositionStart:ml,handleCompositionUpdate:bl,handleCompositionEnd:hl}=Wt({afterComposition:l=>He(l)}),Y=u(()=>e.disabled||!!ue?.disabled),{wrapperRef:Le,isFocused:Ne,handleBlur:gl}=Ft(d,{disabled:Y,afterFocus(){e.automaticDropdown&&!y.value&&(y.value=!0,t.menuVisibleOnFocus=!0)},beforeBlur(l){var n,r;return((n=b.value)==null?void 0:n.isFocusInsideContent(l))||((r=f.value)==null?void 0:r.isFocusInsideContent(l))},afterBlur(){var l;y.value=!1,t.menuVisibleOnFocus=!1,e.validateEvent&&((l=z?.validate)==null||l.call(z,"blur").catch(n=>Xe()))}}),Oe=u(()=>P(e.modelValue)?e.modelValue.length>0:!vl(e.modelValue)),yl=u(()=>{var l;return(l=ue?.statusIcon)!=null?l:!1}),Sl=u(()=>e.clearable&&!Y.value&&t.inputHovering&&Oe.value),Be=u(()=>e.remote&&e.filterable&&!e.remoteShowSuffix?"":e.suffixIcon),Cl=u(()=>c.is("reverse",!!(Be.value&&y.value))),we=u(()=>z?.validateState||""),Ol=u(()=>we.value&&it[we.value]),wl=u(()=>e.remote?300:0),Il=u(()=>e.remote&&!t.inputValue&&t.options.size===0),El=u(()=>e.loading?e.loadingText||a("el.select.loading"):e.filterable&&t.inputValue&&t.options.size>0&&_.value===0?e.noMatchText||a("el.select.noMatch"):t.options.size===0?e.noDataText||a("el.select.noData"):null),_=u(()=>R.value.filter(l=>l.visible).length),R=u(()=>{const l=Array.from(t.options.values()),n=[];return t.optionValues.forEach(r=>{const O=l.findIndex($=>$.value===r);O>-1&&n.push(l[O])}),n.length>=l.length?n:l}),Vl=u(()=>Array.from(t.cachedOptions.values())),Tl=u(()=>{const l=R.value.filter(n=>!n.created).some(n=>n.currentLabel===t.inputValue);return e.filterable&&e.allowCreate&&t.inputValue!==""&&!l}),We=()=>{e.filterable&&ne(e.filterMethod)||e.filterable&&e.remote&&ne(e.remoteMethod)||R.value.forEach(l=>{var n;(n=l.updateOption)==null||n.call(l,t.inputValue)})},Fe=rt(),kl=u(()=>["small"].includes(Fe.value)?"small":"default"),Dl=u({get(){return y.value&&!Il.value},set(l){y.value=l}}),Rl=u(()=>{if(e.multiple&&!be(e.modelValue))return U(e.modelValue).length===0&&!t.inputValue;const l=P(e.modelValue)?e.modelValue[0]:e.modelValue;return e.filterable||be(l)?!t.inputValue:!0}),Ml=u(()=>{var l;const n=(l=e.placeholder)!=null?l:a("el.select.placeholder");return e.multiple||!Oe.value?n:t.selectedLabel}),$l=u(()=>Ze?null:"mouseenter");j(()=>e.modelValue,(l,n)=>{e.multiple&&e.filterable&&!e.reserveKeyword&&(t.inputValue="",de("")),ce(),!oe(l,n)&&e.validateEvent&&z?.validate("change").catch(r=>Xe())},{flush:"post",deep:!0}),j(()=>y.value,l=>{l?de(t.inputValue):(t.inputValue="",t.previousQuery=null,t.isBeforeHide=!0),o("visible-change",l)}),j(()=>t.options.entries(),()=>{ft&&(ce(),e.defaultFirstOption&&(e.filterable||e.remote)&&_.value&&Pe())},{flush:"post"}),j([()=>t.hoveringIndex,R],([l])=>{vt(l)&&l>-1?N.value=R.value[l]||{}:N.value={},R.value.forEach(n=>{n.hover=N.value===n})}),ut(()=>{t.isBeforeHide||We()});const de=l=>{t.previousQuery===l||$e.value||(t.previousQuery=l,e.filterable&&ne(e.filterMethod)?e.filterMethod(l):e.filterable&&e.remote&&ne(e.remoteMethod)&&e.remoteMethod(l),e.defaultFirstOption&&(e.filterable||e.remote)&&_.value?H(Pe):H(Ll))},Pe=()=>{const l=R.value.filter($=>$.visible&&!$.disabled&&!$.states.groupDisabled),n=l.find($=>$.created),r=l[0],O=R.value.map($=>$.value);t.hoveringIndex=qe(O,n||r)},ce=()=>{if(e.multiple)t.selectedLabel="";else{const n=P(e.modelValue)?e.modelValue[0]:e.modelValue,r=ze(n);t.selectedLabel=r.currentLabel,t.selected=[r];return}const l=[];be(e.modelValue)||U(e.modelValue).forEach(n=>{l.push(ze(n))}),t.selected=l},ze=l=>{let n;const r=pt(l);for(let J=t.cachedOptions.size-1;J>=0;J--){const K=Vl.value[J];if(r?X(K.value,e.valueKey)===X(l,e.valueKey):K.value===l){n={value:l,currentLabel:K.currentLabel,get isDisabled(){return K.isDisabled}};break}}if(n)return n;const O=r?l.label:l??"";return{value:l,currentLabel:O}},Ll=()=>{t.hoveringIndex=R.value.findIndex(l=>t.selected.some(n=>ve(n)===ve(l)))},Nl=()=>{t.selectionWidth=Number.parseFloat(window.getComputedStyle(h.value).width)},Bl=()=>{t.collapseItemWidth=T.value.getBoundingClientRect().width},Ie=()=>{var l,n;(n=(l=b.value)==null?void 0:l.updatePopper)==null||n.call(l)},Ke=()=>{var l,n;(n=(l=f.value)==null?void 0:l.updatePopper)==null||n.call(l)},Ae=()=>{t.inputValue.length>0&&!y.value&&(y.value=!0),de(t.inputValue)},He=l=>{if(t.inputValue=l.target.value,e.remote)Ue();else return Ae()},Ue=Pt(()=>{Ae()},wl.value),x=l=>{oe(e.modelValue,l)||o(il,l)},Wl=l=>Ut(l,n=>{const r=t.cachedOptions.get(n);return r&&!r.disabled&&!r.states.groupDisabled}),Fl=l=>{if(e.multiple&&l.code!==ct.delete&&l.target.value.length<=0){const n=U(e.modelValue).slice(),r=Wl(n);if(r<0)return;const O=n[r];n.splice(r,1),o(Z,n),x(n),o("remove-tag",O)}},Pl=(l,n)=>{const r=t.selected.indexOf(n);if(r>-1&&!Y.value){const O=U(e.modelValue).slice();O.splice(r,1),o(Z,O),x(O),o("remove-tag",n.value)}l.stopPropagation(),fe()},je=l=>{l.stopPropagation();const n=e.multiple?[]:fl.value;if(e.multiple)for(const r of t.selected)r.isDisabled&&n.push(r.value);o(Z,n),x(n),t.hoveringIndex=-1,y.value=!1,o("clear"),fe()},Ge=l=>{var n;if(e.multiple){const r=U((n=e.modelValue)!=null?n:[]).slice(),O=qe(r,l);O>-1?r.splice(O,1):(e.multipleLimit<=0||r.length<e.multipleLimit)&&r.push(l.value),o(Z,r),x(r),l.created&&de(""),e.filterable&&!e.reserveKeyword&&(t.inputValue="")}else o(Z,l.value),x(l.value),y.value=!1;fe(),!y.value&&H(()=>{pe(l)})},qe=(l,n)=>be(n)?-1:F(n.value)?l.findIndex(r=>oe(X(r,e.valueKey),ve(n))):l.indexOf(n.value),pe=l=>{var n,r,O,$,J;const K=P(l)?l[0]:l;let me=null;if(K?.value){const ee=R.value.filter(lt=>lt.value===K.value);ee.length>0&&(me=ee[0].$el)}if(b.value&&me){const ee=($=(O=(r=(n=b.value)==null?void 0:n.popperRef)==null?void 0:r.contentRef)==null?void 0:O.querySelector)==null?void 0:$.call(O,`.${c.be("dropdown","wrap")}`);ee&&dt(ee,me)}(J=D.value)==null||J.handleScroll()},zl=l=>{t.options.set(l.value,l),t.cachedOptions.set(l.value,l)},Kl=(l,n)=>{t.options.get(l)===n&&t.options.delete(l)},Al=u(()=>{var l,n;return(n=(l=b.value)==null?void 0:l.popperRef)==null?void 0:n.contentRef}),Hl=()=>{t.isBeforeHide=!1,H(()=>{var l;(l=D.value)==null||l.update(),pe(t.selected)})},fe=()=>{var l;(l=d.value)==null||l.focus()},Ul=()=>{var l;if(y.value){y.value=!1,H(()=>{var n;return(n=d.value)==null?void 0:n.blur()});return}(l=d.value)==null||l.blur()},jl=l=>{je(l)},Gl=l=>{if(y.value=!1,Ne.value){const n=new FocusEvent("focus",l);H(()=>gl(n))}},ql=()=>{t.inputValue.length>0?t.inputValue="":y.value=!1},Qe=()=>{Y.value||(Ze&&(t.inputHovering=!0),t.menuVisibleOnFocus?t.menuVisibleOnFocus=!1:y.value=!y.value)},Ql=()=>{if(!y.value)Qe();else{const l=R.value[t.hoveringIndex];l&&!l.isDisabled&&Ge(l)}},ve=l=>F(l.value)?X(l.value,e.valueKey):l.value,Jl=u(()=>R.value.filter(l=>l.visible).every(l=>l.isDisabled)),Zl=u(()=>e.multiple?e.collapseTags?t.selected.slice(0,e.maxCollapseTags):t.selected:[]),Xl=u(()=>e.multiple?e.collapseTags?t.selected.slice(e.maxCollapseTags):[]:[]),Je=l=>{if(!y.value){y.value=!0;return}if(!(t.options.size===0||_.value===0||$e.value)&&!Jl.value){l==="next"?(t.hoveringIndex++,t.hoveringIndex===t.options.size&&(t.hoveringIndex=0)):l==="prev"&&(t.hoveringIndex--,t.hoveringIndex<0&&(t.hoveringIndex=t.options.size-1));const n=R.value[t.hoveringIndex];(n.isDisabled||!n.visible)&&Je(l),H(()=>pe(N.value))}},Yl=()=>{if(!h.value)return 0;const l=window.getComputedStyle(h.value);return Number.parseFloat(l.gap||"6px")},_l=u(()=>{const l=Yl();return{maxWidth:`${T.value&&e.maxCollapseTags===1?t.selectionWidth-t.collapseItemWidth-l:t.selectionWidth}px`}}),xl=u(()=>({maxWidth:`${t.selectionWidth}px`})),et=l=>{o("popup-scroll",l)};return Q(h,Nl),Q(p,Ie),Q(Le,Ie),Q(w,Ke),Q(T,Bl),Re(()=>{ce()}),{inputId:pl,contentId:m,nsSelect:c,nsInput:S,states:t,isFocused:Ne,expanded:y,optionsArray:R,hoverOption:N,selectSize:Fe,filteredOptionsCount:_,updateTooltip:Ie,updateTagTooltip:Ke,debouncedOnInputChange:Ue,onInput:He,deletePrevTag:Fl,deleteTag:Pl,deleteSelected:je,handleOptionSelect:Ge,scrollToOption:pe,hasModelValue:Oe,shouldShowPlaceholder:Rl,currentPlaceholder:Ml,mouseEnterEventName:$l,needStatusIcon:yl,showClose:Sl,iconComponent:Be,iconReverse:Cl,validateState:we,validateIcon:Ol,showNewOption:Tl,updateOptions:We,collapseTagSize:kl,setSelected:ce,selectDisabled:Y,emptyText:El,handleCompositionStart:ml,handleCompositionUpdate:bl,handleCompositionEnd:hl,onOptionCreate:zl,onOptionDestroy:Kl,handleMenuEnter:Hl,focus:fe,blur:Ul,handleClearClick:jl,handleClickOutside:Gl,handleEsc:ql,toggleMenu:Qe,selectOption:Ql,getValueKey:ve,navigateOptions:Je,dropdownMenuVisible:Dl,showTagList:Zl,collapseTagList:Xl,popupScroll:et,tagStyle:_l,collapseTagStyle:xl,popperRef:Al,inputRef:d,tooltipRef:b,tagTooltipRef:f,prefixRef:i,suffixRef:s,selectRef:C,wrapperRef:Le,selectionRef:h,scrollbarRef:D,menuRef:p,tagMenuRef:w,collapseItemRef:T}};var xt=re({name:"ElOptions",setup(e,{slots:o}){const a=ge(Ce);let m=[];return()=>{var c,S;const t=(c=o.default)==null?void 0:c.call(o),C=[];function h(b){P(b)&&b.forEach(f=>{var d,i,s,p;const w=(d=f?.type||{})==null?void 0:d.name;w==="ElOptionGroup"?h(!mt(f.children)&&!P(f.children)&&ne((i=f.children)==null?void 0:i.default)?(s=f.children)==null?void 0:s.default():f.children):w==="ElOption"?C.push((p=f.props)==null?void 0:p.value):P(f.children)&&h(f.children)})}return t.length&&h((S=t[0])==null?void 0:S.children),oe(C,m)||(m=C,a&&(a.states.optionValues=C)),t}}});const en=al({name:String,id:String,modelValue:{type:le([Array,String,Number,Boolean,Object]),default:void 0},autocomplete:{type:String,default:"off"},automaticDropdown:Boolean,size:yt,effect:{type:le(String),default:"light"},disabled:Boolean,clearable:Boolean,filterable:Boolean,allowCreate:Boolean,loading:Boolean,popperClass:{type:String,default:""},popperOptions:{type:le(Object),default:()=>({})},remote:Boolean,loadingText:String,noMatchText:String,noDataText:String,remoteMethod:Function,filterMethod:Function,multiple:Boolean,multipleLimit:{type:Number,default:0},placeholder:{type:String},defaultFirstOption:Boolean,reserveKeyword:{type:Boolean,default:!0},valueKey:{type:String,default:"value"},collapseTags:Boolean,collapseTagsTooltip:Boolean,maxCollapseTags:{type:Number,default:1},teleported:tl.teleported,persistent:{type:Boolean,default:!0},clearIcon:{type:_e,default:gt},fitInputWidth:Boolean,suffixIcon:{type:_e,default:ht},tagType:{...Ye.type,default:"info"},tagEffect:{...Ye.effect,default:"light"},validateEvent:{type:Boolean,default:!0},remoteShowSuffix:Boolean,showArrow:{type:Boolean,default:!0},offset:{type:Number,default:12},placement:{type:le(String),values:kt,default:"bottom-start"},fallbackPlacements:{type:le(Array),default:["bottom-start","top-start","right","left"]},tabindex:{type:[String,Number],default:0},appendTo:tl.appendTo,...bt,...Kt(["ariaLabel"])});Rt.scroll;const nl="ElSelect",ln=re({name:nl,componentName:nl,components:{ElSelectMenu:Yt,ElOption:Me,ElOptions:xt,ElTag:It,ElScrollbar:Mt,ElTooltip:Dt,ElIcon:wt},directives:{ClickOutside:At},props:en,emits:[Z,il,"remove-tag","clear","visible-change","focus","blur","popup-scroll"],setup(e,{emit:o,slots:a}){const m=ye();m.appContext.config.warnHandler=(...i)=>{!i[0]||i[0].includes('Slot "default" invoked outside of the render function')||console.warn(...i)};const c=u(()=>{const{modelValue:i,multiple:s}=e,p=s?[]:void 0;return P(i)?s?i:p:s?p:i}),S=ie({...De(e),modelValue:c}),t=_t(S,o),{calculatorRef:C,inputStyle:h}=jt(),b=i=>i.reduce((s,p)=>(s.push(p),p.children&&p.children.length>0&&s.push(...b(p.children)),s),[]),f=i=>{Et(i||[]).forEach(p=>{var w;if(F(p)&&(p.type.name==="ElOption"||p.type.name==="ElTree")){const T=p.type.name;if(T==="ElTree"){const D=((w=p.props)==null?void 0:w.data)||[];b(D).forEach(N=>{N.currentLabel=N.label||(F(N.value)?"":N.value),t.onOptionCreate(N)})}else if(T==="ElOption"){const D={...p.props};D.currentLabel=D.label||(F(D.value)?"":D.value),t.onOptionCreate(D)}}})};j(()=>{var i;return(i=a.default)==null?void 0:i.call(a)},i=>{e.persistent||f(i)},{immediate:!0}),rl(Ce,ie({props:S,states:t.states,selectRef:t.selectRef,optionsArray:t.optionsArray,setSelected:t.setSelected,handleOptionSelect:t.handleOptionSelect,onOptionCreate:t.onOptionCreate,onOptionDestroy:t.onOptionDestroy}));const d=u(()=>e.multiple?t.states.selected.map(i=>i.currentLabel):t.states.selectedLabel);return sl(()=>{m.appContext.config.warnHandler=void 0}),{...t,modelValue:c,selectedLabel:d,calculatorRef:C,inputStyle:h}}});function tn(e,o){const a=G("el-tag"),m=G("el-tooltip"),c=G("el-icon"),S=G("el-option"),t=G("el-options"),C=G("el-scrollbar"),h=G("el-select-menu"),b=St("click-outside");return ae((g(),I("div",{ref:"selectRef",class:v([e.nsSelect.b(),e.nsSelect.m(e.selectSize)]),[Ot(e.mouseEnterEventName)]:f=>e.states.inputHovering=!0,onMouseleave:f=>e.states.inputHovering=!1},[q(m,{ref:"tooltipRef",visible:e.dropdownMenuVisible,placement:e.placement,teleported:e.teleported,"popper-class":[e.nsSelect.e("popper"),e.popperClass],"popper-options":e.popperOptions,"fallback-placements":e.fallbackPlacements,effect:e.effect,pure:"",trigger:"click",transition:`${e.nsSelect.namespace.value}-zoom-in-top`,"stop-popper-mouse-event":!1,"gpu-acceleration":!1,persistent:e.persistent,"append-to":e.appendTo,"show-arrow":e.showArrow,offset:e.offset,onBeforeShow:e.handleMenuEnter,onHide:f=>e.states.isBeforeHide=!1},{default:L(()=>{var f;return[V("div",{ref:"wrapperRef",class:v([e.nsSelect.e("wrapper"),e.nsSelect.is("focused",e.isFocused),e.nsSelect.is("hovering",e.states.inputHovering),e.nsSelect.is("filterable",e.filterable),e.nsSelect.is("disabled",e.selectDisabled)]),onClick:B(e.toggleMenu,["prevent"])},[e.$slots.prefix?(g(),I("div",{key:0,ref:"prefixRef",class:v(e.nsSelect.e("prefix"))},[k(e.$slots,"prefix")],2)):M("v-if",!0),V("div",{ref:"selectionRef",class:v([e.nsSelect.e("selection"),e.nsSelect.is("near",e.multiple&&!e.$slots.prefix&&!!e.states.selected.length)])},[e.multiple?k(e.$slots,"tag",{key:0,data:e.states.selected,deleteTag:e.deleteTag,selectDisabled:e.selectDisabled},()=>[(g(!0),I(xe,null,el(e.showTagList,d=>(g(),I("div",{key:e.getValueKey(d),class:v(e.nsSelect.e("selected-item"))},[q(a,{closable:!e.selectDisabled&&!d.isDisabled,size:e.collapseTagSize,type:e.tagType,effect:e.tagEffect,"disable-transitions":"",style:he(e.tagStyle),onClose:i=>e.deleteTag(i,d)},{default:L(()=>[V("span",{class:v(e.nsSelect.e("tags-text"))},[k(e.$slots,"label",{label:d.currentLabel,value:d.value},()=>[ll(W(d.currentLabel),1)])],2)]),_:2},1032,["closable","size","type","effect","style","onClose"])],2))),128)),e.collapseTags&&e.states.selected.length>e.maxCollapseTags?(g(),A(m,{key:0,ref:"tagTooltipRef",disabled:e.dropdownMenuVisible||!e.collapseTagsTooltip,"fallback-placements":["bottom","top","right","left"],effect:e.effect,placement:"bottom","popper-class":e.popperClass,teleported:e.teleported},{default:L(()=>[V("div",{ref:"collapseItemRef",class:v(e.nsSelect.e("selected-item"))},[q(a,{closable:!1,size:e.collapseTagSize,type:e.tagType,effect:e.tagEffect,"disable-transitions":"",style:he(e.collapseTagStyle)},{default:L(()=>[V("span",{class:v(e.nsSelect.e("tags-text"))}," + "+W(e.states.selected.length-e.maxCollapseTags),3)]),_:1},8,["size","type","effect","style"])],2)]),content:L(()=>[V("div",{ref:"tagMenuRef",class:v(e.nsSelect.e("selection"))},[(g(!0),I(xe,null,el(e.collapseTagList,d=>(g(),I("div",{key:e.getValueKey(d),class:v(e.nsSelect.e("selected-item"))},[q(a,{class:"in-tooltip",closable:!e.selectDisabled&&!d.isDisabled,size:e.collapseTagSize,type:e.tagType,effect:e.tagEffect,"disable-transitions":"",onClose:i=>e.deleteTag(i,d)},{default:L(()=>[V("span",{class:v(e.nsSelect.e("tags-text"))},[k(e.$slots,"label",{label:d.currentLabel,value:d.value},()=>[ll(W(d.currentLabel),1)])],2)]),_:2},1032,["closable","size","type","effect","onClose"])],2))),128))],2)]),_:3},8,["disabled","effect","popper-class","teleported"])):M("v-if",!0)]):M("v-if",!0),V("div",{class:v([e.nsSelect.e("selected-item"),e.nsSelect.e("input-wrapper"),e.nsSelect.is("hidden",!e.filterable)])},[ae(V("input",{id:e.inputId,ref:"inputRef","onUpdate:modelValue":d=>e.states.inputValue=d,type:"text",name:e.name,class:v([e.nsSelect.e("input"),e.nsSelect.is(e.selectSize)]),disabled:e.selectDisabled,autocomplete:e.autocomplete,style:he(e.inputStyle),tabindex:e.tabindex,role:"combobox",readonly:!e.filterable,spellcheck:"false","aria-activedescendant":((f=e.hoverOption)==null?void 0:f.id)||"","aria-controls":e.contentId,"aria-expanded":e.dropdownMenuVisible,"aria-label":e.ariaLabel,"aria-autocomplete":"none","aria-haspopup":"listbox",onKeydown:[te(B(d=>e.navigateOptions("next"),["stop","prevent"]),["down"]),te(B(d=>e.navigateOptions("prev"),["stop","prevent"]),["up"]),te(B(e.handleEsc,["stop","prevent"]),["esc"]),te(B(e.selectOption,["stop","prevent"]),["enter"]),te(B(e.deletePrevTag,["stop"]),["delete"])],onCompositionstart:e.handleCompositionStart,onCompositionupdate:e.handleCompositionUpdate,onCompositionend:e.handleCompositionEnd,onInput:e.onInput,onClick:B(e.toggleMenu,["stop"])},null,46,["id","onUpdate:modelValue","name","disabled","autocomplete","tabindex","readonly","aria-activedescendant","aria-controls","aria-expanded","aria-label","onKeydown","onCompositionstart","onCompositionupdate","onCompositionend","onInput","onClick"]),[[Ct,e.states.inputValue]]),e.filterable?(g(),I("span",{key:0,ref:"calculatorRef","aria-hidden":"true",class:v(e.nsSelect.e("input-calculator")),textContent:W(e.states.inputValue)},null,10,["textContent"])):M("v-if",!0)],2),e.shouldShowPlaceholder?(g(),I("div",{key:1,class:v([e.nsSelect.e("selected-item"),e.nsSelect.e("placeholder"),e.nsSelect.is("transparent",!e.hasModelValue||e.expanded&&!e.states.inputValue)])},[e.hasModelValue?k(e.$slots,"label",{key:0,label:e.currentPlaceholder,value:e.modelValue},()=>[V("span",null,W(e.currentPlaceholder),1)]):(g(),I("span",{key:1},W(e.currentPlaceholder),1))],2)):M("v-if",!0)],2),V("div",{ref:"suffixRef",class:v(e.nsSelect.e("suffix"))},[e.iconComponent&&!e.showClose?(g(),A(c,{key:0,class:v([e.nsSelect.e("caret"),e.nsSelect.e("icon"),e.iconReverse])},{default:L(()=>[(g(),A(Ve(e.iconComponent)))]),_:1},8,["class"])):M("v-if",!0),e.showClose&&e.clearIcon?(g(),A(c,{key:1,class:v([e.nsSelect.e("caret"),e.nsSelect.e("icon"),e.nsSelect.e("clear")]),onClick:e.handleClearClick},{default:L(()=>[(g(),A(Ve(e.clearIcon)))]),_:1},8,["class","onClick"])):M("v-if",!0),e.validateState&&e.validateIcon&&e.needStatusIcon?(g(),A(c,{key:2,class:v([e.nsInput.e("icon"),e.nsInput.e("validateIcon"),e.nsInput.is("loading",e.validateState==="validating")])},{default:L(()=>[(g(),A(Ve(e.validateIcon)))]),_:1},8,["class"])):M("v-if",!0)],2)],10,["onClick"])]}),content:L(()=>[q(h,{ref:"menuRef"},{default:L(()=>[e.$slots.header?(g(),I("div",{key:0,class:v(e.nsSelect.be("dropdown","header")),onClick:B(()=>{},["stop"])},[k(e.$slots,"header")],10,["onClick"])):M("v-if",!0),ae(q(C,{id:e.contentId,ref:"scrollbarRef",tag:"ul","wrap-class":e.nsSelect.be("dropdown","wrap"),"view-class":e.nsSelect.be("dropdown","list"),class:v([e.nsSelect.is("empty",e.filteredOptionsCount===0)]),role:"listbox","aria-label":e.ariaLabel,"aria-orientation":"vertical",onScroll:e.popupScroll},{default:L(()=>[e.showNewOption?(g(),A(S,{key:0,value:e.states.inputValue,created:!0},null,8,["value"])):M("v-if",!0),q(t,null,{default:L(()=>[k(e.$slots,"default")]),_:3})]),_:3},8,["id","wrap-class","view-class","class","aria-label","onScroll"]),[[ke,e.states.options.size>0&&!e.loading]]),e.$slots.loading&&e.loading?(g(),I("div",{key:1,class:v(e.nsSelect.be("dropdown","loading"))},[k(e.$slots,"loading")],2)):e.loading||e.filteredOptionsCount===0?(g(),I("div",{key:2,class:v(e.nsSelect.be("dropdown","empty"))},[k(e.$slots,"empty",{},()=>[V("span",null,W(e.emptyText),1)])],2)):M("v-if",!0),e.$slots.footer?(g(),I("div",{key:3,class:v(e.nsSelect.be("dropdown","footer")),onClick:B(()=>{},["stop"])},[k(e.$slots,"footer")],10,["onClick"])):M("v-if",!0)]),_:3},512)]),_:3},8,["visible","placement","teleported","popper-class","popper-options","fallback-placements","effect","transition","persistent","append-to","show-arrow","offset","onBeforeShow","onHide"])],16,["onMouseleave"])),[[b,e.handleClickOutside,e.popperRef]])}var nn=Se(ln,[["render",tn],["__file","select.vue"]]);const an=re({name:"ElOptionGroup",componentName:"ElOptionGroup",props:{label:String,disabled:Boolean},setup(e){const o=se("select"),a=E(),m=ye(),c=E([]);rl(dl,ie({...De(e)}));const S=u(()=>c.value.some(b=>b.visible===!0)),t=b=>{var f;return b.type.name==="ElOption"&&!!((f=b.component)!=null&&f.proxy)},C=b=>{const f=U(b),d=[];return f.forEach(i=>{var s;Vt(i)&&(t(i)?d.push(i.component.proxy):P(i.children)&&i.children.length?d.push(...C(i.children)):(s=i.component)!=null&&s.subTree&&d.push(...C(i.component.subTree)))}),d},h=()=>{c.value=C(m.subTree)};return Re(()=>{h()}),Lt(a,h,{attributes:!0,subtree:!0,childList:!0}),{groupRef:a,visible:S,ns:o}}});function on(e,o,a,m,c,S){return ae((g(),I("ul",{ref:"groupRef",class:v(e.ns.be("group","wrap"))},[V("li",{class:v(e.ns.be("group","title"))},W(e.label),3),V("li",null,[V("ul",{class:v(e.ns.b("group"))},[k(e.$slots,"default")],2)])],2)),[[ke,e.visible]])}var cl=Se(an,[["render",on],["__file","option-group.vue"]]);const Sn=Tt(nn,{Option:Me,OptionGroup:cl}),Cn=ul(Me);ul(cl);export{Cn as E,Sn as a};
1
+ import{aC as tt,al as E,c as u,aj as al,an as ge,bE as nt,as as F,d0 as at,cZ as X,aw as j,aK as ye,_ as Se,d as re,J as ae,K as ke,b as I,o as g,r as k,t as V,x as W,ah as B,n as v,a as se,aW as ol,e as Ee,ca as De,bG as ie,ao as sl,bc as H,y as M,f as he,av as Re,b1 as ot,d2 as st,aN as P,ck as it,bo as rt,bF as be,bx as Ze,bJ as ut,aL as ne,bN as Xe,d3 as dt,ch as Z,aI as ct,cs as pt,cg as il,aB as ft,ak as vt,bh as mt,d4 as bt,ap as le,d5 as Ye,A as ht,bI as _e,cn as gt,bS as yt,l as G,cN as St,k as q,j as L,i as A,F as xe,v as el,D as ll,c8 as te,d6 as Ct,b8 as Ve,d7 as Ot,E as wt,c7 as It,am as rl,bK as Et,cz as Vt,w as ul,g as Tt}from"./index-BPxi9ga3.js";import{u as tl,b as kt,E as Dt}from"./index-CcHXhRSM.js";import{s as Rt,E as Mt}from"./index-DBGyP5fo.js";import{e as $t}from"./strings-Dx5Ed-QV.js";import{c as U}from"./castArray-BUMlMGlh.js";import{i as oe}from"./isEqual-DCq9iBB-.js";import{b as Q,d as Lt}from"./typescript--c8-UPe1.js";import{u as Nt,a as Bt}from"./use-form-item-Dix3-pV7.js";import{u as Wt,a as Ft}from"./index-D2XucFi1.js";import{d as Pt}from"./debounce-DECFekgp.js";import{b as zt}from"./_baseIteratee-CcPXMZX8.js";import{u as Kt}from"./index-DdsTi3DP.js";import{C as At}from"./index-BNR4FIDg.js";function Ht(e,o,a,m){e.length;for(var c=a+1;c--;)if(o(e[c],c,e))return c;return-1}function Ut(e,o,a){var m=e==null?0:e.length;if(!m)return-1;var c=m-1;return Ht(e,zt(o),c)}function jt(){const e=tt(),o=E(0),a=11,m=u(()=>({minWidth:`${Math.max(o.value,a)}px`}));return Q(e,()=>{var S,t;o.value=(t=(S=e.value)==null?void 0:S.getBoundingClientRect().width)!=null?t:0}),{calculatorRef:e,calculatorWidth:o,inputStyle:m}}const dl=Symbol("ElSelectGroup"),Ce=Symbol("ElSelect"),Te="ElOption",Gt=al({value:{type:[String,Number,Boolean,Object],required:!0},label:{type:[String,Number]},created:Boolean,disabled:Boolean});function qt(e,o){const a=ge(Ce);a||nt(Te,"usage: <el-select><el-option /></el-select/>");const m=ge(dl,{disabled:!1}),c=u(()=>f(U(a.props.modelValue),e.value)),S=u(()=>{var s;if(a.props.multiple){const p=U((s=a.props.modelValue)!=null?s:[]);return!c.value&&p.length>=a.props.multipleLimit&&a.props.multipleLimit>0}else return!1}),t=u(()=>{var s;return(s=e.label)!=null?s:F(e.value)?"":e.value}),C=u(()=>e.value||e.label||""),h=u(()=>e.disabled||o.groupDisabled||S.value),b=ye(),f=(s=[],p)=>{if(F(e.value)){const w=a.props.valueKey;return s&&s.some(T=>at(X(T,w))===X(p,w))}else return s&&s.includes(p)},d=()=>{!e.disabled&&!m.disabled&&(a.states.hoveringIndex=a.optionsArray.indexOf(b.proxy))},i=s=>{const p=new RegExp($t(s),"i");o.visible=p.test(String(t.value))||e.created};return j(()=>t.value,()=>{!e.created&&!a.props.remote&&a.setSelected()}),j(()=>e.value,(s,p)=>{const{remote:w,valueKey:T}=a.props;if((w?s!==p:!oe(s,p))&&(a.onOptionDestroy(p,b.proxy),a.onOptionCreate(b.proxy)),!e.created&&!w){if(T&&F(s)&&F(p)&&s[T]===p[T])return;a.setSelected()}}),j(()=>m.disabled,()=>{o.groupDisabled=m.disabled},{immediate:!0}),{select:a,currentLabel:t,currentValue:C,itemSelected:c,isDisabled:h,hoverItem:d,updateOption:i}}const Qt=re({name:Te,componentName:Te,props:Gt,setup(e){const o=se("select"),a=ol(),m=u(()=>[o.be("dropdown","item"),o.is("disabled",Ee(C)),o.is("selected",Ee(t)),o.is("hovering",Ee(i))]),c=ie({index:-1,groupDisabled:!1,visible:!0,hover:!1}),{currentLabel:S,itemSelected:t,isDisabled:C,select:h,hoverItem:b,updateOption:f}=qt(e,c),{visible:d,hover:i}=De(c),s=ye().proxy;h.onOptionCreate(s),sl(()=>{const w=s.value,{selected:T}=h.states,D=T.some(y=>y.value===s.value);H(()=>{h.states.cachedOptions.get(w)===s&&!D&&h.states.cachedOptions.delete(w)}),h.onOptionDestroy(w,s)});function p(){C.value||h.handleOptionSelect(s)}return{ns:o,id:a,containerKls:m,currentLabel:S,itemSelected:t,isDisabled:C,select:h,visible:d,hover:i,states:c,hoverItem:b,updateOption:f,selectOptionClick:p}}});function Jt(e,o){return ae((g(),I("li",{id:e.id,class:v(e.containerKls),role:"option","aria-disabled":e.isDisabled||void 0,"aria-selected":e.itemSelected,onMousemove:e.hoverItem,onClick:B(e.selectOptionClick,["stop"])},[k(e.$slots,"default",{},()=>[V("span",null,W(e.currentLabel),1)])],42,["id","aria-disabled","aria-selected","onMousemove","onClick"])),[[ke,e.visible]])}var Me=Se(Qt,[["render",Jt],["__file","option.vue"]]);const Zt=re({name:"ElSelectDropdown",componentName:"ElSelectDropdown",setup(){const e=ge(Ce),o=se("select"),a=u(()=>e.props.popperClass),m=u(()=>e.props.multiple),c=u(()=>e.props.fitInputWidth),S=E("");function t(){var C;S.value=`${(C=e.selectRef)==null?void 0:C.offsetWidth}px`}return Re(()=>{t(),Q(e.selectRef,t)}),{ns:o,minWidth:S,popperClass:a,isMultiple:m,isFitInputWidth:c}}});function Xt(e,o,a,m,c,S){return g(),I("div",{class:v([e.ns.b("dropdown"),e.ns.is("multiple",e.isMultiple),e.popperClass]),style:he({[e.isFitInputWidth?"width":"minWidth"]:e.minWidth})},[e.$slots.header?(g(),I("div",{key:0,class:v(e.ns.be("dropdown","header"))},[k(e.$slots,"header")],2)):M("v-if",!0),k(e.$slots,"default"),e.$slots.footer?(g(),I("div",{key:1,class:v(e.ns.be("dropdown","footer"))},[k(e.$slots,"footer")],2)):M("v-if",!0)],6)}var Yt=Se(Zt,[["render",Xt],["__file","select-dropdown.vue"]]);const _t=(e,o)=>{const{t:a}=ot(),m=ol(),c=se("select"),S=se("input"),t=ie({inputValue:"",options:new Map,cachedOptions:new Map,optionValues:[],selected:[],selectionWidth:0,collapseItemWidth:0,selectedLabel:"",hoveringIndex:-1,previousQuery:null,inputHovering:!1,menuVisibleOnFocus:!1,isBeforeHide:!1}),C=E(),h=E(),b=E(),f=E(),d=E(),i=E(),s=E(),p=E(),w=E(),T=E(),D=E(),y=E(!1),N=E(),{form:ue,formItem:z}=Nt(),{inputId:pl}=Bt(e,{formItemContext:z}),{valueOnClear:fl,isEmptyValue:vl}=st(e),{isComposing:$e,handleCompositionStart:ml,handleCompositionUpdate:bl,handleCompositionEnd:hl}=Wt({afterComposition:l=>He(l)}),Y=u(()=>e.disabled||!!ue?.disabled),{wrapperRef:Le,isFocused:Ne,handleBlur:gl}=Ft(d,{disabled:Y,afterFocus(){e.automaticDropdown&&!y.value&&(y.value=!0,t.menuVisibleOnFocus=!0)},beforeBlur(l){var n,r;return((n=b.value)==null?void 0:n.isFocusInsideContent(l))||((r=f.value)==null?void 0:r.isFocusInsideContent(l))},afterBlur(){var l;y.value=!1,t.menuVisibleOnFocus=!1,e.validateEvent&&((l=z?.validate)==null||l.call(z,"blur").catch(n=>Xe()))}}),Oe=u(()=>P(e.modelValue)?e.modelValue.length>0:!vl(e.modelValue)),yl=u(()=>{var l;return(l=ue?.statusIcon)!=null?l:!1}),Sl=u(()=>e.clearable&&!Y.value&&t.inputHovering&&Oe.value),Be=u(()=>e.remote&&e.filterable&&!e.remoteShowSuffix?"":e.suffixIcon),Cl=u(()=>c.is("reverse",!!(Be.value&&y.value))),we=u(()=>z?.validateState||""),Ol=u(()=>we.value&&it[we.value]),wl=u(()=>e.remote?300:0),Il=u(()=>e.remote&&!t.inputValue&&t.options.size===0),El=u(()=>e.loading?e.loadingText||a("el.select.loading"):e.filterable&&t.inputValue&&t.options.size>0&&_.value===0?e.noMatchText||a("el.select.noMatch"):t.options.size===0?e.noDataText||a("el.select.noData"):null),_=u(()=>R.value.filter(l=>l.visible).length),R=u(()=>{const l=Array.from(t.options.values()),n=[];return t.optionValues.forEach(r=>{const O=l.findIndex($=>$.value===r);O>-1&&n.push(l[O])}),n.length>=l.length?n:l}),Vl=u(()=>Array.from(t.cachedOptions.values())),Tl=u(()=>{const l=R.value.filter(n=>!n.created).some(n=>n.currentLabel===t.inputValue);return e.filterable&&e.allowCreate&&t.inputValue!==""&&!l}),We=()=>{e.filterable&&ne(e.filterMethod)||e.filterable&&e.remote&&ne(e.remoteMethod)||R.value.forEach(l=>{var n;(n=l.updateOption)==null||n.call(l,t.inputValue)})},Fe=rt(),kl=u(()=>["small"].includes(Fe.value)?"small":"default"),Dl=u({get(){return y.value&&!Il.value},set(l){y.value=l}}),Rl=u(()=>{if(e.multiple&&!be(e.modelValue))return U(e.modelValue).length===0&&!t.inputValue;const l=P(e.modelValue)?e.modelValue[0]:e.modelValue;return e.filterable||be(l)?!t.inputValue:!0}),Ml=u(()=>{var l;const n=(l=e.placeholder)!=null?l:a("el.select.placeholder");return e.multiple||!Oe.value?n:t.selectedLabel}),$l=u(()=>Ze?null:"mouseenter");j(()=>e.modelValue,(l,n)=>{e.multiple&&e.filterable&&!e.reserveKeyword&&(t.inputValue="",de("")),ce(),!oe(l,n)&&e.validateEvent&&z?.validate("change").catch(r=>Xe())},{flush:"post",deep:!0}),j(()=>y.value,l=>{l?de(t.inputValue):(t.inputValue="",t.previousQuery=null,t.isBeforeHide=!0),o("visible-change",l)}),j(()=>t.options.entries(),()=>{ft&&(ce(),e.defaultFirstOption&&(e.filterable||e.remote)&&_.value&&Pe())},{flush:"post"}),j([()=>t.hoveringIndex,R],([l])=>{vt(l)&&l>-1?N.value=R.value[l]||{}:N.value={},R.value.forEach(n=>{n.hover=N.value===n})}),ut(()=>{t.isBeforeHide||We()});const de=l=>{t.previousQuery===l||$e.value||(t.previousQuery=l,e.filterable&&ne(e.filterMethod)?e.filterMethod(l):e.filterable&&e.remote&&ne(e.remoteMethod)&&e.remoteMethod(l),e.defaultFirstOption&&(e.filterable||e.remote)&&_.value?H(Pe):H(Ll))},Pe=()=>{const l=R.value.filter($=>$.visible&&!$.disabled&&!$.states.groupDisabled),n=l.find($=>$.created),r=l[0],O=R.value.map($=>$.value);t.hoveringIndex=qe(O,n||r)},ce=()=>{if(e.multiple)t.selectedLabel="";else{const n=P(e.modelValue)?e.modelValue[0]:e.modelValue,r=ze(n);t.selectedLabel=r.currentLabel,t.selected=[r];return}const l=[];be(e.modelValue)||U(e.modelValue).forEach(n=>{l.push(ze(n))}),t.selected=l},ze=l=>{let n;const r=pt(l);for(let J=t.cachedOptions.size-1;J>=0;J--){const K=Vl.value[J];if(r?X(K.value,e.valueKey)===X(l,e.valueKey):K.value===l){n={value:l,currentLabel:K.currentLabel,get isDisabled(){return K.isDisabled}};break}}if(n)return n;const O=r?l.label:l??"";return{value:l,currentLabel:O}},Ll=()=>{t.hoveringIndex=R.value.findIndex(l=>t.selected.some(n=>ve(n)===ve(l)))},Nl=()=>{t.selectionWidth=Number.parseFloat(window.getComputedStyle(h.value).width)},Bl=()=>{t.collapseItemWidth=T.value.getBoundingClientRect().width},Ie=()=>{var l,n;(n=(l=b.value)==null?void 0:l.updatePopper)==null||n.call(l)},Ke=()=>{var l,n;(n=(l=f.value)==null?void 0:l.updatePopper)==null||n.call(l)},Ae=()=>{t.inputValue.length>0&&!y.value&&(y.value=!0),de(t.inputValue)},He=l=>{if(t.inputValue=l.target.value,e.remote)Ue();else return Ae()},Ue=Pt(()=>{Ae()},wl.value),x=l=>{oe(e.modelValue,l)||o(il,l)},Wl=l=>Ut(l,n=>{const r=t.cachedOptions.get(n);return r&&!r.disabled&&!r.states.groupDisabled}),Fl=l=>{if(e.multiple&&l.code!==ct.delete&&l.target.value.length<=0){const n=U(e.modelValue).slice(),r=Wl(n);if(r<0)return;const O=n[r];n.splice(r,1),o(Z,n),x(n),o("remove-tag",O)}},Pl=(l,n)=>{const r=t.selected.indexOf(n);if(r>-1&&!Y.value){const O=U(e.modelValue).slice();O.splice(r,1),o(Z,O),x(O),o("remove-tag",n.value)}l.stopPropagation(),fe()},je=l=>{l.stopPropagation();const n=e.multiple?[]:fl.value;if(e.multiple)for(const r of t.selected)r.isDisabled&&n.push(r.value);o(Z,n),x(n),t.hoveringIndex=-1,y.value=!1,o("clear"),fe()},Ge=l=>{var n;if(e.multiple){const r=U((n=e.modelValue)!=null?n:[]).slice(),O=qe(r,l);O>-1?r.splice(O,1):(e.multipleLimit<=0||r.length<e.multipleLimit)&&r.push(l.value),o(Z,r),x(r),l.created&&de(""),e.filterable&&!e.reserveKeyword&&(t.inputValue="")}else o(Z,l.value),x(l.value),y.value=!1;fe(),!y.value&&H(()=>{pe(l)})},qe=(l,n)=>be(n)?-1:F(n.value)?l.findIndex(r=>oe(X(r,e.valueKey),ve(n))):l.indexOf(n.value),pe=l=>{var n,r,O,$,J;const K=P(l)?l[0]:l;let me=null;if(K?.value){const ee=R.value.filter(lt=>lt.value===K.value);ee.length>0&&(me=ee[0].$el)}if(b.value&&me){const ee=($=(O=(r=(n=b.value)==null?void 0:n.popperRef)==null?void 0:r.contentRef)==null?void 0:O.querySelector)==null?void 0:$.call(O,`.${c.be("dropdown","wrap")}`);ee&&dt(ee,me)}(J=D.value)==null||J.handleScroll()},zl=l=>{t.options.set(l.value,l),t.cachedOptions.set(l.value,l)},Kl=(l,n)=>{t.options.get(l)===n&&t.options.delete(l)},Al=u(()=>{var l,n;return(n=(l=b.value)==null?void 0:l.popperRef)==null?void 0:n.contentRef}),Hl=()=>{t.isBeforeHide=!1,H(()=>{var l;(l=D.value)==null||l.update(),pe(t.selected)})},fe=()=>{var l;(l=d.value)==null||l.focus()},Ul=()=>{var l;if(y.value){y.value=!1,H(()=>{var n;return(n=d.value)==null?void 0:n.blur()});return}(l=d.value)==null||l.blur()},jl=l=>{je(l)},Gl=l=>{if(y.value=!1,Ne.value){const n=new FocusEvent("focus",l);H(()=>gl(n))}},ql=()=>{t.inputValue.length>0?t.inputValue="":y.value=!1},Qe=()=>{Y.value||(Ze&&(t.inputHovering=!0),t.menuVisibleOnFocus?t.menuVisibleOnFocus=!1:y.value=!y.value)},Ql=()=>{if(!y.value)Qe();else{const l=R.value[t.hoveringIndex];l&&!l.isDisabled&&Ge(l)}},ve=l=>F(l.value)?X(l.value,e.valueKey):l.value,Jl=u(()=>R.value.filter(l=>l.visible).every(l=>l.isDisabled)),Zl=u(()=>e.multiple?e.collapseTags?t.selected.slice(0,e.maxCollapseTags):t.selected:[]),Xl=u(()=>e.multiple?e.collapseTags?t.selected.slice(e.maxCollapseTags):[]:[]),Je=l=>{if(!y.value){y.value=!0;return}if(!(t.options.size===0||_.value===0||$e.value)&&!Jl.value){l==="next"?(t.hoveringIndex++,t.hoveringIndex===t.options.size&&(t.hoveringIndex=0)):l==="prev"&&(t.hoveringIndex--,t.hoveringIndex<0&&(t.hoveringIndex=t.options.size-1));const n=R.value[t.hoveringIndex];(n.isDisabled||!n.visible)&&Je(l),H(()=>pe(N.value))}},Yl=()=>{if(!h.value)return 0;const l=window.getComputedStyle(h.value);return Number.parseFloat(l.gap||"6px")},_l=u(()=>{const l=Yl();return{maxWidth:`${T.value&&e.maxCollapseTags===1?t.selectionWidth-t.collapseItemWidth-l:t.selectionWidth}px`}}),xl=u(()=>({maxWidth:`${t.selectionWidth}px`})),et=l=>{o("popup-scroll",l)};return Q(h,Nl),Q(p,Ie),Q(Le,Ie),Q(w,Ke),Q(T,Bl),Re(()=>{ce()}),{inputId:pl,contentId:m,nsSelect:c,nsInput:S,states:t,isFocused:Ne,expanded:y,optionsArray:R,hoverOption:N,selectSize:Fe,filteredOptionsCount:_,updateTooltip:Ie,updateTagTooltip:Ke,debouncedOnInputChange:Ue,onInput:He,deletePrevTag:Fl,deleteTag:Pl,deleteSelected:je,handleOptionSelect:Ge,scrollToOption:pe,hasModelValue:Oe,shouldShowPlaceholder:Rl,currentPlaceholder:Ml,mouseEnterEventName:$l,needStatusIcon:yl,showClose:Sl,iconComponent:Be,iconReverse:Cl,validateState:we,validateIcon:Ol,showNewOption:Tl,updateOptions:We,collapseTagSize:kl,setSelected:ce,selectDisabled:Y,emptyText:El,handleCompositionStart:ml,handleCompositionUpdate:bl,handleCompositionEnd:hl,onOptionCreate:zl,onOptionDestroy:Kl,handleMenuEnter:Hl,focus:fe,blur:Ul,handleClearClick:jl,handleClickOutside:Gl,handleEsc:ql,toggleMenu:Qe,selectOption:Ql,getValueKey:ve,navigateOptions:Je,dropdownMenuVisible:Dl,showTagList:Zl,collapseTagList:Xl,popupScroll:et,tagStyle:_l,collapseTagStyle:xl,popperRef:Al,inputRef:d,tooltipRef:b,tagTooltipRef:f,prefixRef:i,suffixRef:s,selectRef:C,wrapperRef:Le,selectionRef:h,scrollbarRef:D,menuRef:p,tagMenuRef:w,collapseItemRef:T}};var xt=re({name:"ElOptions",setup(e,{slots:o}){const a=ge(Ce);let m=[];return()=>{var c,S;const t=(c=o.default)==null?void 0:c.call(o),C=[];function h(b){P(b)&&b.forEach(f=>{var d,i,s,p;const w=(d=f?.type||{})==null?void 0:d.name;w==="ElOptionGroup"?h(!mt(f.children)&&!P(f.children)&&ne((i=f.children)==null?void 0:i.default)?(s=f.children)==null?void 0:s.default():f.children):w==="ElOption"?C.push((p=f.props)==null?void 0:p.value):P(f.children)&&h(f.children)})}return t.length&&h((S=t[0])==null?void 0:S.children),oe(C,m)||(m=C,a&&(a.states.optionValues=C)),t}}});const en=al({name:String,id:String,modelValue:{type:le([Array,String,Number,Boolean,Object]),default:void 0},autocomplete:{type:String,default:"off"},automaticDropdown:Boolean,size:yt,effect:{type:le(String),default:"light"},disabled:Boolean,clearable:Boolean,filterable:Boolean,allowCreate:Boolean,loading:Boolean,popperClass:{type:String,default:""},popperOptions:{type:le(Object),default:()=>({})},remote:Boolean,loadingText:String,noMatchText:String,noDataText:String,remoteMethod:Function,filterMethod:Function,multiple:Boolean,multipleLimit:{type:Number,default:0},placeholder:{type:String},defaultFirstOption:Boolean,reserveKeyword:{type:Boolean,default:!0},valueKey:{type:String,default:"value"},collapseTags:Boolean,collapseTagsTooltip:Boolean,maxCollapseTags:{type:Number,default:1},teleported:tl.teleported,persistent:{type:Boolean,default:!0},clearIcon:{type:_e,default:gt},fitInputWidth:Boolean,suffixIcon:{type:_e,default:ht},tagType:{...Ye.type,default:"info"},tagEffect:{...Ye.effect,default:"light"},validateEvent:{type:Boolean,default:!0},remoteShowSuffix:Boolean,showArrow:{type:Boolean,default:!0},offset:{type:Number,default:12},placement:{type:le(String),values:kt,default:"bottom-start"},fallbackPlacements:{type:le(Array),default:["bottom-start","top-start","right","left"]},tabindex:{type:[String,Number],default:0},appendTo:tl.appendTo,...bt,...Kt(["ariaLabel"])});Rt.scroll;const nl="ElSelect",ln=re({name:nl,componentName:nl,components:{ElSelectMenu:Yt,ElOption:Me,ElOptions:xt,ElTag:It,ElScrollbar:Mt,ElTooltip:Dt,ElIcon:wt},directives:{ClickOutside:At},props:en,emits:[Z,il,"remove-tag","clear","visible-change","focus","blur","popup-scroll"],setup(e,{emit:o,slots:a}){const m=ye();m.appContext.config.warnHandler=(...i)=>{!i[0]||i[0].includes('Slot "default" invoked outside of the render function')||console.warn(...i)};const c=u(()=>{const{modelValue:i,multiple:s}=e,p=s?[]:void 0;return P(i)?s?i:p:s?p:i}),S=ie({...De(e),modelValue:c}),t=_t(S,o),{calculatorRef:C,inputStyle:h}=jt(),b=i=>i.reduce((s,p)=>(s.push(p),p.children&&p.children.length>0&&s.push(...b(p.children)),s),[]),f=i=>{Et(i||[]).forEach(p=>{var w;if(F(p)&&(p.type.name==="ElOption"||p.type.name==="ElTree")){const T=p.type.name;if(T==="ElTree"){const D=((w=p.props)==null?void 0:w.data)||[];b(D).forEach(N=>{N.currentLabel=N.label||(F(N.value)?"":N.value),t.onOptionCreate(N)})}else if(T==="ElOption"){const D={...p.props};D.currentLabel=D.label||(F(D.value)?"":D.value),t.onOptionCreate(D)}}})};j(()=>{var i;return(i=a.default)==null?void 0:i.call(a)},i=>{e.persistent||f(i)},{immediate:!0}),rl(Ce,ie({props:S,states:t.states,selectRef:t.selectRef,optionsArray:t.optionsArray,setSelected:t.setSelected,handleOptionSelect:t.handleOptionSelect,onOptionCreate:t.onOptionCreate,onOptionDestroy:t.onOptionDestroy}));const d=u(()=>e.multiple?t.states.selected.map(i=>i.currentLabel):t.states.selectedLabel);return sl(()=>{m.appContext.config.warnHandler=void 0}),{...t,modelValue:c,selectedLabel:d,calculatorRef:C,inputStyle:h}}});function tn(e,o){const a=G("el-tag"),m=G("el-tooltip"),c=G("el-icon"),S=G("el-option"),t=G("el-options"),C=G("el-scrollbar"),h=G("el-select-menu"),b=St("click-outside");return ae((g(),I("div",{ref:"selectRef",class:v([e.nsSelect.b(),e.nsSelect.m(e.selectSize)]),[Ot(e.mouseEnterEventName)]:f=>e.states.inputHovering=!0,onMouseleave:f=>e.states.inputHovering=!1},[q(m,{ref:"tooltipRef",visible:e.dropdownMenuVisible,placement:e.placement,teleported:e.teleported,"popper-class":[e.nsSelect.e("popper"),e.popperClass],"popper-options":e.popperOptions,"fallback-placements":e.fallbackPlacements,effect:e.effect,pure:"",trigger:"click",transition:`${e.nsSelect.namespace.value}-zoom-in-top`,"stop-popper-mouse-event":!1,"gpu-acceleration":!1,persistent:e.persistent,"append-to":e.appendTo,"show-arrow":e.showArrow,offset:e.offset,onBeforeShow:e.handleMenuEnter,onHide:f=>e.states.isBeforeHide=!1},{default:L(()=>{var f;return[V("div",{ref:"wrapperRef",class:v([e.nsSelect.e("wrapper"),e.nsSelect.is("focused",e.isFocused),e.nsSelect.is("hovering",e.states.inputHovering),e.nsSelect.is("filterable",e.filterable),e.nsSelect.is("disabled",e.selectDisabled)]),onClick:B(e.toggleMenu,["prevent"])},[e.$slots.prefix?(g(),I("div",{key:0,ref:"prefixRef",class:v(e.nsSelect.e("prefix"))},[k(e.$slots,"prefix")],2)):M("v-if",!0),V("div",{ref:"selectionRef",class:v([e.nsSelect.e("selection"),e.nsSelect.is("near",e.multiple&&!e.$slots.prefix&&!!e.states.selected.length)])},[e.multiple?k(e.$slots,"tag",{key:0,data:e.states.selected,deleteTag:e.deleteTag,selectDisabled:e.selectDisabled},()=>[(g(!0),I(xe,null,el(e.showTagList,d=>(g(),I("div",{key:e.getValueKey(d),class:v(e.nsSelect.e("selected-item"))},[q(a,{closable:!e.selectDisabled&&!d.isDisabled,size:e.collapseTagSize,type:e.tagType,effect:e.tagEffect,"disable-transitions":"",style:he(e.tagStyle),onClose:i=>e.deleteTag(i,d)},{default:L(()=>[V("span",{class:v(e.nsSelect.e("tags-text"))},[k(e.$slots,"label",{label:d.currentLabel,value:d.value},()=>[ll(W(d.currentLabel),1)])],2)]),_:2},1032,["closable","size","type","effect","style","onClose"])],2))),128)),e.collapseTags&&e.states.selected.length>e.maxCollapseTags?(g(),A(m,{key:0,ref:"tagTooltipRef",disabled:e.dropdownMenuVisible||!e.collapseTagsTooltip,"fallback-placements":["bottom","top","right","left"],effect:e.effect,placement:"bottom","popper-class":e.popperClass,teleported:e.teleported},{default:L(()=>[V("div",{ref:"collapseItemRef",class:v(e.nsSelect.e("selected-item"))},[q(a,{closable:!1,size:e.collapseTagSize,type:e.tagType,effect:e.tagEffect,"disable-transitions":"",style:he(e.collapseTagStyle)},{default:L(()=>[V("span",{class:v(e.nsSelect.e("tags-text"))}," + "+W(e.states.selected.length-e.maxCollapseTags),3)]),_:1},8,["size","type","effect","style"])],2)]),content:L(()=>[V("div",{ref:"tagMenuRef",class:v(e.nsSelect.e("selection"))},[(g(!0),I(xe,null,el(e.collapseTagList,d=>(g(),I("div",{key:e.getValueKey(d),class:v(e.nsSelect.e("selected-item"))},[q(a,{class:"in-tooltip",closable:!e.selectDisabled&&!d.isDisabled,size:e.collapseTagSize,type:e.tagType,effect:e.tagEffect,"disable-transitions":"",onClose:i=>e.deleteTag(i,d)},{default:L(()=>[V("span",{class:v(e.nsSelect.e("tags-text"))},[k(e.$slots,"label",{label:d.currentLabel,value:d.value},()=>[ll(W(d.currentLabel),1)])],2)]),_:2},1032,["closable","size","type","effect","onClose"])],2))),128))],2)]),_:3},8,["disabled","effect","popper-class","teleported"])):M("v-if",!0)]):M("v-if",!0),V("div",{class:v([e.nsSelect.e("selected-item"),e.nsSelect.e("input-wrapper"),e.nsSelect.is("hidden",!e.filterable)])},[ae(V("input",{id:e.inputId,ref:"inputRef","onUpdate:modelValue":d=>e.states.inputValue=d,type:"text",name:e.name,class:v([e.nsSelect.e("input"),e.nsSelect.is(e.selectSize)]),disabled:e.selectDisabled,autocomplete:e.autocomplete,style:he(e.inputStyle),tabindex:e.tabindex,role:"combobox",readonly:!e.filterable,spellcheck:"false","aria-activedescendant":((f=e.hoverOption)==null?void 0:f.id)||"","aria-controls":e.contentId,"aria-expanded":e.dropdownMenuVisible,"aria-label":e.ariaLabel,"aria-autocomplete":"none","aria-haspopup":"listbox",onKeydown:[te(B(d=>e.navigateOptions("next"),["stop","prevent"]),["down"]),te(B(d=>e.navigateOptions("prev"),["stop","prevent"]),["up"]),te(B(e.handleEsc,["stop","prevent"]),["esc"]),te(B(e.selectOption,["stop","prevent"]),["enter"]),te(B(e.deletePrevTag,["stop"]),["delete"])],onCompositionstart:e.handleCompositionStart,onCompositionupdate:e.handleCompositionUpdate,onCompositionend:e.handleCompositionEnd,onInput:e.onInput,onClick:B(e.toggleMenu,["stop"])},null,46,["id","onUpdate:modelValue","name","disabled","autocomplete","tabindex","readonly","aria-activedescendant","aria-controls","aria-expanded","aria-label","onKeydown","onCompositionstart","onCompositionupdate","onCompositionend","onInput","onClick"]),[[Ct,e.states.inputValue]]),e.filterable?(g(),I("span",{key:0,ref:"calculatorRef","aria-hidden":"true",class:v(e.nsSelect.e("input-calculator")),textContent:W(e.states.inputValue)},null,10,["textContent"])):M("v-if",!0)],2),e.shouldShowPlaceholder?(g(),I("div",{key:1,class:v([e.nsSelect.e("selected-item"),e.nsSelect.e("placeholder"),e.nsSelect.is("transparent",!e.hasModelValue||e.expanded&&!e.states.inputValue)])},[e.hasModelValue?k(e.$slots,"label",{key:0,label:e.currentPlaceholder,value:e.modelValue},()=>[V("span",null,W(e.currentPlaceholder),1)]):(g(),I("span",{key:1},W(e.currentPlaceholder),1))],2)):M("v-if",!0)],2),V("div",{ref:"suffixRef",class:v(e.nsSelect.e("suffix"))},[e.iconComponent&&!e.showClose?(g(),A(c,{key:0,class:v([e.nsSelect.e("caret"),e.nsSelect.e("icon"),e.iconReverse])},{default:L(()=>[(g(),A(Ve(e.iconComponent)))]),_:1},8,["class"])):M("v-if",!0),e.showClose&&e.clearIcon?(g(),A(c,{key:1,class:v([e.nsSelect.e("caret"),e.nsSelect.e("icon"),e.nsSelect.e("clear")]),onClick:e.handleClearClick},{default:L(()=>[(g(),A(Ve(e.clearIcon)))]),_:1},8,["class","onClick"])):M("v-if",!0),e.validateState&&e.validateIcon&&e.needStatusIcon?(g(),A(c,{key:2,class:v([e.nsInput.e("icon"),e.nsInput.e("validateIcon"),e.nsInput.is("loading",e.validateState==="validating")])},{default:L(()=>[(g(),A(Ve(e.validateIcon)))]),_:1},8,["class"])):M("v-if",!0)],2)],10,["onClick"])]}),content:L(()=>[q(h,{ref:"menuRef"},{default:L(()=>[e.$slots.header?(g(),I("div",{key:0,class:v(e.nsSelect.be("dropdown","header")),onClick:B(()=>{},["stop"])},[k(e.$slots,"header")],10,["onClick"])):M("v-if",!0),ae(q(C,{id:e.contentId,ref:"scrollbarRef",tag:"ul","wrap-class":e.nsSelect.be("dropdown","wrap"),"view-class":e.nsSelect.be("dropdown","list"),class:v([e.nsSelect.is("empty",e.filteredOptionsCount===0)]),role:"listbox","aria-label":e.ariaLabel,"aria-orientation":"vertical",onScroll:e.popupScroll},{default:L(()=>[e.showNewOption?(g(),A(S,{key:0,value:e.states.inputValue,created:!0},null,8,["value"])):M("v-if",!0),q(t,null,{default:L(()=>[k(e.$slots,"default")]),_:3})]),_:3},8,["id","wrap-class","view-class","class","aria-label","onScroll"]),[[ke,e.states.options.size>0&&!e.loading]]),e.$slots.loading&&e.loading?(g(),I("div",{key:1,class:v(e.nsSelect.be("dropdown","loading"))},[k(e.$slots,"loading")],2)):e.loading||e.filteredOptionsCount===0?(g(),I("div",{key:2,class:v(e.nsSelect.be("dropdown","empty"))},[k(e.$slots,"empty",{},()=>[V("span",null,W(e.emptyText),1)])],2)):M("v-if",!0),e.$slots.footer?(g(),I("div",{key:3,class:v(e.nsSelect.be("dropdown","footer")),onClick:B(()=>{},["stop"])},[k(e.$slots,"footer")],10,["onClick"])):M("v-if",!0)]),_:3},512)]),_:3},8,["visible","placement","teleported","popper-class","popper-options","fallback-placements","effect","transition","persistent","append-to","show-arrow","offset","onBeforeShow","onHide"])],16,["onMouseleave"])),[[b,e.handleClickOutside,e.popperRef]])}var nn=Se(ln,[["render",tn],["__file","select.vue"]]);const an=re({name:"ElOptionGroup",componentName:"ElOptionGroup",props:{label:String,disabled:Boolean},setup(e){const o=se("select"),a=E(),m=ye(),c=E([]);rl(dl,ie({...De(e)}));const S=u(()=>c.value.some(b=>b.visible===!0)),t=b=>{var f;return b.type.name==="ElOption"&&!!((f=b.component)!=null&&f.proxy)},C=b=>{const f=U(b),d=[];return f.forEach(i=>{var s;Vt(i)&&(t(i)?d.push(i.component.proxy):P(i.children)&&i.children.length?d.push(...C(i.children)):(s=i.component)!=null&&s.subTree&&d.push(...C(i.component.subTree)))}),d},h=()=>{c.value=C(m.subTree)};return Re(()=>{h()}),Lt(a,h,{attributes:!0,subtree:!0,childList:!0}),{groupRef:a,visible:S,ns:o}}});function on(e,o,a,m,c,S){return ae((g(),I("ul",{ref:"groupRef",class:v(e.ns.be("group","wrap"))},[V("li",{class:v(e.ns.be("group","title"))},W(e.label),3),V("li",null,[V("ul",{class:v(e.ns.b("group"))},[k(e.$slots,"default")],2)])],2)),[[ke,e.visible]])}var cl=Se(an,[["render",on],["__file","option-group.vue"]]);const Sn=Tt(nn,{Option:Me,OptionGroup:cl}),Cn=ul(Me);ul(cl);export{Cn as E,Sn as a};
@@ -1 +1 @@
1
- import{a as O,b as ee}from"./typescript-BJQTyG9d.js";import{aj as j,_ as D,d as x,an as I,a as J,bE as te,al as u,c as L,ao as le,aO as X,i as W,o as P,j as Q,J as ae,t as A,ah as oe,n as R,e as g,f as $,K as se,aT as re,aB as ne,b as Z,k as Y,F as ie,ak as N,ap as ce,bn as V,aw as q,am as ue,bG as ve,bT as fe,av as me,bc as F,bU as de,y as pe,r as he,b8 as be,as as ye,g as ge}from"./index-Cgvi9qKr.js";import{u as Se}from"./index-BTalZB4F.js";const k=4,we={vertical:{offset:"offsetHeight",scroll:"scrollTop",scrollSize:"scrollHeight",size:"height",key:"vertical",axis:"Y",client:"clientY",direction:"top"},horizontal:{offset:"offsetWidth",scroll:"scrollLeft",scrollSize:"scrollWidth",size:"width",key:"horizontal",axis:"X",client:"clientX",direction:"left"}},ze=({move:d,size:v,bar:s})=>({[s.size]:v,transform:`translate${s.axis}(${d}%)`}),K=Symbol("scrollbarContextKey"),Ee=j({vertical:Boolean,size:String,move:Number,ratio:{type:Number,required:!0},always:Boolean}),_e="Thumb",He=x({__name:"thumb",props:Ee,setup(d){const v=d,s=I(K),a=J("scrollbar");s||te(_e,"can not inject scrollbar context");const c=u(),f=u(),p=u({}),i=u(!1);let n=!1,m=!1,T=0,l=0,o=ne?document.onselectstart:null;const t=L(()=>we[v.vertical?"vertical":"horizontal"]),h=L(()=>ze({size:v.size,move:v.move,bar:t.value})),w=L(()=>c.value[t.value.offset]**2/s.wrapElement[t.value.scrollSize]/v.ratio/f.value[t.value.offset]),_=r=>{var y;if(r.stopPropagation(),r.ctrlKey||[1,2].includes(r.button))return;(y=window.getSelection())==null||y.removeAllRanges(),z(r);const H=r.currentTarget;H&&(p.value[t.value.axis]=H[t.value.offset]-(r[t.value.client]-H.getBoundingClientRect()[t.value.direction]))},S=r=>{if(!f.value||!c.value||!s.wrapElement)return;const y=Math.abs(r.target.getBoundingClientRect()[t.value.direction]-r[t.value.client]),H=f.value[t.value.offset]/2,M=(y-H)*100*w.value/c.value[t.value.offset];s.wrapElement[t.value.scroll]=M*s.wrapElement[t.value.scrollSize]/100},z=r=>{r.stopImmediatePropagation(),n=!0,T=s.wrapElement.scrollHeight,l=s.wrapElement.scrollWidth,document.addEventListener("mousemove",B),document.addEventListener("mouseup",C),o=document.onselectstart,document.onselectstart=()=>!1},B=r=>{if(!c.value||!f.value||n===!1)return;const y=p.value[t.value.axis];if(!y)return;const H=(c.value.getBoundingClientRect()[t.value.direction]-r[t.value.client])*-1,M=f.value[t.value.offset]-y,U=(H-M)*100*w.value/c.value[t.value.offset];t.value.scroll==="scrollLeft"?s.wrapElement[t.value.scroll]=U*l/100:s.wrapElement[t.value.scroll]=U*T/100},C=()=>{n=!1,p.value[t.value.axis]=0,document.removeEventListener("mousemove",B),document.removeEventListener("mouseup",C),b(),m&&(i.value=!1)},E=()=>{m=!1,i.value=!!v.size},e=()=>{m=!0,i.value=n};le(()=>{b(),document.removeEventListener("mouseup",C)});const b=()=>{document.onselectstart!==o&&(document.onselectstart=o)};return O(X(s,"scrollbarElement"),"mousemove",E),O(X(s,"scrollbarElement"),"mouseleave",e),(r,y)=>(P(),W(re,{name:g(a).b("fade"),persisted:""},{default:Q(()=>[ae(A("div",{ref_key:"instance",ref:c,class:R([g(a).e("bar"),g(a).is(g(t).key)]),onMousedown:S,onClick:oe(()=>{},["stop"])},[A("div",{ref_key:"thumb",ref:f,class:R(g(a).e("thumb")),style:$(g(h)),onMousedown:_},null,38)],42,["onClick"]),[[se,r.always||i.value]])]),_:1},8,["name"]))}});var G=D(He,[["__file","thumb.vue"]]);const Te=j({always:{type:Boolean,default:!0},minSize:{type:Number,required:!0}}),ke=x({__name:"bar",props:Te,setup(d,{expose:v}){const s=d,a=I(K),c=u(0),f=u(0),p=u(""),i=u(""),n=u(1),m=u(1);return v({handleScroll:o=>{if(o){const t=o.offsetHeight-k,h=o.offsetWidth-k;f.value=o.scrollTop*100/t*n.value,c.value=o.scrollLeft*100/h*m.value}},update:()=>{const o=a?.wrapElement;if(!o)return;const t=o.offsetHeight-k,h=o.offsetWidth-k,w=t**2/o.scrollHeight,_=h**2/o.scrollWidth,S=Math.max(w,s.minSize),z=Math.max(_,s.minSize);n.value=w/(t-w)/(S/(t-S)),m.value=_/(h-_)/(z/(h-z)),i.value=S+k<t?`${S}px`:"",p.value=z+k<h?`${z}px`:""}}),(o,t)=>(P(),Z(ie,null,[Y(G,{move:c.value,ratio:m.value,size:p.value,always:o.always},null,8,["move","ratio","size","always"]),Y(G,{move:f.value,ratio:n.value,size:i.value,vertical:"",always:o.always},null,8,["move","ratio","size","always"])],64))}});var Le=D(ke,[["__file","bar.vue"]]);const Ce=j({height:{type:[String,Number],default:""},maxHeight:{type:[String,Number],default:""},native:Boolean,wrapStyle:{type:ce([String,Object,Array]),default:""},wrapClass:{type:[String,Array],default:""},viewClass:{type:[String,Array],default:""},viewStyle:{type:[String,Array,Object],default:""},noresize:Boolean,tag:{type:String,default:"div"},always:Boolean,minSize:{type:Number,default:20},tabindex:{type:[String,Number],default:void 0},id:String,role:String,...Se(["ariaLabel","ariaOrientation"])}),Ne={"end-reached":d=>["left","right","top","bottom"].includes(d),scroll:({scrollTop:d,scrollLeft:v})=>[d,v].every(N)},Pe="ElScrollbar",Re=x({name:Pe}),Be=x({...Re,props:Ce,emits:Ne,setup(d,{expose:v,emit:s}){const a=d,c=J("scrollbar");let f,p,i=0,n=0,m="";const T=u(),l=u(),o=u(),t=u(),h=L(()=>{const e={};return a.height&&(e.height=V(a.height)),a.maxHeight&&(e.maxHeight=V(a.maxHeight)),[a.wrapStyle,e]}),w=L(()=>[a.wrapClass,c.e("wrap"),{[c.em("wrap","hidden-default")]:!a.native}]),_=L(()=>[c.e("view"),a.viewClass]),S=()=>{var e;if(l.value){(e=t.value)==null||e.handleScroll(l.value);const b=i,r=n;i=l.value.scrollTop,n=l.value.scrollLeft;const y={bottom:i+l.value.clientHeight>=l.value.scrollHeight,top:i<=0&&b!==0,right:n+l.value.clientWidth>=l.value.scrollWidth&&r!==n,left:n<=0&&r!==0};b!==i&&(m=i>b?"bottom":"top"),r!==n&&(m=n>r?"right":"left"),s("scroll",{scrollTop:i,scrollLeft:n}),y[m]&&s("end-reached",m)}};function z(e,b){ye(e)?l.value.scrollTo(e):N(e)&&N(b)&&l.value.scrollTo(e,b)}const B=e=>{N(e)&&(l.value.scrollTop=e)},C=e=>{N(e)&&(l.value.scrollLeft=e)},E=()=>{var e;(e=t.value)==null||e.update()};return q(()=>a.noresize,e=>{e?(f?.(),p?.()):({stop:f}=ee(o,E),p=O("resize",E))},{immediate:!0}),q(()=>[a.maxHeight,a.height],()=>{a.native||F(()=>{var e;E(),l.value&&((e=t.value)==null||e.handleScroll(l.value))})}),ue(K,ve({scrollbarElement:T,wrapElement:l})),fe(()=>{l.value&&(l.value.scrollTop=i,l.value.scrollLeft=n)}),me(()=>{a.native||F(()=>{E()})}),de(()=>E()),v({wrapRef:l,update:E,scrollTo:z,setScrollTop:B,setScrollLeft:C,handleScroll:S}),(e,b)=>(P(),Z("div",{ref_key:"scrollbarRef",ref:T,class:R(g(c).b())},[A("div",{ref_key:"wrapRef",ref:l,class:R(g(w)),style:$(g(h)),tabindex:e.tabindex,onScroll:S},[(P(),W(be(e.tag),{id:e.id,ref_key:"resizeRef",ref:o,class:R(g(_)),style:$(e.viewStyle),role:e.role,"aria-label":e.ariaLabel,"aria-orientation":e.ariaOrientation},{default:Q(()=>[he(e.$slots,"default")]),_:3},8,["id","class","style","role","aria-label","aria-orientation"]))],46,["tabindex"]),e.native?pe("v-if",!0):(P(),W(Le,{key:0,ref_key:"barRef",ref:t,always:e.always,"min-size":e.minSize},null,8,["always","min-size"]))],2))}});var xe=D(Be,[["__file","scrollbar.vue"]]);const Ae=ge(xe);export{Ae as E,Ne as s};
1
+ import{a as O,b as ee}from"./typescript--c8-UPe1.js";import{aj as j,_ as D,d as x,an as I,a as J,bE as te,al as u,c as L,ao as le,aO as X,i as W,o as P,j as Q,J as ae,t as A,ah as oe,n as R,e as g,f as $,K as se,aT as re,aB as ne,b as Z,k as Y,F as ie,ak as N,ap as ce,bn as V,aw as q,am as ue,bG as ve,bT as fe,av as me,bc as F,bU as de,y as pe,r as he,b8 as be,as as ye,g as ge}from"./index-BPxi9ga3.js";import{u as Se}from"./index-DdsTi3DP.js";const k=4,we={vertical:{offset:"offsetHeight",scroll:"scrollTop",scrollSize:"scrollHeight",size:"height",key:"vertical",axis:"Y",client:"clientY",direction:"top"},horizontal:{offset:"offsetWidth",scroll:"scrollLeft",scrollSize:"scrollWidth",size:"width",key:"horizontal",axis:"X",client:"clientX",direction:"left"}},ze=({move:d,size:v,bar:s})=>({[s.size]:v,transform:`translate${s.axis}(${d}%)`}),K=Symbol("scrollbarContextKey"),Ee=j({vertical:Boolean,size:String,move:Number,ratio:{type:Number,required:!0},always:Boolean}),_e="Thumb",He=x({__name:"thumb",props:Ee,setup(d){const v=d,s=I(K),a=J("scrollbar");s||te(_e,"can not inject scrollbar context");const c=u(),f=u(),p=u({}),i=u(!1);let n=!1,m=!1,T=0,l=0,o=ne?document.onselectstart:null;const t=L(()=>we[v.vertical?"vertical":"horizontal"]),h=L(()=>ze({size:v.size,move:v.move,bar:t.value})),w=L(()=>c.value[t.value.offset]**2/s.wrapElement[t.value.scrollSize]/v.ratio/f.value[t.value.offset]),_=r=>{var y;if(r.stopPropagation(),r.ctrlKey||[1,2].includes(r.button))return;(y=window.getSelection())==null||y.removeAllRanges(),z(r);const H=r.currentTarget;H&&(p.value[t.value.axis]=H[t.value.offset]-(r[t.value.client]-H.getBoundingClientRect()[t.value.direction]))},S=r=>{if(!f.value||!c.value||!s.wrapElement)return;const y=Math.abs(r.target.getBoundingClientRect()[t.value.direction]-r[t.value.client]),H=f.value[t.value.offset]/2,M=(y-H)*100*w.value/c.value[t.value.offset];s.wrapElement[t.value.scroll]=M*s.wrapElement[t.value.scrollSize]/100},z=r=>{r.stopImmediatePropagation(),n=!0,T=s.wrapElement.scrollHeight,l=s.wrapElement.scrollWidth,document.addEventListener("mousemove",B),document.addEventListener("mouseup",C),o=document.onselectstart,document.onselectstart=()=>!1},B=r=>{if(!c.value||!f.value||n===!1)return;const y=p.value[t.value.axis];if(!y)return;const H=(c.value.getBoundingClientRect()[t.value.direction]-r[t.value.client])*-1,M=f.value[t.value.offset]-y,U=(H-M)*100*w.value/c.value[t.value.offset];t.value.scroll==="scrollLeft"?s.wrapElement[t.value.scroll]=U*l/100:s.wrapElement[t.value.scroll]=U*T/100},C=()=>{n=!1,p.value[t.value.axis]=0,document.removeEventListener("mousemove",B),document.removeEventListener("mouseup",C),b(),m&&(i.value=!1)},E=()=>{m=!1,i.value=!!v.size},e=()=>{m=!0,i.value=n};le(()=>{b(),document.removeEventListener("mouseup",C)});const b=()=>{document.onselectstart!==o&&(document.onselectstart=o)};return O(X(s,"scrollbarElement"),"mousemove",E),O(X(s,"scrollbarElement"),"mouseleave",e),(r,y)=>(P(),W(re,{name:g(a).b("fade"),persisted:""},{default:Q(()=>[ae(A("div",{ref_key:"instance",ref:c,class:R([g(a).e("bar"),g(a).is(g(t).key)]),onMousedown:S,onClick:oe(()=>{},["stop"])},[A("div",{ref_key:"thumb",ref:f,class:R(g(a).e("thumb")),style:$(g(h)),onMousedown:_},null,38)],42,["onClick"]),[[se,r.always||i.value]])]),_:1},8,["name"]))}});var G=D(He,[["__file","thumb.vue"]]);const Te=j({always:{type:Boolean,default:!0},minSize:{type:Number,required:!0}}),ke=x({__name:"bar",props:Te,setup(d,{expose:v}){const s=d,a=I(K),c=u(0),f=u(0),p=u(""),i=u(""),n=u(1),m=u(1);return v({handleScroll:o=>{if(o){const t=o.offsetHeight-k,h=o.offsetWidth-k;f.value=o.scrollTop*100/t*n.value,c.value=o.scrollLeft*100/h*m.value}},update:()=>{const o=a?.wrapElement;if(!o)return;const t=o.offsetHeight-k,h=o.offsetWidth-k,w=t**2/o.scrollHeight,_=h**2/o.scrollWidth,S=Math.max(w,s.minSize),z=Math.max(_,s.minSize);n.value=w/(t-w)/(S/(t-S)),m.value=_/(h-_)/(z/(h-z)),i.value=S+k<t?`${S}px`:"",p.value=z+k<h?`${z}px`:""}}),(o,t)=>(P(),Z(ie,null,[Y(G,{move:c.value,ratio:m.value,size:p.value,always:o.always},null,8,["move","ratio","size","always"]),Y(G,{move:f.value,ratio:n.value,size:i.value,vertical:"",always:o.always},null,8,["move","ratio","size","always"])],64))}});var Le=D(ke,[["__file","bar.vue"]]);const Ce=j({height:{type:[String,Number],default:""},maxHeight:{type:[String,Number],default:""},native:Boolean,wrapStyle:{type:ce([String,Object,Array]),default:""},wrapClass:{type:[String,Array],default:""},viewClass:{type:[String,Array],default:""},viewStyle:{type:[String,Array,Object],default:""},noresize:Boolean,tag:{type:String,default:"div"},always:Boolean,minSize:{type:Number,default:20},tabindex:{type:[String,Number],default:void 0},id:String,role:String,...Se(["ariaLabel","ariaOrientation"])}),Ne={"end-reached":d=>["left","right","top","bottom"].includes(d),scroll:({scrollTop:d,scrollLeft:v})=>[d,v].every(N)},Pe="ElScrollbar",Re=x({name:Pe}),Be=x({...Re,props:Ce,emits:Ne,setup(d,{expose:v,emit:s}){const a=d,c=J("scrollbar");let f,p,i=0,n=0,m="";const T=u(),l=u(),o=u(),t=u(),h=L(()=>{const e={};return a.height&&(e.height=V(a.height)),a.maxHeight&&(e.maxHeight=V(a.maxHeight)),[a.wrapStyle,e]}),w=L(()=>[a.wrapClass,c.e("wrap"),{[c.em("wrap","hidden-default")]:!a.native}]),_=L(()=>[c.e("view"),a.viewClass]),S=()=>{var e;if(l.value){(e=t.value)==null||e.handleScroll(l.value);const b=i,r=n;i=l.value.scrollTop,n=l.value.scrollLeft;const y={bottom:i+l.value.clientHeight>=l.value.scrollHeight,top:i<=0&&b!==0,right:n+l.value.clientWidth>=l.value.scrollWidth&&r!==n,left:n<=0&&r!==0};b!==i&&(m=i>b?"bottom":"top"),r!==n&&(m=n>r?"right":"left"),s("scroll",{scrollTop:i,scrollLeft:n}),y[m]&&s("end-reached",m)}};function z(e,b){ye(e)?l.value.scrollTo(e):N(e)&&N(b)&&l.value.scrollTo(e,b)}const B=e=>{N(e)&&(l.value.scrollTop=e)},C=e=>{N(e)&&(l.value.scrollLeft=e)},E=()=>{var e;(e=t.value)==null||e.update()};return q(()=>a.noresize,e=>{e?(f?.(),p?.()):({stop:f}=ee(o,E),p=O("resize",E))},{immediate:!0}),q(()=>[a.maxHeight,a.height],()=>{a.native||F(()=>{var e;E(),l.value&&((e=t.value)==null||e.handleScroll(l.value))})}),ue(K,ve({scrollbarElement:T,wrapElement:l})),fe(()=>{l.value&&(l.value.scrollTop=i,l.value.scrollLeft=n)}),me(()=>{a.native||F(()=>{E()})}),de(()=>E()),v({wrapRef:l,update:E,scrollTo:z,setScrollTop:B,setScrollLeft:C,handleScroll:S}),(e,b)=>(P(),Z("div",{ref_key:"scrollbarRef",ref:T,class:R(g(c).b())},[A("div",{ref_key:"wrapRef",ref:l,class:R(g(w)),style:$(g(h)),tabindex:e.tabindex,onScroll:S},[(P(),W(be(e.tag),{id:e.id,ref_key:"resizeRef",ref:o,class:R(g(_)),style:$(e.viewStyle),role:e.role,"aria-label":e.ariaLabel,"aria-orientation":e.ariaOrientation},{default:Q(()=>[he(e.$slots,"default")]),_:3},8,["id","class","style","role","aria-label","aria-orientation"]))],46,["tabindex"]),e.native?pe("v-if",!0):(P(),W(Le,{key:0,ref_key:"barRef",ref:t,always:e.always,"min-size":e.minSize},null,8,["always","min-size"]))],2))}});var xe=D(Be,[["__file","scrollbar.vue"]]);const Ae=ge(xe);export{Ae as E,Ne as s};
@@ -1,4 +1,4 @@
1
- import{aj as M,ap as b,_ as V,d as T,a as j,c as o,cL as O,cp as q,cn as R,cq as U,b3 as G,aL as H,bh as B,b as c,o as l,y as C,n as i,e as t,t as y,f,r as N,x as D,i as I,j as J,b8 as K,E as Q,g as X}from"./index-Cgvi9qKr.js";const Y=M({type:{type:String,default:"line",values:["line","circle","dashboard"]},percentage:{type:Number,default:0,validator:u=>u>=0&&u<=100},status:{type:String,default:"",values:["","success","exception","warning"]},indeterminate:Boolean,duration:{type:Number,default:3},strokeWidth:{type:Number,default:6},strokeLinecap:{type:b(String),default:"round"},textInside:Boolean,width:{type:Number,default:126},showText:{type:Boolean,default:!0},color:{type:b([String,Array,Function]),default:""},striped:Boolean,stripedFlow:Boolean,format:{type:b(Function),default:u=>`${u}%`}}),Z=T({name:"ElProgress"}),_=T({...Z,props:Y,setup(u){const s=u,m={success:"#13ce66",exception:"#ff4949",warning:"#e6a23c",default:"#20a0ff"},a=j("progress"),F=o(()=>{const e={width:`${s.percentage}%`,animationDuration:`${s.duration}s`},r=P(s.percentage);return r.includes("gradient")?e.background=r:e.backgroundColor=r,e}),g=o(()=>(s.strokeWidth/s.width*100).toFixed(1)),v=o(()=>["circle","dashboard"].includes(s.type)?Number.parseInt(`${50-Number.parseFloat(g.value)/2}`,10):0),w=o(()=>{const e=v.value,r=s.type==="dashboard";return`
1
+ import{aj as M,ap as b,_ as V,d as T,a as j,c as o,cL as O,cp as q,cn as R,cq as U,b3 as G,aL as H,bh as B,b as c,o as l,y as C,n as i,e as t,t as y,f,r as N,x as D,i as I,j as J,b8 as K,E as Q,g as X}from"./index-BPxi9ga3.js";const Y=M({type:{type:String,default:"line",values:["line","circle","dashboard"]},percentage:{type:Number,default:0,validator:u=>u>=0&&u<=100},status:{type:String,default:"",values:["","success","exception","warning"]},indeterminate:Boolean,duration:{type:Number,default:3},strokeWidth:{type:Number,default:6},strokeLinecap:{type:b(String),default:"round"},textInside:Boolean,width:{type:Number,default:126},showText:{type:Boolean,default:!0},color:{type:b([String,Array,Function]),default:""},striped:Boolean,stripedFlow:Boolean,format:{type:b(Function),default:u=>`${u}%`}}),Z=T({name:"ElProgress"}),_=T({...Z,props:Y,setup(u){const s=u,m={success:"#13ce66",exception:"#ff4949",warning:"#e6a23c",default:"#20a0ff"},a=j("progress"),F=o(()=>{const e={width:`${s.percentage}%`,animationDuration:`${s.duration}s`},r=P(s.percentage);return r.includes("gradient")?e.background=r:e.backgroundColor=r,e}),g=o(()=>(s.strokeWidth/s.width*100).toFixed(1)),v=o(()=>["circle","dashboard"].includes(s.type)?Number.parseInt(`${50-Number.parseFloat(g.value)/2}`,10):0),w=o(()=>{const e=v.value,r=s.type==="dashboard";return`
2
2
  M 50 50
3
3
  m 0 ${r?"":"-"}${e}
4
4
  a ${e} ${e} 0 1 1 0 ${r?"-":""}${e*2}
@@ -1 +1 @@
1
- import{u as r,a as d,E as A}from"./index-Gj7AGill.js";import{d as f}from"./dropdown-e5HICCuH.js";import{aM as R,aj as U,_ as D,d as y,c as n,a as $,al as K,e as p,bn as V,i as O,o as u,j as c,r as v,y as b,b as j,n as H,x as g,D as I,ay as L,g as z,eW as F}from"./index-Cgvi9qKr.js";const M=U({trigger:d.trigger,triggerKeys:d.triggerKeys,placement:f.placement,disabled:d.disabled,visible:r.visible,transition:r.transition,popperOptions:f.popperOptions,tabindex:f.tabindex,content:r.content,popperStyle:r.popperStyle,popperClass:r.popperClass,enterable:{...r.enterable,default:!0},effect:{...r.effect,default:"light"},teleported:r.teleported,appendTo:r.appendTo,title:String,width:{type:[String,Number],default:150},offset:{type:Number,default:void 0},showAfter:{type:Number,default:0},hideAfter:{type:Number,default:200},autoClose:{type:Number,default:0},showArrow:{type:Boolean,default:!0},persistent:{type:Boolean,default:!0},"onUpdate:visible":{type:Function}}),W={"update:visible":t=>R(t),"before-enter":()=>!0,"before-leave":()=>!0,"after-enter":()=>!0,"after-leave":()=>!0},q="onUpdate:visible",G=y({name:"ElPopover"}),J=y({...G,props:M,emits:W,setup(t,{expose:a,emit:s}){const o=t,h=n(()=>o[q]),i=$("popover"),l=K(),w=n(()=>{var e;return(e=p(l))==null?void 0:e.popperRef}),E=n(()=>[{width:V(o.width)},o.popperStyle]),P=n(()=>[i.b(),o.popperClass,{[i.m("plain")]:!!o.content}]),C=n(()=>o.transition===`${i.namespace.value}-fade-in-linear`),k=()=>{var e;(e=l.value)==null||e.hide()},S=()=>{s("before-enter")},B=()=>{s("before-leave")},N=()=>{s("after-enter")},T=()=>{s("update:visible",!1),s("after-leave")};return a({popperRef:w,hide:k}),(e,_)=>(u(),O(p(A),L({ref_key:"tooltipRef",ref:l},e.$attrs,{trigger:e.trigger,"trigger-keys":e.triggerKeys,placement:e.placement,disabled:e.disabled,visible:e.visible,transition:e.transition,"popper-options":e.popperOptions,tabindex:e.tabindex,content:e.content,offset:e.offset,"show-after":e.showAfter,"hide-after":e.hideAfter,"auto-close":e.autoClose,"show-arrow":e.showArrow,"aria-label":e.title,effect:e.effect,enterable:e.enterable,"popper-class":p(P),"popper-style":p(E),teleported:e.teleported,"append-to":e.appendTo,persistent:e.persistent,"gpu-acceleration":p(C),"onUpdate:visible":p(h),onBeforeShow:S,onBeforeHide:B,onShow:N,onHide:T}),{content:c(()=>[e.title?(u(),j("div",{key:0,class:H(p(i).e("title")),role:"title"},g(e.title),3)):b("v-if",!0),v(e.$slots,"default",{},()=>[I(g(e.content),1)])]),default:c(()=>[e.$slots.reference?v(e.$slots,"reference",{key:0}):b("v-if",!0)]),_:3},16,["trigger","trigger-keys","placement","disabled","visible","transition","popper-options","tabindex","content","offset","show-after","hide-after","auto-close","show-arrow","aria-label","effect","enterable","popper-class","popper-style","teleported","append-to","persistent","gpu-acceleration","onUpdate:visible"]))}});var Q=D(J,[["__file","popover.vue"]]);const m=(t,a)=>{const s=a.arg||a.value,o=s?.popperRef;o&&(o.triggerRef=t)};var X={mounted(t,a){m(t,a)},updated(t,a){m(t,a)}};const Y="popover",Z=F(X,Y),oe=z(Q,{directive:Z});export{oe as E};
1
+ import{u as r,a as d,E as A}from"./index-CcHXhRSM.js";import{d as f}from"./dropdown-DAoWl2Zf.js";import{aM as R,aj as U,_ as D,d as y,c as n,a as $,al as K,e as p,bn as V,i as O,o as u,j as c,r as v,y as b,b as j,n as H,x as g,D as I,ay as L,g as z,eY as F}from"./index-BPxi9ga3.js";const M=U({trigger:d.trigger,triggerKeys:d.triggerKeys,placement:f.placement,disabled:d.disabled,visible:r.visible,transition:r.transition,popperOptions:f.popperOptions,tabindex:f.tabindex,content:r.content,popperStyle:r.popperStyle,popperClass:r.popperClass,enterable:{...r.enterable,default:!0},effect:{...r.effect,default:"light"},teleported:r.teleported,appendTo:r.appendTo,title:String,width:{type:[String,Number],default:150},offset:{type:Number,default:void 0},showAfter:{type:Number,default:0},hideAfter:{type:Number,default:200},autoClose:{type:Number,default:0},showArrow:{type:Boolean,default:!0},persistent:{type:Boolean,default:!0},"onUpdate:visible":{type:Function}}),Y={"update:visible":t=>R(t),"before-enter":()=>!0,"before-leave":()=>!0,"after-enter":()=>!0,"after-leave":()=>!0},q="onUpdate:visible",G=y({name:"ElPopover"}),J=y({...G,props:M,emits:Y,setup(t,{expose:a,emit:s}){const o=t,h=n(()=>o[q]),i=$("popover"),l=K(),w=n(()=>{var e;return(e=p(l))==null?void 0:e.popperRef}),E=n(()=>[{width:V(o.width)},o.popperStyle]),P=n(()=>[i.b(),o.popperClass,{[i.m("plain")]:!!o.content}]),C=n(()=>o.transition===`${i.namespace.value}-fade-in-linear`),k=()=>{var e;(e=l.value)==null||e.hide()},S=()=>{s("before-enter")},B=()=>{s("before-leave")},N=()=>{s("after-enter")},T=()=>{s("update:visible",!1),s("after-leave")};return a({popperRef:w,hide:k}),(e,_)=>(u(),O(p(A),L({ref_key:"tooltipRef",ref:l},e.$attrs,{trigger:e.trigger,"trigger-keys":e.triggerKeys,placement:e.placement,disabled:e.disabled,visible:e.visible,transition:e.transition,"popper-options":e.popperOptions,tabindex:e.tabindex,content:e.content,offset:e.offset,"show-after":e.showAfter,"hide-after":e.hideAfter,"auto-close":e.autoClose,"show-arrow":e.showArrow,"aria-label":e.title,effect:e.effect,enterable:e.enterable,"popper-class":p(P),"popper-style":p(E),teleported:e.teleported,"append-to":e.appendTo,persistent:e.persistent,"gpu-acceleration":p(C),"onUpdate:visible":p(h),onBeforeShow:S,onBeforeHide:B,onShow:N,onHide:T}),{content:c(()=>[e.title?(u(),j("div",{key:0,class:H(p(i).e("title")),role:"title"},g(e.title),3)):b("v-if",!0),v(e.$slots,"default",{},()=>[I(g(e.content),1)])]),default:c(()=>[e.$slots.reference?v(e.$slots,"reference",{key:0}):b("v-if",!0)]),_:3},16,["trigger","trigger-keys","placement","disabled","visible","transition","popper-options","tabindex","content","offset","show-after","hide-after","auto-close","show-arrow","aria-label","effect","enterable","popper-class","popper-style","teleported","append-to","persistent","gpu-acceleration","onUpdate:visible"]))}});var Q=D(J,[["__file","popover.vue"]]);const m=(t,a)=>{const s=a.arg||a.value,o=s?.popperRef;o&&(o.triggerRef=t)};var W={mounted(t,a){m(t,a)},updated(t,a){m(t,a)}};const X="popover",Z=F(W,X),oe=z(Q,{directive:Z});export{oe as E};
@@ -1 +1 @@
1
- import{bW as s,bX as g,bY as m,bZ as o,bV as b,b_ as d,b$ as y,c0 as S,c1 as P,c2 as w,aj as O}from"./index-Cgvi9qKr.js";function x(n){return n}function T(n,e,t){switch(t.length){case 0:return n.call(e);case 1:return n.call(e,t[0]);case 2:return n.call(e,t[0],t[1]);case 3:return n.call(e,t[0],t[1],t[2])}return n.apply(e,t)}var A=800,I=16,E=Date.now;function _(n){var e=0,t=0;return function(){var a=E(),r=I-(a-t);if(t=a,r>0){if(++e>=A)return arguments[0]}else e=0;return n.apply(void 0,arguments)}}function C(n){return function(){return n}}var N=s?function(n,e){return s(n,"toString",{configurable:!0,enumerable:!1,value:C(e),writable:!0})}:x,k=_(N),f=Math.max;function F(n,e,t){return e=f(e===void 0?n.length-1:e,0),function(){for(var a=arguments,r=-1,i=f(a.length-e,0),u=Array(i);++r<i;)u[r]=a[e+r];r=-1;for(var l=Array(e+1);++r<e;)l[r]=a[r];return l[e]=t(u),T(n,this,l)}}var G=9007199254740991;function H(n){return typeof n=="number"&&n>-1&&n%1==0&&n<=G}var L="[object Arguments]";function c(n){return g(n)&&m(n)==L}var p=Object.prototype,M=p.hasOwnProperty,R=p.propertyIsEnumerable,v=c(function(){return arguments}())?c:function(n){return g(n)&&M.call(n,"callee")&&!R.call(n,"callee")};function X(n,e){for(var t=-1,a=e.length,r=n.length;++t<a;)n[r+t]=e[t];return n}var h=o?o.isConcatSpreadable:void 0;function $(n){return b(n)||v(n)||!!(h&&n&&n[h])}function z(n,e,t,a,r){var i=-1,u=n.length;for(t||(t=$),r||(r=[]);++i<u;){var l=n[i];t(l)?X(r,l):r[r.length]=l}return r}function B(n){var e=n==null?0:n.length;return e?z(n):[]}function D(n){return k(F(n,void 0,B),n+"")}function K(n,e){return n!=null&&e in Object(n)}function U(n,e,t){e=d(e,n);for(var a=-1,r=e.length,i=!1;++a<r;){var u=y(e[a]);if(!(i=n!=null&&t(n,u)))break;n=n[u]}return i||++a!=r?i:(r=n==null?0:n.length,!!r&&H(r)&&S(u,r)&&(b(n)||v(n)))}function V(n,e){return n!=null&&U(n,e,K)}function W(n,e,t){for(var a=-1,r=e.length,i={};++a<r;){var u=e[a],l=P(n,u);t(l,u)&&w(i,d(u,n),l)}return i}function Y(n,e){return W(n,e,function(t,a){return V(n,a)})}var Z=D(function(n,e){return n==null?{}:Y(n,e)});const q=O({ariaLabel:String,ariaOrientation:{type:String,values:["horizontal","vertical","undefined"]},ariaControls:String}),Q=n=>Z(q,n);export{X as a,v as b,x as c,z as d,D as f,V as h,H as i,F as o,Z as p,k as s,Q as u};
1
+ import{bW as s,bX as g,bY as m,bZ as o,bV as b,b_ as d,b$ as y,c0 as S,c1 as P,c2 as w,aj as O}from"./index-BPxi9ga3.js";function x(n){return n}function T(n,e,t){switch(t.length){case 0:return n.call(e);case 1:return n.call(e,t[0]);case 2:return n.call(e,t[0],t[1]);case 3:return n.call(e,t[0],t[1],t[2])}return n.apply(e,t)}var A=800,I=16,E=Date.now;function _(n){var e=0,t=0;return function(){var a=E(),r=I-(a-t);if(t=a,r>0){if(++e>=A)return arguments[0]}else e=0;return n.apply(void 0,arguments)}}function C(n){return function(){return n}}var N=s?function(n,e){return s(n,"toString",{configurable:!0,enumerable:!1,value:C(e),writable:!0})}:x,k=_(N),f=Math.max;function F(n,e,t){return e=f(e===void 0?n.length-1:e,0),function(){for(var a=arguments,r=-1,i=f(a.length-e,0),u=Array(i);++r<i;)u[r]=a[e+r];r=-1;for(var l=Array(e+1);++r<e;)l[r]=a[r];return l[e]=t(u),T(n,this,l)}}var G=9007199254740991;function H(n){return typeof n=="number"&&n>-1&&n%1==0&&n<=G}var L="[object Arguments]";function c(n){return g(n)&&m(n)==L}var p=Object.prototype,M=p.hasOwnProperty,R=p.propertyIsEnumerable,v=c(function(){return arguments}())?c:function(n){return g(n)&&M.call(n,"callee")&&!R.call(n,"callee")};function X(n,e){for(var t=-1,a=e.length,r=n.length;++t<a;)n[r+t]=e[t];return n}var h=o?o.isConcatSpreadable:void 0;function $(n){return b(n)||v(n)||!!(h&&n&&n[h])}function z(n,e,t,a,r){var i=-1,u=n.length;for(t||(t=$),r||(r=[]);++i<u;){var l=n[i];t(l)?X(r,l):r[r.length]=l}return r}function B(n){var e=n==null?0:n.length;return e?z(n):[]}function D(n){return k(F(n,void 0,B),n+"")}function K(n,e){return n!=null&&e in Object(n)}function U(n,e,t){e=d(e,n);for(var a=-1,r=e.length,i=!1;++a<r;){var u=y(e[a]);if(!(i=n!=null&&t(n,u)))break;n=n[u]}return i||++a!=r?i:(r=n==null?0:n.length,!!r&&H(r)&&S(u,r)&&(b(n)||v(n)))}function V(n,e){return n!=null&&U(n,e,K)}function W(n,e,t){for(var a=-1,r=e.length,i={};++a<r;){var u=e[a],l=P(n,u);t(l,u)&&w(i,d(u,n),l)}return i}function Y(n,e){return W(n,e,function(t,a){return V(n,a)})}var Z=D(function(n,e){return n==null?{}:Y(n,e)});const q=O({ariaLabel:String,ariaOrientation:{type:String,values:["horizontal","vertical","undefined"]},ariaControls:String}),Q=n=>Z(q,n);export{X as a,v as b,x as c,z as d,D as f,V as h,H as i,F as o,Z as p,k as s,Q as u};
@@ -1 +1 @@
1
- import{bF as $,aj as I,bb as V,cw as T,_ as F,d as E,u as O,a as P,al as j,c as h,aO as d,aB as z,i,o,j as u,J,t as k,n as a,e,y as r,E as b,r as m,b8 as K,b as c,D as w,x as y,F as M,k as R,cx as U,K as _,aT as q,g as G}from"./index-Cgvi9qKr.js";import{d as H,e as L}from"./index-Gj7AGill.js";const Q=["light","dark"],W=I({title:{type:String,default:""},description:{type:String,default:""},type:{type:String,values:V(T),default:"info"},closable:{type:Boolean,default:!0},closeText:{type:String,default:""},showIcon:Boolean,center:Boolean,effect:{type:String,values:Q,default:"light"},...H}),X={open:()=>!0,close:n=>$(n)||n instanceof Event},Y=E({name:"ElAlert"}),Z=E({...Y,props:W,emits:X,setup(n,{emit:v}){const l=n,{Close:S}=U,B=O(),t=P("alert"),p=j(!1),C=h(()=>T[l.type]),f=h(()=>!!(l.description||B.default)),A=()=>{p.value=!0,v("open")},g=s=>{p.value=!1,v("close",s)},{onOpen:D,onClose:N}=L({showAfter:d(l,"showAfter"),hideAfter:d(l,"hideAfter"),autoClose:d(l,"autoClose"),open:A,close:g});return z&&D(),(s,ee)=>(o(),i(q,{name:e(t).b("fade"),persisted:""},{default:u(()=>[J(k("div",{class:a([e(t).b(),e(t).m(s.type),e(t).is("center",s.center),e(t).is(s.effect)]),role:"alert"},[s.showIcon&&(s.$slots.icon||e(C))?(o(),i(e(b),{key:0,class:a([e(t).e("icon"),{[e(t).is("big")]:e(f)}])},{default:u(()=>[m(s.$slots,"icon",{},()=>[(o(),i(K(e(C))))])]),_:3},8,["class"])):r("v-if",!0),k("div",{class:a(e(t).e("content"))},[s.title||s.$slots.title?(o(),c("span",{key:0,class:a([e(t).e("title"),{"with-description":e(f)}])},[m(s.$slots,"title",{},()=>[w(y(s.title),1)])],2)):r("v-if",!0),e(f)?(o(),c("p",{key:1,class:a(e(t).e("description"))},[m(s.$slots,"default",{},()=>[w(y(s.description),1)])],2)):r("v-if",!0),s.closable?(o(),c(M,{key:2},[s.closeText?(o(),c("div",{key:0,class:a([e(t).e("close-btn"),e(t).is("customed")]),onClick:g},y(s.closeText),3)):(o(),i(e(b),{key:1,class:a(e(t).e("close-btn")),onClick:e(N)},{default:u(()=>[R(e(S))]),_:1},8,["class","onClick"]))],64)):r("v-if",!0)],2)],2),[[_,p.value]])]),_:3},8,["name"]))}});var x=F(Z,[["__file","alert.vue"]]);const oe=G(x);export{oe as E};
1
+ import{bF as $,aj as I,bb as V,cw as T,_ as F,d as E,u as O,a as P,al as j,c as h,aO as d,aB as z,i,o,j as u,J,t as k,n as a,e,y as r,E as b,r as m,b8 as K,b as c,D as w,x as y,F as M,k as R,cx as U,K as _,aT as q,g as G}from"./index-BPxi9ga3.js";import{d as H,e as L}from"./index-CcHXhRSM.js";const Q=["light","dark"],W=I({title:{type:String,default:""},description:{type:String,default:""},type:{type:String,values:V(T),default:"info"},closable:{type:Boolean,default:!0},closeText:{type:String,default:""},showIcon:Boolean,center:Boolean,effect:{type:String,values:Q,default:"light"},...H}),X={open:()=>!0,close:n=>$(n)||n instanceof Event},Y=E({name:"ElAlert"}),Z=E({...Y,props:W,emits:X,setup(n,{emit:v}){const l=n,{Close:S}=U,B=O(),t=P("alert"),p=j(!1),C=h(()=>T[l.type]),f=h(()=>!!(l.description||B.default)),A=()=>{p.value=!0,v("open")},g=s=>{p.value=!1,v("close",s)},{onOpen:D,onClose:N}=L({showAfter:d(l,"showAfter"),hideAfter:d(l,"hideAfter"),autoClose:d(l,"autoClose"),open:A,close:g});return z&&D(),(s,ee)=>(o(),i(q,{name:e(t).b("fade"),persisted:""},{default:u(()=>[J(k("div",{class:a([e(t).b(),e(t).m(s.type),e(t).is("center",s.center),e(t).is(s.effect)]),role:"alert"},[s.showIcon&&(s.$slots.icon||e(C))?(o(),i(e(b),{key:0,class:a([e(t).e("icon"),{[e(t).is("big")]:e(f)}])},{default:u(()=>[m(s.$slots,"icon",{},()=>[(o(),i(K(e(C))))])]),_:3},8,["class"])):r("v-if",!0),k("div",{class:a(e(t).e("content"))},[s.title||s.$slots.title?(o(),c("span",{key:0,class:a([e(t).e("title"),{"with-description":e(f)}])},[m(s.$slots,"title",{},()=>[w(y(s.title),1)])],2)):r("v-if",!0),e(f)?(o(),c("p",{key:1,class:a(e(t).e("description"))},[m(s.$slots,"default",{},()=>[w(y(s.description),1)])],2)):r("v-if",!0),s.closable?(o(),c(M,{key:2},[s.closeText?(o(),c("div",{key:0,class:a([e(t).e("close-btn"),e(t).is("customed")]),onClick:g},y(s.closeText),3)):(o(),i(e(b),{key:1,class:a(e(t).e("close-btn")),onClick:e(N)},{default:u(()=>[R(e(S))]),_:1},8,["class","onClick"]))],64)):r("v-if",!0)],2)],2),[[_,p.value]])]),_:3},8,["name"]))}});var x=F(Z,[["__file","alert.vue"]]);const oe=G(x);export{oe as E};
@@ -1 +1 @@
1
- import{E as ce}from"./index-qGVWSNsj.js";import{c as k,O as Te,E as $e,w as ie}from"./index-Gj7AGill.js";import{E as Fe}from"./index-I8eUQ22m.js";import{aj as Re,ap as Q,_ as M,d as A,r as P,al as T,an as C,c as y,e as O,am as J,aO as Y,aX as Se,aw as pe,l as w,i as z,o as N,j as m,k as R,bf as Oe,bg as ke,b as W,y as Z,be as Ne,ay as j,n as q,A as Pe,E as fe,a as ee,b1 as De,bn as Ke,bo as Be,aW as ve,ao as Le,aK as me,aI as H,bc as Me,t as Ae,b8 as Ge,ah as x,F as ze,bp as be,f as Ue,bq as Ye,g as He,w as ge}from"./index-Cgvi9qKr.js";import{a as Ve}from"./typescript-BJQTyG9d.js";import{c as Je,d as We,E as je,a as we,C as qe,b as Xe,e as Qe,f as Ze,g as xe,F as eo,L as oo}from"./dropdown-e5HICCuH.js";import{c as no}from"./castArray-DMPMSVhG.js";const to=Re({style:{type:Q([String,Array,Object])},currentTabId:{type:Q(String)},defaultCurrentTabId:String,loop:Boolean,dir:{type:String,values:["ltr","rtl"],default:"ltr"},orientation:{type:Q(String)},onBlur:Function,onFocus:Function,onMousedown:Function}),{ElCollection:ro,ElCollectionItem:lo,COLLECTION_INJECTION_KEY:oe,COLLECTION_ITEM_INJECTION_KEY:so}=Je("RovingFocusGroup"),ne=Symbol("elRovingFocusGroup"),_e=Symbol("elRovingFocusGroupItem"),ao={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"},io=(e,n)=>e,uo=(e,n,d)=>{const r=io(e.code);return ao[r]},co=(e,n)=>e.map((d,r)=>e[(r+n)%e.length]),te=e=>{const{activeElement:n}=document;for(const d of e)if(d===n||(d.focus(),n!==document.activeElement))return},de="currentTabIdChange",ue="rovingFocusGroup.entryFocus",po={bubbles:!1,cancelable:!0},fo=A({name:"ElRovingFocusGroupImpl",inheritAttrs:!1,props:to,emits:[de,"entryFocus"],setup(e,{emit:n}){var d;const r=T((d=e.currentTabId||e.defaultCurrentTabId)!=null?d:null),c=T(!1),u=T(!1),a=T(),{getItems:l}=C(oe,void 0),p=y(()=>[{outline:"none"},e.style]),b=i=>{n(de,i)},g=()=>{c.value=!0},_=k(i=>{var f;(f=e.onMousedown)==null||f.call(e,i)},()=>{u.value=!0}),E=k(i=>{var f;(f=e.onFocus)==null||f.call(e,i)},i=>{const f=!O(u),{target:D,currentTarget:$}=i;if(D===$&&f&&!O(c)){const K=new Event(ue,po);if($?.dispatchEvent(K),!K.defaultPrevented){const v=l().filter(F=>F.focusable),S=v.find(F=>F.active),I=v.find(F=>F.id===O(r)),L=[S,I,...v].filter(Boolean).map(F=>F.ref);te(L)}}u.value=!1}),o=k(i=>{var f;(f=e.onBlur)==null||f.call(e,i)},()=>{c.value=!1}),s=(...i)=>{n("entryFocus",...i)};J(ne,{currentTabbedId:Se(r),loop:Y(e,"loop"),tabIndex:y(()=>O(c)?-1:0),rovingFocusGroupRef:a,rovingFocusGroupRootStyle:p,orientation:Y(e,"orientation"),dir:Y(e,"dir"),onItemFocus:b,onItemShiftTab:g,onBlur:o,onFocus:E,onMousedown:_}),pe(()=>e.currentTabId,i=>{r.value=i??null}),Ve(a,ue,s)}});function vo(e,n,d,r,c,u){return P(e.$slots,"default")}var mo=M(fo,[["render",vo],["__file","roving-focus-group-impl.vue"]]);const bo=A({name:"ElRovingFocusGroup",components:{ElFocusGroupCollection:ro,ElRovingFocusGroupImpl:mo}});function go(e,n,d,r,c,u){const a=w("el-roving-focus-group-impl"),l=w("el-focus-group-collection");return N(),z(l,null,{default:m(()=>[R(a,Oe(ke(e.$attrs)),{default:m(()=>[P(e.$slots,"default")]),_:3},16)]),_:3})}var wo=M(bo,[["render",go],["__file","roving-focus-group.vue"]]);const X=Symbol("elDropdown"),Ie="elDropdown",{ButtonGroup:_o}=ce,Io=A({name:"ElDropdown",components:{ElButton:ce,ElButtonGroup:_o,ElScrollbar:Fe,ElDropdownCollection:je,ElTooltip:$e,ElRovingFocusGroup:wo,ElOnlyChild:Te,ElIcon:fe,ArrowDown:Pe},props:We,emits:["visible-change","click","command"],setup(e,{emit:n}){const d=me(),r=ee("dropdown"),{t:c}=De(),u=T(),a=T(),l=T(),p=T(),b=T(null),g=T(null),_=T(!1),E=y(()=>({maxHeight:Ke(e.maxHeight)})),o=y(()=>[r.m(v.value)]),s=y(()=>no(e.trigger)),i=ve().value,f=y(()=>e.id||i);pe([u,s],([t,h],[G])=>{var le,se,ae;(le=G?.$el)!=null&&le.removeEventListener&&G.$el.removeEventListener("pointerenter",I),(se=t?.$el)!=null&&se.removeEventListener&&t.$el.removeEventListener("pointerenter",I),(ae=t?.$el)!=null&&ae.addEventListener&&h.includes("hover")&&t.$el.addEventListener("pointerenter",I)},{immediate:!0}),Le(()=>{var t,h;(h=(t=u.value)==null?void 0:t.$el)!=null&&h.removeEventListener&&u.value.$el.removeEventListener("pointerenter",I)});function D(){$()}function $(){var t;(t=l.value)==null||t.onClose()}function K(){var t;(t=l.value)==null||t.onOpen()}const v=Be();function S(...t){n("command",...t)}function I(){var t,h;(h=(t=u.value)==null?void 0:t.$el)==null||h.focus()}function B(){}function L(){const t=O(p);s.value.includes("hover")&&t?.focus(),g.value=null}function F(t){g.value=t}function re(t){_.value||(t.preventDefault(),t.stopImmediatePropagation())}function V(){n("visible-change",!0)}function U(t){var h;t?.type==="keydown"&&((h=p.value)==null||h.focus())}function ye(){n("visible-change",!1)}return J(X,{contentRef:p,role:y(()=>e.role),triggerId:f,isUsingKeyboard:_,onItemEnter:B,onItemLeave:L}),J(Ie,{instance:d,dropdownSize:v,handleClick:D,commandHandler:S,trigger:Y(e,"trigger"),hideOnClick:Y(e,"hideOnClick")}),{t:c,ns:r,scrollbar:b,wrapStyle:E,dropdownTriggerKls:o,dropdownSize:v,triggerId:f,currentTabId:g,handleCurrentTabIdChange:F,handlerMainButtonClick:t=>{n("click",t)},handleEntryFocus:re,handleClose:$,handleOpen:K,handleBeforeShowTooltip:V,handleShowTooltip:U,handleBeforeHideTooltip:ye,onFocusAfterTrapped:t=>{var h,G;t.preventDefault(),(G=(h=p.value)==null?void 0:h.focus)==null||G.call(h,{preventScroll:!0})},popperRef:l,contentRef:p,triggeringElementRef:u,referenceElementRef:a}}});function Eo(e,n,d,r,c,u){var a;const l=w("el-dropdown-collection"),p=w("el-roving-focus-group"),b=w("el-scrollbar"),g=w("el-only-child"),_=w("el-tooltip"),E=w("el-button"),o=w("arrow-down"),s=w("el-icon"),i=w("el-button-group");return N(),W("div",{class:q([e.ns.b(),e.ns.is("disabled",e.disabled)])},[R(_,{ref:"popperRef",role:e.role,effect:e.effect,"fallback-placements":["bottom","top"],"popper-options":e.popperOptions,"gpu-acceleration":!1,"hide-after":e.trigger==="hover"?e.hideTimeout:0,"manual-mode":!0,placement:e.placement,"popper-class":[e.ns.e("popper"),e.popperClass],"reference-element":(a=e.referenceElementRef)==null?void 0:a.$el,trigger:e.trigger,"trigger-keys":e.triggerKeys,"trigger-target-el":e.contentRef,"show-after":e.trigger==="hover"?e.showTimeout:0,"stop-popper-mouse-event":!1,"virtual-ref":e.triggeringElementRef,"virtual-triggering":e.splitButton,disabled:e.disabled,transition:`${e.ns.namespace.value}-zoom-in-top`,teleported:e.teleported,pure:"",persistent:e.persistent,onBeforeShow:e.handleBeforeShowTooltip,onShow:e.handleShowTooltip,onBeforeHide:e.handleBeforeHideTooltip},Ne({content:m(()=>[R(b,{ref:"scrollbar","wrap-style":e.wrapStyle,tag:"div","view-class":e.ns.e("list")},{default:m(()=>[R(p,{loop:e.loop,"current-tab-id":e.currentTabId,orientation:"horizontal",onCurrentTabIdChange:e.handleCurrentTabIdChange,onEntryFocus:e.handleEntryFocus},{default:m(()=>[R(l,null,{default:m(()=>[P(e.$slots,"dropdown")]),_:3})]),_:3},8,["loop","current-tab-id","onCurrentTabIdChange","onEntryFocus"])]),_:3},8,["wrap-style","view-class"])]),_:2},[e.splitButton?void 0:{name:"default",fn:m(()=>[R(g,{id:e.triggerId,ref:"triggeringElementRef",role:"button",tabindex:e.tabindex},{default:m(()=>[P(e.$slots,"default")]),_:3},8,["id","tabindex"])])}]),1032,["role","effect","popper-options","hide-after","placement","popper-class","reference-element","trigger","trigger-keys","trigger-target-el","show-after","virtual-ref","virtual-triggering","disabled","transition","teleported","persistent","onBeforeShow","onShow","onBeforeHide"]),e.splitButton?(N(),z(i,{key:0},{default:m(()=>[R(E,j({ref:"referenceElementRef"},e.buttonProps,{size:e.dropdownSize,type:e.type,disabled:e.disabled,tabindex:e.tabindex,onClick:e.handlerMainButtonClick}),{default:m(()=>[P(e.$slots,"default")]),_:3},16,["size","type","disabled","tabindex","onClick"]),R(E,j({id:e.triggerId,ref:"triggeringElementRef"},e.buttonProps,{role:"button",size:e.dropdownSize,type:e.type,class:e.ns.e("caret-button"),disabled:e.disabled,tabindex:e.tabindex,"aria-label":e.t("el.dropdown.toggleDropdown")}),{default:m(()=>[R(s,{class:q(e.ns.e("icon"))},{default:m(()=>[R(o)]),_:1},8,["class"])]),_:1},16,["id","size","type","class","disabled","tabindex","aria-label"])]),_:3})):Z("v-if",!0)],2)}var ho=M(Io,[["render",Eo],["__file","dropdown.vue"]]);const Co=A({components:{ElRovingFocusCollectionItem:lo},props:{focusable:{type:Boolean,default:!0},active:Boolean},emits:["mousedown","focus","keydown"],setup(e,{emit:n}){const{currentTabbedId:d,loop:r,onItemFocus:c,onItemShiftTab:u}=C(ne,void 0),{getItems:a}=C(oe,void 0),l=ve(),p=T(),b=k(o=>{n("mousedown",o)},o=>{e.focusable?c(O(l)):o.preventDefault()}),g=k(o=>{n("focus",o)},()=>{c(O(l))}),_=k(o=>{n("keydown",o)},o=>{const{code:s,shiftKey:i,target:f,currentTarget:D}=o;if(s===H.tab&&i){u();return}if(f!==D)return;const $=uo(o);if($){o.preventDefault();let v=a().filter(S=>S.focusable).map(S=>S.ref);switch($){case"last":{v.reverse();break}case"prev":case"next":{$==="prev"&&v.reverse();const S=v.indexOf(D);v=r.value?co(v,S+1):v.slice(S+1);break}}Me(()=>{te(v)})}}),E=y(()=>d.value===O(l));return J(_e,{rovingFocusGroupItemRef:p,tabIndex:y(()=>O(E)?0:-1),handleMousedown:b,handleFocus:g,handleKeydown:_}),{id:l,handleKeydown:_,handleFocus:g,handleMousedown:b}}});function yo(e,n,d,r,c,u){const a=w("el-roving-focus-collection-item");return N(),z(a,{id:e.id,focusable:e.focusable,active:e.active},{default:m(()=>[P(e.$slots,"default")]),_:3},8,["id","focusable","active"])}var To=M(Co,[["render",yo],["__file","roving-focus-item.vue"]]);const $o=A({name:"DropdownItemImpl",components:{ElIcon:fe},props:we,emits:["pointermove","pointerleave","click","clickimpl"],setup(e,{emit:n}){const d=ee("dropdown"),{role:r}=C(X,void 0),{collectionItemRef:c}=C(Xe,void 0),{collectionItemRef:u}=C(so,void 0),{rovingFocusGroupItemRef:a,tabIndex:l,handleFocus:p,handleKeydown:b,handleMousedown:g}=C(_e,void 0),_=be(c,u,a),E=y(()=>r.value==="menu"?"menuitem":r.value==="navigation"?"link":"button"),o=k(s=>{if([H.enter,H.numpadEnter,H.space].includes(s.code))return s.preventDefault(),s.stopImmediatePropagation(),n("clickimpl",s),!0},b);return{ns:d,itemRef:_,dataset:{[qe]:""},role:E,tabIndex:l,handleFocus:p,handleKeydown:o,handleMousedown:g}}});function Fo(e,n,d,r,c,u){const a=w("el-icon");return N(),W(ze,null,[e.divided?(N(),W("li",{key:0,role:"separator",class:q(e.ns.bem("menu","item","divided"))},null,2)):Z("v-if",!0),Ae("li",j({ref:e.itemRef},{...e.dataset,...e.$attrs},{"aria-disabled":e.disabled,class:[e.ns.be("menu","item"),e.ns.is("disabled",e.disabled)],tabindex:e.tabIndex,role:e.role,onClick:l=>e.$emit("clickimpl",l),onFocus:e.handleFocus,onKeydown:x(e.handleKeydown,["self"]),onMousedown:e.handleMousedown,onPointermove:l=>e.$emit("pointermove",l),onPointerleave:l=>e.$emit("pointerleave",l)}),[e.icon?(N(),z(a,{key:0},{default:m(()=>[(N(),z(Ge(e.icon)))]),_:1})):Z("v-if",!0),P(e.$slots,"default")],16,["aria-disabled","tabindex","role","onClick","onFocus","onKeydown","onMousedown","onPointermove","onPointerleave"])],64)}var Ro=M($o,[["render",Fo],["__file","dropdown-item-impl.vue"]]);const Ee=()=>{const e=C(Ie,{}),n=y(()=>e?.dropdownSize);return{elDropdown:e,_elDropdownSize:n}},So=A({name:"ElDropdownItem",components:{ElDropdownCollectionItem:Qe,ElRovingFocusItem:To,ElDropdownItemImpl:Ro},inheritAttrs:!1,props:we,emits:["pointermove","pointerleave","click"],setup(e,{emit:n,attrs:d}){const{elDropdown:r}=Ee(),c=me(),u=T(null),a=y(()=>{var o,s;return(s=(o=O(u))==null?void 0:o.textContent)!=null?s:""}),{onItemEnter:l,onItemLeave:p}=C(X,void 0),b=k(o=>(n("pointermove",o),o.defaultPrevented),ie(o=>{if(e.disabled){p(o);return}const s=o.currentTarget;s===document.activeElement||s.contains(document.activeElement)||(l(o),o.defaultPrevented||s?.focus())})),g=k(o=>(n("pointerleave",o),o.defaultPrevented),ie(p)),_=k(o=>{if(!e.disabled)return n("click",o),o.type!=="keydown"&&o.defaultPrevented},o=>{var s,i,f;if(e.disabled){o.stopImmediatePropagation();return}(s=r?.hideOnClick)!=null&&s.value&&((i=r.handleClick)==null||i.call(r)),(f=r.commandHandler)==null||f.call(r,e.command,c,o)}),E=y(()=>({...e,...d}));return{handleClick:_,handlePointerMove:b,handlePointerLeave:g,textContent:a,propsAndAttrs:E}}});function Oo(e,n,d,r,c,u){var a;const l=w("el-dropdown-item-impl"),p=w("el-roving-focus-item"),b=w("el-dropdown-collection-item");return N(),z(b,{disabled:e.disabled,"text-value":(a=e.textValue)!=null?a:e.textContent},{default:m(()=>[R(p,{focusable:!e.disabled},{default:m(()=>[R(l,j(e.propsAndAttrs,{onPointerleave:e.handlePointerLeave,onPointermove:e.handlePointerMove,onClickimpl:e.handleClick}),{default:m(()=>[P(e.$slots,"default")]),_:3},16,["onPointerleave","onPointermove","onClickimpl"])]),_:3},8,["focusable"])]),_:3},8,["disabled","text-value"])}var he=M(So,[["render",Oo],["__file","dropdown-item.vue"]]);const ko=A({name:"ElDropdownMenu",props:Ze,setup(e){const n=ee("dropdown"),{_elDropdownSize:d}=Ee(),r=d.value,{focusTrapRef:c,onKeydown:u}=C(Ye,void 0),{contentRef:a,role:l,triggerId:p}=C(X,void 0),{collectionRef:b,getItems:g}=C(xe,void 0),{rovingFocusGroupRef:_,rovingFocusGroupRootStyle:E,tabIndex:o,onBlur:s,onFocus:i,onMousedown:f}=C(ne,void 0),{collectionRef:D}=C(oe,void 0),$=y(()=>[n.b("menu"),n.bm("menu",r?.value)]),K=be(a,b,c,_,D),v=k(I=>{var B;(B=e.onKeydown)==null||B.call(e,I)},I=>{const{currentTarget:B,code:L,target:F}=I;if(B.contains(F),H.tab===L&&I.stopImmediatePropagation(),I.preventDefault(),F!==O(a)||!eo.includes(L))return;const V=g().filter(U=>!U.disabled).map(U=>U.ref);oo.includes(L)&&V.reverse(),te(V)});return{size:r,rovingFocusGroupRootStyle:E,tabIndex:o,dropdownKls:$,role:l,triggerId:p,dropdownListWrapperRef:K,handleKeydown:I=>{v(I),u(I)},onBlur:s,onFocus:i,onMousedown:f}}});function No(e,n,d,r,c,u){return N(),W("ul",{ref:e.dropdownListWrapperRef,class:q(e.dropdownKls),style:Ue(e.rovingFocusGroupRootStyle),tabindex:-1,role:e.role,"aria-labelledby":e.triggerId,onBlur:e.onBlur,onFocus:e.onFocus,onKeydown:x(e.handleKeydown,["self"]),onMousedown:x(e.onMousedown,["self"])},[P(e.$slots,"default")],46,["role","aria-labelledby","onBlur","onFocus","onKeydown","onMousedown"])}var Ce=M(ko,[["render",No],["__file","dropdown-menu.vue"]]);const Uo=He(ho,{DropdownItem:he,DropdownMenu:Ce}),Yo=ge(he),Ho=ge(Ce);export{Yo as E,Ho as a,Uo as b};
1
+ import{E as ce}from"./index-D1RNQpBT.js";import{c as k,O as Te,E as $e,w as ie}from"./index-CcHXhRSM.js";import{E as Fe}from"./index-DBGyP5fo.js";import{aj as Re,ap as Q,_ as M,d as A,r as P,al as T,an as C,c as y,e as O,am as J,aO as Y,aX as Se,aw as pe,l as w,i as z,o as N,j as m,k as R,bf as Oe,bg as ke,b as W,y as Z,be as Ne,ay as j,n as q,A as Pe,E as fe,a as ee,b1 as De,bn as Ke,bo as Be,aW as ve,ao as Le,aK as me,aI as H,bc as Me,t as Ae,b8 as Ge,ah as x,F as ze,bp as be,f as Ue,bq as Ye,g as He,w as ge}from"./index-BPxi9ga3.js";import{a as Ve}from"./typescript--c8-UPe1.js";import{c as Je,d as We,E as je,a as we,C as qe,b as Xe,e as Qe,f as Ze,g as xe,F as eo,L as oo}from"./dropdown-DAoWl2Zf.js";import{c as no}from"./castArray-BUMlMGlh.js";const to=Re({style:{type:Q([String,Array,Object])},currentTabId:{type:Q(String)},defaultCurrentTabId:String,loop:Boolean,dir:{type:String,values:["ltr","rtl"],default:"ltr"},orientation:{type:Q(String)},onBlur:Function,onFocus:Function,onMousedown:Function}),{ElCollection:ro,ElCollectionItem:lo,COLLECTION_INJECTION_KEY:oe,COLLECTION_ITEM_INJECTION_KEY:so}=Je("RovingFocusGroup"),ne=Symbol("elRovingFocusGroup"),_e=Symbol("elRovingFocusGroupItem"),ao={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"},io=(e,n)=>e,uo=(e,n,d)=>{const r=io(e.code);return ao[r]},co=(e,n)=>e.map((d,r)=>e[(r+n)%e.length]),te=e=>{const{activeElement:n}=document;for(const d of e)if(d===n||(d.focus(),n!==document.activeElement))return},de="currentTabIdChange",ue="rovingFocusGroup.entryFocus",po={bubbles:!1,cancelable:!0},fo=A({name:"ElRovingFocusGroupImpl",inheritAttrs:!1,props:to,emits:[de,"entryFocus"],setup(e,{emit:n}){var d;const r=T((d=e.currentTabId||e.defaultCurrentTabId)!=null?d:null),c=T(!1),u=T(!1),a=T(),{getItems:l}=C(oe,void 0),p=y(()=>[{outline:"none"},e.style]),b=i=>{n(de,i)},g=()=>{c.value=!0},_=k(i=>{var f;(f=e.onMousedown)==null||f.call(e,i)},()=>{u.value=!0}),E=k(i=>{var f;(f=e.onFocus)==null||f.call(e,i)},i=>{const f=!O(u),{target:D,currentTarget:$}=i;if(D===$&&f&&!O(c)){const K=new Event(ue,po);if($?.dispatchEvent(K),!K.defaultPrevented){const v=l().filter(F=>F.focusable),S=v.find(F=>F.active),I=v.find(F=>F.id===O(r)),L=[S,I,...v].filter(Boolean).map(F=>F.ref);te(L)}}u.value=!1}),o=k(i=>{var f;(f=e.onBlur)==null||f.call(e,i)},()=>{c.value=!1}),s=(...i)=>{n("entryFocus",...i)};J(ne,{currentTabbedId:Se(r),loop:Y(e,"loop"),tabIndex:y(()=>O(c)?-1:0),rovingFocusGroupRef:a,rovingFocusGroupRootStyle:p,orientation:Y(e,"orientation"),dir:Y(e,"dir"),onItemFocus:b,onItemShiftTab:g,onBlur:o,onFocus:E,onMousedown:_}),pe(()=>e.currentTabId,i=>{r.value=i??null}),Ve(a,ue,s)}});function vo(e,n,d,r,c,u){return P(e.$slots,"default")}var mo=M(fo,[["render",vo],["__file","roving-focus-group-impl.vue"]]);const bo=A({name:"ElRovingFocusGroup",components:{ElFocusGroupCollection:ro,ElRovingFocusGroupImpl:mo}});function go(e,n,d,r,c,u){const a=w("el-roving-focus-group-impl"),l=w("el-focus-group-collection");return N(),z(l,null,{default:m(()=>[R(a,Oe(ke(e.$attrs)),{default:m(()=>[P(e.$slots,"default")]),_:3},16)]),_:3})}var wo=M(bo,[["render",go],["__file","roving-focus-group.vue"]]);const X=Symbol("elDropdown"),Ie="elDropdown",{ButtonGroup:_o}=ce,Io=A({name:"ElDropdown",components:{ElButton:ce,ElButtonGroup:_o,ElScrollbar:Fe,ElDropdownCollection:je,ElTooltip:$e,ElRovingFocusGroup:wo,ElOnlyChild:Te,ElIcon:fe,ArrowDown:Pe},props:We,emits:["visible-change","click","command"],setup(e,{emit:n}){const d=me(),r=ee("dropdown"),{t:c}=De(),u=T(),a=T(),l=T(),p=T(),b=T(null),g=T(null),_=T(!1),E=y(()=>({maxHeight:Ke(e.maxHeight)})),o=y(()=>[r.m(v.value)]),s=y(()=>no(e.trigger)),i=ve().value,f=y(()=>e.id||i);pe([u,s],([t,h],[G])=>{var le,se,ae;(le=G?.$el)!=null&&le.removeEventListener&&G.$el.removeEventListener("pointerenter",I),(se=t?.$el)!=null&&se.removeEventListener&&t.$el.removeEventListener("pointerenter",I),(ae=t?.$el)!=null&&ae.addEventListener&&h.includes("hover")&&t.$el.addEventListener("pointerenter",I)},{immediate:!0}),Le(()=>{var t,h;(h=(t=u.value)==null?void 0:t.$el)!=null&&h.removeEventListener&&u.value.$el.removeEventListener("pointerenter",I)});function D(){$()}function $(){var t;(t=l.value)==null||t.onClose()}function K(){var t;(t=l.value)==null||t.onOpen()}const v=Be();function S(...t){n("command",...t)}function I(){var t,h;(h=(t=u.value)==null?void 0:t.$el)==null||h.focus()}function B(){}function L(){const t=O(p);s.value.includes("hover")&&t?.focus(),g.value=null}function F(t){g.value=t}function re(t){_.value||(t.preventDefault(),t.stopImmediatePropagation())}function V(){n("visible-change",!0)}function U(t){var h;t?.type==="keydown"&&((h=p.value)==null||h.focus())}function ye(){n("visible-change",!1)}return J(X,{contentRef:p,role:y(()=>e.role),triggerId:f,isUsingKeyboard:_,onItemEnter:B,onItemLeave:L}),J(Ie,{instance:d,dropdownSize:v,handleClick:D,commandHandler:S,trigger:Y(e,"trigger"),hideOnClick:Y(e,"hideOnClick")}),{t:c,ns:r,scrollbar:b,wrapStyle:E,dropdownTriggerKls:o,dropdownSize:v,triggerId:f,currentTabId:g,handleCurrentTabIdChange:F,handlerMainButtonClick:t=>{n("click",t)},handleEntryFocus:re,handleClose:$,handleOpen:K,handleBeforeShowTooltip:V,handleShowTooltip:U,handleBeforeHideTooltip:ye,onFocusAfterTrapped:t=>{var h,G;t.preventDefault(),(G=(h=p.value)==null?void 0:h.focus)==null||G.call(h,{preventScroll:!0})},popperRef:l,contentRef:p,triggeringElementRef:u,referenceElementRef:a}}});function Eo(e,n,d,r,c,u){var a;const l=w("el-dropdown-collection"),p=w("el-roving-focus-group"),b=w("el-scrollbar"),g=w("el-only-child"),_=w("el-tooltip"),E=w("el-button"),o=w("arrow-down"),s=w("el-icon"),i=w("el-button-group");return N(),W("div",{class:q([e.ns.b(),e.ns.is("disabled",e.disabled)])},[R(_,{ref:"popperRef",role:e.role,effect:e.effect,"fallback-placements":["bottom","top"],"popper-options":e.popperOptions,"gpu-acceleration":!1,"hide-after":e.trigger==="hover"?e.hideTimeout:0,"manual-mode":!0,placement:e.placement,"popper-class":[e.ns.e("popper"),e.popperClass],"reference-element":(a=e.referenceElementRef)==null?void 0:a.$el,trigger:e.trigger,"trigger-keys":e.triggerKeys,"trigger-target-el":e.contentRef,"show-after":e.trigger==="hover"?e.showTimeout:0,"stop-popper-mouse-event":!1,"virtual-ref":e.triggeringElementRef,"virtual-triggering":e.splitButton,disabled:e.disabled,transition:`${e.ns.namespace.value}-zoom-in-top`,teleported:e.teleported,pure:"",persistent:e.persistent,onBeforeShow:e.handleBeforeShowTooltip,onShow:e.handleShowTooltip,onBeforeHide:e.handleBeforeHideTooltip},Ne({content:m(()=>[R(b,{ref:"scrollbar","wrap-style":e.wrapStyle,tag:"div","view-class":e.ns.e("list")},{default:m(()=>[R(p,{loop:e.loop,"current-tab-id":e.currentTabId,orientation:"horizontal",onCurrentTabIdChange:e.handleCurrentTabIdChange,onEntryFocus:e.handleEntryFocus},{default:m(()=>[R(l,null,{default:m(()=>[P(e.$slots,"dropdown")]),_:3})]),_:3},8,["loop","current-tab-id","onCurrentTabIdChange","onEntryFocus"])]),_:3},8,["wrap-style","view-class"])]),_:2},[e.splitButton?void 0:{name:"default",fn:m(()=>[R(g,{id:e.triggerId,ref:"triggeringElementRef",role:"button",tabindex:e.tabindex},{default:m(()=>[P(e.$slots,"default")]),_:3},8,["id","tabindex"])])}]),1032,["role","effect","popper-options","hide-after","placement","popper-class","reference-element","trigger","trigger-keys","trigger-target-el","show-after","virtual-ref","virtual-triggering","disabled","transition","teleported","persistent","onBeforeShow","onShow","onBeforeHide"]),e.splitButton?(N(),z(i,{key:0},{default:m(()=>[R(E,j({ref:"referenceElementRef"},e.buttonProps,{size:e.dropdownSize,type:e.type,disabled:e.disabled,tabindex:e.tabindex,onClick:e.handlerMainButtonClick}),{default:m(()=>[P(e.$slots,"default")]),_:3},16,["size","type","disabled","tabindex","onClick"]),R(E,j({id:e.triggerId,ref:"triggeringElementRef"},e.buttonProps,{role:"button",size:e.dropdownSize,type:e.type,class:e.ns.e("caret-button"),disabled:e.disabled,tabindex:e.tabindex,"aria-label":e.t("el.dropdown.toggleDropdown")}),{default:m(()=>[R(s,{class:q(e.ns.e("icon"))},{default:m(()=>[R(o)]),_:1},8,["class"])]),_:1},16,["id","size","type","class","disabled","tabindex","aria-label"])]),_:3})):Z("v-if",!0)],2)}var ho=M(Io,[["render",Eo],["__file","dropdown.vue"]]);const Co=A({components:{ElRovingFocusCollectionItem:lo},props:{focusable:{type:Boolean,default:!0},active:Boolean},emits:["mousedown","focus","keydown"],setup(e,{emit:n}){const{currentTabbedId:d,loop:r,onItemFocus:c,onItemShiftTab:u}=C(ne,void 0),{getItems:a}=C(oe,void 0),l=ve(),p=T(),b=k(o=>{n("mousedown",o)},o=>{e.focusable?c(O(l)):o.preventDefault()}),g=k(o=>{n("focus",o)},()=>{c(O(l))}),_=k(o=>{n("keydown",o)},o=>{const{code:s,shiftKey:i,target:f,currentTarget:D}=o;if(s===H.tab&&i){u();return}if(f!==D)return;const $=uo(o);if($){o.preventDefault();let v=a().filter(S=>S.focusable).map(S=>S.ref);switch($){case"last":{v.reverse();break}case"prev":case"next":{$==="prev"&&v.reverse();const S=v.indexOf(D);v=r.value?co(v,S+1):v.slice(S+1);break}}Me(()=>{te(v)})}}),E=y(()=>d.value===O(l));return J(_e,{rovingFocusGroupItemRef:p,tabIndex:y(()=>O(E)?0:-1),handleMousedown:b,handleFocus:g,handleKeydown:_}),{id:l,handleKeydown:_,handleFocus:g,handleMousedown:b}}});function yo(e,n,d,r,c,u){const a=w("el-roving-focus-collection-item");return N(),z(a,{id:e.id,focusable:e.focusable,active:e.active},{default:m(()=>[P(e.$slots,"default")]),_:3},8,["id","focusable","active"])}var To=M(Co,[["render",yo],["__file","roving-focus-item.vue"]]);const $o=A({name:"DropdownItemImpl",components:{ElIcon:fe},props:we,emits:["pointermove","pointerleave","click","clickimpl"],setup(e,{emit:n}){const d=ee("dropdown"),{role:r}=C(X,void 0),{collectionItemRef:c}=C(Xe,void 0),{collectionItemRef:u}=C(so,void 0),{rovingFocusGroupItemRef:a,tabIndex:l,handleFocus:p,handleKeydown:b,handleMousedown:g}=C(_e,void 0),_=be(c,u,a),E=y(()=>r.value==="menu"?"menuitem":r.value==="navigation"?"link":"button"),o=k(s=>{if([H.enter,H.numpadEnter,H.space].includes(s.code))return s.preventDefault(),s.stopImmediatePropagation(),n("clickimpl",s),!0},b);return{ns:d,itemRef:_,dataset:{[qe]:""},role:E,tabIndex:l,handleFocus:p,handleKeydown:o,handleMousedown:g}}});function Fo(e,n,d,r,c,u){const a=w("el-icon");return N(),W(ze,null,[e.divided?(N(),W("li",{key:0,role:"separator",class:q(e.ns.bem("menu","item","divided"))},null,2)):Z("v-if",!0),Ae("li",j({ref:e.itemRef},{...e.dataset,...e.$attrs},{"aria-disabled":e.disabled,class:[e.ns.be("menu","item"),e.ns.is("disabled",e.disabled)],tabindex:e.tabIndex,role:e.role,onClick:l=>e.$emit("clickimpl",l),onFocus:e.handleFocus,onKeydown:x(e.handleKeydown,["self"]),onMousedown:e.handleMousedown,onPointermove:l=>e.$emit("pointermove",l),onPointerleave:l=>e.$emit("pointerleave",l)}),[e.icon?(N(),z(a,{key:0},{default:m(()=>[(N(),z(Ge(e.icon)))]),_:1})):Z("v-if",!0),P(e.$slots,"default")],16,["aria-disabled","tabindex","role","onClick","onFocus","onKeydown","onMousedown","onPointermove","onPointerleave"])],64)}var Ro=M($o,[["render",Fo],["__file","dropdown-item-impl.vue"]]);const Ee=()=>{const e=C(Ie,{}),n=y(()=>e?.dropdownSize);return{elDropdown:e,_elDropdownSize:n}},So=A({name:"ElDropdownItem",components:{ElDropdownCollectionItem:Qe,ElRovingFocusItem:To,ElDropdownItemImpl:Ro},inheritAttrs:!1,props:we,emits:["pointermove","pointerleave","click"],setup(e,{emit:n,attrs:d}){const{elDropdown:r}=Ee(),c=me(),u=T(null),a=y(()=>{var o,s;return(s=(o=O(u))==null?void 0:o.textContent)!=null?s:""}),{onItemEnter:l,onItemLeave:p}=C(X,void 0),b=k(o=>(n("pointermove",o),o.defaultPrevented),ie(o=>{if(e.disabled){p(o);return}const s=o.currentTarget;s===document.activeElement||s.contains(document.activeElement)||(l(o),o.defaultPrevented||s?.focus())})),g=k(o=>(n("pointerleave",o),o.defaultPrevented),ie(p)),_=k(o=>{if(!e.disabled)return n("click",o),o.type!=="keydown"&&o.defaultPrevented},o=>{var s,i,f;if(e.disabled){o.stopImmediatePropagation();return}(s=r?.hideOnClick)!=null&&s.value&&((i=r.handleClick)==null||i.call(r)),(f=r.commandHandler)==null||f.call(r,e.command,c,o)}),E=y(()=>({...e,...d}));return{handleClick:_,handlePointerMove:b,handlePointerLeave:g,textContent:a,propsAndAttrs:E}}});function Oo(e,n,d,r,c,u){var a;const l=w("el-dropdown-item-impl"),p=w("el-roving-focus-item"),b=w("el-dropdown-collection-item");return N(),z(b,{disabled:e.disabled,"text-value":(a=e.textValue)!=null?a:e.textContent},{default:m(()=>[R(p,{focusable:!e.disabled},{default:m(()=>[R(l,j(e.propsAndAttrs,{onPointerleave:e.handlePointerLeave,onPointermove:e.handlePointerMove,onClickimpl:e.handleClick}),{default:m(()=>[P(e.$slots,"default")]),_:3},16,["onPointerleave","onPointermove","onClickimpl"])]),_:3},8,["focusable"])]),_:3},8,["disabled","text-value"])}var he=M(So,[["render",Oo],["__file","dropdown-item.vue"]]);const ko=A({name:"ElDropdownMenu",props:Ze,setup(e){const n=ee("dropdown"),{_elDropdownSize:d}=Ee(),r=d.value,{focusTrapRef:c,onKeydown:u}=C(Ye,void 0),{contentRef:a,role:l,triggerId:p}=C(X,void 0),{collectionRef:b,getItems:g}=C(xe,void 0),{rovingFocusGroupRef:_,rovingFocusGroupRootStyle:E,tabIndex:o,onBlur:s,onFocus:i,onMousedown:f}=C(ne,void 0),{collectionRef:D}=C(oe,void 0),$=y(()=>[n.b("menu"),n.bm("menu",r?.value)]),K=be(a,b,c,_,D),v=k(I=>{var B;(B=e.onKeydown)==null||B.call(e,I)},I=>{const{currentTarget:B,code:L,target:F}=I;if(B.contains(F),H.tab===L&&I.stopImmediatePropagation(),I.preventDefault(),F!==O(a)||!eo.includes(L))return;const V=g().filter(U=>!U.disabled).map(U=>U.ref);oo.includes(L)&&V.reverse(),te(V)});return{size:r,rovingFocusGroupRootStyle:E,tabIndex:o,dropdownKls:$,role:l,triggerId:p,dropdownListWrapperRef:K,handleKeydown:I=>{v(I),u(I)},onBlur:s,onFocus:i,onMousedown:f}}});function No(e,n,d,r,c,u){return N(),W("ul",{ref:e.dropdownListWrapperRef,class:q(e.dropdownKls),style:Ue(e.rovingFocusGroupRootStyle),tabindex:-1,role:e.role,"aria-labelledby":e.triggerId,onBlur:e.onBlur,onFocus:e.onFocus,onKeydown:x(e.handleKeydown,["self"]),onMousedown:x(e.onMousedown,["self"])},[P(e.$slots,"default")],46,["role","aria-labelledby","onBlur","onFocus","onKeydown","onMousedown"])}var Ce=M(ko,[["render",No],["__file","dropdown-menu.vue"]]);const Uo=He(ho,{DropdownItem:he,DropdownMenu:Ce}),Yo=ge(he),Ho=ge(Ce);export{Yo as E,Ho as a,Uo as b};
@@ -1 +1 @@
1
- import{aj as c,ap as p,_ as u,d as i,a as f,c as v,b as s,o,y as m,n as a,e as r,r as y,f as S,g as _}from"./index-Cgvi9qKr.js";const b=c({direction:{type:String,values:["horizontal","vertical"],default:"horizontal"},contentPosition:{type:String,values:["left","center","right"],default:"center"},borderStyle:{type:p(String),default:"solid"}}),g=i({name:"ElDivider"}),h=i({...g,props:b,setup(n){const l=n,e=f("divider"),d=v(()=>e.cssVar({"border-style":l.borderStyle}));return(t,z)=>(o(),s("div",{class:a([r(e).b(),r(e).m(t.direction)]),style:S(r(d)),role:"separator"},[t.$slots.default&&t.direction!=="vertical"?(o(),s("div",{key:0,class:a([r(e).e("text"),r(e).is(t.contentPosition)])},[y(t.$slots,"default")],2)):m("v-if",!0)],6))}});var P=u(h,[["__file","divider.vue"]]);const k=_(P);export{k as E};
1
+ import{aj as c,ap as p,_ as u,d as i,a as f,c as v,b as s,o,y as m,n as a,e as r,r as y,f as S,g as _}from"./index-BPxi9ga3.js";const b=c({direction:{type:String,values:["horizontal","vertical"],default:"horizontal"},contentPosition:{type:String,values:["left","center","right"],default:"center"},borderStyle:{type:p(String),default:"solid"}}),g=i({name:"ElDivider"}),h=i({...g,props:b,setup(n){const l=n,e=f("divider"),d=v(()=>e.cssVar({"border-style":l.borderStyle}));return(t,z)=>(o(),s("div",{class:a([r(e).b(),r(e).m(t.direction)]),style:S(r(d)),role:"separator"},[t.$slots.default&&t.direction!=="vertical"?(o(),s("div",{key:0,class:a([r(e).e("text"),r(e).is(t.contentPosition)])},[y(t.$slots,"default")],2)):m("v-if",!0)],6))}});var P=u(h,[["__file","divider.vue"]]);const k=_(P);export{k as E};
@@ -1 +1 @@
1
- import{c as e,aD as o,aK as u}from"./index-Cgvi9qKr.js";const i=["class","style"],E=/^on[A-Z]/,f=(a={})=>{const{excludeListeners:c=!1,excludeKeys:t}=a,l=e(()=>(t?.value||[]).concat(i)),s=u();return s?e(()=>{var n;return o(Object.entries((n=s.proxy)==null?void 0:n.$attrs).filter(([r])=>!l.value.includes(r)&&!(c&&E.test(r))))}):e(()=>({}))};export{f as u};
1
+ import{c as e,aD as o,aK as u}from"./index-BPxi9ga3.js";const i=["class","style"],E=/^on[A-Z]/,f=(a={})=>{const{excludeListeners:c=!1,excludeKeys:t}=a,l=e(()=>(t?.value||[]).concat(i)),s=u();return s?e(()=>{var n;return o(Object.entries((n=s.proxy)==null?void 0:n.$attrs).filter(([r])=>!l.value.includes(r)&&!(c&&E.test(r))))}):e(()=>({}))};export{f as u};