@object-ui/plugin-aggrid 3.1.4 → 3.3.0

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.
Files changed (52) hide show
  1. package/.turbo/turbo-build.log +57 -54
  2. package/CHANGELOG.md +33 -0
  3. package/dist/{AgGridImpl-BD5cjyc0.js → AgGridImpl-DBqxIsko.js} +1 -1
  4. package/dist/{AvatarField-IZTLB0Ye.js → AvatarField-C5b9biGa.js} +2 -2
  5. package/dist/{FileField-DxxdESfc.js → FileField-BcGMvBnI.js} +4 -4
  6. package/dist/{GeolocationField-BzKgcWLN.js → GeolocationField-D3BrmwqV.js} +1 -1
  7. package/dist/{ImageField-DK7sUV6b.js → ImageField-BBqwJEkk.js} +2 -2
  8. package/dist/{LookupField-Dmzju5Q0.js → LookupField-DoOmbbZF.js} +243 -242
  9. package/dist/LookupField-KfYQlgUd.js +2 -0
  10. package/dist/{MasterDetailField-CPLHbe_Y.js → MasterDetailField-BnSPGAtS.js} +3 -3
  11. package/dist/{ObjectAgGridImpl-4uephlvO.js → ObjectAgGridImpl-DrI0aa8t.js} +174 -174
  12. package/dist/{PasswordField-d6E-vKBI.js → PasswordField-k5JeKk9f.js} +1 -1
  13. package/dist/{QRCodeField-BIQhc73N.js → QRCodeField-BIrSW1Zr.js} +1 -1
  14. package/dist/{RatingField-BKAGmlzh.js → RatingField-5iMhn2GL.js} +1 -1
  15. package/dist/SelectField-Bjk_S2zT.js +31 -0
  16. package/dist/SelectField-CcWvzp9g.js +2 -0
  17. package/dist/{SignatureField-fFEb0h_C.js → SignatureField-BAMvNrE6.js} +1 -1
  18. package/dist/{UserField-Dqk38Arc.js → UserField-BHl6mmIH.js} +1 -1
  19. package/dist/createLucideIcon-BjfZYZey.js +42 -0
  20. package/dist/{image-Cm7ExMY2.js → image-DlUdeTgT.js} +1 -1
  21. package/dist/index.css +1 -1
  22. package/dist/index.d.ts +1 -1
  23. package/dist/index.js +1 -1
  24. package/dist/index.umd.cjs +69 -69
  25. package/dist/{plus-CsEgF66K.js → plus-BwEV_Q5_.js} +1 -1
  26. package/dist/{upload-B1x-ueFd.js → upload-DPiohvXv.js} +1 -1
  27. package/dist/useFieldTranslation-C69OtouR.js +305 -0
  28. package/dist/{x-Bwhzfvtg.js → x-BFq2GeQ5.js} +1 -1
  29. package/package.json +11 -11
  30. package/src/ag-grid.d.ts +10 -0
  31. package/vite.config.ts +1 -0
  32. package/dist/SelectField-C2gtlnLZ.js +0 -30
  33. package/dist/createLucideIcon-CWx7zIL1.js +0 -39
  34. /package/dist/{NumberField-JaSlPVXs.js → NumberField-Kz4_o5DE.js} +0 -0
  35. /package/dist/{ObjectField-FzUYlu-m.js → ObjectField-C1qkl6s4.js} +0 -0
  36. /package/dist/{PercentField-D2_kMuC_.js → PercentField-Dmipqv0I.js} +0 -0
  37. /package/dist/{PhoneField-DOaMivd6.js → PhoneField-Dn4h6V9H.js} +0 -0
  38. /package/dist/{RichTextField-D4FIV9V8.js → RichTextField-CN5BRd_7.js} +0 -0
  39. /package/dist/{SliderField-BlAlK3g2.js → SliderField-C9IhmjbF.js} +0 -0
  40. /package/dist/{SummaryField-Dy2Kkj6M.js → SummaryField-R9RENAZv.js} +0 -0
  41. /package/dist/{TextAreaField-BCUkjKTc.js → TextAreaField-BY63Nr6-.js} +0 -0
  42. /package/dist/{TextField-XWOnbUrk.js → TextField-SIw8aMzf.js} +0 -0
  43. /package/dist/{TimeField-CZdzdqOO.js → TimeField-xxziHPjE.js} +0 -0
  44. /package/dist/{UrlField-sq1mpRoG.js → UrlField-Ihk3_ff5.js} +0 -0
  45. /package/dist/{VectorField-CY70VLiW.js → VectorField-Ci167cxr.js} +0 -0
  46. /package/dist/{src → packages/plugin-aggrid/src}/AgGridImpl.d.ts +0 -0
  47. /package/dist/{src → packages/plugin-aggrid/src}/ObjectAgGridImpl.d.ts +0 -0
  48. /package/dist/{src → packages/plugin-aggrid/src}/VirtualScrolling.d.ts +0 -0
  49. /package/dist/{src → packages/plugin-aggrid/src}/field-renderers.d.ts +0 -0
  50. /package/dist/{src → packages/plugin-aggrid/src}/index.d.ts +0 -0
  51. /package/dist/{src → packages/plugin-aggrid/src}/object-aggrid.types.d.ts +0 -0
  52. /package/dist/{src → packages/plugin-aggrid/src}/types.d.ts +0 -0
@@ -1,16 +1,16 @@
1
1
  import { i as e, n as t, t as n } from "./jsx-runtime-CGDkM_Jn.js";
2
2
  import "./AddressField-DKqaE9pD.js";
3
3
  import "./AutoNumberField-0RU2dNKe.js";
4
- import { t as r } from "./createLucideIcon-CWx7zIL1.js";
5
- import { i, r as a, t as o } from "./LookupField-Dmzju5Q0.js";
6
- import { n as s } from "./QRCodeField-BIQhc73N.js";
7
- import "./GeolocationField-BzKgcWLN.js";
8
- import "./SignatureField-fFEb0h_C.js";
9
- import "./MasterDetailField-CPLHbe_Y.js";
10
- import { t as c } from "./PasswordField-d6E-vKBI.js";
11
- import "./FileField-DxxdESfc.js";
12
- import { t as l } from "./RatingField-BKAGmlzh.js";
13
- import { t as u } from "./AvatarField-IZTLB0Ye.js";
4
+ import { t as r } from "./createLucideIcon-BjfZYZey.js";
5
+ import { n as i, r as a, t as o } from "./LookupField-DoOmbbZF.js";
6
+ import { n as s } from "./QRCodeField-BIrSW1Zr.js";
7
+ import "./GeolocationField-D3BrmwqV.js";
8
+ import "./SignatureField-BAMvNrE6.js";
9
+ import "./MasterDetailField-BnSPGAtS.js";
10
+ import { t as c } from "./PasswordField-k5JeKk9f.js";
11
+ import "./FileField-BcGMvBnI.js";
12
+ import { t as l } from "./RatingField-5iMhn2GL.js";
13
+ import { t as u } from "./AvatarField-C5b9biGa.js";
14
14
  import { t as d } from "./BooleanField-DRzAZhSq.js";
15
15
  import { t as f } from "./CodeField-RWhnDMyL.js";
