@vuetify/nightly 3.7.12-master.2025-02-17 → 3.7.12-master.2025-02-18

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 (229) hide show
  1. package/CHANGELOG.md +13 -3
  2. package/dist/json/attributes.json +2695 -2695
  3. package/dist/json/importMap-labs.json +24 -24
  4. package/dist/json/importMap.json +176 -176
  5. package/dist/json/web-types.json +4990 -4990
  6. package/dist/vuetify-labs.css +2607 -2610
  7. package/dist/vuetify-labs.d.ts +110 -110
  8. package/dist/vuetify-labs.esm.js +29 -29
  9. package/dist/vuetify-labs.esm.js.map +1 -1
  10. package/dist/vuetify-labs.js +28 -28
  11. package/dist/vuetify-labs.min.css +2 -2
  12. package/dist/vuetify.css +4455 -4458
  13. package/dist/vuetify.d.ts +139 -139
  14. package/dist/vuetify.esm.js +19 -24
  15. package/dist/vuetify.esm.js.map +1 -1
  16. package/dist/vuetify.js +18 -23
  17. package/dist/vuetify.js.map +1 -1
  18. package/dist/vuetify.min.css +2 -2
  19. package/dist/vuetify.min.js +13 -13
  20. package/dist/vuetify.min.js.map +1 -1
  21. package/lib/blueprints/index.d.mts +1 -1
  22. package/lib/blueprints/md1.d.mts +1 -1
  23. package/lib/blueprints/md2.d.mts +1 -1
  24. package/lib/blueprints/md3.d.mts +1 -1
  25. package/lib/components/VAlert/VAlert.mjs +1 -1
  26. package/lib/components/VAlert/index.d.mts +1 -1
  27. package/lib/components/VAppBar/VAppBar.mjs +1 -1
  28. package/lib/components/VAppBar/VAppBarNavIcon.mjs +1 -1
  29. package/lib/components/VAppBar/VAppBarTitle.mjs +1 -1
  30. package/lib/components/VAppBar/index.d.mts +5 -5
  31. package/lib/components/VAutocomplete/VAutocomplete.mjs +1 -1
  32. package/lib/components/VAutocomplete/index.d.mts +4 -4
  33. package/lib/components/VAvatar/index.d.mts +1 -1
  34. package/lib/components/VBadge/VBadge.mjs +1 -1
  35. package/lib/components/VBadge/index.d.mts +1 -1
  36. package/lib/components/VBanner/VBanner.mjs +1 -1
  37. package/lib/components/VBanner/index.d.mts +1 -1
  38. package/lib/components/VBottomNavigation/VBottomNavigation.css +1 -0
  39. package/lib/components/VBottomNavigation/VBottomNavigation.sass +1 -0
  40. package/lib/components/VBottomNavigation/index.d.mts +1 -1
  41. package/lib/components/VBottomSheet/VBottomSheet.mjs +1 -1
  42. package/lib/components/VBreadcrumbs/VBreadcrumbs.mjs +1 -1
  43. package/lib/components/VBreadcrumbs/VBreadcrumbsItem.mjs +1 -1
  44. package/lib/components/VBreadcrumbs/index.d.mts +5 -5
  45. package/lib/components/VBtn/VBtn.mjs +1 -1
  46. package/lib/components/VBtn/index.d.mts +5 -5
  47. package/lib/components/VBtnGroup/VBtnGroup.mjs +1 -1
  48. package/lib/components/VBtnToggle/VBtnToggle.mjs +1 -1
  49. package/lib/components/VBtnToggle/index.d.mts +1 -1
  50. package/lib/components/VCard/VCard.mjs +1 -1
  51. package/lib/components/VCard/VCardItem.mjs +1 -1
  52. package/lib/components/VCard/VCardSubtitle.mjs +1 -1
  53. package/lib/components/VCard/VCardText.mjs +1 -1
  54. package/lib/components/VCard/index.d.mts +5 -5
  55. package/lib/components/VCarousel/VCarousel.mjs +1 -1
  56. package/lib/components/VCarousel/VCarouselItem.mjs +1 -1
  57. package/lib/components/VCarousel/index.d.mts +1 -1
  58. package/lib/components/VCheckbox/VCheckbox.mjs +1 -1
  59. package/lib/components/VCheckbox/VCheckboxBtn.mjs +1 -1
  60. package/lib/components/VCheckbox/index.d.mts +1 -1
  61. package/lib/components/VChip/VChip.mjs +1 -1
  62. package/lib/components/VChip/index.d.mts +5 -5
  63. package/lib/components/VChipGroup/VChipGroup.mjs +1 -1
  64. package/lib/components/VChipGroup/index.d.mts +1 -1
  65. package/lib/components/VColorPicker/VColorPicker.mjs +1 -1
  66. package/lib/components/VColorPicker/index.d.mts +10 -10
  67. package/lib/components/VCombobox/VCombobox.mjs +1 -1
  68. package/lib/components/VCombobox/index.d.mts +4 -4
  69. package/lib/components/VConfirmEdit/VConfirmEdit.mjs +1 -1
  70. package/lib/components/VConfirmEdit/__test__/VConfirmEdit.spec.browser.mjs +5 -5
  71. package/lib/components/VConfirmEdit/__test__/VConfirmEdit.spec.browser.mjs.map +1 -1
  72. package/lib/components/VConfirmEdit/index.d.mts +1 -1
  73. package/lib/components/VCounter/VCounter.mjs +1 -1
  74. package/lib/components/VDataIterator/index.d.mts +1 -1
  75. package/lib/components/VDataTable/VDataTable.mjs +1 -1
  76. package/lib/components/VDataTable/VDataTableFooter.mjs +1 -1
  77. package/lib/components/VDataTable/VDataTableGroupHeaderRow.mjs +1 -1
  78. package/lib/components/VDataTable/VDataTableHeaders.mjs +1 -1
  79. package/lib/components/VDataTable/VDataTableRow.mjs +1 -1
  80. package/lib/components/VDataTable/VDataTableRows.mjs +1 -1
  81. package/lib/components/VDataTable/VDataTableServer.mjs +1 -1
  82. package/lib/components/VDataTable/VDataTableVirtual.mjs +1 -1
  83. package/lib/components/VDataTable/index.d.mts +1 -1
  84. package/lib/components/VDatePicker/VDatePicker.mjs +1 -1
  85. package/lib/components/VDatePicker/VDatePickerMonth.mjs +1 -1
  86. package/lib/components/VDatePicker/VDatePickerMonths.mjs +1 -1
  87. package/lib/components/VDatePicker/VDatePickerYears.mjs +1 -1
  88. package/lib/components/VDatePicker/index.d.mts +1 -1
  89. package/lib/components/VDialog/VDialog.mjs +1 -1
  90. package/lib/components/VDialog/__test__/VDialog.spec.cy.mjs +1 -1
  91. package/lib/components/VDialog/index.d.mts +3 -3
  92. package/lib/components/VEmptyState/VEmptyState.mjs +1 -1
  93. package/lib/components/VEmptyState/index.d.mts +1 -1
  94. package/lib/components/VExpansionPanel/VExpansionPanelText.mjs +1 -1
  95. package/lib/components/VExpansionPanel/VExpansionPanelTitle.mjs +1 -1
  96. package/lib/components/VExpansionPanel/index.d.mts +1 -1
  97. package/lib/components/VFab/VFab.mjs +1 -1
  98. package/lib/components/VFab/index.d.mts +5 -5
  99. package/lib/components/VField/VField.mjs +1 -1
  100. package/lib/components/VField/VFieldLabel.mjs +1 -1
  101. package/lib/components/VField/index.d.mts +1 -1
  102. package/lib/components/VFileInput/VFileInput.mjs +2 -3
  103. package/lib/components/VFileInput/VFileInput.mjs.map +1 -1
  104. package/lib/components/VFileInput/index.d.mts +4 -4
  105. package/lib/components/VFooter/VFooter.mjs +1 -1
  106. package/lib/components/VGrid/VContainer.mjs +1 -1
  107. package/lib/components/VIcon/index.d.mts +1 -1
  108. package/lib/components/VImg/VImg.mjs +1 -1
  109. package/lib/components/VInfiniteScroll/VInfiniteScroll.mjs +1 -1
  110. package/lib/components/VInput/VInput.mjs +1 -1
  111. package/lib/components/VInput/index.d.mts +1 -1
  112. package/lib/components/VItemGroup/index.d.mts +1 -1
  113. package/lib/components/VLazy/VLazy.mjs +1 -1
  114. package/lib/components/VList/VList.mjs +1 -1
  115. package/lib/components/VList/VListChildren.mjs +1 -1
  116. package/lib/components/VList/VListGroup.mjs +1 -1
  117. package/lib/components/VList/VListItem.mjs +1 -1
  118. package/lib/components/VList/VListItemAction.mjs +1 -1
  119. package/lib/components/VList/VListItemMedia.mjs +1 -1
  120. package/lib/components/VList/VListItemSubtitle.mjs +1 -1
  121. package/lib/components/VList/index.d.mts +5 -5
  122. package/lib/components/VMenu/VMenu.mjs +1 -1
  123. package/lib/components/VMenu/index.d.mts +3 -3
  124. package/lib/components/VNavigationDrawer/VNavigationDrawer.css +0 -4
  125. package/lib/components/VNavigationDrawer/VNavigationDrawer.mjs +3 -6
  126. package/lib/components/VNavigationDrawer/VNavigationDrawer.mjs.map +1 -1
  127. package/lib/components/VNavigationDrawer/VNavigationDrawer.sass +0 -5
  128. package/lib/components/VOtpInput/VOtpInput.mjs +1 -1
  129. package/lib/components/VOverlay/VOverlay.mjs +1 -1
  130. package/lib/components/VPagination/VPagination.mjs +1 -1
  131. package/lib/components/VPagination/index.d.mts +1 -1
  132. package/lib/components/VParallax/VParallax.mjs +1 -1
  133. package/lib/components/VRadio/VRadio.mjs +1 -1
  134. package/lib/components/VRadio/index.d.mts +1 -1
  135. package/lib/components/VRadioGroup/VRadioGroup.mjs +1 -1
  136. package/lib/components/VRadioGroup/index.d.mts +1 -1
  137. package/lib/components/VRangeSlider/VRangeSlider.mjs +1 -1
  138. package/lib/components/VRating/VRating.mjs +1 -1
  139. package/lib/components/VRating/index.d.mts +1 -1
  140. package/lib/components/VSelect/VSelect.mjs +1 -1
  141. package/lib/components/VSelect/index.d.mts +4 -4
  142. package/lib/components/VSelectionControl/VSelectionControl.mjs +1 -1
  143. package/lib/components/VSelectionControl/index.d.mts +1 -1
  144. package/lib/components/VSelectionControlGroup/index.d.mts +1 -1
  145. package/lib/components/VSheet/VSheet.mjs +1 -1
  146. package/lib/components/VSkeletonLoader/VSkeletonLoader.mjs +1 -1
  147. package/lib/components/VSlideGroup/index.d.mts +1 -1
  148. package/lib/components/VSlider/VSlider.mjs +1 -1
  149. package/lib/components/VSlider/VSliderThumb.mjs +1 -1
  150. package/lib/components/VSnackbar/VSnackbar.mjs +1 -1
  151. package/lib/components/VSnackbar/index.d.mts +3 -3
  152. package/lib/components/VSparkline/VBarline.mjs +1 -2
  153. package/lib/components/VSparkline/VBarline.mjs.map +1 -1
  154. package/lib/components/VSparkline/VSparkline.mjs +1 -1
  155. package/lib/components/VSparkline/VTrendline.mjs +1 -2
  156. package/lib/components/VSparkline/VTrendline.mjs.map +1 -1
  157. package/lib/components/VSpeedDial/VSpeedDial.mjs +1 -1
  158. package/lib/components/VStepper/VStepper.mjs +1 -1
  159. package/lib/components/VStepper/VStepperItem.mjs +1 -1
  160. package/lib/components/VStepper/VStepperWindow.mjs +1 -1
  161. package/lib/components/VStepper/VStepperWindowItem.mjs +1 -1
  162. package/lib/components/VStepper/index.d.mts +1 -1
  163. package/lib/components/VSwitch/VSwitch.mjs +1 -1
  164. package/lib/components/VSwitch/index.d.mts +1 -1
  165. package/lib/components/VSystemBar/VSystemBar.mjs +1 -1
  166. package/lib/components/VTabs/VTab.mjs +1 -1
  167. package/lib/components/VTabs/VTabs.mjs +1 -1
  168. package/lib/components/VTabs/VTabsWindow.mjs +1 -1
  169. package/lib/components/VTabs/VTabsWindowItem.mjs +1 -1
  170. package/lib/components/VTabs/index.d.mts +20 -20
  171. package/lib/components/VTextField/VTextField.mjs +1 -1
  172. package/lib/components/VTextField/index.d.mts +7 -7
  173. package/lib/components/VTextarea/VTextarea.mjs +1 -1
  174. package/lib/components/VTextarea/index.d.mts +4 -4
  175. package/lib/components/VTimeline/VTimeline.mjs +1 -1
  176. package/lib/components/VTimeline/VTimelineDivider.mjs +1 -1
  177. package/lib/components/VTimeline/VTimelineItem.mjs +1 -1
  178. package/lib/components/VTimeline/index.d.mts +1 -1
  179. package/lib/components/VToolbar/VToolbar.mjs +1 -1
  180. package/lib/components/VTooltip/VTooltip.mjs +1 -1
  181. package/lib/components/VTooltip/index.d.mts +3 -3
  182. package/lib/components/VValidation/index.d.mts +1 -1
  183. package/lib/components/VVirtualScroll/VVirtualScroll.mjs +1 -1
  184. package/lib/components/VVirtualScroll/VVirtualScrollItem.mjs +1 -1
  185. package/lib/components/VVirtualScroll/index.d.mts +1 -1
  186. package/lib/components/VWindow/VWindow.mjs +1 -1
  187. package/lib/components/VWindow/VWindowItem.mjs +1 -1
  188. package/lib/components/VWindow/index.d.mts +1 -1
  189. package/lib/components/index.d.mts +82 -82
  190. package/lib/components/transitions/dialog-transition.mjs +1 -2
  191. package/lib/components/transitions/dialog-transition.mjs.map +1 -1
  192. package/lib/composables/icons.mjs +1 -1
  193. package/lib/composables/variant.mjs +1 -1
  194. package/lib/entry-bundler.mjs +1 -1
  195. package/lib/framework.mjs +1 -1
  196. package/lib/iconsets/fa-svg.d.mts +1 -1
  197. package/lib/iconsets/fa.d.mts +1 -1
  198. package/lib/iconsets/fa4.d.mts +1 -1
  199. package/lib/iconsets/md.d.mts +1 -1
  200. package/lib/iconsets/mdi-svg.d.mts +1 -1
  201. package/lib/iconsets/mdi.d.mts +1 -1
  202. package/lib/index.d.mts +58 -58
  203. package/lib/labs/VCalendar/VCalendar.mjs +1 -1
  204. package/lib/labs/VCalendar/VCalendarDay.mjs +1 -1
  205. package/lib/labs/VDateInput/VDateInput.mjs +4 -3
  206. package/lib/labs/VDateInput/VDateInput.mjs.map +1 -1
  207. package/lib/labs/VFileUpload/VFileUpload.mjs +1 -1
  208. package/lib/labs/VFileUpload/VFileUploadItem.mjs +1 -1
  209. package/lib/labs/VFileUpload/index.d.mts +5 -5
  210. package/lib/labs/VNumberInput/VNumberInput.mjs +1 -1
  211. package/lib/labs/VNumberInput/index.d.mts +22 -22
  212. package/lib/labs/VPicker/VPicker.mjs +1 -1
  213. package/lib/labs/VSnackbarQueue/VSnackbarQueue.mjs +1 -1
  214. package/lib/labs/VSnackbarQueue/index.d.mts +3 -3
  215. package/lib/labs/VStepperVertical/VStepperVertical.mjs +1 -1
  216. package/lib/labs/VStepperVertical/VStepperVerticalActions.mjs +1 -1
  217. package/lib/labs/VStepperVertical/VStepperVerticalItem.mjs +1 -1
  218. package/lib/labs/VStepperVertical/index.d.mts +1 -1
  219. package/lib/labs/VTimePicker/VTimePicker.mjs +1 -1
  220. package/lib/labs/VTimePicker/VTimePickerControls.mjs +1 -1
  221. package/lib/labs/VTreeview/VTreeview.mjs +1 -1
  222. package/lib/labs/VTreeview/VTreeviewChildren.mjs +1 -1
  223. package/lib/labs/VTreeview/VTreeviewGroup.mjs +1 -1
  224. package/lib/labs/VTreeview/VTreeviewItem.mjs +1 -1
  225. package/lib/labs/VTreeview/index.d.mts +5 -5
  226. package/lib/labs/components.d.mts +32 -32
  227. package/lib/locale/adapters/vue-i18n.mjs +0 -1
  228. package/lib/locale/adapters/vue-i18n.mjs.map +1 -1
  229. package/package.json +16 -15
