@epam/ai-dial-ui-kit 0.5.0-rc.84 → 0.5.0-rc.86

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.
@@ -418,7 +418,7 @@ 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"], V = () => ["start", "end", "center", "stretch", "center-safe", "end-safe"], te = () => ["auto", ...E()], re = () => [xi, "auto", "full", "dvw", "dvh", "lvw", "lvh", "svw", "svh", "min", "max", "fit", ...E()], N = () => [e, le, ae], ne = () => [...S(), Zd, Yd, {
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"], V = () => ["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
  }], K = () => ["no-repeat", {
424
424
  repeat: ["", "x", "y", "space", "round"]
@@ -973,63 +973,63 @@ const Xe = (e) => {
973
973
  * @see https://tailwindcss.com/docs/margin
974
974
  */
975
975
  m: [{
976
- m: te()
976
+ m: se()
977
977
  }],
978
978
  /**
979
979
  * Margin X
980
980
  * @see https://tailwindcss.com/docs/margin
981
981
  */
982
982
  mx: [{
983
- mx: te()
983
+ mx: se()
984
984
  }],
985
985
  /**
986
986
  * Margin Y
987
987
  * @see https://tailwindcss.com/docs/margin
988
988
  */
989
989
  my: [{
990
- my: te()
990
+ my: se()
991
991
  }],
992
992
  /**
993
993
  * Margin Start
994
994
  * @see https://tailwindcss.com/docs/margin
995
995
  */
996
996
  ms: [{
997
- ms: te()
997
+ ms: se()
998
998
  }],
999
999
  /**
1000
1000
  * Margin End
1001
1001
  * @see https://tailwindcss.com/docs/margin
1002
1002
  */
1003
1003
  me: [{
1004
- me: te()
1004
+ me: se()
1005
1005
  }],
1006
1006
  /**
1007
1007
  * Margin Top
1008
1008
  * @see https://tailwindcss.com/docs/margin
1009
1009
  */
1010
1010
  mt: [{
1011
- mt: te()
1011
+ mt: se()
1012
1012
  }],
1013
1013
  /**
1014
1014
  * Margin Right
1015
1015
  * @see https://tailwindcss.com/docs/margin
1016
1016
  */
1017
1017
  mr: [{
1018
- mr: te()
1018
+ mr: se()
1019
1019
  }],
1020
1020
  /**
1021
1021
  * Margin Bottom
1022
1022
  * @see https://tailwindcss.com/docs/margin
1023
1023
  */
1024
1024
  mb: [{
1025
- mb: te()
1025
+ mb: se()
1026
1026
  }],
1027
1027
  /**
1028
1028
  * Margin Left
1029
1029
  * @see https://tailwindcss.com/docs/margin
1030
1030
  */
1031
1031
  ml: [{
1032
- ml: te()
1032
+ ml: se()
1033
1033
  }],
1034
1034
  /**
1035
1035
  * Space Between X
@@ -5923,14 +5923,14 @@ var vr = /* @__PURE__ */ ((e) => (e.Left = "left", e.Right = "right", e))(vr ||
5923
5923
  b = "".concat(V, "vh");
5924
5924
  }
5925
5925
  }
5926
- var te = {
5926
+ var se = {
5927
5927
  width: this.createSizeForCssProperty(S, "width"),
5928
5928
  height: this.createSizeForCssProperty(b, "height")
5929
5929
  };
5930
- this.flexDir === "row" ? te.flexBasis = te.width : this.flexDir === "column" && (te.flexBasis = te.height);
5931
- var re = this.state.width !== te.width, N = this.state.height !== te.height, ne = this.state.flexBasis !== te.flexBasis, K = re || N || ne;
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, K = re || N || ne;
5932
5932
  K && Vv(function() {
5933
- i.setState(te);
5933
+ i.setState(se);
5934
5934
  }), this.props.onResize && K && this.props.onResize(s, h, this.resizable, P);
5935
5935
  }
5936
5936
  }, t.prototype.onMouseUp = function(s) {
@@ -8376,7 +8376,7 @@ function Ut(e, t, s) {
8376
8376
  }, w = (y, R, x) => {
8377
8377
  const E = Vp(e, s), M = R.slice(), k = {}, F = {}, P = [], H = [], _ = [];
8378
8378
  let V = 0;
8379
- const te = o?.columns.slice() ?? [], re = n?.columns.slice() ?? [];
8379
+ const se = o?.columns.slice() ?? [], re = n?.columns.slice() ?? [];
8380
8380
  for (const K of y) {
8381
8381
  const q = K.colId;
8382
8382
  if (q.startsWith(sa)) {
@@ -8391,7 +8391,7 @@ function Ut(e, t, s) {
8391
8391
  J ? (C(J, K, k, F, !1), jt(M, J)) : (_.push(K), V += 1);
8392
8392
  }
8393
8393
  const N = (K) => C(K, null, k, F, !1);
8394
- M.forEach(N), o?.sortColumns(Eu.bind(o, k, te)), n?.sortColumns(Eu.bind(n, F, re)), i.refreshCols(!1, s);
8394
+ M.forEach(N), o?.sortColumns(Eu.bind(o, k, se)), n?.sortColumns(Eu.bind(n, F, re)), i.refreshCols(!1, s);
8395
8395
  const ne = (K, q, X = []) => {
8396
8396
  for (const J of q) {
8397
8397
  const Z = K(J.colId);
@@ -42811,7 +42811,7 @@ var sC = Ic((e, t) => {
42811
42811
  }, []), M = B(() => `ag-cell-wrapper ${m.toString()}`, [m]), k = B(() => `ag-group-expanded ${w.toString()}`, [w]), F = B(
42812
42812
  () => `ag-group-contracted ${S.toString()}`,
42813
42813
  [S]
42814
- ), P = B(() => `ag-group-checkbox ${R.toString()}`, [R]), H = d?.componentFromFramework, _ = H ? d.componentClass : void 0, V = d == null && p != null, te = co(p);
42814
+ ), P = B(() => `ag-group-checkbox ${R.toString()}`, [R]), H = d?.componentFromFramework, _ = H ? d.componentClass : void 0, V = 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 }, V ? te : H ? /* @__PURE__ */ $.createElement(_, { ...d.params }) : null),
42825
+ /* @__PURE__ */ $.createElement("span", { className: "ag-group-value", ref: n }, V ? 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({
@@ -43360,12 +43360,12 @@ var RA = 1e3, xA = class {
43360
43360
  () => mn(g, t, w.current, x),
43361
43361
  [g]
43362
43362
  );
43363
- const M = B(() => n.toString(), [n]), k = B(() => a.toString(), [a]), F = B(() => c.toString(), [c]), P = B(() => !!(g && g.componentFromFramework && go(g.componentClass)), [g]), H = B(() => s.get("reactiveCustomComponents"), []), _ = B(() => s.get("enableFilterHandlers"), []), [V, te] = A();
43363
+ const M = B(() => n.toString(), [n]), k = B(() => a.toString(), [a]), F = B(() => c.toString(), [c]), P = B(() => !!(g && g.componentFromFramework && go(g.componentClass)), [g]), H = B(() => s.get("reactiveCustomComponents"), []), _ = B(() => s.get("enableFilterHandlers"), []), [V, se] = A();
43364
43364
  we(() => {
43365
43365
  if (g?.componentFromFramework)
43366
43366
  if (H) {
43367
43367
  const K = _ ? DA : pA, q = new K(g.params, () => f((X) => X + 1));
43368
- x(q), te(q);
43368
+ x(q), se(q);
43369
43369
  } else
43370
43370
  _d();
43371
43371
  }, [g]);
@@ -43711,7 +43711,7 @@ 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 = B(() => e.isForceWrapper(), [e]), M = B(() => e.getCellAriaRole(), [e]), k = O(null), F = O(null), P = O(null), H = O(), _ = O(), V = O(), te = O([]), re = O(), N = O(), [ne, K] = A(0), q = T((be) => {
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 = B(() => e.isForceWrapper(), [e]), M = B(() => e.getCellAriaRole(), [e]), k = O(null), F = O(null), P = O(null), H = O(), _ = O(), V = O(), se = O([]), re = O(), N = O(), [ne, K] = A(0), q = T((be) => {
43715
43715
  N.current = be, K((De) => De + 1);
43716
43716
  }, []), X = l != null && (m || S || w) && (d == null || !!d.popup), J = E || X, Z = B(() => e.getCellValueClass(), [e]), ie = T(
43717
43717
  (be) => {
@@ -43754,15 +43754,15 @@ var RA = 1e3, xA = class {
43754
43754
  const j = T(
43755
43755
  (be) => {
43756
43756
  if (V.current = be, !be || o.isDestroyed() || !e.isAlive()) {
43757
- const ye = te.current;
43758
- te.current = [];
43757
+ const ye = se.current;
43758
+ se.current = [];
43759
43759
  for (const ge of ye)
43760
43760
  ge();
43761
43761
  return;
43762
43762
  }
43763
43763
  let De;
43764
43764
  const U = (ye) => {
43765
- ye && (be.insertAdjacentElement("afterbegin", ye.getGui()), te.current.push(() => {
43765
+ ye && (be.insertAdjacentElement("afterbegin", ye.getGui()), se.current.push(() => {
43766
43766
  Os(ye.getGui()), o.destroyBean(ye), re.current === De && (re.current = void 0);
43767
43767
  }));
43768
43768
  };
@@ -43869,12 +43869,12 @@ 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), [V, te] = A(0);
43872
+ ), F = O(null), P = O(), H = O(), _ = O(!1), [V, se] = A(0);
43873
43873
  we(() => {
43874
43874
  if (_.current || !y || V > 10)
43875
43875
  return;
43876
43876
  const oe = F.current?.firstChild;
43877
- oe ? (e.setupDetailRowAutoHeight(oe), _.current = !0) : te((Ce) => Ce + 1);
43877
+ oe ? (e.setupDetailRowAutoHeight(oe), _.current = !0) : se((Ce) => Ce + 1);
43878
43878
  }, [y, V]);
43879
43879
  const re = O();
43880
43880
  re.current || (re.current = new un(() => F.current));
@@ -43966,8 +43966,8 @@ var RA = 1e3, xA = class {
43966
43966
  const { context: t, gos: s } = et(pt), i = B(() => 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 = B(() => It("ag-viewport", xf(e)), [e]), b = B(() => It(lr(e)), [e]), S = B(() => 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 V = !y || o.current != null, te = n.current != null, re = !u || r.current != null;
43970
- return V && te && re;
43969
+ const V = !y || o.current != null, se = n.current != null, re = !u || r.current != null;
43970
+ return V && 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
43973
  const V = (N) => {
@@ -43977,7 +43977,7 @@ var RA = 1e3, xA = class {
43977
43977
  m.current
43978
43978
  );
43979
43979
  ne !== l.current && (l.current = ne, nn(N, () => d(ne)));
43980
- }, te = (N) => {
43980
+ }, se = (N) => {
43981
43981
  const ne = Wr(
43982
43982
  g.current,
43983
43983
  h.current,
@@ -43997,7 +43997,7 @@ var RA = 1e3, xA = class {
43997
43997
  },
43998
43998
  setSpannedRowCtrls: (N, ne) => {
43999
43999
  const K = !!ne && h.current.length > 0 && N.length > 0;
44000
- h.current = N, te(K);
44000
+ h.current = N, se(K);
44001
44001
  },
44002
44002
  setDomOrder: (N) => {
44003
44003
  m.current != N && (m.current = N, V(!1));
@@ -44045,7 +44045,7 @@ var RA = 1e3, xA = class {
44045
44045
  const _ = () => /* @__PURE__ */ $.createElement("div", { className: S, ref: F, role: "presentation" }, p.map((V) => /* @__PURE__ */ $.createElement(zh, { rowCtrl: V, containerType: i.type, key: V.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), [V, te] = A("ag-layout-normal"), re = O();
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), [V, se] = A("ag-layout-normal"), re = O();
44049
44049
  re.current || (re.current = new un(() => N.current));
44050
44050
  const N = O(null), ne = O(null), K = O(null), q = O(null), X = O(null), J = O(null), Z = O(null), ie = O([]), G = O([]);
44051
44051
  qs(" AG Grid Body ", N), qs(" AG Pinned Top ", ne), qs(" AG Sticky Top ", K), qs(" AG Middle ", J), qs(" AG Pinned Bottom ", Z);
@@ -44084,7 +44084,7 @@ var RA = 1e3, xA = class {
44084
44084
  setTopInvisible: R,
44085
44085
  setBottomInvisible: E,
44086
44086
  setColumnMovingCss: (Oe, ot) => re.current.toggleCss(Oe, ot),
44087
- updateLayoutClasses: te,
44087
+ updateLayoutClasses: se,
44088
44088
  setAlwaysVerticalScrollClass: k,
44089
44089
  setPinnedTopBottomOverflowY: P,
44090
44090
  setCellSelectableCss: (Oe, ot) => _(ot ? Oe : null),
@@ -44268,8 +44268,8 @@ var RA = 1e3, xA = class {
44268
44268
  },
44269
44269
  updateLayoutClasses: o,
44270
44270
  getFocusableContainers: () => {
44271
- const V = [], te = p.current?.querySelector(".ag-root");
44272
- te && V.push({ getGui: () => te });
44271
+ const V = [], se = p.current?.querySelector(".ag-root");
44272
+ se && V.push({ getGui: () => se });
44273
44273
  for (const re of S.current)
44274
44274
  re.isDisplayed() && V.push(re);
44275
44275
  return V;
@@ -44285,7 +44285,7 @@ var RA = 1e3, xA = class {
44285
44285
  return;
44286
44286
  const _ = [], {
44287
44287
  watermarkSelector: V,
44288
- paginationSelector: te,
44288
+ paginationSelector: se,
44289
44289
  sideBarSelector: re,
44290
44290
  statusBarSelector: N,
44291
44291
  gridHeaderDropZonesSelector: ne
@@ -44302,8 +44302,8 @@ var RA = 1e3, xA = class {
44302
44302
  const J = e.createBean(new X()), Z = J.getGui();
44303
44303
  return H.insertAdjacentElement("beforeend", Z), K.push(Z), _.push(J), J;
44304
44304
  };
44305
- if (N && q(N.component), te) {
44306
- const X = q(te.component);
44305
+ if (N && q(N.component), se) {
44306
+ const X = q(se.component);
44307
44307
  b.current = X, S.current.push(X);
44308
44308
  }
44309
44309
  return V && q(V.component), () => {
@@ -44716,7 +44716,7 @@ const hk = ee(
44716
44716
  ]
44717
44717
  }), V = UC(_, {
44718
44718
  enabled: i.includes(Lt.Click) && !n
44719
- }), te = lg(_, {
44719
+ }), se = lg(_, {
44720
44720
  enabled: i.includes(Lt.Hover) && !n,
44721
44721
  move: !1,
44722
44722
  restMs: 40,
@@ -44731,7 +44731,7 @@ const hk = ee(
44731
44731
  }
44732
44732
  }), N = Ec(_, { role: "menu" }), { getReferenceProps: ne, getFloatingProps: K } = Dc([
44733
44733
  V,
44734
- te,
44734
+ se,
44735
44735
  re,
44736
44736
  N
44737
44737
  ]), q = T(
@@ -45044,7 +45044,7 @@ const dC = ({
45044
45044
  wrapperBorder: S
45045
45045
  }),
45046
45046
  [p, S]
45047
- ), te = T((D) => {
45047
+ ), se = T((D) => {
45048
45048
  D.api.sizeColumnsToFit(), x(Sl);
45049
45049
  }, []), re = T(
45050
45050
  (D) => {
@@ -45233,7 +45233,7 @@ const dC = ({
45233
45233
  autoSizeStrategy: { type: "fitGridWidth" },
45234
45234
  columnDefs: J,
45235
45235
  defaultColDef: Z,
45236
- onGridSizeChanged: te,
45236
+ onGridSizeChanged: se,
45237
45237
  onGridReady: ie,
45238
45238
  loading: b,
45239
45239
  suppressCellFocus: !0,
@@ -45704,8 +45704,8 @@ const _h = () => typeof window < "u" && window.innerWidth < 640, Uh = () => {
45704
45704
  we(() => {
45705
45705
  const _ = M.current;
45706
45706
  if (!_) return;
45707
- const V = (te) => {
45708
- te.preventDefault();
45707
+ const V = (se) => {
45708
+ se.preventDefault();
45709
45709
  };
45710
45710
  return _.addEventListener("wheel", V, { passive: !1 }), () => {
45711
45711
  _.removeEventListener("wheel", V);
@@ -45716,8 +45716,8 @@ const _h = () => typeof window < "u" && window.innerWidth < 640, Uh = () => {
45716
45716
  }, H = (_) => {
45717
45717
  const V = _.currentTarget.value;
45718
45718
  if (F && V !== "") {
45719
- const te = parseFloat(V);
45720
- if (isNaN(te) && V !== "-" && V !== "." || !isNaN(te) && (p !== void 0 && te < p || f !== void 0 && te > f))
45719
+ const se = parseFloat(V);
45720
+ if (isNaN(se) && V !== "-" && V !== "." || !isNaN(se) && (p !== void 0 && se < p || f !== void 0 && se > f))
45721
45721
  return;
45722
45722
  }
45723
45723
  g?.(V || void 0);
@@ -46674,7 +46674,7 @@ const r8 = ({
46674
46674
  }) => {
46675
46675
  const F = Ac(), [P, H] = A(!1), [_, V] = A(
46676
46676
  E && l || ""
46677
- ), te = O(null), re = i !== void 0, [N, ne] = A(o), K = re ? i : N, q = B(() => t ? Array.isArray(K) ? K : [] : typeof K == "string" ? [K] : [], [K, t]), X = B(() => {
46677
+ ), se = O(null), re = i !== void 0, [N, ne] = A(o), K = re ? i : N, q = B(() => t ? Array.isArray(K) ? K : [] : typeof K == "string" ? [K] : [], [K, t]), X = B(() => {
46678
46678
  const U = _.trim().toLowerCase();
46679
46679
  return U ? e.filter((ye) => ye.label.toLowerCase().includes(U)) : e;
46680
46680
  }, [e, _]);
@@ -46724,7 +46724,7 @@ const r8 = ({
46724
46724
  }, Fe = q.length > 0;
46725
46725
  we(() => {
46726
46726
  P && E && !t && !C && requestAnimationFrame(() => {
46727
- const U = te.current;
46727
+ const U = se.current;
46728
46728
  if (!U) return;
46729
46729
  U.focus();
46730
46730
  const ye = U.value?.length ?? 0;
@@ -46925,7 +46925,7 @@ const r8 = ({
46925
46925
  C || E && !t && (De(), U.preventDefault());
46926
46926
  },
46927
46927
  onClick: () => {
46928
- C || (H((U) => !U), E && !t && (De(), te.current?.focus()));
46928
+ C || (H((U) => !U), E && !t && (De(), se.current?.focus()));
46929
46929
  },
46930
46930
  children: [
46931
46931
  E && !t ? /* @__PURE__ */ v("div", { className: "flex min-w-0 items-center gap-2 text-primary flex-1", children: /* @__PURE__ */ v(
@@ -46944,7 +46944,7 @@ const r8 = ({
46944
46944
  U.stopPropagation();
46945
46945
  },
46946
46946
  className: "bg-transparent outline-none w-full dial-small",
46947
- ref: te,
46947
+ ref: se,
46948
46948
  disabled: C,
46949
46949
  "aria-disabled": C
46950
46950
  }
@@ -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 V = Array.isArray(H) && H.length > 0 && H.some((ie) => ie.nodeType === Ve.FOLDER || t), te = b.has(k), re = n === k, N = i.has(k), ne = d === k, K = 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) ?? [];
48146
+ const V = 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, K = 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,
@@ -48180,7 +48180,7 @@ const $r = ({
48180
48180
  ...W8,
48181
48181
  className: ee(
48182
48182
  "flex-shrink-0",
48183
- te && "rotate-90 transition-all",
48183
+ se && "rotate-90 transition-all",
48184
48184
  K && !V && "text-transparent"
48185
48185
  )
48186
48186
  }
@@ -48225,7 +48225,7 @@ const $r = ({
48225
48225
  )
48226
48226
  }
48227
48227
  ),
48228
- te && H && R(H, E + 1)
48228
+ se && H && R(H, E + 1)
48229
48229
  ] }) }, `${k}-children`);
48230
48230
  });
48231
48231
  return /* @__PURE__ */ v("div", { className: "flex-1 w-full h-full overflow-y-auto", children: e.length > 0 ? R(e, 0) : /* @__PURE__ */ v(
@@ -48841,7 +48841,7 @@ const sL = ({ getSelectionLabel: e, onClearSelection: t, actions: s, selectedCou
48841
48841
  ]
48842
48842
  ), V = T(() => {
48843
48843
  M(), P();
48844
- }, [M, P]), te = T(() => {
48844
+ }, [M, P]), se = T(() => {
48845
48845
  k(), P();
48846
48846
  }, [k, P]), re = T(
48847
48847
  (ie) => {
@@ -48893,7 +48893,7 @@ const sL = ({ getSelectionLabel: e, onClearSelection: t, actions: s, selectedCou
48893
48893
  openConflictResolution: E,
48894
48894
  closeConflictResolution: x,
48895
48895
  handleConflictReplace: V,
48896
- handleConflictDuplicate: te,
48896
+ handleConflictDuplicate: se,
48897
48897
  handleConflictDecideForEach: re
48898
48898
  };
48899
48899
  }, rL = ({
@@ -49068,7 +49068,7 @@ const sL = ({ getSelectionLabel: e, onClearSelection: t, actions: s, selectedCou
49068
49068
  ]
49069
49069
  ), V = T(() => {
49070
49070
  E(), F();
49071
- }, [E, F]), te = T(() => {
49071
+ }, [E, F]), se = T(() => {
49072
49072
  M(), F();
49073
49073
  }, [M, F]), re = T(
49074
49074
  (G) => {
@@ -49175,7 +49175,7 @@ const sL = ({ getSelectionLabel: e, onClearSelection: t, actions: s, selectedCou
49175
49175
  openUploadConflictResolution: x,
49176
49176
  closeUploadConflictResolution: N,
49177
49177
  handleUploadConflictReplace: V,
49178
- handleUploadConflictDuplicate: te,
49178
+ handleUploadConflictDuplicate: se,
49179
49179
  handleUploadConflictDecideForEach: re
49180
49180
  };
49181
49181
  }, TC = jr(void 0), uL = {
@@ -49443,12 +49443,12 @@ const pL = ({
49443
49443
  onCreateFolderValidate: H,
49444
49444
  folderCreationValidationMessages: _
49445
49445
  }) => {
49446
- const [V, te] = A(
49446
+ const [V, se] = A(
49447
49447
  /* @__PURE__ */ new Map()
49448
49448
  ), re = B(
49449
49449
  () => new Set(V.keys()),
49450
49450
  [V]
49451
- ), N = T(() => te(/* @__PURE__ */ new Map()), []), { currentPath: ne, setCurrentPath: K, handlePathChange: q } = rL({
49451
+ ), N = T(() => se(/* @__PURE__ */ new Map()), []), { currentPath: ne, setCurrentPath: K, handlePathChange: q } = rL({
49452
49452
  path: o,
49453
49453
  onPathChange: m,
49454
49454
  onSelectionClear: N
@@ -49633,7 +49633,7 @@ const pL = ({
49633
49633
  q(ke.path);
49634
49634
  },
49635
49635
  [q]
49636
- ), se = T(
49636
+ ), te = T(
49637
49637
  (ke) => {
49638
49638
  q(ke);
49639
49639
  },
@@ -49690,7 +49690,7 @@ const pL = ({
49690
49690
  setIsTreeCollapsed: oe,
49691
49691
  selectedIds: re,
49692
49692
  selectedFiles: V,
49693
- setSelectedFiles: te,
49693
+ setSelectedFiles: se,
49694
49694
  clearSelection: N,
49695
49695
  currentFolder: Se,
49696
49696
  gridRows: Mn,
@@ -49718,7 +49718,7 @@ const pL = ({
49718
49718
  itemsToDelete: Sa,
49719
49719
  handlePathChange: q,
49720
49720
  handleTreeItemClick: Ta,
49721
- handleBreadcrumbItemClick: se,
49721
+ handleBreadcrumbItemClick: te,
49722
49722
  handleSearchChange: Te,
49723
49723
  handleTableRowClick: Ri,
49724
49724
  onTableFileClick: C,
@@ -49832,9 +49832,7 @@ const IC = ({
49832
49832
  "Do you want to delete the following",
49833
49833
  " ",
49834
49834
  /* @__PURE__ */ v("span", { className: "text-primary", children: t.length }),
49835
- " item",
49836
- t.length !== 1 ? "s" : "",
49837
- "?"
49835
+ " items?"
49838
49836
  ] }) }),
49839
49837
  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
49838
  /* @__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)) }),
@@ -50118,7 +50116,7 @@ const IC = ({
50118
50116
  )
50119
50117
  ), [H, _] = A(
50120
50118
  void 0
50121
- ), V = f ? r : a, te = /* @__PURE__ */ W(Ke, { children: [
50119
+ ), V = f ? r : a, se = /* @__PURE__ */ W(Ke, { children: [
50122
50120
  "Item with the name ",
50123
50121
  /* @__PURE__ */ W("span", { className: "text-primary", children: [
50124
50122
  '"',
@@ -50127,7 +50125,7 @@ const IC = ({
50127
50125
  ] }),
50128
50126
  " ",
50129
50127
  "already exists in this destination."
50130
- ] }), re = `${n.length} items with the same names already exist in this destination.`, N = l ?? (f ? te : re), ne = B(
50128
+ ] }), re = `${n.length} items with the same names already exist in this destination.`, N = l ?? (f ? se : re), ne = B(
50131
50129
  () => [
50132
50130
  {
50133
50131
  id: ut.Replace,
@@ -50491,7 +50489,7 @@ const IL = ({
50491
50489
  handleCloseDestinationFolderPopup: H,
50492
50490
  openDestinationFolderPopup: _,
50493
50491
  destinationFolderMode: V,
50494
- handleSetCopiedFiles: te,
50492
+ handleSetCopiedFiles: se,
50495
50493
  handleSetMovedFiles: re,
50496
50494
  handleDuplicate: N,
50497
50495
  handleCopyTo: ne,
@@ -50542,9 +50540,9 @@ const IL = ({
50542
50540
  containerClassName: wn = T8,
50543
50541
  additionalButtons: bn,
50544
50542
  ...Sn
50545
- } = o ?? {}, [Si, yn] = A(Ra), { renameTriggerView: yi, onGridRename: xa, onTreeRename: fo } = AL({ onRename: de }), mo = O(null), Rn = (se) => {
50543
+ } = o ?? {}, [Si, yn] = A(Ra), { renameTriggerView: yi, onGridRename: xa, onTreeRename: fo } = AL({ onRename: de }), mo = O(null), Rn = (te) => {
50546
50544
  mo.current === null && (mo.current = requestAnimationFrame(() => {
50547
- yn(se), mo.current = null;
50545
+ yn(te), mo.current = null;
50548
50546
  }));
50549
50547
  }, {
50550
50548
  columnDefs: Co,
@@ -50568,15 +50566,15 @@ const IL = ({
50568
50566
  headerName: "Name",
50569
50567
  flex: 1,
50570
50568
  minWidth: 200,
50571
- cellRenderer: (se) => {
50572
- const Te = se.data.nodeType;
50573
- if (se.data?.isTemporary && se.data.id === Bt)
50569
+ cellRenderer: (te) => {
50570
+ const Te = te.data.nodeType;
50571
+ if (te.data?.isTemporary && te.data.id === Bt)
50574
50572
  return /* @__PURE__ */ v(
50575
50573
  $r,
50576
50574
  {
50577
50575
  name: "",
50578
50576
  type: $t.Folder,
50579
- elementId: `new-folder-${se.data.id}`,
50577
+ elementId: `new-folder-${te.data.id}`,
50580
50578
  editing: !0,
50581
50579
  iconSize: Ls,
50582
50580
  validate: Oe,
@@ -50588,14 +50586,14 @@ const IL = ({
50588
50586
  ])
50589
50587
  }
50590
50588
  );
50591
- if (yi === Yi.Grid && D === se.data?.path && j && se.data) {
50589
+ if (yi === Yi.Grid && D === te.data?.path && j && te.data) {
50592
50590
  const Yt = Ee(j);
50593
50591
  return /* @__PURE__ */ v(
50594
50592
  $r,
50595
50593
  {
50596
50594
  name: Yt,
50597
50595
  type: Te === Ve.FOLDER ? $t.Folder : $t.File,
50598
- elementId: `rename-${se.data.id}`,
50596
+ elementId: `rename-${te.data.id}`,
50599
50597
  editing: !0,
50600
50598
  iconSize: Ls,
50601
50599
  validate: (Es) => Fe(Es, j),
@@ -50611,24 +50609,24 @@ const IL = ({
50611
50609
  return nt ? /* @__PURE__ */ v(
50612
50610
  TL,
50613
50611
  {
50614
- id: se.data.id,
50615
- name: se.data.name,
50612
+ id: te.data.id,
50613
+ name: te.data.name,
50616
50614
  nodeType: Te,
50617
- size: se.data.size,
50618
- updatedAt: se.data.updatedAt,
50615
+ size: te.data.size,
50616
+ updatedAt: te.data.updatedAt,
50619
50617
  dateLocale: wo,
50620
50618
  dateOptions: bo
50621
50619
  }
50622
50620
  ) : Te === Ve.FOLDER ? /* @__PURE__ */ v(
50623
50621
  Zc,
50624
50622
  {
50625
- name: se.data.name,
50623
+ name: te.data.name,
50626
50624
  iconSize: Ls
50627
50625
  }
50628
50626
  ) : /* @__PURE__ */ v(
50629
50627
  Yc,
50630
50628
  {
50631
- name: se.data.name,
50629
+ name: te.data.name,
50632
50630
  iconSize: Ls
50633
50631
  }
50634
50632
  );
@@ -50659,7 +50657,7 @@ const IL = ({
50659
50657
  headerName: "Author",
50660
50658
  width: 200,
50661
50659
  suppressSizeToFit: !0,
50662
- cellRenderer: (se) => se.data.author
50660
+ cellRenderer: (te) => te.data.author
50663
50661
  }
50664
50662
  ], [
50665
50663
  wo,
@@ -50677,13 +50675,13 @@ const IL = ({
50677
50675
  Ce,
50678
50676
  Ee
50679
50677
  ]), So = T(
50680
- (se) => {
50678
+ (te) => {
50681
50679
  const Te = [];
50682
50680
  return o?.actionLabels && (o.actionLabels[pe.Duplicate] && Te.push({
50683
50681
  key: "duplicate",
50684
50682
  label: o.actionLabels[pe.Duplicate],
50685
50683
  icon: /* @__PURE__ */ v(Oc, { ...he, className: "text-secondary" }),
50686
- onClick: () => N([se])
50684
+ onClick: () => N([te])
50687
50685
  }), o.actionLabels[pe.Copy] && Te.push({
50688
50686
  key: Je.Copy,
50689
50687
  label: o.actionLabels[pe.Copy],
@@ -50696,7 +50694,7 @@ const IL = ({
50696
50694
  }
50697
50695
  ),
50698
50696
  onClick: () => {
50699
- te([se]), P(Je.Copy);
50697
+ se([te]), P(Je.Copy);
50700
50698
  }
50701
50699
  }), o.actionLabels[pe.Move] && Te.push({
50702
50700
  key: Je.Move,
@@ -50710,13 +50708,13 @@ const IL = ({
50710
50708
  }
50711
50709
  ),
50712
50710
  onClick: () => {
50713
- re([se]), P(Je.Move);
50711
+ re([te]), P(Je.Move);
50714
50712
  }
50715
50713
  }), o.actionLabels[pe.Download] && Te.push({
50716
50714
  key: "download",
50717
50715
  label: o.actionLabels[pe.Download],
50718
50716
  icon: /* @__PURE__ */ v(Nc, { ...he, className: "text-secondary" }),
50719
- onClick: () => q([se])
50717
+ onClick: () => q([te])
50720
50718
  }), o.actionLabels[pe.Rename] && Te.push({
50721
50719
  key: "rename",
50722
50720
  label: o.actionLabels[pe.Rename],
@@ -50727,34 +50725,34 @@ const IL = ({
50727
50725
  className: "text-secondary"
50728
50726
  }
50729
50727
  ),
50730
- onClick: () => fo(se.path)
50728
+ onClick: () => fo(te.path)
50731
50729
  }), o.actionLabels[pe.Delete] && Te.push({
50732
50730
  key: "delete",
50733
50731
  label: o.actionLabels[pe.Delete],
50734
50732
  icon: /* @__PURE__ */ v(ln, { ...he, className: "text-secondary" }),
50735
- onClick: () => X([se], se.parentPath ?? "")
50733
+ onClick: () => X([te], te.parentPath ?? "")
50736
50734
  })), Te;
50737
50735
  },
50738
50736
  [
50739
50737
  q,
50740
50738
  N,
50741
50739
  P,
50742
- te,
50740
+ se,
50743
50741
  re,
50744
50742
  fo,
50745
50743
  X,
50746
50744
  o
50747
50745
  ]
50748
50746
  ), Da = B(() => {
50749
- const se = /* @__PURE__ */ new Map();
50747
+ const te = /* @__PURE__ */ new Map();
50750
50748
  return S.forEach((Te, Ri) => {
50751
50749
  const Yt = w.find((Es) => Es.path === Ri);
50752
- Yt && se.set(Ri, Yt);
50753
- }), se;
50750
+ Yt && te.set(Ri, Yt);
50751
+ }), te;
50754
50752
  }, [S, w]), yo = T(
50755
- (se) => {
50753
+ (te) => {
50756
50754
  const Te = /* @__PURE__ */ new Map();
50757
- se.forEach((Ri, Yt) => {
50755
+ te.forEach((Ri, Yt) => {
50758
50756
  const Es = pi(t, Yt);
50759
50757
  Es && Te.set(Yt, Es);
50760
50758
  }), y(Te);
@@ -50764,11 +50762,11 @@ const IL = ({
50764
50762
  selectedFiles: S,
50765
50763
  actionLabels: l?.actionLabels,
50766
50764
  onDuplicate: N,
50767
- onCopy: (se) => {
50768
- te(se), P(Je.Copy);
50765
+ onCopy: (te) => {
50766
+ se(te), P(Je.Copy);
50769
50767
  },
50770
- onMove: (se) => {
50771
- re(se), P(Je.Move);
50768
+ onMove: (te) => {
50769
+ re(te), P(Je.Move);
50772
50770
  },
50773
50771
  onDownload: q,
50774
50772
  onDelete: X,
@@ -50885,29 +50883,29 @@ const IL = ({
50885
50883
  m
50886
50884
  ]), Dn = PL({
50887
50885
  actionLabels: r?.actionLabels,
50888
- onDuplicate: (se) => N([se]),
50889
- onCopy: (se) => {
50890
- te([se]), P(Je.Copy);
50886
+ onDuplicate: (te) => N([te]),
50887
+ onCopy: (te) => {
50888
+ se([te]), P(Je.Copy);
50891
50889
  },
50892
- onMove: (se) => {
50893
- re([se]), P(Je.Move);
50890
+ onMove: (te) => {
50891
+ re([te]), P(Je.Move);
50894
50892
  },
50895
- onDownload: (se) => q([se]),
50893
+ onDownload: (te) => q([te]),
50896
50894
  onRename: xa,
50897
- onDelete: (se, Te) => X([se], Te)
50895
+ onDelete: (te, Te) => X([te], Te)
50898
50896
  }), Pn = T(
50899
- (se) => {
50900
- const Te = pi(t, se.path);
50897
+ (te) => {
50898
+ const Te = pi(t, te.path);
50901
50899
  return Te ? Dn(Te) : [];
50902
50900
  },
50903
50901
  [t, Dn]
50904
50902
  ), { actionsColumnDef: Ro } = IL({
50905
50903
  getContextMenuItems: Pn
50906
50904
  }), Tn = Co ?? Ea, Mn = B(() => {
50907
- let se = Tn;
50908
- return Co || (se = se.filter(
50905
+ let te = Tn;
50906
+ return Co || (te = te.filter(
50909
50907
  (Te) => Te.colId && xn.includes(Te.colId)
50910
- )), nt && (se = se.slice(0, 1)), se.push(Ro), vo ? se : se.map((Te) => ({
50908
+ )), nt && (te = te.slice(0, 1)), te.push(Ro), vo ? te : te.map((Te) => ({
50911
50909
  ...Te,
50912
50910
  filter: !1,
50913
50911
  floatingFilter: !1
@@ -50920,8 +50918,8 @@ const IL = ({
50920
50918
  Co,
50921
50919
  xn
50922
50920
  ]), Ta = T(
50923
- (se) => {
50924
- se.colDef.colId === "__select" || se.colDef.colId === Wt.Actions || D && se.data?.path === D || se.data?.isTemporary || se.data && F(se.data);
50921
+ (te) => {
50922
+ te.colDef.colId === "__select" || te.colDef.colId === Wt.Actions || D && te.data?.path === D || te.data?.isTemporary || te.data && F(te.data);
50925
50923
  },
50926
50924
  [D, F]
50927
50925
  );
@@ -50953,7 +50951,7 @@ const IL = ({
50953
50951
  Q8,
50954
50952
  {
50955
50953
  ...n ?? {},
50956
- makeHref: (se) => se.join("/"),
50954
+ makeHref: (te) => te.join("/"),
50957
50955
  path: C,
50958
50956
  onItemClick: E,
50959
50957
  rootItemPath: s?.path,
@@ -50978,7 +50976,7 @@ const IL = ({
50978
50976
  {
50979
50977
  columnDefs: Mn,
50980
50978
  rowData: w,
50981
- getRowId: (se) => se.path,
50979
+ getRowId: (te) => te.path,
50982
50980
  loading: i,
50983
50981
  getContextMenuItems: Pn,
50984
50982
  withoutHeaderBorders: nt,
@@ -50994,7 +50992,7 @@ const IL = ({
50994
50992
  headerHeight: El,
50995
50993
  rowHeight: El,
50996
50994
  ...nt ? {
50997
- getRowHeight: (se) => se.data?.nodeType === Ve.FOLDER ? El : N8
50995
+ getRowHeight: (te) => te.data?.nodeType === Ve.FOLDER ? El : N8
50998
50996
  } : {}
50999
50997
  },
51000
50998
  selectedRows: Da,
@@ -51011,14 +51009,11 @@ const IL = ({
51011
51009
  /* @__PURE__ */ v(
51012
51010
  FL,
51013
51011
  {
51012
+ ...c,
51014
51013
  open: ie,
51015
51014
  itemsToDelete: G,
51016
51015
  onClose: J,
51017
- onConfirm: Z,
51018
- cancelLabel: c?.cancelLabel,
51019
- confirmLabel: c?.confirmLabel,
51020
- titleRenderer: c?.titleRenderer,
51021
- contentRenderer: c?.contentRenderer
51016
+ onConfirm: Z
51022
51017
  }
51023
51018
  ),
51024
51019
  /* @__PURE__ */ v(
@@ -51028,8 +51023,8 @@ const IL = ({
51028
51023
  open: _,
51029
51024
  onClose: H,
51030
51025
  onConfirm: () => {
51031
- const se = d?.destinationFolderPath ?? "/";
51032
- V === Je.Copy ? ne(se) : K(se, C ?? "/"), H();
51026
+ const te = d?.destinationFolderPath ?? "/";
51027
+ V === Je.Copy ? ne(te) : K(te, C ?? "/"), H();
51033
51028
  },
51034
51029
  mode: V,
51035
51030
  items: t,
@@ -51037,7 +51032,11 @@ const IL = ({
51037
51032
  gridOptions: { columnDefs: Mn, loading: i },
51038
51033
  onUploadFiles: ge,
51039
51034
  onValidateUpload: Se,
51040
- maxFileSize: Qe
51035
+ maxFileSize: Qe,
51036
+ path: d?.destinationFolderPath || C,
51037
+ onPathChange: (te) => {
51038
+ d?.setDestinationFolderPath?.(te);
51039
+ }
51041
51040
  }
51042
51041
  ),
51043
51042
  /* @__PURE__ */ v(