@vuetify/nightly 3.7.5-master.2024-12-17 → 3.7.6-dev.2024-12-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 (281) hide show
  1. package/dist/json/attributes.json +3385 -3377
  2. package/dist/json/importMap-labs.json +24 -24
  3. package/dist/json/importMap.json +154 -154
  4. package/dist/json/tags.json +2 -0
  5. package/dist/json/web-types.json +6391 -6373
  6. package/dist/vuetify-labs.css +3014 -3014
  7. package/dist/vuetify-labs.d.ts +3365 -14377
  8. package/dist/vuetify-labs.esm.js +45 -47
  9. package/dist/vuetify-labs.esm.js.map +1 -1
  10. package/dist/vuetify-labs.js +44 -46
  11. package/dist/vuetify-labs.min.css +2 -2
  12. package/dist/vuetify.css +4326 -4326
  13. package/dist/vuetify.d.ts +3127 -12301
  14. package/dist/vuetify.esm.js +45 -47
  15. package/dist/vuetify.esm.js.map +1 -1
  16. package/dist/vuetify.js +44 -46
  17. package/dist/vuetify.js.map +1 -1
  18. package/dist/vuetify.min.css +2 -2
  19. package/dist/vuetify.min.js +878 -883
  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 +8 -86
  23. package/lib/components/VApp/index.d.mts +4 -20
  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 +18 -154
  28. package/lib/components/VAutocomplete/VAutocomplete.mjs +1 -1
  29. package/lib/components/VAutocomplete/index.d.mts +201 -1360
  30. package/lib/components/VAvatar/index.d.mts +4 -31
  31. package/lib/components/VBadge/VBadge.mjs +1 -1
  32. package/lib/components/VBadge/index.d.mts +4 -41
  33. package/lib/components/VBanner/VBanner.mjs +1 -1
  34. package/lib/components/VBanner/index.d.mts +12 -88
  35. package/lib/components/VBottomNavigation/index.d.mts +4 -32
  36. package/lib/components/VBottomSheet/VBottomSheet.mjs +1 -1
  37. package/lib/components/VBottomSheet/index.d.mts +4 -88
  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 +12 -65
  41. package/lib/components/VBtn/VBtn.mjs +1 -1
  42. package/lib/components/VBtn/index.d.mts +11 -79
  43. package/lib/components/VBtnGroup/VBtnGroup.mjs +1 -1
  44. package/lib/components/VBtnGroup/index.d.mts +4 -28
  45. package/lib/components/VBtnToggle/VBtnToggle.mjs +1 -1
  46. package/lib/components/VBtnToggle/index.d.mts +13 -33
  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 +24 -190
  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 +17 -95
  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 +8 -90
  60. package/lib/components/VChip/VChip.mjs +16 -9
  61. package/lib/components/VChip/VChip.mjs.map +1 -1
  62. package/lib/components/VChip/index.d.mts +9 -105
  63. package/lib/components/VChipGroup/VChipGroup.mjs +3 -1
  64. package/lib/components/VChipGroup/VChipGroup.mjs.map +1 -1
  65. package/lib/components/VChipGroup/index.d.mts +24 -43
  66. package/lib/components/VCode/index.d.mts +4 -18
  67. package/lib/components/VColorPicker/VColorPicker.mjs +1 -1
  68. package/lib/components/VColorPicker/index.d.mts +4 -68
  69. package/lib/components/VCombobox/VCombobox.mjs +1 -1
  70. package/lib/components/VCombobox/index.d.mts +201 -1360
  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 +6 -13
  74. package/lib/components/VCounter/VCounter.mjs +1 -1
  75. package/lib/components/VCounter/index.d.mts +9 -31
  76. package/lib/components/VDataIterator/index.d.mts +12 -56
  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 +36 -388
  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 +24 -276
  91. package/lib/components/VDefaultsProvider/index.d.mts +4 -20
  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 +143 -389
  95. package/lib/components/VDivider/index.d.mts +4 -24
  96. package/lib/components/VEmptyState/VEmptyState.mjs +1 -1
  97. package/lib/components/VEmptyState/index.d.mts +4 -66
  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 +23 -159
  101. package/lib/components/VFab/VFab.mjs +1 -1
  102. package/lib/components/VFab/index.d.mts +15 -84
  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 +11 -59
  107. package/lib/components/VFileInput/VFileInput.mjs +1 -1
  108. package/lib/components/VFileInput/index.d.mts +71 -256
  109. package/lib/components/VFooter/VFooter.mjs +1 -1
  110. package/lib/components/VFooter/index.d.mts +4 -29
  111. package/lib/components/VForm/index.d.mts +267 -175
  112. package/lib/components/VGrid/VContainer.mjs +1 -1
  113. package/lib/components/VGrid/index.d.mts +16 -118
  114. package/lib/components/VHover/index.d.mts +4 -33
  115. package/lib/components/VIcon/index.d.mts +17 -75
  116. package/lib/components/VImg/VImg.mjs +1 -1
  117. package/lib/components/VImg/index.d.mts +19 -74
  118. package/lib/components/VInfiniteScroll/VInfiniteScroll.mjs +1 -1
  119. package/lib/components/VInfiniteScroll/index.d.mts +4 -46
  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 +4 -37
  123. package/lib/components/VItemGroup/VItemGroup.mjs.map +1 -1
  124. package/lib/components/VItemGroup/index.d.mts +17 -74
  125. package/lib/components/VKbd/index.d.mts +4 -18
  126. package/lib/components/VLabel/index.d.mts +4 -20
  127. package/lib/components/VLayout/index.d.mts +8 -48
  128. package/lib/components/VLazy/VLazy.mjs +1 -1
  129. package/lib/components/VLazy/index.d.mts +4 -31
  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 +48 -291
  138. package/lib/components/VLocaleProvider/index.d.mts +4 -21
  139. package/lib/components/VMain/index.d.mts +4 -25
  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 +155 -397
  143. package/lib/components/VMessages/index.d.mts +4 -27
  144. package/lib/components/VNavigationDrawer/VNavigationDrawer.mjs +1 -1
  145. package/lib/components/VNavigationDrawer/index.d.mts +7 -62
  146. package/lib/components/VOtpInput/VOtpInput.mjs +1 -1
  147. package/lib/components/VOtpInput/index.d.mts +7 -52
  148. package/lib/components/VOverlay/VOverlay.mjs +1 -1
  149. package/lib/components/VOverlay/index.d.mts +19 -101
  150. package/lib/components/VPagination/VPagination.mjs +1 -1
  151. package/lib/components/VPagination/index.d.mts +4 -64
  152. package/lib/components/VParallax/VParallax.mjs +1 -1
  153. package/lib/components/VParallax/index.d.mts +4 -27
  154. package/lib/components/VProgressCircular/index.d.mts +4 -34
  155. package/lib/components/VProgressLinear/index.d.mts +4 -54
  156. package/lib/components/VRadio/VRadio.mjs +1 -1
  157. package/lib/components/VRadio/index.d.mts +4 -68
  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 +4 -48
  161. package/lib/components/VRangeSlider/VRangeSlider.mjs +1 -1
  162. package/lib/components/VRangeSlider/index.d.mts +4 -107
  163. package/lib/components/VRating/VRating.mjs +5 -4
  164. package/lib/components/VRating/VRating.mjs.map +1 -1
  165. package/lib/components/VRating/index.d.mts +4 -42
  166. package/lib/components/VResponsive/index.d.mts +4 -29
  167. package/lib/components/VSelect/VSelect.mjs +1 -1
  168. package/lib/components/VSelect/index.d.mts +200 -1352
  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 +10 -37
  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 +4 -26
  175. package/lib/components/VSheet/VSheet.mjs +1 -1
  176. package/lib/components/VSheet/index.d.mts +4 -32
  177. package/lib/components/VSkeletonLoader/VSkeletonLoader.mjs +1 -1
  178. package/lib/components/VSkeletonLoader/index.d.mts +4 -28
  179. package/lib/components/VSlideGroup/index.d.mts +21 -77
  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 +4 -106
  183. package/lib/components/VSnackbar/VSnackbar.mjs +1 -1
  184. package/lib/components/VSnackbar/index.d.mts +152 -398
  185. package/lib/components/VSparkline/VBarline.mjs +3 -4
  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 +3 -4
  189. package/lib/components/VSparkline/VTrendline.mjs.map +1 -1
  190. package/lib/components/VSparkline/index.d.mts +4 -49
  191. package/lib/components/VSpeedDial/VSpeedDial.mjs +1 -1
  192. package/lib/components/VSpeedDial/index.d.mts +4 -85
  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 +24 -250
  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 +4 -59
  201. package/lib/components/VSystemBar/VSystemBar.mjs +1 -1
  202. package/lib/components/VSystemBar/index.d.mts +4 -28
  203. package/lib/components/VTable/index.d.mts +4 -33
  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 +105 -401
  209. package/lib/components/VTextField/VTextField.mjs +1 -1
  210. package/lib/components/VTextField/index.d.mts +152 -374
  211. package/lib/components/VTextarea/VTextarea.mjs +1 -1
  212. package/lib/components/VTextarea/index.d.mts +71 -244
  213. package/lib/components/VThemeProvider/index.d.mts +4 -20
  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 +8 -75
  218. package/lib/components/VToolbar/VToolbar.mjs +1 -1
  219. package/lib/components/VToolbar/index.d.mts +12 -90
  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 +147 -386
  223. package/lib/components/VValidation/index.d.mts +10 -24
  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 +4 -15
  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 +15 -54
  230. package/lib/components/index.d.mts +2947 -12121
  231. package/lib/components/transitions/dialog-transition.mjs +1 -2
  232. package/lib/components/transitions/dialog-transition.mjs.map +1 -1
  233. package/lib/components/transitions/index.d.mts +64 -309
  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 +2 -3
  249. package/lib/framework.mjs.map +1 -1
  250. package/lib/index.d.mts +61 -61
  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 +24 -211
  254. package/lib/labs/VDateInput/VDateInput.mjs +1 -1
  255. package/lib/labs/VDateInput/index.d.mts +4 -115
  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 +8 -195
  259. package/lib/labs/VNumberInput/VNumberInput.mjs +1 -1
  260. package/lib/labs/VNumberInput/index.d.mts +577 -1280
  261. package/lib/labs/VPicker/VPicker.mjs +1 -1
  262. package/lib/labs/VPicker/index.d.mts +8 -63
  263. package/lib/labs/VPullToRefresh/index.d.mts +4 -35
  264. package/lib/labs/VSnackbarQueue/VSnackbarQueue.mjs +1 -1
  265. package/lib/labs/VSnackbarQueue/index.d.mts +156 -453
  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 +12 -227
  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 +12 -122
  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 +18 -205
  278. package/lib/labs/components.d.mts +1116 -3200
  279. package/lib/util/getCurrentInstance.mjs +1 -15
  280. package/lib/util/getCurrentInstance.mjs.map +1 -1
  281. package/package.json +5 -4
