@povio/ui 6.0.0-rc.2 → 6.0.0-rc.4
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/{Autocomplete.bound-e5WbxlBm.js → Autocomplete.bound-DTKSW9Sb.js} +1 -1
- package/dist/{Calendar-ChmIflXX.js → Calendar-u-UcoZhB.js} +6 -156
- package/dist/Calendar.lazy-B9YqgHbn.js +131 -0
- package/dist/{DatePicker-Bc_E4UZ1.js → DatePicker-BaLQOOJJ.js} +7 -5
- package/dist/{DatePicker.bound-CtBL5w-8.js → DatePicker.bound-NquZAtFK.js} +1 -1
- package/dist/{DatePickerInput-TND0rEMc.js → DatePickerInput-B0e_huQt.js} +6 -250
- package/dist/{DateRangePicker-BNMTOQ2N.js → DateRangePicker-D4lU0oQF.js} +25 -287
- package/dist/{DateRangePicker.bound-GeRw9Iuj.js → DateRangePicker.bound-B_gZlQvv.js} +1 -1
- package/dist/{DateTimePicker-B3YjV4uj.js → DateTimePicker-CtU096IU.js} +7 -5
- package/dist/{DateTimePicker.bound-ByjHsAnf.js → DateTimePicker.bound-BJzw56_u.js} +1 -1
- package/dist/{Input.bound-CnqI-L-b.js → Input.bound-DCTT5J62.js} +1 -1
- package/dist/{NumberField.bound-DiDYEZM4.js → NumberField.bound-CQcKgZ--.js} +1 -1
- package/dist/{NumberRangeInput.bound-B0e7yUDI.js → NumberRangeInput.bound-D-Lj5_KL.js} +1 -1
- package/dist/{PasswordInput.bound-Bj3WO1zC.js → PasswordInput.bound-WJ_VYQpn.js} +1 -1
- package/dist/RangeCalendar-CjaTtdUQ.js +291 -0
- package/dist/{RichTextEditor-qoxzWBFP.js → RichTextEditor-DpIQS8gk.js} +3 -3
- package/dist/{Select-BAlYMh4h.js → Select-DOrH8Q5O.js} +36 -361
- package/dist/{Select.bound-CQPG2sWV.js → Select.bound-RxqOhlbq.js} +1 -1
- package/dist/SelectListBox-PITCjHi6.js +362 -0
- package/dist/{TimePicker-CmBGkxDC.js → TimePicker-BjWuzBv_.js} +4 -3
- package/dist/{TimePicker.bound-3i1DJgrU.js → TimePicker.bound-DBovZwLJ.js} +1 -1
- package/dist/{datePickerValue.utils-BxHR_BQZ.js → TimePickerForm-BReCXELG.js} +2 -5
- package/dist/components/autocomplete.js +1 -1
- package/dist/components/date-picker.js +1 -1
- package/dist/components/date-range-picker.js +1 -1
- package/dist/components/date-time-picker.js +1 -1
- package/dist/components/input.js +1 -1
- package/dist/components/number-field.js +1 -1
- package/dist/components/number-range-input.js +1 -1
- package/dist/components/pagination.js +1 -1
- package/dist/components/password-input.js +1 -1
- package/dist/components/select.js +1 -1
- package/dist/components/style-definitions.js +3 -3
- package/dist/components/time-picker.js +1 -1
- package/dist/datePickerValue.utils-CkmPaD6I.js +4 -0
- package/dist/import-DflE4Gl2.js +251 -0
- package/dist/index.js +20 -20
- package/dist/rich-text-editor.js +1 -1
- package/dist/tanstack/autocomplete.js +1 -1
- package/dist/tanstack/date-picker.js +1 -1
- package/dist/tanstack/date-range-picker.js +1 -1
- package/dist/tanstack/date-time-picker.js +1 -1
- package/dist/tanstack/input.js +1 -1
- package/dist/tanstack/number-field.js +1 -1
- package/dist/tanstack/number-range-input.js +1 -1
- package/dist/tanstack/password-input.js +1 -1
- package/dist/tanstack/rich-text-editor.js +1 -1
- package/dist/tanstack/select.js +1 -1
- package/dist/tanstack/table.js +1 -1
- package/dist/tanstack/time-picker.js +1 -1
- package/dist/tanstack.js +20 -20
- package/dist/useScrollableListBox-BfCLMZgv.js +47 -0
- package/package.json +1 -1
- package/dist/{Autocomplete-DSwAc7jF.js → Autocomplete-DuCidYx5.js} +1 -1
- package/dist/{Input-BdCci6BF.js → Input-CPPDOg7b.js} +1 -1
- package/dist/{NumberField-BLAwsjns.js → NumberField-BbeePjH2.js} +1 -1
- package/dist/{NumberRangeInput-al32ZeSy.js → NumberRangeInput-Cpqrom84.js} +1 -1
- package/dist/{staticDateTimeSegments-CA_lwN-O.js → staticDateTimeSegments-FE-F61iH.js} +2 -2
- package/dist/{useTableColumnConfig-DoTYVxqG.js → useTableColumnConfig-CGtkUBG8.js} +2 -2
|
@@ -0,0 +1,251 @@
|
|
|
1
|
+
import { t as clsx } from "./clsx-CnD0nOiA.js";
|
|
2
|
+
import { t as Typography } from "./Typography-Ba5l4rmj.js";
|
|
3
|
+
import { n as $a8ea2faf2ebe4d2f$re_export$mergeProps } from "./import-D_3dPATF.js";
|
|
4
|
+
import "./i18n-BjNKHh_D.js";
|
|
5
|
+
import { r as $32daac5f69beb98a$re_export$useFocusRing } from "./useStaticInputHandoff-DyYxfwv6.js";
|
|
6
|
+
import { useCallback, useMemo, useRef } from "react";
|
|
7
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
8
|
+
import { CalendarDate, GregorianCalendar, getLocalTimeZone, isSameDay, isToday, startOfWeek, toCalendar } from "@internationalized/date";
|
|
9
|
+
import "react-aria/I18nProvider";
|
|
10
|
+
import "react-aria/useNumberFormatter";
|
|
11
|
+
import "react-aria/useCollator";
|
|
12
|
+
import "react-aria/useLocalizedStringFormatter";
|
|
13
|
+
import "react-aria/useFilter";
|
|
14
|
+
import "react-aria/useListFormatter";
|
|
15
|
+
import { useTranslation } from "react-i18next";
|
|
16
|
+
import { useCalendarCell, useCalendarGrid } from "@react-aria/calendar";
|
|
17
|
+
import { useDateFormatter as $1697a7ad3db7b79f$re_export$useDateFormatter } from "react-aria/useDateFormatter";
|
|
18
|
+
//#region src/components/inputs/DateTime/shared/calendarWeek.utils.ts
|
|
19
|
+
const gregorianCalendar = new GregorianCalendar();
|
|
20
|
+
/** ISO weeks start on Monday and belong to the year containing their Thursday. */
|
|
21
|
+
const getISOWeekNumber = (date) => {
|
|
22
|
+
const gregorianDate = toCalendar(date, gregorianCalendar);
|
|
23
|
+
const thursday = startOfWeek(gregorianDate, "en-GB", "mon").add({ days: 3 });
|
|
24
|
+
const yearStart = new CalendarDate(thursday.era, thursday.year, 1, 1);
|
|
25
|
+
return Math.floor((gregorianCalendar.toJulianDay(thursday) - gregorianCalendar.toJulianDay(yearStart)) / 7) + 1;
|
|
26
|
+
};
|
|
27
|
+
//#endregion
|
|
28
|
+
//#region src/components/inputs/DateTime/shared/CalendarCell.tsx
|
|
29
|
+
const isRange = (state) => {
|
|
30
|
+
return "highlightedRange" in state;
|
|
31
|
+
};
|
|
32
|
+
const CalendarCell = ({ state, onApply, onDoubleClickApply, shouldApplyOnDateSelection = true, shouldCloseOnSelect = true, onDateSelection, onDateHover, rangeSelection, hoverDate, onKeyboardNavigation, ...props }) => {
|
|
33
|
+
const ref = useRef(null);
|
|
34
|
+
const { cellProps, buttonProps, formattedDate, isSelected, isDisabled, isOutsideVisibleRange } = useCalendarCell(props, state, ref);
|
|
35
|
+
const { focusProps } = $32daac5f69beb98a$re_export$useFocusRing();
|
|
36
|
+
const onClick = useCallback((event) => {
|
|
37
|
+
buttonProps.onClick?.(event);
|
|
38
|
+
if (onDateSelection) onDateSelection(props.date);
|
|
39
|
+
if (shouldCloseOnSelect && !isDisabled && (shouldApplyOnDateSelection || isSelected)) onApply?.(props.date);
|
|
40
|
+
}, [
|
|
41
|
+
buttonProps,
|
|
42
|
+
onDateSelection,
|
|
43
|
+
props.date,
|
|
44
|
+
isDisabled,
|
|
45
|
+
shouldApplyOnDateSelection,
|
|
46
|
+
isSelected,
|
|
47
|
+
shouldCloseOnSelect,
|
|
48
|
+
onApply
|
|
49
|
+
]);
|
|
50
|
+
const onDoubleClick = useCallback((event) => {
|
|
51
|
+
if (isDisabled) return;
|
|
52
|
+
event.preventDefault();
|
|
53
|
+
onDoubleClickApply?.(props.date);
|
|
54
|
+
}, [
|
|
55
|
+
isDisabled,
|
|
56
|
+
onDoubleClickApply,
|
|
57
|
+
props.date
|
|
58
|
+
]);
|
|
59
|
+
const selectionState = useMemo(() => {
|
|
60
|
+
let isSelectionStart = false;
|
|
61
|
+
let isSelectionEnd = false;
|
|
62
|
+
let isSelectedCell = false;
|
|
63
|
+
let isInRange = false;
|
|
64
|
+
let isHoverRange = false;
|
|
65
|
+
let isSelectingMode = false;
|
|
66
|
+
if (rangeSelection?.start) {
|
|
67
|
+
isSelectionStart = isSameDay(props.date, rangeSelection.start);
|
|
68
|
+
isSelectionEnd = rangeSelection.end ? isSameDay(props.date, rangeSelection.end) : false;
|
|
69
|
+
isSelectedCell = isSelectionStart || isSelectionEnd;
|
|
70
|
+
isSelectingMode = rangeSelection.isSelecting && !rangeSelection.end;
|
|
71
|
+
if (rangeSelection.start && rangeSelection.end) {
|
|
72
|
+
const dateValue = props.date;
|
|
73
|
+
const isAfterStart = dateValue.compare(rangeSelection.start) > 0;
|
|
74
|
+
const isBeforeEnd = dateValue.compare(rangeSelection.end) < 0;
|
|
75
|
+
isInRange = isAfterStart && isBeforeEnd;
|
|
76
|
+
}
|
|
77
|
+
if (rangeSelection.isSelecting && rangeSelection.start && hoverDate && !rangeSelection.end) {
|
|
78
|
+
const dateValue = props.date;
|
|
79
|
+
const { start } = rangeSelection;
|
|
80
|
+
const end = hoverDate;
|
|
81
|
+
const earlierDate = start.compare(end) <= 0 ? start : end;
|
|
82
|
+
const laterDate = start.compare(end) <= 0 ? end : start;
|
|
83
|
+
const isAfterStart = dateValue.compare(earlierDate) > 0;
|
|
84
|
+
const isBeforeEnd = dateValue.compare(laterDate) < 0;
|
|
85
|
+
isHoverRange = isAfterStart && isBeforeEnd;
|
|
86
|
+
}
|
|
87
|
+
} else {
|
|
88
|
+
isSelectionStart = isRange(state) && state.highlightedRange ? isSameDay(props.date, state.highlightedRange.start) : isSelected;
|
|
89
|
+
isSelectionEnd = isRange(state) && state.highlightedRange ? isSameDay(props.date, state.highlightedRange.end) : isSelected;
|
|
90
|
+
isSelectedCell = isSelectionStart || isSelectionEnd || !isRange(state) && isSelected;
|
|
91
|
+
isInRange = isRange(state) && isSelected && !isSelectionStart && !isSelectionEnd;
|
|
92
|
+
if (isRange(state) && state.highlightedRange && !isSelected) {
|
|
93
|
+
const dateValue = props.date;
|
|
94
|
+
const isAfterStart = dateValue.compare(state.highlightedRange.start) > 0;
|
|
95
|
+
const isBeforeEnd = dateValue.compare(state.highlightedRange.end) < 0;
|
|
96
|
+
isHoverRange = isAfterStart && isBeforeEnd;
|
|
97
|
+
}
|
|
98
|
+
}
|
|
99
|
+
return {
|
|
100
|
+
isSelectionStart,
|
|
101
|
+
isSelectionEnd,
|
|
102
|
+
isSelectedCell,
|
|
103
|
+
isInRange,
|
|
104
|
+
isHoverRange,
|
|
105
|
+
isSelectingMode
|
|
106
|
+
};
|
|
107
|
+
}, [
|
|
108
|
+
props.date,
|
|
109
|
+
rangeSelection,
|
|
110
|
+
state,
|
|
111
|
+
isSelected,
|
|
112
|
+
hoverDate
|
|
113
|
+
]);
|
|
114
|
+
const handleEvent = (event, eventHandler) => {
|
|
115
|
+
if (isOutsideVisibleRange) {
|
|
116
|
+
state.selectDate(props.date);
|
|
117
|
+
state.setFocusedDate(props.date);
|
|
118
|
+
}
|
|
119
|
+
eventHandler?.(event);
|
|
120
|
+
if (isSelected && shouldCloseOnSelect) onApply?.(props.date);
|
|
121
|
+
};
|
|
122
|
+
const onMouseEnter = useCallback(() => {
|
|
123
|
+
if (onDateHover && selectionState.isSelectingMode) onDateHover(props.date);
|
|
124
|
+
}, [
|
|
125
|
+
onDateHover,
|
|
126
|
+
selectionState.isSelectingMode,
|
|
127
|
+
props.date
|
|
128
|
+
]);
|
|
129
|
+
const onMouseLeave = useCallback(() => {
|
|
130
|
+
if (onDateHover && selectionState.isSelectingMode) onDateHover(null);
|
|
131
|
+
}, [onDateHover, selectionState.isSelectingMode]);
|
|
132
|
+
const isTodayCell = isToday(props.date, getLocalTimeZone());
|
|
133
|
+
const cellClassName = useMemo(() => {
|
|
134
|
+
const { isSelectedCell, isInRange, isHoverRange, isSelectingMode, isSelectionStart, isSelectionEnd } = selectionState;
|
|
135
|
+
const isVisibleSelected = isSelectedCell && !isOutsideVisibleRange;
|
|
136
|
+
const isVisibleRangeMiddle = (isInRange || isHoverRange) && !isOutsideVisibleRange && !isVisibleSelected;
|
|
137
|
+
const isRangeStart = isVisibleSelected && !!rangeSelection && !rangeSelection.isSelecting && isSelectionStart && !isSelectionEnd;
|
|
138
|
+
const isRangeEnd = isVisibleSelected && !!rangeSelection && !rangeSelection.isSelecting && isSelectionEnd && !isSelectionStart;
|
|
139
|
+
const isRangeEdge = isRangeStart || isRangeEnd;
|
|
140
|
+
return clsx("mx-auto flex items-center justify-center p-0 text-sm font-normal transition-[color,box-shadow]", "outline-none focus-visible:relative focus-visible:z-10 focus-visible:ring-[3px] focus-visible:ring-ring/50", isVisibleRangeMiddle || isRangeEdge ? "h-8 w-full" : "size-8", isVisibleRangeMiddle && "rounded-none", isRangeStart && "rounded-l-md", isRangeEnd && "rounded-r-md", !isVisibleRangeMiddle && !isRangeEdge && "rounded-md", isOutsideVisibleRange && "text-muted-foreground opacity-50", isVisibleSelected && "bg-primary text-primary-foreground", isVisibleSelected && isDisabled && "opacity-50", isVisibleRangeMiddle && "bg-accent text-accent-foreground", !isOutsideVisibleRange && !isVisibleSelected && !isVisibleRangeMiddle && isDisabled && "text-muted-foreground opacity-50", !isOutsideVisibleRange && !isVisibleSelected && !isVisibleRangeMiddle && !isDisabled && isTodayCell && "bg-accent text-accent-foreground", !isOutsideVisibleRange && !isVisibleSelected && !isVisibleRangeMiddle && !isDisabled && !isTodayCell && "text-foreground [@media(pointer:fine)]:hover:bg-accent [@media(pointer:fine)]:hover:text-accent-foreground", isDisabled && !isOutsideVisibleRange && "cursor-default", isSelectingMode && !isVisibleSelected && !isVisibleRangeMiddle && !isDisabled && "duration-75");
|
|
141
|
+
}, [
|
|
142
|
+
selectionState,
|
|
143
|
+
isOutsideVisibleRange,
|
|
144
|
+
rangeSelection,
|
|
145
|
+
isDisabled,
|
|
146
|
+
isTodayCell
|
|
147
|
+
]);
|
|
148
|
+
return /* @__PURE__ */ jsx("td", {
|
|
149
|
+
...cellProps,
|
|
150
|
+
className: "p-0 py-0.5",
|
|
151
|
+
children: /* @__PURE__ */ jsx("div", {
|
|
152
|
+
ref,
|
|
153
|
+
...$a8ea2faf2ebe4d2f$re_export$mergeProps(buttonProps, focusProps),
|
|
154
|
+
"aria-disabled": void 0,
|
|
155
|
+
onMouseEnter,
|
|
156
|
+
onMouseLeave,
|
|
157
|
+
className: cellClassName,
|
|
158
|
+
onClick: (e) => handleEvent(e, onClick),
|
|
159
|
+
onDoubleClick,
|
|
160
|
+
onKeyDown: (e) => handleEvent(e, () => onKeyboardNavigation?.(e, props.date)),
|
|
161
|
+
children: /* @__PURE__ */ jsx(Typography, {
|
|
162
|
+
as: "span",
|
|
163
|
+
size: "body",
|
|
164
|
+
className: "block overflow-hidden text-ellipsis text-center",
|
|
165
|
+
children: formattedDate
|
|
166
|
+
})
|
|
167
|
+
})
|
|
168
|
+
});
|
|
169
|
+
};
|
|
170
|
+
//#endregion
|
|
171
|
+
//#region src/components/inputs/DateTime/shared/CalendarGrid.tsx
|
|
172
|
+
const WEEK_INDICES = [
|
|
173
|
+
0,
|
|
174
|
+
1,
|
|
175
|
+
2,
|
|
176
|
+
3,
|
|
177
|
+
4,
|
|
178
|
+
5
|
|
179
|
+
];
|
|
180
|
+
const NO_CALENDAR_OFFSET = {};
|
|
181
|
+
const CalendarGrid = ({ state, showWeekNumbers = false, onApply, onDoubleClickApply, shouldApplyOnDateSelection, shouldCloseOnSelect, offset = NO_CALENDAR_OFFSET, onDateSelection, onDateHover, rangeSelection, hoverDate, onKeyboardNavigation, className, calendarSide, isSelectionDisabled, ...props }) => {
|
|
182
|
+
const { t } = useTranslation();
|
|
183
|
+
const { gridProps, headerProps, weekDays } = useCalendarGrid({
|
|
184
|
+
...props,
|
|
185
|
+
weekdayStyle: "short",
|
|
186
|
+
firstDayOfWeek: showWeekNumbers ? "mon" : props.firstDayOfWeek
|
|
187
|
+
}, state);
|
|
188
|
+
const startDate = state.visibleRange.start.add(offset);
|
|
189
|
+
const handleDateSelection = (date) => {
|
|
190
|
+
onDateSelection?.(date, calendarSide);
|
|
191
|
+
};
|
|
192
|
+
return /* @__PURE__ */ jsx("div", {
|
|
193
|
+
className: clsx("h-72 w-full px-3 pb-3", showWeekNumbers ? "md:w-[352px]" : "md:w-80", className),
|
|
194
|
+
inert: isSelectionDisabled || void 0,
|
|
195
|
+
"aria-disabled": isSelectionDisabled || void 0,
|
|
196
|
+
children: /* @__PURE__ */ jsxs("table", {
|
|
197
|
+
...gridProps,
|
|
198
|
+
cellPadding: "0",
|
|
199
|
+
className: "w-full",
|
|
200
|
+
children: [/* @__PURE__ */ jsx("thead", {
|
|
201
|
+
...headerProps,
|
|
202
|
+
children: /* @__PURE__ */ jsxs("tr", { children: [showWeekNumbers && /* @__PURE__ */ jsx("th", {
|
|
203
|
+
scope: "col",
|
|
204
|
+
className: "w-8 border-r border-border font-normal",
|
|
205
|
+
"aria-label": t(($) => $.ui.datePicker.weekNumberLabel, { ns: "ui" }),
|
|
206
|
+
children: /* @__PURE__ */ jsx("span", {
|
|
207
|
+
className: "block py-2 text-[0.8rem] font-normal text-muted-foreground",
|
|
208
|
+
children: t(($) => $.ui.datePicker.weekNumberHeading, { ns: "ui" })
|
|
209
|
+
})
|
|
210
|
+
}), weekDays.map((day) => /* @__PURE__ */ jsx("th", {
|
|
211
|
+
className: "font-normal",
|
|
212
|
+
children: /* @__PURE__ */ jsx("span", {
|
|
213
|
+
className: "block py-2 text-[0.8rem] font-normal text-muted-foreground",
|
|
214
|
+
children: day.substring(0, 2)
|
|
215
|
+
})
|
|
216
|
+
}, day))] })
|
|
217
|
+
}), /* @__PURE__ */ jsx("tbody", { children: WEEK_INDICES.map((weekIndex) => {
|
|
218
|
+
const dates = state.getDatesInWeek(weekIndex, startDate);
|
|
219
|
+
const firstDate = dates.find((date) => date !== null);
|
|
220
|
+
const week = firstDate ? getISOWeekNumber(firstDate) : null;
|
|
221
|
+
return /* @__PURE__ */ jsxs("tr", { children: [showWeekNumbers && /* @__PURE__ */ jsx("th", {
|
|
222
|
+
scope: "row",
|
|
223
|
+
className: "w-8 border-r border-border font-normal",
|
|
224
|
+
"aria-label": week === null ? void 0 : t(($) => $.ui.datePicker.weekNumber, {
|
|
225
|
+
ns: "ui",
|
|
226
|
+
week
|
|
227
|
+
}),
|
|
228
|
+
children: /* @__PURE__ */ jsx(Typography, {
|
|
229
|
+
size: "small",
|
|
230
|
+
className: "text-muted-foreground tabular-nums",
|
|
231
|
+
children: week
|
|
232
|
+
})
|
|
233
|
+
}), dates.map((date, i) => date ? /* @__PURE__ */ jsx(CalendarCell, {
|
|
234
|
+
state,
|
|
235
|
+
date,
|
|
236
|
+
onApply,
|
|
237
|
+
onDoubleClickApply,
|
|
238
|
+
shouldApplyOnDateSelection,
|
|
239
|
+
shouldCloseOnSelect,
|
|
240
|
+
onDateSelection: handleDateSelection,
|
|
241
|
+
onDateHover,
|
|
242
|
+
rangeSelection,
|
|
243
|
+
hoverDate,
|
|
244
|
+
onKeyboardNavigation
|
|
245
|
+
}, i) : /* @__PURE__ */ jsx("td", {}, i))] }, weekIndex);
|
|
246
|
+
}) })]
|
|
247
|
+
})
|
|
248
|
+
});
|
|
249
|
+
};
|
|
250
|
+
//#endregion
|
|
251
|
+
export { CalendarGrid as n, $1697a7ad3db7b79f$re_export$useDateFormatter as t };
|
package/dist/index.js
CHANGED
|
@@ -4,8 +4,8 @@ import { n as MenuPopover, r as MenuItem } from "./DropdownMenuDesktop-BMkiHEuY.
|
|
|
4
4
|
import { i as useDeepCompareMemo, n as useDeepCompareEffect, r as useDeepCompareLayoutEffect, t as UIConfig } from "./uiConfig.context-dxsO9puE.js";
|
|
5
5
|
import { t as Tooltip } from "./Tooltip-CqbyoJhl.js";
|
|
6
6
|
import { t as PaginationList } from "./PaginationList-vfqgyTIP.js";
|
|
7
|
-
import { a as InfiniteTable, c as useTableNav, i as PaginatedTable, l as HeaderText, n as useSorting, o as ColumnConfigModal, r as usePagination, s as Table, t as useTableColumnConfig, u as CellText } from "./useTableColumnConfig-
|
|
8
|
-
import { a as useKeyInteractions, i as getKeyInteractionAction,
|
|
7
|
+
import { a as InfiniteTable, c as useTableNav, i as PaginatedTable, l as HeaderText, n as useSorting, o as ColumnConfigModal, r as usePagination, s as Table, t as useTableColumnConfig, u as CellText } from "./useTableColumnConfig-CGtkUBG8.js";
|
|
8
|
+
import { a as useKeyInteractions, i as getKeyInteractionAction, r as createKeyInteractionsHandler, s as useDebounceCallback } from "./Select-DOrH8Q5O.js";
|
|
9
9
|
import { t as X } from "./x-B6vfz8Ps.js";
|
|
10
10
|
import { t as UIOverrides } from "./uiOverrides.context-BTCH9y5a.js";
|
|
11
11
|
import { n as iconSlotDefinition, t as IconSlot } from "./IconSlot-Cuvpj1gd.js";
|
|
@@ -38,25 +38,19 @@ import { i as formFieldHeaderDefinition, n as labelDefinition, t as formFieldHel
|
|
|
38
38
|
import { t as FormField } from "./FormField-DyqEbqx3.js";
|
|
39
39
|
import { a as inputSizeDefinition, i as inputSideDefinition, n as inputClearClassDefinition, r as inputContentWrapperDefinition, t as inputBaseDefinition } from "./input.cva-AHLI_M3K.js";
|
|
40
40
|
import { t as CheckboxGroup } from "./CheckboxGroup.bound-8hjoP-xP.js";
|
|
41
|
-
import { n as useScrollableListBox } from "./Calendar-ChmIflXX.js";
|
|
42
41
|
import { t as useAsyncList } from "./useAsyncList-yHz7twsj.js";
|
|
43
|
-
import { n as resources, t as ns } from "./i18n-BjNKHh_D.js";
|
|
44
|
-
import { r as useLongPressRepeat } from "./datePickerValue.utils-BxHR_BQZ.js";
|
|
45
42
|
import { t as IntlUtils } from "./intl.utils-zwAFoZ0U.js";
|
|
46
43
|
import { t as DateTimeUtils } from "./date-time.utils-0F9qduim.js";
|
|
47
44
|
import { t as DateUtils } from "./date.utils-B8_QF9y6.js";
|
|
48
45
|
import { t as datePickerInputContentRowDefinition } from "./datePickerInput.cva--gCeAsRx.js";
|
|
46
|
+
import { n as resources, t as ns } from "./i18n-BjNKHh_D.js";
|
|
49
47
|
import { t as popoverDefinition } from "./popover.cva-Ciu9Ro5G.js";
|
|
50
|
-
import { t as DatePicker } from "./DatePicker.bound-
|
|
48
|
+
import { t as DatePicker } from "./DatePicker.bound-NquZAtFK.js";
|
|
51
49
|
import { n as switchDefinition } from "./switch.cva-C9bO_QI-.js";
|
|
52
|
-
import { t as
|
|
53
|
-
import {
|
|
54
|
-
import { n as
|
|
55
|
-
import { t as
|
|
56
|
-
import { t as useIntersectionObserver } from "./useIntersectionObserver-DYfHnGGU.js";
|
|
57
|
-
import { t as DateRangePicker } from "./DateRangePicker.bound-GeRw9Iuj.js";
|
|
58
|
-
import { t as DateTimePicker } from "./DateTimePicker.bound-ByjHsAnf.js";
|
|
59
|
-
import { t as TimePicker } from "./TimePicker.bound-3i1DJgrU.js";
|
|
50
|
+
import { t as DateRangePicker } from "./DateRangePicker.bound-B_gZlQvv.js";
|
|
51
|
+
import { t as DateTimePicker } from "./DateTimePicker.bound-BJzw56_u.js";
|
|
52
|
+
import { n as useLongPressRepeat } from "./TimePickerForm-BReCXELG.js";
|
|
53
|
+
import { t as TimePicker } from "./TimePicker.bound-DBovZwLJ.js";
|
|
60
54
|
import { t as FileUtils } from "./file.utils-DqQxnuAm.js";
|
|
61
55
|
import { a as progressValueDefinition, i as progressTrackWrapperDefinition, n as progressFillDefinition, r as progressTrackDefinition, t as progressDefinition } from "./progress.cva-D0PKV_ET.js";
|
|
62
56
|
import { t as Progress } from "./Progress-ZsKwo9ne.js";
|
|
@@ -65,16 +59,20 @@ import { t as FileUpload } from "./FileUpload.bound-DqqPejvc.js";
|
|
|
65
59
|
import { FileUploadContainer } from "./components/file-upload-container.js";
|
|
66
60
|
import { i as fileInputDropZoneDefinition, r as fileInputButtonDefinition } from "./FileInput-Bpm2HJSB.js";
|
|
67
61
|
import { t as FileInput } from "./FileInput.bound-B6oGPCP8.js";
|
|
68
|
-
import { t as NumberField } from "./NumberField.bound-
|
|
69
|
-
import { t as NumberRangeInput } from "./NumberRangeInput.bound-
|
|
70
|
-
import { t as Input } from "./Input.bound-
|
|
71
|
-
import { t as PasswordInput } from "./PasswordInput.bound-
|
|
62
|
+
import { t as NumberField } from "./NumberField.bound-CQcKgZ--.js";
|
|
63
|
+
import { t as NumberRangeInput } from "./NumberRangeInput.bound-D-Lj5_KL.js";
|
|
64
|
+
import { t as Input } from "./Input.bound-DCTT5J62.js";
|
|
65
|
+
import { t as PasswordInput } from "./PasswordInput.bound-WJ_VYQpn.js";
|
|
72
66
|
import { t as textAreaWrapperDefinition } from "./TextArea.cva-Bb73hriz.js";
|
|
73
67
|
import { t as TextArea } from "./TextArea.bound-DPALjcvO.js";
|
|
74
68
|
import { i as radioDefinition, n as radioContentRowDefinition, r as radioContentWrapperDefinition } from "./radio.cva-Dn2Auqxw.js";
|
|
75
69
|
import { t as RadioGroup } from "./RadioGroup.bound-aK3GC6i7.js";
|
|
76
|
-
import { t as
|
|
77
|
-
import { t as
|
|
70
|
+
import { t as selectListBoxItemDefinition } from "./selectItem.cva-Ch6oK4jP.js";
|
|
71
|
+
import { t as Autocomplete } from "./Autocomplete.bound-DTKSW9Sb.js";
|
|
72
|
+
import { t as tagDefinition } from "./tag.cva-BVa0EWBU.js";
|
|
73
|
+
import { Tag } from "./components/tag.js";
|
|
74
|
+
import { n as selectInputTagsContentWrapperDefinition, t as selectPopoverDefinition } from "./selectDesktop.cva-CGBkscBY.js";
|
|
75
|
+
import { t as Select } from "./Select.bound-RxqOhlbq.js";
|
|
78
76
|
import { t as Slider } from "./Slider.bound-BoIYW8I5.js";
|
|
79
77
|
import { t as Switch } from "./Switch.bound-Brw5UUA6.js";
|
|
80
78
|
import { a as accordionHeadingTitleDefinition, c as accordionPanelContentDefinition, i as accordionHeadingSubtitleDefinition, l as accordionPanelDefinition, n as accordionDefinition, o as accordionIconDefinition, r as accordionHeadingDefinition, s as accordionItemDefinition, t as accordionChevronDefinition, u as accordionTriggerDefinition } from "./accordion.cva-C-gUiXk5.js";
|
|
@@ -97,6 +95,7 @@ import { n as ToastProvider, t as ToastContainer } from "./ToastContainer-D1Jl3P
|
|
|
97
95
|
import { useToast } from "./components/use-toast.js";
|
|
98
96
|
import { a as tableHeadRowDefinition, i as tableHeadDataDefinition, o as tableHeaderTextDefinition, r as tableDataDefinition, s as tableRowDefinition, t as tableCellTextDefinition } from "./table.cva-BMIizuGy.js";
|
|
99
97
|
import { t as useTranslationMemo } from "./useTranslationMemo-CrZbeyBv.js";
|
|
98
|
+
import { t as useIntersectionObserver } from "./useIntersectionObserver-DYfHnGGU.js";
|
|
100
99
|
import { t as linkDefinition } from "./link.cva-isgDrId6.js";
|
|
101
100
|
import { Link } from "./components/link.js";
|
|
102
101
|
import { Badge } from "./components/badge.js";
|
|
@@ -108,6 +107,7 @@ import { t as tooltipWrapperTriggerDefinition } from "./tooltipWrapper.cva-BBQ4i
|
|
|
108
107
|
import { n as useAutosave, t as useFormAutosave } from "./useFormAutosave-XEQqk1lK.js";
|
|
109
108
|
import { t as RoutingUtils } from "./routing.utils-DfxEt0_Y.js";
|
|
110
109
|
import { t as useFilters } from "./useFilters-HIngImwn.js";
|
|
110
|
+
import { t as useScrollableListBox } from "./useScrollableListBox-BfCLMZgv.js";
|
|
111
111
|
import { n as useStateAndRef, t as DomUtils } from "./dom.utils-BbfrA6RP.js";
|
|
112
112
|
import { n as ArrayUtils, t as QueriesUtils } from "./tanstack-CmbhAoHU.js";
|
|
113
113
|
import { t as StringUtils } from "./string.utils-BPgv6QwA.js";
|
package/dist/rich-text-editor.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as RichTextEditor } from "./RichTextEditor-
|
|
1
|
+
import { t as RichTextEditor } from "./RichTextEditor-DpIQS8gk.js";
|
|
2
2
|
export { RichTextEditor };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as Autocomplete } from "../Autocomplete.bound-
|
|
1
|
+
import { t as Autocomplete } from "../Autocomplete.bound-DTKSW9Sb.js";
|
|
2
2
|
export { Autocomplete };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as DatePicker } from "../DatePicker.bound-
|
|
1
|
+
import { t as DatePicker } from "../DatePicker.bound-NquZAtFK.js";
|
|
2
2
|
export { DatePicker };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as DateRangePicker } from "../DateRangePicker.bound-
|
|
1
|
+
import { t as DateRangePicker } from "../DateRangePicker.bound-B_gZlQvv.js";
|
|
2
2
|
export { DateRangePicker };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as DateTimePicker } from "../DateTimePicker.bound-
|
|
1
|
+
import { t as DateTimePicker } from "../DateTimePicker.bound-BJzw56_u.js";
|
|
2
2
|
export { DateTimePicker };
|
package/dist/tanstack/input.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { n as InputComponent, t as Input } from "../Input.bound-
|
|
1
|
+
import { n as InputComponent, t as Input } from "../Input.bound-DCTT5J62.js";
|
|
2
2
|
export { Input, InputComponent };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { n as NumberFieldComponent, t as NumberField } from "../NumberField.bound-
|
|
1
|
+
import { n as NumberFieldComponent, t as NumberField } from "../NumberField.bound-CQcKgZ--.js";
|
|
2
2
|
export { NumberField, NumberFieldComponent };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as NumberRangeInput } from "../NumberRangeInput.bound-
|
|
1
|
+
import { t as NumberRangeInput } from "../NumberRangeInput.bound-D-Lj5_KL.js";
|
|
2
2
|
export { NumberRangeInput };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as PasswordInput } from "../PasswordInput.bound-
|
|
1
|
+
import { t as PasswordInput } from "../PasswordInput.bound-WJ_VYQpn.js";
|
|
2
2
|
export { PasswordInput };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { n as TextEditorBase } from "../RichTextEditor-
|
|
1
|
+
import { n as TextEditorBase } from "../RichTextEditor-DpIQS8gk.js";
|
|
2
2
|
import { r as $a8ea2faf2ebe4d2f$re_export$mergeRefs } from "../import-D_3dPATF.js";
|
|
3
3
|
import { t as FieldController } from "../form.binding-B-2id68q.js";
|
|
4
4
|
import { memo } from "react";
|
package/dist/tanstack/select.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as Select } from "../Select.bound-
|
|
1
|
+
import { t as Select } from "../Select.bound-RxqOhlbq.js";
|
|
2
2
|
export { Select };
|
package/dist/tanstack/table.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { a as InfiniteTable, c as useTableNav, i as PaginatedTable, l as HeaderText, n as useSorting, o as ColumnConfigModal, r as usePagination, s as Table, t as useTableColumnConfig, u as CellText } from "../useTableColumnConfig-
|
|
1
|
+
import { a as InfiniteTable, c as useTableNav, i as PaginatedTable, l as HeaderText, n as useSorting, o as ColumnConfigModal, r as usePagination, s as Table, t as useTableColumnConfig, u as CellText } from "../useTableColumnConfig-CGtkUBG8.js";
|
|
2
2
|
export { CellText, ColumnConfigModal, HeaderText, InfiniteTable, PaginatedTable, Table, usePagination, useSorting, useTableColumnConfig, useTableNav };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as TimePicker } from "../TimePicker.bound-
|
|
1
|
+
import { t as TimePicker } from "../TimePicker.bound-DBovZwLJ.js";
|
|
2
2
|
export { TimePicker };
|
package/dist/tanstack.js
CHANGED
|
@@ -4,8 +4,8 @@ import { n as MenuPopover, r as MenuItem } from "./DropdownMenuDesktop-BMkiHEuY.
|
|
|
4
4
|
import { i as useDeepCompareMemo, n as useDeepCompareEffect, r as useDeepCompareLayoutEffect, t as UIConfig } from "./uiConfig.context-dxsO9puE.js";
|
|
5
5
|
import { t as Tooltip } from "./Tooltip-CqbyoJhl.js";
|
|
6
6
|
import { t as PaginationList } from "./PaginationList-vfqgyTIP.js";
|
|
7
|
-
import { a as InfiniteTable, c as useTableNav, i as PaginatedTable, l as HeaderText, n as useSorting, o as ColumnConfigModal, r as usePagination, s as Table, t as useTableColumnConfig, u as CellText } from "./useTableColumnConfig-
|
|
8
|
-
import { a as useKeyInteractions, i as getKeyInteractionAction,
|
|
7
|
+
import { a as InfiniteTable, c as useTableNav, i as PaginatedTable, l as HeaderText, n as useSorting, o as ColumnConfigModal, r as usePagination, s as Table, t as useTableColumnConfig, u as CellText } from "./useTableColumnConfig-CGtkUBG8.js";
|
|
8
|
+
import { a as useKeyInteractions, i as getKeyInteractionAction, r as createKeyInteractionsHandler, s as useDebounceCallback } from "./Select-DOrH8Q5O.js";
|
|
9
9
|
import { t as X } from "./x-B6vfz8Ps.js";
|
|
10
10
|
import { t as UIOverrides } from "./uiOverrides.context-BTCH9y5a.js";
|
|
11
11
|
import { n as iconSlotDefinition, t as IconSlot } from "./IconSlot-Cuvpj1gd.js";
|
|
@@ -38,25 +38,19 @@ import { i as formFieldHeaderDefinition, n as labelDefinition, t as formFieldHel
|
|
|
38
38
|
import { t as FormField } from "./FormField-DyqEbqx3.js";
|
|
39
39
|
import { a as inputSizeDefinition, i as inputSideDefinition, n as inputClearClassDefinition, r as inputContentWrapperDefinition, t as inputBaseDefinition } from "./input.cva-AHLI_M3K.js";
|
|
40
40
|
import { t as CheckboxGroup } from "./CheckboxGroup.bound-8hjoP-xP.js";
|
|
41
|
-
import { n as useScrollableListBox } from "./Calendar-ChmIflXX.js";
|
|
42
41
|
import { t as useAsyncList } from "./useAsyncList-yHz7twsj.js";
|
|
43
|
-
import { n as resources, t as ns } from "./i18n-BjNKHh_D.js";
|
|
44
|
-
import { r as useLongPressRepeat } from "./datePickerValue.utils-BxHR_BQZ.js";
|
|
45
42
|
import { t as IntlUtils } from "./intl.utils-zwAFoZ0U.js";
|
|
46
43
|
import { t as DateTimeUtils } from "./date-time.utils-0F9qduim.js";
|
|
47
44
|
import { t as DateUtils } from "./date.utils-B8_QF9y6.js";
|
|
48
45
|
import { t as datePickerInputContentRowDefinition } from "./datePickerInput.cva--gCeAsRx.js";
|
|
46
|
+
import { n as resources, t as ns } from "./i18n-BjNKHh_D.js";
|
|
49
47
|
import { t as popoverDefinition } from "./popover.cva-Ciu9Ro5G.js";
|
|
50
|
-
import { t as DatePicker } from "./DatePicker.bound-
|
|
48
|
+
import { t as DatePicker } from "./DatePicker.bound-NquZAtFK.js";
|
|
51
49
|
import { n as switchDefinition } from "./switch.cva-C9bO_QI-.js";
|
|
52
|
-
import { t as
|
|
53
|
-
import {
|
|
54
|
-
import { n as
|
|
55
|
-
import { t as
|
|
56
|
-
import { t as useIntersectionObserver } from "./useIntersectionObserver-DYfHnGGU.js";
|
|
57
|
-
import { t as DateRangePicker } from "./DateRangePicker.bound-GeRw9Iuj.js";
|
|
58
|
-
import { t as DateTimePicker } from "./DateTimePicker.bound-ByjHsAnf.js";
|
|
59
|
-
import { t as TimePicker } from "./TimePicker.bound-3i1DJgrU.js";
|
|
50
|
+
import { t as DateRangePicker } from "./DateRangePicker.bound-B_gZlQvv.js";
|
|
51
|
+
import { t as DateTimePicker } from "./DateTimePicker.bound-BJzw56_u.js";
|
|
52
|
+
import { n as useLongPressRepeat } from "./TimePickerForm-BReCXELG.js";
|
|
53
|
+
import { t as TimePicker } from "./TimePicker.bound-DBovZwLJ.js";
|
|
60
54
|
import { t as FileUtils } from "./file.utils-DqQxnuAm.js";
|
|
61
55
|
import { a as progressValueDefinition, i as progressTrackWrapperDefinition, n as progressFillDefinition, r as progressTrackDefinition, t as progressDefinition } from "./progress.cva-D0PKV_ET.js";
|
|
62
56
|
import { t as Progress } from "./Progress-ZsKwo9ne.js";
|
|
@@ -65,16 +59,20 @@ import { t as FileUpload } from "./FileUpload.bound-DqqPejvc.js";
|
|
|
65
59
|
import { FileUploadContainer } from "./components/file-upload-container.js";
|
|
66
60
|
import { i as fileInputDropZoneDefinition, r as fileInputButtonDefinition } from "./FileInput-Bpm2HJSB.js";
|
|
67
61
|
import { t as FileInput } from "./FileInput.bound-B6oGPCP8.js";
|
|
68
|
-
import { t as NumberField } from "./NumberField.bound-
|
|
69
|
-
import { t as NumberRangeInput } from "./NumberRangeInput.bound-
|
|
70
|
-
import { t as Input } from "./Input.bound-
|
|
71
|
-
import { t as PasswordInput } from "./PasswordInput.bound-
|
|
62
|
+
import { t as NumberField } from "./NumberField.bound-CQcKgZ--.js";
|
|
63
|
+
import { t as NumberRangeInput } from "./NumberRangeInput.bound-D-Lj5_KL.js";
|
|
64
|
+
import { t as Input } from "./Input.bound-DCTT5J62.js";
|
|
65
|
+
import { t as PasswordInput } from "./PasswordInput.bound-WJ_VYQpn.js";
|
|
72
66
|
import { t as textAreaWrapperDefinition } from "./TextArea.cva-Bb73hriz.js";
|
|
73
67
|
import { t as TextArea } from "./TextArea.bound-DPALjcvO.js";
|
|
74
68
|
import { i as radioDefinition, n as radioContentRowDefinition, r as radioContentWrapperDefinition } from "./radio.cva-Dn2Auqxw.js";
|
|
75
69
|
import { t as RadioGroup } from "./RadioGroup.bound-aK3GC6i7.js";
|
|
76
|
-
import { t as
|
|
77
|
-
import { t as
|
|
70
|
+
import { t as selectListBoxItemDefinition } from "./selectItem.cva-Ch6oK4jP.js";
|
|
71
|
+
import { t as Autocomplete } from "./Autocomplete.bound-DTKSW9Sb.js";
|
|
72
|
+
import { t as tagDefinition } from "./tag.cva-BVa0EWBU.js";
|
|
73
|
+
import { Tag } from "./components/tag.js";
|
|
74
|
+
import { n as selectInputTagsContentWrapperDefinition, t as selectPopoverDefinition } from "./selectDesktop.cva-CGBkscBY.js";
|
|
75
|
+
import { t as Select } from "./Select.bound-RxqOhlbq.js";
|
|
78
76
|
import { t as Slider } from "./Slider.bound-BoIYW8I5.js";
|
|
79
77
|
import { t as Switch } from "./Switch.bound-Brw5UUA6.js";
|
|
80
78
|
import { a as accordionHeadingTitleDefinition, c as accordionPanelContentDefinition, i as accordionHeadingSubtitleDefinition, l as accordionPanelDefinition, n as accordionDefinition, o as accordionIconDefinition, r as accordionHeadingDefinition, s as accordionItemDefinition, t as accordionChevronDefinition, u as accordionTriggerDefinition } from "./accordion.cva-C-gUiXk5.js";
|
|
@@ -97,6 +95,7 @@ import { n as ToastProvider, t as ToastContainer } from "./ToastContainer-D1Jl3P
|
|
|
97
95
|
import { useToast } from "./components/use-toast.js";
|
|
98
96
|
import { a as tableHeadRowDefinition, i as tableHeadDataDefinition, o as tableHeaderTextDefinition, r as tableDataDefinition, s as tableRowDefinition, t as tableCellTextDefinition } from "./table.cva-BMIizuGy.js";
|
|
99
97
|
import { t as useTranslationMemo } from "./useTranslationMemo-CrZbeyBv.js";
|
|
98
|
+
import { t as useIntersectionObserver } from "./useIntersectionObserver-DYfHnGGU.js";
|
|
100
99
|
import { t as linkDefinition } from "./link.cva-isgDrId6.js";
|
|
101
100
|
import { Link } from "./components/link.js";
|
|
102
101
|
import { Badge } from "./components/badge.js";
|
|
@@ -108,6 +107,7 @@ import { t as tooltipWrapperTriggerDefinition } from "./tooltipWrapper.cva-BBQ4i
|
|
|
108
107
|
import { n as useAutosave, t as useFormAutosave } from "./useFormAutosave-XEQqk1lK.js";
|
|
109
108
|
import { t as RoutingUtils } from "./routing.utils-DfxEt0_Y.js";
|
|
110
109
|
import { t as useFilters } from "./useFilters-HIngImwn.js";
|
|
110
|
+
import { t as useScrollableListBox } from "./useScrollableListBox-BfCLMZgv.js";
|
|
111
111
|
import { n as useStateAndRef, t as DomUtils } from "./dom.utils-BbfrA6RP.js";
|
|
112
112
|
import { n as ArrayUtils, t as QueriesUtils } from "./tanstack-CmbhAoHU.js";
|
|
113
113
|
import { t as StringUtils } from "./string.utils-BPgv6QwA.js";
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
import { t as useBreakpoint } from "./useBreakpoint-DOUmXVZ2.js";
|
|
2
|
+
import { useEffect, useRef } from "react";
|
|
3
|
+
import { c } from "react/compiler-runtime";
|
|
4
|
+
//#region src/hooks/useScrollableListBox.ts
|
|
5
|
+
function useScrollableListBox() {
|
|
6
|
+
const $ = c(4);
|
|
7
|
+
const ref = useRef(null);
|
|
8
|
+
const isDesktop = useBreakpoint("md");
|
|
9
|
+
let t0;
|
|
10
|
+
let t1;
|
|
11
|
+
if ($[0] !== isDesktop) {
|
|
12
|
+
t0 = () => {
|
|
13
|
+
const node = ref.current;
|
|
14
|
+
if (!node || isDesktop) return;
|
|
15
|
+
const onPointerDownCapture = _temp;
|
|
16
|
+
const onClickCapture = _temp2;
|
|
17
|
+
node.addEventListener("pointerdown", onPointerDownCapture);
|
|
18
|
+
node.addEventListener("click", onClickCapture);
|
|
19
|
+
return () => {
|
|
20
|
+
node.removeEventListener("pointerdown", onPointerDownCapture);
|
|
21
|
+
node.removeEventListener("click", onClickCapture);
|
|
22
|
+
};
|
|
23
|
+
};
|
|
24
|
+
t1 = [ref, isDesktop];
|
|
25
|
+
$[0] = isDesktop;
|
|
26
|
+
$[1] = t0;
|
|
27
|
+
$[2] = t1;
|
|
28
|
+
} else {
|
|
29
|
+
t0 = $[1];
|
|
30
|
+
t1 = $[2];
|
|
31
|
+
}
|
|
32
|
+
useEffect(t0, t1);
|
|
33
|
+
let t2;
|
|
34
|
+
if ($[3] === Symbol.for("react.memo_cache_sentinel")) {
|
|
35
|
+
t2 = { ref };
|
|
36
|
+
$[3] = t2;
|
|
37
|
+
} else t2 = $[3];
|
|
38
|
+
return t2;
|
|
39
|
+
}
|
|
40
|
+
function _temp2(e_0) {
|
|
41
|
+
if (e_0.currentTarget?.contains(e_0.target) && e_0.target !== e_0.currentTarget) e_0.target.click();
|
|
42
|
+
}
|
|
43
|
+
function _temp(e) {
|
|
44
|
+
e.stopPropagation();
|
|
45
|
+
}
|
|
46
|
+
//#endregion
|
|
47
|
+
export { useScrollableListBox as t };
|
package/package.json
CHANGED
|
@@ -11,8 +11,8 @@ import { t as FormField } from "./FormField-DyqEbqx3.js";
|
|
|
11
11
|
import { t as inputBaseDefinition } from "./input.cva-AHLI_M3K.js";
|
|
12
12
|
import { t as TooltipWrapper } from "./TooltipWrapper-BrftXInI.js";
|
|
13
13
|
import { t as popoverDefinition } from "./popover.cva-Ciu9Ro5G.js";
|
|
14
|
-
import { t as selectListBoxItemDefinition } from "./selectItem.cva-Ch6oK4jP.js";
|
|
15
14
|
import { t as InputContent } from "./InputContent-Ca4oVqIe.js";
|
|
15
|
+
import { t as selectListBoxItemDefinition } from "./selectItem.cva-Ch6oK4jP.js";
|
|
16
16
|
import { memo, useId, useRef, useState } from "react";
|
|
17
17
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
18
18
|
//#region src/components/inputs/Selection/Autocomplete/Autocomplete.tsx
|
|
@@ -6,8 +6,8 @@ import { r as $a8ea2faf2ebe4d2f$re_export$mergeRefs } from "./import-D_3dPATF.js
|
|
|
6
6
|
import { t as useFieldAccessibility } from "./useFieldAccessibility-eZIMECmG.js";
|
|
7
7
|
import { t as FormField } from "./FormField-DyqEbqx3.js";
|
|
8
8
|
import { t as inputBaseDefinition } from "./input.cva-AHLI_M3K.js";
|
|
9
|
-
import { n as useStaticInputHandoff } from "./useStaticInputHandoff-DyYxfwv6.js";
|
|
10
9
|
import { t as TooltipWrapper } from "./TooltipWrapper-BrftXInI.js";
|
|
10
|
+
import { n as useStaticInputHandoff } from "./useStaticInputHandoff-DyYxfwv6.js";
|
|
11
11
|
import { InputFrame } from "./components/input-frame.js";
|
|
12
12
|
import { t as InputContent } from "./InputContent-Ca4oVqIe.js";
|
|
13
13
|
import { memo, useEffect, useRef, useState } from "react";
|
|
@@ -8,9 +8,9 @@ import { t as useFieldAccessibility } from "./useFieldAccessibility-eZIMECmG.js"
|
|
|
8
8
|
import { t as FormField } from "./FormField-DyqEbqx3.js";
|
|
9
9
|
import { t as inputBaseDefinition } from "./input.cva-AHLI_M3K.js";
|
|
10
10
|
import { n as $3d0ee518c6f3d04f$export$7f629e9dc1ecf37c, t as getStaticNumberDisplayValue } from "./numberStatic.utils-BIyZuILs.js";
|
|
11
|
-
import { n as useStaticInputHandoff } from "./useStaticInputHandoff-DyYxfwv6.js";
|
|
12
11
|
import { t as IntlUtils } from "./intl.utils-zwAFoZ0U.js";
|
|
13
12
|
import { t as TooltipWrapper } from "./TooltipWrapper-BrftXInI.js";
|
|
13
|
+
import { n as useStaticInputHandoff } from "./useStaticInputHandoff-DyYxfwv6.js";
|
|
14
14
|
import { InputFrame } from "./components/input-frame.js";
|
|
15
15
|
import { t as InputContent } from "./InputContent-Ca4oVqIe.js";
|
|
16
16
|
import { memo, useCallback, useEffect, useRef, useState } from "react";
|
|
@@ -7,9 +7,9 @@ import { r as $a8ea2faf2ebe4d2f$re_export$mergeRefs } from "./import-D_3dPATF.js
|
|
|
7
7
|
import { n as FormFieldLabel, t as FormField } from "./FormField-DyqEbqx3.js";
|
|
8
8
|
import { a as inputSizeDefinition, t as inputBaseDefinition } from "./input.cva-AHLI_M3K.js";
|
|
9
9
|
import { n as $3d0ee518c6f3d04f$export$7f629e9dc1ecf37c, t as getStaticNumberDisplayValue } from "./numberStatic.utils-BIyZuILs.js";
|
|
10
|
-
import { n as useStaticInputHandoff, t as getStaticInputFocusTarget } from "./useStaticInputHandoff-DyYxfwv6.js";
|
|
11
10
|
import { t as IntlUtils } from "./intl.utils-zwAFoZ0U.js";
|
|
12
11
|
import { n as InputClear, t as TooltipWrapper } from "./TooltipWrapper-BrftXInI.js";
|
|
12
|
+
import { n as useStaticInputHandoff, t as getStaticInputFocusTarget } from "./useStaticInputHandoff-DyYxfwv6.js";
|
|
13
13
|
import { InputFrame } from "./components/input-frame.js";
|
|
14
14
|
import { memo, useEffect, useRef, useState } from "react";
|
|
15
15
|
import { Fragment as Fragment$1, jsx, jsxs } from "react/jsx-runtime";
|
|
@@ -9,10 +9,10 @@ import { t as useBreakpoint } from "./useBreakpoint-DOUmXVZ2.js";
|
|
|
9
9
|
import { t as $a8ea2faf2ebe4d2f$re_export$isFirefox } from "./import-D_3dPATF.js";
|
|
10
10
|
import { t as $3e6197669829fe11$export$40bfa8c7b0832715 } from "./useControlledState-CuU1VIh1.js";
|
|
11
11
|
import { i as $fd2148440a13ec26$export$fc1a364ae1f3ff10, n as $fd2148440a13ec26$export$75ee7c75d68f5b0e, r as $fd2148440a13ec26$export$aca958c65c314e6c, t as $1dfb119a85e764e5$export$cc77c4ff7e8673c5 } from "./NumberFormatter-DYarfm5F.js";
|
|
12
|
-
import "./i18n-BjNKHh_D.js";
|
|
13
|
-
import { t as getStaticInputFocusTarget } from "./useStaticInputHandoff-DyYxfwv6.js";
|
|
14
12
|
import { t as DateTimeUtils } from "./date-time.utils-0F9qduim.js";
|
|
13
|
+
import "./i18n-BjNKHh_D.js";
|
|
15
14
|
import { t as popoverDefinition } from "./popover.cva-Ciu9Ro5G.js";
|
|
15
|
+
import { t as getStaticInputFocusTarget } from "./useStaticInputHandoff-DyYxfwv6.js";
|
|
16
16
|
import { useLayoutEffect, useMemo, useRef, useState } from "react";
|
|
17
17
|
import { Fragment as Fragment$1, jsx, jsxs } from "react/jsx-runtime";
|
|
18
18
|
import { CalendarDate, DateFormatter, GregorianCalendar, Time, getLocalTimeZone, isEqualCalendar, now, toCalendar, toCalendarDate, toCalendarDateTime } from "@internationalized/date";
|