@epam/ai-dial-ui-kit 0.4.0-rc.18 → 0.4.0-rc.19
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.cjs.js +1 -1
- package/dist/dial-ui-kit.es.js +138 -137
- package/package.json +1 -1
package/dist/dial-ui-kit.es.js
CHANGED
|
@@ -2,7 +2,7 @@ import { jsx as w, jsxs as $, Fragment as It } from "react/jsx-runtime";
|
|
|
2
2
|
import q from "classnames";
|
|
3
3
|
import { useFloating as Na, offset as tu, flip as su, shift as ou, arrow as xf, autoUpdate as iu, useHover as nu, useFocus as Ff, useDismiss as Ga, useRole as Va, useInteractions as Ba, useMergeRefs as ru, FloatingPortal as za, FloatingArrow as Ef, autoPlacement as Df, size as Pf, useClick as Tf, FloatingFocusManager as au, FloatingOverlay as Mf } from "@floating-ui/react";
|
|
4
4
|
import * as ae from "react";
|
|
5
|
-
import G, { createContext as Wa, useState as
|
|
5
|
+
import G, { createContext as Wa, useState as A, useRef as L, useMemo as z, useContext as Ve, forwardRef as Ci, isValidElement as _a, cloneElement as rn, useCallback as U, useEffect as we, memo as st, useLayoutEffect as Lt, useId as Ua, createElement as lu, Children as If, Component as kf, useImperativeHandle as $a, Suspense as Af } from "react";
|
|
6
6
|
import { IconInfoCircle as cu, IconCircleCheck as Lf, IconAlertTriangle as Of, IconAlertCircle as Hf, IconX as vi, IconMinus as Nf, IconCheck as du, IconExclamationCircle as ja, IconClipboardX as uu, IconChevronsLeft as Gf, IconChevronsRight as Vf, IconGripVertical as Bf, IconFile as zf, IconFileTypeZip as Wf, IconFileTypeXml as _f, IconFileTypeXls as Uf, IconFileTypeVue as $f, IconFileTypeTxt as jf, IconFileTypeTsx as Kf, IconFileTypeTs as qf, IconFileTypeSvg as Yf, IconFileTypeSql as Zf, IconFileTypeRs as Qf, IconFileTypePpt as Xf, IconFileTypePng as Jf, IconFileTypePhp as em, IconFileTypePdf as tm, IconFileTypeJsx as sm, IconFileTypeJs as om, IconFileTypeJpg as im, IconFileTypeHtml as nm, IconFileTypeDocx as rm, IconFileTypeDoc as am, IconFileTypeCsv as lm, IconFileTypeCss as cm, IconFileTypeBmp as dm, IconArrowUpRight as um, IconFolder as hm, IconChevronDown as Ka, IconDotsVertical as hu, IconChevronRight as gm, IconTrashX as gu, IconSearch as pm, IconCaretRightFilled as fm, IconChevronUp as mm, IconRefresh as Cm, IconEyeOff as vm, IconEye as wm, IconPlus as bm } from "@tabler/icons-react";
|
|
7
7
|
import Sm, { createPortal as qa } from "react-dom";
|
|
8
8
|
const Hs = ({ errorText: e }) => e && /* @__PURE__ */ w("span", { className: "text-error dial-tiny mt-1", children: e }), De = ({ icon: e, className: t }) => e ? /* @__PURE__ */ w("span", { className: q("flex-shrink-0", t), children: e }) : null, ym = 7, Rm = 2, pu = Wa(null), fu = () => {
|
|
@@ -17,7 +17,7 @@ const Hs = ({ errorText: e }) => e && /* @__PURE__ */ w("span", { className: "te
|
|
|
17
17
|
open: o,
|
|
18
18
|
onOpenChange: i
|
|
19
19
|
} = {}) => {
|
|
20
|
-
const [n, r] =
|
|
20
|
+
const [n, r] = A(e), a = L(null), l = o ?? n, c = i ?? r, d = Na({
|
|
21
21
|
placement: t,
|
|
22
22
|
open: l,
|
|
23
23
|
onOpenChange: c,
|
|
@@ -414,7 +414,7 @@ const Le = (e) => {
|
|
|
414
414
|
c,
|
|
415
415
|
Z,
|
|
416
416
|
Y
|
|
417
|
-
], re = () => ["", ue, Ho, Rs],
|
|
417
|
+
], re = () => ["", ue, Ho, Rs], k = () => ["solid", "dashed", "dotted", "double"], oe = () => ["normal", "multiply", "screen", "overlay", "darken", "lighten", "color-dodge", "color-burn", "hard-light", "soft-light", "difference", "exclusion", "hue", "saturation", "color", "luminosity"], he = () => [ue, Jn, nc, ic], ge = () => [
|
|
418
418
|
// Deprecated since Tailwind CSS v4.0.0
|
|
419
419
|
"",
|
|
420
420
|
"none",
|
|
@@ -1255,7 +1255,7 @@ const Le = (e) => {
|
|
|
1255
1255
|
* @see https://tailwindcss.com/docs/text-decoration-style
|
|
1256
1256
|
*/
|
|
1257
1257
|
"text-decoration-style": [{
|
|
1258
|
-
decoration: [...
|
|
1258
|
+
decoration: [...k(), "wavy"]
|
|
1259
1259
|
}],
|
|
1260
1260
|
/**
|
|
1261
1261
|
* Text Decoration Thickness
|
|
@@ -1651,14 +1651,14 @@ const Le = (e) => {
|
|
|
1651
1651
|
* @see https://tailwindcss.com/docs/border-style
|
|
1652
1652
|
*/
|
|
1653
1653
|
"border-style": [{
|
|
1654
|
-
border: [...
|
|
1654
|
+
border: [...k(), "hidden", "none"]
|
|
1655
1655
|
}],
|
|
1656
1656
|
/**
|
|
1657
1657
|
* Divide Style
|
|
1658
1658
|
* @see https://tailwindcss.com/docs/border-style#setting-the-divider-style
|
|
1659
1659
|
*/
|
|
1660
1660
|
"divide-style": [{
|
|
1661
|
-
divide: [...
|
|
1661
|
+
divide: [...k(), "hidden", "none"]
|
|
1662
1662
|
}],
|
|
1663
1663
|
/**
|
|
1664
1664
|
* Border Color
|
|
@@ -1735,7 +1735,7 @@ const Le = (e) => {
|
|
|
1735
1735
|
* @see https://tailwindcss.com/docs/outline-style
|
|
1736
1736
|
*/
|
|
1737
1737
|
"outline-style": [{
|
|
1738
|
-
outline: [...
|
|
1738
|
+
outline: [...k(), "none", "hidden"]
|
|
1739
1739
|
}],
|
|
1740
1740
|
/**
|
|
1741
1741
|
* Outline Offset
|
|
@@ -3011,7 +3011,7 @@ const rC = {
|
|
|
3011
3011
|
hideTooltip: o,
|
|
3012
3012
|
...i
|
|
3013
3013
|
}) => {
|
|
3014
|
-
const n = L(null), [r, a] =
|
|
3014
|
+
const n = L(null), [r, a] = A(!1), [l, c] = A(""), d = L(null), u = () => {
|
|
3015
3015
|
const f = n.current;
|
|
3016
3016
|
if (!f) return;
|
|
3017
3017
|
c(f.textContent ?? "");
|
|
@@ -3438,7 +3438,7 @@ const wC = "flex", bC = "pb-1 mt-2", SC = {
|
|
|
3438
3438
|
isOpened: l,
|
|
3439
3439
|
onToggle: c
|
|
3440
3440
|
}) => {
|
|
3441
|
-
const [d, u] =
|
|
3441
|
+
const [d, u] = A(s), [h, g] = A(!0), p = z(() => typeof l == "boolean", [l]), f = p ? l : h;
|
|
3442
3442
|
we(() => {
|
|
3443
3443
|
p && u(l ? s : tr);
|
|
3444
3444
|
}, [p, l, s]);
|
|
@@ -4680,7 +4680,7 @@ function Yv() {
|
|
|
4680
4680
|
var Zv = Yv();
|
|
4681
4681
|
const Qv = /* @__PURE__ */ qv(Zv), Ns = typeof window < "u" ? Lt : we;
|
|
4682
4682
|
function Xv(e, t, s) {
|
|
4683
|
-
const [o, i] =
|
|
4683
|
+
const [o, i] = A(
|
|
4684
4684
|
() => t(e)
|
|
4685
4685
|
), n = U(() => {
|
|
4686
4686
|
const r = t(e);
|
|
@@ -5483,7 +5483,7 @@ const Cc = "column", Fw = "flex items-center", Ew = "mr-3 cursor-move text-secon
|
|
|
5483
5483
|
};
|
|
5484
5484
|
var Xr = /* @__PURE__ */ ((e) => (e.Horizontal = "horizontal", e.Vertical = "vertical", e))(Xr || {});
|
|
5485
5485
|
const wc = () => typeof window < "u" && window.innerWidth < 1024, Ow = () => {
|
|
5486
|
-
const [e, t] =
|
|
5486
|
+
const [e, t] = A(wc());
|
|
5487
5487
|
return we(() => {
|
|
5488
5488
|
const s = () => t(wc());
|
|
5489
5489
|
return window.addEventListener("resize", s), () => window.removeEventListener("resize", s);
|
|
@@ -5534,12 +5534,12 @@ const Nw = q(
|
|
|
5534
5534
|
anchorToMouse: m = !1,
|
|
5535
5535
|
matchReferenceWidth: C = !0
|
|
5536
5536
|
}) => {
|
|
5537
|
-
const [v, b] =
|
|
5538
|
-
(
|
|
5539
|
-
y || b(
|
|
5537
|
+
const [v, b] = A(a), y = r !== void 0, S = y ? !!r : v, R = U(
|
|
5538
|
+
(k) => {
|
|
5539
|
+
y || b(k), l?.(k);
|
|
5540
5540
|
},
|
|
5541
5541
|
[y, l]
|
|
5542
|
-
), F = Ua(), T = i === void 0, O = (
|
|
5542
|
+
), F = Ua(), T = i === void 0, O = (k) => "clientWidth" in k ? k.clientWidth : k.getBoundingClientRect?.()?.width ?? 0, { refs: M, floatingStyles: E, context: D } = Na({
|
|
5543
5543
|
placement: i,
|
|
5544
5544
|
open: S,
|
|
5545
5545
|
onOpenChange: R,
|
|
@@ -5555,7 +5555,7 @@ const Nw = q(
|
|
|
5555
5555
|
ou({ padding: No }),
|
|
5556
5556
|
Pf({
|
|
5557
5557
|
padding: No,
|
|
5558
|
-
apply({ availableWidth:
|
|
5558
|
+
apply({ availableWidth: k, availableHeight: oe, elements: he }) {
|
|
5559
5559
|
const ge = he.floating, je = O(he.reference);
|
|
5560
5560
|
ge.style.setProperty(
|
|
5561
5561
|
"--fui-available-height",
|
|
@@ -5563,7 +5563,7 @@ const Nw = q(
|
|
|
5563
5563
|
), ge.style.setProperty(
|
|
5564
5564
|
"--reference-width",
|
|
5565
5565
|
C ? `${Math.round(je)}px` : "0px"
|
|
5566
|
-
), C ? ge.style.minWidth = `${Math.round(je)}px` : ge.style.removeProperty("min-width"), ge.style.maxWidth = `${Math.floor(
|
|
5566
|
+
), C ? ge.style.minWidth = `${Math.round(je)}px` : ge.style.removeProperty("min-width"), ge.style.maxWidth = `${Math.floor(k)}px`, ge.style.maxHeight = `${Math.floor(oe)}px`;
|
|
5567
5567
|
}
|
|
5568
5568
|
})
|
|
5569
5569
|
]
|
|
@@ -5577,9 +5577,9 @@ const Nw = q(
|
|
|
5577
5577
|
}), B = Ga(D, {
|
|
5578
5578
|
bubbles: !0,
|
|
5579
5579
|
referencePress: !1,
|
|
5580
|
-
outsidePress: (
|
|
5580
|
+
outsidePress: (k) => {
|
|
5581
5581
|
if (!p) return !1;
|
|
5582
|
-
const oe =
|
|
5582
|
+
const oe = k.target;
|
|
5583
5583
|
return !(g?.current && oe instanceof Node && g.current.contains(oe));
|
|
5584
5584
|
}
|
|
5585
5585
|
}), ne = Va(D, { role: "menu" }), { getReferenceProps: j, getFloatingProps: I } = Ba([
|
|
@@ -5588,29 +5588,29 @@ const Nw = q(
|
|
|
5588
5588
|
B,
|
|
5589
5589
|
ne
|
|
5590
5590
|
]), te = U(
|
|
5591
|
-
(
|
|
5591
|
+
(k, oe) => {
|
|
5592
5592
|
M.setPositionReference({
|
|
5593
5593
|
getBoundingClientRect: () => ({
|
|
5594
5594
|
width: 0,
|
|
5595
5595
|
height: 0,
|
|
5596
|
-
x:
|
|
5596
|
+
x: k,
|
|
5597
5597
|
y: oe,
|
|
5598
5598
|
top: oe,
|
|
5599
|
-
left:
|
|
5600
|
-
right:
|
|
5599
|
+
left: k,
|
|
5600
|
+
right: k,
|
|
5601
5601
|
bottom: oe
|
|
5602
5602
|
})
|
|
5603
5603
|
});
|
|
5604
5604
|
},
|
|
5605
5605
|
[M]
|
|
5606
5606
|
), K = U(
|
|
5607
|
-
(
|
|
5608
|
-
!o.includes(kt.ContextMenu) || n || (
|
|
5607
|
+
(k) => {
|
|
5608
|
+
!o.includes(kt.ContextMenu) || n || (k.preventDefault(), m && te(k.clientX, k.clientY), R(!0));
|
|
5609
5609
|
},
|
|
5610
5610
|
[m, n, R, te, o]
|
|
5611
5611
|
), se = U(
|
|
5612
|
-
(
|
|
5613
|
-
!m || n || te(
|
|
5612
|
+
(k) => {
|
|
5613
|
+
!m || n || te(k.clientX, k.clientY);
|
|
5614
5614
|
},
|
|
5615
5615
|
[m, n, te]
|
|
5616
5616
|
);
|
|
@@ -5618,41 +5618,41 @@ const Nw = q(
|
|
|
5618
5618
|
n && S && R(!1);
|
|
5619
5619
|
}, [n, S, R]);
|
|
5620
5620
|
const Q = U(
|
|
5621
|
-
(
|
|
5622
|
-
|
|
5621
|
+
(k) => (oe) => {
|
|
5622
|
+
k.disabled || (k.onClick?.({ key: k.key, domEvent: oe }), t?.onClick?.({ key: k.key, domEvent: oe }), R(!1));
|
|
5623
5623
|
},
|
|
5624
5624
|
[t, R]
|
|
5625
5625
|
), N = z(() => s ? s() : t ? /* @__PURE__ */ $(It, { children: [
|
|
5626
5626
|
t.header && /* @__PURE__ */ w(It, { children: typeof t.header == "function" ? t.header() : t.header }),
|
|
5627
|
-
/* @__PURE__ */ w("div", { role: "none", className: "py-1", children: t.items.map((
|
|
5627
|
+
/* @__PURE__ */ w("div", { role: "none", className: "py-1", children: t.items.map((k) => k.type === $u.Divider ? /* @__PURE__ */ w(
|
|
5628
5628
|
"div",
|
|
5629
5629
|
{
|
|
5630
5630
|
role: "separator",
|
|
5631
5631
|
className: Ww
|
|
5632
5632
|
},
|
|
5633
|
-
|
|
5633
|
+
k.key
|
|
5634
5634
|
) : /* @__PURE__ */ $(
|
|
5635
5635
|
"button",
|
|
5636
5636
|
{
|
|
5637
5637
|
role: "menuitem",
|
|
5638
5638
|
type: "button",
|
|
5639
|
-
"aria-disabled": !!
|
|
5639
|
+
"aria-disabled": !!k.disabled,
|
|
5640
5640
|
className: q(
|
|
5641
5641
|
Vw,
|
|
5642
|
-
|
|
5643
|
-
|
|
5642
|
+
k.disabled && Bw,
|
|
5643
|
+
k.danger && zw
|
|
5644
5644
|
),
|
|
5645
|
-
disabled:
|
|
5646
|
-
onClick: Q(
|
|
5645
|
+
disabled: k.disabled,
|
|
5646
|
+
onClick: Q(k),
|
|
5647
5647
|
children: [
|
|
5648
|
-
|
|
5648
|
+
k.icon && /* @__PURE__ */ w(
|
|
5649
5649
|
"span",
|
|
5650
5650
|
{
|
|
5651
5651
|
className: q(
|
|
5652
|
-
|
|
5653
|
-
|
|
5652
|
+
k.danger && "text-error",
|
|
5653
|
+
k.disabled && "text-secondary"
|
|
5654
5654
|
),
|
|
5655
|
-
children: /* @__PURE__ */ w(De, { icon:
|
|
5655
|
+
children: /* @__PURE__ */ w(De, { icon: k.icon })
|
|
5656
5656
|
}
|
|
5657
5657
|
),
|
|
5658
5658
|
/* @__PURE__ */ w(
|
|
@@ -5660,15 +5660,15 @@ const Nw = q(
|
|
|
5660
5660
|
{
|
|
5661
5661
|
className: q(
|
|
5662
5662
|
"flex-1 truncate text-left",
|
|
5663
|
-
|
|
5664
|
-
|
|
5663
|
+
k.danger && "text-error",
|
|
5664
|
+
k.disabled && "text-secondary"
|
|
5665
5665
|
),
|
|
5666
|
-
children:
|
|
5666
|
+
children: k.label
|
|
5667
5667
|
}
|
|
5668
5668
|
)
|
|
5669
5669
|
]
|
|
5670
5670
|
},
|
|
5671
|
-
|
|
5671
|
+
k.key
|
|
5672
5672
|
)) }),
|
|
5673
5673
|
t.footer && /* @__PURE__ */ w(It, { children: typeof t.footer == "function" ? t.footer() : t.footer })
|
|
5674
5674
|
] }) : null, [Q, t, s]), re = j({
|
|
@@ -5716,8 +5716,8 @@ const Nw = q(
|
|
|
5716
5716
|
ju,
|
|
5717
5717
|
{
|
|
5718
5718
|
ariaLabel: "Close dropdown",
|
|
5719
|
-
onClose: (
|
|
5720
|
-
d?.(
|
|
5719
|
+
onClose: (k) => {
|
|
5720
|
+
d?.(k), R(!1);
|
|
5721
5721
|
}
|
|
5722
5722
|
}
|
|
5723
5723
|
) }),
|
|
@@ -5778,7 +5778,7 @@ const Nw = q(
|
|
|
5778
5778
|
onClick: s,
|
|
5779
5779
|
orientation: o = Xr.Horizontal
|
|
5780
5780
|
}) => {
|
|
5781
|
-
const [i, n] =
|
|
5781
|
+
const [i, n] = A(!1), [r, a] = A(!1), [l, c] = A(!1), d = Ow(), u = o === Xr.Horizontal, h = L(null), g = L(null), p = L(null), f = e.find((v) => v.id === t), m = z(
|
|
5782
5782
|
() => q(
|
|
5783
5783
|
"flex gap-3",
|
|
5784
5784
|
u ? "flex-row flex-nowrap overflow-x-auto" : "flex-col flex-wrap w-full"
|
|
@@ -6567,7 +6567,7 @@ const c1 = "flex justify-end gap-2 px-6 py-4", d1 = "text-secondary dial-small-1
|
|
|
6567
6567
|
id: v,
|
|
6568
6568
|
size: b = us.Md
|
|
6569
6569
|
}) => {
|
|
6570
|
-
const [y, S] =
|
|
6570
|
+
const [y, S] = A(!1), R = U(() => {
|
|
6571
6571
|
s || S(!0);
|
|
6572
6572
|
}, [s]), F = U(() => {
|
|
6573
6573
|
S(!1), c?.();
|
|
@@ -6706,7 +6706,7 @@ const C1 = {
|
|
|
6706
6706
|
onChange: l,
|
|
6707
6707
|
size: c = un.Base
|
|
6708
6708
|
}) => {
|
|
6709
|
-
const [d, u] =
|
|
6709
|
+
const [d, u] = A(t || "");
|
|
6710
6710
|
we(() => {
|
|
6711
6711
|
u(t || "");
|
|
6712
6712
|
}, [t]);
|
|
@@ -6886,7 +6886,7 @@ const M1 = {
|
|
|
6886
6886
|
getContextMenuItems: c,
|
|
6887
6887
|
areHiddenFilesVisible: d = !1
|
|
6888
6888
|
}) => {
|
|
6889
|
-
const [u, h] =
|
|
6889
|
+
const [u, h] = A(s), g = (f) => {
|
|
6890
6890
|
l?.(f), u.has(f.path) ? h((m) => {
|
|
6891
6891
|
const C = new Set(m);
|
|
6892
6892
|
return C.delete(f.path), C;
|
|
@@ -43658,7 +43658,7 @@ function On(e, t, s) {
|
|
|
43658
43658
|
return o.length === e.length && i.length === 0 ? e : o.length === 0 && i.length === t.length ? t : o.length === 0 ? i : i.length === 0 ? o : [...o, ...i];
|
|
43659
43659
|
}
|
|
43660
43660
|
var lf = Ci((e, t) => {
|
|
43661
|
-
const { registry: s, context: o } = Ve(Ze), i = L(null), n = L(null), r = L(null), a = L(null), l = L(null), c = L(), [d, u] =
|
|
43661
|
+
const { registry: s, context: o } = Ve(Ze), i = L(null), n = L(null), r = L(null), a = L(null), l = L(null), c = L(), [d, u] = A(), [h, g] = A(), [p, f] = A(), [m, C] = A(() => new bt()), [v, b] = A(() => new bt("ag-hidden")), [y, S] = A(() => new bt("ag-hidden")), [R, F] = A(() => new bt("ag-invisible"));
|
|
43662
43662
|
$a(t, () => ({
|
|
43663
43663
|
// force new instance when grid tries to refresh
|
|
43664
43664
|
refresh() {
|
|
@@ -43711,7 +43711,7 @@ var lf = Ci((e, t) => {
|
|
|
43711
43711
|
setMethods: () => {
|
|
43712
43712
|
}
|
|
43713
43713
|
}), IM = (e) => {
|
|
43714
|
-
const { initialProps: t, addUpdateCallback: s, CustomComponentClass: o, setMethods: i } = e, [{ key: n, ...r }, a] =
|
|
43714
|
+
const { initialProps: t, addUpdateCallback: s, CustomComponentClass: o, setMethods: i } = e, [{ key: n, ...r }, a] = A(t);
|
|
43715
43715
|
return we(() => {
|
|
43716
43716
|
s((l) => a(l));
|
|
43717
43717
|
}, []), /* @__PURE__ */ G.createElement(Xl.Provider, { value: { setMethods: i } }, /* @__PURE__ */ G.createElement(o, { key: n, ...r }));
|
|
@@ -44156,7 +44156,7 @@ var qM = 1e3, YM = class {
|
|
|
44156
44156
|
}
|
|
44157
44157
|
}
|
|
44158
44158
|
}, ZM = ({ ctrl: e }) => {
|
|
44159
|
-
const t = e.isAlive(), { context: s } = Ve(Ze), [o, i] =
|
|
44159
|
+
const t = e.isAlive(), { context: s } = Ve(Ze), [o, i] = A(), [n, r] = A(), a = L(), l = L(null), c = L(null), d = L(null), u = L(), h = L();
|
|
44160
44160
|
t && !h.current && (h.current = new Si(() => l.current));
|
|
44161
44161
|
const g = U((C) => {
|
|
44162
44162
|
if (l.current = C, !C || !e.isAlive() || s.isDestroyed()) {
|
|
@@ -44208,11 +44208,11 @@ var qM = 1e3, YM = class {
|
|
|
44208
44208
|
return ["afterGuiAttached"];
|
|
44209
44209
|
}
|
|
44210
44210
|
}, JM = ({ ctrl: e }) => {
|
|
44211
|
-
const { context: t, gos: s } = Ve(Ze), [o, i] =
|
|
44211
|
+
const { context: t, gos: s } = Ve(Ze), [o, i] = A(), [n, r] = A(
|
|
44212
44212
|
() => new bt("ag-header-cell", "ag-floating-filter")
|
|
44213
|
-
), [a, l] =
|
|
44213
|
+
), [a, l] = A(() => new bt()), [c, d] = A(
|
|
44214
44214
|
() => new bt("ag-floating-filter-button", "ag-hidden")
|
|
44215
|
-
), [u, h] =
|
|
44215
|
+
), [u, h] = A("false"), [g, p] = A(), [, f] = A(1), m = L(), C = L(null), v = L(null), b = L(null), y = L(null), S = L(), R = L(), F = (K) => {
|
|
44216
44216
|
K != null && S.current && S.current(K);
|
|
44217
44217
|
}, T = U((K) => {
|
|
44218
44218
|
if (C.current = K, !K || !e.isAlive() || t.isDestroyed()) {
|
|
@@ -44242,7 +44242,7 @@ var qM = 1e3, YM = class {
|
|
|
44242
44242
|
() => Ei(g, t, v.current, F),
|
|
44243
44243
|
[g]
|
|
44244
44244
|
);
|
|
44245
|
-
const O = z(() => n.toString(), [n]), M = z(() => a.toString(), [a]), E = z(() => c.toString(), [c]), D = z(() => !!(g && g.componentFromFramework && Oo(g.componentClass)), [g]), V = z(() => s.get("reactiveCustomComponents"), []), J = z(() => s.get("enableFilterHandlers"), []), [B, ne] =
|
|
44245
|
+
const O = z(() => n.toString(), [n]), M = z(() => a.toString(), [a]), E = z(() => c.toString(), [c]), D = z(() => !!(g && g.componentFromFramework && Oo(g.componentClass)), [g]), V = z(() => s.get("reactiveCustomComponents"), []), J = z(() => s.get("enableFilterHandlers"), []), [B, ne] = A();
|
|
44246
44246
|
we(() => {
|
|
44247
44247
|
if (g?.componentFromFramework)
|
|
44248
44248
|
if (V) {
|
|
@@ -44280,7 +44280,7 @@ var qM = 1e3, YM = class {
|
|
|
44280
44280
|
)
|
|
44281
44281
|
));
|
|
44282
44282
|
}, eI = st(JM), tI = ({ ctrl: e }) => {
|
|
44283
|
-
const { context: t } = Ve(Ze), [s, o] =
|
|
44283
|
+
const { context: t } = Ve(Ze), [s, o] = A(), [i, n] = A(() => new bt()), [r, a] = A(() => new bt()), [l, c] = A("false"), [d, u] = A(), [h, g] = A(), p = L(), f = L(null), m = L(null), C = L(null), v = L(), b = U((O) => {
|
|
44284
44284
|
if (f.current = O, !O || !e.isAlive() || t.isDestroyed()) {
|
|
44285
44285
|
p.current = t.destroyBean(p.current);
|
|
44286
44286
|
return;
|
|
@@ -44318,7 +44318,7 @@ var qM = 1e3, YM = class {
|
|
|
44318
44318
|
), F = h?.componentFromFramework, T = h?.componentClass;
|
|
44319
44319
|
return /* @__PURE__ */ G.createElement("div", { ref: b, style: s, className: S, role: "columnheader", "aria-expanded": d }, /* @__PURE__ */ G.createElement("div", { ref: C, className: "ag-header-cell-comp-wrapper", role: "presentation" }, F ? y ? /* @__PURE__ */ G.createElement(T, { ...h.params }) : /* @__PURE__ */ G.createElement(T, { ...h.params, ref: v }) : null), /* @__PURE__ */ G.createElement("div", { ref: m, "aria-hidden": l, className: R }));
|
|
44320
44320
|
}, sI = st(tI), oI = ({ ctrl: e }) => {
|
|
44321
|
-
const { gos: t, context: s } = Ve(Ze), { topOffset: o, rowHeight: i } = z(() => e.getTopAndHeight(), []), n = z(() => t.get("tabIndex"), []), [r, a] =
|
|
44321
|
+
const { gos: t, context: s } = Ve(Ze), { topOffset: o, rowHeight: i } = z(() => e.getTopAndHeight(), []), n = z(() => t.get("tabIndex"), []), [r, a] = A(() => e.getAriaRowIndex()), l = e.headerRowClass, [c, d] = A(() => i + "px"), [u, h] = A(() => o + "px"), g = L(null), [p, f] = A(() => e.getUpdatedHeaderCtrls()), m = L(), C = L(null), v = U((S) => {
|
|
44322
44322
|
if (C.current = S, !S || !e.isAlive() || s.isDestroyed()) {
|
|
44323
44323
|
m.current = s.destroyBean(m.current);
|
|
44324
44324
|
return;
|
|
@@ -44368,7 +44368,7 @@ var qM = 1e3, YM = class {
|
|
|
44368
44368
|
p.map(y)
|
|
44369
44369
|
);
|
|
44370
44370
|
}, iI = st(oI), nI = ({ pinned: e }) => {
|
|
44371
|
-
const [t, s] =
|
|
44371
|
+
const [t, s] = A(!0), [o, i] = A([]), { context: n } = Ve(Ze), r = L(null), a = L(null), l = L(), c = e === "left", d = e === "right", u = !c && !d, h = U((f) => {
|
|
44372
44372
|
if (r.current = f, !f || n.isDestroyed()) {
|
|
44373
44373
|
l.current = n.destroyBean(l.current);
|
|
44374
44374
|
return;
|
|
@@ -44393,7 +44393,7 @@ var qM = 1e3, YM = class {
|
|
|
44393
44393
|
}, []), g = t ? "" : "ag-hidden", p = () => o.map((f) => /* @__PURE__ */ G.createElement(iI, { ctrl: f, key: f.instanceId }));
|
|
44394
44394
|
return c ? /* @__PURE__ */ G.createElement("div", { ref: h, className: "ag-pinned-left-header " + g, "aria-hidden": !t, role: "rowgroup" }, p()) : d ? /* @__PURE__ */ G.createElement("div", { ref: h, className: "ag-pinned-right-header " + g, "aria-hidden": !t, role: "rowgroup" }, p()) : u ? /* @__PURE__ */ G.createElement("div", { ref: h, className: "ag-header-viewport " + g, role: "rowgroup", tabIndex: -1 }, /* @__PURE__ */ G.createElement("div", { ref: a, className: "ag-header-container", role: "presentation" }, p())) : null;
|
|
44395
44395
|
}, Vr = st(nI), rI = () => {
|
|
44396
|
-
const [e, t] =
|
|
44396
|
+
const [e, t] = A(() => new bt()), [s, o] = A(), { context: i } = Ve(Ze), n = L(null), r = L(), a = U((d) => {
|
|
44397
44397
|
if (n.current = d, !d || i.isDestroyed()) {
|
|
44398
44398
|
r.current = i.destroyBean(r.current);
|
|
44399
44399
|
return;
|
|
@@ -44469,12 +44469,12 @@ var qM = 1e3, YM = class {
|
|
|
44469
44469
|
this.value = e, this.refreshProps();
|
|
44470
44470
|
}
|
|
44471
44471
|
}, dI = (e) => {
|
|
44472
|
-
const t = L(e), s = L(), o = L(!1), i = L(!1), [, n] =
|
|
44472
|
+
const t = L(e), s = L(), o = L(!1), i = L(!1), [, n] = A(0);
|
|
44473
44473
|
o.current && (i.current = !0), we(() => (o.current || (s.current = t.current(), o.current = !0), n((r) => r + 1), () => {
|
|
44474
44474
|
i.current && s.current?.();
|
|
44475
44475
|
}), []);
|
|
44476
44476
|
}, uI = (e) => {
|
|
44477
|
-
const [t, s] =
|
|
44477
|
+
const [t, s] = A(), o = Ve(Ze), { context: i, popupSvc: n, gos: r, editSvc: a } = o, { editDetails: l, cellCtrl: c, eParentCell: d } = e;
|
|
44478
44478
|
return dI(() => {
|
|
44479
44479
|
const { compDetails: u } = l, h = r.get("stopEditingWhenCellsLoseFocus");
|
|
44480
44480
|
let g, p;
|
|
@@ -44591,11 +44591,11 @@ var qM = 1e3, YM = class {
|
|
|
44591
44591
|
const o = Ve(Ze), { context: i } = o, {
|
|
44592
44592
|
column: { colIdSanitised: n },
|
|
44593
44593
|
instanceId: r
|
|
44594
|
-
} = e, a = L(), [l, c] =
|
|
44594
|
+
} = e, a = L(), [l, c] = A(
|
|
44595
44595
|
() => e.isCellRenderer() ? void 0 : { compDetails: void 0, value: e.getValueToDisplay(), force: !1 }
|
|
44596
|
-
), [d, u] =
|
|
44596
|
+
), [d, u] = A(), [h, g] = A(1), [p, f] = A(), [m, C] = A(!1), [v, b] = A(!1), [y, S] = A(!1), [R, F] = A(), T = z(() => e.isForceWrapper(), [e]), O = z(() => e.getCellAriaRole(), [e]), M = L(null), E = L(null), D = L(null), V = L(), J = L(), B = L(), ne = L([]), j = L(), I = L(), [te, K] = A(0), se = U((de) => {
|
|
44597
44597
|
I.current = de, K((Se) => Se + 1);
|
|
44598
|
-
}, []), Q = l != null && (m || y || v) && (d == null || !!d.popup), N = T || Q, re = z(() => e.getCellValueClass(), [e]),
|
|
44598
|
+
}, []), Q = l != null && (m || y || v) && (d == null || !!d.popup), N = T || Q, re = z(() => e.getCellValueClass(), [e]), k = U(
|
|
44599
44599
|
(de) => {
|
|
44600
44600
|
if (J.current = de, de) {
|
|
44601
44601
|
const Se = de.isCancelBeforeStart && de.isCancelBeforeStart();
|
|
@@ -44625,11 +44625,11 @@ var qM = 1e3, YM = class {
|
|
|
44625
44625
|
if (!ce)
|
|
44626
44626
|
return;
|
|
44627
44627
|
const Ce = ce.getGui();
|
|
44628
|
-
|
|
44628
|
+
k(ce), ze || ((T ? B : M).current?.appendChild(Ce), ce.afterGuiAttached?.()), F(ce);
|
|
44629
44629
|
}), () => {
|
|
44630
44630
|
Ke.then((ce) => {
|
|
44631
44631
|
const Ce = ce.getGui();
|
|
44632
|
-
e.disableEditorTooltipFeature(), i.destroyBean(ce),
|
|
44632
|
+
e.disableEditorTooltipFeature(), i.destroyBean(ce), k(void 0), F(void 0), Ce?.remove();
|
|
44633
44633
|
});
|
|
44634
44634
|
};
|
|
44635
44635
|
}, [d]);
|
|
@@ -44740,18 +44740,18 @@ var qM = 1e3, YM = class {
|
|
|
44740
44740
|
return /* @__PURE__ */ G.createElement(Af, { fallback: /* @__PURE__ */ G.createElement(fI, { cellCtrl: e, parent: M }) }, Fe ? /* @__PURE__ */ G.createElement(ze, { ...de.params, key: h }) : /* @__PURE__ */ G.createElement(ze, { ...de.params, key: h, ref: D }));
|
|
44741
44741
|
}
|
|
44742
44742
|
}, Vt = () => {
|
|
44743
|
-
const de = () => l == null ? null : N ? /* @__PURE__ */ G.createElement("span", { role: "presentation", id: `cell-${r}`, className: re, ref: se }, ht()) : ht(), Se = (ze) => gI(ze,
|
|
44743
|
+
const de = () => l == null ? null : N ? /* @__PURE__ */ G.createElement("span", { role: "presentation", id: `cell-${r}`, className: re, ref: se }, ht()) : ht(), Se = (ze) => gI(ze, k, M.current, e, R);
|
|
44744
44744
|
return d != null ? d.popup ? /* @__PURE__ */ G.createElement(G.Fragment, null, de(), Se(d)) : Se(d) : de();
|
|
44745
44745
|
}, ss = () => /* @__PURE__ */ G.createElement("div", { ref: fe, style: p, role: O, "col-id": n }, N ? /* @__PURE__ */ G.createElement("div", { className: "ag-cell-wrapper", role: "presentation", ref: ge }, Vt()) : Vt());
|
|
44746
44746
|
return e.isCellSpanning() ? /* @__PURE__ */ G.createElement("div", { ref: rt, className: "ag-spanned-cell-wrapper", role: "presentation" }, ss()) : ss();
|
|
44747
44747
|
}, CI = st(mI), vI = ({ rowCtrl: e, containerType: t }) => {
|
|
44748
|
-
const { context: s, gos: o, editSvc: i } = Ve(Ze), n = Ve(nf) === "default", r = L(), a = L(e.getDomOrder()), l = e.isFullWidth(), c = e.rowNode.displayed, [d, u] =
|
|
44748
|
+
const { context: s, gos: o, editSvc: i } = Ve(Ze), n = Ve(nf) === "default", r = L(), a = L(e.getDomOrder()), l = e.isFullWidth(), c = e.rowNode.displayed, [d, u] = A(
|
|
44749
44749
|
() => c ? e.rowNode.getRowIndexString() : null
|
|
44750
|
-
), [h, g] =
|
|
44750
|
+
), [h, g] = A(() => e.rowId), [p, f] = A(() => e.businessKey), [m, C] = A(() => e.rowStyles), v = L(null), [b, y] = A(() => null), [S, R] = A(), [F, T] = A(
|
|
44751
44751
|
() => c ? e.getInitialRowTop(t) : void 0
|
|
44752
|
-
), [O, M] =
|
|
44752
|
+
), [O, M] = A(
|
|
44753
44753
|
() => c ? e.getInitialTransform(t) : void 0
|
|
44754
|
-
), E = L(null), D = L(), V = L(), J = L(!1), [B, ne] =
|
|
44754
|
+
), E = L(null), D = L(), V = L(), J = L(!1), [B, ne] = A(0);
|
|
44755
44755
|
we(() => {
|
|
44756
44756
|
if (J.current || !S || B > 10)
|
|
44757
44757
|
return;
|
|
@@ -44816,7 +44816,7 @@ var qM = 1e3, YM = class {
|
|
|
44816
44816
|
const N = z(() => {
|
|
44817
44817
|
const fe = { top: F, transform: O };
|
|
44818
44818
|
return Object.assign(fe, m), fe;
|
|
44819
|
-
}, [F, O, m]), re = l && S?.componentFromFramework,
|
|
44819
|
+
}, [F, O, m]), re = l && S?.componentFromFramework, k = !l && se != null, oe = z(() => !!(S?.componentFromFramework && Oo(S.componentClass)), [S]), he = L(!1);
|
|
44820
44820
|
we(() => {
|
|
44821
44821
|
he.current = oe && !!S && !!o.get("reactiveCustomComponents");
|
|
44822
44822
|
}, [oe, S]);
|
|
@@ -44842,10 +44842,10 @@ var qM = 1e3, YM = class {
|
|
|
44842
44842
|
"row-id": h,
|
|
44843
44843
|
"row-business-key": p
|
|
44844
44844
|
},
|
|
44845
|
-
|
|
44845
|
+
k ? ge() : re ? je() : null
|
|
44846
44846
|
);
|
|
44847
44847
|
}, Zd = st(vI), wI = ({ name: e }) => {
|
|
44848
|
-
const { context: t, gos: s } = Ve(Ze), o = z(() => Ri(e), [e]), i = L(null), n = L(null), r = L(null), a = L([]), l = L([]), [c, d] =
|
|
44848
|
+
const { context: t, gos: s } = Ve(Ze), o = z(() => Ri(e), [e]), i = L(null), n = L(null), r = L(null), a = L([]), l = L([]), [c, d] = A(() => []), u = !!s.get("enableCellSpan") && !!o.getSpannedRowCtrls, h = L([]), g = L([]), [p, f] = A(() => []), m = L(!1), C = L(), v = z(() => ft("ag-viewport", Tg(e)), [e]), b = z(() => ft(Ji(e)), [e]), y = z(() => ft("ag-spanning-container", nR(e)), [e]), S = o.type === "center" || u, R = S ? i : n;
|
|
44849
44849
|
Es(" AG Row Container " + e + " ", R);
|
|
44850
44850
|
const F = U(() => {
|
|
44851
44851
|
const B = !S || i.current != null, ne = n.current != null, j = !u || r.current != null;
|
|
@@ -44927,13 +44927,13 @@ var qM = 1e3, YM = class {
|
|
|
44927
44927
|
const J = () => /* @__PURE__ */ G.createElement("div", { className: y, ref: E, role: "presentation" }, p.map((B) => /* @__PURE__ */ G.createElement(Zd, { rowCtrl: B, containerType: o.type, key: B.instanceId })));
|
|
44928
44928
|
return /* @__PURE__ */ G.createElement("div", { className: v, ref: D, role: "rowgroup" }, V(), u ? J() : null);
|
|
44929
44929
|
}, bI = st(wI), SI = () => {
|
|
44930
|
-
const e = Ve(Ze), { context: t, overlays: s } = e, [o, i] =
|
|
44930
|
+
const e = Ve(Ze), { context: t, overlays: s } = e, [o, i] = A(""), [n, r] = A(0), [a, l] = A(0), [c, d] = A("0px"), [u, h] = A("0px"), [g, p] = A("100%"), [f, m] = A("0px"), [C, v] = A("0px"), [b, y] = A("100%"), [S, R] = A(!0), [F, T] = A(!0), [O, M] = A(null), [E, D] = A(""), [V, J] = A(null), [B, ne] = A("ag-layout-normal"), j = L();
|
|
44931
44931
|
j.current || (j.current = new Si(() => I.current));
|
|
44932
|
-
const I = L(null), te = L(null), K = L(null), se = L(null), Q = L(null), N = L(null), re = L(null),
|
|
44932
|
+
const I = L(null), te = L(null), K = L(null), se = L(null), Q = L(null), N = L(null), re = L(null), k = L([]), oe = L([]);
|
|
44933
44933
|
Es(" AG Grid Body ", I), Es(" AG Pinned Top ", te), Es(" AG Sticky Top ", K), Es(" AG Middle ", N), Es(" AG Pinned Bottom ", re);
|
|
44934
44934
|
const he = U((Ce) => {
|
|
44935
44935
|
if (I.current = Ce, !Ce || t.isDestroyed()) {
|
|
44936
|
-
|
|
44936
|
+
k.current = t.destroyBeans(k.current);
|
|
44937
44937
|
for (const Me of oe.current)
|
|
44938
44938
|
Me();
|
|
44939
44939
|
oe.current = [];
|
|
@@ -44943,7 +44943,7 @@ var qM = 1e3, YM = class {
|
|
|
44943
44943
|
Me.appendChild(at), oe.current.push(() => at.remove());
|
|
44944
44944
|
}, os = (Me) => {
|
|
44945
44945
|
const at = t.createBean(new Me());
|
|
44946
|
-
return
|
|
44946
|
+
return k.current.push(at), at;
|
|
44947
44947
|
}, We = (Me, at, Rf) => {
|
|
44948
44948
|
Qe(Me, document.createComment(Rf)), Qe(Me, os(at).getGui());
|
|
44949
44949
|
};
|
|
@@ -44984,7 +44984,7 @@ var qM = 1e3, YM = class {
|
|
|
44984
44984
|
setStickyBottomWidth: y,
|
|
44985
44985
|
setGridRootRole: (Me) => Ce.setAttribute("role", Me)
|
|
44986
44986
|
}, tc = t.createBean(new wR());
|
|
44987
|
-
|
|
44987
|
+
k.current.push(tc), tc.setComp(
|
|
44988
44988
|
yf,
|
|
44989
44989
|
Ce,
|
|
44990
44990
|
N.current,
|
|
@@ -45127,7 +45127,7 @@ var qM = 1e3, YM = class {
|
|
|
45127
45127
|
};
|
|
45128
45128
|
return /* @__PURE__ */ G.createElement(G.Fragment, null, m("top"), s, m("bottom"));
|
|
45129
45129
|
}, xI = Ci(RI), FI = st(xI), EI = ({ context: e }) => {
|
|
45130
|
-
const [t, s] =
|
|
45130
|
+
const [t, s] = A(""), [o, i] = A(""), [n, r] = A(null), [a, l] = A(null), [c, d] = A(!1), [u, h] = A(), g = L(), p = L(null), f = L(), [m, C] = A(null), v = L(() => {
|
|
45131
45131
|
}), b = L(), y = L([]), S = U(() => {
|
|
45132
45132
|
}, []);
|
|
45133
45133
|
Es(" AG Grid ", p);
|
|
@@ -45266,7 +45266,7 @@ var qM = 1e3, YM = class {
|
|
|
45266
45266
|
componentWrappingElement: void 0,
|
|
45267
45267
|
...hf
|
|
45268
45268
|
}, gf = new Set(Object.keys(TI)), MI = new Set(Object.keys(hf)), pf = (e) => {
|
|
45269
|
-
const t = L(), s = L(null), o = L(null), i = L([]), n = L([]), r = L(e), a = L(), l = L(), c = L(!1), [d, u] =
|
|
45269
|
+
const t = L(), s = L(null), o = L(null), i = L([]), n = L([]), r = L(e), a = L(), l = L(), c = L(!1), [d, u] = A(void 0), [, h] = A(0), g = U((C) => {
|
|
45270
45270
|
if (s.current = C, !C) {
|
|
45271
45271
|
for (const E of i.current)
|
|
45272
45272
|
E();
|
|
@@ -45422,7 +45422,7 @@ var kI = class extends JD {
|
|
|
45422
45422
|
return new cf(e, this.parent, t, i);
|
|
45423
45423
|
}
|
|
45424
45424
|
}, AI = Ci((e, t) => {
|
|
45425
|
-
const s = Ve(Ze), { registry: o, context: i, gos: n, rowModel: r } = s, [a, l] =
|
|
45425
|
+
const s = Ve(Ze), { registry: o, context: i, gos: n, rowModel: r } = s, [a, l] = A(() => new bt()), [c, d] = A(() => new bt()), [u, h] = A(), [g, p] = A(), f = L(), m = L(null), C = L(), v = z(
|
|
45426
45426
|
() => Tb(e.api.getGridId(), u?.rowModelType ?? "clientSide"),
|
|
45427
45427
|
[e]
|
|
45428
45428
|
), b = z(() => a.toString() + " ag-details-row", [a]), y = z(() => c.toString() + " ag-details-grid", [c]);
|
|
@@ -45546,7 +45546,7 @@ const HI = "h-full", Br = {
|
|
|
45546
45546
|
rowData: s,
|
|
45547
45547
|
getRowId: o
|
|
45548
45548
|
}) => {
|
|
45549
|
-
const [i, n] =
|
|
45549
|
+
const [i, n] = A(
|
|
45550
45550
|
/* @__PURE__ */ new Set()
|
|
45551
45551
|
), r = e ?? i, a = U(
|
|
45552
45552
|
(g) => {
|
|
@@ -45599,7 +45599,7 @@ const VI = ({
|
|
|
45599
45599
|
alternateOddRowColors: u = !1,
|
|
45600
45600
|
filterPlaceholder: h = "Enter value"
|
|
45601
45601
|
}) => {
|
|
45602
|
-
const [g, p] =
|
|
45602
|
+
const [g, p] = A(zr), [f, m] = A(), C = Ua(), {
|
|
45603
45603
|
currentSelectedIds: v,
|
|
45604
45604
|
handleSelectionToggle: b,
|
|
45605
45605
|
headerCheckboxState: y,
|
|
@@ -45787,7 +45787,7 @@ const VI = ({
|
|
|
45787
45787
|
}
|
|
45788
45788
|
);
|
|
45789
45789
|
}, BI = /* @__PURE__ */ w(Ka, { size: 16 }), zI = /* @__PURE__ */ w(mm, { size: 16 }), WI = (e) => {
|
|
45790
|
-
const [t, s] =
|
|
45790
|
+
const [t, s] = A(!1), o = z(() => t ? zI : BI, [t]);
|
|
45791
45791
|
return /* @__PURE__ */ w("div", { children: /* @__PURE__ */ w(
|
|
45792
45792
|
gs,
|
|
45793
45793
|
{
|
|
@@ -45850,7 +45850,7 @@ const VI = ({
|
|
|
45850
45850
|
)
|
|
45851
45851
|
] })
|
|
45852
45852
|
] }), UI = (e = !1) => {
|
|
45853
|
-
const [t, s] =
|
|
45853
|
+
const [t, s] = A(e);
|
|
45854
45854
|
return {
|
|
45855
45855
|
areHiddenFilesVisible: t,
|
|
45856
45856
|
toggleHiddenFilesVisibility: () => {
|
|
@@ -45859,7 +45859,7 @@ const VI = ({
|
|
|
45859
45859
|
setAreHiddenFilesVisible: s
|
|
45860
45860
|
};
|
|
45861
45861
|
}, $I = (e) => {
|
|
45862
|
-
const [t, s] =
|
|
45862
|
+
const [t, s] = A(e);
|
|
45863
45863
|
return {
|
|
45864
45864
|
isTreeCollapsed: t,
|
|
45865
45865
|
toggleTreeCollapse: () => {
|
|
@@ -45882,15 +45882,15 @@ const VI = ({
|
|
|
45882
45882
|
onPathChange: a,
|
|
45883
45883
|
onTableFileClick: l
|
|
45884
45884
|
}) => {
|
|
45885
|
-
const [c, d] =
|
|
45885
|
+
const [c, d] = A(e), { areHiddenFilesVisible: u, toggleHiddenFilesVisibility: h } = UI(), { isTreeCollapsed: g, toggleTreeCollapse: p } = $I(
|
|
45886
45886
|
o?.collapsed ?? !1
|
|
45887
|
-
), [f, m] =
|
|
45887
|
+
), [f, m] = A(/* @__PURE__ */ new Set()), C = (N) => {
|
|
45888
45888
|
m(N);
|
|
45889
45889
|
};
|
|
45890
45890
|
we(() => {
|
|
45891
45891
|
d(e);
|
|
45892
45892
|
}, [e]);
|
|
45893
|
-
const [v, b] =
|
|
45893
|
+
const [v, b] = A("");
|
|
45894
45894
|
we(() => {
|
|
45895
45895
|
const N = i?.value;
|
|
45896
45896
|
N != null && b(String(N));
|
|
@@ -45908,11 +45908,11 @@ const VI = ({
|
|
|
45908
45908
|
[s, c]
|
|
45909
45909
|
), E = z(() => {
|
|
45910
45910
|
const N = _i(O).trim(), re = M?.items ?? [];
|
|
45911
|
-
let
|
|
45912
|
-
u || (
|
|
45911
|
+
let k = N ? L1(M) : re;
|
|
45912
|
+
u || (k = k.filter(
|
|
45913
45913
|
(ge) => !Qu(ge)
|
|
45914
45914
|
));
|
|
45915
|
-
const oe =
|
|
45915
|
+
const oe = k.map((ge) => ({
|
|
45916
45916
|
id: ge.id ?? ge.path,
|
|
45917
45917
|
name: ge.name ?? ge.path.split("/").pop() ?? "",
|
|
45918
45918
|
updatedAt: ge.updatedAt,
|
|
@@ -46091,7 +46091,7 @@ const VI = ({
|
|
|
46091
46091
|
"aria-label": "show"
|
|
46092
46092
|
}
|
|
46093
46093
|
), YI = ({ ...e }) => {
|
|
46094
|
-
const [t, s] =
|
|
46094
|
+
const [t, s] = A(!1), o = U((i) => {
|
|
46095
46095
|
s(i);
|
|
46096
46096
|
}, []);
|
|
46097
46097
|
return /* @__PURE__ */ w(
|
|
@@ -46138,7 +46138,7 @@ const VI = ({
|
|
|
46138
46138
|
containerCssClass: n,
|
|
46139
46139
|
inputCssClass: r
|
|
46140
46140
|
}) => {
|
|
46141
|
-
const [a, l] =
|
|
46141
|
+
const [a, l] = A(""), c = U(
|
|
46142
46142
|
(u) => {
|
|
46143
46143
|
u.key === "Enter" && (s([...t, u.currentTarget.value]), l("")), (u.key === "Backspace" || u.key === "Delete") && t.length && !a && s(t.slice(0, -1));
|
|
46144
46144
|
},
|
|
@@ -46190,7 +46190,7 @@ const VI = ({
|
|
|
46190
46190
|
disabled: a,
|
|
46191
46191
|
onChange: l
|
|
46192
46192
|
}) => {
|
|
46193
|
-
const c = L(null), [d, u] =
|
|
46193
|
+
const c = L(null), [d, u] = A(e), [h, g] = A(""), [p, f] = A(!1), m = (b) => {
|
|
46194
46194
|
const y = b.trim().replace(/,$/, "");
|
|
46195
46195
|
if (y && !d.includes(y)) {
|
|
46196
46196
|
const S = [y, ...d];
|
|
@@ -46300,27 +46300,27 @@ const VI = ({
|
|
|
46300
46300
|
onClose: f,
|
|
46301
46301
|
onChange: m
|
|
46302
46302
|
}) => {
|
|
46303
|
-
const [C, v] =
|
|
46304
|
-
const
|
|
46305
|
-
return
|
|
46303
|
+
const [C, v] = A(!1), [b, y] = A(""), S = Ua(), R = s !== void 0, [F, T] = A(o), O = R ? s : F, M = z(() => t ? Array.isArray(O) ? O : [] : typeof O == "string" ? [O] : [], [O, t]), E = z(() => {
|
|
46304
|
+
const k = b.trim().toLowerCase();
|
|
46305
|
+
return k ? e.filter((oe) => oe.label.toLowerCase().includes(k)) : e;
|
|
46306
46306
|
}, [e, b]);
|
|
46307
46307
|
we(() => {
|
|
46308
46308
|
C || y("");
|
|
46309
46309
|
}, [C]);
|
|
46310
46310
|
const D = U(
|
|
46311
|
-
(
|
|
46312
|
-
R || T(
|
|
46311
|
+
(k) => {
|
|
46312
|
+
R || T(k), m?.(k);
|
|
46313
46313
|
},
|
|
46314
46314
|
[R, m]
|
|
46315
|
-
), V = (
|
|
46315
|
+
), V = (k) => {
|
|
46316
46316
|
if (t) {
|
|
46317
46317
|
const oe = new Set(M);
|
|
46318
|
-
oe.has(
|
|
46318
|
+
oe.has(k) ? oe.delete(k) : oe.add(k), D(Array.from(oe));
|
|
46319
46319
|
} else
|
|
46320
|
-
D(
|
|
46320
|
+
D(k), v(!1);
|
|
46321
46321
|
}, J = U(
|
|
46322
|
-
(
|
|
46323
|
-
if (
|
|
46322
|
+
(k, oe) => {
|
|
46323
|
+
if (k.stopPropagation(), !t) {
|
|
46324
46324
|
D("");
|
|
46325
46325
|
return;
|
|
46326
46326
|
}
|
|
@@ -46329,22 +46329,22 @@ const VI = ({
|
|
|
46329
46329
|
},
|
|
46330
46330
|
[t, M, D]
|
|
46331
46331
|
), B = z(
|
|
46332
|
-
() => E.filter((
|
|
46332
|
+
() => E.filter((k) => !k.disabled),
|
|
46333
46333
|
[E]
|
|
46334
46334
|
), ne = z(
|
|
46335
|
-
() => B.filter((
|
|
46335
|
+
() => B.filter((k) => M.includes(k.value)).length,
|
|
46336
46336
|
[B, M]
|
|
46337
46337
|
), j = B.length > 0 && ne === B.length, I = ne > 0 && !j, te = () => {
|
|
46338
46338
|
if (!(!t || B.length === 0))
|
|
46339
46339
|
if (j) {
|
|
46340
|
-
const
|
|
46340
|
+
const k = new Set(B.map((he) => he.value)), oe = M.filter((he) => !k.has(he));
|
|
46341
46341
|
D(oe);
|
|
46342
46342
|
} else {
|
|
46343
|
-
const
|
|
46344
|
-
B.forEach((oe) =>
|
|
46343
|
+
const k = new Set(M);
|
|
46344
|
+
B.forEach((oe) => k.add(oe.value)), D(Array.from(k));
|
|
46345
46345
|
}
|
|
46346
46346
|
}, K = M.length > 0, se = !t && K ? M[0] : void 0, Q = z(
|
|
46347
|
-
() => se ? e.find((
|
|
46347
|
+
() => se ? e.find((k) => k.value === se) : void 0,
|
|
46348
46348
|
[e, se]
|
|
46349
46349
|
), N = U(() => !t || M.length === 0 ? null : /* @__PURE__ */ w(
|
|
46350
46350
|
ff,
|
|
@@ -46391,8 +46391,8 @@ const VI = ({
|
|
|
46391
46391
|
ariaLabel: "Close select",
|
|
46392
46392
|
cssClass: "shrink-0",
|
|
46393
46393
|
iconBefore: /* @__PURE__ */ w(vi, { size: 16 }),
|
|
46394
|
-
onClick: (
|
|
46395
|
-
f?.(
|
|
46394
|
+
onClick: (k) => {
|
|
46395
|
+
f?.(k), v(!1);
|
|
46396
46396
|
}
|
|
46397
46397
|
}
|
|
46398
46398
|
)
|
|
@@ -46415,56 +46415,57 @@ const VI = ({
|
|
|
46415
46415
|
title: c,
|
|
46416
46416
|
description: d
|
|
46417
46417
|
}
|
|
46418
|
-
) }) : E.map((
|
|
46419
|
-
const oe = M.includes(
|
|
46418
|
+
) }) : E.map((k) => {
|
|
46419
|
+
const oe = M.includes(k.value);
|
|
46420
46420
|
return t ? /* @__PURE__ */ $(
|
|
46421
46421
|
"div",
|
|
46422
46422
|
{
|
|
46423
46423
|
className: q(
|
|
46424
46424
|
Wr,
|
|
46425
46425
|
oe && XI,
|
|
46426
|
-
|
|
46426
|
+
k.disabled && Qd,
|
|
46427
46427
|
"w-full"
|
|
46428
46428
|
),
|
|
46429
46429
|
children: [
|
|
46430
46430
|
/* @__PURE__ */ w(
|
|
46431
46431
|
an,
|
|
46432
46432
|
{
|
|
46433
|
-
id: `${S}-${
|
|
46433
|
+
id: `${S}-${k.value}`,
|
|
46434
46434
|
label: /* @__PURE__ */ $("span", { className: "flex w-full flex-1 min-w-0 items-center gap-2 text-primary", children: [
|
|
46435
|
-
|
|
46436
|
-
/* @__PURE__ */ w("span", { className: "truncate", children:
|
|
46435
|
+
k.icon && /* @__PURE__ */ w(De, { icon: k.icon }),
|
|
46436
|
+
/* @__PURE__ */ w("span", { className: "truncate", children: k.label })
|
|
46437
46437
|
] }),
|
|
46438
46438
|
checked: oe,
|
|
46439
|
-
disabled:
|
|
46440
|
-
onChange: () => !
|
|
46441
|
-
ariaLabel:
|
|
46439
|
+
disabled: k.disabled,
|
|
46440
|
+
onChange: () => !k.disabled && V(k.value),
|
|
46441
|
+
ariaLabel: k.label
|
|
46442
46442
|
}
|
|
46443
46443
|
),
|
|
46444
|
-
|
|
46444
|
+
k.description && /* @__PURE__ */ w("div", { className: "text-secondary dial-small", children: k.description })
|
|
46445
46445
|
]
|
|
46446
46446
|
},
|
|
46447
|
-
|
|
46447
|
+
k.value
|
|
46448
46448
|
) : /* @__PURE__ */ w(
|
|
46449
46449
|
"button",
|
|
46450
46450
|
{
|
|
46451
46451
|
role: "option",
|
|
46452
46452
|
type: "button",
|
|
46453
46453
|
"aria-selected": oe,
|
|
46454
|
-
"aria-disabled": !!
|
|
46455
|
-
disabled:
|
|
46454
|
+
"aria-disabled": !!k.disabled,
|
|
46455
|
+
disabled: k.disabled,
|
|
46456
46456
|
className: q(
|
|
46457
46457
|
Wr,
|
|
46458
46458
|
oe && JI,
|
|
46459
|
-
|
|
46459
|
+
k.disabled && Qd
|
|
46460
46460
|
),
|
|
46461
|
-
onClick: () => !
|
|
46461
|
+
onClick: () => !k.disabled && V(k.value),
|
|
46462
46462
|
children: /* @__PURE__ */ $("div", { className: "flex items-center gap-2 w-full", children: [
|
|
46463
|
-
|
|
46464
|
-
/* @__PURE__ */ w(Zt, { text:
|
|
46463
|
+
k.icon && /* @__PURE__ */ w(De, { icon: k.icon }),
|
|
46464
|
+
/* @__PURE__ */ w(Zt, { text: k.label }),
|
|
46465
|
+
k.description && /* @__PURE__ */ w("div", { className: "text-secondary dial-small", children: k.description })
|
|
46465
46466
|
] })
|
|
46466
46467
|
},
|
|
46467
|
-
|
|
46468
|
+
k.value
|
|
46468
46469
|
);
|
|
46469
46470
|
}) })
|
|
46470
46471
|
]
|
|
@@ -46482,7 +46483,7 @@ const VI = ({
|
|
|
46482
46483
|
h && "opacity-75 !cursor-not-allowed",
|
|
46483
46484
|
g
|
|
46484
46485
|
),
|
|
46485
|
-
onClick: () => !h && v((
|
|
46486
|
+
onClick: () => !h && v((k) => !k),
|
|
46486
46487
|
children: [
|
|
46487
46488
|
/* @__PURE__ */ w("div", { className: "flex min-w-0 items-center gap-2 text-primary", children: re() }),
|
|
46488
46489
|
/* @__PURE__ */ w(
|
|
@@ -47126,7 +47127,7 @@ const fk = function(t, s, o) {
|
|
|
47126
47127
|
fileCountError: l,
|
|
47127
47128
|
getIsFileFormatError: c
|
|
47128
47129
|
}) => {
|
|
47129
|
-
const d = L(null), u = L(null), [h, g] =
|
|
47130
|
+
const d = L(null), u = L(null), [h, g] = A([]), [p, f] = A(!1), m = U(
|
|
47130
47131
|
(E) => {
|
|
47131
47132
|
const D = E.target.files;
|
|
47132
47133
|
if (D && D.length > 0) {
|
|
@@ -47360,7 +47361,7 @@ const fk = function(t, s, o) {
|
|
|
47360
47361
|
};
|
|
47361
47362
|
var Ha = /* @__PURE__ */ ((e) => (e.MyFiles = "my_files", e.Shared = "shared", e.Organization = "organization", e))(Ha || {});
|
|
47362
47363
|
const _k = (e) => {
|
|
47363
|
-
const [t, s] =
|
|
47364
|
+
const [t, s] = A(
|
|
47364
47365
|
Ha.MyFiles
|
|
47365
47366
|
), o = (n) => {
|
|
47366
47367
|
s(n);
|