vuetify 3.7.16 → 3.7.18
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/dist/json/attributes.json +3633 -3633
- package/dist/json/importMap-labs.json +34 -34
- package/dist/json/importMap.json +146 -146
- package/dist/json/web-types.json +6922 -6922
- package/dist/vuetify-labs.css +4443 -4442
- package/dist/vuetify-labs.d.ts +3 -3
- package/dist/vuetify-labs.esm.js +31 -28
- package/dist/vuetify-labs.esm.js.map +1 -1
- package/dist/vuetify-labs.js +31 -28
- package/dist/vuetify-labs.min.css +2 -2
- package/dist/vuetify.css +3398 -3397
- package/dist/vuetify.d.ts +59 -59
- package/dist/vuetify.esm.js +30 -27
- package/dist/vuetify.esm.js.map +1 -1
- package/dist/vuetify.js +30 -27
- package/dist/vuetify.js.map +1 -1
- package/dist/vuetify.min.css +2 -2
- package/dist/vuetify.min.js +336 -337
- package/dist/vuetify.min.js.map +1 -1
- package/lib/components/VDatePicker/VDatePickerControls.mjs +5 -5
- package/lib/components/VDatePicker/VDatePickerControls.mjs.map +1 -1
- package/lib/components/VDatePicker/VDatePickerMonth.mjs +21 -12
- package/lib/components/VDatePicker/VDatePickerMonth.mjs.map +1 -1
- package/lib/components/VDatePicker/index.d.mts +3 -3
- package/lib/components/VDialog/__test__/VDialog.spec.browser.mjs +50 -0
- package/lib/components/VDialog/__test__/VDialog.spec.browser.mjs.map +1 -0
- package/lib/components/VField/VField.mjs +1 -6
- package/lib/components/VField/VField.mjs.map +1 -1
- package/lib/components/VFileInput/VFileInput.mjs +2 -2
- package/lib/components/VFileInput/VFileInput.mjs.map +1 -1
- package/lib/components/VTextField/VTextField.mjs +2 -2
- package/lib/components/VTextField/VTextField.mjs.map +1 -1
- package/lib/components/VTextarea/VTextarea.mjs +2 -2
- package/lib/components/VTextarea/VTextarea.mjs.map +1 -1
- package/lib/components/VToolbar/VToolbar.css +1 -0
- package/lib/components/VToolbar/VToolbar.sass +1 -0
- package/lib/components/index.d.mts +3 -3
- package/lib/composables/theme.mjs +1 -1
- package/lib/composables/theme.mjs.map +1 -1
- package/lib/entry-bundler.mjs +1 -1
- package/lib/framework.mjs +1 -1
- package/lib/index.d.mts +56 -56
- package/lib/labs/VDateInput/VDateInput.mjs +1 -1
- package/lib/labs/VDateInput/VDateInput.mjs.map +1 -1
- package/package.json +2 -2
- package/lib/components/VDialog/__test__/VDialog.spec.cy.mjs +0 -39
- package/lib/components/VDialog/__test__/VDialog.spec.cy.mjs.map +0 -1
package/lib/index.d.mts
CHANGED
|
@@ -486,47 +486,42 @@ declare module 'vue' {
|
|
|
486
486
|
$children?: VNodeChild
|
|
487
487
|
}
|
|
488
488
|
export interface GlobalComponents {
|
|
489
|
-
VAlert: typeof import('vuetify/components')['VAlert']
|
|
490
|
-
VAlertTitle: typeof import('vuetify/components')['VAlertTitle']
|
|
491
489
|
VAppBar: typeof import('vuetify/components')['VAppBar']
|
|
492
490
|
VAppBarNavIcon: typeof import('vuetify/components')['VAppBarNavIcon']
|
|
493
491
|
VAppBarTitle: typeof import('vuetify/components')['VAppBarTitle']
|
|
492
|
+
VApp: typeof import('vuetify/components')['VApp']
|
|
493
|
+
VAlert: typeof import('vuetify/components')['VAlert']
|
|
494
|
+
VAlertTitle: typeof import('vuetify/components')['VAlertTitle']
|
|
494
495
|
VAutocomplete: typeof import('vuetify/components')['VAutocomplete']
|
|
495
|
-
VBadge: typeof import('vuetify/components')['VBadge']
|
|
496
496
|
VAvatar: typeof import('vuetify/components')['VAvatar']
|
|
497
|
+
VBottomNavigation: typeof import('vuetify/components')['VBottomNavigation']
|
|
497
498
|
VBanner: typeof import('vuetify/components')['VBanner']
|
|
498
499
|
VBannerActions: typeof import('vuetify/components')['VBannerActions']
|
|
499
500
|
VBannerText: typeof import('vuetify/components')['VBannerText']
|
|
501
|
+
VBadge: typeof import('vuetify/components')['VBadge']
|
|
500
502
|
VBottomSheet: typeof import('vuetify/components')['VBottomSheet']
|
|
503
|
+
VBtnGroup: typeof import('vuetify/components')['VBtnGroup']
|
|
501
504
|
VBtn: typeof import('vuetify/components')['VBtn']
|
|
502
|
-
VBottomNavigation: typeof import('vuetify/components')['VBottomNavigation']
|
|
503
505
|
VBreadcrumbs: typeof import('vuetify/components')['VBreadcrumbs']
|
|
504
506
|
VBreadcrumbsItem: typeof import('vuetify/components')['VBreadcrumbsItem']
|
|
505
507
|
VBreadcrumbsDivider: typeof import('vuetify/components')['VBreadcrumbsDivider']
|
|
506
|
-
VCarousel: typeof import('vuetify/components')['VCarousel']
|
|
507
|
-
VCarouselItem: typeof import('vuetify/components')['VCarouselItem']
|
|
508
|
-
VBtnGroup: typeof import('vuetify/components')['VBtnGroup']
|
|
509
508
|
VCard: typeof import('vuetify/components')['VCard']
|
|
510
509
|
VCardActions: typeof import('vuetify/components')['VCardActions']
|
|
511
510
|
VCardItem: typeof import('vuetify/components')['VCardItem']
|
|
512
511
|
VCardSubtitle: typeof import('vuetify/components')['VCardSubtitle']
|
|
513
512
|
VCardText: typeof import('vuetify/components')['VCardText']
|
|
514
513
|
VCardTitle: typeof import('vuetify/components')['VCardTitle']
|
|
514
|
+
VCarousel: typeof import('vuetify/components')['VCarousel']
|
|
515
|
+
VCarouselItem: typeof import('vuetify/components')['VCarouselItem']
|
|
516
|
+
VCode: typeof import('vuetify/components')['VCode']
|
|
515
517
|
VChip: typeof import('vuetify/components')['VChip']
|
|
516
|
-
VBtnToggle: typeof import('vuetify/components')['VBtnToggle']
|
|
517
518
|
VCheckbox: typeof import('vuetify/components')['VCheckbox']
|
|
518
519
|
VCheckboxBtn: typeof import('vuetify/components')['VCheckboxBtn']
|
|
519
520
|
VChipGroup: typeof import('vuetify/components')['VChipGroup']
|
|
520
|
-
VApp: typeof import('vuetify/components')['VApp']
|
|
521
521
|
VColorPicker: typeof import('vuetify/components')['VColorPicker']
|
|
522
|
-
VCode: typeof import('vuetify/components')['VCode']
|
|
523
522
|
VCombobox: typeof import('vuetify/components')['VCombobox']
|
|
524
|
-
|
|
525
|
-
|
|
526
|
-
VDatePickerHeader: typeof import('vuetify/components')['VDatePickerHeader']
|
|
527
|
-
VDatePickerMonth: typeof import('vuetify/components')['VDatePickerMonth']
|
|
528
|
-
VDatePickerMonths: typeof import('vuetify/components')['VDatePickerMonths']
|
|
529
|
-
VDatePickerYears: typeof import('vuetify/components')['VDatePickerYears']
|
|
523
|
+
VDivider: typeof import('vuetify/components')['VDivider']
|
|
524
|
+
VBtnToggle: typeof import('vuetify/components')['VBtnToggle']
|
|
530
525
|
VDataTable: typeof import('vuetify/components')['VDataTable']
|
|
531
526
|
VDataTableHeaders: typeof import('vuetify/components')['VDataTableHeaders']
|
|
532
527
|
VDataTableFooter: typeof import('vuetify/components')['VDataTableFooter']
|
|
@@ -534,32 +529,34 @@ declare module 'vue' {
|
|
|
534
529
|
VDataTableRow: typeof import('vuetify/components')['VDataTableRow']
|
|
535
530
|
VDataTableVirtual: typeof import('vuetify/components')['VDataTableVirtual']
|
|
536
531
|
VDataTableServer: typeof import('vuetify/components')['VDataTableServer']
|
|
537
|
-
|
|
538
|
-
|
|
532
|
+
VDatePicker: typeof import('vuetify/components')['VDatePicker']
|
|
533
|
+
VDatePickerControls: typeof import('vuetify/components')['VDatePickerControls']
|
|
534
|
+
VDatePickerHeader: typeof import('vuetify/components')['VDatePickerHeader']
|
|
535
|
+
VDatePickerMonth: typeof import('vuetify/components')['VDatePickerMonth']
|
|
536
|
+
VDatePickerMonths: typeof import('vuetify/components')['VDatePickerMonths']
|
|
537
|
+
VDatePickerYears: typeof import('vuetify/components')['VDatePickerYears']
|
|
539
538
|
VCounter: typeof import('vuetify/components')['VCounter']
|
|
540
|
-
|
|
539
|
+
VDialog: typeof import('vuetify/components')['VDialog']
|
|
541
540
|
VEmptyState: typeof import('vuetify/components')['VEmptyState']
|
|
542
|
-
VField: typeof import('vuetify/components')['VField']
|
|
543
|
-
VFieldLabel: typeof import('vuetify/components')['VFieldLabel']
|
|
544
541
|
VExpansionPanels: typeof import('vuetify/components')['VExpansionPanels']
|
|
545
542
|
VExpansionPanel: typeof import('vuetify/components')['VExpansionPanel']
|
|
546
543
|
VExpansionPanelText: typeof import('vuetify/components')['VExpansionPanelText']
|
|
547
544
|
VExpansionPanelTitle: typeof import('vuetify/components')['VExpansionPanelTitle']
|
|
548
|
-
VFooter: typeof import('vuetify/components')['VFooter']
|
|
549
545
|
VFileInput: typeof import('vuetify/components')['VFileInput']
|
|
550
|
-
|
|
546
|
+
VField: typeof import('vuetify/components')['VField']
|
|
547
|
+
VFieldLabel: typeof import('vuetify/components')['VFieldLabel']
|
|
548
|
+
VFooter: typeof import('vuetify/components')['VFooter']
|
|
551
549
|
VIcon: typeof import('vuetify/components')['VIcon']
|
|
552
550
|
VComponentIcon: typeof import('vuetify/components')['VComponentIcon']
|
|
553
551
|
VSvgIcon: typeof import('vuetify/components')['VSvgIcon']
|
|
554
552
|
VLigatureIcon: typeof import('vuetify/components')['VLigatureIcon']
|
|
555
553
|
VClassIcon: typeof import('vuetify/components')['VClassIcon']
|
|
556
|
-
VImg: typeof import('vuetify/components')['VImg']
|
|
557
554
|
VItemGroup: typeof import('vuetify/components')['VItemGroup']
|
|
558
555
|
VItem: typeof import('vuetify/components')['VItem']
|
|
559
|
-
|
|
560
|
-
VMain: typeof import('vuetify/components')['VMain']
|
|
556
|
+
VImg: typeof import('vuetify/components')['VImg']
|
|
561
557
|
VInfiniteScroll: typeof import('vuetify/components')['VInfiniteScroll']
|
|
562
|
-
|
|
558
|
+
VFab: typeof import('vuetify/components')['VFab']
|
|
559
|
+
VInput: typeof import('vuetify/components')['VInput']
|
|
563
560
|
VList: typeof import('vuetify/components')['VList']
|
|
564
561
|
VListGroup: typeof import('vuetify/components')['VListGroup']
|
|
565
562
|
VListImg: typeof import('vuetify/components')['VListImg']
|
|
@@ -569,70 +566,74 @@ declare module 'vue' {
|
|
|
569
566
|
VListItemSubtitle: typeof import('vuetify/components')['VListItemSubtitle']
|
|
570
567
|
VListItemTitle: typeof import('vuetify/components')['VListItemTitle']
|
|
571
568
|
VListSubheader: typeof import('vuetify/components')['VListSubheader']
|
|
569
|
+
VLabel: typeof import('vuetify/components')['VLabel']
|
|
570
|
+
VKbd: typeof import('vuetify/components')['VKbd']
|
|
571
|
+
VMain: typeof import('vuetify/components')['VMain']
|
|
572
572
|
VMenu: typeof import('vuetify/components')['VMenu']
|
|
573
573
|
VNavigationDrawer: typeof import('vuetify/components')['VNavigationDrawer']
|
|
574
574
|
VOtpInput: typeof import('vuetify/components')['VOtpInput']
|
|
575
575
|
VMessages: typeof import('vuetify/components')['VMessages']
|
|
576
576
|
VOverlay: typeof import('vuetify/components')['VOverlay']
|
|
577
|
-
VProgressCircular: typeof import('vuetify/components')['VProgressCircular']
|
|
578
577
|
VPagination: typeof import('vuetify/components')['VPagination']
|
|
579
|
-
|
|
580
|
-
VSelectionControl: typeof import('vuetify/components')['VSelectionControl']
|
|
578
|
+
VProgressCircular: typeof import('vuetify/components')['VProgressCircular']
|
|
581
579
|
VProgressLinear: typeof import('vuetify/components')['VProgressLinear']
|
|
582
580
|
VRating: typeof import('vuetify/components')['VRating']
|
|
583
|
-
|
|
584
|
-
|
|
585
|
-
VSelectionControlGroup: typeof import('vuetify/components')['VSelectionControlGroup']
|
|
586
|
-
VSlider: typeof import('vuetify/components')['VSlider']
|
|
587
|
-
VSnackbar: typeof import('vuetify/components')['VSnackbar']
|
|
581
|
+
VRadioGroup: typeof import('vuetify/components')['VRadioGroup']
|
|
582
|
+
VSelectionControl: typeof import('vuetify/components')['VSelectionControl']
|
|
588
583
|
VSelect: typeof import('vuetify/components')['VSelect']
|
|
589
|
-
|
|
584
|
+
VSelectionControlGroup: typeof import('vuetify/components')['VSelectionControlGroup']
|
|
585
|
+
VSheet: typeof import('vuetify/components')['VSheet']
|
|
590
586
|
VSlideGroup: typeof import('vuetify/components')['VSlideGroup']
|
|
591
587
|
VSlideGroupItem: typeof import('vuetify/components')['VSlideGroupItem']
|
|
588
|
+
VSlider: typeof import('vuetify/components')['VSlider']
|
|
589
|
+
VSnackbar: typeof import('vuetify/components')['VSnackbar']
|
|
590
|
+
VSwitch: typeof import('vuetify/components')['VSwitch']
|
|
591
|
+
VSkeletonLoader: typeof import('vuetify/components')['VSkeletonLoader']
|
|
592
592
|
VStepper: typeof import('vuetify/components')['VStepper']
|
|
593
593
|
VStepperActions: typeof import('vuetify/components')['VStepperActions']
|
|
594
594
|
VStepperHeader: typeof import('vuetify/components')['VStepperHeader']
|
|
595
595
|
VStepperItem: typeof import('vuetify/components')['VStepperItem']
|
|
596
596
|
VStepperWindow: typeof import('vuetify/components')['VStepperWindow']
|
|
597
597
|
VStepperWindowItem: typeof import('vuetify/components')['VStepperWindowItem']
|
|
598
|
-
|
|
599
|
-
VSwitch: typeof import('vuetify/components')['VSwitch']
|
|
600
|
-
VTextarea: typeof import('vuetify/components')['VTextarea']
|
|
598
|
+
VTextField: typeof import('vuetify/components')['VTextField']
|
|
601
599
|
VTab: typeof import('vuetify/components')['VTab']
|
|
602
600
|
VTabs: typeof import('vuetify/components')['VTabs']
|
|
603
601
|
VTabsWindow: typeof import('vuetify/components')['VTabsWindow']
|
|
604
602
|
VTabsWindowItem: typeof import('vuetify/components')['VTabsWindowItem']
|
|
603
|
+
VTable: typeof import('vuetify/components')['VTable']
|
|
604
|
+
VSystemBar: typeof import('vuetify/components')['VSystemBar']
|
|
605
605
|
VTimeline: typeof import('vuetify/components')['VTimeline']
|
|
606
606
|
VTimelineItem: typeof import('vuetify/components')['VTimelineItem']
|
|
607
|
+
VTextarea: typeof import('vuetify/components')['VTextarea']
|
|
607
608
|
VTooltip: typeof import('vuetify/components')['VTooltip']
|
|
608
609
|
VToolbar: typeof import('vuetify/components')['VToolbar']
|
|
609
610
|
VToolbarTitle: typeof import('vuetify/components')['VToolbarTitle']
|
|
610
611
|
VToolbarItems: typeof import('vuetify/components')['VToolbarItems']
|
|
611
612
|
VWindow: typeof import('vuetify/components')['VWindow']
|
|
612
613
|
VWindowItem: typeof import('vuetify/components')['VWindowItem']
|
|
613
|
-
VTextField: typeof import('vuetify/components')['VTextField']
|
|
614
614
|
VConfirmEdit: typeof import('vuetify/components')['VConfirmEdit']
|
|
615
|
-
VDefaultsProvider: typeof import('vuetify/components')['VDefaultsProvider']
|
|
616
615
|
VDataIterator: typeof import('vuetify/components')['VDataIterator']
|
|
616
|
+
VDefaultsProvider: typeof import('vuetify/components')['VDefaultsProvider']
|
|
617
|
+
VForm: typeof import('vuetify/components')['VForm']
|
|
617
618
|
VContainer: typeof import('vuetify/components')['VContainer']
|
|
618
619
|
VCol: typeof import('vuetify/components')['VCol']
|
|
619
620
|
VRow: typeof import('vuetify/components')['VRow']
|
|
620
621
|
VSpacer: typeof import('vuetify/components')['VSpacer']
|
|
621
|
-
VForm: typeof import('vuetify/components')['VForm']
|
|
622
622
|
VHover: typeof import('vuetify/components')['VHover']
|
|
623
623
|
VLayout: typeof import('vuetify/components')['VLayout']
|
|
624
624
|
VLayoutItem: typeof import('vuetify/components')['VLayoutItem']
|
|
625
625
|
VLazy: typeof import('vuetify/components')['VLazy']
|
|
626
626
|
VLocaleProvider: typeof import('vuetify/components')['VLocaleProvider']
|
|
627
|
-
VParallax: typeof import('vuetify/components')['VParallax']
|
|
628
|
-
VRadio: typeof import('vuetify/components')['VRadio']
|
|
629
627
|
VNoSsr: typeof import('vuetify/components')['VNoSsr']
|
|
628
|
+
VRadio: typeof import('vuetify/components')['VRadio']
|
|
629
|
+
VParallax: typeof import('vuetify/components')['VParallax']
|
|
630
630
|
VRangeSlider: typeof import('vuetify/components')['VRangeSlider']
|
|
631
631
|
VResponsive: typeof import('vuetify/components')['VResponsive']
|
|
632
|
-
VSparkline: typeof import('vuetify/components')['VSparkline']
|
|
633
632
|
VSpeedDial: typeof import('vuetify/components')['VSpeedDial']
|
|
633
|
+
VSparkline: typeof import('vuetify/components')['VSparkline']
|
|
634
634
|
VThemeProvider: typeof import('vuetify/components')['VThemeProvider']
|
|
635
635
|
VValidation: typeof import('vuetify/components')['VValidation']
|
|
636
|
+
VVirtualScroll: typeof import('vuetify/components')['VVirtualScroll']
|
|
636
637
|
VFabTransition: typeof import('vuetify/components')['VFabTransition']
|
|
637
638
|
VDialogBottomTransition: typeof import('vuetify/components')['VDialogBottomTransition']
|
|
638
639
|
VDialogTopTransition: typeof import('vuetify/components')['VDialogTopTransition']
|
|
@@ -649,18 +650,11 @@ declare module 'vue' {
|
|
|
649
650
|
VExpandTransition: typeof import('vuetify/components')['VExpandTransition']
|
|
650
651
|
VExpandXTransition: typeof import('vuetify/components')['VExpandXTransition']
|
|
651
652
|
VDialogTransition: typeof import('vuetify/components')['VDialogTransition']
|
|
652
|
-
VVirtualScroll: typeof import('vuetify/components')['VVirtualScroll']
|
|
653
|
-
VCalendar: typeof import('vuetify/labs/components')['VCalendar']
|
|
654
|
-
VCalendarDay: typeof import('vuetify/labs/components')['VCalendarDay']
|
|
655
|
-
VCalendarHeader: typeof import('vuetify/labs/components')['VCalendarHeader']
|
|
656
|
-
VCalendarInterval: typeof import('vuetify/labs/components')['VCalendarInterval']
|
|
657
|
-
VCalendarIntervalEvent: typeof import('vuetify/labs/components')['VCalendarIntervalEvent']
|
|
658
|
-
VCalendarMonthDay: typeof import('vuetify/labs/components')['VCalendarMonthDay']
|
|
659
|
-
VPicker: typeof import('vuetify/labs/components')['VPicker']
|
|
660
|
-
VPickerTitle: typeof import('vuetify/labs/components')['VPickerTitle']
|
|
661
|
-
VNumberInput: typeof import('vuetify/labs/components')['VNumberInput']
|
|
662
653
|
VFileUpload: typeof import('vuetify/labs/components')['VFileUpload']
|
|
663
654
|
VFileUploadItem: typeof import('vuetify/labs/components')['VFileUploadItem']
|
|
655
|
+
VNumberInput: typeof import('vuetify/labs/components')['VNumberInput']
|
|
656
|
+
VPicker: typeof import('vuetify/labs/components')['VPicker']
|
|
657
|
+
VPickerTitle: typeof import('vuetify/labs/components')['VPickerTitle']
|
|
664
658
|
VStepperVertical: typeof import('vuetify/labs/components')['VStepperVertical']
|
|
665
659
|
VStepperVerticalItem: typeof import('vuetify/labs/components')['VStepperVerticalItem']
|
|
666
660
|
VStepperVerticalActions: typeof import('vuetify/labs/components')['VStepperVerticalActions']
|
|
@@ -671,7 +665,13 @@ declare module 'vue' {
|
|
|
671
665
|
VTreeviewItem: typeof import('vuetify/labs/components')['VTreeviewItem']
|
|
672
666
|
VTreeviewGroup: typeof import('vuetify/labs/components')['VTreeviewGroup']
|
|
673
667
|
VDateInput: typeof import('vuetify/labs/components')['VDateInput']
|
|
674
|
-
VSnackbarQueue: typeof import('vuetify/labs/components')['VSnackbarQueue']
|
|
675
668
|
VPullToRefresh: typeof import('vuetify/labs/components')['VPullToRefresh']
|
|
669
|
+
VCalendar: typeof import('vuetify/labs/components')['VCalendar']
|
|
670
|
+
VCalendarDay: typeof import('vuetify/labs/components')['VCalendarDay']
|
|
671
|
+
VCalendarHeader: typeof import('vuetify/labs/components')['VCalendarHeader']
|
|
672
|
+
VCalendarInterval: typeof import('vuetify/labs/components')['VCalendarInterval']
|
|
673
|
+
VCalendarIntervalEvent: typeof import('vuetify/labs/components')['VCalendarIntervalEvent']
|
|
674
|
+
VCalendarMonthDay: typeof import('vuetify/labs/components')['VCalendarMonthDay']
|
|
675
|
+
VSnackbarQueue: typeof import('vuetify/labs/components')['VSnackbarQueue']
|
|
676
676
|
}
|
|
677
677
|
}
|
|
@@ -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","hideHeader","showAdjacentMonths","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 hideHeader: true,\n showAdjacentMonths: 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(adapter.date(start), 'keyboardDate')} - ${adapter.format(adapter.date(end), 'keyboardDate')}`\n : ''\n }\n\n return adapter.isValid(model.value) ? adapter.format(adapter.date(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 eager={ isFocused.value }\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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cACP1C,KAAK,CAACZ,WAAW,GAAGuB,KAAK,CAACW,KAAK,GAAGgC,UAAU,CAAChC,KAAK;gBAAA,uBACzCpB,GAAG,IAAI;kBAC3B,IAAI,CAACF,KAAK,CAACZ,WAAW,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","hideHeader","showAdjacentMonths","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 hideHeader: true,\n showAdjacentMonths: 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(adapter.date(start), 'keyboardDate')} - ${adapter.format(adapter.date(end), 'keyboardDate')}`\n : ''\n }\n\n return adapter.isValid(model.value) ? adapter.format(adapter.date(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 === '' ? null : 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 eager={ isFocused.value }\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,E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CAACZ,WAAW,GAAGuB,KAAK,CAACW,KAAK,GAAGgC,UAAU,CAAChC,KAAK;gBAAA,uBACzCpB,GAAG,IAAI;kBAC3B,IAAI,CAACF,KAAK,CAACZ,WAAW,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":[]}
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "vuetify",
|
|
3
3
|
"description": "Vue Material Component Framework",
|
|
4
|
-
"version": "3.7.
|
|
4
|
+
"version": "3.7.18",
|
|
5
5
|
"author": {
|
|
6
6
|
"name": "John Leider",
|
|
7
7
|
"email": "john@vuetifyjs.com"
|
|
@@ -213,5 +213,5 @@
|
|
|
213
213
|
"attributes": "dist/json/attributes.json"
|
|
214
214
|
},
|
|
215
215
|
"web-types": "dist/json/web-types.json",
|
|
216
|
-
"gitHead": "
|
|
216
|
+
"gitHead": "b210f127992253f7daaae5ea3e5a504ee515b025"
|
|
217
217
|
}
|
|
@@ -1,39 +0,0 @@
|
|
|
1
|
-
import { createTextVNode as _createTextVNode, createVNode as _createVNode } from "vue";
|
|
2
|
-
/// <reference types="../../../../types/cypress" />
|
|
3
|
-
// Components
|
|
4
|
-
import { VDialog } from "../index.mjs"; // Utilities
|
|
5
|
-
import { ref } from 'vue';
|
|
6
|
-
|
|
7
|
-
// Tests
|
|
8
|
-
describe('VDialog', () => {
|
|
9
|
-
it('should render correctly', () => {
|
|
10
|
-
const model = ref(false);
|
|
11
|
-
cy.mount(() => _createVNode(VDialog, {
|
|
12
|
-
"modelValue": model.value,
|
|
13
|
-
"onUpdate:modelValue": $event => model.value = $event,
|
|
14
|
-
"data-test": "dialog"
|
|
15
|
-
}, {
|
|
16
|
-
default: () => [_createVNode("div", {
|
|
17
|
-
"data-test": "content"
|
|
18
|
-
}, [_createTextVNode("Content")])]
|
|
19
|
-
})).get('[data-test="dialog"]').should('not.exist').then(() => {
|
|
20
|
-
model.value = true;
|
|
21
|
-
}).get('[data-test="dialog"]').should('be.visible').get('[data-test="content"]').should('be.visible').get('body').click().then(() => {
|
|
22
|
-
expect(model.value).to.be.false;
|
|
23
|
-
}).get('[data-test="dialog"]').should('not.exist').get('[data-test="content"]').should('not.exist');
|
|
24
|
-
});
|
|
25
|
-
it('should emit afterLeave', () => {
|
|
26
|
-
const model = ref(true);
|
|
27
|
-
const onAfterLeave = cy.spy().as('afterLeave');
|
|
28
|
-
cy.mount(() => _createVNode(VDialog, {
|
|
29
|
-
"modelValue": model.value,
|
|
30
|
-
"onUpdate:modelValue": $event => model.value = $event,
|
|
31
|
-
"onAfterLeave": onAfterLeave
|
|
32
|
-
}, {
|
|
33
|
-
default: () => [_createVNode("div", {
|
|
34
|
-
"data-test": "content"
|
|
35
|
-
}, [_createTextVNode("Content")])]
|
|
36
|
-
})).get('body').click().get('@afterLeave').should('have.been.calledOnce');
|
|
37
|
-
});
|
|
38
|
-
});
|
|
39
|
-
//# sourceMappingURL=VDialog.spec.cy.mjs.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"VDialog.spec.cy.mjs","names":["VDialog","ref","describe","it","model","cy","mount","_createVNode","value","$event","default","_createTextVNode","get","should","then","click","expect","to","be","false","onAfterLeave","spy","as"],"sources":["../../../../src/components/VDialog/__test__/VDialog.spec.cy.tsx"],"sourcesContent":["/// <reference types=\"../../../../types/cypress\" />\n\n// Components\nimport { VDialog } from '..'\n\n// Utilities\nimport { ref } from 'vue'\n\n// Tests\ndescribe('VDialog', () => {\n it('should render correctly', () => {\n const model = ref(false)\n cy.mount(() => (\n <VDialog v-model={ model.value } data-test=\"dialog\">\n <div data-test=\"content\">Content</div>\n </VDialog>\n )).get('[data-test=\"dialog\"]').should('not.exist')\n .then(() => { model.value = true })\n .get('[data-test=\"dialog\"]').should('be.visible')\n .get('[data-test=\"content\"]').should('be.visible')\n .get('body').click()\n .then(() => {\n expect(model.value).to.be.false\n })\n .get('[data-test=\"dialog\"]').should('not.exist')\n .get('[data-test=\"content\"]').should('not.exist')\n })\n\n it('should emit afterLeave', () => {\n const model = ref(true)\n const onAfterLeave = cy.spy().as('afterLeave')\n cy.mount(() => (\n <VDialog v-model={ model.value } onAfterLeave={ onAfterLeave }>\n <div data-test=\"content\">Content</div>\n </VDialog>\n )).get('body').click()\n .get('@afterLeave').should('have.been.calledOnce')\n })\n})\n"],"mappings":";AAAA;AAEA;AAAA,SACSA,OAAO,wBAEhB;AACA,SAASC,GAAG,QAAQ,KAAK;;AAEzB;AACAC,QAAQ,CAAC,SAAS,EAAE,MAAM;EACxBC,EAAE,CAAC,yBAAyB,EAAE,MAAM;IAClC,MAAMC,KAAK,GAAGH,GAAG,CAAC,KAAK,CAAC;IACxBI,EAAE,CAACC,KAAK,CAAC,MAAAC,YAAA,CAAAP,OAAA;MAAA,cACYI,KAAK,CAACI,KAAK;MAAA,uBAAAC,MAAA,IAAXL,KAAK,CAACI,KAAK,GAAAC,MAAA;MAAA;IAAA;MAAAC,OAAA,EAAAA,CAAA,MAAAH,YAAA;QAAA;MAAA,IAAAI,gBA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