@@ -137,7 +137,7 @@ declare const VColorPicker: {
137
137
  };
138
138
  }>> & {
139
139
  "onUpdate:modelValue"?: ((color: any) => any) | undefined;
140
- "onUpdate:mode"?: ((mode: "rgb" | "hex" | "rgba" | "hsl" | "hsla" | "hexa") => any) | undefined;
140
+ "onUpdate:mode"?: ((mode: "rgb" | "hex" | "hsl" | "rgba" | "hsla" | "hexa") => any) | undefined;
141
141
  }, {}, unknown, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {
142
142
  'update:modelValue': (color: any) => true;
143
143
  'update:mode': (mode: keyof typeof modes) => true;
@@ -204,17 +204,17 @@ declare const VColorPicker: {
204
204
  };
205
205
  }>> & {
206
206
  "onUpdate:modelValue"?: ((color: any) => any) | undefined;
207
- "onUpdate:mode"?: ((mode: "rgb" | "hex" | "rgba" | "hsl" | "hsla" | "hexa") => any) | undefined;
207
+ "onUpdate:mode"?: ((mode: "rgb" | "hex" | "hsl" | "rgba" | "hsla" | "hexa") => any) | undefined;
208
208
  }, {
209
209
  width: string | number;
210
210
  style: vue.StyleValue;
211
211
  disabled: boolean;
212
212
  tag: string;
213
- mode: "rgb" | "hex" | "rgba" | "hsl" | "hsla" | "hexa";
213
+ mode: "rgb" | "hex" | "hsl" | "rgba" | "hsla" | "hexa";
214
214
  rounded: string | number | boolean;
215
215
  tile: boolean;
216
216
  dotSize: string | number;
217
- modes: readonly ("rgb" | "hex" | "rgba" | "hsl" | "hsla" | "hexa")[];
217
+ modes: readonly ("rgb" | "hex" | "hsl" | "rgba" | "hsla" | "hexa")[];
218
218
  canvasHeight: string | number;
219
219
  hideCanvas: boolean;
220
220
  hideSliders: boolean;
@@ -291,17 +291,17 @@ declare const VColorPicker: {
291
291
  };
292
292
  }>> & {
293
293
  "onUpdate:modelValue"?: ((color: any) => any) | undefined;
294
- "onUpdate:mode"?: ((mode: "rgb" | "hex" | "rgba" | "hsl" | "hsla" | "hexa") => any) | undefined;
294
+ "onUpdate:mode"?: ((mode: "rgb" | "hex" | "hsl" | "rgba" | "hsla" | "hexa") => any) | undefined;
295
295
  }, {}, {}, {}, {}, {
296
296
  width: string | number;
297
297
  style: vue.StyleValue;
298
298
  disabled: boolean;
299
299
  tag: string;
300
- mode: "rgb" | "hex" | "rgba" | "hsl" | "hsla" | "hexa";
300
+ mode: "rgb" | "hex" | "hsl" | "rgba" | "hsla" | "hexa";
301
301
  rounded: string | number | boolean;
302
302
  tile: boolean;
303
303
  dotSize: string | number;
304
- modes: readonly ("rgb" | "hex" | "rgba" | "hsl" | "hsla" | "hexa")[];
304
+ modes: readonly ("rgb" | "hex" | "hsl" | "rgba" | "hsla" | "hexa")[];
305
305
  canvasHeight: string | number;
306
306
  hideCanvas: boolean;
307
307
  hideSliders: boolean;
@@ -375,7 +375,7 @@ declare const VColorPicker: {
375
375
  };
376
376
  }>> & {
377
377
  "onUpdate:modelValue"?: ((color: any) => any) | undefined;
378
- "onUpdate:mode"?: ((mode: "rgb" | "hex" | "rgba" | "hsl" | "hsla" | "hexa") => any) | undefined;
378
+ "onUpdate:mode"?: ((mode: "rgb" | "hex" | "hsl" | "rgba" | "hsla" | "hexa") => any) | undefined;
379
379
  }, {}, unknown, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {
380
380
  'update:modelValue': (color: any) => true;
381
381
  'update:mode': (mode: keyof typeof modes) => true;
@@ -384,11 +384,11 @@ declare const VColorPicker: {
384
384
  style: vue.StyleValue;
385
385
  disabled: boolean;
386
386
  tag: string;
387
- mode: "rgb" | "hex" | "rgba" | "hsl" | "hsla" | "hexa";
387
+ mode: "rgb" | "hex" | "hsl" | "rgba" | "hsla" | "hexa";
388
388
  rounded: string | number | boolean;
389
389
  tile: boolean;
390
390
  dotSize: string | number;
391
- modes: readonly ("rgb" | "hex" | "rgba" | "hsl" | "hsla" | "hexa")[];
391
+ modes: readonly ("rgb" | "hex" | "hsl" | "rgba" | "hsla" | "hexa")[];
392
392
  canvasHeight: string | number;
393
393
  hideCanvas: boolean;
394
394
  hideSliders: boolean;
@@ -1,4 +1,4 @@
1
- import { createTextVNode as _createTextVNode, mergeProps as _mergeProps, createVNode as _createVNode, Fragment as _Fragment } from "vue";
1
+ import { Fragment as _Fragment, createVNode as _createVNode, mergeProps as _mergeProps, createTextVNode as _createTextVNode } from "vue";
2
2
  // Styles
3
3
  import "./VCombobox.css";
4
4
 
@@ -1,5 +1,5 @@
1
1
  import * as vue from 'vue';
2
- import { ComponentPropsOptions, ExtractPropTypes, VNodeChild, VNode, ComponentPublicInstance, PropType, FunctionalComponent, ComputedRef, Ref, EffectScope, Component, nextTick } from 'vue';
2
+ import { VNodeChild, VNode, ComponentPropsOptions, ExtractPropTypes, ComponentPublicInstance, PropType, FunctionalComponent, ComputedRef, Ref, EffectScope, Component, nextTick } from 'vue';
3
3
 
4
4
  type ClassValue = any;
5
5
 
@@ -1387,7 +1387,7 @@ declare const VMenu: {
1387
1387
  };
1388
1388
  $forceUpdate: () => void;
1389
1389
  $nextTick: typeof nextTick;
1390
- $watch<T extends string | ((...args: any) => any)>(source: T, cb: T extends (...args: any) => infer R ? (...args: [R, R]) => any : (...args: any) => any, options?: vue.WatchOptions): vue.WatchStopHandle;
1390
+ $watch<T extends string | ((...args: any) => any)>(source: T, cb: T extends (...args: any) => infer R ? (...args: [R, R, (cleanupFn: () => void) => void]) => any : (...args: [any, any, (cleanupFn: () => void) => void]) => any, options?: vue.WatchOptions): vue.WatchStopHandle;
1391
1391
  } & Omit<{
1392
1392
  absolute: boolean;
1393
1393
  location: Anchor;
@@ -2068,7 +2068,7 @@ declare const VMenu: {
2068
2068
  };
2069
2069
  $forceUpdate: () => void;
2070
2070
  $nextTick: typeof nextTick;
2071
- $watch<T extends string | ((...args: any) => any)>(source: T, cb: T extends (...args: any) => infer R ? (...args: [R, R]) => any : (...args: any) => any, options?: vue.WatchOptions): vue.WatchStopHandle;
2071
+ $watch<T extends string | ((...args: any) => any)>(source: T, cb: T extends (...args: any) => infer R ? (...args: [R, R, (cleanupFn: () => void) => void]) => any : (...args: [any, any, (cleanupFn: () => void) => void]) => any, options?: vue.WatchOptions): vue.WatchStopHandle;
2072
2072
  } & Omit<{
2073
2073
  absolute: boolean;
2074
2074
  location: Anchor;
@@ -2654,7 +2654,7 @@ declare const VMenu: {
2654
2654
  };
2655
2655
  $forceUpdate: () => void;
2656
2656
  $nextTick: typeof nextTick;
2657
- $watch<T extends string | ((...args: any) => any)>(source: T, cb: T extends (...args: any) => infer R ? (...args: [R, R]) => any : (...args: any) => any, options?: vue.WatchOptions): vue.WatchStopHandle;
2657
+ $watch<T extends string | ((...args: any) => any)>(source: T, cb: T extends (...args: any) => infer R ? (...args: [R, R, (cleanupFn: () => void) => void]) => any : (...args: [any, any, (cleanupFn: () => void) => void]) => any, options?: vue.WatchOptions): vue.WatchStopHandle;
2658
2658
  } & Omit<{
2659
2659
  absolute: boolean;
2660
2660
  location: Anchor;
@@ -1,4 +1,4 @@
1
- import { createVNode as _createVNode, mergeProps as _mergeProps, Fragment as _Fragment } from "vue";
1
+ import { Fragment as _Fragment, mergeProps as _mergeProps, createVNode as _createVNode } from "vue";
2
2
  // Components
3
3
  import { VBtn } from "../VBtn/index.mjs"; // Composables
4
4
  import { useLocale } from "../../composables/index.mjs";
@@ -1,4 +1,4 @@
1
- import { createTextVNode as _createTextVNode, Fragment as _Fragment, createVNode as _createVNode } from "vue";
1
+ import { createVNode as _createVNode, Fragment as _Fragment, createTextVNode as _createTextVNode } from "vue";
2
2
  // Components
3
3
  import { VConfirmEdit } from "../index.mjs"; // Utilities
4
4
  import { render, screen, userEvent } from '@test';
@@ -16,10 +16,10 @@ describe('VConfirmEdit', () => {
16
16
  return _createVNode("p", null, [model.value]);
17
17
  }
18
18
  }));
