impact-nova 2.5.8 → 2.5.10
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/column-runtime-state-guard.js +42 -42
- package/dist/components/data/data-table/data-table-column-tree-cache.d.ts +15 -0
- package/dist/components/data/data-table/data-table-column-tree-cache.js +109 -80
- package/dist/components/data/data-table/use-data-table-column-list-sync.js +65 -62
- package/dist/components/data/expandable-list-item/expandable-list-item-attributes.js +2 -3
- package/dist/components/data/expandable-list-item/expandable-list-item-metrics.js +2 -3
- package/dist/components/data-display/calendar/calendar-day-picker-classnames.d.ts +6 -1
- package/dist/components/data-display/calendar/calendar-day-picker-classnames.js +31 -23
- package/dist/components/data-display/calendar/calendar-day-picker-components.d.ts +2 -1
- package/dist/components/data-display/calendar/calendar-day-picker-components.js +197 -164
- package/dist/components/data-display/calendar/calendar-day-picker-view.d.ts +3 -2
- package/dist/components/data-display/calendar/calendar-day-picker-view.js +130 -129
- package/dist/components/data-display/calendar/calendar-fiscal-labels.js +6 -6
- package/dist/components/data-display/calendar/calendar-fiscal-period-nav.d.ts +16 -0
- package/dist/components/data-display/calendar/calendar-fiscal-period-nav.js +41 -0
- package/dist/components/data-display/calendar/calendar-padding-week.utils.d.ts +5 -1
- package/dist/components/data-display/calendar/calendar-padding-week.utils.js +20 -16
- 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 +43 -42
- package/dist/components/data-display/calendar/calendar-week-utils.d.ts +6 -0
- package/dist/components/data-display/calendar/calendar-week-utils.js +51 -47
- package/dist/components/data-display/calendar/calendar.js +102 -100
- package/dist/components/data-display/calendar/calendar.types.d.ts +2 -0
- package/dist/components/data-display/calendar/use-calendar-day-picker-config.d.ts +4 -2
- package/dist/components/data-display/calendar/use-calendar-day-picker-config.js +77 -72
- package/dist/components/data-display/calendar/use-fiscal-calendar.js +16 -15
- package/dist/components/feedback/dialog/dialog.js +12 -12
- package/dist/components/feedback/sheet/sheet.js +22 -22
- package/dist/components/feedback/tooltip/tab-tooltip-render.js +2 -3
- 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/calendar-selection-adapters.d.ts +2 -0
- package/dist/components/forms/date-picker/calendar-selection-adapters.js +36 -31
- package/dist/components/forms/date-picker/date-input-behavior.d.ts +10 -0
- package/dist/components/forms/date-picker/date-input-behavior.js +111 -90
- package/dist/components/forms/date-picker/date-picker.js +71 -69
- package/dist/components/forms/date-picker/date-picker.types.d.ts +2 -0
- package/dist/components/forms/date-picker/date-range-picker.js +146 -144
- package/dist/components/forms/date-picker/fiscal-pass-through.d.ts +1 -0
- package/dist/components/forms/date-picker/fiscal-pass-through.js +1 -0
- package/dist/components/forms/date-picker/month-picker.js +82 -80
- package/dist/components/forms/date-picker/month-range-picker.js +145 -143
- 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/picker-story-layout.d.ts +2 -0
- 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 +82 -80
- package/dist/components/forms/date-picker/week-range-picker.js +169 -164
- 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/SelectMenuPanel.js +3 -2
- package/dist/components/forms/select/components/SelectTriggerValue.js +2 -3
- package/dist/components/forms/select/components/Submenu.js +2 -3
- package/dist/components/forms/select/select.js +1 -0
- package/dist/components/forms/smart-input/smart-input.js +106 -85
- package/dist/components/forms/smart-input/smart-input.types.d.ts +5 -0
- package/dist/components/forms/textarea/textarea.js +29 -28
- package/dist/components/forms/textarea/textarea.types.d.ts +1 -0
- package/dist/form-react/Fields/TextField.js +25 -24
- package/dist/form-react/Fields/WeekRangePicker.js +47 -48
- package/dist/form-react/types/fields.types.d.ts +8 -0
- package/dist/impact-nova.css +1 -1
- package/dist/lib/fiscal-calendar/civil-date.js +18 -18
- package/dist/lib/overlay/overlay-portal-context.js +16 -16
- package/dist/llms/rules/best-practices.js +1 -1
- package/dist/llms/rules/installation.js +1 -1
- package/dist/llms/rules/real-world-patterns.js +1 -1
- package/dist/llms/rules/requirements.js +1 -1
- package/package.json +1 -1
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import { useState as W, useRef as p, useEffect as j, useCallback as
|
|
1
|
+
import { useState as W, useRef as p, useEffect as j, useCallback as f, useLayoutEffect as $ } from "react";
|
|
2
2
|
import { mergePartialOrderedColumnState as q } from "./data-table-column-state.js";
|
|
3
3
|
import { afterSynchronousColumnApply as k, normalizeColumnPinned as z, GRID_AUTO_UNPIN_WAIT_MS as A, alignColumnTreePinMetadata as V, EXTERNAL_SYNC_DEBOUNCE_MS as ee, readGridColumnPinned as ne } from "./data-table-column-apply.js";
|
|
4
4
|
import { buildColumnStateFromTree as te } from "./build-column-state-from-tree.js";
|
|
5
|
-
import { isColumnRuntimeStateGuardUpdating as
|
|
5
|
+
import { isColumnRuntimeStateGuardUpdating as g } from "./column-runtime-state-guard.js";
|
|
6
6
|
import { computeColumnListSyncFingerprints as re } from "./data-table-column-list-sync.js";
|
|
7
|
-
import { writeColumnTreeCache as B, resolveColumnTreeFromCacheOrGrid as oe, peekColumnListSyncWouldSkip as ue, readColumnTreeCache as se } from "./data-table-column-tree-cache.js";
|
|
8
|
-
import { patchColumnTreeIndicatorsFromGrid as
|
|
7
|
+
import { writeColumnTreeCache as B, resolveColumnTreeFromCacheOrGrid as oe, peekColumnListSyncWouldSkip as ue, readColumnTreeCache as se, isGridColumnSetDifferentFromCachedLeaves as ce } from "./data-table-column-tree-cache.js";
|
|
8
|
+
import { patchColumnTreeIndicatorsFromGrid as le } from "./patch-column-tree-indicators-from-grid.js";
|
|
9
9
|
import { subscribeGridApiEvent as X } from "../ag-grid-react/grid-api-event-subscription.js";
|
|
10
|
-
import { subscribeColumnIndicatorSync as
|
|
10
|
+
import { subscribeColumnIndicatorSync as ae } from "../ag-grid-react/column-indicator-sync-bus.js";
|
|
11
11
|
function Y(e, C, h) {
|
|
12
12
|
return {
|
|
13
13
|
layout: e.current,
|
|
@@ -15,36 +15,36 @@ function Y(e, C, h) {
|
|
|
15
15
|
indicators: h.current
|
|
16
16
|
};
|
|
17
17
|
}
|
|
18
|
-
function
|
|
18
|
+
function w(e, C, h, c) {
|
|
19
19
|
C.current = e.layout, h.current = e.visibility, c.current = e.indicators;
|
|
20
20
|
}
|
|
21
|
-
function
|
|
21
|
+
function Re({
|
|
22
22
|
gridApi: e,
|
|
23
23
|
frozenColumnsLabel: C,
|
|
24
24
|
scrollableColumnsLabel: h,
|
|
25
25
|
isSyncActive: c = !0
|
|
26
26
|
}) {
|
|
27
|
-
const [R,
|
|
27
|
+
const [R, F] = W([]), [H, M] = W(!1), l = p(!1), J = p(null), x = p(R), S = p(""), I = p(""), b = p(""), N = p(c);
|
|
28
28
|
j(() => {
|
|
29
|
-
|
|
29
|
+
x.current = R;
|
|
30
30
|
}, [R]);
|
|
31
|
-
const
|
|
31
|
+
const E = f(
|
|
32
32
|
() => ({
|
|
33
33
|
frozenColumns: C,
|
|
34
34
|
scrollableColumns: h
|
|
35
35
|
}),
|
|
36
36
|
[C, h]
|
|
37
|
-
), y =
|
|
37
|
+
), y = f(
|
|
38
38
|
(n) => {
|
|
39
|
-
|
|
39
|
+
w(
|
|
40
40
|
re(n),
|
|
41
41
|
S,
|
|
42
|
-
|
|
43
|
-
|
|
42
|
+
I,
|
|
43
|
+
b
|
|
44
44
|
);
|
|
45
45
|
},
|
|
46
46
|
[]
|
|
47
|
-
), T =
|
|
47
|
+
), T = f(
|
|
48
48
|
(n) => {
|
|
49
49
|
if (!e) {
|
|
50
50
|
l.current = !1;
|
|
@@ -53,36 +53,36 @@ function Te({
|
|
|
53
53
|
l.current = !1, B(e, n), y(n);
|
|
54
54
|
},
|
|
55
55
|
[e, y]
|
|
56
|
-
), a =
|
|
57
|
-
if (!e || l.current ||
|
|
56
|
+
), a = f(() => {
|
|
57
|
+
if (!e || l.current || g(e))
|
|
58
58
|
return;
|
|
59
59
|
const n = oe({
|
|
60
60
|
gridApi: e,
|
|
61
|
-
labels:
|
|
61
|
+
labels: E(),
|
|
62
62
|
previousFingerprints: Y(
|
|
63
63
|
S,
|
|
64
|
-
|
|
65
|
-
|
|
64
|
+
I,
|
|
65
|
+
b
|
|
66
66
|
)
|
|
67
67
|
});
|
|
68
68
|
if (n.syncMode === "skip" || !n.rootItems) {
|
|
69
69
|
n.syncMode !== "skip" && M(!0);
|
|
70
70
|
return;
|
|
71
71
|
}
|
|
72
|
-
|
|
72
|
+
w(
|
|
73
73
|
n.fingerprints,
|
|
74
74
|
S,
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
),
|
|
78
|
-
}, [e,
|
|
75
|
+
I,
|
|
76
|
+
b
|
|
77
|
+
), F(n.rootItems), M(!0);
|
|
78
|
+
}, [e, E]);
|
|
79
79
|
$(() => {
|
|
80
80
|
const n = c && !N.current;
|
|
81
81
|
if (N.current = c, !e || !c) return;
|
|
82
|
-
const t =
|
|
82
|
+
const t = E(), r = Y(
|
|
83
83
|
S,
|
|
84
|
-
|
|
85
|
-
|
|
84
|
+
I,
|
|
85
|
+
b
|
|
86
86
|
);
|
|
87
87
|
if (!(!n && r.layout !== "" && ue({
|
|
88
88
|
gridApi: e,
|
|
@@ -92,17 +92,20 @@ function Te({
|
|
|
92
92
|
if (n) {
|
|
93
93
|
queueMicrotask(() => {
|
|
94
94
|
const o = se(e, t);
|
|
95
|
-
if (o
|
|
96
|
-
|
|
95
|
+
if (o && !ce(
|
|
96
|
+
e,
|
|
97
|
+
o.leafColumnIds
|
|
98
|
+
)) {
|
|
99
|
+
const i = le(
|
|
97
100
|
o.items,
|
|
98
101
|
e
|
|
99
102
|
);
|
|
100
|
-
|
|
103
|
+
w(
|
|
101
104
|
B(e, i),
|
|
102
105
|
S,
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
),
|
|
106
|
+
I,
|
|
107
|
+
b
|
|
108
|
+
), F(i), M(!0);
|
|
106
109
|
return;
|
|
107
110
|
}
|
|
108
111
|
a();
|
|
@@ -116,7 +119,7 @@ function Te({
|
|
|
116
119
|
}, [
|
|
117
120
|
e,
|
|
118
121
|
c,
|
|
119
|
-
|
|
122
|
+
E,
|
|
120
123
|
a
|
|
121
124
|
]), j(() => {
|
|
122
125
|
if (!e || !c) return;
|
|
@@ -138,21 +141,21 @@ function Te({
|
|
|
138
141
|
];
|
|
139
142
|
let t = null;
|
|
140
143
|
const r = () => {
|
|
141
|
-
l.current ||
|
|
142
|
-
t = null, !(l.current ||
|
|
144
|
+
l.current || g(e) || (t && clearTimeout(t), t = setTimeout(() => {
|
|
145
|
+
t = null, !(l.current || g(e) || e.isDestroyed()) && a();
|
|
143
146
|
}, ee));
|
|
144
147
|
}, o = n.map(
|
|
145
148
|
(m) => X(e, m, () => {
|
|
146
149
|
r();
|
|
147
150
|
})
|
|
148
|
-
), i =
|
|
151
|
+
), i = ae(() => {
|
|
149
152
|
r();
|
|
150
153
|
});
|
|
151
154
|
return () => {
|
|
152
155
|
t && clearTimeout(t), o.forEach((m) => m()), i();
|
|
153
156
|
};
|
|
154
157
|
}, [e, c, a]);
|
|
155
|
-
const
|
|
158
|
+
const v = f(
|
|
156
159
|
(n) => {
|
|
157
160
|
if (!e) return;
|
|
158
161
|
l.current = !0;
|
|
@@ -167,56 +170,56 @@ function Te({
|
|
|
167
170
|
r.filter((s) => z(s.pinned)).map((s) => s.colId)
|
|
168
171
|
), m = o.filter(
|
|
169
172
|
(s) => z(s.pinned) && !i.has(s.colId)
|
|
170
|
-
),
|
|
173
|
+
), P = new Set(m.map((s) => s.colId));
|
|
171
174
|
e.applyColumnState({ state: o, applyOrder: !0 });
|
|
172
175
|
const u = () => {
|
|
173
176
|
T(n);
|
|
174
177
|
};
|
|
175
|
-
if (
|
|
178
|
+
if (P.size === 0) {
|
|
176
179
|
k(u);
|
|
177
180
|
return;
|
|
178
181
|
}
|
|
179
|
-
let O = !1, U = null,
|
|
180
|
-
|
|
182
|
+
let O = !1, U = null, L = null;
|
|
183
|
+
L = X(e, "columnPinned", () => {
|
|
181
184
|
if (O || e.isDestroyed()) return;
|
|
182
185
|
const s = e.getColumnState();
|
|
183
186
|
if (m.filter((G) => {
|
|
184
|
-
const
|
|
185
|
-
return
|
|
187
|
+
const d = s.find((_) => _.colId === G.colId);
|
|
188
|
+
return d && !d.pinned;
|
|
186
189
|
}).length > 0) {
|
|
187
|
-
O = !0, U && clearTimeout(U),
|
|
190
|
+
O = !0, U && clearTimeout(U), L?.();
|
|
188
191
|
const G = o.filter(
|
|
189
|
-
(
|
|
192
|
+
(d) => d.pinned && !P.has(d.colId)
|
|
190
193
|
);
|
|
191
194
|
if (G.length > 0) {
|
|
192
|
-
const
|
|
193
|
-
(
|
|
195
|
+
const d = G[0], _ = o.map(
|
|
196
|
+
(D) => D.colId === d.colId ? { ...D, pinned: null } : D
|
|
194
197
|
);
|
|
195
|
-
e.applyColumnState({ state:
|
|
198
|
+
e.applyColumnState({ state: _, applyOrder: !0 });
|
|
196
199
|
}
|
|
197
200
|
k(() => {
|
|
198
201
|
l.current = !1, a();
|
|
199
202
|
});
|
|
200
203
|
}
|
|
201
204
|
}), U = setTimeout(() => {
|
|
202
|
-
|
|
205
|
+
L?.(), O || u();
|
|
203
206
|
}, A);
|
|
204
207
|
},
|
|
205
208
|
[e, T, a]
|
|
206
|
-
), K =
|
|
209
|
+
), K = f(
|
|
207
210
|
(n) => {
|
|
208
|
-
|
|
211
|
+
v(V(n));
|
|
209
212
|
},
|
|
210
|
-
[
|
|
211
|
-
), Q =
|
|
213
|
+
[v]
|
|
214
|
+
), Q = f(
|
|
212
215
|
(n, t) => {
|
|
213
216
|
const r = V(n);
|
|
214
|
-
t ||
|
|
217
|
+
t || v(r), F(r), y(r);
|
|
215
218
|
},
|
|
216
|
-
[
|
|
217
|
-
), Z =
|
|
219
|
+
[v, y]
|
|
220
|
+
), Z = f(
|
|
218
221
|
(n, t) => {
|
|
219
|
-
const r = (
|
|
222
|
+
const r = (P) => P.map((u) => u.id === n ? {
|
|
220
223
|
...u,
|
|
221
224
|
data: {
|
|
222
225
|
...u.data,
|
|
@@ -225,8 +228,8 @@ function Te({
|
|
|
225
228
|
} : u.children ? {
|
|
226
229
|
...u,
|
|
227
230
|
children: r(u.children)
|
|
228
|
-
} : u), o = r(
|
|
229
|
-
if (
|
|
231
|
+
} : u), o = r(x.current);
|
|
232
|
+
if (F(o), y(o), !e) return;
|
|
230
233
|
l.current = !0;
|
|
231
234
|
const i = e.getColumnState(), m = q(i, [
|
|
232
235
|
{ colId: n, pinned: t }
|
|
@@ -251,5 +254,5 @@ function Te({
|
|
|
251
254
|
};
|
|
252
255
|
}
|
|
253
256
|
export {
|
|
254
|
-
|
|
257
|
+
Re as useDataTableColumnListSync
|
|
255
258
|
};
|
|
@@ -3,8 +3,7 @@ import { Badge as s } from "../../data-display/badge/badge.js";
|
|
|
3
3
|
import { FilterPopoverContent as u } from "../../flows/filter-strip/filter-tag-list.js";
|
|
4
4
|
import { Popover as b, PopoverTrigger as f } from "../../feedback/popover/popover.js";
|
|
5
5
|
import { Tooltip as g, TooltipTrigger as v, TooltipContent as x } from "../../feedback/tooltip/tooltip.js";
|
|
6
|
-
|
|
7
|
-
function I({
|
|
6
|
+
function w({
|
|
8
7
|
tags: o,
|
|
9
8
|
title: l = "Attributes",
|
|
10
9
|
maxVisibleTags: n = 4,
|
|
@@ -71,5 +70,5 @@ function I({
|
|
|
71
70
|
);
|
|
72
71
|
}
|
|
73
72
|
export {
|
|
74
|
-
|
|
73
|
+
w as ExpandableListItemAttributes
|
|
75
74
|
};
|
|
@@ -1,9 +1,8 @@
|
|
|
1
1
|
import { jsx as e, jsxs as s } from "react/jsx-runtime";
|
|
2
2
|
import { ScrollOverflowAffordance as o } from "../../layout/horizontal-scroller/scroll-overflow-affordance.js";
|
|
3
|
-
import "react";
|
|
4
3
|
import { OverflowTooltip as r } from "../../feedback/tooltip/overflow-tooltip.js";
|
|
5
4
|
const m = 128;
|
|
6
|
-
function
|
|
5
|
+
function x({
|
|
7
6
|
columns: i,
|
|
8
7
|
sectionId: l = "metrics"
|
|
9
8
|
}) {
|
|
@@ -51,5 +50,5 @@ function f({
|
|
|
51
50
|
);
|
|
52
51
|
}
|
|
53
52
|
export {
|
|
54
|
-
|
|
53
|
+
x as ExpandableListItemMetrics
|
|
55
54
|
};
|
|
@@ -7,6 +7,7 @@ export declare function getCalendarDayPickerClassNames(params: {
|
|
|
7
7
|
calendarKind: CalendarKind;
|
|
8
8
|
showOutsideDays: boolean;
|
|
9
9
|
periodRowHover?: boolean;
|
|
10
|
+
showWeekNumber?: boolean;
|
|
10
11
|
classNames?: Partial<DefaultClassNames>;
|
|
11
12
|
}): {
|
|
12
13
|
root: string;
|
|
@@ -27,7 +28,7 @@ export declare function getCalendarDayPickerClassNames(params: {
|
|
|
27
28
|
button_next: string;
|
|
28
29
|
button_previous: string;
|
|
29
30
|
week: string;
|
|
30
|
-
weeks
|
|
31
|
+
weeks: string;
|
|
31
32
|
weekday: string;
|
|
32
33
|
weekdays: string;
|
|
33
34
|
week_number: string;
|
|
@@ -57,4 +58,8 @@ export declare const previewModifierClassNames: {
|
|
|
57
58
|
preview_cap_start: string;
|
|
58
59
|
preview_cap_end: string;
|
|
59
60
|
};
|
|
61
|
+
export declare const fiscalPeriodBoundaryClassNames: {
|
|
62
|
+
fiscal_period_start: string;
|
|
63
|
+
fiscal_period_end: string;
|
|
64
|
+
};
|
|
60
65
|
export {};
|
|
@@ -1,22 +1,24 @@
|
|
|
1
1
|
import "react-day-picker";
|
|
2
2
|
import { cn as e } from "../../../lib/utils.js";
|
|
3
|
-
import { previewCapEndCellClassName as m, previewCapStartCellClassName as
|
|
4
|
-
function
|
|
3
|
+
import { previewCapEndCellClassName as m, previewCapStartCellClassName as p, previewCellClassName as w, rangeEndCellClassName as b, rangeMiddleCellClassName as u, rangeStartCellClassName as x, dayCellBaseClassName as h, weekNumberInteractiveClassName as k, weekNumberSelectedFillClassName as _, weekNumberBaseClassName as s, DAY_MONTH_MIN_WIDTH as y } from "./calendar-selection-appearance.js";
|
|
4
|
+
function N(l) {
|
|
5
5
|
const {
|
|
6
6
|
defaultClassNames: t,
|
|
7
|
-
pickerType:
|
|
8
|
-
calendarKind:
|
|
7
|
+
pickerType: i,
|
|
8
|
+
calendarKind: f,
|
|
9
9
|
showOutsideDays: d,
|
|
10
10
|
periodRowHover: c = !1,
|
|
11
|
-
|
|
12
|
-
|
|
11
|
+
showWeekNumber: a = !0,
|
|
12
|
+
classNames: o
|
|
13
|
+
} = l, r = i === "week", n = r && !c;
|
|
13
14
|
return {
|
|
14
15
|
root: e("w-fit", t.root),
|
|
15
16
|
months: e("relative", t.months),
|
|
16
17
|
month: e(
|
|
17
18
|
"relative flex flex-1",
|
|
18
|
-
|
|
19
|
-
"flex-col gap-2
|
|
19
|
+
y,
|
|
20
|
+
"flex-col gap-2",
|
|
21
|
+
a && "after:absolute after:top-[5.5rem] after:bottom-0 after:left-9 after:w-[1px] after:bg-stroke-hairline",
|
|
20
22
|
t.month
|
|
21
23
|
),
|
|
22
24
|
button_previous: e(
|
|
@@ -37,18 +39,20 @@ function v(l) {
|
|
|
37
39
|
),
|
|
38
40
|
caption_label: e("select-none font-medium text-sm", t.caption_label),
|
|
39
41
|
table: "w-full border-collapse",
|
|
42
|
+
weeks: e("flex flex-col", t.weeks),
|
|
40
43
|
weekdays: e(
|
|
41
|
-
"flex w-full relative after:absolute after:bottom-0 after:right-0 after:h-[1px] after:bg-stroke-hairline
|
|
44
|
+
"flex w-full relative after:absolute after:bottom-0 after:right-0 after:h-[1px] after:bg-stroke-hairline",
|
|
45
|
+
a ? "after:left-9" : "after:left-0",
|
|
42
46
|
t.weekdays
|
|
43
47
|
),
|
|
44
48
|
weekday: e(
|
|
45
49
|
"flex-1 select-none rounded-md font-normal text-center",
|
|
46
50
|
"text-[11px] text-secondary-foreground pb-2",
|
|
47
|
-
"[&:nth-child(2)]:pl-2",
|
|
51
|
+
a && "[&:nth-child(2)]:pl-2",
|
|
48
52
|
t.weekday
|
|
49
53
|
),
|
|
50
54
|
week: e(
|
|
51
|
-
|
|
55
|
+
r ? "flex w-full items-stretch group/week" : "mt-1 flex w-full items-stretch group/week",
|
|
52
56
|
t.week
|
|
53
57
|
),
|
|
54
58
|
week_number_header: e(
|
|
@@ -60,34 +64,38 @@ function v(l) {
|
|
|
60
64
|
s,
|
|
61
65
|
"whitespace-nowrap transition-colors",
|
|
62
66
|
n && "group-hover/week:bg-accent",
|
|
63
|
-
|
|
64
|
-
|
|
67
|
+
r && _,
|
|
68
|
+
r && k,
|
|
65
69
|
t.week_number
|
|
66
70
|
),
|
|
67
71
|
day: e(
|
|
68
72
|
h,
|
|
69
73
|
n && "group-hover/week:bg-accent",
|
|
70
|
-
|
|
74
|
+
o?.day
|
|
71
75
|
),
|
|
72
|
-
range_start: e(
|
|
76
|
+
range_start: e(x, t.range_start),
|
|
73
77
|
range_middle: e(u, t.range_middle),
|
|
74
|
-
range_end: e(
|
|
78
|
+
range_end: e(b, t.range_end),
|
|
75
79
|
today: e("text-brand", t.today),
|
|
76
80
|
outside: e(
|
|
77
|
-
|
|
81
|
+
f === "fiscal" || d ? "text-secondary-foreground opacity-50" : "invisible",
|
|
78
82
|
t.outside
|
|
79
83
|
),
|
|
80
84
|
disabled: e("text-secondary-foreground opacity-50", t.disabled),
|
|
81
85
|
hidden: e("invisible", t.hidden),
|
|
82
|
-
...
|
|
86
|
+
...o
|
|
83
87
|
};
|
|
84
88
|
}
|
|
85
|
-
const
|
|
86
|
-
preview:
|
|
87
|
-
preview_cap_start:
|
|
89
|
+
const j = {
|
|
90
|
+
preview: w,
|
|
91
|
+
preview_cap_start: p,
|
|
88
92
|
preview_cap_end: m
|
|
93
|
+
}, D = {
|
|
94
|
+
fiscal_period_start: "before:pointer-events-none before:absolute before:left-0 before:top-1/2 before:-translate-y-1/2 before:content-['('] before:text-sm before:font-normal before:text-brand",
|
|
95
|
+
fiscal_period_end: "after:pointer-events-none after:absolute after:right-0 after:top-1/2 after:-translate-y-1/2 after:content-[')'] after:text-sm after:font-normal after:text-brand"
|
|
89
96
|
};
|
|
90
97
|
export {
|
|
91
|
-
|
|
92
|
-
N as
|
|
98
|
+
D as fiscalPeriodBoundaryClassNames,
|
|
99
|
+
N as getCalendarDayPickerClassNames,
|
|
100
|
+
j as previewModifierClassNames
|
|
93
101
|
};
|
|
@@ -31,6 +31,7 @@ export interface BuildCalendarDayPickerComponentsParams {
|
|
|
31
31
|
onWeekSelect: (input: WeekPickerInput) => void;
|
|
32
32
|
periodRowHover?: boolean;
|
|
33
33
|
weekMode?: "single" | "multiple" | "range" | "multi-range";
|
|
34
|
+
showPeriodBoundaries?: boolean;
|
|
34
35
|
components?: React.ComponentProps<typeof DayPicker>["components"];
|
|
35
36
|
}
|
|
36
|
-
export declare function buildCalendarDayPickerComponents({ buttonVariant, pickerType, calendarKind, currentMonth, monthsFull, monthsShort, resolvedStartMonth, resolvedEndMonth, availableYears, fiscalPeriods, fiscalConfig, weekStartsOn, previousMonthLabel, nextMonthLabel, monthPlaceholder, yearPlaceholder, weekNumberLabel, weekNumberHeader, weekLabel, fiscalWeekNumberLabel, fiscalWeekAriaLabel, getCellMeta, onMonthChange, onWeekSelect, periodRowHover, weekMode, components, }: BuildCalendarDayPickerComponentsParams): React.ComponentProps<typeof DayPicker>["components"];
|
|
37
|
+
export declare function buildCalendarDayPickerComponents({ buttonVariant, pickerType, calendarKind, currentMonth, monthsFull, monthsShort, resolvedStartMonth, resolvedEndMonth, availableYears, fiscalPeriods, fiscalConfig, weekStartsOn, previousMonthLabel, nextMonthLabel, monthPlaceholder, yearPlaceholder, weekNumberLabel, weekNumberHeader, weekLabel, fiscalWeekNumberLabel, fiscalWeekAriaLabel, getCellMeta, onMonthChange, onWeekSelect, periodRowHover, weekMode, showPeriodBoundaries, components, }: BuildCalendarDayPickerComponentsParams): React.ComponentProps<typeof DayPicker>["components"];
|