@vuetify/nightly 3.9.3-master.2025-08-02 → 3.9.3-master.2025-08-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.
- package/CHANGELOG.md +4 -3
- package/dist/json/attributes.json +3379 -3379
- package/dist/json/importMap-labs.json +42 -42
- package/dist/json/importMap.json +178 -178
- package/dist/json/web-types.json +6474 -6474
- package/dist/vuetify-labs.cjs +11 -6
- package/dist/vuetify-labs.css +3551 -3551
- package/dist/vuetify-labs.d.ts +70 -70
- package/dist/vuetify-labs.esm.js +11 -6
- package/dist/vuetify-labs.esm.js.map +1 -1
- package/dist/vuetify-labs.js +11 -6
- package/dist/vuetify-labs.min.css +2 -2
- package/dist/vuetify.cjs +11 -6
- package/dist/vuetify.cjs.map +1 -1
- package/dist/vuetify.css +3818 -3818
- package/dist/vuetify.d.ts +70 -70
- package/dist/vuetify.esm.js +11 -6
- package/dist/vuetify.esm.js.map +1 -1
- package/dist/vuetify.js +11 -6
- package/dist/vuetify.js.map +1 -1
- package/dist/vuetify.min.css +2 -2
- package/dist/vuetify.min.js +5 -4
- package/dist/vuetify.min.js.map +1 -1
- package/lib/entry-bundler.js +1 -1
- package/lib/framework.d.ts +70 -70
- package/lib/framework.js +1 -1
- package/lib/labs/rules/rules.d.ts +10 -3
- package/lib/labs/rules/rules.js +13 -5
- package/lib/labs/rules/rules.js.map +1 -1
- package/package.json +1 -1
package/lib/entry-bundler.js
CHANGED
@@ -16,7 +16,7 @@ export const createVuetify = function () {
|
|
16
16
|
...options
|
17
17
|
});
|
18
18
|
};
|
19
|
-
export const version = "3.9.3-master.2025-08-
|
19
|
+
export const version = "3.9.3-master.2025-08-03";
|
20
20
|
createVuetify.version = version;
|
21
21
|
export { blueprints, components, directives };
|
22
22
|
export * from "./composables/index.js";
|
package/lib/framework.d.ts
CHANGED
@@ -2606,38 +2606,40 @@ declare module 'vue' {
|
|
2606
2606
|
}
|
2607
2607
|
export interface GlobalComponents {
|
2608
2608
|
VApp: typeof import('vuetify/components')['VApp']
|
2609
|
+
VAlert: typeof import('vuetify/components')['VAlert']
|
2610
|
+
VAlertTitle: typeof import('vuetify/components')['VAlertTitle']
|
2609
2611
|
VAppBar: typeof import('vuetify/components')['VAppBar']
|
2610
2612
|
VAppBarNavIcon: typeof import('vuetify/components')['VAppBarNavIcon']
|
2611
2613
|
VAppBarTitle: typeof import('vuetify/components')['VAppBarTitle']
|
2612
|
-
VAlert: typeof import('vuetify/components')['VAlert']
|
2613
|
-
VAlertTitle: typeof import('vuetify/components')['VAlertTitle']
|
2614
|
-
VAutocomplete: typeof import('vuetify/components')['VAutocomplete']
|
2615
|
-
VBadge: typeof import('vuetify/components')['VBadge']
|
2616
2614
|
VAvatar: typeof import('vuetify/components')['VAvatar']
|
2617
|
-
|
2618
|
-
|
2619
|
-
VBtn: typeof import('vuetify/components')['VBtn']
|
2615
|
+
VBadge: typeof import('vuetify/components')['VBadge']
|
2616
|
+
VAutocomplete: typeof import('vuetify/components')['VAutocomplete']
|
2620
2617
|
VBanner: typeof import('vuetify/components')['VBanner']
|
2621
2618
|
VBannerActions: typeof import('vuetify/components')['VBannerActions']
|
2622
2619
|
VBannerText: typeof import('vuetify/components')['VBannerText']
|
2623
|
-
|
2620
|
+
VBottomNavigation: typeof import('vuetify/components')['VBottomNavigation']
|
2621
|
+
VBottomSheet: typeof import('vuetify/components')['VBottomSheet']
|
2624
2622
|
VBreadcrumbs: typeof import('vuetify/components')['VBreadcrumbs']
|
2625
2623
|
VBreadcrumbsItem: typeof import('vuetify/components')['VBreadcrumbsItem']
|
2626
2624
|
VBreadcrumbsDivider: typeof import('vuetify/components')['VBreadcrumbsDivider']
|
2627
|
-
VCarousel: typeof import('vuetify/components')['VCarousel']
|
2628
|
-
VCarouselItem: typeof import('vuetify/components')['VCarouselItem']
|
2629
2625
|
VBtnToggle: typeof import('vuetify/components')['VBtnToggle']
|
2630
|
-
|
2631
|
-
VCheckboxBtn: typeof import('vuetify/components')['VCheckboxBtn']
|
2632
|
-
VCode: typeof import('vuetify/components')['VCode']
|
2626
|
+
VBtn: typeof import('vuetify/components')['VBtn']
|
2633
2627
|
VCard: typeof import('vuetify/components')['VCard']
|
2634
2628
|
VCardActions: typeof import('vuetify/components')['VCardActions']
|
2635
2629
|
VCardItem: typeof import('vuetify/components')['VCardItem']
|
2636
2630
|
VCardSubtitle: typeof import('vuetify/components')['VCardSubtitle']
|
2637
2631
|
VCardText: typeof import('vuetify/components')['VCardText']
|
2638
2632
|
VCardTitle: typeof import('vuetify/components')['VCardTitle']
|
2633
|
+
VCheckbox: typeof import('vuetify/components')['VCheckbox']
|
2634
|
+
VCheckboxBtn: typeof import('vuetify/components')['VCheckboxBtn']
|
2639
2635
|
VChip: typeof import('vuetify/components')['VChip']
|
2636
|
+
VCode: typeof import('vuetify/components')['VCode']
|
2640
2637
|
VChipGroup: typeof import('vuetify/components')['VChipGroup']
|
2638
|
+
VCombobox: typeof import('vuetify/components')['VCombobox']
|
2639
|
+
VColorPicker: typeof import('vuetify/components')['VColorPicker']
|
2640
|
+
VCarousel: typeof import('vuetify/components')['VCarousel']
|
2641
|
+
VCarouselItem: typeof import('vuetify/components')['VCarouselItem']
|
2642
|
+
VCounter: typeof import('vuetify/components')['VCounter']
|
2641
2643
|
VDataTable: typeof import('vuetify/components')['VDataTable']
|
2642
2644
|
VDataTableHeaders: typeof import('vuetify/components')['VDataTableHeaders']
|
2643
2645
|
VDataTableFooter: typeof import('vuetify/components')['VDataTableFooter']
|
@@ -2645,8 +2647,6 @@ declare module 'vue' {
|
|
2645
2647
|
VDataTableRow: typeof import('vuetify/components')['VDataTableRow']
|
2646
2648
|
VDataTableVirtual: typeof import('vuetify/components')['VDataTableVirtual']
|
2647
2649
|
VDataTableServer: typeof import('vuetify/components')['VDataTableServer']
|
2648
|
-
VColorPicker: typeof import('vuetify/components')['VColorPicker']
|
2649
|
-
VCounter: typeof import('vuetify/components')['VCounter']
|
2650
2650
|
VDatePicker: typeof import('vuetify/components')['VDatePicker']
|
2651
2651
|
VDatePickerControls: typeof import('vuetify/components')['VDatePickerControls']
|
2652
2652
|
VDatePickerHeader: typeof import('vuetify/components')['VDatePickerHeader']
|
@@ -2654,31 +2654,30 @@ declare module 'vue' {
|
|
2654
2654
|
VDatePickerMonths: typeof import('vuetify/components')['VDatePickerMonths']
|
2655
2655
|
VDatePickerYears: typeof import('vuetify/components')['VDatePickerYears']
|
2656
2656
|
VDialog: typeof import('vuetify/components')['VDialog']
|
2657
|
-
VCombobox: typeof import('vuetify/components')['VCombobox']
|
2658
2657
|
VEmptyState: typeof import('vuetify/components')['VEmptyState']
|
2658
|
+
VBtnGroup: typeof import('vuetify/components')['VBtnGroup']
|
2659
2659
|
VDivider: typeof import('vuetify/components')['VDivider']
|
2660
2660
|
VExpansionPanels: typeof import('vuetify/components')['VExpansionPanels']
|
2661
2661
|
VExpansionPanel: typeof import('vuetify/components')['VExpansionPanel']
|
2662
2662
|
VExpansionPanelText: typeof import('vuetify/components')['VExpansionPanelText']
|
2663
2663
|
VExpansionPanelTitle: typeof import('vuetify/components')['VExpansionPanelTitle']
|
2664
2664
|
VFab: typeof import('vuetify/components')['VFab']
|
2665
|
-
VFileInput: typeof import('vuetify/components')['VFileInput']
|
2666
|
-
VField: typeof import('vuetify/components')['VField']
|
2667
|
-
VFieldLabel: typeof import('vuetify/components')['VFieldLabel']
|
2668
2665
|
VFooter: typeof import('vuetify/components')['VFooter']
|
2669
|
-
|
2666
|
+
VFileInput: typeof import('vuetify/components')['VFileInput']
|
2670
2667
|
VIcon: typeof import('vuetify/components')['VIcon']
|
2671
2668
|
VComponentIcon: typeof import('vuetify/components')['VComponentIcon']
|
2672
2669
|
VSvgIcon: typeof import('vuetify/components')['VSvgIcon']
|
2673
2670
|
VLigatureIcon: typeof import('vuetify/components')['VLigatureIcon']
|
2674
2671
|
VClassIcon: typeof import('vuetify/components')['VClassIcon']
|
2675
|
-
VInput: typeof import('vuetify/components')['VInput']
|
2676
|
-
VKbd: typeof import('vuetify/components')['VKbd']
|
2677
2672
|
VImg: typeof import('vuetify/components')['VImg']
|
2678
|
-
|
2679
|
-
|
2673
|
+
VField: typeof import('vuetify/components')['VField']
|
2674
|
+
VFieldLabel: typeof import('vuetify/components')['VFieldLabel']
|
2675
|
+
VKbd: typeof import('vuetify/components')['VKbd']
|
2676
|
+
VInfiniteScroll: typeof import('vuetify/components')['VInfiniteScroll']
|
2677
|
+
VItemGroup: typeof import('vuetify/components')['VItemGroup']
|
2678
|
+
VItem: typeof import('vuetify/components')['VItem']
|
2679
|
+
VInput: typeof import('vuetify/components')['VInput']
|
2680
2680
|
VLabel: typeof import('vuetify/components')['VLabel']
|
2681
|
-
VMessages: typeof import('vuetify/components')['VMessages']
|
2682
2681
|
VList: typeof import('vuetify/components')['VList']
|
2683
2682
|
VListGroup: typeof import('vuetify/components')['VListGroup']
|
2684
2683
|
VListImg: typeof import('vuetify/components')['VListImg']
|
@@ -2688,73 +2687,76 @@ declare module 'vue' {
|
|
2688
2687
|
VListItemSubtitle: typeof import('vuetify/components')['VListItemSubtitle']
|
2689
2688
|
VListItemTitle: typeof import('vuetify/components')['VListItemTitle']
|
2690
2689
|
VListSubheader: typeof import('vuetify/components')['VListSubheader']
|
2691
|
-
|
2690
|
+
VMain: typeof import('vuetify/components')['VMain']
|
2691
|
+
VMessages: typeof import('vuetify/components')['VMessages']
|
2692
|
+
VMenu: typeof import('vuetify/components')['VMenu']
|
2693
|
+
VNavigationDrawer: typeof import('vuetify/components')['VNavigationDrawer']
|
2694
|
+
VOtpInput: typeof import('vuetify/components')['VOtpInput']
|
2692
2695
|
VOverlay: typeof import('vuetify/components')['VOverlay']
|
2693
|
-
|
2694
|
-
VItem: typeof import('vuetify/components')['VItem']
|
2696
|
+
VNumberInput: typeof import('vuetify/components')['VNumberInput']
|
2695
2697
|
VPagination: typeof import('vuetify/components')['VPagination']
|
2696
|
-
VProgressCircular: typeof import('vuetify/components')['VProgressCircular']
|
2697
2698
|
VProgressLinear: typeof import('vuetify/components')['VProgressLinear']
|
2698
|
-
VOtpInput: typeof import('vuetify/components')['VOtpInput']
|
2699
|
-
VRating: typeof import('vuetify/components')['VRating']
|
2700
2699
|
VRadioGroup: typeof import('vuetify/components')['VRadioGroup']
|
2701
|
-
|
2700
|
+
VProgressCircular: typeof import('vuetify/components')['VProgressCircular']
|
2701
|
+
VRating: typeof import('vuetify/components')['VRating']
|
2702
2702
|
VSelect: typeof import('vuetify/components')['VSelect']
|
2703
|
-
VSelectionControl: typeof import('vuetify/components')['VSelectionControl']
|
2704
|
-
VSelectionControlGroup: typeof import('vuetify/components')['VSelectionControlGroup']
|
2705
|
-
VSkeletonLoader: typeof import('vuetify/components')['VSkeletonLoader']
|
2706
|
-
VSheet: typeof import('vuetify/components')['VSheet']
|
2707
2703
|
VSlideGroup: typeof import('vuetify/components')['VSlideGroup']
|
2708
2704
|
VSlideGroupItem: typeof import('vuetify/components')['VSlideGroupItem']
|
2709
|
-
|
2710
|
-
VStepperActions: typeof import('vuetify/components')['VStepperActions']
|
2711
|
-
VStepperHeader: typeof import('vuetify/components')['VStepperHeader']
|
2712
|
-
VStepperItem: typeof import('vuetify/components')['VStepperItem']
|
2713
|
-
VStepperWindow: typeof import('vuetify/components')['VStepperWindow']
|
2714
|
-
VStepperWindowItem: typeof import('vuetify/components')['VStepperWindowItem']
|
2705
|
+
VSelectionControlGroup: typeof import('vuetify/components')['VSelectionControlGroup']
|
2715
2706
|
VSlider: typeof import('vuetify/components')['VSlider']
|
2707
|
+
VSnackbar: typeof import('vuetify/components')['VSnackbar']
|
2708
|
+
VSheet: typeof import('vuetify/components')['VSheet']
|
2709
|
+
VSkeletonLoader: typeof import('vuetify/components')['VSkeletonLoader']
|
2710
|
+
VSelectionControl: typeof import('vuetify/components')['VSelectionControl']
|
2711
|
+
VSwitch: typeof import('vuetify/components')['VSwitch']
|
2716
2712
|
VSystemBar: typeof import('vuetify/components')['VSystemBar']
|
2713
|
+
VTable: typeof import('vuetify/components')['VTable']
|
2714
|
+
VTextarea: typeof import('vuetify/components')['VTextarea']
|
2717
2715
|
VTab: typeof import('vuetify/components')['VTab']
|
2718
2716
|
VTabs: typeof import('vuetify/components')['VTabs']
|
2719
2717
|
VTabsWindow: typeof import('vuetify/components')['VTabsWindow']
|
2720
2718
|
VTabsWindowItem: typeof import('vuetify/components')['VTabsWindowItem']
|
2721
|
-
VSwitch: typeof import('vuetify/components')['VSwitch']
|
2722
|
-
VTable: typeof import('vuetify/components')['VTable']
|
2723
|
-
VTextField: typeof import('vuetify/components')['VTextField']
|
2724
|
-
VTextarea: typeof import('vuetify/components')['VTextarea']
|
2725
2719
|
VTimeline: typeof import('vuetify/components')['VTimeline']
|
2726
2720
|
VTimelineItem: typeof import('vuetify/components')['VTimelineItem']
|
2727
2721
|
VTooltip: typeof import('vuetify/components')['VTooltip']
|
2728
2722
|
VTimePicker: typeof import('vuetify/components')['VTimePicker']
|
2729
2723
|
VTimePickerClock: typeof import('vuetify/components')['VTimePickerClock']
|
2730
2724
|
VTimePickerControls: typeof import('vuetify/components')['VTimePickerControls']
|
2731
|
-
|
2732
|
-
VTreeviewItem: typeof import('vuetify/components')['VTreeviewItem']
|
2733
|
-
VTreeviewGroup: typeof import('vuetify/components')['VTreeviewGroup']
|
2725
|
+
VTextField: typeof import('vuetify/components')['VTextField']
|
2734
2726
|
VToolbar: typeof import('vuetify/components')['VToolbar']
|
2735
2727
|
VToolbarTitle: typeof import('vuetify/components')['VToolbarTitle']
|
2736
2728
|
VToolbarItems: typeof import('vuetify/components')['VToolbarItems']
|
2729
|
+
VTreeview: typeof import('vuetify/components')['VTreeview']
|
2730
|
+
VTreeviewItem: typeof import('vuetify/components')['VTreeviewItem']
|
2731
|
+
VTreeviewGroup: typeof import('vuetify/components')['VTreeviewGroup']
|
2737
2732
|
VWindow: typeof import('vuetify/components')['VWindow']
|
2738
2733
|
VWindowItem: typeof import('vuetify/components')['VWindowItem']
|
2739
|
-
|
2734
|
+
VDataIterator: typeof import('vuetify/components')['VDataIterator']
|
2740
2735
|
VDefaultsProvider: typeof import('vuetify/components')['VDefaultsProvider']
|
2736
|
+
VHover: typeof import('vuetify/components')['VHover']
|
2737
|
+
VForm: typeof import('vuetify/components')['VForm']
|
2741
2738
|
VContainer: typeof import('vuetify/components')['VContainer']
|
2742
2739
|
VCol: typeof import('vuetify/components')['VCol']
|
2743
2740
|
VRow: typeof import('vuetify/components')['VRow']
|
2744
2741
|
VSpacer: typeof import('vuetify/components')['VSpacer']
|
2745
|
-
VForm: typeof import('vuetify/components')['VForm']
|
2746
2742
|
VLayout: typeof import('vuetify/components')['VLayout']
|
2747
2743
|
VLayoutItem: typeof import('vuetify/components')['VLayoutItem']
|
2748
|
-
|
2744
|
+
VStepper: typeof import('vuetify/components')['VStepper']
|
2745
|
+
VStepperActions: typeof import('vuetify/components')['VStepperActions']
|
2746
|
+
VStepperHeader: typeof import('vuetify/components')['VStepperHeader']
|
2747
|
+
VStepperItem: typeof import('vuetify/components')['VStepperItem']
|
2748
|
+
VStepperWindow: typeof import('vuetify/components')['VStepperWindow']
|
2749
|
+
VStepperWindowItem: typeof import('vuetify/components')['VStepperWindowItem']
|
2749
2750
|
VLazy: typeof import('vuetify/components')['VLazy']
|
2750
2751
|
VLocaleProvider: typeof import('vuetify/components')['VLocaleProvider']
|
2751
2752
|
VNoSsr: typeof import('vuetify/components')['VNoSsr']
|
2752
2753
|
VParallax: typeof import('vuetify/components')['VParallax']
|
2753
2754
|
VRadio: typeof import('vuetify/components')['VRadio']
|
2754
|
-
VResponsive: typeof import('vuetify/components')['VResponsive']
|
2755
2755
|
VRangeSlider: typeof import('vuetify/components')['VRangeSlider']
|
2756
|
+
VResponsive: typeof import('vuetify/components')['VResponsive']
|
2756
2757
|
VSnackbarQueue: typeof import('vuetify/components')['VSnackbarQueue']
|
2757
2758
|
VSparkline: typeof import('vuetify/components')['VSparkline']
|
2759
|
+
VSpeedDial: typeof import('vuetify/components')['VSpeedDial']
|
2758
2760
|
VThemeProvider: typeof import('vuetify/components')['VThemeProvider']
|
2759
2761
|
VValidation: typeof import('vuetify/components')['VValidation']
|
2760
2762
|
VVirtualScroll: typeof import('vuetify/components')['VVirtualScroll']
|
@@ -2774,34 +2776,32 @@ declare module 'vue' {
|
|
2774
2776
|
VExpandTransition: typeof import('vuetify/components')['VExpandTransition']
|
2775
2777
|
VExpandXTransition: typeof import('vuetify/components')['VExpandXTransition']
|
2776
2778
|
VDialogTransition: typeof import('vuetify/components')['VDialogTransition']
|
2777
|
-
VSpeedDial: typeof import('vuetify/components')['VSpeedDial']
|
2778
2779
|
VConfirmEdit: typeof import('vuetify/components')['VConfirmEdit']
|
2779
|
-
|
2780
|
+
VIconBtn: typeof import('vuetify/labs/components')['VIconBtn']
|
2780
2781
|
VFileUpload: typeof import('vuetify/labs/components')['VFileUpload']
|
2781
2782
|
VFileUploadItem: typeof import('vuetify/labs/components')['VFileUploadItem']
|
2782
|
-
|
2783
|
-
|
2784
|
-
|
2785
|
-
VCalendarInterval: typeof import('vuetify/labs/components')['VCalendarInterval']
|
2786
|
-
VCalendarIntervalEvent: typeof import('vuetify/labs/components')['VCalendarIntervalEvent']
|
2787
|
-
VCalendarMonthDay: typeof import('vuetify/labs/components')['VCalendarMonthDay']
|
2783
|
+
VStepperVertical: typeof import('vuetify/labs/components')['VStepperVertical']
|
2784
|
+
VStepperVerticalItem: typeof import('vuetify/labs/components')['VStepperVerticalItem']
|
2785
|
+
VStepperVerticalActions: typeof import('vuetify/labs/components')['VStepperVerticalActions']
|
2788
2786
|
VPicker: typeof import('vuetify/labs/components')['VPicker']
|
2789
2787
|
VPickerTitle: typeof import('vuetify/labs/components')['VPickerTitle']
|
2790
|
-
VColorInput: typeof import('vuetify/labs/components')['VColorInput']
|
2791
|
-
VHotkey: typeof import('vuetify/labs/components')['VHotkey']
|
2792
2788
|
VVideo: typeof import('vuetify/labs/components')['VVideo']
|
2793
2789
|
VVideoControls: typeof import('vuetify/labs/components')['VVideoControls']
|
2794
2790
|
VVideoVolume: typeof import('vuetify/labs/components')['VVideoVolume']
|
2795
|
-
|
2796
|
-
VPieSegment: typeof import('vuetify/labs/components')['VPieSegment']
|
2797
|
-
VPieTooltip: typeof import('vuetify/labs/components')['VPieTooltip']
|
2798
|
-
VStepperVertical: typeof import('vuetify/labs/components')['VStepperVertical']
|
2799
|
-
VStepperVerticalItem: typeof import('vuetify/labs/components')['VStepperVerticalItem']
|
2800
|
-
VStepperVerticalActions: typeof import('vuetify/labs/components')['VStepperVerticalActions']
|
2791
|
+
VHotkey: typeof import('vuetify/labs/components')['VHotkey']
|
2801
2792
|
VDateInput: typeof import('vuetify/labs/components')['VDateInput']
|
2802
|
-
VIconBtn: typeof import('vuetify/labs/components')['VIconBtn']
|
2803
2793
|
VMaskInput: typeof import('vuetify/labs/components')['VMaskInput']
|
2804
2794
|
VPullToRefresh: typeof import('vuetify/labs/components')['VPullToRefresh']
|
2795
|
+
VColorInput: typeof import('vuetify/labs/components')['VColorInput']
|
2796
|
+
VPie: typeof import('vuetify/labs/components')['VPie']
|
2797
|
+
VPieSegment: typeof import('vuetify/labs/components')['VPieSegment']
|
2798
|
+
VPieTooltip: typeof import('vuetify/labs/components')['VPieTooltip']
|
2799
|
+
VCalendar: typeof import('vuetify/labs/components')['VCalendar']
|
2800
|
+
VCalendarDay: typeof import('vuetify/labs/components')['VCalendarDay']
|
2801
|
+
VCalendarHeader: typeof import('vuetify/labs/components')['VCalendarHeader']
|
2802
|
+
VCalendarInterval: typeof import('vuetify/labs/components')['VCalendarInterval']
|
2803
|
+
VCalendarIntervalEvent: typeof import('vuetify/labs/components')['VCalendarIntervalEvent']
|
2804
|
+
VCalendarMonthDay: typeof import('vuetify/labs/components')['VCalendarMonthDay']
|
2805
2805
|
}
|
2806
2806
|
export interface GlobalDirectives {
|
2807
2807
|
vClickOutside: typeof import('vuetify/directives')['ClickOutside']
|
package/lib/framework.js
CHANGED
@@ -23,8 +23,15 @@ export type RulesOptions = {
|
|
23
23
|
};
|
24
24
|
type ValidationRuleParams = [any, string?];
|
25
25
|
export type ValidationAlias = string | [string, ...ValidationRuleParams];
|
26
|
-
export type RulesInstance =
|
27
|
-
|
26
|
+
export type RulesInstance = {
|
27
|
+
resolve: (fn: () => ValidationProps['rules']) => Readonly<Ref<any[]>>;
|
28
|
+
aliases: RuleAliases;
|
29
|
+
};
|
30
|
+
export declare function createRules(options: RulesOptions | undefined, locale: LocaleInstance): {
|
31
|
+
resolve: (fn: () => ValidationProps["rules"]) => import("vue").ComputedRef<(ValidationRule | [string, any, (string | undefined)?])[]>;
|
32
|
+
aliases: RuleAliases;
|
33
|
+
};
|
28
34
|
export declare const RulesSymbol: InjectionKey<RulesInstance>;
|
29
|
-
export declare function useRules(
|
35
|
+
export declare function useRules(): RuleAliases;
|
36
|
+
export declare function useRules(fn: () => ValidationProps['rules']): Readonly<Ref<ValidationProps['rules']>> | Readonly<Ref<ValidationRule[]>>;
|
30
37
|
|
package/lib/labs/rules/rules.js
CHANGED
@@ -52,7 +52,7 @@ export function createRules(options, locale) {
|
|
52
52
|
},
|
53
53
|
...options?.aliases
|
54
54
|
};
|
55
|
-
function
|
55
|
+
function resolve(fn) {
|
56
56
|
return computed(() => fn().map(rule => {
|
57
57
|
let ruleName = null;
|
58
58
|
let ruleParams = [undefined];
|
@@ -72,12 +72,20 @@ export function createRules(options, locale) {
|
|
72
72
|
}
|
73
73
|
}));
|
74
74
|
}
|
75
|
-
return
|
75
|
+
return {
|
76
|
+
resolve,
|
77
|
+
aliases
|
78
|
+
};
|
76
79
|
}
|
77
80
|
export const RulesSymbol = Symbol.for('vuetify:rules');
|
78
81
|
export function useRules(fn) {
|
79
|
-
const
|
80
|
-
if (!
|
81
|
-
|
82
|
+
const rules = inject(RulesSymbol, null);
|
83
|
+
if (!fn) {
|
84
|
+
if (!rules) {
|
85
|
+
throw new Error('Could not find Vuetify rules injection');
|
86
|
+
}
|
87
|
+
return rules.aliases;
|
88
|
+
}
|
89
|
+
return rules?.resolve(fn) ?? toRef(fn);
|
82
90
|
}
|
83
91
|
//# sourceMappingURL=rules.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"rules.js","names":["computed","inject","toRef","createRules","options","locale","t","aliases","required","err","v","email","test","number","Number","integer","capital","maxLength","len","length","minLength","strictLength","exclude","forbiddenCharacters","error","character","includes","notEmpty","pattern","
|
1
|
+
{"version":3,"file":"rules.js","names":["computed","inject","toRef","createRules","options","locale","t","aliases","required","err","v","email","test","number","Number","integer","capital","maxLength","len","length","minLength","strictLength","exclude","forbiddenCharacters","error","character","includes","notEmpty","pattern","resolve","fn","map","rule","ruleName","ruleParams","undefined","Array","isArray","slice","startsWith","RulesSymbol","Symbol","for","useRules","rules","Error"],"sources":["../../../src/labs/rules/rules.ts"],"sourcesContent":["// Utilities\nimport { computed, inject, toRef } from 'vue'\n\n// Types\nimport type { InjectionKey, Ref } from 'vue'\nimport type { LocaleInstance } from '@/composables/locale'\nimport type { ValidationProps, ValidationRule } from '@/composables/validation'\n\nexport type ValidationRuleBuilderWithoutOptions = (err?: string) => ValidationRule\nexport type ValidationRuleBuilderWithOptions<T> = (options: T, err?: string) => ValidationRule\nexport type ValidationRuleBuilder =\n | ValidationRuleBuilderWithoutOptions\n | ValidationRuleBuilderWithOptions<any>\n\nexport interface RuleAliases {\n [name: string]: ValidationRuleBuilder\n required: ValidationRuleBuilderWithoutOptions\n email: ValidationRuleBuilderWithoutOptions\n number: ValidationRuleBuilderWithoutOptions\n integer: ValidationRuleBuilderWithoutOptions\n capital: ValidationRuleBuilderWithoutOptions\n maxLength: ValidationRuleBuilderWithOptions<number>\n minLength: ValidationRuleBuilderWithOptions<number>\n strictLength: ValidationRuleBuilderWithOptions<number>\n exclude: ValidationRuleBuilderWithOptions<string[]>\n notEmpty: ValidationRuleBuilderWithoutOptions\n pattern: ValidationRuleBuilderWithOptions<RegExp>\n}\n\nexport type RulesOptions = {\n aliases?: Partial<RuleAliases>\n}\n\ntype ValidationRuleParams = [any, string?]\nexport type ValidationAlias = string | [string, ...ValidationRuleParams]\n\nexport type RulesInstance = {\n resolve: (fn: () => ValidationProps['rules']) => Readonly<Ref<any[]>>\n aliases: RuleAliases\n}\n\nexport function createRules (options: RulesOptions | undefined, locale: LocaleInstance) {\n const { t } = locale\n\n const aliases: RuleAliases = {\n required: (err?: string) => {\n return (v: any) => {\n // If the modifier .number is used, the 0 will be a number and it's a falsy value so we need to check for it\n return v === 0 || !!v || t(err || '$vuetify.rules.required')\n }\n },\n email: (err?: string) => {\n return (v: any) => (!v || (typeof v === 'string' && /^.+@\\S+\\.\\S+$/.test(v))) || t(err || '$vuetify.rules.email')\n },\n number: (err?: string) => {\n return (v: string) => !!Number(v) || t(err || '$vuetify.rules.number')\n },\n integer: (err?: string) => {\n return (v: string) => (/^[\\d]*$/.test(v)) || t(err || '$vuetify.rules.integer')\n },\n capital: (err?: string) => {\n return (v: string) => (/^[A-Z]*$/.test(v)) || t(err || '$vuetify.rules.capital')\n },\n maxLength: (len: number, err?: string) => {\n return (v: any) => (!v || v.length <= len) || t(err || '$vuetify.rules.maxLength', [len])\n },\n minLength: (len: number, err?: string) => {\n return (v: any) => (!v || v.length >= len) || t(err || '$vuetify.rules.minLength', [len])\n },\n strictLength: (len: number, err?: string) => {\n return (v: any) => (!v || v.length === len) || t(err || '$vuetify.rules.strictLength', [len])\n },\n exclude: (forbiddenCharacters: string[], err?: string) => {\n return (v: string) => {\n let error: string | true = true\n for (const character of forbiddenCharacters) {\n if (v.includes(character)) error = err || t('$vuetify.rules.exclude', character)\n }\n return error\n }\n },\n notEmpty: (err?: string) => {\n return (v: any) => (v && v.length > 0) || t(err || '$vuetify.rules.notEmpty')\n },\n pattern: (pattern: RegExp, err?: string) => {\n return (v: any) => (!v || pattern.test(v) || t(err || '$vuetify.rules.pattern'))\n },\n\n ...options?.aliases,\n }\n\n function resolve (fn: () => ValidationProps['rules']) {\n return computed(() => fn().map(rule => {\n let ruleName: string | null = null\n let ruleParams: ValidationRuleParams = [undefined]\n if (Array.isArray(rule)) {\n ruleName = rule[0]\n ruleParams = rule.slice(1) as ValidationRuleParams\n } else if (typeof rule === 'string') {\n ruleName = rule\n }\n\n if (ruleName !== null) {\n if (ruleName.startsWith('$')) {\n ruleName = ruleName.slice(1)\n }\n\n return aliases[ruleName]?.(...ruleParams)\n } else {\n return rule\n }\n }))\n }\n\n return {\n resolve,\n aliases,\n }\n}\n\nexport const RulesSymbol: InjectionKey<RulesInstance> = Symbol.for('vuetify:rules')\n\nexport function useRules (): RuleAliases\nexport function useRules (fn: () => ValidationProps['rules']): Readonly<Ref<ValidationProps['rules']>> | Readonly<Ref<ValidationRule[]>>\n\nexport function useRules (fn?: () => ValidationProps['rules']) {\n const rules = inject(RulesSymbol, null)\n\n if (!fn) {\n if (!rules) {\n throw new Error('Could not find Vuetify rules injection')\n }\n return rules.aliases\n }\n\n return rules?.resolve(fn) ?? toRef(fn)\n}\n"],"mappings":"AAAA;AACA,SAASA,QAAQ,EAAEC,MAAM,EAAEC,KAAK,QAAQ,KAAK;;AAE7C;;AAsCA,OAAO,SAASC,WAAWA,CAAEC,OAAiC,EAAEC,MAAsB,EAAE;EACtF,MAAM;IAAEC;EAAE,CAAC,GAAGD,MAAM;EAEpB,MAAME,OAAoB,GAAG;IAC3BC,QAAQ,EAAGC,GAAY,IAAK;MAC1B,OAAQC,CAAM,IAAK;QACjB;QACA,OAAOA,CAAC,KAAK,CAAC,IAAI,CAAC,CAACA,CAAC,IAAIJ,CAAC,CAACG,GAAG,IAAI,yBAAyB,CAAC;MAC9D,CAAC;IACH,CAAC;IACDE,KAAK,EAAGF,GAAY,IAAK;MACvB,OAAQC,CAAM,IAAM,CAACA,CAAC,IAAK,OAAOA,CAAC,KAAK,QAAQ,IAAI,eAAe,CAACE,IAAI,CAACF,CAAC,CAAE,IAAKJ,CAAC,CAACG,GAAG,IAAI,sBAAsB,CAAC;IACnH,CAAC;IACDI,MAAM,EAAGJ,GAAY,IAAK;MACxB,OAAQC,CAAS,IAAK,CAAC,C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