@vuetify/nightly 3.8.2-master.2025-04-17 → 3.8.2-master.2025-04-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 +24 -3
- package/dist/json/attributes.json +2022 -2022
- package/dist/json/importMap-labs.json +36 -36
- package/dist/json/importMap.json +170 -170
- package/dist/json/web-types.json +4067 -3809
- package/dist/vuetify-labs.cjs +631 -514
- package/dist/vuetify-labs.css +5232 -5223
- package/dist/vuetify-labs.d.ts +1855 -915
- package/dist/vuetify-labs.esm.js +632 -515
- package/dist/vuetify-labs.esm.js.map +1 -1
- package/dist/vuetify-labs.js +631 -514
- package/dist/vuetify-labs.min.css +2 -2
- package/dist/vuetify.cjs +402 -391
- package/dist/vuetify.cjs.map +1 -1
- package/dist/vuetify.css +2556 -2556
- package/dist/vuetify.d.ts +168 -166
- package/dist/vuetify.esm.js +403 -392
- package/dist/vuetify.esm.js.map +1 -1
- package/dist/vuetify.js +402 -391
- package/dist/vuetify.js.map +1 -1
- package/dist/vuetify.min.css +2 -2
- package/dist/vuetify.min.js +893 -885
- package/dist/vuetify.min.js.map +1 -1
- package/lib/components/VAlert/VAlert.js +8 -9
- package/lib/components/VAlert/VAlert.js.map +1 -1
- package/lib/components/VAppBar/VAppBar.js +4 -4
- package/lib/components/VAppBar/VAppBar.js.map +1 -1
- package/lib/components/VAutocomplete/VAutocomplete.js +1 -2
- package/lib/components/VAutocomplete/VAutocomplete.js.map +1 -1
- package/lib/components/VBadge/VBadge.js +2 -3
- package/lib/components/VBadge/VBadge.js.map +1 -1
- package/lib/components/VBanner/VBanner.js +3 -3
- package/lib/components/VBanner/VBanner.js.map +1 -1
- package/lib/components/VBottomNavigation/VBottomNavigation.js +8 -8
- package/lib/components/VBottomNavigation/VBottomNavigation.js.map +1 -1
- package/lib/components/VBreadcrumbs/VBreadcrumbs.js +6 -6
- package/lib/components/VBreadcrumbs/VBreadcrumbs.js.map +1 -1
- package/lib/components/VBreadcrumbs/VBreadcrumbsItem.js +1 -2
- package/lib/components/VBreadcrumbs/VBreadcrumbsItem.js.map +1 -1
- package/lib/components/VBtn/VBtn.js +3 -3
- package/lib/components/VBtn/VBtn.js.map +1 -1
- package/lib/components/VBtnGroup/VBtnGroup.js +4 -4
- package/lib/components/VBtnGroup/VBtnGroup.js.map +1 -1
- package/lib/components/VCard/VCard.js +7 -8
- package/lib/components/VCard/VCard.js.map +1 -1
- package/lib/components/VCheckbox/VCheckbox.js +2 -3
- package/lib/components/VCheckbox/VCheckbox.js.map +1 -1
- package/lib/components/VCheckbox/VCheckboxBtn.js +3 -3
- package/lib/components/VCheckbox/VCheckboxBtn.js.map +1 -1
- package/lib/components/VChip/VChip.js +8 -9
- package/lib/components/VChip/VChip.js.map +1 -1
- package/lib/components/VChipGroup/VChipGroup.js +5 -5
- package/lib/components/VChipGroup/VChipGroup.js.map +1 -1
- package/lib/components/VCombobox/VCombobox.js +3 -4
- package/lib/components/VCombobox/VCombobox.js.map +1 -1
- package/lib/components/VCounter/VCounter.js +2 -2
- package/lib/components/VCounter/VCounter.js.map +1 -1
- package/lib/components/VDataIterator/VDataIterator.js +2 -2
- package/lib/components/VDataIterator/VDataIterator.js.map +1 -1
- package/lib/components/VDataTable/VDataTable.js +7 -7
- package/lib/components/VDataTable/VDataTable.js.map +1 -1
- package/lib/components/VDataTable/VDataTableHeaders.js +1 -1
- package/lib/components/VDataTable/VDataTableHeaders.js.map +1 -1
- package/lib/components/VDataTable/VDataTableServer.js +7 -7
- package/lib/components/VDataTable/VDataTableServer.js.map +1 -1
- package/lib/components/VDataTable/VDataTableVirtual.js +7 -7
- package/lib/components/VDataTable/VDataTableVirtual.js.map +1 -1
- package/lib/components/VDataTable/composables/expand.d.ts +1 -1
- package/lib/components/VDataTable/composables/expand.js +1 -1
- package/lib/components/VDataTable/composables/expand.js.map +1 -1
- package/lib/components/VDataTable/composables/options.js +8 -8
- package/lib/components/VDataTable/composables/options.js.map +1 -1
- package/lib/components/VDataTable/composables/select.d.ts +2 -2
- package/lib/components/VDataTable/composables/select.js +2 -2
- package/lib/components/VDataTable/composables/select.js.map +1 -1
- package/lib/components/VDataTable/composables/sort.d.ts +2 -2
- package/lib/components/VDataTable/composables/sort.js +2 -2
- package/lib/components/VDataTable/composables/sort.js.map +1 -1
- package/lib/components/VDatePicker/VDatePicker.js +4 -4
- package/lib/components/VDatePicker/VDatePicker.js.map +1 -1
- package/lib/components/VDatePicker/VDatePickerHeader.js +1 -1
- package/lib/components/VDatePicker/VDatePickerHeader.js.map +1 -1
- package/lib/components/VDatePicker/VDatePickerMonth.js +2 -2
- package/lib/components/VDatePicker/VDatePickerMonth.js.map +1 -1
- package/lib/components/VDialog/VDialog.d.ts +9 -9
- package/lib/components/VDivider/VDivider.js +2 -2
- package/lib/components/VDivider/VDivider.js.map +1 -1
- package/lib/components/VEmptyState/VEmptyState.js +1 -2
- package/lib/components/VEmptyState/VEmptyState.js.map +1 -1
- package/lib/components/VExpansionPanel/VExpansionPanel.js +3 -3
- package/lib/components/VExpansionPanel/VExpansionPanel.js.map +1 -1
- package/lib/components/VExpansionPanel/VExpansionPanelTitle.js +3 -3
- package/lib/components/VExpansionPanel/VExpansionPanelTitle.js.map +1 -1
- package/lib/components/VExpansionPanel/VExpansionPanels.js +14 -14
- package/lib/components/VExpansionPanel/VExpansionPanels.js.map +1 -1
- package/lib/components/VFab/VFab.js +2 -2
- package/lib/components/VFab/VFab.js.map +1 -1
- package/lib/components/VField/VField.js +5 -5
- package/lib/components/VField/VField.js.map +1 -1
- package/lib/components/VFileInput/VFileInput.js +2 -2
- package/lib/components/VFileInput/VFileInput.js.map +1 -1
- package/lib/components/VFooter/VFooter.js +4 -4
- package/lib/components/VFooter/VFooter.js.map +1 -1
- package/lib/components/VForm/VForm.d.ts +40 -40
- package/lib/components/VIcon/VIcon.js +4 -4
- package/lib/components/VIcon/VIcon.js.map +1 -1
- package/lib/components/VImg/VImg.js +2 -2
- package/lib/components/VImg/VImg.js.map +1 -1
- package/lib/components/VInput/VInput.js +3 -3
- package/lib/components/VInput/VInput.js.map +1 -1
- package/lib/components/VLayout/VLayoutItem.js +5 -5
- package/lib/components/VLayout/VLayoutItem.js.map +1 -1
- package/lib/components/VList/VList.js +14 -14
- package/lib/components/VList/VList.js.map +1 -1
- package/lib/components/VList/VListGroup.js +2 -2
- package/lib/components/VList/VListGroup.js.map +1 -1
- package/lib/components/VList/VListItem.d.ts +3 -3
- package/lib/components/VList/VListItem.js +6 -6
- package/lib/components/VList/VListItem.js.map +1 -1
- package/lib/components/VList/VListSubheader.js +1 -2
- package/lib/components/VList/VListSubheader.js.map +1 -1
- package/lib/components/VMenu/VMenu.d.ts +15 -15
- package/lib/components/VMenu/VMenu.js +2 -2
- package/lib/components/VMenu/VMenu.js.map +1 -1
- package/lib/components/VMessages/VMessages.js +1 -1
- package/lib/components/VMessages/VMessages.js.map +1 -1
- package/lib/components/VNavigationDrawer/VNavigationDrawer.js +6 -6
- package/lib/components/VNavigationDrawer/VNavigationDrawer.js.map +1 -1
- package/lib/components/VNumberInput/VNumberInput.js +11 -11
- package/lib/components/VNumberInput/VNumberInput.js.map +1 -1
- package/lib/components/VOtpInput/VOtpInput.js +7 -7
- package/lib/components/VOtpInput/VOtpInput.js.map +1 -1
- package/lib/components/VOverlay/VOverlay.d.ts +3 -3
- package/lib/components/VOverlay/VOverlay.js +4 -4
- package/lib/components/VOverlay/VOverlay.js.map +1 -1
- package/lib/components/VOverlay/locationStrategies.js +10 -1
- package/lib/components/VOverlay/locationStrategies.js.map +1 -1
- package/lib/components/VPagination/VPagination.js +7 -7
- package/lib/components/VPagination/VPagination.js.map +1 -1
- package/lib/components/VProgressCircular/VProgressCircular.js +9 -9
- package/lib/components/VProgressCircular/VProgressCircular.js.map +1 -1
- package/lib/components/VProgressLinear/VProgressLinear.js +4 -4
- package/lib/components/VProgressLinear/VProgressLinear.js.map +1 -1
- package/lib/components/VSelect/VSelect.js +2 -2
- package/lib/components/VSelect/VSelect.js.map +1 -1
- package/lib/components/VSelectionControl/VSelectionControl.d.ts +1 -1
- package/lib/components/VSelectionControl/VSelectionControl.js +7 -7
- package/lib/components/VSelectionControl/VSelectionControl.js.map +1 -1
- package/lib/components/VSelectionControlGroup/VSelectionControlGroup.js +15 -15
- package/lib/components/VSelectionControlGroup/VSelectionControlGroup.js.map +1 -1
- package/lib/components/VSheet/VSheet.js +1 -2
- package/lib/components/VSheet/VSheet.js.map +1 -1
- package/lib/components/VSkeletonLoader/VSkeletonLoader.js +2 -2
- package/lib/components/VSkeletonLoader/VSkeletonLoader.js.map +1 -1
- package/lib/components/VSlider/slider.js +10 -10
- package/lib/components/VSlider/slider.js.map +1 -1
- package/lib/components/VSnackbar/VSnackbar.d.ts +9 -9
- package/lib/components/VSparkline/VSparkline.js +2 -2
- package/lib/components/VSparkline/VSparkline.js.map +1 -1
- package/lib/components/VSwitch/VSwitch.js +3 -3
- package/lib/components/VSwitch/VSwitch.js.map +1 -1
- package/lib/components/VSystemBar/VSystemBar.js +2 -2
- package/lib/components/VSystemBar/VSystemBar.js.map +1 -1
- package/lib/components/VTabs/VTab.d.ts +3 -3
- package/lib/components/VTabs/VTab.js +1 -1
- package/lib/components/VTabs/VTab.js.map +1 -1
- package/lib/components/VTabs/VTabs.js +7 -7
- package/lib/components/VTabs/VTabs.js.map +1 -1
- package/lib/components/VTimeline/VTimeline.js +9 -9
- package/lib/components/VTimeline/VTimeline.js.map +1 -1
- package/lib/components/VTimeline/VTimelineDivider.js +2 -3
- package/lib/components/VTimeline/VTimelineDivider.js.map +1 -1
- package/lib/components/VToolbar/VToolbar.js +2 -2
- package/lib/components/VToolbar/VToolbar.js.map +1 -1
- package/lib/components/VToolbar/VToolbarItems.js +2 -2
- package/lib/components/VToolbar/VToolbarItems.js.map +1 -1
- package/lib/components/VTooltip/VTooltip.d.ts +9 -9
- package/lib/components/VTooltip/VTooltip.js +3 -3
- package/lib/components/VTooltip/VTooltip.js.map +1 -1
- package/lib/components/VVirtualScroll/VVirtualScroll.js +1 -1
- package/lib/components/VVirtualScroll/VVirtualScroll.js.map +1 -1
- package/lib/components/VWindow/VWindow.js +3 -3
- package/lib/components/VWindow/VWindow.js.map +1 -1
- package/lib/components/transitions/dialog-transition.js +11 -2
- package/lib/components/transitions/dialog-transition.js.map +1 -1
- package/lib/composables/border.d.ts +1 -1
- package/lib/composables/border.js +5 -8
- package/lib/composables/border.js.map +1 -1
- package/lib/composables/calendar.d.ts +21 -54
- package/lib/composables/calendar.js +11 -11
- package/lib/composables/calendar.js.map +1 -1
- package/lib/composables/color.d.ts +8 -10
- package/lib/composables/color.js +21 -22
- package/lib/composables/color.js.map +1 -1
- package/lib/composables/density.d.ts +1 -1
- package/lib/composables/density.js +2 -2
- package/lib/composables/density.js.map +1 -1
- package/lib/composables/display.d.ts +4 -2
- package/lib/composables/display.js +2 -2
- package/lib/composables/display.js.map +1 -1
- package/lib/composables/elevation.js +4 -6
- package/lib/composables/elevation.js.map +1 -1
- package/lib/composables/focus.d.ts +4 -2
- package/lib/composables/focus.js +2 -2
- package/lib/composables/focus.js.map +1 -1
- package/lib/composables/form.d.ts +7 -7
- package/lib/composables/form.js +3 -3
- package/lib/composables/form.js.map +1 -1
- package/lib/composables/goto.js +2 -2
- package/lib/composables/goto.js.map +1 -1
- package/lib/composables/group.d.ts +3 -3
- package/lib/composables/group.js +4 -4
- package/lib/composables/group.js.map +1 -1
- package/lib/composables/icons.d.ts +2 -2
- package/lib/composables/icons.js +2 -2
- package/lib/composables/icons.js.map +1 -1
- package/lib/composables/layout.d.ts +10 -4
- package/lib/composables/layout.js +4 -4
- package/lib/composables/layout.js.map +1 -1
- package/lib/composables/lazy.d.ts +1 -1
- package/lib/composables/lazy.js +2 -2
- package/lib/composables/lazy.js.map +1 -1
- package/lib/composables/loader.d.ts +4 -2
- package/lib/composables/loader.js +2 -2
- package/lib/composables/loader.js.map +1 -1
- package/lib/composables/locale.js +3 -3
- package/lib/composables/locale.js.map +1 -1
- package/lib/composables/nested/nested.d.ts +3 -3
- package/lib/composables/nested/nested.js +4 -4
- package/lib/composables/nested/nested.js.map +1 -1
- package/lib/composables/position.d.ts +1 -1
- package/lib/composables/position.js +2 -2
- package/lib/composables/position.js.map +1 -1
- package/lib/composables/router.d.ts +3 -3
- package/lib/composables/router.js +8 -8
- package/lib/composables/router.js.map +1 -1
- package/lib/composables/size.d.ts +8 -5
- package/lib/composables/size.js +6 -5
- package/lib/composables/size.js.map +1 -1
- package/lib/composables/ssrBoot.d.ts +4 -2
- package/lib/composables/ssrBoot.js +2 -2
- package/lib/composables/ssrBoot.js.map +1 -1
- package/lib/composables/stack.d.ts +7 -5
- package/lib/composables/stack.js +5 -5
- package/lib/composables/stack.js.map +1 -1
- package/lib/composables/theme.js +7 -7
- package/lib/composables/theme.js.map +1 -1
- package/lib/composables/variant.d.ts +5 -6
- package/lib/composables/variant.js +6 -6
- package/lib/composables/variant.js.map +1 -1
- package/lib/entry-bundler.js +1 -1
- package/lib/framework.d.ts +81 -79
- package/lib/framework.js +1 -1
- package/lib/labs/VCalendar/VCalendar.d.ts +600 -211
- package/lib/labs/VCalendar/VCalendar.js +55 -27
- package/lib/labs/VCalendar/VCalendar.js.map +1 -1
- package/lib/labs/VCalendar/VCalendarDay.css +9 -0
- package/lib/labs/VCalendar/VCalendarDay.d.ts +329 -17
- package/lib/labs/VCalendar/VCalendarDay.js +18 -10
- package/lib/labs/VCalendar/VCalendarDay.js.map +1 -1
- package/lib/labs/VCalendar/VCalendarDay.sass +8 -0
- package/lib/labs/VCalendar/VCalendarEvent.js +15 -5
- package/lib/labs/VCalendar/VCalendarEvent.js.map +1 -1
- package/lib/labs/VCalendar/VCalendarHeader.d.ts +44 -17
- package/lib/labs/VCalendar/VCalendarHeader.js +5 -2
- package/lib/labs/VCalendar/VCalendarHeader.js.map +1 -1
- package/lib/labs/VCalendar/VCalendarInterval.d.ts +171 -17
- package/lib/labs/VCalendar/VCalendarInterval.js +66 -35
- package/lib/labs/VCalendar/VCalendarInterval.js.map +1 -1
- package/lib/labs/VCalendar/VCalendarIntervalEvent.d.ts +92 -17
- package/lib/labs/VCalendar/VCalendarIntervalEvent.js +30 -10
- package/lib/labs/VCalendar/VCalendarIntervalEvent.js.map +1 -1
- package/lib/labs/VCalendar/VCalendarMonthDay.d.ts +122 -88
- package/lib/labs/VCalendar/VCalendarMonthDay.js +24 -22
- package/lib/labs/VCalendar/VCalendarMonthDay.js.map +1 -1
- package/lib/labs/VIconBtn/VIconBtn.d.ts +6 -21
- package/lib/labs/VIconBtn/VIconBtn.js +10 -12
- package/lib/labs/VIconBtn/VIconBtn.js.map +1 -1
- package/lib/labs/VPicker/VPicker.js +1 -2
- package/lib/labs/VPicker/VPicker.js.map +1 -1
- package/lib/labs/VTimePicker/VTimePickerClock.js +3 -3
- package/lib/labs/VTimePicker/VTimePickerClock.js.map +1 -1
- package/lib/labs/VTreeview/VTreeview.js +11 -11
- package/lib/labs/VTreeview/VTreeview.js.map +1 -1
- package/lib/util/box.js.map +1 -1
- package/lib/util/helpers.d.ts +5 -2
- package/lib/util/helpers.js +9 -5
- package/lib/util/helpers.js.map +1 -1
- package/package.json +1 -1
@@ -1,14 +1,18 @@
|
|
1
|
+
import type { PropType } from 'vue';
|
2
|
+
import type { CalendarDay } from "../../composables/calendar.js";
|
1
3
|
export type VCalendarMonthDaySlots = {
|
2
|
-
|
3
|
-
|
4
|
-
|
5
|
-
title?: number | string;
|
4
|
+
dayBody: {
|
5
|
+
day?: CalendarDay;
|
6
|
+
events?: Array<any>;
|
6
7
|
};
|
7
|
-
|
8
|
-
day?:
|
8
|
+
dayEvent: {
|
9
|
+
day?: CalendarDay;
|
9
10
|
allDay: boolean;
|
10
11
|
event: Record<string, unknown>;
|
11
12
|
};
|
13
|
+
dayTitle: {
|
14
|
+
title?: number | string;
|
15
|
+
};
|
12
16
|
};
|
13
17
|
export declare const makeVCalendarMonthDayProps: <Defaults extends {
|
14
18
|
active?: unknown;
|
@@ -19,19 +23,23 @@ export declare const makeVCalendarMonthDayProps: <Defaults extends {
|
|
19
23
|
title?: unknown;
|
20
24
|
} = {}>(defaults?: Defaults | undefined) => {
|
21
25
|
active: unknown extends Defaults["active"] ? BooleanConstructor : {
|
22
|
-
type:
|
26
|
+
type: PropType<unknown extends Defaults["active"] ? boolean : boolean | Defaults["active"]>;
|
23
27
|
default: unknown extends Defaults["active"] ? boolean : boolean | Defaults["active"];
|
24
28
|
};
|
25
29
|
color: unknown extends Defaults["color"] ? StringConstructor : {
|
26
|
-
type:
|
30
|
+
type: PropType<unknown extends Defaults["color"] ? string : string | Defaults["color"]>;
|
27
31
|
default: unknown extends Defaults["color"] ? string : string | Defaults["color"];
|
28
32
|
};
|
29
|
-
day: unknown extends Defaults["day"] ?
|
30
|
-
type:
|
31
|
-
|
33
|
+
day: unknown extends Defaults["day"] ? {
|
34
|
+
type: PropType<CalendarDay>;
|
35
|
+
} : Omit<{
|
36
|
+
type: PropType<CalendarDay>;
|
37
|
+
}, "type" | "default"> & {
|
38
|
+
type: PropType<unknown extends Defaults["day"] ? CalendarDay : CalendarDay | Defaults["day"]>;
|
39
|
+
default: unknown extends Defaults["day"] ? CalendarDay : CalendarDay | Defaults["day"];
|
32
40
|
};
|
33
41
|
disabled: unknown extends Defaults["disabled"] ? BooleanConstructor : {
|
34
|
-
type:
|
42
|
+
type: PropType<unknown extends Defaults["disabled"] ? boolean : boolean | Defaults["disabled"]>;
|
35
43
|
default: unknown extends Defaults["disabled"] ? boolean : boolean | Defaults["disabled"];
|
36
44
|
};
|
37
45
|
events: unknown extends Defaults["events"] ? {
|
@@ -50,11 +58,11 @@ export declare const makeVCalendarMonthDayProps: <Defaults extends {
|
|
50
58
|
fromAsync<T, U_2>(iterableOrArrayLike: AsyncIterable<T> | Iterable<T> | ArrayLike<T>, mapFn: (value: Awaited<T>) => U_2, thisArg?: any): Promise<Awaited<U_2>[]>;
|
51
59
|
readonly [Symbol.species]: ArrayConstructor;
|
52
60
|
} : {
|
53
|
-
type:
|
61
|
+
type: PropType<unknown extends Defaults["events"] ? any[] : any[] | Defaults["events"]>;
|
54
62
|
default: unknown extends Defaults["events"] ? any[] : any[] | Defaults["events"];
|
55
63
|
};
|
56
64
|
title: unknown extends Defaults["title"] ? (StringConstructor | NumberConstructor)[] : {
|
57
|
-
type:
|
65
|
+
type: PropType<unknown extends Defaults["title"] ? string | number : string | number | Defaults["title"]>;
|
58
66
|
default: unknown extends Defaults["title"] ? string | number : NonNullable<string | number> | Defaults["title"];
|
59
67
|
};
|
60
68
|
};
|
@@ -65,58 +73,66 @@ export declare const VCalendarMonthDay: {
|
|
65
73
|
} & {
|
66
74
|
color?: string | undefined;
|
67
75
|
title?: string | number | undefined;
|
68
|
-
day?:
|
76
|
+
day?: CalendarDay | undefined;
|
69
77
|
events?: any[] | undefined;
|
70
78
|
} & {
|
71
|
-
$children?:
|
72
|
-
|
73
|
-
|
74
|
-
|
75
|
-
title?: number | string;
|
79
|
+
$children?: {} | import("vue").VNodeChild | {
|
80
|
+
dayBody?: ((arg: {
|
81
|
+
day?: CalendarDay;
|
82
|
+
events?: Array<any>;
|
76
83
|
}) => import("vue").VNodeChild) | undefined;
|
77
|
-
|
78
|
-
day?:
|
84
|
+
dayEvent?: ((arg: {
|
85
|
+
day?: CalendarDay;
|
79
86
|
allDay: boolean;
|
80
87
|
event: Record<string, unknown>;
|
81
88
|
}) => import("vue").VNodeChild) | undefined;
|
89
|
+
dayTitle?: ((arg: {
|
90
|
+
title?: number | string;
|
91
|
+
}) => import("vue").VNodeChild) | undefined;
|
82
92
|
};
|
83
93
|
'v-slots'?: {
|
84
|
-
|
85
|
-
|
86
|
-
|
87
|
-
title?: number | string;
|
94
|
+
dayBody?: false | ((arg: {
|
95
|
+
day?: CalendarDay;
|
96
|
+
events?: Array<any>;
|
88
97
|
}) => import("vue").VNodeChild) | undefined;
|
89
|
-
|
90
|
-
day?:
|
98
|
+
dayEvent?: false | ((arg: {
|
99
|
+
day?: CalendarDay;
|
91
100
|
allDay: boolean;
|
92
101
|
event: Record<string, unknown>;
|
93
102
|
}) => import("vue").VNodeChild) | undefined;
|
103
|
+
dayTitle?: false | ((arg: {
|
104
|
+
title?: number | string;
|
105
|
+
}) => import("vue").VNodeChild) | undefined;
|
94
106
|
} | undefined;
|
95
107
|
} & {
|
96
|
-
"v-slot:
|
97
|
-
|
98
|
-
|
99
|
-
title?: number | string;
|
108
|
+
"v-slot:dayBody"?: false | ((arg: {
|
109
|
+
day?: CalendarDay;
|
110
|
+
events?: Array<any>;
|
100
111
|
}) => import("vue").VNodeChild) | undefined;
|
101
|
-
"v-slot:
|
102
|
-
day?:
|
112
|
+
"v-slot:dayEvent"?: false | ((arg: {
|
113
|
+
day?: CalendarDay;
|
103
114
|
allDay: boolean;
|
104
115
|
event: Record<string, unknown>;
|
105
116
|
}) => import("vue").VNodeChild) | undefined;
|
117
|
+
"v-slot:dayTitle"?: false | ((arg: {
|
118
|
+
title?: number | string;
|
119
|
+
}) => import("vue").VNodeChild) | undefined;
|
106
120
|
}, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, Record<string, any>, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, {
|
107
121
|
active: boolean;
|
108
122
|
disabled: boolean;
|
109
123
|
}, true, {}, import("vue").SlotsType<Partial<{
|
110
|
-
|
111
|
-
|
112
|
-
|
113
|
-
title?: number | string;
|
124
|
+
dayBody: (arg: {
|
125
|
+
day?: CalendarDay;
|
126
|
+
events?: Array<any>;
|
114
127
|
}) => import("vue").VNode[];
|
115
|
-
|
116
|
-
day?:
|
128
|
+
dayEvent: (arg: {
|
129
|
+
day?: CalendarDay;
|
117
130
|
allDay: boolean;
|
118
131
|
event: Record<string, unknown>;
|
119
132
|
}) => import("vue").VNode[];
|
133
|
+
dayTitle: (arg: {
|
134
|
+
title?: number | string;
|
135
|
+
}) => import("vue").VNode[];
|
120
136
|
}>>, import("vue").GlobalComponents, import("vue").GlobalDirectives, string, {}, any, import("vue").ComponentProvideOptions, {
|
121
137
|
P: {};
|
122
138
|
B: {};
|
@@ -130,44 +146,50 @@ export declare const VCalendarMonthDay: {
|
|
130
146
|
} & {
|
131
147
|
color?: string | undefined;
|
132
148
|
title?: string | number | undefined;
|
133
|
-
day?:
|
149
|
+
day?: CalendarDay | undefined;
|
134
150
|
events?: any[] | undefined;
|
135
151
|
} & {
|
136
|
-
$children?:
|
137
|
-
|
138
|
-
|
139
|
-
|
140
|
-
title?: number | string;
|
152
|
+
$children?: {} | import("vue").VNodeChild | {
|
153
|
+
dayBody?: ((arg: {
|
154
|
+
day?: CalendarDay;
|
155
|
+
events?: Array<any>;
|
141
156
|
}) => import("vue").VNodeChild) | undefined;
|
142
|
-
|
143
|
-
day?:
|
157
|
+
dayEvent?: ((arg: {
|
158
|
+
day?: CalendarDay;
|
144
159
|
allDay: boolean;
|
145
160
|
event: Record<string, unknown>;
|
146
161
|
}) => import("vue").VNodeChild) | undefined;
|
162
|
+
dayTitle?: ((arg: {
|
163
|
+
title?: number | string;
|
164
|
+
}) => import("vue").VNodeChild) | undefined;
|
147
165
|
};
|
148
166
|
'v-slots'?: {
|
149
|
-
|
150
|
-
|
151
|
-
|
152
|
-
title?: number | string;
|
167
|
+
dayBody?: false | ((arg: {
|
168
|
+
day?: CalendarDay;
|
169
|
+
events?: Array<any>;
|
153
170
|
}) => import("vue").VNodeChild) | undefined;
|
154
|
-
|
155
|
-
day?:
|
171
|
+
dayEvent?: false | ((arg: {
|
172
|
+
day?: CalendarDay;
|
156
173
|
allDay: boolean;
|
157
174
|
event: Record<string, unknown>;
|
158
175
|
}) => import("vue").VNodeChild) | undefined;
|
176
|
+
dayTitle?: false | ((arg: {
|
177
|
+
title?: number | string;
|
178
|
+
}) => import("vue").VNodeChild) | undefined;
|
159
179
|
} | undefined;
|
160
180
|
} & {
|
161
|
-
"v-slot:
|
162
|
-
|
163
|
-
|
164
|
-
title?: number | string;
|
181
|
+
"v-slot:dayBody"?: false | ((arg: {
|
182
|
+
day?: CalendarDay;
|
183
|
+
events?: Array<any>;
|
165
184
|
}) => import("vue").VNodeChild) | undefined;
|
166
|
-
"v-slot:
|
167
|
-
day?:
|
185
|
+
"v-slot:dayEvent"?: false | ((arg: {
|
186
|
+
day?: CalendarDay;
|
168
187
|
allDay: boolean;
|
169
188
|
event: Record<string, unknown>;
|
170
189
|
}) => import("vue").VNodeChild) | undefined;
|
190
|
+
"v-slot:dayTitle"?: false | ((arg: {
|
191
|
+
title?: number | string;
|
192
|
+
}) => import("vue").VNodeChild) | undefined;
|
171
193
|
}, {}, {}, {}, {}, {
|
172
194
|
active: boolean;
|
173
195
|
disabled: boolean;
|
@@ -181,62 +203,72 @@ export declare const VCalendarMonthDay: {
|
|
181
203
|
} & {
|
182
204
|
color?: string | undefined;
|
183
205
|
title?: string | number | undefined;
|
184
|
-
day?:
|
206
|
+
day?: CalendarDay | undefined;
|
185
207
|
events?: any[] | undefined;
|
186
208
|
} & {
|
187
|
-
$children?:
|
188
|
-
|
189
|
-
|
190
|
-
|
191
|
-
title?: number | string;
|
209
|
+
$children?: {} | import("vue").VNodeChild | {
|
210
|
+
dayBody?: ((arg: {
|
211
|
+
day?: CalendarDay;
|
212
|
+
events?: Array<any>;
|
192
213
|
}) => import("vue").VNodeChild) | undefined;
|
193
|
-
|
194
|
-
day?:
|
214
|
+
dayEvent?: ((arg: {
|
215
|
+
day?: CalendarDay;
|
195
216
|
allDay: boolean;
|
196
217
|
event: Record<string, unknown>;
|
197
218
|
}) => import("vue").VNodeChild) | undefined;
|
219
|
+
dayTitle?: ((arg: {
|
220
|
+
title?: number | string;
|
221
|
+
}) => import("vue").VNodeChild) | undefined;
|
198
222
|
};
|
199
223
|
'v-slots'?: {
|
200
|
-
|
201
|
-
|
202
|
-
|
203
|
-
title?: number | string;
|
224
|
+
dayBody?: false | ((arg: {
|
225
|
+
day?: CalendarDay;
|
226
|
+
events?: Array<any>;
|
204
227
|
}) => import("vue").VNodeChild) | undefined;
|
205
|
-
|
206
|
-
day?:
|
228
|
+
dayEvent?: false | ((arg: {
|
229
|
+
day?: CalendarDay;
|
207
230
|
allDay: boolean;
|
208
231
|
event: Record<string, unknown>;
|
209
232
|
}) => import("vue").VNodeChild) | undefined;
|
233
|
+
dayTitle?: false | ((arg: {
|
234
|
+
title?: number | string;
|
235
|
+
}) => import("vue").VNodeChild) | undefined;
|
210
236
|
} | undefined;
|
211
237
|
} & {
|
212
|
-
"v-slot:
|
213
|
-
|
214
|
-
|
215
|
-
title?: number | string;
|
238
|
+
"v-slot:dayBody"?: false | ((arg: {
|
239
|
+
day?: CalendarDay;
|
240
|
+
events?: Array<any>;
|
216
241
|
}) => import("vue").VNodeChild) | undefined;
|
217
|
-
"v-slot:
|
218
|
-
day?:
|
242
|
+
"v-slot:dayEvent"?: false | ((arg: {
|
243
|
+
day?: CalendarDay;
|
219
244
|
allDay: boolean;
|
220
245
|
event: Record<string, unknown>;
|
221
246
|
}) => import("vue").VNodeChild) | undefined;
|
247
|
+
"v-slot:dayTitle"?: false | ((arg: {
|
248
|
+
title?: number | string;
|
249
|
+
}) => import("vue").VNodeChild) | undefined;
|
222
250
|
}, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, Record<string, any>, string, {
|
223
251
|
active: boolean;
|
224
252
|
disabled: boolean;
|
225
253
|
}, {}, string, import("vue").SlotsType<Partial<{
|
226
|
-
|
227
|
-
|
228
|
-
|
229
|
-
title?: number | string;
|
254
|
+
dayBody: (arg: {
|
255
|
+
day?: CalendarDay;
|
256
|
+
events?: Array<any>;
|
230
257
|
}) => import("vue").VNode[];
|
231
|
-
|
232
|
-
day?:
|
258
|
+
dayEvent: (arg: {
|
259
|
+
day?: CalendarDay;
|
233
260
|
allDay: boolean;
|
234
261
|
event: Record<string, unknown>;
|
235
262
|
}) => import("vue").VNode[];
|
263
|
+
dayTitle: (arg: {
|
264
|
+
title?: number | string;
|
265
|
+
}) => import("vue").VNode[];
|
236
266
|
}>>, import("vue").GlobalComponents, import("vue").GlobalDirectives, string, import("vue").ComponentProvideOptions> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & import("../../util/index.js").FilterPropsOptions<{
|
237
267
|
active: BooleanConstructor;
|
238
268
|
color: StringConstructor;
|
239
|
-
day:
|
269
|
+
day: {
|
270
|
+
type: PropType<CalendarDay>;
|
271
|
+
};
|
240
272
|
disabled: BooleanConstructor;
|
241
273
|
events: {
|
242
274
|
(arrayLength: number): any[];
|
@@ -258,7 +290,9 @@ export declare const VCalendarMonthDay: {
|
|
258
290
|
}, import("vue").ExtractPropTypes<{
|
259
291
|
active: BooleanConstructor;
|
260
292
|
color: StringConstructor;
|
261
|
-
day:
|
293
|
+
day: {
|
294
|
+
type: PropType<CalendarDay>;
|
295
|
+
};
|
262
296
|
disabled: BooleanConstructor;
|
263
297
|
events: {
|
264
298
|
(arrayLength: number): any[];
|
@@ -1,70 +1,72 @@
|
|
1
|
-
import { createVNode as _createVNode } from "vue";
|
1
|
+
import { mergeProps as _mergeProps, createVNode as _createVNode } from "vue";
|
2
2
|
// Styles
|
3
3
|
import "./VCalendarMonthDay.css";
|
4
4
|
|
5
5
|
// Components
|
6
6
|
import { VCalendarEvent } from "./VCalendarEvent.js";
|
7
7
|
import { VBtn } from "../../components/VBtn/index.js"; // Utilities
|
8
|
-
import { genericComponent, propsFactory, useRender } from "../../util/index.js";
|
8
|
+
import { genericComponent, getPrefixedEventHandlers, propsFactory, useRender } from "../../util/index.js"; // Types
|
9
9
|
export const makeVCalendarMonthDayProps = propsFactory({
|
10
10
|
active: Boolean,
|
11
11
|
color: String,
|
12
|
-
day:
|
12
|
+
day: {
|
13
|
+
type: Object
|
14
|
+
},
|
13
15
|
disabled: Boolean,
|
14
16
|
events: Array,
|
15
17
|
title: [Number, String]
|
16
18
|
}, 'VCalendarMonthDay');
|
17
19
|
export const VCalendarMonthDay = genericComponent()({
|
18
20
|
name: 'VCalendarMonthDay',
|
21
|
+
inheritAttrs: false,
|
19
22
|
props: makeVCalendarMonthDayProps(),
|
20
23
|
setup(props, _ref) {
|
21
24
|
let {
|
22
|
-
|
25
|
+
attrs,
|
23
26
|
slots
|
24
27
|
} = _ref;
|
25
28
|
useRender(() => {
|
26
|
-
|
27
|
-
title: props.title
|
28
|
-
}));
|
29
|
-
return _createVNode("div", {
|
29
|
+
return _createVNode("div", _mergeProps({
|
30
30
|
"class": ['v-calendar-month__day']
|
31
|
-
}, [!props.day?.isHidden
|
31
|
+
}, getPrefixedEventHandlers(attrs, ':day', () => props)), [!props.day?.isHidden ? _createVNode("div", {
|
32
32
|
"key": "title",
|
33
33
|
"class": "v-calendar-weekly__day-label"
|
34
|
-
}, [slots.
|
34
|
+
}, [slots.dayTitle?.({
|
35
35
|
title: props.title
|
36
|
-
}) ?? _createVNode(VBtn, {
|
36
|
+
}) ?? _createVNode(VBtn, _mergeProps({
|
37
37
|
"class": props.day?.isToday ? 'v-calendar-weekly__day-label__today' : undefined,
|
38
38
|
"color": props.color,
|
39
39
|
"disabled": props.disabled,
|
40
40
|
"icon": true,
|
41
41
|
"size": "x-small",
|
42
|
-
"variant": props.day?.isToday ? undefined : 'flat'
|
43
|
-
|
44
|
-
|
45
|
-
})]), !props.day?.isHidden && _createVNode("div", {
|
42
|
+
"variant": props.day?.isToday ? undefined : 'flat',
|
43
|
+
"text": `${props.title}`
|
44
|
+
}, getPrefixedEventHandlers(attrs, ':date', () => props)), null)]) : undefined, !props.day?.isHidden ? _createVNode("div", {
|
46
45
|
"key": "content",
|
47
46
|
"class": "v-calendar-weekly__day-content"
|
48
|
-
}, [slots.
|
47
|
+
}, [slots.dayBody?.({
|
48
|
+
day: props.day,
|
49
|
+
events: props.events
|
50
|
+
}) ?? _createVNode("div", null, [_createVNode("div", {
|
49
51
|
"class": "v-calendar-weekly__day-alldayevents-container"
|
50
|
-
}, [props.events?.filter(event => event.allDay).map(event => slots.
|
52
|
+
}, [props.events?.filter(event => event.allDay).map(event => slots.dayEvent ? slots.dayEvent({
|
51
53
|
day: props.day,
|
52
54
|
allDay: true,
|
53
55
|
event
|
54
|
-
}) : _createVNode(VCalendarEvent, {
|
56
|
+
}) : _createVNode(VCalendarEvent, _mergeProps({
|
55
57
|
"day": props.day,
|
56
58
|
"event": event,
|
57
59
|
"allDay": true
|
58
|
-
}, null))]), _createVNode("div", {
|
60
|
+
}, attrs), null))]), _createVNode("div", {
|
59
61
|
"class": "v-calendar-weekly__day-events-container"
|
60
|
-
}, [props.events?.filter(event => !event.allDay).map(event => slots.
|
62
|
+
}, [props.events?.filter(event => !event.allDay).map(event => slots.dayEvent ? slots.dayEvent({
|
61
63
|
day: props.day,
|
62
64
|
event,
|
63
65
|
allDay: false
|
64
|
-
}) : _createVNode(VCalendarEvent, {
|
66
|
+
}) : _createVNode(VCalendarEvent, _mergeProps({
|
65
67
|
"day": props.day,
|
66
68
|
"event": event
|
67
|
-
}, null))])])])
|
69
|
+
}, attrs), null))])])]) : undefined]);
|
68
70
|
});
|
69
71
|
return {};
|
70
72
|
}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"VCalendarMonthDay.js","names":["VCalendarEvent","VBtn","genericComponent","propsFactory","useRender","makeVCalendarMonthDayProps","active","Boolean","color","String","day","Object","disabled","events","Array","title","Number","VCalendarMonthDay","name","props","setup","_ref","
|
1
|
+
{"version":3,"file":"VCalendarMonthDay.js","names":["VCalendarEvent","VBtn","genericComponent","getPrefixedEventHandlers","propsFactory","useRender","makeVCalendarMonthDayProps","active","Boolean","color","String","day","type","Object","disabled","events","Array","title","Number","VCalendarMonthDay","name","inheritAttrs","props","setup","_ref","attrs","slots","_createVNode","_mergeProps","isHidden","dayTitle","isToday","undefined","dayBody","filter","event","allDay","map","dayEvent"],"sources":["../../../src/labs/VCalendar/VCalendarMonthDay.tsx"],"sourcesContent":["// Styles\nimport './VCalendarMonthDay.sass'\n\n// Components\nimport { VCalendarEvent } from './VCalendarEvent'\nimport { VBtn } from '@/components/VBtn'\n\n// Utilities\nimport { genericComponent, getPrefixedEventHandlers, propsFactory, useRender } from '@/util'\n\n// Types\nimport type { PropType } from 'vue'\nimport type { CalendarDay } from '@/composables/calendar'\n\nexport type VCalendarMonthDaySlots = {\n dayBody: { day?: CalendarDay, events?: Array<any> }\n dayEvent: { day?: CalendarDay, allDay: boolean, event: Record<string, unknown> }\n dayTitle: { title?: number | string }\n}\n\nexport const makeVCalendarMonthDayProps = propsFactory({\n active: Boolean,\n color: String,\n day: {\n type: Object as PropType<CalendarDay>,\n },\n disabled: Boolean,\n events: Array<any>,\n title: [Number, String],\n}, 'VCalendarMonthDay')\n\nexport const VCalendarMonthDay = genericComponent<VCalendarMonthDaySlots>()({\n name: 'VCalendarMonthDay',\n\n inheritAttrs: false,\n\n props: makeVCalendarMonthDayProps(),\n\n setup (props, { attrs, slots }) {\n useRender(() => {\n return (\n <div\n class={[\n 'v-calendar-month__day',\n ]}\n { ...getPrefixedEventHandlers(attrs, ':day', () => props) }\n >\n { !props.day?.isHidden ? (\n <div key=\"title\" class=\"v-calendar-weekly__day-label\">\n { slots.dayTitle?.({ title: props.title }) ?? (\n <VBtn\n class={ props.day?.isToday ? 'v-calendar-weekly__day-label__today' : undefined }\n color={ props.color }\n disabled={ props.disabled }\n icon\n size=\"x-small\"\n variant={ props.day?.isToday ? undefined : 'flat' }\n text={ `${props.title}` }\n { ...getPrefixedEventHandlers(attrs, ':date', () => props) }\n />\n )\n }\n </div>\n ) : undefined }\n\n { !props.day?.isHidden ? (\n <div key=\"content\" class=\"v-calendar-weekly__day-content\" >\n { slots.dayBody?.({ day: props.day, events: props.events }) ?? (\n <div>\n <div class=\"v-calendar-weekly__day-alldayevents-container\">\n { props.events?.filter(event => event.allDay).map(event => slots.dayEvent\n ? slots.dayEvent({ day: props.day, allDay: true, event })\n : (\n <VCalendarEvent day={ props.day } event={ event } allDay { ...attrs } />\n ))}\n </div>\n\n <div class=\"v-calendar-weekly__day-events-container\">\n { props.events?.filter(event => !event.allDay).map(event => slots.dayEvent\n ? slots.dayEvent({ day: props.day, event, allDay: false })\n : (\n <VCalendarEvent day={ props.day } event={ event } { ...attrs } />\n ))}\n </div>\n </div>\n )}\n </div>\n ) : undefined }\n </div>\n )\n })\n\n return {}\n },\n})\n\nexport type VCalendarMonthDay = InstanceType<typeof VCalendarMonthDay>\n"],"mappings":"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","ignoreList":[]}
|
@@ -178,13 +178,7 @@ export declare const makeVIconBtnProps: <Defaults extends {
|
|
178
178
|
type: PropType<unknown extends Defaults["iconColor"] ? string : string | Defaults["iconColor"]>;
|
179
179
|
default: unknown extends Defaults["iconColor"] ? string : string | Defaults["iconColor"];
|
180
180
|
};
|
181
|
-
iconSize: unknown extends Defaults["iconSize"] ? {
|
182
|
-
type: PropType<VIconBtnSizes | number | string>;
|
183
|
-
default: string;
|
184
|
-
} : Omit<{
|
185
|
-
type: PropType<VIconBtnSizes | number | string>;
|
186
|
-
default: string;
|
187
|
-
}, "type" | "default"> & {
|
181
|
+
iconSize: unknown extends Defaults["iconSize"] ? PropType<string | number> : {
|
188
182
|
type: PropType<unknown extends Defaults["iconSize"] ? string | number : string | number | Defaults["iconSize"]>;
|
189
183
|
default: unknown extends Defaults["iconSize"] ? string | number : NonNullable<string | number> | Defaults["iconSize"];
|
190
184
|
};
|
@@ -258,7 +252,6 @@ export declare const VIconBtn: {
|
|
258
252
|
tile: boolean;
|
259
253
|
baseVariant: "flat" | "text" | "elevated" | "tonal" | "outlined" | "plain";
|
260
254
|
hideOverlay: boolean;
|
261
|
-
iconSize: string | number;
|
262
255
|
iconSizes: [VIconBtnSizes, number][];
|
263
256
|
} & {
|
264
257
|
height?: string | number | undefined;
|
@@ -278,6 +271,7 @@ export declare const VIconBtn: {
|
|
278
271
|
iconColor?: string | undefined;
|
279
272
|
activeIcon?: IconValue | undefined;
|
280
273
|
activeVariant?: "flat" | "text" | "elevated" | "tonal" | "outlined" | "plain" | undefined;
|
274
|
+
iconSize?: string | number | undefined;
|
281
275
|
} & {
|
282
276
|
$children?: import("vue").VNodeChild | (() => import("vue").VNodeChild) | {
|
283
277
|
default?: (() => import("vue").VNodeChild) | undefined;
|
@@ -309,7 +303,6 @@ export declare const VIconBtn: {
|
|
309
303
|
tile: boolean;
|
310
304
|
baseVariant: "flat" | "text" | "elevated" | "tonal" | "outlined" | "plain";
|
311
305
|
hideOverlay: boolean;
|
312
|
-
iconSize: string | number;
|
313
306
|
iconSizes: [VIconBtnSizes, number][];
|
314
307
|
}, true, {}, import("vue").SlotsType<Partial<{
|
315
308
|
default: () => import("vue").VNode[];
|
@@ -333,7 +326,6 @@ export declare const VIconBtn: {
|
|
333
326
|
tile: boolean;
|
334
327
|
baseVariant: "flat" | "text" | "elevated" | "tonal" | "outlined" | "plain";
|
335
328
|
hideOverlay: boolean;
|
336
|
-
iconSize: string | number;
|
337
329
|
iconSizes: [VIconBtnSizes, number][];
|
338
330
|
} & {
|
339
331
|
height?: string | number | undefined;
|
@@ -353,6 +345,7 @@ export declare const VIconBtn: {
|
|
353
345
|
iconColor?: string | undefined;
|
354
346
|
activeIcon?: IconValue | undefined;
|
355
347
|
activeVariant?: "flat" | "text" | "elevated" | "tonal" | "outlined" | "plain" | undefined;
|
348
|
+
iconSize?: string | number | undefined;
|
356
349
|
} & {
|
357
350
|
$children?: import("vue").VNodeChild | (() => import("vue").VNodeChild) | {
|
358
351
|
default?: (() => import("vue").VNodeChild) | undefined;
|
@@ -382,7 +375,6 @@ export declare const VIconBtn: {
|
|
382
375
|
tile: boolean;
|
383
376
|
baseVariant: "flat" | "text" | "elevated" | "tonal" | "outlined" | "plain";
|
384
377
|
hideOverlay: boolean;
|
385
|
-
iconSize: string | number;
|
386
378
|
iconSizes: [VIconBtnSizes, number][];
|
387
379
|
}>;
|
388
380
|
__isFragment?: never;
|
@@ -400,7 +392,6 @@ export declare const VIconBtn: {
|
|
400
392
|
tile: boolean;
|
401
393
|
baseVariant: "flat" | "text" | "elevated" | "tonal" | "outlined" | "plain";
|
402
394
|
hideOverlay: boolean;
|
403
|
-
iconSize: string | number;
|
404
395
|
iconSizes: [VIconBtnSizes, number][];
|
405
396
|
} & {
|
406
397
|
height?: string | number | undefined;
|
@@ -420,6 +411,7 @@ export declare const VIconBtn: {
|
|
420
411
|
iconColor?: string | undefined;
|
421
412
|
activeIcon?: IconValue | undefined;
|
422
413
|
activeVariant?: "flat" | "text" | "elevated" | "tonal" | "outlined" | "plain" | undefined;
|
414
|
+
iconSize?: string | number | undefined;
|
423
415
|
} & {
|
424
416
|
$children?: import("vue").VNodeChild | (() => import("vue").VNodeChild) | {
|
425
417
|
default?: (() => import("vue").VNodeChild) | undefined;
|
@@ -451,7 +443,6 @@ export declare const VIconBtn: {
|
|
451
443
|
tile: boolean;
|
452
444
|
baseVariant: "flat" | "text" | "elevated" | "tonal" | "outlined" | "plain";
|
453
445
|
hideOverlay: boolean;
|
454
|
-
iconSize: string | number;
|
455
446
|
iconSizes: [VIconBtnSizes, number][];
|
456
447
|
}, {}, string, import("vue").SlotsType<Partial<{
|
457
448
|
default: () => import("vue").VNode[];
|
@@ -506,10 +497,7 @@ export declare const VIconBtn: {
|
|
506
497
|
hideOverlay: BooleanConstructor;
|
507
498
|
icon: PropType<IconValue>;
|
508
499
|
iconColor: StringConstructor;
|
509
|
-
iconSize:
|
510
|
-
type: PropType<VIconBtnSizes | number | string>;
|
511
|
-
default: string;
|
512
|
-
};
|
500
|
+
iconSize: PropType<VIconBtnSizes | number | string>;
|
513
501
|
iconSizes: {
|
514
502
|
type: PropType<[VIconBtnSizes, number][]>;
|
515
503
|
default: () => (string | number)[][];
|
@@ -580,10 +568,7 @@ export declare const VIconBtn: {
|
|
580
568
|
hideOverlay: BooleanConstructor;
|
581
569
|
icon: PropType<IconValue>;
|
582
570
|
iconColor: StringConstructor;
|
583
|
-
iconSize:
|
584
|
-
type: PropType<VIconBtnSizes | number | string>;
|
585
|
-
default: string;
|
586
|
-
};
|
571
|
+
iconSize: PropType<VIconBtnSizes | number | string>;
|
587
572
|
iconSizes: {
|
588
573
|
type: PropType<[VIconBtnSizes, number][]>;
|
589
574
|
default: () => (string | number)[][];
|
@@ -14,7 +14,7 @@ import { makeRoundedProps, useRounded } from "../../composables/rounded.js";
|
|
14
14
|
import { makeTagProps } from "../../composables/tag.js";
|
15
15
|
import { makeThemeProps, provideTheme } from "../../composables/theme.js";
|
16
16
|
import { genOverlays, makeVariantProps, useVariant } from "../../composables/variant.js"; // Utilities
|
17
|
-
import { toDisplayString
|
17
|
+
import { toDisplayString } from 'vue';
|
18
18
|
import { convertToUnit, genericComponent, propsFactory, useRender } from "../../util/index.js"; // Types
|
19
19
|
export const makeVIconBtnProps = propsFactory({
|
20
20
|
active: {
|
@@ -34,10 +34,7 @@ export const makeVIconBtnProps = propsFactory({
|
|
34
34
|
hideOverlay: Boolean,
|
35
35
|
icon: [String, Function, Object],
|
36
36
|
iconColor: String,
|
37
|
-
iconSize:
|
38
|
-
type: [Number, String],
|
39
|
-
default: 'default'
|
40
|
-
},
|
37
|
+
iconSize: [Number, String],
|
41
38
|
iconSizes: {
|
42
39
|
type: Array,
|
43
40
|
default: () => [['x-small', 10], ['small', 16], ['default', 24], ['large', 28], ['x-large', 32]]
|
@@ -98,7 +95,7 @@ export const VIconBtn = genericComponent()({
|
|
98
95
|
colorClasses,
|
99
96
|
colorStyles,
|
100
97
|
variantClasses
|
101
|
-
} = useVariant(
|
98
|
+
} = useVariant(() => ({
|
102
99
|
color: (() => {
|
103
100
|
if (props.disabled) return undefined;
|
104
101
|
if (!isActive.value) return props.color;
|
@@ -113,7 +110,7 @@ export const VIconBtn = genericComponent()({
|
|
113
110
|
if (isActive.value) return props.activeVariant ?? props.variant;
|
114
111
|
return props.baseVariant ?? props.variant;
|
115
112
|
})()
|
116
|
-
}))
|
113
|
+
}));
|
117
114
|
const btnSizeMap = new Map(props.sizes);
|
118
115
|
const iconSizeMap = new Map(props.iconSizes);
|
119
116
|
function onClick() {
|
@@ -122,13 +119,14 @@ export const VIconBtn = genericComponent()({
|
|
122
119
|
}
|
123
120
|
useRender(() => {
|
124
121
|
const icon = isActive.value ? props.activeIcon ?? props.icon : props.icon;
|
125
|
-
const
|
126
|
-
const hasNamedSize = btnSizeMap.has(
|
127
|
-
const btnSize = hasNamedSize ? btnSizeMap.get(
|
122
|
+
const _btnSize = props.size;
|
123
|
+
const hasNamedSize = btnSizeMap.has(_btnSize);
|
124
|
+
const btnSize = hasNamedSize ? btnSizeMap.get(_btnSize) : _btnSize;
|
128
125
|
const btnHeight = props.height ?? btnSize;
|
129
126
|
const btnWidth = props.width ?? btnSize;
|
130
|
-
const _iconSize =
|
131
|
-
const
|
127
|
+
const _iconSize = props.iconSize;
|
128
|
+
const hasNamedIconSize = iconSizeMap.has(_iconSize);
|
129
|
+
const iconSize = !_iconSize ? hasNamedSize ? iconSizeMap.get(_btnSize) : iconSizeMap.get('default') : hasNamedIconSize ? iconSizeMap.get(_iconSize) : _iconSize;
|
132
130
|
const iconProps = {
|
133
131
|
icon,
|
134
132
|
size: iconSize,
|