impact-nova 2.5.13 → 2.5.15
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/components/data/data-table/build-column-tree-from-grid.d.ts +0 -1
- package/dist/components/data/data-table/build-column-tree-from-grid.js +50 -55
- package/dist/components/data/data-table/data-table-column-apply.d.ts +0 -2
- package/dist/components/data/data-table/data-table-column-apply.js +73 -84
- package/dist/components/data/data-table/data-table-column-list.js +64 -94
- package/dist/components/data/data-table/data-table-column-tree-cache.d.ts +6 -12
- package/dist/components/data/data-table/data-table-column-tree-cache.js +131 -250
- package/dist/components/data/data-table/patch-column-tree-indicators-from-grid.d.ts +0 -5
- package/dist/components/data/data-table/patch-column-tree-indicators-from-grid.js +11 -28
- package/dist/components/data/data-table/use-data-table-column-list-sync.d.ts +0 -10
- package/dist/components/data/data-table/use-data-table-column-list-sync.js +196 -250
- package/dist/components/data/nested-list/components/NestedListContent.d.ts +2 -10
- package/dist/components/data/nested-list/components/NestedListContent.js +138 -253
- package/dist/components/data/nested-list/components/SortableItem.d.ts +1 -2
- package/dist/components/data/nested-list/components/SortableItem.js +60 -62
- package/dist/components/data/nested-list/hooks/useNestedListDragDrop.d.ts +20 -10
- package/dist/components/data/nested-list/hooks/useNestedListDragDrop.js +233 -44
- package/dist/components/data/nested-list/nested-list-constants.d.ts +1 -4
- package/dist/components/data/nested-list/nested-list-constants.js +4 -10
- package/dist/components/data/nested-list/nested-list.js +336 -322
- package/dist/components/data/nested-list/nested-list.types.d.ts +0 -17
- package/dist/components/data-display/calendar/calendar-apply-validation.d.ts +2 -0
- package/dist/components/data-display/calendar/calendar-apply-validation.js +64 -67
- package/dist/components/data-display/calendar/calendar-available-view.d.ts +27 -0
- package/dist/components/data-display/calendar/calendar-available-view.js +85 -0
- package/dist/components/data-display/calendar/calendar-config.js +1 -1
- package/dist/components/data-display/calendar/calendar-day-picker-components.d.ts +4 -2
- package/dist/components/data-display/calendar/calendar-day-picker-components.js +234 -164
- package/dist/components/data-display/calendar/calendar-day-picker-view.js +77 -76
- package/dist/components/data-display/calendar/calendar-fiscal-day-cell.d.ts +9 -0
- package/dist/components/data-display/calendar/calendar-fiscal-day-cell.js +45 -0
- package/dist/components/data-display/calendar/calendar-fiscal-period-nav.d.ts +6 -0
- package/dist/components/data-display/calendar/calendar-fiscal-period-nav.js +34 -18
- package/dist/components/data-display/calendar/calendar-footer.js +21 -21
- package/dist/components/data-display/calendar/calendar-injected-week-row.d.ts +5 -0
- package/dist/components/data-display/calendar/calendar-injected-week-row.js +92 -0
- package/dist/components/data-display/calendar/calendar-leading-week.utils.d.ts +16 -0
- package/dist/components/data-display/calendar/calendar-leading-week.utils.js +51 -0
- package/dist/components/data-display/calendar/calendar-month-picker-panel.js +50 -49
- package/dist/components/data-display/calendar/calendar-month-utils.d.ts +5 -0
- package/dist/components/data-display/calendar/calendar-month-utils.js +85 -64
- package/dist/components/data-display/calendar/calendar-orphan-week.d.ts +23 -0
- package/dist/components/data-display/calendar/calendar-padding-week.utils.d.ts +3 -1
- package/dist/components/data-display/calendar/calendar-padding-week.utils.js +7 -5
- package/dist/components/data-display/calendar/calendar-period-cell.js +45 -46
- package/dist/components/data-display/calendar/calendar-quarter-panes.js +33 -31
- package/dist/components/data-display/calendar/calendar-selection-appearance.d.ts +10 -0
- package/dist/components/data-display/calendar/calendar-selection-appearance.js +53 -39
- package/dist/components/data-display/calendar/calendar-selection.d.ts +25 -0
- package/dist/components/data-display/calendar/calendar-selection.js +52 -23
- package/dist/components/data-display/calendar/calendar-week-number-cell.d.ts +2 -1
- package/dist/components/data-display/calendar/calendar-week-number-cell.js +59 -45
- package/dist/components/data-display/calendar/calendar-week-utils.d.ts +15 -4
- package/dist/components/data-display/calendar/calendar-week-utils.js +59 -50
- package/dist/components/data-display/calendar/calendar-year-panes.d.ts +3 -0
- package/dist/components/data-display/calendar/calendar-year-panes.js +53 -49
- package/dist/components/data-display/calendar/calendar.js +146 -143
- package/dist/components/data-display/calendar/calendar.types.d.ts +5 -0
- package/dist/components/data-display/calendar/use-calendar-day-picker-config.d.ts +2 -1
- package/dist/components/data-display/calendar/use-calendar-day-picker-config.js +79 -74
- package/dist/components/data-display/calendar/use-calendar-state.d.ts +3 -1
- package/dist/components/data-display/calendar/use-calendar-state.js +394 -314
- package/dist/components/forms/date-picker/date-picker.js +60 -58
- package/dist/components/forms/date-picker/date-picker.types.d.ts +5 -0
- package/dist/components/forms/date-picker/date-range-picker.js +66 -64
- package/dist/components/forms/date-picker/fiscal-pass-through.d.ts +1 -0
- package/dist/components/forms/date-picker/fiscal-pass-through.js +3 -2
- package/dist/components/forms/date-picker/fiscal-picker-fixtures.d.ts +17 -0
- package/dist/components/forms/date-picker/month-picker.js +61 -59
- package/dist/components/forms/date-picker/month-range-picker.js +63 -61
- package/dist/components/forms/date-picker/multi-date-picker.js +51 -49
- package/dist/components/forms/date-picker/multi-month-picker.js +49 -47
- package/dist/components/forms/date-picker/multi-quarter-picker.js +51 -47
- package/dist/components/forms/date-picker/multi-week-picker.js +53 -51
- package/dist/components/forms/date-picker/multi-year-picker.js +53 -49
- package/dist/components/forms/date-picker/quarter-picker.js +51 -47
- package/dist/components/forms/date-picker/quarter-range-picker.js +50 -46
- package/dist/components/forms/date-picker/week-picker.js +130 -126
- package/dist/components/forms/date-picker/week-range-picker.js +159 -155
- package/dist/components/forms/date-picker/year-picker.js +52 -48
- package/dist/components/forms/date-picker/year-range-picker.js +52 -48
- package/dist/form-react/Fields/DateInputField.js +51 -50
- package/dist/form-react/Fields/DateRangeField.js +14 -13
- package/dist/form-react/Fields/MonthRangeField.js +29 -28
- package/dist/form-react/Fields/MultiMonthPickerField.js +13 -12
- package/dist/form-react/Fields/MultiWeekPickerField.js +35 -27
- package/dist/form-react/Fields/MultiYearPickerField.d.ts +8 -0
- package/dist/form-react/Fields/MultiYearPickerField.js +58 -0
- package/dist/form-react/Fields/WeekRangePicker.js +33 -32
- package/dist/form-react/Fields/YearPickerField.d.ts +8 -0
- package/dist/form-react/Fields/YearPickerField.js +58 -0
- package/dist/form-react/Fields/YearRangePickerField.d.ts +8 -0
- package/dist/form-react/Fields/YearRangePickerField.js +58 -0
- package/dist/form-react/registry/defaultFieldRegistrations.d.ts +1 -1
- package/dist/form-react/registry/defaultFieldRegistrations.js +16 -13
- package/dist/form-react/types/fields.types.d.ts +72 -1
- package/dist/form-react/types/fieldsOutput.types.d.ts +8 -2
- package/dist/form-react/utils/fieldDefaults.utils.js +1 -1
- package/dist/impact-nova-components.css +13 -6
- package/dist/impact-nova.css +1 -1
- package/dist/lib/fiscal-calendar/index.d.ts +2 -2
- package/dist/lib/fiscal-calendar/index.js +26 -28
- package/dist/lib/fiscal-calendar/types.d.ts +0 -7
- package/dist/lib/fiscal-calendar/week-selection.d.ts +3 -4
- package/dist/lib/fiscal-calendar/week-selection.js +52 -79
- package/dist/llms/rules/ag-grid.js +1 -1
- package/dist/llms/rules/installation.js +1 -1
- package/dist/llms/rules/requirements.js +1 -1
- package/package.json +1 -1
- package/dist/components/data/data-table/column-picker-authority.d.ts +0 -34
- package/dist/components/data/data-table/column-picker-authority.js +0 -116
- package/dist/components/data/data-table/column-picker-drop-validation.d.ts +0 -7
- package/dist/components/data/data-table/column-picker-drop-validation.js +0 -37
- package/dist/components/data/data-table/data-table-column-list-tree-apply.d.ts +0 -10
- package/dist/components/data/data-table/data-table-column-list-tree-apply.js +0 -79
- package/dist/components/data/data-table/data-table-flat-column-virtual-rows.d.ts +0 -26
- package/dist/components/data/data-table/data-table-flat-column-virtual-rows.js +0 -195
- package/dist/components/data/data-table/data-table-picker-column-eligibility.d.ts +0 -1
- package/dist/components/data/data-table/data-table-picker-column-eligibility.js +0 -7
- package/dist/components/data/data-table/reconcile-column-tree-from-grid.d.ts +0 -12
- package/dist/components/data/data-table/reconcile-column-tree-from-grid.js +0 -12
- package/dist/components/data/nested-list/hooks/useVirtualNestedListDrag.d.ts +0 -24
- package/dist/components/data/nested-list/hooks/useVirtualNestedListDrag.js +0 -128
- package/dist/components/data/nested-list/nested-list-display-utils.d.ts +0 -11
- package/dist/components/data/nested-list/nested-list-display-utils.js +0 -74
- package/dist/components/data/nested-list/nested-list-drop-engine.d.ts +0 -31
- package/dist/components/data/nested-list/nested-list-drop-engine.js +0 -209
- package/dist/components/data/nested-list/nested-list-flat-virtual-handlers.d.ts +0 -26
- package/dist/components/data/nested-list/nested-list-flat-virtual-handlers.js +0 -67
- package/dist/components/data/nested-list/nested-list-item-tree-mutations.d.ts +0 -4
- package/dist/components/data/nested-list/nested-list-item-tree-mutations.js +0 -43
- package/dist/components/data/nested-list/nested-list-lazy-flat-rows.d.ts +0 -3
- package/dist/components/data/nested-list/nested-list-lazy-flat-rows.js +0 -34
- package/dist/components/data/nested-list/nested-list-row-estimates.d.ts +0 -9
- package/dist/components/data/nested-list/nested-list-row-estimates.js +0 -14
- package/dist/components/data/nested-list/nested-list-scroll-anchor.d.ts +0 -36
- package/dist/components/data/nested-list/nested-list-scroll-anchor.js +0 -47
- package/dist/components/data/nested-list/nested-list-virtual-drop.d.ts +0 -59
- package/dist/components/data/nested-list/nested-list-virtual-drop.js +0 -341
- package/dist/lib/hash/fnv1a128.d.ts +0 -16
- package/dist/lib/hash/fnv1a128.js +0 -21
|
@@ -1,85 +1,94 @@
|
|
|
1
1
|
import { civilFromLocalDate as l } from "../../../lib/fiscal-calendar/civil-date.js";
|
|
2
|
-
import { resolveWeekSelection as
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
2
|
+
import { resolveWeekSelection as S } from "../../../lib/fiscal-calendar/week-selection.js";
|
|
3
|
+
import { isCalendarPaddingWeek as y } from "./calendar-padding-week.utils.js";
|
|
4
|
+
function _(e, r) {
|
|
5
|
+
const a = e.days[0]?.date;
|
|
6
|
+
if (a)
|
|
7
|
+
return r?.(a)?.fiscalPeriod;
|
|
7
8
|
}
|
|
8
|
-
function
|
|
9
|
+
function T(e) {
|
|
9
10
|
return e.calendarKind !== "fiscal" || e.weekPeriod == null || e.panePeriod == null ? !1 : e.weekPeriod !== e.panePeriod;
|
|
10
11
|
}
|
|
11
|
-
function
|
|
12
|
-
return e.
|
|
12
|
+
function k(e) {
|
|
13
|
+
return e.calendarKind !== "fiscal" || e.weekPeriod == null || e.panePeriod == null ? !1 : e.weekPeriod === e.panePeriod;
|
|
13
14
|
}
|
|
14
|
-
function
|
|
15
|
-
|
|
16
|
-
return W(o, n);
|
|
15
|
+
function E(e, r) {
|
|
16
|
+
return k(r) ? !1 : y(e) || T(r);
|
|
17
17
|
}
|
|
18
|
-
function
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
18
|
+
function d(e, r) {
|
|
19
|
+
return e.year === r.year && e.month === r.month && e.weekOfMonth === r.weekOfMonth;
|
|
20
|
+
}
|
|
21
|
+
function F(e, r) {
|
|
22
|
+
const a = e instanceof Date ? e : e.days.find((t) => !t.outside)?.date ?? e.days[0]?.date ?? /* @__PURE__ */ new Date();
|
|
23
|
+
return S(a, r);
|
|
24
|
+
}
|
|
25
|
+
function H(e, r, a) {
|
|
26
|
+
if (a === "single") return e;
|
|
27
|
+
if (a === "multiple") {
|
|
28
|
+
const i = r || [];
|
|
29
|
+
return i.some((f) => d(f, e)) ? i.filter((f) => !d(f, e)) : [...i, e];
|
|
23
30
|
}
|
|
24
|
-
const t =
|
|
31
|
+
const t = r;
|
|
25
32
|
if (!t?.from || t.to) return { from: e };
|
|
26
|
-
if (
|
|
33
|
+
if (d(e, t.from)) return t;
|
|
27
34
|
const s = { from: t.from, to: e };
|
|
28
35
|
return e.startDate < t.from.startDate && (s.from = e, s.to = t.from), s;
|
|
29
36
|
}
|
|
30
|
-
function
|
|
37
|
+
function R(e) {
|
|
31
38
|
if (!e) return;
|
|
32
|
-
const
|
|
39
|
+
const r = [], a = (t) => {
|
|
33
40
|
const s = new Date(t.startDate);
|
|
34
41
|
s.setHours(0, 0, 0, 0);
|
|
35
|
-
const
|
|
36
|
-
for (
|
|
37
|
-
|
|
42
|
+
const i = new Date(t.endDate);
|
|
43
|
+
for (i.setHours(0, 0, 0, 0); s <= i; )
|
|
44
|
+
r.push(new Date(s)), s.setDate(s.getDate() + 1);
|
|
38
45
|
};
|
|
39
46
|
if (Array.isArray(e))
|
|
40
|
-
e.forEach(
|
|
47
|
+
e.forEach(a);
|
|
41
48
|
else if ("from" in e) {
|
|
42
49
|
if (e.from)
|
|
43
50
|
if (!e.to)
|
|
44
|
-
|
|
51
|
+
a(e.from);
|
|
45
52
|
else {
|
|
46
53
|
const t = new Date(e.from.startDate);
|
|
47
54
|
t.setHours(0, 0, 0, 0);
|
|
48
55
|
const s = new Date(e.to.endDate);
|
|
49
56
|
for (s.setHours(0, 0, 0, 0); t <= s; )
|
|
50
|
-
|
|
57
|
+
r.push(new Date(t)), t.setDate(t.getDate() + 1);
|
|
51
58
|
}
|
|
52
59
|
} else
|
|
53
|
-
|
|
54
|
-
return
|
|
60
|
+
a(e);
|
|
61
|
+
return r;
|
|
55
62
|
}
|
|
56
|
-
function
|
|
63
|
+
function x(e, r, a) {
|
|
57
64
|
if (!e || e.length === 0)
|
|
58
65
|
return { range_start: [], range_middle: [], range_end: [] };
|
|
59
|
-
const t = [...e].sort((
|
|
60
|
-
|
|
61
|
-
f.add(l(
|
|
66
|
+
const t = [...e].sort((n, o) => n.getTime() - o.getTime()), s = [], i = [], u = [], f = /* @__PURE__ */ new Set(), m = /* @__PURE__ */ new Set();
|
|
67
|
+
r === "multiple" && Array.isArray(a) && a.forEach((n) => {
|
|
68
|
+
f.add(l(n.startDate)), m.add(l(n.endDate));
|
|
62
69
|
});
|
|
63
|
-
const D = (
|
|
64
|
-
if (
|
|
65
|
-
const c = t[
|
|
66
|
-
return
|
|
67
|
-
}, p = (
|
|
68
|
-
return t.forEach((
|
|
69
|
-
const c = l(
|
|
70
|
-
if (
|
|
71
|
-
|
|
70
|
+
const D = (n, o) => {
|
|
71
|
+
if (o === 0) return !1;
|
|
72
|
+
const c = t[o - 1];
|
|
73
|
+
return n.getTime() - c.getTime() <= 1440 * 60 * 1e3;
|
|
74
|
+
}, p = (n, o) => o === t.length - 1 ? !1 : t[o + 1].getTime() - n.getTime() <= 1440 * 60 * 1e3;
|
|
75
|
+
return t.forEach((n, o) => {
|
|
76
|
+
const c = l(n), W = f.has(c), P = m.has(c), h = D(n, o), g = p(n, o);
|
|
77
|
+
if (r === "multiple") {
|
|
78
|
+
W ? s.push(n) : P ? u.push(n) : i.push(n);
|
|
72
79
|
return;
|
|
73
80
|
}
|
|
74
|
-
!h && !g ? (s.push(
|
|
75
|
-
}), { range_start: s, range_middle:
|
|
81
|
+
!h && !g ? (s.push(n), u.push(n)) : h ? g ? i.push(n) : u.push(n) : s.push(n);
|
|
82
|
+
}), { range_start: s, range_middle: i, range_end: u };
|
|
76
83
|
}
|
|
77
84
|
export {
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
+
F as calculateWeekSelection,
|
|
86
|
+
x as computeWeekRangeModifiers,
|
|
87
|
+
_ as fiscalPeriodForWeek,
|
|
88
|
+
T as isForeignFiscalWeekRow,
|
|
89
|
+
k as isOwnedFiscalWeekRow,
|
|
90
|
+
d as isSameWeek,
|
|
91
|
+
H as nextWeekSelection,
|
|
92
|
+
E as shouldHideCalendarWeekRow,
|
|
93
|
+
R as weekSelectionsToDates
|
|
85
94
|
};
|
|
@@ -1,4 +1,7 @@
|
|
|
1
1
|
import { YearRange, YearSelection } from './calendar.types';
|
|
2
|
+
export declare const YEAR_PAGE_SIZE = 12;
|
|
3
|
+
export declare const YEAR_CAPTION_PAGE_SIZE = 6;
|
|
4
|
+
export declare const YEAR_PANE_WIDTH_CLASS = "w-[320px] min-w-[320px] max-w-[320px]";
|
|
2
5
|
export interface CalendarYearPanesProps {
|
|
3
6
|
pickerYear: number;
|
|
4
7
|
resolvedStartYear: number;
|
|
@@ -1,63 +1,64 @@
|
|
|
1
1
|
import { jsxs as r, jsx as e } from "react/jsx-runtime";
|
|
2
|
-
import { ChevronRight as
|
|
3
|
-
import { cn as
|
|
4
|
-
import { Button as
|
|
5
|
-
import { CalendarPeriodCell as
|
|
6
|
-
import {
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
2
|
+
import { ChevronRight as A } from "impact-nova-icons";
|
|
3
|
+
import { cn as N } from "../../../lib/utils.js";
|
|
4
|
+
import { Button as S } from "../../primitives/button/button.js";
|
|
5
|
+
import { CalendarPeriodCell as M } from "./calendar-period-cell.js";
|
|
6
|
+
import { PERIOD_RANGE_GRID_CLASSNAME as Y } from "./calendar-selection-appearance.js";
|
|
7
|
+
import { getYearRangeProps as O, isYearRangeSelection as T } from "./calendar-year-utils.js";
|
|
8
|
+
const Z = 12, H = 6, W = "w-[320px] min-w-[320px] max-w-[320px]";
|
|
9
|
+
function V({
|
|
10
|
+
pickerYear: _,
|
|
10
11
|
resolvedStartYear: d,
|
|
11
12
|
resolvedEndYear: m,
|
|
12
|
-
previousYearLabel:
|
|
13
|
-
nextYearLabel:
|
|
14
|
-
yearLabels:
|
|
13
|
+
previousYearLabel: R,
|
|
14
|
+
nextYearLabel: u,
|
|
15
|
+
yearLabels: c,
|
|
15
16
|
yearCaptions: p,
|
|
16
|
-
showFooter:
|
|
17
|
-
pendingYearSelection:
|
|
18
|
-
selectedYear:
|
|
19
|
-
isYearSelected:
|
|
20
|
-
isYearDisabled:
|
|
21
|
-
onYearPageChange:
|
|
22
|
-
onYearClick:
|
|
17
|
+
showFooter: v = !0,
|
|
18
|
+
pendingYearSelection: w,
|
|
19
|
+
selectedYear: C,
|
|
20
|
+
isYearSelected: P,
|
|
21
|
+
isYearDisabled: b,
|
|
22
|
+
onYearPageChange: h,
|
|
23
|
+
onYearClick: I
|
|
23
24
|
}) {
|
|
24
|
-
const
|
|
25
|
-
(
|
|
26
|
-
),
|
|
25
|
+
const i = !!p, n = i ? H : Z, o = Math.floor(_ / n) * n, f = o + n - 1, s = Array.from({ length: n }, (t, l) => o + l).filter(
|
|
26
|
+
(t) => t >= d && t <= m
|
|
27
|
+
), g = s[0] ?? o, E = s[s.length - 1] ?? f, a = v ? w : C, x = T(a) ? a : void 0;
|
|
27
28
|
return /* @__PURE__ */ r(
|
|
28
29
|
"div",
|
|
29
30
|
{
|
|
30
31
|
"data-slot": "year-panes",
|
|
31
|
-
className: "flex
|
|
32
|
+
className: N("flex flex-col gap-4 overflow-hidden p-3", W),
|
|
32
33
|
children: [
|
|
33
34
|
/* @__PURE__ */ r("div", { className: "flex items-center justify-between", children: [
|
|
34
35
|
/* @__PURE__ */ e(
|
|
35
|
-
|
|
36
|
+
S,
|
|
36
37
|
{
|
|
37
38
|
variant: "ghost",
|
|
38
39
|
size: "icon",
|
|
39
40
|
className: "h-7 w-7 shrink-0",
|
|
40
|
-
"aria-label":
|
|
41
|
-
disabled:
|
|
42
|
-
onClick: () =>
|
|
43
|
-
children: /* @__PURE__ */ e(
|
|
41
|
+
"aria-label": R,
|
|
42
|
+
disabled: o <= d,
|
|
43
|
+
onClick: () => h(o - n),
|
|
44
|
+
children: /* @__PURE__ */ e(A, { size: 16, className: "rotate-180" })
|
|
44
45
|
}
|
|
45
46
|
),
|
|
46
47
|
/* @__PURE__ */ r("div", { className: "text-sm font-medium text-content", children: [
|
|
47
|
-
|
|
48
|
+
c?.(g) ?? g,
|
|
48
49
|
" – ",
|
|
49
|
-
|
|
50
|
+
c?.(E) ?? E
|
|
50
51
|
] }),
|
|
51
52
|
/* @__PURE__ */ e(
|
|
52
|
-
|
|
53
|
+
S,
|
|
53
54
|
{
|
|
54
55
|
variant: "ghost",
|
|
55
56
|
size: "icon",
|
|
56
57
|
className: "h-7 w-7",
|
|
57
|
-
"aria-label":
|
|
58
|
-
disabled:
|
|
59
|
-
onClick: () =>
|
|
60
|
-
children: /* @__PURE__ */ e(
|
|
58
|
+
"aria-label": u,
|
|
59
|
+
disabled: f >= m,
|
|
60
|
+
onClick: () => h(o + n),
|
|
61
|
+
children: /* @__PURE__ */ e(A, { className: "h-4 w-4" })
|
|
61
62
|
}
|
|
62
63
|
)
|
|
63
64
|
] }),
|
|
@@ -65,26 +66,26 @@ function U({
|
|
|
65
66
|
"div",
|
|
66
67
|
{
|
|
67
68
|
"data-period-grid": "",
|
|
68
|
-
className:
|
|
69
|
-
children: s.map((
|
|
70
|
-
const l =
|
|
69
|
+
className: N(Y, i ? "grid-cols-2" : "grid-cols-3"),
|
|
70
|
+
children: s.map((t) => {
|
|
71
|
+
const l = P(t), z = b(t), k = !!x, { isStart: B, isEnd: G, isMiddle: j } = O(t, a), D = p?.(t);
|
|
71
72
|
return /* @__PURE__ */ e(
|
|
72
|
-
|
|
73
|
+
M,
|
|
73
74
|
{
|
|
74
75
|
selected: l,
|
|
75
|
-
disabled:
|
|
76
|
+
disabled: z,
|
|
76
77
|
isRange: k,
|
|
77
78
|
isStart: B,
|
|
78
|
-
isEnd:
|
|
79
|
-
isMiddle:
|
|
80
|
-
hasRangeEnd: !!
|
|
81
|
-
size:
|
|
82
|
-
columns:
|
|
83
|
-
onClick: () =>
|
|
84
|
-
caption:
|
|
85
|
-
children:
|
|
79
|
+
isEnd: G,
|
|
80
|
+
isMiddle: j,
|
|
81
|
+
hasRangeEnd: !!x?.to,
|
|
82
|
+
size: i ? "year-caption" : "year",
|
|
83
|
+
columns: i ? 2 : 3,
|
|
84
|
+
onClick: () => I(t),
|
|
85
|
+
caption: D,
|
|
86
|
+
children: c?.(t) ?? String(t)
|
|
86
87
|
},
|
|
87
|
-
|
|
88
|
+
t
|
|
88
89
|
);
|
|
89
90
|
})
|
|
90
91
|
}
|
|
@@ -94,5 +95,8 @@ function U({
|
|
|
94
95
|
);
|
|
95
96
|
}
|
|
96
97
|
export {
|
|
97
|
-
|
|
98
|
+
V as CalendarYearPanes,
|
|
99
|
+
H as YEAR_CAPTION_PAGE_SIZE,
|
|
100
|
+
Z as YEAR_PAGE_SIZE,
|
|
101
|
+
W as YEAR_PANE_WIDTH_CLASS
|
|
98
102
|
};
|