@declarion/react 0.36.4 → 0.36.5

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-KMbQkTF6.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-KMbQkTF6.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-BGeN0rwC.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-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";
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";
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-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";
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-BaXAi7OH.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-CgiZWbF3.js").then((e) => ({ default: e.SmartRecordListPage })));
11900
11900
  function dl(e) {
11901
11901
  return /* @__PURE__ */ Q(Xr, {
11902
11902
  fallback: null,
@@ -3112,8 +3112,10 @@ function Jr({ layout: n, entityActions: r, globalActions: i, onRun: a, reservedR
3112
3112
  N
3113
3113
  ]), K(() => {
3114
3114
  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.`);
3115
+ let e = g.current;
3116
+ if (!e) return;
3117
+ 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;
3118
+ 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
3119
  }, [
3118
3120
  N,
3119
3121
  f,
@@ -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-KMbQkTF6.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.5",
4
4
  "private": false,
5
5
  "license": "MIT",
6
6
  "description": "React SDK for Declarion, the schema-driven business apps platform.",