@vuetify/nightly 3.6.6-master.2024-05-17 → 3.6.7-master.2024-05-22
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 +2 -13
- package/dist/json/attributes.json +42 -2
- package/dist/json/importMap-labs.json +8 -8
- package/dist/json/importMap.json +148 -148
- package/dist/json/tags.json +11 -1
- package/dist/json/web-types.json +107 -10
- package/dist/vuetify-labs.css +2242 -2236
- package/dist/vuetify-labs.d.ts +93 -12
- package/dist/vuetify-labs.esm.js +54 -29
- package/dist/vuetify-labs.esm.js.map +1 -1
- package/dist/vuetify-labs.js +54 -29
- package/dist/vuetify-labs.min.css +2 -2
- package/dist/vuetify.css +669 -663
- package/dist/vuetify.d.ts +133 -52
- package/dist/vuetify.esm.js +52 -27
- package/dist/vuetify.esm.js.map +1 -1
- package/dist/vuetify.js +52 -27
- package/dist/vuetify.js.map +1 -1
- package/dist/vuetify.min.css +2 -2
- package/dist/vuetify.min.js +103 -101
- package/dist/vuetify.min.js.map +1 -1
- package/lib/components/VAutocomplete/VAutocomplete.mjs +3 -2
- package/lib/components/VAutocomplete/VAutocomplete.mjs.map +1 -1
- package/lib/components/VCombobox/VCombobox.mjs +4 -3
- package/lib/components/VCombobox/VCombobox.mjs.map +1 -1
- package/lib/components/VDataTable/VDataTable.css +4 -0
- package/lib/components/VDataTable/VDataTable.mjs +2 -1
- package/lib/components/VDataTable/VDataTable.mjs.map +1 -1
- package/lib/components/VDataTable/VDataTable.sass +4 -0
- package/lib/components/VDataTable/VDataTableHeaders.mjs +4 -3
- package/lib/components/VDataTable/VDataTableHeaders.mjs.map +1 -1
- package/lib/components/VDataTable/VDataTableServer.mjs +1 -1
- package/lib/components/VDataTable/VDataTableServer.mjs.map +1 -1
- package/lib/components/VDataTable/VDataTableVirtual.mjs +1 -1
- package/lib/components/VDataTable/VDataTableVirtual.mjs.map +1 -1
- package/lib/components/VDataTable/composables/sort.mjs +1 -1
- package/lib/components/VDataTable/composables/sort.mjs.map +1 -1
- package/lib/components/VDataTable/index.d.mts +63 -0
- package/lib/components/VDatePicker/VDatePicker.mjs +2 -1
- package/lib/components/VDatePicker/VDatePicker.mjs.map +1 -1
- package/lib/components/VDatePicker/VDatePickerMonths.mjs +10 -1
- package/lib/components/VDatePicker/VDatePickerMonths.mjs.map +1 -1
- package/lib/components/VDatePicker/index.d.mts +24 -6
- package/lib/components/VDivider/VDivider.css +1 -1
- package/lib/components/VDivider/VDivider.sass +1 -1
- package/lib/components/VField/VField.css +1 -0
- package/lib/components/VField/VField.sass +2 -0
- package/lib/components/VList/VListChildren.mjs +2 -1
- package/lib/components/VList/VListChildren.mjs.map +1 -1
- package/lib/components/index.d.mts +87 -6
- package/lib/composables/defaults.mjs +1 -1
- package/lib/composables/defaults.mjs.map +1 -1
- package/lib/composables/dimensions.mjs +16 -8
- package/lib/composables/dimensions.mjs.map +1 -1
- package/lib/entry-bundler.mjs +1 -1
- package/lib/framework.mjs +1 -1
- package/lib/index.d.mts +46 -46
- package/lib/labs/VCalendar/VCalendar.mjs +2 -2
- package/lib/labs/VCalendar/VCalendar.mjs.map +1 -1
- package/lib/labs/VDateInput/index.d.mts +6 -6
- package/lib/labs/components.d.mts +6 -6
- package/lib/locale/fa.mjs +10 -10
- package/lib/locale/fa.mjs.map +1 -1
- package/lib/util/helpers.mjs +2 -0
- package/lib/util/helpers.mjs.map +1 -1
- package/package.json +1 -1
package/lib/index.d.mts
CHANGED
@@ -493,48 +493,42 @@ declare module '@vue/runtime-core' {
|
|
493
493
|
}
|
494
494
|
|
495
495
|
export interface GlobalComponents {
|
496
|
+
VApp: typeof import('vuetify/components')['VApp']
|
497
|
+
VAlert: typeof import('vuetify/components')['VAlert']
|
498
|
+
VAlertTitle: typeof import('vuetify/components')['VAlertTitle']
|
496
499
|
VAppBar: typeof import('vuetify/components')['VAppBar']
|
497
500
|
VAppBarNavIcon: typeof import('vuetify/components')['VAppBarNavIcon']
|
498
501
|
VAppBarTitle: typeof import('vuetify/components')['VAppBarTitle']
|
499
|
-
VApp: typeof import('vuetify/components')['VApp']
|
500
502
|
VAutocomplete: typeof import('vuetify/components')['VAutocomplete']
|
501
|
-
VAlert: typeof import('vuetify/components')['VAlert']
|
502
|
-
VAlertTitle: typeof import('vuetify/components')['VAlertTitle']
|
503
|
-
VAvatar: typeof import('vuetify/components')['VAvatar']
|
504
503
|
VBadge: typeof import('vuetify/components')['VBadge']
|
504
|
+
VAvatar: typeof import('vuetify/components')['VAvatar']
|
505
505
|
VBottomNavigation: typeof import('vuetify/components')['VBottomNavigation']
|
506
|
-
VBtn: typeof import('vuetify/components')['VBtn']
|
507
|
-
VBottomSheet: typeof import('vuetify/components')['VBottomSheet']
|
508
506
|
VBanner: typeof import('vuetify/components')['VBanner']
|
509
507
|
VBannerActions: typeof import('vuetify/components')['VBannerActions']
|
510
508
|
VBannerText: typeof import('vuetify/components')['VBannerText']
|
511
509
|
VBreadcrumbs: typeof import('vuetify/components')['VBreadcrumbs']
|
512
510
|
VBreadcrumbsItem: typeof import('vuetify/components')['VBreadcrumbsItem']
|
513
511
|
VBreadcrumbsDivider: typeof import('vuetify/components')['VBreadcrumbsDivider']
|
512
|
+
VBottomSheet: typeof import('vuetify/components')['VBottomSheet']
|
513
|
+
VBtnGroup: typeof import('vuetify/components')['VBtnGroup']
|
514
|
+
VBtnToggle: typeof import('vuetify/components')['VBtnToggle']
|
515
|
+
VBtn: typeof import('vuetify/components')['VBtn']
|
516
|
+
VCarousel: typeof import('vuetify/components')['VCarousel']
|
517
|
+
VCarouselItem: typeof import('vuetify/components')['VCarouselItem']
|
514
518
|
VCard: typeof import('vuetify/components')['VCard']
|
515
519
|
VCardActions: typeof import('vuetify/components')['VCardActions']
|
516
520
|
VCardItem: typeof import('vuetify/components')['VCardItem']
|
517
521
|
VCardSubtitle: typeof import('vuetify/components')['VCardSubtitle']
|
518
522
|
VCardText: typeof import('vuetify/components')['VCardText']
|
519
523
|
VCardTitle: typeof import('vuetify/components')['VCardTitle']
|
520
|
-
|
524
|
+
VChip: typeof import('vuetify/components')['VChip']
|
521
525
|
VCheckbox: typeof import('vuetify/components')['VCheckbox']
|
522
526
|
VCheckboxBtn: typeof import('vuetify/components')['VCheckboxBtn']
|
523
527
|
VChipGroup: typeof import('vuetify/components')['VChipGroup']
|
524
|
-
VBtnToggle: typeof import('vuetify/components')['VBtnToggle']
|
525
|
-
VChip: typeof import('vuetify/components')['VChip']
|
526
|
-
VCarousel: typeof import('vuetify/components')['VCarousel']
|
527
|
-
VCarouselItem: typeof import('vuetify/components')['VCarouselItem']
|
528
|
-
VCode: typeof import('vuetify/components')['VCode']
|
529
|
-
VCounter: typeof import('vuetify/components')['VCounter']
|
530
528
|
VColorPicker: typeof import('vuetify/components')['VColorPicker']
|
529
|
+
VCounter: typeof import('vuetify/components')['VCounter']
|
530
|
+
VCode: typeof import('vuetify/components')['VCode']
|
531
531
|
VCombobox: typeof import('vuetify/components')['VCombobox']
|
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']
|
538
532
|
VDataTable: typeof import('vuetify/components')['VDataTable']
|
539
533
|
VDataTableHeaders: typeof import('vuetify/components')['VDataTableHeaders']
|
540
534
|
VDataTableFooter: typeof import('vuetify/components')['VDataTableFooter']
|
@@ -542,30 +536,34 @@ declare module '@vue/runtime-core' {
|
|
542
536
|
VDataTableRow: typeof import('vuetify/components')['VDataTableRow']
|
543
537
|
VDataTableVirtual: typeof import('vuetify/components')['VDataTableVirtual']
|
544
538
|
VDataTableServer: typeof import('vuetify/components')['VDataTableServer']
|
539
|
+
VDatePicker: typeof import('vuetify/components')['VDatePicker']
|
540
|
+
VDatePickerControls: typeof import('vuetify/components')['VDatePickerControls']
|
541
|
+
VDatePickerHeader: typeof import('vuetify/components')['VDatePickerHeader']
|
542
|
+
VDatePickerMonth: typeof import('vuetify/components')['VDatePickerMonth']
|
543
|
+
VDatePickerMonths: typeof import('vuetify/components')['VDatePickerMonths']
|
544
|
+
VDatePickerYears: typeof import('vuetify/components')['VDatePickerYears']
|
545
|
+
VDialog: typeof import('vuetify/components')['VDialog']
|
545
546
|
VDivider: typeof import('vuetify/components')['VDivider']
|
547
|
+
VEmptyState: typeof import('vuetify/components')['VEmptyState']
|
548
|
+
VFab: typeof import('vuetify/components')['VFab']
|
546
549
|
VExpansionPanels: typeof import('vuetify/components')['VExpansionPanels']
|
547
550
|
VExpansionPanel: typeof import('vuetify/components')['VExpansionPanel']
|
548
551
|
VExpansionPanelText: typeof import('vuetify/components')['VExpansionPanelText']
|
549
552
|
VExpansionPanelTitle: typeof import('vuetify/components')['VExpansionPanelTitle']
|
550
|
-
VFab: typeof import('vuetify/components')['VFab']
|
551
|
-
VDialog: typeof import('vuetify/components')['VDialog']
|
552
553
|
VFileInput: typeof import('vuetify/components')['VFileInput']
|
553
|
-
VEmptyState: typeof import('vuetify/components')['VEmptyState']
|
554
|
-
VFooter: typeof import('vuetify/components')['VFooter']
|
555
554
|
VField: typeof import('vuetify/components')['VField']
|
556
555
|
VFieldLabel: typeof import('vuetify/components')['VFieldLabel']
|
556
|
+
VFooter: typeof import('vuetify/components')['VFooter']
|
557
557
|
VIcon: typeof import('vuetify/components')['VIcon']
|
558
558
|
VComponentIcon: typeof import('vuetify/components')['VComponentIcon']
|
559
559
|
VSvgIcon: typeof import('vuetify/components')['VSvgIcon']
|
560
560
|
VLigatureIcon: typeof import('vuetify/components')['VLigatureIcon']
|
561
561
|
VClassIcon: typeof import('vuetify/components')['VClassIcon']
|
562
|
-
VInfiniteScroll: typeof import('vuetify/components')['VInfiniteScroll']
|
563
|
-
VImg: typeof import('vuetify/components')['VImg']
|
564
|
-
VItemGroup: typeof import('vuetify/components')['VItemGroup']
|
565
|
-
VItem: typeof import('vuetify/components')['VItem']
|
566
562
|
VInput: typeof import('vuetify/components')['VInput']
|
567
|
-
|
563
|
+
VImg: typeof import('vuetify/components')['VImg']
|
568
564
|
VKbd: typeof import('vuetify/components')['VKbd']
|
565
|
+
VInfiniteScroll: typeof import('vuetify/components')['VInfiniteScroll']
|
566
|
+
VLabel: typeof import('vuetify/components')['VLabel']
|
569
567
|
VList: typeof import('vuetify/components')['VList']
|
570
568
|
VListGroup: typeof import('vuetify/components')['VListGroup']
|
571
569
|
VListImg: typeof import('vuetify/components')['VListImg']
|
@@ -576,11 +574,13 @@ declare module '@vue/runtime-core' {
|
|
576
574
|
VListItemTitle: typeof import('vuetify/components')['VListItemTitle']
|
577
575
|
VListSubheader: typeof import('vuetify/components')['VListSubheader']
|
578
576
|
VMain: typeof import('vuetify/components')['VMain']
|
577
|
+
VItemGroup: typeof import('vuetify/components')['VItemGroup']
|
578
|
+
VItem: typeof import('vuetify/components')['VItem']
|
579
579
|
VMenu: typeof import('vuetify/components')['VMenu']
|
580
|
-
VMessages: typeof import('vuetify/components')['VMessages']
|
581
|
-
VOtpInput: typeof import('vuetify/components')['VOtpInput']
|
582
580
|
VNavigationDrawer: typeof import('vuetify/components')['VNavigationDrawer']
|
581
|
+
VMessages: typeof import('vuetify/components')['VMessages']
|
583
582
|
VOverlay: typeof import('vuetify/components')['VOverlay']
|
583
|
+
VOtpInput: typeof import('vuetify/components')['VOtpInput']
|
584
584
|
VPagination: typeof import('vuetify/components')['VPagination']
|
585
585
|
VProgressCircular: typeof import('vuetify/components')['VProgressCircular']
|
586
586
|
VRadioGroup: typeof import('vuetify/components')['VRadioGroup']
|
@@ -588,59 +588,58 @@ declare module '@vue/runtime-core' {
|
|
588
588
|
VRating: typeof import('vuetify/components')['VRating']
|
589
589
|
VSelect: typeof import('vuetify/components')['VSelect']
|
590
590
|
VSelectionControlGroup: typeof import('vuetify/components')['VSelectionControlGroup']
|
591
|
-
VSelectionControl: typeof import('vuetify/components')['VSelectionControl']
|
592
591
|
VSkeletonLoader: typeof import('vuetify/components')['VSkeletonLoader']
|
593
|
-
VSheet: typeof import('vuetify/components')['VSheet']
|
594
|
-
VSnackbar: typeof import('vuetify/components')['VSnackbar']
|
595
|
-
VSlider: typeof import('vuetify/components')['VSlider']
|
596
592
|
VSlideGroup: typeof import('vuetify/components')['VSlideGroup']
|
597
593
|
VSlideGroupItem: typeof import('vuetify/components')['VSlideGroupItem']
|
598
|
-
|
594
|
+
VSlider: typeof import('vuetify/components')['VSlider']
|
595
|
+
VSheet: typeof import('vuetify/components')['VSheet']
|
596
|
+
VSnackbar: typeof import('vuetify/components')['VSnackbar']
|
599
597
|
VStepper: typeof import('vuetify/components')['VStepper']
|
600
598
|
VStepperActions: typeof import('vuetify/components')['VStepperActions']
|
601
599
|
VStepperHeader: typeof import('vuetify/components')['VStepperHeader']
|
602
600
|
VStepperItem: typeof import('vuetify/components')['VStepperItem']
|
603
601
|
VStepperWindow: typeof import('vuetify/components')['VStepperWindow']
|
604
602
|
VStepperWindowItem: typeof import('vuetify/components')['VStepperWindowItem']
|
603
|
+
VSwitch: typeof import('vuetify/components')['VSwitch']
|
604
|
+
VSystemBar: typeof import('vuetify/components')['VSystemBar']
|
605
605
|
VTab: typeof import('vuetify/components')['VTab']
|
606
606
|
VTabs: typeof import('vuetify/components')['VTabs']
|
607
607
|
VTabsWindow: typeof import('vuetify/components')['VTabsWindow']
|
608
608
|
VTabsWindowItem: typeof import('vuetify/components')['VTabsWindowItem']
|
609
|
-
VSystemBar: typeof import('vuetify/components')['VSystemBar']
|
610
|
-
VTable: typeof import('vuetify/components')['VTable']
|
611
|
-
VTextarea: typeof import('vuetify/components')['VTextarea']
|
612
609
|
VTextField: typeof import('vuetify/components')['VTextField']
|
610
|
+
VTimeline: typeof import('vuetify/components')['VTimeline']
|
611
|
+
VTimelineItem: typeof import('vuetify/components')['VTimelineItem']
|
612
|
+
VTable: typeof import('vuetify/components')['VTable']
|
613
613
|
VToolbar: typeof import('vuetify/components')['VToolbar']
|
614
614
|
VToolbarTitle: typeof import('vuetify/components')['VToolbarTitle']
|
615
615
|
VToolbarItems: typeof import('vuetify/components')['VToolbarItems']
|
616
|
+
VTextarea: typeof import('vuetify/components')['VTextarea']
|
616
617
|
VTooltip: typeof import('vuetify/components')['VTooltip']
|
617
|
-
VTimeline: typeof import('vuetify/components')['VTimeline']
|
618
|
-
VTimelineItem: typeof import('vuetify/components')['VTimelineItem']
|
619
618
|
VWindow: typeof import('vuetify/components')['VWindow']
|
620
619
|
VWindowItem: typeof import('vuetify/components')['VWindowItem']
|
621
620
|
VConfirmEdit: typeof import('vuetify/components')['VConfirmEdit']
|
622
621
|
VDataIterator: typeof import('vuetify/components')['VDataIterator']
|
623
622
|
VDefaultsProvider: typeof import('vuetify/components')['VDefaultsProvider']
|
623
|
+
VForm: typeof import('vuetify/components')['VForm']
|
624
624
|
VContainer: typeof import('vuetify/components')['VContainer']
|
625
625
|
VCol: typeof import('vuetify/components')['VCol']
|
626
626
|
VRow: typeof import('vuetify/components')['VRow']
|
627
627
|
VSpacer: typeof import('vuetify/components')['VSpacer']
|
628
|
-
VForm: typeof import('vuetify/components')['VForm']
|
629
628
|
VHover: typeof import('vuetify/components')['VHover']
|
630
629
|
VLayout: typeof import('vuetify/components')['VLayout']
|
631
630
|
VLayoutItem: typeof import('vuetify/components')['VLayoutItem']
|
632
631
|
VLazy: typeof import('vuetify/components')['VLazy']
|
633
632
|
VLocaleProvider: typeof import('vuetify/components')['VLocaleProvider']
|
634
|
-
VParallax: typeof import('vuetify/components')['VParallax']
|
635
633
|
VNoSsr: typeof import('vuetify/components')['VNoSsr']
|
636
|
-
VRadio: typeof import('vuetify/components')['VRadio']
|
637
634
|
VRangeSlider: typeof import('vuetify/components')['VRangeSlider']
|
635
|
+
VParallax: typeof import('vuetify/components')['VParallax']
|
636
|
+
VRadio: typeof import('vuetify/components')['VRadio']
|
638
637
|
VResponsive: typeof import('vuetify/components')['VResponsive']
|
639
638
|
VSparkline: typeof import('vuetify/components')['VSparkline']
|
640
639
|
VSpeedDial: typeof import('vuetify/components')['VSpeedDial']
|
641
|
-
VValidation: typeof import('vuetify/components')['VValidation']
|
642
640
|
VThemeProvider: typeof import('vuetify/components')['VThemeProvider']
|
643
641
|
VVirtualScroll: typeof import('vuetify/components')['VVirtualScroll']
|
642
|
+
VValidation: typeof import('vuetify/components')['VValidation']
|
644
643
|
VFabTransition: typeof import('vuetify/components')['VFabTransition']
|
645
644
|
VDialogBottomTransition: typeof import('vuetify/components')['VDialogBottomTransition']
|
646
645
|
VDialogTopTransition: typeof import('vuetify/components')['VDialogTopTransition']
|
@@ -657,13 +656,13 @@ declare module '@vue/runtime-core' {
|
|
657
656
|
VExpandTransition: typeof import('vuetify/components')['VExpandTransition']
|
658
657
|
VExpandXTransition: typeof import('vuetify/components')['VExpandXTransition']
|
659
658
|
VDialogTransition: typeof import('vuetify/components')['VDialogTransition']
|
659
|
+
VSelectionControl: typeof import('vuetify/components')['VSelectionControl']
|
660
660
|
VCalendar: typeof import('vuetify/labs/components')['VCalendar']
|
661
661
|
VCalendarDay: typeof import('vuetify/labs/components')['VCalendarDay']
|
662
662
|
VCalendarHeader: typeof import('vuetify/labs/components')['VCalendarHeader']
|
663
663
|
VCalendarInterval: typeof import('vuetify/labs/components')['VCalendarInterval']
|
664
664
|
VCalendarIntervalEvent: typeof import('vuetify/labs/components')['VCalendarIntervalEvent']
|
665
665
|
VCalendarMonthDay: typeof import('vuetify/labs/components')['VCalendarMonthDay']
|
666
|
-
VNumberInput: typeof import('vuetify/labs/components')['VNumberInput']
|
667
666
|
VStepperVertical: typeof import('vuetify/labs/components')['VStepperVertical']
|
668
667
|
VStepperVerticalItem: typeof import('vuetify/labs/components')['VStepperVerticalItem']
|
669
668
|
VStepperVerticalActions: typeof import('vuetify/labs/components')['VStepperVerticalActions']
|
@@ -672,11 +671,12 @@ declare module '@vue/runtime-core' {
|
|
672
671
|
VTimePicker: typeof import('vuetify/labs/components')['VTimePicker']
|
673
672
|
VTimePickerClock: typeof import('vuetify/labs/components')['VTimePickerClock']
|
674
673
|
VTimePickerControls: typeof import('vuetify/labs/components')['VTimePickerControls']
|
674
|
+
VNumberInput: typeof import('vuetify/labs/components')['VNumberInput']
|
675
675
|
VTreeview: typeof import('vuetify/labs/components')['VTreeview']
|
676
676
|
VTreeviewItem: typeof import('vuetify/labs/components')['VTreeviewItem']
|
677
677
|
VTreeviewGroup: typeof import('vuetify/labs/components')['VTreeviewGroup']
|
678
678
|
VDateInput: typeof import('vuetify/labs/components')['VDateInput']
|
679
|
-
VSnackbarQueue: typeof import('vuetify/labs/components')['VSnackbarQueue']
|
680
679
|
VPullToRefresh: typeof import('vuetify/labs/components')['VPullToRefresh']
|
680
|
+
VSnackbarQueue: typeof import('vuetify/labs/components')['VSnackbarQueue']
|
681
681
|
}
|
682
682
|
}
|
@@ -63,7 +63,7 @@ export const VCalendar = genericComponent()({
|
|
63
63
|
}
|
64
64
|
}
|
65
65
|
function onClickToday() {
|
66
|
-
model.value = [
|
66
|
+
model.value = [adapter.date()];
|
67
67
|
}
|
68
68
|
const title = computed(() => {
|
69
69
|
return adapter.format(displayValue.value, 'monthAndYear');
|
@@ -102,7 +102,7 @@ export const VCalendar = genericComponent()({
|
|
102
102
|
}, [chunkArray(daysInMonth.value, props.weekdays.length).map((week, wi) => [!props.hideWeekNumber ? _createVNode("div", {
|
103
103
|
"class": "v-calendar-month__weeknumber"
|
104
104
|
}, [weekNumbers.value[wi]]) : '', week.map(day => _createVNode(VCalendarMonthDay, {
|
105
|
-
"color": adapter.isSameDay(
|
105
|
+
"color": adapter.isSameDay(adapter.date(), day.date) ? 'primary' : undefined,
|
106
106
|
"day": day,
|
107
107
|
"title": day ? adapter.format(day.date, 'dayOfMonth') : 'NaN',
|
108
108
|
"events": props.events?.filter(e => adapter.isSameDay(day.date, e.start) || adapter.isSameDay(day.date, e.end))
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"VCalendar.mjs","names":["makeVCalendarDayProps","VCalendarDay","makeVCalendarHeaderProps","VCalendarHeader","VCalendarMonthDay","makeCalendarProps","useCalendar","useDate","computed","chunkArray","genericComponent","propsFactory","useRender","makeVCalendarProps","hideHeader","Boolean","hideWeekNumber","VCalendar","name","props","emits","next","prev","setup","_ref","emit","slots","adapter","daysInMonth","daysInWeek","genDays","model","displayValue","weekNumbers","dayNames","getWeekdays","onClickNext","viewMode","value","addMonths","addDays","onClickPrev","onClickToday","Date","title","format","calendarDayProps","filterProps","calendarHeaderProps","_createVNode","header","_mergeProps","weekdays","length","hideDayHeader","map","weekday","week","wi","day","isSameDay","date","undefined","events","filter","e","start","end","event","i"],"sources":["../../../src/labs/VCalendar/VCalendar.tsx"],"sourcesContent":["// Styles\nimport './VCalendar.sass'\n\n// Components\nimport { makeVCalendarDayProps, VCalendarDay } from './VCalendarDay'\nimport { makeVCalendarHeaderProps, VCalendarHeader } from './VCalendarHeader'\nimport { VCalendarMonthDay } from './VCalendarMonthDay'\n\n// Composables\nimport { makeCalendarProps, useCalendar } from '@/composables/calendar'\nimport { useDate } from '@/composables/date/date'\n\n// Utilities\nimport { computed } from 'vue'\nimport { chunkArray, genericComponent, propsFactory, useRender } from '@/util'\n\nexport const makeVCalendarProps = propsFactory({\n hideHeader: Boolean,\n hideWeekNumber: Boolean,\n\n ...makeCalendarProps(),\n ...makeVCalendarDayProps(),\n ...makeVCalendarHeaderProps(),\n}, 'VCalender')\n\nexport type VCalendarSlots = {\n header: { title: string }\n event: { day?: Object, allDay: boolean, event: Record<string, unknown> }\n}\n\nexport const VCalendar = genericComponent<VCalendarSlots>()({\n name: 'VCalendar',\n\n props: makeVCalendarProps(),\n\n emits: {\n next: null,\n prev: null,\n 'update:modelValue': null,\n },\n\n setup (props, { emit, slots }) {\n const adapter = useDate()\n\n const { daysInMonth, daysInWeek, genDays, model, displayValue, weekNumbers } = useCalendar(props as any)\n\n const dayNames = adapter.getWeekdays()\n\n function onClickNext () {\n if (props.viewMode === 'month') {\n model.value = [adapter.addMonths(displayValue.value, 1)]\n }\n if (props.viewMode === 'week') {\n model.value = [adapter.addDays(displayValue.value, 7)]\n }\n if (props.viewMode === 'day') {\n model.value = [adapter.addDays(displayValue.value, 1)]\n }\n }\n\n function onClickPrev () {\n if (props.viewMode === 'month') {\n model.value = [adapter.addMonths(displayValue.value, -1)]\n }\n if (props.viewMode === 'week') {\n model.value = [adapter.addDays(displayValue.value, -7)]\n }\n if (props.viewMode === 'day') {\n model.value = [adapter.addDays(displayValue.value, -1)]\n }\n }\n\n function onClickToday () {\n model.value = [new Date()]\n }\n\n const title = computed(() => {\n return adapter.format(displayValue.value, 'monthAndYear')\n })\n\n useRender(() => {\n const calendarDayProps = VCalendarDay.filterProps(props)\n const calendarHeaderProps = VCalendarHeader.filterProps(props)\n\n return (\n <div class={[\n 'v-calendar',\n {\n 'v-calendar-monthly': props.viewMode === 'month',\n 'v-calendar-weekly': props.viewMode === 'week',\n 'v-calendar-day': props.viewMode === 'day',\n },\n ]}\n >\n <div>\n { !props.hideHeader && (\n !slots.header ? (\n <VCalendarHeader\n key=\"calendar-header\"\n { ...calendarHeaderProps }\n title={ title.value }\n onClick:next={ onClickNext }\n onClick:prev={ onClickPrev }\n onClick:toToday={ onClickToday }\n />\n ) : (\n slots.header({ title: title.value })\n )\n )}\n </div>\n\n <div class={['v-calendar__container', `days__${props.weekdays.length}`]}>\n { props.viewMode === 'month' && !props.hideDayHeader && (\n <div\n class={\n [\n 'v-calendar-weekly__head',\n `days__${props.weekdays.length}`,\n ...(!props.hideWeekNumber ? ['v-calendar-weekly__head-weeknumbers'] : []),\n ]\n }\n key=\"calenderWeeklyHead\"\n >\n { !props.hideWeekNumber ? <div key=\"weekNumber0\" class=\"v-calendar-weekly__head-weeknumber\"></div> : '' }\n {\n props.weekdays.map(weekday => (\n <div class={ `v-calendar-weekly__head-weekday${!props.hideWeekNumber ? '-with-weeknumber' : ''}` }>\n { dayNames[weekday] }\n </div>\n ))\n }\n </div>\n )}\n\n { props.viewMode === 'month' && (\n <div\n key=\"VCalendarMonth\"\n class={\n [\n 'v-calendar-month__days',\n `days${!props.hideWeekNumber ? '-with-weeknumbers' : ''}__${props.weekdays.length}`,\n ...(!props.hideWeekNumber ? ['v-calendar-month__weeknumbers'] : []),\n ]\n }\n >\n { chunkArray(daysInMonth.value, props.weekdays.length)\n .map((week, wi) => (\n [\n !props.hideWeekNumber ? <div class=\"v-calendar-month__weeknumber\">{ weekNumbers.value[wi] }</div> : '',\n week.map(day => (\n <VCalendarMonthDay\n color={ adapter.isSameDay(new Date(), day.date) ? 'primary' : undefined }\n day={ day }\n title={ day ? adapter.format(day.date, 'dayOfMonth') : 'NaN' }\n events={ props.events?.filter(e => adapter.isSameDay(day.date, e.start) || adapter.isSameDay(day.date, e.end)) }\n v-slots={{\n event: slots.event,\n }}\n ></VCalendarMonthDay>\n )),\n ]\n ))}\n </div>\n )}\n\n { props.viewMode === 'week' && (\n daysInWeek.value.map((day, i) => (\n <VCalendarDay\n { ...calendarDayProps }\n day={ day }\n dayIndex={ i }\n events={ props.events?.filter(e => adapter.isSameDay(e.start, day.date) || adapter.isSameDay(e.end, day.date)) }\n ></VCalendarDay>\n ))\n )}\n\n { props.viewMode === 'day' && (\n <VCalendarDay\n { ...calendarDayProps }\n day={ genDays([displayValue.value as Date], adapter.date() as Date)[0] }\n dayIndex={ 0 }\n events={\n props.events?.filter(e =>\n adapter.isSameDay(e.start, genDays([displayValue.value as Date], adapter.date() as Date)[0].date) ||\n adapter.isSameDay(e.end, genDays([displayValue.value as Date], adapter.date() as Date)[0].date)\n )\n }\n ></VCalendarDay>\n )}\n </div>\n </div>\n )\n })\n\n return { daysInMonth, daysInWeek, genDays }\n },\n})\n\nexport type VCalendar = InstanceType<typeof VCalendar>\n"],"mappings":";AAAA;AACA;;AAEA;AAAA,SACSA,qBAAqB,EAAEC,YAAY;A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arHeaderProps","VCalendarHeader","VCalendarMonthDay","makeCalendarProps","useCalendar","useDate","computed","chunkArray","genericComponent","propsFactory","useRender","makeVCalendarProps","hideHeader","Boolean","hideWeekNumber","VCalendar","name","props","emits","next","prev","setup","_ref","emit","slots","adapter","daysInMonth","daysInWeek","genDays","model","displayValue","weekNumbers","dayNames","getWeekdays","onClickNext","viewMode","value","addMonths","addDays","onClickPrev","onClickToday","date","title","format","calendarDayProps","filterProps","calendarHeaderProps","_createVNode","header","_mergeProps","weekdays","length","hideDayHeader","map","weekday","week","wi","day","isSameDay","undefined","events","filter","e","start","end","event","i"],"sources":["../../../src/labs/VCalendar/VCalendar.tsx"],"sourcesContent":["// Styles\nimport './VCalendar.sass'\n\n// Components\nimport { makeVCalendarDayProps, VCalendarDay } from './VCalendarDay'\nimport { makeVCalendarHeaderProps, VCalendarHeader } from './VCalendarHeader'\nimport { VCalendarMonthDay } from './VCalendarMonthDay'\n\n// Composables\nimport { makeCalendarProps, useCalendar } from '@/composables/calendar'\nimport { useDate } from '@/composables/date/date'\n\n// Utilities\nimport { computed } from 'vue'\nimport { chunkArray, genericComponent, propsFactory, useRender } from '@/util'\n\nexport const makeVCalendarProps = propsFactory({\n hideHeader: Boolean,\n hideWeekNumber: Boolean,\n\n ...makeCalendarProps(),\n ...makeVCalendarDayProps(),\n ...makeVCalendarHeaderProps(),\n}, 'VCalender')\n\nexport type VCalendarSlots = {\n header: { title: string }\n event: { day?: Object, allDay: boolean, event: Record<string, unknown> }\n}\n\nexport const VCalendar = genericComponent<VCalendarSlots>()({\n name: 'VCalendar',\n\n props: makeVCalendarProps(),\n\n emits: {\n next: null,\n prev: null,\n 'update:modelValue': null,\n },\n\n setup (props, { emit, slots }) {\n const adapter = useDate()\n\n const { daysInMonth, daysInWeek, genDays, model, displayValue, weekNumbers } = useCalendar(props as any)\n\n const dayNames = adapter.getWeekdays()\n\n function onClickNext () {\n if (props.viewMode === 'month') {\n model.value = [adapter.addMonths(displayValue.value, 1)]\n }\n if (props.viewMode === 'week') {\n model.value = [adapter.addDays(displayValue.value, 7)]\n }\n if (props.viewMode === 'day') {\n model.value = [adapter.addDays(displayValue.value, 1)]\n }\n }\n\n function onClickPrev () {\n if (props.viewMode === 'month') {\n model.value = [adapter.addMonths(displayValue.value, -1)]\n }\n if (props.viewMode === 'week') {\n model.value = [adapter.addDays(displayValue.value, -7)]\n }\n if (props.viewMode === 'day') {\n model.value = [adapter.addDays(displayValue.value, -1)]\n }\n }\n\n function onClickToday () {\n model.value = [adapter.date()]\n }\n\n const title = computed(() => {\n return adapter.format(displayValue.value, 'monthAndYear')\n })\n\n useRender(() => {\n const calendarDayProps = VCalendarDay.filterProps(props)\n const calendarHeaderProps = VCalendarHeader.filterProps(props)\n\n return (\n <div class={[\n 'v-calendar',\n {\n 'v-calendar-monthly': props.viewMode === 'month',\n 'v-calendar-weekly': props.viewMode === 'week',\n 'v-calendar-day': props.viewMode === 'day',\n },\n ]}\n >\n <div>\n { !props.hideHeader && (\n !slots.header ? (\n <VCalendarHeader\n key=\"calendar-header\"\n { ...calendarHeaderProps }\n title={ title.value }\n onClick:next={ onClickNext }\n onClick:prev={ onClickPrev }\n onClick:toToday={ onClickToday }\n />\n ) : (\n slots.header({ title: title.value })\n )\n )}\n </div>\n\n <div class={['v-calendar__container', `days__${props.weekdays.length}`]}>\n { props.viewMode === 'month' && !props.hideDayHeader && (\n <div\n class={\n [\n 'v-calendar-weekly__head',\n `days__${props.weekdays.length}`,\n ...(!props.hideWeekNumber ? ['v-calendar-weekly__head-weeknumbers'] : []),\n ]\n }\n key=\"calenderWeeklyHead\"\n >\n { !props.hideWeekNumber ? <div key=\"weekNumber0\" class=\"v-calendar-weekly__head-weeknumber\"></div> : '' }\n {\n props.weekdays.map(weekday => (\n <div class={ `v-calendar-weekly__head-weekday${!props.hideWeekNumber ? '-with-weeknumber' : ''}` }>\n { dayNames[weekday] }\n </div>\n ))\n }\n </div>\n )}\n\n { props.viewMode === 'month' && (\n <div\n key=\"VCalendarMonth\"\n class={\n [\n 'v-calendar-month__days',\n `days${!props.hideWeekNumber ? '-with-weeknumbers' : ''}__${props.weekdays.length}`,\n ...(!props.hideWeekNumber ? ['v-calendar-month__weeknumbers'] : []),\n ]\n }\n >\n { chunkArray(daysInMonth.value, props.weekdays.length)\n .map((week, wi) => (\n [\n !props.hideWeekNumber ? <div class=\"v-calendar-month__weeknumber\">{ weekNumbers.value[wi] }</div> : '',\n week.map(day => (\n <VCalendarMonthDay\n color={ adapter.isSameDay(adapter.date(), day.date) ? 'primary' : undefined }\n day={ day }\n title={ day ? adapter.format(day.date, 'dayOfMonth') : 'NaN' }\n events={ props.events?.filter(e => adapter.isSameDay(day.date, e.start) || adapter.isSameDay(day.date, e.end)) }\n v-slots={{\n event: slots.event,\n }}\n ></VCalendarMonthDay>\n )),\n ]\n ))}\n </div>\n )}\n\n { props.viewMode === 'week' && (\n daysInWeek.value.map((day, i) => (\n <VCalendarDay\n { ...calendarDayProps }\n day={ day }\n dayIndex={ i }\n events={ props.events?.filter(e => adapter.isSameDay(e.start, day.date) || adapter.isSameDay(e.end, day.date)) }\n ></VCalendarDay>\n ))\n )}\n\n { props.viewMode === 'day' && (\n <VCalendarDay\n { ...calendarDayProps }\n day={ genDays([displayValue.value as Date], adapter.date() as Date)[0] }\n dayIndex={ 0 }\n events={\n props.events?.filter(e =>\n adapter.isSameDay(e.start, genDays([displayValue.value as Date], adapter.date() as Date)[0].date) ||\n adapter.isSameDay(e.end, genDays([displayValue.value as Date], adapter.date() as Date)[0].date)\n )\n }\n ></VCalendarDay>\n )}\n </div>\n </div>\n )\n })\n\n return { daysInMonth, daysInWeek, genDays }\n },\n})\n\nexport type VCalendar = InstanceType<typeof VCalendar>\n"],"mappings":";AAAA;AACA;;AAEA;AAAA,SACSA,qBAAqB,EAAEC,YAAY;AAAA,SACnCC,wBAAwB,EAAEC,eAAe;AAAA,SACzCC,iBAAiB,mCAE1B;AAAA,SACSC,iBAAiB,EAAEC,WAAW;AAAA,SA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L,gBAAgB;QAAA,OACfa,GAAG;QAAA,YACES,CAAC;QAAA,UACHjD,KAAK,CAAC2C,MAAM,EAAEC,MAAM,CAACC,CAAC,IAAIrC,OAAO,CAACiC,SAAS,CAACI,CAAC,CAACC,KAAK,EAAEN,GAAG,CAAChB,IAAI,CAAC,IAAIhB,OAAO,CAACiC,SAAS,CAACI,CAAC,CAACE,GAAG,EAAEP,GAAG,CAAChB,IAAI,CAAC;MAAC,SAEjH,CACF,EAECxB,KAAK,CAACkB,QAAQ,KAAK,KAAK,IAAAY,YAAA,CAAAhD,YAAA,EAAAkD,WAAA,CAEjBL,gBAAgB;QAAA,OACfhB,OAAO,CAAC,CAACE,YAAY,CAACM,KAAK,CAAS,EAAEX,OAAO,CAACgB,IAAI,CAAC,CAAS,CAAC,CAAC,CAAC,CAAC;QAAA,YAC3D,CAAC;QAAA,UAEVxB,KAAK,CAAC2C,MAAM,EAAEC,MAAM,CAACC,CAAC,IACpBrC,OAAO,CAACiC,SAAS,CAACI,CAAC,CAACC,KAAK,EAAEnC,OAAO,CAAC,CAACE,YAAY,CAACM,KAAK,CAAS,EAAEX,OAAO,CAACgB,IAAI,CAAC,CAAS,CAAC,CAAC,CAAC,CAAC,CAACA,IAAI,CAAC,IACjGhB,OAAO,CAACiC,SAAS,CAACI,CAAC,CAACE,GAAG,EAAEpC,OAAO,CAAC,CAACE,YAAY,CAACM,KAAK,CAAS,EAAEX,OAAO,CAACgB,IAAI,CAAC,CAAS,CAAC,CAAC,CAAC,CAAC,CAACA,IAAI,CAChG;MAAC,SAGN;IAIT,CAAC,CAAC;IAEF,OAAO;MAAEf,WAAW;MAAEC,UAAU;MAAEC;IAAQ,CAAC;EAC7C;AACF,CAAC,CAAC","ignoreList":[]}
|
@@ -83,7 +83,7 @@ declare const VDateInput: {
|
|
83
83
|
loading?: string | boolean | undefined;
|
84
84
|
counter?: string | number | boolean | undefined;
|
85
85
|
month?: string | number | undefined;
|
86
|
-
year?:
|
86
|
+
year?: number | undefined;
|
87
87
|
border?: string | number | boolean | undefined;
|
88
88
|
position?: "fixed" | "absolute" | "relative" | "static" | "sticky" | undefined;
|
89
89
|
'onUpdate:focused'?: ((args_0: boolean) => void) | undefined;
|
@@ -195,7 +195,7 @@ declare const VDateInput: {
|
|
195
195
|
loading?: string | boolean | undefined;
|
196
196
|
counter?: string | number | boolean | undefined;
|
197
197
|
month?: string | number | undefined;
|
198
|
-
year?:
|
198
|
+
year?: number | undefined;
|
199
199
|
border?: string | number | boolean | undefined;
|
200
200
|
position?: "fixed" | "absolute" | "relative" | "static" | "sticky" | undefined;
|
201
201
|
'onUpdate:focused'?: ((args_0: boolean) => void) | undefined;
|
@@ -367,7 +367,7 @@ declare const VDateInput: {
|
|
367
367
|
loading?: string | boolean | undefined;
|
368
368
|
counter?: string | number | boolean | undefined;
|
369
369
|
month?: string | number | undefined;
|
370
|
-
year?:
|
370
|
+
year?: number | undefined;
|
371
371
|
border?: string | number | boolean | undefined;
|
372
372
|
position?: "fixed" | "absolute" | "relative" | "static" | "sticky" | undefined;
|
373
373
|
'onUpdate:focused'?: ((args_0: boolean) => void) | undefined;
|
@@ -532,7 +532,7 @@ declare const VDateInput: {
|
|
532
532
|
loading?: string | boolean | undefined;
|
533
533
|
counter?: string | number | boolean | undefined;
|
534
534
|
month?: string | number | undefined;
|
535
|
-
year?:
|
535
|
+
year?: number | undefined;
|
536
536
|
border?: string | number | boolean | undefined;
|
537
537
|
position?: "fixed" | "absolute" | "relative" | "static" | "sticky" | undefined;
|
538
538
|
'onUpdate:focused'?: ((args_0: boolean) => void) | undefined;
|
@@ -661,7 +661,7 @@ declare const VDateInput: {
|
|
661
661
|
default: string;
|
662
662
|
};
|
663
663
|
month: (StringConstructor | NumberConstructor)[];
|
664
|
-
year:
|
664
|
+
year: NumberConstructor;
|
665
665
|
border: (StringConstructor | NumberConstructor | BooleanConstructor)[];
|
666
666
|
transition: {
|
667
667
|
type: StringConstructor;
|
@@ -874,7 +874,7 @@ declare const VDateInput: {
|
|
874
874
|
default: string;
|
875
875
|
};
|
876
876
|
month: (StringConstructor | NumberConstructor)[];
|
877
|
-
year:
|
877
|
+
year: NumberConstructor;
|
878
878
|
border: (StringConstructor | NumberConstructor | BooleanConstructor)[];
|
879
879
|
transition: {
|
880
880
|
type: StringConstructor;
|
@@ -1882,7 +1882,7 @@ declare const VDateInput: {
|
|
1882
1882
|
loading?: string | boolean | undefined;
|
1883
1883
|
counter?: string | number | boolean | undefined;
|
1884
1884
|
month?: string | number | undefined;
|
1885
|
-
year?:
|
1885
|
+
year?: number | undefined;
|
1886
1886
|
border?: string | number | boolean | undefined;
|
1887
1887
|
position?: "fixed" | "absolute" | "relative" | "static" | "sticky" | undefined;
|
1888
1888
|
'onUpdate:focused'?: ((args_0: boolean) => void) | undefined;
|
@@ -1994,7 +1994,7 @@ declare const VDateInput: {
|
|
1994
1994
|
loading?: string | boolean | undefined;
|
1995
1995
|
counter?: string | number | boolean | undefined;
|
1996
1996
|
month?: string | number | undefined;
|
1997
|
-
year?:
|
1997
|
+
year?: number | undefined;
|
1998
1998
|
border?: string | number | boolean | undefined;
|
1999
1999
|
position?: "fixed" | "absolute" | "relative" | "static" | "sticky" | undefined;
|
2000
2000
|
'onUpdate:focused'?: ((args_0: boolean) => void) | undefined;
|
@@ -2166,7 +2166,7 @@ declare const VDateInput: {
|
|
2166
2166
|
loading?: string | boolean | undefined;
|
2167
2167
|
counter?: string | number | boolean | undefined;
|
2168
2168
|
month?: string | number | undefined;
|
2169
|
-
year?:
|
2169
|
+
year?: number | undefined;
|
2170
2170
|
border?: string | number | boolean | undefined;
|
2171
2171
|
position?: "fixed" | "absolute" | "relative" | "static" | "sticky" | undefined;
|
2172
2172
|
'onUpdate:focused'?: ((args_0: boolean) => void) | undefined;
|
@@ -2331,7 +2331,7 @@ declare const VDateInput: {
|
|
2331
2331
|
loading?: string | boolean | undefined;
|
2332
2332
|
counter?: string | number | boolean | undefined;
|
2333
2333
|
month?: string | number | undefined;
|
2334
|
-
year?:
|
2334
|
+
year?: number | undefined;
|
2335
2335
|
border?: string | number | boolean | undefined;
|
2336
2336
|
position?: "fixed" | "absolute" | "relative" | "static" | "sticky" | undefined;
|
2337
2337
|
'onUpdate:focused'?: ((args_0: boolean) => void) | undefined;
|
@@ -2460,7 +2460,7 @@ declare const VDateInput: {
|
|
2460
2460
|
default: string;
|
2461
2461
|
};
|
2462
2462
|
month: (StringConstructor | NumberConstructor)[];
|
2463
|
-
year:
|
2463
|
+
year: NumberConstructor;
|
2464
2464
|
border: (StringConstructor | NumberConstructor | BooleanConstructor)[];
|
2465
2465
|
transition: {
|
2466
2466
|
type: StringConstructor;
|
@@ -2673,7 +2673,7 @@ declare const VDateInput: {
|
|
2673
2673
|
default: string;
|
2674
2674
|
};
|
2675
2675
|
month: (StringConstructor | NumberConstructor)[];
|
2676
|
-
year:
|
2676
|
+
year: NumberConstructor;
|
2677
2677
|
border: (StringConstructor | NumberConstructor | BooleanConstructor)[];
|
2678
2678
|
transition: {
|
2679
2679
|
type: StringConstructor;
|
package/lib/locale/fa.mjs
CHANGED
@@ -1,10 +1,10 @@
|
|
1
1
|
export default {
|
2
2
|
badge: 'نشان',
|
3
|
-
open: '
|
3
|
+
open: 'باز کردن',
|
4
4
|
close: 'بستن',
|
5
|
-
dismiss: '
|
5
|
+
dismiss: 'رد کردن',
|
6
6
|
confirmEdit: {
|
7
|
-
ok: '
|
7
|
+
ok: 'تایید',
|
8
8
|
cancel: 'لغو'
|
9
9
|
},
|
10
10
|
dataIterator: {
|
@@ -33,10 +33,10 @@ export default {
|
|
33
33
|
pageText: '{0} تا {1} از {2}'
|
34
34
|
},
|
35
35
|
dateRangeInput: {
|
36
|
-
divider: '
|
36
|
+
divider: 'تا'
|
37
37
|
},
|
38
38
|
datePicker: {
|
39
|
-
itemsSelected: '{0}
|
39
|
+
itemsSelected: '{0} انتخابشده',
|
40
40
|
range: {
|
41
41
|
title: 'انتخاب تاریخها',
|
42
42
|
header: 'تاریخها را وارد کنید'
|
@@ -57,13 +57,13 @@ export default {
|
|
57
57
|
},
|
58
58
|
calendar: {
|
59
59
|
moreEvents: '{بیشتر {0',
|
60
|
-
today: '
|
60
|
+
today: 'امروز'
|
61
61
|
},
|
62
62
|
input: {
|
63
|
-
clear: '
|
63
|
+
clear: 'پاکسازی {0}',
|
64
64
|
prependAction: '{0} prepended action',
|
65
65
|
appendAction: '{0} appended action',
|
66
|
-
otp: '
|
66
|
+
otp: 'لطفا کد را وارد کنید {0}'
|
67
67
|
},
|
68
68
|
fileInput: {
|
69
69
|
counter: '{0} پرونده',
|
@@ -72,7 +72,7 @@ export default {
|
|
72
72
|
timePicker: {
|
73
73
|
am: 'قبل از ظهر',
|
74
74
|
pm: 'بعد از ظهر',
|
75
|
-
title: '
|
75
|
+
title: 'انتخاب زمان'
|
76
76
|
},
|
77
77
|
pagination: {
|
78
78
|
ariaLabel: {
|
@@ -91,7 +91,7 @@ export default {
|
|
91
91
|
},
|
92
92
|
rating: {
|
93
93
|
ariaLabel: {
|
94
|
-
item: '
|
94
|
+
item: 'امتیاز {0} از {1}'
|
95
95
|
}
|
96
96
|
},
|
97
97
|
loading: 'در حال بارگذاری...',
|
package/lib/locale/fa.mjs.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"fa.mjs","names":["badge","open","close","dismiss","confirmEdit","ok","cancel","dataIterator","noResultsText","loadingText","dataTable","itemsPerPageText","ariaLabel","sortDescending","sortAscending","sortNone","activateNone","activateDescending","activateAscending","sortBy","dataFooter","itemsPerPageAll","nextPage","prevPage","firstPage","lastPage","pageText","dateRangeInput","divider","datePicker","itemsSelected","range","title","header","input","placeholder","noDataText","carousel","prev","next","delimiter","calendar","moreEvents","today","clear","prependAction","appendAction","otp","fileInput","counter","counterSize","timePicker","am","pm","pagination","root","previous","page","currentPage","first","last","stepper","rating","item","loading","infiniteScroll","loadMore","empty"],"sources":["../../src/locale/fa.ts"],"sourcesContent":["export default {\n badge: 'نشان',\n open: '
|
1
|
+
{"version":3,"file":"fa.mjs","names":["badge","open","close","dismiss","confirmEdit","ok","cancel","dataIterator","noResultsText","loadingText","dataTable","itemsPerPageText","ariaLabel","sortDescending","sortAscending","sortNone","activateNone","activateDescending","activateAscending","sortBy","dataFooter","itemsPerPageAll","nextPage","prevPage","firstPage","lastPage","pageText","dateRangeInput","divider","datePicker","itemsSelected","range","title","header","input","placeholder","noDataText","carousel","prev","next","delimiter","calendar","moreEvents","today","clear","prependAction","appendAction","otp","fileInput","counter","counterSize","timePicker","am","pm","pagination","root","previous","page","currentPage","first","last","stepper","rating","item","loading","infiniteScroll","loadMore","empty"],"sources":["../../src/locale/fa.ts"],"sourcesContent":["export default {\n badge: 'نشان',\n open: 'باز کردن',\n close: 'بستن',\n dismiss: 'رد کردن',\n confirmEdit: {\n ok: 'تایید',\n cancel: 'لغو',\n },\n dataIterator: {\n noResultsText: 'نتیجهای یافت نشد',\n loadingText: 'در حال بارگذاری...',\n },\n dataTable: {\n itemsPerPageText: 'ردیف در صفحه:',\n ariaLabel: {\n sortDescending: 'مرتبسازی نزولی',\n sortAscending: 'مرتبسازی صعودی',\n sortNone: 'بدون مرتبسازی',\n activateNone: 'غیرفعالسازی مرتبسازی',\n activateDescending: 'غیرفعالسازی مرتبسازی نزولی',\n activateAscending: 'غیرفعالسازی مرتبسازی صعودی',\n },\n sortBy: 'مرتبسازی براساس',\n },\n dataFooter: {\n itemsPerPageText: 'ردیف در صفحه:',\n itemsPerPageAll: 'همه',\n nextPage: 'صفحهی بعد',\n prevPage: 'صفحهی قبل',\n firstPage: 'صفحهی یکم',\n lastPage: 'صفحهی آخر',\n pageText: '{0} تا {1} از {2}',\n },\n dateRangeInput: {\n divider: 'تا',\n },\n datePicker: {\n itemsSelected: '{0} انتخابشده',\n range: {\n title: 'انتخاب تاریخها',\n header: 'تاریخها را وارد کنید',\n },\n title: 'انتخاب تاریخ',\n header: 'تاریخ را وارد کنید',\n input: {\n placeholder: 'تاریخ را وارد کنید',\n },\n },\n noDataText: 'دادهای موجود نیست',\n carousel: {\n prev: 'اسلاید قبلی',\n next: 'اسلاید بعدی',\n ariaLabel: {\n delimiter: 'اسلاید {0} از {1}',\n },\n },\n calendar: {\n moreEvents: '{بیشتر {0',\n today: 'امروز',\n },\n input: {\n clear: 'پاکسازی {0}',\n prependAction: '{0} prepended action',\n appendAction: '{0} appended action',\n otp: 'لطفا کد را وارد کنید {0}',\n },\n fileInput: {\n counter: '{0} پرونده',\n counterSize: '{0} پرونده ({1} در کل)',\n },\n timePicker: {\n am: 'قبل از ظهر',\n pm: 'بعد از ظهر',\n title: 'انتخاب زمان',\n },\n pagination: {\n ariaLabel: {\n root: 'جهت یابی صفحه',\n next: 'صفحهی بعد',\n previous: 'صفحهی قبلی',\n page: 'برو صفحه {0}',\n currentPage: '{0} صفحهی فعلی ، صفحهی',\n first: 'صفحهی اول',\n last: 'صفحهی آخر',\n },\n },\n stepper: {\n next: 'بعدی',\n prev: 'قبلی',\n },\n rating: {\n ariaLabel: {\n item: 'امتیاز {0} از {1}',\n },\n },\n loading: 'در حال بارگذاری...',\n infiniteScroll: {\n loadMore: 'بارگذاری بیشتر',\n empty: 'پایان',\n },\n}\n"],"mappings":"AAAA,eAAe;EACbA,KAAK,EAAE,MAAM;EACbC,IAAI,EAAE,UAAU;EAChBC,KAAK,EAAE,MAAM;EACbC,OAAO,EAAE,SAAS;EAClBC,WAAW,EAAE;IACXC,EAAE,EAAE,OAAO;IACXC,MAAM,EAAE;EACV,CAAC;EACDC,YAAY,EAAE;IACZC,aAAa,EAAE,mBAAmB;IAClCC,WAAW,EAAE;EACf,CAAC;EACDC,SAAS,EAAE;IACTC,gBAAgB,EAAE,eAAe;IACjCC,SAAS,EAAE;MACTC,cAAc,EAAE,iBAAiB;MACjCC,aAAa,EAAE,iBAAiB;MAChCC,QAAQ,EAAE,gBAAgB;MAC1BC,YAAY,EAAE,wBAAwB;MACtCC,kBAAkB,EAAE,8BAA8B;MAClDC,iBAAiB,EAAE;IACrB,CAAC;IACDC,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AAI,EAAE;IACR;EACF,CAAC;EACDC,OAAO,EAAE;IACPtB,IAAI,EAAE,MAAM;IACZD,IAAI,EAAE;EACR,CAAC;EACDwB,MAAM,EAAE;IACNlD,SAAS,EAAE;MACTmD,IAAI,EAAE;IACR;EACF,CAAC;EACDC,OAAO,EAAE,oBAAoB;EAC7BC,cAAc,EAAE;IACdC,QAAQ,EAAE,gBAAgB;IAC1BC,KAAK,EAAE;EACT;AACF,CAAC","ignoreList":[]}
|
package/lib/util/helpers.mjs
CHANGED
@@ -337,6 +337,8 @@ export function findChildrenWithProvide(key, vnode) {
|
|
337
337
|
if (!vnode || typeof vnode !== 'object') return [];
|
338
338
|
if (Array.isArray(vnode)) {
|
339
339
|
return vnode.map(child => findChildrenWithProvide(key, child)).flat(1);
|
340
|
+
} else if (vnode.suspense) {
|
341
|
+
return findChildrenWithProvide(key, vnode.ssContent);
|
340
342
|
} else if (Array.isArray(vnode.children)) {
|
341
343
|
return vnode.children.map(child => findChildrenWithProvide(key, child)).flat(1);
|
342
344
|
} else if (vnode.component) {
|