ropav 0.6.0 → 0.8.0
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/README.md +32 -9
- package/dist/components/accordion/index.d.ts +2 -190
- package/dist/components/accordion/index.js +1 -12
- package/dist/components/alert/alert-indicator.js +1 -1
- package/dist/components/alert/index.d.ts +2 -131
- package/dist/components/alert/index.js +1 -10
- package/dist/components/alert-dialog/alert-dialog-close.js +1 -1
- package/dist/components/alert-dialog/alert-dialog-heading.js +2 -2
- package/dist/components/alert-dialog/alert-dialog.types.d.ts +1 -1
- package/dist/components/alert-dialog/index.d.ts +2 -296
- package/dist/components/alert-dialog/index.js +1 -17
- package/dist/components/autocomplete/autocomplete-popover.js +2 -2
- package/dist/components/autocomplete/autocomplete-root.js +1 -1
- package/dist/components/autocomplete/index.d.ts +2 -250
- package/dist/components/autocomplete/index.js +1 -12
- package/dist/components/avatar/avatar.context.d.ts +1 -1
- package/dist/components/avatar/index.d.ts +2 -101
- package/dist/components/avatar/index.js +1 -8
- package/dist/components/badge/badge-anchor.js +5 -4
- package/dist/components/badge/badge-auto-label.d.ts +2 -14
- package/dist/components/badge/badge-auto-label.js +3 -16
- package/dist/components/badge/badge-root.js +2 -2
- package/dist/components/badge/badge.types.d.ts +4 -4
- package/dist/components/badge/index.d.ts +2 -95
- package/dist/components/badge/index.js +1 -8
- package/dist/components/breadcrumbs/breadcrumbs-item.js +2 -2
- package/dist/components/breadcrumbs/breadcrumbs.types.d.ts +2 -2
- package/dist/components/breadcrumbs/index.d.ts +2 -90
- package/dist/components/breadcrumbs/index.js +1 -7
- package/dist/components/button/index.d.ts +2 -61
- package/dist/components/button/index.js +1 -4
- package/dist/components/button-group/index.d.ts +2 -72
- package/dist/components/button-group/index.js +1 -7
- package/dist/components/calendar/calendar-grid-body.js +2 -2
- package/dist/components/calendar/calendar-grid-header.js +1 -1
- package/dist/components/calendar/calendar-grid.js +2 -1
- package/dist/components/calendar/calendar-root.d.ts +1 -1
- package/dist/components/calendar/calendar-root.js +13 -13
- package/dist/components/calendar/calendar.context.js +1 -1
- package/dist/components/calendar/calendar.types.d.ts +3 -1
- package/dist/components/calendar/index.d.ts +2 -422
- package/dist/components/calendar/index.js +1 -27
- package/dist/components/calendar-year-picker/calendar-year-picker-cell.js +15 -11
- package/dist/components/calendar-year-picker/calendar-year-picker-grid-body.js +9 -10
- package/dist/components/calendar-year-picker/calendar-year-picker-grid.js +36 -32
- package/dist/components/calendar-year-picker/calendar-year-picker-trigger-heading.js +1 -1
- package/dist/components/calendar-year-picker/calendar-year-picker-trigger.js +1 -1
- package/dist/components/calendar-year-picker/calendar-year-picker.context.d.ts +26 -8
- package/dist/components/calendar-year-picker/calendar-year-picker.context.js +2 -2
- package/dist/components/calendar-year-picker/calendar-year-picker.types.d.ts +8 -1
- package/dist/components/calendar-year-picker/index.d.ts +0 -134
- package/dist/components/calendar-year-picker/index.js +1 -11
- package/dist/components/card/index.d.ts +2 -152
- package/dist/components/card/index.js +1 -11
- package/dist/components/checkbox/index.d.ts +2 -146
- package/dist/components/checkbox/index.js +1 -9
- package/dist/components/checkbox-group/index.d.ts +2 -77
- package/dist/components/checkbox-group/index.js +1 -4
- package/dist/components/chip/chip-auto-label.d.ts +3 -19
- package/dist/components/chip/chip-auto-label.js +4 -21
- package/dist/components/chip/chip-root.js +2 -2
- package/dist/components/chip/chip.types.d.ts +2 -2
- package/dist/components/chip/index.d.ts +2 -72
- package/dist/components/chip/index.js +1 -7
- package/dist/components/close-button/index.d.ts +2 -55
- package/dist/components/close-button/index.js +1 -4
- package/dist/components/color-area/index.d.ts +2 -100
- package/dist/components/color-area/index.js +1 -7
- package/dist/components/color-field/color-field-root.js +1 -1
- package/dist/components/color-field/index.d.ts +2 -175
- package/dist/components/color-field/index.js +1 -14
- package/dist/components/color-input-group/index.d.ts +2 -115
- package/dist/components/color-input-group/index.js +1 -9
- package/dist/components/color-picker/color-picker-popover.js +2 -2
- package/dist/components/color-picker/index.d.ts +2 -110
- package/dist/components/color-picker/index.js +1 -8
- package/dist/components/color-slider/index.d.ts +2 -138
- package/dist/components/color-slider/index.js +1 -9
- package/dist/components/color-swatch/index.d.ts +2 -59
- package/dist/components/color-swatch/index.js +1 -4
- package/dist/components/color-swatch-picker/color-swatch-picker-item.js +1 -1
- package/dist/components/color-swatch-picker/index.d.ts +2 -129
- package/dist/components/color-swatch-picker/index.js +1 -9
- package/dist/components/combo-box/combo-box-popover.js +2 -2
- package/dist/components/combo-box/combo-box.types.d.ts +1 -1
- package/dist/components/combo-box/index.d.ts +2 -229
- package/dist/components/combo-box/index.js +1 -10
- package/dist/components/date-field/date-field-root.js +2 -2
- package/dist/components/date-field/index.d.ts +2 -241
- package/dist/components/date-field/index.js +1 -12
- package/dist/components/date-input-group/use-date-segment.js +1 -1
- package/dist/components/date-picker/date-picker-popover.js +2 -2
- package/dist/components/date-picker/date-picker-root.js +6 -3
- package/dist/components/date-picker/index.d.ts +2 -186
- package/dist/components/date-picker/index.js +1 -9
- package/dist/components/date-range-picker/date-range-picker-popover.js +2 -2
- package/dist/components/date-range-picker/date-range-picker-root.js +6 -3
- package/dist/components/date-range-picker/index.d.ts +2 -209
- package/dist/components/date-range-picker/index.js +1 -10
- package/dist/components/description/index.d.ts +2 -45
- package/dist/components/description/index.js +1 -4
- package/dist/components/disclosure/disclosure-root.js +3 -3
- package/dist/components/disclosure/index.d.ts +2 -163
- package/dist/components/disclosure/index.js +1 -11
- package/dist/components/disclosure-group/index.d.ts +2 -57
- package/dist/components/disclosure-group/index.js +1 -4
- package/dist/components/drawer/drawer-close.js +1 -1
- package/dist/components/drawer/drawer-dialog.js +1 -1
- package/dist/components/drawer/drawer-heading.js +2 -2
- package/dist/components/drawer/drawer.types.d.ts +1 -1
- package/dist/components/drawer/index.d.ts +2 -291
- package/dist/components/drawer/index.js +1 -17
- package/dist/components/drop-zone/index.d.ts +2 -80
- package/dist/components/drop-zone/index.js +1 -7
- package/dist/components/dropdown/dropdown-popover.js +2 -2
- package/dist/components/dropdown/index.d.ts +2 -265
- package/dist/components/dropdown/index.js +1 -23
- package/dist/components/empty-state/index.d.ts +2 -45
- package/dist/components/empty-state/index.js +1 -4
- package/dist/components/error-message/index.d.ts +2 -45
- package/dist/components/error-message/index.js +1 -4
- package/dist/components/field-error/field-error-root.js +2 -2
- package/dist/components/field-error/index.d.ts +2 -66
- package/dist/components/field-error/index.js +1 -7
- package/dist/components/fieldset/index.d.ts +2 -110
- package/dist/components/fieldset/index.js +1 -9
- package/dist/components/form/index.d.ts +2 -49
- package/dist/components/form/index.js +1 -4
- package/dist/components/header/index.d.ts +2 -45
- package/dist/components/header/index.js +1 -4
- package/dist/components/i18n-provider/index.d.ts +2 -2
- package/dist/components/i18n-provider/index.js +1 -1
- package/dist/components/icons/icon-overlay-arrow.js +1 -1
- package/dist/components/input/index.d.ts +2 -51
- package/dist/components/input/index.js +1 -4
- package/dist/components/input-group/index.d.ts +2 -141
- package/dist/components/input-group/index.js +1 -10
- package/dist/components/input-otp/index.d.ts +2 -151
- package/dist/components/input-otp/index.js +1 -9
- package/dist/components/kbd/index.d.ts +2 -86
- package/dist/components/kbd/index.js +1 -8
- package/dist/components/label/index.d.ts +2 -51
- package/dist/components/label/index.js +1 -4
- package/dist/components/link/index.d.ts +2 -94
- package/dist/components/link/index.js +1 -7
- package/dist/components/list-box/index.d.ts +2 -191
- package/dist/components/list-box/index.js +1 -14
- package/dist/components/list-box/list-box-drop-indicator.js +2 -2
- package/dist/components/list-box/list-box-root.js +4 -4
- package/dist/components/list-box-item/index.d.ts +2 -74
- package/dist/components/list-box-item/index.js +1 -7
- package/dist/components/list-box-item/list-box-item-root.js +2 -2
- package/dist/components/list-box-section/index.d.ts +2 -47
- package/dist/components/list-box-section/index.js +1 -4
- package/dist/components/menu/index.d.ts +2 -83
- package/dist/components/menu/index.js +1 -4
- package/dist/components/menu-item/index.d.ts +2 -96
- package/dist/components/menu-item/index.js +1 -8
- package/dist/components/menu-item/menu-item-root.js +2 -2
- package/dist/components/menu-section/index.d.ts +2 -63
- package/dist/components/menu-section/index.js +1 -4
- package/dist/components/meter/index.d.ts +2 -127
- package/dist/components/meter/index.js +1 -9
- package/dist/components/meter/meter.types.d.ts +2 -0
- package/dist/components/modal/index.d.ts +2 -296
- package/dist/components/modal/index.js +1 -17
- package/dist/components/modal/modal-close.js +1 -1
- package/dist/components/modal/modal-heading.js +2 -2
- package/dist/components/modal/modal.context.d.ts +2 -2
- package/dist/components/modal/modal.types.d.ts +1 -1
- package/dist/components/number-field/index.d.ts +2 -186
- package/dist/components/number-field/index.js +1 -10
- package/dist/components/number-field/number-field-decrement-button.js +1 -1
- package/dist/components/number-field/number-field-increment-button.js +1 -1
- package/dist/components/overlay/overlay-slots.d.ts +1 -1
- package/dist/components/pagination/index.d.ts +2 -244
- package/dist/components/pagination/index.js +1 -15
- package/dist/components/pagination/pagination-next.js +4 -1
- package/dist/components/pagination/pagination-previous.js +4 -1
- package/dist/components/popover/index.d.ts +2 -172
- package/dist/components/popover/index.js +1 -11
- package/dist/components/popover/popover-arrow.js +2 -2
- package/dist/components/popover/popover-content.js +2 -2
- package/dist/components/popover/popover-heading.js +2 -2
- package/dist/components/popover/popover.types.d.ts +1 -1
- package/dist/components/progress-bar/index.d.ts +2 -133
- package/dist/components/progress-bar/index.js +1 -9
- package/dist/components/progress-bar/progress-bar.types.d.ts +2 -0
- package/dist/components/progress-circle/index.d.ts +2 -124
- package/dist/components/progress-circle/index.js +1 -9
- package/dist/components/progress-circle/progress-circle.types.d.ts +2 -0
- package/dist/components/radio/index.d.ts +2 -120
- package/dist/components/radio/index.js +1 -9
- package/dist/components/radio-group/index.d.ts +2 -79
- package/dist/components/radio-group/index.js +1 -4
- package/dist/components/range-calendar/index.d.ts +2 -424
- package/dist/components/range-calendar/index.js +1 -27
- package/dist/components/range-calendar/range-calendar-cell.js +4 -2
- package/dist/components/range-calendar/range-calendar-grid-body.js +2 -2
- package/dist/components/range-calendar/range-calendar-grid-header.js +1 -1
- package/dist/components/range-calendar/range-calendar-grid.js +2 -1
- package/dist/components/range-calendar/range-calendar-root.d.ts +3 -3
- package/dist/components/range-calendar/range-calendar-root.js +13 -13
- package/dist/components/range-calendar/range-calendar.context.d.ts +1 -1
- package/dist/components/range-calendar/range-calendar.context.js +1 -1
- package/dist/components/range-calendar/range-calendar.types.d.ts +3 -1
- package/dist/components/router-provider/index.d.ts +2 -2
- package/dist/components/router-provider/index.js +1 -1
- package/dist/components/scroll-shadow/index.d.ts +2 -69
- package/dist/components/scroll-shadow/index.js +1 -4
- package/dist/components/search-field/index.d.ts +2 -195
- package/dist/components/search-field/index.js +1 -10
- package/dist/components/search-field/search-field-clear-button.js +5 -5
- package/dist/components/segmented-control/index.d.ts +2 -126
- package/dist/components/segmented-control/index.js +1 -9
- package/dist/components/select/index.d.ts +2 -202
- package/dist/components/select/index.js +1 -10
- package/dist/components/select/select-popover.js +2 -2
- package/dist/components/select/select-value.js +1 -1
- package/dist/components/separator/index.d.ts +2 -41
- package/dist/components/separator/index.js +1 -4
- package/dist/components/sidebar/index.d.ts +2 -520
- package/dist/components/sidebar/index.js +1 -25
- package/dist/components/sidebar/sidebar-content.js +2 -2
- package/dist/components/sidebar/sidebar-item-tooltip.js +2 -2
- package/dist/components/sidebar/sidebar-panel.js +1 -0
- package/dist/components/sidebar/sidebar-rail.js +1 -0
- package/dist/components/sidebar/sidebar-root.js +23 -5
- package/dist/components/sidebar/sidebar.state.d.ts +3 -0
- package/dist/components/sidebar/sidebar.state.js +5 -0
- package/dist/components/sidebar/sidebar.types.d.ts +2 -2
- package/dist/components/skeleton/index.d.ts +2 -47
- package/dist/components/skeleton/index.js +1 -4
- package/dist/components/slider/index.d.ts +2 -180
- package/dist/components/slider/index.js +1 -11
- package/dist/components/spinner/index.d.ts +2 -41
- package/dist/components/spinner/index.js +1 -4
- package/dist/components/splitter/index.d.ts +2 -134
- package/dist/components/splitter/index.js +1 -8
- package/dist/components/surface/index.d.ts +2 -47
- package/dist/components/surface/index.js +1 -4
- package/dist/components/switch/index.d.ts +2 -165
- package/dist/components/switch/index.js +1 -10
- package/dist/components/switch-group/index.d.ts +2 -47
- package/dist/components/switch-group/index.js +1 -4
- package/dist/components/table/index.d.ts +2 -442
- package/dist/components/table/index.js +1 -23
- package/dist/components/table/table-body.js +9 -9
- package/dist/components/table/table-cell.js +3 -3
- package/dist/components/table/table-column.js +4 -4
- package/dist/components/table/table-content.js +3 -3
- package/dist/components/table/table-drag-handle.js +1 -1
- package/dist/components/table/table-drop-indicator.js +9 -7
- package/dist/components/table/table-header.js +4 -4
- package/dist/components/table/table-load-more.js +5 -5
- package/dist/components/table/table-row.js +4 -4
- package/dist/components/table/table.context.d.ts +2 -2
- package/dist/components/table/table.types.d.ts +3 -3
- package/dist/components/tabs/index.d.ts +2 -189
- package/dist/components/tabs/index.js +1 -12
- package/dist/components/tabs/tabs-list-container.js +2 -2
- package/dist/components/tag/index.d.ts +2 -76
- package/dist/components/tag/index.js +1 -7
- package/dist/components/tag/tag-remove-button.js +2 -2
- package/dist/components/tag-group/index.d.ts +2 -93
- package/dist/components/tag-group/index.js +1 -7
- package/dist/components/textarea/index.d.ts +2 -51
- package/dist/components/textarea/index.js +1 -4
- package/dist/components/textfield/index.d.ts +2 -109
- package/dist/components/textfield/index.js +1 -4
- package/dist/components/time-field/index.d.ts +2 -233
- package/dist/components/time-field/index.js +1 -12
- package/dist/components/toast/index.d.ts +2 -216
- package/dist/components/toast/index.js +1 -15
- package/dist/components/toast/toast-action-button.js +2 -2
- package/dist/components/toast/toast-default-content.js +1 -1
- package/dist/components/toast/toast-queue.d.ts +1 -1
- package/dist/components/toast/toast-queue.js +1 -1
- package/dist/components/toast/toast-root.js +1 -1
- package/dist/components/toast/toast.types.d.ts +3 -3
- package/dist/components/toggle-button/index.d.ts +2 -65
- package/dist/components/toggle-button/index.js +1 -4
- package/dist/components/toggle-button-group/index.d.ts +2 -82
- package/dist/components/toggle-button-group/index.js +1 -7
- package/dist/components/toolbar/index.d.ts +2 -49
- package/dist/components/toolbar/index.js +1 -4
- package/dist/components/tooltip/index.d.ts +2 -136
- package/dist/components/tooltip/index.js +1 -9
- package/dist/components/tooltip/tooltip-arrow.js +2 -2
- package/dist/components/tooltip/tooltip-root.js +1 -1
- package/dist/components/tooltip/tooltip.types.d.ts +1 -1
- package/dist/components/typography/code.js +2 -2
- package/dist/components/typography/heading.js +2 -2
- package/dist/components/typography/index.d.ts +2 -1269
- package/dist/components/typography/index.js +1 -10
- package/dist/components/typography/paragraph.js +2 -2
- package/dist/components/typography/typography-root.js +2 -2
- package/dist/composables/use-calendar-grid.js +2 -1
- package/dist/composables/use-calendar-year-picker.js +12 -3
- package/dist/composables/use-color-field.js +1 -1
- package/dist/composables/use-color-slider.d.ts +1 -1
- package/dist/composables/use-color-slider.js +1 -1
- package/dist/composables/use-press.d.ts +10 -0
- package/dist/composables/use-press.js +27 -2
- package/dist/composables/use-prevent-scroll.d.ts +11 -5
- package/dist/composables/use-prevent-scroll.js +11 -5
- package/dist/composables/use-range-calendar.js +2 -1
- package/dist/composables/use-text-field.js +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +110 -111
- package/dist/ropav.min.css +2 -0
- package/dist/styles-no-preflight.css +3 -0
- package/dist/styles-overrides.css +15 -0
- package/dist/styles.css +1 -16
- package/dist/utils/auto-label.d.ts +24 -0
- package/dist/utils/auto-label.js +48 -0
- package/dist/utils/block.js +11 -1
- package/dist/utils/calendar-systems.d.ts +14 -0
- package/dist/utils/calendar-systems.js +2 -0
- package/dist/utils/calendar.d.ts +14 -5
- package/dist/utils/calendar.js +18 -21
- package/dist/utils/compose.d.ts +4 -6
- package/dist/utils/compose.js +4 -6
- package/dist/utils/dnd-list-drop-target-delegate.d.ts +19 -1
- package/dist/utils/dnd-list-drop-target-delegate.js +37 -6
- package/dist/utils/index.d.ts +1 -0
- package/dist/utils/virtualizer-list-layout.d.ts +8 -0
- package/dist/utils/virtualizer-list-layout.js +12 -2
- package/dist/utils/virtualizer-table-layout.d.ts +1 -0
- package/dist/utils/virtualizer-table-layout.js +3 -0
- package/dist/version.js +1 -1
- package/package.json +11 -5
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { useLocale } from "../../composables/use-locale.js";
|
|
2
|
-
import { getDayViewGridRows } from "../../utils/calendar.js";
|
|
3
2
|
import { useCalendarContext, useCalendarGridContext, useCalendarStateContext } from "./calendar.context.js";
|
|
3
|
+
import { getDayViewGridRows } from "../../utils/calendar.js";
|
|
4
4
|
import { computed, createFor, createIf, createSlot, defineVaporComponent, renderEffect, setClass, setInsertionState, template } from "vue";
|
|
5
5
|
//#region src/components/calendar/calendar-grid-body.vue?vue&type=script&setup=true&vapor=true&lang.ts
|
|
6
6
|
var t0 = template("<td>");
|
|
@@ -44,7 +44,7 @@ var calendar_grid_body_vue_vue_type_script_setup_true_vapor_true_lang_default =
|
|
|
44
44
|
}, () => {
|
|
45
45
|
return t0();
|
|
46
46
|
}, 266);
|
|
47
|
-
}, (date, index) => index,
|
|
47
|
+
}, (date, index) => index, 81);
|
|
48
48
|
return n10;
|
|
49
49
|
}, (row, week) => week, 9);
|
|
50
50
|
return n11;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { useLocale } from "../../composables/use-locale.js";
|
|
2
|
-
import { getDayViewWeekDayLabels } from "../../utils/calendar.js";
|
|
3
2
|
import { useCalendarContext, useCalendarGridContext } from "./calendar.context.js";
|
|
3
|
+
import { getDayViewWeekDayLabels } from "../../utils/calendar.js";
|
|
4
4
|
import { child, computed, createFor, createSlot, defineVaporComponent, renderEffect, setDynamicProps, setInsertionState, template, unref } from "vue";
|
|
5
5
|
//#region src/components/calendar/calendar-grid-header.vue?vue&type=script&setup=true&vapor=true&lang.ts
|
|
6
6
|
var t0 = template("<thead><tr>", 1);
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { provideCalendarContext, provideCalendarGridContext, useCalendarContext, useCalendarStateContext } from "./calendar.context.js";
|
|
2
|
+
import { DEFAULT_WEEKDAY_STYLE } from "../../utils/calendar.js";
|
|
2
3
|
import { useCalendarGrid } from "../../composables/use-calendar-grid.js";
|
|
3
4
|
import { computed, createSlot, defineVaporComponent, on, renderEffect, setDynamicProps, setInsertionState, template, unref } from "vue";
|
|
4
5
|
import { endOfMonth } from "@internationalized/date";
|
|
@@ -8,7 +9,7 @@ var calendar_grid_vue_vue_type_script_setup_true_vapor_true_lang_default = /*@__
|
|
|
8
9
|
__name: "calendar-grid",
|
|
9
10
|
props: {
|
|
10
11
|
class: {},
|
|
11
|
-
weekdayStyle: { default:
|
|
12
|
+
weekdayStyle: { default: DEFAULT_WEEKDAY_STYLE },
|
|
12
13
|
offset: {}
|
|
13
14
|
},
|
|
14
15
|
setup(__props) {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { CalendarValue } from "../../composables/use-calendar-state.js";
|
|
2
2
|
import type { CalendarRootProps, CalendarRootSlotProps } from "./calendar.types.js";
|
|
3
|
-
import { CalendarDate } from "@internationalized/date";
|
|
3
|
+
import type { CalendarDate } from "@internationalized/date";
|
|
4
4
|
declare const __VLS_export: (__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>['props'], __VLS_ctx?: __VLS_PrettifyLocal<Pick<NonNullable<Awaited<typeof __VLS_setup>>, 'attrs' | 'emit' | 'slots'>>, __VLS_exposed?: NonNullable<Awaited<typeof __VLS_setup>>['expose'], __VLS_setup?: Promise<{
|
|
5
5
|
props: import('vue').PublicProps & __VLS_PrettifyLocal<CalendarRootProps & {
|
|
6
6
|
"onUpdate:focusedValue"?: ((value: CalendarDate) => any) | undefined;
|
|
@@ -2,14 +2,14 @@ import { dataAttr } from "../../utils/assertion.js";
|
|
|
2
2
|
import { useControllableState } from "../../composables/use-controllable-state.js";
|
|
3
3
|
import { useLocale } from "../../composables/use-locale.js";
|
|
4
4
|
import { visuallyHiddenStyle } from "../../utils/visually-hidden.js";
|
|
5
|
-
import { provideYearPickerContext } from "../calendar-year-picker/calendar-year-picker.context.js";
|
|
6
|
-
import { getGregorianYearOffset } from "../../utils/calendar.js";
|
|
7
5
|
import { provideCalendarContext, provideCalendarStateContext, useCalendarOwnerContext } from "./calendar.context.js";
|
|
8
6
|
import { useCalendar } from "../../composables/use-calendar.js";
|
|
7
|
+
import { getDefaultYearBounds } from "../../utils/calendar.js";
|
|
9
8
|
import { useCalendarState } from "../../composables/use-calendar-state.js";
|
|
9
|
+
import { provideYearPickerContext } from "../calendar-year-picker/calendar-year-picker.context.js";
|
|
10
10
|
import { child, computed, createSlot, defineVaporComponent, next, on, renderEffect, setAttr, setDynamicProps, setInsertionState, setProp, setStaticTemplateRef, setStyle, setText, shallowRef, template, toDisplayString, txt, unref } from "vue";
|
|
11
11
|
import { calendarVariants } from "@ropav/styles";
|
|
12
|
-
import {
|
|
12
|
+
import { DateFormatter, GregorianCalendar } from "@internationalized/date";
|
|
13
13
|
//#region src/components/calendar/calendar-root.vue?vue&type=script&setup=true&vapor=true&lang.ts
|
|
14
14
|
var t0 = template("<div><div><h2> </div><!><div><button tabindex=-1 type=button>", 1);
|
|
15
15
|
var calendar_root_vue_vue_type_script_setup_true_vapor_true_lang_default = /*@__PURE__*/ defineVaporComponent({
|
|
@@ -57,7 +57,8 @@ var calendar_root_vue_vue_type_script_setup_true_vapor_true_lang_default = /*@__
|
|
|
57
57
|
defaultYearPickerOpen: {
|
|
58
58
|
type: Boolean,
|
|
59
59
|
default: false
|
|
60
|
-
}
|
|
60
|
+
},
|
|
61
|
+
createCalendar: {}
|
|
61
62
|
},
|
|
62
63
|
emits: [
|
|
63
64
|
"update:value",
|
|
@@ -79,17 +80,16 @@ var calendar_root_vue_vue_type_script_setup_true_vapor_true_lang_default = /*@__
|
|
|
79
80
|
const owner = useCalendarOwnerContext();
|
|
80
81
|
const owned = computed(() => owner?.props.value ?? {});
|
|
81
82
|
const isDateUnavailable = Boolean(props.isDateUnavailable ?? owned.value.isDateUnavailable) ? (date) => Boolean((props.isDateUnavailable ?? owned.value.isDateUnavailable)?.(date)) : void 0;
|
|
83
|
+
const createCalendar = (identifier) => props.createCalendar?.(identifier) ?? new GregorianCalendar();
|
|
84
|
+
const calendarSystem = computed(() => createCalendar(new DateFormatter(locale.value.locale).resolvedOptions().calendar));
|
|
82
85
|
/**
|
|
83
86
|
* Default bounds spanning 1900 to 2099, expressed in the locale's own calendar system.
|
|
84
87
|
*
|
|
85
|
-
* Without them the year picker would have nothing to size itself against.
|
|
86
|
-
* "1900" the same stretch of real time in a Buddhist or Hebrew calendar rather than a year nobody
|
|
87
|
-
* recognises.
|
|
88
|
+
* Without them the year picker would have nothing to size itself against.
|
|
88
89
|
*/
|
|
89
|
-
const
|
|
90
|
-
const
|
|
91
|
-
const
|
|
92
|
-
const maxValue = computed(() => props.maxValue ?? owned.value.maxValue ?? new CalendarDate(calendarSystem.value, 2099 + yearOffset.value, 12, 31));
|
|
90
|
+
const defaultBounds = computed(() => getDefaultYearBounds(calendarSystem.value));
|
|
91
|
+
const minValue = computed(() => props.minValue ?? owned.value.minValue ?? defaultBounds.value.minValue);
|
|
92
|
+
const maxValue = computed(() => props.maxValue ?? owned.value.maxValue ?? defaultBounds.value.maxValue);
|
|
93
93
|
const state = useCalendarState({
|
|
94
94
|
autoFocus: () => props.autoFocus ?? owned.value.autoFocus,
|
|
95
95
|
createCalendar,
|
|
@@ -146,8 +146,8 @@ var calendar_root_vue_vue_type_script_setup_true_vapor_true_lang_default = /*@__
|
|
|
146
146
|
* lays its single row out differently from a month grid, and a day view differently again.
|
|
147
147
|
*/
|
|
148
148
|
const styles = computed(() => slots.value.base({ class: [
|
|
149
|
-
props.visibleDuration?.weeks != null && "calendar--week-view",
|
|
150
|
-
props.visibleDuration?.days != null && "calendar--day-view",
|
|
149
|
+
props.visibleDuration?.weeks != null && "rp-calendar--week-view",
|
|
150
|
+
props.visibleDuration?.days != null && "rp-calendar--day-view",
|
|
151
151
|
props.class
|
|
152
152
|
].filter(Boolean).join(" ") }));
|
|
153
153
|
const slotProps = computed(() => ({
|
|
@@ -21,7 +21,7 @@ var [useCalendarStateContext, provideCalendarStateContext] = createContext({ nam
|
|
|
21
21
|
* state, and each row of cells has to know which month it belongs to.
|
|
22
22
|
*/
|
|
23
23
|
var [useCalendarGridContext, provideCalendarGridContext] = createContext({
|
|
24
|
-
errorMessage: "Calendar grid parts must be used inside <
|
|
24
|
+
errorMessage: "Calendar grid parts must be used inside <CalendarGrid>.",
|
|
25
25
|
name: "CalendarGridContext"
|
|
26
26
|
});
|
|
27
27
|
/**
|
|
@@ -2,7 +2,7 @@ import type { AnyCalendarState } from "../../composables/use-calendar.js";
|
|
|
2
2
|
import type { CalendarHeadingFormatOptions } from "../../composables/use-calendar-heading.js";
|
|
3
3
|
import type { CalendarSelectionMode, CalendarValue, PageBehavior, SelectionAlignment } from "../../composables/use-calendar-state.js";
|
|
4
4
|
import type { DayOfWeek, WeekdayStyle } from "../../utils/calendar.js";
|
|
5
|
-
import type { CalendarDate, DateDuration, DateValue } from "@internationalized/date";
|
|
5
|
+
import type { Calendar, CalendarDate, CalendarIdentifier, DateDuration, DateValue } from "@internationalized/date";
|
|
6
6
|
export interface CalendarRootProps {
|
|
7
7
|
class?: string;
|
|
8
8
|
id?: string;
|
|
@@ -38,6 +38,8 @@ export interface CalendarRootProps {
|
|
|
38
38
|
/** Whether the year picker is open. */
|
|
39
39
|
isYearPickerOpen?: boolean;
|
|
40
40
|
defaultYearPickerOpen?: boolean;
|
|
41
|
+
/** Builds the calendar system for an identifier. Injectable so a build can ship fewer of them. */
|
|
42
|
+
createCalendar?: (identifier: CalendarIdentifier) => Calendar;
|
|
41
43
|
}
|
|
42
44
|
/** State the calendar hands its slot, matching React's render props. */
|
|
43
45
|
export interface CalendarRootSlotProps {
|
|
@@ -8,428 +8,8 @@ import CalendarHeader from "./calendar-header.js";
|
|
|
8
8
|
import CalendarHeading from "./calendar-heading.js";
|
|
9
9
|
import CalendarNavButton from "./calendar-nav-button.js";
|
|
10
10
|
import CalendarRoot from "./calendar-root.js";
|
|
11
|
-
export
|
|
12
|
-
|
|
13
|
-
slots: {
|
|
14
|
-
default?: (props: import("./calendar.types.js").CalendarRootSlotProps) => unknown;
|
|
15
|
-
};
|
|
16
|
-
emit: ((evt: "update:focusedValue", value: import("@internationalized/date").CalendarDate) => void) & ((evt: "update:value", value: import("../../index.js").CalendarValue) => void) & ((evt: "update:yearPickerOpen", isOpen: boolean) => void);
|
|
17
|
-
}, __VLS_exposed?: NonNullable<Awaited<typeof __VLS_setup>>['expose'], __VLS_setup?: Promise<{
|
|
18
|
-
props: import('vue').PublicProps & {
|
|
19
|
-
class?: string;
|
|
20
|
-
id?: string;
|
|
21
|
-
ariaLabel?: string;
|
|
22
|
-
ariaLabelledby?: string;
|
|
23
|
-
ariaDescribedby?: string;
|
|
24
|
-
ariaDetails?: string;
|
|
25
|
-
value?: import("../../index.js").CalendarValue;
|
|
26
|
-
defaultValue?: import("../../index.js").CalendarValue;
|
|
27
|
-
focusedValue?: import("@internationalized/date").DateValue | null;
|
|
28
|
-
defaultFocusedValue?: import("@internationalized/date").DateValue | null;
|
|
29
|
-
minValue?: import("@internationalized/date").DateValue | null;
|
|
30
|
-
maxValue?: import("@internationalized/date").DateValue | null;
|
|
31
|
-
selectionMode?: import("../../index.js").CalendarSelectionMode;
|
|
32
|
-
isDateUnavailable?: (date: import("@internationalized/date").DateValue) => boolean;
|
|
33
|
-
isDisabled?: boolean;
|
|
34
|
-
isReadOnly?: boolean;
|
|
35
|
-
isInvalid?: boolean;
|
|
36
|
-
autoFocus?: boolean;
|
|
37
|
-
visibleDuration?: import("@internationalized/date").DateDuration;
|
|
38
|
-
pageBehavior?: import("../../index.js").PageBehavior;
|
|
39
|
-
selectionAlignment?: import("../../index.js").SelectionAlignment;
|
|
40
|
-
firstDayOfWeek?: import("../../index.js").DayOfWeek;
|
|
41
|
-
weeksInMonth?: number;
|
|
42
|
-
isYearPickerOpen?: boolean;
|
|
43
|
-
defaultYearPickerOpen?: boolean;
|
|
44
|
-
"onUpdate:focusedValue"?: ((value: import("@internationalized/date").CalendarDate) => any) | undefined;
|
|
45
|
-
"onUpdate:value"?: ((value: import("../../index.js").CalendarValue) => any) | undefined;
|
|
46
|
-
"onUpdate:yearPickerOpen"?: ((isOpen: boolean) => any) | undefined;
|
|
47
|
-
} & (typeof globalThis extends {
|
|
48
|
-
__VLS_PROPS_FALLBACK: infer P;
|
|
49
|
-
} ? P : {});
|
|
50
|
-
expose: (exposed: {}) => void;
|
|
51
|
-
attrs: any;
|
|
52
|
-
slots: {
|
|
53
|
-
default?: (props: import("./calendar.types.js").CalendarRootSlotProps) => unknown;
|
|
54
|
-
};
|
|
55
|
-
emit: ((evt: "update:focusedValue", value: import("@internationalized/date").CalendarDate) => void) & ((evt: "update:value", value: import("../../index.js").CalendarValue) => void) & ((evt: "update:yearPickerOpen", isOpen: boolean) => void);
|
|
56
|
-
}>) => import('vue').VNode & {
|
|
57
|
-
__ctx?: NonNullable<Awaited<typeof __VLS_setup>>;
|
|
58
|
-
}) & {
|
|
59
|
-
Cell: (__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>['props'], __VLS_ctx?: {
|
|
60
|
-
attrs: any;
|
|
61
|
-
slots: {
|
|
62
|
-
default?: (props: import("./calendar.types.js").CalendarCellSlotProps) => unknown;
|
|
63
|
-
};
|
|
64
|
-
emit: {};
|
|
65
|
-
}, __VLS_exposed?: NonNullable<Awaited<typeof __VLS_setup>>['expose'], __VLS_setup?: Promise<{
|
|
66
|
-
props: import('vue').PublicProps & {
|
|
67
|
-
class?: string;
|
|
68
|
-
date: import("@internationalized/date").CalendarDate;
|
|
69
|
-
} & (typeof globalThis extends {
|
|
70
|
-
__VLS_PROPS_FALLBACK: infer P;
|
|
71
|
-
} ? P : {});
|
|
72
|
-
expose: (exposed: {}) => void;
|
|
73
|
-
attrs: any;
|
|
74
|
-
slots: {
|
|
75
|
-
default?: (props: import("./calendar.types.js").CalendarCellSlotProps) => unknown;
|
|
76
|
-
};
|
|
77
|
-
emit: {};
|
|
78
|
-
}>) => import('vue').VNode & {
|
|
79
|
-
__ctx?: NonNullable<Awaited<typeof __VLS_setup>>;
|
|
80
|
-
};
|
|
81
|
-
CellIndicator: (__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>['props'], __VLS_ctx?: {
|
|
82
|
-
attrs: any;
|
|
83
|
-
slots: {
|
|
84
|
-
default?: () => unknown;
|
|
85
|
-
};
|
|
86
|
-
emit: {};
|
|
87
|
-
}, __VLS_exposed?: NonNullable<Awaited<typeof __VLS_setup>>['expose'], __VLS_setup?: Promise<{
|
|
88
|
-
props: import('vue').PublicProps & {
|
|
89
|
-
class?: string;
|
|
90
|
-
} & (typeof globalThis extends {
|
|
91
|
-
__VLS_PROPS_FALLBACK: infer P;
|
|
92
|
-
} ? P : {});
|
|
93
|
-
expose: (exposed: {}) => void;
|
|
94
|
-
attrs: any;
|
|
95
|
-
slots: {
|
|
96
|
-
default?: () => unknown;
|
|
97
|
-
};
|
|
98
|
-
emit: {};
|
|
99
|
-
}>) => import('vue').VNode & {
|
|
100
|
-
__ctx?: NonNullable<Awaited<typeof __VLS_setup>>;
|
|
101
|
-
};
|
|
102
|
-
Grid: (__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>['props'], __VLS_ctx?: {
|
|
103
|
-
attrs: any;
|
|
104
|
-
slots: {
|
|
105
|
-
default?: () => unknown;
|
|
106
|
-
};
|
|
107
|
-
emit: {};
|
|
108
|
-
}, __VLS_exposed?: NonNullable<Awaited<typeof __VLS_setup>>['expose'], __VLS_setup?: Promise<{
|
|
109
|
-
props: import('vue').PublicProps & {
|
|
110
|
-
class?: string;
|
|
111
|
-
weekdayStyle?: import("../../index.js").WeekdayStyle;
|
|
112
|
-
offset?: import("@internationalized/date").DateDuration;
|
|
113
|
-
} & (typeof globalThis extends {
|
|
114
|
-
__VLS_PROPS_FALLBACK: infer P;
|
|
115
|
-
} ? P : {});
|
|
116
|
-
expose: (exposed: {}) => void;
|
|
117
|
-
attrs: any;
|
|
118
|
-
slots: {
|
|
119
|
-
default?: () => unknown;
|
|
120
|
-
};
|
|
121
|
-
emit: {};
|
|
122
|
-
}>) => import('vue').VNode & {
|
|
123
|
-
__ctx?: NonNullable<Awaited<typeof __VLS_setup>>;
|
|
124
|
-
};
|
|
125
|
-
GridBody: (__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>['props'], __VLS_ctx?: {
|
|
126
|
-
attrs: any;
|
|
127
|
-
slots: {
|
|
128
|
-
default?: (props: import("./calendar.types.js").CalendarGridBodySlotProps) => unknown;
|
|
129
|
-
};
|
|
130
|
-
emit: {};
|
|
131
|
-
}, __VLS_exposed?: NonNullable<Awaited<typeof __VLS_setup>>['expose'], __VLS_setup?: Promise<{
|
|
132
|
-
props: import('vue').PublicProps & {
|
|
133
|
-
class?: string;
|
|
134
|
-
} & (typeof globalThis extends {
|
|
135
|
-
__VLS_PROPS_FALLBACK: infer P;
|
|
136
|
-
} ? P : {});
|
|
137
|
-
expose: (exposed: {}) => void;
|
|
138
|
-
attrs: any;
|
|
139
|
-
slots: {
|
|
140
|
-
default?: (props: import("./calendar.types.js").CalendarGridBodySlotProps) => unknown;
|
|
141
|
-
};
|
|
142
|
-
emit: {};
|
|
143
|
-
}>) => import('vue').VNode & {
|
|
144
|
-
__ctx?: NonNullable<Awaited<typeof __VLS_setup>>;
|
|
145
|
-
};
|
|
146
|
-
GridHeader: (__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>['props'], __VLS_ctx?: {
|
|
147
|
-
attrs: any;
|
|
148
|
-
slots: {
|
|
149
|
-
default?: (props: import("./calendar.types.js").CalendarGridHeaderSlotProps) => unknown;
|
|
150
|
-
};
|
|
151
|
-
emit: {};
|
|
152
|
-
}, __VLS_exposed?: NonNullable<Awaited<typeof __VLS_setup>>['expose'], __VLS_setup?: Promise<{
|
|
153
|
-
props: import('vue').PublicProps & {
|
|
154
|
-
class?: string;
|
|
155
|
-
} & (typeof globalThis extends {
|
|
156
|
-
__VLS_PROPS_FALLBACK: infer P;
|
|
157
|
-
} ? P : {});
|
|
158
|
-
expose: (exposed: {}) => void;
|
|
159
|
-
attrs: any;
|
|
160
|
-
slots: {
|
|
161
|
-
default?: (props: import("./calendar.types.js").CalendarGridHeaderSlotProps) => unknown;
|
|
162
|
-
};
|
|
163
|
-
emit: {};
|
|
164
|
-
}>) => import('vue').VNode & {
|
|
165
|
-
__ctx?: NonNullable<Awaited<typeof __VLS_setup>>;
|
|
166
|
-
};
|
|
167
|
-
Header: (__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>['props'], __VLS_ctx?: {
|
|
168
|
-
attrs: any;
|
|
169
|
-
slots: {
|
|
170
|
-
default?: () => unknown;
|
|
171
|
-
};
|
|
172
|
-
emit: {};
|
|
173
|
-
}, __VLS_exposed?: NonNullable<Awaited<typeof __VLS_setup>>['expose'], __VLS_setup?: Promise<{
|
|
174
|
-
props: import('vue').PublicProps & {
|
|
175
|
-
class?: string;
|
|
176
|
-
} & (typeof globalThis extends {
|
|
177
|
-
__VLS_PROPS_FALLBACK: infer P;
|
|
178
|
-
} ? P : {});
|
|
179
|
-
expose: (exposed: {}) => void;
|
|
180
|
-
attrs: any;
|
|
181
|
-
slots: {
|
|
182
|
-
default?: () => unknown;
|
|
183
|
-
};
|
|
184
|
-
emit: {};
|
|
185
|
-
}>) => import('vue').VNode & {
|
|
186
|
-
__ctx?: NonNullable<Awaited<typeof __VLS_setup>>;
|
|
187
|
-
};
|
|
188
|
-
HeaderCell: (__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>['props'], __VLS_ctx?: {
|
|
189
|
-
attrs: any;
|
|
190
|
-
slots: {
|
|
191
|
-
default?: () => unknown;
|
|
192
|
-
};
|
|
193
|
-
emit: {};
|
|
194
|
-
}, __VLS_exposed?: NonNullable<Awaited<typeof __VLS_setup>>['expose'], __VLS_setup?: Promise<{
|
|
195
|
-
props: import('vue').PublicProps & {
|
|
196
|
-
class?: string;
|
|
197
|
-
} & (typeof globalThis extends {
|
|
198
|
-
__VLS_PROPS_FALLBACK: infer P;
|
|
199
|
-
} ? P : {});
|
|
200
|
-
expose: (exposed: {}) => void;
|
|
201
|
-
attrs: any;
|
|
202
|
-
slots: {
|
|
203
|
-
default?: () => unknown;
|
|
204
|
-
};
|
|
205
|
-
emit: {};
|
|
206
|
-
}>) => import('vue').VNode & {
|
|
207
|
-
__ctx?: NonNullable<Awaited<typeof __VLS_setup>>;
|
|
208
|
-
};
|
|
209
|
-
Heading: (__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>['props'], __VLS_ctx?: {
|
|
210
|
-
attrs: any;
|
|
211
|
-
slots: {};
|
|
212
|
-
emit: {};
|
|
213
|
-
}, __VLS_exposed?: NonNullable<Awaited<typeof __VLS_setup>>['expose'], __VLS_setup?: Promise<{
|
|
214
|
-
props: import('vue').PublicProps & {
|
|
215
|
-
class?: string;
|
|
216
|
-
offset?: import("@internationalized/date").DateDuration;
|
|
217
|
-
format?: import("./index.js").CalendarHeadingFormatOptions;
|
|
218
|
-
} & (typeof globalThis extends {
|
|
219
|
-
__VLS_PROPS_FALLBACK: infer P;
|
|
220
|
-
} ? P : {});
|
|
221
|
-
expose: (exposed: {}) => void;
|
|
222
|
-
attrs: any;
|
|
223
|
-
slots: {};
|
|
224
|
-
emit: {};
|
|
225
|
-
}>) => import('vue').VNode & {
|
|
226
|
-
__ctx?: NonNullable<Awaited<typeof __VLS_setup>>;
|
|
227
|
-
};
|
|
228
|
-
NavButton: (__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>['props'], __VLS_ctx?: {
|
|
229
|
-
attrs: any;
|
|
230
|
-
slots: {
|
|
231
|
-
default?: () => unknown;
|
|
232
|
-
};
|
|
233
|
-
emit: {};
|
|
234
|
-
}, __VLS_exposed?: NonNullable<Awaited<typeof __VLS_setup>>['expose'], __VLS_setup?: Promise<{
|
|
235
|
-
props: import('vue').PublicProps & {
|
|
236
|
-
class?: string;
|
|
237
|
-
slot?: "previous" | "next";
|
|
238
|
-
} & (typeof globalThis extends {
|
|
239
|
-
__VLS_PROPS_FALLBACK: infer P;
|
|
240
|
-
} ? P : {});
|
|
241
|
-
expose: (exposed: {}) => void;
|
|
242
|
-
attrs: any;
|
|
243
|
-
slots: {
|
|
244
|
-
default?: () => unknown;
|
|
245
|
-
};
|
|
246
|
-
emit: {};
|
|
247
|
-
}>) => import('vue').VNode & {
|
|
248
|
-
__ctx?: NonNullable<Awaited<typeof __VLS_setup>>;
|
|
249
|
-
};
|
|
250
|
-
Root: (__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>['props'], __VLS_ctx?: {
|
|
251
|
-
attrs: any;
|
|
252
|
-
slots: {
|
|
253
|
-
default?: (props: import("./calendar.types.js").CalendarRootSlotProps) => unknown;
|
|
254
|
-
};
|
|
255
|
-
emit: ((evt: "update:focusedValue", value: import("@internationalized/date").CalendarDate) => void) & ((evt: "update:value", value: import("../../index.js").CalendarValue) => void) & ((evt: "update:yearPickerOpen", isOpen: boolean) => void);
|
|
256
|
-
}, __VLS_exposed?: NonNullable<Awaited<typeof __VLS_setup>>['expose'], __VLS_setup?: Promise<{
|
|
257
|
-
props: import('vue').PublicProps & {
|
|
258
|
-
class?: string;
|
|
259
|
-
id?: string;
|
|
260
|
-
ariaLabel?: string;
|
|
261
|
-
ariaLabelledby?: string;
|
|
262
|
-
ariaDescribedby?: string;
|
|
263
|
-
ariaDetails?: string;
|
|
264
|
-
value?: import("../../index.js").CalendarValue;
|
|
265
|
-
defaultValue?: import("../../index.js").CalendarValue;
|
|
266
|
-
focusedValue?: import("@internationalized/date").DateValue | null;
|
|
267
|
-
defaultFocusedValue?: import("@internationalized/date").DateValue | null;
|
|
268
|
-
minValue?: import("@internationalized/date").DateValue | null;
|
|
269
|
-
maxValue?: import("@internationalized/date").DateValue | null;
|
|
270
|
-
selectionMode?: import("../../index.js").CalendarSelectionMode;
|
|
271
|
-
isDateUnavailable?: (date: import("@internationalized/date").DateValue) => boolean;
|
|
272
|
-
isDisabled?: boolean;
|
|
273
|
-
isReadOnly?: boolean;
|
|
274
|
-
isInvalid?: boolean;
|
|
275
|
-
autoFocus?: boolean;
|
|
276
|
-
visibleDuration?: import("@internationalized/date").DateDuration;
|
|
277
|
-
pageBehavior?: import("../../index.js").PageBehavior;
|
|
278
|
-
selectionAlignment?: import("../../index.js").SelectionAlignment;
|
|
279
|
-
firstDayOfWeek?: import("../../index.js").DayOfWeek;
|
|
280
|
-
weeksInMonth?: number;
|
|
281
|
-
isYearPickerOpen?: boolean;
|
|
282
|
-
defaultYearPickerOpen?: boolean;
|
|
283
|
-
"onUpdate:focusedValue"?: ((value: import("@internationalized/date").CalendarDate) => any) | undefined;
|
|
284
|
-
"onUpdate:value"?: ((value: import("../../index.js").CalendarValue) => any) | undefined;
|
|
285
|
-
"onUpdate:yearPickerOpen"?: ((isOpen: boolean) => any) | undefined;
|
|
286
|
-
} & (typeof globalThis extends {
|
|
287
|
-
__VLS_PROPS_FALLBACK: infer P;
|
|
288
|
-
} ? P : {});
|
|
289
|
-
expose: (exposed: {}) => void;
|
|
290
|
-
attrs: any;
|
|
291
|
-
slots: {
|
|
292
|
-
default?: (props: import("./calendar.types.js").CalendarRootSlotProps) => unknown;
|
|
293
|
-
};
|
|
294
|
-
emit: ((evt: "update:focusedValue", value: import("@internationalized/date").CalendarDate) => void) & ((evt: "update:value", value: import("../../index.js").CalendarValue) => void) & ((evt: "update:yearPickerOpen", isOpen: boolean) => void);
|
|
295
|
-
}>) => import('vue').VNode & {
|
|
296
|
-
__ctx?: NonNullable<Awaited<typeof __VLS_setup>>;
|
|
297
|
-
};
|
|
298
|
-
YearPickerCell: (__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>['props'], __VLS_ctx?: {
|
|
299
|
-
attrs: any;
|
|
300
|
-
slots: {
|
|
301
|
-
default?: (props: import("../index.js").CalendarYearPickerCellSlotProps) => unknown;
|
|
302
|
-
};
|
|
303
|
-
emit: {};
|
|
304
|
-
}, __VLS_exposed?: NonNullable<Awaited<typeof __VLS_setup>>['expose'], __VLS_setup?: Promise<{
|
|
305
|
-
props: import('vue').PublicProps & {
|
|
306
|
-
class?: string;
|
|
307
|
-
year: number;
|
|
308
|
-
excludeFromTabOrder?: boolean;
|
|
309
|
-
} & (typeof globalThis extends {
|
|
310
|
-
__VLS_PROPS_FALLBACK: infer P;
|
|
311
|
-
} ? P : {});
|
|
312
|
-
expose: (exposed: {}) => void;
|
|
313
|
-
attrs: any;
|
|
314
|
-
slots: {
|
|
315
|
-
default?: (props: import("../index.js").CalendarYearPickerCellSlotProps) => unknown;
|
|
316
|
-
};
|
|
317
|
-
emit: {};
|
|
318
|
-
}>) => import('vue').VNode & {
|
|
319
|
-
__ctx?: NonNullable<Awaited<typeof __VLS_setup>>;
|
|
320
|
-
};
|
|
321
|
-
YearPickerGrid: (__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>['props'], __VLS_ctx?: {
|
|
322
|
-
attrs: any;
|
|
323
|
-
slots: {
|
|
324
|
-
default?: () => unknown;
|
|
325
|
-
};
|
|
326
|
-
emit: {};
|
|
327
|
-
}, __VLS_exposed?: NonNullable<Awaited<typeof __VLS_setup>>['expose'], __VLS_setup?: Promise<{
|
|
328
|
-
props: import('vue').PublicProps & {
|
|
329
|
-
class?: string;
|
|
330
|
-
visibleYears?: number;
|
|
331
|
-
format?: import("../index.js").CalendarYearPickerFormatOptions;
|
|
332
|
-
} & (typeof globalThis extends {
|
|
333
|
-
__VLS_PROPS_FALLBACK: infer P;
|
|
334
|
-
} ? P : {});
|
|
335
|
-
expose: (exposed: {}) => void;
|
|
336
|
-
attrs: any;
|
|
337
|
-
slots: {
|
|
338
|
-
default?: () => unknown;
|
|
339
|
-
};
|
|
340
|
-
emit: {};
|
|
341
|
-
}>) => import('vue').VNode & {
|
|
342
|
-
__ctx?: NonNullable<Awaited<typeof __VLS_setup>>;
|
|
343
|
-
};
|
|
344
|
-
YearPickerGridBody: (__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>['props'], __VLS_ctx?: {
|
|
345
|
-
attrs: any;
|
|
346
|
-
slots: {
|
|
347
|
-
default?: (props: import("../index.js").CalendarYearPickerCellSlotProps) => unknown;
|
|
348
|
-
};
|
|
349
|
-
emit: {};
|
|
350
|
-
}, __VLS_exposed?: NonNullable<Awaited<typeof __VLS_setup>>['expose'], __VLS_setup?: Promise<{
|
|
351
|
-
props: import('vue').PublicProps & {
|
|
352
|
-
class?: string;
|
|
353
|
-
} & (typeof globalThis extends {
|
|
354
|
-
__VLS_PROPS_FALLBACK: infer P;
|
|
355
|
-
} ? P : {});
|
|
356
|
-
expose: (exposed: {}) => void;
|
|
357
|
-
attrs: any;
|
|
358
|
-
slots: {
|
|
359
|
-
default?: (props: import("../index.js").CalendarYearPickerCellSlotProps) => unknown;
|
|
360
|
-
};
|
|
361
|
-
emit: {};
|
|
362
|
-
}>) => import('vue').VNode & {
|
|
363
|
-
__ctx?: NonNullable<Awaited<typeof __VLS_setup>>;
|
|
364
|
-
};
|
|
365
|
-
YearPickerTrigger: (__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>['props'], __VLS_ctx?: {
|
|
366
|
-
attrs: any;
|
|
367
|
-
slots: {
|
|
368
|
-
default?: (props: import("../index.js").CalendarYearPickerTriggerSlotProps) => unknown;
|
|
369
|
-
};
|
|
370
|
-
emit: {};
|
|
371
|
-
}, __VLS_exposed?: NonNullable<Awaited<typeof __VLS_setup>>['expose'], __VLS_setup?: Promise<{
|
|
372
|
-
props: import('vue').PublicProps & {
|
|
373
|
-
class?: string;
|
|
374
|
-
} & (typeof globalThis extends {
|
|
375
|
-
__VLS_PROPS_FALLBACK: infer P;
|
|
376
|
-
} ? P : {});
|
|
377
|
-
expose: (exposed: {}) => void;
|
|
378
|
-
attrs: any;
|
|
379
|
-
slots: {
|
|
380
|
-
default?: (props: import("../index.js").CalendarYearPickerTriggerSlotProps) => unknown;
|
|
381
|
-
};
|
|
382
|
-
emit: {};
|
|
383
|
-
}>) => import('vue').VNode & {
|
|
384
|
-
__ctx?: NonNullable<Awaited<typeof __VLS_setup>>;
|
|
385
|
-
};
|
|
386
|
-
YearPickerTriggerHeading: (__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>['props'], __VLS_ctx?: {
|
|
387
|
-
attrs: any;
|
|
388
|
-
slots: {
|
|
389
|
-
default?: (props: import("../index.js").CalendarYearPickerTriggerSlotProps) => unknown;
|
|
390
|
-
};
|
|
391
|
-
emit: {};
|
|
392
|
-
}, __VLS_exposed?: NonNullable<Awaited<typeof __VLS_setup>>['expose'], __VLS_setup?: Promise<{
|
|
393
|
-
props: import('vue').PublicProps & {
|
|
394
|
-
class?: string;
|
|
395
|
-
offset?: import("@internationalized/date").DateDuration;
|
|
396
|
-
format?: import("./index.js").CalendarHeadingFormatOptions;
|
|
397
|
-
} & (typeof globalThis extends {
|
|
398
|
-
__VLS_PROPS_FALLBACK: infer P;
|
|
399
|
-
} ? P : {});
|
|
400
|
-
expose: (exposed: {}) => void;
|
|
401
|
-
attrs: any;
|
|
402
|
-
slots: {
|
|
403
|
-
default?: (props: import("../index.js").CalendarYearPickerTriggerSlotProps) => unknown;
|
|
404
|
-
};
|
|
405
|
-
emit: {};
|
|
406
|
-
}>) => import('vue').VNode & {
|
|
407
|
-
__ctx?: NonNullable<Awaited<typeof __VLS_setup>>;
|
|
408
|
-
};
|
|
409
|
-
YearPickerTriggerIndicator: (__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>['props'], __VLS_ctx?: {
|
|
410
|
-
attrs: any;
|
|
411
|
-
slots: {
|
|
412
|
-
default?: (props: import("../index.js").CalendarYearPickerTriggerSlotProps) => unknown;
|
|
413
|
-
};
|
|
414
|
-
emit: {};
|
|
415
|
-
}, __VLS_exposed?: NonNullable<Awaited<typeof __VLS_setup>>['expose'], __VLS_setup?: Promise<{
|
|
416
|
-
props: import('vue').PublicProps & {
|
|
417
|
-
class?: string;
|
|
418
|
-
} & (typeof globalThis extends {
|
|
419
|
-
__VLS_PROPS_FALLBACK: infer P;
|
|
420
|
-
} ? P : {});
|
|
421
|
-
expose: (exposed: {}) => void;
|
|
422
|
-
attrs: any;
|
|
423
|
-
slots: {
|
|
424
|
-
default?: (props: import("../index.js").CalendarYearPickerTriggerSlotProps) => unknown;
|
|
425
|
-
};
|
|
426
|
-
emit: {};
|
|
427
|
-
}>) => import('vue').VNode & {
|
|
428
|
-
__ctx?: NonNullable<Awaited<typeof __VLS_setup>>;
|
|
429
|
-
};
|
|
430
|
-
};
|
|
431
|
-
export { CalendarCell, CalendarCellIndicator, CalendarGrid, CalendarGridBody, CalendarGridHeader, CalendarHeader, CalendarHeaderCell, CalendarHeading, CalendarNavButton, CalendarRoot, };
|
|
432
|
-
export type { CalendarCellIndicatorProps, CalendarCellProps, CalendarCellSlotProps, CalendarGridBodyProps, CalendarGridBodySlotProps, CalendarGridHeaderProps, CalendarGridHeaderSlotProps, CalendarGridProps, CalendarHeaderCellProps, CalendarHeaderProps, CalendarHeadingProps, CalendarNavButtonProps, CalendarRootProps, CalendarRootProps as CalendarProps, CalendarRootSlotProps, } from "./calendar.types.js";
|
|
11
|
+
export { CalendarCell, CalendarCellIndicator, CalendarGrid, CalendarGridBody, CalendarGridHeader, CalendarHeader, CalendarHeaderCell, CalendarHeading, CalendarNavButton, CalendarRoot as Calendar, };
|
|
12
|
+
export type { CalendarCellIndicatorProps, CalendarCellProps, CalendarCellSlotProps, CalendarGridBodyProps, CalendarGridBodySlotProps, CalendarGridHeaderProps, CalendarGridHeaderSlotProps, CalendarGridProps, CalendarHeaderCellProps, CalendarHeaderProps, CalendarHeadingProps, CalendarNavButtonProps, CalendarRootProps as CalendarProps, CalendarRootSlotProps as CalendarSlotProps, } from "./calendar.types.js";
|
|
433
13
|
export { provideCalendarOwnerContext, provideCalendarStateContext, useCalendarOwnerContext, useCalendarStateContext, } from "./calendar.context.js";
|
|
434
14
|
export type { CalendarOwnedProps, CalendarOwnerContext, CalendarStateContext, } from "./calendar.context.js";
|
|
435
15
|
export type { AnyCalendarState, UseCalendarReturn } from "../../composables/use-calendar.js";
|
|
@@ -1,10 +1,4 @@
|
|
|
1
|
-
import calendar_year_picker_cell_default from "../calendar-year-picker/calendar-year-picker-cell.js";
|
|
2
|
-
import calendar_year_picker_grid_body_default from "../calendar-year-picker/calendar-year-picker-grid-body.js";
|
|
3
1
|
import { provideCalendarOwnerContext, provideCalendarStateContext, useCalendarOwnerContext, useCalendarStateContext } from "./calendar.context.js";
|
|
4
|
-
import calendar_year_picker_grid_default from "../calendar-year-picker/calendar-year-picker-grid.js";
|
|
5
|
-
import calendar_year_picker_trigger_heading_default from "../calendar-year-picker/calendar-year-picker-trigger-heading.js";
|
|
6
|
-
import calendar_year_picker_trigger_indicator_default from "../calendar-year-picker/calendar-year-picker-trigger-indicator.js";
|
|
7
|
-
import calendar_year_picker_trigger_default from "../calendar-year-picker/calendar-year-picker-trigger.js";
|
|
8
2
|
import calendar_cell_indicator_default from "./calendar-cell-indicator.js";
|
|
9
3
|
import calendar_cell_default from "./calendar-cell.js";
|
|
10
4
|
import calendar_grid_body_default from "./calendar-grid-body.js";
|
|
@@ -16,24 +10,4 @@ import calendar_heading_default from "./calendar-heading.js";
|
|
|
16
10
|
import calendar_nav_button_default from "./calendar-nav-button.js";
|
|
17
11
|
import calendar_root_default from "./calendar-root.js";
|
|
18
12
|
import { calendarVariants } from "@ropav/styles";
|
|
19
|
-
|
|
20
|
-
var Calendar = Object.assign(calendar_root_default, {
|
|
21
|
-
Cell: calendar_cell_default,
|
|
22
|
-
CellIndicator: calendar_cell_indicator_default,
|
|
23
|
-
Grid: calendar_grid_default,
|
|
24
|
-
GridBody: calendar_grid_body_default,
|
|
25
|
-
GridHeader: calendar_grid_header_default,
|
|
26
|
-
Header: calendar_header_default,
|
|
27
|
-
HeaderCell: calendar_header_cell_default,
|
|
28
|
-
Heading: calendar_heading_default,
|
|
29
|
-
NavButton: calendar_nav_button_default,
|
|
30
|
-
Root: calendar_root_default,
|
|
31
|
-
YearPickerCell: calendar_year_picker_cell_default,
|
|
32
|
-
YearPickerGrid: calendar_year_picker_grid_default,
|
|
33
|
-
YearPickerGridBody: calendar_year_picker_grid_body_default,
|
|
34
|
-
YearPickerTrigger: calendar_year_picker_trigger_default,
|
|
35
|
-
YearPickerTriggerHeading: calendar_year_picker_trigger_heading_default,
|
|
36
|
-
YearPickerTriggerIndicator: calendar_year_picker_trigger_indicator_default
|
|
37
|
-
});
|
|
38
|
-
//#endregion
|
|
39
|
-
export { Calendar, calendar_cell_default as CalendarCell, calendar_cell_indicator_default as CalendarCellIndicator, calendar_grid_default as CalendarGrid, calendar_grid_body_default as CalendarGridBody, calendar_grid_header_default as CalendarGridHeader, calendar_header_default as CalendarHeader, calendar_header_cell_default as CalendarHeaderCell, calendar_heading_default as CalendarHeading, calendar_nav_button_default as CalendarNavButton, calendar_root_default as CalendarRoot, calendarVariants, provideCalendarOwnerContext, provideCalendarStateContext, useCalendarOwnerContext, useCalendarStateContext };
|
|
13
|
+
export { calendar_root_default as Calendar, calendar_cell_default as CalendarCell, calendar_cell_indicator_default as CalendarCellIndicator, calendar_grid_default as CalendarGrid, calendar_grid_body_default as CalendarGridBody, calendar_grid_header_default as CalendarGridHeader, calendar_header_default as CalendarHeader, calendar_header_cell_default as CalendarHeaderCell, calendar_heading_default as CalendarHeading, calendar_nav_button_default as CalendarNavButton, calendarVariants, provideCalendarOwnerContext, provideCalendarStateContext, useCalendarOwnerContext, useCalendarStateContext };
|