@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,4 +1,4 @@
|
|
1
|
-
import {
|
1
|
+
import { mergeProps as _mergeProps, createVNode as _createVNode } from "vue";
|
2
2
|
// Styles
|
3
3
|
import "./VCalendarDay.css";
|
4
4
|
|
@@ -7,7 +7,7 @@ import { makeVCalendarIntervalProps, VCalendarInterval } from "./VCalendarInterv
|
|
7
7
|
import { VBtn } from "../../components/VBtn/index.js"; // Composables
|
8
8
|
import { useDate } from "../../composables/date/index.js"; // Utilities
|
9
9
|
import { computed } from 'vue';
|
10
|
-
import { genericComponent, propsFactory, useRender } from "../../util/index.js";
|
10
|
+
import { genericComponent, getPrefixedEventHandlers, pick, propsFactory, useRender } from "../../util/index.js"; // Types
|
11
11
|
export const makeVCalendarDayProps = propsFactory({
|
12
12
|
hideDayHeader: Boolean,
|
13
13
|
intervals: {
|
@@ -18,26 +18,34 @@ export const makeVCalendarDayProps = propsFactory({
|
|
18
18
|
}, 'VCalendarDay');
|
19
19
|
export const VCalendarDay = genericComponent()({
|
20
20
|
name: 'VCalendarDay',
|
21
|
+
inheritAttrs: false,
|
21
22
|
props: makeVCalendarDayProps(),
|
22
|
-
setup(props) {
|
23
|
+
setup(props, _ref) {
|
24
|
+
let {
|
25
|
+
attrs,
|
26
|
+
slots
|
27
|
+
} = _ref;
|
23
28
|
const adapter = useDate();
|
24
29
|
const intervals = computed(() => [...Array.from({
|
25
30
|
length: props.intervals
|
26
|
-
}, (v, i) => i).filter((
|
31
|
+
}, (v, i) => i).filter((_, index) => props.intervalDuration * (index + props.intervalStart) < 1440)]);
|
27
32
|
useRender(() => {
|
28
33
|
const calendarIntervalProps = VCalendarInterval.filterProps(props);
|
29
34
|
return _createVNode("div", {
|
30
35
|
"class": "v-calendar-day__container"
|
31
|
-
}, [!props.hideDayHeader && _createVNode("div", {
|
32
|
-
"key": "
|
36
|
+
}, [!props.hideDayHeader && _createVNode("div", _mergeProps({
|
37
|
+
"key": "calendar-week-name",
|
33
38
|
"class": "v-calendar-weekly__head-weekday"
|
34
|
-
}, [adapter.format(props.day.date, 'weekdayShort'), _createVNode("div", null, [_createVNode(VBtn, {
|
39
|
+
}, getPrefixedEventHandlers(attrs, ':day', () => props.day)), [adapter.format(props.day.date, 'weekdayShort'), _createVNode("div", null, [_createVNode(VBtn, _mergeProps(getPrefixedEventHandlers(attrs, ':date', () => props.day), {
|
40
|
+
"class": props.day?.isToday ? 'v-calendar-day-label__today' : undefined,
|
35
41
|
"icon": true,
|
36
42
|
"text": adapter.format(props.day.date, 'dayOfMonth'),
|
37
|
-
"variant":
|
38
|
-
}, null)])]), intervals.value.map((_, index) => _createVNode(VCalendarInterval, _mergeProps({
|
43
|
+
"variant": props.day?.isToday ? undefined : 'text'
|
44
|
+
}), null)])]), intervals.value.map((_, index) => slots.interval?.(calendarIntervalProps) ?? _createVNode(VCalendarInterval, _mergeProps({
|
39
45
|
"index": index
|
40
|
-
}, calendarIntervalProps
|
46
|
+
}, calendarIntervalProps, attrs, getPrefixedEventHandlers(attrs, ':interval', () => calendarIntervalProps)), {
|
47
|
+
...pick(slots, ['intervalBody', 'intervalEvent', 'intervalTitle'])
|
48
|
+
}))]);
|
41
49
|
});
|
42
50
|
return {
|
43
51
|
intervals
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"VCalendarDay.js","names":["makeVCalendarIntervalProps","VCalendarInterval","VBtn","useDate","computed","genericComponent","propsFactory","useRender","makeVCalendarDayProps","hideDayHeader","Boolean","intervals","type","Number","default","VCalendarDay","name","props","setup","adapter","Array","from","length","v","i","filter","
|
1
|
+
{"version":3,"file":"VCalendarDay.js","names":["makeVCalendarIntervalProps","VCalendarInterval","VBtn","useDate","computed","genericComponent","getPrefixedEventHandlers","pick","propsFactory","useRender","makeVCalendarDayProps","hideDayHeader","Boolean","intervals","type","Number","default","VCalendarDay","name","inheritAttrs","props","setup","_ref","attrs","slots","adapter","Array","from","length","v","i","filter","_","index","intervalDuration","intervalStart","calendarIntervalProps","filterProps","_createVNode","_mergeProps","day","format","date","isToday","undefined","value","map","interval"],"sources":["../../../src/labs/VCalendar/VCalendarDay.tsx"],"sourcesContent":["// Styles\nimport './VCalendarDay.sass'\n\n// Components\nimport { makeVCalendarIntervalProps, VCalendarInterval } from './VCalendarInterval'\nimport { VBtn } from '@/components/VBtn'\n\n// Composables\nimport { useDate } from '@/composables/date'\n\n// Utilities\nimport { computed } from 'vue'\nimport { genericComponent, getPrefixedEventHandlers, pick, propsFactory, useRender } from '@/util'\n\n// Types\nimport type { VCalendarIntervalSlots } from './VCalendarInterval'\n\nexport type VCalendarDaySlots = VCalendarIntervalSlots & {\n interval: Record<string, unknown>\n}\n\nexport const makeVCalendarDayProps = propsFactory({\n hideDayHeader: Boolean,\n intervals: {\n type: Number,\n default: 24,\n },\n\n ...makeVCalendarIntervalProps(),\n}, 'VCalendarDay')\n\nexport const VCalendarDay = genericComponent<VCalendarDaySlots>()({\n name: 'VCalendarDay',\n\n inheritAttrs: false,\n\n props: makeVCalendarDayProps(),\n\n setup (props, { attrs, slots }) {\n const adapter = useDate()\n const intervals = computed(() => [\n ...Array.from({ length: props.intervals }, (v, i) => i)\n .filter((_, index) => (props.intervalDuration * (index + props.intervalStart)) < 1440),\n ])\n\n useRender(() => {\n const calendarIntervalProps = VCalendarInterval.filterProps(props)\n\n return (\n <div class=\"v-calendar-day__container\">\n { !props.hideDayHeader && (\n <div\n key=\"calendar-week-name\"\n class=\"v-calendar-weekly__head-weekday\"\n { ...getPrefixedEventHandlers(attrs, ':day', () => props.day) }\n >\n { adapter.format(props.day.date, 'weekdayShort') }\n\n <div>\n <VBtn\n { ...getPrefixedEventHandlers(attrs, ':date', () => props.day) }\n class={ props.day?.isToday ? 'v-calendar-day-label__today' : undefined }\n icon\n text={ adapter.format(props.day.date, 'dayOfMonth') }\n variant={ props.day?.isToday ? undefined : 'text' }\n />\n </div>\n </div>\n )}\n { intervals.value.map((_, index) =>\n slots.interval?.(calendarIntervalProps) ?? (\n <VCalendarInterval\n index={ index }\n { ...calendarIntervalProps }\n { ...attrs }\n { ...getPrefixedEventHandlers(attrs, ':interval', () => calendarIntervalProps) }\n >\n {{\n ...pick(slots, ['intervalBody', 'intervalEvent', 'intervalTitle']),\n }}\n </VCalendarInterval>\n )\n )}\n </div>\n )\n })\n\n return { intervals }\n },\n})\n\nexport type VCalendarDay = InstanceType<typeof VCalendarDay>\n"],"mappings":";AAAA;AACA;;AAEA;AAAA,SACSA,0BAA0B,EAAEC,iBAAiB;AAAA,SAC7CC,IAAI,0CAEb;AAAA,SACSC,OAAO,2CAEhB;AACA,SAASC,QAAQ,QAAQ,KAAK;AAAA,SACrBC,gBAAgB,EAAEC,wBAAwB,EAAEC,IAAI,EAAEC,YAAY,EAAEC,SAAS,+BAElF;AAOA,OAAO,MAAMC,qBAAqB,GAAGF,YAAY,CAAC;EAChDG,aAAa,EAAEC,OAAO;EACtBC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EAAE,MAAMH,KAAK,CAACoB,GAAG,CAAC;QAAA,SACtDpB,KAAK,CAACoB,GAAG,EAAEG,OAAO,GAAG,6BAA6B,GAAGC,SAAS;QAAA;QAAA,QAE/DnB,OAAO,CAACgB,MAAM,CAACrB,KAAK,CAACoB,GAAG,CAACE,IAAI,EAAE,YAAY,CAAC;QAAA,WACzCtB,KAAK,CAACoB,GAAG,EAAEG,OAAO,GAAGC,SAAS,GAAG;MAAM,aAIxD,EACC/B,SAAS,CAACgC,KAAK,CAACC,GAAG,CAAC,CAACd,CAAC,EAAEC,KAAK,KAC7BT,KAAK,CAACuB,QAAQ,GAAGX,qBAAqB,CAAC,IAAAE,YAAA,CAAArC,iBAAA,EAAAsC,WAAA;QAAA,SAE3BN;MAAK,GACRG,qBAAqB,EACrBb,KAAK,EACLjB,wBAAwB,CAACiB,KAAK,EAAE,WAAW,EAAE,MAAMa,qBAAqB,CAAC;QAG5E,GAAG7B,IAAI,CAACiB,KAAK,EAAE,CAAC,cAAc,EAAE,eAAe,EAAE,eAAe,CAAC;MAAC,EAI1E,CAAC;IAGP,CAAC,CAAC;IAEF,OAAO;MAAEX;IAAU,CAAC;EACtB;AACF,CAAC,CAAC","ignoreList":[]}
|
@@ -33,3 +33,11 @@
|
|
33
33
|
|
34
34
|
&.days__0
|
35
35
|
grid-template-columns: repeat(1, 1fr)
|
36
|
+
|
37
|
+
.v-calendar-weekly__head-weekday
|
38
|
+
// without a little padding at the bottom the drop shadow gets clipped on the current day
|
39
|
+
padding-bottom: 4px
|
40
|
+
|
41
|
+
.v-calendar-weekly__head-weekday .v-calendar-day-label__today
|
42
|
+
background: rgba(var(--v-theme-surface-variant), var(--v-medium-emphasis-opacity))
|
43
|
+
color: rgb(var(--v-theme-on-surface-variant))
|
@@ -1,8 +1,8 @@
|
|
1
|
-
import { createVNode as _createVNode } from "vue";
|
1
|
+
import { createVNode as _createVNode, mergeProps as _mergeProps } from "vue";
|
2
2
|
// Components
|
3
3
|
import { VBadge } from "../../components/VBadge/index.js";
|
4
4
|
import { VChip } from "../../components/VChip/index.js"; // Utilities
|
5
|
-
import { genericComponent, propsFactory, useRender } from "../../util/index.js";
|
5
|
+
import { genericComponent, getPrefixedEventHandlers, propsFactory, useRender } from "../../util/index.js";
|
6
6
|
export const makeVCalendarEventProps = propsFactory({
|
7
7
|
allDay: Boolean,
|
8
8
|
day: Object,
|
@@ -10,14 +10,24 @@ export const makeVCalendarEventProps = propsFactory({
|
|
10
10
|
}, 'VCalendarEvent');
|
11
11
|
export const VCalendarEvent = genericComponent()({
|
12
12
|
name: 'VCalendarEvent',
|
13
|
+
inheritAttrs: false,
|
13
14
|
props: makeVCalendarEventProps(),
|
14
|
-
setup(props) {
|
15
|
-
|
15
|
+
setup(props, _ref) {
|
16
|
+
let {
|
17
|
+
attrs,
|
18
|
+
emit,
|
19
|
+
slots
|
20
|
+
} = _ref;
|
21
|
+
useRender(() => _createVNode(VChip, _mergeProps({
|
16
22
|
"color": props.allDay ? 'primary' : undefined,
|
17
23
|
"density": "comfortable",
|
18
24
|
"label": props.allDay,
|
19
25
|
"width": "100%"
|
20
|
-
}, {
|
26
|
+
}, getPrefixedEventHandlers(attrs, ':event', () => ({
|
27
|
+
allDay: props.allDay,
|
28
|
+
day: props.day,
|
29
|
+
event: props.event
|
30
|
+
}))), {
|
21
31
|
default: () => [_createVNode(VBadge, {
|
22
32
|
"inline": true,
|
23
33
|
"dot": true,
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"VCalendarEvent.js","names":["VBadge","VChip","genericComponent","propsFactory","useRender","makeVCalendarEventProps","allDay","Boolean","day","Object","event","VCalendarEvent","name","props","setup","_createVNode","undefined","default","color","title"],"sources":["../../../src/labs/VCalendar/VCalendarEvent.tsx"],"sourcesContent":["// Components\nimport { VBadge } from '@/components/VBadge'\nimport { VChip } from '@/components/VChip'\n\n// Utilities\nimport { genericComponent, propsFactory, useRender } from '@/util'\n\nexport const makeVCalendarEventProps = propsFactory({\n allDay: Boolean,\n day: Object,\n event: Object,\n}, 'VCalendarEvent')\n\nexport const VCalendarEvent = genericComponent()({\n name: 'VCalendarEvent',\n\n props: makeVCalendarEventProps(),\n\n setup (props) {\n useRender(() => (\n <VChip\n color={ props.allDay ? 'primary' : undefined }\n density=\"comfortable\"\n label={ props.allDay }\n width=\"100%\"\n >\n <VBadge\n inline\n dot\n color={ props.event?.color }\n />\n\n { props.event?.title }\n </VChip>\n ))\n\n return {}\n },\n\n})\n\nexport type VCalendarEvent = InstanceType<typeof VCalendarEvent>\n"],"mappings":";AAAA;AAAA,SACSA,MAAM;AAAA,SACNC,KAAK,2CAEd;AAAA,SACSC,gBAAgB,EAAEC,YAAY,EAAEC,SAAS;
|
1
|
+
{"version":3,"file":"VCalendarEvent.js","names":["VBadge","VChip","genericComponent","getPrefixedEventHandlers","propsFactory","useRender","makeVCalendarEventProps","allDay","Boolean","day","Object","event","VCalendarEvent","name","inheritAttrs","props","setup","_ref","attrs","emit","slots","_createVNode","_mergeProps","undefined","default","color","title"],"sources":["../../../src/labs/VCalendar/VCalendarEvent.tsx"],"sourcesContent":["// Components\nimport { VBadge } from '@/components/VBadge'\nimport { VChip } from '@/components/VChip'\n\n// Utilities\nimport { genericComponent, getPrefixedEventHandlers, propsFactory, useRender } from '@/util'\n\nexport const makeVCalendarEventProps = propsFactory({\n allDay: Boolean,\n day: Object,\n event: Object,\n}, 'VCalendarEvent')\n\nexport const VCalendarEvent = genericComponent()({\n name: 'VCalendarEvent',\n\n inheritAttrs: false,\n\n props: makeVCalendarEventProps(),\n\n setup (props, { attrs, emit, slots }) {\n useRender(() => (\n <VChip\n color={ props.allDay ? 'primary' : undefined }\n density=\"comfortable\"\n label={ props.allDay }\n width=\"100%\"\n { ...getPrefixedEventHandlers(attrs, ':event', () => ({\n allDay: props.allDay,\n day: props.day,\n event: props.event,\n }))}\n >\n <VBadge\n inline\n dot\n color={ props.event?.color }\n />\n\n { props.event?.title }\n </VChip>\n ))\n\n return {}\n },\n\n})\n\nexport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type VCalendarHeaderSlots = {
|
3
|
+
title: {
|
4
|
+
title?: string;
|
5
|
+
};
|
6
|
+
};
|
2
7
|
export declare const makeVCalendarHeaderProps: <Defaults extends {
|
3
8
|
nextIcon?: unknown;
|
4
9
|
prevIcon?: unknown;
|
@@ -60,14 +65,20 @@ export declare const VCalendarHeader: {
|
|
60
65
|
} & {
|
61
66
|
title?: string | undefined;
|
62
67
|
} & {
|
63
|
-
$children?: import("vue").VNodeChild | {
|
64
|
-
|
65
|
-
|
68
|
+
$children?: {} | import("vue").VNodeChild | {
|
69
|
+
title?: ((arg: {
|
70
|
+
title?: string;
|
71
|
+
}) => import("vue").VNodeChild) | undefined;
|
72
|
+
};
|
66
73
|
'v-slots'?: {
|
67
|
-
|
74
|
+
title?: false | ((arg: {
|
75
|
+
title?: string;
|
76
|
+
}) => import("vue").VNodeChild) | undefined;
|
68
77
|
} | undefined;
|
69
78
|
} & {
|
70
|
-
"v-slot:
|
79
|
+
"v-slot:title"?: false | ((arg: {
|
80
|
+
title?: string;
|
81
|
+
}) => import("vue").VNodeChild) | undefined;
|
71
82
|
} & {
|
72
83
|
"onClick:prev"?: (() => any) | undefined;
|
73
84
|
"onClick:next"?: (() => any) | undefined;
|
@@ -82,7 +93,9 @@ export declare const VCalendarHeader: {
|
|
82
93
|
prevIcon: string;
|
83
94
|
viewMode: "day" | "month" | "week";
|
84
95
|
}, true, {}, import("vue").SlotsType<Partial<{
|
85
|
-
|
96
|
+
title: (arg: {
|
97
|
+
title?: string;
|
98
|
+
}) => import("vue").VNode[];
|
86
99
|
}>>, import("vue").GlobalComponents, import("vue").GlobalDirectives, string, {}, any, import("vue").ComponentProvideOptions, {
|
87
100
|
P: {};
|
88
101
|
B: {};
|
@@ -98,14 +111,20 @@ export declare const VCalendarHeader: {
|
|
98
111
|
} & {
|
99
112
|
title?: string | undefined;
|
100
113
|
} & {
|
101
|
-
$children?: import("vue").VNodeChild | {
|
102
|
-
|
103
|
-
|
114
|
+
$children?: {} | import("vue").VNodeChild | {
|
115
|
+
title?: ((arg: {
|
116
|
+
title?: string;
|
117
|
+
}) => import("vue").VNodeChild) | undefined;
|
118
|
+
};
|
104
119
|
'v-slots'?: {
|
105
|
-
|
120
|
+
title?: false | ((arg: {
|
121
|
+
title?: string;
|
122
|
+
}) => import("vue").VNodeChild) | undefined;
|
106
123
|
} | undefined;
|
107
124
|
} & {
|
108
|
-
"v-slot:
|
125
|
+
"v-slot:title"?: false | ((arg: {
|
126
|
+
title?: string;
|
127
|
+
}) => import("vue").VNodeChild) | undefined;
|
109
128
|
} & {
|
110
129
|
"onClick:prev"?: (() => any) | undefined;
|
111
130
|
"onClick:next"?: (() => any) | undefined;
|
@@ -127,14 +146,20 @@ export declare const VCalendarHeader: {
|
|
127
146
|
} & {
|
128
147
|
title?: string | undefined;
|
129
148
|
} & {
|
130
|
-
$children?: import("vue").VNodeChild | {
|
131
|
-
|
132
|
-
|
149
|
+
$children?: {} | import("vue").VNodeChild | {
|
150
|
+
title?: ((arg: {
|
151
|
+
title?: string;
|
152
|
+
}) => import("vue").VNodeChild) | undefined;
|
153
|
+
};
|
133
154
|
'v-slots'?: {
|
134
|
-
|
155
|
+
title?: false | ((arg: {
|
156
|
+
title?: string;
|
157
|
+
}) => import("vue").VNodeChild) | undefined;
|
135
158
|
} | undefined;
|
136
159
|
} & {
|
137
|
-
"v-slot:
|
160
|
+
"v-slot:title"?: false | ((arg: {
|
161
|
+
title?: string;
|
162
|
+
}) => import("vue").VNodeChild) | undefined;
|
138
163
|
} & {
|
139
164
|
"onClick:prev"?: (() => any) | undefined;
|
140
165
|
"onClick:next"?: (() => any) | undefined;
|
@@ -149,7 +174,9 @@ export declare const VCalendarHeader: {
|
|
149
174
|
prevIcon: string;
|
150
175
|
viewMode: "day" | "month" | "week";
|
151
176
|
}, {}, string, import("vue").SlotsType<Partial<{
|
152
|
-
|
177
|
+
title: (arg: {
|
178
|
+
title?: string;
|
179
|
+
}) => import("vue").VNode[];
|
153
180
|
}>>, import("vue").GlobalComponents, import("vue").GlobalDirectives, string, import("vue").ComponentProvideOptions> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & import("../../util/index.js").FilterPropsOptions<{
|
154
181
|
nextIcon: {
|
155
182
|
type: StringConstructor;
|
@@ -35,7 +35,8 @@ export const VCalendarHeader = genericComponent()({
|
|
35
35
|
},
|
36
36
|
setup(props, _ref) {
|
37
37
|
let {
|
38
|
-
emit
|
38
|
+
emit,
|
39
|
+
slots
|
39
40
|
} = _ref;
|
40
41
|
const {
|
41
42
|
t
|
@@ -69,7 +70,9 @@ export const VCalendarHeader = genericComponent()({
|
|
69
70
|
"onClick": next
|
70
71
|
}, null), _createVNode("div", {
|
71
72
|
"class": "v-calendar-header__title"
|
72
|
-
}, [
|
73
|
+
}, [slots.title?.({
|
74
|
+
title: props.title
|
75
|
+
}) ?? _createVNode("span", null, [props.title])])]));
|
73
76
|
return {};
|
74
77
|
}
|
75
78
|
});
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"VCalendarHeader.js","names":["VBtn","useLocale","genericComponent","propsFactory","useRender","makeVCalendarHeaderProps","nextIcon","type","String","default","prevIcon","title","text","viewMode","VCalendarHeader","name","props","emits","click:next","click:prev","click:toToday","setup","_ref","emit","t","prev","next","toToday","_createVNode"],"sources":["../../../src/labs/VCalendar/VCalendarHeader.tsx"],"sourcesContent":["// Styles\nimport './VCalendarHeader.sass'\n\n// Components\nimport { VBtn } from '@/components/VBtn'\n\n// Composables\nimport { useLocale } from '@/composables/locale'\n\n// Utilities\nimport { genericComponent, propsFactory, useRender } from '@/util'\n\n// Types\nimport type { PropType } from 'vue'\n\nexport const makeVCalendarHeaderProps = propsFactory({\n nextIcon: {\n type: String,\n default: '$next',\n },\n prevIcon: {\n type: String,\n default: '$prev',\n },\n title: String,\n text: {\n type: String,\n default: '$vuetify.calendar.today',\n },\n viewMode: {\n type: String as PropType<'month' | 'week' | 'day'>,\n default: 'month',\n },\n}, 'VCalendarHeader')\n\nexport const VCalendarHeader = genericComponent()({\n name: 'VCalendarHeader',\n\n props: makeVCalendarHeaderProps(),\n\n emits: {\n 'click:next': () => true,\n 'click:prev': () => true,\n 'click:toToday': () => true,\n },\n\n setup (props, { emit }) {\n const { t } = useLocale()\n\n function prev () {\n emit('click:prev')\n }\n\n function next () {\n emit('click:next')\n }\n\n function toToday () {\n emit('click:toToday')\n }\n\n useRender(() => (\n <div class=\"v-calendar-header\">\n { props.text && (\n <VBtn\n key=\"today\"\n class=\"v-calendar-header__today\"\n text={ t(props.text) }\n variant=\"outlined\"\n onClick={ toToday }\n />\n )}\n\n <VBtn\n density=\"comfortable\"\n icon={ props.prevIcon }\n variant=\"text\"\n onClick={ prev }\n />\n\n <VBtn\n density=\"comfortable\"\n icon={ props.nextIcon }\n variant=\"text\"\n onClick={ next }\n />\n\n <div class=\"v-calendar-header__title\">{ props.title }</div>\n </div>\n ))\n\n return {}\n },\n})\n\nexport type VCalendarHeader = InstanceType<typeof VCalendarHeader>\n"],"mappings":";AAAA;AACA;;AAEA;AAAA,SACSA,IAAI,0CAEb;AAAA,SACSC,SAAS,uCAElB;AAAA,SACSC,gBAAgB,EAAEC,YAAY,EAAEC,SAAS,+BAElD;
|
1
|
+
{"version":3,"file":"VCalendarHeader.js","names":["VBtn","useLocale","genericComponent","propsFactory","useRender","makeVCalendarHeaderProps","nextIcon","type","String","default","prevIcon","title","text","viewMode","VCalendarHeader","name","props","emits","click:next","click:prev","click:toToday","setup","_ref","emit","slots","t","prev","next","toToday","_createVNode"],"sources":["../../../src/labs/VCalendar/VCalendarHeader.tsx"],"sourcesContent":["// Styles\nimport './VCalendarHeader.sass'\n\n// Components\nimport { VBtn } from '@/components/VBtn'\n\n// Composables\nimport { useLocale } from '@/composables/locale'\n\n// Utilities\nimport { genericComponent, propsFactory, useRender } from '@/util'\n\n// Types\nimport type { PropType } from 'vue'\n\nexport type VCalendarHeaderSlots = {\n title: { title?: string }\n}\n\nexport const makeVCalendarHeaderProps = propsFactory({\n nextIcon: {\n type: String,\n default: '$next',\n },\n prevIcon: {\n type: String,\n default: '$prev',\n },\n title: String,\n text: {\n type: String,\n default: '$vuetify.calendar.today',\n },\n viewMode: {\n type: String as PropType<'month' | 'week' | 'day'>,\n default: 'month',\n },\n}, 'VCalendarHeader')\n\nexport const VCalendarHeader = genericComponent<VCalendarHeaderSlots>()({\n name: 'VCalendarHeader',\n\n props: makeVCalendarHeaderProps(),\n\n emits: {\n 'click:next': () => true,\n 'click:prev': () => true,\n 'click:toToday': () => true,\n },\n\n setup (props, { emit, slots }) {\n const { t } = useLocale()\n\n function prev () {\n emit('click:prev')\n }\n\n function next () {\n emit('click:next')\n }\n\n function toToday () {\n emit('click:toToday')\n }\n\n useRender(() => (\n <div class=\"v-calendar-header\">\n { props.text && (\n <VBtn\n key=\"today\"\n class=\"v-calendar-header__today\"\n text={ t(props.text) }\n variant=\"outlined\"\n onClick={ toToday }\n />\n )}\n\n <VBtn\n density=\"comfortable\"\n icon={ props.prevIcon }\n variant=\"text\"\n onClick={ prev }\n />\n\n <VBtn\n density=\"comfortable\"\n icon={ props.nextIcon }\n variant=\"text\"\n onClick={ next }\n />\n\n <div class=\"v-calendar-header__title\">\n { slots.title?.({ title: props.title }) ?? (\n <span>{ props.title }</span>\n )}\n </div>\n </div>\n ))\n\n return {}\n },\n})\n\nexport type VCalendarHeader = InstanceType<typeof VCalendarHeader>\n"],"mappings":";AAAA;AACA;;AAEA;AAAA,SACSA,IAAI,0CAEb;AAAA,SACSC,SAAS,uCAElB;AAAA,SACSC,gBAAgB,EAAEC,YAAY,EAAEC,SAAS,+BAElD;AAOA,OAAO,MAAMC,wBAAwB,GAAGF,YAAY,CAAC;EACnDG,QAAQ,EAAE;IACRC,IAAI,EAAEC,MAAM;IACZC,OAAO,EAAE;EACX,CAAC;EACDC,QAAQ,EAAE;IACRH,IAAI,EAAEC,MAAM;IACZC,OAAO,EAAE;EACX,CAAC;EACDE,KAAK,EAAEH,MAAM;EACbI,IAAI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ACb,KAAK,GAAG;MAAEA,KAAK,EAAEK,KAAK,CAACL;IAAM,CAAC,CAAC,IAAAkB,YAAA,gBAC7Bb,KAAK,CAACL,KAAK,EACpB,IAGN,CAAC;IAEF,OAAO,CAAC,CAAC;EACX;AACF,CAAC,CAAC","ignoreList":[]}
|
@@ -1,3 +1,24 @@
|
|
1
|
+
type Interval = {
|
2
|
+
label: string;
|
3
|
+
start: unknown;
|
4
|
+
end: unknown;
|
5
|
+
events: any[];
|
6
|
+
};
|
7
|
+
export type VCalendarIntervalSlots = {
|
8
|
+
intervalBody: {
|
9
|
+
interval: Interval;
|
10
|
+
};
|
11
|
+
intervalEvent: {
|
12
|
+
height: string;
|
13
|
+
margin: string;
|
14
|
+
eventClass: string;
|
15
|
+
event: any;
|
16
|
+
interval: Interval;
|
17
|
+
};
|
18
|
+
intervalTitle: {
|
19
|
+
interval: Interval;
|
20
|
+
};
|
21
|
+
};
|
1
22
|
export declare const makeVCalendarIntervalProps: <Defaults extends {
|
2
23
|
day?: unknown;
|
3
24
|
dayIndex?: unknown;
|
@@ -105,14 +126,50 @@ export declare const VCalendarInterval: {
|
|
105
126
|
events?: any[] | undefined;
|
106
127
|
dayIndex?: number | undefined;
|
107
128
|
} & {
|
108
|
-
$children?: import("vue").VNodeChild | {
|
109
|
-
|
110
|
-
|
129
|
+
$children?: {} | import("vue").VNodeChild | {
|
130
|
+
intervalBody?: ((arg: {
|
131
|
+
interval: Interval;
|
132
|
+
}) => import("vue").VNodeChild) | undefined;
|
133
|
+
intervalEvent?: ((arg: {
|
134
|
+
height: string;
|
135
|
+
margin: string;
|
136
|
+
eventClass: string;
|
137
|
+
event: any;
|
138
|
+
interval: Interval;
|
139
|
+
}) => import("vue").VNodeChild) | undefined;
|
140
|
+
intervalTitle?: ((arg: {
|
141
|
+
interval: Interval;
|
142
|
+
}) => import("vue").VNodeChild) | undefined;
|
143
|
+
};
|
111
144
|
'v-slots'?: {
|
112
|
-
|
145
|
+
intervalBody?: false | ((arg: {
|
146
|
+
interval: Interval;
|
147
|
+
}) => import("vue").VNodeChild) | undefined;
|
148
|
+
intervalEvent?: false | ((arg: {
|
149
|
+
height: string;
|
150
|
+
margin: string;
|
151
|
+
eventClass: string;
|
152
|
+
event: any;
|
153
|
+
interval: Interval;
|
154
|
+
}) => import("vue").VNodeChild) | undefined;
|
155
|
+
intervalTitle?: false | ((arg: {
|
156
|
+
interval: Interval;
|
157
|
+
}) => import("vue").VNodeChild) | undefined;
|
113
158
|
} | undefined;
|
114
159
|
} & {
|
115
|
-
"v-slot:
|
160
|
+
"v-slot:intervalBody"?: false | ((arg: {
|
161
|
+
interval: Interval;
|
162
|
+
}) => import("vue").VNodeChild) | undefined;
|
163
|
+
"v-slot:intervalEvent"?: false | ((arg: {
|
164
|
+
height: string;
|
165
|
+
margin: string;
|
166
|
+
eventClass: string;
|
167
|
+
event: any;
|
168
|
+
interval: Interval;
|
169
|
+
}) => import("vue").VNodeChild) | undefined;
|
170
|
+
"v-slot:intervalTitle"?: false | ((arg: {
|
171
|
+
interval: Interval;
|
172
|
+
}) => import("vue").VNodeChild) | undefined;
|
116
173
|
}, {
|
117
174
|
interval: import("vue").ComputedRef<{
|
118
175
|
label: string;
|
@@ -128,7 +185,19 @@ export declare const VCalendarInterval: {
|
|
128
185
|
intervalFormat: string | Function;
|
129
186
|
intervalStart: number;
|
130
187
|
}, true, {}, import("vue").SlotsType<Partial<{
|
131
|
-
|
188
|
+
intervalBody: (arg: {
|
189
|
+
interval: Interval;
|
190
|
+
}) => import("vue").VNode[];
|
191
|
+
intervalEvent: (arg: {
|
192
|
+
height: string;
|
193
|
+
margin: string;
|
194
|
+
eventClass: string;
|
195
|
+
event: any;
|
196
|
+
interval: Interval;
|
197
|
+
}) => import("vue").VNode[];
|
198
|
+
intervalTitle: (arg: {
|
199
|
+
interval: Interval;
|
200
|
+
}) => import("vue").VNode[];
|
132
201
|
}>>, import("vue").GlobalComponents, import("vue").GlobalDirectives, string, {}, any, import("vue").ComponentProvideOptions, {
|
133
202
|
P: {};
|
134
203
|
B: {};
|
@@ -148,14 +217,50 @@ export declare const VCalendarInterval: {
|
|
148
217
|
events?: any[] | undefined;
|
149
218
|
dayIndex?: number | undefined;
|
150
219
|
} & {
|
151
|
-
$children?: import("vue").VNodeChild | {
|
152
|
-
|
153
|
-
|
220
|
+
$children?: {} | import("vue").VNodeChild | {
|
221
|
+
intervalBody?: ((arg: {
|
222
|
+
interval: Interval;
|
223
|
+
}) => import("vue").VNodeChild) | undefined;
|
224
|
+
intervalEvent?: ((arg: {
|
225
|
+
height: string;
|
226
|
+
margin: string;
|
227
|
+
eventClass: string;
|
228
|
+
event: any;
|
229
|
+
interval: Interval;
|
230
|
+
}) => import("vue").VNodeChild) | undefined;
|
231
|
+
intervalTitle?: ((arg: {
|
232
|
+
interval: Interval;
|
233
|
+
}) => import("vue").VNodeChild) | undefined;
|
234
|
+
};
|
154
235
|
'v-slots'?: {
|
155
|
-
|
236
|
+
intervalBody?: false | ((arg: {
|
237
|
+
interval: Interval;
|
238
|
+
}) => import("vue").VNodeChild) | undefined;
|
239
|
+
intervalEvent?: false | ((arg: {
|
240
|
+
height: string;
|
241
|
+
margin: string;
|
242
|
+
eventClass: string;
|
243
|
+
event: any;
|
244
|
+
interval: Interval;
|
245
|
+
}) => import("vue").VNodeChild) | undefined;
|
246
|
+
intervalTitle?: false | ((arg: {
|
247
|
+
interval: Interval;
|
248
|
+
}) => import("vue").VNodeChild) | undefined;
|
156
249
|
} | undefined;
|
157
250
|
} & {
|
158
|
-
"v-slot:
|
251
|
+
"v-slot:intervalBody"?: false | ((arg: {
|
252
|
+
interval: Interval;
|
253
|
+
}) => import("vue").VNodeChild) | undefined;
|
254
|
+
"v-slot:intervalEvent"?: false | ((arg: {
|
255
|
+
height: string;
|
256
|
+
margin: string;
|
257
|
+
eventClass: string;
|
258
|
+
event: any;
|
259
|
+
interval: Interval;
|
260
|
+
}) => import("vue").VNodeChild) | undefined;
|
261
|
+
"v-slot:intervalTitle"?: false | ((arg: {
|
262
|
+
interval: Interval;
|
263
|
+
}) => import("vue").VNodeChild) | undefined;
|
159
264
|
}, {
|
160
265
|
interval: import("vue").ComputedRef<{
|
161
266
|
label: string;
|
@@ -186,14 +291,50 @@ export declare const VCalendarInterval: {
|
|
186
291
|
events?: any[] | undefined;
|
187
292
|
dayIndex?: number | undefined;
|
188
293
|
} & {
|
189
|
-
$children?: import("vue").VNodeChild | {
|
190
|
-
|
191
|
-
|
294
|
+
$children?: {} | import("vue").VNodeChild | {
|
295
|
+
intervalBody?: ((arg: {
|
296
|
+
interval: Interval;
|
297
|
+
}) => import("vue").VNodeChild) | undefined;
|
298
|
+
intervalEvent?: ((arg: {
|
299
|
+
height: string;
|
300
|
+
margin: string;
|
301
|
+
eventClass: string;
|
302
|
+
event: any;
|
303
|
+
interval: Interval;
|
304
|
+
}) => import("vue").VNodeChild) | undefined;
|
305
|
+
intervalTitle?: ((arg: {
|
306
|
+
interval: Interval;
|
307
|
+
}) => import("vue").VNodeChild) | undefined;
|
308
|
+
};
|
192
309
|
'v-slots'?: {
|
193
|
-
|
310
|
+
intervalBody?: false | ((arg: {
|
311
|
+
interval: Interval;
|
312
|
+
}) => import("vue").VNodeChild) | undefined;
|
313
|
+
intervalEvent?: false | ((arg: {
|
314
|
+
height: string;
|
315
|
+
margin: string;
|
316
|
+
eventClass: string;
|
317
|
+
event: any;
|
318
|
+
interval: Interval;
|
319
|
+
}) => import("vue").VNodeChild) | undefined;
|
320
|
+
intervalTitle?: false | ((arg: {
|
321
|
+
interval: Interval;
|
322
|
+
}) => import("vue").VNodeChild) | undefined;
|
194
323
|
} | undefined;
|
195
324
|
} & {
|
196
|
-
"v-slot:
|
325
|
+
"v-slot:intervalBody"?: false | ((arg: {
|
326
|
+
interval: Interval;
|
327
|
+
}) => import("vue").VNodeChild) | undefined;
|
328
|
+
"v-slot:intervalEvent"?: false | ((arg: {
|
329
|
+
height: string;
|
330
|
+
margin: string;
|
331
|
+
eventClass: string;
|
332
|
+
event: any;
|
333
|
+
interval: Interval;
|
334
|
+
}) => import("vue").VNodeChild) | undefined;
|
335
|
+
"v-slot:intervalTitle"?: false | ((arg: {
|
336
|
+
interval: Interval;
|
337
|
+
}) => import("vue").VNodeChild) | undefined;
|
197
338
|
}, {
|
198
339
|
interval: import("vue").ComputedRef<{
|
199
340
|
label: string;
|
@@ -209,7 +350,19 @@ export declare const VCalendarInterval: {
|
|
209
350
|
intervalFormat: string | Function;
|
210
351
|
intervalStart: number;
|
211
352
|
}, {}, string, import("vue").SlotsType<Partial<{
|
212
|
-
|
353
|
+
intervalBody: (arg: {
|
354
|
+
interval: Interval;
|
355
|
+
}) => import("vue").VNode[];
|
356
|
+
intervalEvent: (arg: {
|
357
|
+
height: string;
|
358
|
+
margin: string;
|
359
|
+
eventClass: string;
|
360
|
+
event: any;
|
361
|
+
interval: Interval;
|
362
|
+
}) => import("vue").VNode[];
|
363
|
+
intervalTitle: (arg: {
|
364
|
+
interval: Interval;
|
365
|
+
}) => import("vue").VNode[];
|
213
366
|
}>>, import("vue").GlobalComponents, import("vue").GlobalDirectives, string, import("vue").ComponentProvideOptions> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & import("../../util/index.js").FilterPropsOptions<{
|
214
367
|
day: {
|
215
368
|
type: ObjectConstructor;
|
@@ -304,3 +457,4 @@ export declare const VCalendarInterval: {
|
|
304
457
|
};
|
305
458
|
}>>;
|
306
459
|
export type VCalendarInterval = InstanceType<typeof VCalendarInterval>;
|
460
|
+
|