@volverjs/ui-vue 0.0.1 → 0.0.3-beta.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (118) hide show
  1. package/README.md +17 -0
  2. package/auto-imports.d.ts +289 -0
  3. package/dist/components/VvButton/VvButton.es.js +159 -147
  4. package/dist/components/VvButton/VvButton.umd.js +1 -1
  5. package/dist/components/VvButton/VvButton.vue.d.ts +0 -8
  6. package/dist/components/VvButton/index.d.ts +4 -4
  7. package/dist/components/VvButtonGroup/VvButtonGroup.es.js +36 -37
  8. package/dist/components/VvButtonGroup/VvButtonGroup.umd.js +1 -1
  9. package/dist/components/VvButtonGroup/VvButtonGroup.vue.d.ts +10 -10
  10. package/dist/components/VvButtonGroup/index.d.ts +5 -5
  11. package/dist/components/VvCombobox/VvCombobox.es.js +526 -345
  12. package/dist/components/VvCombobox/VvCombobox.umd.js +1 -1
  13. package/dist/components/VvCombobox/VvCombobox.vue.d.ts +22 -0
  14. package/dist/components/VvCombobox/index.d.ts +13 -1
  15. package/dist/components/VvDropdown/VvDropdown.es.js +118 -109
  16. package/dist/components/VvDropdown/VvDropdown.umd.js +1 -1
  17. package/dist/components/VvDropdown/VvDropdown.vue.d.ts +19 -0
  18. package/dist/components/VvDropdown/index.d.ts +12 -0
  19. package/dist/components/VvInputText/VvInputText.es.js +221 -213
  20. package/dist/components/VvInputText/VvInputText.umd.js +1 -1
  21. package/dist/components/VvInputText/VvInputText.vue.d.ts +13 -13
  22. package/dist/components/VvInputText/index.d.ts +5 -5
  23. package/dist/components/VvSelect/VvSelect.es.js +186 -167
  24. package/dist/components/VvSelect/VvSelect.umd.js +1 -1
  25. package/dist/components/VvSelect/VvSelect.vue.d.ts +23 -11
  26. package/dist/components/VvSelect/index.d.ts +10 -17
  27. package/dist/components/VvTextarea/VvTextarea.es.js +241 -277
  28. package/dist/components/VvTextarea/VvTextarea.umd.js +1 -1
  29. package/dist/components/VvTextarea/VvTextarea.vue.d.ts +12 -12
  30. package/dist/components/VvTextarea/index.d.ts +5 -5
  31. package/dist/components/VvTooltip/VvTooltip.es.js +28 -0
  32. package/dist/components/VvTooltip/VvTooltip.umd.js +1 -0
  33. package/dist/components/VvTooltip/VvTooltip.vue.d.ts +23 -0
  34. package/dist/components/VvTooltip/index.d.ts +18 -0
  35. package/dist/components/index.es.js +1046 -976
  36. package/dist/components/index.umd.js +1 -1
  37. package/dist/composables/group/types/IButtonGroupState.d.ts +1 -1
  38. package/dist/composables/group/types/IGroupState.d.ts +1 -1
  39. package/dist/composables/group/useInjectedGroupState.d.ts +1 -1
  40. package/dist/icons.es.js +3 -3
  41. package/dist/icons.umd.js +1 -1
  42. package/dist/index.es.js +1127 -1057
  43. package/dist/index.umd.js +1 -1
  44. package/dist/props/index.d.ts +35 -4
  45. package/dist/resolvers/unplugin.es.js +26 -24
  46. package/dist/resolvers/unplugin.umd.js +1 -1
  47. package/dist/stories/Button/Button.settings.d.ts +9 -11
  48. package/dist/stories/ButtonGroup/ButtonGroup.settings.d.ts +9 -0
  49. package/dist/stories/Combobox/Combobox.settings.d.ts +19 -0
  50. package/dist/stories/Dropdown/Dropdown.settings.d.ts +10 -0
  51. package/dist/stories/InputText/InputText.settings.d.ts +23 -23
  52. package/dist/stories/Select/Select.settings.d.ts +42 -23
  53. package/dist/stories/Textarea/Textarea.settings.d.ts +23 -23
  54. package/dist/stories/Tooltip/Tooltip.settings.d.ts +42 -0
  55. package/dist/stories/Tooltip/Tooltip.test.d.ts +2 -0
  56. package/dist/stories/argTypes.d.ts +50 -1
  57. package/package.json +31 -23
  58. package/src/assets/icons/detailed.json +1 -1
  59. package/src/assets/icons/normal.json +1 -1
  60. package/src/assets/icons/simple.json +1 -1
  61. package/src/components/VvButton/index.ts +28 -10
  62. package/src/components/VvButtonGroup/VvButtonGroup.vue +1 -1
  63. package/src/components/VvButtonGroup/index.ts +3 -6
  64. package/src/components/VvCombobox/VvCombobox.vue +45 -11
  65. package/src/components/VvCombobox/index.ts +6 -0
  66. package/src/components/VvDropdown/VvDropdown.vue +9 -6
  67. package/src/components/VvDropdown/index.ts +11 -1
  68. package/src/components/VvInputText/VvInputText.vue +10 -8
  69. package/src/components/VvSelect/VvSelect.vue +23 -1
  70. package/src/components/VvSelect/index.ts +8 -11
  71. package/src/components/VvTextarea/VvTextarea.vue +9 -21
  72. package/src/components/VvTooltip/VvTooltip.vue +17 -0
  73. package/src/components/VvTooltip/index.ts +21 -0
  74. package/src/composables/group/types/IButtonGroupState.ts +1 -1
  75. package/src/composables/group/types/IGroupState.ts +1 -1
  76. package/src/composables/group/useInjectedGroupState.ts +3 -3
  77. package/src/composables/useTextCount.ts +1 -1
  78. package/src/props/index.ts +33 -15
  79. package/src/resolvers/unplugin.ts +22 -13
  80. package/src/stories/Accordion/Accordion.stories.mdx +1 -1
  81. package/src/stories/AccordionGroup/AccordionGroup.stories.mdx +1 -1
  82. package/src/stories/AccordionGroup/AccordionGroupSlots.stories.mdx +1 -1
  83. package/src/stories/Badge/Badge.stories.mdx +1 -1
  84. package/src/stories/Breadcrumb/Breadcrumb.stories.mdx +1 -1
  85. package/src/stories/Breadcrumb/BreadcrumbSlots.stories.mdx +1 -1
  86. package/src/stories/Button/Button.settings.ts +2 -7
  87. package/src/stories/Button/Button.stories.mdx +1 -1
  88. package/src/stories/Button/ButtonModifiers.stories.mdx +2 -2
  89. package/src/stories/Button/ButtonSlots.stories.mdx +3 -3
  90. package/src/stories/ButtonGroup/ButtonGroup.settings.ts +6 -1
  91. package/src/stories/ButtonGroup/ButtonGroup.stories.mdx +1 -1
  92. package/src/stories/ButtonGroup/ButtonGroupSlots.stories.mdx +37 -0
  93. package/src/stories/ButtonGroup/ButtonGroupToggle.stories.mdx +12 -1
  94. package/src/stories/Card/Card.stories.mdx +1 -1
  95. package/src/stories/Card/CardSlots.stories.mdx +1 -1
  96. package/src/stories/Checkbox/Checkbox.stories.mdx +1 -1
  97. package/src/stories/CheckboxGroup/CheckboxGroup.stories.mdx +1 -1
  98. package/src/stories/CheckboxGroup/CheckboxGroupSlots.stories.mdx +1 -1
  99. package/src/stories/Combobox/Combobox.settings.ts +5 -0
  100. package/src/stories/Combobox/Combobox.stories.mdx +52 -1
  101. package/src/stories/Combobox/Combobox.test.ts +7 -0
  102. package/src/stories/Dialog/Dialog.stories.mdx +1 -1
  103. package/src/stories/Dropdown/Dropdown.settings.ts +10 -1
  104. package/src/stories/Dropdown/Dropdown.stories.mdx +18 -1
  105. package/src/stories/Icon/Icon.stories.mdx +1 -1
  106. package/src/stories/Icon/IconsCollection.stories.mdx +1 -1
  107. package/src/stories/InputText/InputText.stories.mdx +1 -1
  108. package/src/stories/Progress/Progress.stories.mdx +1 -1
  109. package/src/stories/Radio/Radio.stories.mdx +1 -1
  110. package/src/stories/RadioGroup/RadioGroup.stories.mdx +1 -1
  111. package/src/stories/RadioGroup/RadioGroupSlots.stories.mdx +1 -1
  112. package/src/stories/Select/Select.settings.ts +9 -23
  113. package/src/stories/Select/Select.stories.mdx +61 -1
  114. package/src/stories/Textarea/Textarea.stories.mdx +1 -1
  115. package/src/stories/Tooltip/Tooltip.settings.ts +26 -0
  116. package/src/stories/Tooltip/Tooltip.stories.mdx +98 -0
  117. package/src/stories/Tooltip/Tooltip.test.ts +49 -0
  118. package/src/stories/argTypes.ts +46 -22