@@ -45,7 +45,7 @@ type StepperItemSlot = {
45
45
  };
46
46
  type ValidationRule = () => string | boolean;
47
47
  declare const VStepperItem: {
48
- new (...args: any[]): vue.CreateComponentPublicInstance<{
48
+ new (...args: any[]): vue.CreateComponentPublicInstanceWithMixins<{
49
49
  error: boolean;
50
50
  complete: boolean;
51
51
  disabled: boolean;
@@ -90,48 +90,7 @@ declare const VStepperItem: {
90
90
  'group:selected': (val: {
91
91
  value: boolean;
92
92
  }) => true;
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
- }, {
93
+ }, vue.VNodeProps & vue.AllowedComponentProps & vue.ComponentCustomProps, {
135
94
  error: boolean;
136
95
  complete: boolean;
137
96
  disabled: boolean;
@@ -148,7 +107,7 @@ declare const VStepperItem: {
148
107
  icon: (arg: StepperItemSlot) => vue.VNode[];
149
108
  title: (arg: StepperItemSlot) => vue.VNode[];
150
109
  subtitle: (arg: StepperItemSlot) => vue.VNode[];
151
- }>>, {
110
+ }>>, vue.GlobalComponents, vue.GlobalDirectives, string, {}, any, vue.ComponentProvideOptions, {
152
111
  P: {};
153
112
  B: {};
154
113
  D: {};
@@ -274,7 +233,7 @@ declare const VStepperItem: {
274
233
  icon: (arg: StepperItemSlot) => vue.VNode[];
275
234
  title: (arg: StepperItemSlot) => vue.VNode[];
276
235
  subtitle: (arg: StepperItemSlot) => vue.VNode[];
277
- }>>> & vue.VNodeProps & vue.AllowedComponentProps & vue.ComponentCustomProps & FilterPropsOptions<{
236
+ }>>, vue.GlobalComponents, vue.GlobalDirectives, string, vue.ComponentProvideOptions> & vue.VNodeProps & vue.AllowedComponentProps & vue.ComponentCustomProps & FilterPropsOptions<{
278
237
  value: null;
279
238
  disabled: BooleanConstructor;
280
239
  selectedClass: StringConstructor;
@@ -344,7 +303,7 @@ type VStepperSlot = {
344
303
  next: () => void;
345
304
  };
346
305
  declare const VStepper: {
347
- new (...args: any[]): vue.CreateComponentPublicInstance<{
306
+ new (...args: any[]): vue.CreateComponentPublicInstanceWithMixins<{
348
307
  flat: boolean;
349
308
  style: vue.StyleValue;
350
309
  mobile: boolean | null;
@@ -434,92 +393,7 @@ declare const VStepper: {
434
393
  next: () => void;
435
394
  }, unknown, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {
436
395
  'update:modelValue': (v: unknown) => true;
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
- }, {
396
+ }, vue.VNodeProps & vue.AllowedComponentProps & vue.ComponentCustomProps, {
523
397
  flat: boolean;
524
398
  style: vue.StyleValue;
525
399
  mobile: boolean | null;
@@ -553,7 +427,7 @@ declare const VStepper: {
553
427
  item: (arg: StepperItem) => vue.VNode[];
554
428
  prev: () => vue.VNode[];
555
429
  next: () => vue.VNode[];
556
- }>>, {
430
+ }>>, vue.GlobalComponents, vue.GlobalDirectives, string, {}, any, vue.ComponentProvideOptions, {
557
431
  P: {};
558
432
  B: {};
559
433
  D: {};
@@ -797,7 +671,7 @@ declare const VStepper: {
797
671
  item: (arg: StepperItem) => vue.VNode[];
798
672
  prev: () => vue.VNode[];
799
673
  next: () => vue.VNode[];
800
- }>>> & vue.VNodeProps & vue.AllowedComponentProps & vue.ComponentCustomProps & FilterPropsOptions<{
674
+ }>>, vue.GlobalComponents, vue.GlobalDirectives, string, vue.ComponentProvideOptions> & vue.VNodeProps & vue.AllowedComponentProps & vue.ComponentCustomProps & FilterPropsOptions<{
801
675
  prevText: {
802
676
  type: StringConstructor;
803
677
  default: string;
@@ -965,7 +839,7 @@ declare const VStepper: {
965
839
  type VStepper = InstanceType<typeof VStepper>;
966
840
 
967
841
  declare const VStepperActions: {
968
- new (...args: any[]): vue.CreateComponentPublicInstance<{
842
+ new (...args: any[]): vue.CreateComponentPublicInstanceWithMixins<{
969
843
  disabled: boolean | "next" | "prev";
970
844
  prevText: string;
971
845
  nextText: string;
@@ -1013,52 +887,7 @@ declare const VStepperActions: {
1013
887
  }, {}, unknown, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {
1014
888
  'click:prev': () => true;
1015
889
  'click:next': () => true;
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
- }, {
890
+ }, vue.VNodeProps & vue.AllowedComponentProps & vue.ComponentCustomProps, {
1062
891
  disabled: boolean | "next" | "prev";
1063
892
  prevText: string;
1064
893
  nextText: string;
@@ -1073,7 +902,7 @@ declare const VStepperActions: {
1073
902
  onClick: () => void;
1074
903
  };
1075
904
  }) => vue.VNode[];
1076
- }>>, {
905
+ }>>, vue.GlobalComponents, vue.GlobalDirectives, string, {}, any, vue.ComponentProvideOptions, {
1077
906
  P: {};
1078
907
  B: {};
1079
908
  D: {};
@@ -1196,7 +1025,7 @@ declare const VStepperActions: {
1196
1025
  onClick: () => void;
1197
1026
  };
1198
1027
  }) => vue.VNode[];
1199
- }>>> & vue.VNodeProps & vue.AllowedComponentProps & vue.ComponentCustomProps & FilterPropsOptions<{
1028
+ }>>, vue.GlobalComponents, vue.GlobalDirectives, string, vue.ComponentProvideOptions> & vue.VNodeProps & vue.AllowedComponentProps & vue.ComponentCustomProps & FilterPropsOptions<{
1200
1029
  color: StringConstructor;
1201
1030
  disabled: {
1202
1031
  type: PropType<boolean | "next" | "prev">;
@@ -1228,7 +1057,7 @@ declare const VStepperActions: {
1228
1057
  type VStepperActions = InstanceType<typeof VStepperActions>;
1229
1058
 
1230
1059
  declare const VStepperHeader: {
1231
- new (...args: any[]): vue.CreateComponentPublicInstance<{
1060
+ new (...args: any[]): vue.CreateComponentPublicInstanceWithMixins<{
1232
1061
  style: vue.StyleValue;
1233
1062
  tag: string;
1234
1063
  } & {
@@ -1244,26 +1073,12 @@ declare const VStepperHeader: {
1244
1073
  "v-slot:default"?: false | (() => vue.VNodeChild) | undefined;
1245
1074
  }, () => vue.VNode<vue.RendererNode, vue.RendererElement, {
1246
1075
  [key: string]: any;
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
- }, {
1076
+ }>, unknown, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, Record<string, any>, vue.VNodeProps & vue.AllowedComponentProps & vue.ComponentCustomProps, {
1262
1077
  style: vue.StyleValue;
1263
1078
  tag: string;
1264
1079
  }, true, {}, vue.SlotsType<Partial<{
1265
1080
  default: () => vue.VNode[];
1266
- }>>, {
1081
+ }>>, vue.GlobalComponents, vue.GlobalDirectives, string, {}, any, vue.ComponentProvideOptions, {
1267
1082
  P: {};
1268
1083
  B: {};
1269
1084
  D: {};
@@ -1314,7 +1129,7 @@ declare const VStepperHeader: {
1314
1129
  tag: string;
1315
1130
  }, {}, string, vue.SlotsType<Partial<{
1316
1131
  default: () => vue.VNode[];
1317
- }>>> & vue.VNodeProps & vue.AllowedComponentProps & vue.ComponentCustomProps & FilterPropsOptions<{
1132
+ }>>, vue.GlobalComponents, vue.GlobalDirectives, string, vue.ComponentProvideOptions> & vue.VNodeProps & vue.AllowedComponentProps & vue.ComponentCustomProps & FilterPropsOptions<{
1318
1133
  class: vue.PropType<ClassValue>;
1319
1134
  style: {
1320
1135
  type: vue.PropType<vue.StyleValue>;
@@ -1338,7 +1153,7 @@ declare const VStepperHeader: {
1338
1153
  type VStepperHeader = InstanceType<typeof VStepperHeader>;
1339
1154
 
1340
1155
  declare const VStepperWindow: {
1341
- new (...args: any[]): vue.CreateComponentPublicInstance<{
1156
+ new (...args: any[]): vue.CreateComponentPublicInstanceWithMixins<{
1342
1157
  reverse: boolean;
1343
1158
  direction: "horizontal" | "vertical";
1344
1159
  style: vue.StyleValue;
@@ -1362,29 +1177,7 @@ declare const VStepperWindow: {
1362
1177
  "onUpdate:modelValue"?: ((v: unknown) => any) | undefined;
1363
1178
  }, {}, unknown, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {
1364
1179
  'update:modelValue': (v: unknown) => true;
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
- }, {
1180
+ }, vue.VNodeProps & vue.AllowedComponentProps & vue.ComponentCustomProps, {
1388
1181
  reverse: boolean;
1389
1182
  direction: "horizontal" | "vertical";
1390
1183
  style: vue.StyleValue;
@@ -1393,7 +1186,7 @@ declare const VStepperWindow: {
1393
1186
  selectedClass: string;
1394
1187
  }, true, {}, vue.SlotsType<Partial<{
1395
1188
  default: () => vue.VNode[];
1396
- }>>, {
1189
+ }>>, vue.GlobalComponents, vue.GlobalDirectives, string, {}, any, vue.ComponentProvideOptions, {
1397
1190
  P: {};
1398
1191
  B: {};
1399
1192
  D: {};
@@ -1466,7 +1259,7 @@ declare const VStepperWindow: {
1466
1259
  selectedClass: string;
1467
1260
  }, {}, string, vue.SlotsType<Partial<{
1468
1261
  default: () => vue.VNode[];
1469
- }>>> & vue.VNodeProps & vue.AllowedComponentProps & vue.ComponentCustomProps & FilterPropsOptions<{
1262
+ }>>, vue.GlobalComponents, vue.GlobalDirectives, string, vue.ComponentProvideOptions> & vue.VNodeProps & vue.AllowedComponentProps & vue.ComponentCustomProps & FilterPropsOptions<{
1470
1263
  reverse: BooleanConstructor;
1471
1264
  direction: {
1472
1265
  type: vue.PropType<"horizontal" | "vertical">;
@@ -1514,26 +1307,7 @@ declare const VStepperWindow: {
1514
1307
  type VStepperWindow = InstanceType<typeof VStepperWindow>;
1515
1308
 
1516
1309
  declare const VStepperWindowItem: {
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 & {
1310
+ new (...args: any[]): vue.CreateComponentPublicInstanceWithMixins<{
1537
1311
  style: vue.StyleValue;
1538
1312
  eager: boolean;
1539
1313
  disabled: boolean;
@@ -1552,7 +1326,7 @@ declare const VStepperWindowItem: {
1552
1326
  } | undefined;
1553
1327
  } & {
1554
1328
  "v-slot:default"?: false | (() => vue.VNodeChild) | undefined;
1555
- }, {
1329
+ }, {}, unknown, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, Record<string, any>, vue.VNodeProps & vue.AllowedComponentProps & vue.ComponentCustomProps, {
1556
1330
  transition: string | boolean;
1557
1331
  style: vue.StyleValue;
1558
1332
  eager: boolean;
@@ -1560,7 +1334,7 @@ declare const VStepperWindowItem: {
1560
1334
  reverseTransition: string | boolean;
1561
1335
  }, true, {}, vue.SlotsType<Partial<{
1562
1336
  default: () => vue.VNode[];
1563
- }>>, {
1337
+ }>>, vue.GlobalComponents, vue.GlobalDirectives, string, {}, any, vue.ComponentProvideOptions, {
1564
1338
  P: {};
1565
1339
  B: {};
1566
1340
  D: {};
@@ -1623,7 +1397,7 @@ declare const VStepperWindowItem: {
1623
1397
  reverseTransition: string | boolean;
1624
1398
  }, {}, string, vue.SlotsType<Partial<{
1625
1399
  default: () => vue.VNode[];
1626
- }>>> & vue.VNodeProps & vue.AllowedComponentProps & vue.ComponentCustomProps & FilterPropsOptions<{
1400
+ }>>, vue.GlobalComponents, vue.GlobalDirectives, string, vue.ComponentProvideOptions> & vue.VNodeProps & vue.AllowedComponentProps & vue.ComponentCustomProps & FilterPropsOptions<{
1627
1401
  eager: BooleanConstructor;
1628
1402
  value: null;
1629
1403
  disabled: BooleanConstructor;
@@ -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
  // 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 } from 'vue';
16
- import { filterInputAttrs, genericComponent, getUid, IN_BROWSER, propsFactory, useRender } from "../../util/index.mjs"; // Types
15
+ import { computed, ref, useId } from 'vue';
16
+ import { filterInputAttrs, genericComponent, 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 = getUid();
57
+ const uid = useId();
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","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,OAAO,GAAGd,gBAAgB,CAMQ,CAAC,CAAC;E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T,KAAK,IAAIuB,wBAAwB,GAAG+B,SAAS,GAAGE,sBAAsB,CAAC5C,KAAK,CACnF;gBAAA,SACOH,KAAK,CAACT,KAAK,GAAGsD,SAAS,GAAGG,qBAAqB,CAAC7C;cAAK,IAE3DI,KAAK,CAAC8C,KAAK,GAAAnB,YAAA,CAAAjE,iBAAA;gBAAA,YAEC;kBACRC,KAAK,EAAE;oBACLiF,IAAI;oBACJG,IAAI,EAAE;kBACR;gBACF;cAAC;gBAAA1D,OAAA,EAAAA,CAAA,MAECW,KAAK,CAAC8C,KAAK,CAAC;kBAAE,GAAGT,SAAS;kBAAEO;gBAAK,CAAC,CAAC;cAAA,KAAAjB,YAAA,CAAAlE,gBAAA;gBAAA4B,OAAA,EAAAA,CAAA,MAInC,CAACI,KAAK,CAACP,OAAO,GACb0D,IAAI,IAAAjB,YAAA,CAAAhE,KAAA;kBAAA,OAEKyB,MAAM,CAACwD,IAAI,CAAC;kBAAA,QACXA,IAAI;kBAAA;gBAAA,QAGd,GAAAjB,YAAA,CAAAzD,UAAA;kBAAA;kBAAA;kBAAA,SAISkE,OAAO,CAACxC,KAAK,KAAK,KAAK,GAAG0C,SAAS,GAAG3B,WAAW,CAACf;gBAAK;kBAAAP,OAAA,EAE7DgD,SAAS,IACTrC,KAAK,CAACgD,MAAM,GACRhD,KAAK,CAACgD,MAAM,CAACX,SAAS,CAAC,GAAAV,YAAA,CAAA7D,iBAAA;oBAAA,UAGZuE,SAAS,CAACY,QAAQ;oBAAA,SACnBZ,SAAS,CAACzB,KAAK;oBAAA;oBAAA;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","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,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,OAAO,GAAGb,gBAAgB,CAMQ,CAAC,CAAC;EAC/Cc,IAAI,EAAE,SAAS;EAEfC,YAAY,EAAE,KAAK;EAEnBC,KAAK,EAAEZ,gBAAgB,CAAC,CAAC;EAEzBa,KAAK,EAAE;IACL,gBAAgB,EAAGC,OAAgB,IAAK,IAAI;IAC5C,mBAAmB,EAAGC,KAAU,IAAK,IAAI;IACzC,sBAAsB,EAAGA,KAAc,IAAK;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,KAAK,EAAE;oBACLiF,IAAI;oBACJG,IAAI,EAAE;kBACR;gBACF;cAAC;gBAAA1D,OAAA,EAAAA,CAAA,MAECW,KAAK,CAAC8C,KAAK,CAAC;kBAAE,GAAGT,SAAS;kBAAEO;gBAAK,CAAC,CAAC;cAAA,KAAAjB,YAAA,CAAAlE,gBAAA;gBAAA4B,OAAA,EAAAA,CAAA,MAInC,CAACI,KAAK,CAACP,OAAO,GACb0D,IAAI,IAAAjB,YAAA,CAAAhE,KAAA;kBAAA,OAEKyB,MAAM,CAACwD,IAAI,CAAC;kBAAA,QACXA,IAAI;kBAAA;gBAAA,QAGd,GAAAjB,YAAA,CAAAzD,UAAA;kBAAA;kBAAA;kBAAA,SAISkE,OAAO,CAACxC,KAAK,KAAK,KAAK,GAAG0C,SAAS,GAAG3B,WAAW,CAACf;gBAAK;kBAAAP,OAAA,EAE7DgD,SAAS,IACTrC,KAAK,CAACgD,MAAM,GACRhD,KAAK,CAACgD,MAAM,CAACX,SAAS,CAAC,GAAAV,YAAA,CAAA7D,iBAAA;oBAAA,UAGZuE,SAAS,CAACY,QAAQ;oBAAA,SACnBZ,SAAS,CAACzB,KAAK;oBAAA;oBAAA;oBAAA;kBAAA;gBAM9B,EAEJ;cAAA,EAEJ;YAAA;UAGN;QAIT;MAAC;IAIT,CAAC,CAAC;IAEF,OAAO,CAAC,CAAC;EACX;AACF,CAAC,CAAC","ignoreList":[]}
@@ -144,7 +144,7 @@ type VSwitchSlots = VInputSlots & VSelectionControlSlots & {
144
144
  'track-true': VSwitchSlot;
145
145
  };
146
146
  declare const VSwitch: {
147
- new (...args: any[]): vue.CreateComponentPublicInstance<{
147
+ new (...args: any[]): vue.CreateComponentPublicInstanceWithMixins<{
148
148
  flat: boolean;
149
149
  inline: boolean;
150
150
  error: boolean;
@@ -203,62 +203,7 @@ 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 & {
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
- }, {
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, {
262
207
  flat: boolean;
263
208
  inline: boolean;
264
209
  error: boolean;
@@ -303,7 +248,7 @@ declare const VSwitch: {
303
248
  } & VSwitchSlot) => vue.VNode[];
304
249
  'track-false': (arg: VSwitchSlot) => vue.VNode[];
305
250
  'track-true': (arg: VSwitchSlot) => vue.VNode[];
306
- }>>, {
251
+ }>>, vue.GlobalComponents, vue.GlobalDirectives, string, {}, any, vue.ComponentProvideOptions, {
307
252
  P: {};
308
253
  B: {};
309
254
  D: {};
@@ -498,7 +443,7 @@ declare const VSwitch: {
498
443
  } & VSwitchSlot) => vue.VNode[];
499
444
  'track-false': (arg: VSwitchSlot) => vue.VNode[];
500
445
  'track-true': (arg: VSwitchSlot) => vue.VNode[];
501
- }>>> & vue.VNodeProps & vue.AllowedComponentProps & vue.ComponentCustomProps & (new <T>(props: {
446
+ }>>, vue.GlobalComponents, vue.GlobalDirectives, string, vue.ComponentProvideOptions> & vue.VNodeProps & vue.AllowedComponentProps & vue.ComponentCustomProps & (new <T>(props: {
502
447
  modelValue?: T | null;
503
448
  "onUpdate:modelValue"?: (value: T | null) => void;
504
449
  }, slots: VSwitchSlots) => GenericProps<typeof props, typeof slots>) & FilterPropsOptions<{
@@ -1,4 +1,4 @@
1
- import { createVNode as _createVNode, resolveDirective as _resolveDirective } from "vue";
1
+ import { createVNode as _createVNode } from "vue";
2
2
  // Styles
3
3
  import "./VSystemBar.css";
4
4