vuetify 3.1.10 → 3.1.12

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (212) hide show
  1. package/dist/json/attributes.json +211 -39
  2. package/dist/json/importMap.json +82 -82
  3. package/dist/json/tags.json +46 -3
  4. package/dist/json/web-types.json +499 -73
  5. package/dist/vuetify-labs.css +330 -316
  6. package/dist/vuetify-labs.d.ts +56938 -14302
  7. package/dist/vuetify-labs.esm.js +178 -157
  8. package/dist/vuetify-labs.esm.js.map +1 -1
  9. package/dist/vuetify-labs.js +177 -156
  10. package/dist/vuetify-labs.min.css +2 -2
  11. package/dist/vuetify.css +71 -69
  12. package/dist/vuetify.d.ts +55237 -15799
  13. package/dist/vuetify.esm.js +154 -151
  14. package/dist/vuetify.esm.js.map +1 -1
  15. package/dist/vuetify.js +154 -151
  16. package/dist/vuetify.js.map +1 -1
  17. package/dist/vuetify.min.css +2 -2
  18. package/dist/vuetify.min.js +717 -718
  19. package/dist/vuetify.min.js.map +1 -1
  20. package/lib/blueprints/index.d.ts +6 -9
  21. package/lib/blueprints/md1.d.ts +6 -9
  22. package/lib/blueprints/md2.d.ts +6 -9
  23. package/lib/blueprints/md3.d.ts +6 -9
  24. package/lib/blueprints/md3.mjs +6 -0
  25. package/lib/blueprints/md3.mjs.map +1 -1
  26. package/lib/components/VAlert/index.d.ts +509 -83
  27. package/lib/components/VApp/VApp.css +1 -0
  28. package/lib/components/VApp/VApp.sass +1 -0
  29. package/lib/components/VApp/index.d.ts +158 -20
  30. package/lib/components/VAppBar/VAppBar.mjs +2 -2
  31. package/lib/components/VAppBar/VAppBar.mjs.map +1 -1
  32. package/lib/components/VAppBar/index.d.ts +616 -110
  33. package/lib/components/VAutocomplete/VAutocomplete.mjs +2 -2
  34. package/lib/components/VAutocomplete/VAutocomplete.mjs.map +1 -1
  35. package/lib/components/VAutocomplete/index.d.ts +1656 -130
  36. package/lib/components/VAvatar/index.d.ts +205 -29
  37. package/lib/components/VBadge/VBadge.css +1 -0
  38. package/lib/components/VBadge/VBadge.sass +1 -0
  39. package/lib/components/VBadge/index.d.ts +284 -42
  40. package/lib/components/VBanner/index.d.ts +478 -84
  41. package/lib/components/VBottomNavigation/index.d.ts +321 -40
  42. package/lib/components/VBreadcrumbs/index.d.ts +325 -45
  43. package/lib/components/VBtn/VBtn.css +0 -5
  44. package/lib/components/VBtn/VBtn.mjs +40 -39
  45. package/lib/components/VBtn/VBtn.mjs.map +1 -1
  46. package/lib/components/VBtn/VBtn.sass +0 -7
  47. package/lib/components/VBtn/_variables.scss +0 -2
  48. package/lib/components/VBtn/index.d.ts +452 -69
  49. package/lib/components/VBtnGroup/VBtnGroup.mjs +1 -7
  50. package/lib/components/VBtnGroup/VBtnGroup.mjs.map +1 -1
  51. package/lib/components/VBtnGroup/index.d.ts +185 -26
  52. package/lib/components/VBtnToggle/VBtnToggle.mjs +2 -2
  53. package/lib/components/VBtnToggle/VBtnToggle.mjs.map +1 -1
  54. package/lib/components/VBtnToggle/index.d.ts +245 -35
  55. package/lib/components/VCard/index.d.ts +938 -172
  56. package/lib/components/VCarousel/index.d.ts +561 -123
  57. package/lib/components/VCheckbox/VCheckbox.mjs +4 -4
  58. package/lib/components/VCheckbox/VCheckbox.mjs.map +1 -1
  59. package/lib/components/VCheckbox/VCheckboxBtn.mjs +1 -4
  60. package/lib/components/VCheckbox/VCheckboxBtn.mjs.map +1 -1
  61. package/lib/components/VCheckbox/index.d.ts +824 -149
  62. package/lib/components/VChip/index.d.ts +473 -75
  63. package/lib/components/VChipGroup/index.d.ts +227 -32
  64. package/lib/components/VCode/index.d.ts +109 -16
  65. package/lib/components/VColorPicker/index.d.ts +284 -20
  66. package/lib/components/VCombobox/VCombobox.mjs +11 -3
  67. package/lib/components/VCombobox/VCombobox.mjs.map +1 -1
  68. package/lib/components/VCombobox/index.d.ts +1668 -130
  69. package/lib/components/VCounter/index.d.ts +1894 -87
  70. package/lib/components/VDefaultsProvider/index.d.ts +131 -22
  71. package/lib/components/VDialog/VDialog.css +16 -16
  72. package/lib/components/VDialog/VDialog.mjs +4 -4
  73. package/lib/components/VDialog/VDialog.mjs.map +1 -1
  74. package/lib/components/VDialog/VDialog.sass +4 -4
  75. package/lib/components/VDialog/index.d.ts +2362 -146
  76. package/lib/components/VDivider/index.d.ts +130 -23
  77. package/lib/components/VExpansionPanel/index.d.ts +719 -119
  78. package/lib/components/VField/VField.mjs +5 -1
  79. package/lib/components/VField/VField.mjs.map +1 -1
  80. package/lib/components/VField/index.d.ts +163 -21
  81. package/lib/components/VFileInput/index.d.ts +1038 -104
  82. package/lib/components/VFooter/index.d.ts +203 -28
  83. package/lib/components/VForm/index.d.ts +204 -23
  84. package/lib/components/VGrid/VCol.mjs +5 -4
  85. package/lib/components/VGrid/VCol.mjs.map +1 -1
  86. package/lib/components/VGrid/VRow.mjs +3 -3
  87. package/lib/components/VGrid/VRow.mjs.map +1 -1
  88. package/lib/components/VGrid/index.d.ts +733 -76
  89. package/lib/components/VHover/index.d.ts +182 -35
  90. package/lib/components/VIcon/index.d.ts +494 -50
  91. package/lib/components/VImg/index.d.ts +275 -46
  92. package/lib/components/VInput/index.d.ts +315 -53
  93. package/lib/components/VItemGroup/index.d.ts +308 -52
  94. package/lib/components/VKbd/VKbd.css +1 -0
  95. package/lib/components/VKbd/VKbd.sass +1 -0
  96. package/lib/components/VKbd/_variables.scss +1 -0
  97. package/lib/components/VKbd/index.d.ts +109 -16
  98. package/lib/components/VLabel/index.d.ts +113 -20
  99. package/lib/components/VLayout/index.d.ts +296 -41
  100. package/lib/components/VLazy/VLazy.mjs +4 -1
  101. package/lib/components/VLazy/VLazy.mjs.map +1 -1
  102. package/lib/components/VLazy/index.d.ts +219 -30
  103. package/lib/components/VList/VListChildren.mjs +2 -2
  104. package/lib/components/VList/VListChildren.mjs.map +1 -1
  105. package/lib/components/VList/VListGroup.mjs +1 -4
  106. package/lib/components/VList/VListGroup.mjs.map +1 -1
  107. package/lib/components/VList/index.d.ts +1461 -223
  108. package/lib/components/VLocaleProvider/index.d.ts +121 -20
  109. package/lib/components/VMain/index.d.ts +118 -17
  110. package/lib/components/VMenu/VMenu.css +4 -4
  111. package/lib/components/VMenu/VMenu.mjs +2 -2
  112. package/lib/components/VMenu/VMenu.mjs.map +1 -1
  113. package/lib/components/VMenu/VMenu.sass +1 -1
  114. package/lib/components/VMenu/index.d.ts +2368 -142
  115. package/lib/components/VMessages/index.d.ts +1921 -98
  116. package/lib/components/VNavigationDrawer/index.d.ts +379 -56
  117. package/lib/components/VOverlay/VOverlay.css +1 -1
  118. package/lib/components/VOverlay/VOverlay.mjs +1 -4
  119. package/lib/components/VOverlay/VOverlay.mjs.map +1 -1
  120. package/lib/components/VOverlay/_variables.scss +1 -1
  121. package/lib/components/VOverlay/index.d.ts +519 -85
  122. package/lib/components/VPagination/index.d.ts +502 -68
  123. package/lib/components/VParallax/VParallax.mjs +3 -3
  124. package/lib/components/VParallax/VParallax.mjs.map +1 -1
  125. package/lib/components/VParallax/index.d.ts +141 -28
  126. package/lib/components/VProgressCircular/index.d.ts +186 -25
  127. package/lib/components/VProgressLinear/index.d.ts +319 -48
  128. package/lib/components/VRadio/index.d.ts +313 -57
  129. package/lib/components/VRadioGroup/VRadioGroup.mjs +4 -6
  130. package/lib/components/VRadioGroup/VRadioGroup.mjs.map +1 -1
  131. package/lib/components/VRadioGroup/index.d.ts +463 -83
  132. package/lib/components/VRangeSlider/index.d.ts +528 -80
  133. package/lib/components/VRating/index.d.ts +305 -43
  134. package/lib/components/VResponsive/index.d.ts +142 -27
  135. package/lib/components/VSelect/VSelect.mjs +2 -2
  136. package/lib/components/VSelect/VSelect.mjs.map +1 -1
  137. package/lib/components/VSelect/index.d.ts +3060 -328
  138. package/lib/components/VSelectionControl/VSelectionControl.mjs +1 -4
  139. package/lib/components/VSelectionControl/VSelectionControl.mjs.map +1 -1
  140. package/lib/components/VSelectionControl/index.d.ts +76 -4
  141. package/lib/components/VSelectionControlGroup/index.d.ts +242 -38
  142. package/lib/components/VSheet/VSheet.mjs +1 -7
  143. package/lib/components/VSheet/VSheet.mjs.map +1 -1
  144. package/lib/components/VSheet/index.d.ts +194 -31
  145. package/lib/components/VSlideGroup/index.d.ts +475 -83
  146. package/lib/components/VSlider/index.d.ts +521 -79
  147. package/lib/components/VSlider/slider.mjs +2 -5
  148. package/lib/components/VSlider/slider.mjs.map +1 -1
  149. package/lib/components/VSnackbar/VSnackbar.mjs +2 -2
  150. package/lib/components/VSnackbar/VSnackbar.mjs.map +1 -1
  151. package/lib/components/VSnackbar/index.d.ts +1219 -81
  152. package/lib/components/VSwitch/VSwitch.mjs +2 -2
  153. package/lib/components/VSwitch/VSwitch.mjs.map +1 -1
  154. package/lib/components/VSwitch/index.d.ts +498 -92
  155. package/lib/components/VSystemBar/index.d.ts +184 -27
  156. package/lib/components/VTable/index.d.ts +190 -35
  157. package/lib/components/VTabs/VTab.mjs +7 -23
  158. package/lib/components/VTabs/VTab.mjs.map +1 -1
  159. package/lib/components/VTabs/index.d.ts +623 -71
  160. package/lib/components/VTextField/VTextField.mjs +14 -6
  161. package/lib/components/VTextField/VTextField.mjs.map +1 -1
  162. package/lib/components/VTextField/index.d.ts +1404 -106
  163. package/lib/components/VTextarea/VTextarea.mjs +7 -1
  164. package/lib/components/VTextarea/VTextarea.mjs.map +1 -1
  165. package/lib/components/VTextarea/index.d.ts +1014 -102
  166. package/lib/components/VThemeProvider/index.d.ts +124 -19
  167. package/lib/components/VTimeline/index.d.ts +441 -71
  168. package/lib/components/VToolbar/VToolbar.mjs +1 -4
  169. package/lib/components/VToolbar/VToolbar.mjs.map +1 -1
  170. package/lib/components/VToolbar/index.d.ts +542 -93
  171. package/lib/components/VTooltip/VTooltip.css +3 -3
  172. package/lib/components/VTooltip/VTooltip.mjs +2 -2
  173. package/lib/components/VTooltip/VTooltip.mjs.map +1 -1
  174. package/lib/components/VTooltip/VTooltip.sass +1 -1
  175. package/lib/components/VTooltip/index.d.ts +1263 -81
  176. package/lib/components/VValidation/index.d.ts +201 -30
  177. package/lib/components/VWindow/index.d.ts +527 -95
  178. package/lib/components/index.d.ts +55122 -15681
  179. package/lib/components/transitions/index.d.ts +2097 -308
  180. package/lib/composables/display.mjs +2 -0
  181. package/lib/composables/display.mjs.map +1 -1
  182. package/lib/composables/form.mjs.map +1 -1
  183. package/lib/composables/forwardRefs.mjs +12 -15
  184. package/lib/composables/forwardRefs.mjs.map +1 -1
  185. package/lib/entry-bundler.mjs +1 -1
  186. package/lib/framework.mjs +1 -1
  187. package/lib/index.d.ts +30 -33
  188. package/lib/labs/VDataTable/VDataTable.css +12 -0
  189. package/lib/labs/VDataTable/VDataTable.mjs.map +1 -1
  190. package/lib/labs/VDataTable/VDataTable.sass +6 -0
  191. package/lib/labs/VDataTable/VDataTableRow.mjs +7 -4
  192. package/lib/labs/VDataTable/VDataTableRow.mjs.map +1 -1
  193. package/lib/labs/VDataTable/VDataTableRows.mjs +1 -0
  194. package/lib/labs/VDataTable/VDataTableRows.mjs.map +1 -1
  195. package/lib/labs/VDataTable/VDataTableServer.mjs +3 -1
  196. package/lib/labs/VDataTable/VDataTableServer.mjs.map +1 -1
  197. package/lib/labs/VDataTable/composables/items.mjs +14 -1
  198. package/lib/labs/VDataTable/composables/items.mjs.map +1 -1
  199. package/lib/labs/VDataTable/index.d.ts +4196 -1020
  200. package/lib/labs/VVirtualScroll/index.d.ts +32 -1
  201. package/lib/labs/components.d.ts +4232 -1030
  202. package/lib/styles/main.css +4 -0
  203. package/lib/styles/settings/_utilities.scss +7 -0
  204. package/lib/util/animation.mjs +8 -1
  205. package/lib/util/animation.mjs.map +1 -1
  206. package/lib/util/defineComponent.mjs +12 -5
  207. package/lib/util/defineComponent.mjs.map +1 -1
  208. package/lib/util/globals.mjs +1 -1
  209. package/lib/util/globals.mjs.map +1 -1
  210. package/lib/util/helpers.mjs +4 -0
  211. package/lib/util/helpers.mjs.map +1 -1
  212. package/package.json +3 -2