16
16
  import { t as p } from "./ColorField-B-YAFXdz.js";
@@ -20,22 +20,22 @@ import { t as g } from "./DateTimeField--YTsgTjw.js";
20
20
  import { t as _ } from "./EmailField-B-3fWJsH.js";
21
21
  import "./FormulaField-MQXJZOep.js";
22
22
  import "./GridField-DHsGo9l2.js";
23
- import { t as v } from "./ImageField-DK7sUV6b.js";
23
+ import { t as v } from "./ImageField-BBqwJEkk.js";
24
24
  import "./LocationField-DSvhU9Dz.js";
25
- import { t as y } from "./NumberField-JaSlPVXs.js";
26
- import "./ObjectField-FzUYlu-m.js";
27
- import { t as b } from "./PercentField-D2_kMuC_.js";
28
- import { t as x } from "./PhoneField-DOaMivd6.js";
29
- import "./RichTextField-D4FIV9V8.js";
30
- import { t as ee } from "./SelectField-C2gtlnLZ.js";
31
- import { t as te } from "./SliderField-BlAlK3g2.js";
32
- import "./SummaryField-Dy2Kkj6M.js";
33
- import { t as ne } from "./TextAreaField-BCUkjKTc.js";
34
- import { t as re } from "./TextField-XWOnbUrk.js";
35
- import { t as S } from "./TimeField-CZdzdqOO.js";
36
- import { t as ie } from "./UrlField-sq1mpRoG.js";
37
- import "./UserField-Dqk38Arc.js";
38
- import "./VectorField-CY70VLiW.js";
25
+ import { t as y } from "./NumberField-Kz4_o5DE.js";
26
+ import "./ObjectField-C1qkl6s4.js";
27
+ import { t as b } from "./PercentField-Dmipqv0I.js";
28
+ import { t as x } from "./PhoneField-Dn4h6V9H.js";
29
+ import "./RichTextField-CN5BRd_7.js";
30
+ import { t as ee } from "./SelectField-Bjk_S2zT.js";
31
+ import { t as te } from "./SliderField-C9IhmjbF.js";
32
+ import "./SummaryField-R9RENAZv.js";
33
+ import { t as ne } from "./TextAreaField-BY63Nr6-.js";
34
+ import { t as re } from "./TextField-SIw8aMzf.js";
35
+ import { t as S } from "./TimeField-xxziHPjE.js";
36
+ import { t as ie } from "./UrlField-Ihk3_ff5.js";
37
+ import "./UserField-BHl6mmIH.js";
38
+ import "./VectorField-Ci167cxr.js";
39
39
  import C, { useCallback as ae, useEffect as oe, useMemo as w, useRef as se, useState as ce } from "react";
40
40
  import { ComponentRegistry as T, buildExpandFields as E } from "@object-ui/core";
41
41
  import { Avatar as le, AvatarFallback as ue, Badge as de, Button as fe, Checkbox as pe } from "@object-ui/components";