19
- expect(screen.getByText('foo')).toBeInTheDocument();
19
+ expect(screen.getByText('foo')).toBeVisible();
20
20
  externalModel.value = 'bar';
21
21
  await nextTick();
22
- expect(screen.getByText('bar')).toBeInTheDocument();
22
+ expect(screen.getByText('bar')).toBeVisible();
23
23
  });
24
24
  it("doesn't mutate the original value", async () => {
25
25
  const externalModel = shallowRef(['foo']);
@@ -37,9 +37,9 @@ describe('VConfirmEdit', () => {
37
37
  }, [_createTextVNode("Push")])]);
38
38
  }
39
39
  }));
40
- expect(screen.getByText('foo')).toBeInTheDocument();
40
+ expect(screen.getByText('foo')).toBeVisible();
41
41
  await userEvent.click(screen.getByTestId('push'));
42
- expect(screen.getByText('foo,bar')).toBeInTheDocument();
42
+ expect(screen.getByText('foo,bar')).toBeVisible();
43
43
  expect(externalModel.value).toEqual(['foo']);
44
44
  await userEvent.click(screen.getByText('OK'));
45
45
  expect(externalModel.value).toEqual(['foo', 'bar']);
@@ -1 +1 @@
1
- {"version":3,"file":"VConfirmEdit.spec.browser.mjs","names":["VConfirmEdit","render","screen","userEvent","nextTick","shallowRef","describe","it","externalModel","_createVNode","value","default","_ref","model","expect","getByText","toBeInTheDocument","$event","_ref2","_Fragment","join","onClick","push","_createTextVNode","click","getByTestId","toEqual","getAllByCSS","toHaveLength","_ref3","_ref4","actions","queryAllByCSS","_ref5"],"sources":["../../../../src/components/VConfirmEdit/__test__/VConfirmEdit.spec.browser.tsx"],"sourcesContent":["// Components\nimport { VConfirmEdit } from '../'\n\n// Utilities\nimport { render, screen, userEvent } from '@test'\nimport { nextTick, shallowRef } from 'vue'\n\ndescribe('VConfirmEdit', () => {\n it('mirrors external updates', async () => {\n const externalModel = shallowRef('foo')\n\n render(() => (\n <VConfirmEdit modelValue={ externalModel.value }>\n { ({ model }) => (\n <p>{ model.value }</p>\n )}\n </VConfirmEdit>\n ))\n\n expect(screen.getByText('foo')).toBeInTheDocument()\n\n externalModel.value = 'bar'\n await nextTick()\n expect(screen.getByText('bar')).toBeInTheDocument()\n })\n\n it(\"doesn't mutate the original value\", async () => {\n const externalModel = shallowRef(['foo'])\n\n render(() => (\n <VConfirmEdit v-model={ externalModel.value } modelValue={ externalModel.value }>\n { ({ model }) => (\n <>\n <p>{ model.value.join(',') }</p>\n <button data-testid=\"push\" onClick={ () => model.value.push('bar') }>Push</button>\n </>\n )}\n </VConfirmEdit>\n ))\n\n expect(screen.getByText('foo')).toBeInTheDocument()\n\n await userEvent.click(screen.getByTestId('push'))\n expect(screen.getByText('foo,bar')).toBeInTheDocument()\n expect(externalModel.value).toEqual(['foo'])\n\n await userEvent.click(screen.getByText('OK'))\n expect(externalModel.value).toEqual(['foo', 'bar'])\n })\n\n describe('hides actions if used from the slot', () => {\n it('nothing', () => {\n render(() => <VConfirmEdit />)\n expect(screen.getAllByCSS('button')).toHaveLength(2)\n })\n\n it('consume model', () => {\n render(() => (\n <VConfirmEdit>\n { ({ model }) => {\n void model\n }}\n </VConfirmEdit>\n ))\n expect(screen.getAllByCSS('button')).toHaveLength(2)\n })\n\n it('consume actions', () => {\n render(() => (\n <VConfirmEdit>\n { ({ actions }) => {\n void actions\n }}\n </VConfirmEdit>\n ))\n expect(screen.queryAllByCSS('button')).toHaveLength(0)\n })\n\n it('render actions', () => {\n render(() => (\n <VConfirmEdit>\n { ({ actions }) => actions() }\n </VConfirmEdit>\n ))\n expect(screen.getAllByCSS('button')).toHaveLength(2)\n })\n })\n})\n"],"mappings":";AAAA;AAAA,SACSA,YAAY,wBAErB;AACA,SAASC,MAAM,EAAEC,MAAM,EAAEC,SAAS,QAAQ,OAAO;AACjD,SAASC,QAAQ,EAAEC,UAAU,QAAQ,KAAK;AAE1CC,QAAQ,CAAC,cAAc,EAAE,MAAM;EAC7BC,EAAE,CAAC,0BAA0B,EAAE,YAAY;IACzC,MAAMC,aAAa,GAAGH,UAAU,CAAC,KAAK,CAAC;IAEvCJ,MAAM,CAAC,MAAAQ,YAAA,CAAAT,YAAA;MAAA,cACsBQ,aAAa,CAACE;IAAK;MAAAC,OAAA,EAC1CC,IAAA;QAAA,IAAC;UAAEC;QAAM,CAAC,GAAAD,IAAA;QAAA,OAAAH,YAAA,aACLI,KAAK,CAACH,KAAK;MAAA;IACjB,EAEJ,CAAC;IAEFI,MAAM,CAACZ,MAAM,CAACa,SAAS,CAAC,KAAK,CAAC,CAAC,CAACC,iBAAiB,CAAC,CAAC;IAEnDR,aAAa,CAACE,KAAK,GAAG,KAAK;IAC3B,MAAMN,QAAQ,CAAC,CAAC;IAChBU,MAAM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AAC","ignoreList":[]}
1
+ {"version":3,"file":"VConfirmEdit.spec.browser.mjs","names":["VConfirmEdit","render","screen","userEvent","nextTick","shallowRef","describe","it","externalModel","_createVNode","value","default","_ref","model","expect","getByText","toBeVisible","$event","_ref2","_Fragment","join","onClick","push","_createTextVNode","click","getByTestId","toEqual","getAllByCSS","toHaveLength","_ref3","_ref4","actions","queryAllByCSS","_ref5"],"sources":["../../../../src/components/VConfirmEdit/__test__/VConfirmEdit.spec.browser.tsx"],"sourcesContent":["// Components\nimport { VConfirmEdit } from '../'\n\n// Utilities\nimport { render, screen, userEvent } from '@test'\nimport { nextTick, shallowRef } from 'vue'\n\ndescribe('VConfirmEdit', () => {\n it('mirrors external updates', async () => {\n const externalModel = shallowRef('foo')\n\n render(() => (\n <VConfirmEdit modelValue={ externalModel.value }>\n { ({ model }) => (\n <p>{ model.value }</p>\n )}\n </VConfirmEdit>\n ))\n\n expect(screen.getByText('foo')).toBeVisible()\n\n externalModel.value = 'bar'\n await nextTick()\n expect(screen.getByText('bar')).toBeVisible()\n })\n\n it(\"doesn't mutate the original value\", async () => {\n const externalModel = shallowRef(['foo'])\n\n render(() => (\n <VConfirmEdit v-model={ externalModel.value } modelValue={ externalModel.value }>\n { ({ model }) => (\n <>\n <p>{ model.value.join(',') }</p>\n <button data-testid=\"push\" onClick={ () => model.value.push('bar') }>Push</button>\n </>\n )}\n </VConfirmEdit>\n ))\n\n expect(screen.getByText('foo')).toBeVisible()\n\n await userEvent.click(screen.getByTestId('push'))\n expect(screen.getByText('foo,bar')).toBeVisible()\n expect(externalModel.value).toEqual(['foo'])\n\n await userEvent.click(screen.getByText('OK'))\n expect(externalModel.value).toEqual(['foo', 'bar'])\n })\n\n describe('hides actions if used from the slot', () => {\n it('nothing', () => {\n render(() => <VConfirmEdit />)\n expect(screen.getAllByCSS('button')).toHaveLength(2)\n })\n\n it('consume model', () => {\n render(() => (\n <VConfirmEdit>\n { ({ model }) => {\n void model\n }}\n </VConfirmEdit>\n ))\n expect(screen.getAllByCSS('button')).toHaveLength(2)\n })\n\n it('consume actions', () => {\n render(() => (\n <VConfirmEdit>\n { ({ actions }) => {\n void actions\n }}\n </VConfirmEdit>\n ))\n expect(screen.queryAllByCSS('button')).toHaveLength(0)\n })\n\n it('render actions', () => {\n render(() => (\n <VConfirmEdit>\n { ({ actions }) => actions() }\n </VConfirmEdit>\n ))\n expect(screen.getAllByCSS('button')).toHaveLength(2)\n })\n })\n})\n"],"mappings":";AAAA;AAAA,SACSA,YAAY,wBAErB;AACA,SAASC,MAAM,EAAEC,MAAM,EAAEC,SAAS,QAAQ,OAAO;AACjD,SAASC,QAAQ,EAAEC,UAAU,QAAQ,KAAK;AAE1CC,QAAQ,CAAC,cAAc,EAAE,MAAM;EAC7BC,EAAE,CAAC,0BAA0B,EAAE,YAAY;IACzC,MAAMC,aAAa,GAAGH,UAAU,CAAC,KAAK,CAAC;IAEvCJ,MAAM,CAAC,MAAAQ,YAAA,CAAAT,YAAA;MAAA,cACsBQ,aAAa,CAACE;IAAK;MAAAC,OAAA,EAC1CC,IAAA;QAAA,IAAC;UAAEC;QAAM,CAAC,GAAAD,IAAA;QAAA,OAAAH,YAAA,aACLI,KAAK,CAACH,KAAK;MAAA;IACjB,EAEJ,CAAC;IAEFI,MAAM,CAACZ,MAAM,CAACa,SAAS,CAAC,KAAK,CAAC,CAAC,CAACC,WAAW,CAAC,CAAC;IAE7CR,aAAa,CAACE,KAAK,GAAG,KAAK;IAC3B,MAAMN,QAAQ,CAAC,CAAC;IAChBU,MAAM,CAACZ,MAAM,CAACa,SAAS,CAAC,KAAK,CAAC,CAAC,CAACC,WAAW,CAAC,CAAC;EAC/C,CAAC,CAAC;EAEFT,EAAE,CAAC,mCAAmC,EAAE,YAAY;IAClD,MAAMC,aAAa,GAAGH,UAAU,CAAC,CAAC,KAAK,CAAC,CAAC;IAEzCJ,MAAM,CAAC,MAAAQ,YAAA,CAAAT,YAAA;MAAA,cACmBQ,aAAa,CAACE,KAAK;MAAA,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CAAAT,YAAA;QAAAW,OAAA,EAEDkB,KAAA,IAAe;UAAA,IAAd;YAAEhB;UAAM,CAAC,GAAAgB,KAAA;UACV,KAAKhB,KAAK;QACZ;MAAC,EAEJ,CAAC;MACFC,MAAM,CAACZ,MAAM,CAACyB,WAAW,CAAC,QAAQ,CAAC,CAAC,CAACC,YAAY,CAAC,CAAC,CAAC;IACtD,CAAC,CAAC;IAEFrB,EAAE,CAAC,iBAAiB,EAAE,MAAM;MAC1BN,MAAM,CAAC,MAAAQ,YAAA,CAAAT,YAAA;QAAAW,OAAA,EAEDmB,KAAA,IAAiB;UAAA,IAAhB;YAAEC;UAAQ,CAAC,GAAAD,KAAA;UACZ,KAAKC,OAAO;QACd;MAAC,EAEJ,CAAC;MACFjB,MAAM,CAACZ,MAAM,CAAC8B,aAAa,CAAC,QAAQ,CAAC,CAAC,CAACJ,YAAY,CAAC,CAAC,CAAC;IACxD,CAAC,CAAC;IAEFrB,EAAE,CAAC,gBAAgB,EAAE,MAAM;MACzBN,MAAM,CAAC,MAAAQ,YAAA,CAAAT,YAAA;QAAAW,OAAA,EAEDsB,KAAA;UAAA,IAAC;YAAEF;UAAQ,CAAC,GAAAE,KAAA;UAAA,OAAKF,OAAO,CAAC,CAAC;QAAA;MAAA,EAE/B,CAAC;MACFjB,MAAM,CAACZ,MAAM,CAACyB,WAAW,CAAC,QAAQ,CAAC,CAAC,CAACC,YAAY,CAAC,CAAC,CAAC;IACtD,CAAC,CAAC;EACJ,CAAC,CAAC;AACJ,CAAC,CAAC","ignoreList":[]}
@@ -1,5 +1,5 @@
1
1
  import * as vue from 'vue';