@@ -214,7 +214,11 @@ export const VField = genericComponent()({
214
214
  "key": "clear"
215
215
  }, {
216
216
  default: () => [_withDirectives(_createVNode("div", {
217
- "class": "v-field__clearable"
217
+ "class": "v-field__clearable",
218
+ "onMousedown": e => {
219
+ e.preventDefault();
220
+ e.stopPropagation();
221
+ }
218
222
  }, [slots.clear ? slots.clear() : _createVNode(InputIcon, {
219
223
  "name": "clear"
220
224
  }, null)]), [[_vShow, props.dirty]])]
@@ -1 +1 @@
1
- {"version":3,"file":"VField.mjs","names":["VExpandXTransition","useInputIcon","VFieldLabel","IconValue","LoaderSlot","makeLoaderProps","useLoader","makeFocusProps","useFocus","makeThemeProps","provideTheme","useBackgroundColor","useTextColor","computed","ref","toRef","watch","animate","convertToUnit","EventProp","genericComponent","getUid","isOn","nullifyTransforms","pick","propsFactory","standardEasing","useRender","allowedVariants","makeVFieldProps","appendInnerIcon","bgColor","String","clearable","Boolean","clearIcon","type","default","active","color","dirty","disabled","error","label","persistentClear","prependInnerIcon","reverse","singleLine","variant","validator","v","includes","VField","name","inheritAttrs","props","id","emits","focused","val","setup","attrs","emit","slots","themeClasses","loaderClasses","focusClasses","isFocused","focus","blur","InputIcon","isActive","hasLabel","uid","messagesId","value","labelRef","floatingLabelRef","controlRef","backgroundColorClasses","backgroundColorStyles","textColorClasses","textColorStyles","undefined","el","$el","targetEl","requestAnimationFrame","rect","targetRect","getBoundingClientRect","x","y","height","targetWidth","width","Math","abs","maxWidth","style","getComputedStyle","targetStyle","duration","parseFloat","transitionDuration","scale","getPropertyValue","visibility","transform","easing","direction","finished","then","removeProperty","flush","slotProps","onClick","e","target","document","activeElement","preventDefault","isOutlined","hasPrepend","hasClear","clear","hasAppend","for","loading","loader","class","filterFieldProps","keys","Object","filter","k"],"sources":["../../../src/components/VField/VField.tsx"],"sourcesContent":["// Styles\nimport './VField.sass'\n\n// Components\nimport { VExpandXTransition } from '@/components/transitions'\nimport { useInputIcon } from '@/components/VInput/InputIcon'\nimport { VFieldLabel } from './VFieldLabel'\n\n// Composables\nimport { IconValue } from '@/composables/icons'\nimport { LoaderSlot, makeLoaderProps, useLoader } from '@/composables/loader'\nimport { makeFocusProps, useFocus } from '@/composables/focus'\nimport { makeThemeProps, provideTheme } from '@/composables/theme'\nimport { useBackgroundColor, useTextColor } from '@/composables/color'\n\n// Utilities\nimport { computed, ref, toRef, watch } from 'vue'\nimport {\n animate,\n convertToUnit,\n EventProp,\n genericComponent,\n getUid,\n isOn,\n nullifyTransforms,\n pick,\n propsFactory,\n standardEasing,\n useRender,\n} from '@/util'\n\n// Types\nimport type { LoaderSlotProps } from '@/composables/loader'\nimport type { MakeSlots, SlotsToProps } from '@/util'\nimport type { PropType, Ref } from 'vue'\nimport type { VInputSlot } from '@/components/VInput/VInput'\n\nconst allowedVariants = ['underlined', 'outlined', 'filled', 'solo', 'plain'] as const\ntype Variant = typeof allowedVariants[number]\n\nexport interface DefaultInputSlot {\n isActive: Ref<boolean>\n isFocused: Ref<boolean>\n controlRef: Ref<HTMLElement | undefined>\n focus: () => void\n blur: () => void\n}\n\nexport interface VFieldSlot extends DefaultInputSlot {\n props: Record<string, unknown>\n}\n\nexport const makeVFieldProps = propsFactory({\n appendInnerIcon: IconValue,\n bgColor: String,\n clearable: Boolean,\n clearIcon: {\n type: IconValue,\n default: '$clear',\n },\n active: Boolean,\n color: String,\n dirty: Boolean,\n disabled: Boolean,\n error: Boolean,\n label: String,\n persistentClear: Boolean,\n prependInnerIcon: IconValue,\n reverse: Boolean,\n singleLine: Boolean,\n variant: {\n type: String as PropType<Variant>,\n default: 'filled',\n validator: (v: any) => allowedVariants.includes(v),\n },\n\n 'onClick:clear': EventProp,\n 'onClick:appendInner': EventProp,\n 'onClick:prependInner': EventProp,\n\n ...makeThemeProps(),\n ...makeLoaderProps(),\n}, 'v-field')\n\nexport type VFieldSlots = MakeSlots<{\n clear: []\n 'prepend-inner': [DefaultInputSlot & VInputSlot]\n 'append-inner': [DefaultInputSlot & VInputSlot]\n label: [DefaultInputSlot & VInputSlot]\n loader: [LoaderSlotProps]\n default: [VFieldSlot]\n}>\n\nexport const VField = genericComponent<new <T>() => {\n $props: {\n modelValue?: T\n 'onUpdate:modelValue'?: (val: T) => any\n } & SlotsToProps<VFieldSlots>\n}>()({\n name: 'VField',\n\n inheritAttrs: false,\n\n props: {\n id: String,\n\n ...makeFocusProps(),\n ...makeVFieldProps(),\n },\n\n emits: {\n 'update:focused': (focused: boolean) => true,\n 'update:modelValue': (val: any) => true,\n },\n\n setup (props, { attrs, emit, slots }) {\n const { themeClasses } = provideTheme(props)\n const { loaderClasses } = useLoader(props)\n const { focusClasses, isFocused, focus, blur } = useFocus(props)\n const { InputIcon } = useInputIcon(props)\n\n const isActive = computed(() => props.dirty || props.active)\n const hasLabel = computed(() => !props.singleLine && !!(props.label || slots.label))\n\n const uid = getUid()\n const id = computed(() => props.id || `input-${uid}`)\n const messagesId = computed(() => `${id.value}-messages`)\n\n const labelRef = ref<VFieldLabel>()\n const floatingLabelRef = ref<VFieldLabel>()\n const controlRef = ref<HTMLElement>()\n\n const { backgroundColorClasses, backgroundColorStyles } = useBackgroundColor(toRef(props, 'bgColor'))\n const { textColorClasses, textColorStyles } = useTextColor(computed(() => {\n return (\n isActive.value &&\n isFocused.value &&\n !props.error &&\n !props.disabled\n ) ? props.color : undefined\n }))\n\n watch(isActive, val => {\n if (hasLabel.value) {\n const el: HTMLElement = labelRef.value!.$el\n const targetEl: HTMLElement = floatingLabelRef.value!.$el\n\n requestAnimationFrame(() => {\n const rect = nullifyTransforms(el)\n const targetRect = targetEl.getBoundingClientRect()\n\n const x = targetRect.x - rect.x\n const y = targetRect.y - rect.y - (rect.height / 2 - targetRect.height / 2)\n\n const targetWidth = targetRect.width / 0.75\n const width = Math.abs(targetWidth - rect.width) > 1\n ? { maxWidth: convertToUnit(targetWidth) }\n : undefined\n\n const style = getComputedStyle(el)\n const targetStyle = getComputedStyle(targetEl)\n const duration = parseFloat(style.transitionDuration) * 1000 || 150\n const scale = parseFloat(targetStyle.getPropertyValue('--v-field-label-scale'))\n const color = targetStyle.getPropertyValue('color')\n\n el.style.visibility = 'visible'\n targetEl.style.visibility = 'hidden'\n\n animate(el, {\n transform: `translate(${x}px, ${y}px) scale(${scale})`,\n color,\n ...width,\n }, {\n duration,\n easing: standardEasing,\n direction: val ? 'normal' : 'reverse',\n }).finished.then(() => {\n el.style.removeProperty('visibility')\n targetEl.style.removeProperty('visibility')\n })\n })\n }\n }, { flush: 'post' })\n\n const slotProps = computed<DefaultInputSlot>(() => ({\n isActive,\n isFocused,\n controlRef,\n blur,\n focus,\n }))\n\n function onClick (e: MouseEvent) {\n if (e.target !== document.activeElement) {\n e.preventDefault()\n }\n }\n\n useRender(() => {\n const isOutlined = props.variant === 'outlined'\n const hasPrepend = (slots['prepend-inner'] || props.prependInnerIcon)\n const hasClear = !!(props.clearable || slots.clear)\n const hasAppend = !!(slots['append-inner'] || props.appendInnerIcon || hasClear)\n const label = slots.label\n ? slots.label({\n label: props.label,\n props: { for: id.value },\n })\n : props.label\n\n return (\n <div\n class={[\n 'v-field',\n {\n 'v-field--active': isActive.value,\n 'v-field--appended': hasAppend,\n 'v-field--disabled': props.disabled,\n 'v-field--dirty': props.dirty,\n 'v-field--error': props.error,\n 'v-field--has-background': !!props.bgColor,\n 'v-field--persistent-clear': props.persistentClear,\n 'v-field--prepended': hasPrepend,\n 'v-field--reverse': props.reverse,\n 'v-field--single-line': props.singleLine,\n 'v-field--no-label': !label,\n [`v-field--variant-${props.variant}`]: true,\n },\n themeClasses.value,\n backgroundColorClasses.value,\n focusClasses.value,\n loaderClasses.value,\n ]}\n style={[\n backgroundColorStyles.value,\n textColorStyles.value,\n ]}\n onClick={ onClick }\n { ...attrs }\n >\n <div class=\"v-field__overlay\" />\n\n <LoaderSlot\n name=\"v-field\"\n active={ !!props.loading }\n color={ props.error ? 'error' : props.color }\n v-slots={{ default: slots.loader }}\n />\n\n { hasPrepend && (\n <div key=\"prepend\" class=\"v-field__prepend-inner\">\n { props.prependInnerIcon && (\n <InputIcon key=\"prepend-icon\" name=\"prependInner\" />\n )}\n\n { slots['prepend-inner']?.(slotProps.value) }\n </div>\n )}\n\n <div class=\"v-field__field\" data-no-activator=\"\">\n {['solo', 'filled'].includes(props.variant) && hasLabel.value && (\n <VFieldLabel\n key=\"floating-label\"\n ref={ floatingLabelRef }\n class={[textColorClasses.value]}\n floating\n for={ id.value }\n >\n { label }\n </VFieldLabel>\n )}\n\n <VFieldLabel ref={ labelRef } for={ id.value }>\n { label }\n </VFieldLabel>\n\n { slots.default?.({\n ...slotProps.value,\n props: {\n id: id.value,\n class: 'v-field__input',\n 'aria-describedby': messagesId.value,\n },\n focus,\n blur,\n } as VFieldSlot)}\n </div>\n\n { hasClear && (\n <VExpandXTransition key=\"clear\">\n <div\n class=\"v-field__clearable\"\n v-show={ props.dirty }\n >\n { slots.clear\n ? slots.clear()\n : <InputIcon name=\"clear\" />\n }\n </div>\n </VExpandXTransition>\n )}\n\n { hasAppend && (\n <div key=\"append\" class=\"v-field__append-inner\">\n { slots['append-inner']?.(slotProps.value) }\n\n { props.appendInnerIcon && (\n <InputIcon key=\"append-icon\" name=\"appendInner\" />\n )}\n </div>\n )}\n\n <div\n class={[\n 'v-field__outline',\n textColorClasses.value,\n ]}\n >\n { isOutlined && (\n <>\n <div class=\"v-field__outline__start\" />\n\n { hasLabel.value && (\n <div class=\"v-field__outline__notch\">\n <VFieldLabel ref={ floatingLabelRef } floating for={ id.value }>\n { label }\n </VFieldLabel>\n </div>\n )}\n\n <div class=\"v-field__outline__end\" />\n </>\n )}\n\n {['plain', 'underlined'].includes(props.variant) && hasLabel.value && (\n <VFieldLabel ref={ floatingLabelRef } floating for={ id.value }>\n { label }\n </VFieldLabel>\n )}\n </div>\n </div>\n )\n })\n\n return {\n controlRef,\n }\n },\n})\n\nexport type VField = InstanceType<typeof VField>\n\n// TODO: this is kinda slow, might be better to implicitly inherit props instead\nexport function filterFieldProps (attrs: Record<string, unknown>) {\n const keys = Object.keys(VField.props).filter(k => !isOn(k))\n return pick(att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AI,CAACiH,CAAC,CAAC,CAAC;EAC5D,OAAO/G,IAAI,CAACqC,KAAK,EAAEuE,IAAI,CAAC;AAC1B"}
1
+ {"version":3,"file":"VField.mjs","names":["VExpandXTransition","useInputIcon","VFieldLabel","IconValue","LoaderSlot","makeLoaderProps","useLoader","makeFocusProps","useFocus","makeThemeProps","provideTheme","useBackgroundColor","useTextColor","computed","ref","toRef","watch","animate","convertToUnit","EventProp","genericComponent","getUid","isOn","nullifyTransforms","pick","propsFactory","standardEasing","useRender","allowedVariants","makeVFieldProps","appendInnerIcon","bgColor","String","clearable","Boolean","clearIcon","type","default","active","color","dirty","disabled","error","label","persistentClear","prependInnerIcon","reverse","singleLine","variant","validator","v","includes","VField","name","inheritAttrs","props","id","emits","focused","val","setup","attrs","emit","slots","themeClasses","loaderClasses","focusClasses","isFocused","focus","blur","InputIcon","isActive","hasLabel","uid","messagesId","value","labelRef","floatingLabelRef","controlRef","backgroundColorClasses","backgroundColorStyles","textColorClasses","textColorStyles","undefined","el","$el","targetEl","requestAnimationFrame","rect","targetRect","getBoundingClientRect","x","y","height","targetWidth","width","Math","abs","maxWidth","style","getComputedStyle","targetStyle","duration","parseFloat","transitionDuration","scale","getPropertyValue","visibility","transform","easing","direction","finished","then","removeProperty","flush","slotProps","onClick","e","target","document","activeElement","preventDefault","isOutlined","hasPrepend","hasClear","clear","hasAppend","for","loading","loader","class","stopPropagation","filterFieldProps","keys","Object","filter","k"],"sources":["../../../src/components/VField/VField.tsx"],"sourcesContent":["// Styles\nimport './VField.sass'\n\n// Components\nimport { VExpandXTransition } from '@/components/transitions'\nimport { useInputIcon } from '@/components/VInput/InputIcon'\nimport { VFieldLabel } from './VFieldLabel'\n\n// Composables\nimport { IconValue } from '@/composables/icons'\nimport { LoaderSlot, makeLoaderProps, useLoader } from '@/composables/loader'\nimport { makeFocusProps, useFocus } from '@/composables/focus'\nimport { makeThemeProps, provideTheme } from '@/composables/theme'\nimport { useBackgroundColor, useTextColor } from '@/composables/color'\n\n// Utilities\nimport { computed, ref, toRef, watch } from 'vue'\nimport {\n animate,\n convertToUnit,\n EventProp,\n genericComponent,\n getUid,\n isOn,\n nullifyTransforms,\n pick,\n propsFactory,\n standardEasing,\n useRender,\n} from '@/util'\n\n// Types\nimport type { LoaderSlotProps } from '@/composables/loader'\nimport type { MakeSlots, SlotsToProps } from '@/util'\nimport type { PropType, Ref } from 'vue'\nimport type { VInputSlot } from '@/components/VInput/VInput'\n\nconst allowedVariants = ['underlined', 'outlined', 'filled', 'solo', 'plain'] as const\ntype Variant = typeof allowedVariants[number]\n\nexport interface DefaultInputSlot {\n isActive: Ref<boolean>\n isFocused: Ref<boolean>\n controlRef: Ref<HTMLElement | undefined>\n focus: () => void\n blur: () => void\n}\n\nexport interface VFieldSlot extends DefaultInputSlot {\n props: Record<string, unknown>\n}\n\nexport const makeVFieldProps = propsFactory({\n appendInnerIcon: IconValue,\n bgColor: String,\n clearable: Boolean,\n clearIcon: {\n type: IconValue,\n default: '$clear',\n },\n active: Boolean,\n color: String,\n dirty: Boolean,\n disabled: Boolean,\n error: Boolean,\n label: String,\n persistentClear: Boolean,\n prependInnerIcon: IconValue,\n reverse: Boolean,\n singleLine: Boolean,\n variant: {\n type: String as PropType<Variant>,\n default: 'filled',\n validator: (v: any) => allowedVariants.includes(v),\n },\n\n 'onClick:clear': EventProp,\n 'onClick:appendInner': EventProp,\n 'onClick:prependInner': EventProp,\n\n ...makeThemeProps(),\n ...makeLoaderProps(),\n}, 'v-field')\n\nexport type VFieldSlots = MakeSlots<{\n clear: []\n 'prepend-inner': [DefaultInputSlot & VInputSlot]\n 'append-inner': [DefaultInputSlot & VInputSlot]\n label: [DefaultInputSlot & VInputSlot]\n loader: [LoaderSlotProps]\n default: [VFieldSlot]\n}>\n\nexport const VField = genericComponent<new <T>() => {\n $props: {\n modelValue?: T\n 'onUpdate:modelValue'?: (val: T) => any\n } & SlotsToProps<VFieldSlots>\n}>()({\n name: 'VField',\n\n inheritAttrs: false,\n\n props: {\n id: String,\n\n ...makeFocusProps(),\n ...makeVFieldProps(),\n },\n\n emits: {\n 'update:focused': (focused: boolean) => true,\n 'update:modelValue': (val: any) => true,\n },\n\n setup (props, { attrs, emit, slots }) {\n const { themeClasses } = provideTheme(props)\n const { loaderClasses } = useLoader(props)\n const { focusClasses, isFocused, focus, blur } = useFocus(props)\n const { InputIcon } = useInputIcon(props)\n\n const isActive = computed(() => props.dirty || props.active)\n const hasLabel = computed(() => !props.singleLine && !!(props.label || slots.label))\n\n const uid = getUid()\n const id = computed(() => props.id || `input-${uid}`)\n const messagesId = computed(() => `${id.value}-messages`)\n\n const labelRef = ref<VFieldLabel>()\n const floatingLabelRef = ref<VFieldLabel>()\n const controlRef = ref<HTMLElement>()\n\n const { backgroundColorClasses, backgroundColorStyles } = useBackgroundColor(toRef(props, 'bgColor'))\n const { textColorClasses, textColorStyles } = useTextColor(computed(() => {\n return (\n isActive.value &&\n isFocused.value &&\n !props.error &&\n !props.disabled\n ) ? props.color : undefined\n }))\n\n watch(isActive, val => {\n if (hasLabel.value) {\n const el: HTMLElement = labelRef.value!.$el\n const targetEl: HTMLElement = floatingLabelRef.value!.$el\n\n requestAnimationFrame(() => {\n const rect = nullifyTransforms(el)\n const targetRect = targetEl.getBoundingClientRect()\n\n const x = targetRect.x - rect.x\n const y = targetRect.y - rect.y - (rect.height / 2 - targetRect.height / 2)\n\n const targetWidth = targetRect.width / 0.75\n const width = Math.abs(targetWidth - rect.width) > 1\n ? { maxWidth: convertToUnit(targetWidth) }\n : undefined\n\n const style = getComputedStyle(el)\n const targetStyle = getComputedStyle(targetEl)\n const duration = parseFloat(style.transitionDuration) * 1000 || 150\n const scale = parseFloat(targetStyle.getPropertyValue('--v-field-label-scale'))\n const color = targetStyle.getPropertyValue('color')\n\n el.style.visibility = 'visible'\n targetEl.style.visibility = 'hidden'\n\n animate(el, {\n transform: `translate(${x}px, ${y}px) scale(${scale})`,\n color,\n ...width,\n }, {\n duration,\n easing: standardEasing,\n direction: val ? 'normal' : 'reverse',\n }).finished.then(() => {\n el.style.removeProperty('visibility')\n targetEl.style.removeProperty('visibility')\n })\n })\n }\n }, { flush: 'post' })\n\n const slotProps = computed<DefaultInputSlot>(() => ({\n isActive,\n isFocused,\n controlRef,\n blur,\n focus,\n }))\n\n function onClick (e: MouseEvent) {\n if (e.target !== document.activeElement) {\n e.preventDefault()\n }\n }\n\n useRender(() => {\n const isOutlined = props.variant === 'outlined'\n const hasPrepend = (slots['prepend-inner'] || props.prependInnerIcon)\n const hasClear = !!(props.clearable || slots.clear)\n const hasAppend = !!(slots['append-inner'] || props.appendInnerIcon || hasClear)\n const label = slots.label\n ? slots.label({\n label: props.label,\n props: { for: id.value },\n })\n : props.label\n\n return (\n <div\n class={[\n 'v-field',\n {\n 'v-field--active': isActive.value,\n 'v-field--appended': hasAppend,\n 'v-field--disabled': props.disabled,\n 'v-field--dirty': props.dirty,\n 'v-field--error': props.error,\n 'v-field--has-background': !!props.bgColor,\n 'v-field--persistent-clear': props.persistentClear,\n 'v-field--prepended': hasPrepend,\n 'v-field--reverse': props.reverse,\n 'v-field--single-line': props.singleLine,\n 'v-field--no-label': !label,\n [`v-field--variant-${props.variant}`]: true,\n },\n themeClasses.value,\n backgroundColorClasses.value,\n focusClasses.value,\n loaderClasses.value,\n ]}\n style={[\n backgroundColorStyles.value,\n textColorStyles.value,\n ]}\n onClick={ onClick }\n { ...attrs }\n >\n <div class=\"v-field__overlay\" />\n\n <LoaderSlot\n name=\"v-field\"\n active={ !!props.loading }\n color={ props.error ? 'error' : props.color }\n v-slots={{ default: slots.loader }}\n />\n\n { hasPrepend && (\n <div key=\"prepend\" class=\"v-field__prepend-inner\">\n { props.prependInnerIcon && (\n <InputIcon key=\"prepend-icon\" name=\"prependInner\" />\n )}\n\n { slots['prepend-inner']?.(slotProps.value) }\n </div>\n )}\n\n <div class=\"v-field__field\" data-no-activator=\"\">\n {['solo', 'filled'].includes(props.variant) && hasLabel.value && (\n <VFieldLabel\n key=\"floating-label\"\n ref={ floatingLabelRef }\n class={[textColorClasses.value]}\n floating\n for={ id.value }\n >\n { label }\n </VFieldLabel>\n )}\n\n <VFieldLabel ref={ labelRef } for={ id.value }>\n { label }\n </VFieldLabel>\n\n { slots.default?.({\n ...slotProps.value,\n props: {\n id: id.value,\n class: 'v-field__input',\n 'aria-describedby': messagesId.value,\n },\n focus,\n blur,\n } as VFieldSlot)}\n </div>\n\n { hasClear && (\n <VExpandXTransition key=\"clear\">\n <div\n class=\"v-field__clearable\"\n v-show={ props.dirty }\n onMousedown={ (e: MouseEvent) => {\n e.preventDefault()\n e.stopPropagation()\n }}\n >\n { slots.clear\n ? slots.clear()\n : <InputIcon name=\"clear\" />\n }\n </div>\n </VExpandXTransition>\n )}\n\n { hasAppend && (\n <div key=\"append\" class=\"v-field__append-inner\">\n { slots['append-inner']?.(slotProps.value) }\n\n { props.appendInnerIcon && (\n <InputIcon key=\"append-icon\" name=\"appendInner\" />\n )}\n </div>\n )}\n\n <div\n class={[\n 'v-field__outline',\n textColorClasses.value,\n ]}\n >\n { isOutlined && (\n <>\n <div class=\"v-field__outline__start\" />\n\n { hasLabel.value && (\n <div class=\"v-field__outline__notch\">\n <VFieldLabel ref={ floatingLabelRef } floating for={ id.value }>\n { label }\n </VFieldLabel>\n </div>\n )}\n\n <div class=\"v-field__outline__end\" />\n </>\n )}\n\n {['plain', 'underlined'].includes(props.variant) && hasLabel.value && (\n <VFieldLabel ref={ floatingLabelRef } floating for={ id.value }>\n { label }\n </VFieldLabel>\n )}\n </div>\n </div>\n )\n })\n\n return {\n controlRef,\n }\n },\n})\n\nexport type VField = InstanceType<typeof VField>\n\n// TODO: this is kinda slow, might be better to implicitly inherit props instead\nexport function filterFieldProps (attrs: Record<string, unknown>) {\n const keys = Object.keys(VField.props).filter(k => !isOn(k))\n return pick(attrs, keys)\n}\n"],"mappings":";AAAA;AACA;;AAEA;AAAA,SACSA,kBAAkB;AAAA,SAClBC,YAAY;AAAA,SACZC,WAAW,6BAEpB;A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,CAAC,CAAC,CAAC;EAC5D,OAAOhH,IAAI,CAACqC,KAAK,EAAEwE,IAAI,CAAC;AAC1B"}
@@ -1,12 +1,16 @@
1
1
  import * as vue from 'vue';
2
- import { JSXComponent, PropType, ComputedRef, Ref } from 'vue';
2
+ import { ComponentPropsOptions, ExtractPropTypes, PropType, JSXComponent, ComputedRef, Ref } from 'vue';
3
3
 
4
- type IconValue = string | JSXComponent;
5
- declare const IconValue: PropType<IconValue>;
4
+ interface FilterPropsOptions<PropsOptions extends Readonly<ComponentPropsOptions>, Props = ExtractPropTypes<PropsOptions>> {
5
+ filterProps<T extends Partial<Props>, U extends Exclude<keyof Props, Exclude<keyof Props, keyof T>>>(props: T): [yes: Partial<Pick<T, U>>, no: Omit<T, U>];
6
+ }
6
7
 
7
8
  type EventProp<T = (...args: any[]) => any> = T | T[];
8
9
  declare const EventProp: PropType<EventProp<(...args: any[]) => any>>;
9
10
 
11
+ type IconValue = string | JSXComponent;
12
+ declare const IconValue: PropType<IconValue>;
13
+
10
14
  interface LoaderSlotProps {
11
15
  color: string | undefined;
12
16
  isActive: boolean;
@@ -291,24 +295,158 @@ declare const VField: {
291
295
  "v-slot:loader"?: false | ((args_0: LoaderSlotProps) => vue.VNodeChild) | undefined;
292
296
  "v-slot:default"?: false | ((args_0: VFieldSlot) => vue.VNodeChild) | undefined;
293
297
  };
294
- });
298
+ }) & FilterPropsOptions<{
299
+ loading: (StringConstructor | BooleanConstructor)[];
300
+ theme: StringConstructor;
301
+ appendInnerIcon: PropType<IconValue>;
302
+ bgColor: StringConstructor;
303
+ clearable: BooleanConstructor;
304
+ clearIcon: {
305
+ type: PropType<IconValue>;
306
+ default: string;
307
+ };
308
+ active: BooleanConstructor;
309
+ color: StringConstructor;
310
+ dirty: BooleanConstructor;
311
+ disabled: BooleanConstructor;
312
+ error: BooleanConstructor;
313
+ label: StringConstructor;
314
+ persistentClear: BooleanConstructor;
315
+ prependInnerIcon: PropType<IconValue>;
316
+ reverse: BooleanConstructor;
317
+ singleLine: BooleanConstructor;
318
+ variant: {
319
+ type: PropType<"filled" | "outlined" | "plain" | "underlined" | "solo">;
320
+ default: string;
321
+ validator: (v: any) => boolean;
322
+ };
323
+ 'onClick:clear': PropType<EventProp<(...args: any[]) => any>>;
324
+ 'onClick:appendInner': PropType<EventProp<(...args: any[]) => any>>;
325
+ 'onClick:prependInner': PropType<EventProp<(...args: any[]) => any>>;
326
+ focused: BooleanConstructor;
327
+ id: StringConstructor;
328
+ }, vue.ExtractPropTypes<{
329
+ loading: (StringConstructor | BooleanConstructor)[];
330
+ theme: StringConstructor;
331
+ appendInnerIcon: PropType<IconValue>;
332
+ bgColor: StringConstructor;
333
+ clearable: BooleanConstructor;
334
+ clearIcon: {
335
+ type: PropType<IconValue>;
336
+ default: string;
337
+ };
338
+ active: BooleanConstructor;
339
+ color: StringConstructor;
340
+ dirty: BooleanConstructor;
341
+ disabled: BooleanConstructor;
342
+ error: BooleanConstructor;
343
+ label: StringConstructor;
344
+ persistentClear: BooleanConstructor;
345
+ prependInnerIcon: PropType<IconValue>;
346
+ reverse: BooleanConstructor;
347
+ singleLine: BooleanConstructor;
348
+ variant: {
349
+ type: PropType<"filled" | "outlined" | "plain" | "underlined" | "solo">;
350
+ default: string;
351
+ validator: (v: any) => boolean;
352
+ };
353
+ 'onClick:clear': PropType<EventProp<(...args: any[]) => any>>;
354
+ 'onClick:appendInner': PropType<EventProp<(...args: any[]) => any>>;
355
+ 'onClick:prependInner': PropType<EventProp<(...args: any[]) => any>>;
356
+ focused: BooleanConstructor;
357
+ id: StringConstructor;
358
+ }>>;
295
359
  type VField = InstanceType<typeof VField>;