@@ -7802,7 +7802,7 @@ var he = r("phone", [["path", {
7802
7802
  }
7803
7803
  };
7804
7804
  var Yp = r.version;
7805
- if (Yp !== "19.2.4") throw Error(a(527, Yp, "19.2.4"));
7805
+ if (Yp !== "19.2.5") throw Error(a(527, Yp, "19.2.5"));
7806
7806
  E.findDOMNode = function(e) {
7807
7807
  var t = e._reactInternals;
7808
7808
  if (t === void 0) throw typeof e.render == "function" ? Error(a(188)) : (e = Object.keys(e).join(","), Error(a(268, e)));
@@ -7810,10 +7810,10 @@ var he = r("phone", [["path", {
7810
7810
  };
7811
7811
  var Xp = {
7812
7812
  bundleType: 0,
7813
- version: "19.2.4",
7813
+ version: "19.2.5",
7814
7814
  rendererPackageName: "react-dom",
7815
7815
  currentDispatcherRef: T,
7816
- reconcilerVersion: "19.2.4"
7816
+ reconcilerVersion: "19.2.5"
7817
7817
  };
7818
7818
  if (typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ < "u") {
7819
7819
  var Zp = __REACT_DEVTOOLS_GLOBAL_HOOK__;
@@ -7829,7 +7829,7 @@ var he = r("phone", [["path", {
7829
7829
  if (!o(e)) throw Error(a(299));
7830
7830
  var r = !1, i = "", s = rc, c = ic, l = ac, u = null;
7831
7831
  return n != null && (!0 === n.unstable_strictMode && (r = !0), n.identifierPrefix !== void 0 && (i = n.identifierPrefix), n.onUncaughtError !== void 0 && (s = n.onUncaughtError), n.onCaughtError !== void 0 && (c = n.onCaughtError), n.onRecoverableError !== void 0 && (l = n.onRecoverableError), n.formState !== void 0 && (u = n.formState)), t = fp(e, 1, !0, t, n ?? null, r, i, u, s, c, l, Kp), t.context = pp(null), n = t.current, r = Tu(), r = dt(r), i = Xa(r), i.callback = null, Za(n, i, r), n = r, t.current.lanes = n, ot(t, n), gd(t), e[vt] = t.current, Fd(e), new Jp(t);
7832
- }, t.version = "19.2.4";
7832
+ }, t.version = "19.2.5";
7833
7833
  })), xe = /* @__PURE__ */ t(((t) => {
7834
7834
  process.env.NODE_ENV !== "production" && (function() {
7835
7835
  function n(e, t) {
@@ -18961,7 +18961,7 @@ var he = r("phone", [["path", {
18961
18961
  }
18962
18962
  }, (function() {
18963
18963
  var e = Of.version;
18964
- if (e !== "19.2.4") throw Error("Incompatible React versions: The \"react\" and \"react-dom\" packages must have the exact same version. Instead got:\n - react: " + (e + "\n - react-dom: 19.2.4\nLearn more: https://react.dev/warnings/version-mismatch"));
18964
+ if (e !== "19.2.5") throw Error("Incompatible React versions: The \"react\" and \"react-dom\" packages must have the exact same version. Instead got:\n - react: " + (e + "\n - react-dom: 19.2.5\nLearn more: https://react.dev/warnings/version-mismatch"));
18965
18965
  })(), typeof Map == "function" && Map.prototype != null && typeof Map.prototype.forEach == "function" && typeof Set == "function" && Set.prototype != null && typeof Set.prototype.clear == "function" && typeof Set.prototype.forEach == "function" || console.error("React depends on Map and Set built-in types. Make sure that you load a polyfill in older browsers. https://react.dev/link/react-polyfills"), Jf.findDOMNode = function(e) {
18966
18966
  var t = e._reactInternals;
18967
18967
  if (t === void 0) throw typeof e.render == "function" ? Error("Unable to find node on an unmounted component.") : (e = Object.keys(e).join(","), Error("Argument appears to not be a ReactComponent. Keys: " + e));
@@ -18969,10 +18969,10 @@ var he = r("phone", [["path", {
18969
18969
  }, !(function() {
18970
18970
  var e = {
18971
18971
  bundleType: 1,
18972
- version: "19.2.4",
18972
+ version: "19.2.5",
18973
18973
  rendererPackageName: "react-dom",
18974
18974
  currentDispatcherRef: B,
18975
- reconcilerVersion: "19.2.4"
18975
+ reconcilerVersion: "19.2.5"
18976
18976
  };
18977
18977
  return e.overrideHookState = DC, e.overrideHookStateDeletePath = OC, e.overrideHookStateRenamePath = kC, e.overrideProps = AC, e.overridePropsDeletePath = jC, e.overridePropsRenamePath = MC, e.scheduleUpdate = NC, e.scheduleRetry = PC, e.setErrorHandler = FC, e.setSuspenseHandler = IC, e.scheduleRefresh = g, e.scheduleRoot = h, e.setRefreshHandler = _, e.getCurrentFiber = of, Ae(e);
18978
18978
  })() && eh && window.top === window.self && (-1 < navigator.userAgent.indexOf("Chrome") && navigator.userAgent.indexOf("Edge") === -1 || -1 < navigator.userAgent.indexOf("Firefox"))) {
@@ -18989,9 +18989,9 @@ var he = r("phone", [["path", {
18989
18989
  Ef(e), t === void 0 && console.error("Must provide initial children as second argument to hydrateRoot. Example usage: hydrateRoot(domContainer, <App />)");
18990
18990
  var r = !1, i = "", a = is, o = as, s = os, c = null;
18991
18991
  return n != null && (!0 === n.unstable_strictMode && (r = !0), n.identifierPrefix !== void 0 && (i = n.identifierPrefix), n.onUncaughtError !== void 0 && (a = n.onUncaughtError), n.onCaughtError !== void 0 && (o = n.onCaughtError), n.onRecoverableError !== void 0 && (s = n.onRecoverableError), n.formState !== void 0 && (c = n.formState)), t = Qd(e, 1, !0, t, n ?? null, r, i, c, a, o, s, Cf), t.context = $d(null), n = t.current, r = rl(n), r = We(r), i = na(r), i.callback = null, ra(n, i, r), fi(r, "hydrateRoot()", null), n = r, t.current.lanes = n, ze(t, n), P(t), e[Jp] = t.current, uu(e), new Tf(t);
18992
- }, t.version = "19.2.4", typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ < "u" && typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop == "function" && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error());
18992
+ }, t.version = "19.2.5", typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ < "u" && typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop == "function" && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error());
18993
18993
  })();
18994
- })), Se = (/* @__PURE__ */ t(((e, t) => {
18994
+ })), Se = /* @__PURE__ */ t(((e, t) => {
18995
18995
  function n() {
18996
18996
  if (!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ > "u" || typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE != "function")) {
18997
18997
  if (process.env.NODE_ENV !== "production") throw Error("^_^");
@@ -19003,10 +19003,10 @@ var he = r("phone", [["path", {
19003
19003
  }
19004
19004
  }
19005
19005
  process.env.NODE_ENV === "production" ? (n(), t.exports = be()) : t.exports = xe();
19006
- })))(), D = n();
19006
+ })), D = n(), Ce = Se();
19007
19007
  //#endregion
19008
19008
  //#region ../fields/src/index.tsx
19009
- function Ce(e) {
19009
+ function we(e) {
19010
19010
  if (e == null || typeof e == "string" || typeof e == "number" || typeof e == "boolean") return e;
19011
19011
  if (e instanceof Date) return e.toISOString();
19012
19012
  if (Array.isArray(e)) return e.map((e) => {
@@ -19022,7 +19022,7 @@ function Ce(e) {
19022
19022
  }
19023
19023
  return String(e);
19024
19024
  }
19025
- function we(e, t = "USD") {
19025
+ function Te(e, t = "USD") {
19026
19026
  try {
19027
19027
  return new Intl.NumberFormat("en-US", {
19028
19028
  style: "currency",
@@ -19032,13 +19032,13 @@ function we(e, t = "USD") {
19032
19032
  return `${t} ${e.toFixed(2)}`;
19033
19033
  }
19034
19034
  }
19035
- function Te(e, t = 0) {
19035
+ function Ee(e, t = 0) {
19036
19036
  return `${(e > -1 && e < 1 ? e * 100 : e).toFixed(t)}%`;
19037
19037
  }
19038
- function Ee(e) {
19038
+ function De(e) {
19039
19039
  return e.replace(/[_-]/g, " ").replace(/\b\w/g, (e) => e.toUpperCase());
19040
19040
  }
19041
- function De(e) {
19041
+ function Oe(e) {
19042
19042
  if (!e) return "-";
19043
19043
  let t = typeof e == "string" ? new Date(e) : e;
19044
19044
  if (isNaN(t.getTime())) return "-";
@@ -19048,32 +19048,32 @@ function De(e) {
19048
19048
  if (a === -1) return "Yesterday";
19049
19049
  if (a < -1) {
19050
19050
  let e = Math.abs(a);
19051
- return e <= 7 ? `Overdue ${e}d` : Oe(t);
19051
+ return e <= 7 ? `Overdue ${e}d` : ke(t);
19052
19052
  }
19053
- return a > 1 && a <= 7 ? `In ${a} days` : Oe(t);
19053
+ return a > 1 && a <= 7 ? `In ${a} days` : ke(t);
19054
19054
  }
19055
- function Oe(e, t) {
19055
+ function ke(e, t) {
19056
19056
  if (!e) return "-";
19057
19057
  let n = typeof e == "string" ? new Date(e) : e;
19058
- return isNaN(n.getTime()) ? "-" : t === "short" ? `${n.toLocaleDateString("en-US", { month: "short" })} ${n.getDate()}, '${String(n.getFullYear()).slice(-2)}` : t === "relative" ? De(n) : n.toLocaleDateString(void 0, {
19058
+ return isNaN(n.getTime()) ? "-" : t === "short" ? `${n.toLocaleDateString("en-US", { month: "short" })} ${n.getDate()}, '${String(n.getFullYear()).slice(-2)}` : t === "relative" ? Oe(n) : n.toLocaleDateString(void 0, {
19059
19059
  year: "numeric",
19060
19060
  month: "short",
19061
19061
  day: "numeric"
19062
19062
  });
19063
19063
  }
19064
- function ke({ value: e }) {
19065
- let t = Ce(e);
19064
+ function Ae({ value: e }) {
19065
+ let t = we(e);
19066
19066
  return /* @__PURE__ */ (0, D.jsx)("span", {
19067
19067
  className: "truncate",
19068
19068
  children: t != null && t !== "" ? String(t) : "-"
19069
19069
  });
19070
19070
  }
19071
- function Ae({ value: e, field: t }) {
19071
+ function je({ value: e, field: t }) {
19072
19072
  if (e == null) return /* @__PURE__ */ (0, D.jsx)("span", {
19073
19073
  className: "text-muted-foreground",
19074
19074
  children: "-"
19075
19075
  });
19076
- let n = Ce(e), r = t.precision ?? 0, i = Number(n);
19076
+ let n = we(e), r = t.precision ?? 0, i = Number(n);
19077
19077
  return /* @__PURE__ */ (0, D.jsx)("span", {
19078
19078
  className: "tabular-nums",
19079
19079
  children: isNaN(i) ? String(n) : new Intl.NumberFormat("en-US", {
@@ -19082,29 +19082,29 @@ function Ae({ value: e, field: t }) {
19082
19082
  }).format(i)
19083
19083
  });
19084
19084
  }
19085
- function je({ value: e, field: t }) {
19085
+ function Me({ value: e, field: t }) {
19086
19086
  if (e == null) return /* @__PURE__ */ (0, D.jsx)("span", {
19087
19087
  className: "text-muted-foreground",
19088
19088
  children: "-"
19089
19089
  });
19090
- let n = Ce(e), r = t.currency || "USD", i = Number(n);
19090
+ let n = we(e), r = t.currency || "USD", i = Number(n);
19091
19091
  return /* @__PURE__ */ (0, D.jsx)("span", {
19092
19092
  className: "tabular-nums font-medium whitespace-nowrap",
19093
- children: isNaN(i) ? String(n) : we(i, r)
19093
+ children: isNaN(i) ? String(n) : Te(i, r)
19094
19094
  });
19095
19095
  }
19096
- var Me = /progress|completion/;
19097
- function Ne({ value: e, field: t }) {
19096
+ var Ne = /progress|completion/;
19097
+ function Pe({ value: e, field: t }) {
19098
19098
  if (e == null) return /* @__PURE__ */ (0, D.jsx)("span", {
19099
19099
  className: "text-muted-foreground",
19100
19100
  children: "-"
19101
19101
  });
19102
- let n = Ce(e), r = t.precision ?? 0, i = Number(n);
19102
+ let n = we(e), r = t.precision ?? 0, i = Number(n);
19103
19103
  if (isNaN(i)) return /* @__PURE__ */ (0, D.jsx)("span", {
19104
19104
  className: "tabular-nums whitespace-nowrap",
19105
19105
  children: String(n)
19106
19106
  });
19107
- let a = Me.test(t?.name?.toLowerCase() || ""), o = a ? i : i > -1 && i < 1 ? i * 100 : i, s = a ? `${i.toFixed(r)}%` : Te(i, r), c = Math.max(0, Math.min(100, o));
19107
+ let a = Ne.test(t?.name?.toLowerCase() || ""), o = a ? i : i > -1 && i < 1 ? i * 100 : i, s = a ? `${i.toFixed(r)}%` : Ee(i, r), c = Math.max(0, Math.min(100, o));
19108
19108
  return /* @__PURE__ */ (0, D.jsxs)("div", {
19109
19109
  className: "flex items-center gap-2",
19110
19110
  children: [/* @__PURE__ */ (0, D.jsx)("div", {
@@ -19123,7 +19123,7 @@ function Ne({ value: e, field: t }) {
19123
19123
  })]
19124
19124
  });
19125
19125
  }
19126
- var Pe = new Set([
19126
+ var Fe = new Set([
19127
19127
  "active",
19128
19128
  "is_active",
19129
19129
  "enabled",
@@ -19131,7 +19131,7 @@ var Pe = new Set([
19131
19131
  "verified",
19132
19132
  "is_verified"
19133
19133
  ]);
19134
- function Fe({ value: e, field: t }) {
19134
+ function Ie({ value: e, field: t }) {
19135
19135
  if (e == null) return /* @__PURE__ */ (0, D.jsx)("span", {
19136
19136
  className: "text-muted-foreground/50 text-xs italic flex items-center justify-center",
19137
19137
  children: "—"
@@ -19144,18 +19144,18 @@ function Fe({ value: e, field: t }) {
19144
19144
  role: "img",
19145
19145
  "aria-label": "Completed",
19146
19146
  "data-testid": "completion-indicator",
19147
- children: /* @__PURE__ */ (0, D.jsx)(i, { className: "size-3 text-white" })
19147
+ children: /* @__PURE__ */ (0, D.jsx)(a, { className: "size-3 text-white" })
19148
19148
  }) : /* @__PURE__ */ (0, D.jsx)("div", {
19149
19149
  className: "size-5 rounded-full border-2 border-muted-foreground/30",
19150
19150
  role: "img",
19151
19151
  "aria-label": "Not completed",
19152
19152
  "data-testid": "completion-indicator"
19153
19153
  })
19154
- }) : Pe.has(n) && !e ? /* @__PURE__ */ (0, D.jsxs)(de, {
19154
+ }) : Fe.has(n) && !e ? /* @__PURE__ */ (0, D.jsxs)(de, {
19155
19155
  variant: "destructive",
19156
19156
  className: "text-xs",
19157
19157
  "data-testid": "boolean-warning-badge",
19158
- children: [t?.label || Ee(n), " — Off"]
19158
+ children: [t?.label || De(n), " — Off"]
19159
19159
  }) : /* @__PURE__ */ (0, D.jsx)("div", {
19160
19160
  className: "flex items-center justify-center",
19161
19161
  children: /* @__PURE__ */ (0, D.jsx)(pe, {
@@ -19165,12 +19165,12 @@ function Fe({ value: e, field: t }) {
19165
19165
  })
19166
19166
  });
19167
19167
  }
19168
- function Ie({ value: e, field: t }) {
19168
+ function Le({ value: e, field: t }) {
19169
19169
  if (!e) return /* @__PURE__ */ (0, D.jsx)("span", {
19170
19170
  className: "text-muted-foreground",
19171
19171
  children: "-"
19172
19172
  });
19173
- let n = Ce(e), r = Oe(n, t.format || "relative"), i = typeof n == "string" ? new Date(n) : n, a = i instanceof Date && !isNaN(i.getTime()), o = /* @__PURE__ */ new Date();
19173
+ let n = we(e), r = ke(n, t.format || "relative"), i = typeof n == "string" ? new Date(n) : n, a = i instanceof Date && !isNaN(i.getTime()), o = /* @__PURE__ */ new Date();
19174
19174
  o.setHours(0, 0, 0, 0);
19175
19175
  let s = a && i < o, c = a ? i.toISOString() : String(n);
19176
19176
  return /* @__PURE__ */ (0, D.jsx)("span", {
@@ -19179,12 +19179,12 @@ function Ie({ value: e, field: t }) {
19179
19179
  children: r
19180
19180
  });
19181
19181
  }
19182
- function Le({ value: e }) {
19182
+ function Re({ value: e }) {
19183
19183
  if (!e) return /* @__PURE__ */ (0, D.jsx)("span", {
19184
19184
  className: "text-muted-foreground",
19185
19185
  children: "-"
19186
19186
  });
19187
- let t = Ce(e), n = typeof t == "string" ? new Date(t) : t;
19187
+ let t = we(e), n = typeof t == "string" ? new Date(t) : t;
19188
19188
  if (!(n instanceof Date) || isNaN(n.getTime())) return /* @__PURE__ */ (0, D.jsx)("span", {
19189
19189
  className: "text-muted-foreground",
19190
19190
  children: "-"
@@ -19206,7 +19206,7 @@ function Le({ value: e }) {
19206
19206
  })]
19207
19207
  });
19208
19208
  }
19209
- var Re = {
19209
+ var ze = {
19210
19210
  critical: "red",
19211
19211
  urgent: "red",
19212
19212
  high: "orange",
@@ -19238,7 +19238,7 @@ var Re = {
19238
19238
  overdue: "red",
19239
19239
  delivered: "purple",
19240
19240
  archived: "indigo"
19241
- }, ze = {
19241
+ }, Be = {
19242
19242
  gray: "bg-gray-100 text-gray-800 border-gray-300",
19243
19243
  red: "bg-red-100 text-red-800 border-red-300",
19244
19244
  orange: "bg-orange-100 text-orange-800 border-orange-300",
@@ -19249,33 +19249,33 @@ var Re = {
19249
19249
  purple: "bg-purple-100 text-purple-800 border-purple-300",
19250
19250
  pink: "bg-pink-100 text-pink-800 border-pink-300"
19251
19251
  };
19252
- function Be(e, t) {
19253
- return ze[e || (t ? Re[String(t).toLowerCase().replace(/[\s-]/g, "_")] : void 0) || ""] || "bg-muted text-muted-foreground border-border";
19252
+ function Ve(e, t) {
19253
+ return Be[e || (t ? ze[String(t).toLowerCase().replace(/[\s-]/g, "_")] : void 0) || ""] || "bg-muted text-muted-foreground border-border";
19254
19254
  }
19255
- function Ve({ value: e, field: t }) {
19255
+ function He({ value: e, field: t }) {
19256
19256
  let n = t.options || [];
19257
19257
  if (!e) return /* @__PURE__ */ (0, D.jsx)("span", { children: "-" });
19258
19258
  if (Array.isArray(e)) return /* @__PURE__ */ (0, D.jsx)("div", {
19259
19259
  className: "flex flex-wrap gap-1",
19260
19260
  children: e.map((e, t) => {
19261
- let r = n.find((t) => t.value === e), i = r?.label || Ee(String(e));
19261
+ let r = n.find((t) => t.value === e), i = r?.label || De(String(e));
19262
19262
  return /* @__PURE__ */ (0, D.jsx)(de, {
19263
19263
  variant: "outline",
19264
- className: Be(r?.color, e),
19264
+ className: Ve(r?.color, e),
19265
19265
  children: i
19266
19266
  }, t);
19267
19267
  })
19268
19268
  });
19269
- let r = n.find((t) => t.value === e), i = r?.label || Ee(String(e));
19269
+ let r = n.find((t) => t.value === e), i = r?.label || De(String(e));
19270
19270
  return /* @__PURE__ */ (0, D.jsx)(de, {
19271
19271
  variant: "outline",
19272
- className: Be(r?.color, e),
19272
+ className: Ve(r?.color, e),
19273
19273
  children: i
19274
19274
  });
19275
19275
  }
19276
- function He({ value: e }) {
19276
+ function Ue({ value: e }) {
19277
19277
  if (!e) return /* @__PURE__ */ (0, D.jsx)("span", { children: "-" });
19278
- let t = String(Ce(e) ?? ""), [n, r] = C.useState(!1);
19278
+ let t = String(we(e) ?? ""), [n, r] = C.useState(!1);
19279
19279
  return /* @__PURE__ */ (0, D.jsxs)("span", {
19280
19280
  className: "inline-flex items-center gap-1 group/email",
19281
19281
  children: [/* @__PURE__ */ (0, D.jsx)(fe, {
@@ -19296,13 +19296,13 @@ function He({ value: e }) {
19296
19296
  }).catch(() => {});
19297
19297
  },
19298
19298
  "aria-label": "Copy email",
19299
- children: n ? /* @__PURE__ */ (0, D.jsx)(i, { className: "h-3 w-3 text-green-600" }) : /* @__PURE__ */ (0, D.jsx)(s, { className: "h-3 w-3 text-muted-foreground" })
19299
+ children: n ? /* @__PURE__ */ (0, D.jsx)(a, { className: "h-3 w-3 text-green-600" }) : /* @__PURE__ */ (0, D.jsx)(s, { className: "h-3 w-3 text-muted-foreground" })
19300
19300
  })]
19301
19301
  });
19302
19302
  }
19303
- function Ue({ value: e }) {
19303
+ function We({ value: e }) {
19304
19304
  if (!e) return /* @__PURE__ */ (0, D.jsx)("span", { children: "-" });
19305
- let t = String(Ce(e) ?? "");
19305
+ let t = String(we(e) ?? "");
19306
19306
  return /* @__PURE__ */ (0, D.jsx)(fe, {
19307
19307
  variant: "link",
19308
19308
  className: "p-0 h-auto font-normal text-blue-600 hover:text-blue-800",
@@ -19316,9 +19316,9 @@ function Ue({ value: e }) {
19316
19316
  })
19317
19317
  });
19318
19318
  }
19319
- function We({ value: e }) {
19319
+ function Ge({ value: e }) {
19320
19320
  if (!e) return /* @__PURE__ */ (0, D.jsx)("span", { children: "-" });
19321
- let t = String(Ce(e) ?? ""), [n, r] = C.useState(!1);
19321
+ let t = String(we(e) ?? ""), [n, r] = C.useState(!1);
19322
19322
  return /* @__PURE__ */ (0, D.jsxs)("span", {
19323
19323
  className: "inline-flex items-center gap-1 group/phone",
19324
19324
  children: [/* @__PURE__ */ (0, D.jsxs)("a", {
@@ -19335,11 +19335,11 @@ function We({ value: e }) {
19335
19335
  }).catch(() => {});
19336
19336
  },
19337
19337
  "aria-label": "Copy phone number",
19338
- children: n ? /* @__PURE__ */ (0, D.jsx)(i, { className: "h-3 w-3 text-green-600" }) : /* @__PURE__ */ (0, D.jsx)(s, { className: "h-3 w-3 text-muted-foreground" })
19338
+ children: n ? /* @__PURE__ */ (0, D.jsx)(a, { className: "h-3 w-3 text-green-600" }) : /* @__PURE__ */ (0, D.jsx)(s, { className: "h-3 w-3 text-muted-foreground" })
19339
19339
  })]
19340
19340
  });
19341
19341
  }
19342
- function Ge({ value: e, field: t }) {
19342
+ function Ke({ value: e, field: t }) {
19343
19343
  if (!e) return /* @__PURE__ */ (0, D.jsx)("span", { children: "-" });
19344
19344
  if (t.multiple, Array.isArray(e)) {
19345
19345
  let t = e.length;
@@ -19357,7 +19357,7 @@ function Ge({ value: e, field: t }) {
19357
19357
  children: e.name || e.original_name || "File"
19358
19358
  });
19359
19359
  }
19360
- function Ke({ value: e }) {
19360
+ function qe({ value: e }) {
19361
19361
  return e ? Array.isArray(e) ? /* @__PURE__ */ (0, D.jsxs)("div", {
19362
19362
  className: "flex -space-x-2",
19363
19363
  children: [e.slice(0, 3).map((e, t) => /* @__PURE__ */ (0, D.jsx)("img", {
@@ -19374,7 +19374,7 @@ function Ke({ value: e }) {
19374
19374
  className: "size-10 rounded-md object-cover"
19375
19375
  }) : /* @__PURE__ */ (0, D.jsx)("span", { children: "-" });
19376
19376
  }
19377
- function qe({ value: e, field: t }) {
19377
+ function Je({ value: e, field: t }) {
19378
19378
  if (e == null || e === "") return /* @__PURE__ */ (0, D.jsx)("span", { children: "-" });
19379
19379
  let n = t.options || [], r = (e) => {
19380
19380
  if (n.length > 0) {
@@ -19400,14 +19400,14 @@ function qe({ value: e, field: t }) {
19400
19400
  children: r(e)
19401
19401
  });
19402
19402
  }
19403
- function Je({ value: e }) {
19404
- let t = Ce(e);
19403
+ function Ye({ value: e }) {
19404
+ let t = we(e);
19405
19405
  return /* @__PURE__ */ (0, D.jsx)("span", {
19406
19406
  className: "text-gray-700 font-mono text-sm",
19407
19407
  children: t == null ? "-" : String(t)
19408
19408
  });
19409
19409
  }
19410
- function Ye({ value: e }) {
19410
+ function Xe({ value: e }) {
19411
19411
  if (!e) return /* @__PURE__ */ (0, D.jsx)("span", { children: "-" });
19412
19412
  if (typeof e != "object") return /* @__PURE__ */ (0, D.jsx)("span", {
19413
19413
  className: "truncate",
@@ -19452,39 +19452,39 @@ function Ye({ value: e }) {
19452
19452
  })]
19453
19453
  });
19454
19454
  }
19455
- var Xe = /* @__PURE__ */ new Map();
19456
- function Ze(e, t) {
19457
- Xe.set(e, t);
19455
+ var Ze = /* @__PURE__ */ new Map();
19456
+ function Qe(e, t) {
19457
+ Ze.set(e, t);
19458
19458
  }
19459
- function Qe(e) {
19460
- return Xe.has(e) ? Xe.get(e) : {
19461
- text: ke,
19462
- textarea: ke,
19463
- markdown: ke,
19464
- html: ke,
19465
- number: Ae,
19466
- currency: je,
19467
- percent: Ne,
19468
- boolean: Fe,
19469
- date: Ie,
19470
- datetime: Le,
19471
- time: ke,
19472
- select: Ve,
19473
- status: Ve,
19474
- lookup: qe,
19475
- master_detail: qe,
19476
- email: He,
19477
- url: Ue,
19478
- phone: We,
19479
- file: Ge,
19480
- image: Ke,
19481
- formula: Je,
19482
- summary: Je,
19483
- auto_number: ke,
19484
- user: Ye,
19485
- owner: Ye,
19459
+ function $e(e) {
19460
+ return Ze.has(e) ? Ze.get(e) : {
19461
+ text: Ae,
19462
+ textarea: Ae,
19463
+ markdown: Ae,
19464
+ html: Ae,
19465
+ number: je,
19466
+ currency: Me,
19467
+ percent: Pe,
19468
+ boolean: Ie,
19469
+ date: Le,
19470
+ datetime: Re,
19471
+ time: Ae,
19472
+ select: He,
19473
+ status: He,
19474
+ lookup: Je,
19475
+ master_detail: Je,
19476
+ email: Ue,
19477
+ url: We,
19478
+ phone: Ge,
19479
+ file: Ke,
19480
+ image: qe,
19481
+ formula: Ye,
19482
+ summary: Ye,
19483
+ auto_number: Ae,
19484
+ user: Xe,
19485
+ owner: Xe,
19486
19486
  password: () => /* @__PURE__ */ (0, D.jsx)("span", { children: "••••••" }),
19487
- location: ke,
19487
+ location: Ae,
19488
19488
  object: () => /* @__PURE__ */ (0, D.jsx)("span", {
19489
19489
  className: "text-gray-500 italic",
19490
19490
  children: "[Object]"
@@ -19497,51 +19497,51 @@ function Qe(e) {
19497
19497
  className: "text-gray-500 italic",
19498
19498
  children: "[Grid]"
19499
19499
  })
19500
- }[e] || ke;
19500
+ }[e] || Ae;
19501
19501
  }
19502
- Ze("lookup", qe), Ze("master_detail", qe), Ze("select", Ve), Ze("status", Ve), Ze("user", Ye), Ze("owner", Ye), a(Qe);
19503
- var $e = {
19504
- text: () => import("./TextField-XWOnbUrk.js").then((e) => e.n).then((e) => ({ default: e.TextField })),
19505
- textarea: () => import("./TextAreaField-BCUkjKTc.js").then((e) => e.n).then((e) => ({ default: e.TextAreaField })),
19506
- number: () => import("./NumberField-JaSlPVXs.js").then((e) => e.n).then((e) => ({ default: e.NumberField })),
19502
+ Qe("lookup", Je), Qe("master_detail", Je), Qe("select", He), Qe("status", He), Qe("user", Xe), Qe("owner", Xe), i($e);
19503
+ var et = {
19504
+ text: () => import("./TextField-SIw8aMzf.js").then((e) => e.n).then((e) => ({ default: e.TextField })),
19505
+ textarea: () => import("./TextAreaField-BY63Nr6-.js").then((e) => e.n).then((e) => ({ default: e.TextAreaField })),
19506
+ number: () => import("./NumberField-Kz4_o5DE.js").then((e) => e.n).then((e) => ({ default: e.NumberField })),
19507
19507
  boolean: () => import("./BooleanField-DRzAZhSq.js").then((e) => e.n).then((e) => ({ default: e.BooleanField })),
19508
- select: () => import("./SelectField-C2gtlnLZ.js").then((e) => e.n).then((e) => ({ default: e.SelectField })),
19508
+ select: () => import("./SelectField-CcWvzp9g.js").then((e) => ({ default: e.SelectField })),
19509
19509
  date: () => import("./DateField-CV-NpLbM.js").then((e) => e.n).then((e) => ({ default: e.DateField })),
19510
19510
  datetime: () => import("./DateTimeField--YTsgTjw.js").then((e) => e.n).then((e) => ({ default: e.DateTimeField })),
19511
- time: () => import("./TimeField-CZdzdqOO.js").then((e) => e.n).then((e) => ({ default: e.TimeField })),
19511
+ time: () => import("./TimeField-xxziHPjE.js").then((e) => e.n).then((e) => ({ default: e.TimeField })),
19512
19512
  email: () => import("./EmailField-B-3fWJsH.js").then((e) => e.n).then((e) => ({ default: e.EmailField })),
19513
- phone: () => import("./PhoneField-DOaMivd6.js").then((e) => e.n).then((e) => ({ default: e.PhoneField })),
19514
- url: () => import("./UrlField-sq1mpRoG.js").then((e) => e.n).then((e) => ({ default: e.UrlField })),
19513
+ phone: () => import("./PhoneField-Dn4h6V9H.js").then((e) => e.n).then((e) => ({ default: e.PhoneField })),
19514
+ url: () => import("./UrlField-Ihk3_ff5.js").then((e) => e.n).then((e) => ({ default: e.UrlField })),
19515
19515
  currency: () => import("./CurrencyField-Bu80a-sI.js").then((e) => e.n).then((e) => ({ default: e.CurrencyField })),
19516
- percent: () => import("./PercentField-D2_kMuC_.js").then((e) => e.n).then((e) => ({ default: e.PercentField })),
19517
- password: () => import("./PasswordField-d6E-vKBI.js").then((e) => e.n).then((e) => ({ default: e.PasswordField })),
19518
- markdown: () => import("./RichTextField-D4FIV9V8.js").then((e) => e.t).then((e) => ({ default: e.RichTextField })),
19519
- html: () => import("./RichTextField-D4FIV9V8.js").then((e) => e.t).then((e) => ({ default: e.RichTextField })),
19520
- lookup: () => import("./LookupField-Dmzju5Q0.js").then((e) => e.n).then((e) => ({ default: e.LookupField })),
19521
- master_detail: () => import("./MasterDetailField-CPLHbe_Y.js").then((e) => e.t).then((e) => ({ default: e.MasterDetailField })),
19522
- file: () => import("./FileField-DxxdESfc.js").then((e) => e.t).then((e) => ({ default: e.FileField })),
19523
- image: () => import("./ImageField-DK7sUV6b.js").then((e) => e.n).then((e) => ({ default: e.ImageField })),
19516
+ percent: () => import("./PercentField-Dmipqv0I.js").then((e) => e.n).then((e) => ({ default: e.PercentField })),
19517
+ password: () => import("./PasswordField-k5JeKk9f.js").then((e) => e.n).then((e) => ({ default: e.PasswordField })),
19518
+ markdown: () => import("./RichTextField-CN5BRd_7.js").then((e) => e.t).then((e) => ({ default: e.RichTextField })),
19519
+ html: () => import("./RichTextField-CN5BRd_7.js").then((e) => e.t).then((e) => ({ default: e.RichTextField })),
19520
+ lookup: () => import("./LookupField-KfYQlgUd.js").then((e) => ({ default: e.LookupField })),
19521
+ master_detail: () => import("./MasterDetailField-BnSPGAtS.js").then((e) => e.t).then((e) => ({ default: e.MasterDetailField })),
19522
+ file: () => import("./FileField-BcGMvBnI.js").then((e) => e.t).then((e) => ({ default: e.FileField })),
19523
+ image: () => import("./ImageField-BBqwJEkk.js").then((e) => e.n).then((e) => ({ default: e.ImageField })),
19524
19524
  location: () => import("./LocationField-DSvhU9Dz.js").then((e) => e.t).then((e) => ({ default: e.LocationField })),
19525
19525
  formula: () => import("./FormulaField-MQXJZOep.js").then((e) => e.t).then((e) => ({ default: e.FormulaField })),
19526
- summary: () => import("./SummaryField-Dy2Kkj6M.js").then((e) => e.t).then((e) => ({ default: e.SummaryField })),
19526
+ summary: () => import("./SummaryField-R9RENAZv.js").then((e) => e.t).then((e) => ({ default: e.SummaryField })),
19527
19527
  auto_number: () => import("./AutoNumberField-0RU2dNKe.js").then((e) => e.t).then((e) => ({ default: e.AutoNumberField })),
19528
- user: () => import("./UserField-Dqk38Arc.js").then((e) => e.t).then((e) => ({ default: e.UserField })),
19529
- owner: () => import("./UserField-Dqk38Arc.js").then((e) => e.t).then((e) => ({ default: e.UserField })),
19530
- object: () => import("./ObjectField-FzUYlu-m.js").then((e) => e.t).then((e) => ({ default: e.ObjectField })),
19531
- vector: () => import("./VectorField-CY70VLiW.js").then((e) => e.t).then((e) => ({ default: e.VectorField })),
19528
+ user: () => import("./UserField-BHl6mmIH.js").then((e) => e.t).then((e) => ({ default: e.UserField })),
19529
+ owner: () => import("./UserField-BHl6mmIH.js").then((e) => e.t).then((e) => ({ default: e.UserField })),
19530
+ object: () => import("./ObjectField-C1qkl6s4.js").then((e) => e.t).then((e) => ({ default: e.ObjectField })),
19531
+ vector: () => import("./VectorField-Ci167cxr.js").then((e) => e.t).then((e) => ({ default: e.VectorField })),
19532
19532
  grid: () => import("./GridField-DHsGo9l2.js").then((e) => e.t).then((e) => ({ default: e.GridField })),
19533
19533
  color: () => import("./ColorField-B-YAFXdz.js").then((e) => e.n).then((e) => ({ default: e.ColorField })),
19534
- slider: () => import("./SliderField-BlAlK3g2.js").then((e) => e.n).then((e) => ({ default: e.SliderField })),
19535
- rating: () => import("./RatingField-BKAGmlzh.js").then((e) => e.n).then((e) => ({ default: e.RatingField })),
19534
+ slider: () => import("./SliderField-C9IhmjbF.js").then((e) => e.n).then((e) => ({ default: e.SliderField })),
19535
+ rating: () => import("./RatingField-5iMhn2GL.js").then((e) => e.n).then((e) => ({ default: e.RatingField })),
19536
19536
  code: () => import("./CodeField-RWhnDMyL.js").then((e) => e.n).then((e) => ({ default: e.CodeField })),
19537
- avatar: () => import("./AvatarField-IZTLB0Ye.js").then((e) => e.n).then((e) => ({ default: e.AvatarField })),
19537
+ avatar: () => import("./AvatarField-C5b9biGa.js").then((e) => e.n).then((e) => ({ default: e.AvatarField })),
19538
19538
  address: () => import("./AddressField-DKqaE9pD.js").then((e) => e.t).then((e) => ({ default: e.AddressField })),
19539
- geolocation: () => import("./GeolocationField-BzKgcWLN.js").then((e) => e.t).then((e) => ({ default: e.GeolocationField })),
19540
- signature: () => import("./SignatureField-fFEb0h_C.js").then((e) => e.t).then((e) => ({ default: e.SignatureField })),
19541
- qrcode: () => import("./QRCodeField-BIQhc73N.js").then((e) => e.t).then((e) => ({ default: e.QRCodeField }))
19539
+ geolocation: () => import("./GeolocationField-D3BrmwqV.js").then((e) => e.t).then((e) => ({ default: e.GeolocationField })),
19540
+ signature: () => import("./SignatureField-BAMvNrE6.js").then((e) => e.t).then((e) => ({ default: e.SignatureField })),
19541
+ qrcode: () => import("./QRCodeField-BIrSW1Zr.js").then((e) => e.t).then((e) => ({ default: e.QRCodeField }))
19542
19542
  };
19543
- function et(e) {
19544
- let t = $e[e];
19543
+ function tt(e) {
19544
+ let t = et[e];
19545
19545
  if (!t) {
19546
19546
  console.warn(`Unknown field type: ${e}`);
19547
19547
  return;
@@ -19549,15 +19549,15 @@ function et(e) {
19549
19549
  let n = C.lazy(t);
19550
19550
  T.register(e, n, { namespace: "field" });
19551
19551
  }
19552
- function tt() {
19553
- Object.keys($e).forEach((e) => {
19554
- et(e);
19552
+ function nt() {
19553
+ Object.keys(et).forEach((e) => {
19554
+ tt(e);
19555
19555
  });
19556
19556
  }
19557
- tt();
19557
+ nt();
19558
19558
  //#endregion
19559
19559
  //#region src/field-renderers.tsx
19560
- var nt = {
19560
+ var rt = {
19561
19561
  text: re,
19562
19562
  textarea: ne,
19563
19563
  number: y,
@@ -19580,15 +19580,15 @@ var nt = {
19580
19580
  slider: te,
19581
19581
  code: f
19582
19582
  };
19583
- function rt(e) {
19584
- return nt[e] || null;
19583
+ function it(e) {
19584
+ return rt[e] || null;
19585
19585
  }
19586
- var it = class {
19586
+ var at = class {
19587
19587
  eGui;
19588
19588
  root = null;
19589
19589
  init(e) {
19590
- let { value: t, field: n } = e, r = rt(n.type);
19591
- this.eGui = document.createElement("div"), this.eGui.className = "field-widget-cell", r ? (this.root = (0, Se.createRoot)(this.eGui), this.root.render(/* @__PURE__ */ (0, D.jsx)(r, {
19590
+ let { value: t, field: n } = e, r = it(n.type);
19591
+ this.eGui = document.createElement("div"), this.eGui.className = "field-widget-cell", r ? (this.root = (0, Ce.createRoot)(this.eGui), this.root.render(/* @__PURE__ */ (0, D.jsx)(r, {
19592
19592
  value: t,
19593
19593
  onChange: () => {},
19594
19594
  field: n,
@@ -19599,7 +19599,7 @@ var it = class {
19599
19599
  return this.eGui;
19600
19600
  }
19601
19601
  refresh(e) {
19602
- let { value: t, field: n } = e, r = rt(n.type);
19602
+ let { value: t, field: n } = e, r = it(n.type);
19603
19603
  return r && this.root ? (this.root.render(/* @__PURE__ */ (0, D.jsx)(r, {
19604
19604
  value: t,
19605
19605
  onChange: () => {},
@@ -19610,15 +19610,15 @@ var it = class {
19610
19610
  destroy() {
19611
19611
  this.root && this.root.unmount();
19612
19612
  }
19613
- }, at = class {
19613
+ }, ot = class {
19614
19614
  eGui;
19615
19615
  root = null;
19616
19616
  currentValue;
19617
19617
  params;
19618
19618
  init(e) {
19619
19619
  this.params = e, this.currentValue = e.value;
19620
- let { field: t } = e, n = rt(t.type);
19621
- if (this.eGui = document.createElement("div"), this.eGui.className = "field-widget-editor", n) this.root = (0, Se.createRoot)(this.eGui), this.root.render(/* @__PURE__ */ (0, D.jsx)(n, {
19620
+ let { field: t } = e, n = it(t.type);
19621
+ if (this.eGui = document.createElement("div"), this.eGui.className = "field-widget-editor", n) this.root = (0, Ce.createRoot)(this.eGui), this.root.render(/* @__PURE__ */ (0, D.jsx)(n, {
19622
19622
  value: this.currentValue,
19623
19623
  onChange: (e) => {
19624
19624
  this.currentValue = e;
@@ -19652,8 +19652,8 @@ var it = class {
19652
19652
  ].includes(this.params.field.type);
19653
19653
  }
19654
19654
  };
19655
- function ot(e) {
19656
- return class extends it {
19655
+ function st(e) {
19656
+ return class extends at {
19657
19657
  init(t) {
19658
19658
  super.init({
19659
19659
  ...t,
@@ -19668,8 +19668,8 @@ function ot(e) {
19668
19668
  }
19669
19669
  };
19670
19670
  }
19671
- function st(e) {
19672
- return class extends at {
19671
+ function ct(e) {
19672
+ return class extends ot {
19673
19673
  init(t) {
19674
19674
  super.init({
19675
19675
  ...t,
@@ -19680,7 +19680,7 @@ function st(e) {
19680
19680
  }
19681
19681
  //#endregion
19682
19682
  //#region src/ObjectAgGridImpl.tsx
19683
- function ct({ objectName: e, dataSource: t, fields: n, fieldNames: r, filters: i, sort: a, pageSize: o = 10, pagination: s = !0, domLayout: c = "normal", animateRows: l = !0, rowSelection: u, theme: d = "quartz", height: f = 500, className: p = "", editable: m = !1, editType: h, singleClickEdit: g = !1, stopEditingWhenCellsLoseFocus: _ = !0, exportConfig: v, statusBar: y, callbacks: b, columnConfig: x, enableRangeSelection: ee = !1, enableCharts: te = !1, contextMenu: ne }) {
19683
+ function lt({ objectName: e, dataSource: t, fields: n, fieldNames: r, filters: i, sort: a, pageSize: o = 10, pagination: s = !0, domLayout: c = "normal", animateRows: l = !0, rowSelection: u, theme: d = "quartz", height: f = 500, className: p = "", editable: m = !1, editType: h, singleClickEdit: g = !1, stopEditingWhenCellsLoseFocus: _ = !0, exportConfig: v, statusBar: y, callbacks: b, columnConfig: x, enableRangeSelection: ee = !1, enableCharts: te = !1, contextMenu: ne }) {
19684
19684
  let re = se(null), [S, ie] = ce(!0), [C, T] = ce(null), [le, ue] = ce(null), [de, fe] = ce([]);
19685
19685
  oe(() => {
19686
19686
  if (!t) {
@@ -19738,10 +19738,10 @@ function ct({ objectName: e, dataSource: t, fields: n, fieldNames: r, filters: i
19738
19738
  field: e.name,
19739
19739
  headerName: e.label || e.name,
19740
19740
  sortable: e.sortable !== !1,
19741
- filter: lt(e),
19741
+ filter: ut(e),
19742
19742
  editable: m && !e.readonly
19743
19743
  };
19744
- return x && (x.resizable !== void 0 && (t.resizable = x.resizable), x.sortable !== void 0 && t.sortable === void 0 && (t.sortable = x.sortable)), ut(t, e), t;
19744
+ return x && (x.resizable !== void 0 && (t.resizable = x.resizable), x.sortable !== void 0 && t.sortable === void 0 && (t.sortable = x.sortable)), dt(t, e), t;
19745
19745
  });
19746
19746
  }, [
19747
19747
  le,
@@ -19936,10 +19936,10 @@ function ct({ objectName: e, dataSource: t, fields: n, fieldNames: r, filters: i
19936
19936
  })]
19937
19937
  });
19938
19938
  }
19939
- function lt(e) {
19939
+ function ut(e) {
19940
19940
  return e.filterable === !1 ? !1 : ge[e.type] || "agTextColumnFilter";
19941
19941
  }
19942
- function ut(e, t) {
19942
+ function dt(e, t) {
19943
19943
  if ([
19944
19944
  "text",
19945
19945
  "textarea",
@@ -19962,7 +19962,7 @@ function ut(e, t) {
19962
19962
  "lookup",
19963
19963
  "slider",
19964
19964
  "code"
19965
- ].includes(t.type)) e.cellRenderer = ot(t), e.editable && (e.cellEditor = st(t), [
19965
+ ].includes(t.type)) e.cellRenderer = st(t), e.editable && (e.cellEditor = ct(t), [
19966
19966
  "date",
19967
19967
  "datetime",
19968
19968
  "select",
@@ -19995,4 +19995,4 @@ function ut(e, t) {
19995
19995
  }
19996
19996
  }
19997
19997
  //#endregion
19998
- export { ct as default };
19998
+ export { lt as default };