@fluidattacks/design 9.5.1 → 9.5.2
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.
|
@@ -1,93 +1,95 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
import { useVirtualizer as
|
|
3
|
-
import { useState as
|
|
4
|
-
import { useButton as
|
|
5
|
-
import { useComboBox as
|
|
6
|
-
import { useFilter as
|
|
7
|
-
import { useListBox as
|
|
8
|
-
import { useComboBoxState as
|
|
9
|
-
import { Item as
|
|
10
|
-
import { useTheme as
|
|
11
|
-
import { OutlineContainer as
|
|
12
|
-
import { StyledTextInputContainer as
|
|
13
|
-
import { Popover as
|
|
14
|
-
import { Option as
|
|
15
|
-
import { StyledStatusMessage as
|
|
16
|
-
import { describeSelection as
|
|
17
|
-
import { Icon as
|
|
18
|
-
import { IconButton as
|
|
1
|
+
import { jsx as r, jsxs as G } from "react/jsx-runtime";
|
|
2
|
+
import { useVirtualizer as qe } from "../../../../../node_modules/@tanstack/react-virtual/dist/esm/index.js";
|
|
3
|
+
import { useState as g, useMemo as $, useRef as y, useCallback as v } from "react";
|
|
4
|
+
import { useButton as Je } from "../../../../../node_modules/react-aria/dist/private/button/useButton.js";
|
|
5
|
+
import { useComboBox as Pe } from "../../../../../node_modules/react-aria/dist/private/combobox/useComboBox.js";
|
|
6
|
+
import { useFilter as Qe } from "../../../../../node_modules/react-aria/dist/private/i18n/useFilter.js";
|
|
7
|
+
import { useListBox as Xe } from "../../../../../node_modules/react-aria/dist/private/listbox/useListBox.js";
|
|
8
|
+
import { useComboBoxState as Ze } from "../../../../../node_modules/react-stately/dist/private/combobox/useComboBoxState.js";
|
|
9
|
+
import { Item as _e } from "../../../../../node_modules/react-stately/dist/private/collections/Item.js";
|
|
10
|
+
import { useTheme as eo } from "styled-components";
|
|
11
|
+
import { OutlineContainer as oo } from "../../../outline-container/index.js";
|
|
12
|
+
import { StyledTextInputContainer as to } from "../../../styles.js";
|
|
13
|
+
import { Popover as ge } from "../../../utils/popover/index.js";
|
|
14
|
+
import { Option as ro } from "../option/index.js";
|
|
15
|
+
import { StyledStatusMessage as no, ChevronIconButton as so, StyledDropdown as ye, StyledGroupHeader as lo, StyledEmptyMessage as ao } from "../styles.js";
|
|
16
|
+
import { describeSelection as co, toSelection as ve } from "../utils.js";
|
|
17
|
+
import { Icon as J } from "../../../../icon/index.js";
|
|
18
|
+
import { IconButton as io } from "../../../../icon-button/index.js";
|
|
19
19
|
import "../../../../typography/heading/index.js";
|
|
20
20
|
import "../../../../typography/span/index.js";
|
|
21
|
-
import { Text as
|
|
22
|
-
import { useClickOutside as
|
|
21
|
+
import { Text as P } from "../../../../typography/text/index.js";
|
|
22
|
+
import { useClickOutside as po } from "../../../../../hooks/use-click-outside.js";
|
|
23
23
|
const ko = ({
|
|
24
|
-
field:
|
|
24
|
+
field: i,
|
|
25
25
|
disabled: h = !1,
|
|
26
|
-
disabledKeys:
|
|
27
|
-
error:
|
|
28
|
-
helpLink:
|
|
29
|
-
helpLinkText:
|
|
30
|
-
helpText:
|
|
31
|
-
label:
|
|
32
|
-
loadingItems:
|
|
26
|
+
disabledKeys: b,
|
|
27
|
+
error: xe,
|
|
28
|
+
helpLink: $e,
|
|
29
|
+
helpLinkText: be,
|
|
30
|
+
helpText: we,
|
|
31
|
+
label: Q,
|
|
32
|
+
loadingItems: X,
|
|
33
33
|
name: l,
|
|
34
|
-
multiSelection:
|
|
34
|
+
multiSelection: t = !1,
|
|
35
35
|
items: o,
|
|
36
|
-
onBlur:
|
|
37
|
-
onChange:
|
|
38
|
-
onClear:
|
|
39
|
-
placeholder:
|
|
40
|
-
clearable:
|
|
41
|
-
emptyMessage:
|
|
42
|
-
statusMessage:
|
|
43
|
-
required:
|
|
44
|
-
setValue:
|
|
45
|
-
tooltip:
|
|
46
|
-
value:
|
|
47
|
-
watch:
|
|
48
|
-
weight:
|
|
36
|
+
onBlur: j,
|
|
37
|
+
onChange: d,
|
|
38
|
+
onClear: Z,
|
|
39
|
+
placeholder: Se,
|
|
40
|
+
clearable: Be = !1,
|
|
41
|
+
emptyMessage: _,
|
|
42
|
+
statusMessage: ee,
|
|
43
|
+
required: Ce,
|
|
44
|
+
setValue: w,
|
|
45
|
+
tooltip: Ae,
|
|
46
|
+
value: Oe,
|
|
47
|
+
watch: S,
|
|
48
|
+
weight: ze
|
|
49
49
|
}) => {
|
|
50
|
-
const m =
|
|
51
|
-
|
|
50
|
+
const m = eo(), k = h ? void 0 : xe, a = i?.value ?? Oe, [M, x] = g(() => t ? co(
|
|
51
|
+
ve(S?.(`${l}Options`)),
|
|
52
52
|
o.map((e) => e.value),
|
|
53
|
-
|
|
53
|
+
b ?? [],
|
|
54
54
|
o.find((e) => e.value === "All")?.name
|
|
55
|
-
).text : o.find((e) => e.value ===
|
|
56
|
-
() =>
|
|
57
|
-
[
|
|
58
|
-
), [
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
55
|
+
).text : o.find((e) => e.value === a)?.name ?? ""), [oe, B] = g(a), H = (X === !1 || !a) && !t, C = $(
|
|
56
|
+
() => H ? o.find((e) => e.value === a)?.name ?? "" : "",
|
|
57
|
+
[H, a, o]
|
|
58
|
+
), [Re, Ie] = g(a), [Fe, te] = g(C), [De, N] = g(a);
|
|
59
|
+
a !== Re ? (Ie(a), te(C), !t && (X !== !0 || !a) && a !== De && (N(a), x(
|
|
60
|
+
o.find((e) => e.value === a)?.name ?? ""
|
|
61
|
+
), B(a ?? ""))) : H && C !== Fe && (te(C), x(C), B(a ?? ""));
|
|
62
|
+
const [Ge, U] = g(o), [re, A] = g(!1), { contains: V } = Qe({ sensitivity: "base" }), W = y(null), Y = y(null), O = y(null), z = y(null), ne = y(null), R = y(null), q = y(/* @__PURE__ */ new Set()), ke = $(() => {
|
|
63
|
+
const e = q.current, s = Array.from(b ?? []), p = o.some((n) => n.group !== void 0);
|
|
64
|
+
return o.toSorted((n, f) => {
|
|
63
65
|
if (n.value === "All") return -1;
|
|
64
|
-
if (
|
|
65
|
-
const
|
|
66
|
-
if (
|
|
67
|
-
const
|
|
68
|
-
if (!n.group &&
|
|
69
|
-
if (n.group && !
|
|
70
|
-
if (
|
|
71
|
-
return
|
|
72
|
-
if (
|
|
73
|
-
if (!
|
|
74
|
-
if (
|
|
75
|
-
const
|
|
76
|
-
if (
|
|
77
|
-
if (!
|
|
66
|
+
if (f.value === "All") return 1;
|
|
67
|
+
const K = s.includes(n.value), L = s.includes(f.value);
|
|
68
|
+
if (p) {
|
|
69
|
+
const F = n.group ?? "", D = f.group ?? "";
|
|
70
|
+
if (!n.group && f.group) return -1;
|
|
71
|
+
if (n.group && !f.group) return 1;
|
|
72
|
+
if (F !== D)
|
|
73
|
+
return F.localeCompare(D);
|
|
74
|
+
if (K && !L) return 1;
|
|
75
|
+
if (!K && L) return -1;
|
|
76
|
+
if (t) {
|
|
77
|
+
const he = e.has(n.value), me = e.has(f.value);
|
|
78
|
+
if (he && !me) return -1;
|
|
79
|
+
if (!he && me) return 1;
|
|
78
80
|
}
|
|
79
|
-
return n.name.localeCompare(
|
|
81
|
+
return n.name.localeCompare(f.name);
|
|
80
82
|
}
|
|
81
|
-
if (
|
|
82
|
-
if (!
|
|
83
|
-
if (
|
|
84
|
-
const
|
|
85
|
-
return
|
|
83
|
+
if (K && !L) return 1;
|
|
84
|
+
if (!K && L) return -1;
|
|
85
|
+
if (t) {
|
|
86
|
+
const F = e.has(n.value), D = e.has(f.value);
|
|
87
|
+
return F && !D ? -1 : !F && D ? 1 : n.name.localeCompare(f.name);
|
|
86
88
|
}
|
|
87
89
|
return 0;
|
|
88
90
|
}).map(
|
|
89
|
-
(n) =>
|
|
90
|
-
|
|
91
|
+
(n) => V(n.name, M) || re ? /* @__PURE__ */ r(
|
|
92
|
+
_e,
|
|
91
93
|
{
|
|
92
94
|
"aria-label": n.value,
|
|
93
95
|
hrefLang: n.href,
|
|
@@ -97,153 +99,162 @@ const ko = ({
|
|
|
97
99
|
n.value
|
|
98
100
|
) : null
|
|
99
101
|
);
|
|
100
|
-
}, [
|
|
102
|
+
}, [V, b, M, o, t, re]), Me = v(
|
|
101
103
|
(e) => {
|
|
102
104
|
const s = e.split(/,|\s/u).slice(-1)[0].trim();
|
|
103
|
-
|
|
104
|
-
const
|
|
105
|
-
return
|
|
106
|
-
}),
|
|
105
|
+
x(t ? s : e), e === "" || e.endsWith(",") ? A(!0) : (A(!1), i || N(e), B((p) => {
|
|
106
|
+
const u = e === "" ? "" : p;
|
|
107
|
+
return i && i.onChange(u), d && d(e), u;
|
|
108
|
+
}), U(
|
|
107
109
|
o.filter(
|
|
108
|
-
(
|
|
110
|
+
(p) => V(p.name, t ? s : e)
|
|
109
111
|
)
|
|
110
112
|
));
|
|
111
113
|
},
|
|
112
|
-
[
|
|
113
|
-
),
|
|
114
|
+
[V, o, i, t, d]
|
|
115
|
+
), Ne = v(
|
|
114
116
|
(e) => {
|
|
115
|
-
|
|
117
|
+
x(o.find((s) => s.value === e)?.name ?? ""), B(e ? String(e) : ""), N(i ? e : String(e ?? "")), i && i.onChange(e), d && d(e ? String(e) : ""), U(o);
|
|
116
118
|
},
|
|
117
|
-
[o,
|
|
118
|
-
),
|
|
119
|
+
[o, i, d]
|
|
120
|
+
), se = v(
|
|
119
121
|
(e) => {
|
|
120
|
-
e.key === "Enter" && e.preventDefault(),
|
|
122
|
+
e.key === "Enter" && e.preventDefault(), A(!1);
|
|
121
123
|
},
|
|
122
124
|
[]
|
|
123
|
-
),
|
|
124
|
-
|
|
125
|
-
}, [
|
|
126
|
-
|
|
127
|
-
}, []),
|
|
128
|
-
allowsCustomValue:
|
|
125
|
+
), Ve = v(() => {
|
|
126
|
+
j && j(), i && i.onBlur();
|
|
127
|
+
}, [i, j]), Te = v(() => {
|
|
128
|
+
A(!0);
|
|
129
|
+
}, []), c = Ze({
|
|
130
|
+
allowsCustomValue: t,
|
|
129
131
|
allowsEmptyCollection: !0,
|
|
130
|
-
disabledKeys:
|
|
131
|
-
inputValue:
|
|
132
|
-
items:
|
|
132
|
+
disabledKeys: b,
|
|
133
|
+
inputValue: M,
|
|
134
|
+
items: Ge,
|
|
133
135
|
menuTrigger: "focus",
|
|
134
|
-
shouldCloseOnBlur: !
|
|
135
|
-
selectedKey:
|
|
136
|
-
onBlur:
|
|
137
|
-
onInputChange:
|
|
138
|
-
onKeyDown:
|
|
139
|
-
onKeyUp:
|
|
136
|
+
shouldCloseOnBlur: !t,
|
|
137
|
+
selectedKey: oe,
|
|
138
|
+
onBlur: Ve,
|
|
139
|
+
onInputChange: Me,
|
|
140
|
+
onKeyDown: se,
|
|
141
|
+
onKeyUp: Te,
|
|
140
142
|
onOpenChange(e, s) {
|
|
141
|
-
e &&
|
|
142
|
-
|
|
143
|
-
)),
|
|
143
|
+
e && t && S && (q.current = new Set(
|
|
144
|
+
ve(S(`${l}Options`)).filter(Boolean)
|
|
145
|
+
)), A(
|
|
144
146
|
e && (s === "manual" || s === "focus")
|
|
145
147
|
), e && s !== "focus" && requestAnimationFrame(() => {
|
|
146
|
-
|
|
148
|
+
W.current?.focus();
|
|
147
149
|
});
|
|
148
150
|
},
|
|
149
|
-
onSelectionChange:
|
|
151
|
+
onSelectionChange: t ? void 0 : Ne,
|
|
150
152
|
children: ke
|
|
151
|
-
}),
|
|
152
|
-
|
|
153
|
-
}, [
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
153
|
+
}), Ee = v(() => {
|
|
154
|
+
x(""), B(null), U(o), c.setSelectedKey(null), c.setInputValue(""), i || N(""), d && d(""), t && w && (w(`${l}Options`, []), w(`${l}CheckAll`, "")), Z?.();
|
|
155
|
+
}, [
|
|
156
|
+
i,
|
|
157
|
+
o,
|
|
158
|
+
t,
|
|
159
|
+
l,
|
|
160
|
+
Z,
|
|
161
|
+
d,
|
|
162
|
+
w,
|
|
163
|
+
c
|
|
164
|
+
]), {
|
|
165
|
+
buttonProps: Ke,
|
|
166
|
+
inputProps: Le,
|
|
167
|
+
listBoxProps: je
|
|
168
|
+
} = Pe(
|
|
158
169
|
{
|
|
159
|
-
inputValue:
|
|
160
|
-
buttonRef:
|
|
170
|
+
inputValue: M,
|
|
171
|
+
buttonRef: Y,
|
|
161
172
|
id: l,
|
|
162
|
-
inputRef:
|
|
163
|
-
label:
|
|
164
|
-
listBoxRef:
|
|
173
|
+
inputRef: W,
|
|
174
|
+
label: Q ?? l,
|
|
175
|
+
listBoxRef: O,
|
|
165
176
|
name: l,
|
|
166
|
-
placeholder:
|
|
167
|
-
popoverRef:
|
|
177
|
+
placeholder: Se,
|
|
178
|
+
popoverRef: R
|
|
168
179
|
},
|
|
169
|
-
|
|
170
|
-
), { listBoxProps:
|
|
180
|
+
c
|
|
181
|
+
), { listBoxProps: le } = Xe(je, c, O), { buttonProps: He } = Je(Ke, Y), { width: ae } = z.current?.getBoundingClientRect() ?? {
|
|
171
182
|
width: 240
|
|
172
183
|
};
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
}, [
|
|
176
|
-
const
|
|
177
|
-
(e) => e.key === "All" ||
|
|
178
|
-
) : -1,
|
|
184
|
+
po(z, () => {
|
|
185
|
+
c.isOpen && !t && c.close();
|
|
186
|
+
}, [R]);
|
|
187
|
+
const I = Array.from(c.collection), ce = t ? I.findLastIndex(
|
|
188
|
+
(e) => e.key === "All" || q.current.has(String(e.key))
|
|
189
|
+
) : -1, Ue = $(() => o.map((e) => e.value), [o]), ie = $(
|
|
179
190
|
() => new Map(o.map((e) => [e.value, e.group])),
|
|
180
191
|
[o]
|
|
181
|
-
),
|
|
192
|
+
), We = $(
|
|
182
193
|
() => new Map(o.map((e) => [e.value, e.tag])),
|
|
183
194
|
[o]
|
|
184
|
-
), T =
|
|
185
|
-
(e, s,
|
|
186
|
-
const
|
|
187
|
-
return
|
|
195
|
+
), T = $(() => I.reduce(
|
|
196
|
+
(e, s, p) => {
|
|
197
|
+
const u = ie.get(String(s.key));
|
|
198
|
+
return u !== void 0 && u !== e.currentGroup ? (e.result.push({ type: "header", group: u }), e.currentGroup = u) : u === void 0 && e.currentGroup !== void 0 && (e.currentGroup = void 0), e.result.push({ type: "item", index: p }), e;
|
|
188
199
|
},
|
|
189
200
|
{ result: [], currentGroup: void 0 }
|
|
190
|
-
).result, [
|
|
201
|
+
).result, [I, ie]), pe = qe({
|
|
191
202
|
count: T.length,
|
|
192
203
|
estimateSize: (e) => T[e].type === "header" ? 44 : 28,
|
|
193
|
-
getScrollElement: () =>
|
|
204
|
+
getScrollElement: () => O.current,
|
|
194
205
|
useFlushSync: !1
|
|
195
|
-
}),
|
|
206
|
+
}), ue = c.isOpen && !h, E = ue && !!ee, fe = ue && o.length === 0 && !!_, Ye = v(
|
|
196
207
|
(e) => {
|
|
197
208
|
e.preventDefault();
|
|
198
209
|
},
|
|
199
210
|
[]
|
|
200
|
-
),
|
|
211
|
+
), de = E ? (
|
|
201
212
|
// A listbox only owns options, so the row itself must stay presentational
|
|
202
|
-
/* @__PURE__ */
|
|
203
|
-
|
|
213
|
+
/* @__PURE__ */ r(no, { onMouseDown: Ye, role: "presentation", children: /* @__PURE__ */ r("div", { "aria-live": "polite", role: "status", children: /* @__PURE__ */ r(
|
|
214
|
+
P,
|
|
204
215
|
{
|
|
205
216
|
color: m.palette.gray[400],
|
|
206
217
|
size: "sm",
|
|
207
218
|
textOverflow: "auto",
|
|
208
219
|
whiteSpace: "wrap",
|
|
209
|
-
children:
|
|
220
|
+
children: ee
|
|
210
221
|
}
|
|
211
222
|
) }) })
|
|
212
223
|
) : null;
|
|
213
|
-
return /* @__PURE__ */
|
|
214
|
-
|
|
224
|
+
return /* @__PURE__ */ G(
|
|
225
|
+
oo,
|
|
215
226
|
{
|
|
216
|
-
containerRef:
|
|
227
|
+
containerRef: ne,
|
|
217
228
|
error: k,
|
|
218
|
-
helpLink:
|
|
219
|
-
helpLinkText:
|
|
220
|
-
helpText:
|
|
229
|
+
helpLink: $e,
|
|
230
|
+
helpLinkText: be,
|
|
231
|
+
helpText: we,
|
|
221
232
|
htmlFor: l,
|
|
222
233
|
id: `combobox-${l}`,
|
|
223
|
-
label:
|
|
224
|
-
required:
|
|
225
|
-
tooltip:
|
|
226
|
-
weight:
|
|
234
|
+
label: Q,
|
|
235
|
+
required: Ce,
|
|
236
|
+
tooltip: Ae,
|
|
237
|
+
weight: ze,
|
|
227
238
|
children: [
|
|
228
|
-
/* @__PURE__ */
|
|
229
|
-
|
|
239
|
+
/* @__PURE__ */ G(
|
|
240
|
+
to,
|
|
230
241
|
{
|
|
231
242
|
className: `${h ? "disabled" : ""} ${k ? "error" : ""}`,
|
|
232
|
-
ref:
|
|
243
|
+
ref: z,
|
|
233
244
|
children: [
|
|
234
|
-
/* @__PURE__ */
|
|
245
|
+
/* @__PURE__ */ r(
|
|
235
246
|
"input",
|
|
236
247
|
{
|
|
237
|
-
...
|
|
248
|
+
...Le,
|
|
238
249
|
"aria-invalid": k ? "true" : "false",
|
|
239
250
|
"aria-label": l,
|
|
240
251
|
disabled: h,
|
|
241
|
-
onKeyDown:
|
|
242
|
-
ref:
|
|
252
|
+
onKeyDown: se,
|
|
253
|
+
ref: W
|
|
243
254
|
}
|
|
244
255
|
),
|
|
245
|
-
k ? /* @__PURE__ */
|
|
246
|
-
|
|
256
|
+
k ? /* @__PURE__ */ r(
|
|
257
|
+
J,
|
|
247
258
|
{
|
|
248
259
|
icon: "exclamation-circle",
|
|
249
260
|
iconClass: "error-icon",
|
|
@@ -251,34 +262,34 @@ const ko = ({
|
|
|
251
262
|
iconSize: "lg"
|
|
252
263
|
}
|
|
253
264
|
) : void 0,
|
|
254
|
-
|
|
255
|
-
|
|
265
|
+
Be && !h && (t ? (S?.(`${l}Options`)?.length ?? 0) > 0 : oe) ? /* @__PURE__ */ r(
|
|
266
|
+
io,
|
|
256
267
|
{
|
|
257
268
|
icon: "xmark",
|
|
258
269
|
iconColor: m.palette.gray[400],
|
|
259
270
|
iconSize: "sm",
|
|
260
271
|
iconType: "fa-light",
|
|
261
|
-
onClick:
|
|
272
|
+
onClick: Ee,
|
|
262
273
|
px: 0.125,
|
|
263
274
|
py: 0.125,
|
|
264
275
|
type: "reset",
|
|
265
276
|
variant: "ghost"
|
|
266
277
|
}
|
|
267
278
|
) : void 0,
|
|
268
|
-
/* @__PURE__ */
|
|
269
|
-
|
|
279
|
+
/* @__PURE__ */ G(
|
|
280
|
+
so,
|
|
270
281
|
{
|
|
271
|
-
...
|
|
282
|
+
...He,
|
|
272
283
|
$variant: "ghost",
|
|
273
|
-
className: `action ${
|
|
284
|
+
className: `action ${c.isOpen && !h ? "open" : "closed"}`,
|
|
274
285
|
disabled: h,
|
|
275
286
|
px: 0.125,
|
|
276
287
|
py: 0.125,
|
|
277
|
-
ref:
|
|
288
|
+
ref: Y,
|
|
278
289
|
type: "button",
|
|
279
290
|
children: [
|
|
280
|
-
/* @__PURE__ */
|
|
281
|
-
|
|
291
|
+
/* @__PURE__ */ r("div", { className: "chevron-down", children: /* @__PURE__ */ r(
|
|
292
|
+
J,
|
|
282
293
|
{
|
|
283
294
|
clickable: !1,
|
|
284
295
|
icon: "chevron-down",
|
|
@@ -287,8 +298,8 @@ const ko = ({
|
|
|
287
298
|
iconType: "fa-light"
|
|
288
299
|
}
|
|
289
300
|
) }),
|
|
290
|
-
/* @__PURE__ */
|
|
291
|
-
|
|
301
|
+
/* @__PURE__ */ r("div", { className: "chevron-up", children: /* @__PURE__ */ r(
|
|
302
|
+
J,
|
|
292
303
|
{
|
|
293
304
|
clickable: !1,
|
|
294
305
|
icon: "chevron-up",
|
|
@@ -303,36 +314,36 @@ const ko = ({
|
|
|
303
314
|
]
|
|
304
315
|
}
|
|
305
316
|
),
|
|
306
|
-
|
|
307
|
-
|
|
317
|
+
c.isOpen && c.collection.size > 0 && !h ? /* @__PURE__ */ r(
|
|
318
|
+
ge,
|
|
308
319
|
{
|
|
309
320
|
className: "dropdown",
|
|
310
321
|
id: `popover-${l}`,
|
|
311
322
|
offset: 4,
|
|
312
323
|
placement: "bottom start",
|
|
313
|
-
popoverRef:
|
|
314
|
-
state:
|
|
315
|
-
triggerRef:
|
|
316
|
-
children: /* @__PURE__ */
|
|
317
|
-
|
|
324
|
+
popoverRef: R,
|
|
325
|
+
state: c,
|
|
326
|
+
triggerRef: z,
|
|
327
|
+
children: /* @__PURE__ */ G(
|
|
328
|
+
ye,
|
|
318
329
|
{
|
|
319
|
-
...
|
|
320
|
-
$hasStatus:
|
|
321
|
-
$multiSelection:
|
|
322
|
-
$width:
|
|
323
|
-
ref:
|
|
330
|
+
...le,
|
|
331
|
+
$hasStatus: E,
|
|
332
|
+
$multiSelection: t && !Array.from(b ?? []).includes("All"),
|
|
333
|
+
$width: ae,
|
|
334
|
+
ref: O,
|
|
324
335
|
children: [
|
|
325
|
-
/* @__PURE__ */
|
|
336
|
+
/* @__PURE__ */ r(
|
|
326
337
|
"div",
|
|
327
338
|
{
|
|
328
339
|
style: {
|
|
329
|
-
height: `${
|
|
340
|
+
height: `${pe.getTotalSize()}px`,
|
|
330
341
|
position: "relative"
|
|
331
342
|
},
|
|
332
|
-
children:
|
|
343
|
+
children: pe.getVirtualItems().map((e) => {
|
|
333
344
|
const s = T[e.index];
|
|
334
345
|
if (s.type === "header")
|
|
335
|
-
return /* @__PURE__ */
|
|
346
|
+
return /* @__PURE__ */ r(
|
|
336
347
|
"div",
|
|
337
348
|
{
|
|
338
349
|
style: {
|
|
@@ -343,8 +354,8 @@ const ko = ({
|
|
|
343
354
|
height: `${e.size}px`,
|
|
344
355
|
transform: `translateY(${e.start}px)`
|
|
345
356
|
},
|
|
346
|
-
children: /* @__PURE__ */
|
|
347
|
-
|
|
357
|
+
children: /* @__PURE__ */ r(lo, { children: /* @__PURE__ */ r(
|
|
358
|
+
P,
|
|
348
359
|
{
|
|
349
360
|
color: m.palette.gray[400],
|
|
350
361
|
fontWeight: "bold",
|
|
@@ -355,8 +366,8 @@ const ko = ({
|
|
|
355
366
|
},
|
|
356
367
|
`header-${e.index}`
|
|
357
368
|
);
|
|
358
|
-
const
|
|
359
|
-
return /* @__PURE__ */
|
|
369
|
+
const p = I[s.index], u = T[e.index + 1], n = p.key === "All" && u?.type === "header", f = t && s.index === ce && ce >= 0 && s.index < I.length - 1 && !n;
|
|
370
|
+
return /* @__PURE__ */ r(
|
|
360
371
|
"div",
|
|
361
372
|
{
|
|
362
373
|
style: {
|
|
@@ -366,65 +377,65 @@ const ko = ({
|
|
|
366
377
|
width: "100%",
|
|
367
378
|
height: `${e.size}px`,
|
|
368
379
|
transform: `translateY(${e.start}px)`,
|
|
369
|
-
borderBottom:
|
|
380
|
+
borderBottom: f ? `1px solid ${m.palette.gray[200]}` : void 0
|
|
370
381
|
},
|
|
371
|
-
children: /* @__PURE__ */
|
|
372
|
-
|
|
382
|
+
children: /* @__PURE__ */ r(
|
|
383
|
+
ro,
|
|
373
384
|
{
|
|
374
|
-
allItemKeys:
|
|
375
|
-
containerRef:
|
|
376
|
-
item:
|
|
377
|
-
multiSelection:
|
|
385
|
+
allItemKeys: Ue,
|
|
386
|
+
containerRef: ne,
|
|
387
|
+
item: p,
|
|
388
|
+
multiSelection: t,
|
|
378
389
|
name: l,
|
|
379
|
-
popoverRef:
|
|
380
|
-
setInputValue:
|
|
381
|
-
setValue:
|
|
382
|
-
state:
|
|
383
|
-
tag:
|
|
384
|
-
watch:
|
|
390
|
+
popoverRef: R,
|
|
391
|
+
setInputValue: x,
|
|
392
|
+
setValue: w,
|
|
393
|
+
state: c,
|
|
394
|
+
tag: We.get(String(p.key)),
|
|
395
|
+
watch: S
|
|
385
396
|
}
|
|
386
397
|
)
|
|
387
398
|
},
|
|
388
|
-
|
|
399
|
+
p.key
|
|
389
400
|
);
|
|
390
401
|
})
|
|
391
402
|
}
|
|
392
403
|
),
|
|
393
|
-
|
|
404
|
+
de
|
|
394
405
|
]
|
|
395
406
|
}
|
|
396
407
|
)
|
|
397
408
|
}
|
|
398
|
-
) : !
|
|
399
|
-
|
|
409
|
+
) : !fe && !E ? null : /* @__PURE__ */ r(
|
|
410
|
+
ge,
|
|
400
411
|
{
|
|
401
412
|
className: "dropdown",
|
|
402
413
|
id: `popover-${l}-empty`,
|
|
403
414
|
offset: 4,
|
|
404
415
|
placement: "bottom start",
|
|
405
|
-
popoverRef:
|
|
406
|
-
state:
|
|
407
|
-
triggerRef:
|
|
408
|
-
children: /* @__PURE__ */
|
|
409
|
-
|
|
416
|
+
popoverRef: R,
|
|
417
|
+
state: c,
|
|
418
|
+
triggerRef: z,
|
|
419
|
+
children: /* @__PURE__ */ G(
|
|
420
|
+
ye,
|
|
410
421
|
{
|
|
411
|
-
...
|
|
412
|
-
$hasStatus:
|
|
422
|
+
...le,
|
|
423
|
+
$hasStatus: E,
|
|
413
424
|
$multiSelection: !1,
|
|
414
|
-
$width:
|
|
415
|
-
ref:
|
|
425
|
+
$width: ae,
|
|
426
|
+
ref: O,
|
|
416
427
|
children: [
|
|
417
|
-
|
|
418
|
-
|
|
428
|
+
fe ? /* @__PURE__ */ r(ao, { children: /* @__PURE__ */ r(
|
|
429
|
+
P,
|
|
419
430
|
{
|
|
420
431
|
color: m.palette.gray[400],
|
|
421
432
|
size: "md",
|
|
422
433
|
textOverflow: "auto",
|
|
423
434
|
whiteSpace: "wrap",
|
|
424
|
-
children:
|
|
435
|
+
children: _
|
|
425
436
|
}
|
|
426
437
|
) }) : null,
|
|
427
|
-
|
|
438
|
+
de
|
|
428
439
|
]
|
|
429
440
|
}
|
|
430
441
|
)
|
package/package.json
CHANGED