@declarion/react 0.36.4 → 0.36.6

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.
@@ -1,6 +1,6 @@
1
1
  import { s as e, t } from "./DynamicIcon-BWO6QtNF.js";
2
2
  import { Gn as n, Kn as r, L as i, Nn as a, On as o, R as s, U as c, Wn as l, _ as u, an as d, at as f, bn as p, dn as m, en as h, fn as g, g as _, gn as v, h as y, hn as b, ht as x, it as S, jt as C, ln as w, m as T, on as E, rt as D, sn as O, un as k, zn as A } from "./useCurrentScreen-Bgp6_vne.js";
3
- import { E as j, J as M, K as ee, St as N, T as P, Y as F, d as I, et as L, k as R, o as z, pt as B, q as V, r as te, t as ne, tt as re, u as ie, xt as ae } from "./registry-F_ieiQHj.js";
3
+ import { E as j, J as M, K as ee, St as N, T as P, Y as F, d as I, et as L, k as R, o as z, pt as B, q as V, r as te, t as ne, tt as re, u as ie, xt as ae } from "./registry-C2vvLLHm.js";
4
4
  import { n as oe, r as se, t as ce } from "./dataTableStyles-vwD1mVOP.js";
5
5
  import { Suspense as le, createContext as ue, lazy as H, useCallback as U, useContext as de, useEffect as W, useId as fe, useLayoutEffect as pe, useMemo as G, useRef as K, useState as q } from "react";
6
6
  import { useInfiniteQuery as me, useMutation as he, useQueryClient as ge } from "@tanstack/react-query";
@@ -1,9 +1,9 @@
1
1
  import { s as e, t } from "./DynamicIcon-BWO6QtNF.js";
2
2
  import { $ as n, B as r, Gn as i, I as a, Kn as o, L as s, Nn as c, S as l, W as u, Wn as d, Xt as f, Z as p, _t as m, an as h, b as g, bn as _, cn as v, fn as y, g as b, gt as ee, h as te, i as x, ln as ne, lt as S, mn as C, nt as w, on as re, ot as T, sn as ie, un as E, ut as D, v as O, z as k, zn as ae } from "./useCurrentScreen-Bgp6_vne.js";
3
3
  import { I as oe, N as se, P as ce, S as le, f as A, h as j, i as ue, l as de, o as fe, t as M, u as N, v as pe, w as me } from "./RefreshControl-Bpd9kw0G.js";
4
- import { $ as he, D as ge, G as _e, H as ve, K as ye, L as P, M as be, O as xe, Q as Se, St as Ce, U as we, W as Te, X as Ee, Z as De, _ as Oe, a as ke, dt as Ae, et as je, ft as Me, i as Ne, nt as Pe, q as Fe, s as Ie, tt as Le, vt as Re, w as ze, z as Be } from "./registry-F_ieiQHj.js";
4
+ import { $ as he, D as ge, G as _e, H as ve, K as ye, L as P, M as be, O as xe, Q as Se, St as Ce, U as we, W as Te, X as Ee, Z as De, _ as Oe, a as ke, dt as Ae, et as je, ft as Me, i as Ne, nt as Pe, q as Fe, s as Ie, tt as Le, vt as Re, w as ze, z as Be } from "./registry-C2vvLLHm.js";
5
5
  import { n as Ve, r as He, t as Ue } from "./dataTableStyles-vwD1mVOP.js";
6
- import { n as We, t as Ge } from "./LayoutRenderer-DRpSyfhM.js";
6
+ import { n as We, t as Ge } from "./LayoutRenderer-BWMdYJy8.js";
7
7
  import { Fragment as Ke, useCallback as F, useEffect as I, useMemo as L, useRef as qe, useState as R } from "react";
8
8
  import { useLocation as Je, useParams as Ye, useSearchParams as Xe } from "react-router-dom";
9
9
  import { useQuery as Ze, useQueryClient as Qe } from "@tanstack/react-query";
@@ -1,8 +1,8 @@
1
1
  import { s as e } from "./DynamicIcon-BWO6QtNF.js";
2
2
  import { F as t, Gn as n, Kn as r, M as i, Nn as a, On as o, U as s, an as c, b as l, bn as u, cn as d, gt as ee, h as f, jn as te, sn as p, un as m, v as h, yn as g, zn as ne } from "./useCurrentScreen-Bgp6_vne.js";
