impact-nova 2.5.10 → 2.5.11
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/expandable-list-item/expandable-list-item-attributes.js +3 -2
- package/dist/components/data/expandable-list-item/expandable-list-item-metrics.js +3 -2
- 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-day-picker-components.d.ts +4 -2
- package/dist/components/data-display/calendar/calendar-day-picker-components.js +163 -152
- package/dist/components/data-display/calendar/calendar-day-picker-view.js +77 -76
- 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-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-selection-appearance.d.ts +1 -0
- package/dist/components/data-display/calendar/calendar-selection-appearance.js +31 -30
- 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 +55 -41
- package/dist/components/data-display/calendar/calendar-year-panes.d.ts +2 -0
- package/dist/components/data-display/calendar/calendar-year-panes.js +3 -1
- 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 +403 -325
- package/dist/components/feedback/tooltip/tab-tooltip-render.js +3 -2
- package/dist/components/flows/command-palette/shortcut-settings.js +10 -10
- package/dist/components/flows/filter-panel/filter-panel.js +4 -4
- 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/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 +46 -44
- package/dist/components/forms/date-picker/multi-week-picker.js +53 -51
- package/dist/components/forms/date-picker/multi-year-picker.js +48 -46
- package/dist/components/forms/date-picker/quarter-picker.js +46 -44
- package/dist/components/forms/date-picker/quarter-range-picker.js +45 -43
- package/dist/components/forms/date-picker/week-picker.js +68 -66
- package/dist/components/forms/date-picker/week-range-picker.js +82 -80
- package/dist/components/forms/date-picker/year-picker.js +47 -45
- package/dist/components/forms/date-picker/year-range-picker.js +47 -45
- package/dist/components/forms/select/components/SelectTriggerValue.js +3 -2
- package/dist/components/forms/select/components/Submenu.js +3 -2
- 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 +18 -17
- package/dist/form-react/Fields/WeekRangePicker.js +22 -21
- package/dist/form-react/types/fields.types.d.ts +12 -0
- package/dist/impact-nova.css +1 -1
- package/dist/llms/rules/installation.js +1 -1
- package/dist/llms/rules/requirements.js +1 -1
- package/package.json +1 -1
|
@@ -1,67 +1,73 @@
|
|
|
1
|
-
import { jsx as i, jsxs as
|
|
2
|
-
import * as
|
|
3
|
-
import { useDayPicker as
|
|
4
|
-
import { ChevronRight as
|
|
1
|
+
import { jsx as i, jsxs as M } from "react/jsx-runtime";
|
|
2
|
+
import * as k from "react";
|
|
3
|
+
import { useDayPicker as ue } from "react-day-picker";
|
|
4
|
+
import { ChevronRight as Q } from "impact-nova-icons";
|
|
5
5
|
import { cn as y } from "../../../lib/utils.js";
|
|
6
|
-
import { Button as
|
|
7
|
-
import { Select as
|
|
8
|
-
import { CalendarCaptionHeader as
|
|
9
|
-
import { CalendarDayButton as
|
|
10
|
-
import { PanelIndexContext as
|
|
11
|
-
import { CalendarWeekNumberCell as
|
|
12
|
-
import { paneCivilMonthIndex as
|
|
13
|
-
import { buildFiscalYear as
|
|
14
|
-
import { civilMonthAtOffset as N, midMonthDate as
|
|
15
|
-
import { getAvailableMonths as
|
|
16
|
-
import { isCalendarPaddingWeek as
|
|
17
|
-
import { isForeignFiscalWeekRow as
|
|
18
|
-
import { FiscalPeriodCaptionSelect as
|
|
19
|
-
function
|
|
20
|
-
if (
|
|
6
|
+
import { Button as U } from "../../primitives/button/button.js";
|
|
7
|
+
import { Select as X } from "../../forms/select/select.js";
|
|
8
|
+
import { CalendarCaptionHeader as me } from "./calendar-caption-header.js";
|
|
9
|
+
import { CalendarDayButton as pe } from "./calendar-day-button.js";
|
|
10
|
+
import { PanelIndexContext as D } from "./calendar-panel-context.js";
|
|
11
|
+
import { CalendarWeekNumberCell as he } from "./calendar-week-number-cell.js";
|
|
12
|
+
import { paneCivilMonthIndex as ve } from "./calendar-week-number-header.js";
|
|
13
|
+
import { buildFiscalYear as xe } from "../../../lib/fiscal-calendar/build-year.js";
|
|
14
|
+
import { civilMonthAtOffset as N, midMonthDate as g, periodForFiscalYearChange as ke, visibleMonthForPeriod as Z, periodsAvailableInBounds as Pe, periodForCivilMonth as $ } from "./calendar-fiscal-period-nav.js";
|
|
15
|
+
import { getAvailableMonths as ye, isWeekSelectableInBounds as De } from "./calendar-month-utils.js";
|
|
16
|
+
import { isCalendarPaddingWeek as L, weekHasInMonthSelection as Se, weekIntervalContinues as We } from "./calendar-padding-week.utils.js";
|
|
17
|
+
import { isForeignFiscalWeekRow as T, fiscalPeriodForWeek as V } from "./calendar-week-utils.js";
|
|
18
|
+
import { FiscalPeriodCaptionSelect as be } from "./fiscal-period-caption-select.js";
|
|
19
|
+
function C(h, f, l) {
|
|
20
|
+
if (f != null && h)
|
|
21
21
|
try {
|
|
22
|
-
return
|
|
22
|
+
return xe(h, f).periods;
|
|
23
23
|
} catch {
|
|
24
24
|
}
|
|
25
|
-
return
|
|
25
|
+
return l ?? [];
|
|
26
26
|
}
|
|
27
|
-
function
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
27
|
+
function K(h, f, l) {
|
|
28
|
+
const S = h.days[0]?.date, m = h.days[h.days.length - 1]?.date;
|
|
29
|
+
return !S || !m ? !1 : De(S, m, f, l);
|
|
30
|
+
}
|
|
31
|
+
function Je({
|
|
32
|
+
buttonVariant: h,
|
|
33
|
+
pickerType: f,
|
|
34
|
+
calendarKind: l,
|
|
35
|
+
granularity: S,
|
|
36
|
+
currentMonth: m,
|
|
37
|
+
monthsFull: A,
|
|
38
|
+
monthsShort: ee,
|
|
39
|
+
resolvedStartMonth: te,
|
|
40
|
+
resolvedEndMonth: oe,
|
|
41
|
+
availableYears: Y,
|
|
42
|
+
fiscalPeriods: F,
|
|
38
43
|
fiscalConfig: W,
|
|
39
|
-
weekStartsOn:
|
|
40
|
-
previousMonthLabel:
|
|
41
|
-
nextMonthLabel:
|
|
42
|
-
monthPlaceholder:
|
|
43
|
-
yearPlaceholder:
|
|
44
|
-
weekNumberLabel:
|
|
45
|
-
weekNumberHeader:
|
|
46
|
-
weekLabel:
|
|
47
|
-
fiscalWeekNumberLabel:
|
|
48
|
-
fiscalWeekAriaLabel:
|
|
49
|
-
getCellMeta:
|
|
50
|
-
onMonthChange:
|
|
51
|
-
onWeekSelect:
|
|
52
|
-
periodRowHover:
|
|
53
|
-
weekMode:
|
|
54
|
-
showPeriodBoundaries:
|
|
55
|
-
|
|
44
|
+
weekStartsOn: ne,
|
|
45
|
+
previousMonthLabel: B,
|
|
46
|
+
nextMonthLabel: j,
|
|
47
|
+
monthPlaceholder: O,
|
|
48
|
+
yearPlaceholder: re,
|
|
49
|
+
weekNumberLabel: ie,
|
|
50
|
+
weekNumberHeader: R,
|
|
51
|
+
weekLabel: se,
|
|
52
|
+
fiscalWeekNumberLabel: ae,
|
|
53
|
+
fiscalWeekAriaLabel: le,
|
|
54
|
+
getCellMeta: d,
|
|
55
|
+
onMonthChange: P,
|
|
56
|
+
onWeekSelect: z,
|
|
57
|
+
periodRowHover: _ = !1,
|
|
58
|
+
weekMode: E = "single",
|
|
59
|
+
showPeriodBoundaries: ce = !1,
|
|
60
|
+
disabled: w,
|
|
61
|
+
components: de
|
|
56
62
|
}) {
|
|
57
|
-
function
|
|
58
|
-
if (
|
|
59
|
-
const t = N(
|
|
60
|
-
return
|
|
61
|
-
|
|
63
|
+
function G(e) {
|
|
64
|
+
if (l !== "fiscal") return;
|
|
65
|
+
const t = N(m, e);
|
|
66
|
+
return $(
|
|
67
|
+
C(
|
|
62
68
|
W,
|
|
63
|
-
|
|
64
|
-
|
|
69
|
+
d?.(g(t))?.fy ?? d?.(t)?.fy,
|
|
70
|
+
F
|
|
65
71
|
),
|
|
66
72
|
t.getFullYear(),
|
|
67
73
|
t.getMonth()
|
|
@@ -70,226 +76,231 @@ function ze({
|
|
|
70
76
|
return {
|
|
71
77
|
Root: ({ className: e, rootRef: t, ...o }) => /* @__PURE__ */ i("div", { "data-slot": "calendar", ref: t, className: y(e), ...o }),
|
|
72
78
|
Chevron: ({ className: e, orientation: t, ...o }) => t === "left" ? /* @__PURE__ */ i(
|
|
73
|
-
|
|
79
|
+
Q,
|
|
74
80
|
{
|
|
75
81
|
size: 16,
|
|
76
82
|
className: y("rotate-180 text-content", e),
|
|
77
83
|
...o
|
|
78
84
|
}
|
|
79
|
-
) : t === "right" ? /* @__PURE__ */ i(
|
|
85
|
+
) : t === "right" ? /* @__PURE__ */ i(Q, { size: 16, className: y("text-content", e), ...o }) : /* @__PURE__ */ i("span", {}),
|
|
80
86
|
PreviousMonthButton: (e) => /* @__PURE__ */ i(
|
|
81
|
-
|
|
87
|
+
U,
|
|
82
88
|
{
|
|
83
|
-
variant:
|
|
89
|
+
variant: h,
|
|
84
90
|
size: "icon",
|
|
85
91
|
className: "h-7 w-7",
|
|
86
|
-
"aria-label":
|
|
87
|
-
title:
|
|
92
|
+
"aria-label": B,
|
|
93
|
+
title: B,
|
|
88
94
|
...e
|
|
89
95
|
}
|
|
90
96
|
),
|
|
91
97
|
NextMonthButton: (e) => /* @__PURE__ */ i(
|
|
92
|
-
|
|
98
|
+
U,
|
|
93
99
|
{
|
|
94
|
-
variant:
|
|
100
|
+
variant: h,
|
|
95
101
|
size: "icon",
|
|
96
102
|
className: "h-7 w-7",
|
|
97
|
-
"aria-label":
|
|
98
|
-
title:
|
|
103
|
+
"aria-label": j,
|
|
104
|
+
title: j,
|
|
99
105
|
...e
|
|
100
106
|
}
|
|
101
107
|
),
|
|
102
108
|
MonthCaption: ({ displayIndex: e, calendarMonth: t, ...o }) => /* @__PURE__ */ i("div", { ...o }),
|
|
103
109
|
Month: ({ calendarMonth: e, displayIndex: t, className: o, children: r, ...s }) => {
|
|
104
|
-
const
|
|
105
|
-
return /* @__PURE__ */ i(
|
|
106
|
-
a.length > 0 ? /* @__PURE__ */ i(
|
|
107
|
-
|
|
110
|
+
const c = k.Children.toArray(r), p = c[c.length - 1], a = c.slice(0, -1);
|
|
111
|
+
return /* @__PURE__ */ i(D.Provider, { value: t, children: /* @__PURE__ */ M("div", { className: y(o), ...s, children: [
|
|
112
|
+
a.length > 0 ? /* @__PURE__ */ i(me, { children: a }) : null,
|
|
113
|
+
p
|
|
108
114
|
] }) });
|
|
109
115
|
},
|
|
110
116
|
Months: ({ className: e, children: t, ...o }) => /* @__PURE__ */ i(
|
|
111
117
|
"div",
|
|
112
118
|
{
|
|
113
119
|
"data-slot": "day-months",
|
|
114
|
-
"data-period-row-hover":
|
|
115
|
-
"data-week-gutter-track":
|
|
120
|
+
"data-period-row-hover": _ ? "true" : void 0,
|
|
121
|
+
"data-week-gutter-track": f === "week" ? "true" : void 0,
|
|
116
122
|
className: y(e),
|
|
117
123
|
...o,
|
|
118
124
|
children: t
|
|
119
125
|
}
|
|
120
126
|
),
|
|
121
127
|
DropdownNav: ({ children: e, className: t, ...o }) => {
|
|
122
|
-
if (
|
|
128
|
+
if (l !== "fiscal")
|
|
123
129
|
return /* @__PURE__ */ i("div", { className: t, ...o, children: e });
|
|
124
|
-
const r =
|
|
125
|
-
const
|
|
126
|
-
return !
|
|
130
|
+
const r = k.Children.toArray(e), s = (n) => k.isValidElement(n) && n.key != null ? String(n.key) : "", c = r.find((n) => s(n).endsWith("year")), p = r.find((n) => s(n).endsWith("month")), a = r.filter((n) => {
|
|
131
|
+
const u = s(n);
|
|
132
|
+
return !u.endsWith("year") && !u.endsWith("month");
|
|
127
133
|
});
|
|
128
|
-
return /* @__PURE__ */
|
|
129
|
-
|
|
130
|
-
|
|
134
|
+
return /* @__PURE__ */ M("div", { className: t, ...o, children: [
|
|
135
|
+
c,
|
|
136
|
+
p,
|
|
131
137
|
a
|
|
132
138
|
] });
|
|
133
139
|
},
|
|
134
140
|
MonthsDropdown: ({ value: e }) => {
|
|
135
|
-
const t =
|
|
136
|
-
if (
|
|
137
|
-
const a =
|
|
141
|
+
const t = k.useContext(D), o = t > 0, r = N(m, t), s = r.getFullYear();
|
|
142
|
+
if (l === "fiscal" && W) {
|
|
143
|
+
const a = d?.(g(r)) ?? d?.(r), n = C(W, a?.fy, F), u = Pe(n, w), v = $(
|
|
138
144
|
n,
|
|
139
145
|
r.getFullYear(),
|
|
140
146
|
r.getMonth()
|
|
141
147
|
);
|
|
142
148
|
return /* @__PURE__ */ i(
|
|
143
|
-
|
|
149
|
+
be,
|
|
144
150
|
{
|
|
145
|
-
periods:
|
|
146
|
-
selectedPeriod:
|
|
147
|
-
placeholder:
|
|
148
|
-
onPeriodChange: (
|
|
149
|
-
|
|
151
|
+
periods: u,
|
|
152
|
+
selectedPeriod: v,
|
|
153
|
+
placeholder: O,
|
|
154
|
+
onPeriodChange: (x) => {
|
|
155
|
+
P(Z(x, o));
|
|
150
156
|
}
|
|
151
157
|
}
|
|
152
158
|
);
|
|
153
159
|
}
|
|
154
|
-
const
|
|
160
|
+
const p = ye(
|
|
155
161
|
s,
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
162
|
+
A,
|
|
163
|
+
te,
|
|
164
|
+
oe
|
|
159
165
|
);
|
|
160
166
|
return /* @__PURE__ */ i(
|
|
161
|
-
|
|
167
|
+
X,
|
|
162
168
|
{
|
|
163
|
-
value:
|
|
169
|
+
value: p.find((a) => a.value === e?.toString()),
|
|
164
170
|
onChange: (a) => {
|
|
165
171
|
if (a && "value" in a) {
|
|
166
172
|
const n = parseInt(a.value);
|
|
167
|
-
|
|
173
|
+
P(o ? new Date(s, n - 1, 1) : new Date(s, n, 1));
|
|
168
174
|
}
|
|
169
175
|
},
|
|
170
176
|
scrollToSelectedOnOpen: !0,
|
|
171
|
-
options:
|
|
177
|
+
options: p,
|
|
172
178
|
className: "w-[116px] shrink-0",
|
|
173
179
|
menuWidth: "160px",
|
|
174
180
|
isSearchable: !0,
|
|
175
181
|
isClearable: !1,
|
|
176
|
-
placeholder:
|
|
182
|
+
placeholder: O
|
|
177
183
|
}
|
|
178
184
|
);
|
|
179
185
|
},
|
|
180
186
|
YearsDropdown: ({ value: e }) => {
|
|
181
|
-
const t =
|
|
187
|
+
const t = k.useContext(D), o = t > 0, r = l === "fiscal" && W, s = N(m, t), c = r ? d?.(g(s)) ?? d?.(s) : void 0, p = r && c?.fy != null ? String(c.fy) : e?.toString();
|
|
182
188
|
return /* @__PURE__ */ i(
|
|
183
|
-
|
|
189
|
+
X,
|
|
184
190
|
{
|
|
185
|
-
value:
|
|
191
|
+
value: Y.find((n) => n.value === p),
|
|
186
192
|
onChange: (n) => {
|
|
187
193
|
if (n && "value" in n) {
|
|
188
|
-
const
|
|
194
|
+
const u = parseInt(n.value);
|
|
189
195
|
if (r) {
|
|
190
|
-
const
|
|
191
|
-
|
|
196
|
+
const v = ke({
|
|
197
|
+
periods: C(W, u, F),
|
|
198
|
+
preferredPeriod: c?.fiscalPeriod,
|
|
199
|
+
disabled: w
|
|
200
|
+
});
|
|
201
|
+
v && P(Z(v, o));
|
|
192
202
|
return;
|
|
193
203
|
}
|
|
194
204
|
if (o) {
|
|
195
|
-
const
|
|
196
|
-
|
|
197
|
-
|
|
205
|
+
const v = new Date(
|
|
206
|
+
m.getFullYear(),
|
|
207
|
+
m.getMonth() + 1,
|
|
198
208
|
1
|
|
199
209
|
).getMonth();
|
|
200
|
-
|
|
210
|
+
P(new Date(u, v - 1, 1));
|
|
201
211
|
} else
|
|
202
|
-
|
|
212
|
+
P(new Date(u, m.getMonth(), 1));
|
|
203
213
|
}
|
|
204
214
|
},
|
|
205
215
|
scrollToSelectedOnOpen: !0,
|
|
206
|
-
options:
|
|
216
|
+
options: Y,
|
|
207
217
|
className: "w-[116px] shrink-0",
|
|
208
218
|
menuWidth: "140px",
|
|
209
219
|
isSearchable: !0,
|
|
210
220
|
isClearable: !1,
|
|
211
|
-
placeholder:
|
|
221
|
+
placeholder: re
|
|
212
222
|
}
|
|
213
223
|
);
|
|
214
224
|
},
|
|
215
225
|
DayButton: (e) => /* @__PURE__ */ i(
|
|
216
|
-
|
|
226
|
+
pe,
|
|
217
227
|
{
|
|
218
228
|
...e,
|
|
219
|
-
pickerType:
|
|
229
|
+
pickerType: f,
|
|
220
230
|
modifiers: {
|
|
221
231
|
...e.modifiers,
|
|
222
|
-
...
|
|
223
|
-
fiscal_period_start: !!
|
|
224
|
-
fiscal_period_end: !!
|
|
232
|
+
...ce ? {
|
|
233
|
+
fiscal_period_start: !!d?.(e.day.date)?.isPeriodStart,
|
|
234
|
+
fiscal_period_end: !!d?.(e.day.date)?.isPeriodEnd
|
|
225
235
|
} : {}
|
|
226
236
|
}
|
|
227
237
|
}
|
|
228
238
|
),
|
|
229
239
|
Week: ({ week: e, className: t, children: o, onClick: r, ...s }) => {
|
|
230
|
-
const { isSelected:
|
|
231
|
-
calendarKind:
|
|
232
|
-
weekPeriod:
|
|
233
|
-
panePeriod:
|
|
234
|
-
}),
|
|
235
|
-
joinAdjacentWeek:
|
|
236
|
-
panePeriod:
|
|
237
|
-
periodForDate: (
|
|
240
|
+
const { isSelected: c } = ue(), p = k.useContext(D), a = L(e), n = f === "week", u = V(e, d), v = G(p), x = a || T({
|
|
241
|
+
calendarKind: l,
|
|
242
|
+
weekPeriod: u,
|
|
243
|
+
panePeriod: v
|
|
244
|
+
}), fe = _ && !x ? u : void 0, I = n && !x && !K(e, w, S), H = !x && !I && Se(e, c), q = f === "week" && E !== "multiple" && E !== "multi-range" && H ? We(e, c, {
|
|
245
|
+
joinAdjacentWeek: l === "fiscal",
|
|
246
|
+
panePeriod: v,
|
|
247
|
+
periodForDate: (b) => d?.(b)?.fiscalPeriod
|
|
238
248
|
}) : { prev: !1, next: !1 };
|
|
239
249
|
return /* @__PURE__ */ i(
|
|
240
250
|
"tr",
|
|
241
251
|
{
|
|
242
252
|
className: y(
|
|
243
253
|
t,
|
|
244
|
-
|
|
245
|
-
n && !
|
|
254
|
+
x && "invisible order-last",
|
|
255
|
+
n && !x && !I && "cursor-pointer"
|
|
246
256
|
),
|
|
247
257
|
...s,
|
|
248
|
-
"aria-hidden":
|
|
249
|
-
"data-fiscal-period":
|
|
250
|
-
"data-week-selected":
|
|
251
|
-
"data-week-continues-next":
|
|
252
|
-
"data-week-continues-prev":
|
|
253
|
-
onClick: n && !
|
|
254
|
-
if (r?.(
|
|
255
|
-
const
|
|
256
|
-
|
|
258
|
+
"aria-hidden": x || void 0,
|
|
259
|
+
"data-fiscal-period": fe,
|
|
260
|
+
"data-week-selected": H ? !0 : void 0,
|
|
261
|
+
"data-week-continues-next": q.next || void 0,
|
|
262
|
+
"data-week-continues-prev": q.prev || void 0,
|
|
263
|
+
onClick: n && !x && !I ? (b) => {
|
|
264
|
+
if (r?.(b), b.defaultPrevented) return;
|
|
265
|
+
const J = b.target;
|
|
266
|
+
J.closest("button") || J.closest("[data-week-number]") || z(e);
|
|
257
267
|
} : r,
|
|
258
268
|
children: o
|
|
259
269
|
}
|
|
260
270
|
);
|
|
261
271
|
},
|
|
262
272
|
WeekNumber: ({ week: e, ...t }) => {
|
|
263
|
-
const o =
|
|
264
|
-
calendarKind:
|
|
265
|
-
weekPeriod:
|
|
266
|
-
panePeriod:
|
|
273
|
+
const o = k.useContext(D), r = L(e) || T({
|
|
274
|
+
calendarKind: l,
|
|
275
|
+
weekPeriod: V(e, d),
|
|
276
|
+
panePeriod: G(o)
|
|
267
277
|
});
|
|
268
278
|
return /* @__PURE__ */ i(
|
|
269
|
-
|
|
279
|
+
he,
|
|
270
280
|
{
|
|
271
281
|
week: e,
|
|
272
|
-
weekStartsOn:
|
|
273
|
-
pickerType:
|
|
274
|
-
calendarKind:
|
|
275
|
-
weekNumberLabel:
|
|
276
|
-
weekLabel:
|
|
277
|
-
fiscalWeekNumberLabel:
|
|
278
|
-
fiscalWeekAriaLabel:
|
|
279
|
-
getCellMeta:
|
|
280
|
-
onWeekSelect:
|
|
282
|
+
weekStartsOn: ne,
|
|
283
|
+
pickerType: f,
|
|
284
|
+
calendarKind: l,
|
|
285
|
+
weekNumberLabel: ie,
|
|
286
|
+
weekLabel: se,
|
|
287
|
+
fiscalWeekNumberLabel: ae,
|
|
288
|
+
fiscalWeekAriaLabel: le,
|
|
289
|
+
getCellMeta: d,
|
|
290
|
+
onWeekSelect: z,
|
|
281
291
|
...t,
|
|
282
|
-
blank: r
|
|
292
|
+
blank: r,
|
|
293
|
+
blocked: f === "week" && !K(e, w, S)
|
|
283
294
|
}
|
|
284
295
|
);
|
|
285
296
|
},
|
|
286
297
|
WeekNumberHeader: (e) => {
|
|
287
|
-
const t =
|
|
298
|
+
const t = k.useContext(D), o = ve(l, m, t), r = o === void 0 ? R : ee[o], s = o === void 0 ? R : A[o];
|
|
288
299
|
return /* @__PURE__ */ i("th", { ...e, "aria-label": s, children: r });
|
|
289
300
|
},
|
|
290
|
-
...
|
|
301
|
+
...de
|
|
291
302
|
};
|
|
292
303
|
}
|
|
293
304
|
export {
|
|
294
|
-
|
|
305
|
+
Je as buildCalendarDayPickerComponents
|
|
295
306
|
};
|