@vuetify/nightly 3.7.6-dev.2024-12-18 → 3.7.6-master.2024-12-26

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 (281) hide show
  1. package/dist/json/attributes.json +3084 -3092
  2. package/dist/json/importMap-labs.json +12 -12
  3. package/dist/json/importMap.json +170 -170
  4. package/dist/json/tags.json +0 -2
  5. package/dist/json/web-types.json +5816 -5834
  6. package/dist/vuetify-labs.css +3582 -3582
  7. package/dist/vuetify-labs.d.ts +14357 -3345
  8. package/dist/vuetify-labs.esm.js +47 -45
  9. package/dist/vuetify-labs.esm.js.map +1 -1
  10. package/dist/vuetify-labs.js +46 -44
  11. package/dist/vuetify-labs.min.css +2 -2
  12. package/dist/vuetify.css +4113 -4113
  13. package/dist/vuetify.d.ts +11917 -2743
  14. package/dist/vuetify.esm.js +47 -45
  15. package/dist/vuetify.esm.js.map +1 -1
  16. package/dist/vuetify.js +46 -44
  17. package/dist/vuetify.js.map +1 -1
  18. package/dist/vuetify.min.css +2 -2
  19. package/dist/vuetify.min.js +883 -878
  20. package/dist/vuetify.min.js.map +1 -1
  21. package/lib/components/VAlert/VAlert.mjs +1 -1
  22. package/lib/components/VAlert/index.d.mts +86 -8
  23. package/lib/components/VApp/index.d.mts +20 -4
  24. package/lib/components/VAppBar/VAppBar.mjs +1 -1
  25. package/lib/components/VAppBar/VAppBarNavIcon.mjs +1 -1
  26. package/lib/components/VAppBar/VAppBarTitle.mjs +1 -1
  27. package/lib/components/VAppBar/index.d.mts +154 -18
  28. package/lib/components/VAutocomplete/VAutocomplete.mjs +1 -1
  29. package/lib/components/VAutocomplete/index.d.mts +1380 -221
  30. package/lib/components/VAvatar/index.d.mts +31 -4
  31. package/lib/components/VBadge/VBadge.mjs +1 -1
  32. package/lib/components/VBadge/index.d.mts +41 -4
  33. package/lib/components/VBanner/VBanner.mjs +1 -1
  34. package/lib/components/VBanner/index.d.mts +88 -12
  35. package/lib/components/VBottomNavigation/index.d.mts +32 -4
  36. package/lib/components/VBottomSheet/VBottomSheet.mjs +1 -1
  37. package/lib/components/VBottomSheet/index.d.mts +88 -4
  38. package/lib/components/VBreadcrumbs/VBreadcrumbs.mjs +1 -1
  39. package/lib/components/VBreadcrumbs/VBreadcrumbsItem.mjs +1 -1
  40. package/lib/components/VBreadcrumbs/index.d.mts +65 -12
  41. package/lib/components/VBtn/VBtn.mjs +1 -1
  42. package/lib/components/VBtn/index.d.mts +79 -11
  43. package/lib/components/VBtnGroup/VBtnGroup.mjs +1 -1
  44. package/lib/components/VBtnGroup/index.d.mts +28 -4
  45. package/lib/components/VBtnToggle/VBtnToggle.mjs +1 -1
  46. package/lib/components/VBtnToggle/index.d.mts +33 -13
  47. package/lib/components/VCard/VCard.mjs +1 -1
  48. package/lib/components/VCard/VCardItem.mjs +1 -1
  49. package/lib/components/VCard/VCardSubtitle.mjs +1 -1
  50. package/lib/components/VCard/VCardText.mjs +1 -1
  51. package/lib/components/VCard/index.d.mts +190 -24
  52. package/lib/components/VCarousel/VCarousel.mjs +1 -1
  53. package/lib/components/VCarousel/VCarousel.mjs.map +1 -1
  54. package/lib/components/VCarousel/VCarouselItem.mjs +1 -1
  55. package/lib/components/VCarousel/index.d.mts +95 -17
  56. package/lib/components/VCheckbox/VCheckbox.mjs +4 -4
  57. package/lib/components/VCheckbox/VCheckbox.mjs.map +1 -1
  58. package/lib/components/VCheckbox/VCheckboxBtn.mjs +1 -1
  59. package/lib/components/VCheckbox/index.d.mts +90 -8
  60. package/lib/components/VChip/VChip.mjs +9 -16
  61. package/lib/components/VChip/VChip.mjs.map +1 -1
  62. package/lib/components/VChip/index.d.mts +105 -9
  63. package/lib/components/VChipGroup/VChipGroup.mjs +1 -3
  64. package/lib/components/VChipGroup/VChipGroup.mjs.map +1 -1
  65. package/lib/components/VChipGroup/index.d.mts +43 -24
  66. package/lib/components/VCode/index.d.mts +18 -4
  67. package/lib/components/VColorPicker/VColorPicker.mjs +1 -1
  68. package/lib/components/VColorPicker/index.d.mts +68 -4
  69. package/lib/components/VCombobox/VCombobox.mjs +1 -1
  70. package/lib/components/VCombobox/index.d.mts +1380 -221
  71. package/lib/components/VConfirmEdit/VConfirmEdit.mjs +1 -1
  72. package/lib/components/VConfirmEdit/__test__/VConfirmEdit.spec.browser.mjs +1 -1
  73. package/lib/components/VConfirmEdit/index.d.mts +13 -6
  74. package/lib/components/VCounter/VCounter.mjs +1 -1
  75. package/lib/components/VCounter/index.d.mts +31 -9
  76. package/lib/components/VDataIterator/index.d.mts +56 -12
  77. package/lib/components/VDataTable/VDataTable.mjs +1 -1
  78. package/lib/components/VDataTable/VDataTableFooter.mjs +1 -1
  79. package/lib/components/VDataTable/VDataTableGroupHeaderRow.mjs +1 -1
  80. package/lib/components/VDataTable/VDataTableHeaders.mjs +1 -1
  81. package/lib/components/VDataTable/VDataTableRow.mjs +1 -1
  82. package/lib/components/VDataTable/VDataTableRows.mjs +1 -1
  83. package/lib/components/VDataTable/VDataTableServer.mjs +1 -1
  84. package/lib/components/VDataTable/VDataTableVirtual.mjs +1 -1
  85. package/lib/components/VDataTable/index.d.mts +388 -36
  86. package/lib/components/VDatePicker/VDatePicker.mjs +1 -1
  87. package/lib/components/VDatePicker/VDatePickerMonth.mjs +1 -1
  88. package/lib/components/VDatePicker/VDatePickerMonths.mjs +1 -1
  89. package/lib/components/VDatePicker/VDatePickerYears.mjs +1 -1
  90. package/lib/components/VDatePicker/index.d.mts +276 -24
  91. package/lib/components/VDefaultsProvider/index.d.mts +20 -4
  92. package/lib/components/VDialog/VDialog.mjs +1 -1
  93. package/lib/components/VDialog/__test__/VDialog.spec.cy.mjs +1 -1
  94. package/lib/components/VDialog/index.d.mts +389 -143
  95. package/lib/components/VDivider/index.d.mts +24 -4
  96. package/lib/components/VEmptyState/VEmptyState.mjs +1 -1
  97. package/lib/components/VEmptyState/index.d.mts +66 -4
  98. package/lib/components/VExpansionPanel/VExpansionPanelText.mjs +1 -1
  99. package/lib/components/VExpansionPanel/VExpansionPanelTitle.mjs +1 -1
  100. package/lib/components/VExpansionPanel/index.d.mts +159 -23
  101. package/lib/components/VFab/VFab.mjs +1 -1
  102. package/lib/components/VFab/index.d.mts +84 -15
  103. package/lib/components/VField/VField.mjs +4 -4
  104. package/lib/components/VField/VField.mjs.map +1 -1
  105. package/lib/components/VField/VFieldLabel.mjs +1 -1
  106. package/lib/components/VField/index.d.mts +59 -11
  107. package/lib/components/VFileInput/VFileInput.mjs +1 -1
  108. package/lib/components/VFileInput/index.d.mts +256 -71
  109. package/lib/components/VFooter/VFooter.mjs +1 -1
  110. package/lib/components/VFooter/index.d.mts +29 -4
  111. package/lib/components/VForm/index.d.mts +175 -267
  112. package/lib/components/VGrid/VContainer.mjs +1 -1
  113. package/lib/components/VGrid/index.d.mts +118 -16
  114. package/lib/components/VHover/index.d.mts +33 -4
  115. package/lib/components/VIcon/index.d.mts +75 -17
  116. package/lib/components/VImg/VImg.mjs +1 -1
  117. package/lib/components/VImg/index.d.mts +74 -19
  118. package/lib/components/VInfiniteScroll/VInfiniteScroll.mjs +1 -1
  119. package/lib/components/VInfiniteScroll/index.d.mts +46 -4
  120. package/lib/components/VInput/VInput.mjs +4 -4
  121. package/lib/components/VInput/VInput.mjs.map +1 -1
  122. package/lib/components/VInput/index.d.mts +37 -4
  123. package/lib/components/VItemGroup/VItemGroup.mjs.map +1 -1
  124. package/lib/components/VItemGroup/index.d.mts +74 -17
  125. package/lib/components/VKbd/index.d.mts +18 -4
  126. package/lib/components/VLabel/index.d.mts +20 -4
  127. package/lib/components/VLayout/index.d.mts +48 -8
  128. package/lib/components/VLazy/VLazy.mjs +1 -1
  129. package/lib/components/VLazy/index.d.mts +31 -4
  130. package/lib/components/VList/VList.mjs +1 -1
  131. package/lib/components/VList/VListChildren.mjs +1 -1
  132. package/lib/components/VList/VListGroup.mjs +1 -1
  133. package/lib/components/VList/VListItem.mjs +1 -1
  134. package/lib/components/VList/VListItemAction.mjs +1 -1
  135. package/lib/components/VList/VListItemMedia.mjs +1 -1
  136. package/lib/components/VList/VListItemSubtitle.mjs +1 -1
  137. package/lib/components/VList/index.d.mts +291 -48
  138. package/lib/components/VLocaleProvider/index.d.mts +21 -4
  139. package/lib/components/VMain/index.d.mts +25 -4
  140. package/lib/components/VMenu/VMenu.mjs +4 -4
  141. package/lib/components/VMenu/VMenu.mjs.map +1 -1
  142. package/lib/components/VMenu/index.d.mts +397 -155
  143. package/lib/components/VMessages/index.d.mts +27 -4
  144. package/lib/components/VNavigationDrawer/VNavigationDrawer.mjs +1 -1
  145. package/lib/components/VNavigationDrawer/index.d.mts +62 -7
  146. package/lib/components/VOtpInput/VOtpInput.mjs +1 -1
  147. package/lib/components/VOtpInput/index.d.mts +52 -7
  148. package/lib/components/VOverlay/VOverlay.mjs +1 -1
  149. package/lib/components/VOverlay/index.d.mts +101 -19
  150. package/lib/components/VPagination/VPagination.mjs +1 -1
  151. package/lib/components/VPagination/index.d.mts +64 -4
  152. package/lib/components/VParallax/VParallax.mjs +1 -1
  153. package/lib/components/VParallax/index.d.mts +27 -4
  154. package/lib/components/VProgressCircular/index.d.mts +34 -4
  155. package/lib/components/VProgressLinear/index.d.mts +54 -4
  156. package/lib/components/VRadio/VRadio.mjs +1 -1
  157. package/lib/components/VRadio/index.d.mts +68 -4
  158. package/lib/components/VRadioGroup/VRadioGroup.mjs +4 -4
  159. package/lib/components/VRadioGroup/VRadioGroup.mjs.map +1 -1
  160. package/lib/components/VRadioGroup/index.d.mts +48 -4
  161. package/lib/components/VRangeSlider/VRangeSlider.mjs +1 -1
  162. package/lib/components/VRangeSlider/index.d.mts +107 -4
  163. package/lib/components/VRating/VRating.mjs +4 -5
  164. package/lib/components/VRating/VRating.mjs.map +1 -1
  165. package/lib/components/VRating/index.d.mts +42 -4
  166. package/lib/components/VResponsive/index.d.mts +29 -4
  167. package/lib/components/VSelect/VSelect.mjs +1 -1
  168. package/lib/components/VSelect/index.d.mts +1372 -220
  169. package/lib/components/VSelectionControl/VSelectionControl.mjs +4 -4
  170. package/lib/components/VSelectionControl/VSelectionControl.mjs.map +1 -1
  171. package/lib/components/VSelectionControl/index.d.mts +37 -10
  172. package/lib/components/VSelectionControlGroup/VSelectionControlGroup.mjs +3 -3
  173. package/lib/components/VSelectionControlGroup/VSelectionControlGroup.mjs.map +1 -1
  174. package/lib/components/VSelectionControlGroup/index.d.mts +26 -4
  175. package/lib/components/VSheet/VSheet.mjs +1 -1
  176. package/lib/components/VSheet/index.d.mts +32 -4
  177. package/lib/components/VSkeletonLoader/VSkeletonLoader.mjs +1 -1
  178. package/lib/components/VSkeletonLoader/index.d.mts +28 -4
  179. package/lib/components/VSlideGroup/index.d.mts +77 -21
  180. package/lib/components/VSlider/VSlider.mjs +1 -1
  181. package/lib/components/VSlider/VSliderThumb.mjs +1 -1
  182. package/lib/components/VSlider/index.d.mts +106 -4
  183. package/lib/components/VSnackbar/VSnackbar.mjs +1 -1
  184. package/lib/components/VSnackbar/index.d.mts +398 -152
  185. package/lib/components/VSparkline/VBarline.mjs +4 -3
  186. package/lib/components/VSparkline/VBarline.mjs.map +1 -1
  187. package/lib/components/VSparkline/VSparkline.mjs +1 -1
  188. package/lib/components/VSparkline/VTrendline.mjs +4 -3
  189. package/lib/components/VSparkline/VTrendline.mjs.map +1 -1
  190. package/lib/components/VSparkline/index.d.mts +49 -4
  191. package/lib/components/VSpeedDial/VSpeedDial.mjs +1 -1
  192. package/lib/components/VSpeedDial/index.d.mts +85 -4
  193. package/lib/components/VStepper/VStepper.mjs +1 -1
  194. package/lib/components/VStepper/VStepperItem.mjs +1 -1
  195. package/lib/components/VStepper/VStepperWindow.mjs +1 -1
  196. package/lib/components/VStepper/VStepperWindowItem.mjs +1 -1
  197. package/lib/components/VStepper/index.d.mts +250 -24
  198. package/lib/components/VSwitch/VSwitch.mjs +4 -4
  199. package/lib/components/VSwitch/VSwitch.mjs.map +1 -1
  200. package/lib/components/VSwitch/index.d.mts +59 -4
  201. package/lib/components/VSystemBar/VSystemBar.mjs +1 -1
  202. package/lib/components/VSystemBar/index.d.mts +28 -4
  203. package/lib/components/VTable/index.d.mts +33 -4
  204. package/lib/components/VTabs/VTab.mjs +1 -1
  205. package/lib/components/VTabs/VTabs.mjs +1 -1
  206. package/lib/components/VTabs/VTabsWindow.mjs +1 -1
  207. package/lib/components/VTabs/VTabsWindowItem.mjs +1 -1
  208. package/lib/components/VTabs/index.d.mts +401 -105
  209. package/lib/components/VTextField/VTextField.mjs +1 -1
  210. package/lib/components/VTextField/index.d.mts +374 -152
  211. package/lib/components/VTextarea/VTextarea.mjs +1 -1
  212. package/lib/components/VTextarea/index.d.mts +244 -71
  213. package/lib/components/VThemeProvider/index.d.mts +20 -4
  214. package/lib/components/VTimeline/VTimeline.mjs +1 -1
  215. package/lib/components/VTimeline/VTimelineDivider.mjs +1 -1
  216. package/lib/components/VTimeline/VTimelineItem.mjs +1 -1
  217. package/lib/components/VTimeline/index.d.mts +75 -8
  218. package/lib/components/VToolbar/VToolbar.mjs +1 -1
  219. package/lib/components/VToolbar/index.d.mts +90 -12
  220. package/lib/components/VTooltip/VTooltip.mjs +4 -4
  221. package/lib/components/VTooltip/VTooltip.mjs.map +1 -1
  222. package/lib/components/VTooltip/index.d.mts +386 -147
  223. package/lib/components/VValidation/index.d.mts +24 -10
  224. package/lib/components/VVirtualScroll/VVirtualScroll.mjs +1 -1
  225. package/lib/components/VVirtualScroll/VVirtualScrollItem.mjs +1 -1
  226. package/lib/components/VVirtualScroll/index.d.mts +15 -4
  227. package/lib/components/VWindow/VWindow.mjs +1 -1
  228. package/lib/components/VWindow/VWindowItem.mjs +1 -1
  229. package/lib/components/VWindow/index.d.mts +54 -15
  230. package/lib/components/index.d.mts +11736 -2562
  231. package/lib/components/transitions/dialog-transition.mjs +2 -1
  232. package/lib/components/transitions/dialog-transition.mjs.map +1 -1
  233. package/lib/components/transitions/index.d.mts +309 -64
  234. package/lib/composables/group.mjs +3 -3
  235. package/lib/composables/group.mjs.map +1 -1
  236. package/lib/composables/icons.mjs +1 -1
  237. package/lib/composables/layout.mjs +3 -3
  238. package/lib/composables/layout.mjs.map +1 -1
  239. package/lib/composables/nested/nested.mjs +2 -2
  240. package/lib/composables/nested/nested.mjs.map +1 -1
  241. package/lib/composables/validation.mjs +3 -3
  242. package/lib/composables/validation.mjs.map +1 -1
  243. package/lib/composables/variant.mjs +1 -1
  244. package/lib/composables/virtual.mjs +1 -1
  245. package/lib/composables/virtual.mjs.map +1 -1
  246. package/lib/entry-bundler.mjs +1 -1
  247. package/lib/entry-bundler.mjs.map +1 -1
  248. package/lib/framework.mjs +3 -2
  249. package/lib/framework.mjs.map +1 -1
  250. package/lib/index.d.mts +62 -62
  251. package/lib/labs/VCalendar/VCalendar.mjs +1 -1
  252. package/lib/labs/VCalendar/VCalendarDay.mjs +1 -1
  253. package/lib/labs/VCalendar/index.d.mts +211 -24
  254. package/lib/labs/VDateInput/VDateInput.mjs +1 -1
  255. package/lib/labs/VDateInput/index.d.mts +115 -4
  256. package/lib/labs/VFileUpload/VFileUpload.mjs +1 -1
  257. package/lib/labs/VFileUpload/VFileUploadItem.mjs +1 -1
  258. package/lib/labs/VFileUpload/index.d.mts +195 -8
  259. package/lib/labs/VNumberInput/VNumberInput.mjs +1 -1
  260. package/lib/labs/VNumberInput/index.d.mts +1267 -564
  261. package/lib/labs/VPicker/VPicker.mjs +1 -1
  262. package/lib/labs/VPicker/index.d.mts +63 -8
  263. package/lib/labs/VPullToRefresh/index.d.mts +35 -4
  264. package/lib/labs/VSnackbarQueue/VSnackbarQueue.mjs +1 -1
  265. package/lib/labs/VSnackbarQueue/index.d.mts +453 -156
  266. package/lib/labs/VStepperVertical/VStepperVertical.mjs +1 -1
  267. package/lib/labs/VStepperVertical/VStepperVerticalActions.mjs +1 -1
  268. package/lib/labs/VStepperVertical/VStepperVerticalItem.mjs +1 -1
  269. package/lib/labs/VStepperVertical/index.d.mts +227 -12
  270. package/lib/labs/VTimePicker/VTimePicker.mjs +1 -1
  271. package/lib/labs/VTimePicker/VTimePickerControls.mjs +1 -1
  272. package/lib/labs/VTimePicker/index.d.mts +122 -12
  273. package/lib/labs/VTreeview/VTreeview.mjs +1 -1
  274. package/lib/labs/VTreeview/VTreeviewChildren.mjs +1 -1
  275. package/lib/labs/VTreeview/VTreeviewGroup.mjs +1 -1
  276. package/lib/labs/VTreeview/VTreeviewItem.mjs +1 -1
  277. package/lib/labs/VTreeview/index.d.mts +205 -18
  278. package/lib/labs/components.d.mts +3056 -972
  279. package/lib/util/getCurrentInstance.mjs +15 -1
  280. package/lib/util/getCurrentInstance.mjs.map +1 -1
  281. package/package.json +4 -5
