impact-nova 2.5.19 → 2.5.20
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 +2 -3
- package/dist/components/data/expandable-list-item/expandable-list-item-metrics.js +2 -3
- package/dist/components/data-display/calendar/calendar.js +194 -190
- 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/fiscal-pass-through.d.ts +6 -6
- package/dist/components/forms/date-picker/fiscal-pass-through.js +7 -3
- package/dist/components/forms/date-picker/multi-week-picker.js +1 -1
- package/dist/components/forms/date-picker/week-picker.js +123 -123
- package/dist/components/forms/date-picker/week-range-picker.js +188 -188
- package/dist/components/forms/select/components/SelectTriggerValue.js +2 -3
- package/dist/components/forms/select/components/Submenu.js +2 -3
- package/dist/form-react/Fields/MultiWeekPickerField.js +16 -15
- package/dist/form-react/Fields/WeekRangePicker.js +18 -16
- package/dist/form-react/types/fields.types.d.ts +4 -0
- package/dist/form-react/utils/date.utils.d.ts +1 -0
- package/dist/form-react/utils/date.utils.js +38 -34
- package/dist/lib/fiscal-calendar/index.d.ts +2 -2
- package/dist/lib/fiscal-calendar/index.js +26 -24
- package/dist/lib/fiscal-calendar/week-selection.d.ts +5 -0
- package/dist/lib/fiscal-calendar/week-selection.js +56 -49
- package/dist/llms/rules/installation.js +1 -1
- package/dist/llms/rules/requirements.js +1 -1
- package/package.json +1 -1
|
@@ -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
|
};
|
|
@@ -1,315 +1,319 @@
|
|
|
1
|
-
import { jsxs as
|
|
2
|
-
import { createComponent as
|
|
3
|
-
import { CALENDAR_DEFAULT_END_MONTH as
|
|
4
|
-
import { civilFromLocalDate as
|
|
5
|
-
import { getFiscalPresets as
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
10
|
-
import {
|
|
11
|
-
import {
|
|
12
|
-
import {
|
|
13
|
-
import {
|
|
14
|
-
import {
|
|
15
|
-
import {
|
|
16
|
-
import {
|
|
17
|
-
import {
|
|
18
|
-
import {
|
|
19
|
-
|
|
1
|
+
import { jsxs as $e, jsx as c } from "react/jsx-runtime";
|
|
2
|
+
import { createComponent as Ke } from "../../../lib/primitives/create-component.js";
|
|
3
|
+
import { CALENDAR_DEFAULT_END_MONTH as ea, CALENDAR_DEFAULT_START_MONTH as aa, getCalendarDayLayoutAttr as ra, getCalendarMonthLayoutAttr as la, resolveFiscalConfig as na, resolveFiscalPattern as ta } from "./calendar-config.js";
|
|
4
|
+
import { civilFromLocalDate as j } from "../../../lib/fiscal-calendar/civil-date.js";
|
|
5
|
+
import { getFiscalPresets as oa } from "../../../lib/fiscal-calendar/presets.js";
|
|
6
|
+
import { resolveWeekStartsOn as ia } from "../../../lib/fiscal-calendar/week-selection.js";
|
|
7
|
+
import { getGregorianPresets as sa } from "./calendar-gregorian-presets.js";
|
|
8
|
+
import { paddedWeekNumber as T } from "./calendar-week-number-header.js";
|
|
9
|
+
import { formatPeriodCell as ca, formatFiscalYearLabel as L, formatQuarterLabelsForYear as da, formatYearIntervalCaption as ma } from "./calendar-fiscal-labels.js";
|
|
10
|
+
import { CalendarDayPickerView as ua } from "./calendar-day-picker-view.js";
|
|
11
|
+
import { CalendarFooter as ga } from "./calendar-footer.js";
|
|
12
|
+
import { CalendarMonthPanes as fa } from "./calendar-month-panes.js";
|
|
13
|
+
import { CalendarPresetStrip as pa } from "./calendar-preset-strip.js";
|
|
14
|
+
import { CalendarQuarterPanes as ba } from "./calendar-quarter-panes.js";
|
|
15
|
+
import { CalendarYearPanes as Ca, YEAR_CAPTION_PAGE_SIZE as ha, YEAR_PAGE_SIZE as Ya } from "./calendar-year-panes.js";
|
|
16
|
+
import { isDateRangeArray as Sa, asDayPickerSelection as k, formatMultiRangeFooterSummary as va, asRangeSelection as ya } from "./calendar-interval-utils.js";
|
|
17
|
+
import { useCalendarI18n as Pa } from "./use-calendar-i18n.js";
|
|
18
|
+
import { useCalendarState as La } from "./use-calendar-state.js";
|
|
19
|
+
import { useFiscalCalendar as ka } from "./use-fiscal-calendar.js";
|
|
20
|
+
const Ua = Ke(
|
|
20
21
|
"Calendar",
|
|
21
22
|
({
|
|
22
|
-
className:
|
|
23
|
-
classNames:
|
|
24
|
-
showOutsideDays:
|
|
25
|
-
fixedWeeks:
|
|
26
|
-
captionLayout:
|
|
27
|
-
buttonVariant:
|
|
28
|
-
formatters:
|
|
29
|
-
components:
|
|
23
|
+
className: U,
|
|
24
|
+
classNames: Z,
|
|
25
|
+
showOutsideDays: z = !1,
|
|
26
|
+
fixedWeeks: V = !0,
|
|
27
|
+
captionLayout: B = "dropdown",
|
|
28
|
+
buttonVariant: J = "ghost",
|
|
29
|
+
formatters: X,
|
|
30
|
+
components: $,
|
|
30
31
|
showFooter: i = !0,
|
|
31
|
-
footerFlashKey:
|
|
32
|
-
footerFlashTarget:
|
|
33
|
-
disableApply:
|
|
34
|
-
onApply:
|
|
35
|
-
onCancel:
|
|
36
|
-
onClear:
|
|
32
|
+
footerFlashKey: K = 0,
|
|
33
|
+
footerFlashTarget: ee,
|
|
34
|
+
disableApply: ae = !1,
|
|
35
|
+
onApply: re,
|
|
36
|
+
onCancel: le,
|
|
37
|
+
onClear: ne,
|
|
37
38
|
mode: n = "single",
|
|
38
|
-
selected:
|
|
39
|
-
onSelect:
|
|
40
|
-
onSelectionChange:
|
|
39
|
+
selected: D,
|
|
40
|
+
onSelect: te,
|
|
41
|
+
onSelectionChange: oe,
|
|
41
42
|
pickerType: t = "date",
|
|
42
43
|
weekMode: s = "single",
|
|
43
|
-
selectedWeeks:
|
|
44
|
-
onWeekSelect:
|
|
44
|
+
selectedWeeks: ie,
|
|
45
|
+
onWeekSelect: se,
|
|
45
46
|
calendarKind: r = "gregorian",
|
|
46
|
-
fiscalConfig:
|
|
47
|
+
fiscalConfig: ce,
|
|
47
48
|
fiscalMode: p = "basic",
|
|
48
49
|
granularity: b,
|
|
49
|
-
fiscalMonthPattern:
|
|
50
|
-
fiscalYearStartMonth:
|
|
51
|
-
weekStartsOn:
|
|
50
|
+
fiscalMonthPattern: F,
|
|
51
|
+
fiscalYearStartMonth: A = 1,
|
|
52
|
+
weekStartsOn: R,
|
|
52
53
|
monthMode: o = "single",
|
|
53
54
|
selectedMonths: E,
|
|
54
|
-
onMonthSelect:
|
|
55
|
+
onMonthSelect: de,
|
|
55
56
|
selectedQuarters: N,
|
|
56
|
-
onQuarterSelect:
|
|
57
|
-
selectedYear:
|
|
58
|
-
onYearSelect:
|
|
59
|
-
yearMode:
|
|
60
|
-
showIntervalCaption:
|
|
61
|
-
showPeriodBoundaries:
|
|
62
|
-
showPresets:
|
|
63
|
-
comparison:
|
|
64
|
-
onComparisonChange:
|
|
65
|
-
onRangesChange:
|
|
66
|
-
month:
|
|
67
|
-
defaultMonth:
|
|
68
|
-
onMonthChange:
|
|
69
|
-
startMonth:
|
|
70
|
-
endMonth:
|
|
71
|
-
autoNavigateToAvailable:
|
|
72
|
-
...
|
|
57
|
+
onQuarterSelect: me,
|
|
58
|
+
selectedYear: W,
|
|
59
|
+
onYearSelect: ue,
|
|
60
|
+
yearMode: C = "single",
|
|
61
|
+
showIntervalCaption: M = !1,
|
|
62
|
+
showPeriodBoundaries: ge = !1,
|
|
63
|
+
showPresets: x = !1,
|
|
64
|
+
comparison: fe,
|
|
65
|
+
onComparisonChange: pe,
|
|
66
|
+
onRangesChange: be,
|
|
67
|
+
month: Ce,
|
|
68
|
+
defaultMonth: he,
|
|
69
|
+
onMonthChange: Ye,
|
|
70
|
+
startMonth: Se,
|
|
71
|
+
endMonth: ve,
|
|
72
|
+
autoNavigateToAvailable: ye = !1,
|
|
73
|
+
...h
|
|
73
74
|
}, Pe) => {
|
|
74
|
-
const { t: a, intlLocale:
|
|
75
|
-
fiscalConfig:
|
|
75
|
+
const { t: a, intlLocale: Le, dateFnsLocale: ke, monthsFull: De, monthsShort: _ } = Pa(), l = na({
|
|
76
|
+
fiscalConfig: ce,
|
|
76
77
|
calendarKind: r,
|
|
77
78
|
fiscalMode: p,
|
|
78
|
-
fiscalMonthPattern:
|
|
79
|
-
fiscalYearStartMonth:
|
|
80
|
-
weekStartsOn:
|
|
81
|
-
}),
|
|
79
|
+
fiscalMonthPattern: F,
|
|
80
|
+
fiscalYearStartMonth: A,
|
|
81
|
+
weekStartsOn: R
|
|
82
|
+
}), O = ia({
|
|
83
|
+
weekStartsOn: R,
|
|
84
|
+
fiscalConfig: l
|
|
85
|
+
}), I = ta({
|
|
82
86
|
calendarKind: r,
|
|
83
87
|
fiscalMode: p,
|
|
84
|
-
fiscalMonthPattern:
|
|
85
|
-
}), d =
|
|
88
|
+
fiscalMonthPattern: F
|
|
89
|
+
}), d = Se ?? aa, m = ve ?? ea, {
|
|
86
90
|
pendingSelection: u,
|
|
87
91
|
currentMonth: g,
|
|
88
|
-
pendingWeekSelection:
|
|
92
|
+
pendingWeekSelection: Fe,
|
|
89
93
|
pendingMonthSelection: q,
|
|
90
|
-
pendingQuarterSelection:
|
|
91
|
-
pendingYearSelection:
|
|
92
|
-
monthPickerYear:
|
|
94
|
+
pendingQuarterSelection: w,
|
|
95
|
+
pendingYearSelection: Q,
|
|
96
|
+
monthPickerYear: Y,
|
|
93
97
|
handleMonthChangeInternal: f,
|
|
94
|
-
resolveWeekFromInput:
|
|
95
|
-
handleWeekClick:
|
|
96
|
-
handleMonthClick:
|
|
97
|
-
handleQuarterClick:
|
|
98
|
-
handleYearClick:
|
|
98
|
+
resolveWeekFromInput: Ae,
|
|
99
|
+
handleWeekClick: Re,
|
|
100
|
+
handleMonthClick: Ee,
|
|
101
|
+
handleQuarterClick: Ne,
|
|
102
|
+
handleYearClick: We,
|
|
99
103
|
handlePresetSelect: Me,
|
|
100
|
-
availableYears:
|
|
104
|
+
availableYears: H,
|
|
101
105
|
selectedDaysFromWeeks: xe,
|
|
102
|
-
selectedDaysFromRanges:
|
|
103
|
-
weekRangeModifiers:
|
|
104
|
-
handleInternalSelect:
|
|
106
|
+
selectedDaysFromRanges: S,
|
|
107
|
+
weekRangeModifiers: _e,
|
|
108
|
+
handleInternalSelect: Oe,
|
|
105
109
|
handleApply: Ie,
|
|
106
110
|
handleCancel: qe,
|
|
107
|
-
handleClear:
|
|
108
|
-
isMonthSelected:
|
|
109
|
-
getMonthRangeProps:
|
|
110
|
-
isMonthDisabled:
|
|
111
|
-
isQuarterSelected:
|
|
112
|
-
isQuarterDisabled:
|
|
113
|
-
isYearSelected:
|
|
114
|
-
isYearDisabled:
|
|
115
|
-
isApplyDisabledInternal:
|
|
116
|
-
} =
|
|
111
|
+
handleClear: we,
|
|
112
|
+
isMonthSelected: Qe,
|
|
113
|
+
getMonthRangeProps: He,
|
|
114
|
+
isMonthDisabled: Ge,
|
|
115
|
+
isQuarterSelected: je,
|
|
116
|
+
isQuarterDisabled: Te,
|
|
117
|
+
isYearSelected: Ue,
|
|
118
|
+
isYearDisabled: Ze,
|
|
119
|
+
isApplyDisabledInternal: ze
|
|
120
|
+
} = La({
|
|
117
121
|
showFooter: i,
|
|
118
122
|
mode: n,
|
|
119
|
-
selected:
|
|
120
|
-
onSelect:
|
|
121
|
-
onSelectionChange:
|
|
123
|
+
selected: D,
|
|
124
|
+
onSelect: te,
|
|
125
|
+
onSelectionChange: oe,
|
|
122
126
|
pickerType: t,
|
|
123
127
|
weekMode: s,
|
|
124
|
-
selectedWeeks:
|
|
125
|
-
onWeekSelect:
|
|
128
|
+
selectedWeeks: ie,
|
|
129
|
+
onWeekSelect: se,
|
|
126
130
|
calendarKind: r,
|
|
127
131
|
fiscalMode: p,
|
|
128
132
|
granularity: b,
|
|
129
133
|
resolvedFiscalPattern: I,
|
|
130
134
|
fiscalConfig: l,
|
|
131
|
-
fiscalYearStartMonth:
|
|
132
|
-
weekStartsOn:
|
|
135
|
+
fiscalYearStartMonth: A,
|
|
136
|
+
weekStartsOn: O,
|
|
133
137
|
monthMode: o,
|
|
134
138
|
selectedMonths: E,
|
|
135
|
-
onMonthSelect:
|
|
139
|
+
onMonthSelect: de,
|
|
136
140
|
selectedQuarters: N,
|
|
137
|
-
onQuarterSelect:
|
|
138
|
-
selectedYear:
|
|
139
|
-
onYearSelect:
|
|
140
|
-
yearMode:
|
|
141
|
-
comparison:
|
|
142
|
-
onComparisonChange:
|
|
143
|
-
onRangesChange:
|
|
144
|
-
month:
|
|
145
|
-
defaultMonth:
|
|
146
|
-
onMonthChange:
|
|
141
|
+
onQuarterSelect: me,
|
|
142
|
+
selectedYear: W,
|
|
143
|
+
onYearSelect: ue,
|
|
144
|
+
yearMode: C,
|
|
145
|
+
comparison: fe,
|
|
146
|
+
onComparisonChange: pe,
|
|
147
|
+
onRangesChange: be,
|
|
148
|
+
month: Ce,
|
|
149
|
+
defaultMonth: he,
|
|
150
|
+
onMonthChange: Ye,
|
|
147
151
|
resolvedStartMonth: d,
|
|
148
152
|
resolvedEndMonth: m,
|
|
149
|
-
disabled:
|
|
150
|
-
autoNavigateToAvailable:
|
|
151
|
-
yearPageSize:
|
|
152
|
-
onApply:
|
|
153
|
-
onCancel:
|
|
154
|
-
onClear:
|
|
155
|
-
}), { getCellMeta:
|
|
153
|
+
disabled: h.disabled,
|
|
154
|
+
autoNavigateToAvailable: ye,
|
|
155
|
+
yearPageSize: M ? ha : Ya,
|
|
156
|
+
onApply: re,
|
|
157
|
+
onCancel: le,
|
|
158
|
+
onClear: ne
|
|
159
|
+
}), { getCellMeta: Ve, model: v } = ka(
|
|
156
160
|
r === "fiscal" ? l : void 0,
|
|
157
161
|
g
|
|
158
|
-
),
|
|
162
|
+
), Be = r === "fiscal" && v ? v.periods.map((e) => ca(e)) : void 0, y = l?.fyLabel ?? "fy-long", P = r === "fiscal" ? H.map((e) => ({
|
|
159
163
|
...e,
|
|
160
|
-
label:
|
|
161
|
-
})) :
|
|
162
|
-
return /* @__PURE__ */
|
|
164
|
+
label: L(Number(e.value), y)
|
|
165
|
+
})) : H, G = x ? r === "fiscal" && l ? oa(l, j(/* @__PURE__ */ new Date())) : sa(j(/* @__PURE__ */ new Date())) : [], Je = t === "week" ? "week" : "date", Xe = n === "multi-range" ? S : Sa(u) ? void 0 : u;
|
|
166
|
+
return /* @__PURE__ */ $e(
|
|
163
167
|
"div",
|
|
164
168
|
{
|
|
165
169
|
ref: Pe,
|
|
166
170
|
"data-component": "calendar",
|
|
167
|
-
"data-month-layout":
|
|
168
|
-
"data-day-layout":
|
|
171
|
+
"data-month-layout": la(t, o),
|
|
172
|
+
"data-day-layout": ra(t, n, s),
|
|
169
173
|
children: [
|
|
170
|
-
|
|
174
|
+
x && G.length > 0 ? /* @__PURE__ */ c(pa, { presets: G, onPresetSelect: Me }) : null,
|
|
171
175
|
t === "month" ? /* @__PURE__ */ c(
|
|
172
|
-
|
|
176
|
+
fa,
|
|
173
177
|
{
|
|
174
178
|
monthMode: o === "multi-range" ? "multiple" : o,
|
|
175
|
-
monthPickerYear:
|
|
179
|
+
monthPickerYear: Y,
|
|
176
180
|
monthsShort: _,
|
|
177
181
|
showFooter: i,
|
|
178
182
|
pendingMonthSelection: q,
|
|
179
183
|
selectedMonths: E,
|
|
180
184
|
resolvedStartYear: d.getFullYear(),
|
|
181
185
|
resolvedEndYear: m.getFullYear(),
|
|
182
|
-
yearOptions:
|
|
186
|
+
yearOptions: P,
|
|
183
187
|
previousYearLabel: a("calendar.previousYear"),
|
|
184
188
|
nextYearLabel: a("calendar.nextYear"),
|
|
185
189
|
currentMonth: g,
|
|
186
|
-
isMonthSelected:
|
|
187
|
-
getMonthRangeProps:
|
|
188
|
-
isMonthDisabled:
|
|
190
|
+
isMonthSelected: Qe,
|
|
191
|
+
getMonthRangeProps: He,
|
|
192
|
+
isMonthDisabled: Ge,
|
|
189
193
|
onMonthChange: f,
|
|
190
|
-
onMonthClick:
|
|
191
|
-
periodLabels:
|
|
194
|
+
onMonthClick: Ee,
|
|
195
|
+
periodLabels: Be
|
|
192
196
|
}
|
|
193
197
|
) : t === "quarter" ? /* @__PURE__ */ c(
|
|
194
|
-
|
|
198
|
+
ba,
|
|
195
199
|
{
|
|
196
200
|
quarterMode: o,
|
|
197
|
-
pickerYear:
|
|
201
|
+
pickerYear: Y,
|
|
198
202
|
showFooter: i,
|
|
199
|
-
pendingQuarterSelection:
|
|
203
|
+
pendingQuarterSelection: w,
|
|
200
204
|
selectedQuarters: N,
|
|
201
205
|
resolvedStartYear: d.getFullYear(),
|
|
202
206
|
resolvedEndYear: m.getFullYear(),
|
|
203
|
-
yearOptions:
|
|
207
|
+
yearOptions: P,
|
|
204
208
|
previousYearLabel: a("calendar.previousYear"),
|
|
205
209
|
nextYearLabel: a("calendar.nextYear"),
|
|
206
210
|
currentMonth: g,
|
|
207
|
-
quarterLabelsForYear: (e) =>
|
|
211
|
+
quarterLabelsForYear: (e) => da(
|
|
208
212
|
e,
|
|
209
213
|
r === "fiscal" ? l : void 0
|
|
210
214
|
),
|
|
211
|
-
isQuarterSelected:
|
|
212
|
-
isQuarterDisabled:
|
|
215
|
+
isQuarterSelected: je,
|
|
216
|
+
isQuarterDisabled: Te,
|
|
213
217
|
onMonthChange: f,
|
|
214
|
-
onQuarterClick:
|
|
218
|
+
onQuarterClick: Ne
|
|
215
219
|
}
|
|
216
220
|
) : t === "year" ? /* @__PURE__ */ c(
|
|
217
|
-
|
|
221
|
+
Ca,
|
|
218
222
|
{
|
|
219
|
-
pickerYear:
|
|
223
|
+
pickerYear: Y,
|
|
220
224
|
resolvedStartYear: d.getFullYear(),
|
|
221
225
|
resolvedEndYear: m.getFullYear(),
|
|
222
226
|
previousYearLabel: a("calendar.previousYear"),
|
|
223
227
|
nextYearLabel: a("calendar.nextYear"),
|
|
224
|
-
yearLabels: r === "fiscal" ? (e) =>
|
|
225
|
-
yearCaptions:
|
|
228
|
+
yearLabels: r === "fiscal" ? (e) => L(e, y) : void 0,
|
|
229
|
+
yearCaptions: M ? (e) => ma(
|
|
226
230
|
e,
|
|
227
231
|
r === "fiscal" ? l : void 0
|
|
228
232
|
) : void 0,
|
|
229
233
|
showFooter: i,
|
|
230
|
-
pendingYearSelection:
|
|
231
|
-
selectedYear:
|
|
232
|
-
isYearSelected:
|
|
233
|
-
isYearDisabled:
|
|
234
|
+
pendingYearSelection: Q,
|
|
235
|
+
selectedYear: W,
|
|
236
|
+
isYearSelected: Ue,
|
|
237
|
+
isYearDisabled: Ze,
|
|
234
238
|
onYearPageChange: (e) => f(new Date(e, 0, 1)),
|
|
235
|
-
onYearClick:
|
|
239
|
+
onYearClick: We
|
|
236
240
|
}
|
|
237
241
|
) : /* @__PURE__ */ c(
|
|
238
|
-
|
|
242
|
+
ua,
|
|
239
243
|
{
|
|
240
|
-
className:
|
|
241
|
-
pickerType:
|
|
244
|
+
className: U,
|
|
245
|
+
pickerType: Je,
|
|
242
246
|
mode: n === "multi-range" ? "multiple" : n,
|
|
243
247
|
weekMode: s === "multi-range" ? "multiple" : s,
|
|
244
248
|
calendarKind: r,
|
|
245
249
|
granularity: b,
|
|
246
|
-
showOutsideDays:
|
|
247
|
-
fixedWeeks:
|
|
248
|
-
captionLayout:
|
|
249
|
-
buttonVariant:
|
|
250
|
-
weekStartsOn:
|
|
251
|
-
formatters:
|
|
252
|
-
classNames:
|
|
253
|
-
components:
|
|
254
|
-
selected: n === "multi-range" ?
|
|
250
|
+
showOutsideDays: z,
|
|
251
|
+
fixedWeeks: V,
|
|
252
|
+
captionLayout: B,
|
|
253
|
+
buttonVariant: J,
|
|
254
|
+
weekStartsOn: O,
|
|
255
|
+
formatters: X,
|
|
256
|
+
classNames: Z,
|
|
257
|
+
components: $,
|
|
258
|
+
selected: n === "multi-range" ? S : k(D),
|
|
255
259
|
showFooter: i,
|
|
256
|
-
showPeriodBoundaries:
|
|
257
|
-
pendingSelection:
|
|
258
|
-
selectedDaysFromWeeks: xe ??
|
|
260
|
+
showPeriodBoundaries: ge,
|
|
261
|
+
pendingSelection: k(Xe),
|
|
262
|
+
selectedDaysFromWeeks: xe ?? S,
|
|
259
263
|
currentMonth: g,
|
|
260
|
-
monthsFull:
|
|
264
|
+
monthsFull: De,
|
|
261
265
|
monthsShort: _,
|
|
262
266
|
resolvedStartMonth: d,
|
|
263
267
|
resolvedEndMonth: m,
|
|
264
|
-
availableYears:
|
|
265
|
-
fiscalPeriods:
|
|
268
|
+
availableYears: P,
|
|
269
|
+
fiscalPeriods: v?.periods,
|
|
266
270
|
fiscalConfig: l,
|
|
267
|
-
dateFnsLocale:
|
|
268
|
-
intlLocale:
|
|
269
|
-
weekRangeModifiers:
|
|
270
|
-
getCellMeta:
|
|
271
|
-
onSelect:
|
|
271
|
+
dateFnsLocale: ke,
|
|
272
|
+
intlLocale: Le,
|
|
273
|
+
weekRangeModifiers: _e,
|
|
274
|
+
getCellMeta: Ve,
|
|
275
|
+
onSelect: Oe,
|
|
272
276
|
onMonthChange: f,
|
|
273
|
-
onWeekSelect: (e) => Ae(
|
|
277
|
+
onWeekSelect: (e) => Re(Ae(e)),
|
|
274
278
|
previousMonthLabel: a("calendar.previousMonth"),
|
|
275
279
|
nextMonthLabel: a("calendar.nextMonth"),
|
|
276
280
|
monthPlaceholder: a(r === "fiscal" ? "calendar.periodPlaceholder" : "calendar.monthPlaceholder"),
|
|
277
281
|
yearPlaceholder: a(r === "fiscal" ? "calendar.fyPlaceholder" : "calendar.yearPlaceholder"),
|
|
278
282
|
weekNumberHeader: a("calendar.weekNumberHeader"),
|
|
279
|
-
weekNumberLabel: (e) => a("calendar.weekNumber", { number:
|
|
283
|
+
weekNumberLabel: (e) => a("calendar.weekNumber", { number: T(e) }),
|
|
280
284
|
weekLabel: (e) => a("calendar.weekLabel", { number: e }),
|
|
281
285
|
fiscalWeekAriaLabel: (e) => a("calendar.fiscalWeekLabel", {
|
|
282
286
|
number: e.fiscalWeek ?? 0,
|
|
283
287
|
period: e.fiscalPeriod ?? 0,
|
|
284
|
-
fy: e.fy != null ?
|
|
288
|
+
fy: e.fy != null ? L(e.fy, y) : ""
|
|
285
289
|
}),
|
|
286
|
-
formatWeekNumber: (e) => a("calendar.weekNumber", { number:
|
|
287
|
-
disabled:
|
|
288
|
-
...
|
|
290
|
+
formatWeekNumber: (e) => a("calendar.weekNumber", { number: T(e) }),
|
|
291
|
+
disabled: h.disabled,
|
|
292
|
+
...h
|
|
289
293
|
}
|
|
290
294
|
),
|
|
291
295
|
i ? /* @__PURE__ */ c(
|
|
292
|
-
|
|
296
|
+
ga,
|
|
293
297
|
{
|
|
294
298
|
pickerType: t,
|
|
295
299
|
mode: n,
|
|
296
300
|
weekMode: s === "multi-range" ? "range" : s,
|
|
297
301
|
monthMode: o === "multi-range" ? "range" : o,
|
|
298
|
-
yearMode:
|
|
302
|
+
yearMode: C === "multi-range" ? "range" : C,
|
|
299
303
|
calendarKind: r,
|
|
300
304
|
granularity: b,
|
|
301
305
|
resolvedFiscalPattern: I,
|
|
302
306
|
fiscalConfig: l,
|
|
303
|
-
pendingSelection:
|
|
304
|
-
pendingWeekSelection:
|
|
307
|
+
pendingSelection: k(u),
|
|
308
|
+
pendingWeekSelection: Fe,
|
|
305
309
|
pendingMonthSelection: q,
|
|
306
|
-
pendingQuarterSelection:
|
|
307
|
-
pendingYearSelection:
|
|
308
|
-
multiRangeSummary: n === "multi-range" ?
|
|
309
|
-
disableApply:
|
|
310
|
-
isApplyDisabled:
|
|
311
|
-
footerFlashKey:
|
|
312
|
-
footerFlashTarget:
|
|
310
|
+
pendingQuarterSelection: w,
|
|
311
|
+
pendingYearSelection: Q,
|
|
312
|
+
multiRangeSummary: n === "multi-range" ? va(ya(u)) : void 0,
|
|
313
|
+
disableApply: ae,
|
|
314
|
+
isApplyDisabled: ze,
|
|
315
|
+
footerFlashKey: K,
|
|
316
|
+
footerFlashTarget: ee,
|
|
313
317
|
labels: {
|
|
314
318
|
clear: a("calendar.clear"),
|
|
315
319
|
cancel: a("calendar.cancel"),
|
|
@@ -322,7 +326,7 @@ const Ga = $e(
|
|
|
322
326
|
yearSingle: a("calendar.yearRange"),
|
|
323
327
|
yearPlural: (e) => a("calendar.yearRangePlural", { count: e })
|
|
324
328
|
},
|
|
325
|
-
onClear:
|
|
329
|
+
onClear: we,
|
|
326
330
|
onCancel: qe,
|
|
327
331
|
onApply: Ie
|
|
328
332
|
}
|
|
@@ -333,5 +337,5 @@ const Ga = $e(
|
|
|
333
337
|
}
|
|
334
338
|
);
|
|
335
339
|
export {
|
|
336
|
-
|
|
340
|
+
Ua as Calendar
|
|
337
341
|
};
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { jsxs as t, jsx as e } from "react/jsx-runtime";
|
|
2
2
|
import { Tooltip as l, TooltipTrigger as n, TooltipContent as o } from "./tooltip.js";
|
|
3
|
-
|
|
4
|
-
const p = (i, r, a) => /* @__PURE__ */ t(l, { children: [
|
|
3
|
+
const d = (i, r, a) => /* @__PURE__ */ t(l, { children: [
|
|
5
4
|
/* @__PURE__ */ e(n, { asChild: !0, children: /* @__PURE__ */ e("span", { className: "inline-flex items-center justify-center h-full w-full", children: i }) }),
|
|
6
5
|
/* @__PURE__ */ e(o, { variant: "tertiary", className: a, children: r })
|
|
7
6
|
] }), h = (i, r) => /* @__PURE__ */ t(l, { children: [
|
|
@@ -10,5 +9,5 @@ const p = (i, r, a) => /* @__PURE__ */ t(l, { children: [
|
|
|
10
9
|
] });
|
|
11
10
|
export {
|
|
12
11
|
h as defaultAccordionTooltipRender,
|
|
13
|
-
|
|
12
|
+
d as defaultTabTooltipRender
|
|
14
13
|
};
|
|
@@ -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";
|
|
7
5
|
import { OverflowTooltip as A } from "../../feedback/tooltip/overflow-tooltip.js";
|
|
8
|
-
import { ModuleRegistry as
|
|
9
|
-
import { AllEnterpriseModule as
|
|
10
|
-
import { DataTable as
|
|
6
|
+
import { ModuleRegistry as $, AllCommunityModule as H } from "ag-grid-community";
|
|
7
|
+
import { AllEnterpriseModule as V } from "ag-grid-enterprise";
|
|
8
|
+
import { DataTable as J, DataTableContent as Q } from "../../data/data-table/data-table.js";
|
|
11
9
|
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
|
+
$.registerModules([H, V]);
|
|
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(X, { 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 ? Y(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(J, { 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
|
+
Q,
|
|
285
285
|
{
|
|
286
286
|
rowData: y,
|
|
287
287
|
columnDefs: I,
|