@epam/ai-dial-ui-kit 0.5.0-rc.60 → 0.5.0-rc.62
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
|
@@ -2,11 +2,11 @@ import { jsx as C, jsxs as z, Fragment as $e } from "react/jsx-runtime";
|
|
|
2
2
|
import J from "classnames";
|
|
3
3
|
import { useFloating as oc, offset as Nh, flip as Hh, shift as Gh, arrow as RC, autoUpdate as Bh, useHover as Vh, useFocus as xC, useDismiss as nc, useRole as rc, useInteractions as ac, useMergeRefs as lc, FloatingPortal as cc, FloatingArrow as FC, autoPlacement as EC, size as DC, useClick as PC, FloatingFocusManager as zh, FloatingOverlay as TC } from "@floating-ui/react";
|
|
4
4
|
import * as pe from "react";
|
|
5
|
-
import U, { createContext as Mr, useState as k, useRef as L, useEffect as me, useMemo as
|
|
5
|
+
import U, { createContext as Mr, useState as k, useRef as L, useEffect as me, useMemo as B, useContext as Je, isValidElement as dc, cloneElement as al, useCallback as I, memo as ut, useLayoutEffect as Vt, PureComponent as MC, useId as uc, Children as IC, createElement as So, useImperativeHandle as Ir, Component as kC, forwardRef as hc, Suspense as AC } from "react";
|
|
6
6
|
import { IconInfoCircle as Wh, IconCircleCheck as LC, IconAlertTriangle as OC, IconAlertCircle as NC, IconX as Ji, IconMinus as HC, IconCheck as _h, IconExclamationCircle as gc, IconClipboardX as Uh, IconChevronsLeft as GC, IconChevronsRight as BC, IconGripVertical as VC, IconFile as $h, IconFileTypeZip as zC, IconFileTypeXml as WC, IconFileTypeXls as _C, IconFileTypeVue as UC, IconFileTypeTxt as $C, IconFileTypeTsx as jC, IconFileTypeTs as KC, IconFileTypeSvg as qC, IconFileTypeSql as YC, IconFileTypeRs as ZC, IconFileTypePpt as QC, IconFileTypePng as XC, IconFileTypePhp as JC, IconFileTypePdf as ev, IconFileTypeJsx as tv, IconFileTypeJs as sv, IconFileTypeJpg as iv, IconFileTypeHtml as ov, IconFileTypeDocx as nv, IconFileTypeDoc as rv, IconFileTypeCsv as av, IconFileTypeCss as lv, IconFileTypeBmp as cv, IconArrowUpRight as dv, IconFolder as pc, IconChevronLeft as uv, IconChevronRight as jh, IconChevronDown as kr, IconDotsVertical as Ar, IconDots as hv, IconTrashX as Yo, IconEyeOff as Kh, IconEye as qh, IconSearch as gv, IconPlus as pv, IconChevronUp as fv, IconAlertCircleFilled as mv, IconCaretRightFilled as Cv, IconZoomCancel as vv, IconFileZip as wv, IconCopyMinus as bv, IconFolderPlus as Sv, IconCopy as fc, IconDownload as mc, IconPencilMinus as Yh, IconCircleFilled as ua } from "@tabler/icons-react";
|
|
7
7
|
import yv, { flushSync as Rv, createPortal as Cc } from "react-dom";
|
|
8
8
|
const si = ({ errorText: e }) => e && /* @__PURE__ */ C("span", { className: "text-error dial-tiny mt-1", children: e }), He = ({ icon: e, className: t }) => e ? /* @__PURE__ */ C("span", { className: J("flex-shrink-0", t), children: e }) : null, xv = 7, Fv = 2, Zh = Mr(null), Qh = () => {
|
|
9
|
-
const e =
|
|
9
|
+
const e = Je(Zh);
|
|
10
10
|
if (e == null)
|
|
11
11
|
throw new Error("Tooltip components must be wrapped in <Tooltip />");
|
|
12
12
|
return e;
|
|
@@ -53,7 +53,7 @@ const si = ({ errorText: e }) => e && /* @__PURE__ */ C("span", { className: "te
|
|
|
53
53
|
{ root: null, threshold: 0 }
|
|
54
54
|
);
|
|
55
55
|
return v.observe(m), () => v.disconnect();
|
|
56
|
-
}, [l, d.refs.reference, c]),
|
|
56
|
+
}, [l, d.refs.reference, c]), B(
|
|
57
57
|
() => ({
|
|
58
58
|
open: l,
|
|
59
59
|
setOpen: c,
|
|
@@ -431,7 +431,7 @@ const Qe = (e) => {
|
|
|
431
431
|
c,
|
|
432
432
|
oe,
|
|
433
433
|
ie
|
|
434
|
-
], Q = () => ["", Se, po, zs], se = () => ["solid", "dashed", "dotted", "double"], de = () => ["normal", "multiply", "screen", "overlay", "darken", "lighten", "color-dodge", "color-burn", "hard-light", "soft-light", "difference", "exclusion", "hue", "saturation", "color", "luminosity"],
|
|
434
|
+
], Q = () => ["", Se, po, zs], se = () => ["solid", "dashed", "dotted", "double"], de = () => ["normal", "multiply", "screen", "overlay", "darken", "lighten", "color-dodge", "color-burn", "hard-light", "soft-light", "difference", "exclusion", "hue", "saturation", "color", "luminosity"], V = () => [Se, ha, Md, Td], Ce = () => [
|
|
435
435
|
// Deprecated since Tailwind CSS v4.0.0
|
|
436
436
|
"",
|
|
437
437
|
"none",
|
|
@@ -1923,10 +1923,10 @@ const Qe = (e) => {
|
|
|
1923
1923
|
"mask-linear": [Se]
|
|
1924
1924
|
}],
|
|
1925
1925
|
"mask-image-linear-from-pos": [{
|
|
1926
|
-
"mask-linear-from":
|
|
1926
|
+
"mask-linear-from": V()
|
|
1927
1927
|
}],
|
|
1928
1928
|
"mask-image-linear-to-pos": [{
|
|
1929
|
-
"mask-linear-to":
|
|
1929
|
+
"mask-linear-to": V()
|
|
1930
1930
|
}],
|
|
1931
1931
|
"mask-image-linear-from-color": [{
|
|
1932
1932
|
"mask-linear-from": N()
|
|
@@ -1935,10 +1935,10 @@ const Qe = (e) => {
|
|
|
1935
1935
|
"mask-linear-to": N()
|
|
1936
1936
|
}],
|
|
1937
1937
|
"mask-image-t-from-pos": [{
|
|
1938
|
-
"mask-t-from":
|
|
1938
|
+
"mask-t-from": V()
|
|
1939
1939
|
}],
|
|
1940
1940
|
"mask-image-t-to-pos": [{
|
|
1941
|
-
"mask-t-to":
|
|
1941
|
+
"mask-t-to": V()
|
|
1942
1942
|
}],
|
|
1943
1943
|
"mask-image-t-from-color": [{
|
|
1944
1944
|
"mask-t-from": N()
|
|
@@ -1947,10 +1947,10 @@ const Qe = (e) => {
|
|
|
1947
1947
|
"mask-t-to": N()
|
|
1948
1948
|
}],
|
|
1949
1949
|
"mask-image-r-from-pos": [{
|
|
1950
|
-
"mask-r-from":
|
|
1950
|
+
"mask-r-from": V()
|
|
1951
1951
|
}],
|
|
1952
1952
|
"mask-image-r-to-pos": [{
|
|
1953
|
-
"mask-r-to":
|
|
1953
|
+
"mask-r-to": V()
|
|
1954
1954
|
}],
|
|
1955
1955
|
"mask-image-r-from-color": [{
|
|
1956
1956
|
"mask-r-from": N()
|
|
@@ -1959,10 +1959,10 @@ const Qe = (e) => {
|
|
|
1959
1959
|
"mask-r-to": N()
|
|
1960
1960
|
}],
|
|
1961
1961
|
"mask-image-b-from-pos": [{
|
|
1962
|
-
"mask-b-from":
|
|
1962
|
+
"mask-b-from": V()
|
|
1963
1963
|
}],
|
|
1964
1964
|
"mask-image-b-to-pos": [{
|
|
1965
|
-
"mask-b-to":
|
|
1965
|
+
"mask-b-to": V()
|
|
1966
1966
|
}],
|
|
1967
1967
|
"mask-image-b-from-color": [{
|
|
1968
1968
|
"mask-b-from": N()
|
|
@@ -1971,10 +1971,10 @@ const Qe = (e) => {
|
|
|
1971
1971
|
"mask-b-to": N()
|
|
1972
1972
|
}],
|
|
1973
1973
|
"mask-image-l-from-pos": [{
|
|
1974
|
-
"mask-l-from":
|
|
1974
|
+
"mask-l-from": V()
|
|
1975
1975
|
}],
|
|
1976
1976
|
"mask-image-l-to-pos": [{
|
|
1977
|
-
"mask-l-to":
|
|
1977
|
+
"mask-l-to": V()
|
|
1978
1978
|
}],
|
|
1979
1979
|
"mask-image-l-from-color": [{
|
|
1980
1980
|
"mask-l-from": N()
|
|
@@ -1983,10 +1983,10 @@ const Qe = (e) => {
|
|
|
1983
1983
|
"mask-l-to": N()
|
|
1984
1984
|
}],
|
|
1985
1985
|
"mask-image-x-from-pos": [{
|
|
1986
|
-
"mask-x-from":
|
|
1986
|
+
"mask-x-from": V()
|
|
1987
1987
|
}],
|
|
1988
1988
|
"mask-image-x-to-pos": [{
|
|
1989
|
-
"mask-x-to":
|
|
1989
|
+
"mask-x-to": V()
|
|
1990
1990
|
}],
|
|
1991
1991
|
"mask-image-x-from-color": [{
|
|
1992
1992
|
"mask-x-from": N()
|
|
@@ -1995,10 +1995,10 @@ const Qe = (e) => {
|
|
|
1995
1995
|
"mask-x-to": N()
|
|
1996
1996
|
}],
|
|
1997
1997
|
"mask-image-y-from-pos": [{
|
|
1998
|
-
"mask-y-from":
|
|
1998
|
+
"mask-y-from": V()
|
|
1999
1999
|
}],
|
|
2000
2000
|
"mask-image-y-to-pos": [{
|
|
2001
|
-
"mask-y-to":
|
|
2001
|
+
"mask-y-to": V()
|
|
2002
2002
|
}],
|
|
2003
2003
|
"mask-image-y-from-color": [{
|
|
2004
2004
|
"mask-y-from": N()
|
|
@@ -2010,10 +2010,10 @@ const Qe = (e) => {
|
|
|
2010
2010
|
"mask-radial": [oe, ie]
|
|
2011
2011
|
}],
|
|
2012
2012
|
"mask-image-radial-from-pos": [{
|
|
2013
|
-
"mask-radial-from":
|
|
2013
|
+
"mask-radial-from": V()
|
|
2014
2014
|
}],
|
|
2015
2015
|
"mask-image-radial-to-pos": [{
|
|
2016
|
-
"mask-radial-to":
|
|
2016
|
+
"mask-radial-to": V()
|
|
2017
2017
|
}],
|
|
2018
2018
|
"mask-image-radial-from-color": [{
|
|
2019
2019
|
"mask-radial-from": N()
|
|
@@ -2037,10 +2037,10 @@ const Qe = (e) => {
|
|
|
2037
2037
|
"mask-conic": [Se]
|
|
2038
2038
|
}],
|
|
2039
2039
|
"mask-image-conic-from-pos": [{
|
|
2040
|
-
"mask-conic-from":
|
|
2040
|
+
"mask-conic-from": V()
|
|
2041
2041
|
}],
|
|
2042
2042
|
"mask-image-conic-to-pos": [{
|
|
2043
|
-
"mask-conic-to":
|
|
2043
|
+
"mask-conic-to": V()
|
|
2044
2044
|
}],
|
|
2045
2045
|
"mask-image-conic-from-color": [{
|
|
2046
2046
|
"mask-conic-from": N()
|
|
@@ -3042,10 +3042,10 @@ const lw = {
|
|
|
3042
3042
|
window.removeEventListener("resize", f), m && m.disconnect(), d.current && cancelAnimationFrame(d.current);
|
|
3043
3043
|
};
|
|
3044
3044
|
}, [e, h]);
|
|
3045
|
-
const g =
|
|
3045
|
+
const g = B(
|
|
3046
3046
|
() => typeof e == "string" ? e : l,
|
|
3047
3047
|
[l, e]
|
|
3048
|
-
), p =
|
|
3048
|
+
), p = B(() => i ? "" : r ? g : "", [g, i, r]);
|
|
3049
3049
|
return /* @__PURE__ */ z(Xh, { ...o, children: [
|
|
3050
3050
|
/* @__PURE__ */ C(
|
|
3051
3051
|
eg,
|
|
@@ -3478,7 +3478,7 @@ const Sw = "flex", yw = "pb-1 mt-2", Rw = {
|
|
|
3478
3478
|
isOpened: l,
|
|
3479
3479
|
onToggle: c
|
|
3480
3480
|
}) => {
|
|
3481
|
-
const [d, u] = k(s), [h, g] = k(!0), p =
|
|
3481
|
+
const [d, u] = k(s), [h, g] = k(!0), p = B(() => typeof l == "boolean", [l]), f = p ? l : h;
|
|
3482
3482
|
me(() => {
|
|
3483
3483
|
p && u(l ? s : pa);
|
|
3484
3484
|
}, [p, l, s]);
|
|
@@ -4761,10 +4761,10 @@ function bg(e, t) {
|
|
|
4761
4761
|
const s = [
|
|
4762
4762
|
...t || []
|
|
4763
4763
|
];
|
|
4764
|
-
return t == null && typeof e != "function" && s.push(e),
|
|
4764
|
+
return t == null && typeof e != "function" && s.push(e), B(() => typeof e == "function" ? e() : e, s);
|
|
4765
4765
|
}
|
|
4766
4766
|
function tb(e) {
|
|
4767
|
-
return
|
|
4767
|
+
return B(
|
|
4768
4768
|
() => e.hooks.dragSource(),
|
|
4769
4769
|
[
|
|
4770
4770
|
e
|
|
@@ -4772,7 +4772,7 @@ function tb(e) {
|
|
|
4772
4772
|
);
|
|
4773
4773
|
}
|
|
4774
4774
|
function sb(e) {
|
|
4775
|
-
return
|
|
4775
|
+
return B(
|
|
4776
4776
|
() => e.hooks.dragPreview(),
|
|
4777
4777
|
[
|
|
4778
4778
|
e
|
|
@@ -5134,11 +5134,11 @@ class ub {
|
|
|
5134
5134
|
}
|
|
5135
5135
|
}
|
|
5136
5136
|
function io() {
|
|
5137
|
-
const { dragDropManager: e } =
|
|
5137
|
+
const { dragDropManager: e } = Je(ug);
|
|
5138
5138
|
return ve(e != null, "Expected drag drop context"), e;
|
|
5139
5139
|
}
|
|
5140
5140
|
function hb(e, t) {
|
|
5141
|
-
const s = io(), i =
|
|
5141
|
+
const s = io(), i = B(
|
|
5142
5142
|
() => new db(s.getBackend()),
|
|
5143
5143
|
[
|
|
5144
5144
|
s
|
|
@@ -5154,7 +5154,7 @@ function hb(e, t) {
|
|
|
5154
5154
|
}
|
|
5155
5155
|
function gb() {
|
|
5156
5156
|
const e = io();
|
|
5157
|
-
return
|
|
5157
|
+
return B(
|
|
5158
5158
|
() => new ib(e),
|
|
5159
5159
|
[
|
|
5160
5160
|
e
|
|
@@ -5184,7 +5184,7 @@ class pb {
|
|
|
5184
5184
|
}
|
|
5185
5185
|
}
|
|
5186
5186
|
function fb(e, t, s) {
|
|
5187
|
-
const i =
|
|
5187
|
+
const i = B(
|
|
5188
5188
|
() => new pb(e, t, s),
|
|
5189
5189
|
[
|
|
5190
5190
|
t,
|
|
@@ -5198,7 +5198,7 @@ function fb(e, t, s) {
|
|
|
5198
5198
|
]), i;
|
|
5199
5199
|
}
|
|
5200
5200
|
function mb(e) {
|
|
5201
|
-
return
|
|
5201
|
+
return B(() => {
|
|
5202
5202
|
const t = e.type;
|
|
5203
5203
|
return ve(t != null, "spec.type must be defined"), t;
|
|
5204
5204
|
}, [
|
|
@@ -5231,7 +5231,7 @@ function vb(e, t) {
|
|
|
5231
5231
|
];
|
|
5232
5232
|
}
|
|
5233
5233
|
function wb(e) {
|
|
5234
|
-
return
|
|
5234
|
+
return B(
|
|
5235
5235
|
() => e.hooks.dropTarget(),
|
|
5236
5236
|
[
|
|
5237
5237
|
e
|
|
@@ -5239,7 +5239,7 @@ function wb(e) {
|
|
|
5239
5239
|
);
|
|
5240
5240
|
}
|
|
5241
5241
|
function bb(e) {
|
|
5242
|
-
const t = io(), s =
|
|
5242
|
+
const t = io(), s = B(
|
|
5243
5243
|
() => new ub(t.getBackend()),
|
|
5244
5244
|
[
|
|
5245
5245
|
t
|
|
@@ -5251,7 +5251,7 @@ function bb(e) {
|
|
|
5251
5251
|
}
|
|
5252
5252
|
function Sb() {
|
|
5253
5253
|
const e = io();
|
|
5254
|
-
return
|
|
5254
|
+
return B(
|
|
5255
5255
|
() => new ob(e),
|
|
5256
5256
|
[
|
|
5257
5257
|
e
|
|
@@ -5260,7 +5260,7 @@ function Sb() {
|
|
|
5260
5260
|
}
|
|
5261
5261
|
function yb(e) {
|
|
5262
5262
|
const { accept: t } = e;
|
|
5263
|
-
return
|
|
5263
|
+
return B(() => (ve(e.accept != null, "accept must be defined"), Array.isArray(t) ? t : [
|
|
5264
5264
|
t
|
|
5265
5265
|
]), [
|
|
5266
5266
|
t
|
|
@@ -5285,7 +5285,7 @@ class Rb {
|
|
|
5285
5285
|
}
|
|
5286
5286
|
}
|
|
5287
5287
|
function xb(e, t) {
|
|
5288
|
-
const s =
|
|
5288
|
+
const s = B(
|
|
5289
5289
|
() => new Rb(e, t),
|
|
5290
5290
|
[
|
|
5291
5291
|
t
|
|
@@ -5554,7 +5554,7 @@ var ir = /* @__PURE__ */ ((e) => (e.Left = "left", e.Right = "right", e))(ir ||
|
|
|
5554
5554
|
t(c, s);
|
|
5555
5555
|
}, [t, s]), a = I(function(c) {
|
|
5556
5556
|
t(c, s);
|
|
5557
|
-
}, [t, s]), l =
|
|
5557
|
+
}, [t, s]), l = B(function() {
|
|
5558
5558
|
return Ye(Ye({ position: "absolute", userSelect: "none" }, Ob[s]), o ?? {});
|
|
5559
5559
|
}, [o, s]);
|
|
5560
5560
|
return C("div", { className: n || void 0, style: l, onMouseDown: r, onTouchStart: a, children: i });
|
|
@@ -6008,7 +6008,7 @@ const Ub = ({ side: e, className: t }) => {
|
|
|
6008
6008
|
u(!1);
|
|
6009
6009
|
const S = m.current?.resizable?.getBoundingClientRect(), y = S ? Math.round(S.width) : t;
|
|
6010
6010
|
p || g(y), n?.(y);
|
|
6011
|
-
}, [n, p, t]), b =
|
|
6011
|
+
}, [n, p, t]), b = B(() => {
|
|
6012
6012
|
const S = a === ir.Left, y = /* @__PURE__ */ C(
|
|
6013
6013
|
$b,
|
|
6014
6014
|
{
|
|
@@ -6094,7 +6094,7 @@ const Qb = ({
|
|
|
6094
6094
|
emptyPlaceholder: i = "—",
|
|
6095
6095
|
className: o
|
|
6096
6096
|
}) => {
|
|
6097
|
-
const n = xg(e), r =
|
|
6097
|
+
const n = xg(e), r = B(() => n ? new Intl.DateTimeFormat(t, s).format(n) : i, [n, i, t, s]), a = n ? n.toISOString() : void 0;
|
|
6098
6098
|
return /* @__PURE__ */ C(
|
|
6099
6099
|
ss,
|
|
6100
6100
|
{
|
|
@@ -6153,11 +6153,11 @@ const Jb = J(
|
|
|
6153
6153
|
maxDropdownHeight: w
|
|
6154
6154
|
}) => {
|
|
6155
6155
|
const [b, S] = k(a), y = r !== void 0, x = y ? !!r : b, F = L(null), R = I(
|
|
6156
|
-
(
|
|
6157
|
-
y || S(
|
|
6156
|
+
(V) => {
|
|
6157
|
+
y || S(V), l?.(V);
|
|
6158
6158
|
},
|
|
6159
6159
|
[y, l]
|
|
6160
|
-
), D = uc(), P = o === void 0, E = (
|
|
6160
|
+
), D = uc(), P = o === void 0, E = (V) => "clientWidth" in V ? V.clientWidth : V.getBoundingClientRect?.()?.width ?? 0, { refs: T, floatingStyles: O, context: j } = oc({
|
|
6161
6161
|
placement: o,
|
|
6162
6162
|
open: x,
|
|
6163
6163
|
onOpenChange: R,
|
|
@@ -6173,7 +6173,7 @@ const Jb = J(
|
|
|
6173
6173
|
Gh({ padding: fo }),
|
|
6174
6174
|
DC({
|
|
6175
6175
|
padding: fo,
|
|
6176
|
-
apply({ availableWidth:
|
|
6176
|
+
apply({ availableWidth: V, availableHeight: Ce, elements: ye }) {
|
|
6177
6177
|
const ue = ye.floating, Ie = E(ye.reference);
|
|
6178
6178
|
ue.style.setProperty(
|
|
6179
6179
|
"--fui-available-height",
|
|
@@ -6181,7 +6181,7 @@ const Jb = J(
|
|
|
6181
6181
|
), ue.style.setProperty(
|
|
6182
6182
|
"--reference-width",
|
|
6183
6183
|
v ? `${Math.round(Ie)}px` : "0px"
|
|
6184
|
-
), v ? ue.style.minWidth = `${Math.round(Ie)}px` : ue.style.removeProperty("min-width"), ue.style.maxWidth = `${Math.floor(
|
|
6184
|
+
), v ? ue.style.minWidth = `${Math.round(Ie)}px` : ue.style.removeProperty("min-width"), ue.style.maxWidth = `${Math.floor(V)}px`;
|
|
6185
6185
|
const Fe = Math.floor(Ce);
|
|
6186
6186
|
ue.style.maxHeight = `${w ? Math.min(Fe, w) : Fe}px`;
|
|
6187
6187
|
}
|
|
@@ -6197,9 +6197,9 @@ const Jb = J(
|
|
|
6197
6197
|
}), ne = nc(j, {
|
|
6198
6198
|
bubbles: !0,
|
|
6199
6199
|
referencePress: !1,
|
|
6200
|
-
outsidePress: (
|
|
6200
|
+
outsidePress: (V) => {
|
|
6201
6201
|
if (!p) return !1;
|
|
6202
|
-
const Ce =
|
|
6202
|
+
const Ce = V.target;
|
|
6203
6203
|
return !(g?.current && Ce instanceof Node && g.current.contains(Ce));
|
|
6204
6204
|
}
|
|
6205
6205
|
}), N = rc(j, { role: "menu" }), { getReferenceProps: te, getFloatingProps: $ } = ac([
|
|
@@ -6208,34 +6208,34 @@ const Jb = J(
|
|
|
6208
6208
|
ne,
|
|
6209
6209
|
N
|
|
6210
6210
|
]), W = I(
|
|
6211
|
-
(
|
|
6211
|
+
(V, Ce) => {
|
|
6212
6212
|
T.setPositionReference({
|
|
6213
6213
|
getBoundingClientRect: () => ({
|
|
6214
6214
|
width: 0,
|
|
6215
6215
|
height: 0,
|
|
6216
|
-
x:
|
|
6216
|
+
x: V,
|
|
6217
6217
|
y: Ce,
|
|
6218
6218
|
top: Ce,
|
|
6219
|
-
left:
|
|
6220
|
-
right:
|
|
6219
|
+
left: V,
|
|
6220
|
+
right: V,
|
|
6221
6221
|
bottom: Ce
|
|
6222
6222
|
})
|
|
6223
6223
|
});
|
|
6224
6224
|
},
|
|
6225
6225
|
[T]
|
|
6226
6226
|
), Y = I(
|
|
6227
|
-
(
|
|
6228
|
-
!i.includes(It.ContextMenu) || n || (
|
|
6229
|
-
|
|
6230
|
-
|
|
6227
|
+
(V) => {
|
|
6228
|
+
!i.includes(It.ContextMenu) || n || (V.preventDefault(), m && (W(V.clientX, V.clientY), F.current = document.elementFromPoint(
|
|
6229
|
+
V.clientX,
|
|
6230
|
+
V.clientY
|
|
6231
6231
|
)), R(!0));
|
|
6232
6232
|
},
|
|
6233
6233
|
[m, n, R, W, i]
|
|
6234
6234
|
), Z = I(
|
|
6235
|
-
(
|
|
6236
|
-
!m || n || (i.includes(It.ContextMenu) && x && R(!1), W(
|
|
6237
|
-
|
|
6238
|
-
|
|
6235
|
+
(V) => {
|
|
6236
|
+
!m || n || (i.includes(It.ContextMenu) && x && R(!1), W(V.clientX, V.clientY), F.current = document.elementFromPoint(
|
|
6237
|
+
V.clientX,
|
|
6238
|
+
V.clientY
|
|
6239
6239
|
));
|
|
6240
6240
|
},
|
|
6241
6241
|
[m, n, W, x, i, R]
|
|
@@ -6244,52 +6244,52 @@ const Jb = J(
|
|
|
6244
6244
|
n && x && R(!1);
|
|
6245
6245
|
}, [n, x, R]);
|
|
6246
6246
|
const Q = I(
|
|
6247
|
-
(
|
|
6248
|
-
|
|
6247
|
+
(V) => (Ce) => {
|
|
6248
|
+
V.disabled || (V.onClick?.({ key: V.key, domEvent: Ce }), t?.onClick?.({ key: V.key, domEvent: Ce }), R(!1));
|
|
6249
6249
|
},
|
|
6250
6250
|
[t, R]
|
|
6251
|
-
), se =
|
|
6251
|
+
), se = B(() => s ? s() : t ? /* @__PURE__ */ z($e, { children: [
|
|
6252
6252
|
t.header && /* @__PURE__ */ C($e, { children: typeof t.header == "function" ? t.header() : t.header }),
|
|
6253
|
-
/* @__PURE__ */ C("div", { role: "none", className: "py-1", children: t.items.map((
|
|
6253
|
+
/* @__PURE__ */ C("div", { role: "none", className: "py-1", children: t.items.map((V) => V.type === Cl.Divider ? /* @__PURE__ */ C(
|
|
6254
6254
|
"div",
|
|
6255
6255
|
{
|
|
6256
6256
|
role: "separator",
|
|
6257
6257
|
className: o0
|
|
6258
6258
|
},
|
|
6259
|
-
|
|
6260
|
-
) :
|
|
6259
|
+
V.key
|
|
6260
|
+
) : V.type === Cl.PlainText ? /* @__PURE__ */ C(
|
|
6261
6261
|
"div",
|
|
6262
6262
|
{
|
|
6263
6263
|
className: be(
|
|
6264
6264
|
"px-3 py-2 text-secondary dial-caption",
|
|
6265
|
-
|
|
6265
|
+
V.className
|
|
6266
6266
|
),
|
|
6267
|
-
children:
|
|
6267
|
+
children: V.label
|
|
6268
6268
|
},
|
|
6269
|
-
|
|
6269
|
+
V.key
|
|
6270
6270
|
) : /* @__PURE__ */ z(
|
|
6271
6271
|
"button",
|
|
6272
6272
|
{
|
|
6273
6273
|
role: "menuitem",
|
|
6274
6274
|
type: "button",
|
|
6275
|
-
"aria-disabled": !!
|
|
6275
|
+
"aria-disabled": !!V.disabled,
|
|
6276
6276
|
className: J(
|
|
6277
6277
|
t0,
|
|
6278
|
-
|
|
6279
|
-
|
|
6280
|
-
|
|
6278
|
+
V.disabled && s0,
|
|
6279
|
+
V.danger && i0,
|
|
6280
|
+
V.className
|
|
6281
6281
|
),
|
|
6282
|
-
disabled:
|
|
6283
|
-
onClick: Q(
|
|
6282
|
+
disabled: V.disabled,
|
|
6283
|
+
onClick: Q(V),
|
|
6284
6284
|
children: [
|
|
6285
|
-
|
|
6285
|
+
V.icon && /* @__PURE__ */ C(
|
|
6286
6286
|
"span",
|
|
6287
6287
|
{
|
|
6288
6288
|
className: J(
|
|
6289
|
-
|
|
6290
|
-
|
|
6289
|
+
V.danger && "text-error",
|
|
6290
|
+
V.disabled && "text-secondary"
|
|
6291
6291
|
),
|
|
6292
|
-
children: /* @__PURE__ */ C(He, { icon:
|
|
6292
|
+
children: /* @__PURE__ */ C(He, { icon: V.icon })
|
|
6293
6293
|
}
|
|
6294
6294
|
),
|
|
6295
6295
|
/* @__PURE__ */ C(
|
|
@@ -6297,15 +6297,15 @@ const Jb = J(
|
|
|
6297
6297
|
{
|
|
6298
6298
|
className: J(
|
|
6299
6299
|
"flex-1 truncate text-left",
|
|
6300
|
-
|
|
6301
|
-
|
|
6300
|
+
V.danger && "text-error",
|
|
6301
|
+
V.disabled && "text-secondary"
|
|
6302
6302
|
),
|
|
6303
|
-
children:
|
|
6303
|
+
children: V.label
|
|
6304
6304
|
}
|
|
6305
6305
|
)
|
|
6306
6306
|
]
|
|
6307
6307
|
},
|
|
6308
|
-
|
|
6308
|
+
V.key
|
|
6309
6309
|
)) }),
|
|
6310
6310
|
t.footer && /* @__PURE__ */ C($e, { children: typeof t.footer == "function" ? t.footer() : t.footer })
|
|
6311
6311
|
] }) : null, [Q, t, s]), de = te({
|
|
@@ -6314,9 +6314,9 @@ const Jb = J(
|
|
|
6314
6314
|
});
|
|
6315
6315
|
return me(() => {
|
|
6316
6316
|
if (!x) return;
|
|
6317
|
-
const
|
|
6317
|
+
const V = T.reference.current;
|
|
6318
6318
|
let Ce = null;
|
|
6319
|
-
if (
|
|
6319
|
+
if (V instanceof Element ? Ce = V : F.current instanceof Element && (Ce = F.current), !Ce) return;
|
|
6320
6320
|
const ye = new IntersectionObserver(
|
|
6321
6321
|
([ue]) => {
|
|
6322
6322
|
ue.isIntersecting || R(!1);
|
|
@@ -6365,8 +6365,8 @@ const Jb = J(
|
|
|
6365
6365
|
Fg,
|
|
6366
6366
|
{
|
|
6367
6367
|
ariaLabel: "Close dropdown",
|
|
6368
|
-
onClose: (
|
|
6369
|
-
d?.(
|
|
6368
|
+
onClose: (V) => {
|
|
6369
|
+
d?.(V), R(!1);
|
|
6370
6370
|
}
|
|
6371
6371
|
}
|
|
6372
6372
|
) }),
|
|
@@ -6441,7 +6441,7 @@ const Zd = () => typeof window < "u" && window.innerWidth < 640, Qd = () => {
|
|
|
6441
6441
|
smallScreenContainerClassName: n,
|
|
6442
6442
|
smallScreenDropdownItemClassName: r
|
|
6443
6443
|
}) => {
|
|
6444
|
-
const [a, l] = k(!1), [c, d] = k(!1), [u, h] = k(!1), g = n0(), p = g === $s.Mobile || o === or.Tablet && g === $s.Tablet, f = i === ml.Horizontal, m = L(null), v = L(null), w = L(null), b = e.find((x) => x.id === t), S =
|
|
6444
|
+
const [a, l] = k(!1), [c, d] = k(!1), [u, h] = k(!1), g = n0(), p = g === $s.Mobile || o === or.Tablet && g === $s.Tablet, f = i === ml.Horizontal, m = L(null), v = L(null), w = L(null), b = e.find((x) => x.id === t), S = B(
|
|
6445
6445
|
() => J(
|
|
6446
6446
|
"flex gap-2",
|
|
6447
6447
|
f ? "flex-row flex-nowrap overflow-x-auto" : "flex-col flex-wrap w-full"
|
|
@@ -6469,6 +6469,7 @@ const Zd = () => typeof window < "u" && window.innerWidth < 640, Qd = () => {
|
|
|
6469
6469
|
}, [t]), p ? /* @__PURE__ */ C(
|
|
6470
6470
|
"div",
|
|
6471
6471
|
{
|
|
6472
|
+
role: "tablist",
|
|
6472
6473
|
className: be(
|
|
6473
6474
|
"h-11 flex items-center bg-layer-3 px-4",
|
|
6474
6475
|
n
|
|
@@ -6633,7 +6634,7 @@ const Zd = () => typeof window < "u" && window.innerWidth < 640, Qd = () => {
|
|
|
6633
6634
|
children: o,
|
|
6634
6635
|
titleClassName: n
|
|
6635
6636
|
}) => {
|
|
6636
|
-
const r =
|
|
6637
|
+
const r = B(() => e?.length ? e : IC.toArray(o).filter(dc).map((c) => {
|
|
6637
6638
|
const d = c.props, { titleClassName: u, isLast: h, separator: g, ...p } = d;
|
|
6638
6639
|
return p;
|
|
6639
6640
|
}), [e, o]), a = I(
|
|
@@ -6642,7 +6643,7 @@ const Zd = () => typeof window < "u" && window.innerWidth < 640, Qd = () => {
|
|
|
6642
6643
|
u.onClick ? u.onClick(c.domEvent) : u.href && (window.location.href = u.href);
|
|
6643
6644
|
},
|
|
6644
6645
|
[r]
|
|
6645
|
-
), l =
|
|
6646
|
+
), l = B(() => {
|
|
6646
6647
|
if (r.length === 0) return null;
|
|
6647
6648
|
if (r.length <= 3)
|
|
6648
6649
|
return r.map((p, f) => /* @__PURE__ */ So(
|
|
@@ -7799,7 +7800,7 @@ const U0 = ({
|
|
|
7799
7800
|
dismissRef: D,
|
|
7800
7801
|
onFooterClick: P
|
|
7801
7802
|
}) => {
|
|
7802
|
-
const E = uc(), [T, O] = k(!1), [j, H] = k(""), ee = L(null), ne = i !== void 0, [N, te] = k(o), $ = ne ? i : N, W =
|
|
7803
|
+
const E = uc(), [T, O] = k(!1), [j, H] = k(""), ee = L(null), ne = i !== void 0, [N, te] = k(o), $ = ne ? i : N, W = B(() => t ? Array.isArray($) ? $ : [] : typeof $ == "string" ? [$] : [], [$, t]), Y = B(() => {
|
|
7803
7804
|
const _ = j.trim().toLowerCase();
|
|
7804
7805
|
return _ ? e.filter((X) => X.label.toLowerCase().includes(_)) : e;
|
|
7805
7806
|
}, [e, j]);
|
|
@@ -7827,15 +7828,15 @@ const U0 = ({
|
|
|
7827
7828
|
Z(we);
|
|
7828
7829
|
},
|
|
7829
7830
|
[t, W, Z]
|
|
7830
|
-
), de =
|
|
7831
|
+
), de = B(
|
|
7831
7832
|
() => Y.filter((_) => !_.disabled),
|
|
7832
7833
|
[Y]
|
|
7833
|
-
),
|
|
7834
|
+
), V = B(
|
|
7834
7835
|
() => de.filter((_) => W.includes(_.value)).length,
|
|
7835
7836
|
[de, W]
|
|
7836
7837
|
), Ce = (_) => {
|
|
7837
7838
|
R && !t && !_ && Q(j), O(_);
|
|
7838
|
-
}, ye = de.length > 0 &&
|
|
7839
|
+
}, ye = de.length > 0 && V === de.length, ue = V > 0 && !ye, Ie = () => {
|
|
7839
7840
|
if (!(!t || de.length === 0))
|
|
7840
7841
|
if (ye) {
|
|
7841
7842
|
const _ = new Set(de.map((we) => we.value)), X = W.filter((we) => !_.has(we));
|
|
@@ -7854,7 +7855,7 @@ const U0 = ({
|
|
|
7854
7855
|
_.setSelectionRange?.(X, X);
|
|
7855
7856
|
});
|
|
7856
7857
|
}, [T, R, t, v]);
|
|
7857
|
-
const je = !t && Fe ? W[0] : void 0, Le =
|
|
7858
|
+
const je = !t && Fe ? W[0] : void 0, Le = B(
|
|
7858
7859
|
() => je ? e.find((_) => _.value === je) : void 0,
|
|
7859
7860
|
[e, je]
|
|
7860
7861
|
), gt = I(() => !t || W.length === 0 ? null : /* @__PURE__ */ C(
|
|
@@ -8726,7 +8727,7 @@ const oS = function(t, s, i) {
|
|
|
8726
8727
|
), v = I(
|
|
8727
8728
|
(E) => n && E?.length > n,
|
|
8728
8729
|
[n]
|
|
8729
|
-
), w =
|
|
8730
|
+
), w = B(() => p || v(h), [p, h, v]), b = () => {
|
|
8730
8731
|
g([]), f(!1);
|
|
8731
8732
|
};
|
|
8732
8733
|
me(() => {
|
|
@@ -8946,7 +8947,7 @@ const oS = function(t, s, i) {
|
|
|
8946
8947
|
)
|
|
8947
8948
|
] });
|
|
8948
8949
|
}, lS = /* @__PURE__ */ C(kr, { size: 16 }), cS = /* @__PURE__ */ C(fv, { size: 16 }), nu = (e) => {
|
|
8949
|
-
const [t, s] = k(!1), i =
|
|
8950
|
+
const [t, s] = k(!1), i = B(() => t ? cS : lS, [t]);
|
|
8950
8951
|
return /* @__PURE__ */ C("div", { children: /* @__PURE__ */ C(
|
|
8951
8952
|
Nt,
|
|
8952
8953
|
{
|
|
@@ -9184,10 +9185,10 @@ const Sl = ({
|
|
|
9184
9185
|
}
|
|
9185
9186
|
);
|
|
9186
9187
|
}, zg = (e) => {
|
|
9187
|
-
const [t, s] = k(e?.expandedPaths ?? /* @__PURE__ */ new Set()), i =
|
|
9188
|
+
const [t, s] = k(e?.expandedPaths ?? /* @__PURE__ */ new Set()), i = B(
|
|
9188
9189
|
() => !!e?.onExpandedPathsChange,
|
|
9189
9190
|
[e?.onExpandedPathsChange]
|
|
9190
|
-
), o =
|
|
9191
|
+
), o = B(
|
|
9191
9192
|
() => i ? e?.expandedPaths ?? /* @__PURE__ */ new Set() : t,
|
|
9192
9193
|
[i, e?.expandedPaths, t]
|
|
9193
9194
|
), n = I(
|
|
@@ -9363,7 +9364,7 @@ const Sl = ({
|
|
|
9363
9364
|
searchClassName: m,
|
|
9364
9365
|
searchContainerClassName: v
|
|
9365
9366
|
}) => {
|
|
9366
|
-
const w =
|
|
9367
|
+
const w = B(() => {
|
|
9367
9368
|
if (!i) return;
|
|
9368
9369
|
const b = i.split("/").map((y) => y.trim()).filter(Boolean);
|
|
9369
9370
|
if (!b.length) return [{ title: "/" }];
|
|
@@ -9564,7 +9565,7 @@ function qt(e) {
|
|
|
9564
9565
|
function Ve(e) {
|
|
9565
9566
|
return qt(e).activeElement;
|
|
9566
9567
|
}
|
|
9567
|
-
function
|
|
9568
|
+
function st(e) {
|
|
9568
9569
|
const { gos: t, eRootDiv: s } = e;
|
|
9569
9570
|
let i = null;
|
|
9570
9571
|
const o = t.get("getDocument");
|
|
@@ -9572,15 +9573,15 @@ function tt(e) {
|
|
|
9572
9573
|
}
|
|
9573
9574
|
function Wg(e) {
|
|
9574
9575
|
const t = Ve(e);
|
|
9575
|
-
return t === null || t ===
|
|
9576
|
+
return t === null || t === st(e).body;
|
|
9576
9577
|
}
|
|
9577
9578
|
function _g(e) {
|
|
9578
|
-
return
|
|
9579
|
+
return st(e).defaultView || window;
|
|
9579
9580
|
}
|
|
9580
9581
|
function kc(e) {
|
|
9581
9582
|
let t = null, s = null;
|
|
9582
9583
|
try {
|
|
9583
|
-
t =
|
|
9584
|
+
t = st(e).fullscreenElement;
|
|
9584
9585
|
} catch {
|
|
9585
9586
|
} finally {
|
|
9586
9587
|
t || (t = qt(e));
|
|
@@ -9930,7 +9931,7 @@ function dy(e, t, s) {
|
|
|
9930
9931
|
return;
|
|
9931
9932
|
const l = Jg(e.offsetParent), { clientY: c, clientX: d } = t;
|
|
9932
9933
|
let u = c - l.top - o / 2, h = d - l.left - 10;
|
|
9933
|
-
const g =
|
|
9934
|
+
const g = st(s), p = g.defaultView || window, f = p.pageYOffset || g.documentElement.scrollTop, m = p.pageXOffset || g.documentElement.scrollLeft;
|
|
9934
9935
|
n > 0 && h + e.clientWidth > n + m && (h = n + m - e.clientWidth), h < 0 && (h = 0), r > 0 && u + e.clientHeight > r + f && (u = r + f - e.clientHeight), u < 0 && (u = 0), e.style.left = `${h}px`, e.style.top = `${u}px`;
|
|
9935
9936
|
}
|
|
9936
9937
|
var Vn = (e, ...t) => {
|
|
@@ -12970,7 +12971,7 @@ function br(e) {
|
|
|
12970
12971
|
s && (e.ctrlKey || e.metaKey || e.altKey) || t !== s && (Nl = s);
|
|
12971
12972
|
}
|
|
12972
12973
|
function g2(e) {
|
|
12973
|
-
const t =
|
|
12974
|
+
const t = st(e);
|
|
12974
12975
|
return u2(t), wr++, () => {
|
|
12975
12976
|
wr--, h2(t);
|
|
12976
12977
|
};
|
|
@@ -14637,7 +14638,7 @@ ${n}}
|
|
|
14637
14638
|
this.interactionEnabled && ([this.tooltipMouseEnterListener, this.tooltipMouseLeaveListener] = this.addManagedElementListeners(i, {
|
|
14638
14639
|
mouseenter: this.onTooltipMouseEnter.bind(this),
|
|
14639
14640
|
mouseleave: this.onTooltipMouseLeave.bind(this)
|
|
14640
|
-
}), [this.onDocumentKeyDownCallback] = this.addManagedElementListeners(
|
|
14641
|
+
}), [this.onDocumentKeyDownCallback] = this.addManagedElementListeners(st(this.beans), {
|
|
14641
14642
|
keydown: (r) => {
|
|
14642
14643
|
i.contains(r?.target) || this.onKeyDown();
|
|
14643
14644
|
}
|
|
@@ -14844,12 +14845,12 @@ ${n}}
|
|
|
14844
14845
|
}
|
|
14845
14846
|
}
|
|
14846
14847
|
getParentRect() {
|
|
14847
|
-
const e =
|
|
14848
|
+
const e = st(this.beans);
|
|
14848
14849
|
let t = this.getPopupParent();
|
|
14849
14850
|
return t === e.body ? t = e.documentElement : getComputedStyle(t).position === "static" && (t = t.offsetParent), Jg(t);
|
|
14850
14851
|
}
|
|
14851
14852
|
keepXYWithinBounds(e, t, s) {
|
|
14852
|
-
const i = s === 0, o = i ? "clientHeight" : "clientWidth", n = i ? "top" : "left", r = i ? "height" : "width", a = i ? "scrollTop" : "scrollLeft", l =
|
|
14853
|
+
const i = s === 0, o = i ? "clientHeight" : "clientWidth", n = i ? "top" : "left", r = i ? "height" : "width", a = i ? "scrollTop" : "scrollLeft", l = st(this.beans), c = l.documentElement, d = this.getPopupParent(), u = e.getBoundingClientRect(), h = d.getBoundingClientRect(), g = l.documentElement.getBoundingClientRect(), p = d === l.body, f = Math.ceil(u[r]);
|
|
14853
14854
|
let v = p ? (i ? Xg : rr)(c) + c[a] : d[o];
|
|
14854
14855
|
p && (v -= Math.abs(g[n] - h[n]));
|
|
14855
14856
|
const w = v - f;
|
|
@@ -14874,7 +14875,7 @@ ${n}}
|
|
|
14874
14875
|
return n.applyThemeClasses(a), a.classList.add("ag-popup"), e.classList.add(r.get("enableRtl") ? "ag-rtl" : "ag-ltr", "ag-popup-child"), e.hasAttribute("role") || ri(e, "dialog"), s ? Ki(e, s) : i && (e.id || (e.id = `popup-component-${Pn}`), lu(i, e.id)), a.appendChild(e), o.appendChild(a), t ? this.setAlwaysOnTop(e, !0) : this.bringPopupToFront(e), a;
|
|
14875
14876
|
}
|
|
14876
14877
|
addEventListenersToPopup(e) {
|
|
14877
|
-
const t = this.beans, s =
|
|
14878
|
+
const t = this.beans, s = st(t), { wrapperEl: i, eChild: o, closedCallback: n, afterGuiAttached: r, closeOnEsc: a, modal: l, ariaOwns: c } = e;
|
|
14878
14879
|
let d = !1;
|
|
14879
14880
|
const u = (f) => {
|
|
14880
14881
|
if (!i.contains(Ve(t)))
|
|
@@ -14986,7 +14987,7 @@ ${n}}
|
|
|
14986
14987
|
return this.isElementWithinCustomPopup(o.target);
|
|
14987
14988
|
}
|
|
14988
14989
|
isElementWithinCustomPopup(e) {
|
|
14989
|
-
const t =
|
|
14990
|
+
const t = st(this.beans);
|
|
14990
14991
|
for (; e && e !== t.body; ) {
|
|
14991
14992
|
if (e.classList.contains("ag-custom-component-popup") || e.parentElement === null)
|
|
14992
14993
|
return !0;
|
|
@@ -15143,7 +15144,7 @@ ${n}}
|
|
|
15143
15144
|
}
|
|
15144
15145
|
initDrag(e, ...t) {
|
|
15145
15146
|
this.drag = e;
|
|
15146
|
-
const s = this.beans, i = (a) => this.onScroll(a), o = (a) => this.onKeyDown(a), n = qt(s), r =
|
|
15147
|
+
const s = this.beans, i = (a) => this.onScroll(a), o = (a) => this.onKeyDown(a), n = qt(s), r = st(s);
|
|
15147
15148
|
Vn(
|
|
15148
15149
|
e.handlers,
|
|
15149
15150
|
[n, "contextmenu", Es],
|
|
@@ -15225,7 +15226,7 @@ ${n}}
|
|
|
15225
15226
|
}
|
|
15226
15227
|
/** only gets called after a mouse down - as this is only added after mouseDown and is removed when mouseUp happens */
|
|
15227
15228
|
onMouseOrPointerMove(e) {
|
|
15228
|
-
rs(e) && (Ns() &&
|
|
15229
|
+
rs(e) && (Ns() && st(this.beans).getSelection()?.removeAllRanges(), this.shouldPreventMouseEvent(e) && Es(e), this.onMove(e));
|
|
15229
15230
|
}
|
|
15230
15231
|
onTouchMove(e) {
|
|
15231
15232
|
const t = this.drag;
|
|
@@ -16100,7 +16101,7 @@ function Iu(e, t, s, i, o, n, r) {
|
|
|
16100
16101
|
}
|
|
16101
16102
|
o(a), l ? n(c) : gf(t, s, i);
|
|
16102
16103
|
}
|
|
16103
|
-
function
|
|
16104
|
+
function tt(e, t) {
|
|
16104
16105
|
return e[t] ?? null;
|
|
16105
16106
|
}
|
|
16106
16107
|
function Ct(e) {
|
|
@@ -18814,7 +18815,7 @@ var AF = class extends A {
|
|
|
18814
18815
|
return;
|
|
18815
18816
|
const { paddingTop: h, paddingBottom: g, borderBottomWidth: p, borderTopWidth: f } = hi(this.eGui), m = h + g + p + f, w = t.offsetHeight + m;
|
|
18816
18817
|
if (u < 5) {
|
|
18817
|
-
const S = !
|
|
18818
|
+
const S = !st(o)?.contains(t), y = w == 0;
|
|
18818
18819
|
if (S || y) {
|
|
18819
18820
|
xl(() => n(u + 1), "raf", o);
|
|
18820
18821
|
return;
|
|
@@ -20961,7 +20962,7 @@ var lE = class extends A {
|
|
|
20961
20962
|
!(this.providedFocusInnerElement ? this.providedFocusInnerElement(t) : this.focusInnerElement(t)) && this.forceFocusOutWhenTabGuardsAreEmpty && this.findNextElementOutsideAndFocus(e.target === this.eBottomGuard);
|
|
20962
20963
|
}
|
|
20963
20964
|
findNextElementOutsideAndFocus(e) {
|
|
20964
|
-
const t =
|
|
20965
|
+
const t = st(this.beans), s = Bi(t.body, null, !0), i = s.indexOf(e ? this.eTopGuard : this.eBottomGuard);
|
|
20965
20966
|
if (i === -1)
|
|
20966
20967
|
return;
|
|
20967
20968
|
let o, n;
|
|
@@ -21059,7 +21060,7 @@ var lE = class extends A {
|
|
|
21059
21060
|
return this.tabGuardCtrl;
|
|
21060
21061
|
}
|
|
21061
21062
|
createTabGuard(e) {
|
|
21062
|
-
const t =
|
|
21063
|
+
const t = st(this.beans).createElement("div"), s = e === "top" ? zi.TAB_GUARD_TOP : zi.TAB_GUARD_BOTTOM;
|
|
21063
21064
|
return t.classList.add(zi.TAB_GUARD, s), ri(t, "presentation"), t;
|
|
21064
21065
|
}
|
|
21065
21066
|
addTabGuards(e, t) {
|
|
@@ -26726,7 +26727,7 @@ var MP = class extends A {
|
|
|
26726
26727
|
e.ctrlsSvc.whenReady(this, (s) => {
|
|
26727
26728
|
this.gridBodyCon = s.gridBodyCtrl;
|
|
26728
26729
|
});
|
|
26729
|
-
const t =
|
|
26730
|
+
const t = st(e);
|
|
26730
26731
|
this.addManagedElementListeners(t, {
|
|
26731
26732
|
mousedown: () => {
|
|
26732
26733
|
this.currentHeaderRowWithoutSpan = -1;
|
|
@@ -32519,7 +32520,7 @@ var Q5 = {
|
|
|
32519
32520
|
super(), this.beanName = "ariaAnnounce", this.descriptionContainer = null, this.pendingAnnouncements = /* @__PURE__ */ new Map(), this.lastAnnouncement = "", this.updateAnnouncement = nt(this, this.updateAnnouncement.bind(this), 200);
|
|
32520
32521
|
}
|
|
32521
32522
|
postConstruct() {
|
|
32522
|
-
const e = this.beans, t =
|
|
32523
|
+
const e = this.beans, t = st(e), s = this.descriptionContainer = t.createElement("div");
|
|
32523
32524
|
s.classList.add("ag-aria-description-container"), jg(s, "polite"), WS(s, "additions text"), zS(s, !0), e.eGridDiv.appendChild(s);
|
|
32524
32525
|
}
|
|
32525
32526
|
/**
|
|
@@ -35913,7 +35914,7 @@ var pT = class extends A {
|
|
|
35913
35914
|
this.comp.getFloatingFilterComp()?.then((i) => {
|
|
35914
35915
|
typeof i?.refresh == "function" && (this.gos.get("enableFilterHandlers") && (s = {
|
|
35915
35916
|
...s,
|
|
35916
|
-
model:
|
|
35917
|
+
model: tt(this.beans.colFilter?.model ?? {}, this.column.getColId()),
|
|
35917
35918
|
source: t
|
|
35918
35919
|
}), i.refresh(s));
|
|
35919
35920
|
});
|
|
@@ -36178,7 +36179,7 @@ var kT = {
|
|
|
36178
36179
|
for (const i of Object.keys(t)) {
|
|
36179
36180
|
const o = t[i];
|
|
36180
36181
|
this.state.set(i, {
|
|
36181
|
-
model:
|
|
36182
|
+
model: tt(this.model, i),
|
|
36182
36183
|
state: o
|
|
36183
36184
|
});
|
|
36184
36185
|
}
|
|
@@ -36198,9 +36199,9 @@ var kT = {
|
|
|
36198
36199
|
getModelFromFilterWrapper(e) {
|
|
36199
36200
|
const s = e.column.getColId();
|
|
36200
36201
|
if (e.isHandler)
|
|
36201
|
-
return
|
|
36202
|
+
return tt(this.model, s);
|
|
36202
36203
|
const i = e.filter;
|
|
36203
|
-
return i ? typeof i.getModel != "function" ? (G(66), null) : i.getModel() :
|
|
36204
|
+
return i ? typeof i.getModel != "function" ? (G(66), null) : i.getModel() : tt(this.initialModel, s);
|
|
36204
36205
|
}
|
|
36205
36206
|
isFilterPresent() {
|
|
36206
36207
|
return this.activeColumnFilters.length > 0;
|
|
@@ -36293,7 +36294,7 @@ var kT = {
|
|
|
36293
36294
|
if (!h.doesFilterPass({
|
|
36294
36295
|
node: e,
|
|
36295
36296
|
data: r,
|
|
36296
|
-
model:
|
|
36297
|
+
model: tt(a, d),
|
|
36297
36298
|
handlerParams: g
|
|
36298
36299
|
}))
|
|
36299
36300
|
return !1;
|
|
@@ -36372,10 +36373,10 @@ var kT = {
|
|
|
36372
36373
|
if (t?.isHandler)
|
|
36373
36374
|
return this.isHandlerActive(e);
|
|
36374
36375
|
const s = t?.filter;
|
|
36375
|
-
return s ? s.isFilterActive() :
|
|
36376
|
+
return s ? s.isFilterActive() : tt(this.initialModel, e.getColId()) != null;
|
|
36376
36377
|
}
|
|
36377
36378
|
isHandlerActive(e) {
|
|
36378
|
-
const t = q(
|
|
36379
|
+
const t = q(tt(this.model, e.getColId()));
|
|
36379
36380
|
if (t)
|
|
36380
36381
|
return t;
|
|
36381
36382
|
const s = this.beans.groupFilter;
|
|
@@ -36472,7 +36473,7 @@ var kT = {
|
|
|
36472
36473
|
const o = this.filterChangedCallbackFactory(e), n = this.createBaseFilterParams(e, i);
|
|
36473
36474
|
if (n.filterChangedCallback = o, n.filterModifiedCallback = i ? () => {
|
|
36474
36475
|
} : (r) => this.filterModified(e, r), t) {
|
|
36475
|
-
const r = n, a = e.getColId(), l =
|
|
36476
|
+
const r = n, a = e.getColId(), l = tt(this.model, a);
|
|
36476
36477
|
r.model = l, r.state = this.state.get(a) ?? {
|
|
36477
36478
|
model: l
|
|
36478
36479
|
}, r.onModelChange = (c, d) => {
|
|
@@ -36521,7 +36522,7 @@ var kT = {
|
|
|
36521
36522
|
return delete this.initialModel[r], s.init?.({
|
|
36522
36523
|
...o,
|
|
36523
36524
|
source: "init",
|
|
36524
|
-
model:
|
|
36525
|
+
model: tt(this.model, r)
|
|
36525
36526
|
}), {
|
|
36526
36527
|
column: e,
|
|
36527
36528
|
isHandler: !0,
|
|
@@ -36640,7 +36641,7 @@ var kT = {
|
|
|
36640
36641
|
});
|
|
36641
36642
|
if (c) {
|
|
36642
36643
|
const h = u, g = e.getColId(), p = this.filterChangedCallbackFactory(e);
|
|
36643
|
-
h.onUiChange = (f) => this.floatingFilterUiChanged(e, f), h.model =
|
|
36644
|
+
h.onUiChange = (f) => this.floatingFilterUiChanged(e, f), h.model = tt(this.model, g), h.onModelChange = (f, m) => {
|
|
36644
36645
|
this.updateStoredModel(g, f), this.refreshHandlerAndUi(e, f, "floating", !0, m).then(() => {
|
|
36645
36646
|
p({ ...m, source: "columnFilter" });
|
|
36646
36647
|
});
|
|
@@ -36730,7 +36731,7 @@ var kT = {
|
|
|
36730
36731
|
this.createFilterCompParams(o, u, "colDef")
|
|
36731
36732
|
);
|
|
36732
36733
|
if (h) {
|
|
36733
|
-
const m = d?.handlerNameOrCallback ?? d?.filterHandler, v =
|
|
36734
|
+
const m = d?.handlerNameOrCallback ?? d?.filterHandler, v = tt(this.model, e);
|
|
36734
36735
|
if (s.handlerGenerator != m) {
|
|
36735
36736
|
const w = s.handler, { handler: b, handlerParams: S } = this.createHandlerFromFunc(
|
|
36736
36737
|
o,
|
|
@@ -36823,7 +36824,7 @@ var kT = {
|
|
|
36823
36824
|
getModelForColumn(e, t) {
|
|
36824
36825
|
if (t) {
|
|
36825
36826
|
const { state: i, model: o } = this, n = e.getColId(), r = i.get(n);
|
|
36826
|
-
return r ? r.model ?? null :
|
|
36827
|
+
return r ? r.model ?? null : tt(o, n);
|
|
36827
36828
|
}
|
|
36828
36829
|
const s = this.cachedFilter(e);
|
|
36829
36830
|
return s ? this.getModelFromFilterWrapper(s) : null;
|
|
@@ -36843,7 +36844,7 @@ var kT = {
|
|
|
36843
36844
|
}
|
|
36844
36845
|
getStateForColumn(e) {
|
|
36845
36846
|
return this.state.get(e) ?? {
|
|
36846
|
-
model:
|
|
36847
|
+
model: tt(this.model, e)
|
|
36847
36848
|
};
|
|
36848
36849
|
}
|
|
36849
36850
|
setModelForColumnLegacy(e, t) {
|
|
@@ -36938,7 +36939,7 @@ var kT = {
|
|
|
36938
36939
|
Iu(
|
|
36939
36940
|
t,
|
|
36940
36941
|
n,
|
|
36941
|
-
() =>
|
|
36942
|
+
() => tt(this.model, i),
|
|
36942
36943
|
() => this.state.get(i),
|
|
36943
36944
|
(r) => this.updateState(e, r),
|
|
36944
36945
|
(r) => n()?.filterParams?.onModelChange(r, s),
|
|
@@ -36952,7 +36953,7 @@ var kT = {
|
|
|
36952
36953
|
n && Iu(
|
|
36953
36954
|
e,
|
|
36954
36955
|
() => i.filterUi,
|
|
36955
|
-
() =>
|
|
36956
|
+
() => tt(this.model, o),
|
|
36956
36957
|
() => this.state.get(o),
|
|
36957
36958
|
(r) => this.updateState(n, r),
|
|
36958
36959
|
(r) => {
|
|
@@ -36976,7 +36977,7 @@ var kT = {
|
|
|
36976
36977
|
const t = e.getColId();
|
|
36977
36978
|
gf(
|
|
36978
36979
|
() => this.cachedFilter(e)?.filterUi,
|
|
36979
|
-
() =>
|
|
36980
|
+
() => tt(this.model, t),
|
|
36980
36981
|
() => this.state.get(t)
|
|
36981
36982
|
);
|
|
36982
36983
|
}
|
|
@@ -36998,13 +36999,13 @@ var kT = {
|
|
|
36998
36999
|
const n = e.get(o);
|
|
36999
37000
|
if (n.valid === !1)
|
|
37000
37001
|
return !1;
|
|
37001
|
-
(n.model ?? null) !==
|
|
37002
|
+
(n.model ?? null) !== tt(t, o) && (i = !0);
|
|
37002
37003
|
}
|
|
37003
37004
|
return i;
|
|
37004
37005
|
}
|
|
37005
37006
|
hasUnappliedModel(e) {
|
|
37006
37007
|
const { model: t, state: s } = this;
|
|
37007
|
-
return (s.get(e)?.model ?? null) !==
|
|
37008
|
+
return (s.get(e)?.model ?? null) !== tt(t, e);
|
|
37008
37009
|
}
|
|
37009
37010
|
setGlobalButtons(e) {
|
|
37010
37011
|
this.isGlobalButtons = e, this.dispatchLocalEvent({
|
|
@@ -45958,7 +45959,7 @@ var bA = {
|
|
|
45958
45959
|
return;
|
|
45959
45960
|
const { paddingTop: u, paddingBottom: h, borderBottomWidth: g, borderTopWidth: p } = hi(i), f = u + h + g + p, v = t.offsetHeight + f;
|
|
45960
45961
|
if (d < 5) {
|
|
45961
|
-
const b = !
|
|
45962
|
+
const b = !st(r)?.contains(t), S = v == 0;
|
|
45962
45963
|
if (b || S) {
|
|
45963
45964
|
window.setTimeout(() => a(d + 1), 0);
|
|
45964
45965
|
return;
|
|
@@ -46126,7 +46127,7 @@ function Tr(e, t, s) {
|
|
|
46126
46127
|
return i.length === e.length && o.length === 0 ? e : i.length === 0 && o.length === t.length ? t : i.length === 0 ? o : o.length === 0 ? i : [...i, ...o];
|
|
46127
46128
|
}
|
|
46128
46129
|
var Xm = hc((e, t) => {
|
|
46129
|
-
const { registry: s, context: i } =
|
|
46130
|
+
const { registry: s, context: i } = Je(ht), o = L(null), n = L(null), r = L(null), a = L(null), l = L(null), c = L(), [d, u] = k(), [h, g] = k(), [p, f] = k(), [m, v] = k(() => new Ot()), [w, b] = k(() => new Ot("ag-hidden")), [S, y] = k(() => new Ot("ag-hidden")), [x, F] = k(() => new Ot("ag-invisible"));
|
|
46130
46131
|
Ir(t, () => ({
|
|
46131
46132
|
// force new instance when grid tries to refresh
|
|
46132
46133
|
refresh() {
|
|
@@ -46158,10 +46159,10 @@ var Xm = hc((e, t) => {
|
|
|
46158
46159
|
Xm,
|
|
46159
46160
|
e
|
|
46160
46161
|
));
|
|
46161
|
-
}, []), D =
|
|
46162
|
+
}, []), D = B(() => `ag-cell-wrapper ${m.toString()}`, [m]), P = B(() => `ag-group-expanded ${w.toString()}`, [w]), E = B(
|
|
46162
46163
|
() => `ag-group-contracted ${S.toString()}`,
|
|
46163
46164
|
[S]
|
|
46164
|
-
), T =
|
|
46165
|
+
), T = B(() => `ag-group-checkbox ${x.toString()}`, [x]), O = d?.componentFromFramework, j = O ? d.componentClass : void 0, H = d == null && p != null, ee = oo(p);
|
|
46165
46166
|
return /* @__PURE__ */ U.createElement(
|
|
46166
46167
|
"span",
|
|
46167
46168
|
{
|
|
@@ -46624,7 +46625,7 @@ var jA = 1e3, KA = class {
|
|
|
46624
46625
|
}
|
|
46625
46626
|
}
|
|
46626
46627
|
}, qA = ({ ctrl: e }) => {
|
|
46627
|
-
const t = e.isAlive(), { context: s } =
|
|
46628
|
+
const t = e.isAlive(), { context: s } = Je(ht), [i, o] = k(), [n, r] = k(), a = L(), l = L(null), c = L(null), d = L(null), u = L(), h = L();
|
|
46628
46629
|
t && !h.current && (h.current = new Jo(() => l.current));
|
|
46629
46630
|
const g = I((v) => {
|
|
46630
46631
|
if (l.current = v, !v || !e.isAlive() || s.isDestroyed()) {
|
|
@@ -46657,7 +46658,7 @@ var jA = 1e3, KA = class {
|
|
|
46657
46658
|
), me(() => {
|
|
46658
46659
|
e.setDragSource(l.current);
|
|
46659
46660
|
}, [i]);
|
|
46660
|
-
const p =
|
|
46661
|
+
const p = B(() => !!(i?.componentFromFramework && ao(i.componentClass)), [i]), f = i?.componentFromFramework, m = i?.componentClass;
|
|
46661
46662
|
return /* @__PURE__ */ U.createElement("div", { ref: g, style: n, className: "ag-header-cell", role: "columnheader" }, /* @__PURE__ */ U.createElement("div", { ref: c, className: "ag-header-cell-resize", role: "presentation" }), /* @__PURE__ */ U.createElement("div", { ref: d, className: "ag-header-cell-comp-wrapper", role: "presentation" }, f ? p ? /* @__PURE__ */ U.createElement(m, { ...i.params }) : /* @__PURE__ */ U.createElement(m, { ...i.params, ref: u }) : null));
|
|
46662
46663
|
}, YA = ut(qA), ZA = class {
|
|
46663
46664
|
constructor(e, t) {
|
|
@@ -46676,7 +46677,7 @@ var jA = 1e3, KA = class {
|
|
|
46676
46677
|
return ["afterGuiAttached"];
|
|
46677
46678
|
}
|
|
46678
46679
|
}, QA = ({ ctrl: e }) => {
|
|
46679
|
-
const { context: t, gos: s } =
|
|
46680
|
+
const { context: t, gos: s } = Je(ht), [i, o] = k(), [n, r] = k(
|
|
46680
46681
|
() => new Ot("ag-header-cell", "ag-floating-filter")
|
|
46681
46682
|
), [a, l] = k(() => new Ot()), [c, d] = k(
|
|
46682
46683
|
() => new Ot("ag-floating-filter-button", "ag-hidden")
|
|
@@ -46710,7 +46711,7 @@ var jA = 1e3, KA = class {
|
|
|
46710
46711
|
() => nn(g, t, w.current, F),
|
|
46711
46712
|
[g]
|
|
46712
46713
|
);
|
|
46713
|
-
const D =
|
|
46714
|
+
const D = B(() => n.toString(), [n]), P = B(() => a.toString(), [a]), E = B(() => c.toString(), [c]), T = B(() => !!(g && g.componentFromFramework && ao(g.componentClass)), [g]), O = B(() => s.get("reactiveCustomComponents"), []), j = B(() => s.get("enableFilterHandlers"), []), [H, ee] = k();
|
|
46714
46715
|
me(() => {
|
|
46715
46716
|
if (g?.componentFromFramework)
|
|
46716
46717
|
if (O) {
|
|
@@ -46748,7 +46749,7 @@ var jA = 1e3, KA = class {
|
|
|
46748
46749
|
)
|
|
46749
46750
|
));
|
|
46750
46751
|
}, XA = ut(QA), JA = ({ ctrl: e }) => {
|
|
46751
|
-
const { context: t } =
|
|
46752
|
+
const { context: t } = Je(ht), [s, i] = k(), [o, n] = k(() => new Ot()), [r, a] = k(() => new Ot()), [l, c] = k("false"), [d, u] = k(), [h, g] = k(), p = L(), f = L(null), m = L(null), v = L(null), w = L(), b = I((D) => {
|
|
46752
46753
|
if (f.current = D, !D || !e.isAlive() || t.isDestroyed()) {
|
|
46753
46754
|
p.current = t.destroyBean(p.current);
|
|
46754
46755
|
return;
|
|
@@ -46780,13 +46781,13 @@ var jA = 1e3, KA = class {
|
|
|
46780
46781
|
Vt(() => nn(h, t, v.current), [h]), me(() => {
|
|
46781
46782
|
f.current && e.setDragSource(f.current);
|
|
46782
46783
|
}, [h]);
|
|
46783
|
-
const S =
|
|
46784
|
+
const S = B(() => !!(h?.componentFromFramework && ao(h.componentClass)), [h]), y = B(() => "ag-header-group-cell " + o.toString(), [o]), x = B(
|
|
46784
46785
|
() => "ag-header-cell-resize " + r.toString(),
|
|
46785
46786
|
[r]
|
|
46786
46787
|
), F = h?.componentFromFramework, R = h?.componentClass;
|
|
46787
46788
|
return /* @__PURE__ */ U.createElement("div", { ref: b, style: s, className: y, role: "columnheader", "aria-expanded": d }, /* @__PURE__ */ U.createElement("div", { ref: v, className: "ag-header-cell-comp-wrapper", role: "presentation" }, F ? S ? /* @__PURE__ */ U.createElement(R, { ...h.params }) : /* @__PURE__ */ U.createElement(R, { ...h.params, ref: w }) : null), /* @__PURE__ */ U.createElement("div", { ref: m, "aria-hidden": l, className: x }));
|
|
46788
46789
|
}, e8 = ut(JA), t8 = ({ ctrl: e }) => {
|
|
46789
|
-
const { gos: t, context: s } =
|
|
46790
|
+
const { gos: t, context: s } = Je(ht), { topOffset: i, rowHeight: o } = B(() => e.getTopAndHeight(), []), n = B(() => t.get("tabIndex"), []), [r, a] = k(() => e.getAriaRowIndex()), l = e.headerRowClass, [c, d] = k(() => o + "px"), [u, h] = k(() => i + "px"), g = L(null), [p, f] = k(() => e.getUpdatedHeaderCtrls()), m = L(), v = L(null), w = I((y) => {
|
|
46790
46791
|
if (v.current = y, !y || !e.isAlive() || s.isDestroyed()) {
|
|
46791
46792
|
m.current = s.destroyBean(m.current);
|
|
46792
46793
|
return;
|
|
@@ -46807,7 +46808,7 @@ var jA = 1e3, KA = class {
|
|
|
46807
46808
|
}
|
|
46808
46809
|
};
|
|
46809
46810
|
e.setComp(x, m.current, !1);
|
|
46810
|
-
}, []), b =
|
|
46811
|
+
}, []), b = B(
|
|
46811
46812
|
() => ({
|
|
46812
46813
|
height: c,
|
|
46813
46814
|
top: u
|
|
@@ -46836,7 +46837,7 @@ var jA = 1e3, KA = class {
|
|
|
46836
46837
|
p.map(S)
|
|
46837
46838
|
);
|
|
46838
46839
|
}, s8 = ut(t8), i8 = ({ pinned: e }) => {
|
|
46839
|
-
const [t, s] = k(!0), [i, o] = k([]), { context: n } =
|
|
46840
|
+
const [t, s] = k(!0), [i, o] = k([]), { context: n } = Je(ht), r = L(null), a = L(null), l = L(), c = e === "left", d = e === "right", u = !c && !d, h = I((f) => {
|
|
46840
46841
|
if (r.current = f, !f || n.isDestroyed()) {
|
|
46841
46842
|
l.current = n.destroyBean(l.current);
|
|
46842
46843
|
return;
|
|
@@ -46861,7 +46862,7 @@ var jA = 1e3, KA = class {
|
|
|
46861
46862
|
}, []), g = t ? "" : "ag-hidden", p = () => i.map((f) => /* @__PURE__ */ U.createElement(s8, { ctrl: f, key: f.instanceId }));
|
|
46862
46863
|
return c ? /* @__PURE__ */ U.createElement("div", { ref: h, className: "ag-pinned-left-header " + g, "aria-hidden": !t, role: "rowgroup" }, p()) : d ? /* @__PURE__ */ U.createElement("div", { ref: h, className: "ag-pinned-right-header " + g, "aria-hidden": !t, role: "rowgroup" }, p()) : u ? /* @__PURE__ */ U.createElement("div", { ref: h, className: "ag-header-viewport " + g, role: "rowgroup", tabIndex: -1 }, /* @__PURE__ */ U.createElement("div", { ref: a, className: "ag-header-container", role: "presentation" }, p())) : null;
|
|
46863
46864
|
}, il = ut(i8), o8 = () => {
|
|
46864
|
-
const [e, t] = k(() => new Ot()), [s, i] = k(), { context: o } =
|
|
46865
|
+
const [e, t] = k(() => new Ot()), [s, i] = k(), { context: o } = Je(ht), n = L(null), r = L(), a = I((d) => {
|
|
46865
46866
|
if (n.current = d, !d || o.isDestroyed()) {
|
|
46866
46867
|
r.current = o.destroyBean(r.current);
|
|
46867
46868
|
return;
|
|
@@ -46872,7 +46873,7 @@ var jA = 1e3, KA = class {
|
|
|
46872
46873
|
setHeightAndMinHeight: (h) => i(h)
|
|
46873
46874
|
};
|
|
46874
46875
|
r.current.setComp(u, d, d);
|
|
46875
|
-
}, []), l =
|
|
46876
|
+
}, []), l = B(() => "ag-header " + e.toString(), [e]), c = B(
|
|
46876
46877
|
() => ({
|
|
46877
46878
|
height: s,
|
|
46878
46879
|
minHeight: s
|
|
@@ -46942,7 +46943,7 @@ var jA = 1e3, KA = class {
|
|
|
46942
46943
|
o.current && s.current?.();
|
|
46943
46944
|
}), []);
|
|
46944
46945
|
}, c8 = (e) => {
|
|
46945
|
-
const [t, s] = k(), i =
|
|
46946
|
+
const [t, s] = k(), i = Je(ht), { context: o, popupSvc: n, gos: r, editSvc: a } = i, { editDetails: l, cellCtrl: c, eParentCell: d } = e;
|
|
46946
46947
|
return l8(() => {
|
|
46947
46948
|
const { compDetails: u } = l, h = r.get("stopEditingWhenCellsLoseFocus");
|
|
46948
46949
|
let g, p;
|
|
@@ -47005,7 +47006,7 @@ var jA = 1e3, KA = class {
|
|
|
47005
47006
|
}
|
|
47006
47007
|
) : c && o ? /* @__PURE__ */ U.createElement(kh, { editDetails: e, cellCtrl: i, eParentCell: s, jsChildComp: o }) : null;
|
|
47007
47008
|
}, h8 = (e, t, s, i, o, n) => {
|
|
47008
|
-
const { context: r } =
|
|
47009
|
+
const { context: r } = Je(ht), a = I(() => {
|
|
47009
47010
|
const l = o.current;
|
|
47010
47011
|
if (!l)
|
|
47011
47012
|
return;
|
|
@@ -47038,7 +47039,7 @@ var jA = 1e3, KA = class {
|
|
|
47038
47039
|
cellCtrl: e,
|
|
47039
47040
|
parent: t
|
|
47040
47041
|
}) => {
|
|
47041
|
-
const s = L(), i =
|
|
47042
|
+
const s = L(), i = B(() => {
|
|
47042
47043
|
const { loadingComp: o } = e.getDeferLoadingCellRenderer();
|
|
47043
47044
|
return o ? {
|
|
47044
47045
|
value: void 0,
|
|
@@ -47056,14 +47057,14 @@ var jA = 1e3, KA = class {
|
|
|
47056
47057
|
printLayout: t,
|
|
47057
47058
|
editingCell: s
|
|
47058
47059
|
}) => {
|
|
47059
|
-
const i =
|
|
47060
|
+
const i = Je(ht), { context: o } = i, {
|
|
47060
47061
|
column: { colIdSanitised: n },
|
|
47061
47062
|
instanceId: r
|
|
47062
47063
|
} = e, a = L(), [l, c] = k(
|
|
47063
47064
|
() => e.isCellRenderer() ? void 0 : { compDetails: void 0, value: e.getValueToDisplay(), force: !1 }
|
|
47064
|
-
), [d, u] = k(), [h, g] = k(1), [p, f] = k(), [m, v] = k(!1), [w, b] = k(!1), [S, y] = k(!1), [x, F] = k(), R =
|
|
47065
|
+
), [d, u] = k(), [h, g] = k(1), [p, f] = k(), [m, v] = k(!1), [w, b] = k(!1), [S, y] = k(!1), [x, F] = k(), R = B(() => e.isForceWrapper(), [e]), D = B(() => e.getCellAriaRole(), [e]), P = L(null), E = L(null), T = L(null), O = L(), j = L(), H = L(), ee = L([]), ne = L(), N = L(), [te, $] = k(0), W = I((fe) => {
|
|
47065
47066
|
N.current = fe, $((xe) => xe + 1);
|
|
47066
|
-
}, []), Y = l != null && (m || S || w) && (d == null || !!d.popup), Z = R || Y, Q =
|
|
47067
|
+
}, []), Y = l != null && (m || S || w) && (d == null || !!d.popup), Z = R || Y, Q = B(() => e.getCellValueClass(), [e]), se = I(
|
|
47067
47068
|
(fe) => {
|
|
47068
47069
|
if (j.current = fe, fe) {
|
|
47069
47070
|
const xe = fe.isCancelBeforeStart && fe.isCancelBeforeStart();
|
|
@@ -47075,10 +47076,10 @@ var jA = 1e3, KA = class {
|
|
|
47075
47076
|
[e]
|
|
47076
47077
|
), de = L();
|
|
47077
47078
|
de.current || (de.current = new Jo(() => P.current)), tC(l, Z, N.current, te, O, P);
|
|
47078
|
-
const
|
|
47079
|
+
const V = L();
|
|
47079
47080
|
Vt(() => {
|
|
47080
|
-
const fe =
|
|
47081
|
-
if (
|
|
47081
|
+
const fe = V.current, xe = l;
|
|
47082
|
+
if (V.current = l, fe == null || fe.compDetails == null || xe == null || xe.compDetails == null)
|
|
47082
47083
|
return;
|
|
47083
47084
|
ne.current?.refreshVisibility();
|
|
47084
47085
|
const Me = fe.compDetails, _ = xe.compDetails;
|
|
@@ -47192,7 +47193,7 @@ var jA = 1e3, KA = class {
|
|
|
47192
47193
|
P.current = fe, ye();
|
|
47193
47194
|
}, []), Ie = I((fe) => {
|
|
47194
47195
|
E.current = fe, ye();
|
|
47195
|
-
}, []), Fe =
|
|
47196
|
+
}, []), Fe = B(() => !!(l?.compDetails?.componentFromFramework && ao(l.compDetails.componentClass)), [l]);
|
|
47196
47197
|
Vt(() => {
|
|
47197
47198
|
if (!P.current)
|
|
47198
47199
|
return;
|
|
@@ -47213,7 +47214,7 @@ var jA = 1e3, KA = class {
|
|
|
47213
47214
|
}, gt = () => /* @__PURE__ */ U.createElement("div", { ref: ue, style: p, role: D, "col-id": n }, Z ? /* @__PURE__ */ U.createElement("div", { className: "ag-cell-wrapper", role: "presentation", ref: Ce }, Le()) : Le());
|
|
47214
47215
|
return e.isCellSpanning() ? /* @__PURE__ */ U.createElement("div", { ref: Ie, className: "ag-spanned-cell-wrapper", role: "presentation" }, gt()) : gt();
|
|
47215
47216
|
}, f8 = ut(p8), m8 = ({ rowCtrl: e, containerType: t }) => {
|
|
47216
|
-
const { context: s, gos: i, editSvc: o } =
|
|
47217
|
+
const { context: s, gos: i, editSvc: o } = Je(ht), n = Je(Ym) === "default", r = L(), a = L(e.getDomOrder()), l = e.isFullWidth(), c = e.rowNode.displayed, [d, u] = k(
|
|
47217
47218
|
() => c ? e.rowNode.getRowIndexString() : null
|
|
47218
47219
|
), [h, g] = k(() => e.rowId), [p, f] = k(() => e.businessKey), [m, v] = k(() => e.rowStyles), w = L(null), [b, S] = k(() => null), [y, x] = k(), [F, R] = k(
|
|
47219
47220
|
() => c ? e.getInitialRowTop(t) : void 0
|
|
@@ -47269,7 +47270,7 @@ var jA = 1e3, KA = class {
|
|
|
47269
47270
|
getFullWidthCellRendererParams: () => O.current,
|
|
47270
47271
|
refreshFullWidth: (Fe) => {
|
|
47271
47272
|
const je = Fe();
|
|
47272
|
-
return O.current = je,
|
|
47273
|
+
return O.current = je, V.current ? (x((Le) => ({
|
|
47273
47274
|
...Le,
|
|
47274
47275
|
params: je
|
|
47275
47276
|
})), !0) : !T.current || !T.current.refresh ? !1 : T.current.refresh(je);
|
|
@@ -47281,12 +47282,12 @@ var jA = 1e3, KA = class {
|
|
|
47281
47282
|
() => nn(y, s, E.current, T),
|
|
47282
47283
|
[y]
|
|
47283
47284
|
);
|
|
47284
|
-
const Z =
|
|
47285
|
+
const Z = B(() => {
|
|
47285
47286
|
const ue = { top: F, transform: D };
|
|
47286
47287
|
return Object.assign(ue, m), ue;
|
|
47287
|
-
}, [F, D, m]), Q = l && y?.componentFromFramework, se = !l && W != null, de =
|
|
47288
|
+
}, [F, D, m]), Q = l && y?.componentFromFramework, se = !l && W != null, de = B(() => !!(y?.componentFromFramework && ao(y.componentClass)), [y]), V = L(!1);
|
|
47288
47289
|
me(() => {
|
|
47289
|
-
|
|
47290
|
+
V.current = de && !!y && !!i.get("reactiveCustomComponents");
|
|
47290
47291
|
}, [de, y]);
|
|
47291
47292
|
const Ce = () => W?.map((ue) => /* @__PURE__ */ U.createElement(
|
|
47292
47293
|
f8,
|
|
@@ -47313,7 +47314,7 @@ var jA = 1e3, KA = class {
|
|
|
47313
47314
|
se ? Ce() : Q ? ye() : null
|
|
47314
47315
|
);
|
|
47315
47316
|
}, Lh = ut(m8), C8 = ({ name: e }) => {
|
|
47316
|
-
const { context: t, gos: s } =
|
|
47317
|
+
const { context: t, gos: s } = Je(ht), i = B(() => tn(e), [e]), o = L(null), n = L(null), r = L(null), a = L([]), l = L([]), [c, d] = k(() => []), u = !!s.get("enableCellSpan") && !!i.getSpannedRowCtrls, h = L([]), g = L([]), [p, f] = k(() => []), m = L(!1), v = L(), w = B(() => Tt("ag-viewport", bf(e)), [e]), b = B(() => Tt(qn(e)), [e]), S = B(() => Tt("ag-spanning-container", iF(e)), [e]), y = i.type === "center" || u, x = y ? o : n;
|
|
47317
47318
|
Us(" AG Row Container " + e + " ", x);
|
|
47318
47319
|
const F = I(() => {
|
|
47319
47320
|
const H = !y || o.current != null, ee = n.current != null, ne = !u || r.current != null;
|
|
@@ -47395,11 +47396,11 @@ var jA = 1e3, KA = class {
|
|
|
47395
47396
|
const j = () => /* @__PURE__ */ U.createElement("div", { className: S, ref: E, role: "presentation" }, p.map((H) => /* @__PURE__ */ U.createElement(Lh, { rowCtrl: H, containerType: i.type, key: H.instanceId })));
|
|
47396
47397
|
return /* @__PURE__ */ U.createElement("div", { className: w, ref: T, role: "rowgroup" }, O(), u ? j() : null);
|
|
47397
47398
|
}, v8 = ut(C8), w8 = () => {
|
|
47398
|
-
const e =
|
|
47399
|
+
const e = Je(ht), { context: t, overlays: s } = e, [i, o] = k(""), [n, r] = k(0), [a, l] = k(0), [c, d] = k("0px"), [u, h] = k("0px"), [g, p] = k("100%"), [f, m] = k("0px"), [v, w] = k("0px"), [b, S] = k("100%"), [y, x] = k(!0), [F, R] = k(!0), [D, P] = k(null), [E, T] = k(""), [O, j] = k(null), [H, ee] = k("ag-layout-normal"), ne = L();
|
|
47399
47400
|
ne.current || (ne.current = new Jo(() => N.current));
|
|
47400
47401
|
const N = L(null), te = L(null), $ = L(null), W = L(null), Y = L(null), Z = L(null), Q = L(null), se = L([]), de = L([]);
|
|
47401
47402
|
Us(" AG Grid Body ", N), Us(" AG Pinned Top ", te), Us(" AG Sticky Top ", $), Us(" AG Middle ", Z), Us(" AG Pinned Bottom ", Q);
|
|
47402
|
-
const
|
|
47403
|
+
const V = I((we) => {
|
|
47403
47404
|
if (N.current = we, !we || t.isDestroyed()) {
|
|
47404
47405
|
se.current = t.destroyBeans(se.current);
|
|
47405
47406
|
for (const ke of de.current)
|
|
@@ -47407,13 +47408,13 @@ var jA = 1e3, KA = class {
|
|
|
47407
47408
|
de.current = [];
|
|
47408
47409
|
return;
|
|
47409
47410
|
}
|
|
47410
|
-
const We = (ke,
|
|
47411
|
-
ke.appendChild(
|
|
47411
|
+
const We = (ke, it) => {
|
|
47412
|
+
ke.appendChild(it), de.current.push(() => it.remove());
|
|
47412
47413
|
}, St = (ke) => {
|
|
47413
|
-
const
|
|
47414
|
-
return se.current.push(
|
|
47415
|
-
}, _e = (ke,
|
|
47416
|
-
We(ke, document.createComment(lo)), We(ke, St(
|
|
47414
|
+
const it = t.createBean(new ke());
|
|
47415
|
+
return se.current.push(it), it;
|
|
47416
|
+
}, _e = (ke, it, lo) => {
|
|
47417
|
+
We(ke, document.createComment(lo)), We(ke, St(it).getGui());
|
|
47417
47418
|
};
|
|
47418
47419
|
_e(we, bF, " AG Fake Horizontal Scroll ");
|
|
47419
47420
|
const Gt = s?.getOverlayWrapperCompClass();
|
|
@@ -47433,18 +47434,18 @@ var jA = 1e3, KA = class {
|
|
|
47433
47434
|
setStickyTopWidth: p,
|
|
47434
47435
|
setTopInvisible: x,
|
|
47435
47436
|
setBottomInvisible: R,
|
|
47436
|
-
setColumnMovingCss: (ke,
|
|
47437
|
+
setColumnMovingCss: (ke, it) => ne.current.toggleCss(ke, it),
|
|
47437
47438
|
updateLayoutClasses: ee,
|
|
47438
47439
|
setAlwaysVerticalScrollClass: P,
|
|
47439
47440
|
setPinnedTopBottomOverflowY: T,
|
|
47440
|
-
setCellSelectableCss: (ke,
|
|
47441
|
+
setCellSelectableCss: (ke, it) => j(it ? ke : null),
|
|
47441
47442
|
setBodyViewportWidth: (ke) => {
|
|
47442
47443
|
Z.current && (Z.current.style.width = ke);
|
|
47443
47444
|
},
|
|
47444
47445
|
registerBodyViewportResizeListener: (ke) => {
|
|
47445
47446
|
if (Z.current) {
|
|
47446
|
-
const
|
|
47447
|
-
de.current.push(() =>
|
|
47447
|
+
const it = ws(e, Z.current, ke);
|
|
47448
|
+
de.current.push(() => it());
|
|
47448
47449
|
}
|
|
47449
47450
|
},
|
|
47450
47451
|
setStickyBottomHeight: m,
|
|
@@ -47461,7 +47462,7 @@ var jA = 1e3, KA = class {
|
|
|
47461
47462
|
$.current,
|
|
47462
47463
|
W.current
|
|
47463
47464
|
);
|
|
47464
|
-
}, []), Ce =
|
|
47465
|
+
}, []), Ce = B(() => Tt("ag-root", "ag-unselectable", H), [H]), ye = B(
|
|
47465
47466
|
() => Tt(
|
|
47466
47467
|
"ag-body-viewport",
|
|
47467
47468
|
i,
|
|
@@ -47470,37 +47471,37 @@ var jA = 1e3, KA = class {
|
|
|
47470
47471
|
O
|
|
47471
47472
|
),
|
|
47472
47473
|
[i, H, D, O]
|
|
47473
|
-
), ue =
|
|
47474
|
+
), ue = B(() => Tt("ag-body", H), [H]), Ie = B(
|
|
47474
47475
|
() => Tt("ag-floating-top", y ? "ag-invisible" : null, O),
|
|
47475
47476
|
[O, y]
|
|
47476
|
-
), Fe =
|
|
47477
|
+
), Fe = B(() => Tt("ag-sticky-top", O), [O]), je = B(
|
|
47477
47478
|
() => Tt("ag-sticky-bottom", f === "0px" ? "ag-invisible" : null, O),
|
|
47478
47479
|
[O, f]
|
|
47479
|
-
), Le =
|
|
47480
|
+
), Le = B(
|
|
47480
47481
|
() => Tt("ag-floating-bottom", F ? "ag-invisible" : null, O),
|
|
47481
47482
|
[O, F]
|
|
47482
|
-
), gt =
|
|
47483
|
+
), gt = B(
|
|
47483
47484
|
() => ({
|
|
47484
47485
|
height: n,
|
|
47485
47486
|
minHeight: n,
|
|
47486
47487
|
overflowY: E
|
|
47487
47488
|
}),
|
|
47488
47489
|
[n, E]
|
|
47489
|
-
), fe =
|
|
47490
|
+
), fe = B(
|
|
47490
47491
|
() => ({
|
|
47491
47492
|
height: c,
|
|
47492
47493
|
top: u,
|
|
47493
47494
|
width: g
|
|
47494
47495
|
}),
|
|
47495
47496
|
[c, u, g]
|
|
47496
|
-
), xe =
|
|
47497
|
+
), xe = B(
|
|
47497
47498
|
() => ({
|
|
47498
47499
|
height: f,
|
|
47499
47500
|
bottom: v,
|
|
47500
47501
|
width: b
|
|
47501
47502
|
}),
|
|
47502
47503
|
[f, v, b]
|
|
47503
|
-
), Me =
|
|
47504
|
+
), Me = B(
|
|
47504
47505
|
() => ({
|
|
47505
47506
|
height: a,
|
|
47506
47507
|
minHeight: a,
|
|
@@ -47513,7 +47514,7 @@ var jA = 1e3, KA = class {
|
|
|
47513
47514
|
className: St,
|
|
47514
47515
|
style: _e
|
|
47515
47516
|
}) => /* @__PURE__ */ U.createElement("div", { ref: we, className: St, role: "presentation", style: _e }, We.map(_));
|
|
47516
|
-
return /* @__PURE__ */ U.createElement("div", { ref:
|
|
47517
|
+
return /* @__PURE__ */ U.createElement("div", { ref: V, className: Ce }, /* @__PURE__ */ U.createElement(n8, null), X({
|
|
47517
47518
|
section: te,
|
|
47518
47519
|
className: Ie,
|
|
47519
47520
|
style: gt,
|
|
@@ -47539,7 +47540,7 @@ var jA = 1e3, KA = class {
|
|
|
47539
47540
|
children: ["bottomLeft", "bottomCenter", "bottomRight", "bottomFullWidth"]
|
|
47540
47541
|
}));
|
|
47541
47542
|
}, b8 = ut(w8), S8 = (e, t) => {
|
|
47542
|
-
const { children: s, eFocusableElement: i, onTabKeyDown: o, gridCtrl: n, forceFocusOutWhenTabGuardsAreEmpty: r, isEmpty: a } = e, { context: l } =
|
|
47543
|
+
const { children: s, eFocusableElement: i, onTabKeyDown: o, gridCtrl: n, forceFocusOutWhenTabGuardsAreEmpty: r, isEmpty: a } = e, { context: l } = Je(ht), c = L(null), d = L(null), u = L(), h = (v) => {
|
|
47543
47544
|
const w = v == null ? void 0 : parseInt(v, 10).toString();
|
|
47544
47545
|
for (const b of [c, d])
|
|
47545
47546
|
w === void 0 ? b.current?.removeAttribute("tabindex") : b.current?.setAttribute("tabindex", w);
|
|
@@ -47662,13 +47663,13 @@ var jA = 1e3, KA = class {
|
|
|
47662
47663
|
Y.remove();
|
|
47663
47664
|
};
|
|
47664
47665
|
}, [u, m, e]);
|
|
47665
|
-
const F =
|
|
47666
|
+
const F = B(
|
|
47666
47667
|
() => Tt("ag-root-wrapper", t, i),
|
|
47667
47668
|
[t, i]
|
|
47668
|
-
), R =
|
|
47669
|
+
), R = B(
|
|
47669
47670
|
() => Tt("ag-root-wrapper-body", "ag-focus-managed", i),
|
|
47670
47671
|
[i]
|
|
47671
|
-
), D =
|
|
47672
|
+
), D = B(
|
|
47672
47673
|
() => ({
|
|
47673
47674
|
userSelect: a ?? "",
|
|
47674
47675
|
WebkitUserSelect: a ?? "",
|
|
@@ -47809,7 +47810,7 @@ var jA = 1e3, KA = class {
|
|
|
47809
47810
|
), o.current.push(() => {
|
|
47810
47811
|
t.current = void 0;
|
|
47811
47812
|
}), t.current && (l.current = t.current.getGridId());
|
|
47812
|
-
}, []), p =
|
|
47813
|
+
}, []), p = B(() => ({
|
|
47813
47814
|
height: "100%",
|
|
47814
47815
|
...e.containerStyle || {}
|
|
47815
47816
|
}), [e.containerStyle]), f = I((v) => {
|
|
@@ -47890,10 +47891,10 @@ var M8 = class extends Q4 {
|
|
|
47890
47891
|
return new Jm(e, this.parent, t, o);
|
|
47891
47892
|
}
|
|
47892
47893
|
}, I8 = hc((e, t) => {
|
|
47893
|
-
const s =
|
|
47894
|
+
const s = Je(ht), { registry: i, context: o, gos: n, rowModel: r } = s, [a, l] = k(() => new Ot()), [c, d] = k(() => new Ot()), [u, h] = k(), [g, p] = k(), f = L(), m = L(null), v = L(), w = B(
|
|
47894
47895
|
() => Dy(e.api.getGridId(), u?.rowModelType ?? "clientSide"),
|
|
47895
47896
|
[e]
|
|
47896
|
-
), b =
|
|
47897
|
+
), b = B(() => a.toString() + " ag-details-row", [a]), S = B(() => c.toString() + " ag-details-grid", [c]);
|
|
47897
47898
|
t && Ir(t, () => ({
|
|
47898
47899
|
refresh() {
|
|
47899
47900
|
return f.current?.refresh() ?? !1;
|
|
@@ -48015,7 +48016,7 @@ const L8 = "h-full", ol = {
|
|
|
48015
48016
|
rowData: o = [],
|
|
48016
48017
|
getRowId: n
|
|
48017
48018
|
}) => {
|
|
48018
|
-
const [r, a] = k(/* @__PURE__ */ new Map()), l = t ?? r, c =
|
|
48019
|
+
const [r, a] = k(/* @__PURE__ */ new Map()), l = t ?? r, c = B(
|
|
48019
48020
|
() => new Set(l.keys()),
|
|
48020
48021
|
[l]
|
|
48021
48022
|
), d = e !== void 0 || t !== void 0;
|
|
@@ -48043,7 +48044,7 @@ const L8 = "h-full", ol = {
|
|
|
48043
48044
|
s,
|
|
48044
48045
|
i
|
|
48045
48046
|
]
|
|
48046
|
-
), h =
|
|
48047
|
+
), h = B(() => {
|
|
48047
48048
|
if (!o.length) return "unchecked";
|
|
48048
48049
|
const p = o.every(
|
|
48049
48050
|
(m) => c.has(n(m))
|
|
@@ -48113,7 +48114,7 @@ const nC = ({
|
|
|
48113
48114
|
onSelectionChangeWithMap: u,
|
|
48114
48115
|
rowData: t,
|
|
48115
48116
|
getRowId: h
|
|
48116
|
-
}), O =
|
|
48117
|
+
}), O = B(
|
|
48117
48118
|
() => ({
|
|
48118
48119
|
...ol,
|
|
48119
48120
|
oddRowBackgroundColor: g ? ol.oddRowBackgroundColor : ol.backgroundColor,
|
|
@@ -48143,7 +48144,7 @@ const nC = ({
|
|
|
48143
48144
|
) }), [E, T]), ne = I(
|
|
48144
48145
|
(se) => {
|
|
48145
48146
|
if (se.data) {
|
|
48146
|
-
const de = i?.(se.data) ?? [],
|
|
48147
|
+
const de = i?.(se.data) ?? [], V = se.value == null ? "" : String(se.value);
|
|
48147
48148
|
return /* @__PURE__ */ C(
|
|
48148
48149
|
Nt,
|
|
48149
48150
|
{
|
|
@@ -48155,7 +48156,7 @@ const nC = ({
|
|
|
48155
48156
|
children: /* @__PURE__ */ C("span", { className: "block min-w-0 h-full max-w-full", children: /* @__PURE__ */ C(
|
|
48156
48157
|
ss,
|
|
48157
48158
|
{
|
|
48158
|
-
text:
|
|
48159
|
+
text: V,
|
|
48159
48160
|
className: "max-w-full h-full"
|
|
48160
48161
|
}
|
|
48161
48162
|
) })
|
|
@@ -48167,19 +48168,19 @@ const nC = ({
|
|
|
48167
48168
|
), N = I(
|
|
48168
48169
|
(se) => {
|
|
48169
48170
|
if (!se.data) return null;
|
|
48170
|
-
const de = h(se.data),
|
|
48171
|
+
const de = h(se.data), V = D.has(de), Ce = `row-select-${de}`;
|
|
48171
48172
|
return /* @__PURE__ */ C("div", { className: "flex items-center justify-center size-full", children: /* @__PURE__ */ C(
|
|
48172
48173
|
er,
|
|
48173
48174
|
{
|
|
48174
48175
|
id: Ce,
|
|
48175
48176
|
ariaLabel: "Select row",
|
|
48176
|
-
checked:
|
|
48177
|
+
checked: V,
|
|
48177
48178
|
className: "dial-row-select",
|
|
48178
48179
|
onChange: (ye) => {
|
|
48179
48180
|
se.data && P(se.data, !!ye);
|
|
48180
48181
|
}
|
|
48181
48182
|
},
|
|
48182
|
-
`${de}-${
|
|
48183
|
+
`${de}-${V}`
|
|
48183
48184
|
) });
|
|
48184
48185
|
},
|
|
48185
48186
|
[D, h, P]
|
|
@@ -48190,11 +48191,11 @@ const nC = ({
|
|
|
48190
48191
|
return { ...se, cellRenderer: ne };
|
|
48191
48192
|
if (!de)
|
|
48192
48193
|
return se;
|
|
48193
|
-
const
|
|
48194
|
+
const V = se.cellRenderer;
|
|
48194
48195
|
return { ...se, cellRenderer: (ye) => {
|
|
48195
48196
|
const ue = ye.data ? i?.(ye.data) ?? [] : [];
|
|
48196
48197
|
let Ie = null;
|
|
48197
|
-
return typeof
|
|
48198
|
+
return typeof V == "function" ? Ie = /* @__PURE__ */ C(V, { ...ye }) : Ie = ne(ye), /* @__PURE__ */ C(
|
|
48198
48199
|
Nt,
|
|
48199
48200
|
{
|
|
48200
48201
|
trigger: [It.ContextMenu],
|
|
@@ -48208,7 +48209,7 @@ const nC = ({
|
|
|
48208
48209
|
} };
|
|
48209
48210
|
},
|
|
48210
48211
|
[i, ne, a]
|
|
48211
|
-
), $ =
|
|
48212
|
+
), $ = B(
|
|
48212
48213
|
() => ({
|
|
48213
48214
|
colId: "__select",
|
|
48214
48215
|
headerName: "",
|
|
@@ -48226,10 +48227,10 @@ const nC = ({
|
|
|
48226
48227
|
headerComponent: ee
|
|
48227
48228
|
}),
|
|
48228
48229
|
[N, ee]
|
|
48229
|
-
), W =
|
|
48230
|
+
), W = B(() => {
|
|
48230
48231
|
const se = (e ?? []).map(te);
|
|
48231
48232
|
return r ? [$, ...se] : se;
|
|
48232
|
-
}, [e, $, r, te]), Y =
|
|
48233
|
+
}, [e, $, r, te]), Y = B(
|
|
48233
48234
|
() => ({
|
|
48234
48235
|
minWidth: 150,
|
|
48235
48236
|
resizable: !0,
|
|
@@ -48244,8 +48245,8 @@ const nC = ({
|
|
|
48244
48245
|
}),
|
|
48245
48246
|
[p]
|
|
48246
48247
|
), Z = (se) => {
|
|
48247
|
-
const de = W.map((
|
|
48248
|
-
...
|
|
48248
|
+
const de = W.map((V) => ({
|
|
48249
|
+
...V,
|
|
48249
48250
|
sort: void 0
|
|
48250
48251
|
}));
|
|
48251
48252
|
se.api.updateGridOptions({ columnDefs: de, rowData: t }), se.api.sizeColumnsToFit(), F(se.api), s?.onGridReady?.(se);
|
|
@@ -48317,7 +48318,7 @@ const nC = ({
|
|
|
48317
48318
|
}
|
|
48318
48319
|
);
|
|
48319
48320
|
};
|
|
48320
|
-
var ic = /* @__PURE__ */ ((e) => (e.MyFiles = "my_files", e.Shared = "shared", e.Organization = "organization", e))(ic || {}), he = /* @__PURE__ */ ((e) => (e.Duplicate = "duplicate", e.Copy = "copy", e.Move = "move", e.Rename = "rename", e.Download = "download", e.Delete = "delete", e))(he || {}), lt = /* @__PURE__ */ ((e) => (e.Replace = "replace", e.Duplicate = "duplicate", e.Cancel = "cancel", e))(lt || {}), Dt = /* @__PURE__ */ ((e) => (e.ReplaceAll = "replaceAll", e.DuplicateAll = "duplicateAll", e.DecideForEach = "decideForEach", e))(Dt || {}),
|
|
48321
|
+
var ic = /* @__PURE__ */ ((e) => (e.MyFiles = "my_files", e.Shared = "shared", e.Organization = "organization", e))(ic || {}), he = /* @__PURE__ */ ((e) => (e.Duplicate = "duplicate", e.Copy = "copy", e.Move = "move", e.Rename = "rename", e.Download = "download", e.Delete = "delete", e))(he || {}), lt = /* @__PURE__ */ ((e) => (e.Replace = "replace", e.Duplicate = "duplicate", e.Cancel = "cancel", e))(lt || {}), Dt = /* @__PURE__ */ ((e) => (e.ReplaceAll = "replaceAll", e.DuplicateAll = "duplicateAll", e.DecideForEach = "decideForEach", e))(Dt || {}), Xe = /* @__PURE__ */ ((e) => (e.Copy = "copy", e.Move = "move", e))(Xe || {});
|
|
48321
48322
|
const rC = () => {
|
|
48322
48323
|
const [e, t] = k(Zd());
|
|
48323
48324
|
return me(() => {
|
|
@@ -48338,7 +48339,7 @@ const rC = () => {
|
|
|
48338
48339
|
showHiddenFilesLabel: d = "Show hidden files",
|
|
48339
48340
|
hideHiddenFilesLabel: u = "Hide hidden files"
|
|
48340
48341
|
}) => {
|
|
48341
|
-
const h = rC(), g =
|
|
48342
|
+
const h = rC(), g = B(() => [
|
|
48342
48343
|
{
|
|
48343
48344
|
key: "hidden-files-switch",
|
|
48344
48345
|
label: i ? u : d,
|
|
@@ -48721,7 +48722,7 @@ const z8 = ({ selectionLabel: e, onClearSelection: t, actions: s }) => {
|
|
|
48721
48722
|
onMoveSuccess: o,
|
|
48722
48723
|
onDuplicateSuccess: n
|
|
48723
48724
|
}) => {
|
|
48724
|
-
const [r, a] = k(!1), [l, c] = k([]), [d, u] = k([]), [h, g] = k(
|
|
48725
|
+
const [r, a] = k(!1), [l, c] = k([]), [d, u] = k([]), [h, g] = k(Xe.Copy), [p, f] = k(null), {
|
|
48725
48726
|
conflictingFiles: m,
|
|
48726
48727
|
conflictResolutionOpen: v,
|
|
48727
48728
|
hasActiveConflictRef: w,
|
|
@@ -48735,7 +48736,7 @@ const z8 = ({ selectionLabel: e, onClearSelection: t, actions: s }) => {
|
|
|
48735
48736
|
} = U8({
|
|
48736
48737
|
getDestinationFiles: e,
|
|
48737
48738
|
onResolve: (W, Y) => {
|
|
48738
|
-
p?.type ===
|
|
48739
|
+
p?.type === Xe.Copy ? (t?.(W, Y), i?.()) : p?.type === Xe.Move && p.sourceFolder && (s?.(
|
|
48739
48740
|
W,
|
|
48740
48741
|
p.sourceFolder,
|
|
48741
48742
|
Y
|
|
@@ -48746,9 +48747,9 @@ const z8 = ({ selectionLabel: e, onClearSelection: t, actions: s }) => {
|
|
|
48746
48747
|
}, []), E = I(
|
|
48747
48748
|
(W) => {
|
|
48748
48749
|
const Y = b(W, l, {
|
|
48749
|
-
type:
|
|
48750
|
+
type: Xe.Copy
|
|
48750
48751
|
});
|
|
48751
|
-
if (f({ type:
|
|
48752
|
+
if (f({ type: Xe.Copy }), !Y.hasConflicts) {
|
|
48752
48753
|
const Z = S(
|
|
48753
48754
|
W,
|
|
48754
48755
|
l,
|
|
@@ -48768,10 +48769,10 @@ const z8 = ({ selectionLabel: e, onClearSelection: t, actions: s }) => {
|
|
|
48768
48769
|
), T = I(
|
|
48769
48770
|
(W, Y) => {
|
|
48770
48771
|
const Z = b(W, d, {
|
|
48771
|
-
type:
|
|
48772
|
+
type: Xe.Move,
|
|
48772
48773
|
sourceFolder: Y
|
|
48773
48774
|
});
|
|
48774
|
-
if (f({ type:
|
|
48775
|
+
if (f({ type: Xe.Move, sourceFolder: Y }), !Z.hasConflicts) {
|
|
48775
48776
|
const Q = S(
|
|
48776
48777
|
W,
|
|
48777
48778
|
d,
|
|
@@ -49082,13 +49083,13 @@ const J8 = ({
|
|
|
49082
49083
|
validationMessages: s,
|
|
49083
49084
|
onMoveToFiles: i
|
|
49084
49085
|
}) => {
|
|
49085
|
-
const [o, n] = k(), r =
|
|
49086
|
+
const [o, n] = k(), r = B(
|
|
49086
49087
|
() => ({
|
|
49087
49088
|
...Q8,
|
|
49088
49089
|
...s
|
|
49089
49090
|
}),
|
|
49090
49091
|
[s]
|
|
49091
|
-
), a =
|
|
49092
|
+
), a = B(() => o?.path, [o]), l = I(
|
|
49092
49093
|
(h) => {
|
|
49093
49094
|
const g = oi(e, h);
|
|
49094
49095
|
g && n(g);
|
|
@@ -49149,7 +49150,7 @@ const J8 = ({
|
|
|
49149
49150
|
onCreateFolder: s,
|
|
49150
49151
|
onUploadArchive: i
|
|
49151
49152
|
}) => {
|
|
49152
|
-
const o =
|
|
49153
|
+
const o = B(() => {
|
|
49153
49154
|
const r = [];
|
|
49154
49155
|
return e && (e.newFolder && r.push({
|
|
49155
49156
|
key: "new-folder",
|
|
@@ -49173,7 +49174,7 @@ const J8 = ({
|
|
|
49173
49174
|
i && i();
|
|
49174
49175
|
}
|
|
49175
49176
|
})), r;
|
|
49176
|
-
}, [e, t, s, i]), n =
|
|
49177
|
+
}, [e, t, s, i]), n = B(() => o.length > 0, [o]);
|
|
49177
49178
|
return { newActions: o, isNewButtonVisible: n };
|
|
49178
49179
|
}, tL = {
|
|
49179
49180
|
emptyName: "Folder name cannot be empty",
|
|
@@ -49184,7 +49185,7 @@ const J8 = ({
|
|
|
49184
49185
|
onValidateFolderName: s,
|
|
49185
49186
|
validationMessages: i
|
|
49186
49187
|
}) => {
|
|
49187
|
-
const [o, n] = k(!1), [r, a] = k(null), l = L(e?.path), c =
|
|
49188
|
+
const [o, n] = k(!1), [r, a] = k(null), l = L(e?.path), c = B(
|
|
49188
49189
|
() => ({
|
|
49189
49190
|
...tL,
|
|
49190
49191
|
...i
|
|
@@ -49279,7 +49280,7 @@ const J8 = ({
|
|
|
49279
49280
|
}) => {
|
|
49280
49281
|
const [H, ee] = k(
|
|
49281
49282
|
/* @__PURE__ */ new Map()
|
|
49282
|
-
), ne =
|
|
49283
|
+
), ne = B(
|
|
49283
49284
|
() => new Set(H.keys()),
|
|
49284
49285
|
[H]
|
|
49285
49286
|
), N = I(() => ee(/* @__PURE__ */ new Map()), []), { currentPath: te, setCurrentPath: $, handlePathChange: W } = j8({
|
|
@@ -49291,7 +49292,7 @@ const J8 = ({
|
|
|
49291
49292
|
p?.setDestinationFolderPath ? p.setDestinationFolderPath(De) : Z(De);
|
|
49292
49293
|
},
|
|
49293
49294
|
[p]
|
|
49294
|
-
), { areHiddenFilesVisible: de, toggleHiddenFilesVisibility:
|
|
49295
|
+
), { areHiddenFilesVisible: de, toggleHiddenFilesVisibility: V } = W8({
|
|
49295
49296
|
showHiddenFiles: r,
|
|
49296
49297
|
onShowHiddenFilesChange: a
|
|
49297
49298
|
}), { isTreeCollapsed: Ce, toggleTreeCollapse: ye, setIsTreeCollapsed: ue } = _8({
|
|
@@ -49316,7 +49317,7 @@ const J8 = ({
|
|
|
49316
49317
|
}, [c?.value]);
|
|
49317
49318
|
const _ = String(
|
|
49318
49319
|
c?.value ?? xe ?? ""
|
|
49319
|
-
).trim(), X =
|
|
49320
|
+
).trim(), X = B(
|
|
49320
49321
|
() => au(s, te) ?? s[0],
|
|
49321
49322
|
[s, te]
|
|
49322
49323
|
), {
|
|
@@ -49328,7 +49329,7 @@ const J8 = ({
|
|
|
49328
49329
|
openDestinationFolderPopup: $t,
|
|
49329
49330
|
handleSetCopiedFiles: Ci,
|
|
49330
49331
|
handleSetMovedFiles: ke,
|
|
49331
|
-
destinationFolderMode:
|
|
49332
|
+
destinationFolderMode: it,
|
|
49332
49333
|
conflictingFiles: lo,
|
|
49333
49334
|
conflictResolutionOpen: Xr,
|
|
49334
49335
|
closeConflictResolution: Jr,
|
|
@@ -49412,19 +49413,19 @@ const J8 = ({
|
|
|
49412
49413
|
onUploadFiles: fn,
|
|
49413
49414
|
onUploadArchive: mn,
|
|
49414
49415
|
onCreateFolder: Ke
|
|
49415
|
-
}), dC =
|
|
49416
|
+
}), dC = B(() => {
|
|
49416
49417
|
const De = Gn(_).trim(), Bt = X?.items ?? [];
|
|
49417
49418
|
let go = De ? RS(X) : Bt;
|
|
49418
|
-
de || (go = go.filter((
|
|
49419
|
-
const ca = go.map((
|
|
49420
|
-
id:
|
|
49421
|
-
name:
|
|
49422
|
-
updatedAt:
|
|
49423
|
-
size:
|
|
49424
|
-
author:
|
|
49425
|
-
path:
|
|
49426
|
-
nodeType:
|
|
49427
|
-
extension:
|
|
49419
|
+
de || (go = go.filter((et) => !Vg(et)));
|
|
49420
|
+
const ca = go.map((et) => ({
|
|
49421
|
+
id: et.id ?? et.path,
|
|
49422
|
+
name: et.name ?? et.path.split("/").pop() ?? "",
|
|
49423
|
+
updatedAt: et.updatedAt,
|
|
49424
|
+
size: et.nodeType === dt.ITEM ? iL(et.contentLength) : "-",
|
|
49425
|
+
author: et.author,
|
|
49426
|
+
path: et.path,
|
|
49427
|
+
nodeType: et.nodeType,
|
|
49428
|
+
extension: et.extension,
|
|
49428
49429
|
isTemporary: !1
|
|
49429
49430
|
}));
|
|
49430
49431
|
if (ho && re && !De && ca.unshift({
|
|
@@ -49439,9 +49440,9 @@ const J8 = ({
|
|
|
49439
49440
|
isTemporary: !0
|
|
49440
49441
|
}), !De) return ca;
|
|
49441
49442
|
const wC = De.split(/\s+/).filter(Boolean);
|
|
49442
|
-
return ca.filter((
|
|
49443
|
-
if (
|
|
49444
|
-
const bC = Gn(
|
|
49443
|
+
return ca.filter((et) => {
|
|
49444
|
+
if (et.isTemporary) return !0;
|
|
49445
|
+
const bC = Gn(et.name), SC = Gn(et.author), yC = yS(et.extension);
|
|
49445
49446
|
return wC.every(
|
|
49446
49447
|
(da) => bC.includes(da) || SC.includes(da) || yC.includes(da)
|
|
49447
49448
|
);
|
|
@@ -49503,12 +49504,9 @@ const J8 = ({
|
|
|
49503
49504
|
bulkActionsToolbarOptions: g,
|
|
49504
49505
|
deleteConfirmationOptions: d,
|
|
49505
49506
|
destinationFolderPopupOptions: {
|
|
49507
|
+
...p,
|
|
49506
49508
|
destinationFolderPath: Q,
|
|
49507
|
-
setDestinationFolderPath: se
|
|
49508
|
-
addFolderLabel: p?.addFolderLabel,
|
|
49509
|
-
copyLabel: p?.copyLabel,
|
|
49510
|
-
moveLabel: p?.moveLabel,
|
|
49511
|
-
hiddenFilesSwitcherLabel: p?.hiddenFilesSwitcherLabel
|
|
49509
|
+
setDestinationFolderPath: se
|
|
49512
49510
|
},
|
|
49513
49511
|
currentPath: te,
|
|
49514
49512
|
setCurrentPath: $,
|
|
@@ -49516,7 +49514,7 @@ const J8 = ({
|
|
|
49516
49514
|
effectiveSearchValue: _,
|
|
49517
49515
|
setSearchValue: Me,
|
|
49518
49516
|
areHiddenFilesVisible: de,
|
|
49519
|
-
toggleHiddenFilesVisibility:
|
|
49517
|
+
toggleHiddenFilesVisibility: V,
|
|
49520
49518
|
isTreeCollapsed: Ce,
|
|
49521
49519
|
toggleTreeCollapse: ye,
|
|
49522
49520
|
setIsTreeCollapsed: ue,
|
|
@@ -49534,7 +49532,7 @@ const J8 = ({
|
|
|
49534
49532
|
openDestinationFolderPopup: $t,
|
|
49535
49533
|
handleCloseDestinationFolderPopup: Gt,
|
|
49536
49534
|
handleOpenDestinationFolderPopup: _e,
|
|
49537
|
-
destinationFolderMode:
|
|
49535
|
+
destinationFolderMode: it,
|
|
49538
49536
|
handleDownloadFiles: na,
|
|
49539
49537
|
renamedPath: Ie,
|
|
49540
49538
|
renamedItem: Fe,
|
|
@@ -49584,7 +49582,7 @@ const J8 = ({
|
|
|
49584
49582
|
};
|
|
49585
49583
|
return /* @__PURE__ */ C(aC.Provider, { value: vC, children: e });
|
|
49586
49584
|
}, nL = () => {
|
|
49587
|
-
const e =
|
|
49585
|
+
const e = Je(aC);
|
|
49588
49586
|
if (!e)
|
|
49589
49587
|
throw new Error(
|
|
49590
49588
|
"useFileManagerContext must be used within <FileManagerProvider>"
|
|
@@ -49647,16 +49645,18 @@ const J8 = ({
|
|
|
49647
49645
|
copyLabel: i = "Copy",
|
|
49648
49646
|
moveLabel: o = "Move",
|
|
49649
49647
|
addFolderLabel: n = "Add folder",
|
|
49650
|
-
mode: r =
|
|
49648
|
+
mode: r = Xe.Copy,
|
|
49651
49649
|
hiddenFilesSwitcherLabel: a = "Show hidden files",
|
|
49652
49650
|
onUploadFiles: l,
|
|
49653
49651
|
onValidateUpload: c,
|
|
49654
49652
|
maxFileSize: d,
|
|
49655
|
-
|
|
49653
|
+
getCopyHeader: u,
|
|
49654
|
+
getMoveHeader: h,
|
|
49655
|
+
...g
|
|
49656
49656
|
}) => {
|
|
49657
|
-
const [
|
|
49658
|
-
|
|
49659
|
-
}, []);
|
|
49657
|
+
const [p, f] = k(!1), m = I((w) => {
|
|
49658
|
+
f(w);
|
|
49659
|
+
}, []), v = B(() => r === Xe.Copy ? u && g.items ? u(g.items.length, g.items[0]?.name) : "Copy to" : h && g.items ? h(g.items.length, g.items[0]?.name) : "Move to", [r, g.items, u, h]);
|
|
49660
49660
|
return /* @__PURE__ */ C(
|
|
49661
49661
|
Zo,
|
|
49662
49662
|
{
|
|
@@ -49680,15 +49680,15 @@ const J8 = ({
|
|
|
49680
49680
|
"div",
|
|
49681
49681
|
{
|
|
49682
49682
|
className: "inline-flex items-center cursor-pointer",
|
|
49683
|
-
onClick: (
|
|
49684
|
-
|
|
49683
|
+
onClick: (w) => {
|
|
49684
|
+
w.stopPropagation(), m(!p);
|
|
49685
49685
|
},
|
|
49686
49686
|
children: /* @__PURE__ */ C(
|
|
49687
49687
|
Mg,
|
|
49688
49688
|
{
|
|
49689
49689
|
title: a,
|
|
49690
|
-
isOn:
|
|
49691
|
-
onChange:
|
|
49690
|
+
isOn: p,
|
|
49691
|
+
onChange: m,
|
|
49692
49692
|
switchId: "hidden-files-switch"
|
|
49693
49693
|
}
|
|
49694
49694
|
)
|
|
@@ -49714,16 +49714,17 @@ const J8 = ({
|
|
|
49714
49714
|
)
|
|
49715
49715
|
] })
|
|
49716
49716
|
] }),
|
|
49717
|
+
title: v,
|
|
49717
49718
|
children: /* @__PURE__ */ C(
|
|
49718
49719
|
uL,
|
|
49719
49720
|
{
|
|
49720
|
-
...
|
|
49721
|
-
showHiddenFiles:
|
|
49722
|
-
onShowHiddenFilesChange:
|
|
49721
|
+
...g,
|
|
49722
|
+
showHiddenFiles: p,
|
|
49723
|
+
onShowHiddenFilesChange: m,
|
|
49723
49724
|
treeOptions: {
|
|
49724
|
-
...
|
|
49725
|
+
...g.treeOptions,
|
|
49725
49726
|
collapsed: !0,
|
|
49726
|
-
expandedPaths: /* @__PURE__ */ new Set([
|
|
49727
|
+
expandedPaths: /* @__PURE__ */ new Set([g.rootItem?.path || "/"])
|
|
49727
49728
|
},
|
|
49728
49729
|
onUploadFiles: l,
|
|
49729
49730
|
onValidateUpload: c,
|
|
@@ -49741,7 +49742,7 @@ const J8 = ({
|
|
|
49741
49742
|
onDownload: n,
|
|
49742
49743
|
onDelete: r,
|
|
49743
49744
|
getCurrentFolderPath: a
|
|
49744
|
-
}) =>
|
|
49745
|
+
}) => B(() => {
|
|
49745
49746
|
const l = [], c = Array.from(e.values());
|
|
49746
49747
|
return !c.length || !t || (t[he.Move] && l.push({
|
|
49747
49748
|
key: he.Move,
|
|
@@ -49808,7 +49809,7 @@ const J8 = ({
|
|
|
49808
49809
|
onDownload: o,
|
|
49809
49810
|
onRename: n,
|
|
49810
49811
|
onDelete: r
|
|
49811
|
-
}) =>
|
|
49812
|
+
}) => B(() => (a) => {
|
|
49812
49813
|
const l = [];
|
|
49813
49814
|
return e && (e[he.Duplicate] && l.push({
|
|
49814
49815
|
key: he.Duplicate,
|
|
@@ -49902,7 +49903,7 @@ const J8 = ({
|
|
|
49902
49903
|
] }),
|
|
49903
49904
|
" ",
|
|
49904
49905
|
"already exists in this destination."
|
|
49905
|
-
] }), ne = `${n.length} items with the same names already exist in this destination.`, N = l ?? (f ? ee : ne), te =
|
|
49906
|
+
] }), ne = `${n.length} items with the same names already exist in this destination.`, N = l ?? (f ? ee : ne), te = B(
|
|
49906
49907
|
() => [
|
|
49907
49908
|
{
|
|
49908
49909
|
id: lt.Replace,
|
|
@@ -49914,13 +49915,13 @@ const J8 = ({
|
|
|
49914
49915
|
}
|
|
49915
49916
|
],
|
|
49916
49917
|
[v, w]
|
|
49917
|
-
), $ =
|
|
49918
|
+
), $ = B(() => n.map((Q) => ({
|
|
49918
49919
|
id: Q.path,
|
|
49919
49920
|
name: Q.name,
|
|
49920
49921
|
path: Q.path,
|
|
49921
49922
|
nodeType: Q.nodeType ?? dt.ITEM,
|
|
49922
49923
|
action: E.get(Q.path) || lt.Replace
|
|
49923
|
-
})), [n, E]), W =
|
|
49924
|
+
})), [n, E]), W = B(() => [
|
|
49924
49925
|
{
|
|
49925
49926
|
field: "name",
|
|
49926
49927
|
headerName: g,
|
|
@@ -49972,12 +49973,12 @@ const J8 = ({
|
|
|
49972
49973
|
}
|
|
49973
49974
|
], de = se.find(
|
|
49974
49975
|
(Ce) => Ce.key === Q.data.action
|
|
49975
|
-
),
|
|
49976
|
+
), V = O === Q.data.path;
|
|
49976
49977
|
return /* @__PURE__ */ C("div", { className: "flex items-center h-full", children: /* @__PURE__ */ C(
|
|
49977
49978
|
Nt,
|
|
49978
49979
|
{
|
|
49979
49980
|
trigger: [It.Click],
|
|
49980
|
-
open:
|
|
49981
|
+
open: V,
|
|
49981
49982
|
menu: {
|
|
49982
49983
|
items: se,
|
|
49983
49984
|
onClick: ({ key: Ce }) => {
|
|
@@ -50007,7 +50008,7 @@ const J8 = ({
|
|
|
50007
50008
|
size: 16,
|
|
50008
50009
|
className: J(
|
|
50009
50010
|
"text-secondary transition-transform",
|
|
50010
|
-
|
|
50011
|
+
V && "rotate-180"
|
|
50011
50012
|
)
|
|
50012
50013
|
}
|
|
50013
50014
|
)
|
|
@@ -50023,7 +50024,7 @@ const J8 = ({
|
|
|
50023
50024
|
w,
|
|
50024
50025
|
b,
|
|
50025
50026
|
O
|
|
50026
|
-
]), Y =
|
|
50027
|
+
]), Y = B(
|
|
50027
50028
|
() => [
|
|
50028
50029
|
{
|
|
50029
50030
|
id: Dt.ReplaceAll,
|
|
@@ -50182,7 +50183,7 @@ const J8 = ({
|
|
|
50182
50183
|
deleteConfirmationOpen: Q,
|
|
50183
50184
|
itemsToDelete: se,
|
|
50184
50185
|
renamedPath: de,
|
|
50185
|
-
renamedItem:
|
|
50186
|
+
renamedItem: V,
|
|
50186
50187
|
onRename: Ce,
|
|
50187
50188
|
onRenameSave: ye,
|
|
50188
50189
|
onRenameCancel: ue,
|
|
@@ -50204,7 +50205,7 @@ const J8 = ({
|
|
|
50204
50205
|
validateFolderName: $t,
|
|
50205
50206
|
conflictingFiles: Ci,
|
|
50206
50207
|
conflictResolutionOpen: ke,
|
|
50207
|
-
closeConflictResolution:
|
|
50208
|
+
closeConflictResolution: it,
|
|
50208
50209
|
handleConflictReplace: lo,
|
|
50209
50210
|
handleConflictDuplicate: Xr,
|
|
50210
50211
|
handleConflictDecideForEach: Jr
|
|
@@ -50224,7 +50225,7 @@ const J8 = ({
|
|
|
50224
50225
|
dateLocale: ln,
|
|
50225
50226
|
dateOptions: cn,
|
|
50226
50227
|
...dn
|
|
50227
|
-
} = r ?? {}, aa =
|
|
50228
|
+
} = r ?? {}, aa = B(() => [
|
|
50228
50229
|
{
|
|
50229
50230
|
field: "name",
|
|
50230
50231
|
headerName: "Name",
|
|
@@ -50242,7 +50243,7 @@ const J8 = ({
|
|
|
50242
50243
|
onSave: Gt,
|
|
50243
50244
|
onCancel: _e
|
|
50244
50245
|
}
|
|
50245
|
-
) : de === re.data?.path &&
|
|
50246
|
+
) : de === re.data?.path && V && re.data ? /* @__PURE__ */ C(
|
|
50246
50247
|
Sl,
|
|
50247
50248
|
{
|
|
50248
50249
|
name: re.data.name,
|
|
@@ -50250,7 +50251,7 @@ const J8 = ({
|
|
|
50250
50251
|
elementId: `rename-${re.data.id}`,
|
|
50251
50252
|
editing: !0,
|
|
50252
50253
|
iconSize: js,
|
|
50253
|
-
validate: (Bs) => Ie(Bs,
|
|
50254
|
+
validate: (Bs) => Ie(Bs, V),
|
|
50254
50255
|
onSave: ye,
|
|
50255
50256
|
onCancel: ue
|
|
50256
50257
|
}
|
|
@@ -50294,11 +50295,11 @@ const J8 = ({
|
|
|
50294
50295
|
_e,
|
|
50295
50296
|
$t,
|
|
50296
50297
|
de,
|
|
50297
|
-
|
|
50298
|
+
V,
|
|
50298
50299
|
Ie,
|
|
50299
50300
|
ye,
|
|
50300
50301
|
ue
|
|
50301
|
-
]), vi = ra ?? aa, un =
|
|
50302
|
+
]), vi = ra ?? aa, un = B(() => an ? vi : vi.map((re) => ({
|
|
50302
50303
|
...re,
|
|
50303
50304
|
filter: !1,
|
|
50304
50305
|
floatingFilter: !1
|
|
@@ -50310,7 +50311,7 @@ const J8 = ({
|
|
|
50310
50311
|
icon: /* @__PURE__ */ C(fc, { ...ce, className: "text-secondary" }),
|
|
50311
50312
|
onClick: () => ne([re])
|
|
50312
50313
|
}), o.actionLabels[he.Copy] && Ke.push({
|
|
50313
|
-
key:
|
|
50314
|
+
key: Xe.Copy,
|
|
50314
50315
|
label: o.actionLabels[he.Copy],
|
|
50315
50316
|
icon: /* @__PURE__ */ C(
|
|
50316
50317
|
Fd,
|
|
@@ -50321,10 +50322,10 @@ const J8 = ({
|
|
|
50321
50322
|
}
|
|
50322
50323
|
),
|
|
50323
50324
|
onClick: () => {
|
|
50324
|
-
H([re]), E(
|
|
50325
|
+
H([re]), E(Xe.Copy);
|
|
50325
50326
|
}
|
|
50326
50327
|
}), o.actionLabels[he.Move] && Ke.push({
|
|
50327
|
-
key:
|
|
50328
|
+
key: Xe.Move,
|
|
50328
50329
|
label: o.actionLabels[he.Move],
|
|
50329
50330
|
icon: /* @__PURE__ */ C(
|
|
50330
50331
|
Ed,
|
|
@@ -50335,7 +50336,7 @@ const J8 = ({
|
|
|
50335
50336
|
}
|
|
50336
50337
|
),
|
|
50337
50338
|
onClick: () => {
|
|
50338
|
-
ee([re]), E(
|
|
50339
|
+
ee([re]), E(Xe.Move);
|
|
50339
50340
|
}
|
|
50340
50341
|
}), o.actionLabels[he.Download] && Ke.push({
|
|
50341
50342
|
key: "download",
|
|
@@ -50353,7 +50354,7 @@ const J8 = ({
|
|
|
50353
50354
|
icon: /* @__PURE__ */ C(Yo, { ...ce, className: "text-secondary" }),
|
|
50354
50355
|
onClick: () => W([re], re.parentPath ?? "")
|
|
50355
50356
|
})), Ke;
|
|
50356
|
-
}, la =
|
|
50357
|
+
}, la = B(() => {
|
|
50357
50358
|
const re = /* @__PURE__ */ new Map();
|
|
50358
50359
|
return b.forEach((Ke, Bs) => {
|
|
50359
50360
|
const Vs = v.find((wi) => wi.path === Bs);
|
|
@@ -50373,10 +50374,10 @@ const J8 = ({
|
|
|
50373
50374
|
actionLabels: l?.actionLabels,
|
|
50374
50375
|
onDuplicate: ne,
|
|
50375
50376
|
onCopy: (re) => {
|
|
50376
|
-
H(re), E(
|
|
50377
|
+
H(re), E(Xe.Copy);
|
|
50377
50378
|
},
|
|
50378
50379
|
onMove: (re) => {
|
|
50379
|
-
ee(re), E(
|
|
50380
|
+
ee(re), E(Xe.Move);
|
|
50380
50381
|
},
|
|
50381
50382
|
onDownload: $,
|
|
50382
50383
|
onDelete: W,
|
|
@@ -50427,10 +50428,10 @@ const J8 = ({
|
|
|
50427
50428
|
actionLabels: r?.actionLabels,
|
|
50428
50429
|
onDuplicate: (re) => ne([re]),
|
|
50429
50430
|
onCopy: (re) => {
|
|
50430
|
-
H([re]), E(
|
|
50431
|
+
H([re]), E(Xe.Copy);
|
|
50431
50432
|
},
|
|
50432
50433
|
onMove: (re) => {
|
|
50433
|
-
ee([re]), E(
|
|
50434
|
+
ee([re]), E(Xe.Move);
|
|
50434
50435
|
},
|
|
50435
50436
|
onDownload: (re) => $([re]),
|
|
50436
50437
|
onRename: Ce,
|
|
@@ -50569,21 +50570,16 @@ const J8 = ({
|
|
|
50569
50570
|
/* @__PURE__ */ C(
|
|
50570
50571
|
aL,
|
|
50571
50572
|
{
|
|
50573
|
+
...d,
|
|
50572
50574
|
open: O,
|
|
50573
50575
|
onClose: T,
|
|
50574
50576
|
onConfirm: () => {
|
|
50575
50577
|
const re = d?.destinationFolderPath ?? "/";
|
|
50576
|
-
j ===
|
|
50578
|
+
j === Xe.Copy ? N(re) : te(re, m ?? "/"), T();
|
|
50577
50579
|
},
|
|
50578
50580
|
mode: j,
|
|
50579
50581
|
items: t,
|
|
50580
50582
|
rootItem: s,
|
|
50581
|
-
onPathChange: d?.setDestinationFolderPath,
|
|
50582
|
-
path: d?.destinationFolderPath,
|
|
50583
|
-
addFolderLabel: d?.addFolderLabel,
|
|
50584
|
-
copyLabel: d?.copyLabel,
|
|
50585
|
-
moveLabel: d?.moveLabel,
|
|
50586
|
-
hiddenFilesSwitcherLabel: d?.hiddenFilesSwitcherLabel,
|
|
50587
50583
|
gridOptions: { columnDefs: un, loading: i },
|
|
50588
50584
|
onUploadFiles: Me,
|
|
50589
50585
|
onValidateUpload: _,
|
|
@@ -50595,7 +50591,7 @@ const J8 = ({
|
|
|
50595
50591
|
{
|
|
50596
50592
|
...u,
|
|
50597
50593
|
open: ke,
|
|
50598
|
-
onClose:
|
|
50594
|
+
onClose: it,
|
|
50599
50595
|
onReplace: lo,
|
|
50600
50596
|
onDuplicate: Xr,
|
|
50601
50597
|
onDecideForEach: Jr,
|
|
@@ -50610,7 +50606,7 @@ const J8 = ({
|
|
|
50610
50606
|
ic.MyFiles
|
|
50611
50607
|
), i = (n) => {
|
|
50612
50608
|
s(n);
|
|
50613
|
-
}, o =
|
|
50609
|
+
}, o = B(() => {
|
|
50614
50610
|
if (e)
|
|
50615
50611
|
return Object.values(ic).map((n) => ({
|
|
50616
50612
|
id: n,
|