@imj_media/ui 1.0.82 → 1.2.0
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/index.css +1 -1
- package/dist/index.esm.js +108 -108
- package/dist/index.esm.js.map +1 -1
- package/dist/index.js +6 -6
- package/dist/index.js.map +1 -1
- package/dist/modules/Table/stories/Table.stories.d.ts +7 -0
- package/dist/modules/Table/stories/Table.stories.d.ts.map +1 -1
- package/dist/shared/types/table.d.ts +2 -3
- package/dist/shared/types/table.d.ts.map +1 -1
- package/package.json +1 -1
package/dist/index.esm.js
CHANGED
|
@@ -19426,43 +19426,43 @@ const Y4 = (t = "top", r = "center", o = !1, e = 0, n = !1) => {
|
|
|
19426
19426
|
if (o) {
|
|
19427
19427
|
const z = (J = m.current) == null ? void 0 : J.getBoundingClientRect();
|
|
19428
19428
|
if (!z) return;
|
|
19429
|
-
const _ = w.top - z.top,
|
|
19429
|
+
const _ = w.top - z.top, Y = w.left - z.left;
|
|
19430
19430
|
switch (t) {
|
|
19431
19431
|
case "top":
|
|
19432
|
-
T = _ - v.height - $, N =
|
|
19432
|
+
T = _ - v.height - $, N = Y + w.width / 2 - v.width / 2;
|
|
19433
19433
|
break;
|
|
19434
19434
|
case "bottom":
|
|
19435
|
-
T = _ + w.height + $, N =
|
|
19435
|
+
T = _ + w.height + $, N = Y + w.width / 2 - v.width / 2;
|
|
19436
19436
|
break;
|
|
19437
19437
|
case "left":
|
|
19438
|
-
T = _ + w.height / 2 - v.height / 2, N =
|
|
19438
|
+
T = _ + w.height / 2 - v.height / 2, N = Y - v.width - $;
|
|
19439
19439
|
break;
|
|
19440
19440
|
case "right":
|
|
19441
|
-
T = _ + w.height / 2 - v.height / 2, N =
|
|
19441
|
+
T = _ + w.height / 2 - v.height / 2, N = Y + w.width + $;
|
|
19442
19442
|
break;
|
|
19443
19443
|
case "top-left":
|
|
19444
|
-
T = _ - v.height - $, N =
|
|
19444
|
+
T = _ - v.height - $, N = Y;
|
|
19445
19445
|
break;
|
|
19446
19446
|
case "top-right":
|
|
19447
|
-
T = _ - v.height - $, N =
|
|
19447
|
+
T = _ - v.height - $, N = Y + w.width - v.width;
|
|
19448
19448
|
break;
|
|
19449
19449
|
case "bottom-left":
|
|
19450
|
-
T = _ + w.height + $, N =
|
|
19450
|
+
T = _ + w.height + $, N = Y;
|
|
19451
19451
|
break;
|
|
19452
19452
|
case "bottom-right":
|
|
19453
|
-
T = _ + w.height + $, N =
|
|
19453
|
+
T = _ + w.height + $, N = Y + w.width - v.width;
|
|
19454
19454
|
break;
|
|
19455
19455
|
case "right-top":
|
|
19456
|
-
T = _, N =
|
|
19456
|
+
T = _, N = Y + w.width + $;
|
|
19457
19457
|
break;
|
|
19458
19458
|
case "right-bottom":
|
|
19459
|
-
T = _ + w.height - v.height, N =
|
|
19459
|
+
T = _ + w.height - v.height, N = Y + w.width + $;
|
|
19460
19460
|
break;
|
|
19461
19461
|
case "left-top":
|
|
19462
|
-
T = _, N =
|
|
19462
|
+
T = _, N = Y - v.width - $;
|
|
19463
19463
|
break;
|
|
19464
19464
|
case "left-bottom":
|
|
19465
|
-
T = _ + w.height - v.height, N =
|
|
19465
|
+
T = _ + w.height - v.height, N = Y - v.width - $;
|
|
19466
19466
|
break;
|
|
19467
19467
|
}
|
|
19468
19468
|
T < 0 && (T = 0), N < 0 && (N = 0), (() => {
|
|
@@ -19477,25 +19477,25 @@ const Y4 = (t = "top", r = "center", o = !1, e = 0, n = !1) => {
|
|
|
19477
19477
|
case "bottom":
|
|
19478
19478
|
return _ + w.height + $ + v.height <= C1.height;
|
|
19479
19479
|
case "left":
|
|
19480
|
-
return
|
|
19480
|
+
return Y >= v.width + $;
|
|
19481
19481
|
case "right":
|
|
19482
|
-
return
|
|
19482
|
+
return Y + w.width + $ + v.width <= C1.width;
|
|
19483
19483
|
default:
|
|
19484
19484
|
return !0;
|
|
19485
19485
|
}
|
|
19486
|
-
})() && (t === "top" ? _ + w.height + $ + v.height <= C1.height && (g1 = "bottom", K = !0) : t === "bottom" ? _ >= v.height + $ && (g1 = "top", K = !0) : t === "left" ?
|
|
19486
|
+
})() && (t === "top" ? _ + w.height + $ + v.height <= C1.height && (g1 = "bottom", K = !0) : t === "bottom" ? _ >= v.height + $ && (g1 = "top", K = !0) : t === "left" ? Y + w.width + $ + v.width <= C1.width && (g1 = "right", K = !0) : t === "right" && Y >= v.width + $ && (g1 = "left", K = !0), K)) {
|
|
19487
19487
|
switch (g1) {
|
|
19488
19488
|
case "top":
|
|
19489
|
-
T = _ - v.height - $, N =
|
|
19489
|
+
T = _ - v.height - $, N = Y + w.width / 2 - v.width / 2;
|
|
19490
19490
|
break;
|
|
19491
19491
|
case "bottom":
|
|
19492
|
-
T = _ + w.height + $, N =
|
|
19492
|
+
T = _ + w.height + $, N = Y + w.width / 2 - v.width / 2;
|
|
19493
19493
|
break;
|
|
19494
19494
|
case "left":
|
|
19495
|
-
T = _ + w.height / 2 - v.height / 2, N =
|
|
19495
|
+
T = _ + w.height / 2 - v.height / 2, N = Y - v.width - $;
|
|
19496
19496
|
break;
|
|
19497
19497
|
case "right":
|
|
19498
|
-
T = _ + w.height / 2 - v.height / 2, N =
|
|
19498
|
+
T = _ + w.height / 2 - v.height / 2, N = Y + w.width + $;
|
|
19499
19499
|
break;
|
|
19500
19500
|
}
|
|
19501
19501
|
h(g1);
|
|
@@ -19578,8 +19578,8 @@ const Y4 = (t = "top", r = "center", o = !1, e = 0, n = !1) => {
|
|
|
19578
19578
|
const z = (P = m.current) == null ? void 0 : P.getBoundingClientRect();
|
|
19579
19579
|
z && (N < 8 && (N = 8), N + v.width > z.width - 8 && (N = z.width - v.width - 8), T < 8 && (T = 8), T + v.height > z.height - 8 && (T = z.height - v.height - 8));
|
|
19580
19580
|
} else {
|
|
19581
|
-
const z = window.innerWidth, _ = window.innerHeight,
|
|
19582
|
-
N <
|
|
19581
|
+
const z = window.innerWidth, _ = window.innerHeight, Y = 8;
|
|
19582
|
+
N < Y && (N = Y), N + v.width > z - Y && (N = z - v.width - Y), T < Y && (T = Y), T + v.height > _ - Y && (T = _ - v.height - Y);
|
|
19583
19583
|
}
|
|
19584
19584
|
if (isNaN(T) || isNaN(N) || T < 0 || N < 0) {
|
|
19585
19585
|
x();
|
|
@@ -20042,7 +20042,7 @@ const Y4 = (t = "top", r = "center", o = !1, e = 0, n = !1) => {
|
|
|
20042
20042
|
pill: P = "none",
|
|
20043
20043
|
textAlign: z = "center",
|
|
20044
20044
|
whiteBackground: _ = !0,
|
|
20045
|
-
strokeWidth:
|
|
20045
|
+
strokeWidth: Y = 2,
|
|
20046
20046
|
transition: p1 = !0,
|
|
20047
20047
|
...C1
|
|
20048
20048
|
}) => {
|
|
@@ -20078,7 +20078,7 @@ const Y4 = (t = "top", r = "center", o = !1, e = 0, n = !1) => {
|
|
|
20078
20078
|
className: t,
|
|
20079
20079
|
onClick: H,
|
|
20080
20080
|
defaultSizeIcon: h1,
|
|
20081
|
-
strokeWidth:
|
|
20081
|
+
strokeWidth: Y
|
|
20082
20082
|
}
|
|
20083
20083
|
),
|
|
20084
20084
|
d && /* @__PURE__ */ p(
|
|
@@ -20099,7 +20099,7 @@ const Y4 = (t = "top", r = "center", o = !1, e = 0, n = !1) => {
|
|
|
20099
20099
|
!d && f && (typeof f == "string" ? /* @__PURE__ */ i(
|
|
20100
20100
|
a1,
|
|
20101
20101
|
{
|
|
20102
|
-
strokeWidth:
|
|
20102
|
+
strokeWidth: Y,
|
|
20103
20103
|
name: f,
|
|
20104
20104
|
size: u === "icon" ? m : M !== "none" ? M : m,
|
|
20105
20105
|
color: x,
|
|
@@ -20115,7 +20115,7 @@ const Y4 = (t = "top", r = "center", o = !1, e = 0, n = !1) => {
|
|
|
20115
20115
|
className: t,
|
|
20116
20116
|
onClick: I,
|
|
20117
20117
|
defaultSizeIcon: h1,
|
|
20118
|
-
strokeWidth:
|
|
20118
|
+
strokeWidth: Y
|
|
20119
20119
|
}
|
|
20120
20120
|
)
|
|
20121
20121
|
] }), r1 = g ? "!ui-p-0 ui-flex ui-justify-center ui-items-center" : "", l1 = f1(
|
|
@@ -21916,8 +21916,8 @@ const y8 = (t) => {
|
|
|
21916
21916
|
const Z = N.getBoundingClientRect(), D = window.innerHeight, J = window.innerWidth, U = 320, q = 256, G = 8;
|
|
21917
21917
|
let F, P = Z.left;
|
|
21918
21918
|
const z = D - Z.bottom, _ = Z.top;
|
|
21919
|
-
z >= U + G ? F = Z.bottom + G : _ >= U + G ? F = Z.top - U - G : z > _ ? F = Z.bottom + G : F = Z.top - U - G, Z.left + q > J && (P = Z.right - q), P = Math.max(0, Math.min(P, J - q)), c((
|
|
21920
|
-
...
|
|
21919
|
+
z >= U + G ? F = Z.bottom + G : _ >= U + G ? F = Z.top - U - G : z > _ ? F = Z.bottom + G : F = Z.top - U - G, Z.left + q > J && (P = Z.right - q), P = Math.max(0, Math.min(P, J - q)), c((Y) => ({
|
|
21920
|
+
...Y,
|
|
21921
21921
|
isOpen: !0,
|
|
21922
21922
|
portalPosition: { top: F, left: P }
|
|
21923
21923
|
})), d(!0);
|
|
@@ -21995,7 +21995,7 @@ const y8 = (t) => {
|
|
|
21995
21995
|
const Z = N.getBoundingClientRect(), D = window.innerHeight, J = window.innerWidth, U = 320, q = 256, G = 8;
|
|
21996
21996
|
let F, P = Z.left;
|
|
21997
21997
|
const z = D - Z.bottom, _ = Z.top;
|
|
21998
|
-
z >= U + G ? F = Z.bottom + G : _ >= U + G ? F = Z.top - U - G : z > _ ? F = Z.bottom + G : F = Z.top - U - G, Z.left + q > J && (P = Z.right - q), P = Math.max(0, Math.min(P, J - q)), c((
|
|
21998
|
+
z >= U + G ? F = Z.bottom + G : _ >= U + G ? F = Z.top - U - G : z > _ ? F = Z.bottom + G : F = Z.top - U - G, Z.left + q > J && (P = Z.right - q), P = Math.max(0, Math.min(P, J - q)), c((Y) => ({ ...Y, portalPosition: { top: F, left: P } })), d(!0);
|
|
21999
21999
|
}, []);
|
|
22000
22000
|
return Q(() => {
|
|
22001
22001
|
if (!l.isOpen) return;
|
|
@@ -22983,8 +22983,8 @@ const y8 = (t) => {
|
|
|
22983
22983
|
default:
|
|
22984
22984
|
_ = "days";
|
|
22985
22985
|
}
|
|
22986
|
-
const
|
|
22987
|
-
|
|
22986
|
+
const Y = [...T];
|
|
22987
|
+
Y[P] = _, N(Y);
|
|
22988
22988
|
}, q = (P, z) => {
|
|
22989
22989
|
const _ = [...Z];
|
|
22990
22990
|
_[P] = new Date(
|
|
@@ -22992,18 +22992,18 @@ const y8 = (t) => {
|
|
|
22992
22992
|
z,
|
|
22993
22993
|
1
|
|
22994
22994
|
), D(_);
|
|
22995
|
-
const
|
|
22996
|
-
|
|
22995
|
+
const Y = [...T];
|
|
22996
|
+
Y[P] = "days", N(Y), d == null || d(z);
|
|
22997
22997
|
}, G = (P, z) => {
|
|
22998
22998
|
const _ = [...Z];
|
|
22999
22999
|
_[P] = new Date(z, Z[P].getMonth(), 1), D(_);
|
|
23000
|
-
const
|
|
23001
|
-
|
|
23000
|
+
const Y = [...T];
|
|
23001
|
+
Y[P] = "months", N(Y), s == null || s(z);
|
|
23002
23002
|
}, F = (P) => {
|
|
23003
23003
|
const z = [...Z];
|
|
23004
|
-
z.forEach((_,
|
|
23004
|
+
z.forEach((_, Y) => {
|
|
23005
23005
|
const p1 = new Date(_);
|
|
23006
|
-
switch (T[
|
|
23006
|
+
switch (T[Y]) {
|
|
23007
23007
|
case "days":
|
|
23008
23008
|
p1.setMonth(p1.getMonth() + (P === "next" ? 1 : -1));
|
|
23009
23009
|
break;
|
|
@@ -23014,7 +23014,7 @@ const y8 = (t) => {
|
|
|
23014
23014
|
p1.setFullYear(p1.getFullYear() + (P === "next" ? 12 : -12));
|
|
23015
23015
|
break;
|
|
23016
23016
|
}
|
|
23017
|
-
z[
|
|
23017
|
+
z[Y] = p1;
|
|
23018
23018
|
}), D(z), C(P);
|
|
23019
23019
|
};
|
|
23020
23020
|
return J(
|
|
@@ -23147,7 +23147,7 @@ const y8 = (t) => {
|
|
|
23147
23147
|
return "";
|
|
23148
23148
|
const h1 = K.getDate().toString().padStart(2, "0"), R = (K.getMonth() + 1).toString().padStart(2, "0"), t1 = K.getFullYear();
|
|
23149
23149
|
return T.replace("dd", h1).replace("MM", R).replace("yyyy", t1.toString());
|
|
23150
|
-
},
|
|
23150
|
+
}, Y = (K) => {
|
|
23151
23151
|
if (!K || !K.start && !K.end) return "";
|
|
23152
23152
|
const h1 = K.start && K.start instanceof Date && !isNaN(K.start.getTime()), R = K.end && K.end instanceof Date && !isNaN(K.end.getTime());
|
|
23153
23153
|
return h1 && R ? `${_(K.start)} - ${_(K.end)}` : h1 ? _(K.start) : R ? _(K.end) : "";
|
|
@@ -23163,7 +23163,7 @@ const y8 = (t) => {
|
|
|
23163
23163
|
return;
|
|
23164
23164
|
}
|
|
23165
23165
|
P.setHoverDate(K);
|
|
23166
|
-
}, g1 = () => r === "single" ? _(U) :
|
|
23166
|
+
}, g1 = () => r === "single" ? _(U) : Y(q);
|
|
23167
23167
|
return /* @__PURE__ */ p("div", { className: `relative ${f}`, children: [
|
|
23168
23168
|
/* @__PURE__ */ i(
|
|
23169
23169
|
S8,
|
|
@@ -24550,7 +24550,7 @@ Vuelve más tarde para ver las actualizaciones.`,
|
|
|
24550
24550
|
};
|
|
24551
24551
|
w(ne);
|
|
24552
24552
|
});
|
|
24553
|
-
}, [z, P.length, y, f]),
|
|
24553
|
+
}, [z, P.length, y, f]), Y = S(() => {
|
|
24554
24554
|
if (!$.current || !F.length)
|
|
24555
24555
|
return;
|
|
24556
24556
|
const t1 = $.current.querySelector(".ui-overflow-y-auto");
|
|
@@ -24572,7 +24572,7 @@ Vuelve más tarde para ver las actualizaciones.`,
|
|
|
24572
24572
|
R && R.stopPropagation(), !d && (j ? C1() : (E8(y), O(""), B(!1), _(), setTimeout(() => {
|
|
24573
24573
|
H(!0), Ve.add(y), setTimeout(() => {
|
|
24574
24574
|
_(), setTimeout(() => {
|
|
24575
|
-
|
|
24575
|
+
Y();
|
|
24576
24576
|
}, 50);
|
|
24577
24577
|
}, 50);
|
|
24578
24578
|
}, 50)));
|
|
@@ -24661,7 +24661,7 @@ Vuelve más tarde para ver las actualizaciones.`,
|
|
|
24661
24661
|
handleClear: h1,
|
|
24662
24662
|
calculatePosition: _,
|
|
24663
24663
|
setValue: G,
|
|
24664
|
-
scrollToSelectedOption:
|
|
24664
|
+
scrollToSelectedOption: Y,
|
|
24665
24665
|
normalizeToArray: N
|
|
24666
24666
|
};
|
|
24667
24667
|
}, O0 = ({
|
|
@@ -24999,7 +24999,7 @@ Vuelve más tarde para ver las actualizaciones.`,
|
|
|
24999
24999
|
onHandleAccept: J,
|
|
25000
25000
|
...U
|
|
25001
25001
|
}, q) => {
|
|
25002
|
-
const G = e1(null), [F, P] = E(a), [z, _] = E(null), [
|
|
25002
|
+
const G = e1(null), [F, P] = E(a), [z, _] = E(null), [Y, p1] = E(!1), K = V ? g : !V && Z ? [
|
|
25003
25003
|
{
|
|
25004
25004
|
...{
|
|
25005
25005
|
label: m || "Selecciona una opción",
|
|
@@ -25059,14 +25059,14 @@ Vuelve más tarde para ver las actualizaciones.`,
|
|
|
25059
25059
|
}
|
|
25060
25060
|
}), D1 = (A, W) => {
|
|
25061
25061
|
if (V) {
|
|
25062
|
-
const n1 = re(o1),
|
|
25062
|
+
const n1 = re(o1), X = A[j];
|
|
25063
25063
|
if (W) {
|
|
25064
|
-
if (!n1.includes(
|
|
25065
|
-
const d1 = [...n1,
|
|
25064
|
+
if (!n1.includes(X)) {
|
|
25065
|
+
const d1 = [...n1, X];
|
|
25066
25066
|
$1(d1);
|
|
25067
25067
|
}
|
|
25068
25068
|
} else {
|
|
25069
|
-
const d1 = n1.filter((M1) => M1 !==
|
|
25069
|
+
const d1 = n1.filter((M1) => M1 !== X);
|
|
25070
25070
|
$1(d1);
|
|
25071
25071
|
}
|
|
25072
25072
|
}
|
|
@@ -25081,7 +25081,7 @@ Vuelve más tarde para ver las actualizaciones.`,
|
|
|
25081
25081
|
);
|
|
25082
25082
|
if (A) {
|
|
25083
25083
|
const W = A.icon || a, n1 = A.iconColor || null;
|
|
25084
|
-
P((
|
|
25084
|
+
P((X) => X !== W ? W : X), _((X) => X !== n1 ? n1 : X);
|
|
25085
25085
|
}
|
|
25086
25086
|
}
|
|
25087
25087
|
}, [h, c1, K, y, j, a]), ge(
|
|
@@ -25153,10 +25153,10 @@ Vuelve más tarde para ver las actualizaciones.`,
|
|
|
25153
25153
|
}, [r1, R, V, v, k1]);
|
|
25154
25154
|
const oe = (A) => {
|
|
25155
25155
|
if (V) {
|
|
25156
|
-
const n1 = re(o1).filter((
|
|
25156
|
+
const n1 = re(o1).filter((X) => X !== A);
|
|
25157
25157
|
if ($1(n1), D && D1) {
|
|
25158
|
-
const
|
|
25159
|
-
|
|
25158
|
+
const X = g.find((d1) => d1[j] === A);
|
|
25159
|
+
X && D1(X, !1);
|
|
25160
25160
|
}
|
|
25161
25161
|
}
|
|
25162
25162
|
}, be = () => {
|
|
@@ -25177,8 +25177,8 @@ Vuelve más tarde para ver las actualizaciones.`,
|
|
|
25177
25177
|
}
|
|
25178
25178
|
}, k0 = () => {
|
|
25179
25179
|
if (!R || !l1.top) return null;
|
|
25180
|
-
const A = t1 ? "animate-dropdown-exit" : "animate-dropdown-enter", W = (
|
|
25181
|
-
ne(
|
|
25180
|
+
const A = t1 ? "animate-dropdown-exit" : "animate-dropdown-enter", W = (X, d1) => {
|
|
25181
|
+
ne(X, d1), X.icon && P(X.icon), X.iconColor && _(X.iconColor);
|
|
25182
25182
|
}, n1 = /* @__PURE__ */ p(
|
|
25183
25183
|
"div",
|
|
25184
25184
|
{
|
|
@@ -25195,9 +25195,9 @@ Vuelve más tarde para ver las actualizaciones.`,
|
|
|
25195
25195
|
"--dropdown-z-index": l1.zIndex
|
|
25196
25196
|
},
|
|
25197
25197
|
className: `ui-dropdown-portal py-2 ui-min-w-fit ui-overflow-hidden ui-rounded-sm ui-border ui-border-neutral-200 ui-bg-white ui-shadow-lg ${A}`,
|
|
25198
|
-
onClick: (
|
|
25198
|
+
onClick: (X) => X.stopPropagation(),
|
|
25199
25199
|
children: [
|
|
25200
|
-
/* @__PURE__ */ i("div", { children: x && /* @__PURE__ */ i("div", { className: "ui-p-2", onClick: (
|
|
25200
|
+
/* @__PURE__ */ i("div", { children: x && /* @__PURE__ */ i("div", { className: "ui-p-2", onClick: (X) => X.stopPropagation(), children: /* @__PURE__ */ i(
|
|
25201
25201
|
y1,
|
|
25202
25202
|
{
|
|
25203
25203
|
value: u1,
|
|
@@ -25210,41 +25210,41 @@ Vuelve más tarde para ver las actualizaciones.`,
|
|
|
25210
25210
|
}
|
|
25211
25211
|
) }) }),
|
|
25212
25212
|
x && /* @__PURE__ */ i(T1, {}),
|
|
25213
|
-
/* @__PURE__ */ i("div", { className: "custom-scrollbar ui-max-h-[200px] ui-overflow-y-auto ui-py-2", children: L1.length > 0 ? L1.map((
|
|
25213
|
+
/* @__PURE__ */ i("div", { className: "custom-scrollbar ui-max-h-[200px] ui-overflow-y-auto ui-py-2", children: L1.length > 0 ? L1.map((X) => {
|
|
25214
25214
|
const d1 = V ? r1.some(
|
|
25215
|
-
(M1) => M1 && M1[j] ===
|
|
25216
|
-
) :
|
|
25215
|
+
(M1) => M1 && M1[j] === X[j]
|
|
25216
|
+
) : X[j] === -1 && (o1 === -1 || o1 === "-1") || X[j] === o1;
|
|
25217
25217
|
return D ? /* @__PURE__ */ i(
|
|
25218
25218
|
xn,
|
|
25219
25219
|
{
|
|
25220
|
-
disabled:
|
|
25220
|
+
disabled: X.disabled,
|
|
25221
25221
|
current: d1 ? "blue" : !1,
|
|
25222
|
-
"data-option-value":
|
|
25223
|
-
icon:
|
|
25224
|
-
iconColor:
|
|
25222
|
+
"data-option-value": X[j],
|
|
25223
|
+
icon: X.icon,
|
|
25224
|
+
iconColor: X.iconColor,
|
|
25225
25225
|
checkboxProps: {
|
|
25226
25226
|
checked: d1,
|
|
25227
|
-
onChange: (M1) => D1 == null ? void 0 : D1(
|
|
25228
|
-
disabled:
|
|
25227
|
+
onChange: (M1) => D1 == null ? void 0 : D1(X, M1),
|
|
25228
|
+
disabled: X.disabled
|
|
25229
25229
|
},
|
|
25230
|
-
isGroupTitle:
|
|
25231
|
-
groupTitle:
|
|
25230
|
+
isGroupTitle: X.isGroupTitle,
|
|
25231
|
+
groupTitle: X.label,
|
|
25232
25232
|
hasCurrent: T,
|
|
25233
|
-
children:
|
|
25233
|
+
children: X[y]
|
|
25234
25234
|
},
|
|
25235
|
-
|
|
25235
|
+
X[j] || X[y]
|
|
25236
25236
|
) : /* @__PURE__ */ i(
|
|
25237
25237
|
bn,
|
|
25238
25238
|
{
|
|
25239
|
-
onClick: (M1) => W(
|
|
25240
|
-
disabled:
|
|
25239
|
+
onClick: (M1) => W(X, M1),
|
|
25240
|
+
disabled: X.disabled,
|
|
25241
25241
|
current: d1 ? "blue" : !1,
|
|
25242
|
-
"data-option-value":
|
|
25243
|
-
icon:
|
|
25244
|
-
iconColor:
|
|
25245
|
-
children:
|
|
25242
|
+
"data-option-value": X[j],
|
|
25243
|
+
icon: X.icon,
|
|
25244
|
+
iconColor: X.iconColor,
|
|
25245
|
+
children: X[y]
|
|
25246
25246
|
},
|
|
25247
|
-
|
|
25247
|
+
X[j] || X[y]
|
|
25248
25248
|
);
|
|
25249
25249
|
}) : u1 ? /* @__PURE__ */ p("div", { className: "ui-mx-auto ui-max-w-[300px] ui-break-words ui-px-3 ui-py-2 ui-text-center ui-text-sm ui-text-neutral-500", children: [
|
|
25250
25250
|
/* @__PURE__ */ i("div", { children: /* @__PURE__ */ i(a1, { name: "SearchOutlined", size: "lg", color: "neutral" }) }),
|
|
@@ -25298,7 +25298,7 @@ Vuelve más tarde para ver las actualizaciones.`,
|
|
|
25298
25298
|
handleRemoveSelected: oe,
|
|
25299
25299
|
toggleDropdown: B1,
|
|
25300
25300
|
isOpen: R,
|
|
25301
|
-
isOpening:
|
|
25301
|
+
isOpening: Y,
|
|
25302
25302
|
setIsOpening: p1,
|
|
25303
25303
|
customInputRef: G,
|
|
25304
25304
|
disabled: L,
|
|
@@ -25529,7 +25529,7 @@ const He = /* @__PURE__ */ new Set(), R8 = (t) => {
|
|
|
25529
25529
|
triggerRef: P,
|
|
25530
25530
|
popupRef: z,
|
|
25531
25531
|
containerRef: _,
|
|
25532
|
-
popupUniqueId:
|
|
25532
|
+
popupUniqueId: Y,
|
|
25533
25533
|
togglePopup: p1,
|
|
25534
25534
|
closePopup: C1
|
|
25535
25535
|
} = _8({
|
|
@@ -25573,8 +25573,8 @@ const He = /* @__PURE__ */ new Set(), R8 = (t) => {
|
|
|
25573
25573
|
"div",
|
|
25574
25574
|
{
|
|
25575
25575
|
ref: z,
|
|
25576
|
-
id:
|
|
25577
|
-
"data-popup-id":
|
|
25576
|
+
id: Y,
|
|
25577
|
+
"data-popup-id": Y,
|
|
25578
25578
|
style: h1,
|
|
25579
25579
|
className: `ui-border ui-border-default ui-bg-white ui-rounded-surface-card ui-overflow-hidden ui-shadow-lg ${l}`,
|
|
25580
25580
|
onClick: (u1) => {
|
|
@@ -25591,7 +25591,7 @@ const He = /* @__PURE__ */ new Set(), R8 = (t) => {
|
|
|
25591
25591
|
{
|
|
25592
25592
|
ref: _,
|
|
25593
25593
|
className: k("ui-relative ui-h-max"),
|
|
25594
|
-
"data-popup-container-id":
|
|
25594
|
+
"data-popup-container-id": Y,
|
|
25595
25595
|
children: [
|
|
25596
25596
|
/* @__PURE__ */ i("div", { ref: P, className: k("ui-w-fit", $), children: /* @__PURE__ */ i(
|
|
25597
25597
|
i1,
|
|
@@ -27257,9 +27257,9 @@ const A0 = "emoji-picker-recent", G8 = ({
|
|
|
27257
27257
|
if (!$.current) return;
|
|
27258
27258
|
const F = $.current, P = F.scrollTop;
|
|
27259
27259
|
let z = "recent";
|
|
27260
|
-
Object.entries(T.current).forEach(([_,
|
|
27261
|
-
if (
|
|
27262
|
-
const p1 =
|
|
27260
|
+
Object.entries(T.current).forEach(([_, Y]) => {
|
|
27261
|
+
if (Y) {
|
|
27262
|
+
const p1 = Y.offsetTop - F.offsetTop;
|
|
27263
27263
|
P >= p1 - 50 && (z = _);
|
|
27264
27264
|
}
|
|
27265
27265
|
}), x(z);
|
|
@@ -32845,7 +32845,7 @@ const Nu = (t) => {
|
|
|
32845
32845
|
const M = /* @__PURE__ */ new Set();
|
|
32846
32846
|
return r.forEach((w) => {
|
|
32847
32847
|
let v;
|
|
32848
|
-
if (typeof b.accessor == "function" ? v = b.accessor(w
|
|
32848
|
+
if (typeof b.accessor == "function" ? v = b.accessor(w) : b.accessor ? v = w[b.accessor] : v = w[b.id], Array.isArray(v))
|
|
32849
32849
|
v.forEach(($) => {
|
|
32850
32850
|
if (typeof $ == "object" && $ !== null) {
|
|
32851
32851
|
const T = $.name || $.label || $.value || $.id || JSON.stringify($);
|
|
@@ -33158,8 +33158,8 @@ const $u = ({
|
|
|
33158
33158
|
}
|
|
33159
33159
|
)) {
|
|
33160
33160
|
const G = new Map(x.map((P, z) => [P.id, z])), F = [...C].sort((P, z) => {
|
|
33161
|
-
const _ = G.get(P.id) ?? 999,
|
|
33162
|
-
return _ -
|
|
33161
|
+
const _ = G.get(P.id) ?? 999, Y = G.get(z.id) ?? 999;
|
|
33162
|
+
return _ - Y;
|
|
33163
33163
|
});
|
|
33164
33164
|
m == null || m(F);
|
|
33165
33165
|
}
|
|
@@ -33819,7 +33819,7 @@ const $u = ({
|
|
|
33819
33819
|
}), f == null || f(g), a == null || a(r.id, t.id, g);
|
|
33820
33820
|
}, m = {
|
|
33821
33821
|
value: d,
|
|
33822
|
-
row: r
|
|
33822
|
+
row: r,
|
|
33823
33823
|
column: h,
|
|
33824
33824
|
className: t.cellClassName,
|
|
33825
33825
|
state: c,
|
|
@@ -34096,7 +34096,7 @@ const $u = ({
|
|
|
34096
34096
|
}
|
|
34097
34097
|
) }) }),
|
|
34098
34098
|
r.filter((L) => L.visible !== !1).map((L) => {
|
|
34099
|
-
const m = L.accessor ? typeof L.accessor == "function" ? L.accessor(t
|
|
34099
|
+
const m = L.accessor ? typeof L.accessor == "function" ? L.accessor(t) : t[L.accessor] : void 0, g = L.render ? L.render(m, t, L) : m;
|
|
34100
34100
|
return /* @__PURE__ */ i(
|
|
34101
34101
|
e3,
|
|
34102
34102
|
{
|
|
@@ -34513,7 +34513,7 @@ const $u = ({
|
|
|
34513
34513
|
if (!o) return t;
|
|
34514
34514
|
const n = e.find((a) => a.id === r);
|
|
34515
34515
|
return n ? [...t].sort((a, l) => {
|
|
34516
|
-
const c = n.accessor ? typeof n.accessor == "function" ? n.accessor(a
|
|
34516
|
+
const c = n.accessor ? typeof n.accessor == "function" ? n.accessor(a) : a[n.accessor] : null, C = n.accessor ? typeof n.accessor == "function" ? n.accessor(l) : l[n.accessor] : null;
|
|
34517
34517
|
if (c == null) return 1;
|
|
34518
34518
|
if (C == null) return -1;
|
|
34519
34519
|
let d = 0;
|
|
@@ -34815,7 +34815,7 @@ const $u = ({
|
|
|
34815
34815
|
}, D0 = (t, r, o) => {
|
|
34816
34816
|
const e = o.find((n) => n.id === r);
|
|
34817
34817
|
if (e)
|
|
34818
|
-
return e.accessor ? typeof e.accessor == "function" ? e.accessor(t
|
|
34818
|
+
return e.accessor ? typeof e.accessor == "function" ? e.accessor(t) : t[e.accessor] : t[r];
|
|
34819
34819
|
}, v3 = (t, r, o) => r.length === 0 ? t : t.filter((e) => {
|
|
34820
34820
|
if (r.length === 1) {
|
|
34821
34821
|
const u = D0(e, r[0].columnId, o);
|
|
@@ -34861,7 +34861,7 @@ const $u = ({
|
|
|
34861
34861
|
onRowExpand: x,
|
|
34862
34862
|
onHandleChange: O
|
|
34863
34863
|
}) => {
|
|
34864
|
-
const b = e1(null), [M, V] = E(null), { columns: w, handleSetVisibility: v, handleToggleLock: $, handleResize: T, setColumnsOrder: N } = m3(t), { sortConfig: Z, handleSort: D } = s3(l), { selectedIds: J, selectedCount: U, allSelected: q, someSelected: G, handleRowSelect: F, handleSelectAll: P, clearSelection: z } = p3(r, n == null ? void 0 : n.multiple), { handleRowExpand: _, applyExpandedState:
|
|
34864
|
+
const b = e1(null), [M, V] = E(null), { columns: w, handleSetVisibility: v, handleToggleLock: $, handleResize: T, setColumnsOrder: N } = m3(t), { sortConfig: Z, handleSort: D } = s3(l), { selectedIds: J, selectedCount: U, allSelected: q, someSelected: G, handleRowSelect: F, handleSelectAll: P, clearSelection: z } = p3(r, n == null ? void 0 : n.multiple), { handleRowExpand: _, applyExpandedState: Y } = w3(), { handleCellFocus: p1, handleCellBlur: C1, isCellFocused: g1 } = b3(), { filters: K, setAllFilters: h1 } = x3({
|
|
34865
34865
|
initialFilters: c,
|
|
34866
34866
|
onFiltersChange: y
|
|
34867
34867
|
}), [R, t1] = E("");
|
|
@@ -34884,29 +34884,29 @@ const $u = ({
|
|
|
34884
34884
|
const A = R.toLowerCase().trim();
|
|
34885
34885
|
return r.filter((W) => w.some((n1) => {
|
|
34886
34886
|
if (n1.visible === !1) return !1;
|
|
34887
|
-
let
|
|
34888
|
-
return typeof n1.accessor == "function" ?
|
|
34887
|
+
let X;
|
|
34888
|
+
return typeof n1.accessor == "function" ? X = n1.accessor(W) : n1.accessor && (X = W[n1.accessor]), X != null ? String(X).toLowerCase().includes(A) : !1;
|
|
34889
34889
|
}));
|
|
34890
34890
|
}, [r, R, w]), L1 = s1(() => K.length === 0 ? r1 : v3(r1, K, w), [r1, K, w]), l1 = s1(() => !Z || !Z.direction ? L1 : [...L1].sort((A, W) => {
|
|
34891
34891
|
const n1 = w.find((M1) => M1.id === Z.columnId);
|
|
34892
34892
|
if (!n1) return 0;
|
|
34893
|
-
let
|
|
34893
|
+
let X, d1;
|
|
34894
34894
|
if (typeof n1.accessor == "function")
|
|
34895
|
-
|
|
34895
|
+
X = n1.accessor(A), d1 = n1.accessor(W);
|
|
34896
34896
|
else if (n1.accessor)
|
|
34897
|
-
|
|
34897
|
+
X = A[n1.accessor], d1 = W[n1.accessor];
|
|
34898
34898
|
else
|
|
34899
34899
|
return 0;
|
|
34900
|
-
return
|
|
34900
|
+
return X == null && d1 == null ? 0 : X == null ? Z.direction === "asc" ? 1 : -1 : d1 == null || X < d1 ? Z.direction === "asc" ? -1 : 1 : X > d1 ? Z.direction === "asc" ? 1 : -1 : 0;
|
|
34901
34901
|
}), [L1, Z, w]), c1 = l1.length, Z1 = s1(() => {
|
|
34902
34902
|
if (!(u != null && u.enabled))
|
|
34903
34903
|
return l1;
|
|
34904
34904
|
const A = u.currentPage || 1, W = u.pageSize || 10;
|
|
34905
34905
|
if (u.total !== void 0 && u.total !== c1 && K.length === 0 && !R.trim())
|
|
34906
34906
|
return l1;
|
|
34907
|
-
const n1 = (A - 1) * W,
|
|
34908
|
-
return l1.slice(n1,
|
|
34909
|
-
}, [l1, u, c1, K.length, R]), W1 =
|
|
34907
|
+
const n1 = (A - 1) * W, X = n1 + W;
|
|
34908
|
+
return l1.slice(n1, X);
|
|
34909
|
+
}, [l1, u, c1, K.length, R]), W1 = Y(Z1), ee = (A) => {
|
|
34910
34910
|
D(A), g == null || g(Z);
|
|
34911
34911
|
}, z1 = (A) => {
|
|
34912
34912
|
console.log("Filter column:", A);
|
|
@@ -34916,14 +34916,14 @@ const $u = ({
|
|
|
34916
34916
|
T(A, W), j == null || j(A, W);
|
|
34917
34917
|
}, ne = (A) => {
|
|
34918
34918
|
if (w.find((n1) => n1.id === A) && b.current) {
|
|
34919
|
-
const n1 = b.current.querySelector(`th[data-column-id="${A}"]`),
|
|
34920
|
-
if (n1 ||
|
|
34919
|
+
const n1 = b.current.querySelector(`th[data-column-id="${A}"]`), X = b.current.querySelectorAll(`td[data-column-id="${A}"]`);
|
|
34920
|
+
if (n1 || X.length > 0) {
|
|
34921
34921
|
let d1 = 0;
|
|
34922
34922
|
if (n1) {
|
|
34923
34923
|
const ue = n1.querySelector(".ui-truncate");
|
|
34924
34924
|
ue && (d1 = Math.max(d1, ue.scrollWidth + 80));
|
|
34925
34925
|
}
|
|
34926
|
-
|
|
34926
|
+
X.forEach((ue) => {
|
|
34927
34927
|
d1 = Math.max(d1, ue.scrollWidth + 32);
|
|
34928
34928
|
});
|
|
34929
34929
|
const M1 = Math.min(Math.max(d1, 100), 500);
|
|
@@ -34949,8 +34949,8 @@ const $u = ({
|
|
|
34949
34949
|
value: n1,
|
|
34950
34950
|
hasOnHandleChange: !!O
|
|
34951
34951
|
});
|
|
34952
|
-
const
|
|
34953
|
-
O ? (console.log("✅ Llamando onHandleChange con:", { rowId: A, columnId: W, value: n1, rowData:
|
|
34952
|
+
const X = r.find((d1) => d1.id === A);
|
|
34953
|
+
O ? (console.log("✅ Llamando onHandleChange con:", { rowId: A, columnId: W, value: n1, rowData: X }), O(A, W, n1, X)) : console.log("⚠️ No hay onHandleChange definido");
|
|
34954
34954
|
}, D1 = (A) => {
|
|
34955
34955
|
var W;
|
|
34956
34956
|
(W = u == null ? void 0 : u.onPageChange) == null || W.call(u, A);
|
|
@@ -35093,7 +35093,7 @@ const $u = ({
|
|
|
35093
35093
|
}, M3 = (t, r, o) => r.length === 0 ? t : t.filter((e) => r.every((n) => {
|
|
35094
35094
|
const u = o.find((l) => l.id === n.columnId);
|
|
35095
35095
|
if (!u) return !0;
|
|
35096
|
-
const a = u.accessor ? typeof u.accessor == "function" ? u.accessor(e
|
|
35096
|
+
const a = u.accessor ? typeof u.accessor == "function" ? u.accessor(e) : e[u.accessor] : null;
|
|
35097
35097
|
return y3(a, n);
|
|
35098
35098
|
})), y3 = (t, r) => {
|
|
35099
35099
|
const o = r.value;
|
|
@@ -35121,7 +35121,7 @@ const $u = ({
|
|
|
35121
35121
|
if (!r.trim()) return t;
|
|
35122
35122
|
const e = r.toLowerCase();
|
|
35123
35123
|
return t.filter((n) => o.some((u) => {
|
|
35124
|
-
const a = u.accessor ? typeof u.accessor == "function" ? u.accessor(n
|
|
35124
|
+
const a = u.accessor ? typeof u.accessor == "function" ? u.accessor(n) : n[u.accessor] : null;
|
|
35125
35125
|
return a == null ? !1 : String(a).toLowerCase().includes(e);
|
|
35126
35126
|
}));
|
|
35127
35127
|
}, B5 = ({
|