@epam/ai-dial-ui-kit 0.3.0-rc.36 → 0.3.0-rc.37
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/dial-ui-kit.es.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { jsx as o, jsxs as
|
|
1
|
+
import { jsx as o, jsxs as w, Fragment as Ce } from "react/jsx-runtime";
|
|
2
2
|
import g from "classnames";
|
|
3
3
|
import { useFloating as s1, offset as O1, flip as V1, shift as P1, arrow as yr, autoUpdate as H1, useHover as E1, useFocus as xr, useDismiss as a1, useRole as i1, useInteractions as l1, useMergeRefs as z1, FloatingPortal as c1, FloatingArrow as wr, autoPlacement as vr, size as Lr, useClick as kr, FloatingFocusManager as F1, FloatingOverlay as Dr } from "@floating-ui/react";
|
|
4
4
|
import * as S from "react";
|
|
@@ -41,7 +41,7 @@ const Me = ({ errorText: e }) => e && /* @__PURE__ */ o("span", { className: "te
|
|
|
41
41
|
delay: { open: 500, close: 0 }
|
|
42
42
|
}), y = xr(u.context, {
|
|
43
43
|
enabled: n == null
|
|
44
|
-
}), f = a1(u.context),
|
|
44
|
+
}), f = a1(u.context), v = i1(u.context, { role: "tooltip" }), x = l1([p, y, f, v]);
|
|
45
45
|
return A(
|
|
46
46
|
() => ({
|
|
47
47
|
open: l,
|
|
@@ -60,7 +60,7 @@ const Me = ({ errorText: e }) => e && /* @__PURE__ */ o("span", { className: "te
|
|
|
60
60
|
return /* @__PURE__ */ o(q1.Provider, { value: t, children: e });
|
|
61
61
|
}, Y1 = B1(function({ style: r, ...t }, n) {
|
|
62
62
|
const s = K1(), a = z1([s.refs.setFloating, n]);
|
|
63
|
-
return s.open ? /* @__PURE__ */ o(c1, { id: "tooltip-portal", children: /* @__PURE__ */
|
|
63
|
+
return s.open ? /* @__PURE__ */ o(c1, { id: "tooltip-portal", children: /* @__PURE__ */ w(
|
|
64
64
|
"div",
|
|
65
65
|
{
|
|
66
66
|
ref: a,
|
|
@@ -113,7 +113,7 @@ const Me = ({ errorText: e }) => e && /* @__PURE__ */ o("span", { className: "te
|
|
|
113
113
|
triggerClassName: n,
|
|
114
114
|
contentClassName: s,
|
|
115
115
|
...a
|
|
116
|
-
}) => /* @__PURE__ */
|
|
116
|
+
}) => /* @__PURE__ */ w(X1, { ...a, children: [
|
|
117
117
|
/* @__PURE__ */ o(J1, { className: g(n, "truncate"), children: t }),
|
|
118
118
|
/* @__PURE__ */ o(
|
|
119
119
|
Y1,
|
|
@@ -134,7 +134,7 @@ const Me = ({ errorText: e }) => e && /* @__PURE__ */ o("span", { className: "te
|
|
|
134
134
|
optionalText: n,
|
|
135
135
|
cssClass: s,
|
|
136
136
|
description: a
|
|
137
|
-
}) => e ? /* @__PURE__ */
|
|
137
|
+
}) => e ? /* @__PURE__ */ w(
|
|
138
138
|
"label",
|
|
139
139
|
{
|
|
140
140
|
className: g(
|
|
@@ -185,7 +185,7 @@ const mt = {
|
|
|
185
185
|
t,
|
|
186
186
|
"focus-visible:outline outline-offset-0"
|
|
187
187
|
);
|
|
188
|
-
return /* @__PURE__ */
|
|
188
|
+
return /* @__PURE__ */ w(
|
|
189
189
|
"button",
|
|
190
190
|
{
|
|
191
191
|
ref: s,
|
|
@@ -219,7 +219,7 @@ const gt = {
|
|
|
219
219
|
cssClass: t,
|
|
220
220
|
closable: n = !1,
|
|
221
221
|
onClose: s
|
|
222
|
-
}) => /* @__PURE__ */
|
|
222
|
+
}) => /* @__PURE__ */ w(
|
|
223
223
|
"div",
|
|
224
224
|
{
|
|
225
225
|
role: "alert",
|
|
@@ -229,7 +229,7 @@ const gt = {
|
|
|
229
229
|
t
|
|
230
230
|
),
|
|
231
231
|
children: [
|
|
232
|
-
/* @__PURE__ */
|
|
232
|
+
/* @__PURE__ */ w("div", { className: "flex items-center gap-2", children: [
|
|
233
233
|
/* @__PURE__ */ o(Z, { icon: gt[e] }),
|
|
234
234
|
/* @__PURE__ */ o("div", { className: "text-primary", children: r })
|
|
235
235
|
] }),
|
|
@@ -302,7 +302,7 @@ const gt = {
|
|
|
302
302
|
"mr-2 border rounded",
|
|
303
303
|
s ? "bg-layer-4 border-icon-secondary" : ""
|
|
304
304
|
);
|
|
305
|
-
return /* @__PURE__ */
|
|
305
|
+
return /* @__PURE__ */ w("label", { className: d, htmlFor: r, children: [
|
|
306
306
|
n ? /* @__PURE__ */ o(Rr, { className: u, ...Q }) : t ? /* @__PURE__ */ o(G1, { className: u, ...Q }) : null,
|
|
307
307
|
e && (typeof e == "string" ? /* @__PURE__ */ o(me, { tooltip: e, triggerClassName: "flex-1 min-w-0", children: /* @__PURE__ */ o("span", { className: "text-primary w-full truncate", children: e }) }) : e),
|
|
308
308
|
/* @__PURE__ */ o(
|
|
@@ -366,7 +366,7 @@ const wt = (e, r) => {
|
|
|
366
366
|
onChangeStep: n
|
|
367
367
|
}) => {
|
|
368
368
|
const s = "h-[32px] flex flex-1 min-w-[180px] items-center dial-tiny border-t-2 cursor-pointer", a = "w-[22px] h-[22px] flex justify-center items-center mr-2 rounded-full text-white", i = () => t === e.id && e.status === re.ERROR ? /* @__PURE__ */ o($1, { stroke: 2, size: 16 }) : t !== e.id && e.status === re.VALID ? /* @__PURE__ */ o(G1, { stroke: 2, size: 16 }) : r + 1;
|
|
369
|
-
return /* @__PURE__ */
|
|
369
|
+
return /* @__PURE__ */ w(
|
|
370
370
|
"button",
|
|
371
371
|
{
|
|
372
372
|
className: g(s, wt(e, t)),
|
|
@@ -423,12 +423,12 @@ const wt = (e, r) => {
|
|
|
423
423
|
"cursor-pointer dial-input-radio",
|
|
424
424
|
t && "mr-2",
|
|
425
425
|
i
|
|
426
|
-
),
|
|
426
|
+
), v = g("flex flex-col", !!n && "mb-2"), x = g(
|
|
427
427
|
"dial-tiny mt-2 ml-[26px] text-secondary",
|
|
428
428
|
u
|
|
429
429
|
);
|
|
430
|
-
return /* @__PURE__ */
|
|
431
|
-
/* @__PURE__ */
|
|
430
|
+
return /* @__PURE__ */ w("div", { className: v, children: [
|
|
431
|
+
/* @__PURE__ */ w("div", { className: "flex flex-row items-center", children: [
|
|
432
432
|
/* @__PURE__ */ o(
|
|
433
433
|
"input",
|
|
434
434
|
{
|
|
@@ -565,15 +565,15 @@ const St = "w-full flex", Tt = {
|
|
|
565
565
|
let n = (s) => {
|
|
566
566
|
const a = [];
|
|
567
567
|
let i = 0, c = 0, l = 0, d;
|
|
568
|
-
for (let
|
|
569
|
-
let x = s[
|
|
568
|
+
for (let v = 0; v < s.length; v++) {
|
|
569
|
+
let x = s[v];
|
|
570
570
|
if (i === 0 && c === 0) {
|
|
571
571
|
if (x === e1) {
|
|
572
|
-
a.push(s.slice(l,
|
|
572
|
+
a.push(s.slice(l, v)), l = v + Ht;
|
|
573
573
|
continue;
|
|
574
574
|
}
|
|
575
575
|
if (x === "/") {
|
|
576
|
-
d =
|
|
576
|
+
d = v;
|
|
577
577
|
continue;
|
|
578
578
|
}
|
|
579
579
|
}
|
|
@@ -634,20 +634,20 @@ const St = "w-full flex", Tt = {
|
|
|
634
634
|
isExternal: p,
|
|
635
635
|
modifiers: y,
|
|
636
636
|
hasImportantModifier: f,
|
|
637
|
-
baseClassName:
|
|
637
|
+
baseClassName: v,
|
|
638
638
|
maybePostfixModifierPosition: x
|
|
639
639
|
} = t(u);
|
|
640
640
|
if (p) {
|
|
641
641
|
l = u + (l.length > 0 ? " " + l : l);
|
|
642
642
|
continue;
|
|
643
643
|
}
|
|
644
|
-
let T = !!x, R = n(T ?
|
|
644
|
+
let T = !!x, R = n(T ? v.substring(0, x) : v);
|
|
645
645
|
if (!R) {
|
|
646
646
|
if (!T) {
|
|
647
647
|
l = u + (l.length > 0 ? " " + l : l);
|
|
648
648
|
continue;
|
|
649
649
|
}
|
|
650
|
-
if (R = n(
|
|
650
|
+
if (R = n(v), !R) {
|
|
651
651
|
l = u + (l.length > 0 ? " " + l : l);
|
|
652
652
|
continue;
|
|
653
653
|
}
|
|
@@ -712,7 +712,7 @@ const G = (e) => {
|
|
|
712
712
|
const n = nr.exec(e);
|
|
713
713
|
return n ? n[1] ? r(n[1]) : t : !1;
|
|
714
714
|
}, sr = (e) => e === "position" || e === "percentage", ar = (e) => e === "image" || e === "url", ir = (e) => e === "length" || e === "size" || e === "bg-size", lr = (e) => e === "length", an = (e) => e === "number", ln = (e) => e === "family-name", cr = (e) => e === "shadow", cn = () => {
|
|
715
|
-
const e = G("color"), r = G("font"), t = G("text"), n = G("font-weight"), s = G("tracking"), a = G("leading"), i = G("breakpoint"), c = G("container"), l = G("spacing"), d = G("radius"), u = G("shadow"), p = G("inset-shadow"), y = G("text-shadow"), f = G("drop-shadow"),
|
|
715
|
+
const e = G("color"), r = G("font"), t = G("text"), n = G("font-weight"), s = G("tracking"), a = G("leading"), i = G("breakpoint"), c = G("container"), l = G("spacing"), d = G("radius"), u = G("shadow"), p = G("inset-shadow"), y = G("text-shadow"), f = G("drop-shadow"), v = G("blur"), x = G("perspective"), T = G("aspect"), R = G("ease"), m = G("animate"), L = () => ["auto", "avoid", "all", "avoid-page", "page", "left", "right", "column"], N = () => [
|
|
716
716
|
"center",
|
|
717
717
|
"top",
|
|
718
718
|
"bottom",
|
|
@@ -750,7 +750,7 @@ const G = (e) => {
|
|
|
750
750
|
// Deprecated since Tailwind CSS v4.0.0
|
|
751
751
|
"",
|
|
752
752
|
"none",
|
|
753
|
-
|
|
753
|
+
v,
|
|
754
754
|
b,
|
|
755
755
|
C
|
|
756
756
|
], Oe = () => ["none", M, b, C], Ve = () => ["none", M, b, C], Ge = () => [M, b, C], Pe = () => [xe, "full", ...k()];
|
|
@@ -3200,7 +3200,7 @@ const p1 = ({
|
|
|
3200
3200
|
captionDescription: p,
|
|
3201
3201
|
readonly: y,
|
|
3202
3202
|
value: f,
|
|
3203
|
-
defaultEmptyText:
|
|
3203
|
+
defaultEmptyText: v,
|
|
3204
3204
|
children: x
|
|
3205
3205
|
}) => {
|
|
3206
3206
|
const T = `${e}-label`, R = s ? `${e}-desc` : void 0, m = a ? `${e}-err` : void 0, L = `${e}-caption-desc`, N = [R, m].filter(Boolean).join(" ") || void 0, V = E(() => typeof a == "boolean" ? null : typeof a == "string" || typeof a > "u" ? a ? /* @__PURE__ */ o(
|
|
@@ -3221,8 +3221,8 @@ const p1 = ({
|
|
|
3221
3221
|
className: u,
|
|
3222
3222
|
children: a
|
|
3223
3223
|
}
|
|
3224
|
-
), [a, u, m]), z = E(() => f ? typeof f == "string" || typeof f == "number" ? /* @__PURE__ */ o("span", { "aria-readonly": "true", children: f }) : f : /* @__PURE__ */ o("span", { "aria-readonly": "true", children:
|
|
3225
|
-
return /* @__PURE__ */
|
|
3224
|
+
), [a, u, m]), z = E(() => f ? typeof f == "string" || typeof f == "number" ? /* @__PURE__ */ o("span", { "aria-readonly": "true", children: f }) : f : /* @__PURE__ */ o("span", { "aria-readonly": "true", children: v ?? "None" }), [f, v]);
|
|
3225
|
+
return /* @__PURE__ */ w(
|
|
3226
3226
|
"div",
|
|
3227
3227
|
{
|
|
3228
3228
|
role: "group",
|
|
@@ -3255,7 +3255,7 @@ const p1 = ({
|
|
|
3255
3255
|
)
|
|
3256
3256
|
}
|
|
3257
3257
|
),
|
|
3258
|
-
/* @__PURE__ */
|
|
3258
|
+
/* @__PURE__ */ w("div", { className: "min-w-0 w-full", children: [
|
|
3259
3259
|
y ? /* @__PURE__ */ o("div", { className: "dial-input px-3 py-2", children: z() }) : x,
|
|
3260
3260
|
p && /* @__PURE__ */ o(
|
|
3261
3261
|
"div",
|
|
@@ -3299,7 +3299,7 @@ const p1 = ({
|
|
|
3299
3299
|
Dt,
|
|
3300
3300
|
Nt[c]
|
|
3301
3301
|
),
|
|
3302
|
-
children: a.map((d) => /* @__PURE__ */
|
|
3302
|
+
children: a.map((d) => /* @__PURE__ */ w("div", { className: "flex flex-col", children: [
|
|
3303
3303
|
/* @__PURE__ */ o(
|
|
3304
3304
|
kt,
|
|
3305
3305
|
{
|
|
@@ -3323,7 +3323,7 @@ const p1 = ({
|
|
|
3323
3323
|
icon: e,
|
|
3324
3324
|
title: r,
|
|
3325
3325
|
description: t
|
|
3326
|
-
}) => /* @__PURE__ */
|
|
3326
|
+
}) => /* @__PURE__ */ w("div", { className: "h-full w-full flex flex-col items-center justify-center text-secondary", children: [
|
|
3327
3327
|
e || /* @__PURE__ */ o(_1, { width: 60, height: 60 }),
|
|
3328
3328
|
/* @__PURE__ */ o("span", { className: "dial-small mt-2 text-primary", children: r }),
|
|
3329
3329
|
t && /* @__PURE__ */ o("span", { className: "mt-1 text-primary", children: t })
|
|
@@ -3346,7 +3346,7 @@ const p1 = ({
|
|
|
3346
3346
|
]), f = () => {
|
|
3347
3347
|
l(d ? fn : t), u(!d);
|
|
3348
3348
|
};
|
|
3349
|
-
return /* @__PURE__ */
|
|
3349
|
+
return /* @__PURE__ */ w(
|
|
3350
3350
|
"div",
|
|
3351
3351
|
{
|
|
3352
3352
|
className: g([
|
|
@@ -3366,7 +3366,7 @@ const p1 = ({
|
|
|
3366
3366
|
}
|
|
3367
3367
|
),
|
|
3368
3368
|
/* @__PURE__ */ o("div", { className: p, children: n }),
|
|
3369
|
-
/* @__PURE__ */
|
|
3369
|
+
/* @__PURE__ */ w("div", { className: y, children: [
|
|
3370
3370
|
d && i,
|
|
3371
3371
|
/* @__PURE__ */ o(
|
|
3372
3372
|
te,
|
|
@@ -3397,13 +3397,13 @@ const p1 = ({
|
|
|
3397
3397
|
text: r,
|
|
3398
3398
|
children: t,
|
|
3399
3399
|
postfix: n
|
|
3400
|
-
}) => /* @__PURE__ */
|
|
3400
|
+
}) => /* @__PURE__ */ w(
|
|
3401
3401
|
"div",
|
|
3402
3402
|
{
|
|
3403
3403
|
className: g("flex flex-col", t ? "" : "max-w-[200px]"),
|
|
3404
3404
|
children: [
|
|
3405
3405
|
/* @__PURE__ */ o("label", { className: "dial-tiny mb-2 text-secondary", children: e }),
|
|
3406
|
-
t || /* @__PURE__ */
|
|
3406
|
+
t || /* @__PURE__ */ w("div", { className: "flex flex-row items-center", children: [
|
|
3407
3407
|
/* @__PURE__ */ o(me, { triggerClassName: "text-primary", tooltip: r, children: r }),
|
|
3408
3408
|
n || null
|
|
3409
3409
|
] })
|
|
@@ -3442,8 +3442,8 @@ const mn = {
|
|
|
3442
3442
|
const f = A(
|
|
3443
3443
|
() => typeof e == "string" ? e : l,
|
|
3444
3444
|
[l, e]
|
|
3445
|
-
),
|
|
3446
|
-
return /* @__PURE__ */
|
|
3445
|
+
), v = A(() => n ? "" : i ? f : "", [f, n, i]);
|
|
3446
|
+
return /* @__PURE__ */ w(X1, { ...s, children: [
|
|
3447
3447
|
/* @__PURE__ */ o(
|
|
3448
3448
|
J1,
|
|
3449
3449
|
{
|
|
@@ -3472,9 +3472,9 @@ const mn = {
|
|
|
3472
3472
|
className: U(
|
|
3473
3473
|
gn,
|
|
3474
3474
|
t,
|
|
3475
|
-
!
|
|
3475
|
+
!v && "hidden"
|
|
3476
3476
|
),
|
|
3477
|
-
children:
|
|
3477
|
+
children: v
|
|
3478
3478
|
}
|
|
3479
3479
|
)
|
|
3480
3480
|
] });
|
|
@@ -3492,7 +3492,7 @@ const mn = {
|
|
|
3492
3492
|
a ? "border" : "border-transparent",
|
|
3493
3493
|
r
|
|
3494
3494
|
);
|
|
3495
|
-
return /* @__PURE__ */
|
|
3495
|
+
return /* @__PURE__ */ w("div", { className: c, children: [
|
|
3496
3496
|
/* @__PURE__ */ o(Z, { icon: s }),
|
|
3497
3497
|
/* @__PURE__ */ o(Se, { text: e }),
|
|
3498
3498
|
t && /* @__PURE__ */ o(
|
|
@@ -4171,14 +4171,14 @@ const k1 = "column", Xn = "flex items-center", Yn = "mr-3 cursor-move text-secon
|
|
|
4171
4171
|
type: k1,
|
|
4172
4172
|
item: { id: e, originalIndex: l },
|
|
4173
4173
|
collect: (f) => {
|
|
4174
|
-
const
|
|
4174
|
+
const v = f.getItem();
|
|
4175
4175
|
return {
|
|
4176
|
-
isDragging: f.isDragging() &&
|
|
4176
|
+
isDragging: f.isDragging() && v?.id === e
|
|
4177
4177
|
};
|
|
4178
4178
|
},
|
|
4179
|
-
end: (f,
|
|
4179
|
+
end: (f, v) => {
|
|
4180
4180
|
if (!f) return;
|
|
4181
|
-
!
|
|
4181
|
+
!v.didDrop() && typeof s == "function" && f.originalIndex > -1 && s(f.id, f.originalIndex);
|
|
4182
4182
|
}
|
|
4183
4183
|
}),
|
|
4184
4184
|
[e, l, s]
|
|
@@ -4187,14 +4187,14 @@ const k1 = "column", Xn = "flex items-center", Yn = "mr-3 cursor-move text-secon
|
|
|
4187
4187
|
accept: k1,
|
|
4188
4188
|
hover: (f) => {
|
|
4189
4189
|
if (!(!f || f.id === e) && typeof n == "function" && typeof s == "function") {
|
|
4190
|
-
const
|
|
4191
|
-
s(f.id,
|
|
4190
|
+
const v = n(e);
|
|
4191
|
+
s(f.id, v);
|
|
4192
4192
|
}
|
|
4193
4193
|
}
|
|
4194
4194
|
}),
|
|
4195
4195
|
[n, s, e]
|
|
4196
4196
|
);
|
|
4197
|
-
return p(y(c)), u(i), /* @__PURE__ */
|
|
4197
|
+
return p(y(c)), u(i), /* @__PURE__ */ w(
|
|
4198
4198
|
"div",
|
|
4199
4199
|
{
|
|
4200
4200
|
ref: c,
|
|
@@ -4267,21 +4267,25 @@ const k1 = "column", Xn = "flex items-center", Yn = "mr-3 cursor-move text-secon
|
|
|
4267
4267
|
stroke: t = Q.stroke,
|
|
4268
4268
|
cssClass: n,
|
|
4269
4269
|
decorative: s = !1,
|
|
4270
|
-
label: a
|
|
4270
|
+
label: a,
|
|
4271
|
+
indicator: i
|
|
4271
4272
|
}) => {
|
|
4272
|
-
const
|
|
4273
|
-
const
|
|
4274
|
-
return
|
|
4275
|
-
})(),
|
|
4273
|
+
const c = (() => {
|
|
4274
|
+
const p = e.trim().toLowerCase();
|
|
4275
|
+
return p.startsWith(".") ? p : `.${p}`;
|
|
4276
|
+
})(), d = (D1[c] ?? D1.default)({
|
|
4276
4277
|
size: r,
|
|
4277
4278
|
stroke: t
|
|
4278
|
-
}),
|
|
4279
|
-
return /* @__PURE__ */
|
|
4279
|
+
}), u = a ?? `${c.slice(1).toUpperCase()} file icon`;
|
|
4280
|
+
return /* @__PURE__ */ w(
|
|
4280
4281
|
"span",
|
|
4281
4282
|
{
|
|
4282
|
-
className: g("inline-flex", n),
|
|
4283
|
-
...s ? { "aria-hidden": !0 } : { role: "img", "aria-label":
|
|
4284
|
-
children:
|
|
4283
|
+
className: g("inline-flex relative", n),
|
|
4284
|
+
...s ? { "aria-hidden": !0 } : { role: "img", "aria-label": u },
|
|
4285
|
+
children: [
|
|
4286
|
+
/* @__PURE__ */ o(Z, { icon: d, className: "inline-block align-middle" }),
|
|
4287
|
+
i && /* @__PURE__ */ o("span", { className: "absolute bottom-0 left-0", children: i })
|
|
4288
|
+
]
|
|
4285
4289
|
}
|
|
4286
4290
|
);
|
|
4287
4291
|
};
|
|
@@ -4333,7 +4337,7 @@ const io = g(
|
|
|
4333
4337
|
cssClass: p,
|
|
4334
4338
|
listClassName: y,
|
|
4335
4339
|
outsidePressIgnoreRef: f,
|
|
4336
|
-
outsideClosable:
|
|
4340
|
+
outsideClosable: v = !0,
|
|
4337
4341
|
allowedPlacements: x
|
|
4338
4342
|
}) => {
|
|
4339
4343
|
const [T, R] = j(c), m = i !== void 0, L = m ? !!i : T, N = E(
|
|
@@ -4380,7 +4384,7 @@ const io = g(
|
|
|
4380
4384
|
bubbles: !0,
|
|
4381
4385
|
referencePress: !1,
|
|
4382
4386
|
outsidePress: (I) => {
|
|
4383
|
-
if (!
|
|
4387
|
+
if (!v) return !1;
|
|
4384
4388
|
const _ = I.target;
|
|
4385
4389
|
return !(f?.current && _ instanceof Node && f.current.contains(_));
|
|
4386
4390
|
}
|
|
@@ -4397,7 +4401,7 @@ const io = g(
|
|
|
4397
4401
|
}, [a, L, N]);
|
|
4398
4402
|
const D = (I) => (_) => {
|
|
4399
4403
|
I.disabled || (I.onClick?.({ key: I.key, domEvent: _ }), r?.onClick?.({ key: I.key, domEvent: _ }), N(!1));
|
|
4400
|
-
}, ce = t ? t() : r && /* @__PURE__ */
|
|
4404
|
+
}, ce = t ? t() : r && /* @__PURE__ */ w(Ce, { children: [
|
|
4401
4405
|
r.header && /* @__PURE__ */ o(Ce, { children: typeof r.header == "function" ? r.header() : r.header }),
|
|
4402
4406
|
/* @__PURE__ */ o("div", { role: "none", className: "py-1", children: r.items.map((I) => I.type === fr.Divider ? /* @__PURE__ */ o(
|
|
4403
4407
|
"div",
|
|
@@ -4406,7 +4410,7 @@ const io = g(
|
|
|
4406
4410
|
className: fo
|
|
4407
4411
|
},
|
|
4408
4412
|
I.key
|
|
4409
|
-
) : /* @__PURE__ */
|
|
4413
|
+
) : /* @__PURE__ */ w(
|
|
4410
4414
|
"button",
|
|
4411
4415
|
{
|
|
4412
4416
|
role: "menuitem",
|
|
@@ -4447,7 +4451,7 @@ const io = g(
|
|
|
4447
4451
|
)) }),
|
|
4448
4452
|
r.footer && /* @__PURE__ */ o(Ce, { children: typeof r.footer == "function" ? r.footer() : r.footer })
|
|
4449
4453
|
] });
|
|
4450
|
-
return /* @__PURE__ */
|
|
4454
|
+
return /* @__PURE__ */ w(Ce, { children: [
|
|
4451
4455
|
/* @__PURE__ */ o(
|
|
4452
4456
|
"span",
|
|
4453
4457
|
{
|
|
@@ -4472,7 +4476,7 @@ const io = g(
|
|
|
4472
4476
|
modal: !1,
|
|
4473
4477
|
initialFocus: -1,
|
|
4474
4478
|
returnFocus: !0,
|
|
4475
|
-
children: /* @__PURE__ */
|
|
4479
|
+
children: /* @__PURE__ */ w(
|
|
4476
4480
|
"div",
|
|
4477
4481
|
{
|
|
4478
4482
|
id: V,
|
|
@@ -4518,7 +4522,7 @@ const io = g(
|
|
|
4518
4522
|
},
|
|
4519
4523
|
s
|
|
4520
4524
|
);
|
|
4521
|
-
return /* @__PURE__ */
|
|
4525
|
+
return /* @__PURE__ */ w(
|
|
4522
4526
|
"button",
|
|
4523
4527
|
{
|
|
4524
4528
|
role: "tab",
|
|
@@ -4544,7 +4548,7 @@ const io = g(
|
|
|
4544
4548
|
onClick: t,
|
|
4545
4549
|
orientation: n = n1.Horizontal
|
|
4546
4550
|
}) => {
|
|
4547
|
-
const [s, a] = j(!1), [i, c] = j(!1), [l, d] = j(!1), u = so(), p = n === n1.Horizontal, y = le(null), f = le(null),
|
|
4551
|
+
const [s, a] = j(!1), [i, c] = j(!1), [l, d] = j(!1), u = so(), p = n === n1.Horizontal, y = le(null), f = le(null), v = le(null), x = e.find((m) => m.id === r), T = A(
|
|
4548
4552
|
() => g(
|
|
4549
4553
|
"flex gap-3",
|
|
4550
4554
|
p ? "flex-row flex-nowrap overflow-x-auto" : "flex-col flex-wrap w-full"
|
|
@@ -4559,7 +4563,7 @@ const io = g(
|
|
|
4559
4563
|
const m = new ResizeObserver(R), L = f.current;
|
|
4560
4564
|
return L && m.observe(L), () => m.disconnect();
|
|
4561
4565
|
}, [e, R]), se(() => {
|
|
4562
|
-
const m =
|
|
4566
|
+
const m = v.current, L = f.current;
|
|
4563
4567
|
if (!m || !L) return;
|
|
4564
4568
|
const N = m.offsetLeft, V = N + m.offsetWidth, z = L.scrollLeft, $ = z + L.clientWidth;
|
|
4565
4569
|
N < z ? L.scrollTo({
|
|
@@ -4589,7 +4593,7 @@ const io = g(
|
|
|
4589
4593
|
},
|
|
4590
4594
|
m.id
|
|
4591
4595
|
)),
|
|
4592
|
-
children: /* @__PURE__ */
|
|
4596
|
+
children: /* @__PURE__ */ w("div", { className: "flex gap-2 items-center h-11 cursor-pointer", children: [
|
|
4593
4597
|
/* @__PURE__ */ o(
|
|
4594
4598
|
ze,
|
|
4595
4599
|
{
|
|
@@ -4614,11 +4618,11 @@ const io = g(
|
|
|
4614
4618
|
}
|
|
4615
4619
|
) }) : (
|
|
4616
4620
|
// Desktop
|
|
4617
|
-
/* @__PURE__ */
|
|
4621
|
+
/* @__PURE__ */ w("div", { ref: y, className: "flex w-full items-start", children: [
|
|
4618
4622
|
/* @__PURE__ */ o("div", { ref: f, className: T, children: e.map((m) => /* @__PURE__ */ o(
|
|
4619
4623
|
"div",
|
|
4620
4624
|
{
|
|
4621
|
-
ref: r === m.id ?
|
|
4625
|
+
ref: r === m.id ? v : void 0,
|
|
4622
4626
|
className: "w-full",
|
|
4623
4627
|
children: /* @__PURE__ */ o(
|
|
4624
4628
|
ze,
|
|
@@ -4678,8 +4682,8 @@ const io = g(
|
|
|
4678
4682
|
titleCssClass: l
|
|
4679
4683
|
}) => {
|
|
4680
4684
|
const d = U(ho, i), u = !!r && !s && !n, p = typeof e == "string" ? /* @__PURE__ */ o(Se, { text: e }) : e;
|
|
4681
|
-
return /* @__PURE__ */
|
|
4682
|
-
u ? /* @__PURE__ */
|
|
4685
|
+
return /* @__PURE__ */ w("li", { className: d, children: [
|
|
4686
|
+
u ? /* @__PURE__ */ w(
|
|
4683
4687
|
"a",
|
|
4684
4688
|
{
|
|
4685
4689
|
className: U(
|
|
@@ -4694,7 +4698,7 @@ const io = g(
|
|
|
4694
4698
|
p
|
|
4695
4699
|
]
|
|
4696
4700
|
}
|
|
4697
|
-
) : /* @__PURE__ */
|
|
4701
|
+
) : /* @__PURE__ */ w(
|
|
4698
4702
|
"span",
|
|
4699
4703
|
{
|
|
4700
4704
|
className: U(
|
|
@@ -4827,7 +4831,7 @@ const io = g(
|
|
|
4827
4831
|
readonly: p,
|
|
4828
4832
|
invalid: y,
|
|
4829
4833
|
onChange: f,
|
|
4830
|
-
min:
|
|
4834
|
+
min: v,
|
|
4831
4835
|
max: x,
|
|
4832
4836
|
prefix: T,
|
|
4833
4837
|
suffix: R,
|
|
@@ -4837,18 +4841,18 @@ const io = g(
|
|
|
4837
4841
|
defaultValue: V,
|
|
4838
4842
|
tooltipText: z
|
|
4839
4843
|
}) => {
|
|
4840
|
-
const $ = (B) => B.target.blur(), k = d === "number" ||
|
|
4841
|
-
Lo(B, d,
|
|
4844
|
+
const $ = (B) => B.target.blur(), k = d === "number" || v !== void 0 || x !== void 0, O = (B) => {
|
|
4845
|
+
Lo(B, d, v, x);
|
|
4842
4846
|
}, q = (B) => {
|
|
4843
4847
|
const K = B.currentTarget.value;
|
|
4844
4848
|
if (k && K !== "") {
|
|
4845
4849
|
const ee = parseFloat(K);
|
|
4846
|
-
if (isNaN(ee) && K !== "-" && K !== "." || !isNaN(ee) && (
|
|
4850
|
+
if (isNaN(ee) && K !== "-" && K !== "." || !isNaN(ee) && (v !== void 0 && ee < v || x !== void 0 && ee > x))
|
|
4847
4851
|
return;
|
|
4848
4852
|
}
|
|
4849
4853
|
f?.(K);
|
|
4850
4854
|
};
|
|
4851
|
-
return /* @__PURE__ */
|
|
4855
|
+
return /* @__PURE__ */ w(
|
|
4852
4856
|
"div",
|
|
4853
4857
|
{
|
|
4854
4858
|
className: g(
|
|
@@ -4873,7 +4877,7 @@ const io = g(
|
|
|
4873
4877
|
elementId: m + "textBefore"
|
|
4874
4878
|
}
|
|
4875
4879
|
) }),
|
|
4876
|
-
T && /* @__PURE__ */
|
|
4880
|
+
T && /* @__PURE__ */ w("p", { className: "text-secondary dial-small mr-2", children: [
|
|
4877
4881
|
" ",
|
|
4878
4882
|
T
|
|
4879
4883
|
] }),
|
|
@@ -4897,7 +4901,7 @@ const io = g(
|
|
|
4897
4901
|
onKeyDown: O,
|
|
4898
4902
|
onWheel: $,
|
|
4899
4903
|
onBlur: N,
|
|
4900
|
-
min:
|
|
4904
|
+
min: v,
|
|
4901
4905
|
max: x,
|
|
4902
4906
|
defaultValue: V
|
|
4903
4907
|
}
|
|
@@ -4905,7 +4909,7 @@ const io = g(
|
|
|
4905
4909
|
}
|
|
4906
4910
|
),
|
|
4907
4911
|
/* @__PURE__ */ o(Z, { icon: r }),
|
|
4908
|
-
R && /* @__PURE__ */
|
|
4912
|
+
R && /* @__PURE__ */ w("p", { className: "text-secondary dial-small ml-2", children: [
|
|
4909
4913
|
" ",
|
|
4910
4914
|
R
|
|
4911
4915
|
] }),
|
|
@@ -4994,7 +4998,7 @@ const io = g(
|
|
|
4994
4998
|
elementContainerCssClass: a,
|
|
4995
4999
|
errorText: i,
|
|
4996
5000
|
...c
|
|
4997
|
-
}) => /* @__PURE__ */
|
|
5001
|
+
}) => /* @__PURE__ */ w("div", { className: U("flex flex-col", s), children: [
|
|
4998
5002
|
/* @__PURE__ */ o(
|
|
4999
5003
|
Re,
|
|
5000
5004
|
{
|
|
@@ -5031,7 +5035,7 @@ const io = g(
|
|
|
5031
5035
|
},
|
|
5032
5036
|
[s, t]
|
|
5033
5037
|
);
|
|
5034
|
-
return /* @__PURE__ */
|
|
5038
|
+
return /* @__PURE__ */ w("div", { className: "flex flex-row items-center", children: [
|
|
5035
5039
|
/* @__PURE__ */ o(
|
|
5036
5040
|
"input",
|
|
5037
5041
|
{
|
|
@@ -5078,7 +5082,7 @@ const Io = "z-[52] flex items-center justify-center bg-blackout md:p-4", No = "d
|
|
|
5078
5082
|
onOpenChange: (m) => {
|
|
5079
5083
|
m || d?.(null);
|
|
5080
5084
|
}
|
|
5081
|
-
}), f = i1(y, { role: "dialog" }),
|
|
5085
|
+
}), f = i1(y, { role: "dialog" }), v = a1(y, { outsidePress: !0 }), { getFloatingProps: x } = l1([f, v]);
|
|
5082
5086
|
if (!e) return null;
|
|
5083
5087
|
const T = typeof r == "string" ? "dial-popup-heading" : void 0, R = (m) => m ? typeof m == "string" ? /* @__PURE__ */ o(
|
|
5084
5088
|
"h3",
|
|
@@ -5091,7 +5095,7 @@ const Io = "z-[52] flex items-center justify-center bg-blackout md:p-4", No = "d
|
|
|
5091
5095
|
children: /* @__PURE__ */ o(me, { tooltip: m, children: m })
|
|
5092
5096
|
}
|
|
5093
5097
|
) : m : /* @__PURE__ */ o("span", {});
|
|
5094
|
-
return /* @__PURE__ */ o(c1, { id: t, children: /* @__PURE__ */ o(Dr, { className: g(Io, s), children: /* @__PURE__ */ o(F1, { context: y, children: /* @__PURE__ */
|
|
5098
|
+
return /* @__PURE__ */ o(c1, { id: t, children: /* @__PURE__ */ o(Dr, { className: g(Io, s), children: /* @__PURE__ */ o(F1, { context: y, children: /* @__PURE__ */ w(
|
|
5095
5099
|
"div",
|
|
5096
5100
|
{
|
|
5097
5101
|
ref: p.setFloating,
|
|
@@ -5106,7 +5110,7 @@ const Io = "z-[52] flex items-center justify-center bg-blackout md:p-4", No = "d
|
|
|
5106
5110
|
n
|
|
5107
5111
|
),
|
|
5108
5112
|
children: [
|
|
5109
|
-
/* @__PURE__ */
|
|
5113
|
+
/* @__PURE__ */ w("div", { className: So, children: [
|
|
5110
5114
|
R(r),
|
|
5111
5115
|
/* @__PURE__ */ o(
|
|
5112
5116
|
mr,
|
|
@@ -5148,12 +5152,12 @@ const Mo = "flex justify-end gap-2 px-6 py-4", Ro = "text-secondary dial-small-1
|
|
|
5148
5152
|
onConfirm: p,
|
|
5149
5153
|
onCancel: y,
|
|
5150
5154
|
children: f,
|
|
5151
|
-
dividers:
|
|
5155
|
+
dividers: v = !1,
|
|
5152
5156
|
variant: x = We.Info,
|
|
5153
5157
|
size: T = pe.Sm,
|
|
5154
5158
|
footer: R
|
|
5155
5159
|
}) => {
|
|
5156
|
-
const m = i ? null : /* @__PURE__ */
|
|
5160
|
+
const m = i ? null : /* @__PURE__ */ w("div", { className: Mo, children: [
|
|
5157
5161
|
/* @__PURE__ */ o(
|
|
5158
5162
|
te,
|
|
5159
5163
|
{
|
|
@@ -5185,7 +5189,7 @@ const Mo = "flex justify-end gap-2 px-6 py-4", Ro = "text-secondary dial-small-1
|
|
|
5185
5189
|
open: n,
|
|
5186
5190
|
title: e,
|
|
5187
5191
|
cssClass: g(T1[x].container, l),
|
|
5188
|
-
dividers:
|
|
5192
|
+
dividers: v,
|
|
5189
5193
|
onClose: () => u?.(),
|
|
5190
5194
|
footer: R ?? m,
|
|
5191
5195
|
size: T,
|
|
@@ -5221,8 +5225,8 @@ const Mo = "flex justify-end gap-2 px-6 py-4", Ro = "text-secondary dial-small-1
|
|
|
5221
5225
|
emptyValueText: d
|
|
5222
5226
|
}) => {
|
|
5223
5227
|
const u = Array.isArray(n) && n.length > 0, p = typeof n == "string" && !!n.trim(), y = u || p ? n : d, f = t ? void 0 : i;
|
|
5224
|
-
return /* @__PURE__ */
|
|
5225
|
-
u ? /* @__PURE__ */ o("div", { className: "w-full", onClick: f, children: /* @__PURE__ */
|
|
5228
|
+
return /* @__PURE__ */ w(Ce, { children: [
|
|
5229
|
+
u ? /* @__PURE__ */ o("div", { className: "w-full", onClick: f, children: /* @__PURE__ */ w(
|
|
5226
5230
|
"div",
|
|
5227
5231
|
{
|
|
5228
5232
|
className: g(
|
|
@@ -5246,7 +5250,7 @@ const Mo = "flex justify-end gap-2 px-6 py-4", Ro = "text-secondary dial-small-1
|
|
|
5246
5250
|
) })
|
|
5247
5251
|
]
|
|
5248
5252
|
}
|
|
5249
|
-
) }) : /* @__PURE__ */
|
|
5253
|
+
) }) : /* @__PURE__ */ w(Ce, { children: [
|
|
5250
5254
|
/* @__PURE__ */ o(
|
|
5251
5255
|
"button",
|
|
5252
5256
|
{
|
|
@@ -5255,7 +5259,7 @@ const Mo = "flex justify-end gap-2 px-6 py-4", Ro = "text-secondary dial-small-1
|
|
|
5255
5259
|
onClick: f,
|
|
5256
5260
|
"aria-label": "open-popup",
|
|
5257
5261
|
id: c,
|
|
5258
|
-
children: /* @__PURE__ */
|
|
5262
|
+
children: /* @__PURE__ */ w(
|
|
5259
5263
|
"div",
|
|
5260
5264
|
{
|
|
5261
5265
|
className: g(
|
|
@@ -5303,7 +5307,7 @@ const Mo = "flex justify-end gap-2 px-6 py-4", Ro = "text-secondary dial-small-1
|
|
|
5303
5307
|
portalId: p,
|
|
5304
5308
|
onApply: y,
|
|
5305
5309
|
cancelButtonTitle: f = "Cancel",
|
|
5306
|
-
applyButtonTitle:
|
|
5310
|
+
applyButtonTitle: v = "Apply",
|
|
5307
5311
|
isValid: x,
|
|
5308
5312
|
selectedRadioValue: T,
|
|
5309
5313
|
onChangeRadioField: R,
|
|
@@ -5317,7 +5321,7 @@ const Mo = "flex justify-end gap-2 px-6 py-4", Ro = "text-secondary dial-small-1
|
|
|
5317
5321
|
}, [d]), k = E(() => {
|
|
5318
5322
|
y(), $();
|
|
5319
5323
|
}, [y, $]);
|
|
5320
|
-
return /* @__PURE__ */
|
|
5324
|
+
return /* @__PURE__ */ w("div", { className: "flex flex-col", children: [
|
|
5321
5325
|
/* @__PURE__ */ o(Re, { fieldTitle: e, htmlFor: r }),
|
|
5322
5326
|
/* @__PURE__ */ o(
|
|
5323
5327
|
Po,
|
|
@@ -5337,7 +5341,7 @@ const Mo = "flex justify-end gap-2 px-6 py-4", Ro = "text-secondary dial-small-1
|
|
|
5337
5341
|
title: u,
|
|
5338
5342
|
portalId: p,
|
|
5339
5343
|
size: L,
|
|
5340
|
-
footer: /* @__PURE__ */
|
|
5344
|
+
footer: /* @__PURE__ */ w("div", { className: "flex flex-row items-center justify-end gap-2 px-6 py-4", children: [
|
|
5341
5345
|
/* @__PURE__ */ o(
|
|
5342
5346
|
te,
|
|
5343
5347
|
{
|
|
@@ -5350,7 +5354,7 @@ const Mo = "flex justify-end gap-2 px-6 py-4", Ro = "text-secondary dial-small-1
|
|
|
5350
5354
|
te,
|
|
5351
5355
|
{
|
|
5352
5356
|
variant: J.Primary,
|
|
5353
|
-
title:
|
|
5357
|
+
title: v,
|
|
5354
5358
|
onClick: k,
|
|
5355
5359
|
disable: !x
|
|
5356
5360
|
}
|
|
@@ -5387,9 +5391,9 @@ const Mo = "flex justify-end gap-2 px-6 py-4", Ro = "text-secondary dial-small-1
|
|
|
5387
5391
|
children: p,
|
|
5388
5392
|
dividers: y = !0,
|
|
5389
5393
|
size: f = pe.Md,
|
|
5390
|
-
footer:
|
|
5394
|
+
footer: v
|
|
5391
5395
|
}) => {
|
|
5392
|
-
const x = s ? null : /* @__PURE__ */
|
|
5396
|
+
const x = s ? null : /* @__PURE__ */ w("div", { className: zo, children: [
|
|
5393
5397
|
/* @__PURE__ */ o(
|
|
5394
5398
|
te,
|
|
5395
5399
|
{
|
|
@@ -5417,7 +5421,7 @@ const Mo = "flex justify-end gap-2 px-6 py-4", Ro = "text-secondary dial-small-1
|
|
|
5417
5421
|
cssClass: i,
|
|
5418
5422
|
dividers: y,
|
|
5419
5423
|
onClose: () => l?.(),
|
|
5420
|
-
footer:
|
|
5424
|
+
footer: v ?? x,
|
|
5421
5425
|
size: f,
|
|
5422
5426
|
children: T()
|
|
5423
5427
|
}
|
|
@@ -5459,7 +5463,7 @@ const Mo = "flex justify-end gap-2 px-6 py-4", Ro = "text-secondary dial-small-1
|
|
|
5459
5463
|
elementId: n,
|
|
5460
5464
|
errorText: s,
|
|
5461
5465
|
...a
|
|
5462
|
-
}) => /* @__PURE__ */
|
|
5466
|
+
}) => /* @__PURE__ */ w("div", { className: "flex flex-col", children: [
|
|
5463
5467
|
/* @__PURE__ */ o(
|
|
5464
5468
|
Re,
|
|
5465
5469
|
{
|
|
@@ -5514,10 +5518,10 @@ const Bo = {
|
|
|
5514
5518
|
p(x), l?.(x);
|
|
5515
5519
|
},
|
|
5516
5520
|
[l]
|
|
5517
|
-
), f = Bo[d],
|
|
5521
|
+
), f = Bo[d], v = E(() => {
|
|
5518
5522
|
y("");
|
|
5519
5523
|
}, [y]);
|
|
5520
|
-
return /* @__PURE__ */
|
|
5524
|
+
return /* @__PURE__ */ w(
|
|
5521
5525
|
"div",
|
|
5522
5526
|
{
|
|
5523
5527
|
className: g(
|
|
@@ -5569,7 +5573,7 @@ const Bo = {
|
|
|
5569
5573
|
{
|
|
5570
5574
|
size: f.iconSize,
|
|
5571
5575
|
stroke: f.iconStroke,
|
|
5572
|
-
onClick:
|
|
5576
|
+
onClick: v,
|
|
5573
5577
|
"aria-label": "Clear search",
|
|
5574
5578
|
role: "button"
|
|
5575
5579
|
}
|
|
@@ -5599,7 +5603,7 @@ const Bo = {
|
|
|
5599
5603
|
},
|
|
5600
5604
|
[l]
|
|
5601
5605
|
);
|
|
5602
|
-
return /* @__PURE__ */
|
|
5606
|
+
return /* @__PURE__ */ w(
|
|
5603
5607
|
"div",
|
|
5604
5608
|
{
|
|
5605
5609
|
className: g([
|
|
@@ -5640,7 +5644,7 @@ const Bo = {
|
|
|
5640
5644
|
disabled: c,
|
|
5641
5645
|
onChange: l
|
|
5642
5646
|
}) => {
|
|
5643
|
-
const d = le(null), [u, p] = j(e), [y, f] = j(""), [
|
|
5647
|
+
const d = le(null), [u, p] = j(e), [y, f] = j(""), [v, x] = j(!1), T = (L) => {
|
|
5644
5648
|
const N = L.trim().replace(/,$/, "");
|
|
5645
5649
|
if (N && !u.includes(N)) {
|
|
5646
5650
|
const V = [N, ...u];
|
|
@@ -5660,7 +5664,7 @@ const Bo = {
|
|
|
5660
5664
|
}
|
|
5661
5665
|
});
|
|
5662
5666
|
return d.current && L.observe(d.current), () => L.disconnect();
|
|
5663
|
-
}, [u]), /* @__PURE__ */
|
|
5667
|
+
}, [u]), /* @__PURE__ */ w("div", { className: g("flex flex-col w-full"), children: [
|
|
5664
5668
|
/* @__PURE__ */ o(
|
|
5665
5669
|
Re,
|
|
5666
5670
|
{
|
|
@@ -5677,13 +5681,13 @@ const Bo = {
|
|
|
5677
5681
|
i && "dial-input-error",
|
|
5678
5682
|
c && "dial-input-disable"
|
|
5679
5683
|
),
|
|
5680
|
-
children: /* @__PURE__ */
|
|
5684
|
+
children: /* @__PURE__ */ w(
|
|
5681
5685
|
"div",
|
|
5682
5686
|
{
|
|
5683
5687
|
ref: d,
|
|
5684
5688
|
className: g(
|
|
5685
5689
|
"flex flex-wrap gap-2 items-center",
|
|
5686
|
-
|
|
5690
|
+
v ? "flex-col-reverse" : "flex-row"
|
|
5687
5691
|
),
|
|
5688
5692
|
children: [
|
|
5689
5693
|
u.map((L, N) => /* @__PURE__ */ o(
|
|
@@ -5746,7 +5750,7 @@ const Bo = {
|
|
|
5746
5750
|
disabled: p = !1,
|
|
5747
5751
|
cssClass: y,
|
|
5748
5752
|
closable: f = !1,
|
|
5749
|
-
onClose:
|
|
5753
|
+
onClose: v,
|
|
5750
5754
|
onChange: x
|
|
5751
5755
|
}) => {
|
|
5752
5756
|
const [T, R] = j(!1), [m, L] = j(""), N = W1(), V = t !== void 0, [z, $] = j(n), k = V ? t : z, O = A(() => r ? Array.isArray(k) ? k : [] : typeof k == "string" ? [k] : [], [k, r]), q = A(() => {
|
|
@@ -5802,7 +5806,7 @@ const Bo = {
|
|
|
5802
5806
|
selectedValues: O,
|
|
5803
5807
|
handleRemoveTag: ee
|
|
5804
5808
|
}
|
|
5805
|
-
), [r, e, O, ee]), H = E(() => r ? ce ? ae() : /* @__PURE__ */ o("span", { className: "text-secondary truncate", children: s }) : _ ? /* @__PURE__ */
|
|
5809
|
+
), [r, e, O, ee]), H = E(() => r ? ce ? ae() : /* @__PURE__ */ o("span", { className: "text-secondary truncate", children: s }) : _ ? /* @__PURE__ */ w(Ce, { children: [
|
|
5806
5810
|
_.icon && /* @__PURE__ */ o(Z, { icon: _.icon }),
|
|
5807
5811
|
/* @__PURE__ */ o(Se, { text: _.label })
|
|
5808
5812
|
] }) : /* @__PURE__ */ o("span", { className: "text-secondary truncate", children: s }), [ce, r, s, ae, _]);
|
|
@@ -5813,10 +5817,10 @@ const Bo = {
|
|
|
5813
5817
|
onOpenChange: R,
|
|
5814
5818
|
disabled: p,
|
|
5815
5819
|
closable: f,
|
|
5816
|
-
onClose:
|
|
5820
|
+
onClose: v,
|
|
5817
5821
|
placement: "bottom-start",
|
|
5818
5822
|
allowedPlacements: ["bottom-start", "top-start"],
|
|
5819
|
-
renderOverlay: () => /* @__PURE__ */
|
|
5823
|
+
renderOverlay: () => /* @__PURE__ */ w(
|
|
5820
5824
|
"div",
|
|
5821
5825
|
{
|
|
5822
5826
|
id: N,
|
|
@@ -5824,7 +5828,7 @@ const Bo = {
|
|
|
5824
5828
|
"aria-multiselectable": r || void 0,
|
|
5825
5829
|
className: Go,
|
|
5826
5830
|
children: [
|
|
5827
|
-
(a || f) && /* @__PURE__ */
|
|
5831
|
+
(a || f) && /* @__PURE__ */ w("div", { className: "flex items-center gap-2 px-2 pt-2", children: [
|
|
5828
5832
|
a && /* @__PURE__ */ o(
|
|
5829
5833
|
Wo,
|
|
5830
5834
|
{
|
|
@@ -5840,7 +5844,7 @@ const Bo = {
|
|
|
5840
5844
|
cssClass: "shrink-0",
|
|
5841
5845
|
iconBefore: /* @__PURE__ */ o(Te, { size: 16 }),
|
|
5842
5846
|
onClick: (h) => {
|
|
5843
|
-
|
|
5847
|
+
v?.(h), R(!1);
|
|
5844
5848
|
}
|
|
5845
5849
|
}
|
|
5846
5850
|
)
|
|
@@ -5878,7 +5882,7 @@ const Bo = {
|
|
|
5878
5882
|
C1,
|
|
5879
5883
|
{
|
|
5880
5884
|
id: `${N}-${h.value}`,
|
|
5881
|
-
label: /* @__PURE__ */
|
|
5885
|
+
label: /* @__PURE__ */ w("span", { className: "flex w-full flex-1 min-w-0 items-center gap-2 text-primary", children: [
|
|
5882
5886
|
h.icon && /* @__PURE__ */ o(Z, { icon: h.icon }),
|
|
5883
5887
|
/* @__PURE__ */ o("span", { className: "truncate", children: h.label })
|
|
5884
5888
|
] }),
|
|
@@ -5904,7 +5908,7 @@ const Bo = {
|
|
|
5904
5908
|
h.disabled && R1
|
|
5905
5909
|
),
|
|
5906
5910
|
onClick: () => !h.disabled && K(h.value),
|
|
5907
|
-
children: /* @__PURE__ */
|
|
5911
|
+
children: /* @__PURE__ */ w("div", { className: "flex items-center gap-2 w-full", children: [
|
|
5908
5912
|
h.icon && /* @__PURE__ */ o(Z, { icon: h.icon }),
|
|
5909
5913
|
/* @__PURE__ */ o(Se, { text: h.label })
|
|
5910
5914
|
] })
|
|
@@ -5915,7 +5919,7 @@ const Bo = {
|
|
|
5915
5919
|
]
|
|
5916
5920
|
}
|
|
5917
5921
|
),
|
|
5918
|
-
children: /* @__PURE__ */
|
|
5922
|
+
children: /* @__PURE__ */ w(
|
|
5919
5923
|
"button",
|
|
5920
5924
|
{
|
|
5921
5925
|
type: "button",
|
|
@@ -5969,7 +5973,7 @@ const Bo = {
|
|
|
5969
5973
|
);
|
|
5970
5974
|
{
|
|
5971
5975
|
const f = p.options?.find(
|
|
5972
|
-
(
|
|
5976
|
+
(v) => v.value === d
|
|
5973
5977
|
);
|
|
5974
5978
|
return /* @__PURE__ */ o("span", { "aria-readonly": !0, className: "text-primary", children: f?.label || d });
|
|
5975
5979
|
}
|