@vuetify/nightly 3.7.4-next.2024-11-06 → 3.7.5-dev.2024-12-03

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 (219) hide show
  1. package/dist/json/attributes.json +3034 -3026
  2. package/dist/json/importMap-labs.json +14 -14
  3. package/dist/json/importMap.json +138 -138
  4. package/dist/json/tags.json +2 -0
  5. package/dist/json/web-types.json +5538 -5520
  6. package/dist/vuetify-labs.css +25130 -23413
  7. package/dist/vuetify-labs.d.ts +162 -156
  8. package/dist/vuetify-labs.esm.js +89 -71
  9. package/dist/vuetify-labs.esm.js.map +1 -1
  10. package/dist/vuetify-labs.js +89 -71
  11. package/dist/vuetify-labs.min.css +4 -3
  12. package/dist/vuetify.css +24211 -22491
  13. package/dist/vuetify.d.ts +146 -140
  14. package/dist/vuetify.esm.js +78 -61
  15. package/dist/vuetify.esm.js.map +1 -1
  16. package/dist/vuetify.js +78 -61
  17. package/dist/vuetify.js.map +1 -1
  18. package/dist/vuetify.min.css +4 -3
  19. package/dist/vuetify.min.js +40 -40
  20. package/dist/vuetify.min.js.map +1 -1
  21. package/lib/components/VAlert/VAlert.css +215 -207
  22. package/lib/components/VApp/VApp.css +15 -16
  23. package/lib/components/VAppBar/VAppBar.css +12 -14
  24. package/lib/components/VAutocomplete/VAutocomplete.css +85 -86
  25. package/lib/components/VAutocomplete/VAutocomplete.mjs +4 -4
  26. package/lib/components/VAutocomplete/VAutocomplete.mjs.map +1 -1
  27. package/lib/components/VAutocomplete/index.d.mts +16 -16
  28. package/lib/components/VAvatar/VAvatar.css +106 -108
  29. package/lib/components/VBadge/VBadge.css +77 -73
  30. package/lib/components/VBadge/VBadge.sass +4 -0
  31. package/lib/components/VBanner/VBanner.css +166 -161
  32. package/lib/components/VBottomNavigation/VBottomNavigation.css +63 -64
  33. package/lib/components/VBottomSheet/VBottomSheet.css +31 -34
  34. package/lib/components/VBreadcrumbs/VBreadcrumbs.css +57 -54
  35. package/lib/components/VBtn/VBtn.css +408 -385
  36. package/lib/components/VBtn/VBtn.sass +4 -4
  37. package/lib/components/VBtnGroup/VBtnGroup.css +64 -63
  38. package/lib/components/VBtnToggle/VBtnToggle.css +14 -16
  39. package/lib/components/VCard/VCard.css +302 -294
  40. package/lib/components/VCarousel/VCarousel.css +65 -63
  41. package/lib/components/VCarousel/VCarousel.sass +1 -1
  42. package/lib/components/VCheckbox/VCheckbox.css +5 -7
  43. package/lib/components/VChip/VChip.css +411 -378
  44. package/lib/components/VChip/VChip.mjs +18 -10
  45. package/lib/components/VChip/VChip.mjs.map +1 -1
  46. package/lib/components/VChip/index.d.mts +13 -8
  47. package/lib/components/VChipGroup/VChipGroup.css +18 -19
  48. package/lib/components/VChipGroup/VChipGroup.mjs +2 -0
  49. package/lib/components/VChipGroup/VChipGroup.mjs.map +1 -1
  50. package/lib/components/VChipGroup/index.d.mts +5 -0
  51. package/lib/components/VCode/VCode.css +8 -10
  52. package/lib/components/VColorPicker/VColorPicker.css +22 -22
  53. package/lib/components/VColorPicker/VColorPickerCanvas.css +22 -24
  54. package/lib/components/VColorPicker/VColorPickerEdit.css +28 -29
  55. package/lib/components/VColorPicker/VColorPickerPreview.css +67 -69
  56. package/lib/components/VColorPicker/VColorPickerPreview.sass +2 -4
  57. package/lib/components/VColorPicker/VColorPickerSwatches.css +34 -34
  58. package/lib/components/VCombobox/VCombobox.css +85 -86
  59. package/lib/components/VCombobox/VCombobox.mjs +4 -4
  60. package/lib/components/VCombobox/VCombobox.mjs.map +1 -1
  61. package/lib/components/VCombobox/index.d.mts +16 -16
  62. package/lib/components/VConfirmEdit/VConfirmEdit.mjs +9 -7
  63. package/lib/components/VConfirmEdit/VConfirmEdit.mjs.map +1 -1
  64. package/lib/components/VConfirmEdit/__test__/VConfirmEdit.spec.browser.mjs +1 -1
  65. package/lib/components/VConfirmEdit/__test__/VConfirmEdit.spec.browser.mjs.map +1 -1
  66. package/lib/components/VConfirmEdit/index.d.mts +3 -7
  67. package/lib/components/VCounter/VCounter.css +5 -7
  68. package/lib/components/VDataTable/VDataTable.css +186 -189
  69. package/lib/components/VDataTable/VDataTable.sass +10 -20
  70. package/lib/components/VDataTable/VDataTableFooter.css +31 -33
  71. package/lib/components/VDatePicker/VDatePicker.css +6 -8
  72. package/lib/components/VDatePicker/VDatePickerControls.css +56 -54
  73. package/lib/components/VDatePicker/VDatePickerHeader.css +60 -56
  74. package/lib/components/VDatePicker/VDatePickerHeader.mjs +2 -1
  75. package/lib/components/VDatePicker/VDatePickerHeader.mjs.map +1 -1
  76. package/lib/components/VDatePicker/VDatePickerMonth.css +55 -51
  77. package/lib/components/VDatePicker/VDatePickerMonths.css +19 -20
  78. package/lib/components/VDatePicker/VDatePickerYears.css +15 -16
  79. package/lib/components/VDatePicker/index.d.mts +5 -5
  80. package/lib/components/VDialog/VDialog.css +95 -95
  81. package/lib/components/VDivider/VDivider.css +52 -52
  82. package/lib/components/VEmptyState/VEmptyState.css +67 -62
  83. package/lib/components/VExpansionPanel/VExpansionPanel.css +209 -203
  84. package/lib/components/VExpansionPanel/VExpansionPanel.sass +25 -27
  85. package/lib/components/VFab/VFab.css +69 -74
  86. package/lib/components/VFab/VFab.sass +4 -5
  87. package/lib/components/VField/VField.css +579 -539
  88. package/lib/components/VField/VField.mjs +2 -1
  89. package/lib/components/VField/VField.mjs.map +1 -1
  90. package/lib/components/VFileInput/VFileInput.css +29 -31
  91. package/lib/components/VFooter/VFooter.css +36 -38
  92. package/lib/components/VGrid/VGrid.css +592 -565
  93. package/lib/components/VIcon/VIcon.css +52 -51
  94. package/lib/components/VImg/VImg.css +51 -50
  95. package/lib/components/VInfiniteScroll/VInfiniteScroll.css +37 -36
  96. package/lib/components/VInput/VInput.css +142 -131
  97. package/lib/components/VItemGroup/VItemGroup.css +5 -7
  98. package/lib/components/VKbd/VKbd.css +11 -13
  99. package/lib/components/VLabel/VLabel.css +15 -16
  100. package/lib/components/VLayout/VLayout.css +8 -10
  101. package/lib/components/VLayout/VLayoutItem.css +7 -8
  102. package/lib/components/VList/VList.css +108 -104
  103. package/lib/components/VList/VList.mjs +3 -2
  104. package/lib/components/VList/VList.mjs.map +1 -1
  105. package/lib/components/VList/VList.sass +1 -1
  106. package/lib/components/VList/VListItem.css +452 -440
  107. package/lib/components/VList/VListItem.mjs +3 -2
  108. package/lib/components/VList/VListItem.mjs.map +1 -1
  109. package/lib/components/VList/VListItem.sass +1 -2
  110. package/lib/components/VList/index.d.mts +10 -10
  111. package/lib/components/VLocaleProvider/VLocaleProvider.css +2 -4
  112. package/lib/components/VMain/VMain.css +30 -32
  113. package/lib/components/VMenu/VMenu.css +19 -21
  114. package/lib/components/VMessages/VMessages.css +15 -17
  115. package/lib/components/VNavigationDrawer/VNavigationDrawer.css +108 -106
  116. package/lib/components/VOtpInput/VOtpInput.css +58 -56
  117. package/lib/components/VOverlay/VOverlay.css +63 -60
  118. package/lib/components/VOverlay/VOverlay.sass +13 -14
  119. package/lib/components/VPagination/VPagination.css +8 -10
  120. package/lib/components/VParallax/VParallax.css +6 -8
  121. package/lib/components/VProgressCircular/VProgressCircular.css +101 -95
  122. package/lib/components/VProgressLinear/VProgressLinear.css +222 -209
  123. package/lib/components/VRadioGroup/VRadioGroup.css +12 -14
  124. package/lib/components/VRating/VRating.css +53 -52
  125. package/lib/components/VResponsive/VResponsive.css +26 -25
  126. package/lib/components/VSelect/VSelect.css +52 -54
  127. package/lib/components/VSelect/VSelect.mjs +3 -3
  128. package/lib/components/VSelect/VSelect.mjs.map +1 -1
  129. package/lib/components/VSelect/index.d.mts +16 -16
  130. package/lib/components/VSelectionControl/VSelectionControl.css +102 -100
  131. package/lib/components/VSelectionControlGroup/VSelectionControlGroup.css +8 -10
  132. package/lib/components/VSheet/VSheet.css +36 -38
  133. package/lib/components/VSkeletonLoader/VSkeletonLoader.css +224 -225
  134. package/lib/components/VSlideGroup/VSlideGroup.css +55 -53
  135. package/lib/components/VSlider/VSlider.css +57 -53
  136. package/lib/components/VSlider/VSliderThumb.css +153 -142
  137. package/lib/components/VSlider/VSliderTrack.css +174 -155
  138. package/lib/components/VSnackbar/VSnackbar.css +140 -140
  139. package/lib/components/VSpeedDial/VSpeedDial.css +41 -43
  140. package/lib/components/VStepper/VStepper.css +56 -55
  141. package/lib/components/VStepper/VStepper.mjs +5 -4
  142. package/lib/components/VStepper/VStepper.mjs.map +1 -1
  143. package/lib/components/VStepper/VStepperItem.css +115 -112
  144. package/lib/components/VStepper/VStepperItem.mjs +5 -4
  145. package/lib/components/VStepper/VStepperItem.mjs.map +1 -1
  146. package/lib/components/VStepper/index.d.mts +51 -45
  147. package/lib/components/VSwitch/VSwitch.css +139 -129
  148. package/lib/components/VSystemBar/VSystemBar.css +43 -45
  149. package/lib/components/VTable/VTable.css +141 -140
  150. package/lib/components/VTable/VTable.sass +2 -4
  151. package/lib/components/VTabs/VTab.css +29 -30
  152. package/lib/components/VTabs/VTabs.css +65 -59
  153. package/lib/components/VTextField/VTextField.css +68 -65
  154. package/lib/components/VTextarea/VTextarea.css +39 -47
  155. package/lib/components/VTextarea/VTextarea.sass +2 -4
  156. package/lib/components/VThemeProvider/VThemeProvider.css +3 -5
  157. package/lib/components/VTimeline/VTimeline.css +418 -379
  158. package/lib/components/VToolbar/VToolbar.css +143 -136
  159. package/lib/components/VTooltip/VTooltip.css +21 -25
  160. package/lib/components/VTooltip/VTooltip.sass +6 -8
  161. package/lib/components/VVirtualScroll/VVirtualScroll.css +9 -11
  162. package/lib/components/VWindow/VWindow.css +70 -73
  163. package/lib/components/index.d.mts +98 -92
  164. package/lib/composables/form.mjs +7 -2
  165. package/lib/composables/form.mjs.map +1 -1
  166. package/lib/composables/theme.mjs +4 -4
  167. package/lib/composables/theme.mjs.map +1 -1
  168. package/lib/composables/validation.mjs +10 -12
  169. package/lib/composables/validation.mjs.map +1 -1
  170. package/lib/directives/ripple/VRipple.css +36 -38
  171. package/lib/entry-bundler.mjs +1 -1
  172. package/lib/entry-bundler.mjs.map +1 -1
  173. package/lib/framework.mjs +1 -1
  174. package/lib/framework.mjs.map +1 -1
  175. package/lib/index.d.mts +48 -48
  176. package/lib/labs/VCalendar/VCalendar.css +225 -219
  177. package/lib/labs/VCalendar/VCalendarDay.css +32 -33
  178. package/lib/labs/VCalendar/VCalendarHeader.css +13 -13
  179. package/lib/labs/VCalendar/VCalendarInterval.css +42 -43
  180. package/lib/labs/VCalendar/VCalendarIntervalEvent.css +5 -7
  181. package/lib/labs/VCalendar/VCalendarMonthDay.css +58 -61
  182. package/lib/labs/VCalendar/VCalendarMonthDay.sass +2 -3
  183. package/lib/labs/VDateInput/VDateInput.mjs +1 -1
  184. package/lib/labs/VDateInput/VDateInput.mjs.map +1 -1
  185. package/lib/labs/VNumberInput/VNumberInput.css +38 -40
  186. package/lib/labs/VNumberInput/VNumberInput.mjs +7 -5
  187. package/lib/labs/VNumberInput/VNumberInput.mjs.map +1 -1
  188. package/lib/labs/VPicker/VPicker.css +57 -53
  189. package/lib/labs/VStepperVertical/index.d.mts +44 -44
  190. package/lib/labs/VTimePicker/VTimePicker.css +7 -9
  191. package/lib/labs/VTimePicker/VTimePickerClock.css +129 -126
  192. package/lib/labs/VTimePicker/VTimePickerControls.css +103 -102
  193. package/lib/labs/VTreeview/VTreeviewItem.css +15 -17
  194. package/lib/labs/VTreeview/VTreeviewItem.mjs +3 -4
  195. package/lib/labs/VTreeview/VTreeviewItem.mjs.map +1 -1
  196. package/lib/labs/VTreeview/VTreeviewItem.sass +1 -2
  197. package/lib/labs/VTreeview/index.d.mts +20 -20
  198. package/lib/labs/components.d.mts +64 -64
  199. package/lib/locale/fr.mjs +1 -1
  200. package/lib/locale/fr.mjs.map +1 -1
  201. package/lib/styles/elements/_global.sass +1 -1
  202. package/lib/styles/generic/_colors.scss +3 -3
  203. package/lib/styles/generic/_layers.scss +1 -13
  204. package/lib/styles/generic/_transitions.scss +32 -32
  205. package/lib/styles/main.css +16139 -14666
  206. package/lib/styles/settings/_utilities.scss +5 -0
  207. package/lib/styles/settings/_variables.scss +2 -1
  208. package/lib/styles/tools/_bootable.sass +3 -0
  209. package/lib/styles/tools/_border.sass +4 -4
  210. package/lib/styles/tools/_display.sass +10 -0
  211. package/lib/styles/tools/_elevation.sass +2 -2
  212. package/lib/styles/tools/_index.sass +2 -0
  213. package/lib/styles/tools/_layer.scss +2 -4
  214. package/lib/styles/tools/_position.sass +2 -2
  215. package/lib/styles/tools/_radius.sass +10 -0
  216. package/lib/styles/tools/_rounded.sass +2 -2
  217. package/lib/styles/tools/_utilities.sass +5 -1
  218. package/lib/styles/utilities/_elevation.scss +1 -1
  219. package/package.json +1 -1
