@acedatacloud/nexior 3.20.2 → 3.22.0
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.
- package/dist/assets/{Auth-reb_cTTa.js → Auth-8L5cO3io.js} +1 -1
- package/dist/assets/{BotPlaceholder-D2NiVhQ8.js → BotPlaceholder-BgltR-o8.js} +1 -1
- package/dist/assets/{Callback-CVUgDQem.js → Callback-DyWvDfJO.js} +1 -1
- package/dist/assets/{Console-Ca63tau1.js → Console-BJFopxlS.js} +1 -1
- package/dist/assets/{Conversation-CjRJo_oi.css → Conversation-B-OZlC82.css} +1 -1
- package/dist/assets/{Conversation-2A8SBfUC.js → Conversation-CAb0AtWK.js} +22 -22
- package/dist/assets/{CopyToClipboard-DvCoKPTQ.js → CopyToClipboard-C7oZlhvf.js} +1 -1
- package/dist/assets/{Detail-CvhtIeRy.js → Detail-CmtTUE6G.js} +1 -1
- package/dist/assets/{EditArray-MMbURpBP.js → EditArray-DtrBeA53.js} +1 -1
- package/dist/assets/{Extra-IXS2bWS_.js → Extra-tK8KoRgk.js} +1 -1
- package/dist/assets/{FilePreview-BJ3vUSDz.js → FilePreview-Bc3WRYrz.js} +1 -1
- package/dist/assets/{History-Aqy3xZW2.js → History-C3Z8TiCw.js} +1 -1
- package/dist/assets/{ImagePreview-B5tjfDBl.js → ImagePreview-BKjWRoxg.js} +1 -1
- package/dist/assets/{ImageWrapper-uh4-bLz8.js → ImageWrapper-BiD890LG.js} +1 -1
- package/dist/assets/{Index-B4R54zVR.js → Index-B7hP1SMu.js} +1 -1
- package/dist/assets/{Index-DTU7mbji.js → Index-B8Dt7dnR.js} +1 -1
- package/dist/assets/Index-BHd9oY8p.js +1 -0
- package/dist/assets/{Index-D6dzOan0.js → Index-BLGPvG-T.js} +1 -1
- package/dist/assets/{Index-CgHCD8F_.js → Index-CKlmvquc.js} +1 -1
- package/dist/assets/{Index-Cti0GnFj.js → Index-CSY50Dj-.js} +1 -1
- package/dist/assets/{Index-DO2VQGJq.js → Index-CUIPtrqw.js} +1 -1
- package/dist/assets/{Index-BYjJbLBL.js → Index-D41eONzM.js} +1 -1
- package/dist/assets/{Index-CppB2_PP.js → Index-DMog6Dda.js} +1 -1
- package/dist/assets/{Index-DcOK3IHr.js → Index-DMy8azyp.js} +1 -1
- package/dist/assets/{Index-GMH2vdgm.js → Index-DNq9vfq1.js} +1 -1
- package/dist/assets/{Index-_9Ja3xG1.js → Index-DlwzbkYR.js} +1 -1
- package/dist/assets/{Index-C3GywBR-.js → Index-DrByJhQj.js} +1 -1
- package/dist/assets/{Index-CKPw1XWi.js → Index-rnba5CTp.js} +1 -1
- package/dist/assets/{Index-B8Hmq-H5.js → Index-ydXTdHB_.js} +1 -1
- package/dist/assets/{Index-DKgwZx0k.js → Index-zRPRgkjp.js} +1 -1
- package/dist/assets/{InfoIcon-LF-0__cu.js → InfoIcon-xpG6wYiZ.js} +1 -1
- package/dist/assets/{Invitees-mvzOVLg1.js → Invitees-XSlpAqAQ.js} +1 -1
- package/dist/assets/{List-D3Bnx2me.js → List-BkGqvy_3.js} +1 -1
- package/dist/assets/{List-BrEN_ox4.js → List-DDJBHhhY.js} +1 -1
- package/dist/assets/List-DskwzxQy.js +1 -0
- package/dist/assets/{Login-Cqu7_Y9i.js → Login-CX-tCVs4.js} +1 -1
- package/dist/assets/{Main-dlRoCvwJ.js → Main-Dh_NJ6DX.js} +1 -1
- package/dist/assets/Navigator-BSwktn2R.js +1 -0
- package/dist/assets/{Navigator-De_Hn2Tg.css → Navigator-O1TTGlp9.css} +1 -1
- package/dist/assets/{NoTasks-7U68u4-g.js → NoTasks-RqxH5tU5.js} +1 -1
- package/dist/assets/Pagination-Tjr-mTrC.js +1 -0
- package/dist/assets/Status-hwkT5ahP.js +1 -0
- package/dist/assets/{Subscribe-DQUWyRIv.js → Subscribe-C9_YYuhz.js} +1 -1
- package/dist/assets/{VideoPlayer-DAzEIQG8.js → VideoPlayer-BAU_i6Xt.js} +1 -1
- package/dist/assets/{_baseClone-CkMTtQ9D.js → _baseClone-DtzNljAk.js} +1 -1
- package/dist/assets/_baseIteratee-W5a_Nlyi.js +1 -0
- package/dist/assets/_initCloneObject-BzNbsgMU.js +1 -0
- package/dist/assets/{castArray-CCwFp0WG.js → castArray-C-yFxvxW.js} +1 -1
- package/dist/assets/{chat-jhZ0gMc8.js → chat-5h6rIgxz.js} +1 -1
- package/dist/assets/{chat-5aITBs8m.js → chat-7hNV09Ft.js} +1 -1
- package/dist/assets/{chat-CNO6QuT4.js → chat-BBgGl6RX.js} +1 -1
- package/dist/assets/{chat-CYwIgNiz.js → chat-BaYOtssA.js} +1 -1
- package/dist/assets/{chat-DnMepMuM.js → chat-C7XgjaXY.js} +1 -1
- package/dist/assets/{chat-CFaXimBl.js → chat-CD5BvC0H.js} +1 -1
- package/dist/assets/{chat-DIO2RGDi.js → chat-Cbb2d6Oi.js} +1 -1
- package/dist/assets/{chat-MOxICDRU.js → chat-CkAw5Oys.js} +1 -1
- package/dist/assets/{chat-Bh9rcVbD.js → chat-Cpuoh_8N.js} +1 -1
- package/dist/assets/{chat-CtMD-e5o.js → chat-D2ws9Cae.js} +1 -1
- package/dist/assets/{chat-COgQ2NwU.js → chat-DOqo8k8C.js} +1 -1
- package/dist/assets/{chat-BXprw-QL.js → chat-DR0tIdQZ.js} +1 -1
- package/dist/assets/{chat-Bkjy0vIB.js → chat-DYhq09lH.js} +1 -1
- package/dist/assets/{chat-CFLYV2ET.js → chat-Dp2o-Ozz.js} +1 -1
- package/dist/assets/{chat-CFy2Ied3.js → chat-DvQMT6oB.js} +1 -1
- package/dist/assets/{chat-CaDv_E7P.js → chat-SH2gyZzj.js} +1 -1
- package/dist/assets/{chat-CsxfO42F.js → chat-SjsMvXgI.js} +1 -1
- package/dist/assets/{chat-C_8ycAyw.js → chat-n1N9esGB.js} +1 -1
- package/dist/assets/{common-BW4-7pr5.js → common-B1yX_ff-.js} +1 -1
- package/dist/assets/{common-BcVKm2id.js → common-BBPWw5J7.js} +1 -1
- package/dist/assets/{common-wugNzywt.js → common-BG45u1OV.js} +1 -1
- package/dist/assets/{common-Ctz14A_a.js → common-BLjWZSEM.js} +1 -1
- package/dist/assets/{common-DWd2m1fH.js → common-BgzpZqjU.js} +1 -1
- package/dist/assets/{common-BOuvwX_b.js → common-CEPfNZsP.js} +1 -1
- package/dist/assets/{common-B-Qxjf7a.js → common-CPXxKaEE.js} +1 -1
- package/dist/assets/{common-CAhDeo7r.js → common-CQbZiaFA.js} +1 -1
- package/dist/assets/{common-CGJk5NFZ.js → common-CRBxjBiZ.js} +1 -1
- package/dist/assets/{common-Cv4BeUYg.js → common-CWhfWsU0.js} +1 -1
- package/dist/assets/{common-CDZVeYh0.js → common-Cx_EEKap.js} +1 -1
- package/dist/assets/{common-BVnCkBQz.js → common-DBRTd0Lc.js} +1 -1
- package/dist/assets/{common-BRjwL6pa.js → common-DQoZSn9a.js} +1 -1
- package/dist/assets/{common-BYSAKW_E.js → common-D_enhakC.js} +1 -1
- package/dist/assets/{common-DbbO-j2h.js → common-DqFprXrt.js} +1 -1
- package/dist/assets/{common-Co44qVkD.js → common-DtYUqnDe.js} +1 -1
- package/dist/assets/{common-DZLnkE8j.js → common-X4ztvMtW.js} +1 -1
- package/dist/assets/{common-CMHolxbL.js → common-w2Sdj-bv.js} +1 -1
- package/dist/assets/{debounce-BdbhCXbs.js → debounce-D_GSfnKF.js} +1 -1
- package/dist/assets/{distribution-D4pz8Isc.js → distribution-4bP9Z08I.js} +1 -1
- package/dist/assets/{dropdown-qurKCg-v.js → dropdown-BDVhc981.js} +1 -1
- package/dist/assets/{index-CiLZ_bC6.js → index-B5qqirtZ.js} +1 -1
- package/dist/assets/{index-DO2Q3h3U.js → index-BG27krBY.js} +1 -1
- package/dist/assets/{index-BNsx4-7B.js → index-BPLDIKYi.js} +1 -1
- package/dist/assets/index-BZxyIS6v.js +1 -0
- package/dist/assets/{index-C9eZxc-b.js → index-Bu8GYl4M.js} +1 -1
- package/dist/assets/{index-BquyEGf6.js → index-Bxn0D_Ay.js} +35 -35
- package/dist/assets/{index-DcHF8gEn.js → index-C7dq5GDX.js} +2 -2
- package/dist/assets/{index-B0lmXmn1.js → index-CDRWFNPw.js} +1 -1
- package/dist/assets/index-CMofrOYp.js +1 -0
- package/dist/assets/index-CfFbRlb3.js +1 -0
- package/dist/assets/{index-CGd3r2k1.js → index-CiupJjd2.js} +1 -1
- package/dist/assets/index-CvUpzdE1.js +1 -0
- package/dist/assets/{index-BwryP3xv.js → index-D9TXWw5i.js} +1 -1
- package/dist/assets/index-DA1L1iqe.js +1 -0
- package/dist/assets/{index-Dq4LiRTf.js → index-DG2fa-ow.js} +1 -1
- package/dist/assets/index-DkwacTMf.js +1 -0
- package/dist/assets/{index-Dt1y58on.js → index-DpWAouU9.js} +1 -1
- package/dist/assets/{index-D5Tzz_9x.js → index-DwKtBxI9.js} +1 -1
- package/dist/assets/index-I256GqO3.js +1 -0
- package/dist/assets/index-KMXdPkbR.js +1 -0
- package/dist/assets/index-Nq6BDZRS.js +1 -0
- package/dist/assets/{index-CPI8vpXJ.js → index-PrnYVdZU.js} +2 -2
- package/dist/assets/{index-CN_utBEJ.js → index-YB7WcHHr.js} +1 -1
- package/dist/assets/{index-Bbv8AcsL.js → index-ZXXqKgb5.js} +1 -1
- package/dist/assets/{index-C4dxWzTO.js → index-ekLS25Os.js} +1 -1
- package/dist/assets/{index-CYVG-TAg.js → index-kwhOoHli.js} +1 -1
- package/dist/assets/{index-CIHcknCS.js → index-qF8ceE1g.js} +1 -1
- package/dist/assets/{index-FdU7uO_k.js → index-r5mkEdBU.js} +1 -1
- package/dist/assets/{index-Cwls0ZAN.js → index-zhXzFU3e.js} +1 -1
- package/dist/assets/{index.es-p3WzQOq6.js → index.es-B1Cre0ht.js} +1 -1
- package/dist/assets/{isEqual-CD5SlWKj.js → isEqual-CYpeyoZ0.js} +1 -1
- package/dist/assets/isPlainObject-STqtLEhU.js +1 -0
- package/dist/assets/{order-wD86u0Bp.js → order-DhJ-UIdx.js} +1 -1
- package/dist/assets/price-crtYVYmR.js +1 -0
- package/dist/assets/{site-AMu-furx.js → site-A77Io2Or.js} +1 -1
- package/dist/assets/{site-CfaiNsJJ.js → site-B5iItt-S.js} +1 -1
- package/dist/assets/{site-C2z7Acri.js → site-BCvdK8CL.js} +1 -1
- package/dist/assets/{site-Dp6QqWBj.js → site-BGJJwm3f.js} +1 -1
- package/dist/assets/{site-BAvle2_O.js → site-BhAsjXKi.js} +1 -1
- package/dist/assets/{site-Jn4RON08.js → site-BvDhdNyC.js} +1 -1
- package/dist/assets/{site-hdQfWIGT.js → site-CENdxzGD.js} +1 -1
- package/dist/assets/{site-C3DwWYe_.js → site-CEl0Pi6P.js} +1 -1
- package/dist/assets/{site-Bt1bg9lM.js → site-CTKTeBh7.js} +1 -1
- package/dist/assets/{site-CgZJc3OO.js → site-CWwNGoZV.js} +1 -1
- package/dist/assets/{site-OiCS76HU.js → site-Ck2H94nf.js} +1 -1
- package/dist/assets/{site-B-S3bmIw.js → site-CulGDrJc.js} +1 -1
- package/dist/assets/{site-B_Ggyidz.js → site-CyNMSsZ2.js} +1 -1
- package/dist/assets/{site-DShO1dvg.js → site-DFLsDbsz.js} +1 -1
- package/dist/assets/{site-kMOtpEid.js → site-DIgI-p5B.js} +1 -1
- package/dist/assets/{site-B5Cf-IAc.js → site-DcQt4gc_.js} +1 -1
- package/dist/assets/{site-DuhFEiWH.js → site-DjtV0ZIK.js} +1 -1
- package/dist/assets/{site-lU9w5lDF.js → site-p0SL6qTu.js} +1 -1
- package/dist/assets/strings-Djoxz8AJ.js +1 -0
- package/dist/assets/{typescript-C_0I_mxX.js → typescript-14ZN9Iqb.js} +1 -1
- package/dist/assets/use-form-item-BHzDGeGF.js +1 -0
- package/dist/index.html +1 -1
- package/package.json +1 -1
- package/dist/assets/Index-DSFEw-bV.js +0 -1
- package/dist/assets/List-DWosUHeV.js +0 -1
- package/dist/assets/Navigator-B4f_FBsX.js +0 -1
- package/dist/assets/Pagination-uDw6u3ix.js +0 -1
- package/dist/assets/Status-BEXW_X3u.js +0 -1
- package/dist/assets/_baseIteratee-FPmiAqiQ.js +0 -1
- package/dist/assets/_initCloneObject-DBpc_lNE.js +0 -1
- package/dist/assets/index-B1ltQzXY.js +0 -1
- package/dist/assets/index-BPDafUhu.js +0 -1
- package/dist/assets/index-BwG5X1Uf.js +0 -1
- package/dist/assets/index-C80KlKYJ.js +0 -1
- package/dist/assets/index-DMcrRoGp.js +0 -1
- package/dist/assets/index-D_OfWunA.js +0 -1
- package/dist/assets/index-Dns87zhU.js +0 -1
- package/dist/assets/index-Dvf0QjP1.js +0 -1
- package/dist/assets/index-bP-68lHF.js +0 -1
- package/dist/assets/isPlainObject-DvwkK7xb.js +0 -1
- package/dist/assets/price-QrgS9vBm.js +0 -1
- package/dist/assets/strings-Bbr3e8ju.js +0 -1
- package/dist/assets/use-form-item-n2htyTGx.js +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
import{aF as tt,ao as V,c as u,am as al,aq as ge,bH as nt,av as F,d3 as at,d0 as X,az as j,aN as ye,_ as Se,d as re,J as ae,K as ke,b as I,o as g,r as k,t as E,x as W,ak as B,n as v,a as se,aZ as ol,e as Ve,cd as De,bJ as ie,ar as sl,bf as H,y as M,f as he,ay as Re,b4 as ot,d5 as st,aQ as P,cn as it,br as rt,bI as be,bA as Ze,bM as ut,aO as ne,bQ as Xe,d6 as dt,ck as Z,aL as ct,cv as pt,cj as il,aE as ft,an as vt,bk as mt,d7 as bt,as as le,d8 as Ye,A as ht,bL as _e,cq as gt,bV as yt,l as G,cQ as St,k as Q,j as L,i as A,F as xe,v as el,D as ll,cb as te,d9 as Ct,bb as Ee,da as Ot,E as wt,ca as It,ap as rl,bN as Vt,cC as Et,w as ul,g as Tt}from"./index-BquyEGf6.js";import{u as tl,b as kt,E as Dt}from"./index-Cwls0ZAN.js";import{s as Rt,E as Mt}from"./index-Dvf0QjP1.js";import{e as $t}from"./strings-Bbr3e8ju.js";import{c as U}from"./castArray-CCwFp0WG.js";import{i as oe}from"./isEqual-CD5SlWKj.js";import{b as q,d as Lt}from"./typescript-C_0I_mxX.js";import{u as Nt,a as Bt}from"./use-form-item-n2htyTGx.js";import{u as Wt,a as Ft}from"./index-DO2Q3h3U.js";import{d as Pt}from"./debounce-BdbhCXbs.js";import{b as zt}from"./_baseIteratee-FPmiAqiQ.js";import{u as Kt}from"./index-D_OfWunA.js";import{C as At}from"./index-C4dxWzTO.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=V(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",Ve(C)),o.is("selected",Ve(t)),o.is("hovering",Ve(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",{},()=>[E("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=V("");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=V(),h=V(),b=V(),f=V(),d=V(),i=V(),s=V(),p=V(),w=V(),T=V(),D=V(),y=V(!1),N=V(),{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),Vl=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}),El=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=El.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:Vl,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=>{Vt(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[E("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),E("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(()=>[E("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(()=>[E("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(()=>[E("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(()=>[E("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(()=>[E("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),E("div",{class:v([e.nsSelect.e("selected-item"),e.nsSelect.e("input-wrapper"),e.nsSelect.is("hidden",!e.filterable)])},[ae(E("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},()=>[E("span",null,W(e.currentPlaceholder),1)]):(g(),I("span",{key:1},W(e.currentPlaceholder),1))],2)):M("v-if",!0)],2),E("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(Ee(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(Ee(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(Ee(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",{},()=>[E("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=V(),m=ye(),c=V([]);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;Et(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"))},[E("li",{class:v(e.ns.be("group","title"))},W(e.label),3),E("li",null,[E("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{aL as tt,au as E,c as u,as as al,aw as ge,bN as nt,aB as P,d9 as at,d6 as Y,aF as j,aT 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,aq as N,n as v,a as se,b3 as ol,e as Ee,cj as Re,bP as ie,ax as sl,bl as H,y as $,f as he,aE as De,ba as ot,db as st,aW as F,ct as it,bx as rt,bO as be,bG as Xe,bS as ut,aU as ne,bW as Ye,dc as dt,cq as X,aR as ct,cB as pt,cp as il,aK as ft,at as vt,bq as mt,dd as bt,ay as le,de as Ze,A as ht,bR as _e,cw as gt,b$ as yt,l as G,cW as St,k as q,j as L,i as A,F as xe,v as el,D as ll,ch as te,df as Ct,bh as Ve,dg as Ot,E as wt,cg as It,av as rl,bT as Et,cI as Vt,w as ul,g as Tt}from"./index-Bxn0D_Ay.js";import{u as tl,b as kt,E as Rt}from"./index-zhXzFU3e.js";import{s as Dt,E as $t}from"./index-BZxyIS6v.js";import{e as Mt}from"./strings-Djoxz8AJ.js";import{c as U}from"./castArray-C-yFxvxW.js";import{i as oe}from"./isEqual-CYpeyoZ0.js";import{b as Q,d as Lt}from"./typescript-14ZN9Iqb.js";import{u as Bt,a as Nt}from"./use-form-item-BHzDGeGF.js";import{u as Wt,a as Pt}from"./index-BG27krBY.js";import{d as Ft}from"./debounce-D_GSfnKF.js";import{b as zt}from"./_baseIteratee-W5a_Nlyi.js";import{u as Kt}from"./index-DA1L1iqe.js";import{C as At}from"./index-ekLS25Os.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:P(e.value)?"":e.value}),C=u(()=>e.value||e.label||""),h=u(()=>e.disabled||o.groupDisabled||S.value),b=ye(),f=(s=[],p)=>{if(P(e.value)){const w=a.props.valueKey;return s&&s.some(T=>at(Y(T,w))===Y(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(Mt(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&&P(s)&&P(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}=Re(c),s=ye().proxy;h.onOptionCreate(s),sl(()=>{const w=s.value,{selected:T}=h.states,R=T.some(y=>y.value===s.value);H(()=>{h.states.cachedOptions.get(w)===s&&!R&&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:N(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 $e=Se(Qt,[["render",Jt],["__file","option.vue"]]);const Xt=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 De(()=>{t(),Q(e.selectRef,t)}),{ns:o,minWidth:S,popperClass:a,isMultiple:m,isFitInputWidth:c}}});function Yt(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)):$("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)):$("v-if",!0)],6)}var Zt=Se(Xt,[["render",Yt],["__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(),R=E(),y=E(!1),B=E(),{form:ue,formItem:z}=Bt(),{inputId:pl}=Nt(e,{formItemContext:z}),{valueOnClear:fl,isEmptyValue:vl}=st(e),{isComposing:Me,handleCompositionStart:ml,handleCompositionUpdate:bl,handleCompositionEnd:hl}=Wt({afterComposition:l=>He(l)}),Z=u(()=>e.disabled||!!ue?.disabled),{wrapperRef:Le,isFocused:Be,handleBlur:gl}=Pt(d,{disabled:Z,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=>Ye()))}}),Oe=u(()=>F(e.modelValue)?e.modelValue.length>0:!vl(e.modelValue)),yl=u(()=>{var l;return(l=ue?.statusIcon)!=null?l:!1}),Sl=u(()=>e.clearable&&!Z.value&&t.inputHovering&&Oe.value),Ne=u(()=>e.remote&&e.filterable&&!e.remoteShowSuffix?"":e.suffixIcon),Cl=u(()=>c.is("reverse",!!(Ne.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(()=>D.value.filter(l=>l.visible).length),D=u(()=>{const l=Array.from(t.options.values()),n=[];return t.optionValues.forEach(r=>{const O=l.findIndex(M=>M.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=D.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)||D.value.forEach(l=>{var n;(n=l.updateOption)==null||n.call(l,t.inputValue)})},Pe=rt(),kl=u(()=>["small"].includes(Pe.value)?"small":"default"),Rl=u({get(){return y.value&&!Il.value},set(l){y.value=l}}),Dl=u(()=>{if(e.multiple&&!be(e.modelValue))return U(e.modelValue).length===0&&!t.inputValue;const l=F(e.modelValue)?e.modelValue[0]:e.modelValue;return e.filterable||be(l)?!t.inputValue:!0}),$l=u(()=>{var l;const n=(l=e.placeholder)!=null?l:a("el.select.placeholder");return e.multiple||!Oe.value?n:t.selectedLabel}),Ml=u(()=>Xe?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=>Ye())},{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&&Fe())},{flush:"post"}),j([()=>t.hoveringIndex,D],([l])=>{vt(l)&&l>-1?B.value=D.value[l]||{}:B.value={},D.value.forEach(n=>{n.hover=B.value===n})}),ut(()=>{t.isBeforeHide||We()});const de=l=>{t.previousQuery===l||Me.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(Fe):H(Ll))},Fe=()=>{const l=D.value.filter(M=>M.visible&&!M.disabled&&!M.states.groupDisabled),n=l.find(M=>M.created),r=l[0],O=D.value.map(M=>M.value);t.hoveringIndex=qe(O,n||r)},ce=()=>{if(e.multiple)t.selectedLabel="";else{const n=F(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?Y(K.value,e.valueKey)===Y(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=D.value.findIndex(l=>t.selected.some(n=>ve(n)===ve(l)))},Bl=()=>{t.selectionWidth=Number.parseFloat(window.getComputedStyle(h.value).width)},Nl=()=>{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=Ft(()=>{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}),Pl=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(X,n),x(n),o("remove-tag",O)}},Fl=(l,n)=>{const r=t.selected.indexOf(n);if(r>-1&&!Z.value){const O=U(e.modelValue).slice();O.splice(r,1),o(X,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(X,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(X,r),x(r),l.created&&de(""),e.filterable&&!e.reserveKeyword&&(t.inputValue="")}else o(X,l.value),x(l.value),y.value=!1;fe(),!y.value&&H(()=>{pe(l)})},qe=(l,n)=>be(n)?-1:P(n.value)?l.findIndex(r=>oe(Y(r,e.valueKey),ve(n))):l.indexOf(n.value),pe=l=>{var n,r,O,M,J;const K=F(l)?l[0]:l;let me=null;if(K?.value){const ee=D.value.filter(lt=>lt.value===K.value);ee.length>0&&(me=ee[0].$el)}if(b.value&&me){const ee=(M=(O=(r=(n=b.value)==null?void 0:n.popperRef)==null?void 0:r.contentRef)==null?void 0:O.querySelector)==null?void 0:M.call(O,`.${c.be("dropdown","wrap")}`);ee&&dt(ee,me)}(J=R.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=R.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,Be.value){const n=new FocusEvent("focus",l);H(()=>gl(n))}},ql=()=>{t.inputValue.length>0?t.inputValue="":y.value=!1},Qe=()=>{Z.value||(Xe&&(t.inputHovering=!0),t.menuVisibleOnFocus?t.menuVisibleOnFocus=!1:y.value=!y.value)},Ql=()=>{if(!y.value)Qe();else{const l=D.value[t.hoveringIndex];l&&!l.isDisabled&&Ge(l)}},ve=l=>P(l.value)?Y(l.value,e.valueKey):l.value,Jl=u(()=>D.value.filter(l=>l.visible).every(l=>l.isDisabled)),Xl=u(()=>e.multiple?e.collapseTags?t.selected.slice(0,e.maxCollapseTags):t.selected:[]),Yl=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||Me.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=D.value[t.hoveringIndex];(n.isDisabled||!n.visible)&&Je(l),H(()=>pe(B.value))}},Zl=()=>{if(!h.value)return 0;const l=window.getComputedStyle(h.value);return Number.parseFloat(l.gap||"6px")},_l=u(()=>{const l=Zl();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,Bl),Q(p,Ie),Q(Le,Ie),Q(w,Ke),Q(T,Nl),De(()=>{ce()}),{inputId:pl,contentId:m,nsSelect:c,nsInput:S,states:t,isFocused:Be,expanded:y,optionsArray:D,hoverOption:B,selectSize:Pe,filteredOptionsCount:_,updateTooltip:Ie,updateTagTooltip:Ke,debouncedOnInputChange:Ue,onInput:He,deletePrevTag:Pl,deleteTag:Fl,deleteSelected:je,handleOptionSelect:Ge,scrollToOption:pe,hasModelValue:Oe,shouldShowPlaceholder:Dl,currentPlaceholder:$l,mouseEnterEventName:Ml,needStatusIcon:yl,showClose:Sl,iconComponent:Ne,iconReverse:Cl,validateState:we,validateIcon:Ol,showNewOption:Tl,updateOptions:We,collapseTagSize:kl,setSelected:ce,selectDisabled:Z,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:Rl,showTagList:Xl,collapseTagList:Yl,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:R,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){F(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)&&!F(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):F(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:{...Ze.type,default:"info"},tagEffect:{...Ze.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"])});Dt.scroll;const nl="ElSelect",ln=re({name:nl,componentName:nl,components:{ElSelectMenu:Zt,ElOption:$e,ElOptions:xt,ElTag:It,ElScrollbar:$t,ElTooltip:Rt,ElIcon:wt},directives:{ClickOutside:At},props:en,emits:[X,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 F(i)?s?i:p:s?p:i}),S=ie({...Re(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(P(p)&&(p.type.name==="ElOption"||p.type.name==="ElTree")){const T=p.type.name;if(T==="ElTree"){const R=((w=p.props)==null?void 0:w.data)||[];b(R).forEach(B=>{B.currentLabel=B.label||(P(B.value)?"":B.value),t.onOptionCreate(B)})}else if(T==="ElOption"){const R={...p.props};R.currentLabel=R.label||(P(R.value)?"":R.value),t.onOptionCreate(R)}}})};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:N(e.toggleMenu,["prevent"])},[e.$slots.prefix?(g(),I("div",{key:0,ref:"prefixRef",class:v(e.nsSelect.e("prefix"))},[k(e.$slots,"prefix")],2)):$("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"])):$("v-if",!0)]):$("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(N(d=>e.navigateOptions("next"),["stop","prevent"]),["down"]),te(N(d=>e.navigateOptions("prev"),["stop","prevent"]),["up"]),te(N(e.handleEsc,["stop","prevent"]),["esc"]),te(N(e.selectOption,["stop","prevent"]),["enter"]),te(N(e.deletePrevTag,["stop"]),["delete"])],onCompositionstart:e.handleCompositionStart,onCompositionupdate:e.handleCompositionUpdate,onCompositionend:e.handleCompositionEnd,onInput:e.onInput,onClick:N(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"])):$("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)):$("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"])):$("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"])):$("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"])):$("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:N(()=>{},["stop"])},[k(e.$slots,"header")],10,["onClick"])):$("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"])):$("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)):$("v-if",!0),e.$slots.footer?(g(),I("div",{key:3,class:v(e.nsSelect.be("dropdown","footer")),onClick:N(()=>{},["stop"])},[k(e.$slots,"footer")],10,["onClick"])):$("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({...Re(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):F(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 De(()=>{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:$e,OptionGroup:cl}),Cn=ul($e);ul(cl);export{Cn as E,Sn as a};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{
|
|
1
|
+
import{aW as g,aG as x,aK as C}from"./index-Bxn0D_Ay.js";const s=new Map;if(C){let e;document.addEventListener("mousedown",t=>e=t),document.addEventListener("mouseup",t=>{if(e){for(const n of s.values())for(const{documentHandler:o}of n)o(t,e);e=void 0}})}function i(e,t){let n=[];return g(t.arg)?n=t.arg:x(t.arg)&&n.push(t.arg),function(o,a){const c=t.instance.popperRef,r=o.target,d=a?.target,l=!t||!t.instance,f=!r||!d,p=e.contains(r)||e.contains(d),m=e===r,h=n.length&&n.some(u=>u?.contains(r))||n.length&&n.includes(d),v=c&&(c.contains(r)||c.contains(d));l||f||p||m||h||v||t.value(o,a)}}const H={beforeMount(e,t){s.has(e)||s.set(e,[]),s.get(e).push({documentHandler:i(e,t),bindingFn:t.value})},updated(e,t){s.has(e)||s.set(e,[]);const n=s.get(e),o=n.findIndex(c=>c.bindingFn===t.oldValue),a={documentHandler:i(e,t),bindingFn:t.value};o>=0?n.splice(o,1,a):n.push(a)},unmounted(e){s.delete(e)}};export{H as C};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{c as e,
|
|
1
|
+
import{c as e,aM as o,aT as u}from"./index-Bxn0D_Ay.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};
|