impact-nova 2.5.12 → 2.5.14
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-week-utils.d.ts +2 -1
- package/dist/components/data-display/calendar/use-calendar-state.js +159 -157
- 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/week-picker.js +81 -79
- package/dist/components/forms/date-picker/week-range-picker.js +89 -87
- 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/MultiYearPickerField.d.ts +8 -0
- package/dist/form-react/Fields/MultiYearPickerField.js +57 -0
- package/dist/form-react/Fields/YearPickerField.d.ts +8 -0
- package/dist/form-react/Fields/YearPickerField.js +57 -0
- package/dist/form-react/Fields/YearRangePickerField.d.ts +8 -0
- package/dist/form-react/Fields/YearRangePickerField.js +57 -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 +55 -1
- package/dist/form-react/types/fieldsOutput.types.d.ts +8 -2
- package/dist/form-react/utils/fieldDefaults.utils.js +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 +51 -78
- package/dist/llms/rules/installation.js +1 -1
- package/dist/llms/rules/requirements.js +1 -1
- package/package.json +1 -1
|
@@ -2,17 +2,17 @@ import { jsx as r, jsxs as h, Fragment as z } from "react/jsx-runtime";
|
|
|
2
2
|
import * as o from "react";
|
|
3
3
|
import { Person as G, Monitor as U, PriorityAlert as q, Locked as O, Reset as B } from "impact-nova-icons";
|
|
4
4
|
import { cn as p } from "../../../lib/utils.js";
|
|
5
|
+
import { Kbd as $ } from "../../primitives/kbd/kbd.js";
|
|
6
|
+
import { keybindingToString as H } from "../../primitives/kbd/keybinding-display.js";
|
|
5
7
|
import { OverflowTooltip as A } from "../../feedback/tooltip/overflow-tooltip.js";
|
|
6
|
-
import { ModuleRegistry as
|
|
7
|
-
import { AllEnterpriseModule as
|
|
8
|
-
import { DataTable as
|
|
8
|
+
import { ModuleRegistry as V, AllCommunityModule as J } from "ag-grid-community";
|
|
9
|
+
import { AllEnterpriseModule as Q } from "ag-grid-enterprise";
|
|
10
|
+
import { DataTable as X, DataTableContent as Y } from "../../data/data-table/data-table.js";
|
|
9
11
|
import { AG_CELL_NO_PADDING as F } from "../../data/ag-grid-react/cell-renderers/index.js";
|
|
10
|
-
import { Kbd as X } from "../../primitives/kbd/kbd.js";
|
|
11
|
-
import { keybindingToString as Y } from "../../primitives/kbd/keybinding-display.js";
|
|
12
12
|
import { useCommandPalette as Z } from "./use-command-palette.js";
|
|
13
13
|
import { COMMAND_SOURCE_LABELS as m, keybindingFromEvent as W, isReservedShortcut as ee } from "./utils.js";
|
|
14
14
|
import { BadgeCellRenderer as te } from "../../data/ag-grid-react/cell-renderers/badge-cell-renderer.js";
|
|
15
|
-
|
|
15
|
+
V.registerModules([J, Q]);
|
|
16
16
|
function re(a) {
|
|
17
17
|
const t = a.data;
|
|
18
18
|
return t ? /* @__PURE__ */ h("div", { className: "flex items-center gap-2 min-w-0 h-full", children: [
|
|
@@ -69,7 +69,7 @@ function ne(a) {
|
|
|
69
69
|
"flex items-center justify-end h-full w-full text-end",
|
|
70
70
|
t.customisable ? "cursor-pointer" : "cursor-default opacity-70"
|
|
71
71
|
),
|
|
72
|
-
children: /* @__PURE__ */ r(
|
|
72
|
+
children: /* @__PURE__ */ r($, { keybinding: t.keybinding, size: "sm" })
|
|
73
73
|
}
|
|
74
74
|
) : t.customisable ? /* @__PURE__ */ r(
|
|
75
75
|
"button",
|
|
@@ -133,7 +133,7 @@ function le({
|
|
|
133
133
|
description: e.description || "",
|
|
134
134
|
category: e.category || "General",
|
|
135
135
|
keybinding: i,
|
|
136
|
-
keybindingDisplay: i ?
|
|
136
|
+
keybindingDisplay: i ? H(i) : "",
|
|
137
137
|
scope: e.scope,
|
|
138
138
|
source: D,
|
|
139
139
|
sourceColor: T ? "primary" : "neutral",
|
|
@@ -278,10 +278,10 @@ function le({
|
|
|
278
278
|
u?.type === "conflict" ? /* @__PURE__ */ r(q, { className: "h-3.5 w-3.5 shrink-0" }) : u?.type === "reserved" ? /* @__PURE__ */ r(O, { className: "h-3.5 w-3.5 shrink-0" }) : c ? /* @__PURE__ */ r("span", { className: "shrink-0 text-base", children: "⌨️" }) : null,
|
|
279
279
|
/* @__PURE__ */ r("span", { children: u ? u.text : L })
|
|
280
280
|
] }) : null;
|
|
281
|
-
return /* @__PURE__ */ h(
|
|
281
|
+
return /* @__PURE__ */ h(X, { className: p("flex flex-col w-full h-full border-t-0", a), children: [
|
|
282
282
|
s ? s(E) : E,
|
|
283
283
|
/* @__PURE__ */ r(
|
|
284
|
-
|
|
284
|
+
Y,
|
|
285
285
|
{
|
|
286
286
|
rowData: y,
|
|
287
287
|
columnDefs: I,
|
|
@@ -6,8 +6,8 @@ import { cn as o } from "../../../lib/utils.js";
|
|
|
6
6
|
import { MultiColorFilter as F, Cross as P, InfoBadge as u } from "impact-nova-icons";
|
|
7
7
|
import { Button as D } from "../../primitives/button/button.js";
|
|
8
8
|
import { Tooltip as c, TooltipTrigger as f, TooltipContent as h } from "../../feedback/tooltip/tooltip.js";
|
|
9
|
-
import {
|
|
10
|
-
import {
|
|
9
|
+
import { Kbd as S } from "../../primitives/kbd/kbd.js";
|
|
10
|
+
import { OverflowTooltip as j } from "../../feedback/tooltip/overflow-tooltip.js";
|
|
11
11
|
import { useImpactNovaI18n as v } from "../../../i18n/use-impact-nova-i18n.js";
|
|
12
12
|
import { useOverlayHostDismissNestedLayersOnNavigation as I } from "../../../lib/overlay/overlay-portal-context.js";
|
|
13
13
|
import { preventDismissOnTooltipOutside as x } from "../../../lib/overlay/prevent-dismiss-on-tooltip-outside.js";
|
|
@@ -145,14 +145,14 @@ const O = ({
|
|
|
145
145
|
),
|
|
146
146
|
/* @__PURE__ */ a("div", { className: "flex items-center gap-1 min-w-0", children: [
|
|
147
147
|
/* @__PURE__ */ e(
|
|
148
|
-
|
|
148
|
+
j,
|
|
149
149
|
{
|
|
150
150
|
triggerClassName: "truncate font-['Manrope'] block min-w-0",
|
|
151
151
|
content: t.tooltipKeybinding ? /* @__PURE__ */ a("span", { className: "flex items-center gap-2", children: [
|
|
152
152
|
t.label,
|
|
153
153
|
" ",
|
|
154
154
|
/* @__PURE__ */ e(
|
|
155
|
-
|
|
155
|
+
S,
|
|
156
156
|
{
|
|
157
157
|
keybinding: t.tooltipKeybinding,
|
|
158
158
|
size: "sm"
|
|
@@ -1,40 +1,40 @@
|
|
|
1
1
|
import { jsxs as W, jsx as a } from "react/jsx-runtime";
|
|
2
2
|
import * as s from "react";
|
|
3
3
|
import { Cross as Te, CalendarMonth as Ee } from "impact-nova-icons";
|
|
4
|
-
import { format as
|
|
4
|
+
import { format as B } from "date-fns";
|
|
5
5
|
import { cn as Se } from "../../../lib/utils.js";
|
|
6
6
|
import { usePickerDismissActionsRef as Ae, usePickerFooterDismissNudge as Ne, isDateInputInvalid as we, resolveSingleValueDismissFlash as Ve, handlePickerEscapeKeyDown as Le, handlePickerSurfacePointerDown as Oe, resolveDateInputOnBlur as Me, maskDateInput as je, parseDateInput as Be, resolveDateInputOnEnter as ze } from "./date-input-behavior.js";
|
|
7
7
|
import { Input as He } from "../input/input.js";
|
|
8
8
|
import { Popover as Ke, PopoverAnchor as $e, PopoverContent as qe } from "../../feedback/popover/popover.js";
|
|
9
9
|
import { Calendar as Ge } from "../../data-display/calendar/calendar.js";
|
|
10
|
-
import { Tooltip as
|
|
10
|
+
import { Tooltip as _, TooltipTrigger as Y, TooltipContent as F } from "../../feedback/tooltip/tooltip.js";
|
|
11
11
|
import { resolveWeekSelection as Je } from "../../../lib/fiscal-calendar/week-selection.js";
|
|
12
12
|
import { useImpactNovaI18n as Qe } from "../../../i18n/use-impact-nova-i18n.js";
|
|
13
13
|
import { getDateFnsLocale as Ue } from "../../../i18n/getDateFnsLocale.js";
|
|
14
14
|
import { coerceSingleWeekApply as Xe, coerceSingleWeek as Ze } from "./calendar-selection-adapters.js";
|
|
15
15
|
import { buildDateBoundsMatcher as _e } from "../../../lib/date-bounds-matcher.js";
|
|
16
16
|
import { fiscalCalendarPassThrough as Ye } from "./fiscal-pass-through.js";
|
|
17
|
-
const
|
|
18
|
-
const R =
|
|
17
|
+
const ee = (n, c = "MM/dd/yyyy", t) => {
|
|
18
|
+
const R = B(n.startDate, c, t ? { locale: t } : {}), b = B(n.endDate, c, t ? { locale: t } : {});
|
|
19
19
|
return `${R} - ${b}`;
|
|
20
|
-
}, g = (n, c, t) => n ?
|
|
20
|
+
}, g = (n, c, t) => n ? B(n.startDate, c, t ? { locale: t } : {}) : "", Fe = s.forwardRef(
|
|
21
21
|
({
|
|
22
22
|
value: n,
|
|
23
23
|
onChange: c,
|
|
24
24
|
format: t = "MM/dd/yyyy",
|
|
25
25
|
placeholder: R,
|
|
26
26
|
minDate: b,
|
|
27
|
-
maxDate:
|
|
28
|
-
startMonth:
|
|
29
|
-
endMonth:
|
|
27
|
+
maxDate: te,
|
|
28
|
+
startMonth: ne,
|
|
29
|
+
endMonth: re,
|
|
30
30
|
showFooter: l = !0,
|
|
31
|
-
calendarKind:
|
|
31
|
+
calendarKind: P,
|
|
32
32
|
fiscalMode: x = "basic",
|
|
33
33
|
granularity: T,
|
|
34
34
|
fiscalMonthPattern: E,
|
|
35
35
|
fiscalYearStartMonth: S = 1,
|
|
36
|
-
fiscalConfig:
|
|
37
|
-
weekStartsOn:
|
|
36
|
+
fiscalConfig: A,
|
|
37
|
+
weekStartsOn: N = 1,
|
|
38
38
|
showPresets: se,
|
|
39
39
|
showPeriodBoundaries: oe,
|
|
40
40
|
autoNavigateToAvailable: ie,
|
|
@@ -44,73 +44,75 @@ const F = (n, c = "MM/dd/yyyy", t) => {
|
|
|
44
44
|
className: le,
|
|
45
45
|
...pe
|
|
46
46
|
}, ue) => {
|
|
47
|
-
const { locale:
|
|
48
|
-
s.useImperativeHandle(ue, () =>
|
|
49
|
-
const [o,
|
|
50
|
-
f(n), m(g(n, t, i)),
|
|
51
|
-
}, [n, t, i,
|
|
52
|
-
m(g(u ?? n, t, i)),
|
|
53
|
-
}, [u, n, t, i,
|
|
47
|
+
const { locale: z, t: D } = Qe(), i = s.useMemo(() => Ue(z), [z]), fe = R ?? D("datePicker.selectWeek"), v = P === "fiscal", w = s.useRef(null), H = s.useRef(null), I = s.useRef(!1);
|
|
48
|
+
s.useImperativeHandle(ue, () => w.current);
|
|
49
|
+
const [o, K] = s.useState(!1), $ = Ae(), { footerFlashKey: de, footerFlashTarget: me, popoverHandlers: ke } = Ne(l, o, $, H), [De, V] = s.useState(!1), [u, f] = s.useState(n), [y, m] = s.useState(""), [ye, h] = s.useState(n?.startDate || /* @__PURE__ */ new Date()), he = n ? ee(n, t, i) : "", q = u ? ee(u, t, i) : "", L = o || De, ge = L ? y : q, G = s.useCallback(() => {
|
|
50
|
+
f(n), m(g(n, t, i)), v || h(n?.startDate || /* @__PURE__ */ new Date());
|
|
51
|
+
}, [n, t, i, v]), C = s.useCallback(() => {
|
|
52
|
+
m(g(u ?? n, t, i)), v || h((u ?? n)?.startDate || /* @__PURE__ */ new Date());
|
|
53
|
+
}, [u, n, t, i, v]);
|
|
54
54
|
s.useEffect(() => {
|
|
55
55
|
o || f(n);
|
|
56
56
|
}, [o, n]);
|
|
57
|
-
const
|
|
57
|
+
const J = s.useRef(!1);
|
|
58
58
|
s.useEffect(() => {
|
|
59
|
-
o && !
|
|
60
|
-
}, [o,
|
|
59
|
+
o && !J.current && C(), J.current = o;
|
|
60
|
+
}, [o, C]);
|
|
61
61
|
const d = () => {
|
|
62
|
-
|
|
62
|
+
V(!1), K(!1);
|
|
63
63
|
}, k = (e) => {
|
|
64
64
|
if (!p) {
|
|
65
65
|
if (e) {
|
|
66
|
-
|
|
66
|
+
C(), K(!0);
|
|
67
67
|
return;
|
|
68
68
|
}
|
|
69
69
|
l || d();
|
|
70
70
|
}
|
|
71
|
-
},
|
|
71
|
+
}, O = s.useCallback(
|
|
72
72
|
(e) => Je(e, {
|
|
73
|
-
calendarKind:
|
|
73
|
+
calendarKind: P,
|
|
74
74
|
fiscalMode: x,
|
|
75
75
|
granularity: T,
|
|
76
76
|
fiscalMonthPattern: E,
|
|
77
77
|
fiscalYearStartMonth: S,
|
|
78
|
-
weekStartsOn:
|
|
78
|
+
weekStartsOn: N,
|
|
79
|
+
fiscalConfig: A
|
|
79
80
|
}),
|
|
80
81
|
[
|
|
81
|
-
|
|
82
|
+
P,
|
|
82
83
|
x,
|
|
83
84
|
T,
|
|
84
85
|
E,
|
|
85
86
|
S,
|
|
87
|
+
N,
|
|
86
88
|
A
|
|
87
89
|
]
|
|
88
|
-
),
|
|
90
|
+
), ve = (e) => {
|
|
89
91
|
const r = Ze(e);
|
|
90
|
-
f(r), r && (m(g(r, t, i)),
|
|
91
|
-
},
|
|
92
|
+
f(r), r && (m(g(r, t, i)), v || h(r.startDate)), l || (c?.(r), d());
|
|
93
|
+
}, Q = (e) => {
|
|
92
94
|
const r = Xe(e, u);
|
|
93
95
|
c?.(r), d();
|
|
94
|
-
},
|
|
95
|
-
|
|
96
|
-
},
|
|
96
|
+
}, M = () => {
|
|
97
|
+
G(), d();
|
|
98
|
+
}, U = () => {
|
|
97
99
|
f(void 0), m(""), c?.(void 0), l || d();
|
|
98
|
-
}, ve = (e) => {
|
|
99
|
-
const r = L(e);
|
|
100
|
-
f(r), m(g(r, t, i)), h(e), c?.(r), d();
|
|
101
100
|
}, Ie = (e) => {
|
|
101
|
+
const r = O(e);
|
|
102
|
+
f(r), m(g(r, t, i)), h(e), c?.(r), d();
|
|
103
|
+
}, Pe = (e) => {
|
|
102
104
|
const r = je(e.target.value, t, y);
|
|
103
105
|
if (m(r), r === "") {
|
|
104
106
|
f(void 0), l || c?.(void 0);
|
|
105
107
|
return;
|
|
106
108
|
}
|
|
107
|
-
const { parsed:
|
|
108
|
-
if (xe &&
|
|
109
|
-
const
|
|
110
|
-
f(
|
|
109
|
+
const { parsed: j, isValid: xe } = Be(r, t, i);
|
|
110
|
+
if (xe && j) {
|
|
111
|
+
const Z = O(j);
|
|
112
|
+
f(Z), h(j), l || c?.(Z);
|
|
111
113
|
}
|
|
112
|
-
},
|
|
113
|
-
if (
|
|
114
|
+
}, Ce = () => {
|
|
115
|
+
if (V(!1), o) return;
|
|
114
116
|
const e = Me(
|
|
115
117
|
y,
|
|
116
118
|
t,
|
|
@@ -118,27 +120,27 @@ const F = (n, c = "MM/dd/yyyy", t) => {
|
|
|
118
120
|
i
|
|
119
121
|
);
|
|
120
122
|
if (e.resetToCommitted) {
|
|
121
|
-
|
|
123
|
+
G();
|
|
122
124
|
return;
|
|
123
125
|
}
|
|
124
126
|
if (e.parsed) {
|
|
125
|
-
const r =
|
|
127
|
+
const r = O(e.parsed);
|
|
126
128
|
f(r), m(g(r, t, i)), l || c?.(r);
|
|
127
129
|
return;
|
|
128
130
|
}
|
|
129
131
|
y || (f(void 0), l || c?.(void 0));
|
|
130
132
|
}, We = () => {
|
|
131
133
|
if (o && l) {
|
|
132
|
-
|
|
134
|
+
Q();
|
|
133
135
|
return;
|
|
134
136
|
}
|
|
135
137
|
const e = ze(y, t, i);
|
|
136
138
|
if (e.parsed) {
|
|
137
|
-
l &&
|
|
139
|
+
l && Ie(e.parsed);
|
|
138
140
|
return;
|
|
139
141
|
}
|
|
140
|
-
o || (
|
|
141
|
-
},
|
|
142
|
+
o || (I.current = !0, k(!0));
|
|
143
|
+
}, X = he !== q, Re = L && we(y, t, i), be = s.useCallback(
|
|
142
144
|
() => Ve(
|
|
143
145
|
u,
|
|
144
146
|
n,
|
|
@@ -147,65 +149,65 @@ const F = (n, c = "MM/dd/yyyy", t) => {
|
|
|
147
149
|
[u, n]
|
|
148
150
|
);
|
|
149
151
|
return s.useLayoutEffect(() => {
|
|
150
|
-
|
|
151
|
-
onDismiss:
|
|
152
|
+
$.current = {
|
|
153
|
+
onDismiss: M,
|
|
152
154
|
resolveFlash: be
|
|
153
155
|
};
|
|
154
156
|
}), /* @__PURE__ */ W(Ke, { open: p ? !1 : o, onOpenChange: k, children: [
|
|
155
157
|
/* @__PURE__ */ a($e, { asChild: !0, children: /* @__PURE__ */ a(
|
|
156
158
|
"div",
|
|
157
159
|
{
|
|
158
|
-
ref:
|
|
160
|
+
ref: H,
|
|
159
161
|
"data-component": "week-picker",
|
|
160
162
|
"data-state": o ? "open" : "closed",
|
|
161
|
-
"data-pending":
|
|
163
|
+
"data-pending": X || void 0,
|
|
162
164
|
onPointerDown: (e) => Oe({
|
|
163
165
|
disabled: p,
|
|
164
166
|
event: e,
|
|
165
167
|
onOpen: () => k(!0),
|
|
166
|
-
focusField: () =>
|
|
168
|
+
focusField: () => w.current?.focus()
|
|
167
169
|
}),
|
|
168
170
|
children: /* @__PURE__ */ a(
|
|
169
171
|
He,
|
|
170
172
|
{
|
|
171
|
-
ref:
|
|
173
|
+
ref: w,
|
|
172
174
|
value: ge,
|
|
173
|
-
onChange:
|
|
175
|
+
onChange: Pe,
|
|
174
176
|
onFocus: () => {
|
|
175
|
-
p || (
|
|
177
|
+
p || (V(!0), C());
|
|
176
178
|
},
|
|
177
|
-
onBlur:
|
|
179
|
+
onBlur: Ce,
|
|
178
180
|
onClick: () => !p && k(!0),
|
|
179
181
|
onKeyDown: (e) => {
|
|
180
|
-
e.key === "Enter" && !p && (e.preventDefault(), We()), e.key === "ArrowDown" && !o && !p && (e.preventDefault(),
|
|
182
|
+
e.key === "Enter" && !p && (e.preventDefault(), We()), e.key === "ArrowDown" && !o && !p && (e.preventDefault(), I.current = !0, k(!0)), e.key === "Escape" && o && Le(e, { open: o, onCancel: M });
|
|
181
183
|
},
|
|
182
|
-
placeholder:
|
|
184
|
+
placeholder: L ? t : fe,
|
|
183
185
|
disabled: p,
|
|
184
186
|
"data-form-control": "input",
|
|
185
187
|
className: Se(
|
|
186
188
|
"cursor-pointer",
|
|
187
|
-
Re ? "text-destructive" :
|
|
189
|
+
Re ? "text-destructive" : X ? "text-content-placeholder" : "",
|
|
188
190
|
le
|
|
189
191
|
),
|
|
190
192
|
suffix: /* @__PURE__ */ W("div", { className: "flex items-center gap-1", children: [
|
|
191
|
-
n && !p && /* @__PURE__ */ W(
|
|
192
|
-
/* @__PURE__ */ a(
|
|
193
|
+
n && !p && /* @__PURE__ */ W(_, { children: [
|
|
194
|
+
/* @__PURE__ */ a(Y, { asChild: !0, children: /* @__PURE__ */ a(
|
|
193
195
|
"button",
|
|
194
196
|
{
|
|
195
197
|
type: "button",
|
|
196
198
|
tabIndex: 0,
|
|
197
199
|
"aria-label": D("calendar.clear"),
|
|
198
200
|
onClick: (e) => {
|
|
199
|
-
e.stopPropagation(),
|
|
201
|
+
e.stopPropagation(), U();
|
|
200
202
|
},
|
|
201
203
|
className: "inline-flex size-4 items-center justify-center bg-transparent border-none p-0 cursor-pointer",
|
|
202
204
|
children: /* @__PURE__ */ a(Te, { className: "size-3 hover:text-content" })
|
|
203
205
|
}
|
|
204
206
|
) }),
|
|
205
|
-
/* @__PURE__ */ a(
|
|
207
|
+
/* @__PURE__ */ a(F, { variant: "tertiary", side: "top", children: D("calendar.clear") })
|
|
206
208
|
] }),
|
|
207
|
-
/* @__PURE__ */ W(
|
|
208
|
-
/* @__PURE__ */ a(
|
|
209
|
+
/* @__PURE__ */ W(_, { children: [
|
|
210
|
+
/* @__PURE__ */ a(Y, { asChild: !0, children: /* @__PURE__ */ a(
|
|
209
211
|
"button",
|
|
210
212
|
{
|
|
211
213
|
type: "button",
|
|
@@ -215,13 +217,13 @@ const F = (n, c = "MM/dd/yyyy", t) => {
|
|
|
215
217
|
e.stopPropagation(), p || (o ? d() : k(!0));
|
|
216
218
|
},
|
|
217
219
|
onKeyDown: (e) => {
|
|
218
|
-
(e.key === "Enter" || e.key === " ") && (e.preventDefault(), e.stopPropagation(), p || (
|
|
220
|
+
(e.key === "Enter" || e.key === " ") && (e.preventDefault(), e.stopPropagation(), p || (I.current = !0, o ? d() : k(!0)));
|
|
219
221
|
},
|
|
220
222
|
className: "inline-flex items-center justify-center bg-transparent border-none p-0 cursor-pointer",
|
|
221
223
|
children: /* @__PURE__ */ a(Ee, { className: "h-4 w-4 text-secondary-foreground" })
|
|
222
224
|
}
|
|
223
225
|
) }),
|
|
224
|
-
/* @__PURE__ */ a(
|
|
226
|
+
/* @__PURE__ */ a(F, { variant: "tertiary", side: "top", children: D("datePicker.selectWeek") })
|
|
225
227
|
] })
|
|
226
228
|
] }),
|
|
227
229
|
...pe
|
|
@@ -236,7 +238,7 @@ const F = (n, c = "MM/dd/yyyy", t) => {
|
|
|
236
238
|
align: "start",
|
|
237
239
|
"aria-label": D("datePicker.selectWeek"),
|
|
238
240
|
onOpenAutoFocus: (e) => {
|
|
239
|
-
|
|
241
|
+
I.current || e.preventDefault(), I.current = !1;
|
|
240
242
|
},
|
|
241
243
|
...ke,
|
|
242
244
|
children: /* @__PURE__ */ a(
|
|
@@ -247,30 +249,30 @@ const F = (n, c = "MM/dd/yyyy", t) => {
|
|
|
247
249
|
selectedWeeks: u,
|
|
248
250
|
footerFlashKey: de,
|
|
249
251
|
footerFlashTarget: me,
|
|
250
|
-
onWeekSelect:
|
|
252
|
+
onWeekSelect: ve,
|
|
251
253
|
month: ye,
|
|
252
254
|
onMonthChange: h,
|
|
253
|
-
disabled: _e(b,
|
|
254
|
-
startMonth:
|
|
255
|
-
endMonth:
|
|
255
|
+
disabled: _e(b, te),
|
|
256
|
+
startMonth: ne,
|
|
257
|
+
endMonth: re,
|
|
256
258
|
showFooter: l,
|
|
257
259
|
...Ye({
|
|
258
|
-
calendarKind:
|
|
260
|
+
calendarKind: P,
|
|
259
261
|
fiscalMode: x,
|
|
260
262
|
granularity: T,
|
|
261
263
|
fiscalMonthPattern: E,
|
|
262
264
|
fiscalYearStartMonth: S,
|
|
263
|
-
fiscalConfig:
|
|
264
|
-
weekStartsOn:
|
|
265
|
+
fiscalConfig: A,
|
|
266
|
+
weekStartsOn: N,
|
|
265
267
|
showPresets: se,
|
|
266
268
|
showPeriodBoundaries: oe,
|
|
267
269
|
autoNavigateToAvailable: ie,
|
|
268
270
|
comparison: ce,
|
|
269
271
|
onComparisonChange: ae
|
|
270
272
|
}),
|
|
271
|
-
onApply:
|
|
272
|
-
onCancel:
|
|
273
|
-
onClear:
|
|
273
|
+
onApply: Q,
|
|
274
|
+
onCancel: M,
|
|
275
|
+
onClear: U,
|
|
274
276
|
captionLayout: "dropdown"
|
|
275
277
|
}
|
|
276
278
|
)
|