@vuetify/nightly 3.7.0-beta.1-dev.2024-07-29 → 3.7.0-beta.1-dev.2024-08-01

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 (135) hide show
  1. package/dist/json/attributes.json +17 -5
  2. package/dist/json/importMap-labs.json +12 -12
  3. package/dist/json/importMap.json +112 -112
  4. package/dist/json/tags.json +3 -0
  5. package/dist/json/web-types.json +44 -14
  6. package/dist/vuetify-labs.css +4400 -3677
  7. package/dist/vuetify-labs.d.ts +219 -117
  8. package/dist/vuetify-labs.esm.js +125 -77
  9. package/dist/vuetify-labs.esm.js.map +1 -1
  10. package/dist/vuetify-labs.js +125 -77
  11. package/dist/vuetify-labs.min.css +2 -2
  12. package/dist/vuetify.css +3534 -2811
  13. package/dist/vuetify.d.ts +230 -146
  14. package/dist/vuetify.esm.js +62 -39
  15. package/dist/vuetify.esm.js.map +1 -1
  16. package/dist/vuetify.js +62 -39
  17. package/dist/vuetify.js.map +1 -1
  18. package/dist/vuetify.min.css +2 -2
  19. package/dist/vuetify.min.js +52 -51
  20. package/dist/vuetify.min.js.map +1 -1
  21. package/lib/components/VAlert/VAlert.css +5 -1
  22. package/lib/components/VAutocomplete/VAutocomplete.css +4 -0
  23. package/lib/components/VAutocomplete/index.d.mts +42 -24
  24. package/lib/components/VAvatar/VAvatar.css +8 -4
  25. package/lib/components/VAvatar/VAvatar.mjs +1 -1
  26. package/lib/components/VAvatar/VAvatar.mjs.map +1 -1
  27. package/lib/components/VBadge/VBadge.css +2 -0
  28. package/lib/components/VBanner/VBanner.css +12 -4
  29. package/lib/components/VBottomNavigation/VBottomNavigation.css +11 -3
  30. package/lib/components/VBottomSheet/VBottomSheet.css +2 -0
  31. package/lib/components/VBtn/VBtn.css +16 -9
  32. package/lib/components/VBtn/VBtn.mjs +1 -1
  33. package/lib/components/VBtn/VBtn.mjs.map +1 -1
  34. package/lib/components/VBtn/VBtn.sass +4 -4
  35. package/lib/components/VBtnGroup/VBtnGroup.css +12 -4
  36. package/lib/components/VCard/VCard.css +9 -1
  37. package/lib/components/VCarousel/VCarousel.css +2 -0
  38. package/lib/components/VChip/VChip.css +15 -9
  39. package/lib/components/VChip/VChip.sass +1 -1
  40. package/lib/components/VColorPicker/VColorPicker.css +2 -0
  41. package/lib/components/VColorPicker/VColorPicker.sass +4 -4
  42. package/lib/components/VColorPicker/VColorPickerPreview.sass +4 -4
  43. package/lib/components/VCombobox/VCombobox.css +4 -0
  44. package/lib/components/VCombobox/index.d.mts +42 -24
  45. package/lib/components/VDialog/VDialog.css +5 -0
  46. package/lib/components/VDialog/index.d.mts +3 -3
  47. package/lib/components/VDivider/VDivider.css +2 -0
  48. package/lib/components/VExpansionPanel/VExpansionPanel.css +11 -5
  49. package/lib/components/VExpansionPanel/VExpansionPanel.sass +3 -3
  50. package/lib/components/VField/VField.css +13 -1
  51. package/lib/components/VField/VField.sass +5 -8
  52. package/lib/components/VFooter/VFooter.css +12 -4
  53. package/lib/components/VFooter/VFooter.mjs +20 -14
  54. package/lib/components/VFooter/VFooter.mjs.map +1 -1
  55. package/lib/components/VFooter/index.d.mts +3 -3
  56. package/lib/components/VGrid/VGrid.sass +1 -1
  57. package/lib/components/VGrid/_mixins.sass +4 -4
  58. package/lib/components/VImg/VImg.css +6 -0
  59. package/lib/components/VKbd/VKbd.css +2 -0
  60. package/lib/components/VList/VList.css +12 -4
  61. package/lib/components/VList/VListItem.css +21 -11
  62. package/lib/components/VList/VListItem.mjs +1 -1
  63. package/lib/components/VList/VListItem.mjs.map +1 -1
  64. package/lib/components/VList/VListItem.sass +1 -1
  65. package/lib/components/VMain/VMain.css +2 -0
  66. package/lib/components/VMenu/VMenu.css +6 -0
  67. package/lib/components/VMenu/VMenu.mjs +20 -4
  68. package/lib/components/VMenu/VMenu.mjs.map +1 -1
  69. package/lib/components/VMenu/index.d.mts +27 -12
  70. package/lib/components/VNavigationDrawer/VNavigationDrawer.css +9 -3
  71. package/lib/components/VOtpInput/VOtpInput.css +3 -1
  72. package/lib/components/VOtpInput/VOtpInput.sass +1 -2
  73. package/lib/components/VOverflowBtn/VOverflowBtn.sass +1 -1
  74. package/lib/components/VOverlay/VOverlay.mjs +5 -4
  75. package/lib/components/VOverlay/VOverlay.mjs.map +1 -1
  76. package/lib/components/VOverlay/useActivator.mjs +3 -2
  77. package/lib/components/VOverlay/useActivator.mjs.map +1 -1
  78. package/lib/components/VSelect/VSelect.css +4 -0
  79. package/lib/components/VSelect/index.d.mts +42 -24
  80. package/lib/components/VSelectionControl/VSelectionControl.css +6 -4
  81. package/lib/components/VSelectionControl/VSelectionControl.sass +1 -1
  82. package/lib/components/VSheet/VSheet.css +12 -4
  83. package/lib/components/VSkeletonLoader/VSkeletonLoader.css +6 -4
  84. package/lib/components/VSkeletonLoader/VSkeletonLoader.mjs +9 -8
  85. package/lib/components/VSkeletonLoader/VSkeletonLoader.mjs.map +1 -1
  86. package/lib/components/VSkeletonLoader/VSkeletonLoader.sass +1 -2
  87. package/lib/components/VSlider/VSliderThumb.sass +2 -2
  88. package/lib/components/VSnackbar/VSnackbar.css +2 -0
  89. package/lib/components/VSnackbar/VSnackbar.mjs +4 -4
  90. package/lib/components/VSnackbar/VSnackbar.mjs.map +1 -1
  91. package/lib/components/VSnackbar/index.d.mts +3 -3
  92. package/lib/components/VSpeedDial/index.d.mts +28 -13
  93. package/lib/components/VStepper/VStepper.css +8 -2
  94. package/lib/components/VStepper/VStepper.sass +2 -4
  95. package/lib/components/VStepper/VStepperItem.css +4 -1
  96. package/lib/components/VStepper/VStepperItem.sass +1 -1
  97. package/lib/components/VSwitch/VSwitch.css +2 -0
  98. package/lib/components/VSwitch/VSwitch.sass +10 -10
  99. package/lib/components/VSystemBar/VSystemBar.css +14 -8
  100. package/lib/components/VTable/VTable.css +8 -4
  101. package/lib/components/VTable/VTable.sass +2 -3
  102. package/lib/components/VTimeline/VTimeline.css +2 -0
  103. package/lib/components/VToolbar/VToolbar.css +21 -7
  104. package/lib/components/VToolbar/VToolbar.sass +1 -2
  105. package/lib/components/VTooltip/index.d.mts +3 -3
  106. package/lib/components/VTreeview/VTreeview.sass +9 -9
  107. package/lib/components/index.d.mts +193 -109
  108. package/lib/entry-bundler.mjs +1 -1
  109. package/lib/framework.mjs +1 -1
  110. package/lib/index.d.mts +37 -37
  111. package/lib/labs/VNumberInput/VNumberInput.mjs +60 -36
  112. package/lib/labs/VNumberInput/VNumberInput.mjs.map +1 -1
  113. package/lib/labs/VNumberInput/index.d.mts +17 -8
  114. package/lib/labs/VPicker/VPicker.css +6 -2
  115. package/lib/labs/VPicker/VPicker.sass +2 -3
  116. package/lib/labs/VPullToRefresh/VPullToRefresh.mjs +4 -3
  117. package/lib/labs/VPullToRefresh/VPullToRefresh.mjs.map +1 -1
  118. package/lib/labs/VPullToRefresh/index.d.mts +9 -0
  119. package/lib/labs/VSnackbarQueue/index.d.mts +3 -3
  120. package/lib/labs/components.d.mts +29 -11
  121. package/lib/styles/generic/_colors.scss +9 -3
  122. package/lib/styles/main.css +520 -0
  123. package/lib/styles/tools/_absolute.sass +8 -7
  124. package/lib/styles/tools/_border.sass +4 -3
  125. package/lib/styles/tools/_display.sass +8 -7
  126. package/lib/styles/tools/_elevation.sass +4 -2
  127. package/lib/styles/tools/_index.sass +0 -1
  128. package/lib/styles/tools/_radius.sass +6 -5
  129. package/lib/styles/tools/_rounded.sass +2 -1
  130. package/lib/styles/tools/_theme.sass +3 -2
  131. package/lib/styles/tools/_typography.sass +6 -5
  132. package/lib/styles/tools/_utilities.sass +5 -5
  133. package/lib/styles/utilities/_index.sass +7 -7
  134. package/package.json +1 -1
  135. package/lib/styles/tools/_sheet.sass +0 -14
