@vuetify/nightly 3.7.13-master.2025-02-21 → 3.7.13-master.2025-02-25
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 +21 -3
- package/dist/json/attributes.json +3149 -3145
- package/dist/json/importMap-labs.json +20 -20
- package/dist/json/importMap.json +172 -172
- package/dist/json/tags.json +1 -0
- package/dist/json/web-types.json +5882 -5610
- package/dist/vuetify-labs.css +3509 -3503
- package/dist/vuetify-labs.d.ts +219 -0
- package/dist/vuetify-labs.esm.js +18 -10
- package/dist/vuetify-labs.esm.js.map +1 -1
- package/dist/vuetify-labs.js +18 -10
- package/dist/vuetify-labs.min.css +2 -2
- package/dist/vuetify.css +4010 -4010
- package/dist/vuetify.d.ts +61 -61
- package/dist/vuetify.esm.js +4 -4
- package/dist/vuetify.esm.js.map +1 -1
- package/dist/vuetify.js +4 -4
- package/dist/vuetify.js.map +1 -1
- package/dist/vuetify.min.css +2 -2
- package/dist/vuetify.min.js +3 -3
- package/dist/vuetify.min.js.map +1 -1
- package/lib/composables/density.mjs +1 -1
- package/lib/composables/density.mjs.map +1 -1
- package/lib/entry-bundler.mjs +1 -1
- package/lib/framework.mjs +1 -1
- package/lib/index.d.mts +61 -61
- package/lib/labs/VDateInput/VDateInput.mjs.map +1 -1
- package/lib/labs/VDateInput/index.d.mts +248 -1
- package/lib/labs/VNumberInput/VNumberInput.mjs +2 -2
- package/lib/labs/VNumberInput/VNumberInput.mjs.map +1 -1
- package/lib/labs/VTimePicker/VTimePickerControls.sass +16 -16
- package/lib/labs/VTimePicker/_variables.scss +12 -12
- package/lib/labs/VTreeview/VTreeview.mjs +5 -1
- package/lib/labs/VTreeview/VTreeview.mjs.map +1 -1
- package/lib/labs/VTreeview/VTreeviewChildren.mjs +4 -1
- package/lib/labs/VTreeview/VTreeviewChildren.mjs.map +1 -1
- package/lib/labs/VTreeview/VTreeviewItem.css +15 -9
- package/lib/labs/VTreeview/VTreeviewItem.mjs +4 -2
- package/lib/labs/VTreeview/VTreeviewItem.mjs.map +1 -1
- package/lib/labs/VTreeview/VTreeviewItem.sass +16 -10
- package/lib/labs/VTreeview/_variables.scss +2 -5
- package/lib/labs/VTreeview/index.d.mts +9 -0
- package/lib/labs/components.d.mts +280 -61
- package/lib/locale/ja.mjs +19 -19
- package/lib/locale/ja.mjs.map +1 -1
- package/lib/styles/tools/_functions.sass +1 -1
- package/package.json +1 -1
@@ -3,7 +3,7 @@ import { computed } from 'vue';
|
|
3
3
|
import { getCurrentInstanceName, propsFactory } from "../util/index.mjs"; // Types
|
4
4
|
const allowedDensities = [null, 'default', 'comfortable', 'compact'];
|
5
5
|
|
6
|
-
// typeof allowedDensities[number]
|
6
|
+
// typeof allowedDensities[number] evaluates to any
|
7
7
|
// when generating api types for whatever reason.
|
8
8
|
|
9
9
|
// Composables
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"density.mjs","names":["computed","getCurrentInstanceName","propsFactory","allowedDensities","makeDensityProps","density","type","String","default","validator","v","includes","useDensity","props","name","arguments","length","undefined","densityClasses"],"sources":["../../src/composables/density.ts"],"sourcesContent":["// Utilities\nimport { computed } from 'vue'\nimport { getCurrentInstanceName, propsFactory } from '@/util'\n\n// Types\nimport type { PropType } from 'vue'\n\nconst allowedDensities = [null, 'default', 'comfortable', 'compact'] as const\n\n// typeof allowedDensities[number]
|
1
|
+
{"version":3,"file":"density.mjs","names":["computed","getCurrentInstanceName","propsFactory","allowedDensities","makeDensityProps","density","type","String","default","validator","v","includes","useDensity","props","name","arguments","length","undefined","densityClasses"],"sources":["../../src/composables/density.ts"],"sourcesContent":["// Utilities\nimport { computed } from 'vue'\nimport { getCurrentInstanceName, propsFactory } from '@/util'\n\n// Types\nimport type { PropType } from 'vue'\n\nconst allowedDensities = [null, 'default', 'comfortable', 'compact'] as const\n\n// typeof allowedDensities[number] evaluates to any\n// when generating api types for whatever reason.\nexport type Density = null | 'default' | 'comfortable' | 'compact'\n\nexport interface DensityProps {\n density?: Density\n}\n\n// Composables\nexport const makeDensityProps = propsFactory({\n density: {\n type: String as PropType<Density>,\n default: 'default',\n validator: (v: any) => allowedDensities.includes(v),\n },\n}, 'density')\n\nexport function useDensity (\n props: DensityProps,\n name = getCurrentInstanceName(),\n) {\n const densityClasses = computed(() => {\n return `${name}--density-${props.density}`\n })\n\n return { densityClasses }\n}\n"],"mappings":"AAAA;AACA,SAASA,QAAQ,QAAQ,KAAK;AAAA,SACrBC,sBAAsB,EAAEC,YAAY,6BAE7C;AAGA,MAAMC,gBAAgB,GAAG,CAAC,IAAI,EAAE,SAAS,EAAE,aAAa,EAAE,SAAS,CAAU;;AAE7E;AACA;;AAOA;AACA,OAAO,MAAMC,gBAAgB,GAAGF,YAAY,CAAC;EAC3CG,OAAO,EAAE;IACPC,IAAI,EAAEC,MAA2B;IACjCC,OAAO,EAAE,SAAS;IAClBC,SAAS,EAAGC,CAAM,IAAKP,gBAAgB,CAACQ,QAAQ,CAACD,CAAC;EACpD;AACF,CAAC,EAAE,SAAS,CAAC;AAEb,OAAO,SAASE,UAAUA,CACxBC,KAAmB,EAEnB;EAAA,IADAC,IAAI,GAAAC,SAAA,CAAAC,MAAA,QAAAD,SAAA,QAAAE,SAAA,GAAAF,SAAA,MAAGd,sBAAsB,CAAC,CAAC;EAE/B,MAAMiB,cAAc,GAAGlB,QAAQ,CAAC,MAAM;IACpC,OAAO,GAAGc,IAAI,aAAaD,KAAK,CAACR,OAAO,EAAE;EAC5C,CAAC,CAAC;EAEF,OAAO;IAAEa;EAAe,CAAC;AAC3B","ignoreList":[]}
|
package/lib/entry-bundler.mjs
CHANGED
@@ -16,7 +16,7 @@ export const createVuetify = function () {
|
|
16
16
|
...options
|
17
17
|
});
|
18
18
|
};
|
19
|
-
export const version = "3.7.13-master.2025-02-
|
19
|
+
export const version = "3.7.13-master.2025-02-25";
|
20
20
|
createVuetify.version = version;
|
21
21
|
export { blueprints, components, directives };
|
22
22
|
export * from "./composables/index.mjs";
|
package/lib/framework.mjs
CHANGED
package/lib/index.d.mts
CHANGED
@@ -486,42 +486,33 @@ declare module 'vue' {
|
|
486
486
|
$children?: VNodeChild
|
487
487
|
}
|
488
488
|
export interface GlobalComponents {
|
489
|
-
VApp: typeof import('vuetify/components')['VApp']
|
490
|
-
VAutocomplete: typeof import('vuetify/components')['VAutocomplete']
|
491
489
|
VAlert: typeof import('vuetify/components')['VAlert']
|
492
490
|
VAlertTitle: typeof import('vuetify/components')['VAlertTitle']
|
493
|
-
|
494
|
-
|
495
|
-
|
491
|
+
VApp: typeof import('vuetify/components')['VApp']
|
492
|
+
VAvatar: typeof import('vuetify/components')['VAvatar']
|
493
|
+
VBadge: typeof import('vuetify/components')['VBadge']
|
496
494
|
VBanner: typeof import('vuetify/components')['VBanner']
|
497
495
|
VBannerActions: typeof import('vuetify/components')['VBannerActions']
|
498
496
|
VBannerText: typeof import('vuetify/components')['VBannerText']
|
497
|
+
VAppBar: typeof import('vuetify/components')['VAppBar']
|
498
|
+
VAppBarNavIcon: typeof import('vuetify/components')['VAppBarNavIcon']
|
499
|
+
VAppBarTitle: typeof import('vuetify/components')['VAppBarTitle']
|
500
|
+
VBottomNavigation: typeof import('vuetify/components')['VBottomNavigation']
|
501
|
+
VAutocomplete: typeof import('vuetify/components')['VAutocomplete']
|
502
|
+
VBottomSheet: typeof import('vuetify/components')['VBottomSheet']
|
499
503
|
VBreadcrumbs: typeof import('vuetify/components')['VBreadcrumbs']
|
500
504
|
VBreadcrumbsItem: typeof import('vuetify/components')['VBreadcrumbsItem']
|
501
505
|
VBreadcrumbsDivider: typeof import('vuetify/components')['VBreadcrumbsDivider']
|
502
|
-
VBottomNavigation: typeof import('vuetify/components')['VBottomNavigation']
|
503
|
-
VBottomSheet: typeof import('vuetify/components')['VBottomSheet']
|
504
|
-
VAvatar: typeof import('vuetify/components')['VAvatar']
|
505
|
-
VBtnGroup: typeof import('vuetify/components')['VBtnGroup']
|
506
506
|
VBtnToggle: typeof import('vuetify/components')['VBtnToggle']
|
507
|
+
VBtnGroup: typeof import('vuetify/components')['VBtnGroup']
|
507
508
|
VCarousel: typeof import('vuetify/components')['VCarousel']
|
508
509
|
VCarouselItem: typeof import('vuetify/components')['VCarouselItem']
|
509
|
-
VBadge: typeof import('vuetify/components')['VBadge']
|
510
|
-
VChip: typeof import('vuetify/components')['VChip']
|
511
|
-
VCard: typeof import('vuetify/components')['VCard']
|
512
|
-
VCardActions: typeof import('vuetify/components')['VCardActions']
|
513
|
-
VCardItem: typeof import('vuetify/components')['VCardItem']
|
514
|
-
VCardSubtitle: typeof import('vuetify/components')['VCardSubtitle']
|
515
|
-
VCardText: typeof import('vuetify/components')['VCardText']
|
516
|
-
VCardTitle: typeof import('vuetify/components')['VCardTitle']
|
517
|
-
VCode: typeof import('vuetify/components')['VCode']
|
518
510
|
VBtn: typeof import('vuetify/components')['VBtn']
|
519
|
-
VCheckbox: typeof import('vuetify/components')['VCheckbox']
|
520
|
-
VCheckboxBtn: typeof import('vuetify/components')['VCheckboxBtn']
|
521
|
-
VCombobox: typeof import('vuetify/components')['VCombobox']
|
522
511
|
VChipGroup: typeof import('vuetify/components')['VChipGroup']
|
523
|
-
VColorPicker: typeof import('vuetify/components')['VColorPicker']
|
524
512
|
VCounter: typeof import('vuetify/components')['VCounter']
|
513
|
+
VColorPicker: typeof import('vuetify/components')['VColorPicker']
|
514
|
+
VCode: typeof import('vuetify/components')['VCode']
|
515
|
+
VCombobox: typeof import('vuetify/components')['VCombobox']
|
525
516
|
VDataTable: typeof import('vuetify/components')['VDataTable']
|
526
517
|
VDataTableHeaders: typeof import('vuetify/components')['VDataTableHeaders']
|
527
518
|
VDataTableFooter: typeof import('vuetify/components')['VDataTableFooter']
|
@@ -535,24 +526,27 @@ declare module 'vue' {
|
|
535
526
|
VDatePickerMonth: typeof import('vuetify/components')['VDatePickerMonth']
|
536
527
|
VDatePickerMonths: typeof import('vuetify/components')['VDatePickerMonths']
|
537
528
|
VDatePickerYears: typeof import('vuetify/components')['VDatePickerYears']
|
538
|
-
VDivider: typeof import('vuetify/components')['VDivider']
|
539
|
-
VEmptyState: typeof import('vuetify/components')['VEmptyState']
|
540
|
-
VFab: typeof import('vuetify/components')['VFab']
|
541
529
|
VExpansionPanels: typeof import('vuetify/components')['VExpansionPanels']
|
542
530
|
VExpansionPanel: typeof import('vuetify/components')['VExpansionPanel']
|
543
531
|
VExpansionPanelText: typeof import('vuetify/components')['VExpansionPanelText']
|
544
532
|
VExpansionPanelTitle: typeof import('vuetify/components')['VExpansionPanelTitle']
|
533
|
+
VCheckbox: typeof import('vuetify/components')['VCheckbox']
|
534
|
+
VCheckboxBtn: typeof import('vuetify/components')['VCheckboxBtn']
|
535
|
+
VChip: typeof import('vuetify/components')['VChip']
|
536
|
+
VDialog: typeof import('vuetify/components')['VDialog']
|
537
|
+
VDivider: typeof import('vuetify/components')['VDivider']
|
538
|
+
VEmptyState: typeof import('vuetify/components')['VEmptyState']
|
545
539
|
VField: typeof import('vuetify/components')['VField']
|
546
540
|
VFieldLabel: typeof import('vuetify/components')['VFieldLabel']
|
547
|
-
|
548
|
-
VDialog: typeof import('vuetify/components')['VDialog']
|
549
|
-
VImg: typeof import('vuetify/components')['VImg']
|
541
|
+
VFab: typeof import('vuetify/components')['VFab']
|
550
542
|
VFileInput: typeof import('vuetify/components')['VFileInput']
|
543
|
+
VFooter: typeof import('vuetify/components')['VFooter']
|
551
544
|
VIcon: typeof import('vuetify/components')['VIcon']
|
552
545
|
VComponentIcon: typeof import('vuetify/components')['VComponentIcon']
|
553
546
|
VSvgIcon: typeof import('vuetify/components')['VSvgIcon']
|
554
547
|
VLigatureIcon: typeof import('vuetify/components')['VLigatureIcon']
|
555
548
|
VClassIcon: typeof import('vuetify/components')['VClassIcon']
|
549
|
+
VImg: typeof import('vuetify/components')['VImg']
|
556
550
|
VInfiniteScroll: typeof import('vuetify/components')['VInfiniteScroll']
|
557
551
|
VInput: typeof import('vuetify/components')['VInput']
|
558
552
|
VItemGroup: typeof import('vuetify/components')['VItemGroup']
|
@@ -567,72 +561,77 @@ declare module 'vue' {
|
|
567
561
|
VListItemSubtitle: typeof import('vuetify/components')['VListItemSubtitle']
|
568
562
|
VListItemTitle: typeof import('vuetify/components')['VListItemTitle']
|
569
563
|
VListSubheader: typeof import('vuetify/components')['VListSubheader']
|
570
|
-
VMain: typeof import('vuetify/components')['VMain']
|
571
564
|
VKbd: typeof import('vuetify/components')['VKbd']
|
572
|
-
|
565
|
+
VMain: typeof import('vuetify/components')['VMain']
|
573
566
|
VNavigationDrawer: typeof import('vuetify/components')['VNavigationDrawer']
|
567
|
+
VOtpInput: typeof import('vuetify/components')['VOtpInput']
|
574
568
|
VMessages: typeof import('vuetify/components')['VMessages']
|
575
|
-
VPagination: typeof import('vuetify/components')['VPagination']
|
576
|
-
VProgressLinear: typeof import('vuetify/components')['VProgressLinear']
|
577
569
|
VProgressCircular: typeof import('vuetify/components')['VProgressCircular']
|
578
|
-
|
570
|
+
VOverlay: typeof import('vuetify/components')['VOverlay']
|
571
|
+
VMenu: typeof import('vuetify/components')['VMenu']
|
572
|
+
VProgressLinear: typeof import('vuetify/components')['VProgressLinear']
|
579
573
|
VRadioGroup: typeof import('vuetify/components')['VRadioGroup']
|
580
574
|
VSelect: typeof import('vuetify/components')['VSelect']
|
581
|
-
|
575
|
+
VSelectionControl: typeof import('vuetify/components')['VSelectionControl']
|
582
576
|
VRating: typeof import('vuetify/components')['VRating']
|
583
577
|
VSelectionControlGroup: typeof import('vuetify/components')['VSelectionControlGroup']
|
584
|
-
|
578
|
+
VPagination: typeof import('vuetify/components')['VPagination']
|
585
579
|
VSkeletonLoader: typeof import('vuetify/components')['VSkeletonLoader']
|
586
|
-
VSelectionControl: typeof import('vuetify/components')['VSelectionControl']
|
587
580
|
VSlideGroup: typeof import('vuetify/components')['VSlideGroup']
|
588
581
|
VSlideGroupItem: typeof import('vuetify/components')['VSlideGroupItem']
|
589
|
-
|
582
|
+
VSheet: typeof import('vuetify/components')['VSheet']
|
590
583
|
VSystemBar: typeof import('vuetify/components')['VSystemBar']
|
591
584
|
VSnackbar: typeof import('vuetify/components')['VSnackbar']
|
585
|
+
VTab: typeof import('vuetify/components')['VTab']
|
586
|
+
VTabs: typeof import('vuetify/components')['VTabs']
|
587
|
+
VTabsWindow: typeof import('vuetify/components')['VTabsWindow']
|
588
|
+
VTabsWindowItem: typeof import('vuetify/components')['VTabsWindowItem']
|
589
|
+
VTable: typeof import('vuetify/components')['VTable']
|
592
590
|
VStepper: typeof import('vuetify/components')['VStepper']
|
593
591
|
VStepperActions: typeof import('vuetify/components')['VStepperActions']
|
594
592
|
VStepperHeader: typeof import('vuetify/components')['VStepperHeader']
|
595
593
|
VStepperItem: typeof import('vuetify/components')['VStepperItem']
|
596
594
|
VStepperWindow: typeof import('vuetify/components')['VStepperWindow']
|
597
595
|
VStepperWindowItem: typeof import('vuetify/components')['VStepperWindowItem']
|
598
|
-
VTable: typeof import('vuetify/components')['VTable']
|
599
|
-
VSwitch: typeof import('vuetify/components')['VSwitch']
|
600
|
-
VTab: typeof import('vuetify/components')['VTab']
|
601
|
-
VTabs: typeof import('vuetify/components')['VTabs']
|
602
|
-
VTabsWindow: typeof import('vuetify/components')['VTabsWindow']
|
603
|
-
VTabsWindowItem: typeof import('vuetify/components')['VTabsWindowItem']
|
604
596
|
VTextarea: typeof import('vuetify/components')['VTextarea']
|
605
|
-
VTextField: typeof import('vuetify/components')['VTextField']
|
606
|
-
VToolbar: typeof import('vuetify/components')['VToolbar']
|
607
|
-
VToolbarTitle: typeof import('vuetify/components')['VToolbarTitle']
|
608
|
-
VToolbarItems: typeof import('vuetify/components')['VToolbarItems']
|
609
597
|
VTimeline: typeof import('vuetify/components')['VTimeline']
|
610
598
|
VTimelineItem: typeof import('vuetify/components')['VTimelineItem']
|
611
599
|
VTooltip: typeof import('vuetify/components')['VTooltip']
|
600
|
+
VToolbar: typeof import('vuetify/components')['VToolbar']
|
601
|
+
VToolbarTitle: typeof import('vuetify/components')['VToolbarTitle']
|
602
|
+
VToolbarItems: typeof import('vuetify/components')['VToolbarItems']
|
603
|
+
VSwitch: typeof import('vuetify/components')['VSwitch']
|
604
|
+
VTextField: typeof import('vuetify/components')['VTextField']
|
612
605
|
VWindow: typeof import('vuetify/components')['VWindow']
|
613
606
|
VWindowItem: typeof import('vuetify/components')['VWindowItem']
|
607
|
+
VCard: typeof import('vuetify/components')['VCard']
|
608
|
+
VCardActions: typeof import('vuetify/components')['VCardActions']
|
609
|
+
VCardItem: typeof import('vuetify/components')['VCardItem']
|
610
|
+
VCardSubtitle: typeof import('vuetify/components')['VCardSubtitle']
|
611
|
+
VCardText: typeof import('vuetify/components')['VCardText']
|
612
|
+
VCardTitle: typeof import('vuetify/components')['VCardTitle']
|
614
613
|
VConfirmEdit: typeof import('vuetify/components')['VConfirmEdit']
|
615
|
-
VDefaultsProvider: typeof import('vuetify/components')['VDefaultsProvider']
|
616
|
-
VForm: typeof import('vuetify/components')['VForm']
|
617
614
|
VDataIterator: typeof import('vuetify/components')['VDataIterator']
|
618
|
-
|
619
|
-
|
620
|
-
VRow: typeof import('vuetify/components')['VRow']
|
621
|
-
VSpacer: typeof import('vuetify/components')['VSpacer']
|
615
|
+
VForm: typeof import('vuetify/components')['VForm']
|
616
|
+
VDefaultsProvider: typeof import('vuetify/components')['VDefaultsProvider']
|
622
617
|
VHover: typeof import('vuetify/components')['VHover']
|
623
618
|
VLayout: typeof import('vuetify/components')['VLayout']
|
624
619
|
VLayoutItem: typeof import('vuetify/components')['VLayoutItem']
|
625
|
-
VLazy: typeof import('vuetify/components')['VLazy']
|
626
620
|
VLocaleProvider: typeof import('vuetify/components')['VLocaleProvider']
|
627
|
-
|
621
|
+
VLazy: typeof import('vuetify/components')['VLazy']
|
628
622
|
VParallax: typeof import('vuetify/components')['VParallax']
|
629
623
|
VRadio: typeof import('vuetify/components')['VRadio']
|
630
624
|
VRangeSlider: typeof import('vuetify/components')['VRangeSlider']
|
631
625
|
VResponsive: typeof import('vuetify/components')['VResponsive']
|
626
|
+
VNoSsr: typeof import('vuetify/components')['VNoSsr']
|
632
627
|
VSparkline: typeof import('vuetify/components')['VSparkline']
|
628
|
+
VSlider: typeof import('vuetify/components')['VSlider']
|
633
629
|
VSpeedDial: typeof import('vuetify/components')['VSpeedDial']
|
634
630
|
VThemeProvider: typeof import('vuetify/components')['VThemeProvider']
|
635
|
-
|
631
|
+
VContainer: typeof import('vuetify/components')['VContainer']
|
632
|
+
VCol: typeof import('vuetify/components')['VCol']
|
633
|
+
VRow: typeof import('vuetify/components')['VRow']
|
634
|
+
VSpacer: typeof import('vuetify/components')['VSpacer']
|
636
635
|
VValidation: typeof import('vuetify/components')['VValidation']
|
637
636
|
VFabTransition: typeof import('vuetify/components')['VFabTransition']
|
638
637
|
VDialogBottomTransition: typeof import('vuetify/components')['VDialogBottomTransition']
|
@@ -650,6 +649,9 @@ declare module 'vue' {
|
|
650
649
|
VExpandTransition: typeof import('vuetify/components')['VExpandTransition']
|
651
650
|
VExpandXTransition: typeof import('vuetify/components')['VExpandXTransition']
|
652
651
|
VDialogTransition: typeof import('vuetify/components')['VDialogTransition']
|
652
|
+
VVirtualScroll: typeof import('vuetify/components')['VVirtualScroll']
|
653
|
+
VFileUpload: typeof import('vuetify/labs/components')['VFileUpload']
|
654
|
+
VFileUploadItem: typeof import('vuetify/labs/components')['VFileUploadItem']
|
653
655
|
VCalendar: typeof import('vuetify/labs/components')['VCalendar']
|
654
656
|
VCalendarDay: typeof import('vuetify/labs/components')['VCalendarDay']
|
655
657
|
VCalendarHeader: typeof import('vuetify/labs/components')['VCalendarHeader']
|
@@ -657,19 +659,17 @@ declare module 'vue' {
|
|
657
659
|
VCalendarIntervalEvent: typeof import('vuetify/labs/components')['VCalendarIntervalEvent']
|
658
660
|
VCalendarMonthDay: typeof import('vuetify/labs/components')['VCalendarMonthDay']
|
659
661
|
VNumberInput: typeof import('vuetify/labs/components')['VNumberInput']
|
660
|
-
VFileUpload: typeof import('vuetify/labs/components')['VFileUpload']
|
661
|
-
VFileUploadItem: typeof import('vuetify/labs/components')['VFileUploadItem']
|
662
662
|
VPicker: typeof import('vuetify/labs/components')['VPicker']
|
663
663
|
VPickerTitle: typeof import('vuetify/labs/components')['VPickerTitle']
|
664
664
|
VStepperVertical: typeof import('vuetify/labs/components')['VStepperVertical']
|
665
665
|
VStepperVerticalItem: typeof import('vuetify/labs/components')['VStepperVerticalItem']
|
666
666
|
VStepperVerticalActions: typeof import('vuetify/labs/components')['VStepperVerticalActions']
|
667
|
-
VTreeview: typeof import('vuetify/labs/components')['VTreeview']
|
668
|
-
VTreeviewItem: typeof import('vuetify/labs/components')['VTreeviewItem']
|
669
|
-
VTreeviewGroup: typeof import('vuetify/labs/components')['VTreeviewGroup']
|
670
667
|
VTimePicker: typeof import('vuetify/labs/components')['VTimePicker']
|
671
668
|
VTimePickerClock: typeof import('vuetify/labs/components')['VTimePickerClock']
|
672
669
|
VTimePickerControls: typeof import('vuetify/labs/components')['VTimePickerControls']
|
670
|
+
VTreeview: typeof import('vuetify/labs/components')['VTreeview']
|
671
|
+
VTreeviewItem: typeof import('vuetify/labs/components')['VTreeviewItem']
|
672
|
+
VTreeviewGroup: typeof import('vuetify/labs/components')['VTreeviewGroup']
|
673
673
|
VDateInput: typeof import('vuetify/labs/components')['VDateInput']
|
674
674
|
VPullToRefresh: typeof import('vuetify/labs/components')['VPullToRefresh']
|
675
675
|
VSnackbarQueue: typeof import('vuetify/labs/components')['VSnackbarQueue']
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"VDateInput.mjs","names":["makeVConfirmEditProps","VConfirmEdit","makeVDatePickerProps","VDatePicker","VMenu","makeVTextFieldProps","VTextField","useDate","makeFocusProps","useFocus","forwardRefs","useLocale","useProxiedModel","computed","ref","shallowRef","genericComponent","omit","propsFactory","useRender","wrapInArray","makeVDateInputProps","hideActions","Boolean","location","type","String","default","placeholder","prependIcon","weeksInMonth","hideHeader","VDateInput","name","props","emits","val","setup","_ref","slots","t","adapter","isFocused","focus","blur","model","multiple","Array","isArray","map","item","toJsDate","date","menu","vDateInputRef","display","value","length","start","end","isValid","format","isInteractive","disabled","readonly","onKeydown","e","key","target","onClick","preventDefault","stopPropagation","onSave","onUpdateModel","confirmEditProps","filterProps","datePickerProps","textFieldProps","_createVNode","_mergeProps","class","style","undefined","_Fragment","$event","onCancel","_ref2","actions","proxyModel","save","cancel","isPristine"],"sources":["../../../src/labs/VDateInput/VDateInput.tsx"],"sourcesContent":["// Components\nimport { makeVConfirmEditProps, VConfirmEdit } from '@/components/VConfirmEdit/VConfirmEdit'\nimport { makeVDatePickerProps, VDatePicker } from '@/components/VDatePicker/VDatePicker'\nimport { VMenu } from '@/components/VMenu/VMenu'\nimport { makeVTextFieldProps, VTextField } from '@/components/VTextField/VTextField'\n\n// Composables\nimport { useDate } from '@/composables/date'\nimport { makeFocusProps, useFocus } from '@/composables/focus'\nimport { forwardRefs } from '@/composables/forwardRefs'\nimport { useLocale } from '@/composables/locale'\nimport { useProxiedModel } from '@/composables/proxiedModel'\n\n// Utilities\nimport { computed, ref, shallowRef } from 'vue'\nimport { genericComponent, omit, propsFactory, useRender, wrapInArray } from '@/util'\n\n// Types\nimport type { PropType } from 'vue'\nimport type { StrategyProps } from '@/components/VOverlay/locationStrategies'\n\n// Types\nexport type VDateInputActionsSlot = {\n save: () => void\n cancel: () => void\n isPristine: boolean\n}\n\nexport type VDateInputSlots = {\n actions: VDateInputActionsSlot\n default: never\n}\n\nexport const makeVDateInputProps = propsFactory({\n hideActions: Boolean,\n location: {\n type: String as PropType<StrategyProps['location']>,\n default: 'bottom start',\n },\n ...makeFocusProps(),\n ...makeVConfirmEditProps(),\n ...makeVTextFieldProps({\n placeholder: 'mm/dd/yyyy',\n prependIcon: '$calendar',\n }),\n ...omit(makeVDatePickerProps({\n weeksInMonth: 'dynamic' as const,\n hideHeader: true,\n }), ['active', 'location', 'rounded']),\n}, 'VDateInput')\n\nexport const VDateInput = genericComponent<VDateInputSlots>()({\n name: 'VDateInput',\n\n props: makeVDateInputProps(),\n\n emits: {\n 'update:modelValue': (val: string) => true,\n },\n\n setup (props, { slots }) {\n const { t } = useLocale()\n const adapter = useDate()\n const { isFocused, focus, blur } = useFocus(props)\n const model = useProxiedModel(\n props,\n 'modelValue',\n props.multiple ? [] : null,\n val => Array.isArray(val) ? val.map(item => adapter.toJsDate(item)) : val ? adapter.toJsDate(val) : val,\n val => Array.isArray(val) ? val.map(item => adapter.date(item)) : val ? adapter.date(val) : val\n )\n\n const menu = shallowRef(false)\n const vDateInputRef = ref()\n\n const display = computed(() => {\n const value = wrapInArray(model.value)\n\n if (!value.length) return null\n\n if (props.multiple === true) {\n return t('$vuetify.datePicker.itemsSelected', value.length)\n }\n\n if (props.multiple === 'range') {\n const start = value[0]\n const end = value[value.length - 1]\n\n return adapter.isValid(start) && adapter.isValid(end)\n ? `${adapter.format(start, 'keyboardDate')} - ${adapter.format(end, 'keyboardDate')}`\n : ''\n }\n\n return adapter.isValid(model.value) ? adapter.format(model.value, 'keyboardDate') : ''\n })\n\n const isInteractive = computed(() => !props.disabled && !props.readonly)\n\n function onKeydown (e: KeyboardEvent) {\n if (e.key !== 'Enter') return\n\n if (!menu.value || !isFocused.value) {\n menu.value = true\n\n return\n }\n\n const target = e.target as HTMLInputElement\n\n model.value = target.value\n }\n\n function onClick (e: MouseEvent) {\n e.preventDefault()\n e.stopPropagation()\n\n menu.value = true\n }\n\n function onSave () {\n menu.value = false\n }\n\n function onUpdateModel (value: string) {\n if (value != null) return\n\n model.value = null\n }\n\n useRender(() => {\n const confirmEditProps = VConfirmEdit.filterProps(props)\n const datePickerProps = VDatePicker.filterProps(omit(props, ['active', 'location', 'rounded']))\n const textFieldProps = VTextField.filterProps(props)\n\n return (\n <VTextField\n ref={ vDateInputRef }\n { ...textFieldProps }\n class={ props.class }\n style={ props.style }\n modelValue={ display.value }\n onKeydown={ isInteractive.value ? onKeydown : undefined }\n focused={ menu.value || isFocused.value }\n onFocus={ focus }\n onBlur={ blur }\n onClick:control={ isInteractive.value ? onClick : undefined }\n onClick:prepend={ isInteractive.value ? onClick : undefined }\n onUpdate:modelValue={ onUpdateModel }\n >\n {{\n ...slots,\n default: () => (\n <>\n <VMenu\n v-model={ menu.value }\n activator=\"parent\"\n min-width=\"0\"\n location={ props.location }\n closeOnContentClick={ false }\n openOnClick={ false }\n >\n <VConfirmEdit\n { ...confirmEditProps }\n v-model={ model.value }\n onSave={ onSave }\n onCancel={ () => menu.value = false }\n >\n {{\n default: ({ actions, model: proxyModel, save, cancel, isPristine }) => {\n return (\n <VDatePicker\n { ...datePickerProps }\n modelValue={ props.hideActions ? model.value : proxyModel.value }\n onUpdate:modelValue={ val => {\n if (!props.hideActions) {\n proxyModel.value = val\n } else {\n model.value = val\n\n if (!props.multiple) menu.value = false\n }\n }}\n onMousedown={ (e: MouseEvent) => e.preventDefault() }\n >\n {{\n actions: !props.hideActions ? () => slots.actions?.({ save, cancel, isPristine }) ?? actions() : undefined,\n }}\n </VDatePicker>\n )\n },\n }}\n </VConfirmEdit>\n </VMenu>\n\n { slots.default?.() }\n </>\n ),\n }}\n </VTextField>\n )\n })\n\n return forwardRefs({}, vDateInputRef)\n },\n})\n\nexport type VDateInput = InstanceType<typeof VDateInput>\n"],"mappings":";AAAA;AAAA,SACSA,qBAAqB,EAAEC,YAAY;AAAA,SACnCC,oBAAoB,EAAEC,WAAW;AAAA,SACjCC,KAAK;AAAA,SACLC,mBAAmB,EAAEC,UAAU,sDAExC;AAAA,SACSC,OAAO;AAAA,SACPC,cAAc,EAAEC,QAAQ;AAAA,SACxBC,WAAW;AAAA,SACXC,SAAS;AAAA,SACTC,eAAe,8CAExB;AACA,SAASC,QAAQ,EAAEC,GAAG,EAAEC,UAAU,QAAQ,KAAK;AAAA,SACtCC,gBAAgB,EAAEC,IAAI,EAAEC,YAAY,EAAEC,SAAS,EAAEC,WAAW,gCAErE;AAIA;AAYA,OAAO,MAAMC,mBAAmB,GAAGH,YAAY,CAAC;EAC9CI,WAAW,E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AW,EAAE;oBACtBkE,UAAU,CAAChC,KAAK,GAAGpB,GAAG;kBACxB,CAAC,MAAM;oBACLS,KAAK,CAACW,KAAK,GAAGpB,GAAG;oBAEjB,IAAI,CAACF,KAAK,CAACY,QAAQ,EAAEO,IAAI,CAACG,KAAK,GAAG,KAAK;kBACzC;gBACF,CAAC;gBAAA,eACcU,CAAa,IAAKA,CAAC,CAACI,cAAc,CAAC;cAAC;gBAGjDiB,OAAO,EAAE,CAACrD,KAAK,CAACZ,WAAW,GAAG,MAAMiB,KAAK,CAACgD,OAAO,GAAG;kBAAEE,IAAI;kBAAEC,MAAM;kBAAEC;gBAAW,CAAC,CAAC,IAAIJ,OAAO,CAAC,CAAC,GAAGL;cAAS;YAIlH;UAAC;QAAA,IAKL3C,KAAK,CAACZ,OAAO,GAAG,CAAC;MAEtB;IAIT,CAAC,CAAC;IAEF,OAAOjB,WAAW,CAAC,CAAC,CAAC,EAAE4C,aAAa,CAAC;EACvC;AACF,CAAC,CAAC","ignoreList":[]}
|
1
|
+
{"version":3,"file":"VDateInput.mjs","names":["makeVConfirmEditProps","VConfirmEdit","makeVDatePickerProps","VDatePicker","VMenu","makeVTextFieldProps","VTextField","useDate","makeFocusProps","useFocus","forwardRefs","useLocale","useProxiedModel","computed","ref","shallowRef","genericComponent","omit","propsFactory","useRender","wrapInArray","makeVDateInputProps","hideActions","Boolean","location","type","String","default","placeholder","prependIcon","weeksInMonth","hideHeader","VDateInput","name","props","emits","val","setup","_ref","slots","t","adapter","isFocused","focus","blur","model","multiple","Array","isArray","map","item","toJsDate","date","menu","vDateInputRef","display","value","length","start","end","isValid","format","isInteractive","disabled","readonly","onKeydown","e","key","target","onClick","preventDefault","stopPropagation","onSave","onUpdateModel","confirmEditProps","filterProps","datePickerProps","textFieldProps","_createVNode","_mergeProps","class","style","undefined","_Fragment","$event","onCancel","_ref2","actions","proxyModel","save","cancel","isPristine"],"sources":["../../../src/labs/VDateInput/VDateInput.tsx"],"sourcesContent":["// Components\nimport { makeVConfirmEditProps, VConfirmEdit } from '@/components/VConfirmEdit/VConfirmEdit'\nimport { makeVDatePickerProps, VDatePicker } from '@/components/VDatePicker/VDatePicker'\nimport { VMenu } from '@/components/VMenu/VMenu'\nimport { makeVTextFieldProps, VTextField } from '@/components/VTextField/VTextField'\n\n// Composables\nimport { useDate } from '@/composables/date'\nimport { makeFocusProps, useFocus } from '@/composables/focus'\nimport { forwardRefs } from '@/composables/forwardRefs'\nimport { useLocale } from '@/composables/locale'\nimport { useProxiedModel } from '@/composables/proxiedModel'\n\n// Utilities\nimport { computed, ref, shallowRef } from 'vue'\nimport { genericComponent, omit, propsFactory, useRender, wrapInArray } from '@/util'\n\n// Types\nimport type { PropType } from 'vue'\nimport type { StrategyProps } from '@/components/VOverlay/locationStrategies'\nimport type { VTextFieldSlots } from '@/components/VTextField/VTextField'\n\n// Types\nexport type VDateInputActionsSlot = {\n save: () => void\n cancel: () => void\n isPristine: boolean\n}\n\nexport type VDateInputSlots = Omit<VTextFieldSlots, 'default'> & {\n actions: VDateInputActionsSlot\n default: never\n}\n\nexport const makeVDateInputProps = propsFactory({\n hideActions: Boolean,\n location: {\n type: String as PropType<StrategyProps['location']>,\n default: 'bottom start',\n },\n ...makeFocusProps(),\n ...makeVConfirmEditProps(),\n ...makeVTextFieldProps({\n placeholder: 'mm/dd/yyyy',\n prependIcon: '$calendar',\n }),\n ...omit(makeVDatePickerProps({\n weeksInMonth: 'dynamic' as const,\n hideHeader: true,\n }), ['active', 'location', 'rounded']),\n}, 'VDateInput')\n\nexport const VDateInput = genericComponent<VDateInputSlots>()({\n name: 'VDateInput',\n\n props: makeVDateInputProps(),\n\n emits: {\n 'update:modelValue': (val: string) => true,\n },\n\n setup (props, { slots }) {\n const { t } = useLocale()\n const adapter = useDate()\n const { isFocused, focus, blur } = useFocus(props)\n const model = useProxiedModel(\n props,\n 'modelValue',\n props.multiple ? [] : null,\n val => Array.isArray(val) ? val.map(item => adapter.toJsDate(item)) : val ? adapter.toJsDate(val) : val,\n val => Array.isArray(val) ? val.map(item => adapter.date(item)) : val ? adapter.date(val) : val\n )\n\n const menu = shallowRef(false)\n const vDateInputRef = ref()\n\n const display = computed(() => {\n const value = wrapInArray(model.value)\n\n if (!value.length) return null\n\n if (props.multiple === true) {\n return t('$vuetify.datePicker.itemsSelected', value.length)\n }\n\n if (props.multiple === 'range') {\n const start = value[0]\n const end = value[value.length - 1]\n\n return adapter.isValid(start) && adapter.isValid(end)\n ? `${adapter.format(start, 'keyboardDate')} - ${adapter.format(end, 'keyboardDate')}`\n : ''\n }\n\n return adapter.isValid(model.value) ? adapter.format(model.value, 'keyboardDate') : ''\n })\n\n const isInteractive = computed(() => !props.disabled && !props.readonly)\n\n function onKeydown (e: KeyboardEvent) {\n if (e.key !== 'Enter') return\n\n if (!menu.value || !isFocused.value) {\n menu.value = true\n\n return\n }\n\n const target = e.target as HTMLInputElement\n\n model.value = target.value\n }\n\n function onClick (e: MouseEvent) {\n e.preventDefault()\n e.stopPropagation()\n\n menu.value = true\n }\n\n function onSave () {\n menu.value = false\n }\n\n function onUpdateModel (value: string) {\n if (value != null) return\n\n model.value = null\n }\n\n useRender(() => {\n const confirmEditProps = VConfirmEdit.filterProps(props)\n const datePickerProps = VDatePicker.filterProps(omit(props, ['active', 'location', 'rounded']))\n const textFieldProps = VTextField.filterProps(props)\n\n return (\n <VTextField\n ref={ vDateInputRef }\n { ...textFieldProps }\n class={ props.class }\n style={ props.style }\n modelValue={ display.value }\n onKeydown={ isInteractive.value ? onKeydown : undefined }\n focused={ menu.value || isFocused.value }\n onFocus={ focus }\n onBlur={ blur }\n onClick:control={ isInteractive.value ? onClick : undefined }\n onClick:prepend={ isInteractive.value ? onClick : undefined }\n onUpdate:modelValue={ onUpdateModel }\n >\n {{\n ...slots,\n default: () => (\n <>\n <VMenu\n v-model={ menu.value }\n activator=\"parent\"\n min-width=\"0\"\n location={ props.location }\n closeOnContentClick={ false }\n openOnClick={ false }\n >\n <VConfirmEdit\n { ...confirmEditProps }\n v-model={ model.value }\n onSave={ onSave }\n onCancel={ () => menu.value = false }\n >\n {{\n default: ({ actions, model: proxyModel, save, cancel, isPristine }) => {\n return (\n <VDatePicker\n { ...datePickerProps }\n modelValue={ props.hideActions ? model.value : proxyModel.value }\n onUpdate:modelValue={ val => {\n if (!props.hideActions) {\n proxyModel.value = val\n } else {\n model.value = val\n\n if (!props.multiple) menu.value = false\n }\n }}\n onMousedown={ (e: MouseEvent) => e.preventDefault() }\n >\n {{\n actions: !props.hideActions ? () => slots.actions?.({ save, cancel, isPristine }) ?? actions() : undefined,\n }}\n </VDatePicker>\n )\n },\n }}\n </VConfirmEdit>\n </VMenu>\n\n { slots.default?.() }\n </>\n ),\n }}\n </VTextField>\n )\n })\n\n return forwardRefs({}, vDateInputRef)\n },\n})\n\nexport type VDateInput = InstanceType<typeof VDateInput>\n"],"mappings":";AAAA;AAAA,SACSA,qBAAqB,EAAEC,YAAY;AAAA,SACnCC,oBAAoB,EAAEC,WAAW;AAAA,SACjCC,KAAK;AAAA,SACLC,mBAAmB,EAAEC,UAAU,sDAExC;AAAA,SACSC,OAAO;AAAA,SACPC,cAAc,EAAEC,QAAQ;AAAA,SACxBC,WAAW;AAAA,SACXC,SAAS;AAAA,SACTC,eAAe,8CAExB;AACA,SAASC,QAAQ,EAAEC,GAAG,EAAEC,UAAU,QAAQ,KAAK;AAAA,SACtCC,gBAAgB,EAAEC,IAAI,EAAEC,YAAY,EAAEC,SAAS,EAAEC,WAAW,gCAErE;AAKA;AAYA,OAAO,MAAMC,mBAAmB,GAAGH,YAAY,CAAC;EAC9CI,WAAW,EAAEC,OAAO;EACpBC,QAAQ,EAAE;IACRC,IAAI,EAAEC,MAA6C;IACnDC,OAAO,EAAE;EACX,CAAC;EACD,GAAGnB,cAAc,CAAC,CAAC;EACnB,GAAGR,qBAAqB,CAAC,CAAC;EAC1B,GAAGK,mBAAmB,CAAC;IACrBuB,WAAW,EAAE,YAAY;IACzBC,WAAW,EAAE;EACf,CAAC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