@t3q-ui/design-system 1.67.3 → 1.67.5
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/CHANGELOG.md +6 -0
- package/dist/components/columnFilter/ColumnFilter.cjs +4 -6
- package/dist/components/columnFilter/ColumnFilter.cjs.map +1 -1
- package/dist/components/columnFilter/ColumnFilter.js +4 -6
- package/dist/components/columnFilter/ColumnFilter.js.map +1 -1
- package/dist/components/columnFilter/ColumnFilterInput.cjs +2 -3
- package/dist/components/columnFilter/ColumnFilterInput.cjs.map +1 -1
- package/dist/components/columnFilter/ColumnFilterInput.js +2 -3
- package/dist/components/columnFilter/ColumnFilterInput.js.map +1 -1
- package/dist/components/columnFilter/ColumnFilterPopover.cjs +161 -441
- package/dist/components/columnFilter/ColumnFilterPopover.cjs.map +1 -1
- package/dist/components/columnFilter/ColumnFilterPopover.js +161 -441
- package/dist/components/columnFilter/ColumnFilterPopover.js.map +1 -1
- package/dist/components/columnFilter/types.cjs.map +1 -1
- package/dist/components/columnFilter/types.js.map +1 -1
- package/dist/components/multiSelect/multiSelect.cjs +18 -75
- package/dist/components/multiSelect/multiSelect.cjs.map +1 -1
- package/dist/components/multiSelect/multiSelect.js +18 -74
- package/dist/components/multiSelect/multiSelect.js.map +1 -1
- package/dist/components/multiSelect/multiSelectTrigger.cjs +2 -2
- package/dist/components/multiSelect/multiSelectTrigger.cjs.map +1 -1
- package/dist/components/multiSelect/multiSelectTrigger.js +1 -1
- package/dist/components/multiSelect/multiSelectTrigger.js.map +1 -1
- package/dist/components/select/select.cjs +17 -36
- package/dist/components/select/select.cjs.map +1 -1
- package/dist/components/select/select.js +17 -35
- package/dist/components/select/select.js.map +1 -1
- package/dist/components/select/selectContent.cjs +44 -47
- package/dist/components/select/selectContent.cjs.map +1 -1
- package/dist/components/select/selectContent.js +44 -47
- package/dist/components/select/selectContent.js.map +1 -1
- package/dist/components/select/selectGroup.cjs +3 -1
- package/dist/components/select/selectGroup.cjs.map +1 -1
- package/dist/components/select/selectGroup.js +3 -1
- package/dist/components/select/selectGroup.js.map +1 -1
- package/dist/components/select/selectInput.cjs +39 -32
- package/dist/components/select/selectInput.cjs.map +1 -1
- package/dist/components/select/selectInput.js +40 -33
- package/dist/components/select/selectInput.js.map +1 -1
- package/dist/components/select/selectItem.cjs +90 -14
- package/dist/components/select/selectItem.cjs.map +1 -1
- package/dist/components/select/selectItem.js +92 -16
- package/dist/components/select/selectItem.js.map +1 -1
- package/dist/components/select/selectLoading.cjs +3 -1
- package/dist/components/select/selectLoading.cjs.map +1 -1
- package/dist/components/select/selectLoading.js +3 -1
- package/dist/components/select/selectLoading.js.map +1 -1
- package/dist/components/select/selectRoot.cjs +105 -0
- package/dist/components/select/selectRoot.cjs.map +1 -0
- package/dist/components/select/selectRoot.js +87 -0
- package/dist/components/select/selectRoot.js.map +1 -0
- package/dist/components/select/selectSeparator.cjs +3 -1
- package/dist/components/select/selectSeparator.cjs.map +1 -1
- package/dist/components/select/selectSeparator.js +3 -1
- package/dist/components/select/selectSeparator.js.map +1 -1
- package/dist/components/select/selectTrigger.cjs +2 -2
- package/dist/components/select/selectTrigger.cjs.map +1 -1
- package/dist/components/select/selectTrigger.js +1 -1
- package/dist/components/select/selectTrigger.js.map +1 -1
- package/dist/components/select/selectValue.cjs +2 -2
- package/dist/components/select/selectValue.cjs.map +1 -1
- package/dist/components/select/selectValue.js +1 -1
- package/dist/components/select/selectValue.js.map +1 -1
- package/dist/index.cjs +16 -24
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +50 -121
- package/dist/index.d.ts +50 -121
- package/dist/index.js +17 -25
- package/dist/index.js.map +1 -1
- package/mcp/manifests/components.json +22 -22
- package/package.json +1 -1
- package/dist/components/multiSelect/multiSelectContent.cjs +0 -119
- package/dist/components/multiSelect/multiSelectContent.cjs.map +0 -1
- package/dist/components/multiSelect/multiSelectContent.js +0 -101
- package/dist/components/multiSelect/multiSelectContent.js.map +0 -1
- package/dist/components/multiSelect/multiSelectContext.cjs +0 -32
- package/dist/components/multiSelect/multiSelectContext.cjs.map +0 -1
- package/dist/components/multiSelect/multiSelectContext.js +0 -15
- package/dist/components/multiSelect/multiSelectContext.js.map +0 -1
- package/dist/components/multiSelect/multiSelectGroup.cjs +0 -47
- package/dist/components/multiSelect/multiSelectGroup.cjs.map +0 -1
- package/dist/components/multiSelect/multiSelectGroup.js +0 -30
- package/dist/components/multiSelect/multiSelectGroup.js.map +0 -1
- package/dist/components/multiSelect/multiSelectInput.cjs +0 -73
- package/dist/components/multiSelect/multiSelectInput.cjs.map +0 -1
- package/dist/components/multiSelect/multiSelectInput.js +0 -56
- package/dist/components/multiSelect/multiSelectInput.js.map +0 -1
- package/dist/components/multiSelect/multiSelectItem.cjs +0 -129
- package/dist/components/multiSelect/multiSelectItem.cjs.map +0 -1
- package/dist/components/multiSelect/multiSelectItem.js +0 -112
- package/dist/components/multiSelect/multiSelectItem.js.map +0 -1
- package/dist/components/multiSelect/multiSelectLoading.cjs +0 -52
- package/dist/components/multiSelect/multiSelectLoading.cjs.map +0 -1
- package/dist/components/multiSelect/multiSelectLoading.js +0 -35
- package/dist/components/multiSelect/multiSelectLoading.js.map +0 -1
- package/dist/components/multiSelect/multiSelectSeparator.cjs +0 -42
- package/dist/components/multiSelect/multiSelectSeparator.cjs.map +0 -1
- package/dist/components/multiSelect/multiSelectSeparator.js +0 -25
- package/dist/components/multiSelect/multiSelectSeparator.js.map +0 -1
- package/dist/components/select/selectContext.cjs +0 -32
- package/dist/components/select/selectContext.cjs.map +0 -1
- package/dist/components/select/selectContext.js +0 -15
- package/dist/components/select/selectContext.js.map +0 -1
- package/dist/components/select/selectRadioItem.cjs +0 -113
- package/dist/components/select/selectRadioItem.cjs.map +0 -1
- package/dist/components/select/selectRadioItem.js +0 -96
- package/dist/components/select/selectRadioItem.js.map +0 -1
|
@@ -5,6 +5,7 @@ const jsxRuntime = require("react/jsx-runtime");
|
|
|
5
5
|
const React = require("react");
|
|
6
6
|
const lucide = require("lucide-react");
|
|
7
7
|
const cn = require("../../utils/cn.cjs");
|
|
8
|
+
const popover = require("../popover.cjs");
|
|
8
9
|
const tableFilterParts = require("../tableFilterParts.cjs");
|
|
9
10
|
const ColumnFilter = require("./ColumnFilter.cjs");
|
|
10
11
|
const types = require("./types.cjs");
|
|
@@ -28,26 +29,93 @@ const React__namespace = /* @__PURE__ */ _interopNamespaceDefault(React);
|
|
|
28
29
|
const FOCUS_RING_MAIN_STYLE = {
|
|
29
30
|
outlineColor: "var(--color-sys-focus-ring-main)"
|
|
30
31
|
};
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
32
|
+
function FilterPopoverContent(props) {
|
|
33
|
+
const { popoverAnchor: anchor, closePopover } = ColumnFilter.useColumnFilter();
|
|
34
|
+
if (!anchor) return null;
|
|
35
|
+
return /* @__PURE__ */ jsxRuntime.jsxs(
|
|
36
|
+
popover.Popover,
|
|
37
|
+
{
|
|
38
|
+
open: true,
|
|
39
|
+
onOpenChange: (open) => {
|
|
40
|
+
if (!open) closePopover();
|
|
41
|
+
},
|
|
42
|
+
children: [
|
|
43
|
+
/* @__PURE__ */ jsxRuntime.jsx(popover.PopoverAnchor, { virtualRef: { current: anchor } }),
|
|
44
|
+
/* @__PURE__ */ jsxRuntime.jsx(
|
|
45
|
+
popover.PopoverContent,
|
|
46
|
+
{
|
|
47
|
+
align: "start",
|
|
48
|
+
sideOffset: 8,
|
|
49
|
+
role: void 0,
|
|
50
|
+
onOpenAutoFocus: (e) => e.preventDefault(),
|
|
51
|
+
onPointerDownOutside: (e) => {
|
|
52
|
+
if (anchor.contains(e.target)) e.preventDefault();
|
|
53
|
+
},
|
|
54
|
+
onFocusOutside: (e) => e.preventDefault(),
|
|
55
|
+
onEscapeKeyDown: () => anchor.focus(),
|
|
56
|
+
onKeyDown: (e) => {
|
|
57
|
+
if (e.key !== "Tab") return;
|
|
58
|
+
if (e.shiftKey) e.preventDefault();
|
|
59
|
+
closePopover();
|
|
60
|
+
anchor.focus();
|
|
61
|
+
},
|
|
62
|
+
...props
|
|
63
|
+
}
|
|
64
|
+
)
|
|
65
|
+
]
|
|
66
|
+
}
|
|
67
|
+
);
|
|
68
|
+
}
|
|
69
|
+
function useFocusInput() {
|
|
70
|
+
const { ids, setAutocompleteFocusMode } = ColumnFilter.useColumnFilter();
|
|
71
|
+
return React__namespace.useCallback(() => {
|
|
72
|
+
setAutocompleteFocusMode("input");
|
|
73
|
+
requestAnimationFrame(() => document.getElementById(ids.inputId)?.focus());
|
|
74
|
+
}, [ids.inputId, setAutocompleteFocusMode]);
|
|
75
|
+
}
|
|
76
|
+
const LIST_MOVES = /* @__PURE__ */ new Map([
|
|
77
|
+
["ArrowDown", (index) => index + 1],
|
|
78
|
+
["ArrowRight", (index) => index + 1],
|
|
79
|
+
["ArrowUp", (index) => index - 1],
|
|
80
|
+
["ArrowLeft", (index) => index - 1],
|
|
81
|
+
["Home", () => 0],
|
|
82
|
+
["End", (_, count) => count - 1]
|
|
83
|
+
]);
|
|
84
|
+
function handleListItemKeyDown(e, {
|
|
85
|
+
index,
|
|
86
|
+
count,
|
|
87
|
+
choose,
|
|
88
|
+
moveTo,
|
|
89
|
+
backToInput
|
|
90
|
+
}) {
|
|
91
|
+
const move = LIST_MOVES.get(e.key);
|
|
92
|
+
const typed = e.key === "Backspace" || e.key === "Delete" || e.key.length === 1 && !e.metaKey && !e.ctrlKey && !e.altKey;
|
|
93
|
+
if (e.key === "Enter" || e.key === " ") {
|
|
94
|
+
e.preventDefault();
|
|
95
|
+
choose();
|
|
96
|
+
} else if (move) {
|
|
97
|
+
e.preventDefault();
|
|
98
|
+
moveTo((move(index, count) + count) % count);
|
|
99
|
+
} else if (backToInput && typed) {
|
|
100
|
+
e.preventDefault();
|
|
101
|
+
backToInput();
|
|
102
|
+
}
|
|
103
|
+
}
|
|
35
104
|
function ColumnSelectPopover() {
|
|
36
105
|
const {
|
|
37
106
|
columns,
|
|
38
107
|
activePopover,
|
|
39
108
|
popoverTrigger,
|
|
40
|
-
closePopover,
|
|
41
109
|
selectColumn,
|
|
42
110
|
editingFilter,
|
|
43
|
-
popoverPosition,
|
|
44
111
|
ids,
|
|
45
112
|
columnSuggestionIndex,
|
|
46
113
|
setColumnSuggestionIndex,
|
|
47
114
|
autocompleteFocusMode,
|
|
48
115
|
setAutocompleteFocusMode
|
|
49
116
|
} = ColumnFilter.useColumnFilter();
|
|
50
|
-
const
|
|
117
|
+
const focusInput = useFocusInput();
|
|
118
|
+
const listRef = React__namespace.useRef(null);
|
|
51
119
|
const columnItemRefs = React__namespace.useRef([]);
|
|
52
120
|
const [hoveredColumn, setHoveredColumn] = React__namespace.useState(null);
|
|
53
121
|
const [focusedColumnIndex, setFocusedColumnIndex] = React__namespace.useState(0);
|
|
@@ -59,37 +127,24 @@ function ColumnSelectPopover() {
|
|
|
59
127
|
editingFilter?.column ? columns.findIndex((column) => column.key === editingFilter.column) : 0
|
|
60
128
|
);
|
|
61
129
|
const activeColumnIndex = isInputDriven ? columnSuggestionIndex >= 0 ? columnSuggestionIndex : 0 : focusedColumnIndex;
|
|
62
|
-
const focusInput = React__namespace.useCallback(() => {
|
|
63
|
-
requestAnimationFrame(() => {
|
|
64
|
-
document.getElementById(ids.inputId)?.focus();
|
|
65
|
-
});
|
|
66
|
-
}, [ids.inputId]);
|
|
67
|
-
const focusNextAfterColumn = React__namespace.useCallback(() => {
|
|
68
|
-
requestAnimationFrame(() => {
|
|
69
|
-
const nextElement = document.querySelector("[data-column-filter-value-input]") ?? document.querySelector("[data-operator-button]") ?? document.getElementById(ids.inputId);
|
|
70
|
-
nextElement?.focus();
|
|
71
|
-
});
|
|
72
|
-
}, [ids.inputId]);
|
|
73
130
|
const focusColumnItem = React__namespace.useCallback(
|
|
74
131
|
(index) => {
|
|
75
|
-
if (columns.length === 0) return;
|
|
76
|
-
const nextIndex = (index % columns.length + columns.length) % columns.length;
|
|
77
132
|
if (isInputDriven) {
|
|
78
133
|
setAutocompleteFocusMode("option");
|
|
79
|
-
setColumnSuggestionIndex(
|
|
134
|
+
setColumnSuggestionIndex(index);
|
|
80
135
|
}
|
|
81
|
-
setFocusedColumnIndex(
|
|
82
|
-
setHoveredColumn(columns[
|
|
136
|
+
setFocusedColumnIndex(index);
|
|
137
|
+
setHoveredColumn(columns[index]?.key ?? null);
|
|
83
138
|
requestAnimationFrame(() => {
|
|
84
|
-
columnItemRefs.current[
|
|
139
|
+
columnItemRefs.current[index]?.focus();
|
|
85
140
|
});
|
|
86
141
|
},
|
|
87
142
|
[columns, isInputDriven, setAutocompleteFocusMode, setColumnSuggestionIndex]
|
|
88
143
|
);
|
|
89
|
-
const
|
|
90
|
-
|
|
144
|
+
const chooseColumn = (key) => {
|
|
145
|
+
selectColumn(key);
|
|
91
146
|
focusInput();
|
|
92
|
-
}
|
|
147
|
+
};
|
|
93
148
|
React__namespace.useEffect(() => {
|
|
94
149
|
if (activePopover !== "column" || columns.length === 0) return;
|
|
95
150
|
if (isInputDriven) {
|
|
@@ -114,45 +169,20 @@ function ColumnSelectPopover() {
|
|
|
114
169
|
React__namespace.useEffect(() => {
|
|
115
170
|
if (activePopover !== "column") return;
|
|
116
171
|
requestAnimationFrame(() => {
|
|
117
|
-
|
|
172
|
+
listRef.current?.querySelector('[aria-selected="true"]')?.scrollIntoView({ block: "nearest" });
|
|
118
173
|
});
|
|
119
174
|
}, [activePopover]);
|
|
120
|
-
|
|
121
|
-
if (activePopover !== "column") return;
|
|
122
|
-
const handleClickOutside = (e) => {
|
|
123
|
-
const target = e.target;
|
|
124
|
-
if (!target) return;
|
|
125
|
-
if (isInputDriven && document.getElementById(ids.inputId)?.contains(target)) {
|
|
126
|
-
return;
|
|
127
|
-
}
|
|
128
|
-
if (popoverRef.current && !popoverRef.current.contains(target)) {
|
|
129
|
-
closePopover();
|
|
130
|
-
}
|
|
131
|
-
};
|
|
132
|
-
const timer = setTimeout(() => {
|
|
133
|
-
document.addEventListener("mousedown", handleClickOutside);
|
|
134
|
-
}, 10);
|
|
135
|
-
return () => {
|
|
136
|
-
clearTimeout(timer);
|
|
137
|
-
document.removeEventListener("mousedown", handleClickOutside);
|
|
138
|
-
};
|
|
139
|
-
}, [activePopover, closePopover, ids.inputId, isInputDriven]);
|
|
140
|
-
if (activePopover !== "column" || !popoverPosition) return null;
|
|
175
|
+
if (activePopover !== "column") return null;
|
|
141
176
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
142
|
-
|
|
177
|
+
FilterPopoverContent,
|
|
143
178
|
{
|
|
144
|
-
ref: popoverRef,
|
|
145
179
|
"data-slot": "column-select-popover",
|
|
146
|
-
className: cn.cn(popoverContentStyles, "p-[8px]"),
|
|
147
|
-
style: {
|
|
148
|
-
top: popoverPosition.y + 8,
|
|
149
|
-
left: popoverPosition.x
|
|
150
|
-
},
|
|
151
180
|
onMouseLeave: () => setHoveredColumn(null),
|
|
152
181
|
children: /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex gap-[4px]", children: [
|
|
153
182
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
154
183
|
"div",
|
|
155
184
|
{
|
|
185
|
+
ref: listRef,
|
|
156
186
|
id: ids.columnListId,
|
|
157
187
|
role: isInputDriven ? "listbox" : "menu",
|
|
158
188
|
className: cn.cn(
|
|
@@ -179,10 +209,7 @@ function ColumnSelectPopover() {
|
|
|
179
209
|
onMouseDown: (e) => {
|
|
180
210
|
if (isInputDriven) e.preventDefault();
|
|
181
211
|
},
|
|
182
|
-
onClick: () =>
|
|
183
|
-
selectColumn(column.key);
|
|
184
|
-
focusNextAfterColumn();
|
|
185
|
-
},
|
|
212
|
+
onClick: () => chooseColumn(column.key),
|
|
186
213
|
onMouseEnter: () => {
|
|
187
214
|
setHoveredColumn(column.key);
|
|
188
215
|
if (isInputDriven) {
|
|
@@ -191,57 +218,13 @@ function ColumnSelectPopover() {
|
|
|
191
218
|
setFocusedColumnIndex(index);
|
|
192
219
|
}
|
|
193
220
|
},
|
|
194
|
-
onKeyDown: (e) => {
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
if (e.key === "ArrowDown" || e.key === "ArrowRight") {
|
|
202
|
-
e.preventDefault();
|
|
203
|
-
focusColumnItem(index + 1);
|
|
204
|
-
return;
|
|
205
|
-
}
|
|
206
|
-
if (e.key === "ArrowUp" || e.key === "ArrowLeft") {
|
|
207
|
-
e.preventDefault();
|
|
208
|
-
focusColumnItem(index - 1);
|
|
209
|
-
return;
|
|
210
|
-
}
|
|
211
|
-
if (e.key === "Home") {
|
|
212
|
-
e.preventDefault();
|
|
213
|
-
focusColumnItem(0);
|
|
214
|
-
return;
|
|
215
|
-
}
|
|
216
|
-
if (e.key === "End") {
|
|
217
|
-
e.preventDefault();
|
|
218
|
-
focusColumnItem(columns.length - 1);
|
|
219
|
-
return;
|
|
220
|
-
}
|
|
221
|
-
if (e.key === "Escape") {
|
|
222
|
-
e.preventDefault();
|
|
223
|
-
closePopover();
|
|
224
|
-
returnFocusToInput();
|
|
225
|
-
return;
|
|
226
|
-
}
|
|
227
|
-
if (e.key === "Tab") {
|
|
228
|
-
closePopover();
|
|
229
|
-
if (e.shiftKey) {
|
|
230
|
-
e.preventDefault();
|
|
231
|
-
returnFocusToInput();
|
|
232
|
-
}
|
|
233
|
-
return;
|
|
234
|
-
}
|
|
235
|
-
if (isInputDriven && e.key.length === 1 && !e.metaKey && !e.ctrlKey && !e.altKey) {
|
|
236
|
-
e.preventDefault();
|
|
237
|
-
returnFocusToInput();
|
|
238
|
-
return;
|
|
239
|
-
}
|
|
240
|
-
if (isInputDriven && (e.key === "Backspace" || e.key === "Delete" || e.key === "ArrowLeft" || e.key === "ArrowRight")) {
|
|
241
|
-
e.preventDefault();
|
|
242
|
-
returnFocusToInput();
|
|
243
|
-
}
|
|
244
|
-
},
|
|
221
|
+
onKeyDown: (e) => handleListItemKeyDown(e, {
|
|
222
|
+
index,
|
|
223
|
+
count: columns.length,
|
|
224
|
+
choose: () => chooseColumn(column.key),
|
|
225
|
+
moveTo: focusColumnItem,
|
|
226
|
+
backToInput: isInputDriven ? focusInput : void 0
|
|
227
|
+
}),
|
|
245
228
|
children: [
|
|
246
229
|
/* @__PURE__ */ jsxRuntime.jsx(lucide.Check, { size: 16, className: cn.cn(isSelected ? "text-primary50" : "invisible") }),
|
|
247
230
|
/* @__PURE__ */ jsxRuntime.jsx("span", { className: tableFilterParts.getTableFilterTextSlotClassName({ selected: isSelected }), children: column.label })
|
|
@@ -272,16 +255,8 @@ function ColumnSelectPopover() {
|
|
|
272
255
|
}
|
|
273
256
|
ColumnSelectPopover.displayName = "ColumnSelectPopover";
|
|
274
257
|
function OperatorSelectPopover() {
|
|
275
|
-
const {
|
|
276
|
-
|
|
277
|
-
closePopover,
|
|
278
|
-
selectOperator,
|
|
279
|
-
editingFilter,
|
|
280
|
-
getOperatorsForColumn,
|
|
281
|
-
popoverPosition,
|
|
282
|
-
ids
|
|
283
|
-
} = ColumnFilter.useColumnFilter();
|
|
284
|
-
const popoverRef = React__namespace.useRef(null);
|
|
258
|
+
const { activePopover, selectOperator, editingFilter, getOperatorsForColumn, ids } = ColumnFilter.useColumnFilter();
|
|
259
|
+
const focusInput = useFocusInput();
|
|
285
260
|
const operatorItemRefs = React__namespace.useRef([]);
|
|
286
261
|
const [focusedOperatorIndex, setFocusedOperatorIndex] = React__namespace.useState(0);
|
|
287
262
|
const operators = editingFilter?.column ? getOperatorsForColumn(editingFilter.column) : [];
|
|
@@ -289,28 +264,16 @@ function OperatorSelectPopover() {
|
|
|
289
264
|
0,
|
|
290
265
|
editingFilter?.operator ? operators.indexOf(editingFilter.operator) : 0
|
|
291
266
|
);
|
|
292
|
-
const
|
|
293
|
-
|
|
294
|
-
document.querySelector("[data-operator-button]")?.focus();
|
|
295
|
-
});
|
|
296
|
-
}, []);
|
|
297
|
-
const focusNextAfterOperator = React__namespace.useCallback(() => {
|
|
267
|
+
const focusOperatorItem = React__namespace.useCallback((index) => {
|
|
268
|
+
setFocusedOperatorIndex(index);
|
|
298
269
|
requestAnimationFrame(() => {
|
|
299
|
-
|
|
300
|
-
nextElement?.focus();
|
|
270
|
+
operatorItemRefs.current[index]?.focus();
|
|
301
271
|
});
|
|
302
272
|
}, []);
|
|
303
|
-
const
|
|
304
|
-
(
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
setFocusedOperatorIndex(nextIndex);
|
|
308
|
-
requestAnimationFrame(() => {
|
|
309
|
-
operatorItemRefs.current[nextIndex]?.focus();
|
|
310
|
-
});
|
|
311
|
-
},
|
|
312
|
-
[operators.length]
|
|
313
|
-
);
|
|
273
|
+
const chooseOperator = (operator) => {
|
|
274
|
+
selectOperator(operator);
|
|
275
|
+
focusInput();
|
|
276
|
+
};
|
|
314
277
|
React__namespace.useEffect(() => {
|
|
315
278
|
if (activePopover !== "operator" || operators.length === 0) return;
|
|
316
279
|
setFocusedOperatorIndex(selectedOperatorIndex);
|
|
@@ -318,34 +281,14 @@ function OperatorSelectPopover() {
|
|
|
318
281
|
operatorItemRefs.current[selectedOperatorIndex]?.focus();
|
|
319
282
|
});
|
|
320
283
|
}, [activePopover, operators.length, selectedOperatorIndex]);
|
|
321
|
-
|
|
322
|
-
if (activePopover !== "operator") return;
|
|
323
|
-
const handleClickOutside = (e) => {
|
|
324
|
-
if (popoverRef.current && !popoverRef.current.contains(e.target)) {
|
|
325
|
-
closePopover();
|
|
326
|
-
}
|
|
327
|
-
};
|
|
328
|
-
const timer = setTimeout(() => {
|
|
329
|
-
document.addEventListener("mousedown", handleClickOutside);
|
|
330
|
-
}, 10);
|
|
331
|
-
return () => {
|
|
332
|
-
clearTimeout(timer);
|
|
333
|
-
document.removeEventListener("mousedown", handleClickOutside);
|
|
334
|
-
};
|
|
335
|
-
}, [activePopover, closePopover]);
|
|
336
|
-
if (activePopover !== "operator" || !popoverPosition) return null;
|
|
284
|
+
if (activePopover !== "operator") return null;
|
|
337
285
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
338
|
-
|
|
286
|
+
FilterPopoverContent,
|
|
339
287
|
{
|
|
340
|
-
ref: popoverRef,
|
|
341
288
|
"data-slot": "operator-select-popover",
|
|
342
289
|
role: "menu",
|
|
343
290
|
id: ids.operatorListId,
|
|
344
|
-
className:
|
|
345
|
-
style: {
|
|
346
|
-
top: popoverPosition.y + 8,
|
|
347
|
-
left: popoverPosition.x
|
|
348
|
-
},
|
|
291
|
+
className: "w-[100px]",
|
|
349
292
|
children: /* @__PURE__ */ jsxRuntime.jsx("div", { className: tableFilterParts.tableFilterOperatorContentClassName, children: operators.map((operator, index) => {
|
|
350
293
|
const isSelected = editingFilter?.operator === operator;
|
|
351
294
|
return /* @__PURE__ */ jsxRuntime.jsxs(
|
|
@@ -361,54 +304,13 @@ function OperatorSelectPopover() {
|
|
|
361
304
|
"aria-label": types.OPERATOR_LABELS[operator],
|
|
362
305
|
className: tableFilterParts.getTableFilterItemClassName({ kind: "operator", selected: isSelected }),
|
|
363
306
|
style: FOCUS_RING_MAIN_STYLE,
|
|
364
|
-
onClick: () =>
|
|
365
|
-
|
|
366
|
-
|
|
367
|
-
|
|
368
|
-
|
|
369
|
-
|
|
370
|
-
|
|
371
|
-
selectOperator(operator);
|
|
372
|
-
focusNextAfterOperator();
|
|
373
|
-
return;
|
|
374
|
-
}
|
|
375
|
-
if (e.key === "ArrowDown" || e.key === "ArrowRight") {
|
|
376
|
-
e.preventDefault();
|
|
377
|
-
focusOperatorItem(index + 1);
|
|
378
|
-
return;
|
|
379
|
-
}
|
|
380
|
-
if (e.key === "ArrowUp" || e.key === "ArrowLeft") {
|
|
381
|
-
e.preventDefault();
|
|
382
|
-
focusOperatorItem(index - 1);
|
|
383
|
-
return;
|
|
384
|
-
}
|
|
385
|
-
if (e.key === "Home") {
|
|
386
|
-
e.preventDefault();
|
|
387
|
-
focusOperatorItem(0);
|
|
388
|
-
return;
|
|
389
|
-
}
|
|
390
|
-
if (e.key === "End") {
|
|
391
|
-
e.preventDefault();
|
|
392
|
-
focusOperatorItem(operators.length - 1);
|
|
393
|
-
return;
|
|
394
|
-
}
|
|
395
|
-
if (e.key === "Escape") {
|
|
396
|
-
e.preventDefault();
|
|
397
|
-
closePopover();
|
|
398
|
-
focusOperatorButton();
|
|
399
|
-
return;
|
|
400
|
-
}
|
|
401
|
-
if (e.key === "Tab") {
|
|
402
|
-
closePopover();
|
|
403
|
-
if (e.shiftKey) {
|
|
404
|
-
e.preventDefault();
|
|
405
|
-
focusOperatorButton();
|
|
406
|
-
} else {
|
|
407
|
-
e.preventDefault();
|
|
408
|
-
focusNextAfterOperator();
|
|
409
|
-
}
|
|
410
|
-
}
|
|
411
|
-
},
|
|
307
|
+
onClick: () => chooseOperator(operator),
|
|
308
|
+
onKeyDown: (e) => handleListItemKeyDown(e, {
|
|
309
|
+
index,
|
|
310
|
+
count: operators.length,
|
|
311
|
+
choose: () => chooseOperator(operator),
|
|
312
|
+
moveTo: focusOperatorItem
|
|
313
|
+
}),
|
|
412
314
|
children: [
|
|
413
315
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
414
316
|
lucide.Check,
|
|
@@ -430,8 +332,6 @@ OperatorSelectPopover.displayName = "OperatorSelectPopover";
|
|
|
430
332
|
function SearchSuggestionPopover() {
|
|
431
333
|
const {
|
|
432
334
|
activePopover,
|
|
433
|
-
popoverPosition,
|
|
434
|
-
closePopover,
|
|
435
335
|
ids,
|
|
436
336
|
searchSuggestions,
|
|
437
337
|
searchSuggestionIndex,
|
|
@@ -440,142 +340,54 @@ function SearchSuggestionPopover() {
|
|
|
440
340
|
autocompleteFocusMode,
|
|
441
341
|
setAutocompleteFocusMode
|
|
442
342
|
} = ColumnFilter.useColumnFilter();
|
|
443
|
-
const
|
|
343
|
+
const focusInput = useFocusInput();
|
|
444
344
|
const suggestionItemRefs = React__namespace.useRef([]);
|
|
445
|
-
const focusInput = React__namespace.useCallback(() => {
|
|
446
|
-
requestAnimationFrame(() => {
|
|
447
|
-
document.getElementById(ids.inputId)?.focus();
|
|
448
|
-
});
|
|
449
|
-
}, [ids.inputId]);
|
|
450
345
|
const focusSearchItem = React__namespace.useCallback(
|
|
451
346
|
(index) => {
|
|
452
|
-
if (searchSuggestions.length === 0) return;
|
|
453
|
-
const nextIndex = (index % searchSuggestions.length + searchSuggestions.length) % searchSuggestions.length;
|
|
454
347
|
setAutocompleteFocusMode("option");
|
|
455
|
-
setSearchSuggestionIndex(
|
|
348
|
+
setSearchSuggestionIndex(index);
|
|
456
349
|
requestAnimationFrame(() => {
|
|
457
|
-
suggestionItemRefs.current[
|
|
350
|
+
suggestionItemRefs.current[index]?.focus();
|
|
458
351
|
});
|
|
459
352
|
},
|
|
460
|
-
[
|
|
353
|
+
[setAutocompleteFocusMode, setSearchSuggestionIndex]
|
|
461
354
|
);
|
|
462
|
-
|
|
463
|
-
|
|
464
|
-
focusInput();
|
|
465
|
-
}, [focusInput, setAutocompleteFocusMode]);
|
|
466
|
-
React__namespace.useEffect(() => {
|
|
467
|
-
if (activePopover !== "search") return;
|
|
468
|
-
const handleClickOutside = (e) => {
|
|
469
|
-
const target = e.target;
|
|
470
|
-
if (!target) return;
|
|
471
|
-
if (document.getElementById(ids.inputId)?.contains(target)) {
|
|
472
|
-
return;
|
|
473
|
-
}
|
|
474
|
-
if (popoverRef.current && !popoverRef.current.contains(target)) {
|
|
475
|
-
closePopover();
|
|
476
|
-
}
|
|
477
|
-
};
|
|
478
|
-
const timer = setTimeout(() => {
|
|
479
|
-
document.addEventListener("mousedown", handleClickOutside);
|
|
480
|
-
}, 10);
|
|
481
|
-
return () => {
|
|
482
|
-
clearTimeout(timer);
|
|
483
|
-
document.removeEventListener("mousedown", handleClickOutside);
|
|
484
|
-
};
|
|
485
|
-
}, [activePopover, closePopover, ids.inputId]);
|
|
486
|
-
if (activePopover !== "search" || searchSuggestions.length === 0 || !popoverPosition) return null;
|
|
487
|
-
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
355
|
+
if (activePopover !== "search" || searchSuggestions.length === 0) return null;
|
|
356
|
+
return /* @__PURE__ */ jsxRuntime.jsx(FilterPopoverContent, { "data-slot": "search-suggestion-popover", className: "w-[220px]", children: /* @__PURE__ */ jsxRuntime.jsx("div", { id: ids.searchListId, role: "listbox", className: tableFilterParts.tableFilterContentClassName, children: searchSuggestions.map((column, index) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
488
357
|
"div",
|
|
489
358
|
{
|
|
490
|
-
ref:
|
|
491
|
-
|
|
492
|
-
className: cn.cn(popoverContentStyles, "w-[220px] p-[8px]"),
|
|
493
|
-
style: {
|
|
494
|
-
top: popoverPosition.y + 8,
|
|
495
|
-
left: popoverPosition.x
|
|
359
|
+
ref: (node) => {
|
|
360
|
+
suggestionItemRefs.current[index] = node;
|
|
496
361
|
},
|
|
497
|
-
|
|
498
|
-
|
|
499
|
-
|
|
500
|
-
|
|
501
|
-
|
|
502
|
-
|
|
503
|
-
|
|
504
|
-
|
|
505
|
-
|
|
506
|
-
|
|
507
|
-
|
|
508
|
-
|
|
509
|
-
|
|
510
|
-
|
|
511
|
-
|
|
512
|
-
|
|
513
|
-
|
|
514
|
-
|
|
515
|
-
|
|
516
|
-
|
|
517
|
-
|
|
518
|
-
|
|
519
|
-
|
|
520
|
-
|
|
521
|
-
return;
|
|
522
|
-
}
|
|
523
|
-
if (e.key === "ArrowUp" || e.key === "ArrowLeft") {
|
|
524
|
-
e.preventDefault();
|
|
525
|
-
focusSearchItem(index - 1);
|
|
526
|
-
return;
|
|
527
|
-
}
|
|
528
|
-
if (e.key === "Home") {
|
|
529
|
-
e.preventDefault();
|
|
530
|
-
focusSearchItem(0);
|
|
531
|
-
return;
|
|
532
|
-
}
|
|
533
|
-
if (e.key === "End") {
|
|
534
|
-
e.preventDefault();
|
|
535
|
-
focusSearchItem(searchSuggestions.length - 1);
|
|
536
|
-
return;
|
|
537
|
-
}
|
|
538
|
-
if (e.key === "Escape") {
|
|
539
|
-
e.preventDefault();
|
|
540
|
-
closePopover();
|
|
541
|
-
returnFocusToInput();
|
|
542
|
-
return;
|
|
543
|
-
}
|
|
544
|
-
if (e.key === "Tab") {
|
|
545
|
-
closePopover();
|
|
546
|
-
if (e.shiftKey) {
|
|
547
|
-
e.preventDefault();
|
|
548
|
-
returnFocusToInput();
|
|
549
|
-
}
|
|
550
|
-
return;
|
|
551
|
-
}
|
|
552
|
-
if (e.key.length === 1 && !e.metaKey && !e.ctrlKey && !e.altKey) {
|
|
553
|
-
e.preventDefault();
|
|
554
|
-
returnFocusToInput();
|
|
555
|
-
return;
|
|
556
|
-
}
|
|
557
|
-
if (e.key === "Backspace" || e.key === "Delete") {
|
|
558
|
-
e.preventDefault();
|
|
559
|
-
returnFocusToInput();
|
|
560
|
-
}
|
|
561
|
-
},
|
|
562
|
-
onMouseEnter: () => setSearchSuggestionIndex(index),
|
|
563
|
-
children: /* @__PURE__ */ jsxRuntime.jsxs("span", { className: tableFilterParts.getTableFilterTextSlotClassName(), children: [
|
|
564
|
-
/* @__PURE__ */ jsxRuntime.jsx("span", { className: "truncate", children: column.label }),
|
|
565
|
-
/* @__PURE__ */ jsxRuntime.jsx("span", { className: "ml-[4px] shrink-0 text-small-regular text-sys-text-subtler", children: "컬럼으로 필터" })
|
|
566
|
-
] })
|
|
567
|
-
},
|
|
568
|
-
column.key
|
|
569
|
-
)) })
|
|
570
|
-
}
|
|
571
|
-
);
|
|
362
|
+
id: ids.getSearchOptionId(index),
|
|
363
|
+
role: "option",
|
|
364
|
+
"aria-selected": index === searchSuggestionIndex,
|
|
365
|
+
tabIndex: autocompleteFocusMode === "option" && index === searchSuggestionIndex ? 0 : -1,
|
|
366
|
+
className: tableFilterParts.getTableFilterItemClassName({
|
|
367
|
+
selected: index === searchSuggestionIndex
|
|
368
|
+
}),
|
|
369
|
+
onClick: () => selectSearchSuggestion(column.key),
|
|
370
|
+
onMouseDown: (e) => e.preventDefault(),
|
|
371
|
+
onKeyDown: (e) => handleListItemKeyDown(e, {
|
|
372
|
+
index,
|
|
373
|
+
count: searchSuggestions.length,
|
|
374
|
+
choose: () => selectSearchSuggestion(column.key),
|
|
375
|
+
moveTo: focusSearchItem,
|
|
376
|
+
backToInput: focusInput
|
|
377
|
+
}),
|
|
378
|
+
onMouseEnter: () => setSearchSuggestionIndex(index),
|
|
379
|
+
children: /* @__PURE__ */ jsxRuntime.jsxs("span", { className: tableFilterParts.getTableFilterTextSlotClassName(), children: [
|
|
380
|
+
/* @__PURE__ */ jsxRuntime.jsx("span", { className: "truncate", children: column.label }),
|
|
381
|
+
/* @__PURE__ */ jsxRuntime.jsx("span", { className: "ml-[4px] shrink-0 text-small-regular text-sys-text-subtler", children: "컬럼으로 필터" })
|
|
382
|
+
] })
|
|
383
|
+
},
|
|
384
|
+
column.key
|
|
385
|
+
)) }) });
|
|
572
386
|
}
|
|
573
387
|
SearchSuggestionPopover.displayName = "SearchSuggestionPopover";
|
|
574
388
|
function ValueSuggestionPopover() {
|
|
575
389
|
const {
|
|
576
390
|
activePopover,
|
|
577
|
-
popoverPosition,
|
|
578
|
-
closePopover,
|
|
579
391
|
ids,
|
|
580
392
|
valueSuggestions,
|
|
581
393
|
valueSuggestionsLoading,
|
|
@@ -585,75 +397,26 @@ function ValueSuggestionPopover() {
|
|
|
585
397
|
autocompleteFocusMode,
|
|
586
398
|
setAutocompleteFocusMode
|
|
587
399
|
} = ColumnFilter.useColumnFilter();
|
|
588
|
-
const
|
|
400
|
+
const focusInput = useFocusInput();
|
|
589
401
|
const suggestionItemRefs = React__namespace.useRef([]);
|
|
590
|
-
const focusInput = React__namespace.useCallback(() => {
|
|
591
|
-
requestAnimationFrame(() => {
|
|
592
|
-
document.getElementById(ids.inputId)?.focus();
|
|
593
|
-
});
|
|
594
|
-
}, [ids.inputId]);
|
|
595
402
|
const focusValueItem = React__namespace.useCallback(
|
|
596
403
|
(index) => {
|
|
597
|
-
if (valueSuggestions.length === 0) return;
|
|
598
|
-
const nextIndex = (index % valueSuggestions.length + valueSuggestions.length) % valueSuggestions.length;
|
|
599
404
|
setAutocompleteFocusMode("option");
|
|
600
|
-
setValueSuggestionIndex(
|
|
405
|
+
setValueSuggestionIndex(index);
|
|
601
406
|
requestAnimationFrame(() => {
|
|
602
|
-
suggestionItemRefs.current[
|
|
407
|
+
suggestionItemRefs.current[index]?.focus();
|
|
603
408
|
});
|
|
604
409
|
},
|
|
605
|
-
[setAutocompleteFocusMode, setValueSuggestionIndex
|
|
410
|
+
[setAutocompleteFocusMode, setValueSuggestionIndex]
|
|
606
411
|
);
|
|
607
|
-
const
|
|
608
|
-
|
|
609
|
-
focusInput();
|
|
610
|
-
}, [focusInput, setAutocompleteFocusMode]);
|
|
611
|
-
React__namespace.useEffect(() => {
|
|
612
|
-
if (activePopover !== "value") return;
|
|
613
|
-
const handleClickOutside = (e) => {
|
|
614
|
-
const target = e.target;
|
|
615
|
-
if (!target) return;
|
|
616
|
-
if (document.getElementById(ids.inputId)?.contains(target)) {
|
|
617
|
-
return;
|
|
618
|
-
}
|
|
619
|
-
if (popoverRef.current && !popoverRef.current.contains(target)) {
|
|
620
|
-
closePopover();
|
|
621
|
-
}
|
|
622
|
-
};
|
|
623
|
-
const timer = setTimeout(() => {
|
|
624
|
-
document.addEventListener("mousedown", handleClickOutside);
|
|
625
|
-
}, 10);
|
|
626
|
-
return () => {
|
|
627
|
-
clearTimeout(timer);
|
|
628
|
-
document.removeEventListener("mousedown", handleClickOutside);
|
|
629
|
-
};
|
|
630
|
-
}, [activePopover, closePopover, ids.inputId]);
|
|
631
|
-
if (activePopover !== "value" || !popoverPosition) return null;
|
|
632
|
-
if (valueSuggestionsLoading && valueSuggestions.length === 0) {
|
|
633
|
-
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
634
|
-
"div",
|
|
635
|
-
{
|
|
636
|
-
ref: popoverRef,
|
|
637
|
-
"data-slot": "value-suggestion-popover",
|
|
638
|
-
className: cn.cn(popoverContentStyles, "w-[220px] p-[8px]"),
|
|
639
|
-
style: { top: popoverPosition.y + 8, left: popoverPosition.x },
|
|
640
|
-
children: /* @__PURE__ */ jsxRuntime.jsx(tableFilterParts.TableFilterLoadingItem, {})
|
|
641
|
-
}
|
|
642
|
-
);
|
|
643
|
-
}
|
|
644
|
-
if (valueSuggestions.length === 0) return null;
|
|
412
|
+
const loading = valueSuggestionsLoading && valueSuggestions.length === 0;
|
|
413
|
+
if (activePopover !== "value" || !loading && valueSuggestions.length === 0) return null;
|
|
645
414
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
646
|
-
|
|
415
|
+
FilterPopoverContent,
|
|
647
416
|
{
|
|
648
|
-
ref: popoverRef,
|
|
649
417
|
"data-slot": "value-suggestion-popover",
|
|
650
|
-
className: cn.cn(
|
|
651
|
-
|
|
652
|
-
"w-[220px] max-h-[224px] overflow-y-auto p-[8px]",
|
|
653
|
-
tableFilterParts.tableFilterScrollbarClassName
|
|
654
|
-
),
|
|
655
|
-
style: { top: popoverPosition.y + 8, left: popoverPosition.x },
|
|
656
|
-
children: /* @__PURE__ */ jsxRuntime.jsx("div", { id: ids.valueListId, role: "listbox", className: tableFilterParts.tableFilterContentClassName, children: valueSuggestions.map((suggestion, index) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
418
|
+
className: cn.cn("w-[220px] max-h-[224px] overflow-y-auto", tableFilterParts.tableFilterScrollbarClassName),
|
|
419
|
+
children: loading ? /* @__PURE__ */ jsxRuntime.jsx(tableFilterParts.TableFilterLoadingItem, {}) : /* @__PURE__ */ jsxRuntime.jsx("div", { id: ids.valueListId, role: "listbox", className: tableFilterParts.tableFilterContentClassName, children: valueSuggestions.map((suggestion, index) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
657
420
|
"div",
|
|
658
421
|
{
|
|
659
422
|
ref: (node) => {
|
|
@@ -668,56 +431,13 @@ function ValueSuggestionPopover() {
|
|
|
668
431
|
}),
|
|
669
432
|
onClick: () => selectValueSuggestion(suggestion.value),
|
|
670
433
|
onMouseDown: (e) => e.preventDefault(),
|
|
671
|
-
onKeyDown: (e) => {
|
|
672
|
-
|
|
673
|
-
|
|
674
|
-
|
|
675
|
-
|
|
676
|
-
|
|
677
|
-
|
|
678
|
-
e.preventDefault();
|
|
679
|
-
focusValueItem(index + 1);
|
|
680
|
-
return;
|
|
681
|
-
}
|
|
682
|
-
if (e.key === "ArrowUp" || e.key === "ArrowLeft") {
|
|
683
|
-
e.preventDefault();
|
|
684
|
-
focusValueItem(index - 1);
|
|
685
|
-
return;
|
|
686
|
-
}
|
|
687
|
-
if (e.key === "Home") {
|
|
688
|
-
e.preventDefault();
|
|
689
|
-
focusValueItem(0);
|
|
690
|
-
return;
|
|
691
|
-
}
|
|
692
|
-
if (e.key === "End") {
|
|
693
|
-
e.preventDefault();
|
|
694
|
-
focusValueItem(valueSuggestions.length - 1);
|
|
695
|
-
return;
|
|
696
|
-
}
|
|
697
|
-
if (e.key === "Escape") {
|
|
698
|
-
e.preventDefault();
|
|
699
|
-
closePopover();
|
|
700
|
-
returnFocusToInput();
|
|
701
|
-
return;
|
|
702
|
-
}
|
|
703
|
-
if (e.key === "Tab") {
|
|
704
|
-
closePopover();
|
|
705
|
-
if (e.shiftKey) {
|
|
706
|
-
e.preventDefault();
|
|
707
|
-
returnFocusToInput();
|
|
708
|
-
}
|
|
709
|
-
return;
|
|
710
|
-
}
|
|
711
|
-
if (e.key.length === 1 && !e.metaKey && !e.ctrlKey && !e.altKey) {
|
|
712
|
-
e.preventDefault();
|
|
713
|
-
returnFocusToInput();
|
|
714
|
-
return;
|
|
715
|
-
}
|
|
716
|
-
if (e.key === "Backspace" || e.key === "Delete") {
|
|
717
|
-
e.preventDefault();
|
|
718
|
-
returnFocusToInput();
|
|
719
|
-
}
|
|
720
|
-
},
|
|
434
|
+
onKeyDown: (e) => handleListItemKeyDown(e, {
|
|
435
|
+
index,
|
|
436
|
+
count: valueSuggestions.length,
|
|
437
|
+
choose: () => selectValueSuggestion(suggestion.value),
|
|
438
|
+
moveTo: focusValueItem,
|
|
439
|
+
backToInput: focusInput
|
|
440
|
+
}),
|
|
721
441
|
onMouseEnter: () => setValueSuggestionIndex(index),
|
|
722
442
|
children: /* @__PURE__ */ jsxRuntime.jsx("span", { className: tableFilterParts.getTableFilterTextSlotClassName(), children: /* @__PURE__ */ jsxRuntime.jsx("span", { className: "truncate", children: suggestion.label }) })
|
|
723
443
|
},
|