@@ -1 +1 @@
1
- (function(e,D){typeof exports=="object"&&typeof module<"u"?module.exports=D(require("vue"),require("nanoid"),require("@vueuse/core"),require("@iconify/vue")):typeof define=="function"&&define.amd?define(["vue","nanoid","@vueuse/core","@iconify/vue"],D):(e=typeof globalThis<"u"?globalThis:e||self,e.VvInputText=D(e.vue,e.nanoid,e.core,e.vue$1))})(this,function(e,D,$,T){"use strict";function U(r,n){if(r&&Object.keys(r).length&&n){if(n.indexOf(".")===-1)return r[n];{const t=n.split(".");let i=r;for(let a=0,u=t.length;a<u;++a){if(r==null)return null;i=i[t[a]]}return i}}else return null}function _(r){return(n=>n==null||n===""||Array.isArray(n)&&n.length===0||!(n instanceof Date)&&typeof n=="object"&&Object.keys(n).length===0)(e.unref(r))}function ee(r){return typeof r=="string"||r instanceof String}function W(r){var n,t;if(r)return(t=(n=r.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:n.join("-"))==null?void 0:t.toLowerCase()}function R(r){return Array.isArray(r)?r.filter(n=>ee(n)).join(" "):r}function te(r,n){const{invalid:t,valid:i,hint:a,loading:u}=n,{hintLabel:s,modelValue:y,valid:S,validLabel:m,invalid:l,invalidLabel:c,...g}=e.toRefs(r),p=U(g,"loading"),h=U(g,"loadingLabel"),I=e.computed(()=>l.value?!!(l.value&&t||c!=null&&c.value&&Array.isArray(c.value)&&c.value.length>0||c!=null&&c.value&&!_(c)):!1),b=e.computed(()=>!!(s&&s.value||a)),C=e.computed(()=>!!(m&&m.value||i)),A=e.computed(()=>!!(p!=null&&p.value&&u||p!=null&&p.value&&(h!=null&&h.value))),k=e.computed(()=>b.value||C.value||I.value||A.value);return{hasInvalid:I,hasHint:b,hasValid:C,hasLoading:A,HintSlot:{name:"HintSlot",props:{params:{type:Object,default:()=>({})}},setup(O){const H=e.computed(()=>{const P=$.toReactive({hintLabel:s,modelValue:y,valid:S,validLabel:m,invalid:l,invalidLabel:c,loading:p,loadingLabel:h,...O.params});return l!=null&&l.value?(t==null?void 0:t(P))||R(c==null?void 0:c.value)||(s==null?void 0:s.value):S!=null&&S.value?(i==null?void 0:i(P))||R(m==null?void 0:m.value)||(s==null?void 0:s.value):p!=null&&p.value?(u==null?void 0:u(P))||R(h==null?void 0:h.value)||(s==null?void 0:s.value):(a==null?void 0:a(P))||R(s==null?void 0:s.value)||(s==null?void 0:s.value)});return{isVisible:k,hasInvalid:I,hasValid:C,hintContent:H}},render(){if(this.isVisible)return e.h("small",{role:this.hasInvalid||this.hasValid?"alert":void 0},this.hintContent)}}}}function ne(r,n,t){const i=e.computed(()=>!!(r!=null&&r.value&&n.value==="left"||t!=null&&t.iconLeft)),a=e.computed(()=>!!(r!=null&&r.value&&n.value==="right"||t!=null&&t.iconRight)),u=e.computed(()=>!!(r!=null&&r.value&&n.value==="top"||t!=null&&t.iconTop)),s=e.computed(()=>!!(r!=null&&r.value&&n.value==="bottom"||t!=null&&t.iconBottom));return{hasIcon:e.computed(()=>typeof(r==null?void 0:r.value)=="string"?{name:r==null?void 0:r.value}:r==null?void 0:r.value),hasIconLeft:i,hasIconRight:a,hasIconTop:u,hasIconBottom:s}}function re(r,n){const{focused:t}=$.useFocus(r);return e.watch(t,i=>{n(i?"focus":"blur",e.unref(r))}),{focused:t}}function oe(r,n,t=0){let i;return typeof t=="string"&&(t=parseInt(t)),e.computed({get:()=>r==null?void 0:r.value,set:a=>{i&&clearTimeout(i),i=setTimeout(()=>{n("update:modelValue",a)},t)}})}function ae(r,n){const t=e.computed(()=>(e.unref(r)??"").length),i=e.computed(()=>(n==null?void 0:n.lowerLimit)!==void 0&&t.value<(n==null?void 0:n.lowerLimit)?t.value-n.lowerLimit:(n==null?void 0:n.upperLimit)!==void 0&&t.value<(n==null?void 0:n.upperLimit)?n.upperLimit-t.value:0),a=e.computed(()=>(n==null?void 0:n.mode)===!1?"":(n==null?void 0:n.mode)==="limit"?`${t.value} / ${n.lowerLimit?`${n.lowerLimit}-`:""}${n.upperLimit}`:(n==null?void 0:n.mode)==="countdown"?i.value===0?void 0:i:t.value);return{length:t,gap:i,formatted:a}}function F(r,n){const t={[`${r}`]:!0};return{bemCssClasses:e.computed(()=>Object.keys(n).reduce((a,u)=>{const s=e.unref(n[u])||!1;if(!s)return a;if(u==="modifiers"){const y=Array.isArray(s)?s:s.split(" ");return{...a,...y.reduce((S,m)=>({...S,[`${r}--${W(m)}`]:!0}),{})}}else return{...a,[`${r}--${W(u)}`]:s}},t)||{})}}const ie="ds",le={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]}},se={name:"VvIcon"},w=e.defineComponent({...se,props:le,setup(r){const n=r,t=e.ref(!0),{modifiers:i}=e.toRefs(n),a=e.inject(ie),{bemCssClasses:u}=F("vv-icon",{modifiers:i}),s=e.computed(()=>n.provider||(a==null?void 0:a.provider)),y=e.computed(()=>{const l=n.name??"",c=`@${s.value}:${n.prefix}:${n.name}`;return T.iconExists(l)?l:T.iconExists(c)?c:(a==null?void 0:a.iconsCollections.find(g=>{const p=`@${s.value}:${g.prefix}:${l}`;if(T.iconExists(p))return p}))||l});function S(l){let c=null;if(typeof window>"u"){const{JSDOM:I}=require("jsdom");c=new I().window}return(c?new c.DOMParser:new window.DOMParser).parseFromString(l,"text/html").querySelector("svg")}function m(l){const c=S(l),g=(c==null?void 0:c.innerHTML.trim())||"";c&&g&&T.addIcon(`@${s.value}:${n.prefix}:${n.name}`,{body:g,height:c.viewBox.baseVal.height,width:c.viewBox.baseVal.width})}return a&&(n.src&&!T.iconExists(`@${s.value}:${n.prefix}:${n.name}`)?(t.value=!1,a.fetchIcon(n.src).then(l=>{l&&(m(l),t.value=!0)}).catch(l=>{throw new Error(`During fetch icon: ${l==null?void 0:l.message}`)})):n.svg&&m(n.svg)),(l,c)=>t.value?(e.openBlock(),e.createBlock(e.unref(T.Icon),e.mergeProps({key:0,class:e.unref(u)},{inline:l.inline,width:l.width,height:l.height,horizontalFlip:l.horizontalFlip,verticalFlip:l.verticalFlip,flip:l.flip,rotate:l.rotate,color:l.color,onLoad:l.onLoad,icon:e.unref(y)}),null,16,["class"])):e.createCommentVNode("",!0)}}),ce={valid:Boolean,validLabel:[String,Array]},de={invalid:Boolean,invalidLabel:[String,Array]},ue={loading:Boolean,loadingLabel:String},pe={disabled:Boolean},fe={readonly:Boolean},me={modifiers:[String,Array]},he={hintLabel:{type:String,default:""}},Se={count:{type:[Boolean,String],default:!1,validator:r=>[!0,!1,"limit","countdown"].includes(r)}},ge={debounce:[Number,String]},j={LEFT:"left",RIGHT:"right"},be={icon:{type:[String,Object]},iconPosition:{type:String,validation:r=>Object.values(j).includes(r),default:j.RIGHT}},ye={...{id:[String,Number],name:{type:String,required:!0}},...{tabindex:{type:[String,Number],default:0}},...pe,...fe,...ce,...de,...he,...ue,...me,...Se,...ge,...be,autofocus:Boolean,autocomplete:{type:String,default:"off"},minlength:Number,maxlength:Number,placeholder:String,required:Boolean,label:String,floating:Boolean},o={TEXT:"text",PASSWORD:"password",NUMBER:"number",EMAIL:"email",TEL:"tel",URL:"url",COLOR:"color",SEARCH:"search",DATE:"date",TIME:"time",DATETIME_LOCAL:"datetime-local",MONTH:"month",WEEK:"week"},E={PASSWORD_SHOW:"eye-on",PASSWORD_HIDE:"eye-off",DATE:"calendar",TIME:"time",COLOR:"color",SEARCH:"close"},we=["update:modelValue","focus","blur","keyup"],Ee={...ye,modelValue:[String,Number],type:{type:String,default:o.TEXT,validator:r=>Object.values(o).includes(r)},min:[Number,Date,String],max:[Number,Date,String],step:{type:[String,Number],default:1},pattern:String,multiple:Boolean,iconShowPassword:{type:String,default:E.PASSWORD_SHOW},iconHidePassword:{type:String,default:E.PASSWORD_HIDE},iconClear:{type:String,default:E.SEARCH},labelStepUp:{type:String,default:"Increase value"},labelStepDown:{type:String,default:"Decrease value"},labelShowPassword:{type:String,default:"Show password"},labelHidePassword:{type:String,default:"Hide password"},labelClear:{type:String,default:"Clear"}},q=e.defineComponent({components:{VvIcon:w},props:{disabled:{type:Boolean,default:!1},labelShow:{type:String,default:"Show password"},labelHide:{type:String,default:"Hide password"},iconShow:{type:String,default:E.PASSWORD_SHOW},iconHide:{type:String,default:E.PASSWORD_HIDE}},emits:["toggle-password"],setup(r,{emit:n}){const t=e.ref(!1),i=e.computed(()=>t.value?r.iconHide:r.iconShow);function a(u){u==null||u.stopPropagation(),r.disabled||(t.value=!t.value,n("toggle-password",t.value))}return{active:t,activeIcon:i,onClick:a}},render(){const r=e.h(w,{name:this.activeIcon,class:"vv-input-text__action-icon"});return e.h("button",{disabled:this.disabled,class:"vv-input-text__action",ariaLabel:this.active?this.labelHide:this.labelShow,type:"button",onClick:this.onClick},r)}}),B=e.defineComponent({components:{VvIcon:w},props:{disabled:{type:Boolean,default:!1},label:{type:String},mode:{type:String,validator:r=>["up","down"].includes(r),default:"up"}},emits:["step-up","step-down"],setup(r,{emit:n}){const t=e.computed(()=>r.mode==="up");return{isUp:t,onClick:a=>{a==null||a.stopPropagation(),r.disabled||n(t.value?"step-up":"step-down")}}},render(){return e.h("button",{class:["vv-input-text__action-chevron",this.isUp&&"vv-input-text__action-chevron-up"],disabled:this.disabled,ariaLabel:this.label,onClick:this.onClick})}}),z=e.defineComponent({components:{VvIcon:w},props:{disabled:{type:Boolean,default:!1},label:{type:String,default:"Clear"},icon:{type:String,default:"close"}},emits:["clear"],setup(r,{emit:n}){function t(i){i==null||i.stopPropagation(),r.disabled||n("clear")}return{onClick:t}},render(){const r=e.h(w,{name:this.icon,class:"vv-input-text__action-icon"});return e.h("button",{disabled:this.disabled,class:"vv-input-text__action",ariaLabel:this.label,type:"button",onClick:this.onClick},r)}});function v(r,n){return{name:"VvInputTextActions",components:{VvIcon:w,VvInputPasswordAction:q,VvInputStepAction:B,VvInputClearAction:z},setup(){return{isDisabled:e.computed(()=>n.disabled||n.readonly),labelStepUp:n.labelStepUp,labelStepDown:n.labelStepDown,labelShowPassword:n.labelShowPassword,labelHidePassword:n.labelHidePassword,labelClear:n.labelClear,iconShowPassword:n.iconShowPassword,iconHidePassword:n.iconHidePassword}},render(){let t=null;switch(r){case o.SEARCH:{const{onClear:i}=this.$attrs;t=[e.h(z,{disabled:this.isDisabled,label:this.labelShowPassword,onClear:i})];break}case o.PASSWORD:{const{onTogglePassword:i}=this.$attrs;t=[e.h(q,{disabled:this.isDisabled,onTogglePassword:i,labelShow:this.labelShowPassword,labelHide:this.labelHidePassword,iconShow:this.iconShowPassword,iconHide:this.iconHidePassword})];break}case o.NUMBER:{const{onStepUp:i,onStepDown:a}=this.$attrs;t=[e.h(B,{mode:"up",disabled:this.isDisabled||n.max!==void 0&&n.modelValue===n.max,label:this.labelStepUp,onStepUp:i,onStepDown:a}),e.h(B,{mode:"down",disabled:this.isDisabled||n.min!==void 0&&n.modelValue===n.min,label:this.labelStepDown,onStepUp:i,onStepDown:a})];break}}return Array.isArray(t)?e.h("div",{class:"vv-input-text__actions-group"},t):t}}}const Ie=["for"],Ce={class:"vv-input-text__wrapper"},Te=["id"],Ae={key:0,class:"vv-input-text__limit"},Pe={name:"VvInputText"};return e.defineComponent({...Pe,props:Ee,emits:we,setup(r,{emit:n}){const t=r,i=e.useSlots(),a=e.ref(),{icon:u,iconPosition:s,label:y,modelValue:S,count:m,valid:l,invalid:c,loading:g}=e.toRefs(t),p=e.computed(()=>String(t.id||D.nanoid())),h=e.computed(()=>`${p.value}-hint`),I=e.computed(()=>t.floating&&_(t.placeholder)?" ":t.placeholder),b=oe(S,n,t.debounce),{focused:C}=re(a,n),A=e.ref(!1),k=e.computed(()=>t.type===o.PASSWORD),O=()=>{A.value=!A.value},H=e.computed(()=>t.type===o.TIME||t.type===o.DATETIME_LOCAL||t.type===o.DATE||t.type===o.WEEK||t.type===o.MONTH),P=e.computed(()=>t.type===o.NUMBER),X=()=>{V.value&&(a.value.stepUp(),b.value=e.unref(a).value)},K=()=>{V.value&&(a.value.stepDown(),b.value=e.unref(a).value)},De=e.computed(()=>t.type===o.SEARCH),Z=()=>{b.value=void 0},{hasIconLeft:G,hasIconRight:x,hasIcon:Y}=ne(u,s),N=e.computed(()=>{switch(t.type){case o.COLOR:return{name:E.COLOR};case o.DATE:case o.DATETIME_LOCAL:case o.WEEK:case o.MONTH:return{name:E.DATE};case o.TIME:return{name:E.TIME};default:return""}}),{formatted:_e}=ae(b,{mode:t.count,upperLimit:t.maxlength,lowerLimit:t.minlength}),V=e.computed(()=>!t.disabled&&!t.readonly),Re=e.computed(()=>V.value?t.tabindex:-1),J=e.computed(()=>!_(S)),ke=e.computed(()=>{if(c.value===!0)return!0;if(l.value===!0)return!1}),{bemCssClasses:Oe}=F("vv-input-text",{modifiers:t.modifiers,valid:l,invalid:c,loading:g,disabled:t.disabled,readonly:t.readonly,iconLeft:G,iconRight:x.value||!_(N),floating:t.floating&&!_(t.label),dirty:J,focus:C}),Be=e.computed(()=>{const d=(()=>k.value&&A.value||H.value&&!J.value&&!C.value?o.TEXT:t.type)(),f={type:d,name:t.name,tabindex:Re.value,disabled:t.disabled,readonly:t.readonly,required:t.required,autocomplete:t.autocomplete,"aria-invalid":ke.value,"aria-describedby":!Q.value&&He.value?h.value:void 0,"aria-errormessage":Q.value?h.value:void 0};return(d===o.DATE||d===o.MONTH||d===o.WEEK||d===o.TIME||d===o.DATETIME_LOCAL||d===o.NUMBER)&&(f.step=t.step,f.max=String(t.max),f.min=String(t.min)),(d===o.TEXT||d===o.SEARCH||d===o.URL||d===o.TEL||d===o.EMAIL||d===o.PASSWORD||d===o.NUMBER)&&(f.placeholder=I.value),(d===o.TEXT||d===o.SEARCH||d===o.URL||d===o.TEL||d===o.EMAIL||d===o.PASSWORD)&&(f.minlength=t.minlength,f.maxlength=t.maxlength,f.pattern=t.pattern),d===o.EMAIL&&(f.multiple=t.multiple),f}),L=e.computed(()=>({valid:t.valid,invalid:t.invalid,modelValue:t.modelValue,togglePassword:O,stepUp:X,stepDown:K,clear:Z})),{HintSlot:ve,hasHint:He,hasInvalid:Q}=te(t,i),xe=v(o.PASSWORD,t),Ne=v(o.NUMBER,t),Ve=v(o.SEARCH,t);return e.onMounted(()=>{t.autofocus&&(C.value=!0)}),(d,f)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(e.unref(Oe))},[e.unref(y)?(e.openBlock(),e.createElementBlock("label",{key:0,for:e.unref(p),class:"vv-input-text__label"},e.toDisplayString(e.unref(y)),9,Ie)):e.createCommentVNode("",!0),e.createElementVNode("div",Ce,[e.renderSlot(d.$slots,"before",e.normalizeProps(e.guardReactiveProps(e.unref(L))),()=>[e.unref(G)?(e.openBlock(),e.createBlock(w,e.mergeProps({key:0,class:"vv-input-text__icon-left"},e.unref(Y)),null,16)):e.createCommentVNode("",!0)]),e.withDirectives(e.createElementVNode("input",e.mergeProps({id:e.unref(p),ref_key:"input",ref:a,"onUpdate:modelValue":f[0]||(f[0]=M=>e.isRef(b)?b.value=M:null)},e.unref(Be),{onKeyup:f[1]||(f[1]=M=>n("keyup",M))}),null,16,Te),[[e.vModelDynamic,e.unref(b)]]),e.renderSlot(d.$slots,"after",e.normalizeProps(e.guardReactiveProps(e.unref(L))),()=>[e.unref(x)||e.unref(N)?(e.openBlock(),e.createBlock(w,e.normalizeProps(e.mergeProps({key:0},e.unref(x)?e.unref(Y):e.unref(N))),null,16)):e.unref(k)?(e.openBlock(),e.createBlock(e.unref(xe),{key:1,onTogglePassword:O})):e.unref(P)?(e.openBlock(),e.createBlock(e.unref(Ne),{key:2,onStepUp:X,onStepDown:K})):e.unref(De)?(e.openBlock(),e.createBlock(e.unref(Ve),{key:3,onClear:Z})):e.createCommentVNode("",!0)]),e.unref(m)?(e.openBlock(),e.createElementBlock("span",Ae,[e.renderSlot(d.$slots,"count",e.normalizeProps(e.guardReactiveProps(e.unref(L))),()=>[e.createTextVNode(e.toDisplayString(e.unref(_e)),1)])])):e.createCommentVNode("",!0)]),e.createVNode(e.unref(ve),{id:e.unref(h),class:"vv-input-text__hint"},null,8,["id"])],2))}})});
1
+ (function(e,I){typeof exports=="object"&&typeof module<"u"?module.exports=I(require("vue"),require("@vueuse/core"),require("nanoid"),require("@iconify/vue")):typeof define=="function"&&define.amd?define(["vue","@vueuse/core","nanoid","@iconify/vue"],I):(e=typeof globalThis<"u"?globalThis:e||self,e.VvInputText=I(e.vue,e.core,e.nanoid,e.vue$1))})(this,function(e,I,Q,C){"use strict";function $(r,n){if(r&&Object.keys(r).length&&n){if(n.indexOf(".")===-1)return r[n];{const t=n.split(".");let i=r;for(let a=0,u=t.length;a<u;++a){if(r==null)return null;i=i[t[a]]}return i}}else return null}function D(r){return(n=>n==null||n===""||Array.isArray(n)&&n.length===0||!(n instanceof Date)&&typeof n=="object"&&Object.keys(n).length===0)(e.unref(r))}function ee(r){return typeof r=="string"||r instanceof String}function U(r){var n,t;if(r)return(t=(n=r.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:n.join("-"))==null?void 0:t.toLowerCase()}function R(r){return Array.isArray(r)?r.filter(n=>ee(n)).join(" "):r}function te(r,n){const{invalid:t,valid:i,hint:a,loading:u}=n,{hintLabel:s,modelValue:y,valid:S,validLabel:m,invalid:l,invalidLabel:c,...g}=e.toRefs(r),p=$(g,"loading"),h=$(g,"loadingLabel"),P=e.computed(()=>l.value?!!(l.value&&t||c!=null&&c.value&&Array.isArray(c.value)&&c.value.length>0||c!=null&&c.value&&!D(c)):!1),b=e.computed(()=>!!(s&&s.value||a)),A=e.computed(()=>!!(m&&m.value||i)),k=e.computed(()=>!!(p!=null&&p.value&&u||p!=null&&p.value&&(h!=null&&h.value))),_=e.computed(()=>b.value||A.value||P.value||k.value);return{hasInvalid:P,hasHint:b,hasValid:A,hasLoading:k,HintSlot:{name:"HintSlot",props:{params:{type:Object,default:()=>({})}},setup(O){const B=e.computed(()=>{const T=I.toReactive({hintLabel:s,modelValue:y,valid:S,validLabel:m,invalid:l,invalidLabel:c,loading:p,loadingLabel:h,...O.params});return l!=null&&l.value?(t==null?void 0:t(T))||R(c==null?void 0:c.value)||(s==null?void 0:s.value):S!=null&&S.value?(i==null?void 0:i(T))||R(m==null?void 0:m.value)||(s==null?void 0:s.value):p!=null&&p.value?(u==null?void 0:u(T))||R(h==null?void 0:h.value)||(s==null?void 0:s.value):(a==null?void 0:a(T))||R(s==null?void 0:s.value)||(s==null?void 0:s.value)});return{isVisible:_,hasInvalid:P,hasValid:A,hintContent:B}},render(){if(this.isVisible)return e.h("small",{role:this.hasInvalid||this.hasValid?"alert":void 0},this.hintContent)}}}}function ne(r,n,t){const i=e.computed(()=>!!(r!=null&&r.value&&n.value==="left"||t!=null&&t.iconLeft)),a=e.computed(()=>!!(r!=null&&r.value&&n.value==="right"||t!=null&&t.iconRight)),u=e.computed(()=>!!(r!=null&&r.value&&n.value==="top"||t!=null&&t.iconTop)),s=e.computed(()=>!!(r!=null&&r.value&&n.value==="bottom"||t!=null&&t.iconBottom));return{hasIcon:e.computed(()=>typeof(r==null?void 0:r.value)=="string"?{name:r==null?void 0:r.value}:r==null?void 0:r.value),hasIconLeft:i,hasIconRight:a,hasIconTop:u,hasIconBottom:s}}function re(r,n){const{focused:t}=I.useFocus(r);return e.watch(t,i=>{n(i?"focus":"blur",e.unref(r))}),{focused:t}}function oe(r,n,t=0){let i;return typeof t=="string"&&(t=parseInt(t)),e.computed({get:()=>r==null?void 0:r.value,set:a=>{i&&clearTimeout(i),i=setTimeout(()=>{n("update:modelValue",a)},t)}})}function ae(r,n){const t=e.computed(()=>(e.unref(r)??"").length),i=e.computed(()=>(n==null?void 0:n.lowerLimit)!==void 0&&t.value<(n==null?void 0:n.lowerLimit)?t.value-n.lowerLimit:(n==null?void 0:n.upperLimit)!==void 0&&t.value<(n==null?void 0:n.upperLimit)?n.upperLimit-t.value:0),a=e.computed(()=>(n==null?void 0:n.mode)===!1?"":(n==null?void 0:n.mode)==="limit"&&(n!=null&&n.upperLimit)?`${t.value} / ${n.lowerLimit?`${n.lowerLimit}-`:""}${n.upperLimit}`:(n==null?void 0:n.mode)==="countdown"?i.value===0?void 0:i:t.value);return{length:t,gap:i,formatted:a}}function F(r,n){const t={[`${r}`]:!0};return{bemCssClasses:e.computed(()=>Object.keys(n).reduce((a,u)=>{const s=e.unref(n[u])||!1;if(!s)return a;if(u==="modifiers"){const y=Array.isArray(s)?s:s.split(" ");return{...a,...y.reduce((S,m)=>({...S,[`${r}--${U(m)}`]:!0}),{})}}else return{...a,[`${r}--${U(u)}`]:s}},t)||{})}}const ie="ds",le={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]}},se={name:"VvIcon"},w=e.defineComponent({...se,props:le,setup(r){const n=r,t=e.ref(!0),{modifiers:i}=e.toRefs(n),a=e.inject(ie),{bemCssClasses:u}=F("vv-icon",{modifiers:i}),s=e.computed(()=>n.provider||(a==null?void 0:a.provider)),y=e.computed(()=>{const l=n.name??"",c=`@${s.value}:${n.prefix}:${n.name}`;return C.iconExists(l)?l:C.iconExists(c)?c:(a==null?void 0:a.iconsCollections.find(g=>{const p=`@${s.value}:${g.prefix}:${l}`;if(C.iconExists(p))return p}))||l});function S(l){let c=null;if(typeof window>"u"){const{JSDOM:P}=require("jsdom");c=new P().window}return(c?new c.DOMParser:new window.DOMParser).parseFromString(l,"text/html").querySelector("svg")}function m(l){const c=S(l),g=(c==null?void 0:c.innerHTML.trim())||"";c&&g&&C.addIcon(`@${s.value}:${n.prefix}:${n.name}`,{body:g,height:c.viewBox.baseVal.height,width:c.viewBox.baseVal.width})}return a&&(n.src&&!C.iconExists(`@${s.value}:${n.prefix}:${n.name}`)?(t.value=!1,a.fetchIcon(n.src).then(l=>{l&&(m(l),t.value=!0)}).catch(l=>{throw new Error(`During fetch icon: ${l==null?void 0:l.message}`)})):n.svg&&m(n.svg)),(l,c)=>t.value?(e.openBlock(),e.createBlock(e.unref(C.Icon),e.mergeProps({key:0,class:e.unref(u)},{inline:l.inline,width:l.width,height:l.height,horizontalFlip:l.horizontalFlip,verticalFlip:l.verticalFlip,flip:l.flip,rotate:l.rotate,color:l.color,onLoad:l.onLoad,icon:e.unref(y)}),null,16,["class"])):e.createCommentVNode("",!0)}}),ce={valid:Boolean,validLabel:[String,Array]},de={invalid:Boolean,invalidLabel:[String,Array]},ue={loading:Boolean,loadingLabel:String},pe={disabled:Boolean},fe={readonly:Boolean},me={modifiers:[String,Array]},he={hintLabel:{type:String,default:""}},Se={count:{type:[Boolean,String],default:!1,validator:r=>[!0,!1,"limit","countdown"].includes(r)}},ge={debounce:[Number,String]},W={LEFT:"left",RIGHT:"right"},be={icon:{type:[String,Object]},iconPosition:{type:String,validation:r=>Object.values(W).includes(r),default:W.RIGHT}},ye={...{id:[String,Number],name:{type:String,required:!0}},...{autofocus:Boolean},...{autocomplete:{type:String,default:"off"}},...{tabindex:{type:[String,Number],default:0}},...pe,...fe,...ce,...de,...he,...ue,...me,...Se,...ge,...be,...{floating:Boolean},minlength:Number,maxlength:Number,placeholder:String,required:Boolean,label:String},o={TEXT:"text",PASSWORD:"password",NUMBER:"number",EMAIL:"email",TEL:"tel",URL:"url",COLOR:"color",SEARCH:"search",DATE:"date",TIME:"time",DATETIME_LOCAL:"datetime-local",MONTH:"month",WEEK:"week"},E={PASSWORD_SHOW:"eye-on",PASSWORD_HIDE:"eye-off",DATE:"calendar",TIME:"time",COLOR:"color",SEARCH:"close"},we=["update:modelValue","focus","blur","keyup"],Ee={...ye,modelValue:[String,Number],type:{type:String,default:o.TEXT,validator:r=>Object.values(o).includes(r)},min:[Number,Date,String],max:[Number,Date,String],step:{type:[String,Number],default:1},pattern:String,multiple:Boolean,iconShowPassword:{type:String,default:E.PASSWORD_SHOW},iconHidePassword:{type:String,default:E.PASSWORD_HIDE},iconClear:{type:String,default:E.SEARCH},labelStepUp:{type:String,default:"Increase value"},labelStepDown:{type:String,default:"Decrease value"},labelShowPassword:{type:String,default:"Show password"},labelHidePassword:{type:String,default:"Hide password"},labelClear:{type:String,default:"Clear"}},j=e.defineComponent({components:{VvIcon:w},props:{disabled:{type:Boolean,default:!1},labelShow:{type:String,default:"Show password"},labelHide:{type:String,default:"Hide password"},iconShow:{type:String,default:E.PASSWORD_SHOW},iconHide:{type:String,default:E.PASSWORD_HIDE}},emits:["toggle-password"],setup(r,{emit:n}){const t=e.ref(!1),i=e.computed(()=>t.value?r.iconHide:r.iconShow);function a(u){u==null||u.stopPropagation(),r.disabled||(t.value=!t.value,n("toggle-password",t.value))}return{active:t,activeIcon:i,onClick:a}},render(){const r=e.h(w,{name:this.activeIcon,class:"vv-input-text__action-icon"});return e.h("button",{disabled:this.disabled,class:"vv-input-text__action",ariaLabel:this.active?this.labelHide:this.labelShow,type:"button",onClick:this.onClick},r)}}),v=e.defineComponent({components:{VvIcon:w},props:{disabled:{type:Boolean,default:!1},label:{type:String},mode:{type:String,validator:r=>["up","down"].includes(r),default:"up"}},emits:["step-up","step-down"],setup(r,{emit:n}){const t=e.computed(()=>r.mode==="up");return{isUp:t,onClick:a=>{a==null||a.stopPropagation(),r.disabled||n(t.value?"step-up":"step-down")}}},render(){return e.h("button",{class:["vv-input-text__action-chevron",this.isUp&&"vv-input-text__action-chevron-up"],disabled:this.disabled,ariaLabel:this.label,onClick:this.onClick})}}),q=e.defineComponent({components:{VvIcon:w},props:{disabled:{type:Boolean,default:!1},label:{type:String,default:"Clear"},icon:{type:String,default:"close"}},emits:["clear"],setup(r,{emit:n}){function t(i){i==null||i.stopPropagation(),r.disabled||n("clear")}return{onClick:t}},render(){const r=e.h(w,{name:this.icon,class:"vv-input-text__action-icon"});return e.h("button",{disabled:this.disabled,class:"vv-input-text__action",ariaLabel:this.label,type:"button",onClick:this.onClick},r)}});function H(r,n){return{name:"VvInputTextActions",components:{VvIcon:w,VvInputPasswordAction:j,VvInputStepAction:v,VvInputClearAction:q},setup(){return{isDisabled:e.computed(()=>n.disabled||n.readonly),labelStepUp:n.labelStepUp,labelStepDown:n.labelStepDown,labelShowPassword:n.labelShowPassword,labelHidePassword:n.labelHidePassword,labelClear:n.labelClear,iconShowPassword:n.iconShowPassword,iconHidePassword:n.iconHidePassword}},render(){let t=null;switch(r){case o.SEARCH:{const{onClear:i}=this.$attrs;t=[e.h(q,{disabled:this.isDisabled,label:this.labelShowPassword,onClear:i})];break}case o.PASSWORD:{const{onTogglePassword:i}=this.$attrs;t=[e.h(j,{disabled:this.isDisabled,onTogglePassword:i,labelShow:this.labelShowPassword,labelHide:this.labelHidePassword,iconShow:this.iconShowPassword,iconHide:this.iconHidePassword})];break}case o.NUMBER:{const{onStepUp:i,onStepDown:a}=this.$attrs;t=[e.h(v,{mode:"up",disabled:this.isDisabled||n.max!==void 0&&n.modelValue===n.max,label:this.labelStepUp,onStepUp:i,onStepDown:a}),e.h(v,{mode:"down",disabled:this.isDisabled||n.min!==void 0&&n.modelValue===n.min,label:this.labelStepDown,onStepUp:i,onStepDown:a})];break}}return Array.isArray(t)?e.h("div",{class:"vv-input-text__actions-group"},t):t}}}const Ie=["for"],Pe={class:"vv-input-text__wrapper"},Ae=["id"],Ce={key:0,class:"vv-input-text__limit"},Te={name:"VvInputText"};return e.defineComponent({...Te,props:Ee,emits:we,setup(r,{emit:n}){const t=r,i=e.useSlots(),a=e.ref(),{icon:u,iconPosition:s,label:y,modelValue:S,count:m,valid:l,invalid:c,loading:g}=e.toRefs(t),p=e.computed(()=>String(t.id||Q.nanoid())),h=e.computed(()=>`${p.value}-hint`),P=e.computed(()=>t.floating&&D(t.placeholder)?" ":t.placeholder),b=oe(S,n,t.debounce),{focused:A}=re(a,n),k=I.useElementVisibility(a);e.watch(k,d=>{d&&t.autofocus&&(A.value=!0)});const _=e.ref(!1),O=e.computed(()=>t.type===o.PASSWORD),B=()=>{_.value=!_.value},T=e.computed(()=>t.type===o.TIME||t.type===o.DATETIME_LOCAL||t.type===o.DATE||t.type===o.WEEK||t.type===o.MONTH),De=e.computed(()=>t.type===o.NUMBER),z=()=>{N.value&&(a.value.stepUp(),b.value=e.unref(a).value)},X=()=>{N.value&&(a.value.stepDown(),b.value=e.unref(a).value)},_e=e.computed(()=>t.type===o.SEARCH),K=()=>{b.value=void 0},{hasIconLeft:Z,hasIconRight:x,hasIcon:G}=ne(u,s),V=e.computed(()=>{switch(t.type){case o.COLOR:return{name:E.COLOR};case o.DATE:case o.DATETIME_LOCAL:case o.WEEK:case o.MONTH:return{name:E.DATE};case o.TIME:return{name:E.TIME};default:return""}}),{formatted:Re}=ae(b,{mode:t.count,upperLimit:t.maxlength,lowerLimit:t.minlength}),N=e.computed(()=>!t.disabled&&!t.readonly),ke=e.computed(()=>N.value?t.tabindex:-1),Y=e.computed(()=>!D(S)),Oe=e.computed(()=>{if(c.value===!0)return!0;if(l.value===!0)return!1}),{bemCssClasses:Be}=F("vv-input-text",{modifiers:t.modifiers,valid:l,invalid:c,loading:g,disabled:t.disabled,readonly:t.readonly,iconLeft:Z,iconRight:x.value||!D(V),floating:t.floating&&!D(t.label),dirty:Y,focus:A}),ve=e.computed(()=>{const d=(()=>O.value&&_.value||T.value&&!Y.value&&!A.value?o.TEXT:t.type)(),f={type:d,name:t.name,tabindex:ke.value,disabled:t.disabled,readonly:t.readonly,required:t.required,autocomplete:t.autocomplete,"aria-invalid":Oe.value,"aria-describedby":!J.value&&xe.value?h.value:void 0,"aria-errormessage":J.value?h.value:void 0};return(d===o.DATE||d===o.MONTH||d===o.WEEK||d===o.TIME||d===o.DATETIME_LOCAL||d===o.NUMBER)&&(f.step=t.step,f.max=String(t.max),f.min=String(t.min)),(d===o.TEXT||d===o.SEARCH||d===o.URL||d===o.TEL||d===o.EMAIL||d===o.PASSWORD||d===o.NUMBER)&&(f.placeholder=P.value),(d===o.TEXT||d===o.SEARCH||d===o.URL||d===o.TEL||d===o.EMAIL||d===o.PASSWORD)&&(f.minlength=t.minlength,f.maxlength=t.maxlength,f.pattern=t.pattern),d===o.EMAIL&&(f.multiple=t.multiple),f}),L=e.computed(()=>({valid:t.valid,invalid:t.invalid,modelValue:t.modelValue,togglePassword:B,stepUp:z,stepDown:X,clear:K})),{HintSlot:He,hasHint:xe,hasInvalid:J}=te(t,i),Ve=H(o.PASSWORD,t),Ne=H(o.NUMBER,t),Le=H(o.SEARCH,t);return(d,f)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(e.unref(Be))},[e.unref(y)?(e.openBlock(),e.createElementBlock("label",{key:0,for:e.unref(p),class:"vv-input-text__label"},e.toDisplayString(e.unref(y)),9,Ie)):e.createCommentVNode("",!0),e.createElementVNode("div",Pe,[e.renderSlot(d.$slots,"before",e.normalizeProps(e.guardReactiveProps(e.unref(L))),()=>[e.unref(Z)?(e.openBlock(),e.createBlock(w,e.mergeProps({key:0,class:"vv-input-text__icon-left"},e.unref(G)),null,16)):e.createCommentVNode("",!0)]),e.withDirectives(e.createElementVNode("input",e.mergeProps({id:e.unref(p),ref_key:"input",ref:a,"onUpdate:modelValue":f[0]||(f[0]=M=>e.isRef(b)?b.value=M:null)},e.unref(ve),{onKeyup:f[1]||(f[1]=M=>n("keyup",M))}),null,16,Ae),[[e.vModelDynamic,e.unref(b)]]),e.renderSlot(d.$slots,"after",e.normalizeProps(e.guardReactiveProps(e.unref(L))),()=>[e.unref(x)||e.unref(V)?(e.openBlock(),e.createBlock(w,e.normalizeProps(e.mergeProps({key:0},e.unref(x)?e.unref(G):e.unref(V))),null,16)):e.unref(O)?(e.openBlock(),e.createBlock(e.unref(Ve),{key:1,onTogglePassword:B})):e.unref(De)?(e.openBlock(),e.createBlock(e.unref(Ne),{key:2,onStepUp:z,onStepDown:X})):e.unref(_e)?(e.openBlock(),e.createBlock(e.unref(Le),{key:3,onClear:K})):e.createCommentVNode("",!0)]),e.unref(m)?(e.openBlock(),e.createElementBlock("span",Ce,[e.renderSlot(d.$slots,"count",e.normalizeProps(e.guardReactiveProps(e.unref(L))),()=>[e.createTextVNode(e.toDisplayString(e.unref(Re)),1)])])):e.createCommentVNode("",!0)]),e.createVNode(e.unref(He),{id:e.unref(h),class:"vv-input-text__hint"},null,8,["id"])],2))}})});
@@ -45,11 +45,6 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
45
45
  type: StringConstructor;
