@volverjs/ui-vue 0.0.4 → 0.0.5-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.
- package/README.md +2 -2
- package/auto-imports.d.ts +12 -3
- package/bin/icons.cjs +1 -73
- package/dist/Volver.d.ts +19 -11
- package/dist/components/VvAccordion/VvAccordion.es.js +165 -106
- package/dist/components/VvAccordion/VvAccordion.umd.js +1 -1
- package/dist/components/VvAccordion/VvAccordion.vue.d.ts +4 -1
- package/dist/components/VvAccordion/index.d.ts +8 -3
- package/dist/components/VvAccordionGroup/VvAccordionGroup.es.js +264 -164
- package/dist/components/VvAccordionGroup/VvAccordionGroup.umd.js +1 -1
- package/dist/components/VvAccordionGroup/VvAccordionGroup.vue.d.ts +15 -12
- package/dist/components/VvAccordionGroup/index.d.ts +8 -0
- package/dist/components/VvAction/VvAction.es.js +276 -98
- package/dist/components/VvAction/VvAction.umd.js +1 -1
- package/dist/components/VvAction/VvAction.vue.d.ts +12 -12
- package/dist/components/VvAction/index.d.ts +2 -2
- package/dist/components/VvBadge/VvBadge.es.js +213 -44
- package/dist/components/VvBadge/VvBadge.umd.js +1 -1
- package/dist/components/VvBadge/VvBadge.vue.d.ts +2 -2
- package/dist/components/VvBadge/index.d.ts +1 -1
- package/dist/components/VvBreadcrumb/VvBreadcrumb.es.js +247 -75
- package/dist/components/VvBreadcrumb/VvBreadcrumb.umd.js +1 -1
- package/dist/components/VvBreadcrumb/VvBreadcrumb.vue.d.ts +11 -11
- package/dist/components/VvBreadcrumb/index.d.ts +1 -1
- package/dist/components/VvButton/VvButton.es.js +646 -360
- package/dist/components/VvButton/VvButton.umd.js +1 -1
- package/dist/components/VvButton/VvButton.vue.d.ts +18 -18
- package/dist/components/VvButton/index.d.ts +13 -13
- package/dist/components/VvButtonGroup/VvButtonGroup.es.js +261 -79
- package/dist/components/VvButtonGroup/VvButtonGroup.umd.js +1 -1
- package/dist/components/VvButtonGroup/VvButtonGroup.vue.d.ts +2 -2
- package/dist/components/VvButtonGroup/index.d.ts +1 -1
- package/dist/components/VvCard/VvCard.es.js +57 -38
- package/dist/components/VvCard/VvCard.umd.js +1 -1
- package/dist/components/VvCheckbox/VvCheckbox.es.js +562 -274
- package/dist/components/VvCheckbox/VvCheckbox.umd.js +1 -1
- package/dist/components/VvCheckbox/VvCheckbox.vue.d.ts +2 -2
- package/dist/components/VvCheckbox/index.d.ts +5 -5
- package/dist/components/VvCheckboxGroup/VvCheckboxGroup.es.js +661 -340
- package/dist/components/VvCheckboxGroup/VvCheckboxGroup.umd.js +1 -1
- package/dist/components/VvCheckboxGroup/VvCheckboxGroup.vue.d.ts +7 -7
- package/dist/components/VvCheckboxGroup/index.d.ts +3 -3
- package/dist/components/VvCombobox/VvCombobox.es.js +1546 -983
- package/dist/components/VvCombobox/VvCombobox.umd.js +1 -1
- package/dist/components/VvCombobox/VvCombobox.vue.d.ts +138 -51
- package/dist/components/VvCombobox/index.d.ts +41 -10
- package/dist/components/VvDialog/VvDialog.es.js +387 -141
- package/dist/components/VvDialog/VvDialog.umd.js +1 -1
- package/dist/components/VvDialog/VvDialog.vue.d.ts +12 -3
- package/dist/components/VvDialog/index.d.ts +4 -1
- package/dist/components/VvDropdown/VvDropdown.es.js +452 -244
- package/dist/components/VvDropdown/VvDropdown.umd.js +1 -1
- package/dist/components/VvDropdown/VvDropdown.vue.d.ts +130 -42
- package/dist/components/VvDropdown/VvDropdownAction.vue.d.ts +13 -13
- package/dist/components/VvDropdown/VvDropdownOption.vue.d.ts +2 -2
- package/dist/components/VvDropdown/index.d.ts +40 -11
- package/dist/components/VvDropdownAction/VvDropdownAction.es.js +373 -160
- package/dist/components/VvDropdownAction/VvDropdownAction.umd.js +1 -1
- package/dist/components/VvDropdownItem/VvDropdownItem.es.js +43 -28
- package/dist/components/VvDropdownItem/VvDropdownItem.umd.js +1 -1
- package/dist/components/VvDropdownOption/VvDropdownOption.es.js +285 -90
- package/dist/components/VvDropdownOption/VvDropdownOption.umd.js +1 -1
- package/dist/components/VvIcon/VvIcon.es.js +113 -65
- package/dist/components/VvIcon/VvIcon.umd.js +1 -1
- package/dist/components/VvIcon/VvIcon.vue.d.ts +7 -7
- package/dist/components/VvIcon/index.d.ts +2 -2
- package/dist/components/VvInputText/VvInputPasswordAction.d.ts +2 -2
- package/dist/components/VvInputText/VvInputStepAction.d.ts +1 -1
- package/dist/components/VvInputText/VvInputText.es.js +986 -462
- package/dist/components/VvInputText/VvInputText.umd.js +1 -1
- package/dist/components/VvInputText/VvInputText.vue.d.ts +100 -20
- package/dist/components/VvInputText/VvInputTextActions.d.ts +1 -1
- package/dist/components/VvInputText/index.d.ts +66 -13
- package/dist/components/VvProgress/VvProgress.es.js +216 -45
- package/dist/components/VvProgress/VvProgress.umd.js +1 -1
- package/dist/components/VvProgress/VvProgress.vue.d.ts +2 -2
- package/dist/components/VvProgress/index.d.ts +1 -1
- package/dist/components/VvRadio/VvRadio.es.js +499 -238
- package/dist/components/VvRadio/VvRadio.umd.js +1 -1
- package/dist/components/VvRadio/VvRadio.vue.d.ts +2 -2
- package/dist/components/VvRadio/index.d.ts +5 -5
- package/dist/components/VvRadioGroup/VvRadioGroup.es.js +598 -304
- package/dist/components/VvRadioGroup/VvRadioGroup.umd.js +1 -1
- package/dist/components/VvRadioGroup/VvRadioGroup.vue.d.ts +7 -7
- package/dist/components/VvRadioGroup/index.d.ts +3 -3
- package/dist/components/VvSelect/VvSelect.es.js +631 -324
- package/dist/components/VvSelect/VvSelect.umd.js +1 -1
- package/dist/components/VvSelect/VvSelect.vue.d.ts +13 -13
- package/dist/components/VvSelect/index.d.ts +3 -3
- package/dist/components/VvTextarea/VvTextarea.es.js +676 -355
- package/dist/components/VvTextarea/VvTextarea.umd.js +1 -1
- package/dist/components/VvTextarea/VvTextarea.vue.d.ts +20 -20
- package/dist/components/VvTextarea/index.d.ts +4 -4
- package/dist/components/VvTooltip/VvTooltip.es.js +215 -47
- package/dist/components/VvTooltip/VvTooltip.umd.js +1 -1
- package/dist/components/VvTooltip/VvTooltip.vue.d.ts +7 -7
- package/dist/components/VvTooltip/index.d.ts +2 -2
- package/dist/components/index.es.js +3522 -2231
- package/dist/components/index.umd.js +1 -1
- package/dist/composables/dropdown/useInjectDropdown.d.ts +1 -1
- package/dist/composables/dropdown/useProvideDropdown.d.ts +3 -3
- package/dist/composables/group/useInjectedGroupState.d.ts +2 -2
- package/dist/composables/group/useProvideGroupState.d.ts +1 -1
- package/dist/composables/useComponentFocus.d.ts +1 -1
- package/dist/composables/useComponentIcon.d.ts +7 -7
- package/dist/composables/useDebouncedInput.d.ts +4 -1
- package/dist/composables/useDefaults.d.ts +2 -0
- package/dist/composables/useModifiers.d.ts +1 -1
- package/dist/composables/useOptions.d.ts +2 -2
- package/dist/composables/useTextCount.d.ts +3 -3
- package/dist/composables/useUniqueId.d.ts +1 -1
- package/dist/composables/useVolver.d.ts +1 -1
- package/dist/directives/index.d.ts +1 -0
- package/dist/directives/index.es.js +264 -55
- package/dist/directives/index.umd.js +1 -1
- package/dist/directives/v-contextmenu.d.ts +3 -0
- package/dist/directives/v-contextmenu.es.js +42 -0
- package/dist/directives/v-contextmenu.umd.js +1 -0
- package/dist/directives/v-tooltip.es.js +222 -53
- package/dist/directives/v-tooltip.umd.js +1 -1
- package/dist/icons.d.ts +3 -1
- package/dist/icons.es.js +40 -23
- package/dist/icons.umd.js +1 -1
- package/dist/index.d.ts +0 -1
- package/dist/index.es.js +112 -3607
- package/dist/index.umd.js +1 -1
- package/dist/props/index.d.ts +50 -18
- package/dist/resolvers/unplugin.d.ts +7 -1
- package/dist/resolvers/unplugin.es.js +77 -37
- package/dist/resolvers/unplugin.umd.js +1 -1
- package/dist/stories/Combobox/Combobox.settings.d.ts +12 -0
- package/dist/stories/Dropdown/Dropdown.settings.d.ts +12 -0
- package/dist/stories/InputText/InputText.settings.d.ts +53 -0
- package/dist/stories/argTypes.d.ts +13 -1
- package/package.json +126 -40
- package/src/Volver.ts +49 -22
- 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/VvAccordion/VvAccordion.vue +19 -22
- package/src/components/VvAccordion/index.ts +12 -4
- package/src/components/VvAccordionGroup/VvAccordionGroup.vue +19 -10
- package/src/components/VvAccordionGroup/index.ts +8 -0
- package/src/components/VvAction/VvAction.vue +7 -7
- package/src/components/VvAction/index.ts +1 -1
- package/src/components/VvBadge/VvBadge.vue +2 -2
- package/src/components/VvBadge/index.ts +1 -1
- package/src/components/VvBreadcrumb/VvBreadcrumb.vue +3 -3
- package/src/components/VvButton/VvButton.vue +11 -11
- package/src/components/VvButton/index.ts +10 -9
- package/src/components/VvButtonGroup/VvButtonGroup.vue +4 -7
- package/src/components/VvButtonGroup/index.ts +1 -1
- package/src/components/VvCard/VvCard.vue +2 -2
- package/src/components/VvCheckbox/VvCheckbox.vue +3 -7
- package/src/components/VvCheckbox/index.ts +11 -7
- package/src/components/VvCheckboxGroup/VvCheckboxGroup.vue +7 -10
- package/src/components/VvCheckboxGroup/index.ts +1 -1
- package/src/components/VvCombobox/VvCombobox.vue +44 -26
- package/src/components/VvCombobox/index.ts +1 -1
- package/src/components/VvDialog/VvDialog.vue +28 -11
- package/src/components/VvDialog/index.ts +5 -2
- package/src/components/VvDropdown/VvDropdown.vue +7 -5
- package/src/components/VvDropdown/VvDropdownAction.vue +7 -5
- package/src/components/VvDropdown/VvDropdownOption.vue +17 -10
- package/src/components/VvDropdown/index.ts +3 -3
- package/src/components/VvIcon/VvIcon.vue +3 -3
- package/src/components/VvIcon/index.ts +3 -3
- package/src/components/VvInputText/VvInputClearAction.ts +2 -2
- package/src/components/VvInputText/VvInputPasswordAction.ts +3 -4
- package/src/components/VvInputText/VvInputStepAction.ts +3 -2
- package/src/components/VvInputText/VvInputText.vue +130 -37
- package/src/components/VvInputText/VvInputTextActions.ts +5 -8
- package/src/components/VvInputText/index.ts +62 -1
- package/src/components/VvProgress/VvProgress.vue +2 -2
- package/src/components/VvProgress/index.ts +1 -1
- package/src/components/VvRadio/VvRadio.vue +3 -7
- package/src/components/VvRadio/index.ts +11 -7
- package/src/components/VvRadioGroup/VvRadioGroup.vue +7 -10
- package/src/components/VvRadioGroup/index.ts +1 -1
- package/src/components/VvSelect/VvSelect.vue +4 -4
- package/src/components/VvSelect/index.ts +1 -1
- package/src/components/VvTextarea/VvTextarea.vue +6 -6
- package/src/components/VvTextarea/index.ts +1 -1
- package/src/components/VvTooltip/VvTooltip.vue +2 -2
- package/src/components/VvTooltip/index.ts +3 -3
- package/src/composables/dropdown/useInjectDropdown.ts +2 -2
- package/src/composables/dropdown/useProvideDropdown.ts +2 -2
- package/src/composables/group/useInjectedGroupState.ts +1 -1
- package/src/composables/group/useProvideGroupState.ts +1 -1
- package/src/composables/useComponentIcon.ts +1 -1
- package/src/composables/useDebouncedInput.ts +10 -3
- package/src/composables/useDefaults.ts +89 -0
- package/src/composables/useModifiers.ts +4 -2
- package/src/composables/useOptions.ts +1 -1
- package/src/composables/useVolver.ts +2 -2
- package/src/directives/index.ts +3 -1
- package/src/directives/v-contextmenu.ts +40 -0
- package/src/directives/v-tooltip.ts +2 -2
- package/src/icons.ts +1 -1
- package/src/index.ts +0 -2
- package/src/props/index.ts +20 -10
- package/src/resolvers/unplugin.ts +15 -1
- package/src/stories/Accordion/Accordion.stories.mdx +8 -2
- package/src/stories/Accordion/Accordion.test.ts +21 -15
- package/src/stories/Accordion/AccordionSlots.stories.mdx +8 -8
- package/src/stories/AccordionGroup/AccordionGroup.stories.mdx +17 -1
- package/src/stories/AccordionGroup/AccordionGroup.test.ts +18 -12
- package/src/stories/AccordionGroup/AccordionGroupSlots.stories.mdx +1 -1
- package/src/stories/Dropdown/DropdownContextmenuDirective.stories.mdx +41 -0
- package/src/stories/InputText/InputText.settings.ts +53 -0
- package/src/stories/InputText/InputText.stories.mdx +40 -0
- package/src/stories/InputText/InputText.test.ts +5 -2
- package/src/stories/Tooltip/TooltipDirective.stories.mdx +1 -1
- package/src/stories/argTypes.ts +12 -2
- package/src/types/group.d.ts +5 -0
package/dist/index.umd.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(C,J){typeof exports=="object"&&typeof module<"u"?J(exports,require("@iconify/vue"),require("vue"),require("nanoid"),require("@vueuse/core"),require("@floating-ui/vue"),require("mitt")):typeof define=="function"&&define.amd?define(["exports","@iconify/vue","vue","nanoid","@vueuse/core","@floating-ui/vue","mitt"],J):(C=typeof globalThis<"u"?globalThis:C||self,J(C.volver={},C.vue,C.vue$1,C.nanoid,C.core,C.vue$2,C.mitt))})(this,function(C,J,e,Je,R,q,Et){"use strict";const Pt="vv";var X=(o=>(o.left="left",o.right="right",o.top="top",o.bottom="bottom",o))(X||{}),Xe=(o=>(o.topStart="top-start",o.topEnd="top-end",o.bottomStart="bottom-start",o.bottomEnd="bottom-end",o.leftStart="left-start",o.leftEnd="left-end",o.rightStart="right-start",o.rightEnd="right-end",o))(Xe||{}),ye=(o=>(o.before="before",o.after="after",o))(ye||{}),He=(o=>(o.button="button",o.submit="submit",o.reset="reset",o))(He||{}),re=(o=>(o.nuxtLink="nuxt-link",o.routerLink="router-link",o.a="a",o.button="button",o))(re||{}),Qe=(o=>(o.button="button",o.link="link",o.menuitem="menuitem",o))(Qe||{}),ke=(o=>(o.listbox="listbox",o.menu="menu",o))(ke||{}),Me=(o=>(o.option="option",o.presentation="presentation",o))(Me||{}),Ze=(o=>(o._blank="_blank",o._self="_self",o._parent="_parent",o._top="_top",o))(Ze||{});const $e=Symbol.for("volver"),et=Symbol.for("buttonGroup"),tt=Symbol.for("radioGroup"),ot=Symbol.for("checkGroup"),nt=Symbol.for("accordionGroup"),lt=Symbol.for("dropdownTrigger"),rt=Symbol.for("dropdownItem"),at=Symbol.for("dropdownAction");function st(o,n,t){const r=t||o.name;if(!r)return o;const l=n==null?void 0:n[r],i=o.props;return!l||!i?{...o,name:r}:{...o,name:r,props:Object.keys(i).reduce((c,d)=>{if(!(d in l))return c[d]=i[d],c;const u=l[d];return typeof i[d]=="function"||Array.isArray(i[d])?(c[d]={type:i[d],default:u},c):(c[d]={...i[d],default:u},c)},{})}}class wt{constructor({fetchWithCredentials:n,fetchOptions:t,provider:r,nuxt:l,iconsCollections:i}={}){this.fetchOptions={},this.nuxt=!1,this.iconsCollections=[],this.provider=Pt,t&&(this.fetchOptions=t),n&&(this.fetchOptions={...this.fetchOptions,credentials:"include"}),r&&(this.provider=r),l&&(this.nuxt=l),i&&Array.isArray(i)&&i.forEach(c=>{this.addCollection(c,this.provider)})}addCollection(n,t){return this.iconsCollections=[...this.iconsCollections,n],J.addCollection(n,t??this.provider)}addIcon(n,t){return J.addIcon(n,t)}addAPIProvider(n,t){return J.addAPIProvider(n,t)}fetchIcon(n,t={cache:"force-cache"}){return new Promise((r,l)=>{fetch(n,{...this.fetchOptions,...t}).catch(i=>l(i)).then(i=>i==null?void 0:i.text()).then(i=>r(i))})}}const Nt={install(o,n){const t=new wt(n);o.config.globalProperties.$vv=t,n.components&&Object.entries(n.components).forEach(([r,l])=>{o.component(r,st(l,n.defaults))}),n.aliases&&Object.entries(n.aliases).forEach(([r,l])=>{o.component(r,st(l,n.defaults,r))}),n.directives&&Object.entries(n.directives).forEach(([r,l])=>{o.directive(r,l)}),o.provide($e,t)}};function ie(o,n,t){return t?Pe(o,t)===Pe(n,t):ze(o,n)}function ze(o,n){if(o===n)return!0;if(o&&n&&typeof o=="object"&&typeof n=="object"){const t=Array.isArray(o),r=Array.isArray(n);let l,i,c;if(t&&r){if(i=o.length,i!=n.length)return!1;for(l=i;l--!==0;)if(!ze(o[l],n[l]))return!1;return!0}if(t!=r)return!1;const d=o instanceof Date,u=n instanceof Date;if(d!=u)return!1;if(d&&u)return o.getTime()==n.getTime();const f=o instanceof RegExp,a=n instanceof RegExp;if(f!=a)return!1;if(f&&a)return o.toString()==n.toString();const s=Object.keys(o);if(i=s.length,i!==Object.keys(n).length)return!1;for(l=i;l--!==0;)if(!Object.prototype.hasOwnProperty.call(n,s[l]))return!1;for(l=i;l--!==0;)if(c=s[l],!ze(o[c],n[c]))return!1;return!0}return o!==o&&n!==n}function Pe(o,n){if(o&&Object.keys(o).length&&n){if(n.indexOf(".")===-1)return o[n];{const t=n.split(".");let r=o;for(let l=0,i=t.length;l<i;++l){if(o==null)return null;r=r[t[l]]}return r}}else return null}function At(o,n){let t=-1;if(n){for(let r=0;r<n.length;r++)if(ie(n[r],o)){t=r;break}}return t}function ce(o,n){if(o!=null&&n&&n.length){for(const t of n)if(ie(o,t))return!0}return!1}function ee(o){return(n=>n==null||n===""||Array.isArray(n)&&n.length===0||!(n instanceof Date)&&typeof n=="object"&&Object.keys(n).length===0)(e.unref(o))}function Dt(o,n){const t=At(o,n);return t>-1?n.filter((r,l)=>l!==t):n}function It(o){return typeof o=="string"||o instanceof String}function we(o){const n=e.inject(o,void 0),t=e.computed(()=>!ee(n));function r(l,i,c){if(n!=null&&n.value){const u=e.unref(n.value)[l];return e.computed({get(){return u==null?void 0:u.value},set(f){u.value=f}})}const d=e.toRef(i,l);return e.computed({get(){return d.value},set(u){c&&c(`update:${l}`,u)}})}return{group:n,isInGroup:t,getGroupOrLocalRef:r}}const Ot={name:String,title:String,content:String,modelValue:{type:Boolean,default:void 0},modifiers:[String,Array],disabled:Boolean},Rt=["update:modelValue"];function vt(o,n){const{group:t,isInGroup:r,getGroupOrLocalRef:l}=we(nt),{title:i,content:c}=e.toRefs(o),d=l("modelValue",o,n),u=l("disabled",o),f=l("collapse",o),a=l("modifiers",o);return{modelValue:d,disabled:u,isInGroup:r,group:t,collapse:f,modifiers:a,title:i,content:c}}function x(o,n,t){return e.computed(()=>{const r={[o]:!0},l=typeof(n==null?void 0:n.value)=="string"?n.value.split(" "):n==null?void 0:n.value;return l&&Array.isArray(l)&&l.forEach(i=>{r[`${o}--${i}`]=!0}),t&&Object.keys(t.value).forEach(i=>{r[`${o}--${i}`]=e.unref(t.value[i])}),r})}const Tt=["id","open"],Lt=["aria-controls","aria-expanded"],xt=["aria-hidden"],Ht={name:"VvAccordion"},it=e.defineComponent({...Ht,props:Ot,emits:Rt,setup(o,{emit:n}){const t=o,r=e.useAttrs(),l=e.computed(()=>t.name||(r==null?void 0:r.id)||Je.nanoid()),{modifiers:i,title:c,content:d,disabled:u,collapse:f,modelValue:a,isInGroup:s}=vt(t,n),m=e.ref(!1),g=e.computed({get:()=>s.value?f.value&&Array.isArray(a.value)?a.value.includes(l.value):a.value===l.value:a.value===void 0?m.value:a.value,set:h=>{if(s.value){if(f.value&&Array.isArray(a.value)){if(h){a.value.push(l.value);return}a.value=a.value.filter(p=>p!==l.value);return}a.value=h?l.value:null;return}if(a.value===void 0&&typeof h=="boolean"){m.value=h;return}a.value=h}}),_=x("vv-accordion",i,e.computed(()=>({disabled:u.value}))),S=R.useToggle(g);return(h,p)=>(e.openBlock(),e.createElementBlock("details",{id:e.unref(l),class:e.normalizeClass(e.unref(_)),open:e.unref(g),onClick:p[0]||(p[0]=e.withModifiers(B=>e.unref(S)(),["prevent"]))},[e.createElementVNode("summary",{"aria-controls":e.unref(l),"aria-expanded":e.unref(g),class:"vv-collapse__summary"},[e.renderSlot(h.$slots,"summary",e.normalizeProps(e.guardReactiveProps({open:e.unref(g)})),()=>[e.createTextVNode(e.toDisplayString(e.unref(c)),1)])],8,Lt),e.createElementVNode("div",{"aria-hidden":!e.unref(g),class:"vv-collapse__content"},[e.renderSlot(h.$slots,"details",e.normalizeProps(e.guardReactiveProps({open:e.unref(g)})),()=>[e.createTextVNode(e.toDisplayString(e.unref(d)),1)])],8,xt)],10,Tt))}}),Mt={modelValue:[String,Array],items:{type:Array,default:()=>[]},collapse:Boolean,modifiers:[String,Array],itemModifiers:{type:[String,Array],default:""},disabled:Boolean},zt=["update:modelValue"];function Ne(o){if(Object.keys(o).some(n=>n!=="key"&&!e.isRef(o[n])))throw Error("One or more groupState props aren't ref.");e.provide(o.key,e.computed(()=>o))}const jt={name:"VvAccordionGroup"},Ft=e.defineComponent({...jt,props:Mt,emits:zt,setup(o,{emit:n}){const t=o,{disabled:r,collapse:l,modifiers:i,itemModifiers:c,items:d}=e.toRefs(t);e.watchEffect(()=>{typeof t.modelValue=="string"&&l.value&&console.warn("[VvAccordionGroup]: modelValue is a string but collapse is true.")});const u=e.ref([]),f=e.computed({get:()=>{var s;return t.modelValue!==void 0?l.value?t.modelValue:Array.isArray(t.modelValue)?t.modelValue[0]:t.modelValue:l.value?u.value:(s=u.value)==null?void 0:s[0]},set:s=>{if(t.modelValue!==void 0)return(Array.isArray(t.modelValue)||l.value)&&!Array.isArray(s)&&(s=[s]),n("update:modelValue",s);u.value=Array.isArray(s)?s:[s]}});Ne({key:nt,modelValue:f,disabled:r,collapse:l,modifiers:c});const a=x("vv-accordion-group",i,e.computed(()=>({disabled:r.value})));return(s,m)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(e.unref(a))},[e.renderSlot(s.$slots,"default",{},()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(d),g=>(e.openBlock(),e.createBlock(it,e.mergeProps({key:g.title},{name:g.name,title:g.title,content:g.content}),{header:e.withCtx(_=>[e.renderSlot(s.$slots,`header::${g.name}`,e.normalizeProps(e.guardReactiveProps(_)))]),details:e.withCtx(_=>[e.renderSlot(s.$slots,`details::${g.name}`,e.normalizeProps(e.guardReactiveProps(_)))]),_:2},1040))),128))])],2))}}),Gt={to:{type:[String,Object]},href:String,target:{type:String,validator:o=>Object.values(Ze).includes(o)},rel:{type:String,default:"noopener noreferrer"}},_e={valid:Boolean,validLabel:[String,Array]},Se={invalid:Boolean,invalidLabel:[String,Array]},Ae={loading:Boolean,loadingLabel:{type:String,default:"Loading..."}},de={disabled:Boolean},Wt={selected:Boolean},Ut={active:Boolean},Kt={pressed:Boolean},he={label:[String,Number]},Ve={readonly:Boolean},Q={modifiers:[String,Array]},Be={hintLabel:{type:String,default:""}},je={options:{type:Array,default:()=>[]},labelKey:{type:[String,Function],default:"label"},valueKey:{type:[String,Function],default:"value"},disabledKey:{type:[String,Function],default:"disabled"}},qt={count:{type:[Boolean,String],default:!1,validator:o=>[!0,!1,"limit","countdown"].includes(o)}},Yt={debounce:[Number,String]},Fe={icon:{type:[String,Object]},iconPosition:{type:String,default:ye.before,validation:o=>Object.values(ye).includes(o)}},De={tabindex:{type:[String,Number],default:0}},Ge={floating:Boolean},Ce={unselectable:{type:Boolean,default:!0}},Ie={id:[String,Number]},We={placement:{type:String,default:X.bottom,validator:o=>Object.values(X).includes(o)||Object.values(Xe).includes(o)},transitionName:{type:String},offset:{type:[Number,String,Object],default:0},shift:{type:[Boolean,Object],default:!1},flip:{type:[Boolean,Object],default:!0},size:{type:[Boolean,Object],default:()=>({padding:10})},autoPlacement:{type:[Boolean,Object],default:!1},arrow:{type:Boolean,default:!1},autoClose:{type:Boolean,default:!0},autofocusFirst:{type:Boolean,default:!0},triggerWidth:{type:Boolean}},Oe={...Ie,name:{type:String,required:!0}},ct={autofocus:Boolean},dt={autocomplete:{type:String,default:"off"}},ut={...Oe,...ct,...dt,...De,...de,...Ve,..._e,...Se,...Be,...Ae,...Q,...qt,...Yt,...Fe,...Ge,...he,minlength:Number,maxlength:Number,placeholder:String,required:Boolean},ft={...Oe,...De,..._e,...Se,...Be,...de,...Ve,...Q,...he,value:[String,Number,Boolean],modelValue:[Object,Number,Boolean,String]},pt={..._e,...Se,...je,...Be,...de,...Ve,...Q,...he,modelValue:[String,Array],name:{type:String,required:!0},vertical:Boolean},mt={...de,...he,...Kt,...Ut,...Gt,type:{type:String,default:He.button,validator:o=>Object.values(He).includes(o)}},Jt={...Q,value:[String,Number]},Xt={name:"VvBadge"},bt=e.defineComponent({...Xt,props:Jt,setup(o){const n=o,{modifiers:t}=e.toRefs(n),r=x("vv-badge",t);return(l,i)=>(e.openBlock(),e.createElementBlock("span",{class:e.normalizeClass(e.unref(r)),role:"status"},[e.renderSlot(l.$slots,"default",{},()=>[e.createTextVNode(e.toDisplayString(l.value),1)])],2))}}),Qt={...Q,routes:Array},Zt={class:"vv-breadcrumb__list"},$t=["content"],eo={name:"VvBreadcrumb"},to=e.defineComponent({...eo,props:Qt,setup(o){const n=o,{modifiers:t}=e.toRefs(n),r=x("vv-breadcrumb",t);return(l,i)=>(e.openBlock(),e.createElementBlock("nav",{class:e.normalizeClass(e.unref(r)),"aria-label":"breadcrumbs"},[e.createElementVNode("ol",Zt,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(l.routes,(c,d)=>{var u,f,a,s;return e.openBlock(),e.createElementBlock("li",{key:`${c.label}-${d}`,class:e.normalizeClass({"vv-breadcrumb__item":d<Number((u=l.routes)==null?void 0:u.length)-1,"vv-breadcrumb__item-active":d===Number((f=l.routes)==null?void 0:f.length)-1}),itemprop:"itemListElement",itemtype:"https://schema.org/ListItem",itemscope:""},[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(c.to?"router-link":c.href?"a":"span"),e.mergeProps(c,{class:{"vv-breadcrumb__link":d<Number((a=l.routes)==null?void 0:a.length)-1},"aria-current":d===Number((s=l.routes)==null?void 0:s.length)-1?"page":void 0,itemprop:"item"}),{default:e.withCtx(()=>[e.renderSlot(l.$slots,"label",e.normalizeProps(e.guardReactiveProps({route:c,index:d})),()=>[e.createTextVNode(e.toDisplayString(c.label),1)])]),_:2},1040,["class","aria-current"])),e.createElementVNode("meta",{itemprop:"position",content:`${d+1}`},null,8,$t)],2)}),128))])],2))}}),oo={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 ht(){return e.inject($e)}const no={name:"VvIcon"},H=e.defineComponent({...no,props:oo,setup(o){const n=o,t=e.ref(!0),r=ht(),{modifiers:l}=e.toRefs(n),i=x("vv-icon",l),c=e.computed(()=>n.provider||(r==null?void 0:r.provider)),d=e.computed(()=>{const a=n.name??"",s=`@${c.value}:${n.prefix}:${n.name}`;return J.iconExists(a)?a:J.iconExists(s)?s:(r==null?void 0:r.iconsCollections.find(m=>{const g=`@${c.value}:${m.prefix}:${a}`;if(J.iconExists(g))return g}))||a});function u(a){let s=null;if(typeof window>"u"){const{JSDOM:S}=require("jsdom");s=new S().window}return(s?new s.DOMParser:new window.DOMParser).parseFromString(a,"text/html").querySelector("svg")}function f(a){const s=u(a),m=(s==null?void 0:s.innerHTML.trim())||"";s&&m&&J.addIcon(`@${c.value}:${n.prefix}:${n.name}`,{body:m,height:s.viewBox.baseVal.height,width:s.viewBox.baseVal.width})}return r&&(n.src&&!J.iconExists(`@${c.value}:${n.prefix}:${n.name}`)?(t.value=!1,r.fetchIcon(n.src).then(a=>{a&&(f(a),t.value=!0)}).catch(a=>{throw new Error(`During fetch icon: ${a==null?void 0:a.message}`)})):n.svg&&f(n.svg)),(a,s)=>e.unref(t)?(e.openBlock(),e.createBlock(e.unref(J.Icon),e.mergeProps({key:0,class:e.unref(i)},{inline:a.inline,width:a.width,height:a.height,horizontalFlip:a.horizontalFlip,verticalFlip:a.verticalFlip,flip:a.flip,rotate:a.rotate,color:a.color,onLoad:a.onLoad,icon:e.unref(d)}),null,16,["class"])):e.createCommentVNode("",!0)}}),lo=["click","mouseover","mouseleave"],ro=mt;function ao(){return e.inject(lt,{})}function so(){return e.inject(rt,{})}function io(){return e.inject(at,{})}const co={name:"VvAction"},uo=e.defineComponent({...co,props:ro,emits:lo,setup(o,{expose:n,emit:t}){const r=o,l=ht(),i=e.ref(null);n({$el:i});const{reference:c,bus:d,aria:u,expanded:f}=ao();e.watch(()=>i.value,p=>{c&&(c.value=p)});const a=e.computed(()=>r.pressed||(f==null?void 0:f.value)),{role:s}=io(),m=e.computed(()=>{switch(!0){case r.disabled:return re.button;case r.to!==void 0:return l!=null&&l.nuxt?re.nuxtLink:re.routerLink;case r.href!==void 0:return re.a;default:return re.button}}),g=e.computed(()=>{const p={...u==null?void 0:u.value,"aria-pressed":a.value?!0:void 0,role:s};switch(m.value){case re.a:return{...p,href:r.href,target:r.target,rel:r.rel};case re.routerLink:case re.nuxtLink:return{...p,to:r.to,target:r.target};default:return{...p,type:r.type,disabled:r.disabled}}}),_=p=>{if(r.disabled){p.preventDefault();return}d==null||d.emit("click",p),t("click",p)},S=p=>{d==null||d.emit("mouseover",p),t("mouseover",p)},h=p=>{d==null||d.emit("mouseleave",p),t("mouseleave",p)};return(p,B)=>(e.openBlock(),e.createBlock(e.resolveDynamicComponent(e.unref(m)),e.mergeProps(e.unref(g),{ref_key:"element",ref:i,class:{active:p.active,pressed:e.unref(a),disabled:p.disabled},onClickPassive:_,onMouseoverPassive:S,onMouseleavePassive:h}),{default:e.withCtx(()=>[e.renderSlot(p.$slots,"default",{},()=>[e.createTextVNode(e.toDisplayString(p.label),1)])]),_:3},16,["class"]))}}),fo=["update:modelValue"],po={...mt,...Ie,...Q,...Ce,...Ae,icon:[String,Object],iconPosition:{type:String,default:X.left,validator:o=>Object.values(X).includes(o)},loadingIcon:{type:String,default:"eos-icons:bubble-loading"},toggle:{type:Boolean,default:!1},modelValue:String};function mo(o,n){var p;const{group:t,isInGroup:r,getGroupOrLocalRef:l}=we(et),{id:i,iconPosition:c,icon:d,label:u,pressed:f,modifiers:a}=e.toRefs(o),s=l("modelValue",o,n),m=l("disabled",o),g=l("toggle",o),_=l("unselectable",o),S=((p=t==null?void 0:t.value)==null?void 0:p.multiple)??e.ref(!1),h=e.computed(()=>{var N;const B=a!=null&&a.value?Array.isArray(a.value)?a.value:a.value.split(" "):[],w=(N=t==null?void 0:t.value.itemModifiers)!=null&&N.value?Array.isArray(t.value.itemModifiers.value)?t.value.itemModifiers.value:t.value.itemModifiers.value.split(" "):[];return[...B,...w]});return{group:t,isInGroup:r,modelValue:s,disabled:m,toggle:g,unselectable:_,multiple:S,id:i,modifiers:h,pressed:f,iconPosition:c,icon:d,label:u}}const ue=o=>e.computed(()=>String((o==null?void 0:o.value)||Je.nanoid())),bo={key:1,class:"vv-button__label"},ho={key:1,class:"vv-button__label"},go={name:"VvButton"},yo=e.defineComponent({...go,props:po,emits:fo,setup(o,{expose:n,emit:t}){const r=o,l=e.useAttrs(),i=e.useSlots(),{id:c,modifiers:d,iconPosition:u,icon:f,label:a,modelValue:s,disabled:m,toggle:g,unselectable:_}=mo(r,t),S=ue(c),h=e.computed(()=>(l==null?void 0:l.name)||S.value),p=e.ref(null),B=e.computed(()=>{var V;return(V=p.value)==null?void 0:V.$el});n({$el:B});const w=e.computed(()=>g.value?Array.isArray(s.value)?ce(h.value,s.value):ie(h.value,s.value):r.pressed),N=x("vv-button",d,e.computed(()=>({reverse:[X.right,X.bottom].includes(u.value),column:[X.top,X.bottom].includes(u.value),"icon-only":Boolean((f==null?void 0:f.value)&&!(a!=null&&a.value)&&!i.default)}))),A=e.computed(()=>typeof(f==null?void 0:f.value)=="string"?{name:f==null?void 0:f.value}:f==null?void 0:f.value),I=()=>{if(g.value){if(Array.isArray(s.value)){if(ce(h.value,s.value)){_.value&&(s.value=s.value.filter(V=>V!==h.value));return}s.value.push(h.value);return}if(ie(h.value,s.value)&&_.value){s.value=void 0;return}s.value=h.value}};return(V,W)=>(e.openBlock(),e.createBlock(uo,e.mergeProps({disabled:e.unref(m),pressed:e.unref(w),active:V.active,type:V.type,to:V.to,href:V.href,target:V.target,rel:V.rel},{id:e.unref(S),ref_key:"element",ref:p,class:e.unref(N),onClick:I}),{default:e.withCtx(()=>[e.renderSlot(V.$slots,"default",{},()=>[V.loading?e.renderSlot(V.$slots,"loading",{key:0},()=>[V.loadingIcon?(e.openBlock(),e.createBlock(H,{key:0,class:"vv-button__loading-icon",name:V.loadingIcon},null,8,["name"])):e.createCommentVNode("",!0),V.loadingLabel?(e.openBlock(),e.createElementBlock("span",bo,e.toDisplayString(V.loadingLabel),1)):e.createCommentVNode("",!0)]):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[e.renderSlot(V.$slots,"before"),e.unref(f)?(e.openBlock(),e.createBlock(H,e.mergeProps({key:0,class:"vv-button__icon"},e.unref(A)),null,16)):e.createCommentVNode("",!0),e.unref(a)?(e.openBlock(),e.createElementBlock("span",ho,[e.renderSlot(V.$slots,"label",{},()=>[e.createTextVNode(e.toDisplayString(e.unref(a)),1)])])):e.createCommentVNode("",!0),e.renderSlot(V.$slots,"after")],64))])]),_:3},16,["id","class"]))}}),ko={...Q,...de,...Ce,itemModifiers:{type:[String,Array],default:void 0},toggle:{type:Boolean,default:!1},multiple:{type:Boolean,default:!1},modelValue:{type:[String,Array],default:void 0}},_o=["update:modelValue"],So={name:"VvButtonGroup"},Vo=e.defineComponent({...So,props:ko,emits:_o,setup(o,{emit:n}){const t=o,{disabled:r,toggle:l,modifiers:i,multiple:c,unselectable:d,itemModifiers:u}=e.toRefs(t);e.watchEffect(()=>{typeof t.modelValue=="string"&&c.value&&console.warn("[VvButtonGroup]: modelValue is a string but multiple is true.")});const f=e.computed({get:()=>c.value?t.modelValue:Array.isArray(t.modelValue)?t.modelValue[0]:t.modelValue,set:s=>(s!==void 0&&(Array.isArray(t.modelValue)||c.value)&&!Array.isArray(s)&&(s=[s]),n("update:modelValue",s))});Ne({key:et,modelValue:f,disabled:r,toggle:l,multiple:c,unselectable:d,itemModifiers:u});const a=x("vv-button-group",i);return(s,m)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(e.unref(a)),role:"group"},[e.renderSlot(s.$slots,"default")],2))}}),Bo={title:String,modifiers:[String,Array]},Co={key:0,class:"vv-card__header"},Eo={key:1,class:"vv-card__content"},Po={key:2,class:"vv-card__footer"},wo={name:"VvCard"},No=e.defineComponent({...wo,props:Bo,setup(o){const n=o,{modifiers:t}=e.toRefs(n),r=x("vv-card",t);return(l,i)=>(e.openBlock(),e.createElementBlock("article",{class:e.normalizeClass(e.unref(r))},[l.$slots.header||l.title?(e.openBlock(),e.createElementBlock("header",Co,[e.renderSlot(l.$slots,"header",{},()=>[e.createTextVNode(e.toDisplayString(l.title),1)])])):e.createCommentVNode("",!0),e.renderSlot(l.$slots,"default"),l.$slots.content?(e.openBlock(),e.createElementBlock("div",Eo,[e.renderSlot(l.$slots,"content")])):e.createCommentVNode("",!0),l.$slots.footer?(e.openBlock(),e.createElementBlock("footer",Po,[e.renderSlot(l.$slots,"footer")])):e.createCommentVNode("",!0)],2))}}),Ao={...ft,...Q,indeterminate:Boolean,uncheckedValue:[String,Number,Boolean],switch:Boolean},Do=["click","update:modelValue","change","blur"];function Io(o,n){const{group:t,isInGroup:r,getGroupOrLocalRef:l}=we(ot),{id:i,switch:c,indeterminate:d}=e.toRefs(o),u=l("modelValue",o,n),f=l("readonly",o),a=l("disabled",o),s=l("valid",o),m=l("invalid",o);return{id:i,propsSwitch:c,indeterminate:d,group:t,isInGroup:r,modelValue:u,readonly:f,disabled:a,valid:s,invalid:m}}function Re(o){return Array.isArray(o)?o.filter(n=>It(n)).join(" "):o}function fe(o,n){const{invalid:t,valid:r,hint:l,loading:i}=n,{hintLabel:c,modelValue:d,valid:u,validLabel:f,invalid:a,invalidLabel:s,...m}=e.toRefs(o),g=Pe(m,"loading"),_=Pe(m,"loadingLabel"),S=e.computed(()=>a.value?!!(a.value&&t||s!=null&&s.value&&Array.isArray(s.value)&&s.value.length>0||s!=null&&s.value&&!ee(s)):!1),h=e.computed(()=>!!(c&&c.value||l)),p=e.computed(()=>!!(f&&f.value||r)),B=e.computed(()=>!!(g!=null&&g.value&&i||g!=null&&g.value&&(_!=null&&_.value))),w=e.computed(()=>h.value||p.value||S.value||B.value);return{hasInvalid:S,hasHint:h,hasValid:p,hasLoading:B,HintSlot:{name:"HintSlot",props:{params:{type:Object,default:()=>({})}},setup(N){const A=e.computed(()=>{const I=R.toReactive({hintLabel:c,modelValue:d,valid:u,validLabel:f,invalid:a,invalidLabel:s,loading:g,loadingLabel:_,...N.params});return a!=null&&a.value?(t==null?void 0:t(I))||Re(s==null?void 0:s.value)||(c==null?void 0:c.value):u!=null&&u.value?(r==null?void 0:r(I))||Re(f==null?void 0:f.value)||(c==null?void 0:c.value):g!=null&&g.value?(i==null?void 0:i(I))||Re(_==null?void 0:_.value)||(c==null?void 0:c.value):(l==null?void 0:l(I))||Re(c==null?void 0:c.value)||(c==null?void 0:c.value)});return{isVisible:w,hasInvalid:S,hasValid:p,hintContent:A}},render(){if(this.isVisible)return e.h("small",{role:this.hasInvalid?"alert":this.hasValid?"status":void 0},this.hintContent)}}}}const Oo=["for"],Ro=["id","name","disabled","value","tabindex","aria-invalid"],vo={name:"VvCheckbox"},gt=e.defineComponent({...vo,props:Ao,emits:Do,setup(o,{emit:n}){const t=o,r=e.useSlots(),{id:l,disabled:i,readonly:c,valid:d,invalid:u,propsSwitch:f,modelValue:a,indeterminate:s,isInGroup:m}=Io(t,n),g=ue(l),_=e.computed(()=>p.value?-1:t.tabindex),S=e.ref(),h=e.computed(()=>t.uncheckedValue!==void 0&&!m.value),p=e.computed(()=>i.value||c.value),B=e.computed(()=>{if(u.value===!0)return!0;if(d.value===!0)return!1}),w=e.computed(()=>h.value?a.value===t.value:Array.isArray(a.value)?ce(t.value,a.value):ie(t.value,a.value)),N=e.computed(()=>!!(s.value||!w.value&&h.value&&t.uncheckedValue!==a.value)),A=e.computed(()=>{if(!h.value)return["string","number","boolean"].includes(typeof t.value)?t.value:!0}),I=e.computed({get(){return w.value},set(O){if(h.value)a.value=O?t.value:t.uncheckedValue;else if(Array.isArray(a.value)||m.value){const T=new Set(Array.isArray(a.value)?a.value:a.value!==void 0?[a.value]:[]);O?T.add(t.value):T.delete(t.value),a.value=[...T]}else a.value=O?t.value:void 0;n("change",O)}}),{modifiers:V}=e.toRefs(t),W=x("vv-checkbox",V,e.computed(()=>({switch:f.value,valid:d.value,invalid:u.value,disabled:i.value,readonly:c.value,indeterminate:s.value})));e.watchEffect(()=>{h.value&&Array.isArray(a.value)&&console.warn("[VvCheckbox] The model value is an array but the component is in binary mode.")}),e.watch(()=>N.value,O=>{O?S.value.indeterminate=!0:S.value.indeterminate=!1}),e.onMounted(()=>{N.value&&(S.value.indeterminate=!0)});const{HintSlot:P}=fe(t,r);return(O,T)=>(e.openBlock(),e.createElementBlock("label",{class:e.normalizeClass(e.unref(W)),for:e.unref(g)},[e.withDirectives(e.createElementVNode("input",{id:e.unref(g),ref_key:"input",ref:S,"onUpdate:modelValue":T[0]||(T[0]=Y=>e.isRef(I)?I.value=Y:null),type:"checkbox",class:"vv-checkbox__input",name:O.name,disabled:e.unref(p),value:e.unref(A),tabindex:e.unref(_),"aria-invalid":e.unref(B)},null,8,Ro),[[e.vModelCheckbox,e.unref(I)]]),e.renderSlot(O.$slots,"default",{value:e.unref(a)},()=>[e.createTextVNode(e.toDisplayString(O.label),1)]),e.createVNode(e.unref(P),{class:"vv-checkbox__hint",params:{value:e.unref(a)}},null,8,["params"])],10,Oo))}}),To=pt,Lo=["update:modelValue","change"];function ve(o){const{options:n,labelKey:t,valueKey:r,disabledKey:l}=e.toRefs(o);return{options:n,getOptionLabel:u=>typeof u!="object"&&u!==null?u:typeof t.value=="function"?t.value(u):u[t.value],getOptionValue:u=>typeof u!="object"&&u!==null?u:typeof r.value=="function"?r.value(u):u[r.value],getOptionDisabled:u=>typeof u!="object"&&u!==null?!1:typeof l.value=="function"?l.value(u):u[l.value]}}const xo=["textContent"],Ho={class:"vv-checkbox-group__wrapper"},Mo={name:"VvCheckboxGroup"},zo=e.defineComponent({...Mo,props:To,emits:Lo,setup(o,{emit:n}){const t=o,r=e.useSlots(),l=R.useVModel(t,"modelValue",n),{disabled:i,readonly:c,vertical:d,valid:u,invalid:f,modifiers:a}=e.toRefs(t);Ne({key:ot,modelValue:l,disabled:i,readonly:c,valid:u,invalid:f});const{getOptionLabel:s,getOptionValue:m}=ve(t),g=x("vv-checkbox-group",a,e.computed(()=>({disabled:i.value,readonly:c.value,horizontal:!d.value,valid:u.value,invalid:f.value}))),_=(h,p)=>({id:`${t.name}_opt${p}`,name:t.name,label:s(h),value:m(h)}),{HintSlot:S}=fe(t,r);return(h,p)=>(e.openBlock(),e.createElementBlock("fieldset",{class:e.normalizeClass(e.unref(g))},[h.label?(e.openBlock(),e.createElementBlock("legend",{key:0,textContent:e.toDisplayString(h.label)},null,8,xo)):e.createCommentVNode("",!0),e.createElementVNode("div",Ho,[h.options.length>0?(e.openBlock(!0),e.createElementBlock(e.Fragment,{key:0},e.renderList(h.options,(B,w)=>(e.openBlock(),e.createBlock(gt,e.mergeProps({key:w},_(B,w)),null,16))),128)):e.renderSlot(h.$slots,"default",{key:1})]),e.createVNode(e.unref(S),{class:"vv-checkbox-group__hint"})],2))}}),jo=["update:modelValue","change:search","focus","blur"],Fo={...Oe,...De,..._e,...Se,...Be,...Ae,...de,...Ve,...Q,...je,...Fe,...Ge,...Ce,...We,...he,modelValue:{type:[String,Number,Boolean,Object,Array],default:void 0},noResultsLabel:{type:String,default:"No results"},noOptionsLabel:{type:String,default:"No options available"},selectedHintLabel:{type:String,default:"Selected"},deselectActionLabel:{type:String,default:"Deselect"},selectHintLabel:{type:String,default:"Press enter to select"},deselectHintLabel:{type:String,default:"Press enter to remove"},placeholder:String,searchable:Boolean,searchPlaceholder:{type:String,default:"Search..."},debounceSearch:{type:[Number,String],default:0},multiple:Boolean,maxValues:[Number,String],separator:{type:String,default:", "},native:Boolean,badges:Boolean,badgeModifiers:{type:[String,Array],default:"action sm"},triggerWidth:{...We.triggerWidth,default:!0},dropdownModifiers:{type:[String,Array]},autoOpen:Boolean,autoClose:Boolean},Go={...Ie,...Q,...We,modelValue:{type:Boolean,default:void 0},reference:{type:Object,default:null},role:{type:String,default:ke.menu,validator:o=>Object.values(ke).includes(o)}};function Wo({reference:o,id:n,expanded:t,aria:r}){const l=Et(),i=e.defineComponent({name:"VvDropdownTriggerProvider",provide(){return{[lt]:{reference:o,id:n,expanded:t,aria:r,bus:l}}},setup(){return{}},render(){var c,d;return e.h(e.Fragment,{},(d=(c=this.$slots).default)==null?void 0:d.call(c))}});return{bus:l,component:i}}function Uo({role:o,expanded:n}){const t=e.computed(()=>o.value===ke.listbox?Me.option:Me.presentation);return e.provide(rt,{role:t,expanded:n}),{itemRole:t}}function Ko({expanded:o}){e.provide(at,{role:Qe.menuitem,expanded:o})}const qo=["id","tabindex","role","aria-labelledby"],Yo={name:"VvDropdown",inheritAttrs:!1},Ue=e.defineComponent({...Yo,props:Go,emits:["update:modelValue"],setup(o,{emit:n}){const t=o,{id:r}=e.toRefs(t),l=ue(r),i=e.useAttrs(),c=e.ref("auto"),d=e.ref("auto"),u=e.ref(null),f=e.ref(null),a=e.ref(null),s=e.ref(null),m=e.computed({get:()=>t.reference??u.value,set:b=>{u.value=b}}),g=e.computed(()=>{const b=[];if(t.autoPlacement?typeof t.autoPlacement=="boolean"?b.push(q.autoPlacement()):b.push(q.autoPlacement(t.autoPlacement)):t.flip&&(typeof t.flip=="boolean"?b.push(q.flip()):b.push(q.flip(t.flip))),t.shift&&(typeof t.shift=="boolean"?b.push(q.shift()):b.push(q.shift(t.shift))),t.size){const v=({availableWidth:$,availableHeight:se})=>{c.value=`${$}px`,d.value=`${se}px`};typeof t.size=="boolean"?b.push(q.size({apply:v})):b.push(q.size({...t.size,apply:v}))}return t.offset&&(b.push(q.offset(Number(t.offset))),["string","number"].includes(typeof t.offset)?b.push(q.offset(Number(t.offset))):b.push(q.offset(t.offset))),t.arrow&&b.push(q.arrow({element:a})),b}),{x:_,y:S,strategy:h,middlewareData:p,placement:B}=q.useFloating(m,f,{whileElementsMounted:q.autoUpdate,placement:t.placement,middleware:g}),w=e.computed(()=>({position:h.value,top:`${S.value??0}px`,left:`${_.value??0}px`,maxWidth:c.value,maxHeight:d.value,width:t.triggerWidth&&m.value?`${m.value.offsetWidth}px`:void 0})),N=e.computed(()=>B.value.split("-")[0]),A=e.computed(()=>({top:"bottom",right:"left",bottom:"top",left:"right"})[N.value]??"bottom"),I=e.computed(()=>{var b,v,$,se;return["bottom","top"].includes(A.value)?{right:`${((b=p.value.arrow)==null?void 0:b.x)??0}px`,[A.value]:`${-(((v=a.value)==null?void 0:v.offsetWidth)??0)/2}px`}:{top:`${(($=p.value.arrow)==null?void 0:$.y)??0}px`,[A.value]:`${-(((se=a.value)==null?void 0:se.offsetWidth)??0)/2}px`}}),V=R.useVModel(t,"modelValue",n),W=e.ref(!1),P=e.computed({get:()=>V.value??W.value,set:b=>{if(V.value===void 0){W.value=b;return}V.value=b}}),O=()=>{P.value=!0},T=()=>{P.value=!1},Y=()=>{P.value=!P.value},te=b=>{m.value=b};e.watch(P,b=>{b&&t.autofocusFirst&&e.nextTick(()=>{const v=F(f.value);v.length>0&&v[0].focus()})}),R.onClickOutside(f,()=>{t.autoClose&&(P.value=!1)},{ignore:[m]});const oe=e.computed(()=>{var b;return((b=m.value)==null?void 0:b.getAttribute("id"))??void 0}),U=e.computed(()=>({"aria-controls":l.value,"aria-haspopup":!0,"aria-expanded":P.value})),{component:Z,bus:ne}=Wo({reference:m,id:l,expanded:P,aria:U});ne.on("click",Y);const{role:K,modifiers:ae}=e.toRefs(t),{itemRole:M}=Uo({role:K,expanded:P}),D=x("vv-dropdown",ae,e.computed(()=>({arrow:t.arrow}))),{focused:z}=R.useFocusWithin(f);function F(b){return b?[...b.querySelectorAll('a[href], button, input, textarea, select, details,[tabindex]:not([tabindex="-1"])')].filter(v=>!v.hasAttribute("disabled")&&!v.getAttribute("aria-hidden")):[]}const le=()=>{e.nextTick(()=>{if(z.value){const b=F(f.value);if(b.length===0||!document.activeElement)return;const v=b.indexOf(document.activeElement);v<b.length-1?b[v+1].focus():b[0].focus()}})},me=()=>{e.nextTick(()=>{if(z.value){const b=F(f.value);if(b.length===0||!document.activeElement)return;const v=b.indexOf(document.activeElement);v>0?b[v-1].focus():b[b.length-1].focus()}})};return R.onKeyStroke("Escape",b=>{P.value&&(b.preventDefault(),T())}),R.onKeyStroke("ArrowDown",b=>{P.value&&z.value&&(b.preventDefault(),le())}),R.onKeyStroke("ArrowUp",b=>{P.value&&z.value&&(b.preventDefault(),me())}),R.onKeyStroke([" ","Enter"],b=>{P.value&&z.value&&(b.preventDefault(),document.activeElement.click())}),(b,v)=>(e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createVNode(e.unref(Z),null,{default:e.withCtx(()=>[e.renderSlot(b.$slots,"default",e.normalizeProps(e.guardReactiveProps({init:te,show:O,hide:T,toggle:Y,expanded:e.unref(P),aria:e.unref(U)})))]),_:3}),e.createVNode(e.Transition,{name:b.transitionName},{default:e.withCtx(()=>[e.withDirectives(e.createElementVNode("div",{ref_key:"floatingEl",ref:f,style:e.normalizeStyle(e.unref(w)),class:e.normalizeClass(e.unref(D))},[t.arrow?(e.openBlock(),e.createElementBlock("div",{key:0,ref_key:"arrowEl",ref:a,style:e.normalizeStyle(e.unref(I)),class:"vv-dropdown__arrow"},null,4)):e.createCommentVNode("",!0),e.renderSlot(b.$slots,"before",e.normalizeProps(e.guardReactiveProps({expanded:e.unref(P)}))),e.createElementVNode("ul",e.mergeProps(e.unref(i),{id:e.unref(l),ref_key:"listEl",ref:s,tabindex:e.unref(P)?void 0:-1,role:e.unref(K),"aria-labelledby":e.unref(oe),class:"vv-dropdown__list"}),[e.renderSlot(b.$slots,"items",e.normalizeProps(e.guardReactiveProps({role:e.unref(M)})))],16,qo),e.renderSlot(b.$slots,"after",e.normalizeProps(e.guardReactiveProps({expanded:e.unref(P)})))],6),[[e.vShow,e.unref(P)]])]),_:3},8,["name"])],64))}}),Jo={name:"VvDropdownItem"},Xo=e.defineComponent({...Jo,setup(o){const{role:n,expanded:t}=so(),r=e.ref(null);Ko({expanded:t});const l=R.useElementHover(r),{focused:i}=R.useFocus(r),{focused:c}=R.useFocusWithin(r);return e.watch(l,d=>{d&&(i.value=!0)}),(d,u)=>(e.openBlock(),e.createElementBlock("li",e.mergeProps({role:e.unref(n)},{ref_key:"element",ref:r,class:["vv-dropdown__item",{"focus-visible":e.unref(i)||e.unref(c)}]}),[e.renderSlot(d.$slots,"default")],16))}}),Qo={class:"vv-dropdown-option__hint"},Zo={name:"VvDropdownOption"},Te=e.defineComponent({...Zo,props:{...de,...Wt,...Ce,...Q,deselectHintLabel:{type:String},selectHintLabel:{type:String},selectedHintLabel:{type:String}},setup(o){const n=o,{modifiers:t}=e.toRefs(n),r=x("vv-dropdown-option",t,e.computed(()=>({disabled:n.disabled,selected:n.selected,unselectable:n.unselectable&&n.selected})));return(l,i)=>(e.openBlock(),e.createBlock(Xo,{class:e.normalizeClass(e.unref(r)),tabindex:l.disabled?-1:0,"aria-selected":l.selected,"aria-disabled":l.disabled},{default:e.withCtx(()=>[e.renderSlot(l.$slots,"default"),e.createElementVNode("span",Qo,[e.renderSlot(l.$slots,"hint",e.normalizeProps(e.guardReactiveProps({disabled:l.disabled,selected:l.selected,unselectable:l.unselectable})),()=>[l.selected?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[e.createTextVNode(e.toDisplayString(l.unselectable?o.deselectHintLabel:o.selectedHintLabel),1)],64)):l.disabled?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[e.createTextVNode(e.toDisplayString(o.selectHintLabel),1)],64))])])]),_:3},8,["class","tabindex","aria-selected","aria-disabled"]))}}),$o={...Oe,...ct,...dt,...De,..._e,...Se,...Be,...Ae,...de,...Ve,...Q,...je,...Fe,...Ge,...Ce,...he,multiple:Boolean,required:Boolean,size:[String,Number],modelValue:{type:[String,Number,Boolean,Object,Array],default:void 0},placeholder:String},en=["update:modelValue","focus","blur"];function Le(o,n){const{focused:t}=R.useFocus(o);return e.watch(t,r=>{n(r?"focus":"blur",e.unref(o))}),{focused:t}}function xe(o,n){const t=e.computed(()=>Boolean((o==null?void 0:o.value)&&n.value===ye.before)),r=e.computed(()=>Boolean((o==null?void 0:o.value)&&n.value===ye.after)),l=e.computed(()=>Boolean((o==null?void 0:o.value)&&n.value===X.left)),i=e.computed(()=>Boolean((o==null?void 0:o.value)&&n.value===X.right)),c=e.computed(()=>Boolean((o==null?void 0:o.value)&&n.value===X.top)),d=e.computed(()=>Boolean((o==null?void 0:o.value)&&n.value===X.bottom));return{hasIcon:e.computed(()=>typeof(o==null?void 0:o.value)=="string"?{name:o==null?void 0:o.value}:o==null?void 0:o.value),hasIconLeft:l,hasIconRight:i,hasIconTop:c,hasIconBottom:d,hasIconBefore:t,hasIconAfter:r}}const tn=["for"],on={class:"vv-select__wrapper"},nn={key:0,class:"vv-select__input-before"},ln={class:"vv-select__inner"},rn=["id"],an=["disabled","hidden"],sn=["disabled","value"],cn={key:1,class:"vv-select__input-after"},dn={name:"VvSelect"},yt=e.defineComponent({...dn,props:$o,emits:en,setup(o,{emit:n}){const t=o,r=e.useSlots(),l=e.ref(),{HintSlot:i,hasHint:c,hasInvalid:d}=fe(t,r),{id:u,modifiers:f,disabled:a,readonly:s,loading:m,icon:g,iconPosition:_,invalid:S,valid:h,floating:p,multiple:B}=e.toRefs(t),w=ue(u),N=e.computed(()=>`${w.value}-hint`),{focused:A}=Le(l,n),I=R.useElementVisibility(l);e.watch(I,D=>{D&&t.autofocus&&(A.value=!0)});const{hasIcon:V,hasIconBefore:W,hasIconAfter:P}=xe(g,_),O=e.computed(()=>!ee(t.modelValue)),T=e.computed(()=>t.disabled||t.readonly),Y=e.computed(()=>T.value?-1:t.tabindex),te=e.computed(()=>{if(t.invalid===!0)return!0;if(t.valid===!0)return!1}),oe=x("vv-select",f,e.computed(()=>({valid:h.value,invalid:S.value,loading:m.value,disabled:a.value,readonly:s.value,"icon-before":W.value,"icon-after":P.value,dirty:O.value,focus:A.value,floating:p.value,multiple:B.value}))),U=e.computed(()=>({name:t.name,tabindex:Y.value,disabled:T.value,required:t.required,size:t.size,autocomplete:t.autocomplete,multiple:t.multiple,"aria-invalid":te.value,"aria-describedby":!d.value&&c.value?N.value:void 0,"aria-errormessage":d.value?N.value:void 0})),Z=e.computed(()=>({valid:t.valid,invalid:t.invalid,modelValue:t.modelValue})),{getOptionLabel:ne,getOptionValue:K,getOptionDisabled:ae}=ve(t),M=e.computed({get:()=>t.modelValue,set:D=>{Array.isArray(D)&&(D=D.filter(z=>z!==void 0)),n("update:modelValue",D)}});return(D,z)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(e.unref(oe))},[D.label?(e.openBlock(),e.createElementBlock("label",{key:0,for:e.unref(w)},e.toDisplayString(D.label),9,tn)):e.createCommentVNode("",!0),e.createElementVNode("div",on,[D.$slots.before?(e.openBlock(),e.createElementBlock("div",nn,[e.renderSlot(D.$slots,"before",e.normalizeProps(e.guardReactiveProps(e.unref(Z))))])):e.createCommentVNode("",!0),e.createElementVNode("div",ln,[e.unref(W)?(e.openBlock(),e.createBlock(H,e.mergeProps({key:0,class:"vv-select__icon"},e.unref(V)),null,16)):e.createCommentVNode("",!0),e.withDirectives(e.createElementVNode("select",e.mergeProps({id:e.unref(w),ref_key:"select",ref:l,"onUpdate:modelValue":z[0]||(z[0]=F=>e.isRef(M)?M.value=F:null)},e.unref(U)),[D.placeholder?(e.openBlock(),e.createElementBlock("option",{key:0,value:void 0,disabled:!D.unselectable,hidden:!D.unselectable},e.toDisplayString(D.placeholder),9,an)):e.createCommentVNode("",!0),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(D.options,(F,le)=>(e.openBlock(),e.createElementBlock("option",{key:le,disabled:e.unref(ae)(F),value:e.unref(K)(F)},e.toDisplayString(e.unref(ne)(F)),9,sn))),128))],16,rn),[[e.vModelSelect,e.unref(M)]]),e.unref(P)?(e.openBlock(),e.createBlock(H,e.mergeProps({key:1,class:"vv-select__icon vv-select__icon-after"},e.unref(V)),null,16)):e.createCommentVNode("",!0)]),D.$slots.after?(e.openBlock(),e.createElementBlock("div",cn,[e.renderSlot(D.$slots,"after",e.normalizeProps(e.guardReactiveProps(e.unref(Z))))])):e.createCommentVNode("",!0)]),e.createVNode(e.unref(i),{id:e.unref(N),class:"vv-select__hint"},null,8,["id"])],2))}}),un=["id"],fn=["id","for"],pn=["id","aria-controls","aria-labelledby","aria-describedby","placeholder"],mn={key:0,class:"vv-select__input-before"},bn={class:"vv-select__inner"},hn=["aria-labelledby","tabindex"],gn=["aria-label","onClick"],yn={key:1,class:"vv-select__input-after"},kn={name:"VvCombobox",components:{VvDropdown:Ue,VvDropdownOption:Te}},_n=e.defineComponent({...kn,props:Fo,emits:jo,setup(o,{emit:n}){const t=o,r=e.useSlots(),{HintSlot:l}=fe(t,r),i=e.ref(null),c=e.ref(null),d=e.ref(null),{focused:u}=Le(i,n),{focused:f}=R.useFocusWithin(d);e.watch(u,y=>{if(t.autoOpen){if(y&&!m.value){_();return}!y&&m.value&&!f.value&&S()}}),e.watch(f,y=>{!u.value&&!y&&m.value&&S()});const a=e.ref(""),s=R.refDebounced(a,Number(t.debounceSearch));e.watch(s,()=>n("change:search",s.value));const m=e.ref(!1),g=()=>{t.disabled||t.readonly||(m.value=!m.value)},_=()=>{t.disabled||t.readonly||m.value||(m.value=!0)},S=()=>{t.disabled||t.readonly||!m.value||(m.value=!1)};e.watch(m,y=>{O.value&&e.nextTick(()=>{if(y){c.value&&c.value.focus();return}a.value=""})});const{id:h,icon:p,iconPosition:B,modifiers:w,disabled:N,readonly:A,loading:I,valid:V,invalid:W,floating:P,searchable:O}=e.toRefs(t),T=ue(h),Y=e.computed(()=>`${T.value}-hint`),te=e.computed(()=>`${T.value}-dropdown`),oe=e.computed(()=>`${T.value}-search`),U=e.computed(()=>`${T.value}-label`),{hasIcon:Z,hasIconBefore:ne,hasIconAfter:K}=xe(p,B),ae=e.computed(()=>!ee(t.modelValue)),M=e.computed(()=>N.value||A.value?-1:t.tabindex),D=x("vv-select",w,e.computed(()=>({disabled:N.value,loading:I.value,readonly:A.value,"icon-before":Boolean(ne.value),"icon-after":Boolean(K.value),valid:V.value,invalid:W.value,dirty:ae.value,focus:u.value,floating:P.value}))),z=e.computed(()=>t.searchable?b.value:t.options),{getOptionLabel:F,getOptionValue:le,getOptionDisabled:me}=ve(t),b=e.computed(()=>{var y;return(y=t.options)==null?void 0:y.filter(j=>F(j).toLowerCase().includes(s.value.toLowerCase().trim()))});function v(y){return Array.isArray(t.modelValue)?ce(y,t.modelValue)||ce(le(y),t.modelValue):ie(y,t.modelValue)||ie(le(y),t.modelValue)}const $=e.computed(()=>{let y=[];return Array.isArray(t.modelValue)?y=t.modelValue:t.modelValue&&(y=[t.modelValue]),t.options.filter(j=>y.includes(le(j)))}),se=e.computed(()=>$.value.map(y=>F(y)).join(t.separator));e.watch($,()=>{!t.multiple&&t.autoClose&&S()});const Ye=()=>{t.autoOpen?_():g()},Ee=y=>{var be;if(t.disabled||t.readonly)return;const j=le(y);let L=j;if(t.multiple)if(Array.isArray(t.modelValue)){if(t.maxValues!==void 0&&t.maxValues>=0&&((be=t.modelValue)==null?void 0:be.length)>=t.maxValues&&!ce(j,t.modelValue))return;L=ce(j,t.modelValue)?Dt(j,t.modelValue):[...t.modelValue,j]}else L=[j];else t.unselectable&&j===t.modelValue&&(L=void 0);n("update:modelValue",L)},E=e.computed(()=>({id:T.value,name:t.name,tabindex:M.value,valid:V.value,validLabel:t.validLabel,invalid:W.value,invalidLabel:t.invalidLabel,hintLabel:t.hintLabel,loading:I.value,loadingLabel:t.loadingLabel,disabled:N.value,readonly:A.value,modifiers:t.modifiers,options:z.value,labelKey:t.labelKey,valueKey:t.valueKey,icon:t.icon,iconPosition:t.iconPosition,floating:t.floating,unselectable:t.unselectable,multiple:t.multiple,label:t.label,placeholder:t.placeholder,modelValue:t.modelValue})),G=e.computed(()=>({id:te.value,reference:d.value,placement:t.placement,transitionName:t.transitionName,offset:t.offset,shift:t.shift,flip:t.flip,autoPlacement:t.autoPlacement,arrow:t.arrow,autoClose:t.autoClose,autofocusFirst:O.value?!1:t.autofocusFirst,triggerWidth:t.triggerWidth,modifiers:t.dropdownModifiers})),ge=e.computed(()=>({valid:t.valid,invalid:t.invalid,modelValue:t.modelValue}));return R.onKeyStroke([" ","Enter"],y=>{t.autoOpen||!m.value&&u.value&&(y.preventDefault(),y.stopImmediatePropagation(),g())}),(y,j)=>y.native?(e.openBlock(),e.createBlock(yt,e.mergeProps({key:1},e.unref(E),{"onUpdate:modelValue":j[2]||(j[2]=L=>n("update:modelValue",L))}),null,16)):(e.openBlock(),e.createElementBlock("div",{key:0,id:e.unref(T),class:e.normalizeClass(e.unref(D))},[y.label?(e.openBlock(),e.createElementBlock("label",{key:0,id:e.unref(U),for:e.unref(O)?e.unref(oe):void 0},e.toDisplayString(y.label),9,fn)):e.createCommentVNode("",!0),e.createElementVNode("div",{ref_key:"wrapperEl",ref:d,class:"vv-select__wrapper"},[e.createVNode(Ue,e.mergeProps({modelValue:e.unref(m),"onUpdate:modelValue":j[1]||(j[1]=L=>e.isRef(m)?m.value=L:null)},e.unref(G),{role:e.unref(ke).listbox}),e.createSlots({default:e.withCtx(({aria:L})=>[y.$slots.before?(e.openBlock(),e.createElementBlock("div",mn,[e.renderSlot(y.$slots,"before",e.normalizeProps(e.guardReactiveProps(e.unref(ge))))])):e.createCommentVNode("",!0),e.createElementVNode("div",bn,[e.unref(ne)?(e.openBlock(),e.createBlock(H,e.mergeProps({key:0,class:"vv-select__icon"},e.unref(Z)),null,16)):e.createCommentVNode("",!0),e.createElementVNode("div",e.mergeProps({ref_key:"inputEl",ref:i},L,{"aria-labelledby":e.unref(U),class:"vv-select__input",role:"combobox",tabindex:e.unref(M),onClickPassive:Ye}),[e.renderSlot(y.$slots,"value",e.normalizeProps(e.guardReactiveProps({selectedOptions:e.unref($),onInput:Ee})),()=>[e.unref(se)?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[y.badges?(e.openBlock(!0),e.createElementBlock(e.Fragment,{key:1},e.renderList(e.unref($),(be,Ct)=>(e.openBlock(),e.createBlock(bt,{key:Ct,modifiers:y.badgeModifiers,class:"vv-select__badge"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(F)(be))+" ",1),y.unselectable&&!e.unref(A)&&!e.unref(N)?(e.openBlock(),e.createElementBlock("button",{key:0,"aria-label":y.deselectActionLabel,onClick:e.withModifiers(pl=>Ee(be),["stop"])},[e.createVNode(H,{name:"close"})],8,gn)):e.createCommentVNode("",!0)]),_:2},1032,["modifiers"]))),128)):(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[e.createTextVNode(e.toDisplayString(e.unref(se)),1)],64))],64)):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[e.createTextVNode(e.toDisplayString(y.placeholder),1)],64))])],16,hn),e.unref(K)?(e.openBlock(),e.createBlock(H,e.mergeProps({key:1,class:"vv-select__icon vv-select__icon-after"},e.unref(Z)),null,16)):e.createCommentVNode("",!0)]),y.$slots.after?(e.openBlock(),e.createElementBlock("div",yn,[e.renderSlot(y.$slots,"after",e.normalizeProps(e.guardReactiveProps(e.unref(ge))))])):e.createCommentVNode("",!0)]),items:e.withCtx(()=>[e.unref(b).length?(e.openBlock(!0),e.createElementBlock(e.Fragment,{key:0},e.renderList(e.unref(b),(L,be)=>(e.openBlock(),e.createBlock(Te,e.mergeProps({disabled:e.unref(me)(L),selected:v(L),unselectable:y.unselectable,deselectHintLabel:y.deselectHintLabel,selectHintLabel:y.selectHintLabel,selectedHintLabel:y.selectedHintLabel},{key:be,class:"vv-dropdown-option",onClickPassive:Ct=>Ee(L)}),{default:e.withCtx(()=>[e.renderSlot(y.$slots,"option",e.normalizeProps(e.guardReactiveProps({option:L,selectedOptions:e.unref($),selected:v(L),disabled:e.unref(me)(L)})),()=>[e.createTextVNode(e.toDisplayString(e.unref(F)(L)),1)])]),_:2},1040,["onClickPassive"]))),128)):y.options.length?(e.openBlock(),e.createBlock(Te,{key:2,modifiers:"inert"},{default:e.withCtx(()=>[e.renderSlot(y.$slots,"no-results",{},()=>[e.createTextVNode(e.toDisplayString(y.noResultsLabel),1)])]),_:3})):(e.openBlock(),e.createBlock(Te,{key:1,modifiers:"inert"},{default:e.withCtx(()=>[e.renderSlot(y.$slots,"no-options",{},()=>[e.createTextVNode(e.toDisplayString(y.noOptionsLabel),1)])]),_:3}))]),_:2},[e.unref(O)||y.$slots["dropdown::before"]?{name:"before",fn:e.withCtx(()=>[e.renderSlot(y.$slots,"dropdown::before"),e.unref(O)?e.withDirectives((e.openBlock(),e.createElementBlock("input",{key:0,id:e.unref(oe),ref_key:"inputSearchEl",ref:c,"onUpdate:modelValue":j[0]||(j[0]=L=>e.isRef(a)?a.value=L:null),"aria-autocomplete":"list","aria-controls":e.unref(te),"aria-labelledby":e.unref(U),"aria-describedby":e.unref(Y),autocomplete:"off",spellcheck:"false",type:"search",class:"vv-dropdown__search",placeholder:y.searchPlaceholder},null,8,pn)),[[e.vShow,e.unref(m)],[e.vModelText,e.unref(a)]]):e.createCommentVNode("",!0)]),key:"0"}:void 0,y.$slots["dropdown::after"]?{name:"after",fn:e.withCtx(()=>[e.renderSlot(y.$slots,"dropdown::after")]),key:"1"}:void 0]),1040,["modelValue","role"])],512),e.createVNode(e.unref(l),{id:e.unref(Y),class:"vv-select__hint"},null,8,["id"])],10,un))}}),Sn=["open","close","update:modelValue"],Vn={...Ie,title:String,modelValue:Boolean,transition:{type:String,default:"fade-block"},size:String,autoClose:{type:Boolean,default:!0}},Bn={key:0,class:"vv-dialog__header"},Cn={class:"vv-dialog__content"},En={key:1,class:"vv-dialog__footer"},Pn={name:"VvDialog"},wn=e.defineComponent({...Pn,props:Vn,emits:Sn,setup(o,{emit:n}){const t=o,r=R.useVModel(t,"modelValue",n),l=e.ref(!0),i=e.ref(null),c=e.computed(()=>{const{id:s}=t;return{id:s,open:l.value}}),d=e.computed(()=>t.size?["vv-dialog",`vv-dialog--${t.size}`]:"vv-dialog"),u=e.computed(()=>`vv-dialog--${t.transition}`),f={"before-enter":()=>{l.value=!0,n("open")},"after-leave":()=>{l.value=!1,n("close")}};R.onClickOutside(i,()=>{t.autoClose&&(r.value=!1)});function a(){r.value=!1}return R.onKeyStroke("Escape",s=>{r.value&&(s.preventDefault(),a())}),(s,m)=>(e.openBlock(),e.createBlock(e.Transition,e.mergeProps({name:e.unref(u)},e.toHandlers(f)),{default:e.withCtx(()=>[e.withDirectives(e.createElementVNode("dialog",e.mergeProps(e.unref(c),{class:e.unref(d)}),[e.createElementVNode("article",{ref_key:"modalWrapper",ref:i,class:"vv-dialog__wrapper"},[s.$slots.header||s.title?(e.openBlock(),e.createElementBlock("header",Bn,[e.renderSlot(s.$slots,"header",{},()=>[e.createTextVNode(e.toDisplayString(s.title)+" ",1),e.createElementVNode("button",{type:"button","aria-label":"Close",class:"vv-dialog__close",onClickPassive:a},[e.createVNode(H,{name:"close"})],32)])])):e.createCommentVNode("",!0),e.createElementVNode("div",Cn,[e.renderSlot(s.$slots,"default")]),s.$slots.footer?(e.openBlock(),e.createElementBlock("footer",En,[e.renderSlot(s.$slots,"footer")])):e.createCommentVNode("",!0)],512)],16),[[e.vShow,e.unref(r)]])]),_:3},16,["name"]))}}),k={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"},pe={PASSWORD_SHOW:"eye-on",PASSWORD_HIDE:"eye-off",DATE:"calendar",TIME:"time",COLOR:"color",SEARCH:"close"},Nn=["update:modelValue","focus","blur","keyup"],An={...ut,modelValue:[String,Number],type:{type:String,default:k.TEXT,validator:o=>Object.values(k).includes(o)},min:[Number,Date,String],max:[Number,Date,String],step:{type:[String,Number],default:1},pattern:String,multiple:Boolean,iconShowPassword:{type:String,default:pe.PASSWORD_SHOW},iconHidePassword:{type:String,default:pe.PASSWORD_HIDE},iconClear:{type:String,default:pe.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"}},kt=e.defineComponent({components:{VvIcon:H},props:{disabled:{type:Boolean,default:!1},labelShow:{type:String,default:"Show password"},labelHide:{type:String,default:"Hide password"},iconShow:{type:String,default:pe.PASSWORD_SHOW},iconHide:{type:String,default:pe.PASSWORD_HIDE}},emits:["toggle-password"],setup(o,{emit:n}){const t=e.ref(!1),r=e.computed(()=>t.value?o.iconHide:o.iconShow);function l(i){i==null||i.stopPropagation(),o.disabled||(t.value=!t.value,n("toggle-password",t.value))}return{active:t,activeIcon:r,onClick:l}},render(){const o=e.h(H,{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},o)}}),Ke=e.defineComponent({components:{VvIcon:H},props:{disabled:{type:Boolean,default:!1},label:{type:String},mode:{type:String,validator:o=>["up","down"].includes(o),default:"up"}},emits:["step-up","step-down"],setup(o,{emit:n}){const t=e.computed(()=>o.mode==="up");return{isUp:t,onClick:l=>{l==null||l.stopPropagation(),o.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})}}),_t=e.defineComponent({components:{VvIcon:H},props:{disabled:{type:Boolean,default:!1},label:{type:String,default:"Clear"},icon:{type:String,default:"close"}},emits:["clear"],setup(o,{emit:n}){function t(r){r==null||r.stopPropagation(),o.disabled||n("clear")}return{onClick:t}},render(){const o=e.h(H,{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},o)}});function qe(o,n){return{name:"VvInputTextActions",components:{VvIcon:H,VvInputPasswordAction:kt,VvInputStepAction:Ke,VvInputClearAction:_t},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(o){case k.SEARCH:{const{onClear:r}=this.$attrs;t=[e.h(_t,{disabled:this.isDisabled,label:this.labelShowPassword,onClear:r})];break}case k.PASSWORD:{const{onTogglePassword:r}=this.$attrs;t=[e.h(kt,{disabled:this.isDisabled,onTogglePassword:r,labelShow:this.labelShowPassword,labelHide:this.labelHidePassword,iconShow:this.iconShowPassword,iconHide:this.iconHidePassword})];break}case k.NUMBER:{const{onStepUp:r,onStepDown:l}=this.$attrs;t=[e.h(Ke,{mode:"up",disabled:this.isDisabled||n.max!==void 0&&n.modelValue===n.max,label:this.labelStepUp,onStepUp:r,onStepDown:l}),e.h(Ke,{mode:"down",disabled:this.isDisabled||n.min!==void 0&&n.modelValue===n.min,label:this.labelStepDown,onStepUp:r,onStepDown:l})];break}}return Array.isArray(t)?e.h("div",{class:"vv-input-text__actions-group"},t):t}}}function St(o,n,t=0){let r;return typeof t=="string"&&(t=parseInt(t)),e.computed({get:()=>o==null?void 0:o.value,set:l=>{r&&clearTimeout(r),r=setTimeout(()=>{n("update:modelValue",l)},t)}})}function Vt(o,n){const t=e.computed(()=>(e.unref(o)??"").length),r=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),l=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"?r.value===0?void 0:r:t.value);return{length:t,gap:r,formatted:l}}const Dn=["for"],In={class:"vv-input-text__wrapper"},On={key:0,class:"vv-input-text__input-before"},Rn={class:"vv-input-text__inner"},vn=["id"],Tn={key:1,class:"vv-input-text__input-after"},Ln={key:2,class:"vv-input-text__limit"},xn={name:"VvInputText"},Hn=e.defineComponent({...xn,props:An,emits:Nn,setup(o,{emit:n}){const t=o,r=e.useSlots(),l=e.ref(),{id:i,icon:c,iconPosition:d,label:u,modelValue:f,count:a,valid:s,invalid:m,loading:g}=e.toRefs(t),_=ue(i),S=e.computed(()=>`${_.value}-hint`),h=e.computed(()=>t.floating&&ee(t.placeholder)?" ":t.placeholder),p=St(f,n,t.debounce),{focused:B}=Le(l,n),w=R.useElementVisibility(l);e.watch(w,E=>{E&&t.autofocus&&(B.value=!0)});const N=e.ref(!1),A=e.computed(()=>t.type===k.PASSWORD),I=()=>{N.value=!N.value},V=e.computed(()=>t.type===k.TIME||t.type===k.DATETIME_LOCAL||t.type===k.DATE||t.type===k.WEEK||t.type===k.MONTH),W=e.computed(()=>t.type===k.NUMBER),P=()=>{K.value&&(l.value.stepUp(),p.value=e.unref(l).value)},O=()=>{K.value&&(l.value.stepDown(),p.value=e.unref(l).value)},T=e.computed(()=>t.type===k.SEARCH),Y=()=>{p.value=void 0},{hasIcon:te,hasIconBefore:oe,hasIconAfter:U}=xe(c,d),Z=e.computed(()=>{switch(t.type){case k.COLOR:return{name:pe.COLOR};case k.DATE:case k.DATETIME_LOCAL:case k.WEEK:case k.MONTH:return{name:pe.DATE};case k.TIME:return{name:pe.TIME};default:return""}}),{formatted:ne}=Vt(p,{mode:t.count,upperLimit:t.maxlength,lowerLimit:t.minlength}),K=e.computed(()=>!t.disabled&&!t.readonly),ae=e.computed(()=>K.value?t.tabindex:-1),M=e.computed(()=>!ee(f)),D=e.computed(()=>{if(m.value===!0)return!0;if(s.value===!0)return!1}),{modifiers:z}=e.toRefs(t),F=x("vv-input-text",z,e.computed(()=>({valid:s.value,invalid:m.value,loading:g.value,disabled:t.disabled,readonly:t.readonly,"icon-before":oe.value,"icon-after":U.value||!ee(Z),floating:t.floating&&!ee(t.label),dirty:M.value,focus:B.value}))),le=e.computed(()=>{const E=(()=>A.value&&N.value||V.value&&!M.value&&!B.value?k.TEXT:t.type)(),G={type:E,name:t.name,tabindex:ae.value,disabled:t.disabled,readonly:t.readonly,required:t.required,autocomplete:t.autocomplete,"aria-invalid":D.value,"aria-describedby":!$.value&&v.value?S.value:void 0,"aria-errormessage":$.value?S.value:void 0};return(E===k.DATE||E===k.MONTH||E===k.WEEK||E===k.TIME||E===k.DATETIME_LOCAL||E===k.NUMBER)&&(G.step=t.step,G.max=String(t.max),G.min=String(t.min)),(E===k.TEXT||E===k.SEARCH||E===k.URL||E===k.TEL||E===k.EMAIL||E===k.PASSWORD||E===k.NUMBER)&&(G.placeholder=h.value),(E===k.TEXT||E===k.SEARCH||E===k.URL||E===k.TEL||E===k.EMAIL||E===k.PASSWORD)&&(G.minlength=t.minlength,G.maxlength=t.maxlength,G.pattern=t.pattern),E===k.EMAIL&&(G.multiple=t.multiple),G}),me=e.computed(()=>({valid:t.valid,invalid:t.invalid,modelValue:t.modelValue,togglePassword:I,stepUp:P,stepDown:O,clear:Y})),{HintSlot:b,hasHint:v,hasInvalid:$}=fe(t,r),se=qe(k.PASSWORD,t),Ye=qe(k.NUMBER,t),Ee=qe(k.SEARCH,t);return(E,G)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(e.unref(F))},[e.unref(u)?(e.openBlock(),e.createElementBlock("label",{key:0,for:e.unref(_),class:"vv-input-text__label"},e.toDisplayString(e.unref(u)),9,Dn)):e.createCommentVNode("",!0),e.createElementVNode("div",In,[E.$slots.before?(e.openBlock(),e.createElementBlock("div",On,[e.renderSlot(E.$slots,"before",e.normalizeProps(e.guardReactiveProps(e.unref(me))))])):e.createCommentVNode("",!0),e.createElementVNode("div",Rn,[e.unref(oe)?(e.openBlock(),e.createBlock(H,e.mergeProps({key:0,class:"vv-input-text__icon"},e.unref(te)),null,16)):e.createCommentVNode("",!0),e.withDirectives(e.createElementVNode("input",e.mergeProps({id:e.unref(_),ref_key:"input",ref:l,"onUpdate:modelValue":G[0]||(G[0]=ge=>e.isRef(p)?p.value=ge:null)},e.unref(le),{onKeyup:G[1]||(G[1]=ge=>n("keyup",ge))}),null,16,vn),[[e.vModelDynamic,e.unref(p)]]),e.unref(U)||e.unref(Z)?(e.openBlock(),e.createBlock(H,e.mergeProps({key:1,class:"vv-input-text__icon vv-input-text__icon-after"},e.unref(U)?e.unref(te):e.unref(Z)),null,16)):e.unref(A)?(e.openBlock(),e.createBlock(e.unref(se),{key:2,onTogglePassword:I})):e.unref(W)?(e.openBlock(),e.createBlock(e.unref(Ye),{key:3,onStepUp:P,onStepDown:O})):e.unref(T)?(e.openBlock(),e.createBlock(e.unref(Ee),{key:4,onClear:Y})):e.createCommentVNode("",!0)]),E.$slots.after?(e.openBlock(),e.createElementBlock("div",Tn,[e.renderSlot(E.$slots,"after",e.normalizeProps(e.guardReactiveProps(e.unref(me))))])):e.createCommentVNode("",!0),e.unref(a)?(e.openBlock(),e.createElementBlock("span",Ln,[e.renderSlot(E.$slots,"count",e.normalizeProps(e.guardReactiveProps(e.unref(me))),()=>[e.createTextVNode(e.toDisplayString(e.unref(ne)),1)])])):e.createCommentVNode("",!0)]),e.createVNode(e.unref(b),{id:e.unref(S),class:"vv-input-text__hint"},null,8,["id"])],2))}}),Mn={...Q,value:{type:[Number,String],default:void 0},max:{type:[Number,String]},label:{type:String,required:!0}},zn={name:"VvProgress"},jn=e.defineComponent({...zn,props:Mn,setup(o){const n=o,{value:t,max:r,label:l}=e.toRefs(n),i=e.computed(()=>n.value===void 0),{modifiers:c}=e.toRefs(n),d=x("vv-progress",c,e.computed(()=>({indeterminate:i.value})));return(u,f)=>(e.openBlock(),e.createElementBlock("progress",e.mergeProps({role:"progressbar"},{class:e.unref(d),ariaLabel:e.unref(l),max:e.unref(r),value:e.unref(t)}),null,16))}}),Fn=ft,Gn=["click","update:modelValue","change","blur"];function Wn(o,n){const{id:t}=e.toRefs(o),{group:r,isInGroup:l,getGroupOrLocalRef:i}=we(tt),c=i("modelValue",o,n),d=i("readonly",o),u=i("disabled",o),f=i("valid",o),a=i("invalid",o);return{id:t,group:r,isInGroup:l,modelValue:c,readonly:d,disabled:u,valid:f,invalid:a}}const Un=["for"],Kn=["id","name","disabled","value","tabindex","aria-invalid"],qn={name:"VvRadio"},Bt=e.defineComponent({...qn,props:Fn,emits:Gn,setup(o,{emit:n}){const t=o,r=e.useSlots(),{id:l,disabled:i,readonly:c,modelValue:d,valid:u,invalid:f}=Wn(t,n),a=ue(l),s=e.computed(()=>g.value?-1:t.tabindex),m=e.ref(),g=e.computed(()=>i.value||c.value),_=e.computed(()=>{if(f.value===!0)return!0;if(u.value===!0)return!1}),S=e.computed(()=>Array.isArray(d.value)?ce(t.value,d.value):ie(t.value,d.value)),h=e.computed(()=>["string","number","boolean"].includes(typeof t.value)?t.value:!0),p=e.computed({get(){return S.value?h.value:null},set(A){Array.isArray(d.value)?d.value=[t.value]:d.value=t.value,n("change",A)}}),{modifiers:B}=e.toRefs(t),w=x("vv-radio",B,e.computed(()=>({valid:u.value,invalid:f.value,disabled:i.value,readonly:c.value}))),{HintSlot:N}=fe(t,r);return(A,I)=>(e.openBlock(),e.createElementBlock("label",{class:e.normalizeClass(e.unref(w)),for:e.unref(a)},[e.withDirectives(e.createElementVNode("input",{id:e.unref(a),ref_key:"input",ref:m,"onUpdate:modelValue":I[0]||(I[0]=V=>e.isRef(p)?p.value=V:null),type:"radio",class:"vv-radio__input",name:A.name,disabled:e.unref(g),value:e.unref(h),tabindex:e.unref(s),"aria-invalid":e.unref(_)},null,8,Kn),[[e.vModelRadio,e.unref(p)]]),e.renderSlot(A.$slots,"default",{value:e.unref(d)},()=>[e.createTextVNode(e.toDisplayString(A.label),1)]),e.createVNode(e.unref(N),{class:"vv-radio__hint",params:{value:e.unref(d)}},null,8,["params"])],10,Un))}}),Yn=pt,Jn=["update:modelValue","change"],Xn=["textContent"],Qn={class:"vv-radio-group__wrapper"},Zn={name:"VvRadioGroup"},$n=e.defineComponent({...Zn,props:Yn,emits:Jn,setup(o,{emit:n}){const t=o,r=e.useSlots(),l=R.useVModel(t,"modelValue",n),{disabled:i,readonly:c,vertical:d,valid:u,invalid:f,modifiers:a}=e.toRefs(t);Ne({key:tt,modelValue:l,disabled:i,readonly:c,valid:u,invalid:f});const{getOptionLabel:s,getOptionValue:m}=ve(t),g=x("vv-radio-group",a,e.computed(()=>({disabled:i.value,readonly:c.value,horizontal:!d.value,valid:u.value,invalid:f.value}))),_=(h,p)=>({id:`${t.name}_opt${p}`,name:t.name,label:s(h),value:m(h)}),{HintSlot:S}=fe(t,r);return(h,p)=>(e.openBlock(),e.createElementBlock("fieldset",{class:e.normalizeClass(e.unref(g))},[h.label?(e.openBlock(),e.createElementBlock("legend",{key:0,textContent:e.toDisplayString(h.label)},null,8,Xn)):e.createCommentVNode("",!0),e.createElementVNode("div",Qn,[h.options.length>0?(e.openBlock(!0),e.createElementBlock(e.Fragment,{key:0},e.renderList(h.options,(B,w)=>(e.openBlock(),e.createBlock(Bt,e.mergeProps({key:w},_(B,w)),null,16))),128)):e.renderSlot(h.$slots,"default",{key:1})]),e.createVNode(e.unref(S),{class:"vv-radio-group__hint"})],2))}}),el={hard:"hard",soft:"soft"},tl={true:!0,false:!1,default:"default"},ol=["update:modelValue","focus","blur","keyup"],nl={...ut,modelValue:String,cols:{type:[String,Number],default:20},rows:{type:[String,Number],default:2},wrap:{type:String,default:el.soft},spellcheck:{type:[Boolean,String],default:tl.default},resizable:Boolean},ll=["for"],rl={class:"vv-textarea__wrapper"},al={key:0,class:"vv-textarea__input-before"},sl={class:"vv-textarea__inner"},il=["id"],cl={key:1,class:"vv-textarea__input-after"},dl={key:2,class:"vv-textarea__limit"},ul={name:"VvTextarea"},fl=e.defineComponent({...ul,props:nl,emits:ol,setup(o,{emit:n}){const t=o,r=e.useSlots(),l=e.ref(),{id:i,icon:c,iconPosition:d,label:u,modelValue:f,count:a,valid:s,invalid:m,loading:g,modifiers:_}=e.toRefs(t),S=ue(i),h=e.computed(()=>`${S.value}-hint`),p=e.computed(()=>t.floating&&ee(t.placeholder)?" ":t.placeholder),B=St(f,n,t.debounce),{hasIcon:w,hasIconBefore:N,hasIconAfter:A}=xe(c,d),{focused:I}=Le(l,n),V=R.useElementVisibility(l);e.watch(V,M=>{M&&t.autofocus&&(I.value=!0)});const{formatted:W}=Vt(B,{mode:t.count,upperLimit:t.maxlength,lowerLimit:t.minlength}),P=e.computed(()=>!t.disabled&&!t.readonly),O=e.computed(()=>P.value?t.tabindex:-1),T=e.computed(()=>!ee(f)),Y=e.computed(()=>{if(t.invalid===!0)return!0;if(t.valid===!0)return!1}),{HintSlot:te,hasHint:oe,hasInvalid:U}=fe(t,r),Z=x("vv-textarea",_,e.computed(()=>({valid:s.value,invalid:m.value,loading:g.value,disabled:t.disabled,readonly:t.readonly,"icon-before":N.value,"icon-after":A.value,floating:t.floating&&!ee(t.label),dirty:T.value,focused:I.value,resizable:t.resizable}))),ne=e.computed(()=>({name:t.name,placeholder:p.value,tabindex:O.value,disabled:t.disabled,readonly:t.readonly,required:t.required,autocomplete:t.autocomplete,minlength:t.minlength,maxlength:t.maxlength,cols:t.cols,rows:t.rows,wrap:t.wrap,spellcheck:t.spellcheck,"aria-invalid":Y.value,"aria-describedby":!U.value&&oe.value?h.value:void 0,"aria-errormessage":U.value?h.value:void 0})),K=e.computed(()=>({valid:t.valid,invalid:t.invalid,modelValue:t.modelValue,hintLabel:t.hintLabel,maxlength:t.maxlength,minlength:t.minlength,clear:ae})),ae=()=>{B.value=void 0};return(M,D)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(e.unref(Z))},[e.unref(u)?(e.openBlock(),e.createElementBlock("label",{key:0,for:e.unref(S),class:"vv-textarea__label"},e.toDisplayString(e.unref(u)),9,ll)):e.createCommentVNode("",!0),e.createElementVNode("div",rl,[M.$slots.before?(e.openBlock(),e.createElementBlock("div",al,[e.renderSlot(M.$slots,"before",e.normalizeProps(e.guardReactiveProps(e.unref(K))))])):e.createCommentVNode("",!0),e.createElementVNode("div",sl,[e.unref(N)?(e.openBlock(),e.createBlock(H,e.mergeProps({key:0,class:"vv-textarea__icon"},e.unref(w)),null,16)):e.createCommentVNode("",!0),e.withDirectives(e.createElementVNode("textarea",e.mergeProps({id:e.unref(S),ref_key:"textarea",ref:l,"onUpdate:modelValue":D[0]||(D[0]=z=>e.isRef(B)?B.value=z:null)},e.unref(ne),{onKeyup:D[1]||(D[1]=z=>n("keyup",z))}),null,16,il),[[e.vModelText,e.unref(B)]]),e.unref(A)?(e.openBlock(),e.createBlock(H,e.mergeProps({key:1,class:"vv-textarea__icon vv-textarea__icon-after"},e.unref(w)),null,16)):e.createCommentVNode("",!0)]),M.$slots.after?(e.openBlock(),e.createElementBlock("div",cl,[e.renderSlot(M.$slots,"after",e.normalizeProps(e.guardReactiveProps(e.unref(K))))])):e.createCommentVNode("",!0),e.unref(a)?(e.openBlock(),e.createElementBlock("span",dl,[e.renderSlot(M.$slots,"count",e.normalizeProps(e.guardReactiveProps(e.unref(K))),()=>[e.createTextVNode(e.toDisplayString(e.unref(W)),1)])])):e.createCommentVNode("",!0)]),e.createVNode(e.unref(te),{id:e.unref(h),class:"vv-textarea__hint"},null,8,["id"])],2))}});C.VolverPlugin=Nt,C.VvAccordion=it,C.VvAccordionGroup=Ft,C.VvBadge=bt,C.VvBreadcrumb=to,C.VvButton=yo,C.VvButtonGroup=Vo,C.VvCard=No,C.VvCheckbox=gt,C.VvCheckboxGroup=zo,C.VvCombobox=_n,C.VvDialog=wn,C.VvDropdown=Ue,C.VvIcon=H,C.VvInputText=Hn,C.VvProgress=jn,C.VvRadio=Bt,C.VvRadioGroup=$n,C.VvSelect=yt,C.VvTextarea=fl,Object.defineProperty(C,Symbol.toStringTag,{value:"Module"})});
|
|
1
|
+
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports,require("@iconify/vue"),require("vue")):"function"==typeof define&&define.amd?define(["exports","@iconify/vue","vue"],t):t((e="undefined"!=typeof globalThis?globalThis:e||self).volver={},e.vue$1,e.vue)}(this,(function(e,t,o){"use strict";var i=Object.defineProperty,n=(e,t,o)=>(((e,t,o)=>{t in e?i(e,t,{enumerable:!0,configurable:!0,writable:!0,value:o}):e[t]=o})(e,"symbol"!=typeof t?t+"":t,o),o);const r=Symbol.for("volver");function s(e,t,o){const i=o||e.name;if(!i)return e;const n=null==t?void 0:t[i],r=e.props;return n&&r?{...e,name:i,props:Object.keys(r).reduce(((e,t)=>{if(!(t in n))return e[t]=r[t],e;const o=n[t];return"function"==typeof r[t]||Array.isArray(r[t])?(e[t]={type:r[t],default:o},e):(e[t]={...r[t],default:o},e)}),{})}:{...e,name:i}}class c{constructor({fetchWithCredentials:e,fetchOptions:t,iconsProvider:i,nuxt:r,iconsCollections:s,defaults:c}={}){n(this,"_fetchOptions",{}),n(this,"_iconsCollections",[]),n(this,"_iconsProvider","vv"),n(this,"_nuxt",!1),n(this,"defaults",o.ref({})),t&&(this._fetchOptions=t),e&&(this._fetchOptions={...this._fetchOptions,credentials:"include"}),i&&(this._iconsProvider=i),r&&(this._nuxt=r),s&&Array.isArray(s)&&s.forEach((e=>{this.addCollection(e,this._iconsProvider)})),c&&(this.defaults.value=c)}get nuxt(){return this._nuxt}get iconsProvider(){return this._iconsProvider}get iconsCollections(){return this._iconsCollections}addCollection(e,o=this._iconsProvider){return this._iconsCollections.push(e),t.addCollection(e,o)}addIcon(e,o){return t.addIcon(e,o)}addIconsAPIProvider(e,o){return t.addAPIProvider(e,o)}fetchIcon(e,t={cache:"force-cache"}){return new Promise(((o,i)=>{fetch(e,{...this._fetchOptions,...t}).catch((e=>i(e))).then((e=>null==e?void 0:e.text())).then((e=>o(e)))}))}}const l={install(e,t){const o=new c(t);e.config.globalProperties.$vv=o,t.components&&Object.entries(t.components).forEach((([o,i])=>{e.component(o,s(i,t.defaults))})),t.aliases&&Object.entries(t.aliases).forEach((([o,i])=>{e.component(o,s(i,t.defaults,o))})),t.directives&&Object.entries(t.directives).forEach((([t,o])=>{e.directive(t,o)})),e.provide(r,o)}};e.VolverPlugin=l,Object.defineProperty(e,Symbol.toStringTag,{value:"Module"})}));
|
package/dist/props/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { PropType } from 'vue';
|
|
2
|
-
import type { Option } from '
|
|
3
|
-
import { Placement, Position, Side, AnchorTarget, ButtonType } from '
|
|
2
|
+
import type { Option } from '../types/generic';
|
|
3
|
+
import { Placement, Position, Side, AnchorTarget, ButtonType } from '../constants';
|
|
4
4
|
export declare const LinkProps: {
|
|
5
5
|
/**
|
|
6
6
|
* The router-link/nuxt-link property, if it is defined the button is rendered as a ruouter-link or nuxt-link.
|
|
@@ -17,7 +17,7 @@ export declare const LinkProps: {
|
|
|
17
17
|
* Anchor target
|
|
18
18
|
*/
|
|
19
19
|
target: {
|
|
20
|
-
type: PropType<
|
|
20
|
+
type: PropType<"_blank" | "_self" | "_parent" | "_top">;
|
|
21
21
|
validator: (value: AnchorTarget) => boolean;
|
|
22
22
|
};
|
|
23
23
|
/**
|
|
@@ -167,7 +167,7 @@ export declare const IconProps: {
|
|
|
167
167
|
* VvIcon position
|
|
168
168
|
*/
|
|
169
169
|
iconPosition: {
|
|
170
|
-
type: PropType<
|
|
170
|
+
type: PropType<"before" | "after">;
|
|
171
171
|
default: Position;
|
|
172
172
|
validation: (value: Position) => boolean;
|
|
173
173
|
};
|
|
@@ -209,10 +209,18 @@ export declare const DropdownProps: {
|
|
|
209
209
|
* Dropdown placement
|
|
210
210
|
*/
|
|
211
211
|
placement: {
|
|
212
|
-
type: PropType<
|
|
212
|
+
type: PropType<"left" | "right" | "top" | "bottom" | "top-start" | "top-end" | "bottom-start" | "bottom-end" | "left-start" | "left-end" | "right-start" | "right-end">;
|
|
213
213
|
default: Side;
|
|
214
214
|
validator: (value: Side & Placement) => boolean;
|
|
215
215
|
};
|
|
216
|
+
/**
|
|
217
|
+
* Dropdown strategy
|
|
218
|
+
*/
|
|
219
|
+
strategy: {
|
|
220
|
+
type: PropType<"fixed" | "absolute">;
|
|
221
|
+
default: string;
|
|
222
|
+
validator: (value: 'fixed' | 'absolute') => boolean;
|
|
223
|
+
};
|
|
216
224
|
/**
|
|
217
225
|
* Dropdown show / hide transition name
|
|
218
226
|
*/
|
|
@@ -232,7 +240,11 @@ export declare const DropdownProps: {
|
|
|
232
240
|
* @see https://floating-ui.com/docs/shift
|
|
233
241
|
*/
|
|
234
242
|
shift: {
|
|
235
|
-
type: PropType<boolean | Partial<import("@floating-ui/core").ShiftOptions &
|
|
243
|
+
type: PropType<boolean | Partial<import("@floating-ui/core").ShiftOptions & {
|
|
244
|
+
rootBoundary: import("@floating-ui/core").RootBoundary;
|
|
245
|
+
elementContext: import("@floating-ui/core").ElementContext;
|
|
246
|
+
altBoundary: boolean;
|
|
247
|
+
padding: import("@floating-ui/core").Padding;
|
|
236
248
|
boundary: import("@floating-ui/dom").Boundary;
|
|
237
249
|
}> | undefined>;
|
|
238
250
|
default: boolean;
|
|
@@ -242,7 +254,11 @@ export declare const DropdownProps: {
|
|
|
242
254
|
* @see https://floating-ui.com/docs/flip
|
|
243
255
|
*/
|
|
244
256
|
flip: {
|
|
245
|
-
type: PropType<boolean | Partial<import("@floating-ui/core").FlipOptions &
|
|
257
|
+
type: PropType<boolean | Partial<import("@floating-ui/core").FlipOptions & {
|
|
258
|
+
rootBoundary: import("@floating-ui/core").RootBoundary;
|
|
259
|
+
elementContext: import("@floating-ui/core").ElementContext;
|
|
260
|
+
altBoundary: boolean;
|
|
261
|
+
padding: import("@floating-ui/core").Padding;
|
|
246
262
|
boundary: import("@floating-ui/dom").Boundary;
|
|
247
263
|
}> | undefined>;
|
|
248
264
|
default: boolean;
|
|
@@ -252,14 +268,26 @@ export declare const DropdownProps: {
|
|
|
252
268
|
* @see https://floating-ui.com/docs/size
|
|
253
269
|
*/
|
|
254
270
|
size: {
|
|
255
|
-
type: PropType<boolean | Partial<
|
|
256
|
-
apply(args:
|
|
271
|
+
type: PropType<boolean | Partial<{
|
|
272
|
+
apply: (args: {
|
|
273
|
+
x: number;
|
|
274
|
+
y: number;
|
|
275
|
+
placement: import("@floating-ui/core").Placement;
|
|
276
|
+
strategy: import("@floating-ui/core").Strategy;
|
|
277
|
+
initialPlacement: import("@floating-ui/core").Placement;
|
|
278
|
+
middlewareData: import("@floating-ui/core").MiddlewareData;
|
|
279
|
+
rects: import("@floating-ui/core").ElementRects;
|
|
280
|
+
platform: import("@floating-ui/core").Platform;
|
|
257
281
|
elements: import("@floating-ui/dom").Elements;
|
|
258
282
|
} & {
|
|
259
283
|
availableWidth: number;
|
|
260
284
|
availableHeight: number;
|
|
261
|
-
})
|
|
262
|
-
} &
|
|
285
|
+
}) => void | Promise<void>;
|
|
286
|
+
} & {
|
|
287
|
+
rootBoundary: import("@floating-ui/core").RootBoundary;
|
|
288
|
+
elementContext: import("@floating-ui/core").ElementContext;
|
|
289
|
+
altBoundary: boolean;
|
|
290
|
+
padding: import("@floating-ui/core").Padding;
|
|
263
291
|
boundary: import("@floating-ui/dom").Boundary;
|
|
264
292
|
}> | undefined>;
|
|
265
293
|
default: () => {
|
|
@@ -271,7 +299,11 @@ export declare const DropdownProps: {
|
|
|
271
299
|
* @see https://floating-ui.com/docs/autoPlacement
|
|
272
300
|
*/
|
|
273
301
|
autoPlacement: {
|
|
274
|
-
type: PropType<boolean | Partial<import("@floating-ui/core").AutoPlacementOptions &
|
|
302
|
+
type: PropType<boolean | Partial<import("@floating-ui/core").AutoPlacementOptions & {
|
|
303
|
+
rootBoundary: import("@floating-ui/core").RootBoundary;
|
|
304
|
+
elementContext: import("@floating-ui/core").ElementContext;
|
|
305
|
+
altBoundary: boolean;
|
|
306
|
+
padding: import("@floating-ui/core").Padding;
|
|
275
307
|
boundary: import("@floating-ui/dom").Boundary;
|
|
276
308
|
}> | undefined>;
|
|
277
309
|
default: boolean;
|
|
@@ -345,14 +377,14 @@ export declare const InputTextareaProps: {
|
|
|
345
377
|
* Available for input types: text, search, url, tel, email, password
|
|
346
378
|
* @see https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input#minlength
|
|
347
379
|
*/
|
|
348
|
-
minlength: NumberConstructor;
|
|
380
|
+
minlength: (StringConstructor | NumberConstructor)[];
|
|
349
381
|
/**
|
|
350
382
|
* Input / Textarea maxlength
|
|
351
383
|
* Maximum length (number of characters) of value
|
|
352
384
|
* Available for input types: text, search, url, tel, email, password
|
|
353
385
|
* @see https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input#maxlength
|
|
354
386
|
*/
|
|
355
|
-
maxlength: NumberConstructor;
|
|
387
|
+
maxlength: (StringConstructor | NumberConstructor)[];
|
|
356
388
|
/**
|
|
357
389
|
* Input / Textarea placeholder
|
|
358
390
|
* Text that appears in the form control when it has no value set
|
|
@@ -386,7 +418,7 @@ export declare const InputTextareaProps: {
|
|
|
386
418
|
* VvIcon position
|
|
387
419
|
*/
|
|
388
420
|
iconPosition: {
|
|
389
|
-
type: PropType<
|
|
421
|
+
type: PropType<"before" | "after">;
|
|
390
422
|
default: Position;
|
|
391
423
|
validation: (value: Position) => boolean;
|
|
392
424
|
};
|
|
@@ -554,7 +586,7 @@ export declare const CheckboxRadioGroupProps: {
|
|
|
554
586
|
/**
|
|
555
587
|
* Input value
|
|
556
588
|
*/
|
|
557
|
-
modelValue: (StringConstructor | ArrayConstructor)[];
|
|
589
|
+
modelValue: (SymbolConstructor | StringConstructor | BooleanConstructor | ArrayConstructor | NumberConstructor)[];
|
|
558
590
|
/**
|
|
559
591
|
* Input name
|
|
560
592
|
*/
|
|
@@ -636,7 +668,7 @@ export declare const ActionProps: {
|
|
|
636
668
|
* Button type
|
|
637
669
|
*/
|
|
638
670
|
type: {
|
|
639
|
-
type:
|
|
671
|
+
type: PropType<"button" | "submit" | "reset">;
|
|
640
672
|
default: ButtonType;
|
|
641
673
|
validator: (value: ButtonType) => boolean;
|
|
642
674
|
};
|
|
@@ -655,7 +687,7 @@ export declare const ActionProps: {
|
|
|
655
687
|
* Anchor target
|
|
656
688
|
*/
|
|
657
689
|
target: {
|
|
658
|
-
type: PropType<
|
|
690
|
+
type: PropType<"_blank" | "_self" | "_parent" | "_top">;
|
|
659
691
|
validator: (value: AnchorTarget) => boolean;
|
|
660
692
|
};
|
|
661
693
|
/**
|
|
@@ -17,11 +17,17 @@ export interface VolverResolverOptions {
|
|
|
17
17
|
* @default 'vv'
|
|
18
18
|
*/
|
|
19
19
|
prefix?: string;
|
|
20
|
+
/**
|
|
21
|
+
* ignore components (kebab-case)
|
|
22
|
+
* @default undefined
|
|
23
|
+
*/
|
|
24
|
+
ignore?: string[];
|
|
20
25
|
}
|
|
26
|
+
export declare const getStyleNames: (kebabName: string) => string[] | undefined;
|
|
21
27
|
/**
|
|
22
28
|
* Resolver for @volverjs/ui-vue
|
|
23
29
|
*
|
|
24
30
|
* @link https://github.com/volverjs/ui-vue
|
|
25
31
|
*/
|
|
26
|
-
export declare function VolverResolver({ prefix, importStyle, directives, }?: VolverResolverOptions): ComponentResolver[];
|
|
32
|
+
export declare function VolverResolver({ prefix, importStyle, directives, ignore, }?: VolverResolverOptions): ComponentResolver[];
|
|
27
33
|
export {};
|
|
@@ -1,63 +1,103 @@
|
|
|
1
|
-
function
|
|
2
|
-
if (typeof
|
|
1
|
+
function kebabCase(str, options) {
|
|
2
|
+
if (typeof str !== "string")
|
|
3
3
|
throw new TypeError("expected a string");
|
|
4
|
-
return
|
|
4
|
+
return str.trim().replace(/([a-z])([A-Z])/g, "$1-$2").replace(/\W/g, (m) => /[À-ž]/.test(m) ? m : "-").replace(/^-+|-+$/g, "").replace(/-{2,}/g, (m) => (options == null ? void 0 : options.condense) ? "-" : m).toLowerCase();
|
|
5
5
|
}
|
|
6
|
-
const
|
|
7
|
-
|
|
8
|
-
|
|
6
|
+
const STYLE_EXCLUDE = ["vv-icon", "vv-action"];
|
|
7
|
+
const VOLVER_PREFIX = "vv";
|
|
8
|
+
const DIRECTIVES = ["v-tooltip"];
|
|
9
|
+
const getStyleNames = function(kebabName) {
|
|
10
|
+
if (STYLE_EXCLUDE.includes(kebabName)) {
|
|
11
|
+
return void 0;
|
|
12
|
+
}
|
|
13
|
+
if (kebabName === "vv-dropdown") {
|
|
14
|
+
return ["vv-dropdown", "vv-dropdown-option", "vv-dropdown-action"];
|
|
15
|
+
}
|
|
16
|
+
if (kebabName === "vv-combobox") {
|
|
17
|
+
return [
|
|
9
18
|
"vv-select",
|
|
10
19
|
"vv-dropdown",
|
|
11
20
|
"vv-dropdown-option",
|
|
12
21
|
"vv-dropdown-action"
|
|
13
|
-
]
|
|
14
|
-
}
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
}
|
|
22
|
+
];
|
|
23
|
+
}
|
|
24
|
+
if (kebabName === "vv-accordion-group") {
|
|
25
|
+
return ["vv-accordion-group", "vv-accordion"];
|
|
26
|
+
}
|
|
27
|
+
if (kebabName === "vv-checkbox-group") {
|
|
28
|
+
return ["vv-checkbox-group", "vv-checkbox"];
|
|
29
|
+
}
|
|
30
|
+
if (kebabName === "vv-radio-group") {
|
|
31
|
+
return ["vv-radio-group", "vv-radio"];
|
|
32
|
+
}
|
|
33
|
+
if (kebabName === "v-tooltip") {
|
|
34
|
+
return ["vv-tooltip"];
|
|
35
|
+
}
|
|
36
|
+
return [kebabName];
|
|
24
37
|
};
|
|
25
|
-
function
|
|
26
|
-
|
|
27
|
-
importStyle
|
|
28
|
-
|
|
38
|
+
const getSideEffects = function(kebabName, importStyle) {
|
|
39
|
+
const sideEffects = [];
|
|
40
|
+
if (!importStyle) {
|
|
41
|
+
return sideEffects;
|
|
42
|
+
}
|
|
43
|
+
const styleNames = getStyleNames(kebabName);
|
|
44
|
+
if (styleNames) {
|
|
45
|
+
styleNames.forEach((name) => {
|
|
46
|
+
sideEffects.push(
|
|
47
|
+
`@volverjs/style/${importStyle === "scss" ? "scss/" : ""}components/${name}`
|
|
48
|
+
);
|
|
49
|
+
});
|
|
50
|
+
}
|
|
51
|
+
return sideEffects;
|
|
52
|
+
};
|
|
53
|
+
function VolverResolver({
|
|
54
|
+
prefix = VOLVER_PREFIX,
|
|
55
|
+
importStyle,
|
|
56
|
+
directives,
|
|
57
|
+
ignore
|
|
29
58
|
} = {}) {
|
|
30
59
|
return [
|
|
31
60
|
{
|
|
32
61
|
type: "component",
|
|
33
|
-
resolve: (
|
|
34
|
-
if (!
|
|
62
|
+
resolve: (name) => {
|
|
63
|
+
if (!prefix || !name.toLowerCase().startsWith(prefix.toLowerCase())) {
|
|
35
64
|
return;
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
`${
|
|
65
|
+
}
|
|
66
|
+
const kebabName = kebabCase(name).replace(
|
|
67
|
+
`${prefix}-`,
|
|
68
|
+
`${VOLVER_PREFIX}-`
|
|
39
69
|
);
|
|
70
|
+
if (ignore && ignore.includes(kebabName)) {
|
|
71
|
+
return;
|
|
72
|
+
}
|
|
40
73
|
return {
|
|
41
|
-
from: `@volverjs/ui-vue/${
|
|
42
|
-
sideEffects:
|
|
74
|
+
from: `@volverjs/ui-vue/${kebabName}`,
|
|
75
|
+
sideEffects: getSideEffects(kebabName, importStyle)
|
|
43
76
|
};
|
|
44
77
|
}
|
|
45
78
|
},
|
|
46
79
|
{
|
|
47
80
|
type: "directive",
|
|
48
|
-
resolve: (
|
|
49
|
-
if (!
|
|
81
|
+
resolve: (name) => {
|
|
82
|
+
if (!directives) {
|
|
83
|
+
return;
|
|
84
|
+
}
|
|
85
|
+
const kebabName = `v-${kebabCase(name)}`;
|
|
86
|
+
if (!DIRECTIVES.includes(kebabName)) {
|
|
50
87
|
return;
|
|
51
|
-
|
|
52
|
-
if (
|
|
53
|
-
return
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
}
|
|
88
|
+
}
|
|
89
|
+
if (ignore && ignore.includes(kebabName)) {
|
|
90
|
+
return;
|
|
91
|
+
}
|
|
92
|
+
return {
|
|
93
|
+
from: `@volverjs/ui-vue/${kebabName}`,
|
|
94
|
+
sideEffects: getSideEffects(kebabName, importStyle)
|
|
95
|
+
};
|
|
57
96
|
}
|
|
58
97
|
}
|
|
59
98
|
];
|
|
60
99
|
}
|
|
61
100
|
export {
|
|
62
|
-
|
|
101
|
+
VolverResolver,
|
|
102
|
+
getStyleNames
|
|
63
103
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
!function(o,e){"object"==typeof exports&&"undefined"!=typeof module?e(exports):"function"==typeof define&&define.amd?define(["exports"],e):e((o="undefined"!=typeof globalThis?globalThis:o||self).components={})}(this,(function(o){"use strict";function e(o,e){if("string"!=typeof o)throw new TypeError("expected a string");return o.trim().replace(/([a-z])([A-Z])/g,"$1-$2").replace(/\W/g,(o=>/[À-ž]/.test(o)?o:"-")).replace(/^-+|-+$/g,"").replace(/-{2,}/g,(o=>(null==e?void 0:e.condense)?"-":o)).toLowerCase()}const t=["vv-icon","vv-action"],r="vv",n=["v-tooltip"],v=function(o){if(!t.includes(o))return"vv-dropdown"===o?["vv-dropdown","vv-dropdown-option","vv-dropdown-action"]:"vv-combobox"===o?["vv-select","vv-dropdown","vv-dropdown-option","vv-dropdown-action"]:"vv-accordion-group"===o?["vv-accordion-group","vv-accordion"]:"vv-checkbox-group"===o?["vv-checkbox-group","vv-checkbox"]:"vv-radio-group"===o?["vv-radio-group","vv-radio"]:"v-tooltip"===o?["vv-tooltip"]:[o]},i=function(o,e){const t=[];if(!e)return t;const r=v(o);return r&&r.forEach((o=>{t.push(`@volverjs/style/${"scss"===e?"scss/":""}components/${o}`)})),t};o.VolverResolver=function({prefix:o=r,importStyle:t,directives:v,ignore:c}={}){return[{type:"component",resolve:n=>{if(!o||!n.toLowerCase().startsWith(o.toLowerCase()))return;const v=e(n).replace(`${o}-`,`${r}-`);return c&&c.includes(v)?void 0:{from:`@volverjs/ui-vue/${v}`,sideEffects:i(v,t)}}},{type:"directive",resolve:o=>{if(!v)return;const r=`v-${e(o)}`;return!n.includes(r)||c&&c.includes(r)?void 0:{from:`@volverjs/ui-vue/${r}`,sideEffects:i(r,t)}}}]},o.getStyleNames=v,Object.defineProperty(o,Symbol.toStringTag,{value:"Module"})}));
|
|
@@ -255,6 +255,18 @@ export declare const argTypes: {
|
|
|
255
255
|
};
|
|
256
256
|
};
|
|
257
257
|
};
|
|
258
|
+
strategy: {
|
|
259
|
+
description: string;
|
|
260
|
+
options: string[];
|
|
261
|
+
control: {
|
|
262
|
+
type: string;
|
|
263
|
+
};
|
|
264
|
+
table: {
|
|
265
|
+
defaultValue: {
|
|
266
|
+
summary: string;
|
|
267
|
+
};
|
|
268
|
+
};
|
|
269
|
+
};
|
|
258
270
|
transitionName: {
|
|
259
271
|
description: string;
|
|
260
272
|
control: {
|
|
@@ -75,6 +75,18 @@ export declare const argTypes: {
|
|
|
75
75
|
};
|
|
76
76
|
};
|
|
77
77
|
};
|
|
78
|
+
strategy: {
|
|
79
|
+
description: string;
|
|
80
|
+
options: string[];
|
|
81
|
+
control: {
|
|
82
|
+
type: string;
|
|
83
|
+
};
|
|
84
|
+
table: {
|
|
85
|
+
defaultValue: {
|
|
86
|
+
summary: string;
|
|
87
|
+
};
|
|
88
|
+
};
|
|
89
|
+
};
|
|
78
90
|
transitionName: {
|
|
79
91
|
description: string;
|
|
80
92
|
control: {
|
|
@@ -169,6 +169,59 @@ export declare const argTypes: {
|
|
|
169
169
|
};
|
|
170
170
|
};
|
|
171
171
|
};
|
|
172
|
+
mask: {
|
|
173
|
+
description: string;
|
|
174
|
+
type: {
|
|
175
|
+
summary: string;
|
|
176
|
+
};
|
|
177
|
+
control: {
|
|
178
|
+
type: string;
|
|
179
|
+
};
|
|
180
|
+
};
|
|
181
|
+
maskEager: {
|
|
182
|
+
description: string;
|
|
183
|
+
type: {
|
|
184
|
+
summary: string;
|
|
185
|
+
};
|
|
186
|
+
table: {
|
|
187
|
+
defaultValue: {
|
|
188
|
+
summary: boolean;
|
|
189
|
+
};
|
|
190
|
+
};
|
|
191
|
+
};
|
|
192
|
+
maskReversed: {
|
|
193
|
+
description: string;
|
|
194
|
+
type: {
|
|
195
|
+
summary: string;
|
|
196
|
+
};
|
|
197
|
+
table: {
|
|
198
|
+
defaultValue: {
|
|
199
|
+
summary: boolean;
|
|
200
|
+
};
|
|
201
|
+
};
|
|
202
|
+
};
|
|
203
|
+
maskTokens: {
|
|
204
|
+
description: string;
|
|
205
|
+
type: {
|
|
206
|
+
summary: string;
|
|
207
|
+
};
|
|
208
|
+
table: {
|
|
209
|
+
defaultValue: {
|
|
210
|
+
summary: string;
|
|
211
|
+
};
|
|
212
|
+
};
|
|
213
|
+
};
|
|
214
|
+
maskTokensReplace: {
|
|
215
|
+
description: string;
|
|
216
|
+
type: {
|
|
217
|
+
summary: string;
|
|
218
|
+
};
|
|
219
|
+
table: {
|
|
220
|
+
defaultValue: {
|
|
221
|
+
summary: boolean;
|
|
222
|
+
};
|
|
223
|
+
};
|
|
224
|
+
};
|
|
172
225
|
before: {
|
|
173
226
|
control: {
|
|
174
227
|
type: string;
|