@@ -16,7 +16,7 @@ export const createVuetify = function () {
16
16
  ...options
17
17
  });
18
18
  };
19
- export const version = "3.7.0-beta.1-dev.2024-07-29";
19
+ export const version = "3.7.0-beta.1-dev.2024-08-01";
20
20
  createVuetify.version = version;
21
21
  export { blueprints, components, directives };
22
22
  export * from "./composables/index.mjs";
package/lib/framework.mjs CHANGED
@@ -97,7 +97,7 @@ export function createVuetify() {
97
97
  goTo
98
98
  };
99
99
  }
100
- export const version = "3.7.0-beta.1-dev.2024-07-29";
100
+ export const version = "3.7.0-beta.1-dev.2024-08-01";
101
101
  createVuetify.version = version;
102
102
 
103
103
  // Vue's inject() can only be used in setup
package/lib/index.d.mts CHANGED
@@ -465,25 +465,25 @@ declare global {
465
465
  }
466
466
  interface _GlobalComponents {
467
467
  VApp: typeof import('vuetify/components')['VApp']
468
- VAppBar: typeof import('vuetify/components')['VAppBar']
469
- VAppBarNavIcon: typeof import('vuetify/components')['VAppBarNavIcon']
470
- VAppBarTitle: typeof import('vuetify/components')['VAppBarTitle']
468
+ VAvatar: typeof import('vuetify/components')['VAvatar']
471
469
  VAlert: typeof import('vuetify/components')['VAlert']
472
470
  VAlertTitle: typeof import('vuetify/components')['VAlertTitle']
473
- VAutocomplete: typeof import('vuetify/components')['VAutocomplete']
474
471
  VBadge: typeof import('vuetify/components')['VBadge']
475
- VAvatar: typeof import('vuetify/components')['VAvatar']
472
+ VAppBar: typeof import('vuetify/components')['VAppBar']
473
+ VAppBarNavIcon: typeof import('vuetify/components')['VAppBarNavIcon']
474
+ VAppBarTitle: typeof import('vuetify/components')['VAppBarTitle']
476
475
  VBanner: typeof import('vuetify/components')['VBanner']
477
476
  VBannerActions: typeof import('vuetify/components')['VBannerActions']
478
477
  VBannerText: typeof import('vuetify/components')['VBannerText']
479
478
  VBreadcrumbs: typeof import('vuetify/components')['VBreadcrumbs']
480
479
  VBreadcrumbsItem: typeof import('vuetify/components')['VBreadcrumbsItem']
481
480
  VBreadcrumbsDivider: typeof import('vuetify/components')['VBreadcrumbsDivider']
482
- VBtn: typeof import('vuetify/components')['VBtn']
483
- VBottomNavigation: typeof import('vuetify/components')['VBottomNavigation']
481
+ VAutocomplete: typeof import('vuetify/components')['VAutocomplete']
484
482
  VBtnGroup: typeof import('vuetify/components')['VBtnGroup']
485
483
  VBottomSheet: typeof import('vuetify/components')['VBottomSheet']
484
+ VBottomNavigation: typeof import('vuetify/components')['VBottomNavigation']
486
485
  VBtnToggle: typeof import('vuetify/components')['VBtnToggle']
486
+ VBtn: typeof import('vuetify/components')['VBtn']
487
487
  VCarousel: typeof import('vuetify/components')['VCarousel']
488
488
  VCarouselItem: typeof import('vuetify/components')['VCarouselItem']
489
489
  VCard: typeof import('vuetify/components')['VCard']
@@ -492,12 +492,11 @@ interface _GlobalComponents {
492
492
  VCardSubtitle: typeof import('vuetify/components')['VCardSubtitle']
493
493
  VCardText: typeof import('vuetify/components')['VCardText']
494
494
  VCardTitle: typeof import('vuetify/components')['VCardTitle']
495
- VChip: typeof import('vuetify/components')['VChip']
496
- VChipGroup: typeof import('vuetify/components')['VChipGroup']
497
495
  VCheckbox: typeof import('vuetify/components')['VCheckbox']
498
496
  VCheckboxBtn: typeof import('vuetify/components')['VCheckboxBtn']
497
+ VChipGroup: typeof import('vuetify/components')['VChipGroup']
498
+ VChip: typeof import('vuetify/components')['VChip']
499
499
  VColorPicker: typeof import('vuetify/components')['VColorPicker']
500
- VCounter: typeof import('vuetify/components')['VCounter']
501
500
  VCode: typeof import('vuetify/components')['VCode']
502
501
  VCombobox: typeof import('vuetify/components')['VCombobox']
503
502
  VDataTable: typeof import('vuetify/components')['VDataTable']
@@ -507,6 +506,7 @@ interface _GlobalComponents {
507
506
  VDataTableRow: typeof import('vuetify/components')['VDataTableRow']
508
507
  VDataTableVirtual: typeof import('vuetify/components')['VDataTableVirtual']
509
508
  VDataTableServer: typeof import('vuetify/components')['VDataTableServer']
509
+ VCounter: typeof import('vuetify/components')['VCounter']
510
510
  VDatePicker: typeof import('vuetify/components')['VDatePicker']
511
511
  VDatePickerControls: typeof import('vuetify/components')['VDatePickerControls']
512
512
  VDatePickerHeader: typeof import('vuetify/components')['VDatePickerHeader']
@@ -514,29 +514,28 @@ interface _GlobalComponents {
514
514
  VDatePickerMonths: typeof import('vuetify/components')['VDatePickerMonths']
515
515
  VDatePickerYears: typeof import('vuetify/components')['VDatePickerYears']
516
516
  VDialog: typeof import('vuetify/components')['VDialog']
517
- VEmptyState: typeof import('vuetify/components')['VEmptyState']
518
517
  VDivider: typeof import('vuetify/components')['VDivider']
519
- VFab: typeof import('vuetify/components')['VFab']
520
- VFileInput: typeof import('vuetify/components')['VFileInput']
521
- VField: typeof import('vuetify/components')['VField']
522
- VFieldLabel: typeof import('vuetify/components')['VFieldLabel']
523
518
  VExpansionPanels: typeof import('vuetify/components')['VExpansionPanels']
524
519
  VExpansionPanel: typeof import('vuetify/components')['VExpansionPanel']
525
520
  VExpansionPanelText: typeof import('vuetify/components')['VExpansionPanelText']
526
521
  VExpansionPanelTitle: typeof import('vuetify/components')['VExpansionPanelTitle']
527
- VFooter: typeof import('vuetify/components')['VFooter']
522
+ VEmptyState: typeof import('vuetify/components')['VEmptyState']
523
+ VField: typeof import('vuetify/components')['VField']
524
+ VFieldLabel: typeof import('vuetify/components')['VFieldLabel']
525
+ VFab: typeof import('vuetify/components')['VFab']
526
+ VFileInput: typeof import('vuetify/components')['VFileInput']
528
527
  VIcon: typeof import('vuetify/components')['VIcon']
529
528
  VComponentIcon: typeof import('vuetify/components')['VComponentIcon']
530
529
  VSvgIcon: typeof import('vuetify/components')['VSvgIcon']
531
530
  VLigatureIcon: typeof import('vuetify/components')['VLigatureIcon']
532
531
  VClassIcon: typeof import('vuetify/components')['VClassIcon']
532
+ VFooter: typeof import('vuetify/components')['VFooter']
533
533
  VInfiniteScroll: typeof import('vuetify/components')['VInfiniteScroll']
534
- VImg: typeof import('vuetify/components')['VImg']
535
534
  VItemGroup: typeof import('vuetify/components')['VItemGroup']
536
535
  VItem: typeof import('vuetify/components')['VItem']
537
- VKbd: typeof import('vuetify/components')['VKbd']
536
+ VImg: typeof import('vuetify/components')['VImg']
538
537
  VInput: typeof import('vuetify/components')['VInput']
539
- VLabel: typeof import('vuetify/components')['VLabel']
538
+ VKbd: typeof import('vuetify/components')['VKbd']
540
539
  VList: typeof import('vuetify/components')['VList']
541
540
  VListGroup: typeof import('vuetify/components')['VListGroup']
542
541
  VListImg: typeof import('vuetify/components')['VListImg']
@@ -546,10 +545,11 @@ interface _GlobalComponents {
546
545
  VListItemSubtitle: typeof import('vuetify/components')['VListItemSubtitle']
547
546
  VListItemTitle: typeof import('vuetify/components')['VListItemTitle']
548
547
  VListSubheader: typeof import('vuetify/components')['VListSubheader']
549
- VMessages: typeof import('vuetify/components')['VMessages']
548
+ VLabel: typeof import('vuetify/components')['VLabel']
549
+ VMain: typeof import('vuetify/components')['VMain']
550
550
  VMenu: typeof import('vuetify/components')['VMenu']
551
+ VMessages: typeof import('vuetify/components')['VMessages']
551
552
  VNavigationDrawer: typeof import('vuetify/components')['VNavigationDrawer']
552
- VMain: typeof import('vuetify/components')['VMain']
553
553
  VOtpInput: typeof import('vuetify/components')['VOtpInput']
554
554
  VOverlay: typeof import('vuetify/components')['VOverlay']
555
555
  VPagination: typeof import('vuetify/components')['VPagination']
@@ -558,20 +558,20 @@ interface _GlobalComponents {
558
558
  VRadioGroup: typeof import('vuetify/components')['VRadioGroup']
559
559
  VRating: typeof import('vuetify/components')['VRating']
560
560
  VSelect: typeof import('vuetify/components')['VSelect']
561
- VSelectionControl: typeof import('vuetify/components')['VSelectionControl']
562
- VSlider: typeof import('vuetify/components')['VSlider']
563
561
  VSelectionControlGroup: typeof import('vuetify/components')['VSelectionControlGroup']
564
- VSnackbar: typeof import('vuetify/components')['VSnackbar']
565
- VSkeletonLoader: typeof import('vuetify/components')['VSkeletonLoader']
562
+ VSelectionControl: typeof import('vuetify/components')['VSelectionControl']
566
563
  VSlideGroup: typeof import('vuetify/components')['VSlideGroup']
567
564
  VSlideGroupItem: typeof import('vuetify/components')['VSlideGroupItem']
565
+ VSheet: typeof import('vuetify/components')['VSheet']
566
+ VSlider: typeof import('vuetify/components')['VSlider']
567
+ VSnackbar: typeof import('vuetify/components')['VSnackbar']
568
568
  VStepper: typeof import('vuetify/components')['VStepper']
569
569
  VStepperActions: typeof import('vuetify/components')['VStepperActions']
570
570
  VStepperHeader: typeof import('vuetify/components')['VStepperHeader']
571
571
  VStepperItem: typeof import('vuetify/components')['VStepperItem']
572
572
  VStepperWindow: typeof import('vuetify/components')['VStepperWindow']
573
573
  VStepperWindowItem: typeof import('vuetify/components')['VStepperWindowItem']
574
- VSheet: typeof import('vuetify/components')['VSheet']
574
+ VSkeletonLoader: typeof import('vuetify/components')['VSkeletonLoader']
575
575
  VSwitch: typeof import('vuetify/components')['VSwitch']
576
576
  VSystemBar: typeof import('vuetify/components')['VSystemBar']
577
577
  VTab: typeof import('vuetify/components')['VTab']
@@ -580,37 +580,37 @@ interface _GlobalComponents {
580
580
  VTabsWindowItem: typeof import('vuetify/components')['VTabsWindowItem']
581
581
  VTable: typeof import('vuetify/components')['VTable']
582
582
  VTextarea: typeof import('vuetify/components')['VTextarea']
583
- VTextField: typeof import('vuetify/components')['VTextField']
584
583
  VTimeline: typeof import('vuetify/components')['VTimeline']
585
584
  VTimelineItem: typeof import('vuetify/components')['VTimelineItem']
586
585
  VToolbar: typeof import('vuetify/components')['VToolbar']
587
586
  VToolbarTitle: typeof import('vuetify/components')['VToolbarTitle']
588
587
  VToolbarItems: typeof import('vuetify/components')['VToolbarItems']
588
+ VTextField: typeof import('vuetify/components')['VTextField']
589
+ VTooltip: typeof import('vuetify/components')['VTooltip']
589
590
  VWindow: typeof import('vuetify/components')['VWindow']
590
591
  VWindowItem: typeof import('vuetify/components')['VWindowItem']
591
- VTooltip: typeof import('vuetify/components')['VTooltip']
592
592
  VConfirmEdit: typeof import('vuetify/components')['VConfirmEdit']
593
593
  VDataIterator: typeof import('vuetify/components')['VDataIterator']
594
594
  VDefaultsProvider: typeof import('vuetify/components')['VDefaultsProvider']
595
595
  VForm: typeof import('vuetify/components')['VForm']
596
- VHover: typeof import('vuetify/components')['VHover']
597
596
  VContainer: typeof import('vuetify/components')['VContainer']
598
597
  VCol: typeof import('vuetify/components')['VCol']
599
598
  VRow: typeof import('vuetify/components')['VRow']
600
599
  VSpacer: typeof import('vuetify/components')['VSpacer']
600
+ VHover: typeof import('vuetify/components')['VHover']
601
+ VLocaleProvider: typeof import('vuetify/components')['VLocaleProvider']
602
+ VLazy: typeof import('vuetify/components')['VLazy']
601
603
  VLayout: typeof import('vuetify/components')['VLayout']
602
604
  VLayoutItem: typeof import('vuetify/components')['VLayoutItem']
603
- VLazy: typeof import('vuetify/components')['VLazy']
604
- VLocaleProvider: typeof import('vuetify/components')['VLocaleProvider']
605
- VParallax: typeof import('vuetify/components')['VParallax']
606
605
  VNoSsr: typeof import('vuetify/components')['VNoSsr']
606
+ VParallax: typeof import('vuetify/components')['VParallax']
607
607
  VRadio: typeof import('vuetify/components')['VRadio']
608
608
  VRangeSlider: typeof import('vuetify/components')['VRangeSlider']
609
609
  VResponsive: typeof import('vuetify/components')['VResponsive']
610
- VSparkline: typeof import('vuetify/components')['VSparkline']
611
610
  VSpeedDial: typeof import('vuetify/components')['VSpeedDial']
612
- VThemeProvider: typeof import('vuetify/components')['VThemeProvider']
611
+ VSparkline: typeof import('vuetify/components')['VSparkline']
613
612
  VValidation: typeof import('vuetify/components')['VValidation']
613
+ VThemeProvider: typeof import('vuetify/components')['VThemeProvider']
614
614
  VVirtualScroll: typeof import('vuetify/components')['VVirtualScroll']
615
615
  VFabTransition: typeof import('vuetify/components')['VFabTransition']
616
616
  VDialogBottomTransition: typeof import('vuetify/components')['VDialogBottomTransition']
@@ -628,8 +628,6 @@ interface _GlobalComponents {
628
628
  VExpandTransition: typeof import('vuetify/components')['VExpandTransition']
629
629
  VExpandXTransition: typeof import('vuetify/components')['VExpandXTransition']
630
630
  VDialogTransition: typeof import('vuetify/components')['VDialogTransition']
631
- VPicker: typeof import('vuetify/labs/components')['VPicker']
632
- VPickerTitle: typeof import('vuetify/labs/components')['VPickerTitle']
633
631
  VCalendar: typeof import('vuetify/labs/components')['VCalendar']
634
632
  VCalendarDay: typeof import('vuetify/labs/components')['VCalendarDay']
635
633
  VCalendarHeader: typeof import('vuetify/labs/components')['VCalendarHeader']
@@ -637,6 +635,8 @@ interface _GlobalComponents {
637
635
  VCalendarIntervalEvent: typeof import('vuetify/labs/components')['VCalendarIntervalEvent']
638
636
  VCalendarMonthDay: typeof import('vuetify/labs/components')['VCalendarMonthDay']
639
637
  VNumberInput: typeof import('vuetify/labs/components')['VNumberInput']
638
+ VPicker: typeof import('vuetify/labs/components')['VPicker']
639
+ VPickerTitle: typeof import('vuetify/labs/components')['VPickerTitle']
640
640
  VTreeview: typeof import('vuetify/labs/components')['VTreeview']
641
641
  VTreeviewItem: typeof import('vuetify/labs/components')['VTreeviewItem']
642
642
  VTreeviewGroup: typeof import('vuetify/labs/components')['VTreeviewGroup']
@@ -647,8 +647,8 @@ interface _GlobalComponents {
647
647
  VTimePickerClock: typeof import('vuetify/labs/components')['VTimePickerClock']
648
648
  VTimePickerControls: typeof import('vuetify/labs/components')['VTimePickerControls']
649
649
  VDateInput: typeof import('vuetify/labs/components')['VDateInput']
650
- VSnackbarQueue: typeof import('vuetify/labs/components')['VSnackbarQueue']
651
650
  VPullToRefresh: typeof import('vuetify/labs/components')['VPullToRefresh']
651
+ VSnackbarQueue: typeof import('vuetify/labs/components')['VSnackbarQueue']
652
652
  }
653
653
  declare module 'vue' {
654
654
  export type JSXComponent<Props = any> = { new (): ComponentPublicInstance<Props> } | FunctionalComponent<Props>
@@ -9,7 +9,7 @@ import { VDivider } from "../../components/VDivider/index.mjs";
9
9
  import { makeVTextFieldProps, VTextField } from "../../components/VTextField/VTextField.mjs"; // Composables
10
10
  import { useForm } from "../../composables/form.mjs";
11
11
  import { useProxiedModel } from "../../composables/proxiedModel.mjs"; // Utilities
12
- import { computed, watchEffect } from 'vue';
12
+ import { computed, nextTick, onMounted, ref } from 'vue';
13
13
  import { clamp, genericComponent, getDecimals, omit, propsFactory, useRender } from "../../util/index.mjs"; // Types
14
14
  const makeVNumberInputProps = propsFactory({
15
15
  controlVariant: {
@@ -18,19 +18,23 @@ const makeVNumberInputProps = propsFactory({
18
18
  },
19
19
  inset: Boolean,
20
20
  hideInput: Boolean,
21
+ modelValue: {
22
+ type: Number,
23
+ default: null
24
+ },
21
25
  min: {
22
26
  type: Number,
23
- default: -Infinity
27
+ default: Number.MIN_SAFE_INTEGER
24
28
  },
25
29
  max: {
26
30
  type: Number,
27
- default: Infinity
31
+ default: Number.MAX_SAFE_INTEGER
28
32
  },
29
33
  step: {
30
34
  type: Number,
31
35
  default: 1
32
36
  },
33
- ...omit(makeVTextFieldProps(), ['appendInnerIcon', 'prependInnerIcon'])
37
+ ...omit(makeVTextFieldProps({}), ['appendInnerIcon', 'modelValue', 'prependInnerIcon'])
34
38
  }, 'VNumberInput');
35
39
  export const VNumberInput = genericComponent()({
36
40
  name: 'VNumberInput',
@@ -42,30 +46,27 @@ export const VNumberInput = genericComponent()({
42
46
  },
43
47
  setup(props, _ref) {
44
48
  let {
45
- attrs,
46
- emit,
47
49
  slots
48
50
  } = _ref;
49
- const model = useProxiedModel(props, 'modelValue');
51
+ const _model = useProxiedModel(props, 'modelValue');
52
+ const model = computed({
53
+ get: () => _model.value,
54
+ set(val) {
55
+ if (typeof val !== 'string') _model.value = val;
56
+ }
57
+ });
58
+ const vTextFieldRef = ref();
50
59
  const stepDecimals = computed(() => getDecimals(props.step));
51
- const modelDecimals = computed(() => model.value != null ? getDecimals(model.value) : 0);
60
+ const modelDecimals = computed(() => typeof model.value === 'number' ? getDecimals(model.value) : 0);
52
61
  const form = useForm();
53
62
  const controlsDisabled = computed(() => props.disabled || props.readonly || form?.isReadonly.value);
54
63
  const canIncrease = computed(() => {
55
64
  if (controlsDisabled.value) return false;
56
- if (model.value == null) return true;
57
- return model.value + props.step <= props.max;
65
+ return (model.value ?? 0) + props.step <= props.max;
58
66
  });
59
67
  const canDecrease = computed(() => {
60
68
  if (controlsDisabled.value) return false;
61
- if (model.value == null) return true;
62
- return model.value - props.step >= props.min;
63
- });
64
- watchEffect(() => {
65
- if (controlsDisabled.value) return;
66
- if (model.value != null && (model.value < props.min || model.value > props.max)) {
67
- model.value = clamp(model.value, props.min, props.max);
68
- }
69
+ return (model.value ?? 0) - props.step >= props.min;
69
70
  });
70
71
  const controlVariant = computed(() => {
71
72
  return props.hideInput ? 'stacked' : props.controlVariant;
@@ -80,11 +81,16 @@ export const VNumberInput = genericComponent()({
80
81
  const decrementSlotProps = computed(() => ({
81
82
  click: onClickDown
82
83
  }));
84
+ onMounted(() => {
85
+ if (!props.readonly && !props.disabled) {
86
+ clampModel();
87
+ }
88
+ });
83
89
  function toggleUpDown() {
84
90
  let increment = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : true;
85
91
  if (controlsDisabled.value) return;
86
92
  if (model.value == null) {
87
- model.value = 0;
93
+ model.value = clamp(0, props.min, props.max);
88
94
  return;
89
95
  }
90
96
  const decimals = Math.max(modelDecimals.value, stepDecimals.value);
@@ -102,30 +108,45 @@ export const VNumberInput = genericComponent()({
102
108
  e.stopPropagation();
103
109
  toggleUpDown(false);
104
110
  }
105
- function onKeydown(e) {
106
- if (['Enter', 'ArrowLeft', 'ArrowRight', 'Backspace', 'Delete', 'Tab'].includes(e.key) || e.ctrlKey) return;
107
- if (['ArrowDown'].includes(e.key)) {
111
+ function onBeforeinput(e) {
112
+ if (!e.data) return;
113
+ const existingTxt = e.target?.value;
114
+ const selectionStart = e.target?.selectionStart;
115
+ const selectionEnd = e.target?.selectionEnd;
116
+ const potentialNewInputVal = existingTxt ? existingTxt.slice(0, selectionStart) + e.data + existingTxt.slice(selectionEnd) : e.data;
117
+ // Only numbers, "-", "." are allowed
118
+ // AND "-", "." are allowed only once
119
+ // AND "-" is only allowed at the start
120
+ if (!/^-?(\d+(\.\d*)?|(\.\d+)|\d*|\.)$/.test(potentialNewInputVal)) {
108
121
  e.preventDefault();
109
- toggleUpDown(false);
110
- return;
111
122
  }
112
- if (['ArrowUp'].includes(e.key)) {
113
- e.preventDefault();
114
- toggleUpDown();
115
- return;
116
- }
117
-
118
- // Only numbers, +, - & . are allowed
119
- if (!/^[0-9\-+.]+$/.test(e.key)) {
123
+ }
124
+ async function onKeydown(e) {
125
+ if (['Enter', 'ArrowLeft', 'ArrowRight', 'Backspace', 'Delete', 'Tab'].includes(e.key) || e.ctrlKey) return;
126
+ if (['ArrowDown', 'ArrowUp'].includes(e.key)) {
120
127
  e.preventDefault();
128
+ clampModel();
129
+ // _model is controlled, so need to wait until props['modelValue'] is updated
130
+ await nextTick();
131
+ if (e.key === 'ArrowDown') {
132
+ toggleUpDown(false);
133
+ } else {
134
+ toggleUpDown();
135
+ }
121
136
  }
122
137
  }
123
- function onModelUpdate(v) {
124
- model.value = v ? +v : undefined;
125
- }
126
138
  function onControlMousedown(e) {
127
139
  e.stopPropagation();
128
140
  }
141
+ function clampModel() {
142
+ if (!vTextFieldRef.value) return;
143
+ const inputText = vTextFieldRef.value.value;
144
+ if (inputText && !isNaN(+inputText)) {
145
+ model.value = clamp(+inputText, props.min, props.max);
146
+ } else {
147
+ model.value = null;
148
+ }
149
+ }
129
150
  useRender(() => {
130
151
  const {
131
152
  modelValue: _,
@@ -210,8 +231,11 @@ export const VNumberInput = genericComponent()({
210
231
  }, null)]) : props.reverse ? _createVNode(_Fragment, null, [controlNode(), dividerNode()]) : undefined;
211
232
  const hasPrependInner = slots['prepend-inner'] || prependInnerControl;
212
233
  return _createVNode(VTextField, _mergeProps({
234
+ "ref": vTextFieldRef,
213
235
  "modelValue": model.value,
214
- "onUpdate:modelValue": onModelUpdate,
236
+ "onUpdate:modelValue": $event => model.value = $event,
237
+ "onBeforeinput": onBeforeinput,
238
+ "onChange": clampModel,
215
239
  "onKeydown": onKeydown,
216
240
  "class": ['v-number-input', {
217
241
  'v-number-input--default': controlVariant.value === 'default',
@@ -1 +1 @@
1
- {"version":3,"file":"VNumberInput.mjs","names":["VBtn","VDefaultsProvider","VDivider","makeVTextFieldProps","VTextField","useForm","useProxiedModel","computed","watchEffect","clamp","genericComponent","getDecimals","omit","propsFactory","useRender","makeVNumberInputProps","controlVariant","type","String","default","inset","Boolean","hideInput","min","Number","Infinity","max","step","VNumberInput","name","props","emits","val","setup","_ref","attrs","emit","slots","model","stepDecimals","modelDecimals","value","form","controlsDisabled","disabled","readonly","isReadonly","canIncrease","canDecrease","incrementIcon","decrementIcon","controlNodeSize","controlNodeDefaultHeight","incrementSlotProps","click","onClickUp","decrementSlotProps","onClickDown","toggleUpDown","increment","arguments","length","undefined","decimals","Math","toFixed","e","stopPropagation","onKeydown","includes","key","ctrlKey","preventDefault","test","onModelUpdate","v","onControlMousedown","modelValue","_","textFieldProps","filterProps","incrementControlNode","_createVNode","flat","height","size","icon","decrementControlNode","decrement","controlNode","dividerNode","appendInnerControl","reverse","_Fragment","hasAppendInner","prependInnerControl","hasPrependInner","_mergeProps","class","style","_len","args","Array","_key","_len2","_key2"],"sources":["../../../src/labs/VNumberInput/VNumberInput.tsx"],"sourcesContent":["// Styles\nimport './VNumberInput.sass'\n\n// Components\nimport { VBtn } from '../../components/VBtn'\nimport { VDefaultsProvider } from '../../components/VDefaultsProvider'\nimport { VDivider } from '../../components/VDivider'\nimport { makeVTextFieldProps, VTextField } from '@/components/VTextField/VTextField'\n\n// Composables\nimport { useForm } from '@/composables/form'\nimport { useProxiedModel } from '@/composables/proxiedModel'\n\n// Utilities\nimport { computed, watchEffect } from 'vue'\nimport { clamp, genericComponent, getDecimals, omit, propsFactory, useRender } from '@/util'\n\n// Types\nimport type { PropType } from 'vue'\nimport type { VTextFieldSlots } from '@/components/VTextField/VTextField'\n\ntype ControlSlot = {\n click: (e: MouseEvent) => void\n}\n\ntype VNumberInputSlots = Omit<VTextFieldSlots, 'default'> & {\n increment: ControlSlot\n decrement: ControlSlot\n}\n\ntype ControlVariant = 'default' | 'stacked' | 'split'\n\nconst makeVNumberInputProps = propsFactory({\n controlVariant: {\n type: String as PropType<ControlVariant>,\n default: 'default',\n },\n inset: Boolean,\n hideInput: Boolean,\n min: {\n type: Number,\n default: -Infinity,\n },\n max: {\n type: Number,\n default: Infinity,\n },\n step: {\n type: Number,\n default: 1,\n },\n\n ...omit(makeVTextFieldProps(), ['appendInnerIcon', 'prependInnerIcon']),\n}, 'VNumberInput')\n\nexport const VNumberInput = genericComponent<VNumberInputSlots>()({\n name: 'VNumberInput',\n\n props: {\n ...makeVNumberInputProps(),\n },\n\n emits: {\n 'update:modelValue': (val: number) => true,\n },\n\n setup (props, { attrs, emit, slots }) {\n const model = useProxiedModel(props, 'modelValue')\n\n const stepDecimals = computed(() => getDecimals(props.step))\n const modelDecimals = computed(() => model.value != null ? getDecimals(model.value) : 0)\n\n const form = useForm()\n const controlsDisabled = computed(() => (\n props.disabled || props.readonly || form?.isReadonly.value\n ))\n\n const canIncrease = computed(() => {\n if (controlsDisabled.value) return false\n if (model.value == null) return true\n return model.value + props.step <= props.max\n })\n const canDecrease = computed(() => {\n if (controlsDisabled.value) return false\n if (model.value == null) return true\n return model.value - props.step >= props.min\n })\n\n watchEffect(() => {\n if (controlsDisabled.value) return\n if (model.value != null && (model.value < props.min || model.value > props.max)) {\n model.value = clamp(model.value, props.min, props.max)\n }\n })\n\n const controlVariant = computed(() => {\n return props.hideInput ? 'stacked' : props.controlVariant\n })\n\n const incrementIcon = computed(() => controlVariant.value === 'split' ? '$plus' : '$collapse')\n const decrementIcon = computed(() => controlVariant.value === 'split' ? '$minus' : '$expand')\n const controlNodeSize = computed(() => controlVariant.value === 'split' ? 'default' : 'small')\n const controlNodeDefaultHeight = computed(() => controlVariant.value === 'stacked' ? 'auto' : '100%')\n\n const incrementSlotProps = computed(() => ({ click: onClickUp }))\n\n const decrementSlotProps = computed(() => ({ click: onClickDown }))\n\n function toggleUpDown (increment = true) {\n if (controlsDisabled.value) return\n if (model.value == null) {\n model.value = 0\n return\n }\n\n const decimals = Math.max(modelDecimals.value, stepDecimals.value)\n if (increment) {\n if (canIncrease.value) model.value = +(((model.value + props.step).toFixed(decimals)))\n } else {\n if (canDecrease.value) model.value = +(((model.value - props.step).toFixed(decimals)))\n }\n }\n\n function onClickUp (e: MouseEvent) {\n e.stopPropagation()\n toggleUpDown()\n }\n\n function onClickDown (e: MouseEvent) {\n e.stopPropagation()\n toggleUpDown(false)\n }\n\n function onKeydown (e: KeyboardEvent) {\n if (\n ['Enter', 'ArrowLeft', 'ArrowRight', 'Backspace', 'Delete', 'Tab'].includes(e.key) ||\n e.ctrlKey\n ) return\n\n if (['ArrowDown'].includes(e.key)) {\n e.preventDefault()\n toggleUpDown(false)\n return\n }\n if (['ArrowUp'].includes(e.key)) {\n e.preventDefault()\n toggleUpDown()\n return\n }\n\n // Only numbers, +, - & . are allowed\n if (!/^[0-9\\-+.]+$/.test(e.key)) {\n e.preventDefault()\n }\n }\n\n function onModelUpdate (v: string) {\n model.value = v ? +(v) : undefined\n }\n\n function onControlMousedown (e: MouseEvent) {\n e.stopPropagation()\n }\n\n useRender(() => {\n const { modelValue: _, ...textFieldProps } = VTextField.filterProps(props)\n\n function incrementControlNode () {\n return !slots.increment ? (\n <VBtn\n disabled={ !canIncrease.value }\n flat\n key=\"increment-btn\"\n height={ controlNodeDefaultHeight.value }\n name=\"increment-btn\"\n icon={ incrementIcon.value }\n onClick={ onClickUp }\n onMousedown={ onControlMousedown }\n size={ controlNodeSize.value }\n tabindex=\"-1\"\n />\n ) : (\n <VDefaultsProvider\n key=\"increment-defaults\"\n defaults={{\n VBtn: {\n disabled: !canIncrease.value,\n flat: true,\n height: controlNodeDefaultHeight.value,\n size: controlNodeSize.value,\n icon: incrementIcon.value,\n },\n }}\n >\n { slots.increment(incrementSlotProps.value) }\n </VDefaultsProvider>\n )\n }\n\n function decrementControlNode () {\n return !slots.decrement ? (\n <VBtn\n disabled={ !canDecrease.value }\n flat\n key=\"decrement-btn\"\n height={ controlNodeDefaultHeight.value }\n name=\"decrement-btn\"\n icon={ decrementIcon.value }\n size={ controlNodeSize.value }\n tabindex=\"-1\"\n onClick={ onClickDown }\n onMousedown={ onControlMousedown }\n />\n ) : (\n <VDefaultsProvider\n key=\"decrement-defaults\"\n defaults={{\n VBtn: {\n disabled: !canDecrease.value,\n flat: true,\n height: controlNodeDefaultHeight.value,\n size: controlNodeSize.value,\n icon: decrementIcon.value,\n },\n }}\n >\n { slots.decrement(decrementSlotProps.value) }\n </VDefaultsProvider>\n )\n }\n\n function controlNode () {\n return (\n <div class=\"v-number-input__control\">\n { decrementControlNode() }\n\n <VDivider\n vertical={ controlVariant.value !== 'stacked' }\n />\n\n { incrementControlNode() }\n </div>\n )\n }\n\n function dividerNode () {\n return !props.hideInput && !props.inset ? <VDivider vertical /> : undefined\n }\n\n const appendInnerControl =\n controlVariant.value === 'split'\n ? (\n <div class=\"v-number-input__control\">\n <VDivider vertical />\n\n { incrementControlNode() }\n </div>\n ) : (!props.reverse\n ? <>{ dividerNode() }{ controlNode() }</>\n : undefined)\n\n const hasAppendInner = slots['append-inner'] || appendInnerControl\n\n const prependInnerControl =\n controlVariant.value === 'split'\n ? (\n <div class=\"v-number-input__control\">\n { decrementControlNode() }\n\n <VDivider vertical />\n </div>\n ) : (props.reverse\n ? <>{ controlNode() }{ dividerNode() }</>\n : undefined)\n\n const hasPrependInner = slots['prepend-inner'] || prependInnerControl\n\n return (\n <VTextField\n modelValue={ model.value }\n onUpdate:modelValue={ onModelUpdate }\n onKeydown={ onKeydown }\n class={[\n 'v-number-input',\n {\n 'v-number-input--default': controlVariant.value === 'default',\n 'v-number-input--hide-input': props.hideInput,\n 'v-number-input--inset': props.inset,\n 'v-number-input--reverse': props.reverse,\n 'v-number-input--split': controlVariant.value === 'split',\n 'v-number-input--stacked': controlVariant.value === 'stacked',\n },\n props.class,\n ]}\n { ...textFieldProps }\n style={ props.style }\n inputmode=\"decimal\"\n >\n {{\n ...slots,\n 'append-inner': hasAppendInner ? (...args) => (\n <>\n { slots['append-inner']?.(...args) }\n { appendInnerControl }\n </>\n ) : undefined,\n 'prepend-inner': hasPrependInner ? (...args) => (\n <>\n { prependInnerControl }\n { slots['prepend-inner']?.(...args) }\n </>\n ) : undefined,\n }}\n </V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AAC,EAChCV,kBAAkB;QAAA,CAEvB,GAAG7B,SAAS;QACb,eAAe,EAAEkC,eAAe,GAAG;UAAA,SAAAQ,KAAA,GAAA5C,SAAA,CAAAC,MAAA,EAAIwC,IAAI,OAAAC,KAAA,CAAAE,KAAA,GAAAC,KAAA,MAAAA,KAAA,GAAAD,KAAA,EAAAC,KAAA;YAAJJ,IAAI,CAAAI,KAAA,IAAA7C,SAAA,CAAA6C,KAAA;UAAA;UAAA,OAAAvB,YAAA,CAAAW,SAAA,SAErCE,mBAAmB,EACnB1D,KAAK,CAAC,eAAe,CAAC,GAAG,GAAGgE,IAAI,CAAC;QAAA,CAEtC,GAAGvC;MAAS;IAIrB,CAAC,CAAC;EACJ;AACF,CAAC,CAAC","ignoreList":[]}
1
+ {"version":3,"file":"VNumberInput.mjs","names":["VBtn","VDefaultsProvider","VDivider","makeVTextFieldProps","VTextField","useForm","useProxiedModel","computed","nextTick","onMounted","ref","clamp","genericComponent","getDecimals","omit","propsFactory","useRender","makeVNumberInputProps","controlVariant","type","String","default","inset","Boolean","hideInput","modelValue","Number","min","MIN_SAFE_INTEGER","max","MAX_SAFE_INTEGER","step","VNumberInput","name","props","emits","val","setup","_ref","slots","_model","model","get","value","set","vTextFieldRef","stepDecimals","modelDecimals","form","controlsDisabled","disabled","readonly","isReadonly","canIncrease","canDecrease","incrementIcon","decrementIcon","controlNodeSize","controlNodeDefaultHeight","incrementSlotProps","click","onClickUp","decrementSlotProps","onClickDown","clampModel","toggleUpDown","increment","arguments","length","undefined","decimals","Math","toFixed","e","stopPropagation","onBeforeinput","data","existingTxt","target","selectionStart","selectionEnd","potentialNewInputVal","slice","test","preventDefault","onKeydown","includes","key","ctrlKey","onControlMousedown","inputText","isNaN","_","textFieldProps","filterProps","incrementControlNode","_createVNode","flat","height","size","icon","decrementControlNode","decrement","controlNode","dividerNode","appendInnerControl","reverse","_Fragment","hasAppendInner","prependInnerControl","hasPrependInner","_mergeProps","$event","class","style","_len","args","Array","_key","_len2","_key2"],"sources":["../../../src/labs/VNumberInput/VNumberInput.tsx"],"sourcesContent":["// Styles\nimport './VNumberInput.sass'\n\n// Components\nimport { VBtn } from '../../components/VBtn'\nimport { VDefaultsProvider } from '../../components/VDefaultsProvider'\nimport { VDivider } from '../../components/VDivider'\nimport { makeVTextFieldProps, VTextField } from '@/components/VTextField/VTextField'\n\n// Composables\nimport { useForm } from '@/composables/form'\nimport { useProxiedModel } from '@/composables/proxiedModel'\n\n// Utilities\nimport { computed, nextTick, onMounted, ref } from 'vue'\nimport { clamp, genericComponent, getDecimals, omit, propsFactory, useRender } from '@/util'\n\n// Types\nimport type { PropType } from 'vue'\nimport type { VTextFieldSlots } from '@/components/VTextField/VTextField'\n\ntype ControlSlot = {\n click: (e: MouseEvent) => void\n}\n\ntype VNumberInputSlots = Omit<VTextFieldSlots, 'default'> & {\n increment: ControlSlot\n decrement: ControlSlot\n}\n\ntype ControlVariant = 'default' | 'stacked' | 'split'\n\nconst makeVNumberInputProps = propsFactory({\n controlVariant: {\n type: String as PropType<ControlVariant>,\n default: 'default',\n },\n inset: Boolean,\n hideInput: Boolean,\n modelValue: {\n type: Number as PropType<Number | null>,\n default: null,\n },\n min: {\n type: Number,\n default: Number.MIN_SAFE_INTEGER,\n },\n max: {\n type: Number,\n default: Number.MAX_SAFE_INTEGER,\n },\n step: {\n type: Number,\n default: 1,\n },\n\n ...omit(makeVTextFieldProps({}), ['appendInnerIcon', 'modelValue', 'prependInnerIcon']),\n}, 'VNumberInput')\n\nexport const VNumberInput = genericComponent<VNumberInputSlots>()({\n name: 'VNumberInput',\n\n props: {\n ...makeVNumberInputProps(),\n },\n\n emits: {\n 'update:modelValue': (val: number) => true,\n },\n\n setup (props, { slots }) {\n const _model = useProxiedModel(props, 'modelValue')\n\n const model = computed({\n get: () => _model.value,\n set (val) {\n if (typeof val !== 'string') _model.value = val\n },\n })\n\n const vTextFieldRef = ref<VTextField | undefined>()\n\n const stepDecimals = computed(() => getDecimals(props.step))\n const modelDecimals = computed(() => typeof model.value === 'number' ? getDecimals(model.value) : 0)\n\n const form = useForm()\n const controlsDisabled = computed(() => (\n props.disabled || props.readonly || form?.isReadonly.value\n ))\n\n const canIncrease = computed(() => {\n if (controlsDisabled.value) return false\n return (model.value ?? 0) as number + props.step <= props.max\n })\n const canDecrease = computed(() => {\n if (controlsDisabled.value) return false\n return (model.value ?? 0) as number - props.step >= props.min\n })\n\n const controlVariant = computed(() => {\n return props.hideInput ? 'stacked' : props.controlVariant\n })\n\n const incrementIcon = computed(() => controlVariant.value === 'split' ? '$plus' : '$collapse')\n const decrementIcon = computed(() => controlVariant.value === 'split' ? '$minus' : '$expand')\n const controlNodeSize = computed(() => controlVariant.value === 'split' ? 'default' : 'small')\n const controlNodeDefaultHeight = computed(() => controlVariant.value === 'stacked' ? 'auto' : '100%')\n\n const incrementSlotProps = computed(() => ({ click: onClickUp }))\n\n const decrementSlotProps = computed(() => ({ click: onClickDown }))\n\n onMounted(() => {\n if (!props.readonly && !props.disabled) {\n clampModel()\n }\n })\n\n function toggleUpDown (increment = true) {\n if (controlsDisabled.value) return\n if (model.value == null) {\n model.value = clamp(0, props.min, props.max)\n return\n }\n\n const decimals = Math.max(modelDecimals.value, stepDecimals.value)\n if (increment) {\n if (canIncrease.value) model.value = +((((model.value as number) + props.step).toFixed(decimals)))\n } else {\n if (canDecrease.value) model.value = +((((model.value as number) - props.step).toFixed(decimals)))\n }\n }\n\n function onClickUp (e: MouseEvent) {\n e.stopPropagation()\n toggleUpDown()\n }\n\n function onClickDown (e: MouseEvent) {\n e.stopPropagation()\n toggleUpDown(false)\n }\n\n function onBeforeinput (e: InputEvent) {\n if (!e.data) return\n const existingTxt = (e.target as HTMLInputElement)?.value\n const selectionStart = (e.target as HTMLInputElement)?.selectionStart\n const selectionEnd = (e.target as HTMLInputElement)?.selectionEnd\n const potentialNewInputVal =\n existingTxt\n ? existingTxt.slice(0, selectionStart as number | undefined) + e.data + existingTxt.slice(selectionEnd as number | undefined)\n : e.data\n // Only numbers, \"-\", \".\" are allowed\n // AND \"-\", \".\" are allowed only once\n // AND \"-\" is only allowed at the start\n if (!/^-?(\\d+(\\.\\d*)?|(\\.\\d+)|\\d*|\\.)$/.test(potentialNewInputVal)) {\n e.preventDefault()\n }\n }\n\n async function onKeydown (e: KeyboardEvent) {\n if (\n ['Enter', 'ArrowLeft', 'ArrowRight', 'Backspace', 'Delete', 'Tab'].includes(e.key) ||\n e.ctrlKey\n ) return\n\n if (['ArrowDown', 'ArrowUp'].includes(e.key)) {\n e.preventDefault()\n clampModel()\n // _model is controlled, so need to wait until props['modelValue'] is updated\n await nextTick()\n if (e.key === 'ArrowDown') {\n toggleUpDown(false)\n } else {\n toggleUpDown()\n }\n }\n }\n\n function onControlMousedown (e: MouseEvent) {\n e.stopPropagation()\n }\n\n function clampModel () {\n if (!vTextFieldRef.value) return\n const inputText = vTextFieldRef.value.value\n if (inputText && !isNaN(+inputText)) {\n model.value = clamp(+(inputText), props.min, props.max)\n } else {\n model.value = null\n }\n }\n\n useRender(() => {\n const { modelValue: _, ...textFieldProps } = VTextField.filterProps(props)\n\n function incrementControlNode () {\n return !slots.increment ? (\n <VBtn\n disabled={ !canIncrease.value }\n flat\n key=\"increment-btn\"\n height={ controlNodeDefaultHeight.value }\n name=\"increment-btn\"\n icon={ incrementIcon.value }\n onClick={ onClickUp }\n onMousedown={ onControlMousedown }\n size={ controlNodeSize.value }\n tabindex=\"-1\"\n />\n ) : (\n <VDefaultsProvider\n key=\"increment-defaults\"\n defaults={{\n VBtn: {\n disabled: !canIncrease.value,\n flat: true,\n height: controlNodeDefaultHeight.value,\n size: controlNodeSize.value,\n icon: incrementIcon.value,\n },\n }}\n >\n { slots.increment(incrementSlotProps.value) }\n </VDefaultsProvider>\n )\n }\n\n function decrementControlNode () {\n return !slots.decrement ? (\n <VBtn\n disabled={ !canDecrease.value }\n flat\n key=\"decrement-btn\"\n height={ controlNodeDefaultHeight.value }\n name=\"decrement-btn\"\n icon={ decrementIcon.value }\n size={ controlNodeSize.value }\n tabindex=\"-1\"\n onClick={ onClickDown }\n onMousedown={ onControlMousedown }\n />\n ) : (\n <VDefaultsProvider\n key=\"decrement-defaults\"\n defaults={{\n VBtn: {\n disabled: !canDecrease.value,\n flat: true,\n height: controlNodeDefaultHeight.value,\n size: controlNodeSize.value,\n icon: decrementIcon.value,\n },\n }}\n >\n { slots.decrement(decrementSlotProps.value) }\n </VDefaultsProvider>\n )\n }\n\n function controlNode () {\n return (\n <div class=\"v-number-input__control\">\n { decrementControlNode() }\n\n <VDivider\n vertical={ controlVariant.value !== 'stacked' }\n />\n\n { incrementControlNode() }\n </div>\n )\n }\n\n function dividerNode () {\n return !props.hideInput && !props.inset ? <VDivider vertical /> : undefined\n }\n\n const appendInnerControl =\n controlVariant.value === 'split'\n ? (\n <div class=\"v-number-input__control\">\n <VDivider vertical />\n\n { incrementControlNode() }\n </div>\n ) : (!props.reverse\n ? <>{ dividerNode() }{ controlNode() }</>\n : undefined)\n\n const hasAppendInner = slots['append-inner'] || appendInnerControl\n\n const prependInnerControl =\n controlVariant.value === 'split'\n ? (\n <div class=\"v-number-input__control\">\n { decrementControlNode() }\n\n <VDivider vertical />\n </div>\n ) : (props.reverse\n ? <>{ controlNode() }{ dividerNode() }</>\n : undefined)\n\n const hasPrependInner = slots['prepend-inner'] || prependInnerControl\n\n return (\n <VTextField\n ref={ vTextFieldRef }\n v-model={ model.value }\n onBeforeinput={ onBeforeinput }\n onChange={ clampModel }\n onKeydown={ onKeydown }\n class={[\n 'v-number-input',\n {\n 'v-number-input--default': controlVariant.value === 'default',\n 'v-number-input--hide-input': props.hideInput,\n 'v-number-input--inset': props.inset,\n 'v-number-input--reverse': props.reverse,\n 'v-number-input--split': controlVariant.value === 'split',\n 'v-number-input--stacked': controlVariant.value === 'stacked',\n },\n props.class,\n ]}\n { ...textFieldProps }\n style={ props.style }\n inputmode=\"decimal\"\n >\n {{\n ...slots,\n 'append-inner': hasAppendInner ? (...args) => (\n <>\n { slots['append-inner']?.(...args) }\n { appendInnerControl }\n </>\n ) : undefined,\n 'prepend-inner': hasPrependInner ? (...args) => (\n <>\n { prependInnerControl }\n { slots['prepend-inner']?.(...args) }\n </>\n ) : undefined,\n }}\n </VTextField>\n )\n })\n },\n})\n\nexport type VNumberInput = InstanceType<typeof VNumberInput>\n"],"mappings":";AAAA;AACA;;AAEA;AAAA,SACSA,IAAI;AAAA,SACJC,iBAAiB;AAAA,SACjBC,QAAQ;AAAA,SACRC,mBAAmB,EAAEC,UAAU,sDAExC;AAAA,SACSC,OAAO;AAAA,SACPC,eAAe,8CAExB;AACA,SAASC,QAAQ,EAAEC,QAAQ,EAAEC,SAAS,EAAEC,GAAG,QAAQ,KAAK;AAAA,SAC/CC,KAAK,EAAEC,gBAAgB,EAAEC,WAAW,EAAEC,IAAI,EAAEC,YAAY,EAAEC,SAAS,gCAE5E;AAeA,MAAMC,qBAAqB,GAAGF,YAAY,CAAC;EACzCG,cAAc,EAAE;IACdC,IAAI,EAAEC,MAAkC;IACxCC,OAAO,EAAE;EACX,CAAC;EACDC,KAAK,EAAEC,OAAO;EACdC,SAAS,EAAED,OAAO;EAClBE,UAAU,EAAE;IACVN,IAAI,EAAEO,MAAiC;IACvCL,OAAO,EAAE;EACX,CAAC;EACDM,GAAG,EAAE;IACHR,IAAI,EAAEO,MAAM;IACZL,OAAO,EAAEK,MAAM,CAACE;EAClB,CAAC;EACDC,GAAG,EAAE;IACHV,IAAI,EAAEO,MAAM;IACZL,OAAO,EAAEK,MAAM,CAACI;EAClB,CAAC;EACDC,IAAI,EAAE;IACJZ,IAAI,EAAEO,MAAM;IACZL,OAAO,EAAE;EACX,CAAC;EAED,GAAGP,IAAI,CAACX,mBAAmB,CAAC,CAAC,CAAC,CAAC,EAAE,CAAC,iBAAiB,EAAE,YAAY,EAAE,kBAAkB,CAAC;AACxF,CAAC,EAAE,cAAc,CAAC;AAElB,OAAO,MAAM6B,YAAY,GAAGpB,gBAAgB,CAAoB,CAAC,CAAC;EAChE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