@volverjs/ui-vue 0.0.1-beta.5 → 0.0.1-beta.8
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/README.md +61 -2
- package/dist/components/VvButton/vv-button.es.js +56 -58
- package/dist/components/VvButton/vv-button.umd.js +1 -1
- package/dist/components/VvCheckGroup/vv-check-group.es.js +221 -203
- package/dist/components/VvCheckGroup/vv-check-group.umd.js +2 -2
- package/dist/components/VvInputText/VvInputText.d.ts +14 -0
- package/dist/components/VvInputText/VvInputText.vue.d.ts +36 -1
- package/dist/components/VvInputText/VvInputTextActions.d.ts +3 -0
- package/dist/components/VvInputText/vv-input-text.es.js +509 -380
- package/dist/components/VvInputText/vv-input-text.umd.js +2 -2
- package/dist/components/VvNativeSelect/vv-native-select.es.js +180 -161
- package/dist/components/VvNativeSelect/vv-native-select.umd.js +2 -2
- package/dist/components/VvRadioGroup/vv-radio-group.es.js +211 -193
- package/dist/components/VvRadioGroup/vv-radio-group.umd.js +2 -2
- package/dist/components/VvSelect/vv-select.es.js +189 -171
- package/dist/components/VvSelect/vv-select.umd.js +2 -2
- package/dist/components/VvTextarea/VvTextarea.d.ts +43 -22
- package/dist/components/VvTextarea/VvTextarea.vue.d.ts +140 -85
- package/dist/components/VvTextarea/vv-textarea.es.js +364 -288
- package/dist/components/VvTextarea/vv-textarea.umd.js +2 -2
- package/dist/composables/debouncedInput/useDebouncedInput.d.ts +2 -0
- package/dist/composables/icons/useComponentIcons.d.ts +6 -0
- package/dist/composables/textLimit/useTextLimit.d.ts +14 -0
- package/dist/composables/useModifiers.d.ts +3 -2
- package/dist/icons.es.js +3 -3
- package/dist/icons.umd.js +1 -1
- package/dist/props/index.d.ts +42 -0
- package/dist/stories/utils.d.ts +5 -0
- package/dist/ui-vue.es.js +417 -401
- package/dist/ui-vue.umd.js +2 -2
- package/package.json +3 -1
- package/src/assets/icons/detailed.json +1 -1
- package/src/assets/icons/normal.json +1 -1
- package/src/assets/icons/simple.json +1 -1
- package/src/components/VvButton/VvButton.vue +1 -2
- package/src/components/VvInputText/VvInputText.ts +19 -2
- package/src/components/VvInputText/VvInputText.vue +123 -149
- package/src/components/VvInputText/VvInputTextActions.ts +151 -0
- package/src/components/VvTextarea/VvTextarea.ts +25 -16
- package/src/components/VvTextarea/VvTextarea.vue +89 -93
- package/src/components/common/HintSlot.ts +31 -13
- package/src/composables/debouncedInput/useDebouncedInput.ts +19 -0
- package/src/composables/icons/useComponentIcons.ts +35 -0
- package/src/composables/textLimit/useTextLimit.ts +44 -0
- package/src/composables/useModifiers.ts +47 -1
- package/src/props/index.ts +39 -0
- package/src/stories/InputText/InputTextMaxLength.stories.mdx +21 -0
- package/src/stories/Textarea/Textarea.stories.mdx +33 -51
- package/src/stories/Textarea/TextareaAutoclear.stories.mdx +23 -0
- package/src/stories/Textarea/TextareaAutocomplete.stories.mdx +10 -2
- package/src/stories/Textarea/TextareaAutofocus.stories.mdx +5 -1
- package/src/stories/Textarea/TextareaDebounce.stories.mdx +23 -0
- package/src/stories/Textarea/TextareaDisabled.stories.mdx +5 -1
- package/src/stories/Textarea/TextareaError.stories.mdx +6 -3
- package/src/stories/Textarea/TextareaErrorLabel.stories.mdx +37 -0
- package/src/stories/Textarea/TextareaFloating.stories.mdx +7 -2
- package/src/stories/Textarea/TextareaHintLabel.stories.mdx +5 -1
- package/src/stories/Textarea/TextareaIcon.stories.mdx +5 -1
- package/src/stories/Textarea/TextareaIconPosition.stories.mdx +9 -1
- package/src/stories/Textarea/TextareaId.stories.mdx +19 -0
- package/src/stories/Textarea/TextareaLabel.stories.mdx +5 -1
- package/src/stories/Textarea/TextareaLimit.stories.mdx +50 -0
- package/src/stories/Textarea/TextareaLoading.stories.mdx +6 -3
- package/src/stories/Textarea/TextareaLoadingLabel.stories.mdx +23 -0
- package/src/stories/Textarea/TextareaMaxLength.stories.mdx +6 -2
- package/src/stories/Textarea/TextareaMinLength.stories.mdx +5 -1
- package/src/stories/Textarea/TextareaModifiers.stories.mdx +24 -0
- package/src/stories/Textarea/TextareaName.stories.mdx +23 -0
- package/src/stories/Textarea/TextareaPlaceholder.stories.mdx +5 -1
- package/src/stories/Textarea/TextareaReadonly.stories.mdx +5 -1
- package/src/stories/Textarea/TextareaRequired.stories.mdx +22 -0
- package/src/stories/Textarea/TextareaResizable.stories.mdx +22 -0
- package/src/stories/Textarea/TextareaRowsCols.stories.mdx +9 -1
- package/src/stories/Textarea/TextareaValid.stories.mdx +7 -4
- package/src/stories/Textarea/TextareaValidLabel.stories.mdx +35 -0
- package/src/stories/stories.scss +11 -0
- package/src/stories/utils.ts +12 -0
- package/src/stories/volver-ui-vue.stories.mdx +7 -1
- package/dist/components/VvInputText/useInputNumber.d.ts +0 -16
- package/dist/components/VvInputText/useInputPassword.d.ts +0 -16
- package/src/components/VvInputText/useInputNumber.ts +0 -40
- package/src/components/VvInputText/useInputPassword.ts +0 -38
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
(function(e,P){typeof exports=="object"&&typeof module<"u"?module.exports=P(require("vue"),require("@iconify/vue"),require("@vueuse/core")):typeof define=="function"&&define.amd?define(["vue","@iconify/vue","@vueuse/core"],P):(e=typeof globalThis<"u"?globalThis:e||self,e.VvInputText=P(e.vue,e.vue$1,e.core))})(this,function(e,P,
|
|
2
|
-
`+
|
|
1
|
+
(function(e,P){typeof exports=="object"&&typeof module<"u"?module.exports=P(require("vue"),require("@iconify/vue"),require("@vueuse/core")):typeof define=="function"&&define.amd?define(["vue","@iconify/vue","@vueuse/core"],P):(e=typeof globalThis<"u"?globalThis:e||self,e.VvInputText=P(e.vue,e.vue$1,e.core))})(this,function(e,P,O){"use strict";const S={equals(n,r,t){return t?this.resolveFieldData(n,t)===this.resolveFieldData(r,t):this.deepEquals(n,r)},deepEquals(n,r){if(n===r)return!0;if(n&&r&&typeof n=="object"&&typeof r=="object"){const t=Array.isArray(n),s=Array.isArray(r);let o,i,a;if(t&&s){if(i=n.length,i!=r.length)return!1;for(o=i;o--!==0;)if(!this.deepEquals(n[o],r[o]))return!1;return!0}if(t!=s)return!1;const f=n instanceof Date,c=r instanceof Date;if(f!=c)return!1;if(f&&c)return n.getTime()==r.getTime();const A=n instanceof RegExp,l=r instanceof RegExp;if(A!=l)return!1;if(A&&l)return n.toString()==r.toString();const u=Object.keys(n);if(i=u.length,i!==Object.keys(r).length)return!1;for(o=i;o--!==0;)if(!Object.prototype.hasOwnProperty.call(r,u[o]))return!1;for(o=i;o--!==0;)if(a=u[o],!this.deepEquals(n[a],r[a]))return!1;return!0}return n!==n&&r!==r},resolveFieldData(n,r){if(n&&Object.keys(n).length&&r){if(r.indexOf(".")===-1)return n[r];{const t=r.split(".");let s=n;for(let o=0,i=t.length;o<i;++o){if(n==null)return null;s=s[t[o]]}return s}}else return null},isFunction(n){return!!(n&&n.constructor&&n.call&&n.apply)},findIndexInList(n,r){let t=-1;if(r){for(let s=0;s<r.length;s++)if(this.equals(r[s],n)){t=s;break}}return t},contains(n,r){if(n!=null&&r&&r.length){for(const t of r)if(this.equals(n,t))return!0}return!1},isEmpty(n){return n==null||n===""||Array.isArray(n)&&n.length===0||!(n instanceof Date)&&typeof n=="object"&&Object.keys(n).length===0},isNotEmpty(n){return!this.isEmpty(n)},pickBy(n,r){return Object.fromEntries(Object.entries(n).filter(([t])=>r(t)))},removeFromList(n,r){const t=this.findIndexInList(n,r);return t>-1?r.filter((s,o)=>o!==t):r},isString(n){return typeof n=="string"||n instanceof String},propsToObject(n){return Object.keys(n).reduce((r,t)=>{var s,o,i,a,f;return this.isFunction(n[t])?r[t]=n[t]():Array.isArray(n[t])?r[t]=n[t][0]():(s=n[t])!=null&&s.type&&(Array.isArray(n[t].type)?r[t]=((o=n[t])==null?void 0:o.default)||((i=n[t])==null?void 0:i.type[0]()):r[t]=((a=n[t])==null?void 0:a.default)||((f=n[t])==null?void 0:f.type())),r},{})},filterArray(n,r,t){return n.filter(s=>r.some(o=>typeof o=="string"?s[t]==o:this.equals(s[t],o[t])))},kebabCase(n){var r,t;if(n)return(t=(r=n.match(/[A-Z]{2,}(?=[A-Z][a-z]+[0-9]*|\b)|[A-Z]?[a-z]+[0-9]*|[A-Z]|[0-9]+/g))==null?void 0:r.join("-"))==null?void 0:t.toLowerCase()}},Y={valid:Boolean,validLabel:[String,Array]},q={error:Boolean,errorLabel:[String,Array]},H={loading:Boolean,loadingLabel:String},U={modifiers:[String,Array]},W={hintLabel:{type:String,default:""}},z={limit:{type:[Boolean,String],default:!1,validator:n=>[!0,!1,"countdown"].includes(n)}},_={TEXT:"text",PASSWORD:"password",DATE:"date",DATETIME_LOCAL:"datetime-local",NUMBER:"number",TIME:"time",EMAIL:"email",TEL:"tel",URL:"url",COLOR:"color",SEARCH:"search",FILE:"file"},k={LEFT:"left",RIGHT:"right"},w={PASSWORD_ON:"eye-on",PASSWORD_OFF:"eye-off",DATE:"calendar",TIME:"time",COLOR:"color",SEARCH:"search"},m={TYPES:_,ICON_POSITIONS:k,TYPES_ICON:w},Z=["update:modelValue","focus","blur"],G={...Y,...q,...W,...H,...U,...z,modelValue:null,type:{type:String,default:_.TEXT,validator:n=>Object.values(_).includes(n)},id:String,name:{type:String,required:!0},autocomplete:{type:String,default:"off"},autofocus:Boolean,minlength:Number,maxlength:Number,min:[Number,Date],max:[Number,Date],step:Number,label:String,disabled:Boolean,readonly:Boolean,placeholder:String,icon:{type:String,default:""},iconPosition:{type:String,validation:n=>Object.values(k).includes(n),default:k.RIGHT},floating:Boolean,debounce:Number,autoclear:Boolean},X={color:String,width:{type:[String,Number]},height:{type:[String,Number]},name:{type:String,required:!0},provider:{type:String},prefix:{type:String,default:"normal"},src:String,horizontalFlip:Boolean,verticalFlip:Boolean,flip:String,mode:String,inline:Boolean,rotate:[Number,String],onLoad:Function,svg:String,modifiers:{type:[String,Array]}};function J(n,r){const t={[`${n}`]:!0};return{bemCssClasses:e.computed(()=>Object.keys(r).reduce((o,i)=>{const a=e.unref(r[i])||!1;if(!a)return o;if(i==="modifiers"){const f=Array.isArray(a)?a:[a];return{...o,...f.reduce((c,A)=>({...c,[`${n}--${S.kebabCase(A)}`]:!0}),{})}}else return{...o,[`${n}--${S.kebabCase(i)}`]:a}},t)||{})}}function K(n,r){const t={[`${n}`]:!0};return Object.keys(r).reduce((s,o)=>{const i=e.unref(r[o])||!1;if(!i)return s;if(o==="modifiers"){const a=Array.isArray(i)?i:[i];return{...s,...a.reduce((f,c)=>({...f,[`${n}--${S.kebabCase(c)}`]:!0}),{})}}else return{...s,[`${n}--${S.kebabCase(o)}`]:i}},t)||{}}const T=e.defineComponent({__name:"VvIcon",props:X,setup(n){const r=n,t=e.ref(!0),{modifiers:s}=e.toRefs(r),o=e.inject("ds"),{bemCssClasses:i}=J("vv-icon",{modifiers:s}),a=e.computed(()=>r.provider||(o==null?void 0:o.provider)),f=e.computed(()=>{const l=r.name||"",u=`@${a.value}:${r.prefix}:${r.name}`;return P.iconExists(l)?l:P.iconExists(u)?u:(o==null?void 0:o.iconsCollections.find(h=>{const d=`@${a.value}:${h.prefix}:${l}`;if(P.iconExists(d))return d}))||l});function c(l){let u=null;if(typeof window>"u"){const{JSDOM:b}=require("jsdom");u=new b().window}return(u?new u.DOMParser:new window.DOMParser).parseFromString(l,"text/html").querySelector("svg")}function A(l){const u=c(l),h=(u==null?void 0:u.innerHTML.trim())||"";u&&h&&P.addIcon(`@${a.value}:${r.prefix}:${r.name}`,{body:h,height:u.viewBox.baseVal.height,width:u.viewBox.baseVal.width})}return o&&(r.src?(t.value=!1,o.fetchIcon(r.src).then(l=>{l&&(A(l),t.value=!0)}).catch(l=>{throw new Error(`During fetch icon: ${l==null?void 0:l.message}`)})):r.svg&&A(r.svg)),(l,u)=>t.value?(e.openBlock(),e.createBlock(e.unref(P.Icon),e.mergeProps({key:0,class:e.unref(i)},{...l.$props,provider:e.unref(a),icon:e.unref(f)}),null,16,["class"])):e.createCommentVNode("",!0)}});function D(n){return Array.isArray(n)?n.filter(r=>S.isString(r)).reduce((r,t)=>r.length>0?r+`
|
|
2
|
+
`+t:t,""):n}function Q(n,r){return{name:"HintSlot",props:{params:{type:Object,default:()=>{}}},setup(t){const s=e.toRefs(n),{error:o,valid:i,hint:a,loading:f}=r,{hintLabel:c,modelValue:A,valid:l,validLabel:u,error:h,errorLabel:d}=s,y=S.resolveFieldData(s,"loading"),b=S.resolveFieldData(s,"loadingLabel"),I=e.computed(()=>h.value?!!(h.value&&o||(d==null?void 0:d.value)&&Array.isArray(d.value)&&d.value.length>0||(d==null?void 0:d.value)&&S.isNotEmpty(d.value)):!1),x=e.computed(()=>!!(c&&c.value||a||i||u&&u.value||I.value||(y==null?void 0:y.value)&&f||(y==null?void 0:y.value)&&(b==null?void 0:b.value))),B=e.computed(()=>{const C=O.toReactive({hintLabel:c,modelValue:A,valid:l,validLabel:u,error:h,errorLabel:d,loading:y,loadingLabel:b,...t.params});return h!=null&&h.value?(o==null?void 0:o(C))||D(d==null?void 0:d.value)||(c==null?void 0:c.value):l!=null&&l.value?(i==null?void 0:i(C))||D(u==null?void 0:u.value)||(c==null?void 0:c.value):y!=null&&y.value?(f==null?void 0:f(C))||D(b==null?void 0:b.value)||(c==null?void 0:c.value):(a==null?void 0:a(C))||D(c==null?void 0:c.value)||(c==null?void 0:c.value)});return{hasHint:x,hintContent:B}},render(){if(this.hasHint)return e.h("pre",{style:{"white-space":"pre"}},this.hintContent)}}}const $=e.defineComponent({components:{VvIcon:T},props:{disabled:Boolean},setup(n,{emit:r}){const t=e.ref(!1),s=e.computed(()=>t.value?w.PASSWORD_OFF:w.PASSWORD_ON);function o(){n.disabled||(t.value=!t.value,r(t.value?"action-password-on":"action-password-off"))}return{activeIcon:s,onClick:o}},render(){const n=e.h(T,{name:this.activeIcon});return e.h("button",{disabled:this.disabled,class:["vv-input-text__action"],onClick:this.onClick},n)}}),N=e.defineComponent({components:{VvIcon:T},props:{disabled:Boolean,mode:{type:String,validator:n=>["up","down"].includes(n),default:"up"}},setup(n,{emit:r}){function t(){n.disabled||r(n.mode==="up"?"action-step-up":"action-step-down")}return{onClick:t}},render(){return e.h("button",{class:["vv-input-text__action-chevron",this.mode==="up"&&"vv-input-text__action-chevron-up"],disabled:this.disabled,onClick:this.onClick})}});function L(n,r){return{name:"VvInputTextActions",components:{VvIcon:T,VvInputPasswordAction:$,VvInputStepAction:N},setup(){return{isDisabled:e.computed(()=>r.disabled||r.readonly)}},render(){let t=null;switch(n){case _.PASSWORD:{const{onActionPasswordOn:s,onActionPasswordOff:o}=this.$attrs;t=[e.h($,{disabled:this.isDisabled,onActionPasswordOn:s,onActionPasswordOff:o})];break}case _.NUMBER:{const{onActionStepUp:s,onActionStepDown:o}=this.$attrs;t=[e.h(N,{mode:"up",disabled:this.isDisabled,onActionStepUp:s,onActionStepDown:o}),e.h(N,{mode:"down",disabled:this.isDisabled,onActionStepUp:s,onActionStepDown:o})];break}default:{t=null;break}}return Array.isArray(t)?e.h("div",{class:"vv-input-text__actions-group"},t):t}}}function ee(n,r,t){const s=e.computed(()=>!!(n.value&&r.value==="left"||t.iconLeft)),o=e.computed(()=>!!(n.value&&r.value==="right"||t.iconRight)),i=e.computed(()=>!!(n.value&&r.value==="top"||t.iconTop)),a=e.computed(()=>!!(n.value&&r.value==="bottom"||t.iconBottom));return{hasIconLeft:s,hasIconRight:o,hasIconTop:i,hasIconBottom:a}}function te(n,r){const{focused:t}=O.useFocus(n);return e.watch(t,s=>{r(s?"focus":"blur",n.value)}),{focused:t}}function ne(n,r,t){const s=e.ref(n==null?void 0:n.value),o=O.refDebounced(s,r||0);return e.watch(o,i=>t("update:modelValue",i)),s}function re(n,r){const t=e.computed(()=>{const i=e.unref(n);return O.isString(i)?i.length:0}),s=e.computed(()=>{const i=e.unref(n)||"";return!O.isString(i)||r.mode===!1?0:r.mode===!0?i.length:e.unref(r.upperLimit)-i.length}),o=e.computed(()=>r.mode===!1?"":r.mode===!0&&r.upperLimit&&r.upperLimit>0?`${s.value}/${e.unref(r.upperLimit)}`:s.value);return{textLength:t,textLimitLength:s,formattedTextLimitLength:o}}const oe=["for"],se={class:"vv-input-text__wrapper"},ie={key:2,class:"vv-input-text__limit"},ae={inheritAttrs:!1};return e.defineComponent({...ae,__name:"VvInputText",props:G,emits:Z,setup(n,{emit:r}){const t=n,s=e.useSlots(),o=e.useAttrs(),i=e.ref(),{icon:a,iconPosition:f,label:c,modelValue:A,autoclear:l,limit:u}=e.toRefs(t),h=t.id||t.name,d=`${t.name}-label`,y=`${t.name}-hint`,b=e.computed(()=>t.floating&&S.isEmpty(t.placeholder)?" ":t.placeholder),I=ne(A,t.debounce,r),x=e.ref(!1),B=e.computed(()=>t.type===m.TYPES.PASSWORD),C=e.computed(()=>t.type===m.TYPES.NUMBER);function ce(){const g=t.max;!j.value&&I.value+1<=g&&(i.value.stepUp(),I.value=e.unref(i.value).value)}function le(){const g=t.min;!j.value&&I.value-1<=g&&(i.value.stepDown(),I.value=e.unref(i.value).value)}const{hasIconLeft:V,hasIconRight:F}=ee(a,f,{iconLeft:s["icon-left"],iconRight:s["icon-right"]}),R=e.computed(()=>{switch(t.type){case m.TYPES.PASSWORD:return m.TYPES_ICON.PASSWORD_OFF;case m.TYPES.COLOR:return m.TYPES_ICON.COLOR;case m.TYPES.DATE:case m.TYPES.DATETIME_LOCAL:return m.TYPES_ICON.DATE;case m.TYPES.TIME:return m.TYPES_ICON.TIME;case m.TYPES.SEARCH:return m.TYPES_ICON.SEARCH;default:return""}}),{textLength:ue,formattedTextLimitLength:de}=re(I,{mode:t.limit,upperLimit:t.maxlength||0}),{focused:M}=te(i,r),j=e.computed(()=>t.disabled||t.readonly),fe=e.computed(()=>{const g=F.value||S.isNotEmpty(R.value),p=t.floating&&S.isNotEmpty(t.label),E=S.isNotEmpty(A==null?void 0:A.value);return[K("vv-input-text",{modifiers:t.modifiers,readonly:t.readonly,valid:t.valid,invalid:t.error,loading:t.loading,iconLeft:V,iconRight:g,floating:p,dirty:E}),o.class]}),pe=e.computed(()=>{const{style:g}=o,p=S.pickBy(o,E=>E.startsWith("data-"));return{style:g,...p}}),me=e.computed(()=>{const g=B.value&&x.value?"text":t.type,p=S.pickBy(o,E=>E.startsWith("aria-"));return{id:h,type:g,placeholder:b.value,name:t.name,autocomplete:t.autocomplete,disabled:t.disabled,readonly:t.readonly,minlength:t.minlength,maxlength:t.maxlength,min:t.min,max:t.max,step:t.step,"aria-invalid":t.error,"aria-valid":!t.valid,"aria-labeledby":d,"aria-describedby":y,"aria-errormessage":y,...p}}),v=e.computed(()=>{const{modelValue:g,valid:p,error:E}=t;return{valid:p,error:E,modelValue:g}}),he=Q(t,s),ye=L(m.TYPES.PASSWORD,t),ge=L(m.TYPES.NUMBER,t);function Se(){I.value=null}return e.onMounted(()=>{t.autofocus&&(M.value=!0),console.log("Focused",M.value)}),(g,p)=>(e.openBlock(),e.createElementBlock("div",e.mergeProps(e.unref(pe),{class:e.unref(fe)}),[e.unref(c)?(e.openBlock(),e.createElementBlock("label",{key:0,for:e.unref(h)},e.toDisplayString(e.unref(c)),9,oe)):e.createCommentVNode("",!0),e.createElementVNode("div",se,[e.unref(V)?e.renderSlot(g.$slots,"icon-left",e.normalizeProps(e.mergeProps({key:0},e.unref(v))),()=>[e.createVNode(T,{class:"vv-input-text__icon-left",name:e.unref(a)},null,8,["name"])]):e.createCommentVNode("",!0),e.withDirectives(e.createElementVNode("input",e.mergeProps({ref_key:"input",ref:i},e.unref(me),{"onUpdate:modelValue":p[0]||(p[0]=E=>e.isRef(I)?I.value=E:null),onInput:p[1]||(p[1]=E=>r("input",E))}),null,16),[[e.vModelDynamic,e.unref(I)]]),e.unref(l)&&e.unref(ue)>0?(e.openBlock(),e.createElementBlock("button",{key:1,class:"vv-button vv-button--ghost",onClick:Se},[e.createVNode(T,{name:"clear-field"})])):e.createCommentVNode("",!0),e.renderSlot(g.$slots,"icon-right",e.normalizeProps(e.guardReactiveProps(e.unref(v))),()=>[e.unref(B)?(e.openBlock(),e.createBlock(e.unref(ye),{key:0,onActionPasswordOn:p[2]||(p[2]=E=>x.value=!0),onActionPasswordOff:p[3]||(p[3]=E=>x.value=!1)})):e.unref(C)?(e.openBlock(),e.createBlock(e.unref(ge),{key:1,onActionStepUp:ce,onActionStepDown:le})):e.unref(F)||e.unref(R)?(e.openBlock(),e.createBlock(T,{key:2,name:e.unref(a)||e.unref(R)},null,8,["name"])):e.createCommentVNode("",!0)]),e.unref(u)?(e.openBlock(),e.createElementBlock("span",ie,[e.renderSlot(g.$slots,"limit",{},()=>[e.createTextVNode(e.toDisplayString(e.unref(de)),1)])])):e.createCommentVNode("",!0)]),e.createVNode(e.unref(he),{id:y,class:"vv-input-text__hint"})],16))}})});
|
|
@@ -1,7 +1,8 @@
|
|
|
1
|
-
import { computed as
|
|
2
|
-
import { v4 as
|
|
3
|
-
import { iconExists as
|
|
4
|
-
|
|
1
|
+
import { computed as A, unref as p, defineComponent as R, ref as M, toRefs as q, inject as x, openBlock as S, createBlock as F, mergeProps as K, createCommentVNode as w, h as T, useSlots as z, createElementBlock as O, normalizeClass as Z, toDisplayString as _, createElementVNode as V, renderSlot as N, Fragment as J, renderList as U, createVNode as G } from "vue";
|
|
2
|
+
import { v4 as Q } from "uuid";
|
|
3
|
+
import { iconExists as D, Icon as W, addIcon as X } from "@iconify/vue";
|
|
4
|
+
import { toReactive as Y } from "@vueuse/core";
|
|
5
|
+
const b = {
|
|
5
6
|
equals(e, t, r) {
|
|
6
7
|
return r ? this.resolveFieldData(e, r) === this.resolveFieldData(t, r) : this.deepEquals(e, t);
|
|
7
8
|
},
|
|
@@ -9,36 +10,36 @@ const A = {
|
|
|
9
10
|
if (e === t)
|
|
10
11
|
return !0;
|
|
11
12
|
if (e && t && typeof e == "object" && typeof t == "object") {
|
|
12
|
-
const r = Array.isArray(e),
|
|
13
|
-
let n,
|
|
14
|
-
if (r &&
|
|
15
|
-
if (
|
|
13
|
+
const r = Array.isArray(e), i = Array.isArray(t);
|
|
14
|
+
let n, u, a;
|
|
15
|
+
if (r && i) {
|
|
16
|
+
if (u = e.length, u != t.length)
|
|
16
17
|
return !1;
|
|
17
|
-
for (n =
|
|
18
|
+
for (n = u; n-- !== 0; )
|
|
18
19
|
if (!this.deepEquals(e[n], t[n]))
|
|
19
20
|
return !1;
|
|
20
21
|
return !0;
|
|
21
22
|
}
|
|
22
|
-
if (r !=
|
|
23
|
+
if (r != i)
|
|
23
24
|
return !1;
|
|
24
|
-
const
|
|
25
|
-
if (
|
|
25
|
+
const d = e instanceof Date, o = t instanceof Date;
|
|
26
|
+
if (d != o)
|
|
26
27
|
return !1;
|
|
27
|
-
if (
|
|
28
|
+
if (d && o)
|
|
28
29
|
return e.getTime() == t.getTime();
|
|
29
|
-
const
|
|
30
|
-
if (
|
|
30
|
+
const m = e instanceof RegExp, s = t instanceof RegExp;
|
|
31
|
+
if (m != s)
|
|
31
32
|
return !1;
|
|
32
|
-
if (
|
|
33
|
+
if (m && s)
|
|
33
34
|
return e.toString() == t.toString();
|
|
34
35
|
const l = Object.keys(e);
|
|
35
|
-
if (
|
|
36
|
+
if (u = l.length, u !== Object.keys(t).length)
|
|
36
37
|
return !1;
|
|
37
|
-
for (n =
|
|
38
|
+
for (n = u; n-- !== 0; )
|
|
38
39
|
if (!Object.prototype.hasOwnProperty.call(t, l[n]))
|
|
39
40
|
return !1;
|
|
40
|
-
for (n =
|
|
41
|
-
if (
|
|
41
|
+
for (n = u; n-- !== 0; )
|
|
42
|
+
if (a = l[n], !this.deepEquals(e[a], t[a]))
|
|
42
43
|
return !1;
|
|
43
44
|
return !0;
|
|
44
45
|
}
|
|
@@ -50,13 +51,13 @@ const A = {
|
|
|
50
51
|
return e[t];
|
|
51
52
|
{
|
|
52
53
|
const r = t.split(".");
|
|
53
|
-
let
|
|
54
|
-
for (let n = 0,
|
|
54
|
+
let i = e;
|
|
55
|
+
for (let n = 0, u = r.length; n < u; ++n) {
|
|
55
56
|
if (e == null)
|
|
56
57
|
return null;
|
|
57
|
-
|
|
58
|
+
i = i[r[n]];
|
|
58
59
|
}
|
|
59
|
-
return
|
|
60
|
+
return i;
|
|
60
61
|
}
|
|
61
62
|
} else
|
|
62
63
|
return null;
|
|
@@ -67,9 +68,9 @@ const A = {
|
|
|
67
68
|
findIndexInList(e, t) {
|
|
68
69
|
let r = -1;
|
|
69
70
|
if (t) {
|
|
70
|
-
for (let
|
|
71
|
-
if (this.equals(t[
|
|
72
|
-
r =
|
|
71
|
+
for (let i = 0; i < t.length; i++)
|
|
72
|
+
if (this.equals(t[i], e)) {
|
|
73
|
+
r = i;
|
|
73
74
|
break;
|
|
74
75
|
}
|
|
75
76
|
}
|
|
@@ -96,20 +97,20 @@ const A = {
|
|
|
96
97
|
},
|
|
97
98
|
removeFromList(e, t) {
|
|
98
99
|
const r = this.findIndexInList(e, t);
|
|
99
|
-
return r > -1 ? t.filter((
|
|
100
|
+
return r > -1 ? t.filter((i, n) => n !== r) : t;
|
|
100
101
|
},
|
|
101
102
|
isString(e) {
|
|
102
103
|
return typeof e == "string" || e instanceof String;
|
|
103
104
|
},
|
|
104
105
|
propsToObject(e) {
|
|
105
106
|
return Object.keys(e).reduce((t, r) => {
|
|
106
|
-
var
|
|
107
|
-
return this.isFunction(e[r]) ? t[r] = e[r]() : Array.isArray(e[r]) ? t[r] = e[r][0]() : (
|
|
107
|
+
var i, n, u, a, d;
|
|
108
|
+
return this.isFunction(e[r]) ? t[r] = e[r]() : Array.isArray(e[r]) ? t[r] = e[r][0]() : (i = e[r]) != null && i.type && (Array.isArray(e[r].type) ? t[r] = ((n = e[r]) == null ? void 0 : n.default) || ((u = e[r]) == null ? void 0 : u.type[0]()) : t[r] = ((a = e[r]) == null ? void 0 : a.default) || ((d = e[r]) == null ? void 0 : d.type())), t;
|
|
108
109
|
}, {});
|
|
109
110
|
},
|
|
110
111
|
filterArray(e, t, r) {
|
|
111
|
-
return e.filter((
|
|
112
|
-
|
|
112
|
+
return e.filter((i) => t.some((n) => typeof n == "string" ? i[r] == n : this.equals(
|
|
113
|
+
i[r],
|
|
113
114
|
n[r]
|
|
114
115
|
)));
|
|
115
116
|
},
|
|
@@ -120,31 +121,31 @@ const A = {
|
|
|
120
121
|
/[A-Z]{2,}(?=[A-Z][a-z]+[0-9]*|\b)|[A-Z]?[a-z]+[0-9]*|[A-Z]|[0-9]+/g
|
|
121
122
|
)) == null ? void 0 : t.join("-")) == null ? void 0 : r.toLowerCase();
|
|
122
123
|
}
|
|
123
|
-
},
|
|
124
|
+
}, L = {
|
|
124
125
|
valid: Boolean,
|
|
125
126
|
validLabel: [String, Array]
|
|
126
|
-
},
|
|
127
|
+
}, ee = {
|
|
127
128
|
error: Boolean,
|
|
128
129
|
errorLabel: [String, Array]
|
|
129
|
-
},
|
|
130
|
+
}, te = {
|
|
130
131
|
loading: Boolean,
|
|
131
132
|
loadingLabel: String
|
|
132
|
-
},
|
|
133
|
+
}, re = {
|
|
133
134
|
disabled: Boolean
|
|
134
|
-
},
|
|
135
|
+
}, ne = {
|
|
135
136
|
readonly: Boolean
|
|
136
|
-
},
|
|
137
|
+
}, se = {
|
|
137
138
|
modifiers: [String, Array]
|
|
138
|
-
},
|
|
139
|
+
}, ie = {
|
|
139
140
|
hintLabel: { type: String, default: "" }
|
|
140
|
-
},
|
|
141
|
-
...X,
|
|
142
|
-
...Y,
|
|
143
|
-
...ne,
|
|
141
|
+
}, oe = {
|
|
144
142
|
...L,
|
|
145
143
|
...ee,
|
|
144
|
+
...ie,
|
|
146
145
|
...te,
|
|
147
146
|
...re,
|
|
147
|
+
...ne,
|
|
148
|
+
...se,
|
|
148
149
|
modelValue: {
|
|
149
150
|
type: [String, Object],
|
|
150
151
|
required: !0
|
|
@@ -161,7 +162,7 @@ const A = {
|
|
|
161
162
|
iconLeft: String,
|
|
162
163
|
iconRight: String,
|
|
163
164
|
modifiers: [String, Array]
|
|
164
|
-
},
|
|
165
|
+
}, le = {
|
|
165
166
|
color: String,
|
|
166
167
|
width: {
|
|
167
168
|
type: [String, Number]
|
|
@@ -196,19 +197,19 @@ const A = {
|
|
|
196
197
|
function H(e, t) {
|
|
197
198
|
const r = { [`${e}`]: !0 };
|
|
198
199
|
return {
|
|
199
|
-
bemCssClasses:
|
|
200
|
-
const
|
|
201
|
-
if (!
|
|
200
|
+
bemCssClasses: A(() => Object.keys(t).reduce((n, u) => {
|
|
201
|
+
const a = p(t[u]) || !1;
|
|
202
|
+
if (!a)
|
|
202
203
|
return n;
|
|
203
|
-
if (
|
|
204
|
-
const
|
|
204
|
+
if (u === "modifiers") {
|
|
205
|
+
const d = Array.isArray(a) ? a : [a];
|
|
205
206
|
return {
|
|
206
207
|
...n,
|
|
207
|
-
...
|
|
208
|
-
(
|
|
209
|
-
...
|
|
210
|
-
[`${e}--${
|
|
211
|
-
|
|
208
|
+
...d.reduce(
|
|
209
|
+
(o, m) => ({
|
|
210
|
+
...o,
|
|
211
|
+
[`${e}--${b.kebabCase(
|
|
212
|
+
m
|
|
212
213
|
)}`]: !0
|
|
213
214
|
}),
|
|
214
215
|
{}
|
|
@@ -217,179 +218,197 @@ function H(e, t) {
|
|
|
217
218
|
} else
|
|
218
219
|
return {
|
|
219
220
|
...n,
|
|
220
|
-
[`${e}--${
|
|
221
|
+
[`${e}--${b.kebabCase(u)}`]: a
|
|
221
222
|
};
|
|
222
223
|
}, r) || {})
|
|
223
224
|
};
|
|
224
225
|
}
|
|
225
|
-
const
|
|
226
|
+
const I = /* @__PURE__ */ R({
|
|
226
227
|
__name: "VvIcon",
|
|
227
|
-
props:
|
|
228
|
+
props: le,
|
|
228
229
|
setup(e) {
|
|
229
|
-
const t = e, r =
|
|
230
|
-
modifiers:
|
|
231
|
-
}),
|
|
232
|
-
const
|
|
233
|
-
return
|
|
234
|
-
const
|
|
235
|
-
if (
|
|
236
|
-
return
|
|
237
|
-
})) ||
|
|
230
|
+
const t = e, r = M(!0), { modifiers: i } = q(t), n = x("ds"), { bemCssClasses: u } = H("vv-icon", {
|
|
231
|
+
modifiers: i
|
|
232
|
+
}), a = A(() => t.provider || (n == null ? void 0 : n.provider)), d = A(() => {
|
|
233
|
+
const s = t.name || "", l = `@${a.value}:${t.prefix}:${t.name}`;
|
|
234
|
+
return D(s) ? s : D(l) ? l : (n == null ? void 0 : n.iconsCollections.find((y) => {
|
|
235
|
+
const f = `@${a.value}:${y.prefix}:${s}`;
|
|
236
|
+
if (D(f))
|
|
237
|
+
return f;
|
|
238
|
+
})) || s;
|
|
238
239
|
});
|
|
239
|
-
function
|
|
240
|
+
function o(s) {
|
|
240
241
|
let l = null;
|
|
241
242
|
if (typeof window > "u") {
|
|
242
|
-
const { JSDOM:
|
|
243
|
-
l = new
|
|
243
|
+
const { JSDOM: v } = require("jsdom");
|
|
244
|
+
l = new v().window;
|
|
244
245
|
}
|
|
245
|
-
return (l ? new l.DOMParser() : new window.DOMParser()).parseFromString(
|
|
246
|
+
return (l ? new l.DOMParser() : new window.DOMParser()).parseFromString(s, "text/html").querySelector("svg");
|
|
246
247
|
}
|
|
247
|
-
function
|
|
248
|
-
const l =
|
|
249
|
-
l &&
|
|
250
|
-
body:
|
|
248
|
+
function m(s) {
|
|
249
|
+
const l = o(s), y = (l == null ? void 0 : l.innerHTML.trim()) || "";
|
|
250
|
+
l && y && X(`@${a.value}:${t.prefix}:${t.name}`, {
|
|
251
|
+
body: y,
|
|
251
252
|
height: l.viewBox.baseVal.height,
|
|
252
253
|
width: l.viewBox.baseVal.width
|
|
253
254
|
});
|
|
254
255
|
}
|
|
255
|
-
return n && (t.src ? (r.value = !1, n.fetchIcon(t.src).then((
|
|
256
|
-
|
|
257
|
-
}).catch((
|
|
258
|
-
throw new Error(`During fetch icon: ${
|
|
259
|
-
})) : t.svg &&
|
|
256
|
+
return n && (t.src ? (r.value = !1, n.fetchIcon(t.src).then((s) => {
|
|
257
|
+
s && (m(s), r.value = !0);
|
|
258
|
+
}).catch((s) => {
|
|
259
|
+
throw new Error(`During fetch icon: ${s == null ? void 0 : s.message}`);
|
|
260
|
+
})) : t.svg && m(t.svg)), (s, l) => r.value ? (S(), F(p(W), K({
|
|
260
261
|
key: 0,
|
|
261
|
-
class:
|
|
262
|
+
class: p(u)
|
|
262
263
|
}, {
|
|
263
|
-
...
|
|
264
|
-
provider:
|
|
265
|
-
icon: d
|
|
264
|
+
...s.$props,
|
|
265
|
+
provider: p(a),
|
|
266
|
+
icon: p(d)
|
|
266
267
|
}), null, 16, ["class"])) : w("", !0);
|
|
267
268
|
}
|
|
268
269
|
});
|
|
269
|
-
function
|
|
270
|
-
return Array.isArray(e) ? e.filter((t) =>
|
|
270
|
+
function B(e) {
|
|
271
|
+
return Array.isArray(e) ? e.filter((t) => b.isString(t)).reduce((t, r) => t.length > 0 ? t + `
|
|
271
272
|
` + r : r, "") : e;
|
|
272
273
|
}
|
|
273
|
-
function
|
|
274
|
+
function ae(e, t) {
|
|
274
275
|
return {
|
|
275
276
|
name: "HintSlot",
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
277
|
+
props: {
|
|
278
|
+
params: { type: Object, default: () => {
|
|
279
|
+
} }
|
|
280
|
+
},
|
|
281
|
+
setup(r) {
|
|
282
|
+
const i = q(e), {
|
|
283
|
+
error: n,
|
|
284
|
+
valid: u,
|
|
285
|
+
hint: a,
|
|
286
|
+
loading: d
|
|
282
287
|
} = t, {
|
|
283
|
-
hintLabel:
|
|
288
|
+
hintLabel: o,
|
|
284
289
|
modelValue: m,
|
|
285
|
-
valid:
|
|
286
|
-
validLabel:
|
|
287
|
-
error:
|
|
288
|
-
errorLabel:
|
|
289
|
-
} =
|
|
290
|
-
|
|
290
|
+
valid: s,
|
|
291
|
+
validLabel: l,
|
|
292
|
+
error: y,
|
|
293
|
+
errorLabel: f
|
|
294
|
+
} = i, g = b.resolveFieldData(i, "loading"), v = b.resolveFieldData(
|
|
295
|
+
i,
|
|
291
296
|
"loadingLabel"
|
|
292
|
-
),
|
|
293
|
-
const
|
|
294
|
-
|
|
297
|
+
), $ = A(() => y.value ? !!(y.value && n || (f == null ? void 0 : f.value) && Array.isArray(f.value) && f.value.length > 0 || (f == null ? void 0 : f.value) && b.isNotEmpty(f.value)) : !1), k = A(() => !!(o && o.value || a || u || l && l.value || $.value || (g == null ? void 0 : g.value) && d || (g == null ? void 0 : g.value) && (v == null ? void 0 : v.value))), c = A(() => {
|
|
298
|
+
const h = Y({
|
|
299
|
+
hintLabel: o,
|
|
300
|
+
modelValue: m,
|
|
301
|
+
valid: s,
|
|
302
|
+
validLabel: l,
|
|
303
|
+
error: y,
|
|
304
|
+
errorLabel: f,
|
|
305
|
+
loading: g,
|
|
306
|
+
loadingLabel: v,
|
|
307
|
+
...r.params
|
|
308
|
+
});
|
|
309
|
+
return y != null && y.value ? (n == null ? void 0 : n(h)) || B(f == null ? void 0 : f.value) || (o == null ? void 0 : o.value) : s != null && s.value ? (u == null ? void 0 : u(h)) || B(l == null ? void 0 : l.value) || (o == null ? void 0 : o.value) : g != null && g.value ? (d == null ? void 0 : d(h)) || B(v == null ? void 0 : v.value) || (o == null ? void 0 : o.value) : (a == null ? void 0 : a(h)) || B(o == null ? void 0 : o.value) || (o == null ? void 0 : o.value);
|
|
295
310
|
});
|
|
296
311
|
return {
|
|
297
|
-
hasHint:
|
|
298
|
-
hintContent:
|
|
312
|
+
hasHint: k,
|
|
313
|
+
hintContent: c
|
|
299
314
|
};
|
|
300
315
|
},
|
|
301
316
|
render() {
|
|
302
317
|
if (this.hasHint)
|
|
303
|
-
return
|
|
318
|
+
return T(
|
|
319
|
+
"pre",
|
|
320
|
+
{ style: { "white-space": "pre" } },
|
|
321
|
+
this.hintContent
|
|
322
|
+
);
|
|
304
323
|
}
|
|
305
324
|
};
|
|
306
325
|
}
|
|
307
|
-
const ue = ["for"],
|
|
326
|
+
const ue = ["for"], ce = { class: "vv-select__wrapper" }, fe = ["id", "value", "disabled"], de = {
|
|
308
327
|
key: 0,
|
|
309
328
|
value: "",
|
|
310
329
|
disabled: "",
|
|
311
330
|
selected: ""
|
|
312
|
-
},
|
|
331
|
+
}, pe = ["disabled", "value"], he = /* @__PURE__ */ R({
|
|
313
332
|
__name: "VvNativeSelect",
|
|
314
|
-
props:
|
|
333
|
+
props: oe,
|
|
315
334
|
emits: ["update:modelValue"],
|
|
316
335
|
setup(e, { emit: t }) {
|
|
317
|
-
const r = e,
|
|
318
|
-
modifiers:
|
|
319
|
-
disabled:
|
|
320
|
-
readonly:
|
|
321
|
-
loading:
|
|
322
|
-
iconLeft:
|
|
323
|
-
iconRight:
|
|
336
|
+
const r = e, i = z(), n = ae(r, i), {
|
|
337
|
+
modifiers: u,
|
|
338
|
+
disabled: a,
|
|
339
|
+
readonly: d,
|
|
340
|
+
loading: o,
|
|
341
|
+
iconLeft: m,
|
|
342
|
+
iconRight: s,
|
|
324
343
|
error: l,
|
|
325
|
-
valid:
|
|
326
|
-
} =
|
|
327
|
-
modifiers:
|
|
328
|
-
loading:
|
|
329
|
-
readonly:
|
|
330
|
-
iconLeft:
|
|
331
|
-
iconRight:
|
|
332
|
-
valid:
|
|
344
|
+
valid: y
|
|
345
|
+
} = q(r), f = Q(), { bemCssClasses: g } = H("vv-select", {
|
|
346
|
+
modifiers: u,
|
|
347
|
+
loading: o,
|
|
348
|
+
readonly: d,
|
|
349
|
+
iconLeft: m,
|
|
350
|
+
iconRight: s,
|
|
351
|
+
valid: y,
|
|
333
352
|
invalid: l,
|
|
334
|
-
dirty:
|
|
353
|
+
dirty: A(() => b.isNotEmpty(r.modelValue))
|
|
335
354
|
});
|
|
336
|
-
function
|
|
337
|
-
return typeof
|
|
355
|
+
function v(c) {
|
|
356
|
+
return typeof c == "string" ? c : c[r.valueKey];
|
|
338
357
|
}
|
|
339
|
-
function $(
|
|
340
|
-
return typeof
|
|
358
|
+
function $(c) {
|
|
359
|
+
return typeof c == "string" ? c : c[r.labelKey];
|
|
341
360
|
}
|
|
342
|
-
function
|
|
361
|
+
function k(c) {
|
|
343
362
|
var j;
|
|
344
|
-
const
|
|
345
|
-
(
|
|
346
|
-
) : null) ||
|
|
363
|
+
const h = c.target, C = (r.useObject ? (j = r.options) == null ? void 0 : j.find(
|
|
364
|
+
(E) => E[r.valueKey] == h.value
|
|
365
|
+
) : null) || h.value;
|
|
347
366
|
t("update:modelValue", C);
|
|
348
367
|
}
|
|
349
|
-
return (
|
|
350
|
-
var
|
|
351
|
-
return
|
|
352
|
-
class:
|
|
368
|
+
return (c, h) => {
|
|
369
|
+
var P;
|
|
370
|
+
return S(), O("div", {
|
|
371
|
+
class: Z(p(g))
|
|
353
372
|
}, [
|
|
354
|
-
|
|
373
|
+
c.label ? (S(), O("label", {
|
|
355
374
|
key: 0,
|
|
356
|
-
for:
|
|
357
|
-
},
|
|
358
|
-
|
|
359
|
-
|
|
360
|
-
|
|
375
|
+
for: p(f)
|
|
376
|
+
}, _(c.label), 9, ue)) : w("", !0),
|
|
377
|
+
V("div", ce, [
|
|
378
|
+
N(c.$slots, "icon-left", {}, () => [
|
|
379
|
+
p(m) ? (S(), F(I, {
|
|
361
380
|
key: 0,
|
|
362
|
-
name:
|
|
381
|
+
name: p(m)
|
|
363
382
|
}, null, 8, ["name"])) : w("", !0)
|
|
364
383
|
]),
|
|
365
|
-
|
|
366
|
-
id:
|
|
367
|
-
value: typeof
|
|
368
|
-
disabled:
|
|
369
|
-
onInput:
|
|
384
|
+
V("select", {
|
|
385
|
+
id: p(f),
|
|
386
|
+
value: typeof c.modelValue == "string" ? c.modelValue : (P = c.modelValue) == null ? void 0 : P[c.valueKey],
|
|
387
|
+
disabled: p(a) || p(d),
|
|
388
|
+
onInput: k
|
|
370
389
|
}, [
|
|
371
|
-
|
|
372
|
-
(
|
|
373
|
-
var
|
|
374
|
-
return
|
|
390
|
+
c.placeholder ? (S(), O("option", de, _(c.placeholder), 1)) : w("", !0),
|
|
391
|
+
(S(!0), O(J, null, U(c.options, (C, j) => {
|
|
392
|
+
var E;
|
|
393
|
+
return S(), O("option", {
|
|
375
394
|
key: j,
|
|
376
|
-
disabled: typeof C == "object" ? (
|
|
377
|
-
value:
|
|
378
|
-
},
|
|
395
|
+
disabled: typeof C == "object" ? (E = C.disabled) != null ? E : p(a) : p(a),
|
|
396
|
+
value: v(C)
|
|
397
|
+
}, _($(C)), 9, pe);
|
|
379
398
|
}), 128))
|
|
380
|
-
], 40,
|
|
381
|
-
|
|
382
|
-
|
|
399
|
+
], 40, fe),
|
|
400
|
+
N(c.$slots, "icon-right", {}, () => [
|
|
401
|
+
p(s) ? (S(), F(I, {
|
|
383
402
|
key: 0,
|
|
384
|
-
name:
|
|
403
|
+
name: p(s)
|
|
385
404
|
}, null, 8, ["name"])) : w("", !0)
|
|
386
405
|
])
|
|
387
406
|
]),
|
|
388
|
-
|
|
407
|
+
G(p(n), { class: "vv-select__hint" })
|
|
389
408
|
], 2);
|
|
390
409
|
};
|
|
391
410
|
}
|
|
392
411
|
});
|
|
393
412
|
export {
|
|
394
|
-
|
|
413
|
+
he as default
|
|
395
414
|
};
|