@@ -4014,8 +4014,8 @@ declare const VList: {
4014
4014
  activeColor?: string | undefined;
4015
4015
  activeClass?: string | undefined;
4016
4016
  activeStrategy?: ActiveStrategyProp | undefined;
4017
- collapseIcon?: string | undefined;
4018
- expandIcon?: string | undefined;
4017
+ collapseIcon?: IconValue | undefined;
4018
+ expandIcon?: IconValue | undefined;
4019
4019
  } & {
4020
4020
  "onUpdate:activated"?: ((value: unknown) => any) | undefined;
4021
4021
  "onClick:activate"?: ((value: {
@@ -4138,8 +4138,8 @@ declare const VList: {
4138
4138
  activeColor?: string | undefined;
4139
4139
  activeClass?: string | undefined;
4140
4140
  activeStrategy?: ActiveStrategyProp | undefined;
4141
- collapseIcon?: string | undefined;
4142
- expandIcon?: string | undefined;
4141
+ collapseIcon?: IconValue | undefined;
4142
+ expandIcon?: IconValue | undefined;
4143
4143
  } & {
4144
4144
  "onUpdate:activated"?: ((value: unknown) => any) | undefined;
4145
4145
  "onClick:activate"?: ((value: {
@@ -4214,8 +4214,8 @@ declare const VList: {
4214
4214
  activeColor?: string | undefined;
4215
4215
  activeClass?: string | undefined;
4216
4216
  activeStrategy?: ActiveStrategyProp | undefined;
4217
- collapseIcon?: string | undefined;
4218
- expandIcon?: string | undefined;
4217
+ collapseIcon?: IconValue | undefined;
4218
+ expandIcon?: IconValue | undefined;
4219
4219
  } & {
4220
4220
  "onUpdate:activated"?: ((value: unknown) => any) | undefined;
4221
4221
  "onClick:activate"?: ((value: {
@@ -4404,8 +4404,8 @@ declare const VList: {
4404
4404
  activeClass: StringConstructor;
4405
4405
  bgColor: StringConstructor;
4406
4406
  disabled: BooleanConstructor;
4407
- expandIcon: StringConstructor;
4408
- collapseIcon: StringConstructor;
4407
+ expandIcon: PropType<IconValue>;
4408
+ collapseIcon: PropType<IconValue>;
4409
4409
  lines: {
4410
4410
  type: PropType<"one" | "two" | "three" | false>;
4411
4411
  default: string;
@@ -4513,8 +4513,8 @@ declare const VList: {
4513
4513
  activeClass: StringConstructor;
4514
4514
  bgColor: StringConstructor;
4515
4515
  disabled: BooleanConstructor;
4516
- expandIcon: StringConstructor;
4517
- collapseIcon: StringConstructor;
4516
+ expandIcon: PropType<IconValue>;
4517
+ collapseIcon: PropType<IconValue>;
4518
4518
  lines: {
4519
4519
  type: PropType<"one" | "two" | "three" | false>;
4520
4520
  default: string;
@@ -7368,8 +7368,8 @@ declare const VAutocomplete: {
7368
7368
  activeColor?: string | undefined;
7369
7369
  activeClass?: string | undefined;
7370
7370
  activeStrategy?: ActiveStrategyProp | undefined;
7371
- collapseIcon?: string | undefined;
7372
- expandIcon?: string | undefined;
7371
+ collapseIcon?: IconValue | undefined;
7372
+ expandIcon?: IconValue | undefined;
7373
7373
  "onUpdate:activated"?: ((value: unknown) => any) | undefined;
7374
7374
  "onClick:activate"?: ((value: {
7375
7375
  id: unknown;
@@ -7825,8 +7825,8 @@ declare const VAutocomplete: {
7825
7825
  activeColor?: string | undefined;
7826
7826
  activeClass?: string | undefined;
7827
7827
  activeStrategy?: ActiveStrategyProp | undefined;
7828
- collapseIcon?: string | undefined;
7829
- expandIcon?: string | undefined;
7828
+ collapseIcon?: IconValue | undefined;
7829
+ expandIcon?: IconValue | undefined;
7830
7830
  "onUpdate:activated"?: ((value: unknown) => any) | undefined;
7831
7831
  "onClick:activate"?: ((value: {
7832
7832
  id: unknown;
@@ -8242,8 +8242,8 @@ declare const VAutocomplete: {
8242
8242
  activeColor?: string | undefined;
8243
8243
  activeClass?: string | undefined;
8244
8244
  activeStrategy?: ActiveStrategyProp | undefined;
8245
- collapseIcon?: string | undefined;
8246
- expandIcon?: string | undefined;
8245
+ collapseIcon?: IconValue | undefined;
8246
+ expandIcon?: IconValue | undefined;
8247
8247
  "onUpdate:activated"?: ((value: unknown) => any) | undefined;
8248
8248
  "onClick:activate"?: ((value: {
8249
8249
  id: unknown;
@@ -15856,7 +15856,7 @@ declare const VChip: {
15856
15856
  closable: boolean;
15857
15857
  closeIcon: IconValue;
15858
15858
  closeLabel: string;
15859
- filterIcon: string;
15859
+ filterIcon: IconValue;
15860
15860
  pill: boolean;
15861
15861
  } & {
15862
15862
  link?: boolean | undefined;
@@ -15872,6 +15872,7 @@ declare const VChip: {
15872
15872
  href?: string | undefined;
15873
15873
  elevation?: string | number | undefined;
15874
15874
  rounded?: string | number | boolean | undefined;
15875
+ baseColor?: string | undefined;
15875
15876
  selectedClass?: string | undefined;
15876
15877
  prependIcon?: IconValue | undefined;
15877
15878
  appendIcon?: IconValue | undefined;
@@ -15966,7 +15967,7 @@ declare const VChip: {
15966
15967
  closable: boolean;
15967
15968
  closeIcon: IconValue;
15968
15969
  closeLabel: string;
15969
- filterIcon: string;
15970
+ filterIcon: IconValue;
15970
15971
  pill: boolean;
15971
15972
  }, true, {}, vue.SlotsType<Partial<{
15972
15973
  default: (arg: {
@@ -16009,7 +16010,7 @@ declare const VChip: {
16009
16010
  closable: boolean;
16010
16011
  closeIcon: IconValue;
16011
16012
  closeLabel: string;
16012
- filterIcon: string;
16013
+ filterIcon: IconValue;
16013
16014
  pill: boolean;
16014
16015
  } & {
16015
16016
  link?: boolean | undefined;
@@ -16025,6 +16026,7 @@ declare const VChip: {
16025
16026
  href?: string | undefined;
16026
16027
  elevation?: string | number | undefined;
16027
16028
  rounded?: string | number | boolean | undefined;
16029
+ baseColor?: string | undefined;
16028
16030
  selectedClass?: string | undefined;
16029
16031
  prependIcon?: IconValue | undefined;
16030
16032
  appendIcon?: IconValue | undefined;
@@ -16112,7 +16114,7 @@ declare const VChip: {
16112
16114
  closable: boolean;
16113
16115
  closeIcon: IconValue;
16114
16116
  closeLabel: string;
16115
- filterIcon: string;
16117
+ filterIcon: IconValue;
16116
16118
  pill: boolean;
16117
16119
  }>;
16118
16120
  __isFragment?: never;
@@ -16138,7 +16140,7 @@ declare const VChip: {
16138
16140
  closable: boolean;
16139
16141
  closeIcon: IconValue;
16140
16142
  closeLabel: string;
16141
- filterIcon: string;
16143
+ filterIcon: IconValue;
16142
16144
  pill: boolean;
16143
16145
  } & {
16144
16146
  link?: boolean | undefined;
@@ -16154,6 +16156,7 @@ declare const VChip: {
16154
16156
  href?: string | undefined;
16155
16157
  elevation?: string | number | undefined;
16156
16158
  rounded?: string | number | boolean | undefined;
16159
+ baseColor?: string | undefined;
16157
16160
  selectedClass?: string | undefined;
16158
16161
  prependIcon?: IconValue | undefined;
16159
16162
  appendIcon?: IconValue | undefined;
@@ -16248,7 +16251,7 @@ declare const VChip: {
16248
16251
  closable: boolean;
16249
16252
  closeIcon: IconValue;
16250
16253
  closeLabel: string;
16251
- filterIcon: string;
16254
+ filterIcon: IconValue;
16252
16255
  pill: boolean;
16253
16256
  }, {}, string, vue.SlotsType<Partial<{
16254
16257
  default: (arg: {
@@ -16316,6 +16319,7 @@ declare const VChip: {
16316
16319
  activeClass: StringConstructor;
16317
16320
  appendAvatar: StringConstructor;
16318
16321
  appendIcon: PropType<IconValue>;
16322
+ baseColor: StringConstructor;
16319
16323
  closable: BooleanConstructor;
16320
16324
  closeIcon: {
16321
16325
  type: PropType<IconValue>;
@@ -16328,7 +16332,7 @@ declare const VChip: {
16328
16332
  draggable: BooleanConstructor;
16329
16333
  filter: BooleanConstructor;
16330
16334
  filterIcon: {
16331
- type: StringConstructor;
16335
+ type: PropType<IconValue>;
16332
16336
  default: string;
16333
16337
  };
16334
16338
  label: BooleanConstructor;
@@ -16402,6 +16406,7 @@ declare const VChip: {
16402
16406
  activeClass: StringConstructor;
16403
16407
  appendAvatar: StringConstructor;
16404
16408
  appendIcon: PropType<IconValue>;
16409
+ baseColor: StringConstructor;
16405
16410
  closable: BooleanConstructor;
16406
16411
  closeIcon: {
16407
16412
  type: PropType<IconValue>;
@@ -16414,7 +16419,7 @@ declare const VChip: {
16414
16419
  draggable: BooleanConstructor;
16415
16420
  filter: BooleanConstructor;
16416
16421
  filterIcon: {
16417
- type: StringConstructor;
16422
+ type: PropType<IconValue>;
16418
16423
  default: string;
16419
16424
  };
16420
16425
  label: BooleanConstructor;
@@ -16506,6 +16511,7 @@ declare const VChipGroup: {
16506
16511
  theme?: string | undefined;
16507
16512
  mandatory?: boolean | "force" | undefined;
16508
16513
  mobileBreakpoint?: number | DisplayBreakpoint | undefined;
16514
+ baseColor?: string | undefined;
16509
16515
  showArrows?: string | boolean | undefined;
16510
16516
  } & {}, {}, unknown, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, Omit<{
16511
16517
  'update:modelValue': (value: any) => true;
@@ -16563,6 +16569,7 @@ declare const VChipGroup: {
16563
16569
  theme?: string | undefined;
16564
16570
  mandatory?: boolean | "force" | undefined;
16565
16571
  mobileBreakpoint?: number | DisplayBreakpoint | undefined;
16572
+ baseColor?: string | undefined;
16566
16573
  showArrows?: string | boolean | undefined;
16567
16574
  } & {}, {}, {}, {}, {}, {
16568
16575
  symbol: any;
@@ -16607,6 +16614,7 @@ declare const VChipGroup: {
16607
16614
  theme?: string | undefined;
16608
16615
  mandatory?: boolean | "force" | undefined;
16609
16616
  mobileBreakpoint?: number | DisplayBreakpoint | undefined;
16617
+ baseColor?: string | undefined;
16610
16618
  showArrows?: string | boolean | undefined;
16611
16619
  } & {}, {}, unknown, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, Omit<{
16612
16620
  'update:modelValue': (value: any) => true;
@@ -16698,6 +16706,7 @@ declare const VChipGroup: {
16698
16706
  type: (StringConstructor | BooleanConstructor)[];
16699
16707
  validator: (v: any) => boolean;
16700
16708
  };
16709
+ baseColor: StringConstructor;
16701
16710
  column: BooleanConstructor;
16702
16711
  filter: BooleanConstructor;
16703
16712
  valueComparator: {
@@ -16765,6 +16774,7 @@ declare const VChipGroup: {
16765
16774
  type: (StringConstructor | BooleanConstructor)[];
16766
16775
  validator: (v: any) => boolean;
16767
16776
  };
16777
+ baseColor: StringConstructor;
16768
16778
  column: BooleanConstructor;
16769
16779
  filter: BooleanConstructor;
16770
16780
  valueComparator: {
@@ -17443,8 +17453,8 @@ declare const VCombobox: {
17443
17453
  activeColor?: string | undefined;
17444
17454
  activeClass?: string | undefined;
17445
17455
  activeStrategy?: ActiveStrategyProp | undefined;
17446
- collapseIcon?: string | undefined;
17447
- expandIcon?: string | undefined;
17456
+ collapseIcon?: IconValue | undefined;
17457
+ expandIcon?: IconValue | undefined;
17448
17458
  "onUpdate:activated"?: ((value: unknown) => any) | undefined;
17449
17459
  "onClick:activate"?: ((value: {
17450
17460
  id: unknown;
@@ -17900,8 +17910,8 @@ declare const VCombobox: {
17900
17910
  activeColor?: string | undefined;
17901
17911
  activeClass?: string | undefined;
17902
17912
  activeStrategy?: ActiveStrategyProp | undefined;
17903
- collapseIcon?: string | undefined;
17904
- expandIcon?: string | undefined;
17913
+ collapseIcon?: IconValue | undefined;
17914
+ expandIcon?: IconValue | undefined;
17905
17915
  "onUpdate:activated"?: ((value: unknown) => any) | undefined;
17906
17916
  "onClick:activate"?: ((value: {
17907
17917
  id: unknown;
@@ -18317,8 +18327,8 @@ declare const VCombobox: {
18317
18327
  activeColor?: string | undefined;
18318
18328
  activeClass?: string | undefined;
18319
18329
  activeStrategy?: ActiveStrategyProp | undefined;
18320
- collapseIcon?: string | undefined;
18321
- expandIcon?: string | undefined;
18330
+ collapseIcon?: IconValue | undefined;
18331
+ expandIcon?: IconValue | undefined;
18322
18332
  "onUpdate:activated"?: ((value: unknown) => any) | undefined;
18323
18333
  "onClick:activate"?: ((value: {
18324
18334
  id: unknown;
@@ -19084,7 +19094,7 @@ type VConfirmEditSlots<T> = {
19084
19094
  save: () => void;
19085
19095
  cancel: () => void;
19086
19096
  isPristine: boolean;
19087
- get actions(): VNode;
19097
+ get actions(): (props?: {}) => VNode;
19088
19098
  };
19089
19099
  };
19090
19100
  declare const VConfirmEdit: {
@@ -19112,9 +19122,7 @@ declare const VConfirmEdit: {
19112
19122
  save: () => void;
19113
19123
  cancel: () => void;
19114
19124
  isPristine: boolean;
19115
- readonly actions: VNode<vue.RendererNode, vue.RendererElement, {
19116
- [key: string]: any;
19117
- }>;
19125
+ readonly actions: (props?: {}) => VNode;
19118
19126
  }) => VNode[];
19119
19127
  }>>, vue.GlobalComponents, vue.GlobalDirectives, string, {}, any, vue.ComponentProvideOptions, {
19120
19128
  P: {};
@@ -19165,9 +19173,7 @@ declare const VConfirmEdit: {
19165
19173
  save: () => void;
19166
19174
  cancel: () => void;
19167
19175
  isPristine: boolean;
19168
- readonly actions: VNode<vue.RendererNode, vue.RendererElement, {
19169
- [key: string]: any;
19170
- }>;
19176
+ readonly actions: (props?: {}) => VNode;
19171
19177
  }) => VNode[];
19172
19178
  }>>, vue.GlobalComponents, vue.GlobalDirectives, string, vue.ComponentProvideOptions> & vue.VNodeProps & vue.AllowedComponentProps & vue.ComponentCustomProps & (new <T>(props: {
19173
19179
  modelValue?: T;
@@ -23988,7 +23994,7 @@ declare const VDatePickerHeader: {
23988
23994
  transition?: string | undefined;
23989
23995
  header?: string | undefined;
23990
23996
  onClick?: ((args_0: MouseEvent) => void) | undefined;
23991
- appendIcon?: string | undefined;
23997
+ appendIcon?: IconValue | undefined;
23992
23998
  } & {
23993
23999
  $children?: vue.VNodeChild | (() => vue.VNodeChild) | {
23994
24000
  prepend?: (() => vue.VNodeChild) | undefined;
@@ -24026,7 +24032,7 @@ declare const VDatePickerHeader: {
24026
24032
  transition?: string | undefined;
24027
24033
  header?: string | undefined;
24028
24034
  onClick?: ((args_0: MouseEvent) => void) | undefined;
24029
- appendIcon?: string | undefined;
24035
+ appendIcon?: IconValue | undefined;
24030
24036
  } & {
24031
24037
  $children?: vue.VNodeChild | (() => vue.VNodeChild) | {
24032
24038
  prepend?: (() => vue.VNodeChild) | undefined;
@@ -24054,7 +24060,7 @@ declare const VDatePickerHeader: {
24054
24060
  transition?: string | undefined;
24055
24061
  header?: string | undefined;
24056
24062
  onClick?: ((args_0: MouseEvent) => void) | undefined;
24057
- appendIcon?: string | undefined;
24063
+ appendIcon?: IconValue | undefined;
24058
24064
  } & {
24059
24065
  $children?: vue.VNodeChild | (() => vue.VNodeChild) | {
24060
24066
  prepend?: (() => vue.VNodeChild) | undefined;
@@ -24081,13 +24087,13 @@ declare const VDatePickerHeader: {
24081
24087
  default: () => vue.VNode[];
24082
24088
  append: () => vue.VNode[];
24083
24089
  }>>, vue.GlobalComponents, vue.GlobalDirectives, string, vue.ComponentProvideOptions> & vue.VNodeProps & vue.AllowedComponentProps & vue.ComponentCustomProps & FilterPropsOptions<{
24084
- appendIcon: StringConstructor;
24090
+ appendIcon: vue.PropType<IconValue>;
24085
24091
  color: StringConstructor;
24086
24092
  header: StringConstructor;
24087
24093
  transition: StringConstructor;
24088
24094
  onClick: vue.PropType<(args_0: MouseEvent) => void>;
24089
24095
  }, vue.ExtractPropTypes<{
24090
- appendIcon: StringConstructor;
24096
+ appendIcon: vue.PropType<IconValue>;
24091
24097
  color: StringConstructor;
24092
24098
  header: StringConstructor;
24093
24099
  transition: StringConstructor;
@@ -38593,8 +38599,8 @@ declare const VSelect: {
38593
38599
  activeColor?: string | undefined;
38594
38600
  activeClass?: string | undefined;
38595
38601
  activeStrategy?: ActiveStrategyProp | undefined;
38596
- collapseIcon?: string | undefined;
38597
- expandIcon?: string | undefined;
38602
+ collapseIcon?: IconValue | undefined;
38603
+ expandIcon?: IconValue | undefined;
38598
38604
  "onUpdate:activated"?: ((value: unknown) => any) | undefined;
38599
38605
  "onClick:activate"?: ((value: {
38600
38606
  id: unknown;
@@ -39040,8 +39046,8 @@ declare const VSelect: {
39040
39046
  activeColor?: string | undefined;
39041
39047
  activeClass?: string | undefined;
39042
39048
  activeStrategy?: ActiveStrategyProp | undefined;
39043
- collapseIcon?: string | undefined;
39044
- expandIcon?: string | undefined;
39049
+ collapseIcon?: IconValue | undefined;
39050
+ expandIcon?: IconValue | undefined;
39045
39051
  "onUpdate:activated"?: ((value: unknown) => any) | undefined;
39046
39052
  "onClick:activate"?: ((value: {
39047
39053
  id: unknown;
@@ -39448,8 +39454,8 @@ declare const VSelect: {
39448
39454
  activeColor?: string | undefined;
39449
39455
  activeClass?: string | undefined;
39450
39456
  activeStrategy?: ActiveStrategyProp | undefined;
39451
- collapseIcon?: string | undefined;
39452
- expandIcon?: string | undefined;
39457
+ collapseIcon?: IconValue | undefined;
39458
+ expandIcon?: IconValue | undefined;
39453
39459
  "onUpdate:activated"?: ((value: unknown) => any) | undefined;
39454
39460
  "onClick:activate"?: ((value: {
39455
39461
  id: unknown;
@@ -44485,15 +44491,15 @@ declare const VStepperItem: {
44485
44491
  ripple: boolean | {
44486
44492
  class: string;
44487
44493
  } | undefined;
44488
- completeIcon: string;
44494
+ completeIcon: IconValue;
44489
44495
  editable: boolean;
44490
- editIcon: string;
44491
- errorIcon: string;
44496
+ editIcon: IconValue;
44497
+ errorIcon: IconValue;
44492
44498
  } & {
44493
44499
  color?: string | undefined;
44494
44500
  value?: any;
44495
44501
  title?: string | undefined;
44496
- icon?: string | undefined;
44502
+ icon?: IconValue | undefined;
44497
44503
  selectedClass?: string | undefined;
44498
44504
  subtitle?: string | undefined;
44499
44505
  } & {
@@ -44530,10 +44536,10 @@ declare const VStepperItem: {
44530
44536
  ripple: boolean | {
44531
44537
  class: string;
44532
44538
  } | undefined;
44533
- completeIcon: string;
44539
+ completeIcon: IconValue;
44534
44540
  editable: boolean;
44535
- editIcon: string;
44536
- errorIcon: string;
44541
+ editIcon: IconValue;
44542
+ errorIcon: IconValue;
44537
44543
  }, true, {}, vue.SlotsType<Partial<{
44538
44544
  default: (arg: StepperItemSlot) => vue.VNode[];
44539
44545
  icon: (arg: StepperItemSlot) => vue.VNode[];
@@ -44554,15 +44560,15 @@ declare const VStepperItem: {
44554
44560
  ripple: boolean | {
44555
44561
  class: string;
44556
44562
  } | undefined;
44557
- completeIcon: string;
44563
+ completeIcon: IconValue;
44558
44564
  editable: boolean;
44559
- editIcon: string;
44560
- errorIcon: string;
44565
+ editIcon: IconValue;
44566
+ errorIcon: IconValue;
44561
44567
  } & {
44562
44568
  color?: string | undefined;
44563
44569
  value?: any;
44564
44570
  title?: string | undefined;
44565
- icon?: string | undefined;
44571
+ icon?: IconValue | undefined;
44566
44572
  selectedClass?: string | undefined;
44567
44573
  subtitle?: string | undefined;
44568
44574
  } & {
@@ -44595,10 +44601,10 @@ declare const VStepperItem: {
44595
44601
  ripple: boolean | {
44596
44602
  class: string;
44597
44603
  } | undefined;
44598
- completeIcon: string;
44604
+ completeIcon: IconValue;
44599
44605
  editable: boolean;
44600
- editIcon: string;
44601
- errorIcon: string;
44606
+ editIcon: IconValue;
44607
+ errorIcon: IconValue;
44602
44608
  }>;
44603
44609
  __isFragment?: never;
44604
44610
  __isTeleport?: never;
@@ -44611,15 +44617,15 @@ declare const VStepperItem: {
44611
44617
  ripple: boolean | {
44612
44618
  class: string;
44613
44619
  } | undefined;
44614
- completeIcon: string;
44620
+ completeIcon: IconValue;
44615
44621
  editable: boolean;
44616
- editIcon: string;
44617
- errorIcon: string;
44622
+ editIcon: IconValue;
44623
+ errorIcon: IconValue;
44618
44624
  } & {
44619
44625
  color?: string | undefined;
44620
44626
  value?: any;
44621
44627
  title?: string | undefined;
44622
- icon?: string | undefined;
44628
+ icon?: IconValue | undefined;
44623
44629
  selectedClass?: string | undefined;
44624
44630
  subtitle?: string | undefined;
44625
44631
  } & {
@@ -44656,10 +44662,10 @@ declare const VStepperItem: {
44656
44662
  ripple: boolean | {
44657
44663
  class: string;
44658
44664
  } | undefined;
44659
- completeIcon: string;
44665
+ completeIcon: IconValue;
44660
44666
  editable: boolean;
44661
- editIcon: string;
44662
- errorIcon: string;
44667
+ editIcon: IconValue;
44668
+ errorIcon: IconValue;
44663
44669
  }, {}, string, vue.SlotsType<Partial<{
44664
44670
  default: (arg: StepperItemSlot) => vue.VNode[];
44665
44671
  icon: (arg: StepperItemSlot) => vue.VNode[];
@@ -44674,20 +44680,20 @@ declare const VStepperItem: {
44674
44680
  subtitle: StringConstructor;
44675
44681
  complete: BooleanConstructor;
44676
44682
  completeIcon: {
44677
- type: StringConstructor;
44683
+ type: PropType<IconValue>;
44678
44684
  default: string;
44679
44685
  };
44680
44686
  editable: BooleanConstructor;
44681
44687
  editIcon: {
44682
- type: StringConstructor;
44688
+ type: PropType<IconValue>;
44683
44689
  default: string;
44684
44690
  };
44685
44691
  error: BooleanConstructor;
44686
44692
  errorIcon: {
44687
- type: StringConstructor;
44693
+ type: PropType<IconValue>;
44688
44694
  default: string;
44689
44695
  };
44690
- icon: StringConstructor;
44696
+ icon: PropType<IconValue>;
44691
44697
  ripple: {
44692
44698
  type: PropType<RippleDirectiveBinding["value"]>;
44693
44699
  default: boolean;
@@ -44705,20 +44711,20 @@ declare const VStepperItem: {
44705
44711
  subtitle: StringConstructor;
44706
44712
  complete: BooleanConstructor;
44707
44713
  completeIcon: {
44708
- type: StringConstructor;
44714
+ type: PropType<IconValue>;
44709
44715
  default: string;
44710
44716
  };
44711
44717
  editable: BooleanConstructor;
44712
44718
  editIcon: {
44713
- type: StringConstructor;
44719
+ type: PropType<IconValue>;
44714
44720
  default: string;
44715
44721
  };
44716
44722
  error: BooleanConstructor;
44717
44723
  errorIcon: {
44718
- type: StringConstructor;
44724
+ type: PropType<IconValue>;
44719
44725
  default: string;
44720
44726
  };
44721
- icon: StringConstructor;
44727
+ icon: PropType<IconValue>;
44722
44728
  ripple: {
44723
44729
  type: PropType<RippleDirectiveBinding["value"]>;
44724
44730
  default: boolean;
@@ -44773,9 +44779,9 @@ declare const VStepper: {
44773
44779
  modelValue?: any;
44774
44780
  rounded?: string | number | boolean | undefined;
44775
44781
  bgColor?: string | undefined;
44776
- completeIcon?: string | undefined;
44777
- editIcon?: string | undefined;
44778
- errorIcon?: string | undefined;
44782
+ completeIcon?: IconValue | undefined;
44783
+ editIcon?: IconValue | undefined;
44784
+ errorIcon?: IconValue | undefined;
44779
44785
  } & {
44780
44786
  $children?: vue.VNodeChild | {
44781
44787
  [x: `header-item.${string}`]: ((arg: StepperItemSlot) => vue.VNodeChild) | undefined;
@@ -44904,9 +44910,9 @@ declare const VStepper: {
44904
44910
  modelValue?: any;
44905
44911
  rounded?: string | number | boolean | undefined;
44906
44912
  bgColor?: string | undefined;
44907
- completeIcon?: string | undefined;
44908
- editIcon?: string | undefined;
44909
- errorIcon?: string | undefined;
44913
+ completeIcon?: IconValue | undefined;
44914
+ editIcon?: IconValue | undefined;
44915
+ errorIcon?: IconValue | undefined;
44910
44916
  } & {
44911
44917
  $children?: vue.VNodeChild | {
44912
44918
  [x: `header-item.${string}`]: ((arg: StepperItemSlot) => vue.VNodeChild) | undefined;
@@ -45017,9 +45023,9 @@ declare const VStepper: {
45017
45023
  modelValue?: any;
45018
45024
  rounded?: string | number | boolean | undefined;
45019
45025
  bgColor?: string | undefined;
45020
- completeIcon?: string | undefined;
45021
- editIcon?: string | undefined;
45022
- errorIcon?: string | undefined;
45026
+ completeIcon?: IconValue | undefined;
45027
+ editIcon?: IconValue | undefined;
45028
+ errorIcon?: IconValue | undefined;
45023
45029
  } & {
45024
45030
  $children?: vue.VNodeChild | {
45025
45031
  [x: `header-item.${string}`]: ((arg: StepperItemSlot) => vue.VNodeChild) | undefined;
@@ -45166,10 +45172,10 @@ declare const VStepper: {
45166
45172
  mobileBreakpoint: PropType<number | DisplayBreakpoint>;
45167
45173
  altLabels: BooleanConstructor;
45168
45174
  bgColor: StringConstructor;
45169
- completeIcon: StringConstructor;
45170
- editIcon: StringConstructor;
45175
+ completeIcon: PropType<IconValue>;
45176
+ editIcon: PropType<IconValue>;
45171
45177
  editable: BooleanConstructor;
45172
- errorIcon: StringConstructor;
45178
+ errorIcon: PropType<IconValue>;
45173
45179
  hideActions: BooleanConstructor;
45174
45180
  items: {
45175
45181
  type: PropType<readonly StepperItem[]>;
@@ -45248,10 +45254,10 @@ declare const VStepper: {
45248
45254
  mobileBreakpoint: PropType<number | DisplayBreakpoint>;
45249
45255
  altLabels: BooleanConstructor;
45250
45256
  bgColor: StringConstructor;
45251
- completeIcon: StringConstructor;
45252
- editIcon: StringConstructor;
45257
+ completeIcon: PropType<IconValue>;
45258
+ editIcon: PropType<IconValue>;
45253
45259
  editable: BooleanConstructor;
45254
- errorIcon: StringConstructor;
45260
+ errorIcon: PropType<IconValue>;
45255
45261
  hideActions: BooleanConstructor;
45256
45262
  items: {
45257
45263
  type: PropType<readonly StepperItem[]>;
@@ -123,7 +123,12 @@ export function createForm(props) {
123
123
  resetValidation
124
124
  };
125
125
  }
126
- export function useForm() {
127
- return inject(FormKey, null);
126
+ export function useForm(props) {
127
+ const form = inject(FormKey, null);
128
+ return {
129
+ ...form,
130
+ isReadonly: computed(() => !!(props?.readonly ?? form?.isReadonly.value)),
131
+ isDisabled: computed(() => !!(props?.disabled ?? form?.isDisabled.value))
132
+ };
128
133
  }
129
134
  //# sourceMappingURL=form.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"form.mjs","names":["useProxiedModel","computed","inject","markRaw","provide","ref","shallowRef","toRef","watch","consoleWarn","propsFactory","FormKey","Symbol","for","makeFormProps","disabled","Boolean","fastFail","readonly","modelValue","type","default","validateOn","String","createForm","props","model","isDisabled","isReadonly","isValidating","items","errors","validate","results","valid","value","item","itemErrorMessages","length","push","id","errorMessages","reset","forEach","resetValidation","invalid","isValid","deep","flush","register","_ref","vm","some","unregister","filter","update","found","find","useForm"],"sources":["../../src/composables/form.ts"],"sourcesContent":["// Composables\nimport { useProxiedModel } from '@/composables/proxiedModel'\n\n// Utilities\nimport { computed, inject, markRaw, provide, ref, shallowRef, toRef, watch } from 'vue'\nimport { consoleWarn, propsFactory } from '@/util'\n\n// Types\nimport type { ComponentInternalInstance, ComputedRef, InjectionKey, PropType, Raw, Ref } from 'vue'\nimport type { ValidationProps } from './validation'\nimport type { EventProp } from '@/util'\n\nexport interface FormProvide {\n register: (item: {\n id: number | string\n vm: ComponentInternalInstance\n validate: () => Promise<string[]>\n reset: () => Promise<void>\n resetValidation: () => Promise<void>\n }) => void\n unregister: (id: number | string) => void\n update: (id: number | string, isValid: boolean | null, errorMessages: string[]) => void\n items: Ref<FormField[]>\n isDisabled: ComputedRef<boolean>\n isReadonly: ComputedRef<boolean>\n isValidating: Ref<boolean>\n isValid: Ref<boolean | null>\n validateOn: Ref<FormProps['validateOn']>\n}\n\nexport interface FormField {\n id: number | string\n validate: () => Promise<string[]>\n reset: () => Promise<void>\n resetValidation: () => Promise<void>\n vm: Raw<ComponentInternalInstance>\n isValid: boolean | null\n errorMessages: string[]\n}\n\nexport interface FieldValidationResult {\n id: number | string\n errorMessages: string[]\n}\n\nexport interface FormValidationResult {\n valid: boolean\n errors: FieldValidationResult[]\n}\n\nexport interface SubmitEventPromise extends SubmitEvent, Promise<FormValidationResult> {}\n\nexport const FormKey: InjectionKey<FormProvide> = Symbol.for('vuetify:form')\n\nexport interface FormProps {\n disabled: boolean\n fastFail: boolean\n readonly: boolean\n modelValue: boolean | null\n 'onUpdate:modelValue': EventProp<[boolean | null]> | undefined\n validateOn: ValidationProps['validateOn']\n}\n\nexport const makeFormProps = propsFactory({\n disabled: Boolean,\n fastFail: Boolean,\n readonly: Boolean,\n modelValue: {\n type: Boolean as PropType<boolean | null>,\n default: null,\n },\n validateOn: {\n type: String as PropType<FormProps['validateOn']>,\n default: 'input',\n },\n}, 'form')\n\nexport function createForm (props: FormProps) {\n const model = useProxiedModel(props, 'modelValue')\n\n const isDisabled = computed(() => props.disabled)\n const isReadonly = computed(() => props.readonly)\n const isValidating = shallowRef(false)\n const items = ref<FormField[]>([])\n const errors = ref<FieldValidationResult[]>([])\n\n async function validate () {\n const results = []\n let valid = true\n\n errors.value = []\n isValidating.value = true\n\n for (const item of items.value) {\n const itemErrorMessages = await item.validate()\n\n if (itemErrorMessages.length > 0) {\n valid = false\n\n results.push({\n id: item.id,\n errorMessages: itemErrorMessages,\n })\n }\n\n if (!valid && props.fastFail) break\n }\n\n errors.value = results\n isValidating.value = false\n\n return { valid, errors: errors.value }\n }\n\n function reset () {\n items.value.forEach(item => item.reset())\n }\n\n function resetValidation () {\n items.value.forEach(item => item.resetValidation())\n }\n\n watch(items, () => {\n let valid = 0\n let invalid = 0\n const results = []\n\n for (const item of items.value) {\n if (item.isValid === false) {\n invalid++\n results.push({\n id: item.id,\n errorMessages: item.errorMessages,\n })\n } else if (item.isValid === true) valid++\n }\n\n errors.value = results\n model.value =\n invalid > 0 ? false\n : valid === items.value.length ? true\n : null\n }, { deep: true, flush: 'post' })\n\n provide(FormKey, {\n register: ({ id, vm, validate, reset, resetValidation }) => {\n if (items.value.some(item => item.id === id)) {\n consoleWarn(`Duplicate input name \"${id}\"`)\n }\n\n items.value.push({\n id,\n validate,\n reset,\n resetValidation,\n vm: markRaw(vm),\n isValid: null,\n errorMessages: [],\n })\n },\n unregister: id => {\n items.value = items.value.filter(item => {\n return item.id !== id\n })\n },\n update: (id, isValid, errorMessages) => {\n const found = items.value.find(item => item.id === id)\n\n if (!found) return\n\n found.isValid = isValid\n found.errorMessages = errorMessages\n },\n isDisabled,\n isReadonly,\n isValidating,\n isValid: model,\n items,\n validateOn: toRef(props, 'validateOn'),\n })\n\n return {\n errors,\n isDisabled,\n isReadonly,\n isValidating,\n isValid: model,\n items,\n validate,\n reset,\n resetValidation,\n }\n}\n\nexport function useForm () {\n return inject(FormKey, null)\n}\n"],"mappings":"AAAA;AAAA,SACSA,eAAe,8BAExB;AACA,SAASC,QAAQ,EAAEC,MAAM,EAAEC,OAAO,EAAEC,OAAO,EAAEC,GAAG,EAAEC,UAAU,EAAEC,KAAK,EAAEC,KAAK,QAAQ,KAAK;AAAA,SAC9EC,WAAW,EAAEC,YAA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AM;IACNJ,UAAU;IACVC,UAAU;IACVC,YAAY;IACZiB,OAAO,EAAEpB,KAAK;IACdI,KAAK;IACLE,QAAQ;IACRU,KAAK;IACLE;EACF,CAAC;AACH;AAEA,OAAO,SAASc,OAAOA,CAAA,EAAI;EACzB,OAAOxD,MAAM,CAACS,OAAO,EAAE,IAAI,CAAC;AAC9B","ignoreList":[]}
1
+ {"version":3,"file":"form.mjs","names":["useProxiedModel","computed","inject","markRaw","provide","ref","shallowRef","toRef","watch","consoleWarn","propsFactory","FormKey","Symbol","for","makeFormProps","disabled","Boolean","fastFail","readonly","modelValue","type","default","validateOn","String","createForm","props","model","isDisabled","isReadonly","isValidating","items","errors","validate","results","valid","value","item","itemErrorMessages","length","push","id","errorMessages","reset","forEach","resetValidation","invalid","isValid","deep","flush","register","_ref","vm","some","unregister","filter","update","found","find","useForm","form"],"sources":["../../src/composables/form.ts"],"sourcesContent":["// Composables\nimport { useProxiedModel } from '@/composables/proxiedModel'\n\n// Utilities\nimport { computed, inject, markRaw, provide, ref, shallowRef, toRef, watch } from 'vue'\nimport { consoleWarn, propsFactory } from '@/util'\n\n// Types\nimport type { ComponentInternalInstance, ComputedRef, InjectionKey, PropType, Raw, Ref } from 'vue'\nimport type { ValidationProps } from './validation'\nimport type { EventProp } from '@/util'\n\nexport interface FormProvide {\n register: (item: {\n id: number | string\n vm: ComponentInternalInstance\n validate: () => Promise<string[]>\n reset: () => Promise<void>\n resetValidation: () => Promise<void>\n }) => void\n unregister: (id: number | string) => void\n update: (id: number | string, isValid: boolean | null, errorMessages: string[]) => void\n items: Ref<FormField[]>\n isDisabled: ComputedRef<boolean>\n isReadonly: ComputedRef<boolean>\n isValidating: Ref<boolean>\n isValid: Ref<boolean | null>\n validateOn: Ref<FormProps['validateOn']>\n}\n\nexport interface FormField {\n id: number | string\n validate: () => Promise<string[]>\n reset: () => Promise<void>\n resetValidation: () => Promise<void>\n vm: Raw<ComponentInternalInstance>\n isValid: boolean | null\n errorMessages: string[]\n}\n\nexport interface FieldValidationResult {\n id: number | string\n errorMessages: string[]\n}\n\nexport interface FormValidationResult {\n valid: boolean\n errors: FieldValidationResult[]\n}\n\nexport interface SubmitEventPromise extends SubmitEvent, Promise<FormValidationResult> {}\n\nexport const FormKey: InjectionKey<FormProvide> = Symbol.for('vuetify:form')\n\nexport interface FormProps {\n disabled: boolean\n fastFail: boolean\n readonly: boolean\n modelValue: boolean | null\n 'onUpdate:modelValue': EventProp<[boolean | null]> | undefined\n validateOn: ValidationProps['validateOn']\n}\n\nexport const makeFormProps = propsFactory({\n disabled: Boolean,\n fastFail: Boolean,\n readonly: Boolean,\n modelValue: {\n type: Boolean as PropType<boolean | null>,\n default: null,\n },\n validateOn: {\n type: String as PropType<FormProps['validateOn']>,\n default: 'input',\n },\n}, 'form')\n\nexport function createForm (props: FormProps) {\n const model = useProxiedModel(props, 'modelValue')\n\n const isDisabled = computed(() => props.disabled)\n const isReadonly = computed(() => props.readonly)\n const isValidating = shallowRef(false)\n const items = ref<FormField[]>([])\n const errors = ref<FieldValidationResult[]>([])\n\n async function validate () {\n const results = []\n let valid = true\n\n errors.value = []\n isValidating.value = true\n\n for (const item of items.value) {\n const itemErrorMessages = await item.validate()\n\n if (itemErrorMessages.length > 0) {\n valid = false\n\n results.push({\n id: item.id,\n errorMessages: itemErrorMessages,\n })\n }\n\n if (!valid && props.fastFail) break\n }\n\n errors.value = results\n isValidating.value = false\n\n return { valid, errors: errors.value }\n }\n\n function reset () {\n items.value.forEach(item => item.reset())\n }\n\n function resetValidation () {\n items.value.forEach(item => item.resetValidation())\n }\n\n watch(items, () => {\n let valid = 0\n let invalid = 0\n const results = []\n\n for (const item of items.value) {\n if (item.isValid === false) {\n invalid++\n results.push({\n id: item.id,\n errorMessages: item.errorMessages,\n })\n } else if (item.isValid === true) valid++\n }\n\n errors.value = results\n model.value =\n invalid > 0 ? false\n : valid === items.value.length ? true\n : null\n }, { deep: true, flush: 'post' })\n\n provide(FormKey, {\n register: ({ id, vm, validate, reset, resetValidation }) => {\n if (items.value.some(item => item.id === id)) {\n consoleWarn(`Duplicate input name \"${id}\"`)\n }\n\n items.value.push({\n id,\n validate,\n reset,\n resetValidation,\n vm: markRaw(vm),\n isValid: null,\n errorMessages: [],\n })\n },\n unregister: id => {\n items.value = items.value.filter(item => {\n return item.id !== id\n })\n },\n update: (id, isValid, errorMessages) => {\n const found = items.value.find(item => item.id === id)\n\n if (!found) return\n\n found.isValid = isValid\n found.errorMessages = errorMessages\n },\n isDisabled,\n isReadonly,\n isValidating,\n isValid: model,\n items,\n validateOn: toRef(props, 'validateOn'),\n })\n\n return {\n errors,\n isDisabled,\n isReadonly,\n isValidating,\n isValid: model,\n items,\n validate,\n reset,\n resetValidation,\n }\n}\n\nexport function useForm (props?: { readonly: boolean | null, disabled: boolean | null }) {\n const form = inject(FormKey, null)\n return {\n ...form,\n isReadonly: computed(() => !!(props?.readonly ?? form?.isReadonly.value)),\n isDisabled: computed(() => !!(props?.disabled ?? form?.isDisabled.value)),\n }\n}\n"],"mappings":"AAAA;AAAA,SACSA,eAAe,8BAExB;AACA,SAASC,QAAQ,EAAEC,MAAM,EAAEC,OAAO,EAAEC,OAAO,EAAEC,GAAG,EAAEC,UAAU,EAAEC,KAAK,EAAEC,KAAK,QAAQ,KAAK;AAAA,SAC9EC,WAAW,EAAEC,YAAY,6BAElC;AA6CA,OAAO,MAAMC,OAAkC,GAAGC,MAAM,CAACC,GAAG,CAAC,cAAc,CAAC;AAW5E,OAAO,MAAMC,aAAa,GAAGJ,YAAY,CAAC;EACxCK,QAAQ,EAAEC,OAAO;EACjBC,QAAQ,EAAED,OAAO;EACjBE,QAAQ,EAAEF,OAAO;EACjBG,UAAU,EAAE;IACVC,IAAI,EAAEJ,OAAmC;IACzCK,OAAO,EAAE;EACX,CAAC;EACDC,UAAU,EAAE;IACVF,IAAI,EAAEG,MAA2C;IACjDF,OAAO,EAAE;EACX;AACF,CAAC,EAAE,MAAM,CAAC;AAEV,OAAO,SAASG,UAAUA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AU,EAAE1B,QAAQ,CAAC,MAAM,CAAC,EAAEwB,KAAK,EAAEV,QAAQ,IAAI4C,IAAI,EAAEhC,UAAU,CAACQ,KAAK,CAAC;EAC1E,CAAC;AACH","ignoreList":[]}
@@ -159,15 +159,15 @@ export function createTheme(options) {
159
159
  const colors = new Set(Object.values(computedThemes.value).flatMap(theme => Object.keys(theme.colors)));
160
160
  for (const key of colors) {
161
161
  if (/^on-[a-z]/.test(key)) {
162
- createCssClass(fgLines, `.${key}`, [`color: rgb(var(--v-theme-${key}))`]);
162
+ createCssClass(fgLines, `.${key}`, [`color: rgb(var(--v-theme-${key})) !important`]);
163
163
  } else {
164
- createCssClass(bgLines, `.bg-${key}`, [`--v-theme-overlay-multiplier: var(--v-theme-${key}-overlay-multiplier)`, `background-color: rgb(var(--v-theme-${key}))`, `color: rgb(var(--v-theme-on-${key}))`]);
165
- createCssClass(fgLines, `.text-${key}`, [`color: rgb(var(--v-theme-${key}))`]);
164
+ createCssClass(bgLines, `.bg-${key}`, [`--v-theme-overlay-multiplier: var(--v-theme-${key}-overlay-multiplier)`, `background-color: rgb(var(--v-theme-${key})) !important`, `color: rgb(var(--v-theme-on-${key})) !important`]);
165
+ createCssClass(fgLines, `.text-${key}`, [`color: rgb(var(--v-theme-${key})) !important`]);
166
166
  createCssClass(fgLines, `.border-${key}`, [`--v-border-color: var(--v-theme-${key})`]);
167
167
  }
168
168
  }
169
169
  lines.push(...bgLines, ...fgLines);
170
- return '@layer vuetify.theme {\n' + lines.map(v => ` ${v}`).join('') + '\n}';
170
+ return lines.map((str, i) => i === 0 ? str : ` ${str}`).join('');
171
171
  });
172
172
  function getHead() {
173
173
  return {