@@ -45,7 +45,7 @@ type StepperItemSlot = {
45
45
  };
46
46
  type ValidationRule = () => string | boolean;
47
47
  declare const VStepperItem: {
48
- new (...args: any[]): vue.CreateComponentPublicInstanceWithMixins<{
48
+ new (...args: any[]): vue.CreateComponentPublicInstance<{
49
49
  error: boolean;
50
50
  complete: boolean;
51
51
  disabled: boolean;
@@ -90,7 +90,48 @@ declare const VStepperItem: {
90
90
  'group:selected': (val: {
91
91
  value: boolean;
92
92
  }) => true;
93
- }, vue.VNodeProps & vue.AllowedComponentProps & vue.ComponentCustomProps, {
93
+ }, vue.VNodeProps & vue.AllowedComponentProps & vue.ComponentCustomProps & {
94
+ error: boolean;
95
+ complete: boolean;
96
+ disabled: boolean;
97
+ rules: readonly ValidationRule[];
98
+ ripple: boolean | {
99
+ class: string;
100
+ } | undefined;
101
+ completeIcon: IconValue;
102
+ editable: boolean;
103
+ editIcon: IconValue;
104
+ errorIcon: IconValue;
105
+ } & {
106
+ color?: string | undefined;
107
+ value?: any;
108
+ title?: string | undefined;
109
+ icon?: IconValue | undefined;
110
+ selectedClass?: string | undefined;
111
+ subtitle?: string | undefined;
112
+ } & {
113
+ $children?: vue.VNodeChild | ((arg: StepperItemSlot) => vue.VNodeChild) | {
114
+ default?: ((arg: StepperItemSlot) => vue.VNodeChild) | undefined;
115
+ icon?: ((arg: StepperItemSlot) => vue.VNodeChild) | undefined;
116
+ title?: ((arg: StepperItemSlot) => vue.VNodeChild) | undefined;
117
+ subtitle?: ((arg: StepperItemSlot) => vue.VNodeChild) | undefined;
118
+ };
119
+ 'v-slots'?: {
120
+ default?: false | ((arg: StepperItemSlot) => vue.VNodeChild) | undefined;
121
+ icon?: false | ((arg: StepperItemSlot) => vue.VNodeChild) | undefined;
122
+ title?: false | ((arg: StepperItemSlot) => vue.VNodeChild) | undefined;
123
+ subtitle?: false | ((arg: StepperItemSlot) => vue.VNodeChild) | undefined;
124
+ } | undefined;
125
+ } & {
126
+ "v-slot:default"?: false | ((arg: StepperItemSlot) => vue.VNodeChild) | undefined;
127
+ "v-slot:icon"?: false | ((arg: StepperItemSlot) => vue.VNodeChild) | undefined;
128
+ "v-slot:title"?: false | ((arg: StepperItemSlot) => vue.VNodeChild) | undefined;
129
+ "v-slot:subtitle"?: false | ((arg: StepperItemSlot) => vue.VNodeChild) | undefined;
130
+ } & {
131
+ "onGroup:selected"?: ((val: {
132
+ value: boolean;
133
+ }) => any) | undefined;
134
+ }, {
94
135
  error: boolean;
95
136
  complete: boolean;
96
137
  disabled: boolean;
@@ -107,7 +148,7 @@ declare const VStepperItem: {
107
148
  icon: (arg: StepperItemSlot) => vue.VNode[];
108
149
  title: (arg: StepperItemSlot) => vue.VNode[];
109
150
  subtitle: (arg: StepperItemSlot) => vue.VNode[];
110
- }>>, vue.GlobalComponents, vue.GlobalDirectives, string, {}, any, vue.ComponentProvideOptions, {
151
+ }>>, {
111
152
  P: {};
112
153
  B: {};
113
154
  D: {};
@@ -233,7 +274,7 @@ declare const VStepperItem: {
233
274
  icon: (arg: StepperItemSlot) => vue.VNode[];
234
275
  title: (arg: StepperItemSlot) => vue.VNode[];
235
276
  subtitle: (arg: StepperItemSlot) => vue.VNode[];
236
- }>>, vue.GlobalComponents, vue.GlobalDirectives, string, vue.ComponentProvideOptions> & vue.VNodeProps & vue.AllowedComponentProps & vue.ComponentCustomProps & FilterPropsOptions<{
277
+ }>>> & vue.VNodeProps & vue.AllowedComponentProps & vue.ComponentCustomProps & FilterPropsOptions<{
237
278
  value: null;
238
279
  disabled: BooleanConstructor;
239
280
  selectedClass: StringConstructor;
@@ -303,7 +344,7 @@ type VStepperSlot = {
303
344
  next: () => void;
304
345
  };
305
346
  declare const VStepper: {
306
- new (...args: any[]): vue.CreateComponentPublicInstanceWithMixins<{
347
+ new (...args: any[]): vue.CreateComponentPublicInstance<{
307
348
  flat: boolean;
308
349
  style: vue.StyleValue;
309
350
  mobile: boolean | null;
@@ -393,7 +434,92 @@ declare const VStepper: {
393
434
  next: () => void;
394
435
  }, unknown, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {
395
436
  'update:modelValue': (v: unknown) => true;
396
- }, vue.VNodeProps & vue.AllowedComponentProps & vue.ComponentCustomProps, {
437
+ }, vue.VNodeProps & vue.AllowedComponentProps & vue.ComponentCustomProps & {
438
+ flat: boolean;
439
+ style: vue.StyleValue;
440
+ mobile: boolean | null;
441
+ disabled: boolean;
442
+ multiple: boolean;
443
+ tag: string;
444
+ mandatory: boolean | "force";
445
+ items: readonly StepperItem[];
446
+ tile: boolean;
447
+ selectedClass: string;
448
+ itemTitle: string;
449
+ itemValue: string;
450
+ hideActions: boolean;
451
+ prevText: string;
452
+ nextText: string;
453
+ editable: boolean;
454
+ altLabels: boolean;
455
+ nonLinear: boolean;
456
+ } & {
457
+ max?: number | undefined;
458
+ location?: Anchor | null | undefined;
459
+ height?: string | number | undefined;
460
+ width?: string | number | undefined;
461
+ border?: string | number | boolean | undefined;
462
+ color?: string | undefined;
463
+ maxHeight?: string | number | undefined;
464
+ maxWidth?: string | number | undefined;
465
+ minHeight?: string | number | undefined;
466
+ minWidth?: string | number | undefined;
467
+ position?: "fixed" | "absolute" | "relative" | "static" | "sticky" | undefined;
468
+ class?: any;
469
+ theme?: string | undefined;
470
+ elevation?: string | number | undefined;
471
+ mobileBreakpoint?: number | DisplayBreakpoint | undefined;
472
+ modelValue?: any;
473
+ rounded?: string | number | boolean | undefined;
474
+ bgColor?: string | undefined;
475
+ completeIcon?: IconValue | undefined;
476
+ editIcon?: IconValue | undefined;
477
+ errorIcon?: IconValue | undefined;
478
+ } & {
479
+ $children?: vue.VNodeChild | {
480
+ [x: `header-item.${string}`]: ((arg: StepperItemSlot) => vue.VNodeChild) | undefined;
481
+ [x: `item.${string}`]: ((arg: StepperItem) => vue.VNodeChild) | undefined;
482
+ actions?: ((arg: VStepperSlot) => vue.VNodeChild) | undefined;
483
+ default?: ((arg: VStepperSlot) => vue.VNodeChild) | undefined;
484
+ header?: ((arg: StepperItem) => vue.VNodeChild) | undefined;
485
+ 'header-item'?: ((arg: StepperItemSlot) => vue.VNodeChild) | undefined;
486
+ icon?: ((arg: StepperItemSlot) => vue.VNodeChild) | undefined;
487
+ title?: ((arg: StepperItemSlot) => vue.VNodeChild) | undefined;
488
+ subtitle?: ((arg: StepperItemSlot) => vue.VNodeChild) | undefined;
489
+ item?: ((arg: StepperItem) => vue.VNodeChild) | undefined;
490
+ prev?: (() => vue.VNodeChild) | undefined;
491
+ next?: (() => vue.VNodeChild) | undefined;
492
+ } | ((arg: VStepperSlot) => vue.VNodeChild);
493
+ 'v-slots'?: {
494
+ [x: `header-item.${string}`]: false | ((arg: StepperItemSlot) => vue.VNodeChild) | undefined;
495
+ [x: `item.${string}`]: false | ((arg: StepperItem) => vue.VNodeChild) | undefined;
496
+ actions?: false | ((arg: VStepperSlot) => vue.VNodeChild) | undefined;
497
+ default?: false | ((arg: VStepperSlot) => vue.VNodeChild) | undefined;
498
+ header?: false | ((arg: StepperItem) => vue.VNodeChild) | undefined;
499
+ 'header-item'?: false | ((arg: StepperItemSlot) => vue.VNodeChild) | undefined;
500
+ icon?: false | ((arg: StepperItemSlot) => vue.VNodeChild) | undefined;
501
+ title?: false | ((arg: StepperItemSlot) => vue.VNodeChild) | undefined;
502
+ subtitle?: false | ((arg: StepperItemSlot) => vue.VNodeChild) | undefined;
503
+ item?: false | ((arg: StepperItem) => vue.VNodeChild) | undefined;
504
+ prev?: false | (() => vue.VNodeChild) | undefined;
505
+ next?: false | (() => vue.VNodeChild) | undefined;
506
+ } | undefined;
507
+ } & {
508
+ [x: `v-slot:header-item.${string}`]: false | ((arg: StepperItemSlot) => vue.VNodeChild) | undefined;
509
+ [x: `v-slot:item.${string}`]: false | ((arg: StepperItem) => vue.VNodeChild) | undefined;
510
+ "v-slot:actions"?: false | ((arg: VStepperSlot) => vue.VNodeChild) | undefined;
511
+ "v-slot:default"?: false | ((arg: VStepperSlot) => vue.VNodeChild) | undefined;
512
+ "v-slot:header"?: false | ((arg: StepperItem) => vue.VNodeChild) | undefined;
513
+ "v-slot:header-item"?: false | ((arg: StepperItemSlot) => vue.VNodeChild) | undefined;
514
+ "v-slot:icon"?: false | ((arg: StepperItemSlot) => vue.VNodeChild) | undefined;
515
+ "v-slot:title"?: false | ((arg: StepperItemSlot) => vue.VNodeChild) | undefined;
516
+ "v-slot:subtitle"?: false | ((arg: StepperItemSlot) => vue.VNodeChild) | undefined;
517
+ "v-slot:item"?: false | ((arg: StepperItem) => vue.VNodeChild) | undefined;
518
+ "v-slot:prev"?: false | (() => vue.VNodeChild) | undefined;
519
+ "v-slot:next"?: false | (() => vue.VNodeChild) | undefined;
520
+ } & {
521
+ "onUpdate:modelValue"?: ((v: unknown) => any) | undefined;
522
+ }, {
397
523
  flat: boolean;
398
524
  style: vue.StyleValue;
399
525
  mobile: boolean | null;
@@ -427,7 +553,7 @@ declare const VStepper: {
427
553
  item: (arg: StepperItem) => vue.VNode[];
428
554
  prev: () => vue.VNode[];
429
555
  next: () => vue.VNode[];
430
- }>>, vue.GlobalComponents, vue.GlobalDirectives, string, {}, any, vue.ComponentProvideOptions, {
556
+ }>>, {
431
557
  P: {};
432
558
  B: {};
433
559
  D: {};
@@ -671,7 +797,7 @@ declare const VStepper: {
671
797
  item: (arg: StepperItem) => vue.VNode[];
672
798
  prev: () => vue.VNode[];
673
799
  next: () => vue.VNode[];
674
- }>>, vue.GlobalComponents, vue.GlobalDirectives, string, vue.ComponentProvideOptions> & vue.VNodeProps & vue.AllowedComponentProps & vue.ComponentCustomProps & FilterPropsOptions<{
800
+ }>>> & vue.VNodeProps & vue.AllowedComponentProps & vue.ComponentCustomProps & FilterPropsOptions<{
675
801
  prevText: {
676
802
  type: StringConstructor;
677
803
  default: string;
@@ -839,7 +965,7 @@ declare const VStepper: {
839
965
  type VStepper = InstanceType<typeof VStepper>;
840
966
 
841
967
  declare const VStepperActions: {
842
- new (...args: any[]): vue.CreateComponentPublicInstanceWithMixins<{
968
+ new (...args: any[]): vue.CreateComponentPublicInstance<{
843
969
  disabled: boolean | "next" | "prev";
844
970
  prevText: string;
845
971
  nextText: string;
@@ -887,7 +1013,52 @@ declare const VStepperActions: {
887
1013
  }, {}, unknown, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {
888
1014
  'click:prev': () => true;
889
1015
  'click:next': () => true;
890
- }, vue.VNodeProps & vue.AllowedComponentProps & vue.ComponentCustomProps, {
1016
+ }, vue.VNodeProps & vue.AllowedComponentProps & vue.ComponentCustomProps & {
1017
+ disabled: boolean | "next" | "prev";
1018
+ prevText: string;
1019
+ nextText: string;
1020
+ } & {
1021
+ color?: string | undefined;
1022
+ } & {
1023
+ $children?: {} | vue.VNodeChild | {
1024
+ prev?: ((arg: {
1025
+ props: {
1026
+ onClick: () => void;
1027
+ };
1028
+ }) => vue.VNodeChild) | undefined;
1029
+ next?: ((arg: {
1030
+ props: {
1031
+ onClick: () => void;
1032
+ };
1033
+ }) => vue.VNodeChild) | undefined;
1034
+ };
1035
+ 'v-slots'?: {
1036
+ prev?: false | ((arg: {
1037
+ props: {
1038
+ onClick: () => void;
1039
+ };
1040
+ }) => vue.VNodeChild) | undefined;
1041
+ next?: false | ((arg: {
1042
+ props: {
1043
+ onClick: () => void;
1044
+ };
1045
+ }) => vue.VNodeChild) | undefined;
1046
+ } | undefined;
1047
+ } & {
1048
+ "v-slot:prev"?: false | ((arg: {
1049
+ props: {
1050
+ onClick: () => void;
1051
+ };
1052
+ }) => vue.VNodeChild) | undefined;
1053
+ "v-slot:next"?: false | ((arg: {
1054
+ props: {
1055
+ onClick: () => void;
1056
+ };
1057
+ }) => vue.VNodeChild) | undefined;
1058
+ } & {
1059
+ "onClick:prev"?: (() => any) | undefined;
1060
+ "onClick:next"?: (() => any) | undefined;
1061
+ }, {
891
1062
  disabled: boolean | "next" | "prev";
892
1063
  prevText: string;
893
1064
  nextText: string;
@@ -902,7 +1073,7 @@ declare const VStepperActions: {
902
1073
  onClick: () => void;
903
1074
  };
904
1075
  }) => vue.VNode[];
905
- }>>, vue.GlobalComponents, vue.GlobalDirectives, string, {}, any, vue.ComponentProvideOptions, {
1076
+ }>>, {
906
1077
  P: {};
907
1078
  B: {};
908
1079
  D: {};
@@ -1025,7 +1196,7 @@ declare const VStepperActions: {
1025
1196
  onClick: () => void;
1026
1197
  };
1027
1198
  }) => vue.VNode[];
1028
- }>>, vue.GlobalComponents, vue.GlobalDirectives, string, vue.ComponentProvideOptions> & vue.VNodeProps & vue.AllowedComponentProps & vue.ComponentCustomProps & FilterPropsOptions<{
1199
+ }>>> & vue.VNodeProps & vue.AllowedComponentProps & vue.ComponentCustomProps & FilterPropsOptions<{
1029
1200
  color: StringConstructor;
1030
1201
  disabled: {
1031
1202
  type: PropType<boolean | "next" | "prev">;
@@ -1057,7 +1228,7 @@ declare const VStepperActions: {
1057
1228
  type VStepperActions = InstanceType<typeof VStepperActions>;
1058
1229
 
1059
1230
  declare const VStepperHeader: {
1060
- new (...args: any[]): vue.CreateComponentPublicInstanceWithMixins<{
1231
+ new (...args: any[]): vue.CreateComponentPublicInstance<{
1061
1232
  style: vue.StyleValue;
1062
1233
  tag: string;
1063
1234
  } & {
@@ -1073,12 +1244,26 @@ declare const VStepperHeader: {
1073
1244
  "v-slot:default"?: false | (() => vue.VNodeChild) | undefined;
1074
1245
  }, () => vue.VNode<vue.RendererNode, vue.RendererElement, {
1075
1246
  [key: string]: any;
1076
- }>, unknown, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, Record<string, any>, vue.VNodeProps & vue.AllowedComponentProps & vue.ComponentCustomProps, {
1247
+ }>, unknown, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, Record<string, any>, vue.VNodeProps & vue.AllowedComponentProps & vue.ComponentCustomProps & {
1248
+ style: vue.StyleValue;
1249
+ tag: string;
1250
+ } & {
1251
+ class?: any;
1252
+ } & {
1253
+ $children?: vue.VNodeChild | {
1254
+ default?: (() => vue.VNodeChild) | undefined;
1255
+ } | (() => vue.VNodeChild);
1256
+ 'v-slots'?: {
1257
+ default?: false | (() => vue.VNodeChild) | undefined;
1258
+ } | undefined;
1259
+ } & {
1260
+ "v-slot:default"?: false | (() => vue.VNodeChild) | undefined;
1261
+ }, {
1077
1262
  style: vue.StyleValue;
1078
1263
  tag: string;
1079
1264
  }, true, {}, vue.SlotsType<Partial<{
1080
1265
  default: () => vue.VNode[];
1081
- }>>, vue.GlobalComponents, vue.GlobalDirectives, string, {}, any, vue.ComponentProvideOptions, {
1266
+ }>>, {
1082
1267
  P: {};
1083
1268
  B: {};
1084
1269
  D: {};
@@ -1129,7 +1314,7 @@ declare const VStepperHeader: {
1129
1314
  tag: string;
1130
1315
  }, {}, string, vue.SlotsType<Partial<{
1131
1316
  default: () => vue.VNode[];
1132
- }>>, vue.GlobalComponents, vue.GlobalDirectives, string, vue.ComponentProvideOptions> & vue.VNodeProps & vue.AllowedComponentProps & vue.ComponentCustomProps & FilterPropsOptions<{
1317
+ }>>> & vue.VNodeProps & vue.AllowedComponentProps & vue.ComponentCustomProps & FilterPropsOptions<{
1133
1318
  class: vue.PropType<ClassValue>;
1134
1319
  style: {
1135
1320
  type: vue.PropType<vue.StyleValue>;
@@ -1153,7 +1338,7 @@ declare const VStepperHeader: {
1153
1338
  type VStepperHeader = InstanceType<typeof VStepperHeader>;
1154
1339
 
1155
1340
  declare const VStepperWindow: {
1156
- new (...args: any[]): vue.CreateComponentPublicInstanceWithMixins<{
1341
+ new (...args: any[]): vue.CreateComponentPublicInstance<{
1157
1342
  reverse: boolean;
1158
1343
  direction: "horizontal" | "vertical";
1159
1344
  style: vue.StyleValue;
@@ -1177,7 +1362,29 @@ declare const VStepperWindow: {
1177
1362
  "onUpdate:modelValue"?: ((v: unknown) => any) | undefined;
1178
1363
  }, {}, unknown, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {
1179
1364
  'update:modelValue': (v: unknown) => true;
1180
- }, vue.VNodeProps & vue.AllowedComponentProps & vue.ComponentCustomProps, {
1365
+ }, vue.VNodeProps & vue.AllowedComponentProps & vue.ComponentCustomProps & {
1366
+ reverse: boolean;
1367
+ direction: "horizontal" | "vertical";
1368
+ style: vue.StyleValue;
1369
+ disabled: boolean;
1370
+ tag: string;
1371
+ selectedClass: string;
1372
+ } & {
1373
+ class?: any;
1374
+ theme?: string | undefined;
1375
+ modelValue?: any;
1376
+ } & {
1377
+ $children?: vue.VNodeChild | {
1378
+ default?: (() => vue.VNodeChild) | undefined;
1379
+ } | (() => vue.VNodeChild);
1380
+ 'v-slots'?: {
1381
+ default?: false | (() => vue.VNodeChild) | undefined;
1382
+ } | undefined;
1383
+ } & {
1384
+ "v-slot:default"?: false | (() => vue.VNodeChild) | undefined;
1385
+ } & {
1386
+ "onUpdate:modelValue"?: ((v: unknown) => any) | undefined;
1387
+ }, {
1181
1388
  reverse: boolean;
1182
1389
  direction: "horizontal" | "vertical";
1183
1390
  style: vue.StyleValue;
@@ -1186,7 +1393,7 @@ declare const VStepperWindow: {
1186
1393
  selectedClass: string;
1187
1394
  }, true, {}, vue.SlotsType<Partial<{
1188
1395
  default: () => vue.VNode[];
1189
- }>>, vue.GlobalComponents, vue.GlobalDirectives, string, {}, any, vue.ComponentProvideOptions, {
1396
+ }>>, {
1190
1397
  P: {};
1191
1398
  B: {};
1192
1399
  D: {};
@@ -1259,7 +1466,7 @@ declare const VStepperWindow: {
1259
1466
  selectedClass: string;
1260
1467
  }, {}, string, vue.SlotsType<Partial<{
1261
1468
  default: () => vue.VNode[];
1262
- }>>, vue.GlobalComponents, vue.GlobalDirectives, string, vue.ComponentProvideOptions> & vue.VNodeProps & vue.AllowedComponentProps & vue.ComponentCustomProps & FilterPropsOptions<{
1469
+ }>>> & vue.VNodeProps & vue.AllowedComponentProps & vue.ComponentCustomProps & FilterPropsOptions<{
1263
1470
  reverse: BooleanConstructor;
1264
1471
  direction: {
1265
1472
  type: vue.PropType<"horizontal" | "vertical">;
@@ -1307,7 +1514,26 @@ declare const VStepperWindow: {
1307
1514
  type VStepperWindow = InstanceType<typeof VStepperWindow>;
1308
1515
 
1309
1516
  declare const VStepperWindowItem: {
1310
- new (...args: any[]): vue.CreateComponentPublicInstanceWithMixins<{
1517
+ new (...args: any[]): vue.CreateComponentPublicInstance<{
1518
+ style: vue.StyleValue;
1519
+ eager: boolean;
1520
+ disabled: boolean;
1521
+ } & {
1522
+ transition?: string | boolean | undefined;
1523
+ value?: any;
1524
+ class?: any;
1525
+ selectedClass?: string | undefined;
1526
+ reverseTransition?: string | boolean | undefined;
1527
+ } & {
1528
+ $children?: vue.VNodeChild | {
1529
+ default?: (() => vue.VNodeChild) | undefined;
1530
+ } | (() => vue.VNodeChild);
1531
+ 'v-slots'?: {
1532
+ default?: false | (() => vue.VNodeChild) | undefined;
1533
+ } | undefined;
1534
+ } & {
1535
+ "v-slot:default"?: false | (() => vue.VNodeChild) | undefined;
1536
+ }, {}, unknown, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, Record<string, any>, vue.VNodeProps & vue.AllowedComponentProps & vue.ComponentCustomProps & {
1311
1537
  style: vue.StyleValue;
1312
1538
  eager: boolean;
1313
1539
  disabled: boolean;
@@ -1326,7 +1552,7 @@ declare const VStepperWindowItem: {
1326
1552
  } | undefined;
1327
1553
  } & {
1328
1554
  "v-slot:default"?: false | (() => vue.VNodeChild) | undefined;
1329
- }, {}, unknown, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, Record<string, any>, vue.VNodeProps & vue.AllowedComponentProps & vue.ComponentCustomProps, {
1555
+ }, {
1330
1556
  transition: string | boolean;
1331
1557
  style: vue.StyleValue;
1332
1558
  eager: boolean;
@@ -1334,7 +1560,7 @@ declare const VStepperWindowItem: {
1334
1560
  reverseTransition: string | boolean;
1335
1561
  }, true, {}, vue.SlotsType<Partial<{
1336
1562
  default: () => vue.VNode[];
1337
- }>>, vue.GlobalComponents, vue.GlobalDirectives, string, {}, any, vue.ComponentProvideOptions, {
1563
+ }>>, {
1338
1564
  P: {};
1339
1565
  B: {};
1340
1566
  D: {};
@@ -1397,7 +1623,7 @@ declare const VStepperWindowItem: {
1397
1623
  reverseTransition: string | boolean;
1398
1624
  }, {}, string, vue.SlotsType<Partial<{
1399
1625
  default: () => vue.VNode[];
1400
- }>>, vue.GlobalComponents, vue.GlobalDirectives, string, vue.ComponentProvideOptions> & vue.VNodeProps & vue.AllowedComponentProps & vue.ComponentCustomProps & FilterPropsOptions<{
1626
+ }>>> & vue.VNodeProps & vue.AllowedComponentProps & vue.ComponentCustomProps & FilterPropsOptions<{
1401
1627
  eager: BooleanConstructor;
1402
1628
  value: null;
1403
1629
  disabled: BooleanConstructor;
@@ -1,4 +1,4 @@
1
- import { createVNode as _createVNode, Fragment as _Fragment, mergeProps as _mergeProps } from "vue";
1
+ import { mergeProps as _mergeProps, Fragment as _Fragment, createVNode as _createVNode } from "vue";
2
2
  // Styles
3
3
  import "./VSwitch.css";
4
4
 
@@ -12,8 +12,8 @@ import { makeVSelectionControlProps, VSelectionControl } from "../VSelectionCont
12
12
  import { useFocus } from "../../composables/focus.mjs";
13
13
  import { LoaderSlot, useLoader } from "../../composables/loader.mjs";
14
14
  import { useProxiedModel } from "../../composables/proxiedModel.mjs"; // Utilities
15
- import { computed, ref, useId } from 'vue';
16
- import { filterInputAttrs, genericComponent, IN_BROWSER, propsFactory, useRender } from "../../util/index.mjs"; // Types
15
+ import { computed, ref } from 'vue';
16
+ import { filterInputAttrs, genericComponent, getUid, IN_BROWSER, propsFactory, useRender } from "../../util/index.mjs"; // Types
17
17
  export const makeVSwitchProps = propsFactory({
18
18
  indeterminate: Boolean,
19
19
  inset: Boolean,
@@ -54,7 +54,7 @@ export const VSwitch = genericComponent()({
54
54
  const loaderColor = computed(() => {
55
55
  return typeof props.loading === 'string' && props.loading !== '' ? props.loading : props.color;
56
56
  });
57
- const uid = useId();
57
+ const uid = getUid();
58
58
  const id = computed(() => props.id || `switch-${uid}`);
59
59
  function onChange() {
60
60
  if (indeterminate.value) {
@@ -1 +1 @@
1
- {"version":3,"file":"VSwitch.mjs","names":["VScaleTransition","VDefaultsProvider","VIcon","makeVInputProps","VInput","VProgressCircular","makeVSelectionControlProps","VSelectionControl","useFocus","LoaderSlot","useLoader","useProxiedModel","computed","ref","useId","filterInputAttrs","genericComponent","IN_BROWSER","propsFactory","useRender","makeVSwitchProps","indeterminate","Boolean","inset","flat","loading","type","String","default","VSwitch","name","inheritAttrs","props","emits","focused","value","setup","_ref","attrs","slots","model","loaderClasses","isFocused","focus","blur","control","isForcedColorsModeActive","window","matchMedia","matches","loaderColor","color","uid","id","onChange","onTrackClick","e","stopPropagation","preventDefault","input","click","rootAttrs","controlAttrs","inputProps","filterProps","controlProps","_createVNode","_mergeProps","class","$event","style","_ref2","messagesId","isDisabled","isReadonly","isValid","slotProps","undefined","_ref3","backgroundColorClasses","backgroundColorStyles","_ref4","inputNode","icon","_Fragment","thumb","size","loader","isActive"],"sources":["../../../src/components/VSwitch/VSwitch.tsx"],"sourcesContent":["// Styles\nimport './VSwitch.sass'\n\n// Components\nimport { VScaleTransition } from '@/components/transitions'\nimport { VDefaultsProvider } from '@/components/VDefaultsProvider/VDefaultsProvider'\nimport { VIcon } from '@/components/VIcon'\nimport { makeVInputProps, VInput } from '@/components/VInput/VInput'\nimport { VProgressCircular } from '@/components/VProgressCircular'\nimport { makeVSelectionControlProps, VSelectionControl } from '@/components/VSelectionControl/VSelectionControl'\n\n// Composables\nimport { useFocus } from '@/composables/focus'\nimport { LoaderSlot, useLoader } from '@/composables/loader'\nimport { useProxiedModel } from '@/composables/proxiedModel'\n\n// Utilities\nimport { computed, ref, useId } from 'vue'\nimport { filterInputAttrs, genericComponent, IN_BROWSER, propsFactory, useRender } from '@/util'\n\n// Types\nimport type { ComputedRef, Ref } from 'vue'\nimport type { VInputSlots } from '@/components/VInput/VInput'\nimport type { VSelectionControlSlots } from '@/components/VSelectionControl/VSelectionControl'\nimport type { IconValue } from '@/composables/icons'\nimport type { LoaderSlotProps } from '@/composables/loader'\nimport type { GenericProps } from '@/util'\n\nexport type VSwitchSlot = {\n model: Ref<boolean>\n isValid: ComputedRef<boolean | null>\n}\n\nexport type VSwitchSlots =\n & VInputSlots\n & VSelectionControlSlots\n & {\n loader: LoaderSlotProps\n thumb: { icon: IconValue | undefined } & VSwitchSlot\n 'track-false': VSwitchSlot\n 'track-true': VSwitchSlot\n }\n\nexport const makeVSwitchProps = propsFactory({\n indeterminate: Boolean,\n inset: Boolean,\n flat: Boolean,\n loading: {\n type: [Boolean, String],\n default: false,\n },\n\n ...makeVInputProps(),\n ...makeVSelectionControlProps(),\n}, 'VSwitch')\n\nexport const VSwitch = genericComponent<new <T>(\n props: {\n modelValue?: T | null\n 'onUpdate:modelValue'?: (value: T | null) => void\n },\n slots: VSwitchSlots,\n) => GenericProps<typeof props, typeof slots>>()({\n name: 'VSwitch',\n\n inheritAttrs: false,\n\n props: makeVSwitchProps(),\n\n emits: {\n 'update:focused': (focused: boolean) => true,\n 'update:modelValue': (value: any) => true,\n 'update:indeterminate': (value: boolean) => true,\n },\n\n setup (props, { attrs, slots }) {\n const indeterminate = useProxiedModel(props, 'indeterminate')\n const model = useProxiedModel(props, 'modelValue')\n const { loaderClasses } = useLoader(props)\n const { isFocused, focus, blur } = useFocus(props)\n const control = ref<VSelectionControl>()\n const isForcedColorsModeActive = IN_BROWSER && window.matchMedia('(forced-colors: active)').matches\n\n const loaderColor = computed(() => {\n return typeof props.loading === 'string' && props.loading !== ''\n ? props.loading\n : props.color\n })\n\n const uid = useId()\n const id = computed(() => props.id || `switch-${uid}`)\n\n function onChange () {\n if (indeterminate.value) {\n indeterminate.value = false\n }\n }\n function onTrackClick (e: Event) {\n e.stopPropagation()\n e.preventDefault()\n control.value?.input?.click()\n }\n\n useRender(() => {\n const [rootAttrs, controlAttrs] = filterInputAttrs(attrs)\n const inputProps = VInput.filterProps(props)\n const controlProps = VSelectionControl.filterProps(props)\n\n return (\n <VInput\n class={[\n 'v-switch',\n { 'v-switch--flat': props.flat },\n { 'v-switch--inset': props.inset },\n { 'v-switch--indeterminate': indeterminate.value },\n loaderClasses.value,\n props.class,\n ]}\n { ...rootAttrs }\n { ...inputProps }\n v-model={ model.value }\n id={ id.value }\n focused={ isFocused.value }\n style={ props.style }\n >\n {{\n ...slots,\n default: ({\n id,\n messagesId,\n isDisabled,\n isReadonly,\n isValid,\n }) => {\n const slotProps = {\n model,\n isValid,\n }\n\n return (\n <VSelectionControl\n ref={ control }\n { ...controlProps }\n v-model={ model.value }\n id={ id.value }\n aria-describedby={ messagesId.value }\n type=\"checkbox\"\n onUpdate:modelValue={ onChange }\n aria-checked={ indeterminate.value ? 'mixed' : undefined }\n disabled={ isDisabled.value }\n readonly={ isReadonly.value }\n onFocus={ focus }\n onBlur={ blur }\n { ...controlAttrs }\n >\n {{\n ...slots,\n default: ({ backgroundColorClasses, backgroundColorStyles }) => (\n <div\n class={[\n 'v-switch__track',\n !isForcedColorsModeActive ? backgroundColorClasses.value : undefined,\n ]}\n style={ backgroundColorStyles.value }\n onClick={ onTrackClick }\n >\n { slots['track-true'] && (\n <div key=\"prepend\" class=\"v-switch__track-true\">\n { slots['track-true'](slotProps) }\n </div>\n )}\n\n { slots['track-false'] && (\n <div key=\"append\" class=\"v-switch__track-false\">\n { slots['track-false'](slotProps) }\n </div>\n )}\n </div>\n ),\n input: ({ inputNode, icon, backgroundColorClasses, backgroundColorStyles }) => (\n <>\n { inputNode }\n <div\n class={[\n 'v-switch__thumb',\n { 'v-switch__thumb--filled': icon || props.loading },\n props.inset || isForcedColorsModeActive ? undefined : backgroundColorClasses.value,\n ]}\n style={ props.inset ? undefined : backgroundColorStyles.value }\n >\n { slots.thumb ? (\n <VDefaultsProvider\n defaults={{\n VIcon: {\n icon,\n size: 'x-small',\n },\n }}\n >\n { slots.thumb({ ...slotProps, icon }) }\n </VDefaultsProvider>\n ) : (\n <VScaleTransition>\n { !props.loading ? (\n (icon && (\n <VIcon\n key={ String(icon) }\n icon={ icon }\n size=\"x-small\"\n />\n ))) : (\n <LoaderSlot\n name=\"v-switch\"\n active\n color={ isValid.value === false ? undefined : loaderColor.value }\n >\n { slotProps => (\n slots.loader\n ? slots.loader(slotProps)\n : (\n <VProgressCircular\n active={ slotProps.isActive }\n color={ slotProps.color }\n indeterminate\n size=\"16\"\n width=\"2\"\n />\n )\n )}\n </LoaderSlot>\n )}\n </VScaleTransition>\n )}\n </div>\n </>\n ),\n }}\n </VSelectionControl>\n )\n },\n }}\n </VInput>\n )\n })\n\n return {}\n },\n})\n\nexport type VSwitch = InstanceType<typeof VSwitch>\n"],"mappings":";AAAA;AACA;;AAEA;AAAA,SACSA,gBAAgB;AAAA,SAChBC,iBAAiB;AAAA,SACjBC,KAAK;AAAA,SACLC,eAAe,EAAEC,MAAM;AAAA,SACvBC,iBAAiB;AAAA,SACjBC,0BAA0B,EAAEC,iBAAiB,sDAEtD;AAAA,SACSC,QAAQ;AAAA,SACRC,UAAU,EAAEC,SAAS;AAAA,SACrBC,eAAe,8CAExB;AACA,SAASC,QAAQ,EAAEC,GAAG,EAAEC,KAAK,QAAQ,KAAK;AAAA,SACjCC,gBAAgB,EAAEC,gBAAgB,EAAEC,UAAU,EAAEC,YAAY,EAAEC,SAAS,gCAEhF;AAuBA,OAAO,MAAMC,gBAAgB,GAAGF,YAAY,CAAC;EAC3CG,aAAa,EAAEC,OAAO;EACtBC,KAAK,EAAED,OAAO;EACdE,IA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A;oBAAA;kBAAA;gBAM9B,EAEJ;cAAA,EAEJ;YAAA;UAGN;QAIT;MAAC;IAIT,CAAC,CAAC;IAEF,OAAO,CAAC,CAAC;EACX;AACF,CAAC,CAAC","ignoreList":[]}
1
+ {"version":3,"file":"VSwitch.mjs","names":["VScaleTransition","VDefaultsProvider","VIcon","makeVInputProps","VInput","VProgressCircular","makeVSelectionControlProps","VSelectionControl","useFocus","LoaderSlot","useLoader","useProxiedModel","computed","ref","filterInputAttrs","genericComponent","getUid","IN_BROWSER","propsFactory","useRender","makeVSwitchProps","indeterminate","Boolean","inset","flat","loading","type","String","default","VSwitch","name","inheritAttrs","props","emits","focused","value","setup","_ref","attrs","slots","model","loaderClasses","isFocused","focus","blur","control","isForcedColorsModeActive","window","matchMedia","matches","loaderColor","color","uid","id","onChange","onTrackClick","e","stopPropagation","preventDefault","input","click","rootAttrs","controlAttrs","inputProps","filterProps","controlProps","_createVNode","_mergeProps","class","$event","style","_ref2","messagesId","isDisabled","isReadonly","isValid","slotProps","undefined","_ref3","backgroundColorClasses","backgroundColorStyles","_ref4","inputNode","icon","_Fragment","thumb","size","loader","isActive"],"sources":["../../../src/components/VSwitch/VSwitch.tsx"],"sourcesContent":["// Styles\nimport './VSwitch.sass'\n\n// Components\nimport { VScaleTransition } from '@/components/transitions'\nimport { VDefaultsProvider } from '@/components/VDefaultsProvider/VDefaultsProvider'\nimport { VIcon } from '@/components/VIcon'\nimport { makeVInputProps, VInput } from '@/components/VInput/VInput'\nimport { VProgressCircular } from '@/components/VProgressCircular'\nimport { makeVSelectionControlProps, VSelectionControl } from '@/components/VSelectionControl/VSelectionControl'\n\n// Composables\nimport { useFocus } from '@/composables/focus'\nimport { LoaderSlot, useLoader } from '@/composables/loader'\nimport { useProxiedModel } from '@/composables/proxiedModel'\n\n// Utilities\nimport { computed, ref } from 'vue'\nimport { filterInputAttrs, genericComponent, getUid, IN_BROWSER, propsFactory, useRender } from '@/util'\n\n// Types\nimport type { ComputedRef, Ref } from 'vue'\nimport type { VInputSlots } from '@/components/VInput/VInput'\nimport type { VSelectionControlSlots } from '@/components/VSelectionControl/VSelectionControl'\nimport type { IconValue } from '@/composables/icons'\nimport type { LoaderSlotProps } from '@/composables/loader'\nimport type { GenericProps } from '@/util'\n\nexport type VSwitchSlot = {\n model: Ref<boolean>\n isValid: ComputedRef<boolean | null>\n}\n\nexport type VSwitchSlots =\n & VInputSlots\n & VSelectionControlSlots\n & {\n loader: LoaderSlotProps\n thumb: { icon: IconValue | undefined } & VSwitchSlot\n 'track-false': VSwitchSlot\n 'track-true': VSwitchSlot\n }\n\nexport const makeVSwitchProps = propsFactory({\n indeterminate: Boolean,\n inset: Boolean,\n flat: Boolean,\n loading: {\n type: [Boolean, String],\n default: false,\n },\n\n ...makeVInputProps(),\n ...makeVSelectionControlProps(),\n}, 'VSwitch')\n\nexport const VSwitch = genericComponent<new <T>(\n props: {\n modelValue?: T | null\n 'onUpdate:modelValue'?: (value: T | null) => void\n },\n slots: VSwitchSlots,\n) => GenericProps<typeof props, typeof slots>>()({\n name: 'VSwitch',\n\n inheritAttrs: false,\n\n props: makeVSwitchProps(),\n\n emits: {\n 'update:focused': (focused: boolean) => true,\n 'update:modelValue': (value: any) => true,\n 'update:indeterminate': (value: boolean) => true,\n },\n\n setup (props, { attrs, slots }) {\n const indeterminate = useProxiedModel(props, 'indeterminate')\n const model = useProxiedModel(props, 'modelValue')\n const { loaderClasses } = useLoader(props)\n const { isFocused, focus, blur } = useFocus(props)\n const control = ref<VSelectionControl>()\n const isForcedColorsModeActive = IN_BROWSER && window.matchMedia('(forced-colors: active)').matches\n\n const loaderColor = computed(() => {\n return typeof props.loading === 'string' && props.loading !== ''\n ? props.loading\n : props.color\n })\n\n const uid = getUid()\n const id = computed(() => props.id || `switch-${uid}`)\n\n function onChange () {\n if (indeterminate.value) {\n indeterminate.value = false\n }\n }\n function onTrackClick (e: Event) {\n e.stopPropagation()\n e.preventDefault()\n control.value?.input?.click()\n }\n\n useRender(() => {\n const [rootAttrs, controlAttrs] = filterInputAttrs(attrs)\n const inputProps = VInput.filterProps(props)\n const controlProps = VSelectionControl.filterProps(props)\n\n return (\n <VInput\n class={[\n 'v-switch',\n { 'v-switch--flat': props.flat },\n { 'v-switch--inset': props.inset },\n { 'v-switch--indeterminate': indeterminate.value },\n loaderClasses.value,\n props.class,\n ]}\n { ...rootAttrs }\n { ...inputProps }\n v-model={ model.value }\n id={ id.value }\n focused={ isFocused.value }\n style={ props.style }\n >\n {{\n ...slots,\n default: ({\n id,\n messagesId,\n isDisabled,\n isReadonly,\n isValid,\n }) => {\n const slotProps = {\n model,\n isValid,\n }\n\n return (\n <VSelectionControl\n ref={ control }\n { ...controlProps }\n v-model={ model.value }\n id={ id.value }\n aria-describedby={ messagesId.value }\n type=\"checkbox\"\n onUpdate:modelValue={ onChange }\n aria-checked={ indeterminate.value ? 'mixed' : undefined }\n disabled={ isDisabled.value }\n readonly={ isReadonly.value }\n onFocus={ focus }\n onBlur={ blur }\n { ...controlAttrs }\n >\n {{\n ...slots,\n default: ({ backgroundColorClasses, backgroundColorStyles }) => (\n <div\n class={[\n 'v-switch__track',\n !isForcedColorsModeActive ? backgroundColorClasses.value : undefined,\n ]}\n style={ backgroundColorStyles.value }\n onClick={ onTrackClick }\n >\n { slots['track-true'] && (\n <div key=\"prepend\" class=\"v-switch__track-true\">\n { slots['track-true'](slotProps) }\n </div>\n )}\n\n { slots['track-false'] && (\n <div key=\"append\" class=\"v-switch__track-false\">\n { slots['track-false'](slotProps) }\n </div>\n )}\n </div>\n ),\n input: ({ inputNode, icon, backgroundColorClasses, backgroundColorStyles }) => (\n <>\n { inputNode }\n <div\n class={[\n 'v-switch__thumb',\n { 'v-switch__thumb--filled': icon || props.loading },\n props.inset || isForcedColorsModeActive ? undefined : backgroundColorClasses.value,\n ]}\n style={ props.inset ? undefined : backgroundColorStyles.value }\n >\n { slots.thumb ? (\n <VDefaultsProvider\n defaults={{\n VIcon: {\n icon,\n size: 'x-small',\n },\n }}\n >\n { slots.thumb({ ...slotProps, icon }) }\n </VDefaultsProvider>\n ) : (\n <VScaleTransition>\n { !props.loading ? (\n (icon && (\n <VIcon\n key={ String(icon) }\n icon={ icon }\n size=\"x-small\"\n />\n ))) : (\n <LoaderSlot\n name=\"v-switch\"\n active\n color={ isValid.value === false ? undefined : loaderColor.value }\n >\n { slotProps => (\n slots.loader\n ? slots.loader(slotProps)\n : (\n <VProgressCircular\n active={ slotProps.isActive }\n color={ slotProps.color }\n indeterminate\n size=\"16\"\n width=\"2\"\n />\n )\n )}\n </LoaderSlot>\n )}\n </VScaleTransition>\n )}\n </div>\n </>\n ),\n }}\n </VSelectionControl>\n )\n },\n }}\n </VInput>\n )\n })\n\n return {}\n },\n})\n\nexport type VSwitch = InstanceType<typeof VSwitch>\n"],"mappings":";AAAA;AACA;;AAEA;AAAA,SACSA,gBAAgB;AAAA,SAChBC,iBAAiB;AAAA,SACjBC,KAAK;AAAA,SACLC,eAAe,EAAEC,MAAM;AAAA,SACvBC,iBAAiB;AAAA,SACjBC,0BAA0B,EAAEC,iBAAiB,sDAEtD;AAAA,SACSC,QAAQ;AAAA,SACRC,UAAU,EAAEC,SAAS;AAAA,SACrBC,eAAe,8CAExB;AACA,SAASC,QAAQ,EAAEC,GAAG,QAAQ,KAAK;AAAA,SAC1BC,gBAAgB,EAAEC,gBAAgB,EAAEC,MAAM,EAAEC,UAAU,EAAEC,YAAY,EAAEC,SAAS,gCAExF;AAuBA,OAAO,MAAMC,gBAAgB,GAAGF,YAAY,CAAC;EAC3CG,aAAa,EAAEC,OAAO;EACtBC,KAAK,EAAED,OAAO;EACdE,IAAI,EAAEF,OAAO;EACbG,OAAO,EAAE;IACPC,IAAI,EAAE,CAACJ,OAAO,EAAEK,MAAM,CAAC;IACvBC,OAAO,EAAE;EACX,CAAC;EAED,GAAGzB,eAAe,CAAC,CAAC;EACpB,GAAGG,0BAA0B,CAAC;AAChC,CAAC,EAAE,SAAS,CAAC;AAEb,OAAO,MAAMuB,O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
145
  };
146
146
  declare const VSwitch: {
147
- new (...args: any[]): vue.CreateComponentPublicInstanceWithMixins<{
147
+ new (...args: any[]): vue.CreateComponentPublicInstance<{
148
148
  flat: boolean;
149
149
  inline: boolean;
150
150
  error: boolean;
@@ -203,7 +203,62 @@ declare const VSwitch: {
203
203
  'update:focused': (focused: boolean) => true;
204
204
  'update:modelValue': (value: any) => true;
205
205
  'update:indeterminate': (value: boolean) => true;
206
- }, "$children" | "v-slots" | "v-slot:default" | "modelValue" | "v-slot:prepend" | "v-slot:append" | "update:modelValue" | "v-slot:loader" | "v-slot:input" | "v-slot:label" | "v-slot:message" | "v-slot:details" | "v-slot:thumb" | "v-slot:track-false" | "v-slot:track-true">, vue.VNodeProps & vue.AllowedComponentProps & vue.ComponentCustomProps, {
206
+ }, "$children" | "v-slots" | "v-slot:default" | "modelValue" | "v-slot:prepend" | "v-slot:append" | "update:modelValue" | "v-slot:loader" | "v-slot:input" | "v-slot:label" | "v-slot:message" | "v-slot:details" | "v-slot:thumb" | "v-slot:track-false" | "v-slot:track-true">, vue.VNodeProps & vue.AllowedComponentProps & vue.ComponentCustomProps & {
207
+ flat: boolean;
208
+ inline: boolean;
209
+ error: boolean;
210
+ direction: "horizontal" | "vertical";
211
+ inset: boolean;
212
+ loading: string | boolean;
213
+ style: vue.StyleValue;
214
+ disabled: boolean | null;
215
+ multiple: boolean | null;
216
+ readonly: boolean | null;
217
+ indeterminate: boolean;
218
+ messages: string | readonly string[];
219
+ focused: boolean;
220
+ errorMessages: string | readonly string[] | null;
221
+ maxErrors: string | number;
222
+ rules: readonly ValidationRule[];
223
+ density: Density;
224
+ ripple: boolean | {
225
+ class: string;
226
+ } | undefined;
227
+ valueComparator: typeof deepEqual;
228
+ centerAffix: boolean;
229
+ hideSpinButtons: boolean;
230
+ persistentHint: boolean;
231
+ } & {
232
+ name?: string | undefined;
233
+ type?: string | undefined;
234
+ id?: string | undefined;
235
+ width?: string | number | undefined;
236
+ color?: string | undefined;
237
+ maxWidth?: string | number | undefined;
238
+ minWidth?: string | number | undefined;
239
+ value?: any;
240
+ label?: string | undefined;
241
+ class?: any;
242
+ theme?: string | undefined;
243
+ 'onUpdate:focused'?: ((args_0: boolean) => void) | undefined;
244
+ validateOn?: ("eager" | "lazy" | ("input" | "blur" | "submit" | "invalid-input") | "input lazy" | "blur lazy" | "submit lazy" | "invalid-input lazy" | "input eager" | "blur eager" | "submit eager" | "invalid-input eager" | "lazy input" | "lazy blur" | "lazy submit" | "lazy invalid-input" | "eager input" | "eager blur" | "eager submit" | "eager invalid-input") | undefined;
245
+ validationValue?: any;
246
+ baseColor?: string | undefined;
247
+ prependIcon?: IconValue | undefined;
248
+ appendIcon?: IconValue | undefined;
249
+ defaultsTarget?: string | undefined;
250
+ falseIcon?: IconValue | undefined;
251
+ trueIcon?: IconValue | undefined;
252
+ trueValue?: any;
253
+ falseValue?: any;
254
+ 'onClick:append'?: ((args_0: MouseEvent) => void) | undefined;
255
+ 'onClick:prepend'?: ((args_0: MouseEvent) => void) | undefined;
256
+ hint?: string | undefined;
257
+ hideDetails?: boolean | "auto" | undefined;
258
+ } & {
259
+ "onUpdate:focused"?: ((focused: boolean) => any) | undefined;
260
+ "onUpdate:indeterminate"?: ((value: boolean) => any) | undefined;
261
+ }, {
207
262
  flat: boolean;
208
263
  inline: boolean;
209
264
  error: boolean;
@@ -248,7 +303,7 @@ declare const VSwitch: {
248
303
  } & VSwitchSlot) => vue.VNode[];
249
304
  'track-false': (arg: VSwitchSlot) => vue.VNode[];
250
305
  'track-true': (arg: VSwitchSlot) => vue.VNode[];
251
- }>>, vue.GlobalComponents, vue.GlobalDirectives, string, {}, any, vue.ComponentProvideOptions, {
306
+ }>>, {
252
307
  P: {};
253
308
  B: {};
254
309
  D: {};
@@ -443,7 +498,7 @@ declare const VSwitch: {
443
498
  } & VSwitchSlot) => vue.VNode[];
444
499
  'track-false': (arg: VSwitchSlot) => vue.VNode[];
445
500
  'track-true': (arg: VSwitchSlot) => vue.VNode[];
446
- }>>, vue.GlobalComponents, vue.GlobalDirectives, string, vue.ComponentProvideOptions> & vue.VNodeProps & vue.AllowedComponentProps & vue.ComponentCustomProps & (new <T>(props: {
501
+ }>>> & vue.VNodeProps & vue.AllowedComponentProps & vue.ComponentCustomProps & (new <T>(props: {
447
502
  modelValue?: T | null;
448
503
  "onUpdate:modelValue"?: (value: T | null) => void;
449
504
  }, slots: VSwitchSlots) => GenericProps<typeof props, typeof slots>) & FilterPropsOptions<{
@@ -1,4 +1,4 @@
1
- import { createVNode as _createVNode } from "vue";
1
+ import { createVNode as _createVNode, resolveDirective as _resolveDirective } from "vue";
2
2
  // Styles
3
3
  import "./VSystemBar.css";
4
4