296
360
 
297
- declare const VFieldLabel: vue.DefineComponent<{
298
- floating: boolean;
299
- } & {} & {
300
- $children?: vue.VNodeChild | (() => vue.VNodeChild) | {
301
- default?: (() => vue.VNodeChild) | undefined;
302
- };
303
- $slots?: {
304
- default?: (() => vue.VNodeChild) | undefined;
305
- } | undefined;
306
- 'v-slots'?: {
307
- default?: false | (() => vue.VNodeChild) | undefined;
308
- } | undefined;
309
- } & {
310
- "v-slot:default"?: false | (() => vue.VNodeChild) | undefined;
311
- }, {}, unknown, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, Record<string, any>, string, vue.VNodeProps & vue.AllowedComponentProps & vue.ComponentCustomProps, {
361
+ declare const VFieldLabel: {
362
+ new (...args: any[]): {
363
+ $: vue.ComponentInternalInstance;
364
+ $data: {};
365
+ $props: Partial<{
366
+ floating: boolean;
367
+ }> & Omit<{
368
+ floating: boolean;
369
+ } & {} & {
370
+ $children?: vue.VNodeChild | (() => vue.VNodeChild) | {
371
+ default?: (() => vue.VNodeChild) | undefined;
372
+ };
373
+ $slots?: {
374
+ default?: (() => vue.VNodeChild) | undefined;
375
+ } | undefined;
376
+ 'v-slots'?: {
377
+ default?: false | (() => vue.VNodeChild) | undefined;
378
+ } | undefined;
379
+ } & {
380
+ "v-slot:default"?: false | (() => vue.VNodeChild) | undefined;
381
+ } & vue.VNodeProps & vue.AllowedComponentProps & vue.ComponentCustomProps, "floating">;
382
+ $attrs: {
383
+ [x: string]: unknown;
384
+ };
385
+ $refs: {
386
+ [x: string]: unknown;
387
+ };
388
+ $slots: Readonly<{
389
+ [name: string]: vue.Slot | undefined;
390
+ }>;
391
+ $root: vue.ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, vue.ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string>, {}> | null;
392
+ $parent: vue.ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, vue.ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string>, {}> | null;
393
+ $emit: (event: string, ...args: any[]) => void;
394
+ $el: any;
395
+ $options: vue.ComponentOptionsBase<{
396
+ floating: boolean;
397
+ } & {} & {
398
+ $children?: vue.VNodeChild | (() => vue.VNodeChild) | {
399
+ default?: (() => vue.VNodeChild) | undefined;
400
+ };
401
+ $slots?: {
402
+ default?: (() => vue.VNodeChild) | undefined;
403
+ } | undefined;
404
+ 'v-slots'?: {
405
+ default?: false | (() => vue.VNodeChild) | undefined;
406
+ } | undefined;
407
+ } & {
408
+ "v-slot:default"?: false | (() => vue.VNodeChild) | undefined;
409
+ }, {}, unknown, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, Record<string, any>, string, {
410
+ floating: boolean;
411
+ }, {}, string> & {
412
+ beforeCreate?: ((() => void) | (() => void)[]) | undefined;
413
+ created?: ((() => void) | (() => void)[]) | undefined;
414
+ beforeMount?: ((() => void) | (() => void)[]) | undefined;
415
+ mounted?: ((() => void) | (() => void)[]) | undefined;
416
+ beforeUpdate?: ((() => void) | (() => void)[]) | undefined;
417
+ updated?: ((() => void) | (() => void)[]) | undefined;
418
+ activated?: ((() => void) | (() => void)[]) | undefined;
419
+ deactivated?: ((() => void) | (() => void)[]) | undefined;
420
+ beforeDestroy?: ((() => void) | (() => void)[]) | undefined;
421
+ beforeUnmount?: ((() => void) | (() => void)[]) | undefined;
422
+ destroyed?: ((() => void) | (() => void)[]) | undefined;
423
+ unmounted?: ((() => void) | (() => void)[]) | undefined;
424
+ renderTracked?: (((e: vue.DebuggerEvent) => void) | ((e: vue.DebuggerEvent) => void)[]) | undefined;
425
+ renderTriggered?: (((e: vue.DebuggerEvent) => void) | ((e: vue.DebuggerEvent) => void)[]) | undefined;
426
+ errorCaptured?: (((err: unknown, instance: vue.ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, vue.ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string>, {}> | null, info: string) => boolean | void) | ((err: unknown, instance: vue.ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, vue.ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string>, {}> | null, info: string) => boolean | void)[]) | undefined;
427
+ };
428
+ $forceUpdate: () => void;
429
+ $nextTick: typeof vue.nextTick;
430
+ $watch<T extends string | ((...args: any) => any)>(source: T, cb: T extends (...args: any) => infer R ? (args_0: R, args_1: R) => any : (...args: any) => any, options?: vue.WatchOptions<boolean> | undefined): vue.WatchStopHandle;
431
+ } & {
432
+ floating: boolean;
433
+ } & {} & {
434
+ $children?: vue.VNodeChild | (() => vue.VNodeChild) | {
435
+ default?: (() => vue.VNodeChild) | undefined;
436
+ };
437
+ $slots?: {
438
+ default?: (() => vue.VNodeChild) | undefined;
439
+ } | undefined;
440
+ 'v-slots'?: {
441
+ default?: false | (() => vue.VNodeChild) | undefined;
442
+ } | undefined;
443
+ } & {
444
+ "v-slot:default"?: false | (() => vue.VNodeChild) | undefined;
445
+ } & vue.ShallowUnwrapRef<{}> & {} & vue.ComponentCustomProperties & {};
446
+ __isFragment?: undefined;
447
+ __isTeleport?: undefined;
448
+ __isSuspense?: undefined;
449
+ } & vue.ComponentOptionsBase<{
312
450
  floating: boolean;
313
451
  } & {} & {
314
452
  $children?: vue.VNodeChild | (() => vue.VNodeChild) | {
@@ -322,9 +460,13 @@ declare const VFieldLabel: vue.DefineComponent<{
322
460
  } | undefined;
323
461
  } & {
324
462
  "v-slot:default"?: false | (() => vue.VNodeChild) | undefined;
325
- }, {
463
+ }, {}, unknown, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, Record<string, any>, string, {
326
464
  floating: boolean;
327
- }>;
465
+ }, {}, string> & vue.VNodeProps & vue.AllowedComponentProps & vue.ComponentCustomProps & FilterPropsOptions<{
466
+ floating: BooleanConstructor;
467
+ }, vue.ExtractPropTypes<{
468
+ floating: BooleanConstructor;
469
+ }>>;
328
470
  type VFieldLabel = InstanceType<typeof VFieldLabel>;
329
471
 
330
472
  export { VField, VFieldLabel };