@epam/ai-dial-ui-kit 0.6.0-rc.13 → 0.6.0-rc.15
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 +8 -8
- package/dist/dial-ui-kit.es.js +166 -161
- package/package.json +1 -1
package/dist/dial-ui-kit.es.js
CHANGED
|
@@ -2,7 +2,7 @@ import { jsx as m, jsxs as z, Fragment as Be } from "react/jsx-runtime";
|
|
|
2
2
|
import ee from "classnames";
|
|
3
3
|
import { useFloating as ud, offset as jg, flip as Kg, shift as qg, arrow as yv, autoUpdate as Yg, useHover as Zg, useFocus as Rv, useDismiss as hd, useRole as gd, useInteractions as pd, useMergeRefs as fd, FloatingPortal as md, FloatingArrow as xv, autoPlacement as Fv, size as Ev, useClick as Dv, FloatingFocusManager as Qg, FloatingOverlay as Pv } from "@floating-ui/react";
|
|
4
4
|
import * as ye from "react";
|
|
5
|
-
import q, { createContext as wa, useState as I, useRef as L, useEffect as
|
|
5
|
+
import q, { createContext as wa, useState as I, useRef as L, useEffect as Re, useMemo as B, useContext as st, isValidElement as Cd, cloneElement as gc, useCallback as D, memo as mt, useLayoutEffect as qt, PureComponent as Tv, Component as Mv, forwardRef as vd, useImperativeHandle as Dn, createElement as Xo, Suspense as Iv, useId as wd, Children as Av } from "react";
|
|
6
6
|
import { IconInfoCircle as bd, IconCircleCheck as kv, IconAlertTriangle as Lv, IconAlertCircle as Ov, IconX as fo, IconMinus as Nv, IconCheck as Xg, IconExclamationCircle as Sd, IconClipboardX as Jg, IconChevronsLeft as Hv, IconChevronsRight as Gv, IconGripVertical as Bv, IconFile as ep, IconFileTypeZip as Vv, IconFileTypeXml as zv, IconFileTypeXls as Wv, IconFileTypeVue as _v, IconFileTypeTxt as Uv, IconFileTypeTsx as $v, IconFileTypeTs as jv, IconFileTypeSvg as Kv, IconFileTypeSql as qv, IconFileTypeRs as Yv, IconFileTypePpt as Zv, IconFileTypePng as Qv, IconFileTypePhp as Xv, IconFileTypePdf as Jv, IconFileTypeJsx as ew, IconFileTypeJs as tw, IconFileTypeJpg as sw, IconFileTypeHtml as iw, IconFileTypeDocx as ow, IconFileTypeDoc as nw, IconFileTypeCsv as rw, IconFileTypeCss as aw, IconFileTypeBmp as lw, IconArrowUpRight as cw, IconFolder as yd, IconChevronLeft as dw, IconChevronRight as tp, IconZoomCancel as uw, IconChevronDown as ba, IconDotsVertical as Pn, IconDots as hw, IconTrashX as Tn, IconEyeOff as sp, IconEye as ip, IconSearch as gw, IconPlus as pw, IconChevronUp as fw, IconAlertCircleFilled as mw, IconCaretRightFilled as Cw, IconArrowLeft as vw, IconFileZip as ww, IconCopyMinus as bw, IconFolderPlus as Sw, IconCopy as Rd, IconDownload as xd, IconPencilMinus as op, IconCircleFilled as Rr, IconFileDescription as yw } from "@tabler/icons-react";
|
|
7
7
|
import Rw, { flushSync as xw, createPortal as Fd } from "react-dom";
|
|
8
8
|
const Ed = "-", Fw = (e) => {
|
|
@@ -2779,7 +2779,7 @@ const gi = ({
|
|
|
2779
2779
|
}), h = Rv(d.context, {
|
|
2780
2780
|
enabled: i == null
|
|
2781
2781
|
}), g = hd(d.context), p = gd(d.context, { role: "tooltip" }), f = pd([u, h, g, p]);
|
|
2782
|
-
return
|
|
2782
|
+
return Re(() => {
|
|
2783
2783
|
if (!l) return;
|
|
2784
2784
|
const C = d.refs.reference.current;
|
|
2785
2785
|
if (!(C instanceof Element)) return;
|
|
@@ -3056,7 +3056,7 @@ const c1 = (e) => ({
|
|
|
3056
3056
|
}, g = D(() => {
|
|
3057
3057
|
u.current && cancelAnimationFrame(u.current), u.current = requestAnimationFrame(h);
|
|
3058
3058
|
}, []);
|
|
3059
|
-
|
|
3059
|
+
Re(() => {
|
|
3060
3060
|
g();
|
|
3061
3061
|
const C = () => g();
|
|
3062
3062
|
window.addEventListener("resize", C);
|
|
@@ -3516,7 +3516,7 @@ const y1 = "flex", R1 = "pb-1 mt-2", x1 = {
|
|
|
3516
3516
|
onToggle: c
|
|
3517
3517
|
}) => {
|
|
3518
3518
|
const [d, u] = I(s), [h, g] = I(!0), p = B(() => typeof l == "boolean", [l]), f = p ? l : h;
|
|
3519
|
-
|
|
3519
|
+
Re(() => {
|
|
3520
3520
|
p && u(l ? s : wl);
|
|
3521
3521
|
}, [p, l, s]);
|
|
3522
3522
|
const C = ee([
|
|
@@ -4698,7 +4698,7 @@ var Kb = /* @__PURE__ */ mt(function(t) {
|
|
|
4698
4698
|
"children"
|
|
4699
4699
|
]);
|
|
4700
4700
|
const [o, n] = qb(i);
|
|
4701
|
-
return
|
|
4701
|
+
return Re(() => {
|
|
4702
4702
|
if (n) {
|
|
4703
4703
|
const r = Dp();
|
|
4704
4704
|
return ++ju, () => {
|
|
@@ -4765,7 +4765,7 @@ function Qb() {
|
|
|
4765
4765
|
}), bl;
|
|
4766
4766
|
}
|
|
4767
4767
|
var Xb = Qb();
|
|
4768
|
-
const Jb = /* @__PURE__ */ Zb(Xb), pi = typeof window < "u" ?
|
|
4768
|
+
const Jb = /* @__PURE__ */ Zb(Xb), pi = typeof window < "u" ? qt : Re;
|
|
4769
4769
|
function e0(e, t, s) {
|
|
4770
4770
|
const [i, o] = I(
|
|
4771
4771
|
() => t(e)
|
|
@@ -5238,7 +5238,7 @@ function m0(e, t, s) {
|
|
|
5238
5238
|
s
|
|
5239
5239
|
]
|
|
5240
5240
|
);
|
|
5241
|
-
return
|
|
5241
|
+
return Re(() => {
|
|
5242
5242
|
i.spec = e;
|
|
5243
5243
|
}, [
|
|
5244
5244
|
e
|
|
@@ -5338,7 +5338,7 @@ function F0(e, t) {
|
|
|
5338
5338
|
t
|
|
5339
5339
|
]
|
|
5340
5340
|
);
|
|
5341
|
-
return
|
|
5341
|
+
return Re(() => {
|
|
5342
5342
|
s.spec = e;
|
|
5343
5343
|
}, [
|
|
5344
5344
|
e
|
|
@@ -6123,7 +6123,7 @@ const $0 = ({ side: e, className: t }) => {
|
|
|
6123
6123
|
]);
|
|
6124
6124
|
return /* @__PURE__ */ m(U0, { ref: C, ...b, children: /* @__PURE__ */ m("div", { className: "group flex size-full flex-col bg-layer-3 divide-y divide-tertiary transition-all", children: e }) });
|
|
6125
6125
|
}, q0 = ({ enabled: e = !0, children: t, ...s }) => e ? /* @__PURE__ */ m(K0, { ...s, children: t }) : t;
|
|
6126
|
-
var
|
|
6126
|
+
var Kt = /* @__PURE__ */ ((e) => (e.Default = "default", e.Text = "text", e.Circular = "circular", e.Rectangular = "rectangular", e))(Kt || {}), Fr = /* @__PURE__ */ ((e) => (e.Small = "small", e.Default = "default", e.Large = "large", e))(Fr || {}), yc = /* @__PURE__ */ ((e) => (e.Circle = "circle", e.Square = "square", e))(yc || {});
|
|
6127
6127
|
const Y0 = (e) => {
|
|
6128
6128
|
if (typeof e == "number") return e;
|
|
6129
6129
|
switch (e) {
|
|
@@ -6142,7 +6142,7 @@ const Y0 = (e) => {
|
|
|
6142
6142
|
showTitle: i = !0,
|
|
6143
6143
|
loading: o = !0,
|
|
6144
6144
|
children: n,
|
|
6145
|
-
variant: r =
|
|
6145
|
+
variant: r = Kt.Default,
|
|
6146
6146
|
width: a,
|
|
6147
6147
|
height: l,
|
|
6148
6148
|
className: c,
|
|
@@ -6155,12 +6155,12 @@ const Y0 = (e) => {
|
|
|
6155
6155
|
e && "animate-pulse",
|
|
6156
6156
|
c
|
|
6157
6157
|
);
|
|
6158
|
-
if (r !==
|
|
6158
|
+
if (r !== Kt.Default) {
|
|
6159
6159
|
const E = ge(
|
|
6160
6160
|
u,
|
|
6161
|
-
r ===
|
|
6162
|
-
r ===
|
|
6163
|
-
r ===
|
|
6161
|
+
r === Kt.Circular && "rounded-full",
|
|
6162
|
+
r === Kt.Rectangular && "rounded",
|
|
6163
|
+
r === Kt.Text && "rounded"
|
|
6164
6164
|
), T = {};
|
|
6165
6165
|
return a && (T.width = typeof a == "number" ? `${a}px` : a), l && (T.height = typeof l == "number" ? `${l}px` : l), /* @__PURE__ */ m("div", { className: E, style: T, ...d });
|
|
6166
6166
|
}
|
|
@@ -8449,7 +8449,7 @@ function co(e, t, s, i, o = null) {
|
|
|
8449
8449
|
source: i
|
|
8450
8450
|
});
|
|
8451
8451
|
}
|
|
8452
|
-
function
|
|
8452
|
+
function Yt(e, t, s) {
|
|
8453
8453
|
const {
|
|
8454
8454
|
colModel: i,
|
|
8455
8455
|
rowGroupColsSvc: o,
|
|
@@ -8554,9 +8554,9 @@ function ky(e, t) {
|
|
|
8554
8554
|
const b = Tf(w);
|
|
8555
8555
|
Ue(b.rowGroupIndex) && b.rowGroup && (b.rowGroupIndex = u++), Ue(b.pivotIndex) && b.pivot && (b.pivotIndex = h++), d.push(b);
|
|
8556
8556
|
};
|
|
8557
|
-
i?.getColumns()?.forEach(g), o?.getColumns()?.forEach(g), c?.forEach(g),
|
|
8557
|
+
i?.getColumns()?.forEach(g), o?.getColumns()?.forEach(g), c?.forEach(g), Yt(e, { state: d }, t);
|
|
8558
8558
|
const p = i?.getColumns() ?? [], v = [...o?.getColumns() ?? [], ...p, ...a].map((w) => ({ colId: w.colId }));
|
|
8559
|
-
|
|
8559
|
+
Yt(e, { state: v, applyOrder: !0 }, t), n.dispatchEvent(pe(r, { type: "columnsReset", source: t }));
|
|
8560
8560
|
}
|
|
8561
8561
|
function Pf(e, t) {
|
|
8562
8562
|
const { rowGroupColsSvc: s, pivotColsSvc: i, valueColsSvc: o, colModel: n, sortSvc: r, eventSvc: a } = e, l = {
|
|
@@ -8842,7 +8842,7 @@ var gh = (e, t, s, i) => {
|
|
|
8842
8842
|
this.ready && (this.refreshCols(!1, e), this.beans.visibleCols.refresh(e));
|
|
8843
8843
|
}
|
|
8844
8844
|
setColsVisible(e, t = !1, s) {
|
|
8845
|
-
|
|
8845
|
+
Yt(
|
|
8846
8846
|
this.beans,
|
|
8847
8847
|
{
|
|
8848
8848
|
state: e.map((i) => ({
|
|
@@ -21581,7 +21581,7 @@ function w3(e) {
|
|
|
21581
21581
|
return e.colModel.getColDefCols();
|
|
21582
21582
|
}
|
|
21583
21583
|
function b3(e, t) {
|
|
21584
|
-
return
|
|
21584
|
+
return Yt(e, t, "api");
|
|
21585
21585
|
}
|
|
21586
21586
|
function S3(e) {
|
|
21587
21587
|
return oa(e);
|
|
@@ -22021,7 +22021,7 @@ var G3 = [
|
|
|
22021
22021
|
i,
|
|
22022
22022
|
o
|
|
22023
22023
|
)
|
|
22024
|
-
), s.length &&
|
|
22024
|
+
), s.length && Yt(this.beans, { state: s }, "cellDataTypeInferred"), this.initialData = null;
|
|
22025
22025
|
}
|
|
22026
22026
|
generateColumnStateForRowGroupAndPivotIndexes(e, t) {
|
|
22027
22027
|
const s = {}, { rowGroupColsSvc: i, pivotColsSvc: o } = this.beans;
|
|
@@ -26369,7 +26369,7 @@ var WP = class extends O {
|
|
|
26369
26369
|
if (!s && !o)
|
|
26370
26370
|
return;
|
|
26371
26371
|
const n = Object.assign({}, e.data), r = (a, l) => a.forEach(({ pendingValue: c }, d) => {
|
|
26372
|
-
c !==
|
|
26372
|
+
c !== $t && (l[d.getColId()] = c);
|
|
26373
26373
|
});
|
|
26374
26374
|
return s && r(s, n), o && r(o, n), n;
|
|
26375
26375
|
}
|
|
@@ -26467,7 +26467,7 @@ var WP = class extends O {
|
|
|
26467
26467
|
const t = this.getEditRow(e.rowNode) ?? /* @__PURE__ */ new Map(), { rowNode: s, column: i } = e;
|
|
26468
26468
|
i && !t.has(i) && t.set(i, {
|
|
26469
26469
|
editorValue: void 0,
|
|
26470
|
-
pendingValue:
|
|
26470
|
+
pendingValue: $t,
|
|
26471
26471
|
sourceValue: this.beans.valueSvc.getValue(i, s, !1, "api"),
|
|
26472
26472
|
state: "editing",
|
|
26473
26473
|
editorState: {
|
|
@@ -26601,7 +26601,7 @@ function Yc(e) {
|
|
|
26601
26601
|
if (e)
|
|
26602
26602
|
return typeof e == "string" ? e : e.getColId();
|
|
26603
26603
|
}
|
|
26604
|
-
var
|
|
26604
|
+
var $t = Symbol("unedited");
|
|
26605
26605
|
function Jm(e, t = {}) {
|
|
26606
26606
|
const s = [], i = e.rowRenderer.getCellCtrls(t.rowNodes, t.columns);
|
|
26607
26607
|
for (const o of i) {
|
|
@@ -26621,7 +26621,7 @@ function $P(e, t, s, i, o, n) {
|
|
|
26621
26621
|
const { rowNode: h, column: g } = u, p = _e(e, u);
|
|
26622
26622
|
if (!p) {
|
|
26623
26623
|
if (h && g) {
|
|
26624
|
-
const C = r.getValue(g, h, void 0, "api"), b = (s?.rowNode === h && s?.column === g && i || void 0) ?? a?.getCellDataValue(u, !1) ?? r.getValueForDisplay(g, h)?.value ?? C ??
|
|
26624
|
+
const C = r.getValue(g, h, void 0, "api"), b = (s?.rowNode === h && s?.column === g && i || void 0) ?? a?.getCellDataValue(u, !1) ?? r.getValueForDisplay(g, h)?.value ?? C ?? $t;
|
|
26625
26625
|
l?.setEdit(u, {
|
|
26626
26626
|
pendingValue: b,
|
|
26627
26627
|
sourceValue: C,
|
|
@@ -26646,7 +26646,7 @@ function bs({
|
|
|
26646
26646
|
pendingValue: e,
|
|
26647
26647
|
sourceValue: t
|
|
26648
26648
|
}) {
|
|
26649
|
-
return e ===
|
|
26649
|
+
return e === $t && (e = t), e !== t;
|
|
26650
26650
|
}
|
|
26651
26651
|
function go(e, t, s) {
|
|
26652
26652
|
const i = e.gos.get("enableGroupEdit"), { key: o, event: n, cellStartedEdit: r, silent: a } = s ?? {}, l = _e(e, t), c = l?.comp?.getCellEditor(), d = tC(e, t, o, r && !a), u = e.editModelSvc?.getEdit(t);
|
|
@@ -26685,7 +26685,7 @@ function eC(e, t, s) {
|
|
|
26685
26685
|
};
|
|
26686
26686
|
}
|
|
26687
26687
|
function tC(e, t, s, i) {
|
|
26688
|
-
const { valueSvc: o, gos: n, editSvc: r } = e, a = e.gos.get("enableGroupEdit"), l = _e(e, t), c = t.rowNode?.rowIndex ?? void 0, d = r?.isBatchEditing(), u = e.colModel.getCol(t.column.getId()), { rowNode: h, column: g } = t, p = l.comp?.getCellEditor(), f = r?.getCellDataValue(t, !1) ?? (p ? eC(e, p)?.editorValue : void 0), C = f ===
|
|
26688
|
+
const { valueSvc: o, gos: n, editSvc: r } = e, a = e.gos.get("enableGroupEdit"), l = _e(e, t), c = t.rowNode?.rowIndex ?? void 0, d = r?.isBatchEditing(), u = e.colModel.getCol(t.column.getId()), { rowNode: h, column: g } = t, p = l.comp?.getCellEditor(), f = r?.getCellDataValue(t, !1) ?? (p ? eC(e, p)?.editorValue : void 0), C = f === $t ? o.getValueForDisplay(u, h)?.value : f;
|
|
26689
26689
|
return pe(n, {
|
|
26690
26690
|
value: a ? f : C,
|
|
26691
26691
|
eventKey: s ?? null,
|
|
@@ -26711,7 +26711,7 @@ function Zc(e, t) {
|
|
|
26711
26711
|
const { editModelSvc: s } = e;
|
|
26712
26712
|
s?.getEditMap().forEach((i, o) => {
|
|
26713
26713
|
i.forEach((n, r) => {
|
|
26714
|
-
!t && (n.state === "editing" || n.pendingValue ===
|
|
26714
|
+
!t && (n.state === "editing" || n.pendingValue === $t) || !bs(n) && (n.state !== "editing" || t) && s?.removeEdits({ rowNode: o, column: r });
|
|
26715
26715
|
});
|
|
26716
26716
|
});
|
|
26717
26717
|
}
|
|
@@ -26747,7 +26747,7 @@ function Br(e, t, s, i, o, n) {
|
|
|
26747
26747
|
let d = r.getEdit(t, !0);
|
|
26748
26748
|
d?.sourceValue || (d = r.setEdit(t, {
|
|
26749
26749
|
sourceValue: a.getValue(c, l, void 0, "api"),
|
|
26750
|
-
pendingValue: d ? d.editorValue :
|
|
26750
|
+
pendingValue: d ? d.editorValue : $t
|
|
26751
26751
|
})), r.setEdit(t, {
|
|
26752
26752
|
editorValue: o ? d.sourceValue : s
|
|
26753
26753
|
}), n?.persist && KP(e, t);
|
|
@@ -26868,7 +26868,7 @@ var qP = (e) => {
|
|
|
26868
26868
|
const u = n.get(d);
|
|
26869
26869
|
if (!u)
|
|
26870
26870
|
continue;
|
|
26871
|
-
const { editorValue: h, pendingValue: g, sourceValue: p } = u, f = h ?? (g ===
|
|
26871
|
+
const { editorValue: h, pendingValue: g, sourceValue: p } = u, f = h ?? (g === $t ? void 0 : g) ?? p;
|
|
26872
26872
|
r.push({
|
|
26873
26873
|
column: d,
|
|
26874
26874
|
colId: d.getColId(),
|
|
@@ -36772,7 +36772,7 @@ function hM(e) {
|
|
|
36772
36772
|
i.forEach((a, l) => {
|
|
36773
36773
|
const { editorValue: c, pendingValue: d, sourceValue: u, state: h } = a, g = bs(a);
|
|
36774
36774
|
let p = c ?? d;
|
|
36775
|
-
p ===
|
|
36775
|
+
p === $t && (p = void 0);
|
|
36776
36776
|
const f = {
|
|
36777
36777
|
newValue: p,
|
|
36778
36778
|
oldValue: u,
|
|
@@ -37216,7 +37216,7 @@ var xM = class extends O {
|
|
|
37216
37216
|
r && (i = r);
|
|
37217
37217
|
}
|
|
37218
37218
|
const n = s ? i?.editorValue ?? i?.pendingValue : i?.pendingValue;
|
|
37219
|
-
return n ===
|
|
37219
|
+
return n === $t || !i ? i?.sourceValue ?? this.valueSvc.getValue(t, e, !1, "api") : n;
|
|
37220
37220
|
}
|
|
37221
37221
|
addStopEditingWhenGridLosesFocus(e) {
|
|
37222
37222
|
_P(this, this.beans, e);
|
|
@@ -37358,7 +37358,7 @@ var xM = class extends O {
|
|
|
37358
37358
|
if (!t?.forceRefreshOfEditCellsOnly && !bs({ pendingValue: u, sourceValue: f }) && h !== "editing")
|
|
37359
37359
|
continue;
|
|
37360
37360
|
let C = n.get(p);
|
|
37361
|
-
C || (C = /* @__PURE__ */ new Map(), n.set(p, C)), u === void 0 && (u =
|
|
37361
|
+
C || (C = /* @__PURE__ */ new Map(), n.set(p, C)), u === void 0 && (u = $t), C.set(g, {
|
|
37362
37362
|
editorValue: void 0,
|
|
37363
37363
|
pendingValue: u,
|
|
37364
37364
|
sourceValue: f,
|
|
@@ -37503,7 +37503,7 @@ var IC = class extends O {
|
|
|
37503
37503
|
n.state === "editing" && s.push({ ...n, rowNode: o, column: r });
|
|
37504
37504
|
});
|
|
37505
37505
|
}), t?.update && (e = new Map([...this.model.getEditMap(), ...e])), this.model?.setEditMap(e), s.length > 0) {
|
|
37506
|
-
const i = s.at(-1), o = i.pendingValue ===
|
|
37506
|
+
const i = s.at(-1), o = i.pendingValue === $t ? void 0 : i.pendingValue;
|
|
37507
37507
|
this.start({ position: i, event: new KeyboardEvent("keydown", { key: o }), source: "api" });
|
|
37508
37508
|
const n = _e(this.beans, i);
|
|
37509
37509
|
n && this.setFocusInOnEditor(n);
|
|
@@ -37830,7 +37830,7 @@ var IC = class extends O {
|
|
|
37830
37830
|
const t = Qi(e.source);
|
|
37831
37831
|
for (const s of this.columns?.list ?? []) {
|
|
37832
37832
|
const i = this.createSelectionColDef(e.currentValue);
|
|
37833
|
-
s.setColDef(i, null, t),
|
|
37833
|
+
s.setColDef(i, null, t), Yt(this.beans, { state: [{ ...i, colId: s.getColId() }] }, t);
|
|
37834
37834
|
}
|
|
37835
37835
|
}
|
|
37836
37836
|
getColumn(e) {
|
|
@@ -38585,19 +38585,19 @@ var h6 = {
|
|
|
38585
38585
|
case "columnMoved":
|
|
38586
38586
|
{
|
|
38587
38587
|
const u = e.api.getColumnState().map((h) => ({ colId: h.colId }));
|
|
38588
|
-
|
|
38588
|
+
Yt(i, { state: u, applyOrder: !0 }, "alignedGridChanged");
|
|
38589
38589
|
}
|
|
38590
38590
|
break;
|
|
38591
38591
|
case "columnVisible":
|
|
38592
38592
|
{
|
|
38593
38593
|
const u = e.api.getColumnState().map((h) => ({ colId: h.colId, hide: h.hide }));
|
|
38594
|
-
|
|
38594
|
+
Yt(i, { state: u }, "alignedGridChanged");
|
|
38595
38595
|
}
|
|
38596
38596
|
break;
|
|
38597
38597
|
case "columnPinned":
|
|
38598
38598
|
{
|
|
38599
38599
|
const u = e.api.getColumnState().map((h) => ({ colId: h.colId, pinned: h.pinned }));
|
|
38600
|
-
|
|
38600
|
+
Yt(i, { state: u }, "alignedGridChanged");
|
|
38601
38601
|
}
|
|
38602
38602
|
break;
|
|
38603
38603
|
case "columnResized": {
|
|
@@ -40736,7 +40736,7 @@ var CI = class extends O {
|
|
|
40736
40736
|
}
|
|
40737
40737
|
(x || !s) && (C.flex = null);
|
|
40738
40738
|
const E = u?.orderedColIds, T = !!E?.length && !i?.has("columnOrder"), k = T ? E.map((F) => f(F)) : Object.values(p);
|
|
40739
|
-
(k.length || h) && (this.columnStates = k,
|
|
40739
|
+
(k.length || h) && (this.columnStates = k, Yt(
|
|
40740
40740
|
this.beans,
|
|
40741
40741
|
{
|
|
40742
40742
|
state: k,
|
|
@@ -40757,7 +40757,7 @@ var CI = class extends O {
|
|
|
40757
40757
|
const a = [];
|
|
40758
40758
|
for (const l of s)
|
|
40759
40759
|
n.getPivotResultCol(l.colId) && a.push(l);
|
|
40760
|
-
|
|
40760
|
+
Yt(
|
|
40761
40761
|
o,
|
|
40762
40762
|
{
|
|
40763
40763
|
state: a,
|
|
@@ -42898,7 +42898,7 @@ var _C = vd((e, t) => {
|
|
|
42898
42898
|
refresh() {
|
|
42899
42899
|
return !1;
|
|
42900
42900
|
}
|
|
42901
|
-
})),
|
|
42901
|
+
})), qt(() => Hn(d, i, n.current), [d]);
|
|
42902
42902
|
const E = D((ne) => {
|
|
42903
42903
|
if (o.current = ne, !ne || i.isDestroyed()) {
|
|
42904
42904
|
c.current = i.destroyBean(c.current);
|
|
@@ -42946,7 +42946,7 @@ var _C = vd((e, t) => {
|
|
|
42946
42946
|
}
|
|
42947
42947
|
}), $A = (e) => {
|
|
42948
42948
|
const { initialProps: t, addUpdateCallback: s, CustomComponentClass: i, setMethods: o } = e, [{ key: n, ...r }, a] = I(t);
|
|
42949
|
-
return
|
|
42949
|
+
return Re(() => {
|
|
42950
42950
|
s((l) => a(l));
|
|
42951
42951
|
}, []), /* @__PURE__ */ q.createElement(Tu.Provider, { value: { setMethods: o } }, /* @__PURE__ */ q.createElement(i, { key: n, ...r }));
|
|
42952
42952
|
}, jA = mt($A), KA = 0;
|
|
@@ -43417,10 +43417,10 @@ var lk = 1e3, ck = class {
|
|
|
43417
43417
|
};
|
|
43418
43418
|
e.setComp(b, v, c.current, d.current, a.current), w();
|
|
43419
43419
|
}, []);
|
|
43420
|
-
|
|
43420
|
+
qt(
|
|
43421
43421
|
() => Hn(i, s, d.current, u),
|
|
43422
43422
|
[i]
|
|
43423
|
-
),
|
|
43423
|
+
), Re(() => {
|
|
43424
43424
|
e.setDragSource(l.current);
|
|
43425
43425
|
}, [i]);
|
|
43426
43426
|
const p = B(() => !!(i?.componentFromFramework && Ro(i.componentClass)), [i]), f = i?.componentFromFramework, C = i?.componentClass;
|
|
@@ -43472,12 +43472,12 @@ var lk = 1e3, ck = class {
|
|
|
43472
43472
|
};
|
|
43473
43473
|
e.setComp(se, U, S.current, w.current, C.current);
|
|
43474
43474
|
}, []);
|
|
43475
|
-
|
|
43475
|
+
qt(
|
|
43476
43476
|
() => Hn(g, t, w.current, x),
|
|
43477
43477
|
[g]
|
|
43478
43478
|
);
|
|
43479
43479
|
const T = B(() => n.toString(), [n]), k = B(() => a.toString(), [a]), F = B(() => c.toString(), [c]), P = B(() => !!(g && g.componentFromFramework && Ro(g.componentClass)), [g]), G = B(() => s.get("reactiveCustomComponents"), []), _ = B(() => s.get("enableFilterHandlers"), []), [H, ie] = I();
|
|
43480
|
-
|
|
43480
|
+
Re(() => {
|
|
43481
43481
|
if (g?.componentFromFramework)
|
|
43482
43482
|
if (G) {
|
|
43483
43483
|
const U = _ ? hk : JA, se = new U(g.params, () => f((te) => te + 1));
|
|
@@ -43543,7 +43543,7 @@ var lk = 1e3, ck = class {
|
|
|
43543
43543
|
};
|
|
43544
43544
|
e.setComp(k, T, C.current, v.current, p.current);
|
|
43545
43545
|
}, []);
|
|
43546
|
-
|
|
43546
|
+
qt(() => Hn(h, t, v.current), [h]), Re(() => {
|
|
43547
43547
|
f.current && e.setDragSource(f.current);
|
|
43548
43548
|
}, [h]);
|
|
43549
43549
|
const S = B(() => !!(h?.componentFromFramework && Ro(h.componentClass)), [h]), y = B(() => "ag-header-group-cell " + o.toString(), [o]), R = B(
|
|
@@ -43647,7 +43647,7 @@ var lk = 1e3, ck = class {
|
|
|
43647
43647
|
);
|
|
43648
43648
|
return /* @__PURE__ */ q.createElement("div", { ref: a, className: l, style: c, role: "presentation" }, /* @__PURE__ */ q.createElement(oc, { pinned: "left" }), /* @__PURE__ */ q.createElement(oc, { pinned: null }), /* @__PURE__ */ q.createElement(oc, { pinned: "right" }));
|
|
43649
43649
|
}, Sk = mt(bk), yk = (e, t) => {
|
|
43650
|
-
|
|
43650
|
+
Re(() => {
|
|
43651
43651
|
const s = t.current;
|
|
43652
43652
|
if (s) {
|
|
43653
43653
|
const i = s.parentElement;
|
|
@@ -43704,7 +43704,7 @@ var lk = 1e3, ck = class {
|
|
|
43704
43704
|
}
|
|
43705
43705
|
}, xk = (e) => {
|
|
43706
43706
|
const t = L(e), s = L(), i = L(!1), o = L(!1), [, n] = I(0);
|
|
43707
|
-
i.current && (o.current = !0),
|
|
43707
|
+
i.current && (o.current = !0), Re(() => (i.current || (s.current = t.current(), i.current = !0), n((r) => r + 1), () => {
|
|
43708
43708
|
o.current && s.current?.();
|
|
43709
43709
|
}), []);
|
|
43710
43710
|
}, Fk = (e) => {
|
|
@@ -43743,7 +43743,7 @@ var lk = 1e3, ck = class {
|
|
|
43743
43743
|
return () => {
|
|
43744
43744
|
g?.(), o.destroyBean(p);
|
|
43745
43745
|
};
|
|
43746
|
-
}),
|
|
43746
|
+
}), qt(() => () => {
|
|
43747
43747
|
c.isCellFocused() && t?.getGui().contains(Ke(i)) && d.focus({ preventScroll: !0 });
|
|
43748
43748
|
}, [t]), t && e.wrappedContent ? Fd(e.wrappedContent, t.getGui()) : null;
|
|
43749
43749
|
}, Eg = mt(Fk), Ek = (e, t, s) => {
|
|
@@ -43778,7 +43778,7 @@ var lk = 1e3, ck = class {
|
|
|
43778
43778
|
const c = l.getGui();
|
|
43779
43779
|
c && c.parentElement && c.remove(), r.destroyBean(l), o.current = void 0;
|
|
43780
43780
|
}, []);
|
|
43781
|
-
|
|
43781
|
+
Re(() => {
|
|
43782
43782
|
const l = e != null, c = e?.compDetails && !e.compDetails.componentFromFramework, d = t && s == null;
|
|
43783
43783
|
if (!(l && c && !d)) {
|
|
43784
43784
|
a();
|
|
@@ -43799,7 +43799,7 @@ var lk = 1e3, ck = class {
|
|
|
43799
43799
|
return;
|
|
43800
43800
|
(t ? s : n.current).appendChild(f), o.current = p;
|
|
43801
43801
|
});
|
|
43802
|
-
}, [e, t, i]),
|
|
43802
|
+
}, [e, t, i]), Re(() => a, []);
|
|
43803
43803
|
}, jC = Pk, Tk = ({
|
|
43804
43804
|
cellCtrl: e,
|
|
43805
43805
|
parent: t
|
|
@@ -43842,7 +43842,7 @@ var lk = 1e3, ck = class {
|
|
|
43842
43842
|
), fe = L();
|
|
43843
43843
|
fe.current || (fe.current = new An(() => k.current)), jC(l, Z, N.current, ue, G, k);
|
|
43844
43844
|
const V = L();
|
|
43845
|
-
|
|
43845
|
+
qt(() => {
|
|
43846
43846
|
const me = V.current, be = l;
|
|
43847
43847
|
if (V.current = l, me == null || me.compDetails == null || be == null || be.compDetails == null)
|
|
43848
43848
|
return;
|
|
@@ -43851,7 +43851,7 @@ var lk = 1e3, ck = class {
|
|
|
43851
43851
|
if ($.componentClass != Se.componentClass || P.current?.refresh == null)
|
|
43852
43852
|
return;
|
|
43853
43853
|
P.current.refresh(Se.params) != !0 && g((Te) => Te + 1);
|
|
43854
|
-
}, [l]),
|
|
43854
|
+
}, [l]), qt(() => {
|
|
43855
43855
|
if (!(d && !d.compDetails.componentFromFramework) || o.isDestroyed())
|
|
43856
43856
|
return;
|
|
43857
43857
|
const be = d.compDetails, $ = d.popup === !0, Se = be.newAgStackInstance();
|
|
@@ -43911,13 +43911,13 @@ var lk = 1e3, ck = class {
|
|
|
43911
43911
|
} : ze);
|
|
43912
43912
|
};
|
|
43913
43913
|
if (ve?.params?.deferRender && !e.rowNode.group) {
|
|
43914
|
-
const { loadingComp: ze, onReady:
|
|
43914
|
+
const { loadingComp: ze, onReady: jt } = e.getDeferLoadingCellRenderer();
|
|
43915
43915
|
if (ze) {
|
|
43916
43916
|
c({
|
|
43917
43917
|
value: void 0,
|
|
43918
43918
|
compDetails: ze,
|
|
43919
43919
|
force: !1
|
|
43920
|
-
}),
|
|
43920
|
+
}), jt.then(() => _A(dt));
|
|
43921
43921
|
return;
|
|
43922
43922
|
}
|
|
43923
43923
|
}
|
|
@@ -43928,7 +43928,7 @@ var lk = 1e3, ck = class {
|
|
|
43928
43928
|
let ze;
|
|
43929
43929
|
ve.componentFromFramework && (dt ? ze = new Rk(
|
|
43930
43930
|
ve.params,
|
|
43931
|
-
() => g((
|
|
43931
|
+
() => g((jt) => jt + 1)
|
|
43932
43932
|
) : Mu()), u({
|
|
43933
43933
|
compDetails: ve,
|
|
43934
43934
|
popup: Te,
|
|
@@ -43959,13 +43959,13 @@ var lk = 1e3, ck = class {
|
|
|
43959
43959
|
}, []), Ce = D((me) => {
|
|
43960
43960
|
F.current = me, Y();
|
|
43961
43961
|
}, []), le = B(() => !!(l?.compDetails?.componentFromFramework && Ro(l.compDetails.componentClass)), [l]);
|
|
43962
|
-
|
|
43962
|
+
qt(() => {
|
|
43963
43963
|
if (!k.current)
|
|
43964
43964
|
return;
|
|
43965
43965
|
const { current: me } = fe;
|
|
43966
43966
|
me.toggleCss("ag-cell-value", !Z), me.toggleCss("ag-cell-inline-editing", !!d && !d.popup), me.toggleCss("ag-cell-popup-editing", !!d && !!d.popup), me.toggleCss("ag-cell-not-inline-editing", !d || !!d.popup);
|
|
43967
43967
|
});
|
|
43968
|
-
const
|
|
43968
|
+
const xe = () => {
|
|
43969
43969
|
const { compDetails: me, value: be } = l;
|
|
43970
43970
|
if (!me)
|
|
43971
43971
|
return be?.toString?.() ?? be;
|
|
@@ -43974,7 +43974,7 @@ var lk = 1e3, ck = class {
|
|
|
43974
43974
|
return /* @__PURE__ */ q.createElement(Iv, { fallback: /* @__PURE__ */ q.createElement(Tk, { cellCtrl: e, parent: k }) }, le ? /* @__PURE__ */ q.createElement($, { ...me.params, key: h }) : /* @__PURE__ */ q.createElement($, { ...me.params, key: h, ref: P }));
|
|
43975
43975
|
}
|
|
43976
43976
|
}, Ee = () => {
|
|
43977
|
-
const me = () => l == null ? null : Z ? /* @__PURE__ */ q.createElement("span", { role: "presentation", id: `cell-${r}`, className: X, ref: se },
|
|
43977
|
+
const me = () => l == null ? null : Z ? /* @__PURE__ */ q.createElement("span", { role: "presentation", id: `cell-${r}`, className: X, ref: se }, xe()) : xe(), be = ($) => Dk($, oe, k.current, e, R);
|
|
43978
43978
|
return d != null ? d.popup ? /* @__PURE__ */ q.createElement(q.Fragment, null, me(), be(d)) : be(d) : me();
|
|
43979
43979
|
}, ke = () => /* @__PURE__ */ q.createElement("div", { ref: K, style: p, role: T, "col-id": n }, Z ? /* @__PURE__ */ q.createElement("div", { className: "ag-cell-wrapper", role: "presentation", ref: A }, Ee()) : Ee());
|
|
43980
43980
|
return e.isCellSpanning() ? /* @__PURE__ */ q.createElement("div", { ref: Ce, className: "ag-spanned-cell-wrapper", role: "presentation" }, ke()) : ke();
|
|
@@ -43986,7 +43986,7 @@ var lk = 1e3, ck = class {
|
|
|
43986
43986
|
), [T, k] = I(
|
|
43987
43987
|
() => c ? e.getInitialTransform(t) : void 0
|
|
43988
43988
|
), F = L(null), P = L(), G = L(), _ = L(!1), [H, ie] = I(0);
|
|
43989
|
-
|
|
43989
|
+
Re(() => {
|
|
43990
43990
|
if (_.current || !y || H > 10)
|
|
43991
43991
|
return;
|
|
43992
43992
|
const K = F.current?.firstChild;
|
|
@@ -44016,7 +44016,7 @@ var lk = 1e3, ck = class {
|
|
|
44016
44016
|
setTransform: k,
|
|
44017
44017
|
// i found using React for managing classes at the row level was to slow, as modifying classes caused a lot of
|
|
44018
44018
|
// React code to execute, so avoiding React for managing CSS Classes made the grid go much faster.
|
|
44019
|
-
toggleCss: (le,
|
|
44019
|
+
toggleCss: (le, xe) => ne.current.toggleCss(le, xe),
|
|
44020
44020
|
setDomOrder: (le) => a.current = le,
|
|
44021
44021
|
setRowIndex: u,
|
|
44022
44022
|
setRowId: g,
|
|
@@ -44024,9 +44024,9 @@ var lk = 1e3, ck = class {
|
|
|
44024
44024
|
setUserStyles: v,
|
|
44025
44025
|
// if we don't maintain the order, then cols will be ripped out and into the dom
|
|
44026
44026
|
// when cols reordered, which would stop the CSS transitions from working
|
|
44027
|
-
setCellCtrls: (le,
|
|
44027
|
+
setCellCtrls: (le, xe) => {
|
|
44028
44028
|
const Ee = w.current, ke = fa(Ee, le, a.current);
|
|
44029
|
-
ke !== Ee && (w.current = ke, n ? N.current() : Fn(
|
|
44029
|
+
ke !== Ee && (w.current = ke, n ? N.current() : Fn(xe, () => S(ke)));
|
|
44030
44030
|
},
|
|
44031
44031
|
showFullWidth: (le) => {
|
|
44032
44032
|
G.current = le.params, R(le);
|
|
@@ -44034,16 +44034,16 @@ var lk = 1e3, ck = class {
|
|
|
44034
44034
|
getFullWidthCellRenderer: () => P.current,
|
|
44035
44035
|
getFullWidthCellRendererParams: () => G.current,
|
|
44036
44036
|
refreshFullWidth: (le) => {
|
|
44037
|
-
const
|
|
44038
|
-
return G.current =
|
|
44037
|
+
const xe = le();
|
|
44038
|
+
return G.current = xe, V.current ? (R((Ee) => ({
|
|
44039
44039
|
...Ee,
|
|
44040
|
-
params:
|
|
44041
|
-
})), !0) : !P.current || !P.current.refresh ? !1 : P.current.refresh(
|
|
44040
|
+
params: xe
|
|
44041
|
+
})), !0) : !P.current || !P.current.refresh ? !1 : P.current.refresh(xe);
|
|
44042
44042
|
}
|
|
44043
44043
|
};
|
|
44044
44044
|
e.setComp(Ce, K, t, r.current);
|
|
44045
44045
|
}, []);
|
|
44046
|
-
|
|
44046
|
+
qt(
|
|
44047
44047
|
() => Hn(y, s, F.current, P),
|
|
44048
44048
|
[y]
|
|
44049
44049
|
);
|
|
@@ -44051,7 +44051,7 @@ var lk = 1e3, ck = class {
|
|
|
44051
44051
|
const K = { top: x, transform: T };
|
|
44052
44052
|
return Object.assign(K, C), K;
|
|
44053
44053
|
}, [x, T, C]), X = l && y?.componentFromFramework, oe = !l && se != null, fe = B(() => !!(y?.componentFromFramework && Ro(y.componentClass)), [y]), V = L(!1);
|
|
44054
|
-
|
|
44054
|
+
Re(() => {
|
|
44055
44055
|
V.current = fe && !!y && !!i.get("reactiveCustomComponents");
|
|
44056
44056
|
}, [fe, y]);
|
|
44057
44057
|
const A = () => se?.map((K) => /* @__PURE__ */ q.createElement(
|
|
@@ -44182,8 +44182,8 @@ var lk = 1e3, ck = class {
|
|
|
44182
44182
|
Ze(Ge, document.createComment(Fo)), Ze(Ge, dt(rt).getGui());
|
|
44183
44183
|
};
|
|
44184
44184
|
ze(Te, Nx, " AG Fake Horizontal Scroll ");
|
|
44185
|
-
const
|
|
44186
|
-
|
|
44185
|
+
const jt = s?.getOverlayWrapperCompClass();
|
|
44186
|
+
jt && ze(Te, jt, " AG Overlay Wrapper "), te.current && ze(te.current, Gx, " AG Fake Vertical Scroll ");
|
|
44187
44187
|
const Pi = {
|
|
44188
44188
|
setRowAnimationCssOnBodyViewport: o,
|
|
44189
44189
|
setColumnCount: (Ge) => {
|
|
@@ -44239,7 +44239,7 @@ var lk = 1e3, ck = class {
|
|
|
44239
44239
|
), K = B(() => Ht("ag-body", H), [H]), Ce = B(
|
|
44240
44240
|
() => Ht("ag-floating-top", y ? "ag-invisible" : null, G),
|
|
44241
44241
|
[G, y]
|
|
44242
|
-
), le = B(() => Ht("ag-sticky-top", G), [G]),
|
|
44242
|
+
), le = B(() => Ht("ag-sticky-top", G), [G]), xe = B(
|
|
44243
44243
|
() => Ht("ag-sticky-bottom", f === "0px" ? "ag-invisible" : null, G),
|
|
44244
44244
|
[G, f]
|
|
44245
44245
|
), Ee = B(
|
|
@@ -44295,7 +44295,7 @@ var lk = 1e3, ck = class {
|
|
|
44295
44295
|
children: ["stickyTopLeft", "stickyTopCenter", "stickyTopRight", "stickyTopFullWidth"]
|
|
44296
44296
|
}), ve({
|
|
44297
44297
|
section: se,
|
|
44298
|
-
className:
|
|
44298
|
+
className: xe,
|
|
44299
44299
|
style: be,
|
|
44300
44300
|
children: ["stickyBottomLeft", "stickyBottomCenter", "stickyBottomRight", "stickyBottomFullWidth"]
|
|
44301
44301
|
}), ve({
|
|
@@ -44395,7 +44395,7 @@ var lk = 1e3, ck = class {
|
|
|
44395
44395
|
};
|
|
44396
44396
|
G.setComp(_, P, P), d(!0);
|
|
44397
44397
|
}, []);
|
|
44398
|
-
|
|
44398
|
+
Re(() => {
|
|
44399
44399
|
const P = g.current, G = p.current;
|
|
44400
44400
|
if (!u || !P || !C || !G || e.isDestroyed())
|
|
44401
44401
|
return;
|
|
@@ -44581,7 +44581,7 @@ var lk = 1e3, ck = class {
|
|
|
44581
44581
|
}), [e.containerStyle]), f = D((v) => {
|
|
44582
44582
|
c.current && !a.current?.shouldQueueUpdates() ? v() : n.current.push(v);
|
|
44583
44583
|
}, []);
|
|
44584
|
-
|
|
44584
|
+
Re(() => {
|
|
44585
44585
|
const v = $k(r.current, e);
|
|
44586
44586
|
r.current = e, f(() => {
|
|
44587
44587
|
t.current && gy(v, t.current);
|
|
@@ -44883,7 +44883,7 @@ const Qk = ee(
|
|
|
44883
44883
|
},
|
|
44884
44884
|
[C, n, se, R, i, E]
|
|
44885
44885
|
);
|
|
44886
|
-
|
|
44886
|
+
Re(() => {
|
|
44887
44887
|
n && R && E(!1);
|
|
44888
44888
|
}, [n, R, E]);
|
|
44889
44889
|
const X = D(
|
|
@@ -44956,7 +44956,7 @@ const Qk = ee(
|
|
|
44956
44956
|
onContextMenu: te,
|
|
44957
44957
|
onMouseDown: Z
|
|
44958
44958
|
});
|
|
44959
|
-
return
|
|
44959
|
+
return Re(() => {
|
|
44960
44960
|
if (!R) return;
|
|
44961
44961
|
const V = P.reference.current;
|
|
44962
44962
|
let A = null;
|
|
@@ -45062,7 +45062,7 @@ const Qk = ee(
|
|
|
45062
45062
|
() => o.filter((v) => !u(v)),
|
|
45063
45063
|
[o, u]
|
|
45064
45064
|
), g = e !== void 0 || t !== void 0;
|
|
45065
|
-
|
|
45065
|
+
Re(() => {
|
|
45066
45066
|
if (e !== void 0 && !t) {
|
|
45067
45067
|
const v = /* @__PURE__ */ new Map();
|
|
45068
45068
|
o.forEach((b) => {
|
|
@@ -45252,8 +45252,8 @@ const QC = ({
|
|
|
45252
45252
|
!u && "dial-row-select-visible",
|
|
45253
45253
|
Ce && "opacity-50 cursor-not-allowed"
|
|
45254
45254
|
),
|
|
45255
|
-
onChange: (
|
|
45256
|
-
Ce || !A.data || G(A.data, !!
|
|
45255
|
+
onChange: (xe) => {
|
|
45256
|
+
Ce || !A.data || G(A.data, !!xe);
|
|
45257
45257
|
}
|
|
45258
45258
|
},
|
|
45259
45259
|
`${Y}-${K}`
|
|
@@ -45275,7 +45275,7 @@ const QC = ({
|
|
|
45275
45275
|
return A;
|
|
45276
45276
|
const K = A.cellRenderer;
|
|
45277
45277
|
return { ...A, cellRenderer: (le) => {
|
|
45278
|
-
const
|
|
45278
|
+
const xe = le.data ? i?.(le.data) ?? [] : [];
|
|
45279
45279
|
let Ee = null;
|
|
45280
45280
|
typeof K == "function" ? Ee = /* @__PURE__ */ m(K, { ...le }) : Ee = U(le);
|
|
45281
45281
|
const ke = le.data ? p(le.data) : null, me = ke ? l?.has(ke) : !1;
|
|
@@ -45283,7 +45283,7 @@ const QC = ({
|
|
|
45283
45283
|
It,
|
|
45284
45284
|
{
|
|
45285
45285
|
trigger: [Vt.ContextMenu],
|
|
45286
|
-
menu: { items:
|
|
45286
|
+
menu: { items: xe },
|
|
45287
45287
|
anchorToMouse: !0,
|
|
45288
45288
|
matchReferenceWidth: !0,
|
|
45289
45289
|
className: "w-full h-full",
|
|
@@ -45340,7 +45340,7 @@ const QC = ({
|
|
|
45340
45340
|
}));
|
|
45341
45341
|
A.api.updateGridOptions({ columnDefs: Y, rowData: t }), A.api.sizeColumnsToFit(), k(A.api), s?.onGridReady?.(A);
|
|
45342
45342
|
};
|
|
45343
|
-
|
|
45343
|
+
Re(() => {
|
|
45344
45344
|
T && T.redrawRows();
|
|
45345
45345
|
}, [T, P]);
|
|
45346
45346
|
const V = D(
|
|
@@ -45460,7 +45460,7 @@ const Mg = () => typeof window < "u" && window.innerWidth < 640, Ig = () => {
|
|
|
45460
45460
|
return e >= 1024 ? ni.Desktop : e < 640 ? ni.Mobile : ni.Tablet;
|
|
45461
45461
|
}, r8 = () => {
|
|
45462
45462
|
const [e, t] = I(Ig());
|
|
45463
|
-
return
|
|
45463
|
+
return Re(() => {
|
|
45464
45464
|
const s = () => t(Ig());
|
|
45465
45465
|
return window.addEventListener("resize", s), () => window.removeEventListener("resize", s);
|
|
45466
45466
|
}, []), e;
|
|
@@ -45483,11 +45483,11 @@ const Mg = () => typeof window < "u" && window.innerWidth < 640, Ig = () => {
|
|
|
45483
45483
|
const R = v.current;
|
|
45484
45484
|
R && h(R.scrollWidth > R.clientWidth);
|
|
45485
45485
|
}, []);
|
|
45486
|
-
return
|
|
45486
|
+
return Re(() => {
|
|
45487
45487
|
y();
|
|
45488
45488
|
const R = new ResizeObserver(() => y()), x = v.current;
|
|
45489
45489
|
return x && R.observe(x), () => R.disconnect();
|
|
45490
|
-
}, [e, y]),
|
|
45490
|
+
}, [e, y]), Re(() => {
|
|
45491
45491
|
const R = w.current, x = v.current;
|
|
45492
45492
|
if (!R || !x) return;
|
|
45493
45493
|
const E = R.offsetLeft, T = E + R.offsetWidth, k = x.scrollLeft, F = k + x.clientWidth;
|
|
@@ -45878,7 +45878,7 @@ const Mg = () => typeof window < "u" && window.innerWidth < 640, Ig = () => {
|
|
|
45878
45878
|
inputRef: E
|
|
45879
45879
|
}) => {
|
|
45880
45880
|
const T = L(null), k = fd([E, T]);
|
|
45881
|
-
|
|
45881
|
+
Re(() => {
|
|
45882
45882
|
const _ = T.current;
|
|
45883
45883
|
if (!_) return;
|
|
45884
45884
|
const H = (ie) => {
|
|
@@ -46137,11 +46137,11 @@ const Mg = () => typeof window < "u" && window.innerWidth < 640, Ig = () => {
|
|
|
46137
46137
|
)
|
|
46138
46138
|
] });
|
|
46139
46139
|
};
|
|
46140
|
-
var
|
|
46140
|
+
var Ut = /* @__PURE__ */ ((e) => (e.Sm = "sm", e.Md = "md", e.Lg = "lg", e))(Ut || {});
|
|
46141
46141
|
const y8 = "z-[52] flex items-center justify-center bg-blackout md:p-4", R8 = "divide-tertiary divide-y", x8 = "flex flex-row justify-between py-4 px-6 items-center", F8 = {
|
|
46142
|
-
[
|
|
46143
|
-
[
|
|
46144
|
-
[
|
|
46142
|
+
[Ut.Sm]: "dial-sm-popup",
|
|
46143
|
+
[Ut.Md]: "dial-md-popup",
|
|
46144
|
+
[Ut.Lg]: "dial-lg-popup"
|
|
46145
46145
|
}, xo = ({
|
|
46146
46146
|
open: e = !1,
|
|
46147
46147
|
header: t,
|
|
@@ -46154,7 +46154,7 @@ const y8 = "z-[52] flex items-center justify-center bg-blackout md:p-4", R8 = "d
|
|
|
46154
46154
|
children: l,
|
|
46155
46155
|
footer: c,
|
|
46156
46156
|
onClose: d,
|
|
46157
|
-
size: u =
|
|
46157
|
+
size: u = Ut.Md,
|
|
46158
46158
|
closeOnOutsideClick: h = !0
|
|
46159
46159
|
}) => {
|
|
46160
46160
|
const { refs: g, context: p } = ud({
|
|
@@ -46254,7 +46254,7 @@ const E8 = "flex justify-end gap-2 px-6 py-4", D8 = "text-secondary dial-small-1
|
|
|
46254
46254
|
children: g,
|
|
46255
46255
|
dividers: p = !1,
|
|
46256
46256
|
variant: f = En.Info,
|
|
46257
|
-
size: C =
|
|
46257
|
+
size: C = Ut.Sm,
|
|
46258
46258
|
footer: v
|
|
46259
46259
|
}) => {
|
|
46260
46260
|
const w = r ? null : /* @__PURE__ */ z("div", { className: E8, children: [
|
|
@@ -46420,7 +46420,7 @@ const E8 = "flex justify-end gap-2 px-6 py-4", D8 = "text-secondary dial-small-1
|
|
|
46420
46420
|
selectedRadioValue: C,
|
|
46421
46421
|
onChangeRadioField: v,
|
|
46422
46422
|
id: w,
|
|
46423
|
-
size: b =
|
|
46423
|
+
size: b = Ut.Md
|
|
46424
46424
|
}) => {
|
|
46425
46425
|
const [S, y] = I(!1), R = D(() => {
|
|
46426
46426
|
s || y(!0);
|
|
@@ -46498,7 +46498,7 @@ const E8 = "flex justify-end gap-2 px-6 py-4", D8 = "text-secondary dial-small-1
|
|
|
46498
46498
|
onCancel: d,
|
|
46499
46499
|
children: u,
|
|
46500
46500
|
dividers: h = !0,
|
|
46501
|
-
size: g =
|
|
46501
|
+
size: g = Ut.Md,
|
|
46502
46502
|
footer: p
|
|
46503
46503
|
}) => {
|
|
46504
46504
|
const f = o ? null : /* @__PURE__ */ z("div", { className: L8, children: [
|
|
@@ -46621,7 +46621,7 @@ const G8 = {
|
|
|
46621
46621
|
allowClear: u = !0
|
|
46622
46622
|
}) => {
|
|
46623
46623
|
const [h, g] = I(t || "");
|
|
46624
|
-
|
|
46624
|
+
Re(() => {
|
|
46625
46625
|
g(t || "");
|
|
46626
46626
|
}, [t]);
|
|
46627
46627
|
const p = D(
|
|
@@ -46768,7 +46768,7 @@ const G8 = {
|
|
|
46768
46768
|
const S = d.filter((y, R) => R !== b);
|
|
46769
46769
|
u(S), l?.(S);
|
|
46770
46770
|
};
|
|
46771
|
-
return
|
|
46771
|
+
return Re(() => {
|
|
46772
46772
|
const b = new ResizeObserver(() => {
|
|
46773
46773
|
if (c.current) {
|
|
46774
46774
|
const S = c.current.scrollHeight > c.current.clientHeight + 10;
|
|
@@ -46884,9 +46884,9 @@ const $8 = ({
|
|
|
46884
46884
|
const $ = _.trim().toLowerCase();
|
|
46885
46885
|
return $ ? e.filter((Se) => Se.label.toLowerCase().includes($)) : e;
|
|
46886
46886
|
}, [e, _]);
|
|
46887
|
-
|
|
46887
|
+
Re(() => {
|
|
46888
46888
|
!P && !E && H("");
|
|
46889
|
-
}, [E, P]),
|
|
46889
|
+
}, [E, P]), Re(() => {
|
|
46890
46890
|
E && H(l || "");
|
|
46891
46891
|
}, [l, E]);
|
|
46892
46892
|
const Z = D(
|
|
@@ -46928,7 +46928,7 @@ const $8 = ({
|
|
|
46928
46928
|
fe.forEach((Se) => $.add(Se.value)), Z(Array.from($));
|
|
46929
46929
|
}
|
|
46930
46930
|
}, le = se.length > 0;
|
|
46931
|
-
|
|
46931
|
+
Re(() => {
|
|
46932
46932
|
P && E && !t && !v && requestAnimationFrame(() => {
|
|
46933
46933
|
const $ = ie.current;
|
|
46934
46934
|
if (!$) return;
|
|
@@ -46937,9 +46937,9 @@ const $8 = ({
|
|
|
46937
46937
|
$.setSelectionRange?.(Se, Se);
|
|
46938
46938
|
});
|
|
46939
46939
|
}, [P, E, t, v]);
|
|
46940
|
-
const
|
|
46941
|
-
() =>
|
|
46942
|
-
[e,
|
|
46940
|
+
const xe = !t && le ? se[0] : void 0, Ee = B(
|
|
46941
|
+
() => xe ? e.find(($) => $.value === xe) : void 0,
|
|
46942
|
+
[e, xe]
|
|
46943
46943
|
), ke = D(() => !t || se.length === 0 ? null : /* @__PURE__ */ m(
|
|
46944
46944
|
nv,
|
|
46945
46945
|
{
|
|
@@ -47816,7 +47816,7 @@ const nL = function(t, s, i) {
|
|
|
47816
47816
|
), w = B(() => p || v(h), [p, h, v]), b = () => {
|
|
47817
47817
|
g([]), f(!1);
|
|
47818
47818
|
};
|
|
47819
|
-
|
|
47819
|
+
Re(() => {
|
|
47820
47820
|
b();
|
|
47821
47821
|
}, [o]);
|
|
47822
47822
|
const [{ isOver: S, canDrop: y }, R] = Ip(
|
|
@@ -48235,18 +48235,18 @@ function AL({
|
|
|
48235
48235
|
}, [p, o, r]), v = D(() => {
|
|
48236
48236
|
s && a(e), g(), n?.();
|
|
48237
48237
|
}, [e, n, s, g]);
|
|
48238
|
-
return
|
|
48238
|
+
return Re(() => {
|
|
48239
48239
|
t && (a(e), g(), requestAnimationFrame(() => {
|
|
48240
48240
|
h.current?.focus(), h.current?.select();
|
|
48241
48241
|
}));
|
|
48242
|
-
}, [t, e, g]),
|
|
48242
|
+
}, [t, e, g]), Re(() => {
|
|
48243
48243
|
const w = h.current;
|
|
48244
48244
|
if (!t || !w) return;
|
|
48245
48245
|
const b = (S) => {
|
|
48246
48246
|
S.key === "Enter" ? (S.preventDefault(), h.current?.blur()) : S.key === "Escape" && (S.preventDefault(), v());
|
|
48247
48247
|
};
|
|
48248
48248
|
return w.addEventListener("keydown", b), () => w.removeEventListener("keydown", b);
|
|
48249
|
-
}, [t, C, v]),
|
|
48249
|
+
}, [t, C, v]), Re(() => {
|
|
48250
48250
|
if (!t) return;
|
|
48251
48251
|
const w = h.current;
|
|
48252
48252
|
if (!w) return;
|
|
@@ -48319,7 +48319,11 @@ const va = ({
|
|
|
48319
48319
|
), o = B(
|
|
48320
48320
|
() => i ? e?.expandedPaths ?? /* @__PURE__ */ new Set() : t,
|
|
48321
48321
|
[i, e?.expandedPaths, t]
|
|
48322
|
-
)
|
|
48322
|
+
);
|
|
48323
|
+
Re(() => {
|
|
48324
|
+
i && e?.expandedPaths && s(new Set(e.expandedPaths));
|
|
48325
|
+
}, [i, e?.expandedPaths]);
|
|
48326
|
+
const n = D(
|
|
48323
48327
|
(d) => {
|
|
48324
48328
|
i ? e?.onExpandedPathsChange?.(d) : s(d);
|
|
48325
48329
|
},
|
|
@@ -48624,7 +48628,7 @@ const va = ({
|
|
|
48624
48628
|
var dd = /* @__PURE__ */ ((e) => (e.MyFiles = "my_files", e.Shared = "shared", e.Organization = "organization", e))(dd || {}), he = /* @__PURE__ */ ((e) => (e.Duplicate = "duplicate", e.Copy = "copy", e.Move = "move", e.Download = "download", e.Delete = "delete", e.Rename = "rename", e.Info = "info", e.Unshare = "unshare", e))(he || {}), pt = /* @__PURE__ */ ((e) => (e.Replace = "replace", e.Duplicate = "duplicate", e.Cancel = "cancel", e))(pt || {}), Ot = /* @__PURE__ */ ((e) => (e.ReplaceAll = "replaceAll", e.DuplicateAll = "duplicateAll", e.DecideForEach = "decideForEach", e))(Ot || {}), tt = /* @__PURE__ */ ((e) => (e.Copy = "copy", e.Move = "move", e))(tt || {}), no = /* @__PURE__ */ ((e) => (e.Tree = "tree", e.Grid = "grid", e))(no || {}), gt = /* @__PURE__ */ ((e) => (e.Name = "name", e.UpdatedAt = "updatedAt", e.Size = "size", e.Author = "author", e.Owner = "owner", e.Path = "path", e.Actions = "__actions", e))(gt || {});
|
|
48625
48629
|
const pv = () => {
|
|
48626
48630
|
const [e, t] = I(Mg());
|
|
48627
|
-
return
|
|
48631
|
+
return Re(() => {
|
|
48628
48632
|
const s = () => t(Mg());
|
|
48629
48633
|
return window.addEventListener("resize", s), () => window.removeEventListener("resize", s);
|
|
48630
48634
|
}, []), e;
|
|
@@ -48730,13 +48734,13 @@ function zL({
|
|
|
48730
48734
|
dependencies: n = []
|
|
48731
48735
|
}) {
|
|
48732
48736
|
const r = L(null), a = L(null), l = L(null), c = L(null), d = L([]), [u, h] = I(e.length);
|
|
48733
|
-
|
|
48737
|
+
qt(() => {
|
|
48734
48738
|
if (!a.current) return;
|
|
48735
48739
|
const f = Array.from(a.current.children);
|
|
48736
48740
|
d.current = f.map(
|
|
48737
48741
|
(C) => Math.ceil(C.getBoundingClientRect().width)
|
|
48738
48742
|
);
|
|
48739
|
-
}, [e, ...n]),
|
|
48743
|
+
}, [e, ...n]), Re(() => {
|
|
48740
48744
|
if (!r.current) return;
|
|
48741
48745
|
let f = null;
|
|
48742
48746
|
const C = () => {
|
|
@@ -49254,10 +49258,10 @@ const WL = ({ getSelectionLabel: e, onClearSelection: t, actions: s, selectedCou
|
|
|
49254
49258
|
const le = f.get(Ce.sourceUrl);
|
|
49255
49259
|
if (!le)
|
|
49256
49260
|
return;
|
|
49257
|
-
const
|
|
49261
|
+
const xe = Ce.destinationUrl.split("/").pop();
|
|
49258
49262
|
return {
|
|
49259
49263
|
fileContent: le.fileContent,
|
|
49260
|
-
name:
|
|
49264
|
+
name: xe
|
|
49261
49265
|
};
|
|
49262
49266
|
}).filter(Boolean);
|
|
49263
49267
|
K.length > 0 && e?.(K, Y), G();
|
|
@@ -49265,16 +49269,16 @@ const WL = ({ getSelectionLabel: e, onClearSelection: t, actions: s, selectedCou
|
|
|
49265
49269
|
}), G = D(() => {
|
|
49266
49270
|
C(/* @__PURE__ */ new Map()), w(null);
|
|
49267
49271
|
}, []);
|
|
49268
|
-
|
|
49272
|
+
Re(() => {
|
|
49269
49273
|
let A = 0;
|
|
49270
|
-
const Y = (
|
|
49271
|
-
YL(
|
|
49274
|
+
const Y = (xe) => {
|
|
49275
|
+
YL(xe) && xe.dataTransfer.types.includes(vL) && (A++, c(!0));
|
|
49272
49276
|
}, K = () => {
|
|
49273
49277
|
A--, A === 0 && c(!1);
|
|
49274
49278
|
}, Ce = () => {
|
|
49275
49279
|
A = 0, c(!1);
|
|
49276
|
-
}, le = (
|
|
49277
|
-
|
|
49280
|
+
}, le = (xe) => {
|
|
49281
|
+
xe.preventDefault();
|
|
49278
49282
|
};
|
|
49279
49283
|
return window.addEventListener("dragenter", Y), window.addEventListener("dragleave", K), window.addEventListener("drop", Ce), window.addEventListener("dragover", le), () => {
|
|
49280
49284
|
window.removeEventListener("dragenter", Y), window.removeEventListener("dragleave", K), window.removeEventListener("drop", Ce), window.removeEventListener("dragover", le);
|
|
@@ -49320,8 +49324,8 @@ const WL = ({ getSelectionLabel: e, onClearSelection: t, actions: s, selectedCou
|
|
|
49320
49324
|
}
|
|
49321
49325
|
const le = new Map(A.map((ke) => [ke.name, ke]));
|
|
49322
49326
|
C(le);
|
|
49323
|
-
const
|
|
49324
|
-
return w({ destinationFolder: Y }), x(Y,
|
|
49327
|
+
const xe = H(A, Y);
|
|
49328
|
+
return w({ destinationFolder: Y }), x(Y, xe, {
|
|
49325
49329
|
destinationFolder: Y
|
|
49326
49330
|
}).hasConflicts ? !1 : (e?.(A, Y), G(), !0);
|
|
49327
49331
|
},
|
|
@@ -49364,25 +49368,25 @@ const WL = ({ getSelectionLabel: e, onClearSelection: t, actions: s, selectedCou
|
|
|
49364
49368
|
const le = Ce.map((Ee) => ({
|
|
49365
49369
|
fileContent: Ee,
|
|
49366
49370
|
name: Ee.name
|
|
49367
|
-
})),
|
|
49368
|
-
if (
|
|
49371
|
+
})), xe = b(le);
|
|
49372
|
+
if (xe.length === 0) {
|
|
49369
49373
|
u(
|
|
49370
49374
|
o.unsupportedFiles || "Selected files are not supported"
|
|
49371
49375
|
);
|
|
49372
49376
|
return;
|
|
49373
49377
|
}
|
|
49374
|
-
await ie(
|
|
49378
|
+
await ie(xe, Y, K);
|
|
49375
49379
|
},
|
|
49376
49380
|
[ie, b, o]
|
|
49377
49381
|
);
|
|
49378
|
-
|
|
49382
|
+
Re(() => {
|
|
49379
49383
|
let A = h.current;
|
|
49380
49384
|
A || (A = document.createElement("input"), A.type = "file", A.multiple = !0, A.style.display = "none", document.body.appendChild(A), h.current = A), i && i.length > 0 ? A.accept = i.join(",") : A.removeAttribute("accept");
|
|
49381
49385
|
const Y = async () => {
|
|
49382
49386
|
if (!A?.files?.length) return;
|
|
49383
|
-
const Ce = Array.from(A.files).map((
|
|
49384
|
-
fileContent:
|
|
49385
|
-
name:
|
|
49387
|
+
const Ce = Array.from(A.files).map((xe) => ({
|
|
49388
|
+
fileContent: xe,
|
|
49389
|
+
name: xe.name
|
|
49386
49390
|
})), le = b(Ce);
|
|
49387
49391
|
if (le.length === 0) {
|
|
49388
49392
|
u(
|
|
@@ -49416,17 +49420,17 @@ const WL = ({ getSelectionLabel: e, onClearSelection: t, actions: s, selectedCou
|
|
|
49416
49420
|
document.body.removeChild(K);
|
|
49417
49421
|
return;
|
|
49418
49422
|
}
|
|
49419
|
-
const
|
|
49423
|
+
const xe = le.name.replace(/\.zip$/i, "");
|
|
49420
49424
|
if (Y.some(
|
|
49421
|
-
(ke) => ke.nodeType === Ne.FOLDER && ke.name.toLowerCase() ===
|
|
49425
|
+
(ke) => ke.nodeType === Ne.FOLDER && ke.name.toLowerCase() === xe.toLowerCase()
|
|
49422
49426
|
)) {
|
|
49423
49427
|
u(
|
|
49424
|
-
o.validationFailed || `Folder with name "${
|
|
49428
|
+
o.validationFailed || `Folder with name "${xe}" already exists`
|
|
49425
49429
|
), document.body.removeChild(K);
|
|
49426
49430
|
return;
|
|
49427
49431
|
}
|
|
49428
49432
|
try {
|
|
49429
|
-
n(le,
|
|
49433
|
+
n(le, xe, A);
|
|
49430
49434
|
} finally {
|
|
49431
49435
|
document.body.removeChild(K);
|
|
49432
49436
|
}
|
|
@@ -49617,7 +49621,7 @@ const t7 = ({
|
|
|
49617
49621
|
}),
|
|
49618
49622
|
[i]
|
|
49619
49623
|
);
|
|
49620
|
-
|
|
49624
|
+
Re(() => {
|
|
49621
49625
|
const p = e?.path;
|
|
49622
49626
|
l.current !== p && o && (n(!1), a(null)), l.current = p;
|
|
49623
49627
|
}, [e?.path, o]);
|
|
@@ -49732,7 +49736,7 @@ function l7({
|
|
|
49732
49736
|
allItems: a = []
|
|
49733
49737
|
}) {
|
|
49734
49738
|
const [l, c] = I(""), d = L(!1), u = L(!1), h = L([]), g = L(s);
|
|
49735
|
-
|
|
49739
|
+
Re(() => {
|
|
49736
49740
|
n != null && c(String(n));
|
|
49737
49741
|
}, [n]);
|
|
49738
49742
|
const p = String(
|
|
@@ -49756,9 +49760,9 @@ function l7({
|
|
|
49756
49760
|
},
|
|
49757
49761
|
[r, C, v]
|
|
49758
49762
|
);
|
|
49759
|
-
|
|
49763
|
+
Re(() => {
|
|
49760
49764
|
g.current !== s && (g.current = s, (u.current || p) && v());
|
|
49761
|
-
}, [s, v, p]),
|
|
49765
|
+
}, [s, v, p]), Re(() => {
|
|
49762
49766
|
i.length > 0 && h.current.length === 0 && (h.current = i);
|
|
49763
49767
|
}, [i]);
|
|
49764
49768
|
const b = B(() => {
|
|
@@ -49858,7 +49862,7 @@ const d7 = ({
|
|
|
49858
49862
|
emptyStateDescription: le
|
|
49859
49863
|
}) => {
|
|
49860
49864
|
const {
|
|
49861
|
-
selectedPaths:
|
|
49865
|
+
selectedPaths: xe,
|
|
49862
49866
|
clearSelection: Ee,
|
|
49863
49867
|
setSelectedPaths: ke
|
|
49864
49868
|
} = c7({
|
|
@@ -49867,11 +49871,11 @@ const d7 = ({
|
|
|
49867
49871
|
onSelectedPathsChange: c
|
|
49868
49872
|
}), me = B(() => {
|
|
49869
49873
|
const Oe = /* @__PURE__ */ new Map();
|
|
49870
|
-
return
|
|
49874
|
+
return xe.forEach((kt) => {
|
|
49871
49875
|
const ts = yi(s, kt);
|
|
49872
49876
|
ts && Oe.set(kt, ts);
|
|
49873
49877
|
}), Oe;
|
|
49874
|
-
}, [
|
|
49878
|
+
}, [xe, s]), { currentPath: be, setCurrentPath: $, handlePathChange: Se } = jL({
|
|
49875
49879
|
path: o,
|
|
49876
49880
|
defaultPath: n,
|
|
49877
49881
|
onPathChange: S,
|
|
@@ -49881,7 +49885,7 @@ const d7 = ({
|
|
|
49881
49885
|
w?.setDestinationFolderPath ? w.setDestinationFolderPath(Oe) : Te(Oe);
|
|
49882
49886
|
},
|
|
49883
49887
|
[w]
|
|
49884
|
-
), { areHiddenFilesVisible: ze, toggleHiddenFilesVisibility:
|
|
49888
|
+
), { areHiddenFilesVisible: ze, toggleHiddenFilesVisibility: jt } = _L({
|
|
49885
49889
|
showHiddenFiles: d,
|
|
49886
49890
|
onShowHiddenFilesChange: u
|
|
49887
49891
|
}), { isTreeCollapsed: Pi, toggleTreeCollapse: Ti, setIsTreeCollapsed: Ge } = UL({
|
|
@@ -49946,7 +49950,7 @@ const d7 = ({
|
|
|
49946
49950
|
getCopyHeader: w?.getCopyHeader,
|
|
49947
49951
|
getMoveHeader: w?.getMoveHeader
|
|
49948
49952
|
});
|
|
49949
|
-
|
|
49953
|
+
Re(() => {
|
|
49950
49954
|
Qs && !Ze && dt(be ?? i?.path ?? "/");
|
|
49951
49955
|
}, [
|
|
49952
49956
|
Qs,
|
|
@@ -49954,7 +49958,7 @@ const d7 = ({
|
|
|
49954
49958
|
be,
|
|
49955
49959
|
i?.path,
|
|
49956
49960
|
dt
|
|
49957
|
-
]),
|
|
49961
|
+
]), Re(() => {
|
|
49958
49962
|
Qs || dt(void 0);
|
|
49959
49963
|
}, [Qs, dt]);
|
|
49960
49964
|
const {
|
|
@@ -50155,11 +50159,11 @@ const d7 = ({
|
|
|
50155
50159
|
effectiveSearchValue: Do,
|
|
50156
50160
|
setSearchValue: $a,
|
|
50157
50161
|
areHiddenFilesVisible: ze,
|
|
50158
|
-
toggleHiddenFilesVisibility:
|
|
50162
|
+
toggleHiddenFilesVisibility: jt,
|
|
50159
50163
|
isTreeCollapsed: Pi,
|
|
50160
50164
|
toggleTreeCollapse: Ti,
|
|
50161
50165
|
setIsTreeCollapsed: Ge,
|
|
50162
|
-
selectedPaths:
|
|
50166
|
+
selectedPaths: xe,
|
|
50163
50167
|
selectedFiles: me,
|
|
50164
50168
|
setSelectedPaths: ke,
|
|
50165
50169
|
clearSelection: Ee,
|
|
@@ -50372,7 +50376,7 @@ const vv = ({
|
|
|
50372
50376
|
onClose: () => {
|
|
50373
50377
|
e();
|
|
50374
50378
|
},
|
|
50375
|
-
size:
|
|
50379
|
+
size: Ut.Lg,
|
|
50376
50380
|
className: "md:!h-[800px]",
|
|
50377
50381
|
footer: /* @__PURE__ */ z("div", { className: "flex justify-between space-x-2 py-4 px-6", children: [
|
|
50378
50382
|
/* @__PURE__ */ z("div", { className: "flex space-x-4", children: [
|
|
@@ -50840,7 +50844,8 @@ const vv = ({
|
|
|
50840
50844
|
{
|
|
50841
50845
|
open: e,
|
|
50842
50846
|
onClose: t,
|
|
50843
|
-
size:
|
|
50847
|
+
size: f ? Ut.Sm : Ut.Md,
|
|
50848
|
+
className: ee([!f && "w-[600px]"]),
|
|
50844
50849
|
header: H,
|
|
50845
50850
|
dividers: !1,
|
|
50846
50851
|
footer: /* @__PURE__ */ z("div", { className: "flex justify-end gap-3 py-4 px-6", children: [
|
|
@@ -50920,7 +50925,7 @@ const vv = ({
|
|
|
50920
50925
|
) }) });
|
|
50921
50926
|
function b7(e) {
|
|
50922
50927
|
const t = L(null), [s, i] = I(!1);
|
|
50923
|
-
return
|
|
50928
|
+
return Re(() => {
|
|
50924
50929
|
if (!t.current) return;
|
|
50925
50930
|
const o = new ResizeObserver(([n]) => {
|
|
50926
50931
|
const r = n.contentRect.width;
|
|
@@ -51009,7 +51014,7 @@ const S7 = ({
|
|
|
51009
51014
|
{
|
|
51010
51015
|
open: e,
|
|
51011
51016
|
onClose: t,
|
|
51012
|
-
size:
|
|
51017
|
+
size: Ut.Sm,
|
|
51013
51018
|
header: o,
|
|
51014
51019
|
dividers: !1,
|
|
51015
51020
|
children: /* @__PURE__ */ m("div", { className: "px-6 py-4", children: /* @__PURE__ */ m(
|
|
@@ -51022,7 +51027,7 @@ const S7 = ({
|
|
|
51022
51027
|
/* @__PURE__ */ m(
|
|
51023
51028
|
_o,
|
|
51024
51029
|
{
|
|
51025
|
-
variant:
|
|
51030
|
+
variant: Kt.Text,
|
|
51026
51031
|
width: "100%",
|
|
51027
51032
|
height: Zo,
|
|
51028
51033
|
className: Qo
|
|
@@ -51032,7 +51037,7 @@ const S7 = ({
|
|
|
51032
51037
|
/* @__PURE__ */ m(
|
|
51033
51038
|
_o,
|
|
51034
51039
|
{
|
|
51035
|
-
variant:
|
|
51040
|
+
variant: Kt.Text,
|
|
51036
51041
|
width: "90%",
|
|
51037
51042
|
height: Zo,
|
|
51038
51043
|
className: Qo
|
|
@@ -51042,7 +51047,7 @@ const S7 = ({
|
|
|
51042
51047
|
/* @__PURE__ */ m(
|
|
51043
51048
|
_o,
|
|
51044
51049
|
{
|
|
51045
|
-
variant:
|
|
51050
|
+
variant: Kt.Text,
|
|
51046
51051
|
width: "60%",
|
|
51047
51052
|
height: Zo,
|
|
51048
51053
|
className: Qo
|
|
@@ -51052,7 +51057,7 @@ const S7 = ({
|
|
|
51052
51057
|
/* @__PURE__ */ m(
|
|
51053
51058
|
_o,
|
|
51054
51059
|
{
|
|
51055
|
-
variant:
|
|
51060
|
+
variant: Kt.Text,
|
|
51056
51061
|
width: "80%",
|
|
51057
51062
|
height: Zo,
|
|
51058
51063
|
className: Qo
|
|
@@ -51062,7 +51067,7 @@ const S7 = ({
|
|
|
51062
51067
|
/* @__PURE__ */ m(
|
|
51063
51068
|
_o,
|
|
51064
51069
|
{
|
|
51065
|
-
variant:
|
|
51070
|
+
variant: Kt.Text,
|
|
51066
51071
|
width: "70%",
|
|
51067
51072
|
height: Zo,
|
|
51068
51073
|
className: Qo
|
|
@@ -51148,7 +51153,7 @@ const S7 = ({
|
|
|
51148
51153
|
renamedItem: K,
|
|
51149
51154
|
onRename: Ce,
|
|
51150
51155
|
onRenameSave: le,
|
|
51151
|
-
onRenameCancel:
|
|
51156
|
+
onRenameCancel: xe,
|
|
51152
51157
|
onRenameValidate: Ee,
|
|
51153
51158
|
getDisplayName: ke,
|
|
51154
51159
|
isDragging: me,
|
|
@@ -51160,7 +51165,7 @@ const S7 = ({
|
|
|
51160
51165
|
onUploadFiles: Ze,
|
|
51161
51166
|
onValidateUpload: dt,
|
|
51162
51167
|
maxFileSize: ze,
|
|
51163
|
-
newActions:
|
|
51168
|
+
newActions: jt,
|
|
51164
51169
|
isNewButtonVisible: Pi,
|
|
51165
51170
|
newFolderTempId: Ti,
|
|
51166
51171
|
cancelFolderCreation: Ge,
|
|
@@ -51482,7 +51487,7 @@ const S7 = ({
|
|
|
51482
51487
|
areHiddenFilesVisible: f,
|
|
51483
51488
|
onToggleHiddenFiles: C,
|
|
51484
51489
|
isNewButtonVisible: Pi,
|
|
51485
|
-
newButtonDropdownItems:
|
|
51490
|
+
newButtonDropdownItems: jt
|
|
51486
51491
|
}
|
|
51487
51492
|
)
|
|
51488
51493
|
}
|
|
@@ -51511,7 +51516,7 @@ const S7 = ({
|
|
|
51511
51516
|
C,
|
|
51512
51517
|
a,
|
|
51513
51518
|
Pi,
|
|
51514
|
-
|
|
51519
|
+
jt
|
|
51515
51520
|
]);
|
|
51516
51521
|
Dn(
|
|
51517
51522
|
Qa,
|
|
@@ -51559,7 +51564,7 @@ const S7 = ({
|
|
|
51559
51564
|
getContextMenuItems: Xn,
|
|
51560
51565
|
renamedPath: Mo === no.Tree ? Y : void 0,
|
|
51561
51566
|
onRenameSave: le,
|
|
51562
|
-
onRenameCancel:
|
|
51567
|
+
onRenameCancel: xe,
|
|
51563
51568
|
onRenameValidate: Ee
|
|
51564
51569
|
}
|
|
51565
51570
|
)
|
|
@@ -51580,7 +51585,7 @@ const S7 = ({
|
|
|
51580
51585
|
v,
|
|
51581
51586
|
t,
|
|
51582
51587
|
s,
|
|
51583
|
-
|
|
51588
|
+
xe,
|
|
51584
51589
|
le,
|
|
51585
51590
|
Ee,
|
|
51586
51591
|
Mo,
|
|
@@ -51730,7 +51735,7 @@ const S7 = ({
|
|
|
51730
51735
|
cancelFolderCreation: Ge,
|
|
51731
51736
|
saveFolderCreation: rt,
|
|
51732
51737
|
getDisplayName: ke,
|
|
51733
|
-
onRenameCancel:
|
|
51738
|
+
onRenameCancel: xe,
|
|
51734
51739
|
onRenameSave: le,
|
|
51735
51740
|
onRenameValidate: Ee,
|
|
51736
51741
|
renameTriggerView: Mo,
|
|
@@ -51906,7 +51911,7 @@ export {
|
|
|
51906
51911
|
_o as DialSkeleton,
|
|
51907
51912
|
yc as DialSkeletonAvatarShape,
|
|
51908
51913
|
Fr as DialSkeletonAvatarSize,
|
|
51909
|
-
|
|
51914
|
+
Kt as DialSkeletonVariant,
|
|
51910
51915
|
O7 as DialSteps,
|
|
51911
51916
|
sv as DialSwitch,
|
|
51912
51917
|
a8 as DialTabs,
|
|
@@ -51923,7 +51928,7 @@ export {
|
|
|
51923
51928
|
d7 as FileManagerProvider,
|
|
51924
51929
|
ji as FlexibleActionsDirection,
|
|
51925
51930
|
_r as FormItemOrientation,
|
|
51926
|
-
|
|
51931
|
+
Ut as PopupSize,
|
|
51927
51932
|
ro as RadioGroupOrientation,
|
|
51928
51933
|
$r as ResizableContainerSide,
|
|
51929
51934
|
Ca as SearchSize,
|