46
46
  default: string;
47
47
  };
48
- autofocus: BooleanConstructor;
49
- autocomplete: {
50
- type: StringConstructor;
51
- default: string;
52
- };
53
48
  minlength: NumberConstructor;
54
49
  maxlength: NumberConstructor;
55
50
  placeholder: StringConstructor;
@@ -87,6 +82,11 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
87
82
  type: (StringConstructor | NumberConstructor)[];
88
83
  default: number;
89
84
  };
85
+ autocomplete: {
86
+ type: StringConstructor;
87
+ default: string;
88
+ };
89
+ autofocus: BooleanConstructor;
90
90
  id: (StringConstructor | NumberConstructor)[];
91
91
  name: {
92
92
  type: StringConstructor;
@@ -139,11 +139,6 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
139
139
  type: StringConstructor;
140
140
  default: string;
141
141
  };
142
- autofocus: BooleanConstructor;
143
- autocomplete: {
144
- type: StringConstructor;
145
- default: string;
146
- };
147
142
  minlength: NumberConstructor;
148
143
  maxlength: NumberConstructor;
149
144
  placeholder: StringConstructor;
@@ -181,6 +176,11 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
181
176
  type: (StringConstructor | NumberConstructor)[];
182
177
  default: number;
183
178
  };
179
+ autocomplete: {
180
+ type: StringConstructor;
181
+ default: string;
182
+ };
183
+ autofocus: BooleanConstructor;
184
184
  id: (StringConstructor | NumberConstructor)[];
