@declarion/react 0.36.5 → 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-KMbQkTF6.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-KMbQkTF6.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-BGeN0rwC.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-KMbQkTF6.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-DMT162ot.js";
5
- import { t as N } from "./LayoutRenderer-BGeN0rwC.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-KMbQkTF6.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-DMT162ot.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-BaXAi7OH.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-CgiZWbF3.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(() => {
@@ -3136,7 +3139,11 @@ function Jr({ layout: n, entityActions: r, globalActions: i, onRun: a, reservedR
3136
3139
  });
3137
3140
  return t.observe(e), y(e.getBoundingClientRect().width), () => t.disconnect();
3138
3141
  }, [N]);
3139
- 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) : {
3140
3147
  primaryInline: [],
3141
3148
  inline: [],
3142
3149
  overflow: [],
@@ -3153,8 +3160,10 @@ function Jr({ layout: n, entityActions: r, globalActions: i, onRun: a, reservedR
3153
3160
  i,
3154
3161
  c
3155
3162
  ]);
3156
- if (M === 0) return null;
3157
- 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;
3158
3167
  return /* @__PURE__ */ Q("div", {
3159
3168
  ref: g,
3160
3169
  role: "toolbar",
@@ -3190,7 +3199,7 @@ function Jr({ layout: n, entityActions: r, globalActions: i, onRun: a, reservedR
3190
3199
  tabIndex: -1,
3191
3200
  children: "Actions"
3192
3201
  }, Ur), n.map((n) => {
3193
- let a = qr(n);
3202
+ let a = $(n);
3194
3203
  if (n.kind === "action") {
3195
3204
  let e = Pr(n.code, r, i), o = Fr(n.code, r, i), s = Ir(n.code, r, i);
3196
3205
  return /* @__PURE__ */ Z(l, {
@@ -3214,7 +3223,7 @@ function Jr({ layout: n, entityActions: r, globalActions: i, onRun: a, reservedR
3214
3223
  }
3215
3224
  })]
3216
3225
  }),
3217
- F.primaryInline.map((e) => /* @__PURE__ */ Z(Rr, {
3226
+ L.primaryInline.map((e) => /* @__PURE__ */ Z(Rr, {
3218
3227
  leaf: e,
3219
3228
  entityActions: r,
3220
3229
  globalActions: i,
@@ -3224,9 +3233,9 @@ function Jr({ layout: n, entityActions: r, globalActions: i, onRun: a, reservedR
3224
3233
  row: p,
3225
3234
  widgetContext: m,
3226
3235
  onActionClick: h
3227
- }, qr(e))),
3228
- F.inline.map((e) => {
3229
- let t = qr(e);
3236
+ }, $(e))),
3237
+ L.inline.map((e) => {
3238
+ let t = $(e);
3230
3239
  return e.kind === "action" ? /* @__PURE__ */ Z(Rr, {
3231
3240
  leaf: e,
3232
3241
  entityActions: r,
@@ -3246,7 +3255,7 @@ function Jr({ layout: n, entityActions: r, globalActions: i, onRun: a, reservedR
3246
3255
  onLoadingChange: T
3247
3256
  }, t);
3248
3257
  }),
3249
- I && /* @__PURE__ */ Q(X, { children: [/* @__PURE__ */ Z(l, {
3258
+ R && /* @__PURE__ */ Q(X, { children: [/* @__PURE__ */ Z(l, {
3250
3259
  ref: O,
3251
3260
  kind: "default",
3252
3261
  iconRight: /* @__PURE__ */ Z(e.down, { size: 10 }),
@@ -3263,7 +3272,7 @@ function Jr({ layout: n, entityActions: r, globalActions: i, onRun: a, reservedR
3263
3272
  children: /* @__PURE__ */ Z("div", {
3264
3273
  role: "menu",
3265
3274
  "aria-label": "More actions",
3266
- children: F.overflow.map((e) => e.kind === "action" ? /* @__PURE__ */ Z(Br, {
3275
+ children: L.overflow.map((e) => e.kind === "action" ? /* @__PURE__ */ Z(Br, {
3267
3276
  leaf: e,
3268
3277
  entityActions: r,
3269
3278
  globalActions: i,
@@ -3280,10 +3289,10 @@ function Jr({ layout: n, entityActions: r, globalActions: i, onRun: a, reservedR
3280
3289
  onRun: j,
3281
3290
  loading: w,
3282
3291
  onLoadingChange: T
3283
- }, qr(e)))
3292
+ }, $(e)))
3284
3293
  })
3285
3294
  })] }),
3286
- F.destructiveInline.map((e) => /* @__PURE__ */ Z(Rr, {
3295
+ L.destructiveInline.map((e) => /* @__PURE__ */ Z(Rr, {
3287
3296
  leaf: e,
3288
3297
  entityActions: r,
3289
3298
  globalActions: i,
@@ -3293,7 +3302,7 @@ function Jr({ layout: n, entityActions: r, globalActions: i, onRun: a, reservedR
3293
3302
  row: p,
3294
3303
  widgetContext: m,
3295
3304
  onActionClick: h
3296
- }, qr(e)))
3305
+ }, $(e)))
3297
3306
  ]
3298
3307
  });
3299
3308
  }
@@ -4884,7 +4893,7 @@ function Ui(e) {
4884
4893
  return qi(t, a.columns, a.source);
4885
4894
  }
4886
4895
  function Wi(e) {
4887
- 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 });
4888
4897
  for (let e of p) f.addField(e, "render"), xa(t, e, f, "render");
4889
4898
  let m = ca(t, f), h = pa(t, [
4890
4899
  o,
@@ -4892,12 +4901,12 @@ function Wi(e) {
4892
4901
  c
4893
4902
  ], f), g = ma(t, l, f), _ = ha(t, n, d, f);
4894
4903
  if (u) for (let e of m) f.addField(e, "detail_handoff");
4895
- let v = new $();
4904
+ let v = new wa();
4896
4905
  for (let e of m) v.add(e);
4897
4906
  for (let e of h) v.add(e);
4898
4907
  for (let e of g) v.add(e);
4899
4908
  for (let e of _) v.add(e);
4900
- let y = new $();
4909
+ let y = new wa();
4901
4910
  for (let e of p) ba(t, e, y, f);
4902
4911
  for (let e of v.values()) ba(t, e, y, f);
4903
4912
  let b = y.values(), x = Sa(f);
@@ -4918,7 +4927,7 @@ function Gi(e, t, n) {
4918
4927
  if (r && r.length > 0) return Zi(e, r, { explicit: !0 });
4919
4928
  let i = t.quick_peek?.sections;
4920
4929
  if (i && i.length > 0) {
4921
- 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();
4922
4931
  ga(r?.items, new Set(i.map(String)), a);
4923
4932
  let o = Zi(e, a.values(), { explicit: !0 });
4924
4933
  if (o.length > 0) return o;
@@ -4962,7 +4971,7 @@ function qi(e, t, n) {
4962
4971
  });
4963
4972
  }
4964
4973
  function Ji(e) {
4965
- let t = new $(), n = [], r = (r, i) => {
4974
+ let t = new wa(), n = [], r = (r, i) => {
4966
4975
  !r || t.has(r) || (t.add(r), n.push({
4967
4976
  field: r,
4968
4977
  bucket: i,
@@ -5015,7 +5024,7 @@ function Xi(e) {
5015
5024
  return t;
5016
5025
  }
5017
5026
  function Zi(e, t, n) {
5018
- let r = new $();
5027
+ let r = new wa();
5019
5028
  for (let i of t) {
5020
5029
  let t = Qi(e, i, n);
5021
5030
  t && r.add(t);
@@ -5052,7 +5061,7 @@ function na(e, t) {
5052
5061
  return n.kind === "field" && Bi.has(n.field.type);
5053
5062
  }
5054
5063
  function ra(e, t) {
5055
- let n = new $();
5064
+ let n = new wa();
5056
5065
  for (let e of t) (e.startsWith("$status.") || e.startsWith("$property.")) && n.add(e);
5057
5066
  for (let r of t) na(e, r) && n.add(r);
5058
5067
  return n.values();
@@ -5075,7 +5084,7 @@ function sa(e, t) {
5075
5084
  }
5076
5085
  function ca(e, t) {
5077
5086
  if (!e) return [];
5078
- let n = new $();
5087
+ let n = new wa();
5079
5088
  for (let r of z(e)) n.add(r), t.addField(r, "identity");
5080
5089
  let r = Qi(e, e.display.display_field, { explicit: !0 });
5081
5090
  r && (n.add(r), t.addField(r, "display"), xa(e, r, t, "display"));
@@ -5087,7 +5096,7 @@ function ca(e, t) {
5087
5096
  }
5088
5097
  function la(e) {
5089
5098
  if (!e) return [];
5090
- let t = new $(), n = 0;
5099
+ let t = new wa(), n = 0;
5091
5100
  for (; n < e.length;) {
5092
5101
  let r = e.indexOf("${", n);
5093
5102
  if (r < 0) break;
@@ -5118,7 +5127,7 @@ function ua(e, t) {
5118
5127
  return -1;
5119
5128
  }
5120
5129
  function da(e) {
5121
- let t = new $(), n = 0;
5130
+ let t = new wa(), n = 0;
5122
5131
  for (; n < e.length;) {
5123
5132
  let r = e.indexOf("row.", n);
5124
5133
  if (r < 0) break;
@@ -5136,7 +5145,7 @@ function fa(e) {
5136
5145
  return e >= 48 && e <= 57 || e >= 65 && e <= 90 || e >= 97 && e <= 122 || e === 95;
5137
5146
  }
5138
5147
  function pa(e, t, n) {
5139
- let r = new $();
5148
+ let r = new wa();
5140
5149
  for (let i of t) for (let t of i ?? []) for (let i of [
5141
5150
  ...t.action.visible_if ?? [],
5142
5151
  ...t.action.enabled_if ?? [],
@@ -5148,7 +5157,7 @@ function pa(e, t, n) {
5148
5157
  return r.values();
5149
5158
  }
5150
5159
  function ma(e, t, n) {
5151
- let r = typeof t == "string" ? bi(t) : t ?? [], i = new $();
5160
+ let r = typeof t == "string" ? bi(t) : t ?? [], i = new wa();
5152
5161
  for (let t of r) {
5153
5162
  let r = Qi(e, t.field, { explicit: !0 });
5154
5163
  r && (i.add(r), n.addField(r, "sort"), xa(e, r, n, "sort"));
@@ -5244,7 +5253,7 @@ function Ca(e, t) {
5244
5253
  file: r
5245
5254
  } : { kind: "missing" };
5246
5255
  }
5247
- var $ = class {
5256
+ var wa = class {
5248
5257
  #e = [];
5249
5258
  #t = /* @__PURE__ */ new Set();
5250
5259
  add(e) {
@@ -5256,7 +5265,7 @@ var $ = class {
5256
5265
  values() {
5257
5266
  return [...this.#e];
5258
5267
  }
5259
- }, wa = class {
5268
+ }, Ta = class {
5260
5269
  #e = /* @__PURE__ */ new Map();
5261
5270
  #t = /* @__PURE__ */ new Map();
5262
5271
  addField(e, t) {
@@ -5279,7 +5288,7 @@ var $ = class {
5279
5288
  }
5280
5289
  r.includes(n) || r.push(n);
5281
5290
  }
5282
- }, Ta = class extends Oe {
5291
+ }, Ea = class extends Oe {
5283
5292
  constructor(e) {
5284
5293
  super(e), this.state = {
5285
5294
  hasError: !1,
@@ -5347,15 +5356,15 @@ var $ = class {
5347
5356
  };
5348
5357
  //#endregion
5349
5358
  //#region src/hooks/useObject.ts
5350
- function Ea(e, t) {
5359
+ function Da(e, t) {
5351
5360
  return [
5352
5361
  "entity-item",
5353
5362
  e,
5354
5363
  t === void 0 || t === "new" ? void 0 : typeof t == "string" ? t : Object.keys(t).sort().map((e) => [e, t[e]])
5355
5364
  ];
5356
5365
  }
5357
- function Da(e, t) {
5358
- let n = Ea(e, t), r = n[2];
5366
+ function Oa(e, t) {
5367
+ let n = Da(e, t), r = n[2];
5359
5368
  return Le({
5360
5369
  queryKey: n,
5361
5370
  queryFn: () => C(e, t),
@@ -5364,15 +5373,15 @@ function Da(e, t) {
5364
5373
  }
5365
5374
  //#endregion
5366
5375
  //#region src/components/detail-layout/widgets/registry.ts
5367
- var Oa = /* @__PURE__ */ new Map();
5368
- function ka(e, t) {
5369
- Oa.set(e, t);
5370
- }
5371
- function Aa(e) {
5372
- return Oa.get(e);
5376
+ var ka = /* @__PURE__ */ new Map();
5377
+ function Aa(e, t) {
5378
+ ka.set(e, t);
5373
5379
  }
5374
5380
  function ja(e) {
5375
- return Oa.has(e);
5381
+ return ka.get(e);
5382
+ }
5383
+ function Ma(e) {
5384
+ return ka.has(e);
5376
5385
  }
5377
5386
  //#endregion
5378
- 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-KMbQkTF6.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.5",
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.",