3
- import { $ as _, G as v, Q as re, X as y, Z as b, _ as ie, a as x, c as S, et as C, nt as w, s as T, w as ae } from "./registry-F_ieiQHj.js";
4
- import { b as E, d as D, f as O, g as k, m as oe, n as A, p as se, r as j, s as M } from "./useProperties-inTonnKw.js";
5
- import { t as N } from "./LayoutRenderer-DRpSyfhM.js";
3
+ import { $ as _, G as v, Q as re, X as y, Z as b, _ as ie, a as x, c as S, et as C, nt as w, s as T, w as ae } from "./registry-C2vvLLHm.js";
4
+ import { b as E, d as D, f as O, g as k, m as oe, n as A, p as se, r as j, s as M } from "./useProperties-zGgDTk9K.js";
5
+ import { t as N } from "./LayoutRenderer-BWMdYJy8.js";
6
6
  import { useCallback as P, useEffect as F, useMemo as I, useRef as L, useState as R } from "react";
7
7
  import { useSearchParams as ce } from "react-router-dom";
8
8
  import { Fragment as z, jsx as B, jsxs as V } from "react/jsx-runtime";
@@ -205,7 +205,7 @@ interface LayoutDecision {
205
205
  /** Pinned trailing-anchor group; never overflows. Plan §3 partition. */
206
206
  destructiveInline: ResolvedActionLeaf[];
207
207
  }
