@ufal-lccv/gpsub-ds 0.0.11 → 0.0.13
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/{Checkbox.view-B-GrHFEa.js → Checkbox.view-D75146I3.js} +1033 -982
- package/dist/{Checkbox.view-DpYmvx5w.cjs → Checkbox.view-DFbiE7Mi.cjs} +118 -118
- package/dist/RequiredLabel.view-Cv_y1fuR.js +130 -0
- package/dist/RequiredLabel.view-DRKx7lq3.cjs +1 -0
- package/dist/Table.view-BipNpove.cjs +586 -0
- package/dist/{Table.view-B9_6CG4G.js → Table.view-CHEV4kuX.js} +826 -711
- package/dist/{Title.view-CxaPmd5z.cjs → Title.view-B2dLqH4V.cjs} +1 -1
- package/dist/{Title.view-D-L8EJcc.js → Title.view-DGXidSXd.js} +1 -1
- package/dist/components/atoms/index.cjs.js +1 -1
- package/dist/components/atoms/index.es.js +2 -2
- package/dist/components/index.cjs.js +1 -1
- package/dist/components/index.es.js +16 -15
- package/dist/components/molecules/AlertInline/AlertInline.view.d.ts +4 -1
- package/dist/components/molecules/index.cjs.js +1 -1
- package/dist/components/molecules/index.es.js +2 -2
- package/dist/components/organisms/CollapseSection/CollapseSection.view.d.ts +2 -1
- package/dist/components/organisms/TabInfo/TabInfo.style.d.ts +5 -0
- package/dist/components/organisms/TabInfo/TabInfo.view.d.ts +19 -0
- package/dist/components/organisms/TabInfo/index.d.ts +1 -0
- package/dist/components/organisms/index.cjs.js +1 -1
- package/dist/components/organisms/index.d.ts +2 -1
- package/dist/components/organisms/index.es.js +6 -5
- package/dist/index.cjs.js +1 -1
- package/dist/index.es.js +25 -24
- package/package.json +1 -1
- package/dist/RequiredLabel.view-CVWg_TdI.cjs +0 -1
- package/dist/RequiredLabel.view-DM5zIUlt.js +0 -98
- package/dist/Table.view-BJO6XwCO.cjs +0 -541
|
@@ -1,251 +1,313 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import
|
|
1
|
+
import { l as n, C as _, i as ce, K as xe, j as we, c as ye, N as $, O as F, s as Ce, T as fe, S as ke, I as ze, P as Be, E as he } from "./Checkbox.view-D75146I3.js";
|
|
2
|
+
import je, { useState as P, useEffect as Z, useCallback as ue, useMemo as Q, useRef as U, forwardRef as ge, isValidElement as se, useLayoutEffect as Ne } from "react";
|
|
3
3
|
import { sg as o, Icon as V } from "sbwb-ds";
|
|
4
|
-
import { v as
|
|
4
|
+
import { v as G, r as q, b as We } from "./index-_v6RoRxb.js";
|
|
5
5
|
import { Controller as re } from "react-hook-form";
|
|
6
|
+
const ae = 350, yo = ({
|
|
7
|
+
title: e,
|
|
8
|
+
children: t,
|
|
9
|
+
endAdornment: i = null,
|
|
10
|
+
marginBottom: l = "16px",
|
|
11
|
+
customStyles: a = {},
|
|
12
|
+
wrapperCustomStyles: d = {},
|
|
13
|
+
hideAdornmentOnCollapse: s = !1,
|
|
14
|
+
maxHeight: g = "none"
|
|
15
|
+
// Default to 'none' to allow full expansion
|
|
16
|
+
}) => {
|
|
17
|
+
const [c, m] = P(!1), [p, h] = P(!0);
|
|
18
|
+
Z(() => {
|
|
19
|
+
if (s)
|
|
20
|
+
if (c) {
|
|
21
|
+
const u = setTimeout(
|
|
22
|
+
() => h(!1),
|
|
23
|
+
ae
|
|
24
|
+
);
|
|
25
|
+
return () => clearTimeout(u);
|
|
26
|
+
} else
|
|
27
|
+
h(!0);
|
|
28
|
+
}, [c, s]);
|
|
29
|
+
const S = s && !p ? null : i;
|
|
30
|
+
return /* @__PURE__ */ n.jsxs(
|
|
31
|
+
_,
|
|
32
|
+
{
|
|
33
|
+
width: "100%",
|
|
34
|
+
flex: "1",
|
|
35
|
+
gap: "8px",
|
|
36
|
+
customStyles: d,
|
|
37
|
+
children: [
|
|
38
|
+
/* @__PURE__ */ n.jsx(
|
|
39
|
+
ce,
|
|
40
|
+
{
|
|
41
|
+
title: e,
|
|
42
|
+
divider: !0,
|
|
43
|
+
marginBottom: l,
|
|
44
|
+
collapse: {
|
|
45
|
+
collapsed: c,
|
|
46
|
+
setCollapsed: m
|
|
47
|
+
},
|
|
48
|
+
endAdornment: S,
|
|
49
|
+
customStyles: a
|
|
50
|
+
}
|
|
51
|
+
),
|
|
52
|
+
/* @__PURE__ */ n.jsx(
|
|
53
|
+
_,
|
|
54
|
+
{
|
|
55
|
+
gap: "8px",
|
|
56
|
+
width: "100%",
|
|
57
|
+
customStyles: {
|
|
58
|
+
maxHeight: c ? "0" : g,
|
|
59
|
+
transition: `max-height ${ae}ms ease-in-out`
|
|
60
|
+
},
|
|
61
|
+
children: t
|
|
62
|
+
}
|
|
63
|
+
)
|
|
64
|
+
]
|
|
65
|
+
}
|
|
66
|
+
);
|
|
67
|
+
};
|
|
6
68
|
function ne(e, t, i) {
|
|
7
|
-
var l,
|
|
69
|
+
var l, a, d, s, g;
|
|
8
70
|
t == null && (t = 100);
|
|
9
|
-
function
|
|
10
|
-
var
|
|
11
|
-
|
|
71
|
+
function c() {
|
|
72
|
+
var p = Date.now() - s;
|
|
73
|
+
p < t && p >= 0 ? l = setTimeout(c, t - p) : (l = null, i || (g = e.apply(d, a), d = a = null));
|
|
12
74
|
}
|
|
13
|
-
var
|
|
14
|
-
|
|
15
|
-
var
|
|
16
|
-
return l || (l = setTimeout(
|
|
75
|
+
var m = function() {
|
|
76
|
+
d = this, a = arguments, s = Date.now();
|
|
77
|
+
var p = i && !l;
|
|
78
|
+
return l || (l = setTimeout(c, t)), p && (g = e.apply(d, a), d = a = null), g;
|
|
17
79
|
};
|
|
18
|
-
return
|
|
80
|
+
return m.clear = function() {
|
|
19
81
|
l && (clearTimeout(l), l = null);
|
|
20
|
-
},
|
|
21
|
-
l && (
|
|
22
|
-
},
|
|
82
|
+
}, m.flush = function() {
|
|
83
|
+
l && (g = e.apply(d, a), d = a = null, clearTimeout(l), l = null);
|
|
84
|
+
}, m;
|
|
23
85
|
}
|
|
24
86
|
ne.debounce = ne;
|
|
25
87
|
var Ie = ne;
|
|
26
|
-
const
|
|
88
|
+
const ve = /* @__PURE__ */ xe(Ie);
|
|
27
89
|
function le({
|
|
28
90
|
form: e,
|
|
29
91
|
fieldName: t,
|
|
30
92
|
triggerType: i = null,
|
|
31
93
|
debounceTime: l = 500
|
|
32
94
|
}) {
|
|
33
|
-
const
|
|
95
|
+
const a = ue(() => {
|
|
34
96
|
e.trigger(t);
|
|
35
|
-
}, [e, t]),
|
|
36
|
-
() =>
|
|
37
|
-
[
|
|
38
|
-
), s =
|
|
39
|
-
() => ["all", "onChange"].includes(i) ?
|
|
40
|
-
[
|
|
41
|
-
),
|
|
42
|
-
() => ["all", "onBlur"].includes(i) ?
|
|
97
|
+
}, [e, t]), d = Q(
|
|
98
|
+
() => ve(() => a(), l),
|
|
99
|
+
[a, l]
|
|
100
|
+
), s = Q(
|
|
101
|
+
() => ["all", "onChange"].includes(i) ? d : null,
|
|
102
|
+
[d, i]
|
|
103
|
+
), g = Q(
|
|
104
|
+
() => ["all", "onBlur"].includes(i) ? a : null,
|
|
43
105
|
[i]
|
|
44
106
|
);
|
|
45
|
-
return
|
|
107
|
+
return Q(
|
|
46
108
|
() => ({
|
|
47
109
|
onChangeTrigger: s,
|
|
48
|
-
onBlurTrigger:
|
|
110
|
+
onBlurTrigger: g
|
|
49
111
|
}),
|
|
50
|
-
[s,
|
|
112
|
+
[s, g]
|
|
51
113
|
);
|
|
52
114
|
}
|
|
53
|
-
const
|
|
115
|
+
const Co = ({
|
|
54
116
|
form: e,
|
|
55
117
|
name: t,
|
|
56
118
|
label: i,
|
|
57
119
|
options: l,
|
|
58
|
-
readonly:
|
|
59
|
-
disabled:
|
|
120
|
+
readonly: a = !1,
|
|
121
|
+
disabled: d = !1,
|
|
60
122
|
optionsMap: s,
|
|
61
|
-
width:
|
|
62
|
-
flex:
|
|
63
|
-
placeholder:
|
|
64
|
-
onSelect:
|
|
65
|
-
parser:
|
|
66
|
-
filter:
|
|
67
|
-
tooltipProps:
|
|
68
|
-
infoProps:
|
|
69
|
-
maxHeigthMenu:
|
|
70
|
-
isRequired:
|
|
71
|
-
onRemoveSelected:
|
|
72
|
-
triggerFormField:
|
|
73
|
-
displayText:
|
|
74
|
-
...
|
|
123
|
+
width: g = "100%",
|
|
124
|
+
flex: c,
|
|
125
|
+
placeholder: m,
|
|
126
|
+
onSelect: p,
|
|
127
|
+
parser: h,
|
|
128
|
+
filter: S,
|
|
129
|
+
tooltipProps: u = {},
|
|
130
|
+
infoProps: C = {},
|
|
131
|
+
maxHeigthMenu: z,
|
|
132
|
+
isRequired: j = !1,
|
|
133
|
+
onRemoveSelected: L,
|
|
134
|
+
triggerFormField: b = null,
|
|
135
|
+
displayText: v,
|
|
136
|
+
...M
|
|
75
137
|
}) => {
|
|
76
|
-
const { onChangeTrigger:
|
|
138
|
+
const { onChangeTrigger: k } = le({
|
|
77
139
|
form: e,
|
|
78
140
|
fieldName: t,
|
|
79
|
-
triggerType:
|
|
141
|
+
triggerType: b,
|
|
80
142
|
debounceTime: 0
|
|
81
|
-
}),
|
|
143
|
+
}), J = {
|
|
82
144
|
position: "top",
|
|
83
|
-
...
|
|
84
|
-
},
|
|
85
|
-
...
|
|
145
|
+
...u
|
|
146
|
+
}, A = {
|
|
147
|
+
...C,
|
|
86
148
|
tooltipProps: {
|
|
87
149
|
position: "top",
|
|
88
150
|
maxWidth: "300px",
|
|
89
|
-
...
|
|
151
|
+
...C == null ? void 0 : C.tooltipProps
|
|
90
152
|
}
|
|
91
|
-
}, T = (
|
|
92
|
-
let
|
|
93
|
-
|
|
94
|
-
},
|
|
95
|
-
return /* @__PURE__ */ n.jsx(_, { width:
|
|
153
|
+
}, T = (w, R) => {
|
|
154
|
+
let H = w;
|
|
155
|
+
h && (H = h == null ? void 0 : h(w)), R(H), p == null || p(H), k == null || k();
|
|
156
|
+
}, x = Q(() => G(s) ? s : Object.fromEntries(l.map((w) => [w.value, w])), [l, s]);
|
|
157
|
+
return /* @__PURE__ */ n.jsx(_, { width: g, flex: c, children: /* @__PURE__ */ n.jsx(
|
|
96
158
|
re,
|
|
97
159
|
{
|
|
98
160
|
name: t,
|
|
99
161
|
control: e.control,
|
|
100
162
|
render: ({
|
|
101
|
-
field: { onChange:
|
|
102
|
-
fieldState: { error:
|
|
163
|
+
field: { onChange: w, value: R },
|
|
164
|
+
fieldState: { error: H = null }
|
|
103
165
|
}) => {
|
|
104
|
-
let
|
|
166
|
+
let B = x[R];
|
|
105
167
|
return /* @__PURE__ */ n.jsx(
|
|
106
|
-
|
|
168
|
+
me,
|
|
107
169
|
{
|
|
108
170
|
label: i,
|
|
109
171
|
width: "100%",
|
|
110
172
|
size: "Small",
|
|
111
|
-
disabled:
|
|
112
|
-
readonly:
|
|
113
|
-
filter:
|
|
114
|
-
errorMessage:
|
|
115
|
-
placeholder:
|
|
116
|
-
value:
|
|
117
|
-
handleOption: (
|
|
118
|
-
T(
|
|
173
|
+
disabled: d,
|
|
174
|
+
readonly: a,
|
|
175
|
+
filter: S,
|
|
176
|
+
errorMessage: H == null ? void 0 : H.message,
|
|
177
|
+
placeholder: m,
|
|
178
|
+
value: B,
|
|
179
|
+
handleOption: (f) => {
|
|
180
|
+
T(f.value, w);
|
|
119
181
|
},
|
|
120
|
-
tooltipProps:
|
|
182
|
+
tooltipProps: J,
|
|
121
183
|
options: l,
|
|
122
|
-
maxHeigthMenu:
|
|
123
|
-
infoProps:
|
|
124
|
-
maxHeightMenu:
|
|
125
|
-
isRequired:
|
|
126
|
-
onRemoveSelected:
|
|
127
|
-
displayText:
|
|
128
|
-
...
|
|
184
|
+
maxHeigthMenu: z,
|
|
185
|
+
infoProps: A,
|
|
186
|
+
maxHeightMenu: z,
|
|
187
|
+
isRequired: j,
|
|
188
|
+
onRemoveSelected: L,
|
|
189
|
+
displayText: v,
|
|
190
|
+
...M
|
|
129
191
|
}
|
|
130
192
|
);
|
|
131
193
|
}
|
|
132
194
|
}
|
|
133
195
|
) });
|
|
134
|
-
},
|
|
196
|
+
}, Re = ({
|
|
135
197
|
form: e,
|
|
136
198
|
name: t,
|
|
137
199
|
label: i,
|
|
138
200
|
readonly: l = !1,
|
|
139
|
-
disabled:
|
|
140
|
-
width:
|
|
201
|
+
disabled: a = !1,
|
|
202
|
+
width: d = "100%",
|
|
141
203
|
height: s = "100%",
|
|
142
|
-
flex:
|
|
143
|
-
placeholder:
|
|
144
|
-
charactersCounter:
|
|
145
|
-
maxlength:
|
|
146
|
-
resize:
|
|
147
|
-
triggerFormField:
|
|
148
|
-
minHeight:
|
|
149
|
-
maxHeight:
|
|
150
|
-
...
|
|
204
|
+
flex: g,
|
|
205
|
+
placeholder: c,
|
|
206
|
+
charactersCounter: m = !0,
|
|
207
|
+
maxlength: p = 1e3,
|
|
208
|
+
resize: h = !0,
|
|
209
|
+
triggerFormField: S = null,
|
|
210
|
+
minHeight: u,
|
|
211
|
+
maxHeight: C,
|
|
212
|
+
...z
|
|
151
213
|
}) => {
|
|
152
|
-
const { onChangeTrigger:
|
|
214
|
+
const { onChangeTrigger: j } = le({
|
|
153
215
|
form: e,
|
|
154
216
|
fieldName: t,
|
|
155
|
-
triggerType:
|
|
156
|
-
}),
|
|
157
|
-
|
|
217
|
+
triggerType: S
|
|
218
|
+
}), L = (b, v) => {
|
|
219
|
+
v(b), j == null || j();
|
|
158
220
|
};
|
|
159
|
-
return /* @__PURE__ */ n.jsx(_, { width:
|
|
221
|
+
return /* @__PURE__ */ n.jsx(_, { width: d, flex: g, height: s, children: /* @__PURE__ */ n.jsx(
|
|
160
222
|
re,
|
|
161
223
|
{
|
|
162
224
|
name: t,
|
|
163
225
|
control: e.control,
|
|
164
226
|
render: ({
|
|
165
|
-
field: { onChange:
|
|
166
|
-
fieldState: { error:
|
|
227
|
+
field: { onChange: b, value: v },
|
|
228
|
+
fieldState: { error: M = null }
|
|
167
229
|
}) => /* @__PURE__ */ n.jsx(
|
|
168
|
-
|
|
230
|
+
we,
|
|
169
231
|
{
|
|
170
232
|
label: i,
|
|
171
|
-
value:
|
|
233
|
+
value: v || "",
|
|
172
234
|
width: "100%",
|
|
173
|
-
disabled:
|
|
235
|
+
disabled: a,
|
|
174
236
|
readonly: l,
|
|
175
237
|
height: s,
|
|
176
|
-
minHeight:
|
|
177
|
-
maxHeight:
|
|
178
|
-
errorMessage:
|
|
179
|
-
placeholder:
|
|
180
|
-
onChange: (
|
|
181
|
-
charactersCounter:
|
|
182
|
-
maxlength:
|
|
238
|
+
minHeight: u,
|
|
239
|
+
maxHeight: C,
|
|
240
|
+
errorMessage: M == null ? void 0 : M.message,
|
|
241
|
+
placeholder: c,
|
|
242
|
+
onChange: (k) => L(k.target.value, b),
|
|
243
|
+
charactersCounter: m,
|
|
244
|
+
maxlength: p,
|
|
183
245
|
size: "Small",
|
|
184
|
-
resize:
|
|
185
|
-
...
|
|
246
|
+
resize: h,
|
|
247
|
+
...z
|
|
186
248
|
}
|
|
187
249
|
)
|
|
188
250
|
}
|
|
189
251
|
) });
|
|
190
252
|
};
|
|
191
|
-
|
|
192
|
-
const
|
|
253
|
+
Re.displayName = "TextareaField";
|
|
254
|
+
const ko = ({
|
|
193
255
|
form: e,
|
|
194
256
|
name: t,
|
|
195
257
|
id: i = t,
|
|
196
258
|
label: l,
|
|
197
|
-
readonly:
|
|
198
|
-
disabled:
|
|
259
|
+
readonly: a = !1,
|
|
260
|
+
disabled: d = !1,
|
|
199
261
|
afterCheck: s,
|
|
200
|
-
width:
|
|
201
|
-
formatter:
|
|
202
|
-
parser:
|
|
203
|
-
flex:
|
|
204
|
-
size:
|
|
205
|
-
triggerFormField:
|
|
206
|
-
...
|
|
262
|
+
width: g = "100%",
|
|
263
|
+
formatter: c,
|
|
264
|
+
parser: m,
|
|
265
|
+
flex: p,
|
|
266
|
+
size: h = "Medium",
|
|
267
|
+
triggerFormField: S = null,
|
|
268
|
+
...u
|
|
207
269
|
}) => {
|
|
208
|
-
const { onChangeTrigger:
|
|
270
|
+
const { onChangeTrigger: C } = le({
|
|
209
271
|
form: e,
|
|
210
272
|
fieldName: t,
|
|
211
|
-
triggerType:
|
|
273
|
+
triggerType: S,
|
|
212
274
|
debounceTime: 0
|
|
213
|
-
}),
|
|
214
|
-
|
|
275
|
+
}), z = (j, L) => {
|
|
276
|
+
L(j), s == null || s(j), C == null || C();
|
|
215
277
|
};
|
|
216
|
-
return /* @__PURE__ */ n.jsx(_, { width:
|
|
278
|
+
return /* @__PURE__ */ n.jsx(_, { width: g, flex: p, children: /* @__PURE__ */ n.jsx(
|
|
217
279
|
re,
|
|
218
280
|
{
|
|
219
281
|
name: t,
|
|
220
282
|
control: e.control,
|
|
221
283
|
render: ({
|
|
222
|
-
field: { onChange:
|
|
223
|
-
fieldState: { error:
|
|
284
|
+
field: { onChange: j, value: L },
|
|
285
|
+
fieldState: { error: b = null }
|
|
224
286
|
}) => {
|
|
225
|
-
const
|
|
226
|
-
return
|
|
227
|
-
|
|
287
|
+
const v = b == null ? void 0 : b.message;
|
|
288
|
+
return v && console.log("Error on checkbox!", v), /* @__PURE__ */ n.jsx(
|
|
289
|
+
ye,
|
|
228
290
|
{
|
|
229
291
|
id: `form-checkbox-${i}`,
|
|
230
|
-
checked: (
|
|
292
|
+
checked: (c == null ? void 0 : c(L)) ?? L,
|
|
231
293
|
name: t,
|
|
232
294
|
label: l,
|
|
233
|
-
disabled:
|
|
234
|
-
onChange: (
|
|
235
|
-
|
|
236
|
-
(
|
|
237
|
-
|
|
295
|
+
disabled: d || a,
|
|
296
|
+
onChange: (M) => {
|
|
297
|
+
z(
|
|
298
|
+
(m == null ? void 0 : m(M.target.checked, L)) ?? M.target.checked,
|
|
299
|
+
j
|
|
238
300
|
);
|
|
239
301
|
},
|
|
240
|
-
size:
|
|
241
|
-
...
|
|
302
|
+
size: h,
|
|
303
|
+
...u
|
|
242
304
|
}
|
|
243
305
|
);
|
|
244
306
|
}
|
|
245
307
|
}
|
|
246
308
|
) });
|
|
247
|
-
},
|
|
248
|
-
${
|
|
309
|
+
}, Me = $.ul`
|
|
310
|
+
${q}
|
|
249
311
|
position: fixed;
|
|
250
312
|
margin-top: ${({ marginTop: e }) => e};
|
|
251
313
|
padding: ${o.spacings.spacingStack.spacingStackXs} 4px
|
|
@@ -274,16 +336,16 @@ const $o = ({
|
|
|
274
336
|
background: ${o.colors.neutralColors.colorNeutralClean};
|
|
275
337
|
border-radius: ${o.borders.borderRadius.borderRadiusPill};
|
|
276
338
|
}
|
|
277
|
-
`,
|
|
278
|
-
${
|
|
339
|
+
`, Fe = $.li`
|
|
340
|
+
${q}
|
|
279
341
|
font-family: ${o.fonts.fontFamily.fontFamilyPrimary};
|
|
280
342
|
font-size: ${({ size: e }) => e === "Small" ? o.fonts.fontSize.fontSizeBodyMd : o.fonts.fontSize.fontSizeBodyLg};
|
|
281
343
|
padding: ${o.spacings.spacingInline.spacingInlineXs};
|
|
282
344
|
margin: 0 ${o.spacings.spacingInline.spacingInlineXs};
|
|
283
345
|
cursor: default;
|
|
284
346
|
color: ${o.colors.neutralColors.colorNeutralDark};
|
|
285
|
-
`,
|
|
286
|
-
${
|
|
347
|
+
`, He = $.li`
|
|
348
|
+
${q}
|
|
287
349
|
display: flex;
|
|
288
350
|
flex: 2;
|
|
289
351
|
flex-direction: ${({ menuOptionFlexDirection: e }) => e};
|
|
@@ -297,7 +359,7 @@ const $o = ({
|
|
|
297
359
|
min-width: 0;
|
|
298
360
|
& > p {
|
|
299
361
|
display: -webkit-box;
|
|
300
|
-
${({ truncateText: e }) => e &&
|
|
362
|
+
${({ truncateText: e }) => e && F`
|
|
301
363
|
-webkit-line-clamp: 2;
|
|
302
364
|
-webkit-box-orient: vertical;
|
|
303
365
|
overflow: hidden;
|
|
@@ -305,7 +367,7 @@ const $o = ({
|
|
|
305
367
|
text-overflow: ellipsis;
|
|
306
368
|
}
|
|
307
369
|
|
|
308
|
-
${({ hasDescription: e }) => e &&
|
|
370
|
+
${({ hasDescription: e }) => e && F`
|
|
309
371
|
line-height: ${o.fonts.lineHeight.lineHeightMd(
|
|
310
372
|
o.fonts.fontSize.fontSizeBodyMd
|
|
311
373
|
)};
|
|
@@ -316,8 +378,8 @@ const $o = ({
|
|
|
316
378
|
color: ${({ disabled: t }) => t ? o.colors.neutralColors.colorNeutralCleanest : o.colors.neutralColors.colorNeutralCloudy};
|
|
317
379
|
}
|
|
318
380
|
`}
|
|
319
|
-
`, Ee =
|
|
320
|
-
${
|
|
381
|
+
`, Ee = $.li`
|
|
382
|
+
${q}
|
|
321
383
|
font-size: ${({ size: e }) => e === "Small" ? o.fonts.fontSize.fontSizeBodySm : o.fonts.fontSize.fontSizeBodyMd};
|
|
322
384
|
font-family: ${o.fonts.fontFamily.fontFamilyPrimary};
|
|
323
385
|
font-weight: ${o.fonts.fontWeight.fontWeightSemiBold};
|
|
@@ -327,20 +389,20 @@ const $o = ({
|
|
|
327
389
|
margin: ${({ size: e }) => e === "Small" ? `${o.spacings.spacingStack.spacingStackSm} ${o.spacings.spacingInline.spacingInlineXs}
|
|
328
390
|
${o.spacings.spacingStack.spacingStackNano}` : `${o.spacings.spacingStack.spacingStackSm} ${o.spacings.spacingInline.spacingInlineXs}
|
|
329
391
|
${o.spacings.spacingStack.spacingStackXs}`};
|
|
330
|
-
`,
|
|
331
|
-
${
|
|
392
|
+
`, Le = $.span`
|
|
393
|
+
${q}
|
|
332
394
|
font-family: ${o.fonts.fontFamily.fontFamilyPrimary};
|
|
333
395
|
font-size: ${({ size: e }) => e === "Small" ? o.fonts.fontSize.fontSizeBodyMd : o.fonts.fontSize.fontSizeBodyLg};
|
|
334
396
|
font-weight: ${o.fonts.fontWeight.fontWeightSemiBold};
|
|
335
397
|
line-height: ${({ size: e }) => e === "Small" ? o.fonts.lineHeight.lineHeightSm(o.fonts.fontSize.fontSizeBodyMd) : o.fonts.lineHeight.lineHeightMd(o.fonts.fontSize.fontSizeBodyLg)};
|
|
336
|
-
`,
|
|
337
|
-
${
|
|
398
|
+
`, Ae = $.div`
|
|
399
|
+
${q}
|
|
338
400
|
display: flex;
|
|
339
401
|
font-family: ${o.fonts.fontFamily.fontFamilyPrimary};
|
|
340
402
|
|
|
341
403
|
& > p {
|
|
342
404
|
width: 100%;
|
|
343
|
-
${({ truncateText: e }) => e &&
|
|
405
|
+
${({ truncateText: e }) => e && F`
|
|
344
406
|
display: -webkit-box;
|
|
345
407
|
-webkit-line-clamp: 2;
|
|
346
408
|
-webkit-box-orient: vertical;
|
|
@@ -349,8 +411,8 @@ const $o = ({
|
|
|
349
411
|
text-overflow: ellipsis;
|
|
350
412
|
text-align: start;
|
|
351
413
|
}
|
|
352
|
-
`, Te =
|
|
353
|
-
${
|
|
414
|
+
`, Te = $.div`
|
|
415
|
+
${q}
|
|
354
416
|
display: flex;
|
|
355
417
|
flex-direction: row;
|
|
356
418
|
align-items: center;
|
|
@@ -360,161 +422,161 @@ const $o = ({
|
|
|
360
422
|
background-color: ${({ highlightedIndex: e, disabled: t }) => e ? t ? o.colors.backgroundColors.colorBackgroundSnow : o.colors.neutralColors.colorNeutralLight : o.colors.backgroundColors.colorBackgroundSnow};
|
|
361
423
|
border-radius: ${o.borders.borderRadius.borderRadiusSm};
|
|
362
424
|
min-height: ${({ size: e }) => e === "Small" ? "28px" : "40px"};
|
|
363
|
-
`, Pe =
|
|
364
|
-
${
|
|
425
|
+
`, Pe = $.div`
|
|
426
|
+
${q}
|
|
365
427
|
padding: ${({ iconPosition: e }) => e === "left" ? `0 ${o.spacings.spacingInline.spacingInlineNano} 0 0` : `0 0 0 ${o.spacings.spacingInline.spacingInlineNano}`};
|
|
366
428
|
margin: 0;
|
|
367
429
|
display: flex;
|
|
368
430
|
align-self: center;
|
|
369
|
-
`,
|
|
370
|
-
const [
|
|
371
|
-
if (!e.current || !
|
|
372
|
-
const
|
|
373
|
-
let
|
|
374
|
-
|
|
375
|
-
let
|
|
376
|
-
const
|
|
377
|
-
|
|
378
|
-
const
|
|
379
|
-
Object.assign(
|
|
431
|
+
`, Oe = (e, t, i = 0, l = 0, a = "left") => {
|
|
432
|
+
const [d, s] = P(0), [g, c] = P(), m = U(null), p = ue(() => {
|
|
433
|
+
if (!e.current || !m.current) return;
|
|
434
|
+
const h = e.current.getBoundingClientRect(), S = m.current.getBoundingClientRect(), u = window.innerHeight, C = window.innerWidth, z = h.top, j = u - h.bottom, L = j < S.height + l && z > j;
|
|
435
|
+
let b;
|
|
436
|
+
L ? (b = h.top - S.height - i, m.current.style.maxHeight = `${z - i}px`) : (b = h.bottom + l, m.current.style.maxHeight = `${j - l}px`);
|
|
437
|
+
let v = h.left;
|
|
438
|
+
const M = v + S.width - C;
|
|
439
|
+
M > 0 && (v -= M), v < 0 && (v = 0);
|
|
440
|
+
const k = C - h.right;
|
|
441
|
+
Object.assign(m.current.style, {
|
|
380
442
|
position: "fixed",
|
|
381
|
-
top: `${
|
|
382
|
-
...
|
|
383
|
-
width: `${Math.max(
|
|
443
|
+
top: `${b}px`,
|
|
444
|
+
...a === "left" ? { left: `${v}px` } : { right: `${k}px` },
|
|
445
|
+
width: `${Math.max(h.width, S.width)}px`,
|
|
384
446
|
overflowY: "auto"
|
|
385
447
|
});
|
|
386
|
-
}, [i, l,
|
|
448
|
+
}, [i, l, a]);
|
|
387
449
|
return Z(() => {
|
|
388
|
-
var
|
|
389
|
-
s(0),
|
|
390
|
-
const
|
|
391
|
-
return window.addEventListener("scroll",
|
|
392
|
-
window.removeEventListener("scroll",
|
|
450
|
+
var S;
|
|
451
|
+
s(0), c((S = e.current) == null ? void 0 : S.clientWidth), p();
|
|
452
|
+
const h = () => p();
|
|
453
|
+
return window.addEventListener("scroll", h, !0), window.addEventListener("resize", h), () => {
|
|
454
|
+
window.removeEventListener("scroll", h, !0), window.removeEventListener("resize", h);
|
|
393
455
|
};
|
|
394
|
-
}, [e,
|
|
395
|
-
highlightedIndex:
|
|
456
|
+
}, [e, p]), {
|
|
457
|
+
highlightedIndex: d,
|
|
396
458
|
setHighlightedIndex: s,
|
|
397
|
-
isOptionSelected: (
|
|
398
|
-
optionsRef:
|
|
399
|
-
parentWidth:
|
|
459
|
+
isOptionSelected: (h) => h.label === (t == null ? void 0 : t.label),
|
|
460
|
+
optionsRef: m,
|
|
461
|
+
parentWidth: g
|
|
400
462
|
};
|
|
401
|
-
}, ie =
|
|
463
|
+
}, ie = ge(
|
|
402
464
|
({
|
|
403
465
|
selectContainerRef: e,
|
|
404
466
|
optionsSelect: t,
|
|
405
467
|
size: i,
|
|
406
468
|
selectOption: l,
|
|
407
|
-
value:
|
|
408
|
-
inputValue:
|
|
469
|
+
value: a,
|
|
470
|
+
inputValue: d,
|
|
409
471
|
widthMenu: s,
|
|
410
|
-
maxHeightMenu:
|
|
411
|
-
menuIsOpen:
|
|
412
|
-
onEnter:
|
|
413
|
-
marginTop:
|
|
414
|
-
iconName:
|
|
415
|
-
iconColor:
|
|
416
|
-
iconPosition:
|
|
417
|
-
topOffset:
|
|
418
|
-
bottomOffset:
|
|
419
|
-
truncateText:
|
|
420
|
-
menuJustifyContent:
|
|
421
|
-
tableActionButton:
|
|
422
|
-
menuLateralPadding:
|
|
423
|
-
menuOptionFlexDirection:
|
|
424
|
-
confirmSelection:
|
|
425
|
-
menuAlign:
|
|
426
|
-
},
|
|
427
|
-
|
|
472
|
+
maxHeightMenu: g = "180px",
|
|
473
|
+
menuIsOpen: c,
|
|
474
|
+
onEnter: m,
|
|
475
|
+
marginTop: p = "4px",
|
|
476
|
+
iconName: h,
|
|
477
|
+
iconColor: S,
|
|
478
|
+
iconPosition: u,
|
|
479
|
+
topOffset: C = 0,
|
|
480
|
+
bottomOffset: z = 0,
|
|
481
|
+
truncateText: j = !0,
|
|
482
|
+
menuJustifyContent: L = "flex-start",
|
|
483
|
+
tableActionButton: b,
|
|
484
|
+
menuLateralPadding: v = "8px",
|
|
485
|
+
menuOptionFlexDirection: M = "column",
|
|
486
|
+
confirmSelection: k,
|
|
487
|
+
menuAlign: J = "left"
|
|
488
|
+
}, A) => {
|
|
489
|
+
G(h) && (h += "Ant");
|
|
428
490
|
const {
|
|
429
491
|
highlightedIndex: T,
|
|
430
|
-
setHighlightedIndex:
|
|
431
|
-
isOptionSelected:
|
|
432
|
-
optionsRef:
|
|
433
|
-
parentWidth:
|
|
434
|
-
} =
|
|
492
|
+
setHighlightedIndex: x,
|
|
493
|
+
isOptionSelected: w,
|
|
494
|
+
optionsRef: R,
|
|
495
|
+
parentWidth: H
|
|
496
|
+
} = Oe(
|
|
435
497
|
e,
|
|
436
|
-
|
|
437
|
-
|
|
438
|
-
|
|
439
|
-
|
|
498
|
+
a,
|
|
499
|
+
C,
|
|
500
|
+
z,
|
|
501
|
+
J
|
|
440
502
|
);
|
|
441
503
|
Z(() => {
|
|
442
|
-
const r = (
|
|
443
|
-
if (
|
|
444
|
-
if (
|
|
445
|
-
|
|
446
|
-
(
|
|
504
|
+
const r = (y) => {
|
|
505
|
+
if (c) {
|
|
506
|
+
if (y.key === "ArrowDown")
|
|
507
|
+
y.preventDefault(), x(
|
|
508
|
+
(N) => N < t.length - 1 ? N + 1 : N
|
|
447
509
|
);
|
|
448
|
-
else if (
|
|
449
|
-
|
|
450
|
-
(
|
|
510
|
+
else if (y.key === "ArrowUp")
|
|
511
|
+
y.preventDefault(), x(
|
|
512
|
+
(N) => N > 0 ? N - 1 : 0
|
|
451
513
|
);
|
|
452
|
-
else if (
|
|
453
|
-
|
|
454
|
-
const
|
|
455
|
-
l(
|
|
514
|
+
else if (y.key === "Enter" && t[T]) {
|
|
515
|
+
y.preventDefault();
|
|
516
|
+
const N = t[T];
|
|
517
|
+
l(N), m && m(N);
|
|
456
518
|
}
|
|
457
519
|
}
|
|
458
520
|
};
|
|
459
521
|
return window.addEventListener("keydown", r), () => window.removeEventListener("keydown", r);
|
|
460
522
|
}, [
|
|
461
|
-
|
|
523
|
+
c,
|
|
462
524
|
t,
|
|
463
525
|
T,
|
|
464
|
-
|
|
526
|
+
m,
|
|
465
527
|
l,
|
|
466
|
-
|
|
528
|
+
k
|
|
467
529
|
]);
|
|
468
|
-
const
|
|
469
|
-
var
|
|
470
|
-
if (
|
|
471
|
-
const
|
|
530
|
+
const B = (r) => typeof r == "string" ? r : je.isValidElement(r) && typeof r.props.children == "string" ? r.props.children : String(r), f = (r, y) => {
|
|
531
|
+
var E, I;
|
|
532
|
+
if (u !== y) return null;
|
|
533
|
+
const N = G((E = r.tooltipProps) == null ? void 0 : E.label), W = r.iconName || h || "InfoFill0Sm", D = /* @__PURE__ */ n.jsx(
|
|
472
534
|
Pe,
|
|
473
535
|
{
|
|
474
|
-
iconPosition: (
|
|
536
|
+
iconPosition: (I = r.tooltipProps) == null ? void 0 : I.position,
|
|
475
537
|
id: `iconContainer-${r.value}`,
|
|
476
538
|
children: /* @__PURE__ */ n.jsx(
|
|
477
539
|
V,
|
|
478
540
|
{
|
|
479
|
-
iconName:
|
|
480
|
-
color: r.disabled ? o.colors.neutralColors.colorNeutralCleanest :
|
|
541
|
+
iconName: W,
|
|
542
|
+
color: r.disabled ? o.colors.neutralColors.colorNeutralCleanest : w(r) ? o.colors.brandColors.colorBrandSoft : S ?? o.colors.neutralColors.colorNeutralDark
|
|
481
543
|
}
|
|
482
544
|
)
|
|
483
545
|
}
|
|
484
546
|
);
|
|
485
|
-
return
|
|
547
|
+
return N ? /* @__PURE__ */ n.jsx(fe, { ...r == null ? void 0 : r.tooltipProps, isActive: !0, children: D }) : D;
|
|
486
548
|
};
|
|
487
549
|
return /* @__PURE__ */ n.jsx(
|
|
488
|
-
|
|
550
|
+
Me,
|
|
489
551
|
{
|
|
490
|
-
marginTop:
|
|
491
|
-
width: s ?? `${
|
|
492
|
-
maxHeight:
|
|
552
|
+
marginTop: p,
|
|
553
|
+
width: s ?? `${H}px`,
|
|
554
|
+
maxHeight: g,
|
|
493
555
|
height: "fit-content",
|
|
494
556
|
ref: (r) => {
|
|
495
|
-
|
|
557
|
+
R.current = r, typeof A == "function" ? A(r) : A && (A.current = r);
|
|
496
558
|
},
|
|
497
559
|
"data-testid": "MenuSelect",
|
|
498
560
|
id: "MenuSelect",
|
|
499
|
-
children: t.length === 0 ? /* @__PURE__ */ n.jsx(
|
|
500
|
-
var
|
|
501
|
-
const
|
|
561
|
+
children: t.length === 0 ? /* @__PURE__ */ n.jsx(Fe, { size: i, children: "Sem opções" }) : t.map((r, y) => {
|
|
562
|
+
var D, E;
|
|
563
|
+
const N = typeof r.render == "function" ? r.render() : null, W = B(r.label);
|
|
502
564
|
if (r.isSection)
|
|
503
|
-
return /* @__PURE__ */ n.jsx(Ee, { size: i, children:
|
|
565
|
+
return /* @__PURE__ */ n.jsx(Ee, { size: i, children: W }, W);
|
|
504
566
|
{
|
|
505
|
-
const
|
|
567
|
+
const I = W.toLowerCase().indexOf((d == null ? void 0 : d.toLowerCase()) || "");
|
|
506
568
|
return /* @__PURE__ */ n.jsxs(
|
|
507
569
|
Te,
|
|
508
570
|
{
|
|
509
|
-
isOptionSelected:
|
|
510
|
-
highlightedIndex:
|
|
571
|
+
isOptionSelected: w(r),
|
|
572
|
+
highlightedIndex: y === T,
|
|
511
573
|
onClick: (X) => {
|
|
512
|
-
X.stopPropagation(), r.disabled || (
|
|
574
|
+
X.stopPropagation(), r.disabled || (k ? Ce({
|
|
513
575
|
id: "select-option",
|
|
514
|
-
title:
|
|
515
|
-
description:
|
|
516
|
-
icon:
|
|
517
|
-
iconColor:
|
|
576
|
+
title: k.title,
|
|
577
|
+
description: k.description,
|
|
578
|
+
icon: k.icon,
|
|
579
|
+
iconColor: k.iconColor,
|
|
518
580
|
leftButtonProps: {
|
|
519
581
|
name: "Cancelar",
|
|
520
582
|
variant: "tertiary",
|
|
@@ -528,54 +590,54 @@ const $o = ({
|
|
|
528
590
|
}
|
|
529
591
|
}) : l(r));
|
|
530
592
|
},
|
|
531
|
-
onMouseEnter: () =>
|
|
593
|
+
onMouseEnter: () => x(y),
|
|
532
594
|
disabled: r.disabled,
|
|
533
595
|
size: i,
|
|
534
|
-
menuLateralPadding:
|
|
596
|
+
menuLateralPadding: v,
|
|
535
597
|
children: [
|
|
536
|
-
|
|
598
|
+
f(r, "left"),
|
|
537
599
|
/* @__PURE__ */ n.jsxs(
|
|
538
|
-
|
|
600
|
+
He,
|
|
539
601
|
{
|
|
540
|
-
menuOptionFlexDirection:
|
|
541
|
-
menuJustifyContent:
|
|
542
|
-
iconName:
|
|
543
|
-
isOptionSelected:
|
|
544
|
-
highlightedIndex:
|
|
602
|
+
menuOptionFlexDirection: M,
|
|
603
|
+
menuJustifyContent: L,
|
|
604
|
+
iconName: h,
|
|
605
|
+
isOptionSelected: w(r),
|
|
606
|
+
highlightedIndex: y === T,
|
|
545
607
|
"data-testid": r.value,
|
|
546
608
|
size: i,
|
|
547
609
|
hasDescription: !!r.description,
|
|
548
610
|
optionValue: r.value,
|
|
549
611
|
disabled: r.disabled,
|
|
550
|
-
truncateText:
|
|
551
|
-
tableActionButton:
|
|
612
|
+
truncateText: j,
|
|
613
|
+
tableActionButton: b,
|
|
552
614
|
children: [
|
|
553
615
|
/* @__PURE__ */ n.jsxs(
|
|
554
|
-
|
|
616
|
+
Ae,
|
|
555
617
|
{
|
|
556
|
-
truncateText: !se(r.label) &&
|
|
618
|
+
truncateText: !se(r.label) && j,
|
|
557
619
|
children: [
|
|
558
|
-
|
|
620
|
+
N,
|
|
559
621
|
se(r.label) ? /* @__PURE__ */ n.jsx(
|
|
560
622
|
"p",
|
|
561
623
|
{
|
|
562
|
-
title: ((
|
|
624
|
+
title: ((D = r == null ? void 0 : r.tooltipProps) == null ? void 0 : D.label) ?? B(r.label),
|
|
563
625
|
children: r.label
|
|
564
626
|
}
|
|
565
627
|
) : /* @__PURE__ */ n.jsx(
|
|
566
628
|
"p",
|
|
567
629
|
{
|
|
568
|
-
title: ((
|
|
569
|
-
children:
|
|
570
|
-
|
|
571
|
-
/* @__PURE__ */ n.jsx(
|
|
572
|
-
|
|
573
|
-
|
|
630
|
+
title: ((E = r == null ? void 0 : r.tooltipProps) == null ? void 0 : E.label) ?? W,
|
|
631
|
+
children: d && I >= 0 ? /* @__PURE__ */ n.jsxs(n.Fragment, { children: [
|
|
632
|
+
W.substring(0, I),
|
|
633
|
+
/* @__PURE__ */ n.jsx(Le, { size: i, children: W.substring(
|
|
634
|
+
I,
|
|
635
|
+
I + ((d == null ? void 0 : d.length) || 0)
|
|
574
636
|
) }),
|
|
575
|
-
|
|
576
|
-
|
|
637
|
+
W.substring(
|
|
638
|
+
I + ((d == null ? void 0 : d.length) || 0)
|
|
577
639
|
)
|
|
578
|
-
] }) :
|
|
640
|
+
] }) : W
|
|
579
641
|
}
|
|
580
642
|
)
|
|
581
643
|
]
|
|
@@ -585,7 +647,7 @@ const $o = ({
|
|
|
585
647
|
]
|
|
586
648
|
}
|
|
587
649
|
),
|
|
588
|
-
|
|
650
|
+
f(r, "right")
|
|
589
651
|
]
|
|
590
652
|
},
|
|
591
653
|
String(r.value)
|
|
@@ -597,30 +659,30 @@ const $o = ({
|
|
|
597
659
|
}
|
|
598
660
|
);
|
|
599
661
|
ie.displayName = "MenuSelect";
|
|
600
|
-
const
|
|
662
|
+
const De = ({
|
|
601
663
|
title: e,
|
|
602
664
|
iconName: t,
|
|
603
665
|
onClickIcon: i,
|
|
604
666
|
width: l,
|
|
605
|
-
height:
|
|
606
|
-
flex:
|
|
667
|
+
height: a,
|
|
668
|
+
flex: d,
|
|
607
669
|
children: s,
|
|
608
|
-
wrapperCustomStyles:
|
|
609
|
-
contentCustomStyles:
|
|
610
|
-
titleCustomStyles:
|
|
670
|
+
wrapperCustomStyles: g = {},
|
|
671
|
+
contentCustomStyles: c = {},
|
|
672
|
+
titleCustomStyles: m = {}
|
|
611
673
|
}) => /* @__PURE__ */ n.jsxs(
|
|
612
674
|
_,
|
|
613
675
|
{
|
|
614
676
|
width: l,
|
|
615
|
-
height:
|
|
616
|
-
flex:
|
|
677
|
+
height: a,
|
|
678
|
+
flex: d,
|
|
617
679
|
direction: "vertical",
|
|
618
680
|
padding: o.spacings.spacingStack.spacingStackSm,
|
|
619
681
|
customStyles: {
|
|
620
682
|
backgroundColor: o.colors.backgroundColors.colorBackgroundSnow,
|
|
621
683
|
border: `1px solid ${o.colors.neutralColors.colorNeutralSoft}`,
|
|
622
684
|
borderRadius: "8px",
|
|
623
|
-
...
|
|
685
|
+
...g
|
|
624
686
|
},
|
|
625
687
|
children: [
|
|
626
688
|
/* @__PURE__ */ n.jsxs(
|
|
@@ -628,18 +690,18 @@ const Oe = ({
|
|
|
628
690
|
{
|
|
629
691
|
width: "100%",
|
|
630
692
|
direction: "horizontal",
|
|
631
|
-
customStyles:
|
|
693
|
+
customStyles: c,
|
|
632
694
|
children: [
|
|
633
|
-
e ? /* @__PURE__ */ n.jsx(_, { width: "fit-content", customStyles:
|
|
695
|
+
e ? /* @__PURE__ */ n.jsx(_, { width: "fit-content", customStyles: m, children: /* @__PURE__ */ n.jsx(ce, { title: e, divider: !1 }) }) : null,
|
|
634
696
|
t ? /* @__PURE__ */ n.jsxs(n.Fragment, { children: [
|
|
635
|
-
/* @__PURE__ */ n.jsx(
|
|
697
|
+
/* @__PURE__ */ n.jsx(ke, { size: "auto", direction: "horizontal" }),
|
|
636
698
|
/* @__PURE__ */ n.jsx(
|
|
637
699
|
V,
|
|
638
700
|
{
|
|
639
701
|
iconName: t,
|
|
640
702
|
onClick: () => i == null ? void 0 : i(),
|
|
641
|
-
color:
|
|
642
|
-
cursorPointer:
|
|
703
|
+
color: G(i) ? o.colors.neutralColors.colorNeutralDark : o.colors.neutralColors.colorNeutralCloudy,
|
|
704
|
+
cursorPointer: G(i)
|
|
643
705
|
}
|
|
644
706
|
)
|
|
645
707
|
] }) : null
|
|
@@ -650,9 +712,9 @@ const Oe = ({
|
|
|
650
712
|
]
|
|
651
713
|
}
|
|
652
714
|
);
|
|
653
|
-
|
|
654
|
-
const Xe =
|
|
655
|
-
${
|
|
715
|
+
De.displayName = "Section";
|
|
716
|
+
const Xe = $.div`
|
|
717
|
+
${q}
|
|
656
718
|
display: flex;
|
|
657
719
|
flex-direction: column;
|
|
658
720
|
width: ${({ width: e }) => e};
|
|
@@ -660,22 +722,22 @@ const Xe = k.div`
|
|
|
660
722
|
&:hover {
|
|
661
723
|
cursor: ${({ disabled: e, readonly: t }) => e || t ? "default" : "pointer"};
|
|
662
724
|
}
|
|
663
|
-
`, _e =
|
|
725
|
+
`, _e = $.div`
|
|
664
726
|
width: 100%;
|
|
665
|
-
${({ variant: e }) => e === "default" ?
|
|
727
|
+
${({ variant: e }) => e === "default" ? F`
|
|
666
728
|
min-height: ${({ size: t }) => t === "Small" ? "3.2rem" : "4rem"};
|
|
667
729
|
max-height: ${({ size: t }) => t === "Small" ? "3.2rem" : "4rem"};
|
|
668
|
-
` :
|
|
730
|
+
` : F`
|
|
669
731
|
min-height: ${({ size: t }) => t === "Small" ? "1rem" : "3.2rem"};
|
|
670
732
|
max-height: ${({ size: t }) => t === "Small" ? "1rem" : "3.2rem"};
|
|
671
733
|
`}
|
|
672
734
|
|
|
673
735
|
display: flex;
|
|
674
736
|
align-items: center;
|
|
675
|
-
${({ variant: e }) => e === "default" &&
|
|
737
|
+
${({ variant: e }) => e === "default" && F`
|
|
676
738
|
border: ${o.borders.borderWidth.borderWidthThinner} solid;
|
|
677
739
|
border-radius: ${o.borders.borderRadius.borderRadiusSm};
|
|
678
|
-
border-color: ${({ isOpen: t, hasError: i, readonly: l, disabled:
|
|
740
|
+
border-color: ${({ isOpen: t, hasError: i, readonly: l, disabled: a }) => i ? o.colors.feedbackColors.colorFeedbackError : l || a ? o.colors.neutralColors.colorNeutralClean : t ? o.colors.neutralColors.colorNeutralCloudy : o.colors.neutralColors.colorNeutralClean};
|
|
679
741
|
`}
|
|
680
742
|
|
|
681
743
|
background-color: ${({ variant: e }) => e === "default" ? o.colors.backgroundColors.colorBackgroundSnow : "transparent"};
|
|
@@ -685,28 +747,28 @@ const Xe = k.div`
|
|
|
685
747
|
if (t === "default")
|
|
686
748
|
return e !== "Small" ? `0 ${o.spacings.spacingInline.spacingInlineSm}` : `0 ${o.spacings.spacingInline.spacingInlineAnt}`;
|
|
687
749
|
}};
|
|
688
|
-
${({ size: e, variant: t }) => e === "Small" ? t === "default" ?
|
|
750
|
+
${({ size: e, variant: t }) => e === "Small" ? t === "default" ? F`
|
|
689
751
|
font-size: ${o.fonts.fontSize.fontSizeBodyMd};
|
|
690
752
|
line-height: ${o.fonts.lineHeight.lineHeightSm(
|
|
691
753
|
o.fonts.fontSize.fontSizeBodyMd
|
|
692
754
|
)};
|
|
693
|
-
` :
|
|
755
|
+
` : F`
|
|
694
756
|
font-size: ${o.fonts.fontSize.fontSizeBodySm};
|
|
695
757
|
line-height: ${o.fonts.lineHeight.lineHeightSm(
|
|
696
758
|
o.fonts.fontSize.fontSizeBodySm
|
|
697
759
|
)};
|
|
698
|
-
` : t === "default" ?
|
|
760
|
+
` : t === "default" ? F`
|
|
699
761
|
font-size: ${o.fonts.fontSize.fontSizeBodyLg};
|
|
700
762
|
line-height: ${o.fonts.lineHeight.lineHeightMd(
|
|
701
763
|
o.fonts.fontSize.fontSizeBodyLg
|
|
702
764
|
)};
|
|
703
|
-
` :
|
|
765
|
+
` : F`
|
|
704
766
|
font-size: ${o.fonts.fontSize.fontSizeBodyMd};
|
|
705
767
|
line-height: ${o.fonts.lineHeight.lineHeightSm(
|
|
706
768
|
o.fonts.fontSize.fontSizeBodyMd
|
|
707
769
|
)};
|
|
708
770
|
`};
|
|
709
|
-
${({ disabled: e, readonly: t }) => (e || t) &&
|
|
771
|
+
${({ disabled: e, readonly: t }) => (e || t) && F`
|
|
710
772
|
background-color: ${o.colors.brandColors.colorBrandSeSoft};
|
|
711
773
|
border-style: solid;
|
|
712
774
|
`};
|
|
@@ -720,7 +782,7 @@ const Xe = k.div`
|
|
|
720
782
|
fill: ${({ disabled: e, readonly: t }) => e || t ? o.colors.neutralColors.colorNeutralCloudy : o.colors.neutralColors.colorNeutralCloudy};
|
|
721
783
|
}
|
|
722
784
|
}
|
|
723
|
-
`, Ue =
|
|
785
|
+
`, Ue = $.div`
|
|
724
786
|
align-items: center;
|
|
725
787
|
display: flex;
|
|
726
788
|
flex: 1 1 0%;
|
|
@@ -729,7 +791,7 @@ const Xe = k.div`
|
|
|
729
791
|
overflow: hidden;
|
|
730
792
|
min-height: 1em;
|
|
731
793
|
box-sizing: border-box;
|
|
732
|
-
`,
|
|
794
|
+
`, de = $.span`
|
|
733
795
|
display: flex;
|
|
734
796
|
flex-wrap: wrap;
|
|
735
797
|
width: ${({ isDisplayText: e }) => e ? "100%" : "fit-content"};
|
|
@@ -747,7 +809,7 @@ const Xe = k.div`
|
|
|
747
809
|
width: ${({ isDisplayText: e }) => e ? "100%" : "fit-content"};
|
|
748
810
|
font-style: ${({ isDisplayText: e }) => e ? "italic" : "normal"};
|
|
749
811
|
}
|
|
750
|
-
`, Ge =
|
|
812
|
+
`, Ge = $.span`
|
|
751
813
|
color: ${o.colors.neutralColors.colorNeutralCleanest};
|
|
752
814
|
font-size: ${({ size: e, variant: t }) => t === "default" ? e === "Small" ? o.fonts.fontSize.fontSizeBodyMd : o.fonts.fontSize.fontSizeBodyLg : e === "Small" ? o.fonts.fontSize.fontSizeBodySm : o.fonts.fontSize.fontSizeBodyMd};
|
|
753
815
|
font-family: ${o.fonts.fontFamily.fontFamilyPrimary};
|
|
@@ -756,7 +818,7 @@ const Xe = k.div`
|
|
|
756
818
|
white-space: nowrap;
|
|
757
819
|
overflow: hidden;
|
|
758
820
|
width: fit-content;
|
|
759
|
-
`, qe =
|
|
821
|
+
`, qe = $.input`
|
|
760
822
|
flex: 1;
|
|
761
823
|
min-width: 0.1rem;
|
|
762
824
|
border: none;
|
|
@@ -770,14 +832,14 @@ const Xe = k.div`
|
|
|
770
832
|
outline: none;
|
|
771
833
|
cursor: ${({ disabled: e, readOnly: t }) => e || t ? "default" : "pointer"};
|
|
772
834
|
}
|
|
773
|
-
`, Je =
|
|
835
|
+
`, Je = $.div`
|
|
774
836
|
width: 100%;
|
|
775
837
|
display: flex;
|
|
776
838
|
flex-direction: row;
|
|
777
839
|
gap: 4px;
|
|
778
840
|
justify-content: flex-start;
|
|
779
841
|
margin-bottom: ${o.spacings.spacingStack.spacingStackNano};
|
|
780
|
-
`, Ye =
|
|
842
|
+
`, Ye = $.label`
|
|
781
843
|
font-size: ${o.fonts.fontSize.fontSizeBodyMd};
|
|
782
844
|
font-weight: ${o.fonts.fontWeight.fontWeightRegular};
|
|
783
845
|
font-family: ${o.fonts.fontFamily.fontFamilyPrimary};
|
|
@@ -786,7 +848,7 @@ const Xe = k.div`
|
|
|
786
848
|
)};
|
|
787
849
|
color: ${o.colors.neutralColors.colorNeutralCloudy};
|
|
788
850
|
margin-bottom: ${o.spacings.spacingStack.spacingStackNano};
|
|
789
|
-
`, Qe =
|
|
851
|
+
`, Qe = $.label`
|
|
790
852
|
font-family: ${o.fonts.fontFamily.fontFamilyPrimary};
|
|
791
853
|
font-size: ${o.fonts.fontSize.fontSizeBodyMd};
|
|
792
854
|
font-weight: ${o.fonts.fontWeight.fontWeightRegular};
|
|
@@ -795,7 +857,7 @@ const Xe = k.div`
|
|
|
795
857
|
)};
|
|
796
858
|
color: ${o.colors.feedbackColors.colorFeedbackError};
|
|
797
859
|
`;
|
|
798
|
-
|
|
860
|
+
$.p`
|
|
799
861
|
display: inline-block;
|
|
800
862
|
font-size: ${({ size: e }) => e === "Small" ? o.fonts.fontSize.fontSizeBodySm : o.fonts.fontSize.fontSizeBodyMd};
|
|
801
863
|
font-weight: ${o.fonts.fontWeight.fontWeightRegular};
|
|
@@ -803,7 +865,7 @@ k.p`
|
|
|
803
865
|
margin-top: ${o.spacings.spacingInline.spacingInlineNano};
|
|
804
866
|
width: 100%;
|
|
805
867
|
`;
|
|
806
|
-
const Ve =
|
|
868
|
+
const Ve = $.p`
|
|
807
869
|
display: inline-block;
|
|
808
870
|
font-size: ${({ size: e }) => e === "Small" ? o.fonts.fontSize.fontSizeBodySm : o.fonts.fontSize.fontSizeBodyMd};
|
|
809
871
|
font-weight: ${o.fonts.fontWeight.fontWeightRegular};
|
|
@@ -811,201 +873,201 @@ const Ve = k.p`
|
|
|
811
873
|
margin-top: ${o.spacings.spacingInline.spacingInlineNano};
|
|
812
874
|
width: 100%;
|
|
813
875
|
`, Ze = (e, { value: t, options: i }) => {
|
|
814
|
-
const [l,
|
|
876
|
+
const [l, a] = P(!1), [d, s] = P(!1), [g, c] = P(""), [m, p] = P(i), h = U(null), S = U(null), u = U(null), C = U(null);
|
|
815
877
|
Z(() => {
|
|
816
|
-
const
|
|
878
|
+
const b = () => {
|
|
817
879
|
s(!1);
|
|
818
880
|
};
|
|
819
|
-
return window.addEventListener("scroll",
|
|
820
|
-
window.removeEventListener("scroll",
|
|
881
|
+
return window.addEventListener("scroll", b, { passive: !0 }), window.addEventListener("resize", b, { passive: !0 }), () => {
|
|
882
|
+
window.removeEventListener("scroll", b), window.removeEventListener("resize", b);
|
|
821
883
|
};
|
|
822
884
|
}, []);
|
|
823
|
-
function
|
|
824
|
-
|
|
885
|
+
function z(b) {
|
|
886
|
+
c(""), s(!1), a(!0), u != null && u.current && u.current.focus(), b !== t && e(b);
|
|
825
887
|
}
|
|
826
|
-
const
|
|
827
|
-
if (
|
|
828
|
-
const
|
|
829
|
-
(
|
|
888
|
+
const j = (b) => {
|
|
889
|
+
if (b) {
|
|
890
|
+
const v = new RegExp(b, "i"), M = i.filter(
|
|
891
|
+
(k) => v.exec(k.label)
|
|
830
892
|
);
|
|
831
|
-
|
|
893
|
+
p(M);
|
|
832
894
|
} else
|
|
833
|
-
|
|
895
|
+
p(i);
|
|
834
896
|
};
|
|
835
|
-
function
|
|
836
|
-
return !
|
|
897
|
+
function L(b) {
|
|
898
|
+
return !b;
|
|
837
899
|
}
|
|
838
900
|
return {
|
|
839
901
|
isOpen: l,
|
|
840
|
-
setIsOpen:
|
|
841
|
-
expanded:
|
|
902
|
+
setIsOpen: a,
|
|
903
|
+
expanded: d,
|
|
842
904
|
setExpanded: s,
|
|
843
|
-
inputValue:
|
|
844
|
-
setInputValue:
|
|
845
|
-
optionsSelect:
|
|
846
|
-
setOptionSelect:
|
|
847
|
-
selectContainerRef:
|
|
848
|
-
containerRef:
|
|
849
|
-
inputContainerRef:
|
|
850
|
-
optionsRef:
|
|
851
|
-
selectOption:
|
|
852
|
-
handlerFilterOptions:
|
|
853
|
-
isValue:
|
|
905
|
+
inputValue: g,
|
|
906
|
+
setInputValue: c,
|
|
907
|
+
optionsSelect: m,
|
|
908
|
+
setOptionSelect: p,
|
|
909
|
+
selectContainerRef: h,
|
|
910
|
+
containerRef: S,
|
|
911
|
+
inputContainerRef: u,
|
|
912
|
+
optionsRef: C,
|
|
913
|
+
selectOption: z,
|
|
914
|
+
handlerFilterOptions: j,
|
|
915
|
+
isValue: L
|
|
854
916
|
};
|
|
855
|
-
},
|
|
917
|
+
}, me = ge(
|
|
856
918
|
({
|
|
857
919
|
value: e,
|
|
858
920
|
handleOption: t,
|
|
859
921
|
options: i,
|
|
860
922
|
filter: l = !0,
|
|
861
|
-
placeholder:
|
|
862
|
-
label:
|
|
923
|
+
placeholder: a,
|
|
924
|
+
label: d,
|
|
863
925
|
size: s = "Medium",
|
|
864
|
-
width:
|
|
865
|
-
disabled:
|
|
866
|
-
helpText:
|
|
867
|
-
readonly:
|
|
868
|
-
errorMessage:
|
|
869
|
-
tooltipProps:
|
|
870
|
-
onBlur:
|
|
871
|
-
onEnter:
|
|
872
|
-
variant:
|
|
873
|
-
infoProps:
|
|
874
|
-
maxHeightMenu:
|
|
875
|
-
isRequired:
|
|
876
|
-
onRemoveSelected:
|
|
877
|
-
displayText:
|
|
878
|
-
displayTextProps:
|
|
879
|
-
},
|
|
926
|
+
width: g = "100%",
|
|
927
|
+
disabled: c,
|
|
928
|
+
helpText: m,
|
|
929
|
+
readonly: p,
|
|
930
|
+
errorMessage: h,
|
|
931
|
+
tooltipProps: S = {},
|
|
932
|
+
onBlur: u,
|
|
933
|
+
onEnter: C,
|
|
934
|
+
variant: z = "default",
|
|
935
|
+
infoProps: j = {},
|
|
936
|
+
maxHeightMenu: L,
|
|
937
|
+
isRequired: b = !1,
|
|
938
|
+
onRemoveSelected: v,
|
|
939
|
+
displayText: M,
|
|
940
|
+
displayTextProps: k = {}
|
|
941
|
+
}, J) => {
|
|
880
942
|
const {
|
|
881
|
-
isOpen:
|
|
943
|
+
isOpen: A,
|
|
882
944
|
setIsOpen: T,
|
|
883
|
-
expanded:
|
|
884
|
-
setExpanded:
|
|
885
|
-
inputValue:
|
|
886
|
-
setInputValue:
|
|
887
|
-
optionsSelect:
|
|
888
|
-
selectContainerRef:
|
|
945
|
+
expanded: x,
|
|
946
|
+
setExpanded: w,
|
|
947
|
+
inputValue: R,
|
|
948
|
+
setInputValue: H,
|
|
949
|
+
optionsSelect: B,
|
|
950
|
+
selectContainerRef: f,
|
|
889
951
|
containerRef: r,
|
|
890
|
-
inputContainerRef:
|
|
891
|
-
selectOption:
|
|
892
|
-
setOptionSelect:
|
|
893
|
-
handlerFilterOptions:
|
|
894
|
-
isValue:
|
|
895
|
-
} = Ze(t, { value: e, options: i }),
|
|
896
|
-
label:
|
|
897
|
-
...
|
|
952
|
+
inputContainerRef: y,
|
|
953
|
+
selectOption: N,
|
|
954
|
+
setOptionSelect: W,
|
|
955
|
+
handlerFilterOptions: D,
|
|
956
|
+
isValue: E
|
|
957
|
+
} = Ze(t, { value: e, options: i }), I = !!h, X = {
|
|
958
|
+
label: h,
|
|
959
|
+
...S,
|
|
898
960
|
wrapperWidth: "auto",
|
|
899
|
-
isActive:
|
|
961
|
+
isActive: I,
|
|
900
962
|
isErrorTooltip: !0
|
|
901
|
-
},
|
|
902
|
-
...
|
|
963
|
+
}, O = {
|
|
964
|
+
...j,
|
|
903
965
|
size: s
|
|
904
966
|
}, K = /* @__PURE__ */ n.jsx(
|
|
905
967
|
V,
|
|
906
968
|
{
|
|
907
969
|
iconName: `Close${s === "Small" ? "Sm" : "Ant"}`,
|
|
908
|
-
onClick: (
|
|
909
|
-
|
|
970
|
+
onClick: (Y) => {
|
|
971
|
+
Y.stopPropagation(), v(e);
|
|
910
972
|
}
|
|
911
973
|
}
|
|
912
|
-
), te = /* @__PURE__ */ n.jsx(V, { iconName: `ExpandLess${s === "Small" ? "Sm" : "Ant"}` }),
|
|
974
|
+
), te = /* @__PURE__ */ n.jsx(V, { iconName: `ExpandLess${s === "Small" ? "Sm" : "Ant"}` }), be = /* @__PURE__ */ n.jsx(V, { iconName: `ExpandMore${s === "Small" ? "Sm" : "Ant"}` });
|
|
913
975
|
return /* @__PURE__ */ n.jsxs(
|
|
914
976
|
Xe,
|
|
915
977
|
{
|
|
916
|
-
ref:
|
|
917
|
-
width:
|
|
978
|
+
ref: f,
|
|
979
|
+
width: g,
|
|
918
980
|
size: s,
|
|
919
|
-
disabled:
|
|
920
|
-
readonly:
|
|
981
|
+
disabled: c,
|
|
982
|
+
readonly: p,
|
|
921
983
|
children: [
|
|
922
|
-
|
|
923
|
-
/* @__PURE__ */ n.jsxs(Ye, { "data-testid": "label", ref:
|
|
924
|
-
|
|
925
|
-
|
|
984
|
+
d && /* @__PURE__ */ n.jsxs(Je, { children: [
|
|
985
|
+
/* @__PURE__ */ n.jsxs(Ye, { "data-testid": "label", ref: J, children: [
|
|
986
|
+
d,
|
|
987
|
+
b && !c ? /* @__PURE__ */ n.jsx(Qe, { children: " *" }) : null
|
|
926
988
|
] }),
|
|
927
|
-
((
|
|
989
|
+
((O == null ? void 0 : O.message) || (O == null ? void 0 : O.render)) && /* @__PURE__ */ n.jsx(ze, { ...O })
|
|
928
990
|
] }),
|
|
929
|
-
/* @__PURE__ */ n.jsx(
|
|
991
|
+
/* @__PURE__ */ n.jsx(fe, { ...X, children: /* @__PURE__ */ n.jsxs(
|
|
930
992
|
_e,
|
|
931
993
|
{
|
|
932
|
-
hasError:
|
|
933
|
-
readonly:
|
|
994
|
+
hasError: I,
|
|
995
|
+
readonly: p,
|
|
934
996
|
ref: r,
|
|
935
997
|
onBlur: () => {
|
|
936
998
|
setTimeout(() => {
|
|
937
|
-
(
|
|
999
|
+
(A || x) && y.current !== document.activeElement && (u && u(e), T(!1), w(!1));
|
|
938
1000
|
}, 250);
|
|
939
1001
|
},
|
|
940
1002
|
onClick: () => {
|
|
941
|
-
!
|
|
1003
|
+
!c && !p && (A && !x ? (w(!0), y != null && y.current && y.current.focus()) : !A && !x ? (T(!0), w(!0), y != null && y.current && y.current.focus()) : (T(!1), w(!1), y != null && y.current && y.current.blur()), !R && W(i));
|
|
942
1004
|
},
|
|
943
1005
|
tabIndex: 0,
|
|
944
|
-
width:
|
|
1006
|
+
width: g,
|
|
945
1007
|
size: s,
|
|
946
|
-
isOpen:
|
|
1008
|
+
isOpen: A || x,
|
|
947
1009
|
"data-testid": "select",
|
|
948
|
-
disabled:
|
|
949
|
-
helpText:
|
|
950
|
-
variant:
|
|
1010
|
+
disabled: c,
|
|
1011
|
+
helpText: m,
|
|
1012
|
+
variant: z,
|
|
951
1013
|
children: [
|
|
952
1014
|
/* @__PURE__ */ n.jsxs(Ue, { children: [
|
|
953
|
-
|
|
954
|
-
|
|
1015
|
+
G(M) ? /* @__PURE__ */ n.jsx(de, { size: s, variant: z, isDisplayText: !0, children: /* @__PURE__ */ n.jsx("p", { title: e == null ? void 0 : e.label, ...k, children: M }) }) : /* @__PURE__ */ n.jsxs(de, { size: s, variant: z, children: [
|
|
1016
|
+
a && E(e) && !R && !A ? /* @__PURE__ */ n.jsx(Ge, { size: s, variant: z, children: a }) : null,
|
|
955
1017
|
(e == null ? void 0 : e.label) && /* @__PURE__ */ n.jsx("p", { title: (e == null ? void 0 : e.hint) ?? (e == null ? void 0 : e.label), children: e == null ? void 0 : e.label })
|
|
956
1018
|
] }),
|
|
957
|
-
l && !
|
|
1019
|
+
l && !G(M) && /* @__PURE__ */ n.jsx(
|
|
958
1020
|
qe,
|
|
959
1021
|
{
|
|
960
|
-
ref:
|
|
961
|
-
value:
|
|
962
|
-
onChange: (
|
|
963
|
-
|
|
1022
|
+
ref: y,
|
|
1023
|
+
value: R,
|
|
1024
|
+
onChange: (Y) => {
|
|
1025
|
+
H(Y.target.value), Y.target.value.length > 0 && (T(!0), w(!0)), D(Y.target.value);
|
|
964
1026
|
},
|
|
965
|
-
readOnly:
|
|
966
|
-
width:
|
|
1027
|
+
readOnly: p,
|
|
1028
|
+
width: R.length,
|
|
967
1029
|
size: s,
|
|
968
|
-
disabled:
|
|
969
|
-
variant:
|
|
1030
|
+
disabled: c,
|
|
1031
|
+
variant: z
|
|
970
1032
|
}
|
|
971
1033
|
)
|
|
972
1034
|
] }),
|
|
973
|
-
|
|
974
|
-
|
|
975
|
-
|
|
1035
|
+
v && e ? K : null,
|
|
1036
|
+
x ? te : be,
|
|
1037
|
+
x && /* @__PURE__ */ n.jsx(
|
|
976
1038
|
ie,
|
|
977
1039
|
{
|
|
978
|
-
onEnter: (
|
|
979
|
-
t && t(
|
|
1040
|
+
onEnter: (Y) => {
|
|
1041
|
+
t && t(Y), T(!1), w(!1), C && C(Y);
|
|
980
1042
|
},
|
|
981
|
-
menuIsOpen:
|
|
982
|
-
selectContainerRef:
|
|
1043
|
+
menuIsOpen: A,
|
|
1044
|
+
selectContainerRef: f,
|
|
983
1045
|
value: e,
|
|
984
|
-
optionsSelect:
|
|
985
|
-
selectOption:
|
|
1046
|
+
optionsSelect: B,
|
|
1047
|
+
selectOption: N,
|
|
986
1048
|
size: s,
|
|
987
|
-
inputValue:
|
|
988
|
-
maxHeightMenu:
|
|
1049
|
+
inputValue: R,
|
|
1050
|
+
maxHeightMenu: L
|
|
989
1051
|
}
|
|
990
1052
|
)
|
|
991
1053
|
]
|
|
992
1054
|
}
|
|
993
1055
|
) }),
|
|
994
|
-
|
|
1056
|
+
m && /* @__PURE__ */ n.jsx(Ve, { size: s, children: m })
|
|
995
1057
|
]
|
|
996
1058
|
}
|
|
997
1059
|
);
|
|
998
1060
|
}
|
|
999
1061
|
);
|
|
1000
|
-
|
|
1001
|
-
const
|
|
1062
|
+
me.displayName = "Select";
|
|
1063
|
+
const pe = Be`
|
|
1002
1064
|
from {
|
|
1003
1065
|
transform: rotate(0deg);
|
|
1004
1066
|
}
|
|
1005
1067
|
to {
|
|
1006
1068
|
transform: rotate(360deg);
|
|
1007
1069
|
}
|
|
1008
|
-
`, Ke =
|
|
1070
|
+
`, Ke = $.button`
|
|
1009
1071
|
display: flex;
|
|
1010
1072
|
justify-content: space-between;
|
|
1011
1073
|
align-items: center;
|
|
@@ -1013,7 +1075,7 @@ const me = ze`
|
|
|
1013
1075
|
padding: ${({ size: e }) => e === "Small" ? `0 ${o.spacings.spacingInline.spacingInlineAnt}` : `0 ${o.spacings.spacingInline.spacingInlineSm}`};
|
|
1014
1076
|
${({ variant: e }) => {
|
|
1015
1077
|
if (e === "primary")
|
|
1016
|
-
return
|
|
1078
|
+
return F`
|
|
1017
1079
|
background-color: ${o.colors.brandColors.colorBrandPrimary};
|
|
1018
1080
|
color: ${o.colors.backgroundColors.colorBackgroundSnow};
|
|
1019
1081
|
transition: filter 0.2s;
|
|
@@ -1024,9 +1086,9 @@ const me = ze`
|
|
|
1024
1086
|
}
|
|
1025
1087
|
`;
|
|
1026
1088
|
if (e === "secondary")
|
|
1027
|
-
return
|
|
1089
|
+
return F`
|
|
1028
1090
|
background-color: rgba(
|
|
1029
|
-
${
|
|
1091
|
+
${We(o.colors.neutralColors.colorNeutralSoft)},
|
|
1030
1092
|
${o.opacityLevels.light}
|
|
1031
1093
|
);
|
|
1032
1094
|
color: ${o.colors.neutralColors.colorNeutralDark};
|
|
@@ -1039,7 +1101,7 @@ const me = ze`
|
|
|
1039
1101
|
}
|
|
1040
1102
|
`;
|
|
1041
1103
|
if (e === "tertiary")
|
|
1042
|
-
return
|
|
1104
|
+
return F`
|
|
1043
1105
|
background-color: transparent;
|
|
1044
1106
|
color: ${o.colors.neutralColors.colorNeutralDark};
|
|
1045
1107
|
border: ${o.borders.borderWidth.borderWidthNone};
|
|
@@ -1051,7 +1113,7 @@ const me = ze`
|
|
|
1051
1113
|
}
|
|
1052
1114
|
`;
|
|
1053
1115
|
}};
|
|
1054
|
-
${({ disabled: e }) => e &&
|
|
1116
|
+
${({ disabled: e }) => e && F`
|
|
1055
1117
|
background-color: ${o.colors.backgroundColors.colorBackgroundGrass};
|
|
1056
1118
|
color: ${o.colors.neutralColors.colorNeutralCloudy};
|
|
1057
1119
|
transition: filter 0.2s;
|
|
@@ -1080,15 +1142,15 @@ const me = ze`
|
|
|
1080
1142
|
min-width: ${({ size: e }) => e === "Small" ? o.icons.iconSizeSm : o.icons.iconSizeAnt};
|
|
1081
1143
|
height: ${({ size: e }) => e === "Small" ? o.icons.iconSizeSm : o.icons.iconSizeAnt};
|
|
1082
1144
|
|
|
1083
|
-
${({ isLoading: e }) => e &&
|
|
1084
|
-
animation: ${
|
|
1145
|
+
${({ isLoading: e }) => e && F`
|
|
1146
|
+
animation: ${pe} 2s linear infinite;
|
|
1085
1147
|
`}
|
|
1086
1148
|
|
|
1087
1149
|
path {
|
|
1088
1150
|
fill: ${({ variant: e, disabled: t }) => t ? o.colors.neutralColors.colorNeutralCloudy : e === "primary" ? o.colors.backgroundColors.colorBackgroundSnow : o.colors.neutralColors.colorNeutralDark};
|
|
1089
1151
|
}
|
|
1090
1152
|
}
|
|
1091
|
-
`, eo =
|
|
1153
|
+
`, eo = $.div`
|
|
1092
1154
|
display: flex;
|
|
1093
1155
|
flex-direction: column;
|
|
1094
1156
|
width: ${({ width: e }) => e};
|
|
@@ -1096,7 +1158,7 @@ const me = ze`
|
|
|
1096
1158
|
&:hover {
|
|
1097
1159
|
cursor: ${({ disabled: e }) => e && "not-allowed"};
|
|
1098
1160
|
}
|
|
1099
|
-
`, oo =
|
|
1161
|
+
`, oo = $.label`
|
|
1100
1162
|
font-size: ${o.fonts.fontSize.fontSizeBodyMd};
|
|
1101
1163
|
font-weight: ${o.fonts.fontWeight.fontWeightRegular};
|
|
1102
1164
|
font-family: ${o.fonts.fontFamily.fontFamilyPrimary};
|
|
@@ -1106,7 +1168,7 @@ const me = ze`
|
|
|
1106
1168
|
color: ${({ hasError: e }) => e ? `${o.colors.feedbackColors.colorFeedbackError}` : `${o.colors.neutralColors.colorNeutralCloudy}`};
|
|
1107
1169
|
margin-bottom: ${o.spacings.spacingStack.spacingStackNano};
|
|
1108
1170
|
`;
|
|
1109
|
-
|
|
1171
|
+
$.p`
|
|
1110
1172
|
display: inline-block;
|
|
1111
1173
|
font-size: ${o.fonts.fontSize.fontSizeBodyMd};
|
|
1112
1174
|
font-weight: ${o.fonts.fontWeight.fontWeightRegular};
|
|
@@ -1114,14 +1176,14 @@ k.p`
|
|
|
1114
1176
|
margin-top: ${o.spacings.spacingInline.spacingInlineNano};
|
|
1115
1177
|
width: 100%;
|
|
1116
1178
|
`;
|
|
1117
|
-
const to =
|
|
1179
|
+
const to = $.div`
|
|
1118
1180
|
width: 100%;
|
|
1119
1181
|
|
|
1120
1182
|
& > svg {
|
|
1121
1183
|
min-width: ${({ size: e }) => e === "Small" ? o.icons.iconSizeSm : o.icons.iconSizeAnt};
|
|
1122
1184
|
height: ${({ size: e }) => e === "Small" ? o.icons.iconSizeSm : o.icons.iconSizeAnt};
|
|
1123
1185
|
|
|
1124
|
-
animation: ${
|
|
1186
|
+
animation: ${pe} 2s linear infinite;
|
|
1125
1187
|
|
|
1126
1188
|
path {
|
|
1127
1189
|
fill: ${({ variant: e, disabled: t }) => t ? o.colors.neutralColors.colorNeutralCloudy : e === "primary" ? o.colors.backgroundColors.colorBackgroundSnow : o.colors.neutralColors.colorNeutralDark};
|
|
@@ -1132,163 +1194,215 @@ const to = k.div`
|
|
|
1132
1194
|
cursor: not-allowed;
|
|
1133
1195
|
}
|
|
1134
1196
|
`, no = (e) => {
|
|
1135
|
-
const [t, i] = P(!1), [l,
|
|
1197
|
+
const [t, i] = P(!1), [l, a] = P(e), d = U(null);
|
|
1136
1198
|
return Z(() => {
|
|
1137
|
-
|
|
1199
|
+
a(e);
|
|
1138
1200
|
}, [e]), {
|
|
1139
1201
|
setIsOpen: i,
|
|
1140
1202
|
isOpen: t,
|
|
1141
|
-
setOptionsSelect:
|
|
1203
|
+
setOptionsSelect: a,
|
|
1142
1204
|
optionsSelect: l,
|
|
1143
|
-
selectContainerRef:
|
|
1205
|
+
selectContainerRef: d
|
|
1144
1206
|
};
|
|
1145
|
-
}, ro = 200,
|
|
1207
|
+
}, ro = 200, zo = ({
|
|
1146
1208
|
name: e,
|
|
1147
1209
|
variant: t = "primary",
|
|
1148
1210
|
width: i = "100%",
|
|
1149
1211
|
size: l = "Medium",
|
|
1150
|
-
disabled:
|
|
1151
|
-
isLoading:
|
|
1212
|
+
disabled: a = !1,
|
|
1213
|
+
isLoading: d = !1,
|
|
1152
1214
|
onClick: s,
|
|
1153
|
-
options:
|
|
1154
|
-
label:
|
|
1155
|
-
menuSelectProps:
|
|
1156
|
-
iconName:
|
|
1157
|
-
optionsIconPosition:
|
|
1215
|
+
options: g,
|
|
1216
|
+
label: c,
|
|
1217
|
+
menuSelectProps: m = {},
|
|
1218
|
+
iconName: p,
|
|
1219
|
+
optionsIconPosition: h
|
|
1158
1220
|
}) => {
|
|
1159
|
-
const { isOpen:
|
|
1160
|
-
let
|
|
1161
|
-
|
|
1162
|
-
const
|
|
1163
|
-
...
|
|
1221
|
+
const { isOpen: S, setIsOpen: u, selectContainerRef: C, optionsSelect: z } = no(g);
|
|
1222
|
+
let j = o.colors.backgroundColors.colorBackgroundSnow;
|
|
1223
|
+
a ? j = o.colors.neutralColors.colorNeutralCloudy : t !== "primary" && (j = o.colors.neutralColors.colorNeutralDark);
|
|
1224
|
+
const L = {
|
|
1225
|
+
...m
|
|
1164
1226
|
};
|
|
1165
1227
|
return /* @__PURE__ */ n.jsxs(
|
|
1166
1228
|
eo,
|
|
1167
1229
|
{
|
|
1168
|
-
ref:
|
|
1230
|
+
ref: C,
|
|
1169
1231
|
width: i,
|
|
1170
1232
|
size: l,
|
|
1171
|
-
disabled:
|
|
1172
|
-
onBlur: () => setTimeout(() =>
|
|
1233
|
+
disabled: a,
|
|
1234
|
+
onBlur: () => setTimeout(() => u(!1), ro),
|
|
1173
1235
|
children: [
|
|
1174
|
-
|
|
1236
|
+
c && /* @__PURE__ */ n.jsx(oo, { children: c }),
|
|
1175
1237
|
/* @__PURE__ */ n.jsxs(
|
|
1176
1238
|
Ke,
|
|
1177
1239
|
{
|
|
1178
1240
|
type: "button",
|
|
1179
1241
|
size: l,
|
|
1180
|
-
disabled:
|
|
1242
|
+
disabled: a,
|
|
1181
1243
|
variant: t,
|
|
1182
|
-
isLoading:
|
|
1183
|
-
onClick: () => !
|
|
1244
|
+
isLoading: d,
|
|
1245
|
+
onClick: () => !d && u(!S),
|
|
1184
1246
|
id: `button-component-${e}`,
|
|
1185
1247
|
children: [
|
|
1186
|
-
|
|
1248
|
+
d && /* @__PURE__ */ n.jsx(to, { size: l, disabled: a, variant: t, children: /* @__PURE__ */ n.jsx(
|
|
1187
1249
|
V,
|
|
1188
1250
|
{
|
|
1189
1251
|
iconName: `ProgressActivity${l === "Small" ? "Ant" : "Sm"}`,
|
|
1190
|
-
color:
|
|
1252
|
+
color: j,
|
|
1191
1253
|
"data-testid": "icon-loading"
|
|
1192
1254
|
}
|
|
1193
1255
|
) }),
|
|
1194
|
-
!
|
|
1195
|
-
!
|
|
1256
|
+
!d && /* @__PURE__ */ n.jsx("p", { title: e, children: e }),
|
|
1257
|
+
!d && (S ? /* @__PURE__ */ n.jsx(
|
|
1196
1258
|
V,
|
|
1197
1259
|
{
|
|
1198
1260
|
iconName: `ExpandLess${l === "Small" ? "Ant" : "Sm"}`,
|
|
1199
|
-
color:
|
|
1261
|
+
color: j,
|
|
1200
1262
|
"data-testid": "icon-button-less"
|
|
1201
1263
|
}
|
|
1202
1264
|
) : /* @__PURE__ */ n.jsx(
|
|
1203
1265
|
V,
|
|
1204
1266
|
{
|
|
1205
1267
|
iconName: `ExpandMore${l === "Small" ? "Ant" : "Sm"}`,
|
|
1206
|
-
color:
|
|
1268
|
+
color: j,
|
|
1207
1269
|
"data-testid": "icon-button-more"
|
|
1208
1270
|
}
|
|
1209
1271
|
))
|
|
1210
1272
|
]
|
|
1211
1273
|
}
|
|
1212
1274
|
),
|
|
1213
|
-
|
|
1275
|
+
S && /* @__PURE__ */ n.jsx(
|
|
1214
1276
|
ie,
|
|
1215
1277
|
{
|
|
1216
|
-
selectContainerRef:
|
|
1278
|
+
selectContainerRef: C,
|
|
1217
1279
|
value: null,
|
|
1218
|
-
optionsSelect:
|
|
1280
|
+
optionsSelect: z,
|
|
1219
1281
|
selectOption: s,
|
|
1220
1282
|
size: l,
|
|
1221
1283
|
inputValue: null,
|
|
1222
|
-
iconPosition:
|
|
1223
|
-
iconName:
|
|
1224
|
-
...
|
|
1284
|
+
iconPosition: h,
|
|
1285
|
+
iconName: p,
|
|
1286
|
+
...L
|
|
1225
1287
|
}
|
|
1226
1288
|
)
|
|
1227
1289
|
]
|
|
1228
1290
|
}
|
|
1229
1291
|
);
|
|
1230
|
-
},
|
|
1231
|
-
|
|
1232
|
-
|
|
1233
|
-
|
|
1234
|
-
|
|
1235
|
-
|
|
1236
|
-
|
|
1237
|
-
|
|
1292
|
+
}, lo = $.div`
|
|
1293
|
+
min-width: ${({ widthItems: e }) => e};
|
|
1294
|
+
max-width: ${({ widthItems: e }) => e};
|
|
1295
|
+
height: 100%;
|
|
1296
|
+
overflow: hidden;
|
|
1297
|
+
|
|
1298
|
+
&:hover {
|
|
1299
|
+
overflow: auto;
|
|
1300
|
+
scroll-padding-top: 10px;
|
|
1301
|
+
}
|
|
1302
|
+
`, io = $.div`
|
|
1303
|
+
width: 100%;
|
|
1304
|
+
min-height: ${({ heightItems: e }) => e};
|
|
1305
|
+
max-height: ${({ heightItems: e }) => e};
|
|
1306
|
+
background-color: ${({ selected: e }) => e ? "#E8F3FF" : "transparent"};
|
|
1307
|
+
border-bottom: ${`1px solid ${o.colors.neutralColors.colorNeutralSoft}`};
|
|
1308
|
+
padding: 8px;
|
|
1309
|
+
${({ withBorderRight: e }) => e && F`
|
|
1310
|
+
border-right: ${({ selected: t }) => t ? "none" : `1px solid ${o.colors.neutralColors.colorNeutralSoft}`};
|
|
1311
|
+
`}
|
|
1312
|
+
cursor: pointer;
|
|
1313
|
+
`, so = $.div`
|
|
1314
|
+
max-width: 4px;
|
|
1315
|
+
min-width: 4px;
|
|
1316
|
+
min-height: ${({ heightItems: e }) => e};
|
|
1317
|
+
max-height: ${({ heightItems: e }) => e};
|
|
1318
|
+
background-color: ${({ selected: e }) => e ? "#E8F3FF" : "transparent"};
|
|
1319
|
+
border-bottom: ${`1px solid ${o.colors.neutralColors.colorNeutralSoft}`};
|
|
1320
|
+
padding: 8px;
|
|
1321
|
+
${({ withBorderRight: e }) => e && F`
|
|
1322
|
+
border-right: ${({ selected: t }) => t ? "none" : `1px solid ${o.colors.neutralColors.colorNeutralSoft}`};
|
|
1323
|
+
`}
|
|
1324
|
+
cursor: pointer;
|
|
1325
|
+
`, ao = $.div`
|
|
1326
|
+
display: flex;
|
|
1327
|
+
min-width: 0;
|
|
1328
|
+
height: 100%;
|
|
1329
|
+
flex: 1;
|
|
1330
|
+
background-color: #e8f3ff;
|
|
1331
|
+
`, co = $.div`
|
|
1332
|
+
max-width: 4px;
|
|
1333
|
+
min-width: 4px;
|
|
1334
|
+
height: 100%;
|
|
1335
|
+
background-color: 'transparent';
|
|
1336
|
+
overflow: hidden;
|
|
1337
|
+
`, Bo = ({
|
|
1338
|
+
width: e = "100%",
|
|
1339
|
+
height: t = "fit-content",
|
|
1340
|
+
flex: i,
|
|
1341
|
+
backgroundColor: l = "white",
|
|
1342
|
+
options: a = [],
|
|
1343
|
+
heightItems: d = "60px",
|
|
1344
|
+
widthItems: s = "155px",
|
|
1345
|
+
emptyProps: g = {
|
|
1346
|
+
title: "Nenhum dado a ser mostrado",
|
|
1347
|
+
body: null
|
|
1348
|
+
}
|
|
1238
1349
|
}) => {
|
|
1239
|
-
|
|
1240
|
-
|
|
1241
|
-
|
|
1242
|
-
|
|
1243
|
-
|
|
1244
|
-
|
|
1245
|
-
|
|
1246
|
-
|
|
1247
|
-
|
|
1248
|
-
|
|
1249
|
-
|
|
1250
|
-
}, [f, s]);
|
|
1251
|
-
const u = s && !g ? null : i;
|
|
1252
|
-
return /* @__PURE__ */ n.jsxs(
|
|
1253
|
-
_,
|
|
1350
|
+
var S;
|
|
1351
|
+
const [c, m] = P(a[0] || null), p = U(null), h = U(null);
|
|
1352
|
+
return Z(() => {
|
|
1353
|
+
const u = p.current, C = h.current, z = () => {
|
|
1354
|
+
u && C && (C.scrollTop = u.scrollTop);
|
|
1355
|
+
};
|
|
1356
|
+
return u == null || u.addEventListener("scroll", z), () => {
|
|
1357
|
+
u == null || u.removeEventListener("scroll", z);
|
|
1358
|
+
};
|
|
1359
|
+
}, []), (a == null ? void 0 : a.length) === 0 ? /* @__PURE__ */ n.jsx(
|
|
1360
|
+
he,
|
|
1254
1361
|
{
|
|
1255
|
-
|
|
1362
|
+
title: g.title,
|
|
1363
|
+
body: g.body,
|
|
1256
1364
|
flex: "1",
|
|
1257
|
-
|
|
1258
|
-
|
|
1365
|
+
mode: "table"
|
|
1366
|
+
}
|
|
1367
|
+
) : /* @__PURE__ */ n.jsxs(
|
|
1368
|
+
_,
|
|
1369
|
+
{
|
|
1370
|
+
width: e,
|
|
1371
|
+
height: t,
|
|
1372
|
+
flex: i,
|
|
1373
|
+
backgroundColor: l,
|
|
1374
|
+
direction: "horizontal",
|
|
1375
|
+
customStyles: {
|
|
1376
|
+
border: `1px solid ${o.colors.neutralColors.colorNeutralSoft}`,
|
|
1377
|
+
borderRadius: o.borders.borderRadius.borderRadiusSm
|
|
1378
|
+
},
|
|
1259
1379
|
children: [
|
|
1260
|
-
/* @__PURE__ */ n.jsx(
|
|
1261
|
-
|
|
1380
|
+
/* @__PURE__ */ n.jsx(lo, { ref: p, widthItems: s, children: a == null ? void 0 : a.map((u, C) => /* @__PURE__ */ n.jsx(
|
|
1381
|
+
io,
|
|
1262
1382
|
{
|
|
1263
|
-
|
|
1264
|
-
|
|
1265
|
-
|
|
1266
|
-
|
|
1267
|
-
|
|
1268
|
-
|
|
1269
|
-
|
|
1270
|
-
|
|
1271
|
-
|
|
1272
|
-
|
|
1273
|
-
),
|
|
1274
|
-
/* @__PURE__ */ n.jsx(
|
|
1275
|
-
_,
|
|
1383
|
+
selected: (c == null ? void 0 : c.key) === u.key,
|
|
1384
|
+
onClick: () => m(u),
|
|
1385
|
+
withBorderRight: !1,
|
|
1386
|
+
heightItems: d,
|
|
1387
|
+
children: u.item
|
|
1388
|
+
},
|
|
1389
|
+
C
|
|
1390
|
+
)) }),
|
|
1391
|
+
/* @__PURE__ */ n.jsx(co, { ref: h, children: (S = a == null ? void 0 : a.concat({ key: "last", item: /* @__PURE__ */ n.jsx(n.Fragment, {}), contentItem: /* @__PURE__ */ n.jsx(n.Fragment, {}) })) == null ? void 0 : S.map((u, C) => /* @__PURE__ */ n.jsx(
|
|
1392
|
+
so,
|
|
1276
1393
|
{
|
|
1277
|
-
|
|
1278
|
-
|
|
1279
|
-
|
|
1280
|
-
|
|
1281
|
-
|
|
1282
|
-
|
|
1283
|
-
|
|
1284
|
-
|
|
1285
|
-
children: t
|
|
1286
|
-
}
|
|
1287
|
-
)
|
|
1394
|
+
selected: (c == null ? void 0 : c.key) === u.key,
|
|
1395
|
+
onClick: () => m(u),
|
|
1396
|
+
withBorderRight: !0,
|
|
1397
|
+
heightItems: d
|
|
1398
|
+
},
|
|
1399
|
+
C
|
|
1400
|
+
)) }),
|
|
1401
|
+
/* @__PURE__ */ n.jsx(ao, { children: c && (c == null ? void 0 : c.contentItem) })
|
|
1288
1402
|
]
|
|
1289
1403
|
}
|
|
1290
1404
|
);
|
|
1291
|
-
},
|
|
1405
|
+
}, Se = F`
|
|
1292
1406
|
svg:not([color]):not([data-testid='icon']) {
|
|
1293
1407
|
path {
|
|
1294
1408
|
fill: ${o.colors.neutralColors.colorNeutralDarkest};
|
|
@@ -1300,7 +1414,7 @@ const to = k.div`
|
|
|
1300
1414
|
fill: ${o.colors.neutralColors.colorNeutralDarkest};
|
|
1301
1415
|
}
|
|
1302
1416
|
}
|
|
1303
|
-
`,
|
|
1417
|
+
`, fo = $.div`
|
|
1304
1418
|
width: 100%;
|
|
1305
1419
|
max-height: ${({ maxHeight: e }) => e};
|
|
1306
1420
|
overflow: auto;
|
|
@@ -1322,12 +1436,12 @@ const to = k.div`
|
|
|
1322
1436
|
background: ${o.colors.neutralColors.colorNeutralClean};
|
|
1323
1437
|
border-radius: ${o.borders.borderRadius.borderRadiusPill};
|
|
1324
1438
|
}
|
|
1325
|
-
`,
|
|
1439
|
+
`, ho = $.table`
|
|
1326
1440
|
border-collapse: separate;
|
|
1327
1441
|
border-spacing: 0;
|
|
1328
1442
|
width: 100%;
|
|
1329
|
-
`,
|
|
1330
|
-
${({ isHeader: e, size: t }) => e &&
|
|
1443
|
+
`, uo = `${o.borders.borderRadius.borderExtraSmall} ${o.borders.borderRadius.borderExtraSmall} 0 0`, go = `0 0 ${o.borders.borderRadius.borderExtraSmall} ${o.borders.borderRadius.borderExtraSmall}`, ee = $.tr`
|
|
1444
|
+
${({ isHeader: e, size: t }) => e && F`
|
|
1331
1445
|
position: sticky;
|
|
1332
1446
|
background-color: ${o.colors.backgroundColors.colorBackgroundSnow};
|
|
1333
1447
|
|
|
@@ -1345,15 +1459,15 @@ const to = k.div`
|
|
|
1345
1459
|
height: ${({ fit: e, size: t }) => e ? "fit-content" : t === "Large" ? "4rem" : "3.2rem"};
|
|
1346
1460
|
min-height: ${({ size: e }) => e === "Large" ? "4rem" : "3.2rem"};
|
|
1347
1461
|
|
|
1348
|
-
${({ isHeader: e, isSelected: t, striped: i }) => !e &&
|
|
1462
|
+
${({ isHeader: e, isSelected: t, striped: i }) => !e && F`
|
|
1349
1463
|
background-color: ${t ? o.colors.neutralColors.colorNeutralClean : i ? "#F5F9FE" : o.colors.backgroundColors.colorBackgroundSnow};
|
|
1350
1464
|
`}
|
|
1351
1465
|
|
|
1352
1466
|
border-radius: ${({ isFirst: e, isLast: t, isHeader: i, borderRadius: l }) => {
|
|
1353
1467
|
if (e && !i)
|
|
1354
|
-
return l ? `${l} ${l} 0 0` :
|
|
1468
|
+
return l ? `${l} ${l} 0 0` : uo;
|
|
1355
1469
|
if (t)
|
|
1356
|
-
return l ? `0 0 ${l} ${l}` :
|
|
1470
|
+
return l ? `0 0 ${l} ${l}` : go;
|
|
1357
1471
|
}};
|
|
1358
1472
|
transition: background-color 0.2s 0s;
|
|
1359
1473
|
|
|
@@ -1365,28 +1479,28 @@ const to = k.div`
|
|
|
1365
1479
|
border-bottom: none !important;
|
|
1366
1480
|
}
|
|
1367
1481
|
|
|
1368
|
-
${({ isHeader: e }) => !e &&
|
|
1482
|
+
${({ isHeader: e }) => !e && F`
|
|
1369
1483
|
&:hover {
|
|
1370
1484
|
background-color: ${o.colors.backgroundColors.colorBackgroundCarpet};
|
|
1371
1485
|
|
|
1372
1486
|
/* Target direct SVGs without color (sbwb-icons), but exclude sbwb-ds Icons ([data-testid='icon'])
|
|
1373
1487
|
* This is because sbwb-ds Icons have a color prop on the wrapper, not the SVG
|
|
1374
1488
|
*/
|
|
1375
|
-
${
|
|
1489
|
+
${Se}
|
|
1376
1490
|
}
|
|
1377
1491
|
`}
|
|
1378
|
-
`,
|
|
1379
|
-
if (
|
|
1380
|
-
return
|
|
1492
|
+
`, $e = ({ width: e }) => {
|
|
1493
|
+
if (G(e))
|
|
1494
|
+
return F`
|
|
1381
1495
|
width: ${e};
|
|
1382
1496
|
`;
|
|
1383
|
-
}, oe =
|
|
1497
|
+
}, oe = $.th`
|
|
1384
1498
|
text-align: ${({ horizontalAlign: e, headerAlign: t }) => e ?? t ?? "left"};
|
|
1385
1499
|
vertical-align: middle;
|
|
1386
1500
|
min-width: ${({ minWidth: e }) => e || "auto"};
|
|
1387
1501
|
max-width: ${({ maxWidth: e }) => e};
|
|
1388
1502
|
|
|
1389
|
-
${
|
|
1503
|
+
${$e}
|
|
1390
1504
|
|
|
1391
1505
|
height: ${({ size: e }) => e === "Large" ? "4rem" : "3.2rem"};
|
|
1392
1506
|
background-color: ${o.colors.backgroundColors.colorBackgroundSky};
|
|
@@ -1404,7 +1518,7 @@ const to = k.div`
|
|
|
1404
1518
|
word-break: normal;
|
|
1405
1519
|
|
|
1406
1520
|
&:last-child {
|
|
1407
|
-
${({ isTopRow: e }) => e &&
|
|
1521
|
+
${({ isTopRow: e }) => e && F`
|
|
1408
1522
|
border-right: none;
|
|
1409
1523
|
`}
|
|
1410
1524
|
}
|
|
@@ -1424,13 +1538,13 @@ const to = k.div`
|
|
|
1424
1538
|
&:hover {
|
|
1425
1539
|
cursor: default;
|
|
1426
1540
|
}
|
|
1427
|
-
`,
|
|
1541
|
+
`, mo = $.td`
|
|
1428
1542
|
text-align: ${({ horizontalAlign: e }) => e || "left"};
|
|
1429
1543
|
vertical-align: ${({ verticalAlign: e }) => e || "middle"};
|
|
1430
1544
|
|
|
1431
1545
|
min-width: ${({ minWidth: e }) => e || "auto"};
|
|
1432
1546
|
max-width: ${({ maxWidth: e }) => e};
|
|
1433
|
-
${
|
|
1547
|
+
${$e}
|
|
1434
1548
|
|
|
1435
1549
|
padding: ${({ rowPadding: e }) => e ?? `${o.spacings.spacingInline.spacingInlineXs}`};
|
|
1436
1550
|
|
|
@@ -1449,26 +1563,26 @@ const to = k.div`
|
|
|
1449
1563
|
border-right: none;
|
|
1450
1564
|
}
|
|
1451
1565
|
|
|
1452
|
-
${
|
|
1566
|
+
${Se}
|
|
1453
1567
|
|
|
1454
1568
|
&:hover {
|
|
1455
1569
|
cursor: ${(e) => e.isClickable ? "pointer" : "default"};
|
|
1456
1570
|
}
|
|
1457
1571
|
`;
|
|
1458
|
-
function
|
|
1572
|
+
function po(e) {
|
|
1459
1573
|
return (t) => typeof e == "string" ? t[e] : typeof e == "function" ? e(t) : (console.warn("Please, setup a rowKey for table."), JSON.stringify(t));
|
|
1460
1574
|
}
|
|
1461
|
-
function
|
|
1575
|
+
function jo({
|
|
1462
1576
|
id: e,
|
|
1463
1577
|
rowKey: t = "id",
|
|
1464
1578
|
size: i = "Small",
|
|
1465
1579
|
onRowClick: l,
|
|
1466
|
-
fit:
|
|
1467
|
-
maxHeight:
|
|
1580
|
+
fit: a = !1,
|
|
1581
|
+
maxHeight: d = "40rem",
|
|
1468
1582
|
columns: s,
|
|
1469
|
-
dataSource:
|
|
1470
|
-
columnsTextSize:
|
|
1471
|
-
emptyProps:
|
|
1583
|
+
dataSource: g,
|
|
1584
|
+
columnsTextSize: c = i,
|
|
1585
|
+
emptyProps: m = {
|
|
1472
1586
|
width: "100%",
|
|
1473
1587
|
height: "100%",
|
|
1474
1588
|
title: "Nenhum dado a ser mostrado.",
|
|
@@ -1476,174 +1590,174 @@ function wo({
|
|
|
1476
1590
|
borders: !0,
|
|
1477
1591
|
backgroundColor: o.colors.backgroundColors.colorBackgroundSnow
|
|
1478
1592
|
},
|
|
1479
|
-
selectedRow:
|
|
1480
|
-
hideHeader:
|
|
1481
|
-
withBorder:
|
|
1482
|
-
withBorderRadius:
|
|
1483
|
-
striped:
|
|
1484
|
-
borderRadius:
|
|
1593
|
+
selectedRow: p = !1,
|
|
1594
|
+
hideHeader: h = !1,
|
|
1595
|
+
withBorder: S = !0,
|
|
1596
|
+
withBorderRadius: u = !0,
|
|
1597
|
+
striped: C = !1,
|
|
1598
|
+
borderRadius: z = o.borders.borderRadius.borderRadiusSm
|
|
1485
1599
|
}) {
|
|
1486
|
-
const
|
|
1487
|
-
|
|
1488
|
-
if (!
|
|
1489
|
-
|
|
1600
|
+
const j = Q(() => po(t), [t]), [L, b] = P(null), v = U(null), M = U(null), [k, J] = P(s);
|
|
1601
|
+
Ne(() => {
|
|
1602
|
+
if (!M.current || s.length === 0) {
|
|
1603
|
+
J(s);
|
|
1490
1604
|
return;
|
|
1491
1605
|
}
|
|
1492
|
-
const
|
|
1493
|
-
var
|
|
1494
|
-
const
|
|
1495
|
-
if (
|
|
1496
|
-
let
|
|
1497
|
-
const
|
|
1498
|
-
s.forEach((
|
|
1499
|
-
const
|
|
1500
|
-
|
|
1606
|
+
const x = () => {
|
|
1607
|
+
var D;
|
|
1608
|
+
const R = ((D = M.current) == null ? void 0 : D.clientWidth) || 0;
|
|
1609
|
+
if (R === 0) return;
|
|
1610
|
+
let H = 0, B = 0;
|
|
1611
|
+
const f = [], r = [];
|
|
1612
|
+
s.forEach((E) => {
|
|
1613
|
+
const I = Number(E.flex);
|
|
1614
|
+
E.width ? H += parseInt(E.width, 10) || 0 : E.flex && I > 0 ? (B += I, f.push(E)) : r.push(E);
|
|
1501
1615
|
});
|
|
1502
|
-
const
|
|
1503
|
-
let
|
|
1504
|
-
if (
|
|
1505
|
-
if (
|
|
1506
|
-
const
|
|
1507
|
-
|
|
1508
|
-
const X = Number(
|
|
1616
|
+
const y = R - H, N = "80";
|
|
1617
|
+
let W = [...s];
|
|
1618
|
+
if (y > 0) {
|
|
1619
|
+
if (f.length > 0) {
|
|
1620
|
+
const E = y / B;
|
|
1621
|
+
W = s.map((I) => {
|
|
1622
|
+
const X = Number(I.flex);
|
|
1509
1623
|
if (X && X > 0) {
|
|
1510
|
-
const
|
|
1511
|
-
return { ...
|
|
1624
|
+
const O = parseInt(I.minWidth || N, 10), K = X * E, te = Math.max(K, O);
|
|
1625
|
+
return { ...I, width: `${Math.floor(te)}px` };
|
|
1512
1626
|
}
|
|
1513
|
-
return !
|
|
1514
|
-
...
|
|
1515
|
-
width:
|
|
1516
|
-
} :
|
|
1627
|
+
return !I.width && !X ? {
|
|
1628
|
+
...I,
|
|
1629
|
+
width: I.minWidth || `${N}px`
|
|
1630
|
+
} : I;
|
|
1517
1631
|
});
|
|
1518
1632
|
} else if (r.length > 0) {
|
|
1519
|
-
const
|
|
1520
|
-
|
|
1521
|
-
const X = Number(
|
|
1522
|
-
if (!
|
|
1523
|
-
const
|
|
1524
|
-
return { ...
|
|
1633
|
+
const E = y / r.length;
|
|
1634
|
+
W = s.map((I) => {
|
|
1635
|
+
const X = Number(I.flex);
|
|
1636
|
+
if (!I.width && !X) {
|
|
1637
|
+
const O = parseInt(I.minWidth || N, 10), K = Math.max(E, O);
|
|
1638
|
+
return { ...I, width: `${Math.floor(K)}px` };
|
|
1525
1639
|
}
|
|
1526
|
-
return
|
|
1640
|
+
return I;
|
|
1527
1641
|
});
|
|
1528
1642
|
}
|
|
1529
1643
|
} else
|
|
1530
|
-
|
|
1531
|
-
|
|
1644
|
+
W = s.map((E) => E.width ? E : { ...E, width: E.minWidth || `${N}px` });
|
|
1645
|
+
J(W);
|
|
1532
1646
|
};
|
|
1533
|
-
|
|
1534
|
-
const
|
|
1535
|
-
return
|
|
1647
|
+
x();
|
|
1648
|
+
const w = new ResizeObserver(x);
|
|
1649
|
+
return w.observe(M.current), () => w.disconnect();
|
|
1536
1650
|
}, [s]), Z(() => {
|
|
1537
|
-
const
|
|
1538
|
-
|
|
1651
|
+
const x = (w) => {
|
|
1652
|
+
v.current && !v.current.contains(w.target) && b(null);
|
|
1539
1653
|
};
|
|
1540
|
-
return document.addEventListener("mousedown",
|
|
1541
|
-
document.removeEventListener("mousedown",
|
|
1654
|
+
return document.addEventListener("mousedown", x), () => {
|
|
1655
|
+
document.removeEventListener("mousedown", x);
|
|
1542
1656
|
};
|
|
1543
1657
|
}, []);
|
|
1544
|
-
const
|
|
1545
|
-
(
|
|
1546
|
-
) : !1, [
|
|
1547
|
-
var
|
|
1548
|
-
if (
|
|
1658
|
+
const A = Q(() => k ? k.some(
|
|
1659
|
+
(x) => x.mergeHeaderId && x.mergeHeaderLabel
|
|
1660
|
+
) : !1, [k]), T = Q(() => {
|
|
1661
|
+
var H, B;
|
|
1662
|
+
if (h || !k || k.length === 0)
|
|
1549
1663
|
return null;
|
|
1550
|
-
if (!
|
|
1664
|
+
if (!A)
|
|
1551
1665
|
return /* @__PURE__ */ n.jsx(
|
|
1552
1666
|
ee,
|
|
1553
1667
|
{
|
|
1554
1668
|
isHeader: !0,
|
|
1555
1669
|
size: i,
|
|
1556
1670
|
numRows: 1,
|
|
1557
|
-
borderRadius:
|
|
1558
|
-
children:
|
|
1671
|
+
borderRadius: z,
|
|
1672
|
+
children: k.map((f) => {
|
|
1559
1673
|
var r;
|
|
1560
1674
|
return /* @__PURE__ */ n.jsx(
|
|
1561
1675
|
oe,
|
|
1562
1676
|
{
|
|
1563
|
-
width:
|
|
1564
|
-
minWidth:
|
|
1565
|
-
maxWidth:
|
|
1566
|
-
horizontalAlign:
|
|
1677
|
+
width: f.width,
|
|
1678
|
+
minWidth: f.minWidth,
|
|
1679
|
+
maxWidth: f.maxWidth,
|
|
1680
|
+
horizontalAlign: f.horizontalAlign,
|
|
1567
1681
|
size: i,
|
|
1568
|
-
columnsTextSize:
|
|
1569
|
-
withBorder:
|
|
1570
|
-
headerAlign:
|
|
1571
|
-
children: ((r =
|
|
1682
|
+
columnsTextSize: c,
|
|
1683
|
+
withBorder: S,
|
|
1684
|
+
headerAlign: f.headerAlign,
|
|
1685
|
+
children: ((r = f.columnRender) == null ? void 0 : r.call(f, g)) || /* @__PURE__ */ n.jsx("span", { title: f.label, children: f.label })
|
|
1572
1686
|
},
|
|
1573
|
-
|
|
1687
|
+
f.dataIndex
|
|
1574
1688
|
);
|
|
1575
1689
|
})
|
|
1576
1690
|
}
|
|
1577
1691
|
);
|
|
1578
|
-
const
|
|
1579
|
-
let
|
|
1580
|
-
for (;
|
|
1581
|
-
const
|
|
1582
|
-
if (
|
|
1692
|
+
const x = [], w = [];
|
|
1693
|
+
let R = 0;
|
|
1694
|
+
for (; R < k.length; ) {
|
|
1695
|
+
const f = k[R];
|
|
1696
|
+
if (f.mergeHeaderId && f.mergeHeaderLabel) {
|
|
1583
1697
|
let r = 0;
|
|
1584
|
-
const
|
|
1585
|
-
for (let
|
|
1698
|
+
const y = f.mergeHeaderId;
|
|
1699
|
+
for (let N = R; N < k.length && k[N].mergeHeaderId === y; N++)
|
|
1586
1700
|
r++;
|
|
1587
|
-
|
|
1701
|
+
x.push(
|
|
1588
1702
|
/* @__PURE__ */ n.jsx(
|
|
1589
1703
|
oe,
|
|
1590
1704
|
{
|
|
1591
1705
|
colSpan: r,
|
|
1592
1706
|
horizontalAlign: "center",
|
|
1593
1707
|
size: i,
|
|
1594
|
-
columnsTextSize:
|
|
1595
|
-
withBorder:
|
|
1596
|
-
width:
|
|
1597
|
-
minWidth:
|
|
1598
|
-
maxWidth:
|
|
1599
|
-
headerAlign:
|
|
1708
|
+
columnsTextSize: c,
|
|
1709
|
+
withBorder: S,
|
|
1710
|
+
width: f.width,
|
|
1711
|
+
minWidth: f.minWidth,
|
|
1712
|
+
maxWidth: f.maxWidth,
|
|
1713
|
+
headerAlign: f.headerAlign,
|
|
1600
1714
|
isTopRow: !0,
|
|
1601
|
-
children: /* @__PURE__ */ n.jsx("span", { title:
|
|
1715
|
+
children: /* @__PURE__ */ n.jsx("span", { title: f.mergeHeaderLabel, children: f.mergeHeaderLabel })
|
|
1602
1716
|
},
|
|
1603
|
-
`${
|
|
1717
|
+
`${f.mergeHeaderId}-merged`
|
|
1604
1718
|
)
|
|
1605
1719
|
);
|
|
1606
|
-
for (let
|
|
1607
|
-
const
|
|
1608
|
-
|
|
1720
|
+
for (let N = 0; N < r; N++) {
|
|
1721
|
+
const W = k[R + N];
|
|
1722
|
+
w.push(
|
|
1609
1723
|
/* @__PURE__ */ n.jsx(
|
|
1610
1724
|
oe,
|
|
1611
1725
|
{
|
|
1612
|
-
width:
|
|
1613
|
-
minWidth:
|
|
1614
|
-
maxWidth:
|
|
1615
|
-
horizontalAlign:
|
|
1726
|
+
width: W.width,
|
|
1727
|
+
minWidth: W.minWidth,
|
|
1728
|
+
maxWidth: W.maxWidth,
|
|
1729
|
+
horizontalAlign: W.horizontalAlign,
|
|
1616
1730
|
size: i,
|
|
1617
|
-
columnsTextSize:
|
|
1618
|
-
withBorder:
|
|
1619
|
-
headerAlign:
|
|
1620
|
-
children: ((
|
|
1731
|
+
columnsTextSize: c,
|
|
1732
|
+
withBorder: S,
|
|
1733
|
+
headerAlign: f.headerAlign,
|
|
1734
|
+
children: ((H = W.columnRender) == null ? void 0 : H.call(W, g)) || /* @__PURE__ */ n.jsx("span", { title: W.label, children: W.label })
|
|
1621
1735
|
},
|
|
1622
|
-
|
|
1736
|
+
W.dataIndex + "-individual"
|
|
1623
1737
|
)
|
|
1624
1738
|
);
|
|
1625
1739
|
}
|
|
1626
|
-
|
|
1740
|
+
R += r;
|
|
1627
1741
|
} else
|
|
1628
|
-
|
|
1742
|
+
x.push(
|
|
1629
1743
|
/* @__PURE__ */ n.jsx(
|
|
1630
1744
|
oe,
|
|
1631
1745
|
{
|
|
1632
1746
|
rowSpan: 2,
|
|
1633
|
-
width:
|
|
1634
|
-
minWidth:
|
|
1635
|
-
maxWidth:
|
|
1636
|
-
horizontalAlign:
|
|
1747
|
+
width: f.width,
|
|
1748
|
+
minWidth: f.minWidth,
|
|
1749
|
+
maxWidth: f.maxWidth,
|
|
1750
|
+
horizontalAlign: f.horizontalAlign,
|
|
1637
1751
|
size: i,
|
|
1638
|
-
columnsTextSize:
|
|
1639
|
-
withBorder:
|
|
1640
|
-
headerAlign:
|
|
1752
|
+
columnsTextSize: c,
|
|
1753
|
+
withBorder: S,
|
|
1754
|
+
headerAlign: f.headerAlign,
|
|
1641
1755
|
isTopRow: !0,
|
|
1642
|
-
children: ((
|
|
1756
|
+
children: ((B = f.columnRender) == null ? void 0 : B.call(f, g)) || /* @__PURE__ */ n.jsx("span", { title: f.label, children: f.label })
|
|
1643
1757
|
},
|
|
1644
|
-
|
|
1758
|
+
f.dataIndex
|
|
1645
1759
|
)
|
|
1646
|
-
),
|
|
1760
|
+
), R++;
|
|
1647
1761
|
}
|
|
1648
1762
|
return /* @__PURE__ */ n.jsxs(n.Fragment, { children: [
|
|
1649
1763
|
/* @__PURE__ */ n.jsx(
|
|
@@ -1652,96 +1766,96 @@ function wo({
|
|
|
1652
1766
|
isHeader: !0,
|
|
1653
1767
|
size: i,
|
|
1654
1768
|
numRows: 2,
|
|
1655
|
-
borderRadius:
|
|
1656
|
-
children:
|
|
1769
|
+
borderRadius: z,
|
|
1770
|
+
children: x
|
|
1657
1771
|
}
|
|
1658
1772
|
),
|
|
1659
|
-
|
|
1773
|
+
w.length > 0 && /* @__PURE__ */ n.jsx(
|
|
1660
1774
|
ee,
|
|
1661
1775
|
{
|
|
1662
1776
|
isHeader: !0,
|
|
1663
1777
|
size: i,
|
|
1664
1778
|
numRows: 2,
|
|
1665
|
-
borderRadius:
|
|
1666
|
-
children:
|
|
1779
|
+
borderRadius: z,
|
|
1780
|
+
children: w
|
|
1667
1781
|
}
|
|
1668
1782
|
)
|
|
1669
1783
|
] });
|
|
1670
|
-
}, [
|
|
1671
|
-
return !
|
|
1672
|
-
|
|
1784
|
+
}, [k, h, i, c, A]);
|
|
1785
|
+
return !g || g.length === 0 ? /* @__PURE__ */ n.jsx(
|
|
1786
|
+
he,
|
|
1673
1787
|
{
|
|
1674
1788
|
backgroundColor: o.colors.backgroundColors.colorBackgroundSnow,
|
|
1675
1789
|
borders: !0,
|
|
1676
1790
|
mode: "table",
|
|
1677
|
-
...
|
|
1791
|
+
...m
|
|
1678
1792
|
}
|
|
1679
1793
|
) : /* @__PURE__ */ n.jsx(
|
|
1680
|
-
|
|
1794
|
+
fo,
|
|
1681
1795
|
{
|
|
1682
|
-
maxHeight:
|
|
1683
|
-
withBorderRadius:
|
|
1684
|
-
ref:
|
|
1685
|
-
borderRadius:
|
|
1686
|
-
children: /* @__PURE__ */ n.jsxs(
|
|
1796
|
+
maxHeight: d,
|
|
1797
|
+
withBorderRadius: u,
|
|
1798
|
+
ref: M,
|
|
1799
|
+
borderRadius: z,
|
|
1800
|
+
children: /* @__PURE__ */ n.jsxs(ho, { id: e, ref: v, children: [
|
|
1687
1801
|
/* @__PURE__ */ n.jsx("thead", { children: T }),
|
|
1688
|
-
/* @__PURE__ */ n.jsx("tbody", { style: { width: "100%" }, children:
|
|
1689
|
-
const
|
|
1802
|
+
/* @__PURE__ */ n.jsx("tbody", { style: { width: "100%" }, children: g == null ? void 0 : g.map((x, w, R) => {
|
|
1803
|
+
const H = j(x);
|
|
1690
1804
|
return /* @__PURE__ */ n.jsx(
|
|
1691
1805
|
ee,
|
|
1692
1806
|
{
|
|
1693
|
-
isLast:
|
|
1694
|
-
fit:
|
|
1807
|
+
isLast: w === R.length - 1,
|
|
1808
|
+
fit: a,
|
|
1695
1809
|
size: i,
|
|
1696
|
-
withBorder:
|
|
1697
|
-
isSelected:
|
|
1698
|
-
striped:
|
|
1699
|
-
borderRadius:
|
|
1700
|
-
children:
|
|
1701
|
-
var
|
|
1810
|
+
withBorder: S,
|
|
1811
|
+
isSelected: H === L && p,
|
|
1812
|
+
striped: C && w % 2 !== 0,
|
|
1813
|
+
borderRadius: z,
|
|
1814
|
+
children: k.map((B) => {
|
|
1815
|
+
var f, r;
|
|
1702
1816
|
return /* @__PURE__ */ n.jsx(
|
|
1703
|
-
|
|
1817
|
+
mo,
|
|
1704
1818
|
{
|
|
1705
|
-
width:
|
|
1706
|
-
minWidth:
|
|
1707
|
-
maxWidth:
|
|
1819
|
+
width: B.width,
|
|
1820
|
+
minWidth: B.minWidth,
|
|
1821
|
+
maxWidth: B.maxWidth,
|
|
1708
1822
|
size: i,
|
|
1709
|
-
isClickable:
|
|
1823
|
+
isClickable: G(l),
|
|
1710
1824
|
onClick: () => {
|
|
1711
|
-
l && l(
|
|
1712
|
-
|
|
1825
|
+
l && l(x, B, w), p && b(
|
|
1826
|
+
L === H ? null : H
|
|
1713
1827
|
);
|
|
1714
1828
|
},
|
|
1715
|
-
horizontalAlign:
|
|
1716
|
-
verticalAlign:
|
|
1717
|
-
rowPadding:
|
|
1718
|
-
withBorder:
|
|
1719
|
-
isLast:
|
|
1720
|
-
children: ((
|
|
1721
|
-
|
|
1722
|
-
|
|
1723
|
-
|
|
1724
|
-
|
|
1725
|
-
|
|
1829
|
+
horizontalAlign: B.horizontalAlign,
|
|
1830
|
+
verticalAlign: B.verticalAlign,
|
|
1831
|
+
rowPadding: B.rowPadding,
|
|
1832
|
+
withBorder: S,
|
|
1833
|
+
isLast: w === R.length - 1,
|
|
1834
|
+
children: ((f = B.render) == null ? void 0 : f.call(
|
|
1835
|
+
B,
|
|
1836
|
+
x[B.dataIndex],
|
|
1837
|
+
x,
|
|
1838
|
+
w,
|
|
1839
|
+
R
|
|
1726
1840
|
)) || /* @__PURE__ */ n.jsx(
|
|
1727
1841
|
"span",
|
|
1728
1842
|
{
|
|
1729
|
-
title:
|
|
1843
|
+
title: x[B.dataIndex],
|
|
1730
1844
|
style: {
|
|
1731
1845
|
textOverflow: "ellipsis",
|
|
1732
1846
|
whiteSpace: "nowrap",
|
|
1733
1847
|
overflow: "hidden",
|
|
1734
|
-
...(r =
|
|
1848
|
+
...(r = B.rowCss) == null ? void 0 : r.call(B, x)
|
|
1735
1849
|
},
|
|
1736
|
-
children:
|
|
1850
|
+
children: x[B.dataIndex]
|
|
1737
1851
|
}
|
|
1738
1852
|
) || ""
|
|
1739
1853
|
},
|
|
1740
|
-
`${
|
|
1854
|
+
`${H}::${B.dataIndex}`
|
|
1741
1855
|
);
|
|
1742
1856
|
})
|
|
1743
1857
|
},
|
|
1744
|
-
|
|
1858
|
+
H
|
|
1745
1859
|
);
|
|
1746
1860
|
}) })
|
|
1747
1861
|
] })
|
|
@@ -1749,13 +1863,14 @@ function wo({
|
|
|
1749
1863
|
);
|
|
1750
1864
|
}
|
|
1751
1865
|
export {
|
|
1752
|
-
|
|
1866
|
+
yo as C,
|
|
1753
1867
|
ie as M,
|
|
1754
|
-
|
|
1755
|
-
|
|
1756
|
-
|
|
1757
|
-
|
|
1758
|
-
|
|
1759
|
-
|
|
1760
|
-
|
|
1868
|
+
Co as S,
|
|
1869
|
+
Re as T,
|
|
1870
|
+
ko as a,
|
|
1871
|
+
De as b,
|
|
1872
|
+
me as c,
|
|
1873
|
+
zo as d,
|
|
1874
|
+
Bo as e,
|
|
1875
|
+
jo as f
|
|
1761
1876
|
};
|