@klinking/colander 3.0.1-alpha.1 → 3.1.0-alpha.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/formats/date.cjs +1 -1
- package/dist/formats/date.d.cts +1 -1
- package/dist/formats/date.d.mts +1 -1
- package/dist/formats/date.mjs +1 -1
- package/dist/formats/object.cjs +1 -1
- package/dist/formats/object.d.cts +1 -1
- package/dist/formats/object.d.mts +1 -1
- package/dist/formats/object.mjs +1 -1
- package/dist/formats/plain-date-time.cjs +1 -1
- package/dist/formats/plain-date-time.d.cts +1 -1
- package/dist/formats/plain-date-time.d.mts +1 -1
- package/dist/formats/plain-date-time.mjs +1 -1
- package/dist/formats/plain-date.cjs +1 -1
- package/dist/formats/plain-date.d.cts +1 -1
- package/dist/formats/plain-date.d.mts +1 -1
- package/dist/formats/plain-date.mjs +1 -1
- package/dist/formats/plain-month-day.cjs +1 -1
- package/dist/formats/plain-month-day.d.cts +1 -1
- package/dist/formats/plain-month-day.d.mts +1 -1
- package/dist/formats/plain-month-day.mjs +1 -1
- package/dist/formats/plain-year-month.cjs +1 -1
- package/dist/formats/plain-year-month.d.cts +1 -1
- package/dist/formats/plain-year-month.d.mts +1 -1
- package/dist/formats/plain-year-month.mjs +1 -1
- package/dist/formats/zoned-date-time.cjs +1 -1
- package/dist/formats/zoned-date-time.d.cts +1 -1
- package/dist/formats/zoned-date-time.d.mts +1 -1
- package/dist/formats/zoned-date-time.mjs +1 -1
- package/dist/{weeks-view-context-CNAq2Hiu.d.cts → index-CJgr0MEp.d.cts} +8 -1
- package/dist/{weeks-view-context-CsP3PBiu.d.mts → index-DB6V_Y6x.d.mts} +8 -1
- package/dist/index.cjs +1 -1
- package/dist/index.d.cts +2 -11
- package/dist/index.d.mts +2 -11
- package/dist/index.mjs +1 -1
- package/dist/{weeks-navigation-CJzhxbgj.cjs → weeks-navigation-BRxzsy0z.cjs} +42 -13
- package/dist/{weeks-navigation-Bg0nZLgh.mjs → weeks-navigation-CXRaVP02.mjs} +42 -13
- package/package.json +1 -1
- package/src/calendar-provider.test.tsx +87 -0
- package/src/calendar-provider.tsx +65 -16
package/dist/formats/date.cjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
|
-
const require_weeks_navigation = require("../weeks-navigation-
|
|
2
|
+
const require_weeks_navigation = require("../weeks-navigation-BRxzsy0z.cjs");
|
|
3
3
|
//#region src/formats/date.ts
|
|
4
4
|
const CalendarProvider = require_weeks_navigation.CalendarProvider;
|
|
5
5
|
const MonthView = require_weeks_navigation.MonthView;
|
package/dist/formats/date.d.cts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { $ as GridBody, $t as
|
|
1
|
+
import { $ as GridBody, $t as TimeStringProps, A as VisibleMonth, At as GridHeaderCellState, B as resolveFirstWeekSpec, Bt as OutsideDays, C as WeekCountState, Ct as DayCellTemplateProps, D as WeeksViewProps$1, Dt as GridBodyProps, E as WeeksView, Et as DragHandleState, F as WeekDescriptor, Ft as MonthData, G as RangePreview, Gt as RangePreviewProps, H as WeekNumberHeader, Ht as PrevMonthButtonProps, I as computeWeeksInWindow, It as MonthYearStringProps, J as MonthYearString, Jt as RangeSelectedState, K as RangeSelected, Kt as RangePreviewState, L as FirstWeekSpec, Lt as MonthYearStringState, M as WeeksViewStableContextValue, Mt as GridHeaderState, N as WeeksViewStateContextValue, Nt as GridProps, O as WeeksViewRoot, Ot as GridBodyState, P as WindowInfo, Pt as GridState, Q as Grid, Qt as TemporalNamespace, R as ScrollToWeekSnap, Rt as NavButtonState, S as WeekCountProps, St as DayButtonState, T as WeeksNavButtonState, Tt as DragHandleOwnProps, U as RangeEndDragHandle, Ut as RangeEndDragHandleProps, V as WeekNumberCell, Vt as PlainDateObject, W as RangeStartDragHandle, Wt as RangeMode, X as PrevMonthButton, Xt as RawValueForFormat$1, Y as NextMonthButton, Yt as RangeStartDragHandleProps, Z as TimeString, Zt as RootState, _ as NextWeeksButton, _t as DateRange$1, a as useMonthViewStable, an as WeekNumberCellState, b as PrevWeeksButtonProps, bt as DateValueObject, c as useCalendarState, cn as WeekStartDay, ct as MonthViewRootProps, d as MonthSeparatorCell, dn as DayCellDataContext, dt as MonthOutOfRangeBehavior, en as TimeStringState, et as WeekTemplate, f as MonthSeparatorMonth, fn as GridContext, ft as OutOfRangeBehavior, g as MonthSeparatorYear, gt as CalendarStateContextValue, h as MonthSeparatorWeekCount, ht as CalendarStableContextValue, i as useViewContext, in as WeekNumberCellProps, it as GridHeaderCell, j as WeeksViewRootProps, jt as GridHeaderProps, k as WeeksViewRootHandle, kt as GridHeaderCellProps, l as computePreviewRange, ln as WeekTemplateProps, lt as MonthViewStableContextValue, m as MonthSeparatorState, mt as CalendarProviderProps$1, n as useWeeksViewState, nn as ValueForFormat$1, nt as DayCellTemplate, o as useMonthViewState, on as WeekNumberHeaderProps, ot as MonthViewProps$1, p as MonthSeparatorRow, pn as WeekDataContext, q as DateString, qt as RangeSelectedProps, r as ViewContextValue, rn as ValueFormat, rt as GridHeader, s as useCalendarStable, sn as WeekNumberHeaderState, st as MonthViewRoot, t as useWeeksViewStable, tn as ValueChangeMeta, tt as DayButton, u as MonthSeparator, un as WeekTemplateState, ut as MonthViewStateContextValue, v as NextWeeksButtonProps, vt as DateStringProps, w as WeeksNavButtonOwnProps, wt as DayCellTemplateState, x as WeekCount, xt as DayButtonProps, y as PrevWeeksButton, yt as DateStringState, z as resolveFirstWeek, zt as NextMonthButtonProps } from "../index-CJgr0MEp.cjs";
|
|
2
2
|
import * as _$react_jsx_runtime0 from "react/jsx-runtime";
|
|
3
3
|
|
|
4
4
|
//#region src/formats/date.d.ts
|
package/dist/formats/date.d.mts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { $ as GridBody, $t as
|
|
1
|
+
import { $ as GridBody, $t as TimeStringProps, A as VisibleMonth, At as GridHeaderCellState, B as resolveFirstWeekSpec, Bt as OutsideDays, C as WeekCountState, Ct as DayCellTemplateProps, D as WeeksViewProps$1, Dt as GridBodyProps, E as WeeksView, Et as DragHandleState, F as WeekDescriptor, Ft as MonthData, G as RangePreview, Gt as RangePreviewProps, H as WeekNumberHeader, Ht as PrevMonthButtonProps, I as computeWeeksInWindow, It as MonthYearStringProps, J as MonthYearString, Jt as RangeSelectedState, K as RangeSelected, Kt as RangePreviewState, L as FirstWeekSpec, Lt as MonthYearStringState, M as WeeksViewStableContextValue, Mt as GridHeaderState, N as WeeksViewStateContextValue, Nt as GridProps, O as WeeksViewRoot, Ot as GridBodyState, P as WindowInfo, Pt as GridState, Q as Grid, Qt as TemporalNamespace, R as ScrollToWeekSnap, Rt as NavButtonState, S as WeekCountProps, St as DayButtonState, T as WeeksNavButtonState, Tt as DragHandleOwnProps, U as RangeEndDragHandle, Ut as RangeEndDragHandleProps, V as WeekNumberCell, Vt as PlainDateObject, W as RangeStartDragHandle, Wt as RangeMode, X as PrevMonthButton, Xt as RawValueForFormat$1, Y as NextMonthButton, Yt as RangeStartDragHandleProps, Z as TimeString, Zt as RootState, _ as NextWeeksButton, _t as DateRange$1, a as useMonthViewStable, an as WeekNumberCellState, b as PrevWeeksButtonProps, bt as DateValueObject, c as useCalendarState, cn as WeekStartDay, ct as MonthViewRootProps, d as MonthSeparatorCell, dn as DayCellDataContext, dt as MonthOutOfRangeBehavior, en as TimeStringState, et as WeekTemplate, f as MonthSeparatorMonth, fn as GridContext, ft as OutOfRangeBehavior, g as MonthSeparatorYear, gt as CalendarStateContextValue, h as MonthSeparatorWeekCount, ht as CalendarStableContextValue, i as useViewContext, in as WeekNumberCellProps, it as GridHeaderCell, j as WeeksViewRootProps, jt as GridHeaderProps, k as WeeksViewRootHandle, kt as GridHeaderCellProps, l as computePreviewRange, ln as WeekTemplateProps, lt as MonthViewStableContextValue, m as MonthSeparatorState, mt as CalendarProviderProps$1, n as useWeeksViewState, nn as ValueForFormat$1, nt as DayCellTemplate, o as useMonthViewState, on as WeekNumberHeaderProps, ot as MonthViewProps$1, p as MonthSeparatorRow, pn as WeekDataContext, q as DateString, qt as RangeSelectedProps, r as ViewContextValue, rn as ValueFormat, rt as GridHeader, s as useCalendarStable, sn as WeekNumberHeaderState, st as MonthViewRoot, t as useWeeksViewStable, tn as ValueChangeMeta, tt as DayButton, u as MonthSeparator, un as WeekTemplateState, ut as MonthViewStateContextValue, v as NextWeeksButtonProps, vt as DateStringProps, w as WeeksNavButtonOwnProps, wt as DayCellTemplateState, x as WeekCount, xt as DayButtonProps, y as PrevWeeksButton, yt as DateStringState, z as resolveFirstWeek, zt as NextMonthButtonProps } from "../index-DB6V_Y6x.mjs";
|
|
2
2
|
import * as _$react_jsx_runtime0 from "react/jsx-runtime";
|
|
3
3
|
|
|
4
4
|
//#region src/formats/date.d.ts
|
package/dist/formats/date.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { A as MonthSeparatorRow, B as useViewContext, C as DayButton, D as MonthSeparator, E as useWeeksViewState, F as DayCellDataContext, G as useCalendarStable, H as useMonthViewState, I as GridContext, K as useCalendarState, L as WeekDataContext, M as MonthSeparatorYear, N as GridHeader, O as MonthSeparatorCell, P as GridHeaderCell, R as MonthView$1, S as WeekTemplate, T as useWeeksViewStable, U as CalendarProvider$1, V as useMonthViewStable, W as computePreviewRange, _ as NextMonthButton, a as WeeksViewRoot, b as Grid, c as computeWeeksInWindow, d as RangeEndDragHandle, f as RangeStartDragHandle, g as MonthYearString, h as DateString, i as WeeksView, j as MonthSeparatorWeekCount, k as MonthSeparatorMonth, l as WeekNumberCell, m as RangeSelected, n as PrevWeeksButton, o as resolveFirstWeek, p as RangePreview, r as WeekCount, s as resolveFirstWeekSpec, t as NextWeeksButton, u as WeekNumberHeader, v as PrevMonthButton, w as DayCellTemplate, x as GridBody, y as TimeString, z as MonthViewRoot } from "../weeks-navigation-
|
|
1
|
+
import { A as MonthSeparatorRow, B as useViewContext, C as DayButton, D as MonthSeparator, E as useWeeksViewState, F as DayCellDataContext, G as useCalendarStable, H as useMonthViewState, I as GridContext, K as useCalendarState, L as WeekDataContext, M as MonthSeparatorYear, N as GridHeader, O as MonthSeparatorCell, P as GridHeaderCell, R as MonthView$1, S as WeekTemplate, T as useWeeksViewStable, U as CalendarProvider$1, V as useMonthViewStable, W as computePreviewRange, _ as NextMonthButton, a as WeeksViewRoot, b as Grid, c as computeWeeksInWindow, d as RangeEndDragHandle, f as RangeStartDragHandle, g as MonthYearString, h as DateString, i as WeeksView, j as MonthSeparatorWeekCount, k as MonthSeparatorMonth, l as WeekNumberCell, m as RangeSelected, n as PrevWeeksButton, o as resolveFirstWeek, p as RangePreview, r as WeekCount, s as resolveFirstWeekSpec, t as NextWeeksButton, u as WeekNumberHeader, v as PrevMonthButton, w as DayCellTemplate, x as GridBody, y as TimeString, z as MonthViewRoot } from "../weeks-navigation-CXRaVP02.mjs";
|
|
2
2
|
//#region src/formats/date.ts
|
|
3
3
|
const CalendarProvider = CalendarProvider$1;
|
|
4
4
|
const MonthView = MonthView$1;
|
package/dist/formats/object.cjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
|
-
const require_weeks_navigation = require("../weeks-navigation-
|
|
2
|
+
const require_weeks_navigation = require("../weeks-navigation-BRxzsy0z.cjs");
|
|
3
3
|
//#region src/formats/object.ts
|
|
4
4
|
const CalendarProvider = require_weeks_navigation.CalendarProvider;
|
|
5
5
|
const MonthView = require_weeks_navigation.MonthView;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { $ as GridBody, $t as
|
|
1
|
+
import { $ as GridBody, $t as TimeStringProps, A as VisibleMonth, At as GridHeaderCellState, B as resolveFirstWeekSpec, Bt as OutsideDays, C as WeekCountState, Ct as DayCellTemplateProps, D as WeeksViewProps$1, Dt as GridBodyProps, E as WeeksView, Et as DragHandleState, F as WeekDescriptor, Ft as MonthData, G as RangePreview, Gt as RangePreviewProps, H as WeekNumberHeader, Ht as PrevMonthButtonProps, I as computeWeeksInWindow, It as MonthYearStringProps, J as MonthYearString, Jt as RangeSelectedState, K as RangeSelected, Kt as RangePreviewState, L as FirstWeekSpec, Lt as MonthYearStringState, M as WeeksViewStableContextValue, Mt as GridHeaderState, N as WeeksViewStateContextValue, Nt as GridProps, O as WeeksViewRoot, Ot as GridBodyState, P as WindowInfo, Pt as GridState, Q as Grid, Qt as TemporalNamespace, R as ScrollToWeekSnap, Rt as NavButtonState, S as WeekCountProps, St as DayButtonState, T as WeeksNavButtonState, Tt as DragHandleOwnProps, U as RangeEndDragHandle, Ut as RangeEndDragHandleProps, V as WeekNumberCell, Vt as PlainDateObject, W as RangeStartDragHandle, Wt as RangeMode, X as PrevMonthButton, Xt as RawValueForFormat$1, Y as NextMonthButton, Yt as RangeStartDragHandleProps, Z as TimeString, Zt as RootState, _ as NextWeeksButton, _t as DateRange$1, a as useMonthViewStable, an as WeekNumberCellState, b as PrevWeeksButtonProps, bt as DateValueObject, c as useCalendarState, cn as WeekStartDay, ct as MonthViewRootProps, d as MonthSeparatorCell, dn as DayCellDataContext, dt as MonthOutOfRangeBehavior, en as TimeStringState, et as WeekTemplate, f as MonthSeparatorMonth, fn as GridContext, ft as OutOfRangeBehavior, g as MonthSeparatorYear, gt as CalendarStateContextValue, h as MonthSeparatorWeekCount, ht as CalendarStableContextValue, i as useViewContext, in as WeekNumberCellProps, it as GridHeaderCell, j as WeeksViewRootProps, jt as GridHeaderProps, k as WeeksViewRootHandle, kt as GridHeaderCellProps, l as computePreviewRange, ln as WeekTemplateProps, lt as MonthViewStableContextValue, m as MonthSeparatorState, mt as CalendarProviderProps$1, n as useWeeksViewState, nn as ValueForFormat$1, nt as DayCellTemplate, o as useMonthViewState, on as WeekNumberHeaderProps, ot as MonthViewProps$1, p as MonthSeparatorRow, pn as WeekDataContext, q as DateString, qt as RangeSelectedProps, r as ViewContextValue, rn as ValueFormat, rt as GridHeader, s as useCalendarStable, sn as WeekNumberHeaderState, st as MonthViewRoot, t as useWeeksViewStable, tn as ValueChangeMeta, tt as DayButton, u as MonthSeparator, un as WeekTemplateState, ut as MonthViewStateContextValue, v as NextWeeksButtonProps, vt as DateStringProps, w as WeeksNavButtonOwnProps, wt as DayCellTemplateState, x as WeekCount, xt as DayButtonProps, y as PrevWeeksButton, yt as DateStringState, z as resolveFirstWeek, zt as NextMonthButtonProps } from "../index-CJgr0MEp.cjs";
|
|
2
2
|
import * as _$react_jsx_runtime0 from "react/jsx-runtime";
|
|
3
3
|
|
|
4
4
|
//#region src/formats/object.d.ts
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { $ as GridBody, $t as
|
|
1
|
+
import { $ as GridBody, $t as TimeStringProps, A as VisibleMonth, At as GridHeaderCellState, B as resolveFirstWeekSpec, Bt as OutsideDays, C as WeekCountState, Ct as DayCellTemplateProps, D as WeeksViewProps$1, Dt as GridBodyProps, E as WeeksView, Et as DragHandleState, F as WeekDescriptor, Ft as MonthData, G as RangePreview, Gt as RangePreviewProps, H as WeekNumberHeader, Ht as PrevMonthButtonProps, I as computeWeeksInWindow, It as MonthYearStringProps, J as MonthYearString, Jt as RangeSelectedState, K as RangeSelected, Kt as RangePreviewState, L as FirstWeekSpec, Lt as MonthYearStringState, M as WeeksViewStableContextValue, Mt as GridHeaderState, N as WeeksViewStateContextValue, Nt as GridProps, O as WeeksViewRoot, Ot as GridBodyState, P as WindowInfo, Pt as GridState, Q as Grid, Qt as TemporalNamespace, R as ScrollToWeekSnap, Rt as NavButtonState, S as WeekCountProps, St as DayButtonState, T as WeeksNavButtonState, Tt as DragHandleOwnProps, U as RangeEndDragHandle, Ut as RangeEndDragHandleProps, V as WeekNumberCell, Vt as PlainDateObject, W as RangeStartDragHandle, Wt as RangeMode, X as PrevMonthButton, Xt as RawValueForFormat$1, Y as NextMonthButton, Yt as RangeStartDragHandleProps, Z as TimeString, Zt as RootState, _ as NextWeeksButton, _t as DateRange$1, a as useMonthViewStable, an as WeekNumberCellState, b as PrevWeeksButtonProps, bt as DateValueObject, c as useCalendarState, cn as WeekStartDay, ct as MonthViewRootProps, d as MonthSeparatorCell, dn as DayCellDataContext, dt as MonthOutOfRangeBehavior, en as TimeStringState, et as WeekTemplate, f as MonthSeparatorMonth, fn as GridContext, ft as OutOfRangeBehavior, g as MonthSeparatorYear, gt as CalendarStateContextValue, h as MonthSeparatorWeekCount, ht as CalendarStableContextValue, i as useViewContext, in as WeekNumberCellProps, it as GridHeaderCell, j as WeeksViewRootProps, jt as GridHeaderProps, k as WeeksViewRootHandle, kt as GridHeaderCellProps, l as computePreviewRange, ln as WeekTemplateProps, lt as MonthViewStableContextValue, m as MonthSeparatorState, mt as CalendarProviderProps$1, n as useWeeksViewState, nn as ValueForFormat$1, nt as DayCellTemplate, o as useMonthViewState, on as WeekNumberHeaderProps, ot as MonthViewProps$1, p as MonthSeparatorRow, pn as WeekDataContext, q as DateString, qt as RangeSelectedProps, r as ViewContextValue, rn as ValueFormat, rt as GridHeader, s as useCalendarStable, sn as WeekNumberHeaderState, st as MonthViewRoot, t as useWeeksViewStable, tn as ValueChangeMeta, tt as DayButton, u as MonthSeparator, un as WeekTemplateState, ut as MonthViewStateContextValue, v as NextWeeksButtonProps, vt as DateStringProps, w as WeeksNavButtonOwnProps, wt as DayCellTemplateState, x as WeekCount, xt as DayButtonProps, y as PrevWeeksButton, yt as DateStringState, z as resolveFirstWeek, zt as NextMonthButtonProps } from "../index-DB6V_Y6x.mjs";
|
|
2
2
|
import * as _$react_jsx_runtime0 from "react/jsx-runtime";
|
|
3
3
|
|
|
4
4
|
//#region src/formats/object.d.ts
|
package/dist/formats/object.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { A as MonthSeparatorRow, B as useViewContext, C as DayButton, D as MonthSeparator, E as useWeeksViewState, F as DayCellDataContext, G as useCalendarStable, H as useMonthViewState, I as GridContext, K as useCalendarState, L as WeekDataContext, M as MonthSeparatorYear, N as GridHeader, O as MonthSeparatorCell, P as GridHeaderCell, R as MonthView$1, S as WeekTemplate, T as useWeeksViewStable, U as CalendarProvider$1, V as useMonthViewStable, W as computePreviewRange, _ as NextMonthButton, a as WeeksViewRoot, b as Grid, c as computeWeeksInWindow, d as RangeEndDragHandle, f as RangeStartDragHandle, g as MonthYearString, h as DateString, i as WeeksView, j as MonthSeparatorWeekCount, k as MonthSeparatorMonth, l as WeekNumberCell, m as RangeSelected, n as PrevWeeksButton, o as resolveFirstWeek, p as RangePreview, r as WeekCount, s as resolveFirstWeekSpec, t as NextWeeksButton, u as WeekNumberHeader, v as PrevMonthButton, w as DayCellTemplate, x as GridBody, y as TimeString, z as MonthViewRoot } from "../weeks-navigation-
|
|
1
|
+
import { A as MonthSeparatorRow, B as useViewContext, C as DayButton, D as MonthSeparator, E as useWeeksViewState, F as DayCellDataContext, G as useCalendarStable, H as useMonthViewState, I as GridContext, K as useCalendarState, L as WeekDataContext, M as MonthSeparatorYear, N as GridHeader, O as MonthSeparatorCell, P as GridHeaderCell, R as MonthView$1, S as WeekTemplate, T as useWeeksViewStable, U as CalendarProvider$1, V as useMonthViewStable, W as computePreviewRange, _ as NextMonthButton, a as WeeksViewRoot, b as Grid, c as computeWeeksInWindow, d as RangeEndDragHandle, f as RangeStartDragHandle, g as MonthYearString, h as DateString, i as WeeksView, j as MonthSeparatorWeekCount, k as MonthSeparatorMonth, l as WeekNumberCell, m as RangeSelected, n as PrevWeeksButton, o as resolveFirstWeek, p as RangePreview, r as WeekCount, s as resolveFirstWeekSpec, t as NextWeeksButton, u as WeekNumberHeader, v as PrevMonthButton, w as DayCellTemplate, x as GridBody, y as TimeString, z as MonthViewRoot } from "../weeks-navigation-CXRaVP02.mjs";
|
|
2
2
|
//#region src/formats/object.ts
|
|
3
3
|
const CalendarProvider = CalendarProvider$1;
|
|
4
4
|
const MonthView = MonthView$1;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
|
-
const require_weeks_navigation = require("../weeks-navigation-
|
|
2
|
+
const require_weeks_navigation = require("../weeks-navigation-BRxzsy0z.cjs");
|
|
3
3
|
//#region src/formats/plain-date-time.ts
|
|
4
4
|
const CalendarProvider = require_weeks_navigation.CalendarProvider;
|
|
5
5
|
const MonthView = require_weeks_navigation.MonthView;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { $ as GridBody, $t as
|
|
1
|
+
import { $ as GridBody, $t as TimeStringProps, A as VisibleMonth, At as GridHeaderCellState, B as resolveFirstWeekSpec, Bt as OutsideDays, C as WeekCountState, Ct as DayCellTemplateProps, D as WeeksViewProps$1, Dt as GridBodyProps, E as WeeksView, Et as DragHandleState, F as WeekDescriptor, Ft as MonthData, G as RangePreview, Gt as RangePreviewProps, H as WeekNumberHeader, Ht as PrevMonthButtonProps, I as computeWeeksInWindow, It as MonthYearStringProps, J as MonthYearString, Jt as RangeSelectedState, K as RangeSelected, Kt as RangePreviewState, L as FirstWeekSpec, Lt as MonthYearStringState, M as WeeksViewStableContextValue, Mt as GridHeaderState, N as WeeksViewStateContextValue, Nt as GridProps, O as WeeksViewRoot, Ot as GridBodyState, P as WindowInfo, Pt as GridState, Q as Grid, Qt as TemporalNamespace, R as ScrollToWeekSnap, Rt as NavButtonState, S as WeekCountProps, St as DayButtonState, T as WeeksNavButtonState, Tt as DragHandleOwnProps, U as RangeEndDragHandle, Ut as RangeEndDragHandleProps, V as WeekNumberCell, Vt as PlainDateObject, W as RangeStartDragHandle, Wt as RangeMode, X as PrevMonthButton, Xt as RawValueForFormat$1, Y as NextMonthButton, Yt as RangeStartDragHandleProps, Z as TimeString, Zt as RootState, _ as NextWeeksButton, _t as DateRange$1, a as useMonthViewStable, an as WeekNumberCellState, b as PrevWeeksButtonProps, bt as DateValueObject, c as useCalendarState, cn as WeekStartDay, ct as MonthViewRootProps, d as MonthSeparatorCell, dn as DayCellDataContext, dt as MonthOutOfRangeBehavior, en as TimeStringState, et as WeekTemplate, f as MonthSeparatorMonth, fn as GridContext, ft as OutOfRangeBehavior, g as MonthSeparatorYear, gt as CalendarStateContextValue, h as MonthSeparatorWeekCount, ht as CalendarStableContextValue, i as useViewContext, in as WeekNumberCellProps, it as GridHeaderCell, j as WeeksViewRootProps, jt as GridHeaderProps, k as WeeksViewRootHandle, kt as GridHeaderCellProps, l as computePreviewRange, ln as WeekTemplateProps, lt as MonthViewStableContextValue, m as MonthSeparatorState, mt as CalendarProviderProps$1, n as useWeeksViewState, nn as ValueForFormat$1, nt as DayCellTemplate, o as useMonthViewState, on as WeekNumberHeaderProps, ot as MonthViewProps$1, p as MonthSeparatorRow, pn as WeekDataContext, q as DateString, qt as RangeSelectedProps, r as ViewContextValue, rn as ValueFormat, rt as GridHeader, s as useCalendarStable, sn as WeekNumberHeaderState, st as MonthViewRoot, t as useWeeksViewStable, tn as ValueChangeMeta, tt as DayButton, u as MonthSeparator, un as WeekTemplateState, ut as MonthViewStateContextValue, v as NextWeeksButtonProps, vt as DateStringProps, w as WeeksNavButtonOwnProps, wt as DayCellTemplateState, x as WeekCount, xt as DayButtonProps, y as PrevWeeksButton, yt as DateStringState, z as resolveFirstWeek, zt as NextMonthButtonProps } from "../index-CJgr0MEp.cjs";
|
|
2
2
|
import * as _$react_jsx_runtime0 from "react/jsx-runtime";
|
|
3
3
|
|
|
4
4
|
//#region src/formats/plain-date-time.d.ts
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { $ as GridBody, $t as
|
|
1
|
+
import { $ as GridBody, $t as TimeStringProps, A as VisibleMonth, At as GridHeaderCellState, B as resolveFirstWeekSpec, Bt as OutsideDays, C as WeekCountState, Ct as DayCellTemplateProps, D as WeeksViewProps$1, Dt as GridBodyProps, E as WeeksView, Et as DragHandleState, F as WeekDescriptor, Ft as MonthData, G as RangePreview, Gt as RangePreviewProps, H as WeekNumberHeader, Ht as PrevMonthButtonProps, I as computeWeeksInWindow, It as MonthYearStringProps, J as MonthYearString, Jt as RangeSelectedState, K as RangeSelected, Kt as RangePreviewState, L as FirstWeekSpec, Lt as MonthYearStringState, M as WeeksViewStableContextValue, Mt as GridHeaderState, N as WeeksViewStateContextValue, Nt as GridProps, O as WeeksViewRoot, Ot as GridBodyState, P as WindowInfo, Pt as GridState, Q as Grid, Qt as TemporalNamespace, R as ScrollToWeekSnap, Rt as NavButtonState, S as WeekCountProps, St as DayButtonState, T as WeeksNavButtonState, Tt as DragHandleOwnProps, U as RangeEndDragHandle, Ut as RangeEndDragHandleProps, V as WeekNumberCell, Vt as PlainDateObject, W as RangeStartDragHandle, Wt as RangeMode, X as PrevMonthButton, Xt as RawValueForFormat$1, Y as NextMonthButton, Yt as RangeStartDragHandleProps, Z as TimeString, Zt as RootState, _ as NextWeeksButton, _t as DateRange$1, a as useMonthViewStable, an as WeekNumberCellState, b as PrevWeeksButtonProps, bt as DateValueObject, c as useCalendarState, cn as WeekStartDay, ct as MonthViewRootProps, d as MonthSeparatorCell, dn as DayCellDataContext, dt as MonthOutOfRangeBehavior, en as TimeStringState, et as WeekTemplate, f as MonthSeparatorMonth, fn as GridContext, ft as OutOfRangeBehavior, g as MonthSeparatorYear, gt as CalendarStateContextValue, h as MonthSeparatorWeekCount, ht as CalendarStableContextValue, i as useViewContext, in as WeekNumberCellProps, it as GridHeaderCell, j as WeeksViewRootProps, jt as GridHeaderProps, k as WeeksViewRootHandle, kt as GridHeaderCellProps, l as computePreviewRange, ln as WeekTemplateProps, lt as MonthViewStableContextValue, m as MonthSeparatorState, mt as CalendarProviderProps$1, n as useWeeksViewState, nn as ValueForFormat$1, nt as DayCellTemplate, o as useMonthViewState, on as WeekNumberHeaderProps, ot as MonthViewProps$1, p as MonthSeparatorRow, pn as WeekDataContext, q as DateString, qt as RangeSelectedProps, r as ViewContextValue, rn as ValueFormat, rt as GridHeader, s as useCalendarStable, sn as WeekNumberHeaderState, st as MonthViewRoot, t as useWeeksViewStable, tn as ValueChangeMeta, tt as DayButton, u as MonthSeparator, un as WeekTemplateState, ut as MonthViewStateContextValue, v as NextWeeksButtonProps, vt as DateStringProps, w as WeeksNavButtonOwnProps, wt as DayCellTemplateState, x as WeekCount, xt as DayButtonProps, y as PrevWeeksButton, yt as DateStringState, z as resolveFirstWeek, zt as NextMonthButtonProps } from "../index-DB6V_Y6x.mjs";
|
|
2
2
|
import * as _$react_jsx_runtime0 from "react/jsx-runtime";
|
|
3
3
|
|
|
4
4
|
//#region src/formats/plain-date-time.d.ts
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { A as MonthSeparatorRow, B as useViewContext, C as DayButton, D as MonthSeparator, E as useWeeksViewState, F as DayCellDataContext, G as useCalendarStable, H as useMonthViewState, I as GridContext, K as useCalendarState, L as WeekDataContext, M as MonthSeparatorYear, N as GridHeader, O as MonthSeparatorCell, P as GridHeaderCell, R as MonthView$1, S as WeekTemplate, T as useWeeksViewStable, U as CalendarProvider$1, V as useMonthViewStable, W as computePreviewRange, _ as NextMonthButton, a as WeeksViewRoot, b as Grid, c as computeWeeksInWindow, d as RangeEndDragHandle, f as RangeStartDragHandle, g as MonthYearString, h as DateString, i as WeeksView, j as MonthSeparatorWeekCount, k as MonthSeparatorMonth, l as WeekNumberCell, m as RangeSelected, n as PrevWeeksButton, o as resolveFirstWeek, p as RangePreview, r as WeekCount, s as resolveFirstWeekSpec, t as NextWeeksButton, u as WeekNumberHeader, v as PrevMonthButton, w as DayCellTemplate, x as GridBody, y as TimeString, z as MonthViewRoot } from "../weeks-navigation-
|
|
1
|
+
import { A as MonthSeparatorRow, B as useViewContext, C as DayButton, D as MonthSeparator, E as useWeeksViewState, F as DayCellDataContext, G as useCalendarStable, H as useMonthViewState, I as GridContext, K as useCalendarState, L as WeekDataContext, M as MonthSeparatorYear, N as GridHeader, O as MonthSeparatorCell, P as GridHeaderCell, R as MonthView$1, S as WeekTemplate, T as useWeeksViewStable, U as CalendarProvider$1, V as useMonthViewStable, W as computePreviewRange, _ as NextMonthButton, a as WeeksViewRoot, b as Grid, c as computeWeeksInWindow, d as RangeEndDragHandle, f as RangeStartDragHandle, g as MonthYearString, h as DateString, i as WeeksView, j as MonthSeparatorWeekCount, k as MonthSeparatorMonth, l as WeekNumberCell, m as RangeSelected, n as PrevWeeksButton, o as resolveFirstWeek, p as RangePreview, r as WeekCount, s as resolveFirstWeekSpec, t as NextWeeksButton, u as WeekNumberHeader, v as PrevMonthButton, w as DayCellTemplate, x as GridBody, y as TimeString, z as MonthViewRoot } from "../weeks-navigation-CXRaVP02.mjs";
|
|
2
2
|
//#region src/formats/plain-date-time.ts
|
|
3
3
|
const CalendarProvider = CalendarProvider$1;
|
|
4
4
|
const MonthView = MonthView$1;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
|
-
const require_weeks_navigation = require("../weeks-navigation-
|
|
2
|
+
const require_weeks_navigation = require("../weeks-navigation-BRxzsy0z.cjs");
|
|
3
3
|
//#region src/formats/plain-date.ts
|
|
4
4
|
const CalendarProvider = require_weeks_navigation.CalendarProvider;
|
|
5
5
|
const MonthView = require_weeks_navigation.MonthView;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { $ as GridBody, $t as
|
|
1
|
+
import { $ as GridBody, $t as TimeStringProps, A as VisibleMonth, At as GridHeaderCellState, B as resolveFirstWeekSpec, Bt as OutsideDays, C as WeekCountState, Ct as DayCellTemplateProps, D as WeeksViewProps$1, Dt as GridBodyProps, E as WeeksView, Et as DragHandleState, F as WeekDescriptor, Ft as MonthData, G as RangePreview, Gt as RangePreviewProps, H as WeekNumberHeader, Ht as PrevMonthButtonProps, I as computeWeeksInWindow, It as MonthYearStringProps, J as MonthYearString, Jt as RangeSelectedState, K as RangeSelected, Kt as RangePreviewState, L as FirstWeekSpec, Lt as MonthYearStringState, M as WeeksViewStableContextValue, Mt as GridHeaderState, N as WeeksViewStateContextValue, Nt as GridProps, O as WeeksViewRoot, Ot as GridBodyState, P as WindowInfo, Pt as GridState, Q as Grid, Qt as TemporalNamespace, R as ScrollToWeekSnap, Rt as NavButtonState, S as WeekCountProps, St as DayButtonState, T as WeeksNavButtonState, Tt as DragHandleOwnProps, U as RangeEndDragHandle, Ut as RangeEndDragHandleProps, V as WeekNumberCell, Vt as PlainDateObject, W as RangeStartDragHandle, Wt as RangeMode, X as PrevMonthButton, Xt as RawValueForFormat$1, Y as NextMonthButton, Yt as RangeStartDragHandleProps, Z as TimeString, Zt as RootState, _ as NextWeeksButton, _t as DateRange$1, a as useMonthViewStable, an as WeekNumberCellState, b as PrevWeeksButtonProps, bt as DateValueObject, c as useCalendarState, cn as WeekStartDay, ct as MonthViewRootProps, d as MonthSeparatorCell, dn as DayCellDataContext, dt as MonthOutOfRangeBehavior, en as TimeStringState, et as WeekTemplate, f as MonthSeparatorMonth, fn as GridContext, ft as OutOfRangeBehavior, g as MonthSeparatorYear, gt as CalendarStateContextValue, h as MonthSeparatorWeekCount, ht as CalendarStableContextValue, i as useViewContext, in as WeekNumberCellProps, it as GridHeaderCell, j as WeeksViewRootProps, jt as GridHeaderProps, k as WeeksViewRootHandle, kt as GridHeaderCellProps, l as computePreviewRange, ln as WeekTemplateProps, lt as MonthViewStableContextValue, m as MonthSeparatorState, mt as CalendarProviderProps$1, n as useWeeksViewState, nn as ValueForFormat$1, nt as DayCellTemplate, o as useMonthViewState, on as WeekNumberHeaderProps, ot as MonthViewProps$1, p as MonthSeparatorRow, pn as WeekDataContext, q as DateString, qt as RangeSelectedProps, r as ViewContextValue, rn as ValueFormat, rt as GridHeader, s as useCalendarStable, sn as WeekNumberHeaderState, st as MonthViewRoot, t as useWeeksViewStable, tn as ValueChangeMeta, tt as DayButton, u as MonthSeparator, un as WeekTemplateState, ut as MonthViewStateContextValue, v as NextWeeksButtonProps, vt as DateStringProps, w as WeeksNavButtonOwnProps, wt as DayCellTemplateState, x as WeekCount, xt as DayButtonProps, y as PrevWeeksButton, yt as DateStringState, z as resolveFirstWeek, zt as NextMonthButtonProps } from "../index-CJgr0MEp.cjs";
|
|
2
2
|
import * as _$react_jsx_runtime0 from "react/jsx-runtime";
|
|
3
3
|
|
|
4
4
|
//#region src/formats/plain-date.d.ts
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { $ as GridBody, $t as
|
|
1
|
+
import { $ as GridBody, $t as TimeStringProps, A as VisibleMonth, At as GridHeaderCellState, B as resolveFirstWeekSpec, Bt as OutsideDays, C as WeekCountState, Ct as DayCellTemplateProps, D as WeeksViewProps$1, Dt as GridBodyProps, E as WeeksView, Et as DragHandleState, F as WeekDescriptor, Ft as MonthData, G as RangePreview, Gt as RangePreviewProps, H as WeekNumberHeader, Ht as PrevMonthButtonProps, I as computeWeeksInWindow, It as MonthYearStringProps, J as MonthYearString, Jt as RangeSelectedState, K as RangeSelected, Kt as RangePreviewState, L as FirstWeekSpec, Lt as MonthYearStringState, M as WeeksViewStableContextValue, Mt as GridHeaderState, N as WeeksViewStateContextValue, Nt as GridProps, O as WeeksViewRoot, Ot as GridBodyState, P as WindowInfo, Pt as GridState, Q as Grid, Qt as TemporalNamespace, R as ScrollToWeekSnap, Rt as NavButtonState, S as WeekCountProps, St as DayButtonState, T as WeeksNavButtonState, Tt as DragHandleOwnProps, U as RangeEndDragHandle, Ut as RangeEndDragHandleProps, V as WeekNumberCell, Vt as PlainDateObject, W as RangeStartDragHandle, Wt as RangeMode, X as PrevMonthButton, Xt as RawValueForFormat$1, Y as NextMonthButton, Yt as RangeStartDragHandleProps, Z as TimeString, Zt as RootState, _ as NextWeeksButton, _t as DateRange$1, a as useMonthViewStable, an as WeekNumberCellState, b as PrevWeeksButtonProps, bt as DateValueObject, c as useCalendarState, cn as WeekStartDay, ct as MonthViewRootProps, d as MonthSeparatorCell, dn as DayCellDataContext, dt as MonthOutOfRangeBehavior, en as TimeStringState, et as WeekTemplate, f as MonthSeparatorMonth, fn as GridContext, ft as OutOfRangeBehavior, g as MonthSeparatorYear, gt as CalendarStateContextValue, h as MonthSeparatorWeekCount, ht as CalendarStableContextValue, i as useViewContext, in as WeekNumberCellProps, it as GridHeaderCell, j as WeeksViewRootProps, jt as GridHeaderProps, k as WeeksViewRootHandle, kt as GridHeaderCellProps, l as computePreviewRange, ln as WeekTemplateProps, lt as MonthViewStableContextValue, m as MonthSeparatorState, mt as CalendarProviderProps$1, n as useWeeksViewState, nn as ValueForFormat$1, nt as DayCellTemplate, o as useMonthViewState, on as WeekNumberHeaderProps, ot as MonthViewProps$1, p as MonthSeparatorRow, pn as WeekDataContext, q as DateString, qt as RangeSelectedProps, r as ViewContextValue, rn as ValueFormat, rt as GridHeader, s as useCalendarStable, sn as WeekNumberHeaderState, st as MonthViewRoot, t as useWeeksViewStable, tn as ValueChangeMeta, tt as DayButton, u as MonthSeparator, un as WeekTemplateState, ut as MonthViewStateContextValue, v as NextWeeksButtonProps, vt as DateStringProps, w as WeeksNavButtonOwnProps, wt as DayCellTemplateState, x as WeekCount, xt as DayButtonProps, y as PrevWeeksButton, yt as DateStringState, z as resolveFirstWeek, zt as NextMonthButtonProps } from "../index-DB6V_Y6x.mjs";
|
|
2
2
|
import * as _$react_jsx_runtime0 from "react/jsx-runtime";
|
|
3
3
|
|
|
4
4
|
//#region src/formats/plain-date.d.ts
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { A as MonthSeparatorRow, B as useViewContext, C as DayButton, D as MonthSeparator, E as useWeeksViewState, F as DayCellDataContext, G as useCalendarStable, H as useMonthViewState, I as GridContext, K as useCalendarState, L as WeekDataContext, M as MonthSeparatorYear, N as GridHeader, O as MonthSeparatorCell, P as GridHeaderCell, R as MonthView$1, S as WeekTemplate, T as useWeeksViewStable, U as CalendarProvider$1, V as useMonthViewStable, W as computePreviewRange, _ as NextMonthButton, a as WeeksViewRoot, b as Grid, c as computeWeeksInWindow, d as RangeEndDragHandle, f as RangeStartDragHandle, g as MonthYearString, h as DateString, i as WeeksView, j as MonthSeparatorWeekCount, k as MonthSeparatorMonth, l as WeekNumberCell, m as RangeSelected, n as PrevWeeksButton, o as resolveFirstWeek, p as RangePreview, r as WeekCount, s as resolveFirstWeekSpec, t as NextWeeksButton, u as WeekNumberHeader, v as PrevMonthButton, w as DayCellTemplate, x as GridBody, y as TimeString, z as MonthViewRoot } from "../weeks-navigation-
|
|
1
|
+
import { A as MonthSeparatorRow, B as useViewContext, C as DayButton, D as MonthSeparator, E as useWeeksViewState, F as DayCellDataContext, G as useCalendarStable, H as useMonthViewState, I as GridContext, K as useCalendarState, L as WeekDataContext, M as MonthSeparatorYear, N as GridHeader, O as MonthSeparatorCell, P as GridHeaderCell, R as MonthView$1, S as WeekTemplate, T as useWeeksViewStable, U as CalendarProvider$1, V as useMonthViewStable, W as computePreviewRange, _ as NextMonthButton, a as WeeksViewRoot, b as Grid, c as computeWeeksInWindow, d as RangeEndDragHandle, f as RangeStartDragHandle, g as MonthYearString, h as DateString, i as WeeksView, j as MonthSeparatorWeekCount, k as MonthSeparatorMonth, l as WeekNumberCell, m as RangeSelected, n as PrevWeeksButton, o as resolveFirstWeek, p as RangePreview, r as WeekCount, s as resolveFirstWeekSpec, t as NextWeeksButton, u as WeekNumberHeader, v as PrevMonthButton, w as DayCellTemplate, x as GridBody, y as TimeString, z as MonthViewRoot } from "../weeks-navigation-CXRaVP02.mjs";
|
|
2
2
|
//#region src/formats/plain-date.ts
|
|
3
3
|
const CalendarProvider = CalendarProvider$1;
|
|
4
4
|
const MonthView = MonthView$1;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
|
-
const require_weeks_navigation = require("../weeks-navigation-
|
|
2
|
+
const require_weeks_navigation = require("../weeks-navigation-BRxzsy0z.cjs");
|
|
3
3
|
//#region src/formats/plain-month-day.ts
|
|
4
4
|
const CalendarProvider = require_weeks_navigation.CalendarProvider;
|
|
5
5
|
const MonthView = require_weeks_navigation.MonthView;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { $ as GridBody, $t as
|
|
1
|
+
import { $ as GridBody, $t as TimeStringProps, A as VisibleMonth, At as GridHeaderCellState, B as resolveFirstWeekSpec, Bt as OutsideDays, C as WeekCountState, Ct as DayCellTemplateProps, D as WeeksViewProps$1, Dt as GridBodyProps, E as WeeksView, Et as DragHandleState, F as WeekDescriptor, Ft as MonthData, G as RangePreview, Gt as RangePreviewProps, H as WeekNumberHeader, Ht as PrevMonthButtonProps, I as computeWeeksInWindow, It as MonthYearStringProps, J as MonthYearString, Jt as RangeSelectedState, K as RangeSelected, Kt as RangePreviewState, L as FirstWeekSpec, Lt as MonthYearStringState, M as WeeksViewStableContextValue, Mt as GridHeaderState, N as WeeksViewStateContextValue, Nt as GridProps, O as WeeksViewRoot, Ot as GridBodyState, P as WindowInfo, Pt as GridState, Q as Grid, Qt as TemporalNamespace, R as ScrollToWeekSnap, Rt as NavButtonState, S as WeekCountProps, St as DayButtonState, T as WeeksNavButtonState, Tt as DragHandleOwnProps, U as RangeEndDragHandle, Ut as RangeEndDragHandleProps, V as WeekNumberCell, Vt as PlainDateObject, W as RangeStartDragHandle, Wt as RangeMode, X as PrevMonthButton, Xt as RawValueForFormat$1, Y as NextMonthButton, Yt as RangeStartDragHandleProps, Z as TimeString, Zt as RootState, _ as NextWeeksButton, _t as DateRange$1, a as useMonthViewStable, an as WeekNumberCellState, b as PrevWeeksButtonProps, bt as DateValueObject, c as useCalendarState, cn as WeekStartDay, ct as MonthViewRootProps, d as MonthSeparatorCell, dn as DayCellDataContext, dt as MonthOutOfRangeBehavior, en as TimeStringState, et as WeekTemplate, f as MonthSeparatorMonth, fn as GridContext, ft as OutOfRangeBehavior, g as MonthSeparatorYear, gt as CalendarStateContextValue, h as MonthSeparatorWeekCount, ht as CalendarStableContextValue, i as useViewContext, in as WeekNumberCellProps, it as GridHeaderCell, j as WeeksViewRootProps, jt as GridHeaderProps, k as WeeksViewRootHandle, kt as GridHeaderCellProps, l as computePreviewRange, ln as WeekTemplateProps, lt as MonthViewStableContextValue, m as MonthSeparatorState, mt as CalendarProviderProps$1, n as useWeeksViewState, nn as ValueForFormat$1, nt as DayCellTemplate, o as useMonthViewState, on as WeekNumberHeaderProps, ot as MonthViewProps$1, p as MonthSeparatorRow, pn as WeekDataContext, q as DateString, qt as RangeSelectedProps, r as ViewContextValue, rn as ValueFormat, rt as GridHeader, s as useCalendarStable, sn as WeekNumberHeaderState, st as MonthViewRoot, t as useWeeksViewStable, tn as ValueChangeMeta, tt as DayButton, u as MonthSeparator, un as WeekTemplateState, ut as MonthViewStateContextValue, v as NextWeeksButtonProps, vt as DateStringProps, w as WeeksNavButtonOwnProps, wt as DayCellTemplateState, x as WeekCount, xt as DayButtonProps, y as PrevWeeksButton, yt as DateStringState, z as resolveFirstWeek, zt as NextMonthButtonProps } from "../index-CJgr0MEp.cjs";
|
|
2
2
|
import * as _$react_jsx_runtime0 from "react/jsx-runtime";
|
|
3
3
|
|
|
4
4
|
//#region src/formats/plain-month-day.d.ts
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { $ as GridBody, $t as
|
|
1
|
+
import { $ as GridBody, $t as TimeStringProps, A as VisibleMonth, At as GridHeaderCellState, B as resolveFirstWeekSpec, Bt as OutsideDays, C as WeekCountState, Ct as DayCellTemplateProps, D as WeeksViewProps$1, Dt as GridBodyProps, E as WeeksView, Et as DragHandleState, F as WeekDescriptor, Ft as MonthData, G as RangePreview, Gt as RangePreviewProps, H as WeekNumberHeader, Ht as PrevMonthButtonProps, I as computeWeeksInWindow, It as MonthYearStringProps, J as MonthYearString, Jt as RangeSelectedState, K as RangeSelected, Kt as RangePreviewState, L as FirstWeekSpec, Lt as MonthYearStringState, M as WeeksViewStableContextValue, Mt as GridHeaderState, N as WeeksViewStateContextValue, Nt as GridProps, O as WeeksViewRoot, Ot as GridBodyState, P as WindowInfo, Pt as GridState, Q as Grid, Qt as TemporalNamespace, R as ScrollToWeekSnap, Rt as NavButtonState, S as WeekCountProps, St as DayButtonState, T as WeeksNavButtonState, Tt as DragHandleOwnProps, U as RangeEndDragHandle, Ut as RangeEndDragHandleProps, V as WeekNumberCell, Vt as PlainDateObject, W as RangeStartDragHandle, Wt as RangeMode, X as PrevMonthButton, Xt as RawValueForFormat$1, Y as NextMonthButton, Yt as RangeStartDragHandleProps, Z as TimeString, Zt as RootState, _ as NextWeeksButton, _t as DateRange$1, a as useMonthViewStable, an as WeekNumberCellState, b as PrevWeeksButtonProps, bt as DateValueObject, c as useCalendarState, cn as WeekStartDay, ct as MonthViewRootProps, d as MonthSeparatorCell, dn as DayCellDataContext, dt as MonthOutOfRangeBehavior, en as TimeStringState, et as WeekTemplate, f as MonthSeparatorMonth, fn as GridContext, ft as OutOfRangeBehavior, g as MonthSeparatorYear, gt as CalendarStateContextValue, h as MonthSeparatorWeekCount, ht as CalendarStableContextValue, i as useViewContext, in as WeekNumberCellProps, it as GridHeaderCell, j as WeeksViewRootProps, jt as GridHeaderProps, k as WeeksViewRootHandle, kt as GridHeaderCellProps, l as computePreviewRange, ln as WeekTemplateProps, lt as MonthViewStableContextValue, m as MonthSeparatorState, mt as CalendarProviderProps$1, n as useWeeksViewState, nn as ValueForFormat$1, nt as DayCellTemplate, o as useMonthViewState, on as WeekNumberHeaderProps, ot as MonthViewProps$1, p as MonthSeparatorRow, pn as WeekDataContext, q as DateString, qt as RangeSelectedProps, r as ViewContextValue, rn as ValueFormat, rt as GridHeader, s as useCalendarStable, sn as WeekNumberHeaderState, st as MonthViewRoot, t as useWeeksViewStable, tn as ValueChangeMeta, tt as DayButton, u as MonthSeparator, un as WeekTemplateState, ut as MonthViewStateContextValue, v as NextWeeksButtonProps, vt as DateStringProps, w as WeeksNavButtonOwnProps, wt as DayCellTemplateState, x as WeekCount, xt as DayButtonProps, y as PrevWeeksButton, yt as DateStringState, z as resolveFirstWeek, zt as NextMonthButtonProps } from "../index-DB6V_Y6x.mjs";
|
|
2
2
|
import * as _$react_jsx_runtime0 from "react/jsx-runtime";
|
|
3
3
|
|
|
4
4
|
//#region src/formats/plain-month-day.d.ts
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { A as MonthSeparatorRow, B as useViewContext, C as DayButton, D as MonthSeparator, E as useWeeksViewState, F as DayCellDataContext, G as useCalendarStable, H as useMonthViewState, I as GridContext, K as useCalendarState, L as WeekDataContext, M as MonthSeparatorYear, N as GridHeader, O as MonthSeparatorCell, P as GridHeaderCell, R as MonthView$1, S as WeekTemplate, T as useWeeksViewStable, U as CalendarProvider$1, V as useMonthViewStable, W as computePreviewRange, _ as NextMonthButton, a as WeeksViewRoot, b as Grid, c as computeWeeksInWindow, d as RangeEndDragHandle, f as RangeStartDragHandle, g as MonthYearString, h as DateString, i as WeeksView, j as MonthSeparatorWeekCount, k as MonthSeparatorMonth, l as WeekNumberCell, m as RangeSelected, n as PrevWeeksButton, o as resolveFirstWeek, p as RangePreview, r as WeekCount, s as resolveFirstWeekSpec, t as NextWeeksButton, u as WeekNumberHeader, v as PrevMonthButton, w as DayCellTemplate, x as GridBody, y as TimeString, z as MonthViewRoot } from "../weeks-navigation-
|
|
1
|
+
import { A as MonthSeparatorRow, B as useViewContext, C as DayButton, D as MonthSeparator, E as useWeeksViewState, F as DayCellDataContext, G as useCalendarStable, H as useMonthViewState, I as GridContext, K as useCalendarState, L as WeekDataContext, M as MonthSeparatorYear, N as GridHeader, O as MonthSeparatorCell, P as GridHeaderCell, R as MonthView$1, S as WeekTemplate, T as useWeeksViewStable, U as CalendarProvider$1, V as useMonthViewStable, W as computePreviewRange, _ as NextMonthButton, a as WeeksViewRoot, b as Grid, c as computeWeeksInWindow, d as RangeEndDragHandle, f as RangeStartDragHandle, g as MonthYearString, h as DateString, i as WeeksView, j as MonthSeparatorWeekCount, k as MonthSeparatorMonth, l as WeekNumberCell, m as RangeSelected, n as PrevWeeksButton, o as resolveFirstWeek, p as RangePreview, r as WeekCount, s as resolveFirstWeekSpec, t as NextWeeksButton, u as WeekNumberHeader, v as PrevMonthButton, w as DayCellTemplate, x as GridBody, y as TimeString, z as MonthViewRoot } from "../weeks-navigation-CXRaVP02.mjs";
|
|
2
2
|
//#region src/formats/plain-month-day.ts
|
|
3
3
|
const CalendarProvider = CalendarProvider$1;
|
|
4
4
|
const MonthView = MonthView$1;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
|
-
const require_weeks_navigation = require("../weeks-navigation-
|
|
2
|
+
const require_weeks_navigation = require("../weeks-navigation-BRxzsy0z.cjs");
|
|
3
3
|
//#region src/formats/plain-year-month.ts
|
|
4
4
|
const CalendarProvider = require_weeks_navigation.CalendarProvider;
|
|
5
5
|
const MonthView = require_weeks_navigation.MonthView;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { $ as GridBody, $t as
|
|
1
|
+
import { $ as GridBody, $t as TimeStringProps, A as VisibleMonth, At as GridHeaderCellState, B as resolveFirstWeekSpec, Bt as OutsideDays, C as WeekCountState, Ct as DayCellTemplateProps, D as WeeksViewProps$1, Dt as GridBodyProps, E as WeeksView, Et as DragHandleState, F as WeekDescriptor, Ft as MonthData, G as RangePreview, Gt as RangePreviewProps, H as WeekNumberHeader, Ht as PrevMonthButtonProps, I as computeWeeksInWindow, It as MonthYearStringProps, J as MonthYearString, Jt as RangeSelectedState, K as RangeSelected, Kt as RangePreviewState, L as FirstWeekSpec, Lt as MonthYearStringState, M as WeeksViewStableContextValue, Mt as GridHeaderState, N as WeeksViewStateContextValue, Nt as GridProps, O as WeeksViewRoot, Ot as GridBodyState, P as WindowInfo, Pt as GridState, Q as Grid, Qt as TemporalNamespace, R as ScrollToWeekSnap, Rt as NavButtonState, S as WeekCountProps, St as DayButtonState, T as WeeksNavButtonState, Tt as DragHandleOwnProps, U as RangeEndDragHandle, Ut as RangeEndDragHandleProps, V as WeekNumberCell, Vt as PlainDateObject, W as RangeStartDragHandle, Wt as RangeMode, X as PrevMonthButton, Xt as RawValueForFormat$1, Y as NextMonthButton, Yt as RangeStartDragHandleProps, Z as TimeString, Zt as RootState, _ as NextWeeksButton, _t as DateRange$1, a as useMonthViewStable, an as WeekNumberCellState, b as PrevWeeksButtonProps, bt as DateValueObject, c as useCalendarState, cn as WeekStartDay, ct as MonthViewRootProps, d as MonthSeparatorCell, dn as DayCellDataContext, dt as MonthOutOfRangeBehavior, en as TimeStringState, et as WeekTemplate, f as MonthSeparatorMonth, fn as GridContext, ft as OutOfRangeBehavior, g as MonthSeparatorYear, gt as CalendarStateContextValue, h as MonthSeparatorWeekCount, ht as CalendarStableContextValue, i as useViewContext, in as WeekNumberCellProps, it as GridHeaderCell, j as WeeksViewRootProps, jt as GridHeaderProps, k as WeeksViewRootHandle, kt as GridHeaderCellProps, l as computePreviewRange, ln as WeekTemplateProps, lt as MonthViewStableContextValue, m as MonthSeparatorState, mt as CalendarProviderProps$1, n as useWeeksViewState, nn as ValueForFormat$1, nt as DayCellTemplate, o as useMonthViewState, on as WeekNumberHeaderProps, ot as MonthViewProps$1, p as MonthSeparatorRow, pn as WeekDataContext, q as DateString, qt as RangeSelectedProps, r as ViewContextValue, rn as ValueFormat, rt as GridHeader, s as useCalendarStable, sn as WeekNumberHeaderState, st as MonthViewRoot, t as useWeeksViewStable, tn as ValueChangeMeta, tt as DayButton, u as MonthSeparator, un as WeekTemplateState, ut as MonthViewStateContextValue, v as NextWeeksButtonProps, vt as DateStringProps, w as WeeksNavButtonOwnProps, wt as DayCellTemplateState, x as WeekCount, xt as DayButtonProps, y as PrevWeeksButton, yt as DateStringState, z as resolveFirstWeek, zt as NextMonthButtonProps } from "../index-CJgr0MEp.cjs";
|
|
2
2
|
import * as _$react_jsx_runtime0 from "react/jsx-runtime";
|
|
3
3
|
|
|
4
4
|
//#region src/formats/plain-year-month.d.ts
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { $ as GridBody, $t as
|
|
1
|
+
import { $ as GridBody, $t as TimeStringProps, A as VisibleMonth, At as GridHeaderCellState, B as resolveFirstWeekSpec, Bt as OutsideDays, C as WeekCountState, Ct as DayCellTemplateProps, D as WeeksViewProps$1, Dt as GridBodyProps, E as WeeksView, Et as DragHandleState, F as WeekDescriptor, Ft as MonthData, G as RangePreview, Gt as RangePreviewProps, H as WeekNumberHeader, Ht as PrevMonthButtonProps, I as computeWeeksInWindow, It as MonthYearStringProps, J as MonthYearString, Jt as RangeSelectedState, K as RangeSelected, Kt as RangePreviewState, L as FirstWeekSpec, Lt as MonthYearStringState, M as WeeksViewStableContextValue, Mt as GridHeaderState, N as WeeksViewStateContextValue, Nt as GridProps, O as WeeksViewRoot, Ot as GridBodyState, P as WindowInfo, Pt as GridState, Q as Grid, Qt as TemporalNamespace, R as ScrollToWeekSnap, Rt as NavButtonState, S as WeekCountProps, St as DayButtonState, T as WeeksNavButtonState, Tt as DragHandleOwnProps, U as RangeEndDragHandle, Ut as RangeEndDragHandleProps, V as WeekNumberCell, Vt as PlainDateObject, W as RangeStartDragHandle, Wt as RangeMode, X as PrevMonthButton, Xt as RawValueForFormat$1, Y as NextMonthButton, Yt as RangeStartDragHandleProps, Z as TimeString, Zt as RootState, _ as NextWeeksButton, _t as DateRange$1, a as useMonthViewStable, an as WeekNumberCellState, b as PrevWeeksButtonProps, bt as DateValueObject, c as useCalendarState, cn as WeekStartDay, ct as MonthViewRootProps, d as MonthSeparatorCell, dn as DayCellDataContext, dt as MonthOutOfRangeBehavior, en as TimeStringState, et as WeekTemplate, f as MonthSeparatorMonth, fn as GridContext, ft as OutOfRangeBehavior, g as MonthSeparatorYear, gt as CalendarStateContextValue, h as MonthSeparatorWeekCount, ht as CalendarStableContextValue, i as useViewContext, in as WeekNumberCellProps, it as GridHeaderCell, j as WeeksViewRootProps, jt as GridHeaderProps, k as WeeksViewRootHandle, kt as GridHeaderCellProps, l as computePreviewRange, ln as WeekTemplateProps, lt as MonthViewStableContextValue, m as MonthSeparatorState, mt as CalendarProviderProps$1, n as useWeeksViewState, nn as ValueForFormat$1, nt as DayCellTemplate, o as useMonthViewState, on as WeekNumberHeaderProps, ot as MonthViewProps$1, p as MonthSeparatorRow, pn as WeekDataContext, q as DateString, qt as RangeSelectedProps, r as ViewContextValue, rn as ValueFormat, rt as GridHeader, s as useCalendarStable, sn as WeekNumberHeaderState, st as MonthViewRoot, t as useWeeksViewStable, tn as ValueChangeMeta, tt as DayButton, u as MonthSeparator, un as WeekTemplateState, ut as MonthViewStateContextValue, v as NextWeeksButtonProps, vt as DateStringProps, w as WeeksNavButtonOwnProps, wt as DayCellTemplateState, x as WeekCount, xt as DayButtonProps, y as PrevWeeksButton, yt as DateStringState, z as resolveFirstWeek, zt as NextMonthButtonProps } from "../index-DB6V_Y6x.mjs";
|
|
2
2
|
import * as _$react_jsx_runtime0 from "react/jsx-runtime";
|
|
3
3
|
|
|
4
4
|
//#region src/formats/plain-year-month.d.ts
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { A as MonthSeparatorRow, B as useViewContext, C as DayButton, D as MonthSeparator, E as useWeeksViewState, F as DayCellDataContext, G as useCalendarStable, H as useMonthViewState, I as GridContext, K as useCalendarState, L as WeekDataContext, M as MonthSeparatorYear, N as GridHeader, O as MonthSeparatorCell, P as GridHeaderCell, R as MonthView$1, S as WeekTemplate, T as useWeeksViewStable, U as CalendarProvider$1, V as useMonthViewStable, W as computePreviewRange, _ as NextMonthButton, a as WeeksViewRoot, b as Grid, c as computeWeeksInWindow, d as RangeEndDragHandle, f as RangeStartDragHandle, g as MonthYearString, h as DateString, i as WeeksView, j as MonthSeparatorWeekCount, k as MonthSeparatorMonth, l as WeekNumberCell, m as RangeSelected, n as PrevWeeksButton, o as resolveFirstWeek, p as RangePreview, r as WeekCount, s as resolveFirstWeekSpec, t as NextWeeksButton, u as WeekNumberHeader, v as PrevMonthButton, w as DayCellTemplate, x as GridBody, y as TimeString, z as MonthViewRoot } from "../weeks-navigation-
|
|
1
|
+
import { A as MonthSeparatorRow, B as useViewContext, C as DayButton, D as MonthSeparator, E as useWeeksViewState, F as DayCellDataContext, G as useCalendarStable, H as useMonthViewState, I as GridContext, K as useCalendarState, L as WeekDataContext, M as MonthSeparatorYear, N as GridHeader, O as MonthSeparatorCell, P as GridHeaderCell, R as MonthView$1, S as WeekTemplate, T as useWeeksViewStable, U as CalendarProvider$1, V as useMonthViewStable, W as computePreviewRange, _ as NextMonthButton, a as WeeksViewRoot, b as Grid, c as computeWeeksInWindow, d as RangeEndDragHandle, f as RangeStartDragHandle, g as MonthYearString, h as DateString, i as WeeksView, j as MonthSeparatorWeekCount, k as MonthSeparatorMonth, l as WeekNumberCell, m as RangeSelected, n as PrevWeeksButton, o as resolveFirstWeek, p as RangePreview, r as WeekCount, s as resolveFirstWeekSpec, t as NextWeeksButton, u as WeekNumberHeader, v as PrevMonthButton, w as DayCellTemplate, x as GridBody, y as TimeString, z as MonthViewRoot } from "../weeks-navigation-CXRaVP02.mjs";
|
|
2
2
|
//#region src/formats/plain-year-month.ts
|
|
3
3
|
const CalendarProvider = CalendarProvider$1;
|
|
4
4
|
const MonthView = MonthView$1;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
|
-
const require_weeks_navigation = require("../weeks-navigation-
|
|
2
|
+
const require_weeks_navigation = require("../weeks-navigation-BRxzsy0z.cjs");
|
|
3
3
|
//#region src/formats/zoned-date-time.ts
|
|
4
4
|
const CalendarProvider = require_weeks_navigation.CalendarProvider;
|
|
5
5
|
const MonthView = require_weeks_navigation.MonthView;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { $ as GridBody, $t as
|
|
1
|
+
import { $ as GridBody, $t as TimeStringProps, A as VisibleMonth, At as GridHeaderCellState, B as resolveFirstWeekSpec, Bt as OutsideDays, C as WeekCountState, Ct as DayCellTemplateProps, D as WeeksViewProps$1, Dt as GridBodyProps, E as WeeksView, Et as DragHandleState, F as WeekDescriptor, Ft as MonthData, G as RangePreview, Gt as RangePreviewProps, H as WeekNumberHeader, Ht as PrevMonthButtonProps, I as computeWeeksInWindow, It as MonthYearStringProps, J as MonthYearString, Jt as RangeSelectedState, K as RangeSelected, Kt as RangePreviewState, L as FirstWeekSpec, Lt as MonthYearStringState, M as WeeksViewStableContextValue, Mt as GridHeaderState, N as WeeksViewStateContextValue, Nt as GridProps, O as WeeksViewRoot, Ot as GridBodyState, P as WindowInfo, Pt as GridState, Q as Grid, Qt as TemporalNamespace, R as ScrollToWeekSnap, Rt as NavButtonState, S as WeekCountProps, St as DayButtonState, T as WeeksNavButtonState, Tt as DragHandleOwnProps, U as RangeEndDragHandle, Ut as RangeEndDragHandleProps, V as WeekNumberCell, Vt as PlainDateObject, W as RangeStartDragHandle, Wt as RangeMode, X as PrevMonthButton, Xt as RawValueForFormat$1, Y as NextMonthButton, Yt as RangeStartDragHandleProps, Z as TimeString, Zt as RootState, _ as NextWeeksButton, _t as DateRange$1, a as useMonthViewStable, an as WeekNumberCellState, b as PrevWeeksButtonProps, bt as DateValueObject, c as useCalendarState, cn as WeekStartDay, ct as MonthViewRootProps, d as MonthSeparatorCell, dn as DayCellDataContext, dt as MonthOutOfRangeBehavior, en as TimeStringState, et as WeekTemplate, f as MonthSeparatorMonth, fn as GridContext, ft as OutOfRangeBehavior, g as MonthSeparatorYear, gt as CalendarStateContextValue, h as MonthSeparatorWeekCount, ht as CalendarStableContextValue, i as useViewContext, in as WeekNumberCellProps, it as GridHeaderCell, j as WeeksViewRootProps, jt as GridHeaderProps, k as WeeksViewRootHandle, kt as GridHeaderCellProps, l as computePreviewRange, ln as WeekTemplateProps, lt as MonthViewStableContextValue, m as MonthSeparatorState, mt as CalendarProviderProps$1, n as useWeeksViewState, nn as ValueForFormat$1, nt as DayCellTemplate, o as useMonthViewState, on as WeekNumberHeaderProps, ot as MonthViewProps$1, p as MonthSeparatorRow, pn as WeekDataContext, q as DateString, qt as RangeSelectedProps, r as ViewContextValue, rn as ValueFormat, rt as GridHeader, s as useCalendarStable, sn as WeekNumberHeaderState, st as MonthViewRoot, t as useWeeksViewStable, tn as ValueChangeMeta, tt as DayButton, u as MonthSeparator, un as WeekTemplateState, ut as MonthViewStateContextValue, v as NextWeeksButtonProps, vt as DateStringProps, w as WeeksNavButtonOwnProps, wt as DayCellTemplateState, x as WeekCount, xt as DayButtonProps, y as PrevWeeksButton, yt as DateStringState, z as resolveFirstWeek, zt as NextMonthButtonProps } from "../index-CJgr0MEp.cjs";
|
|
2
2
|
import * as _$react_jsx_runtime0 from "react/jsx-runtime";
|
|
3
3
|
|
|
4
4
|
//#region src/formats/zoned-date-time.d.ts
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { $ as GridBody, $t as
|
|
1
|
+
import { $ as GridBody, $t as TimeStringProps, A as VisibleMonth, At as GridHeaderCellState, B as resolveFirstWeekSpec, Bt as OutsideDays, C as WeekCountState, Ct as DayCellTemplateProps, D as WeeksViewProps$1, Dt as GridBodyProps, E as WeeksView, Et as DragHandleState, F as WeekDescriptor, Ft as MonthData, G as RangePreview, Gt as RangePreviewProps, H as WeekNumberHeader, Ht as PrevMonthButtonProps, I as computeWeeksInWindow, It as MonthYearStringProps, J as MonthYearString, Jt as RangeSelectedState, K as RangeSelected, Kt as RangePreviewState, L as FirstWeekSpec, Lt as MonthYearStringState, M as WeeksViewStableContextValue, Mt as GridHeaderState, N as WeeksViewStateContextValue, Nt as GridProps, O as WeeksViewRoot, Ot as GridBodyState, P as WindowInfo, Pt as GridState, Q as Grid, Qt as TemporalNamespace, R as ScrollToWeekSnap, Rt as NavButtonState, S as WeekCountProps, St as DayButtonState, T as WeeksNavButtonState, Tt as DragHandleOwnProps, U as RangeEndDragHandle, Ut as RangeEndDragHandleProps, V as WeekNumberCell, Vt as PlainDateObject, W as RangeStartDragHandle, Wt as RangeMode, X as PrevMonthButton, Xt as RawValueForFormat$1, Y as NextMonthButton, Yt as RangeStartDragHandleProps, Z as TimeString, Zt as RootState, _ as NextWeeksButton, _t as DateRange$1, a as useMonthViewStable, an as WeekNumberCellState, b as PrevWeeksButtonProps, bt as DateValueObject, c as useCalendarState, cn as WeekStartDay, ct as MonthViewRootProps, d as MonthSeparatorCell, dn as DayCellDataContext, dt as MonthOutOfRangeBehavior, en as TimeStringState, et as WeekTemplate, f as MonthSeparatorMonth, fn as GridContext, ft as OutOfRangeBehavior, g as MonthSeparatorYear, gt as CalendarStateContextValue, h as MonthSeparatorWeekCount, ht as CalendarStableContextValue, i as useViewContext, in as WeekNumberCellProps, it as GridHeaderCell, j as WeeksViewRootProps, jt as GridHeaderProps, k as WeeksViewRootHandle, kt as GridHeaderCellProps, l as computePreviewRange, ln as WeekTemplateProps, lt as MonthViewStableContextValue, m as MonthSeparatorState, mt as CalendarProviderProps$1, n as useWeeksViewState, nn as ValueForFormat$1, nt as DayCellTemplate, o as useMonthViewState, on as WeekNumberHeaderProps, ot as MonthViewProps$1, p as MonthSeparatorRow, pn as WeekDataContext, q as DateString, qt as RangeSelectedProps, r as ViewContextValue, rn as ValueFormat, rt as GridHeader, s as useCalendarStable, sn as WeekNumberHeaderState, st as MonthViewRoot, t as useWeeksViewStable, tn as ValueChangeMeta, tt as DayButton, u as MonthSeparator, un as WeekTemplateState, ut as MonthViewStateContextValue, v as NextWeeksButtonProps, vt as DateStringProps, w as WeeksNavButtonOwnProps, wt as DayCellTemplateState, x as WeekCount, xt as DayButtonProps, y as PrevWeeksButton, yt as DateStringState, z as resolveFirstWeek, zt as NextMonthButtonProps } from "../index-DB6V_Y6x.mjs";
|
|
2
2
|
import * as _$react_jsx_runtime0 from "react/jsx-runtime";
|
|
3
3
|
|
|
4
4
|
//#region src/formats/zoned-date-time.d.ts
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { A as MonthSeparatorRow, B as useViewContext, C as DayButton, D as MonthSeparator, E as useWeeksViewState, F as DayCellDataContext, G as useCalendarStable, H as useMonthViewState, I as GridContext, K as useCalendarState, L as WeekDataContext, M as MonthSeparatorYear, N as GridHeader, O as MonthSeparatorCell, P as GridHeaderCell, R as MonthView$1, S as WeekTemplate, T as useWeeksViewStable, U as CalendarProvider$1, V as useMonthViewStable, W as computePreviewRange, _ as NextMonthButton, a as WeeksViewRoot, b as Grid, c as computeWeeksInWindow, d as RangeEndDragHandle, f as RangeStartDragHandle, g as MonthYearString, h as DateString, i as WeeksView, j as MonthSeparatorWeekCount, k as MonthSeparatorMonth, l as WeekNumberCell, m as RangeSelected, n as PrevWeeksButton, o as resolveFirstWeek, p as RangePreview, r as WeekCount, s as resolveFirstWeekSpec, t as NextWeeksButton, u as WeekNumberHeader, v as PrevMonthButton, w as DayCellTemplate, x as GridBody, y as TimeString, z as MonthViewRoot } from "../weeks-navigation-
|
|
1
|
+
import { A as MonthSeparatorRow, B as useViewContext, C as DayButton, D as MonthSeparator, E as useWeeksViewState, F as DayCellDataContext, G as useCalendarStable, H as useMonthViewState, I as GridContext, K as useCalendarState, L as WeekDataContext, M as MonthSeparatorYear, N as GridHeader, O as MonthSeparatorCell, P as GridHeaderCell, R as MonthView$1, S as WeekTemplate, T as useWeeksViewStable, U as CalendarProvider$1, V as useMonthViewStable, W as computePreviewRange, _ as NextMonthButton, a as WeeksViewRoot, b as Grid, c as computeWeeksInWindow, d as RangeEndDragHandle, f as RangeStartDragHandle, g as MonthYearString, h as DateString, i as WeeksView, j as MonthSeparatorWeekCount, k as MonthSeparatorMonth, l as WeekNumberCell, m as RangeSelected, n as PrevWeeksButton, o as resolveFirstWeek, p as RangePreview, r as WeekCount, s as resolveFirstWeekSpec, t as NextWeeksButton, u as WeekNumberHeader, v as PrevMonthButton, w as DayCellTemplate, x as GridBody, y as TimeString, z as MonthViewRoot } from "../weeks-navigation-CXRaVP02.mjs";
|
|
2
2
|
//#region src/formats/zoned-date-time.ts
|
|
3
3
|
const CalendarProvider = CalendarProvider$1;
|
|
4
4
|
const MonthView = MonthView$1;
|
|
@@ -1544,6 +1544,13 @@ interface CalendarStateContextValue {
|
|
|
1544
1544
|
baseRootState: BaseRootState;
|
|
1545
1545
|
}
|
|
1546
1546
|
//#endregion
|
|
1547
|
+
//#region src/calendar-provider.d.ts
|
|
1548
|
+
/**
|
|
1549
|
+
* Provides shared calendar state (selection, config, range preview) to all
|
|
1550
|
+
* descendant view components. Does NOT manage focus, navigation, or grid data.
|
|
1551
|
+
*/
|
|
1552
|
+
declare function CalendarProvider<F extends ValueFormat = "PlainDate">(props: CalendarProviderProps<F>): _$react_jsx_runtime0.JSX.Element;
|
|
1553
|
+
//#endregion
|
|
1547
1554
|
//#region src/out-of-range.d.ts
|
|
1548
1555
|
/**
|
|
1549
1556
|
* Controls how a {@link WeeksView} window behaves when navigation would move it
|
|
@@ -2098,4 +2105,4 @@ declare function useWeeksViewStable(): WeeksViewStableContextValue;
|
|
|
2098
2105
|
/** Returns the WeeksView state context (volatile grid data). */
|
|
2099
2106
|
declare function useWeeksViewState(): WeeksViewStateContextValue;
|
|
2100
2107
|
//#endregion
|
|
2101
|
-
export { GridBody as $,
|
|
2108
|
+
export { GridBody as $, TimeStringProps as $t, VisibleMonth as A, GridHeaderCellState as At, resolveFirstWeekSpec as B, OutsideDays as Bt, WeekCountState as C, DayCellTemplateProps as Ct, WeeksViewProps as D, GridBodyProps as Dt, WeeksView as E, DragHandleState as Et, WeekDescriptor as F, MonthData as Ft, RangePreview as G, RangePreviewProps as Gt, WeekNumberHeader as H, PrevMonthButtonProps as Ht, computeWeeksInWindow as I, MonthYearStringProps as It, MonthYearString as J, RangeSelectedState as Jt, RangeSelected as K, RangePreviewState as Kt, FirstWeekSpec as L, MonthYearStringState as Lt, WeeksViewStableContextValue as M, GridHeaderState as Mt, WeeksViewStateContextValue as N, GridProps as Nt, WeeksViewRoot as O, GridBodyState as Ot, WindowInfo as P, GridState as Pt, Grid as Q, TemporalNamespace as Qt, ScrollToWeekSnap as R, NavButtonState as Rt, WeekCountProps as S, DayButtonState as St, WeeksNavButtonState as T, DragHandleOwnProps as Tt, RangeEndDragHandle as U, RangeEndDragHandleProps as Ut, WeekNumberCell as V, PlainDateObject as Vt, RangeStartDragHandle as W, RangeMode as Wt, PrevMonthButton as X, RawValueForFormat as Xt, NextMonthButton as Y, RangeStartDragHandleProps as Yt, TimeString as Z, RootState as Zt, NextWeeksButton as _, DateRange as _t, useMonthViewStable as a, WeekNumberCellState as an, MonthView as at, PrevWeeksButtonProps as b, DateValueObject as bt, useCalendarState as c, WeekStartDay as cn, MonthViewRootProps as ct, MonthSeparatorCell as d, DayCellDataContext as dn, MonthOutOfRangeBehavior as dt, TimeStringState as en, WeekTemplate as et, MonthSeparatorMonth as f, GridContext as fn, OutOfRangeBehavior as ft, MonthSeparatorYear as g, CalendarStateContextValue as gt, MonthSeparatorWeekCount as h, CalendarStableContextValue as ht, useViewContext as i, WeekNumberCellProps as in, GridHeaderCell as it, WeeksViewRootProps as j, GridHeaderProps as jt, WeeksViewRootHandle as k, GridHeaderCellProps as kt, computePreviewRange as l, WeekTemplateProps as ln, MonthViewStableContextValue as lt, MonthSeparatorState as m, CalendarProviderProps as mt, useWeeksViewState as n, ValueForFormat as nn, DayCellTemplate as nt, useMonthViewState as o, WeekNumberHeaderProps as on, MonthViewProps as ot, MonthSeparatorRow as p, WeekDataContext as pn, CalendarProvider as pt, DateString as q, RangeSelectedProps as qt, ViewContextValue as r, ValueFormat as rn, GridHeader as rt, useCalendarStable as s, WeekNumberHeaderState as sn, MonthViewRoot as st, useWeeksViewStable as t, ValueChangeMeta as tn, DayButton as tt, MonthSeparator as u, WeekTemplateState as un, MonthViewStateContextValue as ut, NextWeeksButtonProps as v, DateStringProps as vt, WeeksNavButtonOwnProps as w, DayCellTemplateState as wt, WeekCount as x, DayButtonProps as xt, PrevWeeksButton as y, DateStringState as yt, resolveFirstWeek as z, NextMonthButtonProps as zt };
|
|
@@ -1544,6 +1544,13 @@ interface CalendarStateContextValue {
|
|
|
1544
1544
|
baseRootState: BaseRootState;
|
|
1545
1545
|
}
|
|
1546
1546
|
//#endregion
|
|
1547
|
+
//#region src/calendar-provider.d.ts
|
|
1548
|
+
/**
|
|
1549
|
+
* Provides shared calendar state (selection, config, range preview) to all
|
|
1550
|
+
* descendant view components. Does NOT manage focus, navigation, or grid data.
|
|
1551
|
+
*/
|
|
1552
|
+
declare function CalendarProvider<F extends ValueFormat = "PlainDate">(props: CalendarProviderProps<F>): _$react_jsx_runtime0.JSX.Element;
|
|
1553
|
+
//#endregion
|
|
1547
1554
|
//#region src/out-of-range.d.ts
|
|
1548
1555
|
/**
|
|
1549
1556
|
* Controls how a {@link WeeksView} window behaves when navigation would move it
|
|
@@ -2098,4 +2105,4 @@ declare function useWeeksViewStable(): WeeksViewStableContextValue;
|
|
|
2098
2105
|
/** Returns the WeeksView state context (volatile grid data). */
|
|
2099
2106
|
declare function useWeeksViewState(): WeeksViewStateContextValue;
|
|
2100
2107
|
//#endregion
|
|
2101
|
-
export { GridBody as $,
|
|
2108
|
+
export { GridBody as $, TimeStringProps as $t, VisibleMonth as A, GridHeaderCellState as At, resolveFirstWeekSpec as B, OutsideDays as Bt, WeekCountState as C, DayCellTemplateProps as Ct, WeeksViewProps as D, GridBodyProps as Dt, WeeksView as E, DragHandleState as Et, WeekDescriptor as F, MonthData as Ft, RangePreview as G, RangePreviewProps as Gt, WeekNumberHeader as H, PrevMonthButtonProps as Ht, computeWeeksInWindow as I, MonthYearStringProps as It, MonthYearString as J, RangeSelectedState as Jt, RangeSelected as K, RangePreviewState as Kt, FirstWeekSpec as L, MonthYearStringState as Lt, WeeksViewStableContextValue as M, GridHeaderState as Mt, WeeksViewStateContextValue as N, GridProps as Nt, WeeksViewRoot as O, GridBodyState as Ot, WindowInfo as P, GridState as Pt, Grid as Q, TemporalNamespace as Qt, ScrollToWeekSnap as R, NavButtonState as Rt, WeekCountProps as S, DayButtonState as St, WeeksNavButtonState as T, DragHandleOwnProps as Tt, RangeEndDragHandle as U, RangeEndDragHandleProps as Ut, WeekNumberCell as V, PlainDateObject as Vt, RangeStartDragHandle as W, RangeMode as Wt, PrevMonthButton as X, RawValueForFormat as Xt, NextMonthButton as Y, RangeStartDragHandleProps as Yt, TimeString as Z, RootState as Zt, NextWeeksButton as _, DateRange as _t, useMonthViewStable as a, WeekNumberCellState as an, MonthView as at, PrevWeeksButtonProps as b, DateValueObject as bt, useCalendarState as c, WeekStartDay as cn, MonthViewRootProps as ct, MonthSeparatorCell as d, DayCellDataContext as dn, MonthOutOfRangeBehavior as dt, TimeStringState as en, WeekTemplate as et, MonthSeparatorMonth as f, GridContext as fn, OutOfRangeBehavior as ft, MonthSeparatorYear as g, CalendarStateContextValue as gt, MonthSeparatorWeekCount as h, CalendarStableContextValue as ht, useViewContext as i, WeekNumberCellProps as in, GridHeaderCell as it, WeeksViewRootProps as j, GridHeaderProps as jt, WeeksViewRootHandle as k, GridHeaderCellProps as kt, computePreviewRange as l, WeekTemplateProps as ln, MonthViewStableContextValue as lt, MonthSeparatorState as m, CalendarProviderProps as mt, useWeeksViewState as n, ValueForFormat as nn, DayCellTemplate as nt, useMonthViewState as o, WeekNumberHeaderProps as on, MonthViewProps as ot, MonthSeparatorRow as p, WeekDataContext as pn, CalendarProvider as pt, DateString as q, RangeSelectedProps as qt, ViewContextValue as r, ValueFormat as rn, GridHeader as rt, useCalendarStable as s, WeekNumberHeaderState as sn, MonthViewRoot as st, useWeeksViewStable as t, ValueChangeMeta as tn, DayButton as tt, MonthSeparator as u, WeekTemplateState as un, MonthViewStateContextValue as ut, NextWeeksButtonProps as v, DateStringProps as vt, WeeksNavButtonOwnProps as w, DayCellTemplateState as wt, WeekCount as x, DayButtonProps as xt, PrevWeeksButton as y, DateStringState as yt, resolveFirstWeek as z, NextMonthButtonProps as zt };
|
package/dist/index.cjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
|
-
const require_weeks_navigation = require("./weeks-navigation-
|
|
2
|
+
const require_weeks_navigation = require("./weeks-navigation-BRxzsy0z.cjs");
|
|
3
3
|
exports.CalendarProvider = require_weeks_navigation.CalendarProvider;
|
|
4
4
|
exports.DateString = require_weeks_navigation.DateString;
|
|
5
5
|
exports.DayButton = require_weeks_navigation.DayButton;
|
package/dist/index.d.cts
CHANGED
|
@@ -1,11 +1,2 @@
|
|
|
1
|
-
import { $ as GridBody, $t as
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
//#region src/calendar-provider.d.ts
|
|
5
|
-
/**
|
|
6
|
-
* Provides shared calendar state (selection, config, range preview) to all
|
|
7
|
-
* descendant view components. Does NOT manage focus, navigation, or grid data.
|
|
8
|
-
*/
|
|
9
|
-
declare function CalendarProvider<F extends ValueFormat = "PlainDate">(props: CalendarProviderProps<F>): _$react_jsx_runtime0.JSX.Element;
|
|
10
|
-
//#endregion
|
|
11
|
-
export { CalendarProvider, type CalendarProviderProps, type CalendarStableContextValue, type CalendarStateContextValue, type DateRange, DateString, type DateStringProps, type DateStringState, type DateValueObject, DayButton, type DayButtonProps, type DayButtonState, DayCellDataContext, DayCellTemplate, type DayCellTemplateProps, type DayCellTemplateState, type DragHandleOwnProps, type DragHandleState, type FirstWeekSpec, Grid, GridBody, type GridBodyProps, type GridBodyState, GridContext, GridHeader, GridHeaderCell, type GridHeaderCellProps, type GridHeaderCellState, type GridHeaderProps, type GridHeaderState, type GridProps, type GridState, type MonthData, type MonthOutOfRangeBehavior, MonthSeparator, MonthSeparatorCell, MonthSeparatorMonth, MonthSeparatorRow, type MonthSeparatorState, MonthSeparatorWeekCount, MonthSeparatorYear, MonthView, type MonthViewProps, MonthViewRoot, type MonthViewRootProps, type MonthViewStableContextValue, type MonthViewStateContextValue, MonthYearString, type MonthYearStringProps, type MonthYearStringState, type NavButtonState, NextMonthButton, type NextMonthButtonProps, NextWeeksButton, type NextWeeksButtonProps, type OutOfRangeBehavior, type OutsideDays, type PlainDateObject, PrevMonthButton, type PrevMonthButtonProps, PrevWeeksButton, type PrevWeeksButtonProps, RangeEndDragHandle, type RangeEndDragHandleProps, type RangeMode, RangePreview, type RangePreviewProps, type RangePreviewState, RangeSelected, type RangeSelectedProps, type RangeSelectedState, RangeStartDragHandle, type RangeStartDragHandleProps, type RawValueForFormat, type RootState, type ScrollToWeekSnap, type TemporalNamespace, TimeString, type TimeStringProps, type TimeStringState, type ValueChangeMeta, type ValueForFormat, type ValueFormat, type ViewContextValue, type VisibleMonth, WeekCount, type WeekCountProps, type WeekCountState, WeekDataContext, type WeekDescriptor, WeekNumberCell, type WeekNumberCellProps, type WeekNumberCellState, WeekNumberHeader, type WeekNumberHeaderProps, type WeekNumberHeaderState, type WeekStartDay, WeekTemplate, type WeekTemplateProps, type WeekTemplateState, type WeeksNavButtonOwnProps, type WeeksNavButtonState, WeeksView, type WeeksViewProps, WeeksViewRoot, type WeeksViewRootHandle, type WeeksViewRootProps, type WeeksViewStableContextValue, type WeeksViewStateContextValue, type WindowInfo, computePreviewRange, computeWeeksInWindow, resolveFirstWeek, resolveFirstWeekSpec, useCalendarStable, useCalendarState, useMonthViewStable, useMonthViewState, useViewContext, useWeeksViewStable, useWeeksViewState };
|
|
1
|
+
import { $ as GridBody, $t as TimeStringProps, A as VisibleMonth, At as GridHeaderCellState, B as resolveFirstWeekSpec, Bt as OutsideDays, C as WeekCountState, Ct as DayCellTemplateProps, D as WeeksViewProps, Dt as GridBodyProps, E as WeeksView, Et as DragHandleState, F as WeekDescriptor, Ft as MonthData, G as RangePreview, Gt as RangePreviewProps, H as WeekNumberHeader, Ht as PrevMonthButtonProps, I as computeWeeksInWindow, It as MonthYearStringProps, J as MonthYearString, Jt as RangeSelectedState, K as RangeSelected, Kt as RangePreviewState, L as FirstWeekSpec, Lt as MonthYearStringState, M as WeeksViewStableContextValue, Mt as GridHeaderState, N as WeeksViewStateContextValue, Nt as GridProps, O as WeeksViewRoot, Ot as GridBodyState, P as WindowInfo, Pt as GridState, Q as Grid, Qt as TemporalNamespace, R as ScrollToWeekSnap, Rt as NavButtonState, S as WeekCountProps, St as DayButtonState, T as WeeksNavButtonState, Tt as DragHandleOwnProps, U as RangeEndDragHandle, Ut as RangeEndDragHandleProps, V as WeekNumberCell, Vt as PlainDateObject, W as RangeStartDragHandle, Wt as RangeMode, X as PrevMonthButton, Xt as RawValueForFormat, Y as NextMonthButton, Yt as RangeStartDragHandleProps, Z as TimeString, Zt as RootState, _ as NextWeeksButton, _t as DateRange, a as useMonthViewStable, an as WeekNumberCellState, at as MonthView, b as PrevWeeksButtonProps, bt as DateValueObject, c as useCalendarState, cn as WeekStartDay, ct as MonthViewRootProps, d as MonthSeparatorCell, dn as DayCellDataContext, dt as MonthOutOfRangeBehavior, en as TimeStringState, et as WeekTemplate, f as MonthSeparatorMonth, fn as GridContext, ft as OutOfRangeBehavior, g as MonthSeparatorYear, gt as CalendarStateContextValue, h as MonthSeparatorWeekCount, ht as CalendarStableContextValue, i as useViewContext, in as WeekNumberCellProps, it as GridHeaderCell, j as WeeksViewRootProps, jt as GridHeaderProps, k as WeeksViewRootHandle, kt as GridHeaderCellProps, l as computePreviewRange, ln as WeekTemplateProps, lt as MonthViewStableContextValue, m as MonthSeparatorState, mt as CalendarProviderProps, n as useWeeksViewState, nn as ValueForFormat, nt as DayCellTemplate, o as useMonthViewState, on as WeekNumberHeaderProps, ot as MonthViewProps, p as MonthSeparatorRow, pn as WeekDataContext, pt as CalendarProvider, q as DateString, qt as RangeSelectedProps, r as ViewContextValue, rn as ValueFormat, rt as GridHeader, s as useCalendarStable, sn as WeekNumberHeaderState, st as MonthViewRoot, t as useWeeksViewStable, tn as ValueChangeMeta, tt as DayButton, u as MonthSeparator, un as WeekTemplateState, ut as MonthViewStateContextValue, v as NextWeeksButtonProps, vt as DateStringProps, w as WeeksNavButtonOwnProps, wt as DayCellTemplateState, x as WeekCount, xt as DayButtonProps, y as PrevWeeksButton, yt as DateStringState, z as resolveFirstWeek, zt as NextMonthButtonProps } from "./index-CJgr0MEp.cjs";
|
|
2
|
+
export { CalendarProvider, CalendarProviderProps, CalendarStableContextValue, CalendarStateContextValue, DateRange, DateString, DateStringProps, DateStringState, DateValueObject, DayButton, DayButtonProps, DayButtonState, DayCellDataContext, DayCellTemplate, DayCellTemplateProps, DayCellTemplateState, DragHandleOwnProps, DragHandleState, FirstWeekSpec, Grid, GridBody, GridBodyProps, GridBodyState, GridContext, GridHeader, GridHeaderCell, GridHeaderCellProps, GridHeaderCellState, GridHeaderProps, GridHeaderState, GridProps, GridState, MonthData, MonthOutOfRangeBehavior, MonthSeparator, MonthSeparatorCell, MonthSeparatorMonth, MonthSeparatorRow, MonthSeparatorState, MonthSeparatorWeekCount, MonthSeparatorYear, MonthView, MonthViewProps, MonthViewRoot, MonthViewRootProps, MonthViewStableContextValue, MonthViewStateContextValue, MonthYearString, MonthYearStringProps, MonthYearStringState, NavButtonState, NextMonthButton, NextMonthButtonProps, NextWeeksButton, NextWeeksButtonProps, OutOfRangeBehavior, OutsideDays, PlainDateObject, PrevMonthButton, PrevMonthButtonProps, PrevWeeksButton, PrevWeeksButtonProps, RangeEndDragHandle, RangeEndDragHandleProps, RangeMode, RangePreview, RangePreviewProps, RangePreviewState, RangeSelected, RangeSelectedProps, RangeSelectedState, RangeStartDragHandle, RangeStartDragHandleProps, RawValueForFormat, RootState, ScrollToWeekSnap, TemporalNamespace, TimeString, TimeStringProps, TimeStringState, ValueChangeMeta, ValueForFormat, ValueFormat, ViewContextValue, VisibleMonth, WeekCount, WeekCountProps, WeekCountState, WeekDataContext, WeekDescriptor, WeekNumberCell, WeekNumberCellProps, WeekNumberCellState, WeekNumberHeader, WeekNumberHeaderProps, WeekNumberHeaderState, WeekStartDay, WeekTemplate, WeekTemplateProps, WeekTemplateState, WeeksNavButtonOwnProps, WeeksNavButtonState, WeeksView, WeeksViewProps, WeeksViewRoot, WeeksViewRootHandle, WeeksViewRootProps, WeeksViewStableContextValue, WeeksViewStateContextValue, WindowInfo, computePreviewRange, computeWeeksInWindow, resolveFirstWeek, resolveFirstWeekSpec, useCalendarStable, useCalendarState, useMonthViewStable, useMonthViewState, useViewContext, useWeeksViewStable, useWeeksViewState };
|
package/dist/index.d.mts
CHANGED
|
@@ -1,11 +1,2 @@
|
|
|
1
|
-
import { $ as GridBody, $t as
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
//#region src/calendar-provider.d.ts
|
|
5
|
-
/**
|
|
6
|
-
* Provides shared calendar state (selection, config, range preview) to all
|
|
7
|
-
* descendant view components. Does NOT manage focus, navigation, or grid data.
|
|
8
|
-
*/
|
|
9
|
-
declare function CalendarProvider<F extends ValueFormat = "PlainDate">(props: CalendarProviderProps<F>): _$react_jsx_runtime0.JSX.Element;
|
|
10
|
-
//#endregion
|
|
11
|
-
export { CalendarProvider, type CalendarProviderProps, type CalendarStableContextValue, type CalendarStateContextValue, type DateRange, DateString, type DateStringProps, type DateStringState, type DateValueObject, DayButton, type DayButtonProps, type DayButtonState, DayCellDataContext, DayCellTemplate, type DayCellTemplateProps, type DayCellTemplateState, type DragHandleOwnProps, type DragHandleState, type FirstWeekSpec, Grid, GridBody, type GridBodyProps, type GridBodyState, GridContext, GridHeader, GridHeaderCell, type GridHeaderCellProps, type GridHeaderCellState, type GridHeaderProps, type GridHeaderState, type GridProps, type GridState, type MonthData, type MonthOutOfRangeBehavior, MonthSeparator, MonthSeparatorCell, MonthSeparatorMonth, MonthSeparatorRow, type MonthSeparatorState, MonthSeparatorWeekCount, MonthSeparatorYear, MonthView, type MonthViewProps, MonthViewRoot, type MonthViewRootProps, type MonthViewStableContextValue, type MonthViewStateContextValue, MonthYearString, type MonthYearStringProps, type MonthYearStringState, type NavButtonState, NextMonthButton, type NextMonthButtonProps, NextWeeksButton, type NextWeeksButtonProps, type OutOfRangeBehavior, type OutsideDays, type PlainDateObject, PrevMonthButton, type PrevMonthButtonProps, PrevWeeksButton, type PrevWeeksButtonProps, RangeEndDragHandle, type RangeEndDragHandleProps, type RangeMode, RangePreview, type RangePreviewProps, type RangePreviewState, RangeSelected, type RangeSelectedProps, type RangeSelectedState, RangeStartDragHandle, type RangeStartDragHandleProps, type RawValueForFormat, type RootState, type ScrollToWeekSnap, type TemporalNamespace, TimeString, type TimeStringProps, type TimeStringState, type ValueChangeMeta, type ValueForFormat, type ValueFormat, type ViewContextValue, type VisibleMonth, WeekCount, type WeekCountProps, type WeekCountState, WeekDataContext, type WeekDescriptor, WeekNumberCell, type WeekNumberCellProps, type WeekNumberCellState, WeekNumberHeader, type WeekNumberHeaderProps, type WeekNumberHeaderState, type WeekStartDay, WeekTemplate, type WeekTemplateProps, type WeekTemplateState, type WeeksNavButtonOwnProps, type WeeksNavButtonState, WeeksView, type WeeksViewProps, WeeksViewRoot, type WeeksViewRootHandle, type WeeksViewRootProps, type WeeksViewStableContextValue, type WeeksViewStateContextValue, type WindowInfo, computePreviewRange, computeWeeksInWindow, resolveFirstWeek, resolveFirstWeekSpec, useCalendarStable, useCalendarState, useMonthViewStable, useMonthViewState, useViewContext, useWeeksViewStable, useWeeksViewState };
|
|
1
|
+
import { $ as GridBody, $t as TimeStringProps, A as VisibleMonth, At as GridHeaderCellState, B as resolveFirstWeekSpec, Bt as OutsideDays, C as WeekCountState, Ct as DayCellTemplateProps, D as WeeksViewProps, Dt as GridBodyProps, E as WeeksView, Et as DragHandleState, F as WeekDescriptor, Ft as MonthData, G as RangePreview, Gt as RangePreviewProps, H as WeekNumberHeader, Ht as PrevMonthButtonProps, I as computeWeeksInWindow, It as MonthYearStringProps, J as MonthYearString, Jt as RangeSelectedState, K as RangeSelected, Kt as RangePreviewState, L as FirstWeekSpec, Lt as MonthYearStringState, M as WeeksViewStableContextValue, Mt as GridHeaderState, N as WeeksViewStateContextValue, Nt as GridProps, O as WeeksViewRoot, Ot as GridBodyState, P as WindowInfo, Pt as GridState, Q as Grid, Qt as TemporalNamespace, R as ScrollToWeekSnap, Rt as NavButtonState, S as WeekCountProps, St as DayButtonState, T as WeeksNavButtonState, Tt as DragHandleOwnProps, U as RangeEndDragHandle, Ut as RangeEndDragHandleProps, V as WeekNumberCell, Vt as PlainDateObject, W as RangeStartDragHandle, Wt as RangeMode, X as PrevMonthButton, Xt as RawValueForFormat, Y as NextMonthButton, Yt as RangeStartDragHandleProps, Z as TimeString, Zt as RootState, _ as NextWeeksButton, _t as DateRange, a as useMonthViewStable, an as WeekNumberCellState, at as MonthView, b as PrevWeeksButtonProps, bt as DateValueObject, c as useCalendarState, cn as WeekStartDay, ct as MonthViewRootProps, d as MonthSeparatorCell, dn as DayCellDataContext, dt as MonthOutOfRangeBehavior, en as TimeStringState, et as WeekTemplate, f as MonthSeparatorMonth, fn as GridContext, ft as OutOfRangeBehavior, g as MonthSeparatorYear, gt as CalendarStateContextValue, h as MonthSeparatorWeekCount, ht as CalendarStableContextValue, i as useViewContext, in as WeekNumberCellProps, it as GridHeaderCell, j as WeeksViewRootProps, jt as GridHeaderProps, k as WeeksViewRootHandle, kt as GridHeaderCellProps, l as computePreviewRange, ln as WeekTemplateProps, lt as MonthViewStableContextValue, m as MonthSeparatorState, mt as CalendarProviderProps, n as useWeeksViewState, nn as ValueForFormat, nt as DayCellTemplate, o as useMonthViewState, on as WeekNumberHeaderProps, ot as MonthViewProps, p as MonthSeparatorRow, pn as WeekDataContext, pt as CalendarProvider, q as DateString, qt as RangeSelectedProps, r as ViewContextValue, rn as ValueFormat, rt as GridHeader, s as useCalendarStable, sn as WeekNumberHeaderState, st as MonthViewRoot, t as useWeeksViewStable, tn as ValueChangeMeta, tt as DayButton, u as MonthSeparator, un as WeekTemplateState, ut as MonthViewStateContextValue, v as NextWeeksButtonProps, vt as DateStringProps, w as WeeksNavButtonOwnProps, wt as DayCellTemplateState, x as WeekCount, xt as DayButtonProps, y as PrevWeeksButton, yt as DateStringState, z as resolveFirstWeek, zt as NextMonthButtonProps } from "./index-DB6V_Y6x.mjs";
|
|
2
|
+
export { CalendarProvider, CalendarProviderProps, CalendarStableContextValue, CalendarStateContextValue, DateRange, DateString, DateStringProps, DateStringState, DateValueObject, DayButton, DayButtonProps, DayButtonState, DayCellDataContext, DayCellTemplate, DayCellTemplateProps, DayCellTemplateState, DragHandleOwnProps, DragHandleState, FirstWeekSpec, Grid, GridBody, GridBodyProps, GridBodyState, GridContext, GridHeader, GridHeaderCell, GridHeaderCellProps, GridHeaderCellState, GridHeaderProps, GridHeaderState, GridProps, GridState, MonthData, MonthOutOfRangeBehavior, MonthSeparator, MonthSeparatorCell, MonthSeparatorMonth, MonthSeparatorRow, MonthSeparatorState, MonthSeparatorWeekCount, MonthSeparatorYear, MonthView, MonthViewProps, MonthViewRoot, MonthViewRootProps, MonthViewStableContextValue, MonthViewStateContextValue, MonthYearString, MonthYearStringProps, MonthYearStringState, NavButtonState, NextMonthButton, NextMonthButtonProps, NextWeeksButton, NextWeeksButtonProps, OutOfRangeBehavior, OutsideDays, PlainDateObject, PrevMonthButton, PrevMonthButtonProps, PrevWeeksButton, PrevWeeksButtonProps, RangeEndDragHandle, RangeEndDragHandleProps, RangeMode, RangePreview, RangePreviewProps, RangePreviewState, RangeSelected, RangeSelectedProps, RangeSelectedState, RangeStartDragHandle, RangeStartDragHandleProps, RawValueForFormat, RootState, ScrollToWeekSnap, TemporalNamespace, TimeString, TimeStringProps, TimeStringState, ValueChangeMeta, ValueForFormat, ValueFormat, ViewContextValue, VisibleMonth, WeekCount, WeekCountProps, WeekCountState, WeekDataContext, WeekDescriptor, WeekNumberCell, WeekNumberCellProps, WeekNumberCellState, WeekNumberHeader, WeekNumberHeaderProps, WeekNumberHeaderState, WeekStartDay, WeekTemplate, WeekTemplateProps, WeekTemplateState, WeeksNavButtonOwnProps, WeeksNavButtonState, WeeksView, WeeksViewProps, WeeksViewRoot, WeeksViewRootHandle, WeeksViewRootProps, WeeksViewStableContextValue, WeeksViewStateContextValue, WindowInfo, computePreviewRange, computeWeeksInWindow, resolveFirstWeek, resolveFirstWeekSpec, useCalendarStable, useCalendarState, useMonthViewStable, useMonthViewState, useViewContext, useWeeksViewStable, useWeeksViewState };
|
package/dist/index.mjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { A as MonthSeparatorRow, B as useViewContext, C as DayButton, D as MonthSeparator, E as useWeeksViewState, F as DayCellDataContext, G as useCalendarStable, H as useMonthViewState, I as GridContext, K as useCalendarState, L as WeekDataContext, M as MonthSeparatorYear, N as GridHeader, O as MonthSeparatorCell, P as GridHeaderCell, R as MonthView, S as WeekTemplate, T as useWeeksViewStable, U as CalendarProvider, V as useMonthViewStable, W as computePreviewRange, _ as NextMonthButton, a as WeeksViewRoot, b as Grid, c as computeWeeksInWindow, d as RangeEndDragHandle, f as RangeStartDragHandle, g as MonthYearString, h as DateString, i as WeeksView, j as MonthSeparatorWeekCount, k as MonthSeparatorMonth, l as WeekNumberCell, m as RangeSelected, n as PrevWeeksButton, o as resolveFirstWeek, p as RangePreview, r as WeekCount, s as resolveFirstWeekSpec, t as NextWeeksButton, u as WeekNumberHeader, v as PrevMonthButton, w as DayCellTemplate, x as GridBody, y as TimeString, z as MonthViewRoot } from "./weeks-navigation-
|
|
1
|
+
import { A as MonthSeparatorRow, B as useViewContext, C as DayButton, D as MonthSeparator, E as useWeeksViewState, F as DayCellDataContext, G as useCalendarStable, H as useMonthViewState, I as GridContext, K as useCalendarState, L as WeekDataContext, M as MonthSeparatorYear, N as GridHeader, O as MonthSeparatorCell, P as GridHeaderCell, R as MonthView, S as WeekTemplate, T as useWeeksViewStable, U as CalendarProvider, V as useMonthViewStable, W as computePreviewRange, _ as NextMonthButton, a as WeeksViewRoot, b as Grid, c as computeWeeksInWindow, d as RangeEndDragHandle, f as RangeStartDragHandle, g as MonthYearString, h as DateString, i as WeeksView, j as MonthSeparatorWeekCount, k as MonthSeparatorMonth, l as WeekNumberCell, m as RangeSelected, n as PrevWeeksButton, o as resolveFirstWeek, p as RangePreview, r as WeekCount, s as resolveFirstWeekSpec, t as NextWeeksButton, u as WeekNumberHeader, v as PrevMonthButton, w as DayCellTemplate, x as GridBody, y as TimeString, z as MonthViewRoot } from "./weeks-navigation-CXRaVP02.mjs";
|
|
2
2
|
export { CalendarProvider, DateString, DayButton, DayCellDataContext, DayCellTemplate, Grid, GridBody, GridContext, GridHeader, GridHeaderCell, MonthSeparator, MonthSeparatorCell, MonthSeparatorMonth, MonthSeparatorRow, MonthSeparatorWeekCount, MonthSeparatorYear, MonthView, MonthViewRoot, MonthYearString, NextMonthButton, NextWeeksButton, PrevMonthButton, PrevWeeksButton, RangeEndDragHandle, RangePreview, RangeSelected, RangeStartDragHandle, TimeString, WeekCount, WeekDataContext, WeekNumberCell, WeekNumberHeader, WeekTemplate, WeeksView, WeeksViewRoot, computePreviewRange, computeWeeksInWindow, resolveFirstWeek, resolveFirstWeekSpec, useCalendarStable, useCalendarState, useMonthViewStable, useMonthViewState, useViewContext, useWeeksViewStable, useWeeksViewState };
|
|
@@ -923,6 +923,21 @@ function CalendarProvider(props) {
|
|
|
923
923
|
rawToPlain,
|
|
924
924
|
sortDates
|
|
925
925
|
]);
|
|
926
|
+
const warnedMalformedRef = (0, react.useRef)(false);
|
|
927
|
+
(0, react.useEffect)(() => {
|
|
928
|
+
if (!(valueProp != null && (isRange && !isDateRange(valueProp) || isMultiple && !Array.isArray(valueProp)))) {
|
|
929
|
+
warnedMalformedRef.current = false;
|
|
930
|
+
return;
|
|
931
|
+
}
|
|
932
|
+
if (warnedMalformedRef.current) return;
|
|
933
|
+
warnedMalformedRef.current = true;
|
|
934
|
+
if (isRange) console.warn(`[DatePicker] selectionMode="range" expects \`value\` to be a { start, end } DateRange or null, but received ${Array.isArray(valueProp) ? "an array" : typeof valueProp}. Ignoring it and falling back to uncontrolled.`);
|
|
935
|
+
else console.warn(`[DatePicker] selectionMode="multiple" expects \`value\` to be an array or null, but received ${typeof valueProp}. Ignoring it and falling back to uncontrolled.`);
|
|
936
|
+
}, [
|
|
937
|
+
valueProp,
|
|
938
|
+
isRange,
|
|
939
|
+
isMultiple
|
|
940
|
+
]);
|
|
926
941
|
const [internalDates, setInternalDates] = (0, react.useState)((0, react.useMemo)(() => {
|
|
927
942
|
if (isMultiple) {
|
|
928
943
|
if (multipleDefault) return sortDates(multipleDefault.map(rawToPlain));
|
|
@@ -1092,22 +1107,35 @@ function CalendarProvider(props) {
|
|
|
1092
1107
|
plainToFormatValue,
|
|
1093
1108
|
isControlled
|
|
1094
1109
|
]);
|
|
1110
|
+
const warnedOutOfBoundsRef = (0, react.useRef)(false);
|
|
1095
1111
|
(0, react.useEffect)(() => {
|
|
1096
1112
|
if (isRange || isMultiple) return;
|
|
1097
1113
|
const start = committedStart;
|
|
1098
|
-
if (!start)
|
|
1099
|
-
|
|
1100
|
-
|
|
1101
|
-
commitSelection({
|
|
1102
|
-
newDates: [],
|
|
1103
|
-
fireCallback: (onValueChange) => {
|
|
1104
|
-
onValueChange?.(null, {
|
|
1105
|
-
date: void 0,
|
|
1106
|
-
previous: prev
|
|
1107
|
-
});
|
|
1108
|
-
}
|
|
1109
|
-
});
|
|
1114
|
+
if (!start) {
|
|
1115
|
+
warnedOutOfBoundsRef.current = false;
|
|
1116
|
+
return;
|
|
1110
1117
|
}
|
|
1118
|
+
if (!(minValue && T.PlainDate.compare(start, minValue) < 0 || maxValue && T.PlainDate.compare(start, maxValue) > 0)) {
|
|
1119
|
+
warnedOutOfBoundsRef.current = false;
|
|
1120
|
+
return;
|
|
1121
|
+
}
|
|
1122
|
+
if (isControlled) {
|
|
1123
|
+
if (!warnedOutOfBoundsRef.current) {
|
|
1124
|
+
warnedOutOfBoundsRef.current = true;
|
|
1125
|
+
console.warn(`[DatePicker] The controlled \`value\` is outside the min/max range. It stays selected (rendered disabled) until you update \`value\`; the component will not clear it for you.`);
|
|
1126
|
+
}
|
|
1127
|
+
return;
|
|
1128
|
+
}
|
|
1129
|
+
const prev = currentSingleFormatted();
|
|
1130
|
+
commitSelection({
|
|
1131
|
+
newDates: [],
|
|
1132
|
+
fireCallback: (onValueChange) => {
|
|
1133
|
+
onValueChange?.(null, {
|
|
1134
|
+
date: void 0,
|
|
1135
|
+
previous: prev
|
|
1136
|
+
});
|
|
1137
|
+
}
|
|
1138
|
+
});
|
|
1111
1139
|
}, [
|
|
1112
1140
|
minValue,
|
|
1113
1141
|
maxValue,
|
|
@@ -1116,7 +1144,8 @@ function CalendarProvider(props) {
|
|
|
1116
1144
|
currentSingleFormatted,
|
|
1117
1145
|
T,
|
|
1118
1146
|
isRange,
|
|
1119
|
-
isMultiple
|
|
1147
|
+
isMultiple,
|
|
1148
|
+
isControlled
|
|
1120
1149
|
]);
|
|
1121
1150
|
const onSelect = (0, react.useCallback)((date) => {
|
|
1122
1151
|
const result = computeSelectionUpdate({
|
|
@@ -900,6 +900,21 @@ function CalendarProvider(props) {
|
|
|
900
900
|
rawToPlain,
|
|
901
901
|
sortDates
|
|
902
902
|
]);
|
|
903
|
+
const warnedMalformedRef = useRef(false);
|
|
904
|
+
useEffect(() => {
|
|
905
|
+
if (!(valueProp != null && (isRange && !isDateRange(valueProp) || isMultiple && !Array.isArray(valueProp)))) {
|
|
906
|
+
warnedMalformedRef.current = false;
|
|
907
|
+
return;
|
|
908
|
+
}
|
|
909
|
+
if (warnedMalformedRef.current) return;
|
|
910
|
+
warnedMalformedRef.current = true;
|
|
911
|
+
if (isRange) console.warn(`[DatePicker] selectionMode="range" expects \`value\` to be a { start, end } DateRange or null, but received ${Array.isArray(valueProp) ? "an array" : typeof valueProp}. Ignoring it and falling back to uncontrolled.`);
|
|
912
|
+
else console.warn(`[DatePicker] selectionMode="multiple" expects \`value\` to be an array or null, but received ${typeof valueProp}. Ignoring it and falling back to uncontrolled.`);
|
|
913
|
+
}, [
|
|
914
|
+
valueProp,
|
|
915
|
+
isRange,
|
|
916
|
+
isMultiple
|
|
917
|
+
]);
|
|
903
918
|
const [internalDates, setInternalDates] = useState(useMemo(() => {
|
|
904
919
|
if (isMultiple) {
|
|
905
920
|
if (multipleDefault) return sortDates(multipleDefault.map(rawToPlain));
|
|
@@ -1069,22 +1084,35 @@ function CalendarProvider(props) {
|
|
|
1069
1084
|
plainToFormatValue,
|
|
1070
1085
|
isControlled
|
|
1071
1086
|
]);
|
|
1087
|
+
const warnedOutOfBoundsRef = useRef(false);
|
|
1072
1088
|
useEffect(() => {
|
|
1073
1089
|
if (isRange || isMultiple) return;
|
|
1074
1090
|
const start = committedStart;
|
|
1075
|
-
if (!start)
|
|
1076
|
-
|
|
1077
|
-
|
|
1078
|
-
commitSelection({
|
|
1079
|
-
newDates: [],
|
|
1080
|
-
fireCallback: (onValueChange) => {
|
|
1081
|
-
onValueChange?.(null, {
|
|
1082
|
-
date: void 0,
|
|
1083
|
-
previous: prev
|
|
1084
|
-
});
|
|
1085
|
-
}
|
|
1086
|
-
});
|
|
1091
|
+
if (!start) {
|
|
1092
|
+
warnedOutOfBoundsRef.current = false;
|
|
1093
|
+
return;
|
|
1087
1094
|
}
|
|
1095
|
+
if (!(minValue && T.PlainDate.compare(start, minValue) < 0 || maxValue && T.PlainDate.compare(start, maxValue) > 0)) {
|
|
1096
|
+
warnedOutOfBoundsRef.current = false;
|
|
1097
|
+
return;
|
|
1098
|
+
}
|
|
1099
|
+
if (isControlled) {
|
|
1100
|
+
if (!warnedOutOfBoundsRef.current) {
|
|
1101
|
+
warnedOutOfBoundsRef.current = true;
|
|
1102
|
+
console.warn(`[DatePicker] The controlled \`value\` is outside the min/max range. It stays selected (rendered disabled) until you update \`value\`; the component will not clear it for you.`);
|
|
1103
|
+
}
|
|
1104
|
+
return;
|
|
1105
|
+
}
|
|
1106
|
+
const prev = currentSingleFormatted();
|
|
1107
|
+
commitSelection({
|
|
1108
|
+
newDates: [],
|
|
1109
|
+
fireCallback: (onValueChange) => {
|
|
1110
|
+
onValueChange?.(null, {
|
|
1111
|
+
date: void 0,
|
|
1112
|
+
previous: prev
|
|
1113
|
+
});
|
|
1114
|
+
}
|
|
1115
|
+
});
|
|
1088
1116
|
}, [
|
|
1089
1117
|
minValue,
|
|
1090
1118
|
maxValue,
|
|
@@ -1093,7 +1121,8 @@ function CalendarProvider(props) {
|
|
|
1093
1121
|
currentSingleFormatted,
|
|
1094
1122
|
T,
|
|
1095
1123
|
isRange,
|
|
1096
|
-
isMultiple
|
|
1124
|
+
isMultiple,
|
|
1125
|
+
isControlled
|
|
1097
1126
|
]);
|
|
1098
1127
|
const onSelect = useCallback((date) => {
|
|
1099
1128
|
const result = computeSelectionUpdate({
|
package/package.json
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { Temporal } from "@js-temporal/polyfill";
|
|
2
2
|
import { render, act, cleanup } from "@testing-library/react";
|
|
3
|
+
import type { ComponentProps } from "react";
|
|
3
4
|
import { describe, it, expect, vi, afterEach } from "vitest";
|
|
4
5
|
import { useCalendarStable, useCalendarState } from "./calendar-context";
|
|
5
6
|
import { CalendarProvider } from "./calendar-provider";
|
|
@@ -135,3 +136,89 @@ describe("CalendarProvider", () => {
|
|
|
135
136
|
spy.mockRestore();
|
|
136
137
|
});
|
|
137
138
|
});
|
|
139
|
+
|
|
140
|
+
describe("CalendarProvider — controlled-value integrity (M7)", () => {
|
|
141
|
+
it.each([
|
|
142
|
+
{
|
|
143
|
+
description: "range value that is not a { start, end } DateRange",
|
|
144
|
+
selectionMode: "range" as const,
|
|
145
|
+
value: "2026-03-15",
|
|
146
|
+
expected: { matches: /range/i },
|
|
147
|
+
},
|
|
148
|
+
{
|
|
149
|
+
description: "multiple value that is not an array",
|
|
150
|
+
selectionMode: "multiple" as const,
|
|
151
|
+
value: T.PlainDate.from("2026-03-15"),
|
|
152
|
+
expected: { matches: /multiple|array/i },
|
|
153
|
+
},
|
|
154
|
+
])(
|
|
155
|
+
"warns instead of silently going uncontrolled for a malformed $description",
|
|
156
|
+
({ selectionMode, value, expected }) => {
|
|
157
|
+
const warn = vi.spyOn(console, "warn").mockImplementation(() => {});
|
|
158
|
+
render(
|
|
159
|
+
// selectionMode is a union here (it.each), which can't narrow the
|
|
160
|
+
// discriminated props union — and value is intentionally wrong-shaped.
|
|
161
|
+
<CalendarProvider
|
|
162
|
+
{...({
|
|
163
|
+
temporal: T,
|
|
164
|
+
selectionMode,
|
|
165
|
+
value,
|
|
166
|
+
onValueChange: vi.fn(),
|
|
167
|
+
} as unknown as ComponentProps<typeof CalendarProvider>)}
|
|
168
|
+
>
|
|
169
|
+
<div />
|
|
170
|
+
</CalendarProvider>,
|
|
171
|
+
);
|
|
172
|
+
expect(warn).toHaveBeenCalledTimes(1);
|
|
173
|
+
expect(warn).toHaveBeenCalledWith(
|
|
174
|
+
expect.stringContaining("[DatePicker]"),
|
|
175
|
+
);
|
|
176
|
+
expect(warn.mock.calls[0]?.[0]).toMatch(expected.matches);
|
|
177
|
+
warn.mockRestore();
|
|
178
|
+
},
|
|
179
|
+
);
|
|
180
|
+
|
|
181
|
+
it("warns once (not every render) for an out-of-bounds controlled value and never fires onValueChange", () => {
|
|
182
|
+
const warn = vi.spyOn(console, "warn").mockImplementation(() => {});
|
|
183
|
+
const onChange = vi.fn();
|
|
184
|
+
const make = (onValueChange: () => void) => (
|
|
185
|
+
<CalendarProvider
|
|
186
|
+
temporal={T}
|
|
187
|
+
format="PlainDate"
|
|
188
|
+
selectionMode="single"
|
|
189
|
+
value={T.PlainDate.from("2020-06-15")}
|
|
190
|
+
min={T.PlainDate.from("2026-01-01")}
|
|
191
|
+
max={T.PlainDate.from("2026-12-31")}
|
|
192
|
+
onValueChange={onValueChange}
|
|
193
|
+
>
|
|
194
|
+
<div />
|
|
195
|
+
</CalendarProvider>
|
|
196
|
+
);
|
|
197
|
+
const { rerender } = render(make(onChange));
|
|
198
|
+
// Re-render with a fresh inline onValueChange (the common case): the
|
|
199
|
+
// out-of-bounds effect re-runs, but the warning must not repeat.
|
|
200
|
+
rerender(make(vi.fn()));
|
|
201
|
+
expect(onChange).not.toHaveBeenCalled();
|
|
202
|
+
expect(warn).toHaveBeenCalledTimes(1);
|
|
203
|
+
warn.mockRestore();
|
|
204
|
+
});
|
|
205
|
+
|
|
206
|
+
it("still clears and fires onValueChange for an out-of-bounds uncontrolled defaultValue", () => {
|
|
207
|
+
const onChange = vi.fn();
|
|
208
|
+
render(
|
|
209
|
+
<CalendarProvider
|
|
210
|
+
temporal={T}
|
|
211
|
+
format="PlainDate"
|
|
212
|
+
selectionMode="single"
|
|
213
|
+
defaultValue={T.PlainDate.from("2020-06-15")}
|
|
214
|
+
min={T.PlainDate.from("2026-01-01")}
|
|
215
|
+
max={T.PlainDate.from("2026-12-31")}
|
|
216
|
+
onValueChange={onChange}
|
|
217
|
+
>
|
|
218
|
+
<div />
|
|
219
|
+
</CalendarProvider>,
|
|
220
|
+
);
|
|
221
|
+
expect(onChange).toHaveBeenCalledTimes(1);
|
|
222
|
+
expect(onChange).toHaveBeenCalledWith(null, expect.anything());
|
|
223
|
+
});
|
|
224
|
+
});
|
|
@@ -199,6 +199,35 @@ function CalendarProvider<F extends ValueFormat = "PlainDate">(
|
|
|
199
199
|
sortDates,
|
|
200
200
|
]);
|
|
201
201
|
|
|
202
|
+
// Surface (instead of silently self-managing) a controlled `value` whose
|
|
203
|
+
// shape doesn't match the selection mode — otherwise range/multiple values
|
|
204
|
+
// fall through to `undefined` above and the component quietly becomes
|
|
205
|
+
// uncontrolled, which looks like the prop being ignored. Warn once per
|
|
206
|
+
// malformed episode: this effect re-runs whenever the parent inlines a fresh
|
|
207
|
+
// `value` reference, but we only warn when entering the malformed state.
|
|
208
|
+
const warnedMalformedRef = useRef(false);
|
|
209
|
+
useEffect(() => {
|
|
210
|
+
const malformed =
|
|
211
|
+
valueProp != null &&
|
|
212
|
+
((isRange && !isDateRange<F>(valueProp)) ||
|
|
213
|
+
(isMultiple && !Array.isArray(valueProp)));
|
|
214
|
+
if (!malformed) {
|
|
215
|
+
warnedMalformedRef.current = false;
|
|
216
|
+
return;
|
|
217
|
+
}
|
|
218
|
+
if (warnedMalformedRef.current) return;
|
|
219
|
+
warnedMalformedRef.current = true;
|
|
220
|
+
if (isRange) {
|
|
221
|
+
console.warn(
|
|
222
|
+
`[DatePicker] selectionMode="range" expects \`value\` to be a { start, end } DateRange or null, but received ${Array.isArray(valueProp) ? "an array" : typeof valueProp}. Ignoring it and falling back to uncontrolled.`,
|
|
223
|
+
);
|
|
224
|
+
} else {
|
|
225
|
+
console.warn(
|
|
226
|
+
`[DatePicker] selectionMode="multiple" expects \`value\` to be an array or null, but received ${typeof valueProp}. Ignoring it and falling back to uncontrolled.`,
|
|
227
|
+
);
|
|
228
|
+
}
|
|
229
|
+
}, [valueProp, isRange, isMultiple]);
|
|
230
|
+
|
|
202
231
|
const defaultDates = useMemo<(Temporal.PlainDate | null)[]>(() => {
|
|
203
232
|
if (isMultiple) {
|
|
204
233
|
if (multipleDefault) return sortDates(multipleDefault.map(rawToPlain));
|
|
@@ -423,29 +452,48 @@ function CalendarProvider<F extends ValueFormat = "PlainDate">(
|
|
|
423
452
|
]);
|
|
424
453
|
|
|
425
454
|
// --- Out-of-bounds cleanup for single mode ---
|
|
455
|
+
const warnedOutOfBoundsRef = useRef(false);
|
|
426
456
|
useEffect(() => {
|
|
427
457
|
if (isRange || isMultiple) return;
|
|
428
458
|
const start = committedStart;
|
|
429
|
-
if (!start)
|
|
459
|
+
if (!start) {
|
|
460
|
+
warnedOutOfBoundsRef.current = false;
|
|
461
|
+
return;
|
|
462
|
+
}
|
|
430
463
|
const outOfBounds =
|
|
431
464
|
(minValue && T.PlainDate.compare(start, minValue) < 0) ||
|
|
432
465
|
(maxValue && T.PlainDate.compare(start, maxValue) > 0);
|
|
433
|
-
if (outOfBounds) {
|
|
434
|
-
|
|
435
|
-
|
|
436
|
-
|
|
437
|
-
|
|
438
|
-
|
|
439
|
-
|
|
440
|
-
|
|
441
|
-
|
|
442
|
-
|
|
443
|
-
|
|
444
|
-
|
|
445
|
-
|
|
446
|
-
|
|
447
|
-
}
|
|
466
|
+
if (!outOfBounds) {
|
|
467
|
+
warnedOutOfBoundsRef.current = false;
|
|
468
|
+
return;
|
|
469
|
+
}
|
|
470
|
+
if (isControlled) {
|
|
471
|
+
// The parent owns a controlled `value`. Don't clear it or fire
|
|
472
|
+
// onValueChange on mount — that fights the parent and risks a render
|
|
473
|
+
// loop. Warn once (this effect re-runs whenever the parent inlines
|
|
474
|
+
// `onValueChange`) so they can reconcile `value` with min/max.
|
|
475
|
+
if (!warnedOutOfBoundsRef.current) {
|
|
476
|
+
warnedOutOfBoundsRef.current = true;
|
|
477
|
+
console.warn(
|
|
478
|
+
`[DatePicker] The controlled \`value\` is outside the min/max range. It stays selected (rendered disabled) until you update \`value\`; the component will not clear it for you.`,
|
|
479
|
+
);
|
|
480
|
+
}
|
|
481
|
+
return;
|
|
448
482
|
}
|
|
483
|
+
const prev = currentSingleFormatted();
|
|
484
|
+
commitSelection({
|
|
485
|
+
newDates: [],
|
|
486
|
+
fireCallback: (onValueChange) => {
|
|
487
|
+
(
|
|
488
|
+
onValueChange as
|
|
489
|
+
| ((
|
|
490
|
+
v: RawValueForFormat<F> | null,
|
|
491
|
+
m: { date: undefined; previous: RawValueForFormat<F> | null },
|
|
492
|
+
) => void)
|
|
493
|
+
| undefined
|
|
494
|
+
)?.(null, { date: undefined, previous: prev });
|
|
495
|
+
},
|
|
496
|
+
});
|
|
449
497
|
}, [
|
|
450
498
|
minValue,
|
|
451
499
|
maxValue,
|
|
@@ -455,6 +503,7 @@ function CalendarProvider<F extends ValueFormat = "PlainDate">(
|
|
|
455
503
|
T,
|
|
456
504
|
isRange,
|
|
457
505
|
isMultiple,
|
|
506
|
+
isControlled,
|
|
458
507
|
]);
|
|
459
508
|
|
|
460
509
|
// --- onSelect ---
|