208
- export declare function computeLayout(nodes: ResolvedActionLayoutNode[], containerWidth: number, reservedRightWidth: number, measuredWidths: Map<string, number>, entityActions: Record<string, Action> | undefined, globalActions: Record<string, Action> | undefined, measurementOverride?: (node: ResolvedActionLayoutNode) => boolean): LayoutDecision;
208
+ export declare function computeLayout(nodes: ResolvedActionLayoutNode[], containerWidth: number, reservedRightWidth: number, measuredWidths: Map<string, number>, entityActions: Record<string, Action> | undefined, globalActions: Record<string, Action> | undefined, measurementOverride?: (node: ResolvedActionLayoutNode) => boolean, prevInline?: ReadonlySet<string>): LayoutDecision;
209
209
  /**
210
210
  * ResponsiveActionBar renders a resolved action layout tree.
211
211
  *
package/dist-lib/index.js CHANGED
@@ -1,8 +1,8 @@
1
1
  import { a as e, r as t, s as n, t as r } from "./DynamicIcon-BWO6QtNF.js";
2
2
  import { $ as i, $t as a, A as o, An as s, At as c, Bn as l, Bt as u, C as d, Cn as f, Ct as p, Dn as m, Dt as h, En as g, Et as _, F as v, Fn as y, Ft as b, G as x, Gn as S, H as C, Hn as w, Ht as T, In as E, It as D, J as ee, Jt as te, Kn as O, Kt as ne, Ln as re, Lt as ie, M as k, Mn as ae, Mt as oe, N as se, Nn as ce, Nt as le, On as ue, Ot as A, P as de, Pn as j, Pt as M, Q as N, Qt as fe, Rn as pe, Rt as me, S as he, Sn as ge, St as _e, T as ve, Tn as ye, Tt as be, U as P, Un as xe, Ut as Se, V as Ce, Vn as we, Vt as Te, W as Ee, Wn as F, Wt as De, X as Oe, Xt as ke, Y as Ae, Yt as je, Zt as Me, _ as Ne, _n as Pe, _t as I, an as Fe, b as Ie, bn as L, bt as R, c as Le, cn as Re, ct as ze, d as Be, dn as Ve, dt as He, et as Ue, fn as We, g as Ge, gn as Ke, gt as qe, h as Je, ht as Ye, i as z, in as Xe, it as Ze, j as Qe, jn as $e, kn as et, kt as B, l as tt, ln as nt, lt as rt, mn as it, n as at, nn as ot, nt as st, on as ct, ot as lt, pn as ut, qt as dt, r as ft, rn as pt, rt as mt, s as ht, sn as gt, st as V, t as _t, tn as vt, tt as yt, u as bt, un as H, v as xt, vt as St, w as Ct, wn as wt, wt as Tt, x as Et, xn as Dt, xt as Ot, y as kt, yt as At, zn as U, zt as jt } from "./useCurrentScreen-Bgp6_vne.js";
3
3
  import { A as Mt, C as Nt, D as Pt, E as Ft, F as It, I as Lt, M as Rt, N as zt, O as Bt, P as Vt, S as Ht, T as Ut, _ as Wt, a as Gt, b as Kt, c as qt, d as Jt, f as Yt, g as Xt, h as Zt, j as Qt, k as $t, l as en, m as tn, n as nn, o as rn, p as an, r as on, s as sn, t as cn, u as ln, v as un, w as dn, x as fn, y as pn } from "./RefreshControl-Bpd9kw0G.js";
4
- import { $ as mn, A as hn, B as gn, C as _n, D as vn, E as yn, F as W, G as bn, H as xn, I as Sn, K as Cn, L as wn, M as Tn, N as En, O as Dn, P as On, R as kn, S as An, St as jn, T as Mn, U as Nn, V as Pn, X as Fn, Z as In, _ as Ln, _t as Rn, a as zn, at as Bn, b as Vn, bt as G, c as Hn, ct as Un, d as Wn, dt as Gn, et as Kn, f as qn, ft as Jn, g as Yn, gt as Xn, h as Zn, ht as Qn, i as $n, it as er, j as tr, l as nr, lt as rr, m as ir, mt as ar, n as or, nt as sr, o as cr, ot as lr, p as ur, q as dr, r as fr, rt as pr, s as mr, st as hr, t as gr, tt as _r, u as vr, ut as yr, v as br, vt as xr, x as Sr, xt as Cr, y as wr, yt as Tr, z as Er } from "./registry-F_ieiQHj.js";
5
- import { C as Dr, S as Or, _ as kr, a as Ar, b as jr, c as Mr, d as Nr, f as Pr, g as Fr, h as Ir, i as Lr, l as Rr, m as zr, n as Br, o as Vr, p as Hr, r as Ur, t as Wr, u as Gr, v as Kr, x as qr, y as Jr } from "./useProperties-inTonnKw.js";
4
+ import { $ as mn, A as hn, B as gn, C as _n, D as vn, E as yn, F as W, G as bn, H as xn, I as Sn, K as Cn, L as wn, M as Tn, N as En, O as Dn, P as On, R as kn, S as An, St as jn, T as Mn, U as Nn, V as Pn, X as Fn, Z as In, _ as Ln, _t as Rn, a as zn, at as Bn, b as Vn, bt as G, c as Hn, ct as Un, d as Wn, dt as Gn, et as Kn, f as qn, ft as Jn, g as Yn, gt as Xn, h as Zn, ht as Qn, i as $n, it as er, j as tr, l as nr, lt as rr, m as ir, mt as ar, n as or, nt as sr, o as cr, ot as lr, p as ur, q as dr, r as fr, rt as pr, s as mr, st as hr, t as gr, tt as _r, u as vr, ut as yr, v as br, vt as xr, x as Sr, xt as Cr, y as wr, yt as Tr, z as Er } from "./registry-C2vvLLHm.js";
5
+ import { C as Dr, S as Or, _ as kr, a as Ar, b as jr, c as Mr, d as Nr, f as Pr, g as Fr, h as Ir, i as Lr, l as Rr, m as zr, n as Br, o as Vr, p as Hr, r as Ur, t as Wr, u as Gr, v as Kr, x as qr, y as Jr } from "./useProperties-zGgDTk9K.js";
6
6
  import { Fragment as Yr, Suspense as Xr, createElement as Zr, lazy as Qr, useCallback as K, useEffect as q, useMemo as J, useRef as Y, useState as X } from "react";
7
7
  import { BrowserRouter as $r, Link as ei, Navigate as ti, Outlet as ni, Route as ri, Routes as ii, useLocation as ai, useLocation as oi, useNavigate as si, useNavigate as ci, useNavigationType as li, useParams as ui, useSearchParams as di, useSearchParams as fi } from "react-router-dom";
8
8
  import { QueryClient as pi, QueryClientProvider as mi, useInfiniteQuery as hi, useMutation as gi, useQueries as _i, useQuery as vi, useQueryClient as yi } from "@tanstack/react-query";
@@ -11887,7 +11887,7 @@ function sl({ screenCode: e }) {
11887
11887
  }
11888
11888
  //#endregion
11889
11889
  //#region src/components/pages/SmartDetailPage.tsx
11890
- var cl = Qr(() => import("./SmartDetailPage.impl-Bm_XARHf.js").then((e) => ({ default: e.SmartDetailPage })));
11890
+ var cl = Qr(() => import("./SmartDetailPage.impl-tNzyW3d1.js").then((e) => ({ default: e.SmartDetailPage })));
11891
11891
  function ll(e) {
11892
11892
  return /* @__PURE__ */ Q(Xr, {
11893
11893
  fallback: null,
@@ -11896,7 +11896,7 @@ function ll(e) {
11896
11896
  }
11897
11897
  //#endregion
11898
11898
  //#region src/components/pages/SmartRecordListPage.tsx
11899
- var ul = Qr(() => import("./SmartRecordListPage.impl-BEAzY8Ce.js").then((e) => ({ default: e.SmartRecordListPage })));
11899
+ var ul = Qr(() => import("./SmartRecordListPage.impl-VX_15dKC.js").then((e) => ({ default: e.SmartRecordListPage })));
11900
11900
  function dl(e) {
11901
11901
  return /* @__PURE__ */ Q(Xr, {
11902
11902
  fallback: null,
@@ -3045,25 +3045,28 @@ function Hr({ layout: t, entityActions: n, globalActions: r, onRun: i, trailingN
3045
3045
  });
3046
3046
  }
3047
3047
  var Ur = "__overflow_trigger__", Wr = 90, Gr = 80;
3048
- function Kr(e, t, n, r, i, a, o) {
3049
- let { primary: s, regular: c, destructive: l } = Nr(e, i, a), u = s.length > 0 ? s.reduce((e, t) => e + (r.get(qr(t)) ?? 0), 0) : 0, d = l.length > 0 ? l.reduce((e, t) => e + (r.get(qr(t)) ?? Gr), 0) : 0, f = t - n - u - d, p = r.get(Ur) ?? Wr, m = 0, h = [], g = [], _ = !1;
3050
- for (let e of c) {
3051
- let t = r.get(qr(e)) ?? 0;
3048
+ function Kr(e) {
3049
+ return e + 8;
3050
+ }
3051
+ function qr(e, t, n, r, i, a, o, s) {
3052
+ let { primary: c, regular: l, destructive: u } = Nr(e, i, a), d = c.length > 0 ? c.reduce((e, t) => e + (r.get($(t)) ?? 0), 0) : 0, f = u.length > 0 ? u.reduce((e, t) => e + (r.get($(t)) ?? Gr), 0) : 0, p = t - n - d - f, m = r.get(Ur) ?? Wr, h = 0, g = [], _ = [], v = !1;
3053
+ for (let e of l) {
3054
+ let t = r.get($(e)) ?? 0;
3052
3055
  if (o) {
3053
- o(e) ? (h.push(e), m += t) : (g.push(e), _ = !0);
3056
+ o(e) ? (g.push(e), h += t) : (_.push(e), v = !0);
3054
3057
  continue;
3055
3058
  }
3056
- let n = c.length - h.length - g.length - 1 > 0 || g.length > 0 ? p : 0;
3057
- m + t + n <= f ? (h.push(e), m += t) : (g.push(e), _ = !0);
3059
+ let n = l.length - g.length - _.length - 1 > 0 || _.length > 0 ? m : 0, i = s && !s.has($(e)) ? Kr(m) : 0;
3060
+ h + t + n + i <= p ? (g.push(e), h += t) : (_.push(e), v = !0);
3058
3061
  }
3059
3062
  return {
3060
- primaryInline: s,
3061
- inline: h,
3062
- overflow: _ ? g : [],
3063
- destructiveInline: l
3063
+ primaryInline: c,
3064
+ inline: g,
3065
+ overflow: v ? _ : [],
3066
+ destructiveInline: u
3064
3067
  };
3065
3068
  }
3066
- function qr(e) {
3069
+ function $(e) {
3067
3070
  return e.kind === "action" ? `action:${e.code}` : `group:${e.name ? W(e.name) : ""}`;
3068
3071
  }
3069
3072
  function Jr({ layout: n, entityActions: r, globalActions: i, onRun: a, reservedRightWidth: o = 0, measurementOverride: c, ariaLabel: u = "Actions", align: d = "trailing", constrain: f = !0, row: p, widgetContext: m, onActionClick: h }) {
@@ -3085,7 +3088,7 @@ function Jr({ layout: n, entityActions: r, globalActions: i, onRun: a, reservedR
3085
3088
  let n = e.dataset.nodeKey;
3086
3089
  n && t.set(n, e.getBoundingClientRect().width || e.offsetWidth);
3087
3090
  }), x(t), C(!0);
3088
- }, [N]);
3091
+ }, [N]), F = q(() => JSON.stringify(n.map((e) => $(e))), [n]);
3089
3092
  Me(() => {
3090
3093
  if (N) {
3091
3094
  C(!0);
@@ -3097,7 +3100,7 @@ function Jr({ layout: n, entityActions: r, globalActions: i, onRun: a, reservedR
3097
3100
  });
3098
3101
  return () => cancelAnimationFrame(e);
3099
3102
  }, [
3100
- q(() => JSON.stringify(n.map((e) => qr(e))), [n]),
3103
+ F,
3101
3104
  P,
3102
3105
  N
3103
3106
  ]), K(() => {
@@ -3112,8 +3115,10 @@ function Jr({ layout: n, entityActions: r, globalActions: i, onRun: a, reservedR
3112
3115
  N
3113
3116
  ]), K(() => {
3114
3117
  if (N || !f || !S || v === 0) return;
3115
- let e = [...b.entries()].filter(([e]) => e !== Ur).reduce((e, [, t]) => e + t, 0);
3116
- e > 0 && v <= e && console.error(`[declarion] ResponsiveActionBar has no room to measure: its container is ${Math.round(v)}px and its buttons are ${Math.round(e)}px. The slot holding this bar is sized by its own content, so the bar is measuring itself. Give that slot \`flex: 1 1 auto; min-width: 0\` (and justify its content to the edge the buttons sit on), or pass \`constrain={false}\` if it genuinely has no row to take space from.`);
3118
+ let e = g.current;
3119
+ if (!e) return;
3120
+ let t = [...e.children].filter((e) => e.getAttribute("aria-hidden") !== "true"), n = t.length > 1 ? (t.length - 1) * 4 : 0, r = t.reduce((e, t) => e + t.getBoundingClientRect().width, 0) + n;
3121
+ r > 0 && Math.abs(v - r) < 1 && console.error(`[declarion] ResponsiveActionBar is measuring itself: its container is ${Math.round(v)}px, exactly the width of what it just rendered. The slot holding this bar is sized by its own content, so it cannot tell the bar how much room there is. Give that slot \`flex: 1 1 auto; min-width: 0\` (and justify its content to the edge the buttons sit on), or pass \`constrain={false}\` if it genuinely has no row to take space from.`);
3117
3122
  }, [
3118
3123
  N,
3119
3124
  f,
@@ -3134,7 +3139,11 @@ function Jr({ layout: n, entityActions: r, globalActions: i, onRun: a, reservedR
3134
3139
  });
3135
3140
  return t.observe(e), y(e.getBoundingClientRect().width), () => t.disconnect();
3136
3141
  }, [N]);
3137
- let F = q(() => N || !f ? Kr(n, 2 ** 53 - 1, o, b, r, i, c) : S ? v === 0 ? Kr(n, 2 ** 53 - 1, o, b, r, i, c) : Kr(n, v, o, b, r, i, c) : {
3142
+ let I = J(void 0);
3143
+ K(() => {
3144
+ I.current = void 0;
3145
+ }, [F]);
3146
+ let L = q(() => N || !f ? qr(n, 2 ** 53 - 1, o, b, r, i, c) : S ? v === 0 ? qr(n, 2 ** 53 - 1, o, b, r, i, c) : qr(n, v, o, b, r, i, c, I.current) : {
3138
3147
  primaryInline: [],
3139
3148
  inline: [],
3140
3149
  overflow: [],
@@ -3151,8 +3160,10 @@ function Jr({ layout: n, entityActions: r, globalActions: i, onRun: a, reservedR
3151
3160
  i,
3152
3161
  c
3153
3162
  ]);
3154
- if (M === 0) return null;
3155
- let I = F.overflow.length > 0;
3163
+ if (K(() => {
3164
+ I.current = new Set([...L.inline, ...L.primaryInline].map($));
3165
+ }, [L]), M === 0) return null;
3166
+ let R = L.overflow.length > 0;
3156
3167
  return /* @__PURE__ */ Q("div", {
3157
3168
  ref: g,
3158
3169
  role: "toolbar",
@@ -3188,7 +3199,7 @@ function Jr({ layout: n, entityActions: r, globalActions: i, onRun: a, reservedR
3188
3199
  tabIndex: -1,
3189
3200
  children: "Actions"
3190
3201
  }, Ur), n.map((n) => {
3191
- let a = qr(n);
3202
+ let a = $(n);
3192
3203
  if (n.kind === "action") {
3193
3204
  let e = Pr(n.code, r, i), o = Fr(n.code, r, i), s = Ir(n.code, r, i);
3194
3205
  return /* @__PURE__ */ Z(l, {
@@ -3212,7 +3223,7 @@ function Jr({ layout: n, entityActions: r, globalActions: i, onRun: a, reservedR
3212
3223
  }
3213
3224
  })]
3214
3225
  }),
3215
- F.primaryInline.map((e) => /* @__PURE__ */ Z(Rr, {
3226
+ L.primaryInline.map((e) => /* @__PURE__ */ Z(Rr, {
3216
3227
  leaf: e,
3217
3228
  entityActions: r,
3218
3229
  globalActions: i,
@@ -3222,9 +3233,9 @@ function Jr({ layout: n, entityActions: r, globalActions: i, onRun: a, reservedR
3222
3233
  row: p,
3223
3234
  widgetContext: m,
3224
3235
  onActionClick: h
3225
- }, qr(e))),
3226
- F.inline.map((e) => {
3227
- let t = qr(e);
3236
+ }, $(e))),
3237
+ L.inline.map((e) => {
3238
+ let t = $(e);
3228
3239
  return e.kind === "action" ? /* @__PURE__ */ Z(Rr, {
3229
3240
  leaf: e,
3230
3241
  entityActions: r,
@@ -3244,7 +3255,7 @@ function Jr({ layout: n, entityActions: r, globalActions: i, onRun: a, reservedR
3244
3255
  onLoadingChange: T
3245
3256
  }, t);
3246
3257
  }),
3247
- I && /* @__PURE__ */ Q(X, { children: [/* @__PURE__ */ Z(l, {
3258
+ R && /* @__PURE__ */ Q(X, { children: [/* @__PURE__ */ Z(l, {
3248
3259
  ref: O,
3249
3260
  kind: "default",
3250
3261
  iconRight: /* @__PURE__ */ Z(e.down, { size: 10 }),
@@ -3261,7 +3272,7 @@ function Jr({ layout: n, entityActions: r, globalActions: i, onRun: a, reservedR
3261
3272
  children: /* @__PURE__ */ Z("div", {
3262
3273
  role: "menu",
3263
3274
  "aria-label": "More actions",
3264
- children: F.overflow.map((e) => e.kind === "action" ? /* @__PURE__ */ Z(Br, {
3275
+ children: L.overflow.map((e) => e.kind === "action" ? /* @__PURE__ */ Z(Br, {
3265
3276
  leaf: e,
3266
3277
  entityActions: r,
3267
3278
  globalActions: i,
@@ -3278,10 +3289,10 @@ function Jr({ layout: n, entityActions: r, globalActions: i, onRun: a, reservedR
3278
3289
  onRun: j,
3279
3290
  loading: w,
3280
3291
  onLoadingChange: T
3281
- }, qr(e)))
3292
+ }, $(e)))
3282
3293
  })
3283
3294
  })] }),
3284
- F.destructiveInline.map((e) => /* @__PURE__ */ Z(Rr, {
3295
+ L.destructiveInline.map((e) => /* @__PURE__ */ Z(Rr, {
3285
3296
  leaf: e,
3286
3297
  entityActions: r,
3287
3298
  globalActions: i,
@@ -3291,7 +3302,7 @@ function Jr({ layout: n, entityActions: r, globalActions: i, onRun: a, reservedR
3291
3302
  row: p,
3292
3303
  widgetContext: m,
3293
3304
  onActionClick: h
3294
- }, qr(e)))
3305
+ }, $(e)))
3295
3306
  ]
3296
3307
  });
3297
3308
  }
@@ -4882,7 +4893,7 @@ function Ui(e) {
4882
4893
  return qi(t, a.columns, a.source);
4883
4894
  }
4884
4895
  function Wi(e) {
4885
- let { entity: t, screen: n, presentation: r, visibleColumns: i, card: a, rowActions: o, toolbarActions: s, bulkActions: c, sort: l, includeDetailHandoff: u = !0, screens: d } = e, f = new wa(), p = r === "cards" ? a.renderFields : Zi(t, i, { explicit: !0 });
4896
+ let { entity: t, screen: n, presentation: r, visibleColumns: i, card: a, rowActions: o, toolbarActions: s, bulkActions: c, sort: l, includeDetailHandoff: u = !0, screens: d } = e, f = new Ta(), p = r === "cards" ? a.renderFields : Zi(t, i, { explicit: !0 });
4886
4897
  for (let e of p) f.addField(e, "render"), xa(t, e, f, "render");
4887
4898
  let m = ca(t, f), h = pa(t, [
4888
4899
  o,
@@ -4890,12 +4901,12 @@ function Wi(e) {
4890
4901
  c
4891
4902
  ], f), g = ma(t, l, f), _ = ha(t, n, d, f);
4892
4903
  if (u) for (let e of m) f.addField(e, "detail_handoff");
4893
- let v = new $();
4904
+ let v = new wa();
4894
4905
  for (let e of m) v.add(e);
4895
4906
  for (let e of h) v.add(e);
4896
4907
  for (let e of g) v.add(e);
4897
4908
  for (let e of _) v.add(e);
4898
- let y = new $();
4909
+ let y = new wa();
4899
4910
  for (let e of p) ba(t, e, y, f);
4900
4911
  for (let e of v.values()) ba(t, e, y, f);
4901
4912
  let b = y.values(), x = Sa(f);
@@ -4916,7 +4927,7 @@ function Gi(e, t, n) {
4916
4927
  if (r && r.length > 0) return Zi(e, r, { explicit: !0 });
4917
4928
  let i = t.quick_peek?.sections;
4918
4929
  if (i && i.length > 0) {
4919
- let r = Object.values(n ?? {}).find((e) => e.type === "detail" && e.entity === t.entity), a = new $();
4930
+ let r = Object.values(n ?? {}).find((e) => e.type === "detail" && e.entity === t.entity), a = new wa();
4920
4931
  ga(r?.items, new Set(i.map(String)), a);
4921
4932
  let o = Zi(e, a.values(), { explicit: !0 });
4922
4933
  if (o.length > 0) return o;
@@ -4960,7 +4971,7 @@ function qi(e, t, n) {
4960
4971
  });
4961
4972
  }
4962
4973
  function Ji(e) {
4963
- let t = new $(), n = [], r = (r, i) => {
4974
+ let t = new wa(), n = [], r = (r, i) => {
4964
4975
  !r || t.has(r) || (t.add(r), n.push({
4965
4976
  field: r,
4966
4977
  bucket: i,
@@ -5013,7 +5024,7 @@ function Xi(e) {
5013
5024
  return t;
5014
5025
  }
5015
5026
  function Zi(e, t, n) {
5016
- let r = new $();
5027
+ let r = new wa();
5017
5028
  for (let i of t) {
5018
5029
  let t = Qi(e, i, n);
5019
5030
  t && r.add(t);
@@ -5050,7 +5061,7 @@ function na(e, t) {
5050
5061
  return n.kind === "field" && Bi.has(n.field.type);
5051
5062
  }
5052
5063
  function ra(e, t) {
5053
- let n = new $();
5064
+ let n = new wa();
5054
5065
  for (let e of t) (e.startsWith("$status.") || e.startsWith("$property.")) && n.add(e);
5055
5066
  for (let r of t) na(e, r) && n.add(r);
5056
5067
  return n.values();
@@ -5073,7 +5084,7 @@ function sa(e, t) {
5073
5084
  }
5074
5085
  function ca(e, t) {
5075
5086
  if (!e) return [];
5076
- let n = new $();
5087
+ let n = new wa();
5077
5088
  for (let r of z(e)) n.add(r), t.addField(r, "identity");
5078
5089
  let r = Qi(e, e.display.display_field, { explicit: !0 });
5079
5090
  r && (n.add(r), t.addField(r, "display"), xa(e, r, t, "display"));
@@ -5085,7 +5096,7 @@ function ca(e, t) {
5085
5096
  }
5086
5097
  function la(e) {
5087
5098
  if (!e) return [];
5088
- let t = new $(), n = 0;
5099
+ let t = new wa(), n = 0;
5089
5100
  for (; n < e.length;) {
5090
5101
  let r = e.indexOf("${", n);
5091
5102
  if (r < 0) break;
@@ -5116,7 +5127,7 @@ function ua(e, t) {
5116
5127
  return -1;
5117
5128
  }
5118
5129
  function da(e) {
5119
- let t = new $(), n = 0;
5130
+ let t = new wa(), n = 0;
5120
5131
  for (; n < e.length;) {
5121
5132
  let r = e.indexOf("row.", n);
5122
5133
  if (r < 0) break;
@@ -5134,7 +5145,7 @@ function fa(e) {
5134
5145
  return e >= 48 && e <= 57 || e >= 65 && e <= 90 || e >= 97 && e <= 122 || e === 95;
5135
5146
  }
5136
5147
  function pa(e, t, n) {
5137
- let r = new $();
5148
+ let r = new wa();
5138
5149
  for (let i of t) for (let t of i ?? []) for (let i of [
5139
5150
  ...t.action.visible_if ?? [],
5140
5151
  ...t.action.enabled_if ?? [],
@@ -5146,7 +5157,7 @@ function pa(e, t, n) {
5146
5157
  return r.values();
5147
5158
  }
5148
5159
  function ma(e, t, n) {
5149
- let r = typeof t == "string" ? bi(t) : t ?? [], i = new $();
5160
+ let r = typeof t == "string" ? bi(t) : t ?? [], i = new wa();
5150
5161
  for (let t of r) {
5151
5162
  let r = Qi(e, t.field, { explicit: !0 });
5152
5163
  r && (i.add(r), n.addField(r, "sort"), xa(e, r, n, "sort"));
@@ -5242,7 +5253,7 @@ function Ca(e, t) {
5242
5253
  file: r
5243
5254
  } : { kind: "missing" };
5244
5255
  }
5245
- var $ = class {
5256
+ var wa = class {
5246
5257
  #e = [];
5247
5258
  #t = /* @__PURE__ */ new Set();
5248
5259
  add(e) {
@@ -5254,7 +5265,7 @@ var $ = class {
5254
5265
  values() {
5255
5266
  return [...this.#e];
5256
5267
  }
5257
- }, wa = class {
5268
+ }, Ta = class {
5258
5269
  #e = /* @__PURE__ */ new Map();
5259
5270
  #t = /* @__PURE__ */ new Map();
5260
5271
  addField(e, t) {
@@ -5277,7 +5288,7 @@ var $ = class {
5277
5288
  }
5278
5289
  r.includes(n) || r.push(n);
5279
5290
  }
5280
- }, Ta = class extends Oe {
5291
+ }, Ea = class extends Oe {
5281
5292
  constructor(e) {
5282
5293
  super(e), this.state = {
5283
5294
  hasError: !1,
@@ -5345,15 +5356,15 @@ var $ = class {
5345
5356
  };
5346
5357
  //#endregion
5347
5358
  //#region src/hooks/useObject.ts
5348
- function Ea(e, t) {
5359
+ function Da(e, t) {
5349
5360
  return [
5350
5361
  "entity-item",
5351
5362
  e,
5352
5363
  t === void 0 || t === "new" ? void 0 : typeof t == "string" ? t : Object.keys(t).sort().map((e) => [e, t[e]])
5353
5364
  ];
5354
5365
  }
5355
- function Da(e, t) {
5356
- let n = Ea(e, t), r = n[2];
5366
+ function Oa(e, t) {
5367
+ let n = Da(e, t), r = n[2];
5357
5368
  return Le({
5358
5369
  queryKey: n,
5359
5370
  queryFn: () => C(e, t),
@@ -5362,15 +5373,15 @@ function Da(e, t) {
5362
5373
  }
5363
5374
  //#endregion
5364
5375
  //#region src/components/detail-layout/widgets/registry.ts
5365
- var Oa = /* @__PURE__ */ new Map();
5366
- function ka(e, t) {
5367
- Oa.set(e, t);
5368
- }
5369
- function Aa(e) {
5370
- return Oa.get(e);
5376
+ var ka = /* @__PURE__ */ new Map();
5377
+ function Aa(e, t) {
5378
+ ka.set(e, t);
5371
5379
  }
5372
5380
  function ja(e) {
5373
- return Oa.has(e);
5381
+ return ka.get(e);
5382
+ }
5383
+ function Ma(e) {
5384
+ return ka.has(e);
5374
5385
  }
5375
5386
  //#endregion
5376
- export { xn as $, xr as A, Yn as B, xi as C, Zr as D, ii as E, vr as F, Wn as G, Un as H, ir as I, Fn as J, Rn as K, cr as L, lr as M, Cr as N, Xr as O, Sr as P, yn as Q, rr as R, Si as S, Ue as St, _i as T, Gn as U, $n as V, Kn as W, Mn as X, In as Y, Nn as Z, Ei as _, ht as _t, Da as a, en as at, bi as b, st as bt, Wi as c, zt as ct, Ni as d, It as dt, wn as et, ki as f, Ot as ft, Oi as g, xt as gt, Mi as h, Tt as ht, Ea as i, tn as it, br as j, wr as k, Gi as l, Bt as lt, Di as m, Dt as mt, ja as n, Sn as nt, Ta as o, Wt as ot, Ai as p, Et as pt, Ln as q, ka as r, nn as rt, Ui as s, Ut as st, Aa as t, Cn as tt, ji as u, Rt as ut, wi as v, wt as vt, vi as w, Ti as x, We as xt, Ci as y, rt as yt, yr as z };
5387
+ export { xn as $, xr as A, Yn as B, xi as C, Zr as D, ii as E, vr as F, Wn as G, Un as H, ir as I, Fn as J, Rn as K, cr as L, lr as M, Cr as N, Xr as O, Sr as P, yn as Q, rr as R, Si as S, Ue as St, _i as T, Gn as U, $n as V, Kn as W, Mn as X, In as Y, Nn as Z, Ei as _, ht as _t, Oa as a, en as at, bi as b, st as bt, Wi as c, zt as ct, Ni as d, It as dt, wn as et, ki as f, Ot as ft, Oi as g, xt as gt, Mi as h, Tt as ht, Da as i, tn as it, br as j, wr as k, Gi as l, Bt as lt, Di as m, Dt as mt, Ma as n, Sn as nt, Ea as o, Wt as ot, Ai as p, Et as pt, Ln as q, Aa as r, nn as rt, Ui as s, Ut as st, ja as t, Cn as tt, ji as u, Rt as ut, wi as v, wt as vt, vi as w, Ti as x, We as xt, Ci as y, rt as yt, yr as z };
@@ -1,5 +1,5 @@
1
1
  import { $ as e, $t as t, Mt as n, U as r, bn as i, jt as a, ot as o, un as s } from "./useCurrentScreen-Bgp6_vne.js";
2
- import { vt as c } from "./registry-F_ieiQHj.js";
2
+ import { vt as c } from "./registry-C2vvLLHm.js";
3
3
  import { useEffect as l, useMemo as u } from "react";
4
4
  import { useSearchParams as d } from "react-router-dom";
5
5
  import { useInfiniteQuery as f, useMutation as p, useQueryClient as m } from "@tanstack/react-query";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@declarion/react",
3
- "version": "0.36.4",
3
+ "version": "0.36.6",
4
4
  "private": false,
5
5
  "license": "MIT",
6
6
  "description": "React SDK for Declarion, the schema-driven business apps platform.",