185
185
  name: {
186
186
  type: StringConstructor;
@@ -200,6 +200,9 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
200
200
  invalid: boolean;
201
201
  valid: boolean;
202
202
  tabindex: string | number;
203
+ floating: boolean;
204
+ autocomplete: string;
205
+ autofocus: boolean;
203
206
  step: string | number;
204
207
  iconShowPassword: string;
205
208
  iconHidePassword: string;
@@ -209,9 +212,6 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
209
212
  labelShowPassword: string;
210
213
  labelHidePassword: string;
211
214
  labelClear: string;
212
- autofocus: boolean;
213
- autocomplete: string;
214
- floating: boolean;
215
215
  count: string | boolean;
216
216
  }>, {
217
217
  before: (_: {
@@ -131,11 +131,6 @@ export declare const VvInputTextProps: {
131
131
  type: StringConstructor;
132
132
  default: string;
133
133
  };
134
- autofocus: BooleanConstructor;
135
- autocomplete: {
136
- type: StringConstructor;
137
- default: string;
138
- };
139
134
  minlength: NumberConstructor;
140
135
  maxlength: NumberConstructor;
141
136
  placeholder: StringConstructor;
@@ -173,6 +168,11 @@ export declare const VvInputTextProps: {
173
168
  type: (StringConstructor | NumberConstructor)[];
174
169
  default: number;
175
170
  };
171
+ autocomplete: {
172
+ type: StringConstructor;
173
+ default: string;
174
+ };
175
+ autofocus: BooleanConstructor;
176
176
  id: (StringConstructor | NumberConstructor)[];
177
177
  name: {
178
178
  type: StringConstructor;