@epam/ai-dial-ui-kit 0.5.0-rc.85 → 0.5.0-rc.87
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,7 +2,7 @@ import { jsx as v, jsxs as W, Fragment as Ke } from "react/jsx-runtime";
|
|
|
2
2
|
import ee from "classnames";
|
|
3
3
|
import { useFloating as xc, offset as og, flip as ng, shift as rg, arrow as BC, autoUpdate as ag, useHover as lg, useFocus as VC, useDismiss as Fc, useRole as Ec, useInteractions as Dc, useMergeRefs as Pc, FloatingPortal as Tc, FloatingArrow as zC, autoPlacement as WC, size as _C, useClick as UC, FloatingFocusManager as cg, FloatingOverlay as $C } from "@floating-ui/react";
|
|
4
4
|
import * as ve from "react";
|
|
5
|
-
import $, { createContext as jr, useState as A, useRef as O, useEffect as we, useMemo as
|
|
5
|
+
import $, { createContext as jr, useState as A, useRef as O, useEffect as we, useMemo as G, useContext as et, isValidElement as Mc, cloneElement as Pl, useCallback as T, memo as gt, useLayoutEffect as _t, PureComponent as jC, Component as KC, forwardRef as Ic, useImperativeHandle as Kr, createElement as Ao, Suspense as qC, useId as Ac, Children as YC } from "react";
|
|
6
6
|
import { IconInfoCircle as dg, IconCircleCheck as ZC, IconAlertTriangle as QC, IconAlertCircle as XC, IconX as oo, IconMinus as JC, IconCheck as ug, IconExclamationCircle as kc, IconClipboardX as hg, IconChevronsLeft as ev, IconChevronsRight as tv, IconGripVertical as sv, IconFile as gg, IconFileTypeZip as iv, IconFileTypeXml as ov, IconFileTypeXls as nv, IconFileTypeVue as rv, IconFileTypeTxt as av, IconFileTypeTsx as lv, IconFileTypeTs as cv, IconFileTypeSvg as dv, IconFileTypeSql as uv, IconFileTypeRs as hv, IconFileTypePpt as gv, IconFileTypePng as pv, IconFileTypePhp as fv, IconFileTypePdf as mv, IconFileTypeJsx as Cv, IconFileTypeJs as vv, IconFileTypeJpg as wv, IconFileTypeHtml as bv, IconFileTypeDocx as Sv, IconFileTypeDoc as yv, IconFileTypeCsv as Rv, IconFileTypeCss as xv, IconFileTypeBmp as Fv, IconArrowUpRight as Ev, IconFolder as Lc, IconChevronLeft as Dv, IconChevronRight as pg, IconZoomCancel as Pv, IconChevronDown as qr, IconDotsVertical as an, IconDots as Tv, IconTrashX as ln, IconEyeOff as fg, IconEye as mg, IconSearch as Mv, IconPlus as Iv, IconChevronUp as Av, IconAlertCircleFilled as kv, IconCaretRightFilled as Lv, IconArrowLeft as Ov, IconFileZip as Nv, IconCopyMinus as Hv, IconFolderPlus as Gv, IconCopy as Oc, IconDownload as Nc, IconPencilMinus as Cg, IconCircleFilled as Qn } from "@tabler/icons-react";
|
|
7
7
|
import Bv, { flushSync as Vv, createPortal as Hc } from "react-dom";
|
|
8
8
|
const ni = ({ errorText: e }) => e && /* @__PURE__ */ v("span", { className: "text-error dial-tiny mt-1", children: e }), He = ({ icon: e, className: t }) => e ? /* @__PURE__ */ v("span", { className: ee("flex-shrink-0", t), children: e }) : null, zv = 7, Wv = 2, vg = jr(null), wg = () => {
|
|
@@ -53,7 +53,7 @@ const ni = ({ errorText: e }) => e && /* @__PURE__ */ v("span", { className: "te
|
|
|
53
53
|
{ root: null, threshold: 0 }
|
|
54
54
|
);
|
|
55
55
|
return C.observe(m), () => C.disconnect();
|
|
56
|
-
}, [l, d.refs.reference, c]),
|
|
56
|
+
}, [l, d.refs.reference, c]), G(
|
|
57
57
|
() => ({
|
|
58
58
|
open: l,
|
|
59
59
|
setOpen: c,
|
|
@@ -418,9 +418,9 @@ const Xe = (e) => {
|
|
|
418
418
|
"left-bottom"
|
|
419
419
|
], y = () => [...S(), le, ae], R = () => ["auto", "hidden", "clip", "visible", "scroll"], x = () => ["auto", "contain", "none"], E = () => [le, ae, l], M = () => [xi, "full", "auto", ...E()], k = () => [Ds, "none", "subgrid", le, ae], F = () => ["auto", {
|
|
420
420
|
span: ["full", Ds, le, ae]
|
|
421
|
-
}, Ds, le, ae], P = () => [Ds, "auto", le, ae], H = () => ["auto", "min", "max", "fr", le, ae], _ = () => ["start", "end", "center", "between", "around", "evenly", "stretch", "baseline", "center-safe", "end-safe"],
|
|
421
|
+
}, Ds, le, ae], P = () => [Ds, "auto", le, ae], H = () => ["auto", "min", "max", "fr", le, ae], _ = () => ["start", "end", "center", "between", "around", "evenly", "stretch", "baseline", "center-safe", "end-safe"], B = () => ["start", "end", "center", "stretch", "center-safe", "end-safe"], se = () => ["auto", ...E()], re = () => [xi, "auto", "full", "dvw", "dvh", "lvw", "lvh", "svw", "svh", "min", "max", "fit", ...E()], N = () => [e, le, ae], ne = () => [...S(), Zd, Yd, {
|
|
422
422
|
position: [le, ae]
|
|
423
|
-
}],
|
|
423
|
+
}], j = () => ["no-repeat", {
|
|
424
424
|
repeat: ["", "x", "y", "space", "round"]
|
|
425
425
|
}], q = () => ["auto", "cover", "contain", vw, fw, {
|
|
426
426
|
size: [le, ae]
|
|
@@ -432,7 +432,7 @@ const Xe = (e) => {
|
|
|
432
432
|
c,
|
|
433
433
|
le,
|
|
434
434
|
ae
|
|
435
|
-
], Z = () => ["", xe, Fo, $s], ie = () => ["solid", "dashed", "dotted", "double"],
|
|
435
|
+
], Z = () => ["", xe, Fo, $s], ie = () => ["solid", "dashed", "dotted", "double"], V = () => ["normal", "multiply", "screen", "overlay", "darken", "lighten", "color-dodge", "color-burn", "hard-light", "soft-light", "difference", "exclusion", "hue", "saturation", "color", "luminosity"], D = () => [xe, Aa, Zd, Yd], K = () => [
|
|
436
436
|
// Deprecated since Tailwind CSS v4.0.0
|
|
437
437
|
"",
|
|
438
438
|
"none",
|
|
@@ -849,14 +849,14 @@ const Xe = (e) => {
|
|
|
849
849
|
* @see https://tailwindcss.com/docs/justify-items
|
|
850
850
|
*/
|
|
851
851
|
"justify-items": [{
|
|
852
|
-
"justify-items": [...
|
|
852
|
+
"justify-items": [...B(), "normal"]
|
|
853
853
|
}],
|
|
854
854
|
/**
|
|
855
855
|
* Justify Self
|
|
856
856
|
* @see https://tailwindcss.com/docs/justify-self
|
|
857
857
|
*/
|
|
858
858
|
"justify-self": [{
|
|
859
|
-
"justify-self": ["auto", ...
|
|
859
|
+
"justify-self": ["auto", ...B()]
|
|
860
860
|
}],
|
|
861
861
|
/**
|
|
862
862
|
* Align Content
|
|
@@ -870,7 +870,7 @@ const Xe = (e) => {
|
|
|
870
870
|
* @see https://tailwindcss.com/docs/align-items
|
|
871
871
|
*/
|
|
872
872
|
"align-items": [{
|
|
873
|
-
items: [...
|
|
873
|
+
items: [...B(), {
|
|
874
874
|
baseline: ["", "last"]
|
|
875
875
|
}]
|
|
876
876
|
}],
|
|
@@ -879,7 +879,7 @@ const Xe = (e) => {
|
|
|
879
879
|
* @see https://tailwindcss.com/docs/align-self
|
|
880
880
|
*/
|
|
881
881
|
"align-self": [{
|
|
882
|
-
self: ["auto", ...
|
|
882
|
+
self: ["auto", ...B(), {
|
|
883
883
|
baseline: ["", "last"]
|
|
884
884
|
}]
|
|
885
885
|
}],
|
|
@@ -895,14 +895,14 @@ const Xe = (e) => {
|
|
|
895
895
|
* @see https://tailwindcss.com/docs/place-items
|
|
896
896
|
*/
|
|
897
897
|
"place-items": [{
|
|
898
|
-
"place-items": [...
|
|
898
|
+
"place-items": [...B(), "baseline"]
|
|
899
899
|
}],
|
|
900
900
|
/**
|
|
901
901
|
* Place Self
|
|
902
902
|
* @see https://tailwindcss.com/docs/place-self
|
|
903
903
|
*/
|
|
904
904
|
"place-self": [{
|
|
905
|
-
"place-self": ["auto", ...
|
|
905
|
+
"place-self": ["auto", ...B()]
|
|
906
906
|
}],
|
|
907
907
|
// Spacing
|
|
908
908
|
/**
|
|
@@ -1398,7 +1398,7 @@ const Xe = (e) => {
|
|
|
1398
1398
|
* @see https://tailwindcss.com/docs/background-repeat
|
|
1399
1399
|
*/
|
|
1400
1400
|
"bg-repeat": [{
|
|
1401
|
-
bg:
|
|
1401
|
+
bg: j()
|
|
1402
1402
|
}],
|
|
1403
1403
|
/**
|
|
1404
1404
|
* Background Size
|
|
@@ -1893,14 +1893,14 @@ const Xe = (e) => {
|
|
|
1893
1893
|
* @see https://tailwindcss.com/docs/mix-blend-mode
|
|
1894
1894
|
*/
|
|
1895
1895
|
"mix-blend": [{
|
|
1896
|
-
"mix-blend": [...
|
|
1896
|
+
"mix-blend": [...V(), "plus-darker", "plus-lighter"]
|
|
1897
1897
|
}],
|
|
1898
1898
|
/**
|
|
1899
1899
|
* Background Blend Mode
|
|
1900
1900
|
* @see https://tailwindcss.com/docs/background-blend-mode
|
|
1901
1901
|
*/
|
|
1902
1902
|
"bg-blend": [{
|
|
1903
|
-
"bg-blend":
|
|
1903
|
+
"bg-blend": V()
|
|
1904
1904
|
}],
|
|
1905
1905
|
/**
|
|
1906
1906
|
* Mask Clip
|
|
@@ -2075,7 +2075,7 @@ const Xe = (e) => {
|
|
|
2075
2075
|
* @see https://tailwindcss.com/docs/mask-repeat
|
|
2076
2076
|
*/
|
|
2077
2077
|
"mask-repeat": [{
|
|
2078
|
-
mask:
|
|
2078
|
+
mask: j()
|
|
2079
2079
|
}],
|
|
2080
2080
|
/**
|
|
2081
2081
|
* Mask Size
|
|
@@ -2119,7 +2119,7 @@ const Xe = (e) => {
|
|
|
2119
2119
|
* @see https://tailwindcss.com/docs/blur
|
|
2120
2120
|
*/
|
|
2121
2121
|
blur: [{
|
|
2122
|
-
blur:
|
|
2122
|
+
blur: K()
|
|
2123
2123
|
}],
|
|
2124
2124
|
/**
|
|
2125
2125
|
* Brightness
|
|
@@ -2209,7 +2209,7 @@ const Xe = (e) => {
|
|
|
2209
2209
|
* @see https://tailwindcss.com/docs/backdrop-blur
|
|
2210
2210
|
*/
|
|
2211
2211
|
"backdrop-blur": [{
|
|
2212
|
-
"backdrop-blur":
|
|
2212
|
+
"backdrop-blur": K()
|
|
2213
2213
|
}],
|
|
2214
2214
|
/**
|
|
2215
2215
|
* Backdrop Brightness
|
|
@@ -2962,7 +2962,7 @@ const Fw = (e) => ({
|
|
|
2962
2962
|
closable: n = !1,
|
|
2963
2963
|
onClose: r
|
|
2964
2964
|
}) => {
|
|
2965
|
-
const a =
|
|
2965
|
+
const a = G(() => Fw({ size: i, stroke: o })[e], [e, i, o]);
|
|
2966
2966
|
return /* @__PURE__ */ W(
|
|
2967
2967
|
"div",
|
|
2968
2968
|
{
|
|
@@ -3048,10 +3048,10 @@ const Fw = (e) => ({
|
|
|
3048
3048
|
window.removeEventListener("resize", f), m && m.disconnect(), d.current && cancelAnimationFrame(d.current);
|
|
3049
3049
|
};
|
|
3050
3050
|
}, [e, h]);
|
|
3051
|
-
const g =
|
|
3051
|
+
const g = G(
|
|
3052
3052
|
() => typeof e == "string" ? e : l,
|
|
3053
3053
|
[l, e]
|
|
3054
|
-
), p =
|
|
3054
|
+
), p = G(() => i ? "" : r ? g : "", [g, i, r]);
|
|
3055
3055
|
return /* @__PURE__ */ W(bg, { ...o, children: [
|
|
3056
3056
|
/* @__PURE__ */ v(
|
|
3057
3057
|
yg,
|
|
@@ -3484,7 +3484,7 @@ const Gw = "flex", Bw = "pb-1 mt-2", Vw = {
|
|
|
3484
3484
|
isOpened: l,
|
|
3485
3485
|
onToggle: c
|
|
3486
3486
|
}) => {
|
|
3487
|
-
const [d, u] = A(s), [h, g] = A(!0), p =
|
|
3487
|
+
const [d, u] = A(s), [h, g] = A(!0), p = G(() => typeof l == "boolean", [l]), f = p ? l : h;
|
|
3488
3488
|
we(() => {
|
|
3489
3489
|
p && u(l ? s : La);
|
|
3490
3490
|
}, [p, l, s]);
|
|
@@ -4767,10 +4767,10 @@ function Wg(e, t) {
|
|
|
4767
4767
|
const s = [
|
|
4768
4768
|
...t || []
|
|
4769
4769
|
];
|
|
4770
|
-
return t == null && typeof e != "function" && s.push(e),
|
|
4770
|
+
return t == null && typeof e != "function" && s.push(e), G(() => typeof e == "function" ? e() : e, s);
|
|
4771
4771
|
}
|
|
4772
4772
|
function vb(e) {
|
|
4773
|
-
return
|
|
4773
|
+
return G(
|
|
4774
4774
|
() => e.hooks.dragSource(),
|
|
4775
4775
|
[
|
|
4776
4776
|
e
|
|
@@ -4778,7 +4778,7 @@ function vb(e) {
|
|
|
4778
4778
|
);
|
|
4779
4779
|
}
|
|
4780
4780
|
function wb(e) {
|
|
4781
|
-
return
|
|
4781
|
+
return G(
|
|
4782
4782
|
() => e.hooks.dragPreview(),
|
|
4783
4783
|
[
|
|
4784
4784
|
e
|
|
@@ -5144,7 +5144,7 @@ function lo() {
|
|
|
5144
5144
|
return Re(e != null, "Expected drag drop context"), e;
|
|
5145
5145
|
}
|
|
5146
5146
|
function Tb(e, t) {
|
|
5147
|
-
const s = lo(), i =
|
|
5147
|
+
const s = lo(), i = G(
|
|
5148
5148
|
() => new Db(s.getBackend()),
|
|
5149
5149
|
[
|
|
5150
5150
|
s
|
|
@@ -5160,7 +5160,7 @@ function Tb(e, t) {
|
|
|
5160
5160
|
}
|
|
5161
5161
|
function Mb() {
|
|
5162
5162
|
const e = lo();
|
|
5163
|
-
return
|
|
5163
|
+
return G(
|
|
5164
5164
|
() => new bb(e),
|
|
5165
5165
|
[
|
|
5166
5166
|
e
|
|
@@ -5190,7 +5190,7 @@ class Ib {
|
|
|
5190
5190
|
}
|
|
5191
5191
|
}
|
|
5192
5192
|
function Ab(e, t, s) {
|
|
5193
|
-
const i =
|
|
5193
|
+
const i = G(
|
|
5194
5194
|
() => new Ib(e, t, s),
|
|
5195
5195
|
[
|
|
5196
5196
|
t,
|
|
@@ -5204,7 +5204,7 @@ function Ab(e, t, s) {
|
|
|
5204
5204
|
]), i;
|
|
5205
5205
|
}
|
|
5206
5206
|
function kb(e) {
|
|
5207
|
-
return
|
|
5207
|
+
return G(() => {
|
|
5208
5208
|
const t = e.type;
|
|
5209
5209
|
return Re(t != null, "spec.type must be defined"), t;
|
|
5210
5210
|
}, [
|
|
@@ -5237,7 +5237,7 @@ function Ob(e, t) {
|
|
|
5237
5237
|
];
|
|
5238
5238
|
}
|
|
5239
5239
|
function Nb(e) {
|
|
5240
|
-
return
|
|
5240
|
+
return G(
|
|
5241
5241
|
() => e.hooks.dropTarget(),
|
|
5242
5242
|
[
|
|
5243
5243
|
e
|
|
@@ -5245,7 +5245,7 @@ function Nb(e) {
|
|
|
5245
5245
|
);
|
|
5246
5246
|
}
|
|
5247
5247
|
function Hb(e) {
|
|
5248
|
-
const t = lo(), s =
|
|
5248
|
+
const t = lo(), s = G(
|
|
5249
5249
|
() => new Pb(t.getBackend()),
|
|
5250
5250
|
[
|
|
5251
5251
|
t
|
|
@@ -5257,7 +5257,7 @@ function Hb(e) {
|
|
|
5257
5257
|
}
|
|
5258
5258
|
function Gb() {
|
|
5259
5259
|
const e = lo();
|
|
5260
|
-
return
|
|
5260
|
+
return G(
|
|
5261
5261
|
() => new Sb(e),
|
|
5262
5262
|
[
|
|
5263
5263
|
e
|
|
@@ -5266,7 +5266,7 @@ function Gb() {
|
|
|
5266
5266
|
}
|
|
5267
5267
|
function Bb(e) {
|
|
5268
5268
|
const { accept: t } = e;
|
|
5269
|
-
return
|
|
5269
|
+
return G(() => (Re(e.accept != null, "accept must be defined"), Array.isArray(t) ? t : [
|
|
5270
5270
|
t
|
|
5271
5271
|
]), [
|
|
5272
5272
|
t
|
|
@@ -5291,7 +5291,7 @@ class Vb {
|
|
|
5291
5291
|
}
|
|
5292
5292
|
}
|
|
5293
5293
|
function zb(e, t) {
|
|
5294
|
-
const s =
|
|
5294
|
+
const s = G(
|
|
5295
5295
|
() => new Vb(e, t),
|
|
5296
5296
|
[
|
|
5297
5297
|
t
|
|
@@ -5573,7 +5573,7 @@ var vr = /* @__PURE__ */ ((e) => (e.Left = "left", e.Right = "right", e))(vr ||
|
|
|
5573
5573
|
t(c, s);
|
|
5574
5574
|
}, [t, s]), a = T(function(c) {
|
|
5575
5575
|
t(c, s);
|
|
5576
|
-
}, [t, s]), l =
|
|
5576
|
+
}, [t, s]), l = G(function() {
|
|
5577
5577
|
return Ye(Ye({ position: "absolute", userSelect: "none" }, Xb[s]), o ?? {});
|
|
5578
5578
|
}, [o, s]);
|
|
5579
5579
|
return v("div", { className: n || void 0, style: l, onMouseDown: r, onTouchStart: a, children: i });
|
|
@@ -5907,8 +5907,8 @@ var vr = /* @__PURE__ */ ((e) => (e.Left = "left", e.Right = "right", e))(vr ||
|
|
|
5907
5907
|
var _ = S / this.window.innerWidth * 100;
|
|
5908
5908
|
S = "".concat(_, "vw");
|
|
5909
5909
|
} else if (p.endsWith("vh")) {
|
|
5910
|
-
var
|
|
5911
|
-
S = "".concat(
|
|
5910
|
+
var B = S / this.window.innerHeight * 100;
|
|
5911
|
+
S = "".concat(B, "vh");
|
|
5912
5912
|
}
|
|
5913
5913
|
}
|
|
5914
5914
|
if (f && typeof f == "string") {
|
|
@@ -5919,8 +5919,8 @@ var vr = /* @__PURE__ */ ((e) => (e.Left = "left", e.Right = "right", e))(vr ||
|
|
|
5919
5919
|
var _ = b / this.window.innerWidth * 100;
|
|
5920
5920
|
b = "".concat(_, "vw");
|
|
5921
5921
|
} else if (f.endsWith("vh")) {
|
|
5922
|
-
var
|
|
5923
|
-
b = "".concat(
|
|
5922
|
+
var B = b / this.window.innerHeight * 100;
|
|
5923
|
+
b = "".concat(B, "vh");
|
|
5924
5924
|
}
|
|
5925
5925
|
}
|
|
5926
5926
|
var se = {
|
|
@@ -5928,10 +5928,10 @@ var vr = /* @__PURE__ */ ((e) => (e.Left = "left", e.Right = "right", e))(vr ||
|
|
|
5928
5928
|
height: this.createSizeForCssProperty(b, "height")
|
|
5929
5929
|
};
|
|
5930
5930
|
this.flexDir === "row" ? se.flexBasis = se.width : this.flexDir === "column" && (se.flexBasis = se.height);
|
|
5931
|
-
var re = this.state.width !== se.width, N = this.state.height !== se.height, ne = this.state.flexBasis !== se.flexBasis,
|
|
5932
|
-
|
|
5931
|
+
var re = this.state.width !== se.width, N = this.state.height !== se.height, ne = this.state.flexBasis !== se.flexBasis, j = re || N || ne;
|
|
5932
|
+
j && Vv(function() {
|
|
5933
5933
|
i.setState(se);
|
|
5934
|
-
}), this.props.onResize &&
|
|
5934
|
+
}), this.props.onResize && j && this.props.onResize(s, h, this.resizable, P);
|
|
5935
5935
|
}
|
|
5936
5936
|
}, t.prototype.onMouseUp = function(s) {
|
|
5937
5937
|
var i, o, n = this.state, r = n.isResizing, a = n.direction;
|
|
@@ -6027,7 +6027,7 @@ const a0 = ({ side: e, className: t }) => {
|
|
|
6027
6027
|
u(!1);
|
|
6028
6028
|
const S = m.current?.resizable?.getBoundingClientRect(), y = S ? Math.round(S.width) : t;
|
|
6029
6029
|
p || g(y), n?.(y);
|
|
6030
|
-
}, [n, p, t]), b =
|
|
6030
|
+
}, [n, p, t]), b = G(() => {
|
|
6031
6031
|
const S = a === vr.Left, y = /* @__PURE__ */ v(
|
|
6032
6032
|
l0,
|
|
6033
6033
|
{
|
|
@@ -8375,42 +8375,42 @@ function Ut(e, t, s) {
|
|
|
8375
8375
|
M || !y.isPrimary() || (h?.syncColumnWithState(y, s, k), o?.syncColumnWithState(y, s, k, x), n?.syncColumnWithState(y, s, k, E));
|
|
8376
8376
|
}, w = (y, R, x) => {
|
|
8377
8377
|
const E = Vp(e, s), M = R.slice(), k = {}, F = {}, P = [], H = [], _ = [];
|
|
8378
|
-
let
|
|
8378
|
+
let B = 0;
|
|
8379
8379
|
const se = o?.columns.slice() ?? [], re = n?.columns.slice() ?? [];
|
|
8380
|
-
for (const
|
|
8381
|
-
const q =
|
|
8380
|
+
for (const j of y) {
|
|
8381
|
+
const q = j.colId;
|
|
8382
8382
|
if (q.startsWith(sa)) {
|
|
8383
|
-
P.push(
|
|
8383
|
+
P.push(j), _.push(j);
|
|
8384
8384
|
continue;
|
|
8385
8385
|
}
|
|
8386
8386
|
if (xs(q)) {
|
|
8387
|
-
H.push(
|
|
8387
|
+
H.push(j), _.push(j);
|
|
8388
8388
|
continue;
|
|
8389
8389
|
}
|
|
8390
8390
|
const J = x(q);
|
|
8391
|
-
J ? (C(J,
|
|
8391
|
+
J ? (C(J, j, k, F, !1), jt(M, J)) : (_.push(j), B += 1);
|
|
8392
8392
|
}
|
|
8393
|
-
const N = (
|
|
8393
|
+
const N = (j) => C(j, null, k, F, !1);
|
|
8394
8394
|
M.forEach(N), o?.sortColumns(Eu.bind(o, k, se)), n?.sortColumns(Eu.bind(n, F, re)), i.refreshCols(!1, s);
|
|
8395
|
-
const ne = (
|
|
8395
|
+
const ne = (j, q, X = []) => {
|
|
8396
8396
|
for (const J of q) {
|
|
8397
|
-
const Z =
|
|
8397
|
+
const Z = j(J.colId);
|
|
8398
8398
|
jt(X, Z), C(Z, J, null, null, !0);
|
|
8399
8399
|
}
|
|
8400
8400
|
X.forEach(N);
|
|
8401
8401
|
};
|
|
8402
8402
|
return ne(
|
|
8403
|
-
(
|
|
8403
|
+
(j) => r?.getColumn(j) ?? null,
|
|
8404
8404
|
P,
|
|
8405
8405
|
r?.getColumns()?.slice()
|
|
8406
8406
|
), ne(
|
|
8407
|
-
(
|
|
8407
|
+
(j) => a?.getColumn(j) ?? null,
|
|
8408
8408
|
H,
|
|
8409
8409
|
a?.getColumns()?.slice()
|
|
8410
8410
|
), YS(t, i, p), c.refresh(s), g.dispatchEvent({
|
|
8411
8411
|
type: "columnEverythingChanged",
|
|
8412
8412
|
source: s
|
|
8413
|
-
}), E(), { unmatchedAndAutoStates: _, unmatchedCount:
|
|
8413
|
+
}), E(), { unmatchedAndAutoStates: _, unmatchedCount: B };
|
|
8414
8414
|
};
|
|
8415
8415
|
l?.start();
|
|
8416
8416
|
let { unmatchedAndAutoStates: b, unmatchedCount: S } = w(
|
|
@@ -8456,8 +8456,8 @@ function Vp(e, t) {
|
|
|
8456
8456
|
if (zs(k, F))
|
|
8457
8457
|
return;
|
|
8458
8458
|
const H = new Set(x);
|
|
8459
|
-
for (const
|
|
8460
|
-
H.delete(
|
|
8459
|
+
for (const B of E)
|
|
8460
|
+
H.delete(B) || H.add(B);
|
|
8461
8461
|
const _ = [...H];
|
|
8462
8462
|
a.dispatchEvent({
|
|
8463
8463
|
type: R,
|
|
@@ -14082,8 +14082,8 @@ var rr = {
|
|
|
14082
14082
|
this.invalidateVerticalScroll();
|
|
14083
14083
|
do {
|
|
14084
14084
|
const { stickyTopHeight: p, stickyBottomHeight: f } = c, m = d.rowTop, C = d.rowHeight, w = r.getPixelOffset(), b = d.rowTop - w, S = b + d.rowHeight, y = this.getVScrollPosition(), R = a.divStretchOffset, x = y.top + R, E = y.bottom + R, M = E - x, k = a.getScrollPositionForPixel(b), F = a.getScrollPositionForPixel(S - M), P = Math.min((k + F) / 2, b), H = x + p > b, _ = E - f < S;
|
|
14085
|
-
let
|
|
14086
|
-
t === "top" ?
|
|
14085
|
+
let B = null;
|
|
14086
|
+
t === "top" ? B = k - p : t === "bottom" ? B = F + f : t === "middle" ? B = P : H ? B = k - p : _ && (F - k > M ? B = k - p : B = F + f), B !== null && (this.setVerticalScrollPosition(B), l.redraw({ afterScroll: !0 })), u = m !== d.rowTop || C !== d.rowHeight, h = p !== c.stickyTopHeight || f !== c.stickyBottomHeight, g++;
|
|
14087
14087
|
} while ((u || h) && g < 10);
|
|
14088
14088
|
if (this.animationFrameSvc?.flushAllFrames(), s < 10 && (d?.stub || !this.beans.rowAutoHeight?.areRowsMeasured())) {
|
|
14089
14089
|
const p = this.getVScrollPosition().top;
|
|
@@ -42789,15 +42789,15 @@ var sC = Ic((e, t) => {
|
|
|
42789
42789
|
return;
|
|
42790
42790
|
}
|
|
42791
42791
|
const N = {
|
|
42792
|
-
setInnerRenderer: (
|
|
42793
|
-
u(
|
|
42792
|
+
setInnerRenderer: (j, q) => {
|
|
42793
|
+
u(j), f(q);
|
|
42794
42794
|
},
|
|
42795
|
-
setChildCount: (
|
|
42796
|
-
toggleCss: (
|
|
42797
|
-
setContractedDisplayed: (
|
|
42798
|
-
setExpandedDisplayed: (
|
|
42799
|
-
setCheckboxVisible: (
|
|
42800
|
-
setCheckboxSpacing: (
|
|
42795
|
+
setChildCount: (j) => g(j),
|
|
42796
|
+
toggleCss: (j, q) => C((X) => X.setClass(j, q)),
|
|
42797
|
+
setContractedDisplayed: (j) => y((q) => q.setClass("ag-hidden", !j)),
|
|
42798
|
+
setExpandedDisplayed: (j) => b((q) => q.setClass("ag-hidden", !j)),
|
|
42799
|
+
setCheckboxVisible: (j) => x((q) => q.setClass("ag-invisible", !j)),
|
|
42800
|
+
setCheckboxSpacing: (j) => x((q) => q.setClass("ag-group-checkbox-spacing", j))
|
|
42801
42801
|
}, ne = s.createDynamicBean("groupCellRendererCtrl", !0);
|
|
42802
42802
|
ne && (c.current = i.createBean(ne), c.current.init(
|
|
42803
42803
|
N,
|
|
@@ -42808,10 +42808,10 @@ var sC = Ic((e, t) => {
|
|
|
42808
42808
|
sC,
|
|
42809
42809
|
e
|
|
42810
42810
|
));
|
|
42811
|
-
}, []), M =
|
|
42811
|
+
}, []), M = G(() => `ag-cell-wrapper ${m.toString()}`, [m]), k = G(() => `ag-group-expanded ${w.toString()}`, [w]), F = G(
|
|
42812
42812
|
() => `ag-group-contracted ${S.toString()}`,
|
|
42813
42813
|
[S]
|
|
42814
|
-
), P =
|
|
42814
|
+
), P = G(() => `ag-group-checkbox ${R.toString()}`, [R]), H = d?.componentFromFramework, _ = H ? d.componentClass : void 0, B = d == null && p != null, se = co(p);
|
|
42815
42815
|
return /* @__PURE__ */ $.createElement(
|
|
42816
42816
|
"span",
|
|
42817
42817
|
{
|
|
@@ -42822,7 +42822,7 @@ var sC = Ic((e, t) => {
|
|
|
42822
42822
|
/* @__PURE__ */ $.createElement("span", { className: k, ref: a }),
|
|
42823
42823
|
/* @__PURE__ */ $.createElement("span", { className: F, ref: l }),
|
|
42824
42824
|
/* @__PURE__ */ $.createElement("span", { className: P, ref: r }),
|
|
42825
|
-
/* @__PURE__ */ $.createElement("span", { className: "ag-group-value", ref: n },
|
|
42825
|
+
/* @__PURE__ */ $.createElement("span", { className: "ag-group-value", ref: n }, B ? se : H ? /* @__PURE__ */ $.createElement(_, { ...d.params }) : null),
|
|
42826
42826
|
/* @__PURE__ */ $.createElement("span", { className: "ag-group-child-count" }, h)
|
|
42827
42827
|
);
|
|
42828
42828
|
}), Hh = sC, Wd = jr({
|
|
@@ -43307,7 +43307,7 @@ var RA = 1e3, xA = class {
|
|
|
43307
43307
|
), we(() => {
|
|
43308
43308
|
e.setDragSource(l.current);
|
|
43309
43309
|
}, [i]);
|
|
43310
|
-
const p =
|
|
43310
|
+
const p = G(() => !!(i?.componentFromFramework && go(i.componentClass)), [i]), f = i?.componentFromFramework, m = i?.componentClass;
|
|
43311
43311
|
return /* @__PURE__ */ $.createElement("div", { ref: g, style: n, className: "ag-header-cell", role: "columnheader" }, /* @__PURE__ */ $.createElement("div", { ref: c, className: "ag-header-cell-resize", role: "presentation" }), /* @__PURE__ */ $.createElement("div", { ref: d, className: "ag-header-cell-comp-wrapper", role: "presentation" }, f ? p ? /* @__PURE__ */ $.createElement(m, { ...i.params }) : /* @__PURE__ */ $.createElement(m, { ...i.params, ref: u }) : null));
|
|
43312
43312
|
}, EA = gt(FA), DA = class {
|
|
43313
43313
|
constructor(e, t) {
|
|
@@ -43330,10 +43330,10 @@ var RA = 1e3, xA = class {
|
|
|
43330
43330
|
() => new Ht("ag-header-cell", "ag-floating-filter")
|
|
43331
43331
|
), [a, l] = A(() => new Ht()), [c, d] = A(
|
|
43332
43332
|
() => new Ht("ag-floating-filter-button", "ag-hidden")
|
|
43333
|
-
), [u, h] = A("false"), [g, p] = A(), [, f] = A(1), m = O(), C = O(null), w = O(null), b = O(null), S = O(null), y = O(), R = O(), x = (
|
|
43334
|
-
|
|
43335
|
-
}, E = T((
|
|
43336
|
-
if (C.current =
|
|
43333
|
+
), [u, h] = A("false"), [g, p] = A(), [, f] = A(1), m = O(), C = O(null), w = O(null), b = O(null), S = O(null), y = O(), R = O(), x = (j) => {
|
|
43334
|
+
j != null && y.current && y.current(j);
|
|
43335
|
+
}, E = T((j) => {
|
|
43336
|
+
if (C.current = j, !j || !e.isAlive() || t.isDestroyed()) {
|
|
43337
43337
|
m.current = t.destroyBean(m.current);
|
|
43338
43338
|
return;
|
|
43339
43339
|
}
|
|
@@ -43354,27 +43354,27 @@ var RA = 1e3, xA = class {
|
|
|
43354
43354
|
getFloatingFilterComp: () => R.current ? R.current : null,
|
|
43355
43355
|
setMenuIcon: (X) => S.current?.appendChild(X)
|
|
43356
43356
|
};
|
|
43357
|
-
e.setComp(q,
|
|
43357
|
+
e.setComp(q, j, S.current, w.current, m.current);
|
|
43358
43358
|
}, []);
|
|
43359
43359
|
_t(
|
|
43360
43360
|
() => mn(g, t, w.current, x),
|
|
43361
43361
|
[g]
|
|
43362
43362
|
);
|
|
43363
|
-
const M =
|
|
43363
|
+
const M = G(() => n.toString(), [n]), k = G(() => a.toString(), [a]), F = G(() => c.toString(), [c]), P = G(() => !!(g && g.componentFromFramework && go(g.componentClass)), [g]), H = G(() => s.get("reactiveCustomComponents"), []), _ = G(() => s.get("enableFilterHandlers"), []), [B, se] = A();
|
|
43364
43364
|
we(() => {
|
|
43365
43365
|
if (g?.componentFromFramework)
|
|
43366
43366
|
if (H) {
|
|
43367
|
-
const
|
|
43367
|
+
const j = _ ? DA : pA, q = new j(g.params, () => f((X) => X + 1));
|
|
43368
43368
|
x(q), se(q);
|
|
43369
43369
|
} else
|
|
43370
43370
|
_d();
|
|
43371
43371
|
}, [g]);
|
|
43372
|
-
const re =
|
|
43372
|
+
const re = B?.getProps(), N = g?.componentFromFramework, ne = g?.componentClass;
|
|
43373
43373
|
return /* @__PURE__ */ $.createElement("div", { ref: E, style: i, className: M, role: "gridcell" }, /* @__PURE__ */ $.createElement("div", { ref: w, className: k, role: "presentation" }, N ? H ? re && /* @__PURE__ */ $.createElement(
|
|
43374
43374
|
Wd.Provider,
|
|
43375
43375
|
{
|
|
43376
43376
|
value: {
|
|
43377
|
-
setMethods: (
|
|
43377
|
+
setMethods: (j) => B.setMethods(j)
|
|
43378
43378
|
}
|
|
43379
43379
|
},
|
|
43380
43380
|
/* @__PURE__ */ $.createElement(ne, { ...re })
|
|
@@ -43430,13 +43430,13 @@ var RA = 1e3, xA = class {
|
|
|
43430
43430
|
_t(() => mn(h, t, C.current), [h]), we(() => {
|
|
43431
43431
|
f.current && e.setDragSource(f.current);
|
|
43432
43432
|
}, [h]);
|
|
43433
|
-
const S =
|
|
43433
|
+
const S = G(() => !!(h?.componentFromFramework && go(h.componentClass)), [h]), y = G(() => "ag-header-group-cell " + o.toString(), [o]), R = G(
|
|
43434
43434
|
() => "ag-header-cell-resize " + r.toString(),
|
|
43435
43435
|
[r]
|
|
43436
43436
|
), x = h?.componentFromFramework, E = h?.componentClass;
|
|
43437
43437
|
return /* @__PURE__ */ $.createElement("div", { ref: b, style: s, className: y, role: "columnheader", "aria-expanded": d }, /* @__PURE__ */ $.createElement("div", { ref: C, className: "ag-header-cell-comp-wrapper", role: "presentation" }, x ? S ? /* @__PURE__ */ $.createElement(E, { ...h.params }) : /* @__PURE__ */ $.createElement(E, { ...h.params, ref: w }) : null), /* @__PURE__ */ $.createElement("div", { ref: m, "aria-hidden": l, className: R }));
|
|
43438
43438
|
}, IA = gt(MA), AA = ({ ctrl: e }) => {
|
|
43439
|
-
const { gos: t, context: s } = et(pt), { topOffset: i, rowHeight: o } =
|
|
43439
|
+
const { gos: t, context: s } = et(pt), { topOffset: i, rowHeight: o } = G(() => e.getTopAndHeight(), []), n = G(() => t.get("tabIndex"), []), [r, a] = A(() => e.getAriaRowIndex()), l = e.headerRowClass, [c, d] = A(() => o + "px"), [u, h] = A(() => i + "px"), g = O(null), [p, f] = A(() => e.getUpdatedHeaderCtrls()), m = O(), C = O(null), w = T((y) => {
|
|
43440
43440
|
if (C.current = y, !y || !e.isAlive() || s.isDestroyed()) {
|
|
43441
43441
|
m.current = s.destroyBean(m.current);
|
|
43442
43442
|
return;
|
|
@@ -43457,7 +43457,7 @@ var RA = 1e3, xA = class {
|
|
|
43457
43457
|
}
|
|
43458
43458
|
};
|
|
43459
43459
|
e.setComp(R, m.current, !1);
|
|
43460
|
-
}, []), b =
|
|
43460
|
+
}, []), b = G(
|
|
43461
43461
|
() => ({
|
|
43462
43462
|
height: c,
|
|
43463
43463
|
top: u
|
|
@@ -43522,7 +43522,7 @@ var RA = 1e3, xA = class {
|
|
|
43522
43522
|
setHeightAndMinHeight: (h) => i(h)
|
|
43523
43523
|
};
|
|
43524
43524
|
r.current.setComp(u, d, d);
|
|
43525
|
-
}, []), l =
|
|
43525
|
+
}, []), l = G(() => "ag-header " + e.toString(), [e]), c = G(
|
|
43526
43526
|
() => ({
|
|
43527
43527
|
height: s,
|
|
43528
43528
|
minHeight: s
|
|
@@ -43688,7 +43688,7 @@ var RA = 1e3, xA = class {
|
|
|
43688
43688
|
cellCtrl: e,
|
|
43689
43689
|
parent: t
|
|
43690
43690
|
}) => {
|
|
43691
|
-
const s = O(), i =
|
|
43691
|
+
const s = O(), i = G(() => {
|
|
43692
43692
|
const { loadingComp: o } = e.getDeferLoadingCellRenderer();
|
|
43693
43693
|
return o ? {
|
|
43694
43694
|
value: void 0,
|
|
@@ -43711,9 +43711,9 @@ var RA = 1e3, xA = class {
|
|
|
43711
43711
|
instanceId: r
|
|
43712
43712
|
} = e, a = O(), [l, c] = A(
|
|
43713
43713
|
() => e.isCellRenderer() ? void 0 : { compDetails: void 0, value: e.getValueToDisplay(), force: !1 }
|
|
43714
|
-
), [d, u] = A(), [h, g] = A(1), [p, f] = A(), [m, C] = A(!1), [w, b] = A(!1), [S, y] = A(!1), [R, x] = A(), E =
|
|
43715
|
-
N.current = be,
|
|
43716
|
-
}, []), X = l != null && (m || S || w) && (d == null || !!d.popup), J = E || X, Z =
|
|
43714
|
+
), [d, u] = A(), [h, g] = A(1), [p, f] = A(), [m, C] = A(!1), [w, b] = A(!1), [S, y] = A(!1), [R, x] = A(), E = G(() => e.isForceWrapper(), [e]), M = G(() => e.getCellAriaRole(), [e]), k = O(null), F = O(null), P = O(null), H = O(), _ = O(), B = O(), se = O([]), re = O(), N = O(), [ne, j] = A(0), q = T((be) => {
|
|
43715
|
+
N.current = be, j((De) => De + 1);
|
|
43716
|
+
}, []), X = l != null && (m || S || w) && (d == null || !!d.popup), J = E || X, Z = G(() => e.getCellValueClass(), [e]), ie = T(
|
|
43717
43717
|
(be) => {
|
|
43718
43718
|
if (_.current = be, be) {
|
|
43719
43719
|
const De = be.isCancelBeforeStart && be.isCancelBeforeStart();
|
|
@@ -43723,8 +43723,8 @@ var RA = 1e3, xA = class {
|
|
|
43723
43723
|
}
|
|
43724
43724
|
},
|
|
43725
43725
|
[e]
|
|
43726
|
-
),
|
|
43727
|
-
|
|
43726
|
+
), V = O();
|
|
43727
|
+
V.current || (V.current = new un(() => k.current)), nC(l, J, N.current, ne, H, k);
|
|
43728
43728
|
const D = O();
|
|
43729
43729
|
_t(() => {
|
|
43730
43730
|
const be = D.current, De = l;
|
|
@@ -43743,7 +43743,7 @@ var RA = 1e3, xA = class {
|
|
|
43743
43743
|
if (!ge)
|
|
43744
43744
|
return;
|
|
43745
43745
|
const Se = ge.getGui();
|
|
43746
|
-
ie(ge), U || ((E ?
|
|
43746
|
+
ie(ge), U || ((E ? B : k).current?.appendChild(Se), ge.afterGuiAttached?.()), x(ge);
|
|
43747
43747
|
}), () => {
|
|
43748
43748
|
ye.then((ge) => {
|
|
43749
43749
|
const Se = ge.getGui();
|
|
@@ -43751,9 +43751,9 @@ var RA = 1e3, xA = class {
|
|
|
43751
43751
|
});
|
|
43752
43752
|
};
|
|
43753
43753
|
}, [d]);
|
|
43754
|
-
const
|
|
43754
|
+
const K = T(
|
|
43755
43755
|
(be) => {
|
|
43756
|
-
if (
|
|
43756
|
+
if (B.current = be, !be || o.isDestroyed() || !e.isAlive()) {
|
|
43757
43757
|
const ye = se.current;
|
|
43758
43758
|
se.current = [];
|
|
43759
43759
|
for (const ge of ye)
|
|
@@ -43777,7 +43777,7 @@ var RA = 1e3, xA = class {
|
|
|
43777
43777
|
}
|
|
43778
43778
|
a.current = o.createBean(new uo());
|
|
43779
43779
|
const U = {
|
|
43780
|
-
toggleCss: (ge, Se) =>
|
|
43780
|
+
toggleCss: (ge, Se) => V.current.toggleCss(ge, Se),
|
|
43781
43781
|
setUserStyles: (ge) => f(ge),
|
|
43782
43782
|
getFocusableElement: () => k.current,
|
|
43783
43783
|
setIncludeSelection: (ge) => C(ge),
|
|
@@ -43785,7 +43785,7 @@ var RA = 1e3, xA = class {
|
|
|
43785
43785
|
setIncludeDndSource: (ge) => y(ge),
|
|
43786
43786
|
getCellEditor: () => _.current ?? null,
|
|
43787
43787
|
getCellRenderer: () => P.current ?? H.current,
|
|
43788
|
-
getParentOfValue: () => N.current ??
|
|
43788
|
+
getParentOfValue: () => N.current ?? B.current ?? k.current,
|
|
43789
43789
|
setRenderDetails: (ge, Se, Qe) => {
|
|
43790
43790
|
const yt = () => {
|
|
43791
43791
|
c(($e) => $e?.compDetails !== ge || $e?.value !== Se || $e?.force !== Qe ? {
|
|
@@ -43825,10 +43825,10 @@ var RA = 1e3, xA = class {
|
|
|
43825
43825
|
refreshEditStyles: (ge, Se) => {
|
|
43826
43826
|
if (!k.current)
|
|
43827
43827
|
return;
|
|
43828
|
-
const { current: Qe } =
|
|
43828
|
+
const { current: Qe } = V;
|
|
43829
43829
|
Qe.toggleCss("ag-cell-value", !J), Qe.toggleCss("ag-cell-inline-editing", !!ge && !Se), Qe.toggleCss("ag-cell-popup-editing", !!ge && !!Se), Qe.toggleCss("ag-cell-not-inline-editing", !ge || !!Se);
|
|
43830
43830
|
}
|
|
43831
|
-
}, ye =
|
|
43831
|
+
}, ye = B.current || void 0;
|
|
43832
43832
|
e.setComp(
|
|
43833
43833
|
U,
|
|
43834
43834
|
De,
|
|
@@ -43842,11 +43842,11 @@ var RA = 1e3, xA = class {
|
|
|
43842
43842
|
k.current = be, de();
|
|
43843
43843
|
}, []), Ce = T((be) => {
|
|
43844
43844
|
F.current = be, de();
|
|
43845
|
-
}, []), Fe =
|
|
43845
|
+
}, []), Fe = G(() => !!(l?.compDetails?.componentFromFramework && go(l.compDetails.componentClass)), [l]);
|
|
43846
43846
|
_t(() => {
|
|
43847
43847
|
if (!k.current)
|
|
43848
43848
|
return;
|
|
43849
|
-
const { current: be } =
|
|
43849
|
+
const { current: be } = V;
|
|
43850
43850
|
be.toggleCss("ag-cell-value", !J), be.toggleCss("ag-cell-inline-editing", !!d && !d.popup), be.toggleCss("ag-cell-popup-editing", !!d && !!d.popup), be.toggleCss("ag-cell-not-inline-editing", !d || !!d.popup);
|
|
43851
43851
|
});
|
|
43852
43852
|
const Ee = () => {
|
|
@@ -43860,7 +43860,7 @@ var RA = 1e3, xA = class {
|
|
|
43860
43860
|
}, Ae = () => {
|
|
43861
43861
|
const be = () => l == null ? null : J ? /* @__PURE__ */ $.createElement("span", { role: "presentation", id: `cell-${r}`, className: Z, ref: q }, Ee()) : Ee(), De = (U) => WA(U, ie, k.current, e, R);
|
|
43862
43862
|
return d != null ? d.popup ? /* @__PURE__ */ $.createElement($.Fragment, null, be(), De(d)) : De(d) : be();
|
|
43863
|
-
}, ct = () => /* @__PURE__ */ $.createElement("div", { ref: oe, style: p, role: M, "col-id": n }, J ? /* @__PURE__ */ $.createElement("div", { className: "ag-cell-wrapper", role: "presentation", ref:
|
|
43863
|
+
}, ct = () => /* @__PURE__ */ $.createElement("div", { ref: oe, style: p, role: M, "col-id": n }, J ? /* @__PURE__ */ $.createElement("div", { className: "ag-cell-wrapper", role: "presentation", ref: K }, Ae()) : Ae());
|
|
43864
43864
|
return e.isCellSpanning() ? /* @__PURE__ */ $.createElement("div", { ref: Ce, className: "ag-spanned-cell-wrapper", role: "presentation" }, ct()) : ct();
|
|
43865
43865
|
}, jA = gt($A), KA = ({ rowCtrl: e, containerType: t }) => {
|
|
43866
43866
|
const { context: s, gos: i, editSvc: o } = et(pt), n = et(Jm) === "default", r = O(), a = O(e.getDomOrder()), l = e.isFullWidth(), c = e.rowNode.displayed, [d, u] = A(
|
|
@@ -43869,24 +43869,24 @@ var RA = 1e3, xA = class {
|
|
|
43869
43869
|
() => c ? e.getInitialRowTop(t) : void 0
|
|
43870
43870
|
), [M, k] = A(
|
|
43871
43871
|
() => c ? e.getInitialTransform(t) : void 0
|
|
43872
|
-
), F = O(null), P = O(), H = O(), _ = O(!1), [
|
|
43872
|
+
), F = O(null), P = O(), H = O(), _ = O(!1), [B, se] = A(0);
|
|
43873
43873
|
we(() => {
|
|
43874
|
-
if (_.current || !y ||
|
|
43874
|
+
if (_.current || !y || B > 10)
|
|
43875
43875
|
return;
|
|
43876
43876
|
const oe = F.current?.firstChild;
|
|
43877
43877
|
oe ? (e.setupDetailRowAutoHeight(oe), _.current = !0) : se((Ce) => Ce + 1);
|
|
43878
|
-
}, [y,
|
|
43878
|
+
}, [y, B]);
|
|
43879
43879
|
const re = O();
|
|
43880
43880
|
re.current || (re.current = new un(() => F.current));
|
|
43881
43881
|
const N = O(() => {
|
|
43882
43882
|
}), ne = T((oe) => (N.current = oe, () => {
|
|
43883
43883
|
N.current = () => {
|
|
43884
43884
|
};
|
|
43885
|
-
}), []),
|
|
43885
|
+
}), []), j = nA(
|
|
43886
43886
|
ne,
|
|
43887
43887
|
() => w.current,
|
|
43888
43888
|
[]
|
|
43889
|
-
), q = n ?
|
|
43889
|
+
), q = n ? j : b, X = T((oe) => {
|
|
43890
43890
|
if (F.current = oe, r.current = oe ? s.createBean(new uo()) : s.destroyBean(r.current), !oe) {
|
|
43891
43891
|
e.unsetComp(t);
|
|
43892
43892
|
return;
|
|
@@ -43931,14 +43931,14 @@ var RA = 1e3, xA = class {
|
|
|
43931
43931
|
() => mn(y, s, F.current, P),
|
|
43932
43932
|
[y]
|
|
43933
43933
|
);
|
|
43934
|
-
const J =
|
|
43934
|
+
const J = G(() => {
|
|
43935
43935
|
const oe = { top: x, transform: M };
|
|
43936
43936
|
return Object.assign(oe, m), oe;
|
|
43937
|
-
}, [x, M, m]), Z = l && y?.componentFromFramework, ie = !l && q != null,
|
|
43937
|
+
}, [x, M, m]), Z = l && y?.componentFromFramework, ie = !l && q != null, V = G(() => !!(y?.componentFromFramework && go(y.componentClass)), [y]), D = O(!1);
|
|
43938
43938
|
we(() => {
|
|
43939
|
-
D.current =
|
|
43940
|
-
}, [
|
|
43941
|
-
const
|
|
43939
|
+
D.current = V && !!y && !!i.get("reactiveCustomComponents");
|
|
43940
|
+
}, [V, y]);
|
|
43941
|
+
const K = () => q?.map((oe) => /* @__PURE__ */ $.createElement(
|
|
43942
43942
|
jA,
|
|
43943
43943
|
{
|
|
43944
43944
|
cellCtrl: oe,
|
|
@@ -43948,7 +43948,7 @@ var RA = 1e3, xA = class {
|
|
|
43948
43948
|
}
|
|
43949
43949
|
)), de = () => {
|
|
43950
43950
|
const oe = y.componentClass;
|
|
43951
|
-
return
|
|
43951
|
+
return V ? /* @__PURE__ */ $.createElement(oe, { ...y.params }) : /* @__PURE__ */ $.createElement(oe, { ...y.params, ref: P });
|
|
43952
43952
|
};
|
|
43953
43953
|
return /* @__PURE__ */ $.createElement(
|
|
43954
43954
|
"div",
|
|
@@ -43960,17 +43960,17 @@ var RA = 1e3, xA = class {
|
|
|
43960
43960
|
"row-id": h,
|
|
43961
43961
|
"row-business-key": p
|
|
43962
43962
|
},
|
|
43963
|
-
ie ?
|
|
43963
|
+
ie ? K() : Z ? de() : null
|
|
43964
43964
|
);
|
|
43965
43965
|
}, zh = gt(KA), qA = ({ name: e }) => {
|
|
43966
|
-
const { context: t, gos: s } = et(pt), i =
|
|
43966
|
+
const { context: t, gos: s } = et(pt), i = G(() => gn(e), [e]), o = O(null), n = O(null), r = O(null), a = O([]), l = O([]), [c, d] = A(() => []), u = !!s.get("enableCellSpan") && !!i.getSpannedRowCtrls, h = O([]), g = O([]), [p, f] = A(() => []), m = O(!1), C = O(), w = G(() => It("ag-viewport", xf(e)), [e]), b = G(() => It(lr(e)), [e]), S = G(() => It("ag-spanning-container", L2(e)), [e]), y = i.type === "center" || u, R = y ? o : n;
|
|
43967
43967
|
qs(" AG Row Container " + e + " ", R);
|
|
43968
43968
|
const x = T(() => {
|
|
43969
|
-
const
|
|
43970
|
-
return
|
|
43969
|
+
const B = !y || o.current != null, se = n.current != null, re = !u || r.current != null;
|
|
43970
|
+
return B && se && re;
|
|
43971
43971
|
}, []), E = T(() => o.current == null && n.current == null && r.current == null, []), M = T(() => {
|
|
43972
43972
|
if (E() && (C.current = t.destroyBean(C.current)), !t.isDestroyed() && x()) {
|
|
43973
|
-
const
|
|
43973
|
+
const B = (N) => {
|
|
43974
43974
|
const ne = Wr(
|
|
43975
43975
|
l.current,
|
|
43976
43976
|
a.current,
|
|
@@ -43992,15 +43992,15 @@ var RA = 1e3, xA = class {
|
|
|
43992
43992
|
o.current && (o.current.style.height = N);
|
|
43993
43993
|
},
|
|
43994
43994
|
setRowCtrls: ({ rowCtrls: N, useFlushSync: ne }) => {
|
|
43995
|
-
const
|
|
43996
|
-
a.current = N,
|
|
43995
|
+
const j = !!ne && a.current.length > 0 && N.length > 0;
|
|
43996
|
+
a.current = N, B(j);
|
|
43997
43997
|
},
|
|
43998
43998
|
setSpannedRowCtrls: (N, ne) => {
|
|
43999
|
-
const
|
|
44000
|
-
h.current = N, se(
|
|
43999
|
+
const j = !!ne && h.current.length > 0 && N.length > 0;
|
|
44000
|
+
h.current = N, se(j);
|
|
44001
44001
|
},
|
|
44002
44002
|
setDomOrder: (N) => {
|
|
44003
|
-
m.current != N && (m.current = N,
|
|
44003
|
+
m.current != N && (m.current = N, B(!1));
|
|
44004
44004
|
},
|
|
44005
44005
|
setContainerWidth: (N) => {
|
|
44006
44006
|
n.current && (n.current.style.width = N);
|
|
@@ -44017,18 +44017,18 @@ var RA = 1e3, xA = class {
|
|
|
44017
44017
|
);
|
|
44018
44018
|
}
|
|
44019
44019
|
}, [x, E]), k = T(
|
|
44020
|
-
(
|
|
44021
|
-
n.current =
|
|
44020
|
+
(B) => {
|
|
44021
|
+
n.current = B, M();
|
|
44022
44022
|
},
|
|
44023
44023
|
[M]
|
|
44024
44024
|
), F = T(
|
|
44025
|
-
(
|
|
44026
|
-
r.current =
|
|
44025
|
+
(B) => {
|
|
44026
|
+
r.current = B, M();
|
|
44027
44027
|
},
|
|
44028
44028
|
[M]
|
|
44029
44029
|
), P = T(
|
|
44030
|
-
(
|
|
44031
|
-
o.current =
|
|
44030
|
+
(B) => {
|
|
44031
|
+
o.current = B, M();
|
|
44032
44032
|
},
|
|
44033
44033
|
[M]
|
|
44034
44034
|
), H = () => /* @__PURE__ */ $.createElement(
|
|
@@ -44038,27 +44038,27 @@ var RA = 1e3, xA = class {
|
|
|
44038
44038
|
ref: k,
|
|
44039
44039
|
role: y ? "presentation" : "rowgroup"
|
|
44040
44040
|
},
|
|
44041
|
-
c.map((
|
|
44041
|
+
c.map((B) => /* @__PURE__ */ $.createElement(zh, { rowCtrl: B, containerType: i.type, key: B.instanceId }))
|
|
44042
44042
|
);
|
|
44043
44043
|
if (!y)
|
|
44044
44044
|
return H();
|
|
44045
|
-
const _ = () => /* @__PURE__ */ $.createElement("div", { className: S, ref: F, role: "presentation" }, p.map((
|
|
44045
|
+
const _ = () => /* @__PURE__ */ $.createElement("div", { className: S, ref: F, role: "presentation" }, p.map((B) => /* @__PURE__ */ $.createElement(zh, { rowCtrl: B, containerType: i.type, key: B.instanceId })));
|
|
44046
44046
|
return /* @__PURE__ */ $.createElement("div", { className: w, ref: P, role: "rowgroup" }, H(), u ? _() : null);
|
|
44047
44047
|
}, YA = gt(qA), ZA = () => {
|
|
44048
|
-
const e = et(pt), { context: t, overlays: s } = e, [i, o] = A(""), [n, r] = A(0), [a, l] = A(0), [c, d] = A("0px"), [u, h] = A("0px"), [g, p] = A("100%"), [f, m] = A("0px"), [C, w] = A("0px"), [b, S] = A("100%"), [y, R] = A(!0), [x, E] = A(!0), [M, k] = A(null), [F, P] = A(""), [H, _] = A(null), [
|
|
44048
|
+
const e = et(pt), { context: t, overlays: s } = e, [i, o] = A(""), [n, r] = A(0), [a, l] = A(0), [c, d] = A("0px"), [u, h] = A("0px"), [g, p] = A("100%"), [f, m] = A("0px"), [C, w] = A("0px"), [b, S] = A("100%"), [y, R] = A(!0), [x, E] = A(!0), [M, k] = A(null), [F, P] = A(""), [H, _] = A(null), [B, se] = A("ag-layout-normal"), re = O();
|
|
44049
44049
|
re.current || (re.current = new un(() => N.current));
|
|
44050
|
-
const N = O(null), ne = O(null),
|
|
44051
|
-
qs(" AG Grid Body ", N), qs(" AG Pinned Top ", ne), qs(" AG Sticky Top ",
|
|
44050
|
+
const N = O(null), ne = O(null), j = O(null), q = O(null), X = O(null), J = O(null), Z = O(null), ie = O([]), V = O([]);
|
|
44051
|
+
qs(" AG Grid Body ", N), qs(" AG Pinned Top ", ne), qs(" AG Sticky Top ", j), qs(" AG Middle ", J), qs(" AG Pinned Bottom ", Z);
|
|
44052
44052
|
const D = T((Se) => {
|
|
44053
44053
|
if (N.current = Se, !Se || t.isDestroyed()) {
|
|
44054
44054
|
ie.current = t.destroyBeans(ie.current);
|
|
44055
|
-
for (const Oe of
|
|
44055
|
+
for (const Oe of V.current)
|
|
44056
44056
|
Oe();
|
|
44057
|
-
|
|
44057
|
+
V.current = [];
|
|
44058
44058
|
return;
|
|
44059
44059
|
}
|
|
44060
44060
|
const Qe = (Oe, ot) => {
|
|
44061
|
-
Oe.appendChild(ot),
|
|
44061
|
+
Oe.appendChild(ot), V.current.push(() => ot.remove());
|
|
44062
44062
|
}, yt = (Oe) => {
|
|
44063
44063
|
const ot = t.createBean(new Oe());
|
|
44064
44064
|
return ie.current.push(ot), ot;
|
|
@@ -44094,7 +44094,7 @@ var RA = 1e3, xA = class {
|
|
|
44094
44094
|
registerBodyViewportResizeListener: (Oe) => {
|
|
44095
44095
|
if (J.current) {
|
|
44096
44096
|
const ot = ys(e, J.current, Oe);
|
|
44097
|
-
|
|
44097
|
+
V.current.push(() => ot());
|
|
44098
44098
|
}
|
|
44099
44099
|
},
|
|
44100
44100
|
setStickyBottomHeight: m,
|
|
@@ -44108,49 +44108,49 @@ var RA = 1e3, xA = class {
|
|
|
44108
44108
|
J.current,
|
|
44109
44109
|
ne.current,
|
|
44110
44110
|
Z.current,
|
|
44111
|
-
|
|
44111
|
+
j.current,
|
|
44112
44112
|
q.current
|
|
44113
44113
|
);
|
|
44114
|
-
}, []),
|
|
44114
|
+
}, []), K = G(() => It("ag-root", "ag-unselectable", B), [B]), de = G(
|
|
44115
44115
|
() => It(
|
|
44116
44116
|
"ag-body-viewport",
|
|
44117
44117
|
i,
|
|
44118
|
-
|
|
44118
|
+
B,
|
|
44119
44119
|
M,
|
|
44120
44120
|
H
|
|
44121
44121
|
),
|
|
44122
|
-
[i,
|
|
44123
|
-
), oe =
|
|
44122
|
+
[i, B, M, H]
|
|
44123
|
+
), oe = G(() => It("ag-body", B), [B]), Ce = G(
|
|
44124
44124
|
() => It("ag-floating-top", y ? "ag-invisible" : null, H),
|
|
44125
44125
|
[H, y]
|
|
44126
|
-
), Fe =
|
|
44126
|
+
), Fe = G(() => It("ag-sticky-top", H), [H]), Ee = G(
|
|
44127
44127
|
() => It("ag-sticky-bottom", f === "0px" ? "ag-invisible" : null, H),
|
|
44128
44128
|
[H, f]
|
|
44129
|
-
), Ae =
|
|
44129
|
+
), Ae = G(
|
|
44130
44130
|
() => It("ag-floating-bottom", x ? "ag-invisible" : null, H),
|
|
44131
44131
|
[H, x]
|
|
44132
|
-
), ct =
|
|
44132
|
+
), ct = G(
|
|
44133
44133
|
() => ({
|
|
44134
44134
|
height: n,
|
|
44135
44135
|
minHeight: n,
|
|
44136
44136
|
overflowY: F
|
|
44137
44137
|
}),
|
|
44138
44138
|
[n, F]
|
|
44139
|
-
), be =
|
|
44139
|
+
), be = G(
|
|
44140
44140
|
() => ({
|
|
44141
44141
|
height: c,
|
|
44142
44142
|
top: u,
|
|
44143
44143
|
width: g
|
|
44144
44144
|
}),
|
|
44145
44145
|
[c, u, g]
|
|
44146
|
-
), De =
|
|
44146
|
+
), De = G(
|
|
44147
44147
|
() => ({
|
|
44148
44148
|
height: f,
|
|
44149
44149
|
bottom: C,
|
|
44150
44150
|
width: b
|
|
44151
44151
|
}),
|
|
44152
44152
|
[f, C, b]
|
|
44153
|
-
), U =
|
|
44153
|
+
), U = G(
|
|
44154
44154
|
() => ({
|
|
44155
44155
|
height: a,
|
|
44156
44156
|
minHeight: a,
|
|
@@ -44163,7 +44163,7 @@ var RA = 1e3, xA = class {
|
|
|
44163
44163
|
className: yt,
|
|
44164
44164
|
style: $e
|
|
44165
44165
|
}) => /* @__PURE__ */ $.createElement("div", { ref: Se, className: yt, role: "presentation", style: $e }, Qe.map(ye));
|
|
44166
|
-
return /* @__PURE__ */ $.createElement("div", { ref: D, className:
|
|
44166
|
+
return /* @__PURE__ */ $.createElement("div", { ref: D, className: K }, /* @__PURE__ */ $.createElement(NA, null), ge({
|
|
44167
44167
|
section: ne,
|
|
44168
44168
|
className: Ce,
|
|
44169
44169
|
style: ct,
|
|
@@ -44173,7 +44173,7 @@ var RA = 1e3, xA = class {
|
|
|
44173
44173
|
className: de,
|
|
44174
44174
|
children: ["left", "center", "right", "fullWidth"]
|
|
44175
44175
|
})), ge({
|
|
44176
|
-
section:
|
|
44176
|
+
section: j,
|
|
44177
44177
|
className: Fe,
|
|
44178
44178
|
style: be,
|
|
44179
44179
|
children: ["stickyTopLeft", "stickyTopCenter", "stickyTopRight", "stickyTopFullWidth"]
|
|
@@ -44259,20 +44259,20 @@ var RA = 1e3, xA = class {
|
|
|
44259
44259
|
},
|
|
44260
44260
|
// do nothing, as framework users destroy grid by removing the comp
|
|
44261
44261
|
setRtlClass: s,
|
|
44262
|
-
forceFocusOutOfContainer: (
|
|
44263
|
-
if (!
|
|
44264
|
-
b.current.forceFocusOutOfContainer(
|
|
44262
|
+
forceFocusOutOfContainer: (B) => {
|
|
44263
|
+
if (!B && b.current?.isDisplayed()) {
|
|
44264
|
+
b.current.forceFocusOutOfContainer(B);
|
|
44265
44265
|
return;
|
|
44266
44266
|
}
|
|
44267
|
-
f.current?.forceFocusOutOfContainer(
|
|
44267
|
+
f.current?.forceFocusOutOfContainer(B);
|
|
44268
44268
|
},
|
|
44269
44269
|
updateLayoutClasses: o,
|
|
44270
44270
|
getFocusableContainers: () => {
|
|
44271
|
-
const
|
|
44272
|
-
se &&
|
|
44271
|
+
const B = [], se = p.current?.querySelector(".ag-root");
|
|
44272
|
+
se && B.push({ getGui: () => se });
|
|
44273
44273
|
for (const re of S.current)
|
|
44274
|
-
re.isDisplayed() &&
|
|
44275
|
-
return
|
|
44274
|
+
re.isDisplayed() && B.push(re);
|
|
44275
|
+
return B;
|
|
44276
44276
|
},
|
|
44277
44277
|
setCursor: r,
|
|
44278
44278
|
setUserSelect: l
|
|
@@ -44284,41 +44284,41 @@ var RA = 1e3, xA = class {
|
|
|
44284
44284
|
if (!u || !P || !m || !H || e.isDestroyed())
|
|
44285
44285
|
return;
|
|
44286
44286
|
const _ = [], {
|
|
44287
|
-
watermarkSelector:
|
|
44287
|
+
watermarkSelector: B,
|
|
44288
44288
|
paginationSelector: se,
|
|
44289
44289
|
sideBarSelector: re,
|
|
44290
44290
|
statusBarSelector: N,
|
|
44291
44291
|
gridHeaderDropZonesSelector: ne
|
|
44292
|
-
} = P.getOptionalSelectors(),
|
|
44292
|
+
} = P.getOptionalSelectors(), j = [];
|
|
44293
44293
|
if (ne) {
|
|
44294
44294
|
const X = e.createBean(new ne.component()), J = X.getGui();
|
|
44295
|
-
H.insertAdjacentElement("afterbegin", J),
|
|
44295
|
+
H.insertAdjacentElement("afterbegin", J), j.push(J), _.push(X);
|
|
44296
44296
|
}
|
|
44297
44297
|
if (re) {
|
|
44298
44298
|
const X = e.createBean(new re.component()), J = X.getGui(), Z = m.querySelector(".ag-tab-guard-bottom");
|
|
44299
|
-
Z && (Z.insertAdjacentElement("beforebegin", J),
|
|
44299
|
+
Z && (Z.insertAdjacentElement("beforebegin", J), j.push(J)), _.push(X), S.current.push(X);
|
|
44300
44300
|
}
|
|
44301
44301
|
const q = (X) => {
|
|
44302
44302
|
const J = e.createBean(new X()), Z = J.getGui();
|
|
44303
|
-
return H.insertAdjacentElement("beforeend", Z),
|
|
44303
|
+
return H.insertAdjacentElement("beforeend", Z), j.push(Z), _.push(J), J;
|
|
44304
44304
|
};
|
|
44305
44305
|
if (N && q(N.component), se) {
|
|
44306
44306
|
const X = q(se.component);
|
|
44307
44307
|
b.current = X, S.current.push(X);
|
|
44308
44308
|
}
|
|
44309
|
-
return
|
|
44309
|
+
return B && q(B.component), () => {
|
|
44310
44310
|
e.destroyBeans(_);
|
|
44311
|
-
for (const X of
|
|
44311
|
+
for (const X of j)
|
|
44312
44312
|
X.remove();
|
|
44313
44313
|
};
|
|
44314
44314
|
}, [u, m, e]);
|
|
44315
|
-
const x =
|
|
44315
|
+
const x = G(
|
|
44316
44316
|
() => It("ag-root-wrapper", t, i),
|
|
44317
44317
|
[t, i]
|
|
44318
|
-
), E =
|
|
44318
|
+
), E = G(
|
|
44319
44319
|
() => It("ag-root-wrapper-body", "ag-focus-managed", i),
|
|
44320
44320
|
[i]
|
|
44321
|
-
), M =
|
|
44321
|
+
), M = G(
|
|
44322
44322
|
() => ({
|
|
44323
44323
|
userSelect: a ?? "",
|
|
44324
44324
|
WebkitUserSelect: a ?? "",
|
|
@@ -44459,7 +44459,7 @@ var RA = 1e3, xA = class {
|
|
|
44459
44459
|
), o.current.push(() => {
|
|
44460
44460
|
t.current = void 0;
|
|
44461
44461
|
}), t.current && (l.current = t.current.getGridId());
|
|
44462
|
-
}, []), p =
|
|
44462
|
+
}, []), p = G(() => ({
|
|
44463
44463
|
height: "100%",
|
|
44464
44464
|
...e.containerStyle || {}
|
|
44465
44465
|
}), [e.containerStyle]), f = T((C) => {
|
|
@@ -44540,10 +44540,10 @@ var ak = class extends P5 {
|
|
|
44540
44540
|
return new iC(e, this.parent, t, o);
|
|
44541
44541
|
}
|
|
44542
44542
|
}, lk = Ic((e, t) => {
|
|
44543
|
-
const s = et(pt), { registry: i, context: o, gos: n, rowModel: r } = s, [a, l] = A(() => new Ht()), [c, d] = A(() => new Ht()), [u, h] = A(), [g, p] = A(), f = O(), m = O(null), C = O(), w =
|
|
44543
|
+
const s = et(pt), { registry: i, context: o, gos: n, rowModel: r } = s, [a, l] = A(() => new Ht()), [c, d] = A(() => new Ht()), [u, h] = A(), [g, p] = A(), f = O(), m = O(null), C = O(), w = G(
|
|
44544
44544
|
() => oS(e.api.getGridId(), u?.rowModelType ?? "clientSide"),
|
|
44545
44545
|
[e]
|
|
44546
|
-
), b =
|
|
44546
|
+
), b = G(() => a.toString() + " ag-details-row", [a]), S = G(() => c.toString() + " ag-details-grid", [c]);
|
|
44547
44547
|
t && Kr(t, () => ({
|
|
44548
44548
|
refresh() {
|
|
44549
44549
|
return f.current?.refresh() ?? !1;
|
|
@@ -44700,21 +44700,21 @@ const hk = ee(
|
|
|
44700
44700
|
rg({ padding: Io }),
|
|
44701
44701
|
_C({
|
|
44702
44702
|
padding: Io,
|
|
44703
|
-
apply({ availableWidth: D, availableHeight:
|
|
44703
|
+
apply({ availableWidth: D, availableHeight: K, elements: de }) {
|
|
44704
44704
|
const oe = de.floating, Ce = F(de.reference);
|
|
44705
44705
|
oe.style.setProperty(
|
|
44706
44706
|
"--fui-available-height",
|
|
44707
|
-
`${Math.floor(
|
|
44707
|
+
`${Math.floor(K)}px`
|
|
44708
44708
|
), oe.style.setProperty(
|
|
44709
44709
|
"--reference-width",
|
|
44710
44710
|
C ? `${Math.round(Ce)}px` : "0px"
|
|
44711
44711
|
), C ? oe.style.minWidth = `${Math.round(Ce)}px` : oe.style.removeProperty("min-width"), oe.style.maxWidth = `${Math.floor(D)}px`;
|
|
44712
|
-
const Fe = Math.floor(
|
|
44712
|
+
const Fe = Math.floor(K);
|
|
44713
44713
|
oe.style.maxHeight = `${w ? Math.min(Fe, w) : Fe}px`;
|
|
44714
44714
|
}
|
|
44715
44715
|
})
|
|
44716
44716
|
]
|
|
44717
|
-
}),
|
|
44717
|
+
}), B = UC(_, {
|
|
44718
44718
|
enabled: i.includes(Lt.Click) && !n
|
|
44719
44719
|
}), se = lg(_, {
|
|
44720
44720
|
enabled: i.includes(Lt.Hover) && !n,
|
|
@@ -44726,26 +44726,26 @@ const hk = ee(
|
|
|
44726
44726
|
referencePress: !1,
|
|
44727
44727
|
outsidePress: (D) => {
|
|
44728
44728
|
if (!p) return !1;
|
|
44729
|
-
const
|
|
44730
|
-
return !(g?.current &&
|
|
44729
|
+
const K = D.target;
|
|
44730
|
+
return !(g?.current && K instanceof Node && g.current.contains(K));
|
|
44731
44731
|
}
|
|
44732
|
-
}), N = Ec(_, { role: "menu" }), { getReferenceProps: ne, getFloatingProps:
|
|
44733
|
-
|
|
44732
|
+
}), N = Ec(_, { role: "menu" }), { getReferenceProps: ne, getFloatingProps: j } = Dc([
|
|
44733
|
+
B,
|
|
44734
44734
|
se,
|
|
44735
44735
|
re,
|
|
44736
44736
|
N
|
|
44737
44737
|
]), q = T(
|
|
44738
|
-
(D,
|
|
44738
|
+
(D, K) => {
|
|
44739
44739
|
P.setPositionReference({
|
|
44740
44740
|
getBoundingClientRect: () => ({
|
|
44741
44741
|
width: 0,
|
|
44742
44742
|
height: 0,
|
|
44743
44743
|
x: D,
|
|
44744
|
-
y:
|
|
44745
|
-
top:
|
|
44744
|
+
y: K,
|
|
44745
|
+
top: K,
|
|
44746
44746
|
left: D,
|
|
44747
44747
|
right: D,
|
|
44748
|
-
bottom:
|
|
44748
|
+
bottom: K
|
|
44749
44749
|
})
|
|
44750
44750
|
});
|
|
44751
44751
|
},
|
|
@@ -44771,11 +44771,11 @@ const hk = ee(
|
|
|
44771
44771
|
n && R && E(!1);
|
|
44772
44772
|
}, [n, R, E]);
|
|
44773
44773
|
const Z = T(
|
|
44774
|
-
(D) => (
|
|
44775
|
-
D.disabled || (D.onClick?.({ key: D.key, domEvent:
|
|
44774
|
+
(D) => (K) => {
|
|
44775
|
+
D.disabled || (D.onClick?.({ key: D.key, domEvent: K }), t?.onClick?.({ key: D.key, domEvent: K }), E(!1));
|
|
44776
44776
|
},
|
|
44777
44777
|
[t, E]
|
|
44778
|
-
), ie =
|
|
44778
|
+
), ie = G(() => s ? s() : t ? /* @__PURE__ */ W(Ke, { children: [
|
|
44779
44779
|
t.header && /* @__PURE__ */ v(Ke, { children: typeof t.header == "function" ? t.header() : t.header }),
|
|
44780
44780
|
/* @__PURE__ */ v("div", { role: "none", className: "py-1", children: t.items.map((D) => D.type === vc.Divider ? /* @__PURE__ */ v(
|
|
44781
44781
|
"div",
|
|
@@ -44835,22 +44835,22 @@ const hk = ee(
|
|
|
44835
44835
|
D.key
|
|
44836
44836
|
)) }),
|
|
44837
44837
|
t.footer && /* @__PURE__ */ v(Ke, { children: typeof t.footer == "function" ? t.footer() : t.footer })
|
|
44838
|
-
] }) : null, [Z, t, s]),
|
|
44838
|
+
] }) : null, [Z, t, s]), V = ne({
|
|
44839
44839
|
onContextMenu: X,
|
|
44840
44840
|
onMouseDown: J
|
|
44841
44841
|
});
|
|
44842
44842
|
return we(() => {
|
|
44843
44843
|
if (!R) return;
|
|
44844
44844
|
const D = P.reference.current;
|
|
44845
|
-
let
|
|
44846
|
-
if (D instanceof Element ?
|
|
44845
|
+
let K = null;
|
|
44846
|
+
if (D instanceof Element ? K = D : x.current instanceof Element && (K = x.current), !K) return;
|
|
44847
44847
|
const de = new IntersectionObserver(
|
|
44848
44848
|
([oe]) => {
|
|
44849
44849
|
oe.isIntersecting || E(!1);
|
|
44850
44850
|
},
|
|
44851
44851
|
{ root: null, threshold: 0 }
|
|
44852
44852
|
);
|
|
44853
|
-
return de.observe(
|
|
44853
|
+
return de.observe(K), () => de.disconnect();
|
|
44854
44854
|
}, [R, P.reference, E]), /* @__PURE__ */ W(Ke, { children: [
|
|
44855
44855
|
/* @__PURE__ */ v(
|
|
44856
44856
|
"span",
|
|
@@ -44864,7 +44864,7 @@ const hk = ee(
|
|
|
44864
44864
|
"aria-haspopup": "menu",
|
|
44865
44865
|
"aria-expanded": R,
|
|
44866
44866
|
"aria-controls": M,
|
|
44867
|
-
...
|
|
44867
|
+
...V,
|
|
44868
44868
|
children: e
|
|
44869
44869
|
}
|
|
44870
44870
|
),
|
|
@@ -44886,7 +44886,7 @@ const hk = ee(
|
|
|
44886
44886
|
!C && "w-max",
|
|
44887
44887
|
h
|
|
44888
44888
|
),
|
|
44889
|
-
...
|
|
44889
|
+
...j(),
|
|
44890
44890
|
children: [
|
|
44891
44891
|
c && /* @__PURE__ */ v("div", { className: "flex items-center justify-between px-2 pt-2", children: /* @__PURE__ */ v(
|
|
44892
44892
|
cC,
|
|
@@ -44937,7 +44937,7 @@ const hk = ee(
|
|
|
44937
44937
|
rowData: o = [],
|
|
44938
44938
|
getRowId: n
|
|
44939
44939
|
}) => {
|
|
44940
|
-
const [r, a] = A(/* @__PURE__ */ new Map()), l = t ?? r, c =
|
|
44940
|
+
const [r, a] = A(/* @__PURE__ */ new Map()), l = t ?? r, c = G(
|
|
44941
44941
|
() => new Set(l.keys()),
|
|
44942
44942
|
[l]
|
|
44943
44943
|
), d = e !== void 0 || t !== void 0;
|
|
@@ -44965,7 +44965,7 @@ const hk = ee(
|
|
|
44965
44965
|
s,
|
|
44966
44966
|
i
|
|
44967
44967
|
]
|
|
44968
|
-
), h =
|
|
44968
|
+
), h = G(() => {
|
|
44969
44969
|
if (!o.length) return "unchecked";
|
|
44970
44970
|
const p = o.every(
|
|
44971
44971
|
(m) => c.has(n(m))
|
|
@@ -45037,7 +45037,7 @@ const dC = ({
|
|
|
45037
45037
|
onSelectionChangeWithMap: h,
|
|
45038
45038
|
rowData: t,
|
|
45039
45039
|
getRowId: g
|
|
45040
|
-
}),
|
|
45040
|
+
}), B = G(
|
|
45041
45041
|
() => ({
|
|
45042
45042
|
...bl,
|
|
45043
45043
|
oddRowBackgroundColor: p ? bl.oddRowBackgroundColor : bl.backgroundColor,
|
|
@@ -45049,8 +45049,8 @@ const dC = ({
|
|
|
45049
45049
|
}, []), re = T(
|
|
45050
45050
|
(D) => {
|
|
45051
45051
|
if (D.data) {
|
|
45052
|
-
const
|
|
45053
|
-
return F.has(
|
|
45052
|
+
const K = g(D.data);
|
|
45053
|
+
return F.has(K) ? "ag-row-selected" : "";
|
|
45054
45054
|
}
|
|
45055
45055
|
},
|
|
45056
45056
|
[F, g]
|
|
@@ -45070,12 +45070,12 @@ const dC = ({
|
|
|
45070
45070
|
) }), [H, _, d]), ne = T(
|
|
45071
45071
|
(D) => {
|
|
45072
45072
|
if (D.data) {
|
|
45073
|
-
const
|
|
45073
|
+
const K = i?.(D.data) ?? [], de = D.value == null ? "" : String(D.value);
|
|
45074
45074
|
return /* @__PURE__ */ v(
|
|
45075
45075
|
Et,
|
|
45076
45076
|
{
|
|
45077
45077
|
trigger: [Lt.ContextMenu],
|
|
45078
|
-
menu: { items:
|
|
45078
|
+
menu: { items: K },
|
|
45079
45079
|
anchorToMouse: !0,
|
|
45080
45080
|
matchReferenceWidth: !0,
|
|
45081
45081
|
className: "w-full",
|
|
@@ -45091,10 +45091,10 @@ const dC = ({
|
|
|
45091
45091
|
}
|
|
45092
45092
|
},
|
|
45093
45093
|
[i]
|
|
45094
|
-
),
|
|
45094
|
+
), j = T(
|
|
45095
45095
|
(D) => {
|
|
45096
45096
|
if (!D.data) return null;
|
|
45097
|
-
const
|
|
45097
|
+
const K = g(D.data), de = F.has(K), oe = `row-select-${K}`;
|
|
45098
45098
|
return /* @__PURE__ */ v("div", { className: "flex items-center justify-center size-full", children: /* @__PURE__ */ v(
|
|
45099
45099
|
fr,
|
|
45100
45100
|
{
|
|
@@ -45109,16 +45109,16 @@ const dC = ({
|
|
|
45109
45109
|
D.data && P(D.data, !!Ce);
|
|
45110
45110
|
}
|
|
45111
45111
|
},
|
|
45112
|
-
`${
|
|
45112
|
+
`${K}-${de}`
|
|
45113
45113
|
) });
|
|
45114
45114
|
},
|
|
45115
45115
|
[F, g, P, d]
|
|
45116
45116
|
), q = T(
|
|
45117
45117
|
(D) => {
|
|
45118
|
-
const
|
|
45118
|
+
const K = typeof a == "function" ? a(D) : !!a;
|
|
45119
45119
|
if (!D.cellRenderer)
|
|
45120
45120
|
return { ...D, cellRenderer: ne };
|
|
45121
|
-
if (!
|
|
45121
|
+
if (!K)
|
|
45122
45122
|
return D;
|
|
45123
45123
|
const de = D.cellRenderer;
|
|
45124
45124
|
return { ...D, cellRenderer: (Ce) => {
|
|
@@ -45138,7 +45138,7 @@ const dC = ({
|
|
|
45138
45138
|
} };
|
|
45139
45139
|
},
|
|
45140
45140
|
[i, ne, a]
|
|
45141
|
-
), X =
|
|
45141
|
+
), X = G(
|
|
45142
45142
|
() => ({
|
|
45143
45143
|
colId: "__select",
|
|
45144
45144
|
headerName: "",
|
|
@@ -45152,14 +45152,14 @@ const dC = ({
|
|
|
45152
45152
|
floatingFilter: !1,
|
|
45153
45153
|
suppressMenu: !0,
|
|
45154
45154
|
borderless: !0,
|
|
45155
|
-
cellRenderer:
|
|
45155
|
+
cellRenderer: j,
|
|
45156
45156
|
headerComponent: N
|
|
45157
45157
|
}),
|
|
45158
|
-
[
|
|
45159
|
-
), J =
|
|
45158
|
+
[j, N]
|
|
45159
|
+
), J = G(() => {
|
|
45160
45160
|
const D = (e ?? []).map(q);
|
|
45161
45161
|
return r ? [X, ...D] : D;
|
|
45162
|
-
}, [e, X, r, q]), Z =
|
|
45162
|
+
}, [e, X, r, q]), Z = G(
|
|
45163
45163
|
() => ({
|
|
45164
45164
|
minWidth: 150,
|
|
45165
45165
|
resizable: !0,
|
|
@@ -45174,16 +45174,16 @@ const dC = ({
|
|
|
45174
45174
|
}),
|
|
45175
45175
|
[f]
|
|
45176
45176
|
), ie = (D) => {
|
|
45177
|
-
const
|
|
45177
|
+
const K = J.map((de) => ({
|
|
45178
45178
|
...de,
|
|
45179
45179
|
sort: void 0
|
|
45180
45180
|
}));
|
|
45181
|
-
D.api.updateGridOptions({ columnDefs:
|
|
45181
|
+
D.api.updateGridOptions({ columnDefs: K, rowData: t }), D.api.sizeColumnsToFit(), M(D.api), s?.onGridReady?.(D);
|
|
45182
45182
|
};
|
|
45183
45183
|
we(() => {
|
|
45184
45184
|
E && E.redrawRows();
|
|
45185
45185
|
}, [E, F]);
|
|
45186
|
-
const
|
|
45186
|
+
const V = T(
|
|
45187
45187
|
() => /* @__PURE__ */ v(
|
|
45188
45188
|
Vc,
|
|
45189
45189
|
{
|
|
@@ -45229,7 +45229,7 @@ const dC = ({
|
|
|
45229
45229
|
rowHeight: R,
|
|
45230
45230
|
cellSelection: !1,
|
|
45231
45231
|
getRowClass: re,
|
|
45232
|
-
theme: e3.withPart(kD).withParams({ ...
|
|
45232
|
+
theme: e3.withPart(kD).withParams({ ...B }),
|
|
45233
45233
|
autoSizeStrategy: { type: "fitGridWidth" },
|
|
45234
45234
|
columnDefs: J,
|
|
45235
45235
|
defaultColDef: Z,
|
|
@@ -45238,7 +45238,7 @@ const dC = ({
|
|
|
45238
45238
|
loading: b,
|
|
45239
45239
|
suppressCellFocus: !0,
|
|
45240
45240
|
suppressDragLeaveHidesColumns: !0,
|
|
45241
|
-
noRowsOverlayComponent:
|
|
45241
|
+
noRowsOverlayComponent: V,
|
|
45242
45242
|
rowData: t,
|
|
45243
45243
|
...s
|
|
45244
45244
|
}
|
|
@@ -45313,7 +45313,7 @@ const _h = () => typeof window < "u" && window.innerWidth < 640, Uh = () => {
|
|
|
45313
45313
|
smallScreenContainerClassName: n,
|
|
45314
45314
|
smallScreenDropdownItemClassName: r
|
|
45315
45315
|
}) => {
|
|
45316
|
-
const [a, l] = A(!1), [c, d] = A(!1), [u, h] = A(!1), g = Sk(), p = g === Qs.Mobile || o === _r.Tablet && g === Qs.Tablet, f = i === wc.Horizontal, m = O(null), C = O(null), w = O(null), b = e.find((R) => R.id === t), S =
|
|
45316
|
+
const [a, l] = A(!1), [c, d] = A(!1), [u, h] = A(!1), g = Sk(), p = g === Qs.Mobile || o === _r.Tablet && g === Qs.Tablet, f = i === wc.Horizontal, m = O(null), C = O(null), w = O(null), b = e.find((R) => R.id === t), S = G(
|
|
45317
45317
|
() => ee(
|
|
45318
45318
|
"flex gap-2",
|
|
45319
45319
|
f ? "flex-row flex-nowrap overflow-x-auto" : "flex-col flex-wrap w-full"
|
|
@@ -45506,7 +45506,7 @@ const _h = () => typeof window < "u" && window.innerWidth < 640, Uh = () => {
|
|
|
45506
45506
|
children: o,
|
|
45507
45507
|
titleClassName: n
|
|
45508
45508
|
}) => {
|
|
45509
|
-
const r =
|
|
45509
|
+
const r = G(() => e?.length ? e : YC.toArray(o).filter(Mc).map((c) => {
|
|
45510
45510
|
const d = c.props, { titleClassName: u, isLast: h, separator: g, ...p } = d;
|
|
45511
45511
|
return p;
|
|
45512
45512
|
}), [e, o]), a = T(
|
|
@@ -45515,7 +45515,7 @@ const _h = () => typeof window < "u" && window.innerWidth < 640, Uh = () => {
|
|
|
45515
45515
|
u.onClick ? u.onClick(c.domEvent) : u.href && (window.location.href = u.href);
|
|
45516
45516
|
},
|
|
45517
45517
|
[r]
|
|
45518
|
-
), l =
|
|
45518
|
+
), l = G(() => {
|
|
45519
45519
|
if (r.length === 0) return null;
|
|
45520
45520
|
if (r.length <= 3)
|
|
45521
45521
|
return r.map((p, f) => /* @__PURE__ */ Ao(
|
|
@@ -45704,23 +45704,23 @@ const _h = () => typeof window < "u" && window.innerWidth < 640, Uh = () => {
|
|
|
45704
45704
|
we(() => {
|
|
45705
45705
|
const _ = M.current;
|
|
45706
45706
|
if (!_) return;
|
|
45707
|
-
const
|
|
45707
|
+
const B = (se) => {
|
|
45708
45708
|
se.preventDefault();
|
|
45709
45709
|
};
|
|
45710
|
-
return _.addEventListener("wheel",
|
|
45711
|
-
_.removeEventListener("wheel",
|
|
45710
|
+
return _.addEventListener("wheel", B, { passive: !1 }), () => {
|
|
45711
|
+
_.removeEventListener("wheel", B);
|
|
45712
45712
|
};
|
|
45713
45713
|
}, []);
|
|
45714
45714
|
const F = c === "number" || p !== void 0 || f !== void 0, P = (_) => {
|
|
45715
45715
|
Lk(_, c, p, f);
|
|
45716
45716
|
}, H = (_) => {
|
|
45717
|
-
const
|
|
45718
|
-
if (F &&
|
|
45719
|
-
const se = parseFloat(
|
|
45720
|
-
if (isNaN(se) &&
|
|
45717
|
+
const B = _.currentTarget.value;
|
|
45718
|
+
if (F && B !== "") {
|
|
45719
|
+
const se = parseFloat(B);
|
|
45720
|
+
if (isNaN(se) && B !== "-" && B !== "." || !isNaN(se) && (p !== void 0 && se < p || f !== void 0 && se > f))
|
|
45721
45721
|
return;
|
|
45722
45722
|
}
|
|
45723
|
-
g?.(
|
|
45723
|
+
g?.(B || void 0);
|
|
45724
45724
|
};
|
|
45725
45725
|
return /* @__PURE__ */ W(
|
|
45726
45726
|
"div",
|
|
@@ -46672,16 +46672,16 @@ const r8 = ({
|
|
|
46672
46672
|
dismissRef: M,
|
|
46673
46673
|
onFooterClick: k
|
|
46674
46674
|
}) => {
|
|
46675
|
-
const F = Ac(), [P, H] = A(!1), [_,
|
|
46675
|
+
const F = Ac(), [P, H] = A(!1), [_, B] = A(
|
|
46676
46676
|
E && l || ""
|
|
46677
|
-
), se = O(null), re = i !== void 0, [N, ne] = A(o),
|
|
46677
|
+
), se = O(null), re = i !== void 0, [N, ne] = A(o), j = re ? i : N, q = G(() => t ? Array.isArray(j) ? j : [] : typeof j == "string" ? [j] : [], [j, t]), X = G(() => {
|
|
46678
46678
|
const U = _.trim().toLowerCase();
|
|
46679
46679
|
return U ? e.filter((ye) => ye.label.toLowerCase().includes(U)) : e;
|
|
46680
46680
|
}, [e, _]);
|
|
46681
46681
|
we(() => {
|
|
46682
|
-
!P && !E &&
|
|
46682
|
+
!P && !E && B("");
|
|
46683
46683
|
}, [E, P]), we(() => {
|
|
46684
|
-
E &&
|
|
46684
|
+
E && B(l || "");
|
|
46685
46685
|
}, [l, E]);
|
|
46686
46686
|
const J = T(
|
|
46687
46687
|
(U) => {
|
|
@@ -46704,22 +46704,22 @@ const r8 = ({
|
|
|
46704
46704
|
J(ge);
|
|
46705
46705
|
},
|
|
46706
46706
|
[t, q, J]
|
|
46707
|
-
),
|
|
46707
|
+
), V = G(
|
|
46708
46708
|
() => X.filter((U) => !U.disabled),
|
|
46709
46709
|
[X]
|
|
46710
|
-
), D =
|
|
46711
|
-
() =>
|
|
46712
|
-
[
|
|
46713
|
-
),
|
|
46710
|
+
), D = G(
|
|
46711
|
+
() => V.filter((U) => q.includes(U.value)).length,
|
|
46712
|
+
[V, q]
|
|
46713
|
+
), K = (U) => {
|
|
46714
46714
|
E && !t && !U && Z(_), H(U);
|
|
46715
|
-
}, de =
|
|
46716
|
-
if (!(!t ||
|
|
46715
|
+
}, de = V.length > 0 && D === V.length, oe = D > 0 && !de, Ce = () => {
|
|
46716
|
+
if (!(!t || V.length === 0))
|
|
46717
46717
|
if (de) {
|
|
46718
|
-
const U = new Set(
|
|
46718
|
+
const U = new Set(V.map((ge) => ge.value)), ye = q.filter((ge) => !U.has(ge));
|
|
46719
46719
|
J(ye);
|
|
46720
46720
|
} else {
|
|
46721
46721
|
const U = new Set(q);
|
|
46722
|
-
|
|
46722
|
+
V.forEach((ye) => U.add(ye.value)), J(Array.from(U));
|
|
46723
46723
|
}
|
|
46724
46724
|
}, Fe = q.length > 0;
|
|
46725
46725
|
we(() => {
|
|
@@ -46731,7 +46731,7 @@ const r8 = ({
|
|
|
46731
46731
|
U.setSelectionRange?.(ye, ye);
|
|
46732
46732
|
});
|
|
46733
46733
|
}, [P, E, t, C]);
|
|
46734
|
-
const Ee = !t && Fe ? q[0] : void 0, Ae =
|
|
46734
|
+
const Ee = !t && Fe ? q[0] : void 0, Ae = G(
|
|
46735
46735
|
() => Ee ? e.find((U) => U.value === Ee) : void 0,
|
|
46736
46736
|
[e, Ee]
|
|
46737
46737
|
), ct = T(() => !t || q.length === 0 ? null : /* @__PURE__ */ v(
|
|
@@ -46766,7 +46766,7 @@ const r8 = ({
|
|
|
46766
46766
|
}
|
|
46767
46767
|
}));
|
|
46768
46768
|
const De = () => {
|
|
46769
|
-
|
|
46769
|
+
B(
|
|
46770
46770
|
q.length === 1 ? Ae?.label ?? _ : ""
|
|
46771
46771
|
);
|
|
46772
46772
|
};
|
|
@@ -46774,7 +46774,7 @@ const r8 = ({
|
|
|
46774
46774
|
Et,
|
|
46775
46775
|
{
|
|
46776
46776
|
open: P,
|
|
46777
|
-
onOpenChange:
|
|
46777
|
+
onOpenChange: K,
|
|
46778
46778
|
disabled: C,
|
|
46779
46779
|
closable: b,
|
|
46780
46780
|
onClose: R,
|
|
@@ -46795,7 +46795,7 @@ const r8 = ({
|
|
|
46795
46795
|
CC,
|
|
46796
46796
|
{
|
|
46797
46797
|
placeholder: u,
|
|
46798
|
-
onChange:
|
|
46798
|
+
onChange: B,
|
|
46799
46799
|
value: _,
|
|
46800
46800
|
elementId: `search-${s || F}`
|
|
46801
46801
|
}
|
|
@@ -46812,7 +46812,7 @@ const r8 = ({
|
|
|
46812
46812
|
}
|
|
46813
46813
|
)
|
|
46814
46814
|
] }),
|
|
46815
|
-
t && h &&
|
|
46815
|
+
t && h && V.length > 0 && /* @__PURE__ */ v("div", { className: ee(yl, "mt-2"), children: /* @__PURE__ */ v(
|
|
46816
46816
|
fr,
|
|
46817
46817
|
{
|
|
46818
46818
|
id: `${s || F}-selectAll`,
|
|
@@ -46935,7 +46935,7 @@ const r8 = ({
|
|
|
46935
46935
|
type: "text",
|
|
46936
46936
|
placeholder: u ?? c,
|
|
46937
46937
|
value: _ || "",
|
|
46938
|
-
onChange: (U) =>
|
|
46938
|
+
onChange: (U) => B(U.currentTarget.value),
|
|
46939
46939
|
onFocus: () => !C && H(!0),
|
|
46940
46940
|
onMouseDown: (U) => {
|
|
46941
46941
|
De(), U.stopPropagation();
|
|
@@ -47603,7 +47603,7 @@ const b8 = function(t, s, i) {
|
|
|
47603
47603
|
), C = T(
|
|
47604
47604
|
(F) => n && F?.length > n,
|
|
47605
47605
|
[n]
|
|
47606
|
-
), w =
|
|
47606
|
+
), w = G(() => p || C(h), [p, h, C]), b = () => {
|
|
47607
47607
|
g([]), f(!1);
|
|
47608
47608
|
};
|
|
47609
47609
|
we(() => {
|
|
@@ -47823,7 +47823,7 @@ const b8 = function(t, s, i) {
|
|
|
47823
47823
|
)
|
|
47824
47824
|
] });
|
|
47825
47825
|
}, x8 = /* @__PURE__ */ v(qr, { size: 16 }), F8 = /* @__PURE__ */ v(Av, { size: 16 }), Xh = (e) => {
|
|
47826
|
-
const [t, s] = A(!1), i =
|
|
47826
|
+
const [t, s] = A(!1), i = G(() => t ? F8 : x8, [t]);
|
|
47827
47827
|
return /* @__PURE__ */ v("div", { children: /* @__PURE__ */ v(
|
|
47828
47828
|
Et,
|
|
47829
47829
|
{
|
|
@@ -48072,10 +48072,10 @@ const $r = ({
|
|
|
48072
48072
|
}
|
|
48073
48073
|
);
|
|
48074
48074
|
}, EC = (e) => {
|
|
48075
|
-
const [t, s] = A(e?.expandedPaths ?? /* @__PURE__ */ new Set()), i =
|
|
48075
|
+
const [t, s] = A(e?.expandedPaths ?? /* @__PURE__ */ new Set()), i = G(
|
|
48076
48076
|
() => !!e?.onExpandedPathsChange,
|
|
48077
48077
|
[e?.onExpandedPathsChange]
|
|
48078
|
-
), o =
|
|
48078
|
+
), o = G(
|
|
48079
48079
|
() => i ? e?.expandedPaths ?? /* @__PURE__ */ new Set() : t,
|
|
48080
48080
|
[i, e?.expandedPaths, t]
|
|
48081
48081
|
), n = T(
|
|
@@ -48143,7 +48143,7 @@ const $r = ({
|
|
|
48143
48143
|
const { path: k, nodeType: F, name: P, items: H } = M, _ = F === Ve.FOLDER;
|
|
48144
48144
|
if (!c && FC(M)) return null;
|
|
48145
48145
|
if (!_ && !t) return;
|
|
48146
|
-
const
|
|
48146
|
+
const B = Array.isArray(H) && H.length > 0 && H.some((ie) => ie.nodeType === Ve.FOLDER || t), se = b.has(k), re = n === k, N = i.has(k), ne = d === k, j = o.has(k), q = h && u && k === h && _, X = C && ((ie) => C(ie, M)), J = re ? "bg-accent-primary-alpha border-l-2 border-l-accent-primary rounded" : "border-l-2 border-l-transparent", Z = q ? [] : p?.(M) ?? [];
|
|
48147
48147
|
return /* @__PURE__ */ v("div", { className: "cursor-pointer text-secondary", children: /* @__PURE__ */ W("div", { className: "flex flex-col w-full", children: [
|
|
48148
48148
|
/* @__PURE__ */ v(
|
|
48149
48149
|
Et,
|
|
@@ -48181,7 +48181,7 @@ const $r = ({
|
|
|
48181
48181
|
className: ee(
|
|
48182
48182
|
"flex-shrink-0",
|
|
48183
48183
|
se && "rotate-90 transition-all",
|
|
48184
|
-
|
|
48184
|
+
j && !B && "text-transparent"
|
|
48185
48185
|
)
|
|
48186
48186
|
}
|
|
48187
48187
|
),
|
|
@@ -48257,7 +48257,7 @@ const $r = ({
|
|
|
48257
48257
|
searchContainerClassName: C,
|
|
48258
48258
|
isCompactView: w = !1
|
|
48259
48259
|
}) => {
|
|
48260
|
-
const b =
|
|
48260
|
+
const b = G(() => {
|
|
48261
48261
|
if (!i) return;
|
|
48262
48262
|
const E = i.split("/").map((k) => k.trim()).filter(Boolean);
|
|
48263
48263
|
if (!E.length) return [{ title: "/" }];
|
|
@@ -48387,7 +48387,7 @@ const DC = () => {
|
|
|
48387
48387
|
showHiddenFilesLabel: d = "Show hidden files",
|
|
48388
48388
|
hideHiddenFilesLabel: u = "Hide hidden files"
|
|
48389
48389
|
}) => {
|
|
48390
|
-
const h = DC(), g =
|
|
48390
|
+
const h = DC(), g = G(() => [
|
|
48391
48391
|
{
|
|
48392
48392
|
key: "hidden-files-switch",
|
|
48393
48393
|
label: i ? u : d,
|
|
@@ -48785,21 +48785,21 @@ const sL = ({ getSelectionLabel: e, onClearSelection: t, actions: s, selectedCou
|
|
|
48785
48785
|
handleDecideForEach: F
|
|
48786
48786
|
} = PC({
|
|
48787
48787
|
getDestinationFiles: e,
|
|
48788
|
-
onResolve: (ie,
|
|
48789
|
-
m?.type === Je.Copy ? (t?.(ie,
|
|
48788
|
+
onResolve: (ie, V) => {
|
|
48789
|
+
m?.type === Je.Copy ? (t?.(ie, V), i?.()) : m?.type === Je.Move && m.sourceFolder && (s?.(
|
|
48790
48790
|
ie,
|
|
48791
48791
|
m.sourceFolder,
|
|
48792
|
-
|
|
48792
|
+
V
|
|
48793
48793
|
), o?.());
|
|
48794
48794
|
}
|
|
48795
48795
|
}), P = T(() => {
|
|
48796
48796
|
u([]), g([]), C(null);
|
|
48797
48797
|
}, []), H = T(
|
|
48798
48798
|
(ie) => {
|
|
48799
|
-
const
|
|
48799
|
+
const V = y(ie, d, {
|
|
48800
48800
|
type: Je.Copy
|
|
48801
48801
|
});
|
|
48802
|
-
if (C({ type: Je.Copy }), !
|
|
48802
|
+
if (C({ type: Je.Copy }), !V.hasConflicts) {
|
|
48803
48803
|
const D = R(
|
|
48804
48804
|
ie,
|
|
48805
48805
|
d,
|
|
@@ -48817,18 +48817,18 @@ const sL = ({ getSelectionLabel: e, onClearSelection: t, actions: s, selectedCou
|
|
|
48817
48817
|
P
|
|
48818
48818
|
]
|
|
48819
48819
|
), _ = T(
|
|
48820
|
-
(ie,
|
|
48821
|
-
const D =
|
|
48820
|
+
(ie, V) => {
|
|
48821
|
+
const D = V || (m?.sourceFolder ?? "/");
|
|
48822
|
+
if (!y(ie, h, {
|
|
48822
48823
|
type: Je.Move,
|
|
48823
|
-
|
|
48824
|
-
})
|
|
48825
|
-
|
|
48826
|
-
const j = R(
|
|
48824
|
+
sourceFolderPath: D
|
|
48825
|
+
}).hasConflicts) {
|
|
48826
|
+
const de = R(
|
|
48827
48827
|
ie,
|
|
48828
48828
|
h,
|
|
48829
48829
|
!0
|
|
48830
48830
|
);
|
|
48831
|
-
s?.(
|
|
48831
|
+
s?.(de, D, ie), o?.(), P();
|
|
48832
48832
|
}
|
|
48833
48833
|
},
|
|
48834
48834
|
[
|
|
@@ -48837,9 +48837,10 @@ const sL = ({ getSelectionLabel: e, onClearSelection: t, actions: s, selectedCou
|
|
|
48837
48837
|
R,
|
|
48838
48838
|
s,
|
|
48839
48839
|
o,
|
|
48840
|
-
P
|
|
48840
|
+
P,
|
|
48841
|
+
m
|
|
48841
48842
|
]
|
|
48842
|
-
),
|
|
48843
|
+
), B = T(() => {
|
|
48843
48844
|
M(), P();
|
|
48844
48845
|
}, [M, P]), se = T(() => {
|
|
48845
48846
|
k(), P();
|
|
@@ -48850,12 +48851,12 @@ const sL = ({ getSelectionLabel: e, onClearSelection: t, actions: s, selectedCou
|
|
|
48850
48851
|
[F, P]
|
|
48851
48852
|
), N = T(
|
|
48852
48853
|
(ie) => {
|
|
48853
|
-
const
|
|
48854
|
-
|
|
48854
|
+
const V = ie.at(0)?.parentPath ?? "/", D = R(
|
|
48855
|
+
V,
|
|
48855
48856
|
ie,
|
|
48856
48857
|
!1
|
|
48857
48858
|
);
|
|
48858
|
-
t?.(D,
|
|
48859
|
+
t?.(D, V), n?.();
|
|
48859
48860
|
},
|
|
48860
48861
|
[t, n, R]
|
|
48861
48862
|
), ne = T(
|
|
@@ -48863,7 +48864,7 @@ const sL = ({ getSelectionLabel: e, onClearSelection: t, actions: s, selectedCou
|
|
|
48863
48864
|
f(ie), c(!0);
|
|
48864
48865
|
},
|
|
48865
48866
|
[]
|
|
48866
|
-
),
|
|
48867
|
+
), j = T(() => {
|
|
48867
48868
|
c(!1), S.current || P();
|
|
48868
48869
|
}, [P, S]), [q, X] = A(), J = T(
|
|
48869
48870
|
(ie) => {
|
|
@@ -48872,13 +48873,16 @@ const sL = ({ getSelectionLabel: e, onClearSelection: t, actions: s, selectedCou
|
|
|
48872
48873
|
[r]
|
|
48873
48874
|
), Z = T(
|
|
48874
48875
|
(ie) => {
|
|
48875
|
-
g(ie),
|
|
48876
|
+
g(ie), C({
|
|
48877
|
+
type: Je.Move,
|
|
48878
|
+
sourceFolder: ie[0]?.folderId
|
|
48879
|
+
}), a && ie.length > 0 ? X(a(ie.length, ie[0]?.name)) : X(void 0);
|
|
48876
48880
|
},
|
|
48877
|
-
[a]
|
|
48881
|
+
[a, C]
|
|
48878
48882
|
);
|
|
48879
48883
|
return {
|
|
48880
48884
|
handleDuplicate: N,
|
|
48881
|
-
handleCloseDestinationFolderPopup:
|
|
48885
|
+
handleCloseDestinationFolderPopup: j,
|
|
48882
48886
|
handleOpenDestinationFolderPopup: ne,
|
|
48883
48887
|
handleCopyTo: H,
|
|
48884
48888
|
handleMoveTo: _,
|
|
@@ -48892,7 +48896,7 @@ const sL = ({ getSelectionLabel: e, onClearSelection: t, actions: s, selectedCou
|
|
|
48892
48896
|
conflictResolutionOpen: b,
|
|
48893
48897
|
openConflictResolution: E,
|
|
48894
48898
|
closeConflictResolution: x,
|
|
48895
|
-
handleConflictReplace:
|
|
48899
|
+
handleConflictReplace: B,
|
|
48896
48900
|
handleConflictDuplicate: se,
|
|
48897
48901
|
handleConflictDecideForEach: re
|
|
48898
48902
|
};
|
|
@@ -48979,9 +48983,9 @@ const sL = ({ getSelectionLabel: e, onClearSelection: t, actions: s, selectedCou
|
|
|
48979
48983
|
handleDecideForEach: k
|
|
48980
48984
|
} = PC({
|
|
48981
48985
|
getDestinationFiles: () => g.current,
|
|
48982
|
-
onResolve: (
|
|
48986
|
+
onResolve: (V, D) => {
|
|
48983
48987
|
if (!m) return;
|
|
48984
|
-
const
|
|
48988
|
+
const K = V.map((de) => {
|
|
48985
48989
|
const oe = p.get(de.sourceUrl);
|
|
48986
48990
|
if (!oe)
|
|
48987
48991
|
return;
|
|
@@ -48991,44 +48995,44 @@ const sL = ({ getSelectionLabel: e, onClearSelection: t, actions: s, selectedCou
|
|
|
48991
48995
|
name: Ce
|
|
48992
48996
|
};
|
|
48993
48997
|
}).filter(Boolean);
|
|
48994
|
-
|
|
48998
|
+
K.length > 0 && e?.(K, D), F();
|
|
48995
48999
|
}
|
|
48996
49000
|
}), F = T(() => {
|
|
48997
49001
|
f(/* @__PURE__ */ new Map()), C(null);
|
|
48998
49002
|
}, []);
|
|
48999
49003
|
we(() => {
|
|
49000
|
-
let
|
|
49004
|
+
let V = 0;
|
|
49001
49005
|
const D = (Ce) => {
|
|
49002
|
-
cL(Ce) && Ce.dataTransfer.types.includes(k8) && (
|
|
49003
|
-
},
|
|
49004
|
-
|
|
49006
|
+
cL(Ce) && Ce.dataTransfer.types.includes(k8) && (V++, l(!0));
|
|
49007
|
+
}, K = () => {
|
|
49008
|
+
V--, V === 0 && l(!1);
|
|
49005
49009
|
}, de = () => {
|
|
49006
|
-
|
|
49010
|
+
V = 0, l(!1);
|
|
49007
49011
|
}, oe = (Ce) => {
|
|
49008
49012
|
Ce.preventDefault();
|
|
49009
49013
|
};
|
|
49010
|
-
return window.addEventListener("dragenter", D), window.addEventListener("dragleave",
|
|
49011
|
-
window.removeEventListener("dragenter", D), window.removeEventListener("dragleave",
|
|
49014
|
+
return window.addEventListener("dragenter", D), window.addEventListener("dragleave", K), window.addEventListener("drop", de), window.addEventListener("dragover", oe), () => {
|
|
49015
|
+
window.removeEventListener("dragenter", D), window.removeEventListener("dragleave", K), window.removeEventListener("drop", de), window.removeEventListener("dragover", oe);
|
|
49012
49016
|
};
|
|
49013
49017
|
}, []);
|
|
49014
49018
|
const P = T(
|
|
49015
|
-
(
|
|
49019
|
+
(V) => s ? V.filter((D) => D.fileContent.size > s).map((D) => D.name) : [],
|
|
49016
49020
|
[s]
|
|
49017
49021
|
), H = T(
|
|
49018
|
-
(
|
|
49019
|
-
id:
|
|
49020
|
-
name:
|
|
49022
|
+
(V, D) => V.map((K) => ({
|
|
49023
|
+
id: K.name,
|
|
49024
|
+
name: K.name,
|
|
49021
49025
|
folderId: D,
|
|
49022
|
-
path:
|
|
49026
|
+
path: K.name,
|
|
49023
49027
|
nodeType: Ve.ITEM,
|
|
49024
49028
|
parentPath: D,
|
|
49025
|
-
contentLength:
|
|
49029
|
+
contentLength: K.fileContent.size
|
|
49026
49030
|
})),
|
|
49027
49031
|
[]
|
|
49028
49032
|
), _ = T(
|
|
49029
|
-
async (
|
|
49030
|
-
d(void 0), g.current =
|
|
49031
|
-
const de = P(
|
|
49033
|
+
async (V, D, K) => {
|
|
49034
|
+
d(void 0), g.current = K;
|
|
49035
|
+
const de = P(V);
|
|
49032
49036
|
if (de.length > 0) {
|
|
49033
49037
|
const Ee = s ? (s / 1048576).toFixed(2) : 0, Ae = i.oversizedFiles || `Files exceed maximum size (${Ee}MB): ${de.join(", ")}`;
|
|
49034
49038
|
return d(Ae), !1;
|
|
@@ -49036,8 +49040,8 @@ const sL = ({ getSelectionLabel: e, onClearSelection: t, actions: s, selectedCou
|
|
|
49036
49040
|
if (t)
|
|
49037
49041
|
try {
|
|
49038
49042
|
const Ee = await t(
|
|
49039
|
-
|
|
49040
|
-
|
|
49043
|
+
V,
|
|
49044
|
+
K,
|
|
49041
49045
|
D
|
|
49042
49046
|
);
|
|
49043
49047
|
if (!Ee.valid)
|
|
@@ -49049,12 +49053,12 @@ const sL = ({ getSelectionLabel: e, onClearSelection: t, actions: s, selectedCou
|
|
|
49049
49053
|
i.validationError || "Validation error occurred"
|
|
49050
49054
|
), !1;
|
|
49051
49055
|
}
|
|
49052
|
-
const oe = new Map(
|
|
49056
|
+
const oe = new Map(V.map((Ee) => [Ee.name, Ee]));
|
|
49053
49057
|
f(oe);
|
|
49054
|
-
const Ce = H(
|
|
49058
|
+
const Ce = H(V, D);
|
|
49055
49059
|
return C({ destinationFolder: D }), y(D, Ce, {
|
|
49056
49060
|
destinationFolder: D
|
|
49057
|
-
}).hasConflicts ? !1 : (e?.(
|
|
49061
|
+
}).hasConflicts ? !1 : (e?.(V, D), F(), !0);
|
|
49058
49062
|
},
|
|
49059
49063
|
[
|
|
49060
49064
|
e,
|
|
@@ -49066,46 +49070,46 @@ const sL = ({ getSelectionLabel: e, onClearSelection: t, actions: s, selectedCou
|
|
|
49066
49070
|
y,
|
|
49067
49071
|
F
|
|
49068
49072
|
]
|
|
49069
|
-
),
|
|
49073
|
+
), B = T(() => {
|
|
49070
49074
|
E(), F();
|
|
49071
49075
|
}, [E, F]), se = T(() => {
|
|
49072
49076
|
M(), F();
|
|
49073
49077
|
}, [M, F]), re = T(
|
|
49074
|
-
(
|
|
49075
|
-
k(
|
|
49078
|
+
(V) => {
|
|
49079
|
+
k(V), F();
|
|
49076
49080
|
},
|
|
49077
49081
|
[k, F]
|
|
49078
49082
|
), N = T(() => {
|
|
49079
49083
|
R(), S.current || F();
|
|
49080
|
-
}, [R, S, F]), ne = T((
|
|
49081
|
-
|
|
49082
|
-
}, []),
|
|
49083
|
-
|
|
49084
|
-
const D =
|
|
49085
|
-
(
|
|
49086
|
-
}, []), q = T((
|
|
49087
|
-
|
|
49084
|
+
}, [R, S, F]), ne = T((V) => {
|
|
49085
|
+
V.preventDefault(), V.stopPropagation(), V.dataTransfer.types.includes("Files") && r(!0);
|
|
49086
|
+
}, []), j = T((V) => {
|
|
49087
|
+
V.preventDefault(), V.stopPropagation();
|
|
49088
|
+
const D = V.currentTarget.getBoundingClientRect(), K = V.clientX, de = V.clientY;
|
|
49089
|
+
(K <= D.left || K >= D.right || de <= D.top || de >= D.bottom) && r(!1);
|
|
49090
|
+
}, []), q = T((V) => {
|
|
49091
|
+
V.preventDefault(), V.stopPropagation(), V.dataTransfer.types.includes("Files") && (V.dataTransfer.dropEffect = "copy");
|
|
49088
49092
|
}, []), X = T(
|
|
49089
|
-
async (
|
|
49090
|
-
if (
|
|
49093
|
+
async (V, D, K) => {
|
|
49094
|
+
if (V.preventDefault(), V.stopPropagation(), r(!1), !V.dataTransfer.types.includes("Files"))
|
|
49091
49095
|
return;
|
|
49092
|
-
const de = Array.from(
|
|
49096
|
+
const de = Array.from(V.dataTransfer.files);
|
|
49093
49097
|
if (de.length > 0) {
|
|
49094
49098
|
const oe = de.map((Ce) => ({
|
|
49095
49099
|
fileContent: Ce,
|
|
49096
49100
|
name: Ce.name
|
|
49097
49101
|
}));
|
|
49098
|
-
await _(oe, D,
|
|
49102
|
+
await _(oe, D, K);
|
|
49099
49103
|
}
|
|
49100
49104
|
},
|
|
49101
49105
|
[_]
|
|
49102
49106
|
);
|
|
49103
49107
|
we(() => {
|
|
49104
|
-
let
|
|
49105
|
-
|
|
49108
|
+
let V = u.current;
|
|
49109
|
+
V || (V = document.createElement("input"), V.type = "file", V.multiple = !0, V.style.display = "none", document.body.appendChild(V), u.current = V);
|
|
49106
49110
|
const D = async () => {
|
|
49107
|
-
if (!
|
|
49108
|
-
const de = Array.from(
|
|
49111
|
+
if (!V?.files?.length) return;
|
|
49112
|
+
const de = Array.from(V.files).map((oe) => ({
|
|
49109
49113
|
fileContent: oe,
|
|
49110
49114
|
name: oe.name
|
|
49111
49115
|
}));
|
|
@@ -49113,26 +49117,26 @@ const sL = ({ getSelectionLabel: e, onClearSelection: t, actions: s, selectedCou
|
|
|
49113
49117
|
de,
|
|
49114
49118
|
h.current,
|
|
49115
49119
|
g.current
|
|
49116
|
-
),
|
|
49120
|
+
), V.value = "";
|
|
49117
49121
|
};
|
|
49118
|
-
return
|
|
49119
|
-
|
|
49122
|
+
return V.addEventListener("change", D), () => {
|
|
49123
|
+
V && (V.removeEventListener("change", D), u.current === V && (document.body.removeChild(V), u.current = null));
|
|
49120
49124
|
};
|
|
49121
49125
|
}, [_]);
|
|
49122
49126
|
const J = T(
|
|
49123
|
-
(
|
|
49124
|
-
h.current =
|
|
49127
|
+
(V, D) => {
|
|
49128
|
+
h.current = V, g.current = D, u.current && u.current.click();
|
|
49125
49129
|
},
|
|
49126
49130
|
[]
|
|
49127
49131
|
), Z = T(
|
|
49128
|
-
(
|
|
49132
|
+
(V, D) => {
|
|
49129
49133
|
if (!o) return;
|
|
49130
|
-
const
|
|
49131
|
-
|
|
49134
|
+
const K = document.createElement("input");
|
|
49135
|
+
K.type = "file", K.accept = ".zip,application/zip", K.multiple = !1, K.style.display = "none";
|
|
49132
49136
|
const de = () => {
|
|
49133
|
-
const oe =
|
|
49137
|
+
const oe = K.files?.[0];
|
|
49134
49138
|
if (!oe) {
|
|
49135
|
-
document.body.removeChild(
|
|
49139
|
+
document.body.removeChild(K);
|
|
49136
49140
|
return;
|
|
49137
49141
|
}
|
|
49138
49142
|
const Ce = oe.name.replace(/\.zip$/i, "");
|
|
@@ -49141,16 +49145,16 @@ const sL = ({ getSelectionLabel: e, onClearSelection: t, actions: s, selectedCou
|
|
|
49141
49145
|
)) {
|
|
49142
49146
|
d(
|
|
49143
49147
|
i.validationFailed || `Folder with name "${Ce}" already exists`
|
|
49144
|
-
), document.body.removeChild(
|
|
49148
|
+
), document.body.removeChild(K);
|
|
49145
49149
|
return;
|
|
49146
49150
|
}
|
|
49147
49151
|
try {
|
|
49148
|
-
o(oe, Ce,
|
|
49152
|
+
o(oe, Ce, V);
|
|
49149
49153
|
} finally {
|
|
49150
|
-
document.body.removeChild(
|
|
49154
|
+
document.body.removeChild(K);
|
|
49151
49155
|
}
|
|
49152
49156
|
};
|
|
49153
|
-
|
|
49157
|
+
K.addEventListener("change", de), document.body.appendChild(K), K.click();
|
|
49154
49158
|
},
|
|
49155
49159
|
[o, i]
|
|
49156
49160
|
), ie = T(() => {
|
|
@@ -49161,7 +49165,7 @@ const sL = ({ getSelectionLabel: e, onClearSelection: t, actions: s, selectedCou
|
|
|
49161
49165
|
isDraggingOverWindow: a,
|
|
49162
49166
|
uploadError: c,
|
|
49163
49167
|
handleDragEnter: ne,
|
|
49164
|
-
handleDragLeave:
|
|
49168
|
+
handleDragLeave: j,
|
|
49165
49169
|
handleDragOver: q,
|
|
49166
49170
|
handleDrop: X,
|
|
49167
49171
|
clearError: ie,
|
|
@@ -49174,7 +49178,7 @@ const sL = ({ getSelectionLabel: e, onClearSelection: t, actions: s, selectedCou
|
|
|
49174
49178
|
hasActiveUploadConflictRef: S,
|
|
49175
49179
|
openUploadConflictResolution: x,
|
|
49176
49180
|
closeUploadConflictResolution: N,
|
|
49177
|
-
handleUploadConflictReplace:
|
|
49181
|
+
handleUploadConflictReplace: B,
|
|
49178
49182
|
handleUploadConflictDuplicate: se,
|
|
49179
49183
|
handleUploadConflictDecideForEach: re
|
|
49180
49184
|
};
|
|
@@ -49200,13 +49204,13 @@ const pL = ({
|
|
|
49200
49204
|
validationMessages: s,
|
|
49201
49205
|
onMoveToFiles: i
|
|
49202
49206
|
}) => {
|
|
49203
|
-
const [o, n] = A(), r =
|
|
49207
|
+
const [o, n] = A(), r = G(
|
|
49204
49208
|
() => ({
|
|
49205
49209
|
...uL,
|
|
49206
49210
|
...s
|
|
49207
49211
|
}),
|
|
49208
49212
|
[s]
|
|
49209
|
-
), a =
|
|
49213
|
+
), a = G(() => o?.path, [o]), l = T(
|
|
49210
49214
|
(g) => {
|
|
49211
49215
|
const p = pi(e, g);
|
|
49212
49216
|
p && n(p);
|
|
@@ -49289,7 +49293,7 @@ const pL = ({
|
|
|
49289
49293
|
onCreateFolder: s,
|
|
49290
49294
|
onUploadArchive: i
|
|
49291
49295
|
}) => {
|
|
49292
|
-
const o =
|
|
49296
|
+
const o = G(() => {
|
|
49293
49297
|
const r = [];
|
|
49294
49298
|
return e && (e.newFolder && r.push({
|
|
49295
49299
|
key: "new-folder",
|
|
@@ -49313,7 +49317,7 @@ const pL = ({
|
|
|
49313
49317
|
i && i();
|
|
49314
49318
|
}
|
|
49315
49319
|
})), r;
|
|
49316
|
-
}, [e, t, s, i]), n =
|
|
49320
|
+
}, [e, t, s, i]), n = G(() => o.length > 0, [o]);
|
|
49317
49321
|
return { newActions: o, isNewButtonVisible: n };
|
|
49318
49322
|
}, mL = {
|
|
49319
49323
|
emptyName: "Folder name cannot be empty",
|
|
@@ -49324,7 +49328,7 @@ const pL = ({
|
|
|
49324
49328
|
onValidateFolderName: s,
|
|
49325
49329
|
validationMessages: i
|
|
49326
49330
|
}) => {
|
|
49327
|
-
const [o, n] = A(!1), [r, a] = A(null), l = O(e?.path), c =
|
|
49331
|
+
const [o, n] = A(!1), [r, a] = A(null), l = O(e?.path), c = G(
|
|
49328
49332
|
() => ({
|
|
49329
49333
|
...mL,
|
|
49330
49334
|
...i
|
|
@@ -49387,7 +49391,7 @@ const pL = ({
|
|
|
49387
49391
|
}) => {
|
|
49388
49392
|
const i = t === 0;
|
|
49389
49393
|
return {
|
|
49390
|
-
additionalButtons:
|
|
49394
|
+
additionalButtons: G(() => {
|
|
49391
49395
|
const n = me([
|
|
49392
49396
|
"hover:text-accent-primary p-1",
|
|
49393
49397
|
i && "text-controls-disable hover:text-controls-disable disabled:hover:cursor-default"
|
|
@@ -49443,12 +49447,12 @@ const pL = ({
|
|
|
49443
49447
|
onCreateFolderValidate: H,
|
|
49444
49448
|
folderCreationValidationMessages: _
|
|
49445
49449
|
}) => {
|
|
49446
|
-
const [
|
|
49450
|
+
const [B, se] = A(
|
|
49447
49451
|
/* @__PURE__ */ new Map()
|
|
49448
|
-
), re =
|
|
49449
|
-
() => new Set(
|
|
49450
|
-
[
|
|
49451
|
-
), N = T(() => se(/* @__PURE__ */ new Map()), []), { currentPath: ne, setCurrentPath:
|
|
49452
|
+
), re = G(
|
|
49453
|
+
() => new Set(B.keys()),
|
|
49454
|
+
[B]
|
|
49455
|
+
), N = T(() => se(/* @__PURE__ */ new Map()), []), { currentPath: ne, setCurrentPath: j, handlePathChange: q } = rL({
|
|
49452
49456
|
path: o,
|
|
49453
49457
|
onPathChange: m,
|
|
49454
49458
|
onSelectionClear: N
|
|
@@ -49457,10 +49461,10 @@ const pL = ({
|
|
|
49457
49461
|
p?.setDestinationFolderPath ? p.setDestinationFolderPath(ke) : J(ke);
|
|
49458
49462
|
},
|
|
49459
49463
|
[p]
|
|
49460
|
-
), { areHiddenFilesVisible:
|
|
49464
|
+
), { areHiddenFilesVisible: V, toggleHiddenFilesVisibility: D } = iL({
|
|
49461
49465
|
showHiddenFiles: r,
|
|
49462
49466
|
onShowHiddenFilesChange: a
|
|
49463
|
-
}), { isTreeCollapsed:
|
|
49467
|
+
}), { isTreeCollapsed: K, toggleTreeCollapse: de, setIsTreeCollapsed: oe } = oL({
|
|
49464
49468
|
collapsed: l?.collapsed,
|
|
49465
49469
|
onCollapseChange: l?.onCollapseChange
|
|
49466
49470
|
}), {
|
|
@@ -49483,7 +49487,7 @@ const pL = ({
|
|
|
49483
49487
|
}, [c?.value]);
|
|
49484
49488
|
const ge = String(
|
|
49485
49489
|
c?.value ?? U ?? ""
|
|
49486
|
-
).trim(), Se =
|
|
49490
|
+
).trim(), Se = G(
|
|
49487
49491
|
() => eg(s, ne) ?? s[0],
|
|
49488
49492
|
[s, ne]
|
|
49489
49493
|
), {
|
|
@@ -49588,10 +49592,10 @@ const pL = ({
|
|
|
49588
49592
|
onUploadFiles: So,
|
|
49589
49593
|
onUploadArchive: Da,
|
|
49590
49594
|
onCreateFolder: En
|
|
49591
|
-
}), Mn =
|
|
49595
|
+
}), Mn = G(() => {
|
|
49592
49596
|
const ke = pr(ge).trim(), zt = Se?.items ?? [];
|
|
49593
49597
|
let xo = ke ? z8(Se) : zt;
|
|
49594
|
-
|
|
49598
|
+
V || (xo = xo.filter((tt) => !FC(tt)));
|
|
49595
49599
|
const Ma = xo.map((tt) => ({
|
|
49596
49600
|
id: tt.id ?? tt.path,
|
|
49597
49601
|
name: tt.name ?? tt.path.split("/").pop() ?? "",
|
|
@@ -49625,7 +49629,7 @@ const pL = ({
|
|
|
49625
49629
|
}, [
|
|
49626
49630
|
Se,
|
|
49627
49631
|
ge,
|
|
49628
|
-
|
|
49632
|
+
V,
|
|
49629
49633
|
yo,
|
|
49630
49634
|
Fs
|
|
49631
49635
|
]), Ta = T(
|
|
@@ -49679,17 +49683,17 @@ const pL = ({
|
|
|
49679
49683
|
title: ga
|
|
49680
49684
|
},
|
|
49681
49685
|
currentPath: ne,
|
|
49682
|
-
setCurrentPath:
|
|
49686
|
+
setCurrentPath: j,
|
|
49683
49687
|
searchValue: U,
|
|
49684
49688
|
effectiveSearchValue: ge,
|
|
49685
49689
|
setSearchValue: ye,
|
|
49686
|
-
areHiddenFilesVisible:
|
|
49690
|
+
areHiddenFilesVisible: V,
|
|
49687
49691
|
toggleHiddenFilesVisibility: D,
|
|
49688
|
-
isTreeCollapsed:
|
|
49692
|
+
isTreeCollapsed: K,
|
|
49689
49693
|
toggleTreeCollapse: de,
|
|
49690
49694
|
setIsTreeCollapsed: oe,
|
|
49691
49695
|
selectedIds: re,
|
|
49692
|
-
selectedFiles:
|
|
49696
|
+
selectedFiles: B,
|
|
49693
49697
|
setSelectedFiles: se,
|
|
49694
49698
|
clearSelection: N,
|
|
49695
49699
|
currentFolder: Se,
|
|
@@ -49799,7 +49803,7 @@ const IC = ({
|
|
|
49799
49803
|
emptyPlaceholder: i,
|
|
49800
49804
|
className: o
|
|
49801
49805
|
}) => {
|
|
49802
|
-
const n = MC(e), r =
|
|
49806
|
+
const n = MC(e), r = G(() => n ? new Intl.DateTimeFormat(t, s).format(n) : i, [n, i, t, s]), a = n ? n.toISOString() : void 0;
|
|
49803
49807
|
return /* @__PURE__ */ v(
|
|
49804
49808
|
rs,
|
|
49805
49809
|
{
|
|
@@ -49832,9 +49836,7 @@ const IC = ({
|
|
|
49832
49836
|
"Do you want to delete the following",
|
|
49833
49837
|
" ",
|
|
49834
49838
|
/* @__PURE__ */ v("span", { className: "text-primary", children: t.length }),
|
|
49835
|
-
"
|
|
49836
|
-
t.length !== 1 ? "s" : "",
|
|
49837
|
-
"?"
|
|
49839
|
+
" items?"
|
|
49838
49840
|
] }) }),
|
|
49839
49841
|
t.length > 1 && /* @__PURE__ */ v(Ke, { children: t.length <= 10 ? /* @__PURE__ */ v("ul", { className: "space-y-1 text-primary list-none", children: t.map((g) => /* @__PURE__ */ v("li", { className: "truncate", children: g.name }, g.path)) }) : /* @__PURE__ */ W(Ke, { children: [
|
|
49840
49842
|
/* @__PURE__ */ v("ul", { className: "space-y-1 text-primary list-none mb-2", children: t.slice(0, 10).map((g) => /* @__PURE__ */ v("li", { className: "truncate", children: g.name }, g.path)) }),
|
|
@@ -49966,7 +49968,7 @@ const IC = ({
|
|
|
49966
49968
|
onDownload: n,
|
|
49967
49969
|
onDelete: r,
|
|
49968
49970
|
getCurrentFolderPath: a
|
|
49969
|
-
}) =>
|
|
49971
|
+
}) => G(() => {
|
|
49970
49972
|
const l = [], c = Array.from(e.values());
|
|
49971
49973
|
return !c.length || !t || (t[pe.Move] && l.push({
|
|
49972
49974
|
key: pe.Move,
|
|
@@ -50033,7 +50035,7 @@ const IC = ({
|
|
|
50033
50035
|
onDownload: o,
|
|
50034
50036
|
onRename: n,
|
|
50035
50037
|
onDelete: r
|
|
50036
|
-
}) =>
|
|
50038
|
+
}) => G(() => (a) => {
|
|
50037
50039
|
const l = [];
|
|
50038
50040
|
return e && (e[pe.Duplicate] && l.push({
|
|
50039
50041
|
key: pe.Duplicate,
|
|
@@ -50118,7 +50120,7 @@ const IC = ({
|
|
|
50118
50120
|
)
|
|
50119
50121
|
), [H, _] = A(
|
|
50120
50122
|
void 0
|
|
50121
|
-
),
|
|
50123
|
+
), B = f ? r : a, se = /* @__PURE__ */ W(Ke, { children: [
|
|
50122
50124
|
"Item with the name ",
|
|
50123
50125
|
/* @__PURE__ */ W("span", { className: "text-primary", children: [
|
|
50124
50126
|
'"',
|
|
@@ -50127,7 +50129,7 @@ const IC = ({
|
|
|
50127
50129
|
] }),
|
|
50128
50130
|
" ",
|
|
50129
50131
|
"already exists in this destination."
|
|
50130
|
-
] }), re = `${n.length} items with the same names already exist in this destination.`, N = l ?? (f ? se : re), ne =
|
|
50132
|
+
] }), re = `${n.length} items with the same names already exist in this destination.`, N = l ?? (f ? se : re), ne = G(
|
|
50131
50133
|
() => [
|
|
50132
50134
|
{
|
|
50133
50135
|
id: ut.Replace,
|
|
@@ -50139,13 +50141,13 @@ const IC = ({
|
|
|
50139
50141
|
}
|
|
50140
50142
|
],
|
|
50141
50143
|
[C, w]
|
|
50142
|
-
),
|
|
50144
|
+
), j = G(() => n.map((Z) => ({
|
|
50143
50145
|
id: Z.path,
|
|
50144
50146
|
name: Z.name,
|
|
50145
50147
|
path: Z.path,
|
|
50146
50148
|
nodeType: Z.nodeType ?? Ve.ITEM,
|
|
50147
50149
|
action: F.get(Z.path) || ut.Replace
|
|
50148
|
-
})), [n, F]), q =
|
|
50150
|
+
})), [n, F]), q = G(() => [
|
|
50149
50151
|
{
|
|
50150
50152
|
field: "name",
|
|
50151
50153
|
headerName: g,
|
|
@@ -50195,8 +50197,8 @@ const IC = ({
|
|
|
50195
50197
|
label: b,
|
|
50196
50198
|
icon: /* @__PURE__ */ v(Qn, { size: 10, className: "text-error" })
|
|
50197
50199
|
}
|
|
50198
|
-
],
|
|
50199
|
-
(
|
|
50200
|
+
], V = ie.find(
|
|
50201
|
+
(K) => K.key === Z.data.action
|
|
50200
50202
|
), D = H === Z.data.path;
|
|
50201
50203
|
return /* @__PURE__ */ v("div", { className: "flex items-center h-full", children: /* @__PURE__ */ v(
|
|
50202
50204
|
Et,
|
|
@@ -50205,12 +50207,12 @@ const IC = ({
|
|
|
50205
50207
|
open: D,
|
|
50206
50208
|
menu: {
|
|
50207
50209
|
items: ie,
|
|
50208
|
-
onClick: ({ key:
|
|
50210
|
+
onClick: ({ key: K }) => {
|
|
50209
50211
|
P((de) => {
|
|
50210
50212
|
const oe = new Map(de);
|
|
50211
50213
|
return oe.set(
|
|
50212
50214
|
Z.data.path,
|
|
50213
|
-
|
|
50215
|
+
K
|
|
50214
50216
|
), oe;
|
|
50215
50217
|
}), _(void 0);
|
|
50216
50218
|
}
|
|
@@ -50218,13 +50220,13 @@ const IC = ({
|
|
|
50218
50220
|
placement: "bottom-start",
|
|
50219
50221
|
matchReferenceWidth: !1,
|
|
50220
50222
|
allowedPlacements: ["bottom-start", "top-start"],
|
|
50221
|
-
onOpenChange: (
|
|
50222
|
-
_(
|
|
50223
|
+
onOpenChange: (K) => {
|
|
50224
|
+
_(K ? Z.data.path : void 0);
|
|
50223
50225
|
},
|
|
50224
50226
|
children: /* @__PURE__ */ W("button", { type: "button", className: "flex items-center gap-2", children: [
|
|
50225
50227
|
/* @__PURE__ */ W("span", { className: "flex items-center gap-2", children: [
|
|
50226
|
-
|
|
50227
|
-
|
|
50228
|
+
V?.icon,
|
|
50229
|
+
V?.label ?? C
|
|
50228
50230
|
] }),
|
|
50229
50231
|
/* @__PURE__ */ v(
|
|
50230
50232
|
qr,
|
|
@@ -50248,7 +50250,7 @@ const IC = ({
|
|
|
50248
50250
|
w,
|
|
50249
50251
|
b,
|
|
50250
50252
|
H
|
|
50251
|
-
]), X =
|
|
50253
|
+
]), X = G(
|
|
50252
50254
|
() => [
|
|
50253
50255
|
{
|
|
50254
50256
|
id: Tt.ReplaceAll,
|
|
@@ -50265,7 +50267,7 @@ const IC = ({
|
|
|
50265
50267
|
dC,
|
|
50266
50268
|
{
|
|
50267
50269
|
columnDefs: q,
|
|
50268
|
-
rowData:
|
|
50270
|
+
rowData: j,
|
|
50269
50271
|
getRowId: (Z) => Z.id,
|
|
50270
50272
|
withSelectionColumn: !1,
|
|
50271
50273
|
wrapCustomCellRenderers: !1,
|
|
@@ -50283,7 +50285,7 @@ const IC = ({
|
|
|
50283
50285
|
R,
|
|
50284
50286
|
M,
|
|
50285
50287
|
q,
|
|
50286
|
-
|
|
50288
|
+
j
|
|
50287
50289
|
]
|
|
50288
50290
|
), J = T(() => {
|
|
50289
50291
|
if (f)
|
|
@@ -50317,7 +50319,7 @@ const IC = ({
|
|
|
50317
50319
|
open: e,
|
|
50318
50320
|
onClose: t,
|
|
50319
50321
|
size: ns.Md,
|
|
50320
|
-
title:
|
|
50322
|
+
title: B,
|
|
50321
50323
|
dividers: !1,
|
|
50322
50324
|
footer: /* @__PURE__ */ W("div", { className: "flex justify-end gap-3 py-4 px-6", children: [
|
|
50323
50325
|
/* @__PURE__ */ v(
|
|
@@ -50421,7 +50423,7 @@ const IL = ({
|
|
|
50421
50423
|
},
|
|
50422
50424
|
[e]
|
|
50423
50425
|
);
|
|
50424
|
-
return { actionsColumnDef:
|
|
50426
|
+
return { actionsColumnDef: G(
|
|
50425
50427
|
() => ({
|
|
50426
50428
|
colId: "__actions",
|
|
50427
50429
|
headerName: "",
|
|
@@ -50490,20 +50492,20 @@ const IL = ({
|
|
|
50490
50492
|
handleOpenDestinationFolderPopup: P,
|
|
50491
50493
|
handleCloseDestinationFolderPopup: H,
|
|
50492
50494
|
openDestinationFolderPopup: _,
|
|
50493
|
-
destinationFolderMode:
|
|
50495
|
+
destinationFolderMode: B,
|
|
50494
50496
|
handleSetCopiedFiles: se,
|
|
50495
50497
|
handleSetMovedFiles: re,
|
|
50496
50498
|
handleDuplicate: N,
|
|
50497
50499
|
handleCopyTo: ne,
|
|
50498
|
-
handleMoveTo:
|
|
50500
|
+
handleMoveTo: j,
|
|
50499
50501
|
handleDownloadFiles: q,
|
|
50500
50502
|
openDeleteConfirmation: X,
|
|
50501
50503
|
closeDeleteConfirmation: J,
|
|
50502
50504
|
confirmDelete: Z,
|
|
50503
50505
|
deleteConfirmationOpen: ie,
|
|
50504
|
-
itemsToDelete:
|
|
50506
|
+
itemsToDelete: V,
|
|
50505
50507
|
renamedPath: D,
|
|
50506
|
-
renamedItem:
|
|
50508
|
+
renamedItem: K,
|
|
50507
50509
|
onRename: de,
|
|
50508
50510
|
onRenameSave: oe,
|
|
50509
50511
|
onRenameCancel: Ce,
|
|
@@ -50561,7 +50563,7 @@ const IL = ({
|
|
|
50561
50563
|
...Fn
|
|
50562
50564
|
} = r ?? {}, { containerRef: Fa, isBelowBreakpoint: nt } = ML(
|
|
50563
50565
|
h
|
|
50564
|
-
), Ea =
|
|
50566
|
+
), Ea = G(() => [
|
|
50565
50567
|
{
|
|
50566
50568
|
colId: Wt.Name,
|
|
50567
50569
|
field: "name",
|
|
@@ -50588,8 +50590,8 @@ const IL = ({
|
|
|
50588
50590
|
])
|
|
50589
50591
|
}
|
|
50590
50592
|
);
|
|
50591
|
-
if (yi === Yi.Grid && D === te.data?.path &&
|
|
50592
|
-
const Yt = Ee(
|
|
50593
|
+
if (yi === Yi.Grid && D === te.data?.path && K && te.data) {
|
|
50594
|
+
const Yt = Ee(K);
|
|
50593
50595
|
return /* @__PURE__ */ v(
|
|
50594
50596
|
$r,
|
|
50595
50597
|
{
|
|
@@ -50598,7 +50600,7 @@ const IL = ({
|
|
|
50598
50600
|
elementId: `rename-${te.data.id}`,
|
|
50599
50601
|
editing: !0,
|
|
50600
50602
|
iconSize: Ls,
|
|
50601
|
-
validate: (Es) => Fe(Es,
|
|
50603
|
+
validate: (Es) => Fe(Es, K),
|
|
50602
50604
|
onSave: oe,
|
|
50603
50605
|
onCancel: Ce,
|
|
50604
50606
|
inputContainerClassName: me([
|
|
@@ -50670,7 +50672,7 @@ const IL = ({
|
|
|
50670
50672
|
bi,
|
|
50671
50673
|
Oe,
|
|
50672
50674
|
D,
|
|
50673
|
-
|
|
50675
|
+
K,
|
|
50674
50676
|
yi,
|
|
50675
50677
|
Fe,
|
|
50676
50678
|
oe,
|
|
@@ -50745,7 +50747,7 @@ const IL = ({
|
|
|
50745
50747
|
X,
|
|
50746
50748
|
o
|
|
50747
50749
|
]
|
|
50748
|
-
), Da =
|
|
50750
|
+
), Da = G(() => {
|
|
50749
50751
|
const te = /* @__PURE__ */ new Map();
|
|
50750
50752
|
return S.forEach((Te, Ri) => {
|
|
50751
50753
|
const Yt = w.find((Es) => Es.path === Ri);
|
|
@@ -50903,7 +50905,7 @@ const IL = ({
|
|
|
50903
50905
|
[t, Dn]
|
|
50904
50906
|
), { actionsColumnDef: Ro } = IL({
|
|
50905
50907
|
getContextMenuItems: Pn
|
|
50906
|
-
}), Tn = Co ?? Ea, Mn =
|
|
50908
|
+
}), Tn = Co ?? Ea, Mn = G(() => {
|
|
50907
50909
|
let te = Tn;
|
|
50908
50910
|
return Co || (te = te.filter(
|
|
50909
50911
|
(Te) => Te.colId && xn.includes(Te.colId)
|
|
@@ -51011,14 +51013,11 @@ const IL = ({
|
|
|
51011
51013
|
/* @__PURE__ */ v(
|
|
51012
51014
|
FL,
|
|
51013
51015
|
{
|
|
51016
|
+
...c,
|
|
51014
51017
|
open: ie,
|
|
51015
|
-
itemsToDelete:
|
|
51018
|
+
itemsToDelete: V,
|
|
51016
51019
|
onClose: J,
|
|
51017
|
-
onConfirm: Z
|
|
51018
|
-
cancelLabel: c?.cancelLabel,
|
|
51019
|
-
confirmLabel: c?.confirmLabel,
|
|
51020
|
-
titleRenderer: c?.titleRenderer,
|
|
51021
|
-
contentRenderer: c?.contentRenderer
|
|
51020
|
+
onConfirm: Z
|
|
51022
51021
|
}
|
|
51023
51022
|
),
|
|
51024
51023
|
/* @__PURE__ */ v(
|
|
@@ -51029,9 +51028,9 @@ const IL = ({
|
|
|
51029
51028
|
onClose: H,
|
|
51030
51029
|
onConfirm: () => {
|
|
51031
51030
|
const te = d?.destinationFolderPath ?? "/";
|
|
51032
|
-
|
|
51031
|
+
B === Je.Copy ? ne(te) : j(te), H();
|
|
51033
51032
|
},
|
|
51034
|
-
mode:
|
|
51033
|
+
mode: B,
|
|
51035
51034
|
items: t,
|
|
51036
51035
|
rootItem: s,
|
|
51037
51036
|
gridOptions: { columnDefs: Mn, loading: i },
|
|
@@ -51076,7 +51075,7 @@ const IL = ({
|
|
|
51076
51075
|
Rc.MyFiles
|
|
51077
51076
|
), i = (n) => {
|
|
51078
51077
|
s(n);
|
|
51079
|
-
}, o =
|
|
51078
|
+
}, o = G(() => {
|
|
51080
51079
|
if (e)
|
|
51081
51080
|
return Object.values(Rc).map((n) => ({
|
|
51082
51081
|
id: n,
|