2
- import { ComponentPropsOptions, ExtractPropTypes, VNodeChild, VNode, Ref } from 'vue';
2
+ import { VNodeChild, VNode, ComponentPropsOptions, ExtractPropTypes, Ref } from 'vue';
3
3
 
4
4
  type SlotsToProps<U extends RawSlots, T = MakeInternalSlots<U>> = {
5
5
  $children?: (VNodeChild | (T extends {
@@ -1,4 +1,4 @@
1
- import { withDirectives as _withDirectives, createVNode as _createVNode, vShow as _vShow } from "vue";
1
+ import { vShow as _vShow, createVNode as _createVNode, withDirectives as _withDirectives } from "vue";
2
2
  // Styles
3
3
  import "./VCounter.css";
4
4
 
@@ -1,5 +1,5 @@
1
1
  import * as vue from 'vue';
2
- import { Ref, ComponentPropsOptions, ExtractPropTypes, VNodeChild, VNode, PropType, Component } from 'vue';
2
+ import { Ref, VNodeChild, VNode, ComponentPropsOptions, ExtractPropTypes, PropType, Component } from 'vue';
3
3
 
4
4
  type ClassValue = any;
5
5
 
@@ -1,4 +1,4 @@
1
- import { mergeProps as _mergeProps, createVNode as _createVNode, resolveDirective as _resolveDirective, Fragment as _Fragment } from "vue";
1
+ import { Fragment as _Fragment, createVNode as _createVNode, mergeProps as _mergeProps } from "vue";
2
2
  // Styles
3
3
  import "./VDataTable.css";
4
4
 
@@ -1,4 +1,4 @@
1
- import { mergeProps as _mergeProps, createVNode as _createVNode } from "vue";
1
+ import { createVNode as _createVNode, mergeProps as _mergeProps } from "vue";
2
2
  // Styles
3
3
  import "./VDataTableFooter.css";
4
4
 
@@ -1,4 +1,4 @@
1
- import { createTextVNode as _createTextVNode, createVNode as _createVNode } from "vue";
1
+ import { createVNode as _createVNode, createTextVNode as _createTextVNode } from "vue";
2
2
  // Components
3
3
  import { VDataTableColumn } from "./VDataTableColumn.mjs";
4
4
  import { VBtn } from "../VBtn/index.mjs";
@@ -1,4 +1,4 @@
1
- import { resolveDirective as _resolveDirective, Fragment as _Fragment, mergeProps as _mergeProps, createVNode as _createVNode } from "vue";
1
+ import { createVNode as _createVNode, mergeProps as _mergeProps, Fragment as _Fragment } from "vue";
2
2
  // Components
3
3
  import { VDataTableColumn } from "./VDataTableColumn.mjs";
4
4
  import { VCheckboxBtn } from "../VCheckbox/index.mjs";
@@ -1,4 +1,4 @@
1
- import { mergeProps as _mergeProps, Fragment as _Fragment, createVNode as _createVNode } from "vue";
1
+ import { createVNode as _createVNode, Fragment as _Fragment, mergeProps as _mergeProps } from "vue";
2
2
  // Components
3
3
  import { VDataTableColumn } from "./VDataTableColumn.mjs";
4
4
  import { VBtn } from "../VBtn/index.mjs";
@@ -1,4 +1,4 @@
1
- import { mergeProps as _mergeProps, resolveDirective as _resolveDirective, Fragment as _Fragment, createVNode as _createVNode } from "vue";
1
+ import { createVNode as _createVNode, Fragment as _Fragment, mergeProps as _mergeProps } from "vue";
2
2
  // Components
3
3
  import { VDataTableGroupHeaderRow } from "./VDataTableGroupHeaderRow.mjs";
4
4
  import { VDataTableRow } from "./VDataTableRow.mjs"; // Composables
@@ -1,4 +1,4 @@
1
- import { mergeProps as _mergeProps, createVNode as _createVNode, resolveDirective as _resolveDirective, Fragment as _Fragment } from "vue";
1
+ import { Fragment as _Fragment, createVNode as _createVNode, mergeProps as _mergeProps } from "vue";
2
2
  // Components
3
3
  import { makeDataTableProps } from "./VDataTable.mjs";
4
4
  import { makeVDataTableFooterProps, VDataTableFooter } from "./VDataTableFooter.mjs";
@@ -1,4 +1,4 @@
1
- import { mergeProps as _mergeProps, createVNode as _createVNode, resolveDirective as _resolveDirective } from "vue";
1
+ import { createVNode as _createVNode, mergeProps as _mergeProps } from "vue";
2
2
  // Components
3
3
  import { makeDataTableProps } from "./VDataTable.mjs";
4
4
  import { VDataTableHeaders } from "./VDataTableHeaders.mjs";
@@ -1,5 +1,5 @@
1
1
  import * as vue from 'vue';
2
- import { ComponentPropsOptions, ExtractPropTypes, VNodeChild, VNode, ComponentPublicInstance, PropType, FunctionalComponent, Ref, UnwrapRef, DeepReadonly } from 'vue';
2
+ import { VNodeChild, VNode, ComponentPropsOptions, ExtractPropTypes, PropType, ComponentPublicInstance, FunctionalComponent, Ref, UnwrapRef, DeepReadonly } from 'vue';
3
3
 
4
4
  type ClassValue = any;
5
5
 
@@ -1,4 +1,4 @@
1
- import { Fragment as _Fragment, mergeProps as _mergeProps, resolveDirective as _resolveDirective, createVNode as _createVNode } from "vue";
1
+ import { createVNode as _createVNode, mergeProps as _mergeProps, Fragment as _Fragment } from "vue";
2
2
  // Styles
3
3
  import "./VDatePicker.css";
4
4
 
@@ -1,4 +1,4 @@
1
- import { createVNode as _createVNode, createTextVNode as _createTextVNode } from "vue";
1
+ import { createTextVNode as _createTextVNode, createVNode as _createVNode } from "vue";
2
2
  // Styles
3
3
  import "./VDatePickerMonth.css";
4
4
 
@@ -1,4 +1,4 @@
1
- import { createVNode as _createVNode, mergeProps as _mergeProps } from "vue";
1
+ import { mergeProps as _mergeProps, createVNode as _createVNode } from "vue";
2
2
  // Styles
3
3
  import "./VDatePickerMonths.css";
4
4
 
@@ -1,4 +1,4 @@
1
- import { createVNode as _createVNode, mergeProps as _mergeProps } from "vue";
1
+ import { mergeProps as _mergeProps, createVNode as _createVNode } from "vue";
2
2
  // Styles
3
3
  import "./VDatePickerYears.css";
4
4
 
@@ -1,5 +1,5 @@
1
1
  import * as vue from 'vue';
2
- import { ComponentPropsOptions, ExtractPropTypes, VNodeChild, VNode, PropType, ComponentPublicInstance, FunctionalComponent } from 'vue';
2
+ import { VNodeChild, VNode, ComponentPropsOptions, ExtractPropTypes, ComponentPublicInstance, FunctionalComponent, PropType } from 'vue';
3
3
 
4
4
  type ClassValue = any;
5
5
 
@@ -1,4 +1,4 @@
1
- import { mergeProps as _mergeProps, createVNode as _createVNode } from "vue";
1
+ import { createVNode as _createVNode, mergeProps as _mergeProps } from "vue";
2
2
  // Styles
3
3
  import "./VDialog.css";
4
4
 
@@ -1,4 +1,4 @@
1
- import { createVNode as _createVNode, createTextVNode as _createTextVNode } from "vue";
1
+ import { createTextVNode as _createTextVNode, createVNode as _createVNode } from "vue";
2
2
  /// <reference types="../../../../types/cypress" />
3
3
  // Components
4
4
  import { VDialog } from "../index.mjs"; // Utilities
@@ -540,7 +540,7 @@ declare const VDialog: {
540
540
  };
541
541
  $forceUpdate: () => void;
542
542
  $nextTick: typeof nextTick;
543
- $watch<T extends string | ((...args: any) => any)>(source: T, cb: T extends (...args: any) => infer R ? (...args: [R, R]) => any : (...args: any) => any, options?: vue.WatchOptions): vue.WatchStopHandle;
543
+ $watch<T extends string | ((...args: any) => any)>(source: T, cb: T extends (...args: any) => infer R ? (...args: [R, R, (cleanupFn: () => void) => void]) => any : (...args: [any, any, (cleanupFn: () => void) => void]) => any, options?: vue.WatchOptions): vue.WatchStopHandle;
544
544
  } & Omit<{
545
545
  absolute: boolean;
546
546
  location: Anchor;
@@ -1226,7 +1226,7 @@ declare const VDialog: {
1226
1226
  };
1227
1227
  $forceUpdate: () => void;
1228
1228
  $nextTick: typeof nextTick;
1229
- $watch<T extends string | ((...args: any) => any)>(source: T, cb: T extends (...args: any) => infer R ? (...args: [R, R]) => any : (...args: any) => any, options?: vue.WatchOptions): vue.WatchStopHandle;
1229
+ $watch<T extends string | ((...args: any) => any)>(source: T, cb: T extends (...args: any) => infer R ? (...args: [R, R, (cleanupFn: () => void) => void]) => any : (...args: [any, any, (cleanupFn: () => void) => void]) => any, options?: vue.WatchOptions): vue.WatchStopHandle;
1230
1230
  } & Omit<{
1231
1231
  absolute: boolean;
1232
1232
  location: Anchor;
@@ -1811,7 +1811,7 @@ declare const VDialog: {
1811
1811
  };
1812
1812
  $forceUpdate: () => void;
1813
1813
  $nextTick: typeof nextTick;
1814
- $watch<T extends string | ((...args: any) => any)>(source: T, cb: T extends (...args: any) => infer R ? (...args: [R, R]) => any : (...args: any) => any, options?: vue.WatchOptions): vue.WatchStopHandle;
1814
+ $watch<T extends string | ((...args: any) => any)>(source: T, cb: T extends (...args: any) => infer R ? (...args: [R, R, (cleanupFn: () => void) => void]) => any : (...args: [any, any, (cleanupFn: () => void) => void]) => any, options?: vue.WatchOptions): vue.WatchStopHandle;
1815
1815
  } & Omit<{
1816
1816
  absolute: boolean;
1817
1817
  location: Anchor;
@@ -1,4 +1,4 @@
1
- import { createVNode as _createVNode, Fragment as _Fragment } from "vue";
1
+ import { Fragment as _Fragment, createVNode as _createVNode } from "vue";
2
2
  // Styles
3
3
  import "./VEmptyState.css";
4
4
 
@@ -1,5 +1,5 @@
1
1
  import * as vue from 'vue';
2
- import { ComponentPropsOptions, ExtractPropTypes, PropType, ComponentPublicInstance, FunctionalComponent } from 'vue';
2
+ import { ComponentPropsOptions, ExtractPropTypes, ComponentPublicInstance, FunctionalComponent, PropType } from 'vue';
3
3
 
4
4
  interface FilterPropsOptions<PropsOptions extends Readonly<ComponentPropsOptions>, Props = ExtractPropTypes<PropsOptions>> {
5
5
  filterProps<T extends Partial<Props>, U extends Exclude<keyof Props, Exclude<keyof Props, keyof T>>>(props: T): Partial<Pick<T, U>>;
@@ -1,4 +1,4 @@
1
- import { withDirectives as _withDirectives, vShow as _vShow, createVNode as _createVNode } from "vue";
1
+ import { createVNode as _createVNode, vShow as _vShow, withDirectives as _withDirectives } from "vue";
2
2
  // Components
3
3
  import { VExpansionPanelSymbol } from "./shared.mjs";
4
4
  import { VExpandTransition } from "../transitions/index.mjs"; // Composables
@@ -1,4 +1,4 @@
1
- import { withDirectives as _withDirectives, resolveDirective as _resolveDirective, createVNode as _createVNode } from "vue";
1
+ import { createVNode as _createVNode, resolveDirective as _resolveDirective, withDirectives as _withDirectives } from "vue";
2
2
  // Components
3
3
  import { VExpansionPanelSymbol } from "./shared.mjs";
4
4
  import { VDefaultsProvider } from "../VDefaultsProvider/index.mjs";
@@ -1,5 +1,5 @@
1
1
  import * as vue from 'vue';
2
- import { ComponentPropsOptions, ExtractPropTypes, PropType, ComponentPublicInstance, FunctionalComponent, DirectiveBinding, Ref, ComponentInternalInstance, ComputedRef } from 'vue';
2
+ import { ComponentPropsOptions, ExtractPropTypes, ComponentPublicInstance, FunctionalComponent, PropType, DirectiveBinding, Ref, ComponentInternalInstance, ComputedRef } from 'vue';
3
3
 
4
4
  interface FilterPropsOptions<PropsOptions extends Readonly<ComponentPropsOptions>, Props = ExtractPropTypes<PropsOptions>> {
5
5
  filterProps<T extends Partial<Props>, U extends Exclude<keyof Props, Exclude<keyof Props, keyof T>>>(props: T): Partial<Pick<T, U>>;
@@ -1,4 +1,4 @@
1
- import { withDirectives as _withDirectives, createVNode as _createVNode, mergeProps as _mergeProps, resolveDirective as _resolveDirective, vShow as _vShow } from "vue";
1
+ import { vShow as _vShow, mergeProps as _mergeProps, createVNode as _createVNode, withDirectives as _withDirectives } from "vue";
2
2
  // Styles
3
3
  import "./VFab.css";
4
4
 
@@ -1,5 +1,5 @@
1
1
  import * as vue from 'vue';
2
- import { DirectiveBinding, ComponentPropsOptions, ExtractPropTypes, PropType, ComponentPublicInstance, FunctionalComponent, ComponentInternalInstance, Ref, ComputedRef } from 'vue';
2
+ import { DirectiveBinding, ComponentPropsOptions, ExtractPropTypes, ComponentPublicInstance, FunctionalComponent, PropType, Ref, ComponentInternalInstance, ComputedRef } from 'vue';
3
3
  // @ts-ignore
4
4
  import * as vue_router from 'vue-router';
5
5
 
@@ -110,7 +110,7 @@ declare const VFab: {
110
110
  text?: string | undefined;
111
111
  class?: any;
112
112
  theme?: string | undefined;
113
- to?: vue_router.RouteLocationRaw | undefined;
113
+ to?: string | vue_router.RouteLocationAsRelativeGeneric | vue_router.RouteLocationAsPathGeneric | undefined;
114
114
  icon?: boolean | IconValue | undefined;
115
115
  href?: string | undefined;
116
116
  elevation?: string | number | undefined;
@@ -181,7 +181,7 @@ declare const VFab: {
181
181
  text?: string | undefined;
182
182
  class?: any;
183
183
  theme?: string | undefined;
184
- to?: vue_router.RouteLocationRaw | undefined;
184
+ to?: string | vue_router.RouteLocationAsRelativeGeneric | vue_router.RouteLocationAsPathGeneric | undefined;
185
185
  icon?: boolean | IconValue | undefined;
186
186
  href?: string | undefined;
187
187
  elevation?: string | number | undefined;
@@ -291,7 +291,7 @@ declare const VFab: {
291
291
  text?: string | undefined;
292
292
  class?: any;
293
293
  theme?: string | undefined;
294
- to?: vue_router.RouteLocationRaw | undefined;
294
+ to?: string | vue_router.RouteLocationAsRelativeGeneric | vue_router.RouteLocationAsPathGeneric | undefined;
295
295
  icon?: boolean | IconValue | undefined;
296
296
  href?: string | undefined;
297
297
  elevation?: string | number | undefined;
@@ -396,7 +396,7 @@ declare const VFab: {
396
396
  text?: string | undefined;
397
397
  class?: any;
398
398
  theme?: string | undefined;
399
- to?: vue_router.RouteLocationRaw | undefined;
399
+ to?: string | vue_router.RouteLocationAsRelativeGeneric | vue_router.RouteLocationAsPathGeneric | undefined;
400
400
  icon?: boolean | IconValue | undefined;
401
401
  href?: string | undefined;
402
402
  elevation?: string | number | undefined;
@@ -1,4 +1,4 @@
1
- import { mergeProps as _mergeProps, Fragment as _Fragment, withDirectives as _withDirectives, vShow as _vShow, resolveDirective as _resolveDirective, createVNode as _createVNode } from "vue";
1
+ import { createVNode as _createVNode, vShow as _vShow, withDirectives as _withDirectives, Fragment as _Fragment, mergeProps as _mergeProps } from "vue";
2
2
  // Styles
3
3
  import "./VField.css";
4
4
 
@@ -1,4 +1,4 @@
1
- import { createVNode as _createVNode, resolveDirective as _resolveDirective } from "vue";
1
+ import { createVNode as _createVNode } from "vue";
2
2
  // Components
3
3
  import { VLabel } from "../VLabel/index.mjs"; // Composables
4
4
  import { makeComponentProps } from "../../composables/component.mjs"; // Utilities
@@ -1,5 +1,5 @@
1
1
  import * as vue from 'vue';
2
- import { ComponentPropsOptions, ExtractPropTypes, VNodeChild, VNode, PropType, ComponentPublicInstance, FunctionalComponent, Ref } from 'vue';
2
+ import { VNodeChild, VNode, ComponentPropsOptions, ExtractPropTypes, ComponentPublicInstance, FunctionalComponent, PropType, Ref } from 'vue';
3
3
 
4
4
  type SlotsToProps<U extends RawSlots, T = MakeInternalSlots<U>> = {
5
5
  $children?: (VNodeChild | (T extends {
@@ -1,4 +1,4 @@
1
- import { resolveDirective as _resolveDirective, createVNode as _createVNode, mergeProps as _mergeProps, Fragment as _Fragment } from "vue";
1
+ import { Fragment as _Fragment, mergeProps as _mergeProps, createVNode as _createVNode } from "vue";
2
2
  // Styles
3
3
  import "./VFileInput.css";
4
4
 
@@ -138,8 +138,7 @@ export const VFileInput = genericComponent()({
138
138
  const fieldProps = filterFieldProps(props);
139
139
  return _createVNode(VInput, _mergeProps({
140
140
  "ref": vInputRef,
141
- "modelValue": model.value,
142
- "onUpdate:modelValue": $event => model.value = $event,
141
+ "modelValue": props.multiple ? model.value : model.value[0],
143
142
  "class": ['v-file-input', {
144
143
  'v-file-input--chips': !!props.chips,
145
144
  'v-file-input--hide': props.hideInput,
@@ -1 +1 @@
1
- {"version":3,"file":"VFileInput.mjs","names":["VChip","VCounter","VField","filterFieldProps","makeVFieldProps","makeVInputProps","VInput","useFocus","forwardRefs","useLocale","useProxiedModel","computed","nextTick","ref","watch","callEvent","filterInputAttrs","genericComponent","humanReadableFileSize","propsFactory","useRender","wrapInArray","makeVFileInputProps","chips","Boolean","counter","counterSizeString","type","String","default","counterString","hideInput","multiple","showSize","Number","validator","v","includes","prependIcon","modelValue","Array","Object","props","val","every","clearable","VFileInput","name","inheritAttrs","emits","e","focused","files","setup","_ref","attrs","emit","slots","t","model","isArray","isFocused","focus","blur","base","undefined","totalBytes","value","reduce","bytes","_ref2","size","totalBytesReadable","fileNames","map","file","counterValue","fileCount","length","vInputRef","vFieldRef","inputRef","isActive","active","isPlainOrUnderlined","variant","onFocus","document","activeElement","onClickPrepend","click","onControlMousedown","onControlClick","onClear","stopPropagation","newValue","hasModelReset","hasCounter","hasDetails","details","rootAttrs","inputAttrs","_","inputProps","filterProps","fieldProps","_createVNode","_mergeProps","$event","class","style","_ref3","id","isDisabled","isDirty","isReadonly","isValid","dirty","_ref4","fieldClass","slotProps","_Fragment","preventDefault","target","selection","text","join","disabled"],"sources":["../../../src/components/VFileInput/VFileInput.tsx"],"sourcesContent":["// Styles\nimport './VFileInput.sass'\n\n// Components\nimport { VChip } from '@/components/VChip'\nimport { VCounter } from '@/components/VCounter'\nimport { VField } from '@/components/VField'\nimport { filterFieldProps, makeVFieldProps } from '@/components/VField/VField'\nimport { makeVInputProps, VInput } from '@/components/VInput/VInput'\n\n// Composables\nimport { useFocus } from '@/composables/focus'\nimport { forwardRefs } from '@/composables/forwardRefs'\nimport { useLocale } from '@/composables/locale'\nimport { useProxiedModel } from '@/composables/proxiedModel'\n\n// Utilities\nimport { computed, nextTick, ref, watch } from 'vue'\nimport {\n callEvent,\n filterInputAttrs,\n genericComponent,\n humanReadableFileSize,\n propsFactory,\n useRender,\n wrapInArray,\n} from '@/util'\n\n// Types\nimport type { PropType } from 'vue'\nimport type { VFieldSlots } from '@/components/VField/VField'\nimport type { VInputSlots } from '@/components/VInput/VInput'\n\nexport type VFileInputSlots = VInputSlots & VFieldSlots & {\n counter: never\n selection: {\n fileNames: string[]\n totalBytes: number\n totalBytesReadable: string\n }\n}\n\nexport const makeVFileInputProps = propsFactory({\n chips: Boolean,\n counter: Boolean,\n counterSizeString: {\n type: String,\n default: '$vuetify.fileInput.counterSize',\n },\n counterString: {\n type: String,\n default: '$vuetify.fileInput.counter',\n },\n hideInput: Boolean,\n multiple: Boolean,\n showSize: {\n type: [Boolean, Number, String] as PropType<boolean | 1000 | 1024>,\n default: false,\n validator: (v: boolean | number) => {\n return (\n typeof v === 'boolean' ||\n [1000, 1024].includes(Number(v))\n )\n },\n },\n\n ...makeVInputProps({ prependIcon: '$file' }),\n\n modelValue: {\n type: [Array, Object] as PropType<File[] | File | null>,\n default: (props: any) => props.multiple ? [] : null,\n validator: (val: any) => {\n return wrapInArray(val).every(v => v != null && typeof v === 'object')\n },\n },\n\n ...makeVFieldProps({ clearable: true }),\n}, 'VFileInput')\n\nexport const VFileInput = genericComponent<VFileInputSlots>()({\n name: 'VFileInput',\n\n inheritAttrs: false,\n\n props: makeVFileInputProps(),\n\n emits: {\n 'click:control': (e: MouseEvent) => true,\n 'mousedown:control': (e: MouseEvent) => true,\n 'update:focused': (focused: boolean) => true,\n 'update:modelValue': (files: File | File[]) => true,\n },\n\n setup (props, { attrs, emit, slots }) {\n const { t } = useLocale()\n const model = useProxiedModel(\n props,\n 'modelValue',\n props.modelValue,\n val => wrapInArray(val),\n val => (!props.multiple && Array.isArray(val)) ? val[0] : val,\n )\n const { isFocused, focus, blur } = useFocus(props)\n const base = computed(() => typeof props.showSize !== 'boolean' ? props.showSize : undefined)\n const totalBytes = computed(() => (model.value ?? []).reduce((bytes, { size = 0 }) => bytes + size, 0))\n const totalBytesReadable = computed(() => humanReadableFileSize(totalBytes.value, base.value))\n\n const fileNames = computed(() => (model.value ?? []).map(file => {\n const { name = '', size = 0 } = file\n\n return !props.showSize\n ? name\n : `${name} (${humanReadableFileSize(size, base.value)})`\n }))\n\n const counterValue = computed(() => {\n const fileCount = model.value?.length ?? 0\n if (props.showSize) return t(props.counterSizeString, fileCount, totalBytesReadable.value)\n else return t(props.counterString, fileCount)\n })\n const vInputRef = ref<VInput>()\n const vFieldRef = ref<VInput>()\n const inputRef = ref<HTMLInputElement>()\n const isActive = computed(() => (\n isFocused.value ||\n props.active\n ))\n const isPlainOrUnderlined = computed(() => ['plain', 'underlined'].includes(props.variant))\n function onFocus () {\n if (inputRef.value !== document.activeElement) {\n inputRef.value?.focus()\n }\n\n if (!isFocused.value) focus()\n }\n function onClickPrepend (e: MouseEvent) {\n inputRef.value?.click()\n }\n function onControlMousedown (e: MouseEvent) {\n emit('mousedown:control', e)\n }\n function onControlClick (e: MouseEvent) {\n inputRef.value?.click()\n\n emit('click:control', e)\n }\n function onClear (e: MouseEvent) {\n e.stopPropagation()\n\n onFocus()\n\n nextTick(() => {\n model.value = []\n\n callEvent(props['onClick:clear'], e)\n })\n }\n\n watch(model, newValue => {\n const hasModelReset = !Array.isArray(newValue) || !newValue.length\n\n if (hasModelReset && inputRef.value) {\n inputRef.value.value = ''\n }\n })\n\n useRender(() => {\n const hasCounter = !!(slots.counter || props.counter)\n const hasDetails = !!(hasCounter || slots.details)\n const [rootAttrs, inputAttrs] = filterInputAttrs(attrs)\n const { modelValue: _, ...inputProps } = VInput.filterProps(props)\n const fieldProps = filterFieldProps(props)\n\n return (\n <VInput\n ref={ vInputRef }\n v-model={ model.value }\n class={[\n 'v-file-input',\n {\n 'v-file-input--chips': !!props.chips,\n 'v-file-input--hide': props.hideInput,\n 'v-input--plain-underlined': isPlainOrUnderlined.value,\n },\n props.class,\n ]}\n style={ props.style }\n onClick:prepend={ onClickPrepend }\n { ...rootAttrs }\n { ...inputProps }\n centerAffix={ !isPlainOrUnderlined.value }\n focused={ isFocused.value }\n >\n {{\n ...slots,\n default: ({\n id,\n isDisabled,\n isDirty,\n isReadonly,\n isValid,\n }) => (\n <VField\n ref={ vFieldRef }\n prepend-icon={ props.prependIcon }\n onMousedown={ onControlMousedown }\n onClick={ onControlClick }\n onClick:clear={ onClear }\n onClick:prependInner={ props['onClick:prependInner'] }\n onClick:appendInner={ props['onClick:appendInner'] }\n { ...fieldProps }\n id={ id.value }\n active={ isActive.value || isDirty.value }\n dirty={ isDirty.value || props.dirty }\n disabled={ isDisabled.value }\n focused={ isFocused.value }\n error={ isValid.value === false }\n >\n {{\n ...slots,\n default: ({\n props: { class: fieldClass, ...slotProps },\n }) => (\n <>\n <input\n ref={ inputRef }\n type=\"file\"\n readonly={ isReadonly.value }\n disabled={ isDisabled.value }\n multiple={ props.multiple }\n name={ props.name }\n onClick={ e => {\n e.stopPropagation()\n\n if (isReadonly.value) e.preventDefault()\n\n onFocus()\n }}\n onChange={ e => {\n if (!e.target) return\n\n const target = e.target as HTMLInputElement\n model.value = [...target.files ?? []]\n }}\n onFocus={ onFocus }\n onBlur={ blur }\n { ...slotProps }\n { ...inputAttrs }\n />\n\n <div class={ fieldClass }>\n { !!model.value?.length && !props.hideInput && (\n slots.selection ? slots.selection({\n fileNames: fileNames.value,\n totalBytes: totalBytes.value,\n totalBytesReadable: totalBytesReadable.value,\n })\n : props.chips ? fileNames.value.map(text => (\n <VChip\n key={ text }\n size=\"small\"\n text={ text }\n />\n ))\n : fileNames.value.join(', ')\n )}\n </div>\n </>\n ),\n }}\n </VField>\n ),\n details: hasDetails ? slotProps => (\n <>\n { slots.details?.(slotProps) }\n\n { hasCounter && (\n <>\n <span />\n\n <VCounter\n active={ !!model.value?.length }\n value={ counterValue.value }\n disabled={ props.disabled }\n v-slots:default={ slots.counter }\n />\n </>\n )}\n </>\n ) : undefined,\n }}\n </VInput>\n )\n })\n\n return forwardRefs({}, vInputRef, vFieldRef, inputRef)\n },\n})\n\nexport type VFileInput = InstanceType<typeof VFileInput>\n"],"mappings":";AAAA;AACA;;AAEA;AAAA,SACSA,KAAK;AAAA,SACLC,QAAQ;AAAA,SACRC,MAAM;AAAA,SACNC,gBAAgB,EAAEC,eAAe;AAAA,SACjCC,eAAe,EAAEC,MAAM,gCAEhC;AAAA,SACSC,QAAQ;AAAA,SACRC,WAAW;AAAA,SACXC,SAAS;AAAA,SACTC,eAAe,8CAExB;AACA,SAASC,QAAQ,EAAEC,QAAQ,EAAEC,GAAG,EAAEC,KAAK,QAAQ,KAAK;AAAA,SAElDC,SAAS,EACTC,gBAAgB,EAChBC,gBAAgB,EAChBC,qBAAqB,EACrBC,YAAY,EACZC,SAAS,EACTC,WAAW,gCAGb;AAcA,OAAO,MAAMC,mBAAmB,GAAGH,YAAY,CAAC;EAC9CI,KAAK,EAAEC,OAAO;EACdC,OAAO,EAAED,OAAO;EAChBE,iBAAiB,EAAE;IACjBC,IAAI,EAAEC,MAAM;IACZC,OAAO,EAAE;EACX,CAAC;EACDC,aAAa,EAAE;IACbH,IAAI,EAAEC,MAAM;IACZC,OAAO,EAAE;EACX,CAAC;EACDE,SAAS,EAAEP,OAAO;EAClBQ,QAAQ,EAAER,OAAO;EACjBS,QAAQ,EAAE;IACRN,IAAI,EAAE,CAACH,OAAO,EAAEU,MAAM,EAAEN,MAAM,CAAoC;IAClEC,OAAO,EAAE,KAAK;IACdM,SAAS,EAAGC,CAAmB,IAAK;MAClC,OACE,OAAOA,CAAC,KAAK,SAAS,IACtB,CAAC,IAAI,EAAE,IAAI,CAAC,CAACC,QAAQ,CAACH,MAAM,CAACE,CAAC,CAAC,CAAC;IAEpC;EACF,CAAC;EAED,GAAG/B,eAAe,CAAC;IAAEiC,WAAW,EAAE;EAAQ,CAAC,CAAC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K,CAACqF;QAAQ,GACPtE,KAAK,CAAChC,OAAO,GAGpC,EAEJ,GAAGwC;MAAS;IAIrB,CAAC,CAAC;IAEF,OAAOzD,WAAW,CAAC,CAAC,CAAC,EAAEuE,SAAS,EAAEC,SAAS,EAAEC,QAAQ,CAAC;EACxD;AACF,CAAC,CAAC","ignoreList":[]}
1
+ {"version":3,"file":"VFileInput.mjs","names":["VChip","VCounter","VField","filterFieldProps","makeVFieldProps","makeVInputProps","VInput","useFocus","forwardRefs","useLocale","useProxiedModel","computed","nextTick","ref","watch","callEvent","filterInputAttrs","genericComponent","humanReadableFileSize","propsFactory","useRender","wrapInArray","makeVFileInputProps","chips","Boolean","counter","counterSizeString","type","String","default","counterString","hideInput","multiple","showSize","Number","validator","v","includes","prependIcon","modelValue","Array","Object","props","val","every","clearable","VFileInput","name","inheritAttrs","emits","e","focused","files","setup","_ref","attrs","emit","slots","t","model","isArray","isFocused","focus","blur","base","undefined","totalBytes","value","reduce","bytes","_ref2","size","totalBytesReadable","fileNames","map","file","counterValue","fileCount","length","vInputRef","vFieldRef","inputRef","isActive","active","isPlainOrUnderlined","variant","onFocus","document","activeElement","onClickPrepend","click","onControlMousedown","onControlClick","onClear","stopPropagation","newValue","hasModelReset","hasCounter","hasDetails","details","rootAttrs","inputAttrs","_","inputProps","filterProps","fieldProps","_createVNode","_mergeProps","class","style","_ref3","id","isDisabled","isDirty","isReadonly","isValid","dirty","_ref4","fieldClass","slotProps","_Fragment","preventDefault","target","selection","text","join","disabled"],"sources":["../../../src/components/VFileInput/VFileInput.tsx"],"sourcesContent":["// Styles\nimport './VFileInput.sass'\n\n// Components\nimport { VChip } from '@/components/VChip'\nimport { VCounter } from '@/components/VCounter'\nimport { VField } from '@/components/VField'\nimport { filterFieldProps, makeVFieldProps } from '@/components/VField/VField'\nimport { makeVInputProps, VInput } from '@/components/VInput/VInput'\n\n// Composables\nimport { useFocus } from '@/composables/focus'\nimport { forwardRefs } from '@/composables/forwardRefs'\nimport { useLocale } from '@/composables/locale'\nimport { useProxiedModel } from '@/composables/proxiedModel'\n\n// Utilities\nimport { computed, nextTick, ref, watch } from 'vue'\nimport {\n callEvent,\n filterInputAttrs,\n genericComponent,\n humanReadableFileSize,\n propsFactory,\n useRender,\n wrapInArray,\n} from '@/util'\n\n// Types\nimport type { PropType } from 'vue'\nimport type { VFieldSlots } from '@/components/VField/VField'\nimport type { VInputSlots } from '@/components/VInput/VInput'\n\nexport type VFileInputSlots = VInputSlots & VFieldSlots & {\n counter: never\n selection: {\n fileNames: string[]\n totalBytes: number\n totalBytesReadable: string\n }\n}\n\nexport const makeVFileInputProps = propsFactory({\n chips: Boolean,\n counter: Boolean,\n counterSizeString: {\n type: String,\n default: '$vuetify.fileInput.counterSize',\n },\n counterString: {\n type: String,\n default: '$vuetify.fileInput.counter',\n },\n hideInput: Boolean,\n multiple: Boolean,\n showSize: {\n type: [Boolean, Number, String] as PropType<boolean | 1000 | 1024>,\n default: false,\n validator: (v: boolean | number) => {\n return (\n typeof v === 'boolean' ||\n [1000, 1024].includes(Number(v))\n )\n },\n },\n\n ...makeVInputProps({ prependIcon: '$file' }),\n\n modelValue: {\n type: [Array, Object] as PropType<File[] | File | null>,\n default: (props: any) => props.multiple ? [] : null,\n validator: (val: any) => {\n return wrapInArray(val).every(v => v != null && typeof v === 'object')\n },\n },\n\n ...makeVFieldProps({ clearable: true }),\n}, 'VFileInput')\n\nexport const VFileInput = genericComponent<VFileInputSlots>()({\n name: 'VFileInput',\n\n inheritAttrs: false,\n\n props: makeVFileInputProps(),\n\n emits: {\n 'click:control': (e: MouseEvent) => true,\n 'mousedown:control': (e: MouseEvent) => true,\n 'update:focused': (focused: boolean) => true,\n 'update:modelValue': (files: File | File[]) => true,\n },\n\n setup (props, { attrs, emit, slots }) {\n const { t } = useLocale()\n const model = useProxiedModel(\n props,\n 'modelValue',\n props.modelValue,\n val => wrapInArray(val),\n val => (!props.multiple && Array.isArray(val)) ? val[0] : val,\n )\n const { isFocused, focus, blur } = useFocus(props)\n const base = computed(() => typeof props.showSize !== 'boolean' ? props.showSize : undefined)\n const totalBytes = computed(() => (model.value ?? []).reduce((bytes, { size = 0 }) => bytes + size, 0))\n const totalBytesReadable = computed(() => humanReadableFileSize(totalBytes.value, base.value))\n\n const fileNames = computed(() => (model.value ?? []).map(file => {\n const { name = '', size = 0 } = file\n\n return !props.showSize\n ? name\n : `${name} (${humanReadableFileSize(size, base.value)})`\n }))\n\n const counterValue = computed(() => {\n const fileCount = model.value?.length ?? 0\n if (props.showSize) return t(props.counterSizeString, fileCount, totalBytesReadable.value)\n else return t(props.counterString, fileCount)\n })\n const vInputRef = ref<VInput>()\n const vFieldRef = ref<VInput>()\n const inputRef = ref<HTMLInputElement>()\n const isActive = computed(() => (\n isFocused.value ||\n props.active\n ))\n const isPlainOrUnderlined = computed(() => ['plain', 'underlined'].includes(props.variant))\n function onFocus () {\n if (inputRef.value !== document.activeElement) {\n inputRef.value?.focus()\n }\n\n if (!isFocused.value) focus()\n }\n function onClickPrepend (e: MouseEvent) {\n inputRef.value?.click()\n }\n function onControlMousedown (e: MouseEvent) {\n emit('mousedown:control', e)\n }\n function onControlClick (e: MouseEvent) {\n inputRef.value?.click()\n\n emit('click:control', e)\n }\n function onClear (e: MouseEvent) {\n e.stopPropagation()\n\n onFocus()\n\n nextTick(() => {\n model.value = []\n\n callEvent(props['onClick:clear'], e)\n })\n }\n\n watch(model, newValue => {\n const hasModelReset = !Array.isArray(newValue) || !newValue.length\n\n if (hasModelReset && inputRef.value) {\n inputRef.value.value = ''\n }\n })\n\n useRender(() => {\n const hasCounter = !!(slots.counter || props.counter)\n const hasDetails = !!(hasCounter || slots.details)\n const [rootAttrs, inputAttrs] = filterInputAttrs(attrs)\n const { modelValue: _, ...inputProps } = VInput.filterProps(props)\n const fieldProps = filterFieldProps(props)\n\n return (\n <VInput\n ref={ vInputRef }\n modelValue={ props.multiple ? model.value : model.value[0] }\n class={[\n 'v-file-input',\n {\n 'v-file-input--chips': !!props.chips,\n 'v-file-input--hide': props.hideInput,\n 'v-input--plain-underlined': isPlainOrUnderlined.value,\n },\n props.class,\n ]}\n style={ props.style }\n onClick:prepend={ onClickPrepend }\n { ...rootAttrs }\n { ...inputProps }\n centerAffix={ !isPlainOrUnderlined.value }\n focused={ isFocused.value }\n >\n {{\n ...slots,\n default: ({\n id,\n isDisabled,\n isDirty,\n isReadonly,\n isValid,\n }) => (\n <VField\n ref={ vFieldRef }\n prepend-icon={ props.prependIcon }\n onMousedown={ onControlMousedown }\n onClick={ onControlClick }\n onClick:clear={ onClear }\n onClick:prependInner={ props['onClick:prependInner'] }\n onClick:appendInner={ props['onClick:appendInner'] }\n { ...fieldProps }\n id={ id.value }\n active={ isActive.value || isDirty.value }\n dirty={ isDirty.value || props.dirty }\n disabled={ isDisabled.value }\n focused={ isFocused.value }\n error={ isValid.value === false }\n >\n {{\n ...slots,\n default: ({\n props: { class: fieldClass, ...slotProps },\n }) => (\n <>\n <input\n ref={ inputRef }\n type=\"file\"\n readonly={ isReadonly.value }\n disabled={ isDisabled.value }\n multiple={ props.multiple }\n name={ props.name }\n onClick={ e => {\n e.stopPropagation()\n\n if (isReadonly.value) e.preventDefault()\n\n onFocus()\n }}\n onChange={ e => {\n if (!e.target) return\n\n const target = e.target as HTMLInputElement\n model.value = [...target.files ?? []]\n }}\n onFocus={ onFocus }\n onBlur={ blur }\n { ...slotProps }\n { ...inputAttrs }\n />\n\n <div class={ fieldClass }>\n { !!model.value?.length && !props.hideInput && (\n slots.selection ? slots.selection({\n fileNames: fileNames.value,\n totalBytes: totalBytes.value,\n totalBytesReadable: totalBytesReadable.value,\n })\n : props.chips ? fileNames.value.map(text => (\n <VChip\n key={ text }\n size=\"small\"\n text={ text }\n />\n ))\n : fileNames.value.join(', ')\n )}\n </div>\n </>\n ),\n }}\n </VField>\n ),\n details: hasDetails ? slotProps => (\n <>\n { slots.details?.(slotProps) }\n\n { hasCounter && (\n <>\n <span />\n\n <VCounter\n active={ !!model.value?.length }\n value={ counterValue.value }\n disabled={ props.disabled }\n v-slots:default={ slots.counter }\n />\n </>\n )}\n </>\n ) : undefined,\n }}\n </VInput>\n )\n })\n\n return forwardRefs({}, vInputRef, vFieldRef, inputRef)\n },\n})\n\nexport type VFileInput = InstanceType<typeof VFileInput>\n"],"mappings":";AAAA;AACA;;AAEA;AAAA,SACSA,KAAK;AAAA,SACLC,QAAQ;AAAA,SACRC,MAAM;AAAA,SACNC,gBAAgB,EAAEC,eAAe;AAAA,SACjCC,eAAe,EAAEC,MAAM,gCAEhC;AAAA,SACSC,QAAQ;AAAA,SACRC,WAAW;AAAA,SACXC,SAAS;AAAA,SACTC,eAAe,8CAExB;AACA,SAASC,QAAQ,EAAEC,QAAQ,EAAEC,GAAG,EAAEC,KAAK,QAAQ,KAAK;AAAA,SAElDC,SAAS,EACTC,gBAAgB,EAChBC,gBAAgB,EAChBC,qBAAqB,EACrBC,YAAY,EACZC,SAAS,EACTC,WAAW,gCAGb;AAcA,OAAO,MAAMC,mBAAmB,GAAGH,YAAY,CAAC;EAC9CI,KAAK,EAAEC,OAAO;EACdC,OAAO,EAAED,OAAO;EAChBE,iBAAiB,EAAE;IACjBC,IAAI,EAAEC,MAAM;IACZC,OAAO,EAAE;EACX,CAAC;EACDC,aAAa,EAAE;IACbH,IAAI,EAAEC,MAAM;IACZC,OAAO,EAAE;EACX,CAAC;EACDE,SAAS,EAAEP,OAAO;EAClBQ,QAAQ,EAAER,OAAO;EACjBS,QAAQ,EAAE;IACRN,IAAI,EAAE,CAACH,OAAO,EAAEU,MAAM,EAAEN,MAAM,CAAoC;IAClEC,OAAO,EAAE,KAAK;IACdM,SAAS,EAAGC,CAAmB,IAAK;MAClC,OACE,OAAOA,CAAC,KAAK,SAAS,IACtB,CAAC,IAAI,EAAE,IAAI,CAAC,CAACC,QAAQ,CAACH,MAAM,CAACE,CAAC,CAAC,CAAC;IAEpC;EACF,CAAC;EAED,GAAG/B,eAAe,CAAC;IAAEiC,WAAW,EAAE;EAAQ,CAA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