@vuetify/nightly 3.7.7-dev.2025-01-20 → 3.7.7-dev.2025-01-23
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 +7 -3
- package/dist/json/attributes.json +1847 -1847
- package/dist/json/importMap-labs.json +24 -24
- package/dist/json/importMap.json +192 -192
- package/dist/json/web-types.json +3645 -3645
- package/dist/vuetify-labs.css +3069 -3069
- package/dist/vuetify-labs.d.ts +78 -77
- package/dist/vuetify-labs.esm.js +113 -73
- package/dist/vuetify-labs.esm.js.map +1 -1
- package/dist/vuetify-labs.js +113 -73
- package/dist/vuetify-labs.min.css +2 -2
- package/dist/vuetify.css +4776 -4776
- package/dist/vuetify.d.ts +78 -77
- package/dist/vuetify.esm.js +113 -73
- package/dist/vuetify.esm.js.map +1 -1
- package/dist/vuetify.js +113 -73
- package/dist/vuetify.js.map +1 -1
- package/dist/vuetify.min.css +2 -2
- package/dist/vuetify.min.js +483 -477
- package/dist/vuetify.min.js.map +1 -1
- package/lib/components/VList/VListGroup.js +1 -0
- package/lib/components/VList/VListGroup.js.map +1 -1
- package/lib/components/VList/VListItem.js +2 -0
- package/lib/components/VList/VListItem.js.map +1 -1
- package/lib/composables/display.js +4 -1
- package/lib/composables/display.js.map +1 -1
- package/lib/composables/nested/nested.d.ts +1 -1
- package/lib/composables/nested/nested.js +3 -1
- package/lib/composables/nested/nested.js.map +1 -1
- package/lib/composables/nested/selectStrategies.d.ts +1 -0
- package/lib/composables/nested/selectStrategies.js +21 -0
- package/lib/composables/nested/selectStrategies.js.map +1 -1
- package/lib/entry-bundler.d.ts +2 -1
- package/lib/entry-bundler.js +1 -1
- package/lib/framework.d.ts +77 -76
- package/lib/framework.js +83 -72
- package/lib/framework.js.map +1 -1
- package/lib/labs/entry-bundler.d.ts +2 -1
- package/package.json +1 -1
package/lib/framework.d.ts
CHANGED
@@ -379,6 +379,7 @@ interface Blueprint extends Omit<VuetifyOptions, 'blueprint'> {
|
|
379
379
|
}
|
380
380
|
declare function createVuetify(vuetify?: VuetifyOptions): {
|
381
381
|
install: (app: App) => void;
|
382
|
+
unmount: () => void;
|
382
383
|
defaults: vue.Ref<DefaultsInstance, DefaultsInstance>;
|
383
384
|
display: DisplayInstance;
|
384
385
|
theme: ThemeInstance & {
|
@@ -446,7 +447,7 @@ declare function createVuetify(vuetify?: VuetifyOptions): {
|
|
446
447
|
};
|
447
448
|
};
|
448
449
|
goTo: GoToInstance;
|
449
|
-
};
|
450
|
+
} | undefined;
|
450
451
|
declare namespace createVuetify {
|
451
452
|
var version: string;
|
452
453
|
}
|
@@ -489,43 +490,40 @@ declare module 'vue' {
|
|
489
490
|
$children?: VNodeChild
|
490
491
|
}
|
491
492
|
export interface GlobalComponents {
|
493
|
+
VApp: typeof import('vuetify/components')['VApp']
|
494
|
+
VAlert: typeof import('vuetify/components')['VAlert']
|
495
|
+
VAlertTitle: typeof import('vuetify/components')['VAlertTitle']
|
496
|
+
VAutocomplete: typeof import('vuetify/components')['VAutocomplete']
|
492
497
|
VAvatar: typeof import('vuetify/components')['VAvatar']
|
498
|
+
VBottomNavigation: typeof import('vuetify/components')['VBottomNavigation']
|
493
499
|
VAppBar: typeof import('vuetify/components')['VAppBar']
|
494
500
|
VAppBarNavIcon: typeof import('vuetify/components')['VAppBarNavIcon']
|
495
501
|
VAppBarTitle: typeof import('vuetify/components')['VAppBarTitle']
|
496
|
-
|
497
|
-
|
498
|
-
|
502
|
+
VBanner: typeof import('vuetify/components')['VBanner']
|
503
|
+
VBannerActions: typeof import('vuetify/components')['VBannerActions']
|
504
|
+
VBannerText: typeof import('vuetify/components')['VBannerText']
|
499
505
|
VBadge: typeof import('vuetify/components')['VBadge']
|
500
|
-
VBottomNavigation: typeof import('vuetify/components')['VBottomNavigation']
|
501
506
|
VBreadcrumbs: typeof import('vuetify/components')['VBreadcrumbs']
|
502
507
|
VBreadcrumbsItem: typeof import('vuetify/components')['VBreadcrumbsItem']
|
503
508
|
VBreadcrumbsDivider: typeof import('vuetify/components')['VBreadcrumbsDivider']
|
504
|
-
VBtn: typeof import('vuetify/components')['VBtn']
|
505
509
|
VBottomSheet: typeof import('vuetify/components')['VBottomSheet']
|
506
|
-
|
507
|
-
|
508
|
-
VBannerText: typeof import('vuetify/components')['VBannerText']
|
509
|
-
VCheckbox: typeof import('vuetify/components')['VCheckbox']
|
510
|
-
VCheckboxBtn: typeof import('vuetify/components')['VCheckboxBtn']
|
511
|
-
VBtnGroup: typeof import('vuetify/components')['VBtnGroup']
|
510
|
+
VBtn: typeof import('vuetify/components')['VBtn']
|
511
|
+
VBtnToggle: typeof import('vuetify/components')['VBtnToggle']
|
512
512
|
VCard: typeof import('vuetify/components')['VCard']
|
513
513
|
VCardActions: typeof import('vuetify/components')['VCardActions']
|
514
514
|
VCardItem: typeof import('vuetify/components')['VCardItem']
|
515
515
|
VCardSubtitle: typeof import('vuetify/components')['VCardSubtitle']
|
516
516
|
VCardText: typeof import('vuetify/components')['VCardText']
|
517
517
|
VCardTitle: typeof import('vuetify/components')['VCardTitle']
|
518
|
-
|
518
|
+
VCode: typeof import('vuetify/components')['VCode']
|
519
|
+
VCheckbox: typeof import('vuetify/components')['VCheckbox']
|
520
|
+
VCheckboxBtn: typeof import('vuetify/components')['VCheckboxBtn']
|
519
521
|
VCarousel: typeof import('vuetify/components')['VCarousel']
|
520
522
|
VCarouselItem: typeof import('vuetify/components')['VCarouselItem']
|
521
|
-
|
522
|
-
|
523
|
-
VColorPicker: typeof import('vuetify/components')['VColorPicker']
|
524
|
-
VCode: typeof import('vuetify/components')['VCode']
|
523
|
+
VBtnGroup: typeof import('vuetify/components')['VBtnGroup']
|
524
|
+
VChip: typeof import('vuetify/components')['VChip']
|
525
525
|
VChipGroup: typeof import('vuetify/components')['VChipGroup']
|
526
|
-
|
527
|
-
VDivider: typeof import('vuetify/components')['VDivider']
|
528
|
-
VDialog: typeof import('vuetify/components')['VDialog']
|
526
|
+
VColorPicker: typeof import('vuetify/components')['VColorPicker']
|
529
527
|
VDataTable: typeof import('vuetify/components')['VDataTable']
|
530
528
|
VDataTableHeaders: typeof import('vuetify/components')['VDataTableHeaders']
|
531
529
|
VDataTableFooter: typeof import('vuetify/components')['VDataTableFooter']
|
@@ -533,22 +531,36 @@ declare module 'vue' {
|
|
533
531
|
VDataTableRow: typeof import('vuetify/components')['VDataTableRow']
|
534
532
|
VDataTableVirtual: typeof import('vuetify/components')['VDataTableVirtual']
|
535
533
|
VDataTableServer: typeof import('vuetify/components')['VDataTableServer']
|
536
|
-
|
534
|
+
VCombobox: typeof import('vuetify/components')['VCombobox']
|
535
|
+
VCounter: typeof import('vuetify/components')['VCounter']
|
536
|
+
VDialog: typeof import('vuetify/components')['VDialog']
|
537
|
+
VDatePicker: typeof import('vuetify/components')['VDatePicker']
|
538
|
+
VDatePickerControls: typeof import('vuetify/components')['VDatePickerControls']
|
539
|
+
VDatePickerHeader: typeof import('vuetify/components')['VDatePickerHeader']
|
540
|
+
VDatePickerMonth: typeof import('vuetify/components')['VDatePickerMonth']
|
541
|
+
VDatePickerMonths: typeof import('vuetify/components')['VDatePickerMonths']
|
542
|
+
VDatePickerYears: typeof import('vuetify/components')['VDatePickerYears']
|
543
|
+
VDivider: typeof import('vuetify/components')['VDivider']
|
537
544
|
VEmptyState: typeof import('vuetify/components')['VEmptyState']
|
538
|
-
VFooter: typeof import('vuetify/components')['VFooter']
|
539
|
-
VFab: typeof import('vuetify/components')['VFab']
|
540
545
|
VField: typeof import('vuetify/components')['VField']
|
541
546
|
VFieldLabel: typeof import('vuetify/components')['VFieldLabel']
|
542
|
-
|
543
|
-
|
544
|
-
|
547
|
+
VFab: typeof import('vuetify/components')['VFab']
|
548
|
+
VFooter: typeof import('vuetify/components')['VFooter']
|
549
|
+
VExpansionPanels: typeof import('vuetify/components')['VExpansionPanels']
|
550
|
+
VExpansionPanel: typeof import('vuetify/components')['VExpansionPanel']
|
551
|
+
VExpansionPanelText: typeof import('vuetify/components')['VExpansionPanelText']
|
552
|
+
VExpansionPanelTitle: typeof import('vuetify/components')['VExpansionPanelTitle']
|
553
|
+
VFileInput: typeof import('vuetify/components')['VFileInput']
|
545
554
|
VImg: typeof import('vuetify/components')['VImg']
|
546
|
-
|
555
|
+
VInfiniteScroll: typeof import('vuetify/components')['VInfiniteScroll']
|
547
556
|
VIcon: typeof import('vuetify/components')['VIcon']
|
548
557
|
VComponentIcon: typeof import('vuetify/components')['VComponentIcon']
|
549
558
|
VSvgIcon: typeof import('vuetify/components')['VSvgIcon']
|
550
559
|
VLigatureIcon: typeof import('vuetify/components')['VLigatureIcon']
|
551
560
|
VClassIcon: typeof import('vuetify/components')['VClassIcon']
|
561
|
+
VKbd: typeof import('vuetify/components')['VKbd']
|
562
|
+
VLabel: typeof import('vuetify/components')['VLabel']
|
563
|
+
VInput: typeof import('vuetify/components')['VInput']
|
552
564
|
VList: typeof import('vuetify/components')['VList']
|
553
565
|
VListGroup: typeof import('vuetify/components')['VListGroup']
|
554
566
|
VListImg: typeof import('vuetify/components')['VListImg']
|
@@ -558,79 +570,73 @@ declare module 'vue' {
|
|
558
570
|
VListItemSubtitle: typeof import('vuetify/components')['VListItemSubtitle']
|
559
571
|
VListItemTitle: typeof import('vuetify/components')['VListItemTitle']
|
560
572
|
VListSubheader: typeof import('vuetify/components')['VListSubheader']
|
561
|
-
|
562
|
-
|
563
|
-
VMessages: typeof import('vuetify/components')['VMessages']
|
573
|
+
VItemGroup: typeof import('vuetify/components')['VItemGroup']
|
574
|
+
VItem: typeof import('vuetify/components')['VItem']
|
564
575
|
VMenu: typeof import('vuetify/components')['VMenu']
|
565
|
-
VOverlay: typeof import('vuetify/components')['VOverlay']
|
566
576
|
VNavigationDrawer: typeof import('vuetify/components')['VNavigationDrawer']
|
577
|
+
VOverlay: typeof import('vuetify/components')['VOverlay']
|
578
|
+
VMain: typeof import('vuetify/components')['VMain']
|
579
|
+
VMessages: typeof import('vuetify/components')['VMessages']
|
567
580
|
VPagination: typeof import('vuetify/components')['VPagination']
|
568
|
-
|
569
|
-
|
570
|
-
|
571
|
-
VDatePickerMonth: typeof import('vuetify/components')['VDatePickerMonth']
|
572
|
-
VDatePickerMonths: typeof import('vuetify/components')['VDatePickerMonths']
|
573
|
-
VDatePickerYears: typeof import('vuetify/components')['VDatePickerYears']
|
574
|
-
VKbd: typeof import('vuetify/components')['VKbd']
|
581
|
+
VOtpInput: typeof import('vuetify/components')['VOtpInput']
|
582
|
+
VProgressCircular: typeof import('vuetify/components')['VProgressCircular']
|
583
|
+
VProgressLinear: typeof import('vuetify/components')['VProgressLinear']
|
575
584
|
VRadioGroup: typeof import('vuetify/components')['VRadioGroup']
|
576
|
-
VRating: typeof import('vuetify/components')['VRating']
|
577
|
-
VSelect: typeof import('vuetify/components')['VSelect']
|
578
585
|
VSelectionControlGroup: typeof import('vuetify/components')['VSelectionControlGroup']
|
579
586
|
VSelectionControl: typeof import('vuetify/components')['VSelectionControl']
|
580
|
-
|
581
|
-
|
587
|
+
VSelect: typeof import('vuetify/components')['VSelect']
|
588
|
+
VSkeletonLoader: typeof import('vuetify/components')['VSkeletonLoader']
|
582
589
|
VSheet: typeof import('vuetify/components')['VSheet']
|
583
590
|
VSnackbar: typeof import('vuetify/components')['VSnackbar']
|
584
591
|
VSlider: typeof import('vuetify/components')['VSlider']
|
592
|
+
VSystemBar: typeof import('vuetify/components')['VSystemBar']
|
593
|
+
VSlideGroup: typeof import('vuetify/components')['VSlideGroup']
|
594
|
+
VSlideGroupItem: typeof import('vuetify/components')['VSlideGroupItem']
|
595
|
+
VSwitch: typeof import('vuetify/components')['VSwitch']
|
585
596
|
VStepper: typeof import('vuetify/components')['VStepper']
|
586
597
|
VStepperActions: typeof import('vuetify/components')['VStepperActions']
|
587
598
|
VStepperHeader: typeof import('vuetify/components')['VStepperHeader']
|
588
599
|
VStepperItem: typeof import('vuetify/components')['VStepperItem']
|
589
600
|
VStepperWindow: typeof import('vuetify/components')['VStepperWindow']
|
590
601
|
VStepperWindowItem: typeof import('vuetify/components')['VStepperWindowItem']
|
591
|
-
|
592
|
-
VSkeletonLoader: typeof import('vuetify/components')['VSkeletonLoader']
|
593
|
-
VTextarea: typeof import('vuetify/components')['VTextarea']
|
602
|
+
VTextField: typeof import('vuetify/components')['VTextField']
|
594
603
|
VTab: typeof import('vuetify/components')['VTab']
|
595
604
|
VTabs: typeof import('vuetify/components')['VTabs']
|
596
605
|
VTabsWindow: typeof import('vuetify/components')['VTabsWindow']
|
597
606
|
VTabsWindowItem: typeof import('vuetify/components')['VTabsWindowItem']
|
598
|
-
|
599
|
-
VProgressCircular: typeof import('vuetify/components')['VProgressCircular']
|
607
|
+
VRating: typeof import('vuetify/components')['VRating']
|
600
608
|
VToolbar: typeof import('vuetify/components')['VToolbar']
|
601
609
|
VToolbarTitle: typeof import('vuetify/components')['VToolbarTitle']
|
602
610
|
VToolbarItems: typeof import('vuetify/components')['VToolbarItems']
|
603
|
-
|
604
|
-
VWindow: typeof import('vuetify/components')['VWindow']
|
605
|
-
VWindowItem: typeof import('vuetify/components')['VWindowItem']
|
606
|
-
VTooltip: typeof import('vuetify/components')['VTooltip']
|
607
|
-
VExpansionPanels: typeof import('vuetify/components')['VExpansionPanels']
|
608
|
-
VExpansionPanel: typeof import('vuetify/components')['VExpansionPanel']
|
609
|
-
VExpansionPanelText: typeof import('vuetify/components')['VExpansionPanelText']
|
610
|
-
VExpansionPanelTitle: typeof import('vuetify/components')['VExpansionPanelTitle']
|
611
|
-
VProgressLinear: typeof import('vuetify/components')['VProgressLinear']
|
611
|
+
VTable: typeof import('vuetify/components')['VTable']
|
612
612
|
VTimeline: typeof import('vuetify/components')['VTimeline']
|
613
613
|
VTimelineItem: typeof import('vuetify/components')['VTimelineItem']
|
614
|
-
|
614
|
+
VTooltip: typeof import('vuetify/components')['VTooltip']
|
615
|
+
VTextarea: typeof import('vuetify/components')['VTextarea']
|
616
|
+
VWindow: typeof import('vuetify/components')['VWindow']
|
617
|
+
VWindowItem: typeof import('vuetify/components')['VWindowItem']
|
618
|
+
VConfirmEdit: typeof import('vuetify/components')['VConfirmEdit']
|
615
619
|
VDataIterator: typeof import('vuetify/components')['VDataIterator']
|
620
|
+
VDefaultsProvider: typeof import('vuetify/components')['VDefaultsProvider']
|
621
|
+
VForm: typeof import('vuetify/components')['VForm']
|
616
622
|
VContainer: typeof import('vuetify/components')['VContainer']
|
617
623
|
VCol: typeof import('vuetify/components')['VCol']
|
618
624
|
VRow: typeof import('vuetify/components')['VRow']
|
619
625
|
VSpacer: typeof import('vuetify/components')['VSpacer']
|
620
626
|
VHover: typeof import('vuetify/components')['VHover']
|
627
|
+
VLazy: typeof import('vuetify/components')['VLazy']
|
621
628
|
VLayout: typeof import('vuetify/components')['VLayout']
|
622
629
|
VLayoutItem: typeof import('vuetify/components')['VLayoutItem']
|
623
|
-
|
624
|
-
VLazy: typeof import('vuetify/components')['VLazy']
|
630
|
+
VLocaleProvider: typeof import('vuetify/components')['VLocaleProvider']
|
625
631
|
VNoSsr: typeof import('vuetify/components')['VNoSsr']
|
626
632
|
VParallax: typeof import('vuetify/components')['VParallax']
|
627
|
-
VForm: typeof import('vuetify/components')['VForm']
|
628
633
|
VRadio: typeof import('vuetify/components')['VRadio']
|
629
634
|
VRangeSlider: typeof import('vuetify/components')['VRangeSlider']
|
630
635
|
VResponsive: typeof import('vuetify/components')['VResponsive']
|
631
|
-
VSpeedDial: typeof import('vuetify/components')['VSpeedDial']
|
632
636
|
VSparkline: typeof import('vuetify/components')['VSparkline']
|
633
|
-
|
637
|
+
VSpeedDial: typeof import('vuetify/components')['VSpeedDial']
|
638
|
+
VValidation: typeof import('vuetify/components')['VValidation']
|
639
|
+
VThemeProvider: typeof import('vuetify/components')['VThemeProvider']
|
634
640
|
VFabTransition: typeof import('vuetify/components')['VFabTransition']
|
635
641
|
VDialogBottomTransition: typeof import('vuetify/components')['VDialogBottomTransition']
|
636
642
|
VDialogTopTransition: typeof import('vuetify/components')['VDialogTopTransition']
|
@@ -647,26 +653,21 @@ declare module 'vue' {
|
|
647
653
|
VExpandTransition: typeof import('vuetify/components')['VExpandTransition']
|
648
654
|
VExpandXTransition: typeof import('vuetify/components')['VExpandXTransition']
|
649
655
|
VDialogTransition: typeof import('vuetify/components')['VDialogTransition']
|
650
|
-
VAutocomplete: typeof import('vuetify/components')['VAutocomplete']
|
651
|
-
VOtpInput: typeof import('vuetify/components')['VOtpInput']
|
652
656
|
VVirtualScroll: typeof import('vuetify/components')['VVirtualScroll']
|
653
|
-
|
654
|
-
|
655
|
-
|
656
|
-
|
657
|
-
|
658
|
-
VStepperVerticalActions: typeof import('vuetify/labs/components')['VStepperVerticalActions']
|
657
|
+
VNumberInput: typeof import('vuetify/labs/components')['VNumberInput']
|
658
|
+
VPicker: typeof import('vuetify/labs/components')['VPicker']
|
659
|
+
VPickerTitle: typeof import('vuetify/labs/components')['VPickerTitle']
|
660
|
+
VFileUpload: typeof import('vuetify/labs/components')['VFileUpload']
|
661
|
+
VFileUploadItem: typeof import('vuetify/labs/components')['VFileUploadItem']
|
659
662
|
VCalendar: typeof import('vuetify/labs/components')['VCalendar']
|
660
663
|
VCalendarDay: typeof import('vuetify/labs/components')['VCalendarDay']
|
661
664
|
VCalendarHeader: typeof import('vuetify/labs/components')['VCalendarHeader']
|
662
665
|
VCalendarInterval: typeof import('vuetify/labs/components')['VCalendarInterval']
|
663
666
|
VCalendarIntervalEvent: typeof import('vuetify/labs/components')['VCalendarIntervalEvent']
|
664
667
|
VCalendarMonthDay: typeof import('vuetify/labs/components')['VCalendarMonthDay']
|
665
|
-
|
666
|
-
|
667
|
-
|
668
|
-
VPicker: typeof import('vuetify/labs/components')['VPicker']
|
669
|
-
VPickerTitle: typeof import('vuetify/labs/components')['VPickerTitle']
|
668
|
+
VStepperVertical: typeof import('vuetify/labs/components')['VStepperVertical']
|
669
|
+
VStepperVerticalItem: typeof import('vuetify/labs/components')['VStepperVerticalItem']
|
670
|
+
VStepperVerticalActions: typeof import('vuetify/labs/components')['VStepperVerticalActions']
|
670
671
|
VTreeview: typeof import('vuetify/labs/components')['VTreeview']
|
671
672
|
VTreeviewItem: typeof import('vuetify/labs/components')['VTreeviewItem']
|
672
673
|
VTreeviewGroup: typeof import('vuetify/labs/components')['VTreeviewGroup']
|
@@ -674,7 +675,7 @@ declare module 'vue' {
|
|
674
675
|
VTimePickerClock: typeof import('vuetify/labs/components')['VTimePickerClock']
|
675
676
|
VTimePickerControls: typeof import('vuetify/labs/components')['VTimePickerControls']
|
676
677
|
VDateInput: typeof import('vuetify/labs/components')['VDateInput']
|
677
|
-
VSnackbarQueue: typeof import('vuetify/labs/components')['VSnackbarQueue']
|
678
678
|
VPullToRefresh: typeof import('vuetify/labs/components')['VPullToRefresh']
|
679
|
+
VSnackbarQueue: typeof import('vuetify/labs/components')['VSnackbarQueue']
|
679
680
|
}
|
680
681
|
}
|
package/lib/framework.js
CHANGED
@@ -6,7 +6,7 @@ import { createGoTo, GoToSymbol } from "./composables/goto.js";
|
|
6
6
|
import { createIcons, IconSymbol } from "./composables/icons.js";
|
7
7
|
import { createLocale, LocaleSymbol } from "./composables/locale.js";
|
8
8
|
import { createTheme, ThemeSymbol } from "./composables/theme.js"; // Utilities
|
9
|
-
import { nextTick, reactive } from 'vue';
|
9
|
+
import { effectScope, nextTick, reactive } from 'vue';
|
10
10
|
import { defineComponent, IN_BROWSER, mergeDeep } from "./util/index.js"; // Types
|
11
11
|
export * from "./composables/index.js";
|
12
12
|
export function createVuetify() {
|
@@ -21,82 +21,93 @@ export function createVuetify() {
|
|
21
21
|
components = {},
|
22
22
|
directives = {}
|
23
23
|
} = options;
|
24
|
-
const
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
-
|
44
|
-
|
45
|
-
|
46
|
-
|
47
|
-
|
48
|
-
|
49
|
-
|
50
|
-
|
51
|
-
|
52
|
-
|
53
|
-
|
54
|
-
|
55
|
-
|
56
|
-
|
57
|
-
|
24
|
+
const scope = effectScope();
|
25
|
+
return scope.run(() => {
|
26
|
+
const defaults = createDefaults(options.defaults);
|
27
|
+
const display = createDisplay(options.display, options.ssr);
|
28
|
+
const theme = createTheme(options.theme);
|
29
|
+
const icons = createIcons(options.icons);
|
30
|
+
const locale = createLocale(options.locale);
|
31
|
+
const date = createDate(options.date, locale);
|
32
|
+
const goTo = createGoTo(options.goTo, locale);
|
33
|
+
function install(app) {
|
34
|
+
for (const key in directives) {
|
35
|
+
app.directive(key, directives[key]);
|
36
|
+
}
|
37
|
+
for (const key in components) {
|
38
|
+
app.component(key, components[key]);
|
39
|
+
}
|
40
|
+
for (const key in aliases) {
|
41
|
+
app.component(key, defineComponent({
|
42
|
+
...aliases[key],
|
43
|
+
name: key,
|
44
|
+
aliasName: aliases[key].name
|
45
|
+
}));
|
46
|
+
}
|
47
|
+
const appScope = effectScope();
|
48
|
+
appScope.run(() => {
|
49
|
+
theme.install(app);
|
50
|
+
});
|
51
|
+
app.onUnmount(() => appScope.stop());
|
52
|
+
app.provide(DefaultsSymbol, defaults);
|
53
|
+
app.provide(DisplaySymbol, display);
|
54
|
+
app.provide(ThemeSymbol, theme);
|
55
|
+
app.provide(IconSymbol, icons);
|
56
|
+
app.provide(LocaleSymbol, locale);
|
57
|
+
app.provide(DateOptionsSymbol, date.options);
|
58
|
+
app.provide(DateAdapterSymbol, date.instance);
|
59
|
+
app.provide(GoToSymbol, goTo);
|
60
|
+
if (IN_BROWSER && options.ssr) {
|
61
|
+
if (app.$nuxt) {
|
62
|
+
app.$nuxt.hook('app:suspense:resolve', () => {
|
63
|
+
display.update();
|
64
|
+
});
|
65
|
+
} else {
|
66
|
+
const {
|
67
|
+
mount
|
68
|
+
} = app;
|
69
|
+
app.mount = function () {
|
70
|
+
const vm = mount(...arguments);
|
71
|
+
nextTick(() => display.update());
|
72
|
+
app.mount = mount;
|
73
|
+
return vm;
|
74
|
+
};
|
75
|
+
}
|
76
|
+
}
|
77
|
+
if (typeof __VUE_OPTIONS_API__ !== 'boolean' || __VUE_OPTIONS_API__) {
|
78
|
+
app.mixin({
|
79
|
+
computed: {
|
80
|
+
$vuetify() {
|
81
|
+
return reactive({
|
82
|
+
defaults: inject.call(this, DefaultsSymbol),
|
83
|
+
display: inject.call(this, DisplaySymbol),
|
84
|
+
theme: inject.call(this, ThemeSymbol),
|
85
|
+
icons: inject.call(this, IconSymbol),
|
86
|
+
locale: inject.call(this, LocaleSymbol),
|
87
|
+
date: inject.call(this, DateAdapterSymbol)
|
88
|
+
});
|
89
|
+
}
|
90
|
+
}
|
58
91
|
});
|
59
|
-
} else {
|
60
|
-
const {
|
61
|
-
mount
|
62
|
-
} = app;
|
63
|
-
app.mount = function () {
|
64
|
-
const vm = mount(...arguments);
|
65
|
-
nextTick(() => display.update());
|
66
|
-
app.mount = mount;
|
67
|
-
return vm;
|
68
|
-
};
|
69
92
|
}
|
70
93
|
}
|
71
|
-
|
72
|
-
|
73
|
-
computed: {
|
74
|
-
$vuetify() {
|
75
|
-
return reactive({
|
76
|
-
defaults: inject.call(this, DefaultsSymbol),
|
77
|
-
display: inject.call(this, DisplaySymbol),
|
78
|
-
theme: inject.call(this, ThemeSymbol),
|
79
|
-
icons: inject.call(this, IconSymbol),
|
80
|
-
locale: inject.call(this, LocaleSymbol),
|
81
|
-
date: inject.call(this, DateAdapterSymbol)
|
82
|
-
});
|
83
|
-
}
|
84
|
-
}
|
85
|
-
});
|
94
|
+
function unmount() {
|
95
|
+
scope.stop();
|
86
96
|
}
|
87
|
-
|
88
|
-
|
89
|
-
|
90
|
-
|
91
|
-
|
92
|
-
|
93
|
-
|
94
|
-
|
95
|
-
|
96
|
-
|
97
|
-
|
97
|
+
return {
|
98
|
+
install,
|
99
|
+
unmount,
|
100
|
+
defaults,
|
101
|
+
display,
|
102
|
+
theme,
|
103
|
+
icons,
|
104
|
+
locale,
|
105
|
+
date,
|
106
|
+
goTo
|
107
|
+
};
|
108
|
+
});
|
98
109
|
}
|
99
|
-
export const version = "3.7.7-dev.2025-01-
|
110
|
+
export const version = "3.7.7-dev.2025-01-23";
|
100
111
|
createVuetify.version = version;
|
101
112
|
|
102
113
|
// Vue's inject() can only be used in setup
|
package/lib/framework.js.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"framework.js","names":["createDate","DateAdapterSymbol","DateOptionsSymbol","createDefaults","DefaultsSymbol","createDisplay","DisplaySymbol","createGoTo","GoToSymbol","createIcons","IconSymbol","createLocale","LocaleSymbol","createTheme","ThemeSymbol","nextTick","reactive","defineComponent","IN_BROWSER","mergeDeep","createVuetify","vuetify","arguments","length","undefined","blueprint","rest","options","aliases","components","directives","defaults","display","ssr","theme","icons","locale","date","goTo","install","app","key","directive","component","name","aliasName","provide","instance","$nuxt","hook","update","mount","vm","__VUE_OPTIONS_API__","mixin","computed","$vuetify","inject","call","version","$","provides","parent","vnode","appContext"],"sources":["../src/framework.ts"],"sourcesContent":["// Composables\nimport { createDate, DateAdapterSymbol, DateOptionsSymbol } from '@/composables/date/date'\nimport { createDefaults, DefaultsSymbol } from '@/composables/defaults'\nimport { createDisplay, DisplaySymbol } from '@/composables/display'\nimport { createGoTo, GoToSymbol } from '@/composables/goto'\nimport { createIcons, IconSymbol } from '@/composables/icons'\nimport { createLocale, LocaleSymbol } from '@/composables/locale'\nimport { createTheme, ThemeSymbol } from '@/composables/theme'\n\n// Utilities\nimport { nextTick, reactive } from 'vue'\nimport { defineComponent, IN_BROWSER, mergeDeep } from '@/util'\n\n// Types\nimport type { App, ComponentPublicInstance, InjectionKey } from 'vue'\nimport type { DateOptions } from '@/composables/date'\nimport type { DefaultsOptions } from '@/composables/defaults'\nimport type { DisplayOptions, SSROptions } from '@/composables/display'\nimport type { GoToOptions } from '@/composables/goto'\nimport type { IconOptions } from '@/composables/icons'\nimport type { LocaleOptions, RtlOptions } from '@/composables/locale'\nimport type { ThemeOptions } from '@/composables/theme'\nexport * from './composables'\nexport type { DateOptions, DateInstance, DateModule } from '@/composables/date'\n\nexport interface VuetifyOptions {\n aliases?: Record<string, any>\n blueprint?: Blueprint\n components?: Record<string, any>\n date?: DateOptions\n directives?: Record<string, any>\n defaults?: DefaultsOptions\n display?: DisplayOptions\n goTo?: GoToOptions\n theme?: ThemeOptions\n icons?: IconOptions\n locale?: LocaleOptions & RtlOptions\n ssr?: SSROptions\n}\n\nexport interface Blueprint extends Omit<VuetifyOptions, 'blueprint'> {}\n\nexport function createVuetify (vuetify: VuetifyOptions = {}) {\n const { blueprint, ...rest } = vuetify\n const options: VuetifyOptions = mergeDeep(blueprint, rest)\n const {\n aliases = {},\n components = {},\n directives = {},\n } = options\n\n const defaults = createDefaults(options.defaults)\n
|
1
|
+
{"version":3,"file":"framework.js","names":["createDate","DateAdapterSymbol","DateOptionsSymbol","createDefaults","DefaultsSymbol","createDisplay","DisplaySymbol","createGoTo","GoToSymbol","createIcons","IconSymbol","createLocale","LocaleSymbol","createTheme","ThemeSymbol","effectScope","nextTick","reactive","defineComponent","IN_BROWSER","mergeDeep","createVuetify","vuetify","arguments","length","undefined","blueprint","rest","options","aliases","components","directives","scope","run","defaults","display","ssr","theme","icons","locale","date","goTo","install","app","key","directive","component","name","aliasName","appScope","onUnmount","stop","provide","instance","$nuxt","hook","update","mount","vm","__VUE_OPTIONS_API__","mixin","computed","$vuetify","inject","call","unmount","version","$","provides","parent","vnode","appContext"],"sources":["../src/framework.ts"],"sourcesContent":["// Composables\nimport { createDate, DateAdapterSymbol, DateOptionsSymbol } from '@/composables/date/date'\nimport { createDefaults, DefaultsSymbol } from '@/composables/defaults'\nimport { createDisplay, DisplaySymbol } from '@/composables/display'\nimport { createGoTo, GoToSymbol } from '@/composables/goto'\nimport { createIcons, IconSymbol } from '@/composables/icons'\nimport { createLocale, LocaleSymbol } from '@/composables/locale'\nimport { createTheme, ThemeSymbol } from '@/composables/theme'\n\n// Utilities\nimport { effectScope, nextTick, reactive } from 'vue'\nimport { defineComponent, IN_BROWSER, mergeDeep } from '@/util'\n\n// Types\nimport type { App, ComponentPublicInstance, InjectionKey } from 'vue'\nimport type { DateOptions } from '@/composables/date'\nimport type { DefaultsOptions } from '@/composables/defaults'\nimport type { DisplayOptions, SSROptions } from '@/composables/display'\nimport type { GoToOptions } from '@/composables/goto'\nimport type { IconOptions } from '@/composables/icons'\nimport type { LocaleOptions, RtlOptions } from '@/composables/locale'\nimport type { ThemeOptions } from '@/composables/theme'\nexport * from './composables'\nexport type { DateOptions, DateInstance, DateModule } from '@/composables/date'\n\nexport interface VuetifyOptions {\n aliases?: Record<string, any>\n blueprint?: Blueprint\n components?: Record<string, any>\n date?: DateOptions\n directives?: Record<string, any>\n defaults?: DefaultsOptions\n display?: DisplayOptions\n goTo?: GoToOptions\n theme?: ThemeOptions\n icons?: IconOptions\n locale?: LocaleOptions & RtlOptions\n ssr?: SSROptions\n}\n\nexport interface Blueprint extends Omit<VuetifyOptions, 'blueprint'> {}\n\nexport function createVuetify (vuetify: VuetifyOptions = {}) {\n const { blueprint, ...rest } = vuetify\n const options: VuetifyOptions = mergeDeep(blueprint, rest)\n const {\n aliases = {},\n components = {},\n directives = {},\n } = options\n\n const scope = effectScope()\n return scope.run(() => {\n const defaults = createDefaults(options.defaults)\n const display = createDisplay(options.display, options.ssr)\n const theme = createTheme(options.theme)\n const icons = createIcons(options.icons)\n const locale = createLocale(options.locale)\n const date = createDate(options.date, locale)\n const goTo = createGoTo(options.goTo, locale)\n\n function install (app: App) {\n for (const key in directives) {\n app.directive(key, directives[key])\n }\n\n for (const key in components) {\n app.component(key, components[key])\n }\n\n for (const key in aliases) {\n app.component(key, defineComponent({\n ...aliases[key],\n name: key,\n aliasName: aliases[key].name,\n }))\n }\n\n const appScope = effectScope()\n appScope.run(() => {\n theme.install(app)\n })\n app.onUnmount(() => appScope.stop())\n\n app.provide(DefaultsSymbol, defaults)\n app.provide(DisplaySymbol, display)\n app.provide(ThemeSymbol, theme)\n app.provide(IconSymbol, icons)\n app.provide(LocaleSymbol, locale)\n app.provide(DateOptionsSymbol, date.options)\n app.provide(DateAdapterSymbol, date.instance)\n app.provide(GoToSymbol, goTo)\n\n if (IN_BROWSER && options.ssr) {\n if (app.$nuxt) {\n app.$nuxt.hook('app:suspense:resolve', () => {\n display.update()\n })\n } else {\n const { mount } = app\n app.mount = (...args) => {\n const vm = mount(...args)\n nextTick(() => display.update())\n app.mount = mount\n return vm\n }\n }\n }\n\n if (typeof __VUE_OPTIONS_API__ !== 'boolean' || __VUE_OPTIONS_API__) {\n app.mixin({\n computed: {\n $vuetify () {\n return reactive({\n defaults: inject.call(this, DefaultsSymbol),\n display: inject.call(this, DisplaySymbol),\n theme: inject.call(this, ThemeSymbol),\n icons: inject.call(this, IconSymbol),\n locale: inject.call(this, LocaleSymbol),\n date: inject.call(this, DateAdapterSymbol),\n })\n },\n },\n })\n }\n }\n\n function unmount () {\n scope.stop()\n }\n\n return {\n install,\n unmount,\n defaults,\n display,\n theme,\n icons,\n locale,\n date,\n goTo,\n }\n })\n}\n\nexport const version = __VUETIFY_VERSION__\ncreateVuetify.version = version\n\n// Vue's inject() can only be used in setup\nfunction inject (this: ComponentPublicInstance, key: InjectionKey<any> | string) {\n const vm = this.$\n\n const provides = vm.parent?.provides ?? vm.vnode.appContext?.provides\n\n if (provides && (key as any) in provides) {\n return provides[(key as string)]\n }\n}\n"],"mappings":"AAAA;AAAA,SACSA,UAAU,EAAEC,iBAAiB,EAAEC,iBAAiB;AAAA,SAChDC,cAAc,EAAEC,cAAc;AAAA,SAC9BC,aAAa,EAAEC,aAAa;AAAA,SAC5BC,UAAU,EAAEC,UAAU;AAAA,SACtBC,WAAW,EAAEC,UAAU;AAAA,SACvBC,YAAY,EAAEC,YAAY;AAAA,SAC1BC,WAAW,EAAEC,WAAW,kCAEjC;AACA,SAASC,WAAW,EAAEC,QAAQ,EAAEC,QAAQ,QAAQ,KAAK;AAAA,SAC5CC,eAAe,EAAEC,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CAAC;EACH,CAAC,CAAC;AACJ;AAEA,OAAO,MAAMyB,OAAO,yBAAsB;AAC1C7C,aAAa,CAAC6C,OAAO,GAAGA,OAAO;;AAE/B;AACA,SAASH,MAAMA,CAAiCnB,GAA+B,EAAE;EAC/E,MAAMc,EAAE,GAAG,IAAI,CAACS,CAAC;EAEjB,MAAMC,QAAQ,GAAGV,EAAE,CAACW,MAAM,EAAED,QAAQ,IAAIV,EAAE,CAACY,KAAK,CAACC,UAAU,EAAEH,QAAQ;EAErE,IAAIA,QAAQ,IAAKxB,GAAG,IAAYwB,QAAQ,EAAE;IACxC,OAAOA,QAAQ,CAAExB,GAAG,CAAY;EAClC;AACF","ignoreList":[]}
|
@@ -4,6 +4,7 @@ export * from "../entry-bundler";
|
|
4
4
|
export { components };
|
5
5
|
export declare const createVuetify: (options?: VuetifyOptions) => {
|
6
6
|
install: (app: import("vue").App) => void;
|
7
|
+
unmount: () => void;
|
7
8
|
defaults: import("vue").Ref<import("../framework").DefaultsInstance, import("../framework").DefaultsInstance>;
|
8
9
|
display: import("../framework").DisplayInstance;
|
9
10
|
theme: import("../framework").ThemeInstance & {
|
@@ -71,4 +72,4 @@ export declare const createVuetify: (options?: VuetifyOptions) => {
|
|
71
72
|
};
|
72
73
|
};
|
73
74
|
goTo: import("../framework").GoToInstance;
|
74
|
-
};
|
75
|
+
} | undefined;
|