@ahrowe/ui 0.2.5 → 0.2.7

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/index.mjs CHANGED
@@ -6,7 +6,7 @@ import { Fragment as U, jsx as W, jsxs as G } from "react/jsx-runtime";
6
6
  import { createPortal as re } from "react-dom";
7
7
  import ie from "downshift";
8
8
  import ae from "@mona-health/react-input-mask";
9
- import { DndContext as K, DragOverlay as oe, PointerSensor as se, closestCorners as q, useDroppable as ce, useSensor as le, useSensors as ue } from "@dnd-kit/core";
9
+ import { DndContext as oe, DragOverlay as se, PointerSensor as K, closestCorners as ce, useDroppable as le, useSensor as q, useSensors as ue } from "@dnd-kit/core";
10
10
  import { SortableContext as de, arrayMove as fe, useSortable as pe, verticalListSortingStrategy as me } from "@dnd-kit/sortable";
11
11
  import { CSS as he } from "@dnd-kit/utilities";
12
12
  import { NumericFormat as ge } from "react-number-format";
@@ -875,183 +875,183 @@ var Y = {
875
875
  }({});
876
876
  //#endregion
877
877
  //#region package/common/input/input.tsx
878
- function ut({ name: t = "", label: n = "", errorMessage: r = "", isValid: o = !0, className: s = "", style: c, value: l = "", icon: u = null, onChange: h = () => {}, onFocus: g = null, onBlur: _ = null, onMouseEnter: v = null, onMouseLeave: y = null, isUppercase: b = !1, isRequired: x = !1, tabIndex: S = 0, type: C = void 0, isRow: w = !1, onIconClick: T = null, parse: E = null, formValidator: D = null, autoFocus: j = !1, suffix: M = null, upperRightLabel: N = null, labelInBorder: P = !1, showCancel: F = !1, onClearClicked: R, min: B = null, max: V = null, placeholder: ee = "", useMatLabelStyle: te = !0, autoComplete: ne = null, onClick: U = () => null, readOnly: re = !1, customInput: ie, alwaysShowCancel: ae = !1, multiline: K = !1, rows: oe, autoResize: se = !1, classNames: q, styles: ce, disabled: le = !1, ...ue }) {
879
- let [de, fe] = f(!1), [pe, me] = f(!1), [he, ge] = f(!1), [, _e] = f(0), ve = d(null), ye = d(D), be = i(() => {
880
- let e = ve.current;
881
- !e || !se || (e.style.height = "auto", e.style.height = `${e.scrollHeight}px`);
882
- }, [se]);
878
+ function ut({ name: t = "", id: n, label: r = "", errorMessage: s = "", isValid: c = !0, className: l = "", style: u, value: h = "", icon: g = null, onChange: _ = () => {}, onFocus: v = null, onBlur: y = null, onMouseEnter: b = null, onMouseLeave: x = null, isUppercase: S = !1, isRequired: C = !1, tabIndex: w = 0, type: T = void 0, isRow: E = !1, onIconClick: D = null, parse: j = null, formValidator: M = null, autoFocus: N = !1, suffix: P = null, upperRightLabel: F = null, labelInBorder: R = !1, showCancel: B = !1, onClearClicked: V, min: ee = null, max: te = null, placeholder: ne = "", useMatLabelStyle: U = !0, autoComplete: re = null, onClick: ie = () => null, readOnly: ae = !1, customInput: oe, alwaysShowCancel: se = !1, multiline: K = !1, rows: ce, autoResize: le = !1, classNames: q, styles: ue, disabled: de = !1, ...fe }) {
879
+ let [pe, me] = f(!1), [he, ge] = f(!1), [_e, ve] = f(!1), [, ye] = f(0), be = d(null), xe = d(M), Se = o(), Ce = n || t || Se, J = i(() => {
880
+ let e = be.current;
881
+ !e || !le || (e.style.height = "auto", e.style.height = `${e.scrollHeight}px`);
882
+ }, [le]);
883
883
  a(() => {
884
884
  setTimeout(() => {
885
- fe(!1), me(!1);
886
- }, 1), be();
885
+ me(!1), ge(!1);
886
+ }, 1), J();
887
887
  }, []), a(() => {
888
- j && ve.current && setTimeout(() => {
889
- ve.current?.focus();
888
+ N && be.current && setTimeout(() => {
889
+ be.current?.focus();
890
890
  }, 1);
891
- }, [j]), a(() => {
892
- ye.current = D;
893
- let e = ye.current;
891
+ }, [N]), a(() => {
892
+ xe.current = M;
893
+ let e = xe.current;
894
894
  if (!e) return;
895
- e.label = n ?? "", e.validate();
896
- let t = () => _e((e) => e + 1);
895
+ e.label = r ?? "", e.validate();
896
+ let t = () => ye((e) => e + 1);
897
897
  return e.registerOnUpdateListener(t), () => {
898
898
  e.removeOnUpdateListener(t);
899
899
  };
900
- }, [D, n]);
901
- let xe = () => D ? D.touched && D.hasError() : !o || !!r, Se = () => !!(x || D && D.validators.find((e) => e.validatorId === "required")), Ce = (e) => {
900
+ }, [M, r]);
901
+ let we = () => M ? M.touched && M.hasError() : !c || !!s, Te = () => !!(C || M && M.validators.find((e) => e.validatorId === "required")), Ee = (e) => {
902
+ ge(!0), b && b(e);
903
+ }, De = (e) => {
904
+ ge(!1), x && x(e);
905
+ }, Oe = (e) => {
902
906
  me(!0), v && v(e);
903
- }, J = (e) => {
904
- me(!1), y && y(e);
905
- }, we = (e) => {
906
- fe(!0), g && g(e);
907
- }, Te = (e) => {
908
- ye.current && (ye.current.touched = !0), fe(!1), _ && _(e);
909
- }, Ee = (e) => {
907
+ }, ke = (e) => {
908
+ xe.current && (xe.current.touched = !0), me(!1), y && y(e);
909
+ }, Ae = (e) => {
910
910
  let t, n;
911
- typeof e == "string" ? n = e : (t = e, n = e.target.value), E && (n = E(n)), D && D.set(n), h && h(n, t), be();
912
- }, De = () => {
913
- if (C !== "email") return C === "password" && he ? "text" : C;
914
- }, Oe = C && C !== lt.Date && C !== lt.Iban && C !== lt.HasNoIcon, ke = Oe && !te && (C === lt.Email || C === lt.Phone || C === lt.Search), Ae = {
911
+ typeof e == "string" ? n = e : (t = e, n = e.target.value), j && (n = j(n)), M && M.set(n), _ && _(n, t), J();
912
+ }, je = () => {
913
+ if (T !== "email") return T === "password" && _e ? "text" : T;
914
+ }, Me = T && T !== lt.Date && T !== lt.Iban && T !== lt.HasNoIcon, Ne = Me && !U && (T === lt.Email || T === lt.Phone || T === lt.Search), Pe = {
915
915
  className: p(Y.inputFieldIcon, {
916
- [Y.inputFieldIconNotClickable]: !T,
917
- [Y.inputFieldIconLeft]: ke
916
+ [Y.inputFieldIconNotClickable]: !D,
917
+ [Y.inputFieldIconLeft]: Ne
918
918
  }),
919
- onClick: T ?? void 0
920
- }, je = u, Me = je ? e.cloneElement(je, {
921
- className: p(Y.inputFieldIcon, { [Y.inputFieldIconNotClickable]: !T && !je.props.onClick }, je.props.className),
922
- onClick: T ?? je.props.onClick
923
- }) : null, Ne = !!u, Pe = {
919
+ onClick: D ?? void 0
920
+ }, Fe = g, Ie = Fe ? e.cloneElement(Fe, {
921
+ className: p(Y.inputFieldIcon, { [Y.inputFieldIconNotClickable]: !D && !Fe.props.onClick }, Fe.props.className),
922
+ onClick: D ?? Fe.props.onClick
923
+ }) : null, Le = !!g, Re = {
924
924
  className: p(Y.inputFieldIcon, Y.inputFieldIconPassword),
925
- onClick: () => ge(!he)
926
- }, Fe = xe(), Ie = n;
927
- Ie && Se() && (Ie = `${Ie} *`);
928
- let Le = D ? D.value : l, Re = te && (de || Le || C === lt.Date);
925
+ onClick: () => ve(!_e)
926
+ }, ze = we(), Be = r;
927
+ Be && Te() && (Be = `${Be} *`);
928
+ let Ve = M ? M.value : h, He = U && (pe || Ve || T === lt.Date);
929
929
  return /* @__PURE__ */ G("div", {
930
- className: p(Y.input, s),
931
- style: c,
930
+ className: p(Y.input, l),
931
+ style: u,
932
932
  children: [
933
933
  /* @__PURE__ */ G("label", {
934
- htmlFor: t,
934
+ htmlFor: Ce,
935
935
  className: p(Y.inputLabel, q?.label, {
936
- [Y.inputLabelColumn]: !w,
937
- [Y.inputLabelInBorder]: P
936
+ [Y.inputLabelColumn]: !E,
937
+ [Y.inputLabelInBorder]: R
938
938
  }),
939
- style: ce?.label,
939
+ style: ue?.label,
940
940
  children: [
941
- Ie && !te ? /* @__PURE__ */ G("span", {
941
+ Be && !U ? /* @__PURE__ */ G("span", {
942
942
  className: Y.inputLabelText,
943
- children: [`${Ie} `, Se() ? /* @__PURE__ */ W("span", {
943
+ children: [`${Be} `, Te() ? /* @__PURE__ */ W("span", {
944
944
  className: p(Y.isRequired),
945
945
  children: "\xA0 *"
946
946
  }) : null]
947
947
  }) : null,
948
- N && /* @__PURE__ */ W("div", {
948
+ F && /* @__PURE__ */ W("div", {
949
949
  className: p(Y.inputUpperRightLabel, q?.upperRightLabel),
950
- style: ce?.upperRightLabel,
951
- children: N
950
+ style: ue?.upperRightLabel,
951
+ children: F
952
952
  }),
953
953
  /* @__PURE__ */ G("div", {
954
954
  className: p(Y.inputContainer, { [Y.inputContainerMultiline]: K }, q?.container),
955
- style: ce?.container,
956
- onMouseEnter: Ce,
957
- onMouseLeave: J,
955
+ style: ue?.container,
956
+ onMouseEnter: Ee,
957
+ onMouseLeave: De,
958
958
  children: [
959
- Me,
960
- e.cloneElement(ie || W(K ? "textarea" : "input", {}), {
961
- ...ue,
959
+ Ie,
960
+ e.cloneElement(oe || W(K ? "textarea" : "input", {}), {
961
+ ...fe,
962
962
  className: p(Y.inputField, {
963
- [Y.inputFieldUppercase]: b,
964
- [Y.inputFieldDate]: C === lt.Date,
965
- [Y.inputFieldDefault]: C !== lt.Date,
966
- [Y.inputFieldWithIcon]: Oe || Ne,
967
- [Y.inputFieldWithIconLeft]: ke,
963
+ [Y.inputFieldUppercase]: S,
964
+ [Y.inputFieldDate]: T === lt.Date,
965
+ [Y.inputFieldDefault]: T !== lt.Date,
966
+ [Y.inputFieldWithIcon]: Me || Le,
967
+ [Y.inputFieldWithIconLeft]: Ne,
968
968
  [Y.inputFieldMultiline]: K,
969
- [Y.inputFieldMultilineAutoResize]: K && se
969
+ [Y.inputFieldMultilineAutoResize]: K && le
970
970
  }, q?.input),
971
971
  name: t,
972
- id: t,
973
- value: D ? D.value : l,
974
- tabIndex: S,
975
- ref: ie ? void 0 : ve,
976
- onChange: Ee,
977
- onFocus: we,
978
- onBlur: Te,
979
- placeholder: te ? "" : ee,
980
- autoComplete: ne,
981
- onClick: U,
982
- readOnly: re,
983
- disabled: le,
972
+ id: Ce,
973
+ value: M ? M.value : h,
974
+ tabIndex: w,
975
+ ref: oe ? void 0 : be,
976
+ onChange: Ae,
977
+ onFocus: Oe,
978
+ onBlur: ke,
979
+ placeholder: U ? "" : ne,
980
+ autoComplete: re,
981
+ onClick: ie,
982
+ readOnly: ae,
983
+ disabled: de,
984
984
  ...!K && {
985
- type: De(),
986
- min: B,
987
- max: V
985
+ type: je(),
986
+ min: ee,
987
+ max: te
988
988
  },
989
- ...K && oe !== void 0 && { rows: oe }
989
+ ...K && ce !== void 0 && { rows: ce }
990
990
  }),
991
- M && /* @__PURE__ */ W("div", {
991
+ P && /* @__PURE__ */ W("div", {
992
992
  className: p(Y.inputFieldSuffix, q?.suffix),
993
- style: ce?.suffix,
994
- children: M
993
+ style: ue?.suffix,
994
+ children: P
995
995
  })
996
996
  ]
997
997
  }),
998
998
  /* @__PURE__ */ W("fieldset", {
999
999
  className: p(Y.inputFieldset, q?.fieldset, {
1000
- [Y.inputContainerBorderFocused]: de,
1001
- [Y.inputContainerBorderSearchFocused]: C === lt.Search && (de || l),
1002
- [Y.inputContainerBorderInvalid]: Fe,
1003
- [Y.inputContainerBorderError]: Fe
1000
+ [Y.inputContainerBorderFocused]: pe,
1001
+ [Y.inputContainerBorderSearchFocused]: T === lt.Search && (pe || h),
1002
+ [Y.inputContainerBorderInvalid]: ze,
1003
+ [Y.inputContainerBorderError]: ze
1004
1004
  }),
1005
- style: ce?.fieldset,
1005
+ style: ue?.fieldset,
1006
1006
  children: /* @__PURE__ */ W("legend", {
1007
- className: p(Y.inputFieldsetLegend, { [Y.inputFieldsetLegendActive]: Re }),
1008
- children: /* @__PURE__ */ W("span", { children: Ie })
1007
+ className: p(Y.inputFieldsetLegend, { [Y.inputFieldsetLegendActive]: He }),
1008
+ children: /* @__PURE__ */ W("span", { children: Be })
1009
1009
  })
1010
1010
  }),
1011
- te && n && /* @__PURE__ */ W("div", {
1011
+ U && r && /* @__PURE__ */ W("div", {
1012
1012
  className: p(Y.inputMatLabel, {
1013
- [Y.inputMatLabelFloating]: Re,
1014
- [Y.inputMatLabelMultiline]: K && !Re
1013
+ [Y.inputMatLabelFloating]: He,
1014
+ [Y.inputMatLabelMultiline]: K && !He
1015
1015
  }),
1016
- children: Ie
1016
+ children: Be
1017
1017
  }),
1018
- te && ee && /* @__PURE__ */ W("div", {
1019
- className: p(Y.inputPlaceholder, de && !Le && Y.inputPlaceholderShown, K && Y.inputPlaceholderMultiline),
1020
- children: ee
1018
+ U && ne && /* @__PURE__ */ W("div", {
1019
+ className: p(Y.inputPlaceholder, pe && !Ve && Y.inputPlaceholderShown, K && Y.inputPlaceholderMultiline),
1020
+ children: ne
1021
1021
  }),
1022
1022
  /* @__PURE__ */ W(ct, {
1023
1023
  variant: "error",
1024
- message: D ? D.getCurrentErrorMessage() : r || "",
1025
- isVisible: Fe && (de || pe)
1024
+ message: M ? M.getCurrentErrorMessage() : s || "",
1025
+ isVisible: ze && (pe || he)
1026
1026
  })
1027
1027
  ]
1028
1028
  }),
1029
- C === lt.Phone && /* @__PURE__ */ W(m, {
1029
+ T === lt.Phone && /* @__PURE__ */ W(m, {
1030
1030
  icon: L,
1031
- ...Ae
1031
+ ...Pe
1032
1032
  }),
1033
- C === lt.Email && /* @__PURE__ */ W(m, {
1033
+ T === lt.Email && /* @__PURE__ */ W(m, {
1034
1034
  icon: O,
1035
- ...Ae
1035
+ ...Pe
1036
1036
  }),
1037
- C === lt.Edit && /* @__PURE__ */ W(m, {
1037
+ T === lt.Edit && /* @__PURE__ */ W(m, {
1038
1038
  icon: I,
1039
- ...Ae
1039
+ ...Pe
1040
1040
  }),
1041
- C === lt.Search && /* @__PURE__ */ W(m, {
1041
+ T === lt.Search && /* @__PURE__ */ W(m, {
1042
1042
  icon: z,
1043
- ...Ae
1044
- }),
1045
- C === lt.Password && /* @__PURE__ */ W(m, {
1046
- icon: he ? A : k,
1047
1043
  ...Pe
1048
1044
  }),
1049
- (F && l && (de || pe) || ae) && /* @__PURE__ */ W(m, {
1045
+ T === lt.Password && /* @__PURE__ */ W(m, {
1046
+ icon: _e ? A : k,
1047
+ ...Re
1048
+ }),
1049
+ (B && h && (pe || he) || se) && /* @__PURE__ */ W(m, {
1050
1050
  icon: H,
1051
1051
  className: Y.inputFieldIcon,
1052
- onClick: R ?? void 0,
1053
- onMouseEnter: () => me(!0),
1054
- onMouseLeave: () => me(!1)
1052
+ onClick: V ?? void 0,
1053
+ onMouseEnter: () => ge(!0),
1054
+ onMouseLeave: () => ge(!1)
1055
1055
  })
1056
1056
  ]
1057
1057
  });
@@ -1693,13 +1693,13 @@ function Xt({ errorMessage: e = "", className: t = "", label: n = "", value: r =
1693
1693
  B(!0), b?.(e);
1694
1694
  }, ae = (e) => {
1695
1695
  H.current && (H.current.touched = !0), B(!1), x?.(e);
1696
- }, K = () => k ? k.touched && k.hasError() : !i || !!e, oe = () => !!(s || k?.validators.find((e) => e.validatorId === "required")), se = (e) => {
1696
+ }, oe = () => k ? k.touched && k.hasError() : !i || !!e, se = () => !!(s || k?.validators.find((e) => e.validatorId === "required")), K = (e) => {
1697
1697
  k ? (k.set(e), y?.(k.value, c)) : y?.(e, c);
1698
- }, q = w, ce = k ? k.value : r, le = K();
1698
+ }, ce = w, le = k ? k.value : r, q = oe();
1699
1699
  M.forEach((e) => {
1700
- e.key === ce && (q = e.label);
1700
+ e.key === le && (ce = e.label);
1701
1701
  });
1702
- let ue = q || ce, de = ue == null || typeof ue == "string" && ue.trim() === "";
1702
+ let ue = ce || le, de = ue == null || typeof ue == "string" && ue.trim() === "";
1703
1703
  return /* @__PURE__ */ G("div", {
1704
1704
  ...R,
1705
1705
  className: p(t, X.dropdownLabel, X.dropdown, { [X.dropdownLabelColumn]: !l }),
@@ -1707,9 +1707,9 @@ function Xt({ errorMessage: e = "", className: t = "", label: n = "", value: r =
1707
1707
  onMouseLeave: U,
1708
1708
  children: [
1709
1709
  /* @__PURE__ */ W(ie, {
1710
- onChange: (e) => se((e || { key: "" }).key),
1710
+ onChange: (e) => K((e || { key: "" }).key),
1711
1711
  itemToString: (e) => e ? String(e.key) : "",
1712
- selectedItem: M.find((e) => e.key === ce) ?? null,
1712
+ selectedItem: M.find((e) => e.key === le) ?? null,
1713
1713
  stateReducer: (e, t) => I && Object.prototype.hasOwnProperty.call(t, "isOpen") ? {
1714
1714
  ...t,
1715
1715
  highlightedIndex: t.isOpen ? M.indexOf(e.selectedItem) : null
@@ -1774,8 +1774,8 @@ function Xt({ errorMessage: e = "", className: t = "", label: n = "", value: r =
1774
1774
  className: p(X.dropdownFieldset, {
1775
1775
  [X.dropdownBorderPlain]: F,
1776
1776
  [X.dropdownBorderFocused]: z,
1777
- [X.dropdownBorderInvalid]: le,
1778
- [X.dropdownBorderError]: le
1777
+ [X.dropdownBorderInvalid]: q,
1778
+ [X.dropdownBorderError]: q
1779
1779
  }),
1780
1780
  children: /* @__PURE__ */ W("legend", {
1781
1781
  className: p(X.dropdownFieldsetLegend, { [X.dropdownFieldsetLegendActive]: N && (z || !de) }),
@@ -1787,7 +1787,7 @@ function Xt({ errorMessage: e = "", className: t = "", label: n = "", value: r =
1787
1787
  children: n
1788
1788
  }),
1789
1789
  N && P && /* @__PURE__ */ W("div", {
1790
- className: p(X.dropdownPlaceholder, z && !q && X.dropdownPlaceholderShown),
1790
+ className: p(X.dropdownPlaceholder, z && !ce && X.dropdownPlaceholderShown),
1791
1791
  children: P
1792
1792
  })
1793
1793
  ]
@@ -1795,7 +1795,7 @@ function Xt({ errorMessage: e = "", className: t = "", label: n = "", value: r =
1795
1795
  }),
1796
1796
  n && !N && /* @__PURE__ */ G("div", {
1797
1797
  className: p(X.dropdownLabelText, A),
1798
- children: [n, oe() ? /* @__PURE__ */ W("div", {
1798
+ children: [n, se() ? /* @__PURE__ */ W("div", {
1799
1799
  className: X.requiredMark,
1800
1800
  children: "*"
1801
1801
  }) : null]
@@ -1803,7 +1803,7 @@ function Xt({ errorMessage: e = "", className: t = "", label: n = "", value: r =
1803
1803
  /* @__PURE__ */ W(ct, {
1804
1804
  variant: "error",
1805
1805
  message: k ? k.getCurrentErrorMessage() : e || "",
1806
- isVisible: le && (z || V)
1806
+ isVisible: q && (z || V)
1807
1807
  })
1808
1808
  ]
1809
1809
  });
@@ -1849,23 +1849,23 @@ function Qt({ className: e = "", selected: t, onSelect: n = () => null, formVali
1849
1849
  let n = t + e;
1850
1850
  return n < 1 ? (n = 12, A((e) => e - 1)) : n > 12 && (n = 1, A((e) => e + 1)), n;
1851
1851
  });
1852
- }, K = (e) => {
1852
+ }, oe = (e) => {
1853
1853
  if (e.match(/\d{2}\.\d{2}\.\d{4}/gi)) {
1854
1854
  let [t, n, r] = e.split("."), i = Pt(Number(t), Number(n), Number(r));
1855
1855
  if (i && i.toString() !== "Invalid Date" && (!m || i <= m) && (!u || i >= u)) return i;
1856
1856
  }
1857
1857
  return null;
1858
- }, oe = ({ previousState: e, nextState: t }) => {
1858
+ }, se = ({ previousState: e, nextState: t }) => {
1859
1859
  if (!e || t.value === e.value) return t;
1860
- let n = Vt(t.value, e.value, t.selection ?? null), r = K(n.value);
1860
+ let n = Vt(t.value, e.value, t.selection ?? null), r = oe(n.value);
1861
1861
  return r && ne(r), n;
1862
- }, se = () => {
1862
+ }, K = () => {
1863
1863
  let e = 400, t = (/* @__PURE__ */ new Date()).getFullYear() - 200;
1864
1864
  return u && (t = u.getFullYear()), m && (e = m.getFullYear() - t + 1), Array.from(Array(e).keys()).map((e) => ({
1865
1865
  key: e + t,
1866
1866
  label: e + t
1867
1867
  }));
1868
- }, q = T(), ce = te(), le = /* @__PURE__ */ G(U, { children: [
1868
+ }, ce = T(), le = te(), q = /* @__PURE__ */ G(U, { children: [
1869
1869
  o ? null : /* @__PURE__ */ G("div", {
1870
1870
  className: Zt.datePickerHeader,
1871
1871
  children: [
@@ -1894,7 +1894,7 @@ function Qt({ className: e = "", selected: t, onSelect: n = () => null, formVali
1894
1894
  className: Zt.datePickerHeaderYear,
1895
1895
  onChange: (e) => A(e),
1896
1896
  value: k,
1897
- items: se()
1897
+ items: K()
1898
1898
  })]
1899
1899
  })
1900
1900
  }),
@@ -1909,8 +1909,8 @@ function Qt({ className: e = "", selected: t, onSelect: n = () => null, formVali
1909
1909
  month: D,
1910
1910
  year: k,
1911
1911
  onSelect: re,
1912
- selectionStart: C ?? q,
1913
- selectionEnd: w ?? q,
1912
+ selectionStart: C ?? ce,
1913
+ selectionEnd: w ?? ce,
1914
1914
  minDate: u,
1915
1915
  maxDate: m
1916
1916
  }),
@@ -1928,24 +1928,24 @@ function Qt({ className: e = "", selected: t, onSelect: n = () => null, formVali
1928
1928
  customInput: /* @__PURE__ */ W(ae, {
1929
1929
  mask: "99.99.9999",
1930
1930
  maskPlaceholder: "_",
1931
- beforeMaskedStateChange: oe
1931
+ beforeMaskedStateChange: se
1932
1932
  }),
1933
1933
  onBlur: () => {
1934
- ee.current && (ee.current.touched = !0), I(!1), ne(K(N));
1934
+ ee.current && (ee.current.touched = !0), I(!1), ne(oe(N));
1935
1935
  },
1936
1936
  onFocus: () => I(!0),
1937
1937
  onMouseEnter: () => R(!0),
1938
1938
  onMouseLeave: () => R(!1),
1939
- isValid: !ce
1940
- }), de = c ? le : s ? /* @__PURE__ */ W(Ct, {
1939
+ isValid: !le
1940
+ }), de = c ? q : s ? /* @__PURE__ */ W(Ct, {
1941
1941
  hideHeader: !0,
1942
1942
  isOpen: j,
1943
1943
  onClose: () => M(!1),
1944
- children: le
1944
+ children: q
1945
1945
  }) : /* @__PURE__ */ W(ot, {
1946
1946
  isOpen: j,
1947
1947
  onOpenChange: (e) => M(e),
1948
- content: le,
1948
+ content: q,
1949
1949
  align: it.Left,
1950
1950
  dontCloseOnChildClick: !0,
1951
1951
  children: ue
@@ -1958,7 +1958,7 @@ function Qt({ className: e = "", selected: t, onSelect: n = () => null, formVali
1958
1958
  /* @__PURE__ */ W(ct, {
1959
1959
  variant: "error",
1960
1960
  message: r ? r.getCurrentErrorMessage() : x || "",
1961
- isVisible: ce && (F || L)
1961
+ isVisible: le && (F || L)
1962
1962
  })
1963
1963
  ]
1964
1964
  });
@@ -2526,6 +2526,7 @@ function Tn({ label: e = "", value: t = "", formValidator: n = null, items: r =
2526
2526
  value: v,
2527
2527
  onChange: (e) => {
2528
2528
  if (y(e), T(null), C(!0), a) n && n.set(e), m && m(e);
2529
+ else if (e === "") n && n.set(""), m && m(""), u("");
2529
2530
  else {
2530
2531
  let t = r.find((t) => (t.label ?? t.value).toLowerCase() === e.toLowerCase());
2531
2532
  t && (n && n.set(t.value), m && m(t.value), u(t.value));
@@ -2580,7 +2581,7 @@ function Dn({ id: e, children: t }) {
2580
2581
  //#endregion
2581
2582
  //#region package/common/kanbanBoard/KanbanColumn.tsx
2582
2583
  function On({ id: e, title: t, itemIds: n, items: r, renderItem: i, className: a, classNames: o, styles: s }) {
2583
- let { setNodeRef: c, isOver: l } = ce({ id: `column-${e}` });
2584
+ let { setNodeRef: c, isOver: l } = le({ id: `column-${e}` });
2584
2585
  return /* @__PURE__ */ G("div", {
2585
2586
  className: p(En.column, l && En.columnOver, n.length === 0 && En.columnEmpty, a),
2586
2587
  children: [/* @__PURE__ */ W("div", {
@@ -2605,7 +2606,7 @@ function On({ id: e, title: t, itemIds: n, items: r, renderItem: i, className: a
2605
2606
  //#endregion
2606
2607
  //#region package/common/kanbanBoard/KanbanBoard.tsx
2607
2608
  function kn({ columns: e, items: t, renderItem: n, onChange: r, className: i, style: a, classNames: o, styles: s }) {
2608
- let [c, l] = f(null), [u, d] = f(null), m = ue(le(se, { activationConstraint: { distance: 8 } })), h = u ?? e;
2609
+ let [c, l] = f(null), [u, d] = f(null), m = ue(q(K, { activationConstraint: { distance: 8 } })), h = u ?? e;
2609
2610
  function g(e, t) {
2610
2611
  return e.findIndex((e) => e.itemIds.includes(t));
2611
2612
  }
@@ -2654,9 +2655,9 @@ function kn({ columns: e, items: t, renderItem: n, onChange: r, className: i, st
2654
2655
  }
2655
2656
  r(u), d(null);
2656
2657
  }
2657
- return /* @__PURE__ */ G(K, {
2658
+ return /* @__PURE__ */ G(oe, {
2658
2659
  sensors: m,
2659
- collisionDetection: q,
2660
+ collisionDetection: ce,
2660
2661
  onDragStart: _,
2661
2662
  onDragOver: v,
2662
2663
  onDragEnd: y,
@@ -2670,7 +2671,7 @@ function kn({ columns: e, items: t, renderItem: n, onChange: r, className: i, st
2670
2671
  items: t,
2671
2672
  renderItem: n
2672
2673
  }, e.id))
2673
- }), /* @__PURE__ */ W(oe, { children: c && t[c] !== void 0 ? /* @__PURE__ */ W("div", {
2674
+ }), /* @__PURE__ */ W(se, { children: c && t[c] !== void 0 ? /* @__PURE__ */ W("div", {
2674
2675
  className: p(En.dragOverlay, o?.dragOverlay),
2675
2676
  style: s?.dragOverlay,
2676
2677
  children: n(t[c], c)
@@ -3387,7 +3388,7 @@ function _r({ className: e }) {
3387
3388
  }
3388
3389
  return n;
3389
3390
  }
3390
- function K(e, t) {
3391
+ function oe(e, t) {
3391
3392
  let n = null;
3392
3393
  for (let r = 0; r < t.points.length; r++) {
3393
3394
  let i = t.points[r], a = t.points[(r + 1) % t.points.length], { dist: o, t: s } = Yn(e, i, a);
@@ -3399,7 +3400,7 @@ function _r({ className: e }) {
3399
3400
  }
3400
3401
  return n;
3401
3402
  }
3402
- function oe(e, t, r, a) {
3403
+ function se(e, t, r, a) {
3403
3404
  return n((n) => n.map((n) => {
3404
3405
  if (n.id !== e) return n;
3405
3406
  let r = [...n.points];
@@ -3419,7 +3420,7 @@ function _r({ className: e }) {
3419
3420
  wallIndex: n.wallIndex + 1
3420
3421
  } : n : n)), t + 1;
3421
3422
  }
3422
- function se(e, r) {
3423
+ function K(e, r) {
3423
3424
  let a = t.find((t) => t.id === e);
3424
3425
  if (!a || a.points.length <= 3) return;
3425
3426
  let o = a.points.length;
@@ -3438,7 +3439,7 @@ function _r({ className: e }) {
3438
3439
  } : t;
3439
3440
  }).filter((e) => e.wallIndex !== -1));
3440
3441
  }
3441
- function q(e) {
3442
+ function ce(e) {
3442
3443
  if (e.button === 1) {
3443
3444
  e.preventDefault();
3444
3445
  let t = z.current;
@@ -3498,12 +3499,12 @@ function _r({ className: e }) {
3498
3499
  }
3499
3500
  }
3500
3501
  if (e) {
3501
- let t = K(n, e);
3502
+ let t = oe(n, e);
3502
3503
  if (t) {
3503
3504
  let r = e.points[t.index], i = e.points[(t.index + 1) % e.points.length], a = Kn({
3504
3505
  x: r.x + (i.x - r.x) * t.t,
3505
3506
  y: r.y + (i.y - r.y) * t.t
3506
- }), o = oe(e.id, t.index, t.t, a);
3507
+ }), o = se(e.id, t.index, t.t, a);
3507
3508
  I.current = {
3508
3509
  type: "vertex",
3509
3510
  roomId: e.id,
@@ -3528,16 +3529,16 @@ function _r({ className: e }) {
3528
3529
  }
3529
3530
  }
3530
3531
  }
3531
- function ce(e) {
3532
+ function le(e) {
3532
3533
  if (o !== "select" || h) return;
3533
3534
  let n = ie(e);
3534
3535
  if (!n) return;
3535
3536
  let r = t.find((e) => e.id === l);
3536
3537
  if (!r) return;
3537
3538
  let i = ae(n, r);
3538
- i && (e.preventDefault(), se(r.id, i.index));
3539
+ i && (e.preventDefault(), K(r.id, i.index));
3539
3540
  }
3540
- function le(e) {
3541
+ function q(e) {
3541
3542
  if (R.current) {
3542
3543
  let { startClient: t, origPan: n, scaleX: r, scaleY: i } = R.current;
3543
3544
  N({
@@ -3741,10 +3742,10 @@ function _r({ className: e }) {
3741
3742
  ref: z,
3742
3743
  className: p(Q.roomDrawerCanvas, J),
3743
3744
  viewBox: `${j.x} ${j.y} ${Se} ${Ce}`,
3744
- onMouseDown: q,
3745
- onMouseMove: le,
3745
+ onMouseDown: ce,
3746
+ onMouseMove: q,
3746
3747
  onMouseUp: ue,
3747
- onDoubleClick: ce,
3748
+ onDoubleClick: le,
3748
3749
  children: [
3749
3750
  /* @__PURE__ */ W("defs", { children: /* @__PURE__ */ W("pattern", {
3750
3751
  id: "rd-grid",
@@ -4841,25 +4842,25 @@ function fi({ value: e, selected: t, onChange: n = () => null, onSelect: r = ()
4841
4842
  };
4842
4843
  return i.registerOnUpdateListener(e), () => i.removeOnUpdateListener(e);
4843
4844
  }, [i]);
4844
- let re = () => i ? i.touched && i.hasError() : !x || !!S, ie = () => !!(C || i?.validators.find((e) => e.validatorId === "required")), K = (e) => {
4845
+ let re = () => i ? i.touched && i.hasError() : !x || !!S, ie = () => !!(C || i?.validators.find((e) => e.validatorId === "required")), oe = (e) => {
4845
4846
  let t = e ? Jr(e) : null;
4846
4847
  i && i.set(t), n?.(t);
4847
- }, oe = (e) => {
4848
- N(e ? Jr(e) : ""), K(e);
4849
- }, se = qr(M), q = se ?? {
4848
+ }, se = (e) => {
4849
+ N(e ? Jr(e) : ""), oe(e);
4850
+ }, K = qr(M), ce = K ?? {
4850
4851
  hours: 12,
4851
4852
  minutes: 0
4852
- }, ce = (e) => {
4853
- oe(Zr({
4853
+ }, le = (e) => {
4854
+ se(Zr({
4854
4855
  hours: e.hours,
4855
4856
  minutes: Yr(e.minutes, g)
4856
4857
  }, v, y));
4857
- }, le = (e) => {
4858
+ }, q = (e) => {
4858
4859
  let t = Zr({
4859
4860
  hours: e.hours,
4860
4861
  minutes: Yr(e.minutes, g)
4861
4862
  }, v, y);
4862
- if (oe(t), I === "hours") {
4863
+ if (se(t), I === "hours") {
4863
4864
  L("minutes");
4864
4865
  return;
4865
4866
  }
@@ -4878,15 +4879,15 @@ function fi({ value: e, selected: t, onChange: n = () => null, onSelect: r = ()
4878
4879
  }, fe = (e) => {
4879
4880
  N(e);
4880
4881
  let t = qr(e);
4881
- t && K(t);
4882
+ t && oe(t);
4882
4883
  }, pe = () => {
4883
- U.current && (U.current.touched = !0), z(!1), K(qr(M));
4884
+ U.current && (U.current.touched = !0), z(!1), oe(qr(M));
4884
4885
  }, me = (e) => {
4885
- e !== q.hours >= 12 && oe({
4886
- hours: Gr(q.hours + (e ? 12 : -12)),
4887
- minutes: q.minutes
4886
+ e !== ce.hours >= 12 && se({
4887
+ hours: Gr(ce.hours + (e ? 12 : -12)),
4888
+ minutes: ce.minutes
4888
4889
  });
4889
- }, he = re(), ge = se ? String(_ ? se.hours : (se.hours + 11) % 12 + 1).padStart(2, "0") : "--", _e = se ? String(se.minutes).padStart(2, "0") : "--", ve = l ? null : /* @__PURE__ */ G("div", {
4890
+ }, he = re(), ge = K ? String(_ ? K.hours : (K.hours + 11) % 12 + 1).padStart(2, "0") : "--", _e = K ? String(K.minutes).padStart(2, "0") : "--", ve = l ? null : /* @__PURE__ */ G("div", {
4890
4891
  className: p(di.timeInputClockHeader, O?.clockHeader),
4891
4892
  style: k?.clockHeader,
4892
4893
  children: [
@@ -4913,12 +4914,12 @@ function fi({ value: e, selected: t, onChange: n = () => null, onSelect: r = ()
4913
4914
  style: k?.meridiem,
4914
4915
  children: [/* @__PURE__ */ W("button", {
4915
4916
  type: "button",
4916
- className: p(q.hours < 12 && di.timeInputMeridiemActive),
4917
+ className: p(ce.hours < 12 && di.timeInputMeridiemActive),
4917
4918
  onClick: () => me(!1),
4918
4919
  children: "AM"
4919
4920
  }), /* @__PURE__ */ W("button", {
4920
4921
  type: "button",
4921
- className: p(q.hours >= 12 && di.timeInputMeridiemActive),
4922
+ className: p(ce.hours >= 12 && di.timeInputMeridiemActive),
4922
4923
  onClick: () => me(!0),
4923
4924
  children: "PM"
4924
4925
  })]
@@ -4931,7 +4932,7 @@ function fi({ value: e, selected: t, onChange: n = () => null, onSelect: r = ()
4931
4932
  styleType: De.Default,
4932
4933
  onClick: () => {
4933
4934
  let e = /* @__PURE__ */ new Date();
4934
- ce({
4935
+ le({
4935
4936
  hours: e.getHours(),
4936
4937
  minutes: e.getMinutes()
4937
4938
  });
@@ -4940,7 +4941,7 @@ function fi({ value: e, selected: t, onChange: n = () => null, onSelect: r = ()
4940
4941
  }), u && /* @__PURE__ */ W(Pe, {
4941
4942
  styleType: De.Default,
4942
4943
  onClick: () => {
4943
- oe(null), r?.(null);
4944
+ se(null), r?.(null);
4944
4945
  },
4945
4946
  children: "Clear"
4946
4947
  })]
@@ -4950,12 +4951,12 @@ function fi({ value: e, selected: t, onChange: n = () => null, onSelect: r = ()
4950
4951
  children: [
4951
4952
  ve,
4952
4953
  /* @__PURE__ */ W(ui, {
4953
- time: q,
4954
+ time: ce,
4954
4955
  mode: I,
4955
4956
  use24Hour: _,
4956
4957
  minuteStep: g,
4957
- onChange: ce,
4958
- onCommit: le,
4958
+ onChange: le,
4959
+ onCommit: q,
4959
4960
  classNames: O,
4960
4961
  styles: k
4961
4962
  }),
@@ -5767,23 +5768,23 @@ function zi({ reorderable: e, treeReorder: t, onReorder: n, onTreeDrop: r, longP
5767
5768
  }, [h, g]), ae = i(() => {
5768
5769
  let e = I.current;
5769
5770
  e && (e.style.transform = `translate(${R.current}px, ${N.current - L.current}px)`);
5770
- }, []), K = i(() => {
5771
+ }, []), oe = i(() => {
5771
5772
  let e = h.current;
5772
5773
  if (!e || !A.current) {
5773
5774
  P.current = null;
5774
5775
  return;
5775
5776
  }
5776
5777
  let t = e.getBoundingClientRect(), n = M.current, r = N.current, i = 0;
5777
- n >= t.left && n <= t.right && r >= t.top && r <= t.bottom && (r < t.top + 48 ? i = -Math.min(18, Math.ceil((t.top + 48 - r) / 3)) : r > t.bottom - 48 && (i = Math.min(18, Math.ceil((r - (t.bottom - 48)) / 3)))), i !== 0 && (e.scrollTop += i, ie(n)), P.current = requestAnimationFrame(K);
5778
- }, [ie, h]), oe = i(() => {
5779
- if (k.current != null && (clearTimeout(k.current), k.current = null), window.removeEventListener("touchmove", se), window.removeEventListener("touchend", oe), window.removeEventListener("touchcancel", oe), P.current != null && (cancelAnimationFrame(P.current), P.current = null), I.current &&= (I.current.remove(), null), document.body.style.touchAction = "", document.body.style.overscrollBehavior = "", A.current && (F.current = !0, setTimeout(() => {
5778
+ n >= t.left && n <= t.right && r >= t.top && r <= t.bottom && (r < t.top + 48 ? i = -Math.min(18, Math.ceil((t.top + 48 - r) / 3)) : r > t.bottom - 48 && (i = Math.min(18, Math.ceil((r - (t.bottom - 48)) / 3)))), i !== 0 && (e.scrollTop += i, ie(n)), P.current = requestAnimationFrame(oe);
5779
+ }, [ie, h]), se = i(() => {
5780
+ if (k.current != null && (clearTimeout(k.current), k.current = null), window.removeEventListener("touchmove", K), window.removeEventListener("touchend", se), window.removeEventListener("touchcancel", se), P.current != null && (cancelAnimationFrame(P.current), P.current = null), I.current &&= (I.current.remove(), null), document.body.style.touchAction = "", document.body.style.overscrollBehavior = "", A.current && (F.current = !0, setTimeout(() => {
5780
5781
  F.current = !1;
5781
5782
  }, 350), T.current)) {
5782
5783
  let e = _.current, t = S.current;
5783
5784
  e != null && t && t.key !== e && w.current?.(e, t);
5784
5785
  }
5785
5786
  x(null), A.current = !1, j.current = null, _.current = null, y(null);
5786
- }, []), se = i((e) => {
5787
+ }, []), K = i((e) => {
5787
5788
  let t = e.touches[0];
5788
5789
  if (t) {
5789
5790
  if (M.current = t.clientX, N.current = t.clientY, !A.current) {
@@ -5794,14 +5795,14 @@ function zi({ reorderable: e, treeReorder: t, onReorder: n, onTreeDrop: r, longP
5794
5795
  e.cancelable && e.preventDefault(), ae(), ie(t.clientX);
5795
5796
  }
5796
5797
  }, [ie, ae]);
5797
- function q(n, r) {
5798
+ function ce(n, r) {
5798
5799
  if (!e && !t || s && !r.target.closest("[data-drag-handle]") || k.current != null || A.current) return;
5799
5800
  let i = r.touches[0];
5800
- i && (j.current = i.clientY, M.current = i.clientX, N.current = i.clientY, window.addEventListener("touchmove", se, { passive: !1 }), window.addEventListener("touchend", oe), window.addEventListener("touchcancel", oe), k.current = window.setTimeout(() => {
5801
- k.current = null, A.current = !0, _.current = n, y(n), navigator.vibrate?.(10), document.body.style.touchAction = "none", document.body.style.overscrollBehavior = "none", ce(n), P.current ??= requestAnimationFrame(K);
5801
+ i && (j.current = i.clientY, M.current = i.clientX, N.current = i.clientY, window.addEventListener("touchmove", K, { passive: !1 }), window.addEventListener("touchend", se), window.addEventListener("touchcancel", se), k.current = window.setTimeout(() => {
5802
+ k.current = null, A.current = !0, _.current = n, y(n), navigator.vibrate?.(10), document.body.style.touchAction = "none", document.body.style.overscrollBehavior = "none", le(n), P.current ??= requestAnimationFrame(oe);
5802
5803
  }, o));
5803
5804
  }
5804
- function ce(e) {
5805
+ function le(e) {
5805
5806
  let t = h.current;
5806
5807
  if (!t) return;
5807
5808
  let n = g.current.indexOf(e), r = t.querySelector(`[data-index="${n}"]`);
@@ -5824,20 +5825,20 @@ function zi({ reorderable: e, treeReorder: t, onReorder: n, onTreeDrop: r, longP
5824
5825
  borderRadius: "var(--default-border-radius)"
5825
5826
  }), t.appendChild(a), I.current = a, ae();
5826
5827
  }
5827
- a(() => oe, [oe]);
5828
- let le = e || t;
5828
+ a(() => se, [se]);
5829
+ let q = e || t;
5829
5830
  function ue(n, r) {
5830
5831
  let i = t && b?.key === r ? b.position : void 0;
5831
5832
  return {
5832
- reorderable: le && !s,
5833
- draggable: le && !B || void 0,
5834
- isDragging: le && r === v,
5835
- onMouseDown: le && s ? V : void 0,
5836
- onDragStart: le ? (e) => ee(r, e) : void 0,
5833
+ reorderable: q && !s,
5834
+ draggable: q && !B || void 0,
5835
+ isDragging: q && r === v,
5836
+ onMouseDown: q && s ? V : void 0,
5837
+ onDragStart: q ? (e) => ee(r, e) : void 0,
5837
5838
  onDragOver: t ? (e) => H(n, e) : e ? (e) => G(n, e) : void 0,
5838
5839
  onDragEnd: t ? W : e ? re : void 0,
5839
5840
  onDrop: t ? U : void 0,
5840
- onTouchStart: le ? (e) => q(r, e) : void 0,
5841
+ onTouchStart: q ? (e) => ce(r, e) : void 0,
5841
5842
  dropPosition: i,
5842
5843
  dropIndentPx: i ? (p[n] ?? 0) * l : void 0
5843
5844
  };
@@ -5847,7 +5848,7 @@ function zi({ reorderable: e, treeReorder: t, onReorder: n, onTreeDrop: r, longP
5847
5848
  }
5848
5849
  return {
5849
5850
  draggingKey: v,
5850
- dragEnabled: le,
5851
+ dragEnabled: q,
5851
5852
  getRowDragProps: ue,
5852
5853
  consumeSuppressedClick: de
5853
5854
  };
@@ -5864,7 +5865,7 @@ function Bi({ items: e, renderRow: t, columns: n, height: r = "100%", estimatedR
5864
5865
  overscan: o,
5865
5866
  onLoadMore: b,
5866
5867
  loadMoreThreshold: x
5867
- }), { rootRef: K, headerRef: oe, rowObserver: se, keysRef: q, offsets: ce, totalHeight: le, startIndex: ue, endIndex: de } = ae, fe = Li({
5868
+ }), { rootRef: oe, headerRef: se, rowObserver: K, keysRef: ce, offsets: le, totalHeight: q, startIndex: ue, endIndex: de } = ae, fe = Li({
5868
5869
  items: e,
5869
5870
  getKey: H,
5870
5871
  multiSelect: C,
@@ -5878,7 +5879,7 @@ function Bi({ items: e, renderRow: t, columns: n, height: r = "100%", estimatedR
5878
5879
  onVisibleColumnsChange: _,
5879
5880
  persistColumnsKey: v,
5880
5881
  showColumnToggle: y,
5881
- rootRef: K,
5882
+ rootRef: oe,
5882
5883
  startIndex: ue,
5883
5884
  endIndex: de,
5884
5885
  containerHeight: ae.containerHeight,
@@ -5899,13 +5900,13 @@ function Bi({ items: e, renderRow: t, columns: n, height: r = "100%", estimatedR
5899
5900
  keys: ne,
5900
5901
  depths: re,
5901
5902
  isGroupAt: ie,
5902
- rootRef: K,
5903
- keysRef: q
5903
+ rootRef: oe,
5904
+ keysRef: ce
5904
5905
  }), Te = typeof u == "number" ? `${u}px` : u, De = (n) => {
5905
5906
  let r = e[n], i = H(r, n), a = d != null && i === d || pe.has(i), o = we.getRowDragProps(n, i);
5906
5907
  return /* @__PURE__ */ W(wi, {
5907
5908
  index: n,
5908
- top: ce[n],
5909
+ top: le[n],
5909
5910
  padding: Te,
5910
5911
  columnTemplate: ge,
5911
5912
  isSelected: a,
@@ -5914,7 +5915,7 @@ function Bi({ items: e, renderRow: t, columns: n, height: r = "100%", estimatedR
5914
5915
  onClick: () => {
5915
5916
  we.consumeSuppressedClick() || h?.(r, n);
5916
5917
  },
5917
- observer: se,
5918
+ observer: K,
5918
5919
  ariaRowIndex: me ? n + 2 : void 0,
5919
5920
  ariaPosInSet: me ? void 0 : n + 1,
5920
5921
  ariaSetSize: me ? void 0 : e.length,
@@ -5948,7 +5949,7 @@ function Bi({ items: e, renderRow: t, columns: n, height: r = "100%", estimatedR
5948
5949
  let ke = we.draggingKey == null ? -1 : ne.indexOf(we.draggingKey);
5949
5950
  return ke >= 0 && (ke < ue || ke > de) && Oe.push(De(ke)), /* @__PURE__ */ G("div", {
5950
5951
  ...ee,
5951
- ref: K,
5952
+ ref: oe,
5952
5953
  className: p($.virtualList, we.draggingKey != null && $.virtualListReordering, R, B?.root),
5953
5954
  style: {
5954
5955
  height: r,
@@ -5960,7 +5961,7 @@ function Bi({ items: e, renderRow: t, columns: n, height: r = "100%", estimatedR
5960
5961
  "aria-rowcount": me ? e.length + 1 : void 0,
5961
5962
  children: [
5962
5963
  me && /* @__PURE__ */ G("div", {
5963
- ref: oe,
5964
+ ref: se,
5964
5965
  className: p($.virtualListHeader, B?.header),
5965
5966
  style: {
5966
5967
  gridTemplateColumns: ge,
@@ -6031,7 +6032,7 @@ function Bi({ items: e, renderRow: t, columns: n, height: r = "100%", estimatedR
6031
6032
  }) : /* @__PURE__ */ W("div", {
6032
6033
  className: p($.virtualListBody, B?.body),
6033
6034
  style: {
6034
- height: le,
6035
+ height: q,
6035
6036
  ...V?.body
6036
6037
  },
6037
6038
  children: Oe