@declarion/react 0.50.0 → 0.52.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 (45) hide show
  1. package/dist-lib/{DraggableChildrenTable-Dar8C-Z9.js → DraggableChildrenTable-CJCjc_cd.js} +1 -1
  2. package/dist-lib/{Grid-BkHtfsty.js → Grid-DUjbQg3r.js} +2 -2
  3. package/dist-lib/{LayoutRenderer-Cic7IAop.js → LayoutRenderer-DbdxC-Bq.js} +9 -8
  4. package/dist-lib/{ListCardsBody-Dko91bLv.js → ListCardsBody-C8ofksQb.js} +4 -4
  5. package/dist-lib/{MarkdownRenderer-CJrVG5HZ.js → MarkdownRenderer-B9_5fwuE.js} +1 -1
  6. package/dist-lib/{RefreshControl-BS8WWL8i.js → RefreshControl-C-8UCyau.js} +2 -2
  7. package/dist-lib/{SmartDetailPage.impl-DxRDo0p2.js → SmartDetailPage.impl-DWjNQ052.js} +8 -8
  8. package/dist-lib/{SmartListPage.impl-CNdq5Vts.js → SmartListPage.impl-yKBK7a8b.js} +651 -646
  9. package/dist-lib/{SmartRecordListPage.impl-3ct7f4rT.js → SmartRecordListPage.impl-DRpU_DOC.js} +9 -9
  10. package/dist-lib/{SortHeaderMenu-NgjkW8QZ.js → SortHeaderMenu-CbihbEGd.js} +1 -1
  11. package/dist-lib/{action-dispatch-hVrm3Hrg.js → action-dispatch-C28UhXXA.js} +14 -13
  12. package/dist-lib/{cardProjection-BR-fXPvJ.js → cardProjection-Bp_ZPLUE.js} +2 -2
  13. package/dist-lib/components/fields/cells/registry.d.ts +1 -0
  14. package/dist-lib/components/fields/index.d.ts +1 -0
  15. package/dist-lib/components/file-widgets/host.d.ts +1 -0
  16. package/dist-lib/components/pages/list/DataCell.d.ts +2 -3
  17. package/dist-lib/components/pages/list/ListCardRow.d.ts +2 -2
  18. package/dist-lib/components/pages/list/ListCardsBody.d.ts +2 -2
  19. package/dist-lib/components/pages/list/ListTable.d.ts +5 -6
  20. package/dist-lib/components/pages/list/ListTableRow.d.ts +2 -3
  21. package/dist-lib/components/pages/list/column-sizing.d.ts +2 -3
  22. package/dist-lib/components/pages/list/columns.d.ts +2 -2
  23. package/dist-lib/components/pages/list/table-features.d.ts +14 -0
  24. package/dist-lib/{field-classification-Bm0mgbwA.js → field-classification-CeYJlsNq.js} +1 -1
  25. package/dist-lib/{format-count-BfRGwx2v.js → format-count-C3N-WxEy.js} +5 -5
  26. package/dist-lib/hooks/useActionData.d.ts +1 -1
  27. package/dist-lib/hooks/useAllEntityData.d.ts +1 -1
  28. package/dist-lib/hooks/useChildrenData.d.ts +1 -1
  29. package/dist-lib/hooks/useEntityData.d.ts +2 -2
  30. package/dist-lib/hooks/useObject.d.ts +1 -1
  31. package/dist-lib/hooks/useParams.d.ts +3 -3
  32. package/dist-lib/hooks/useSchema.d.ts +1 -1
  33. package/dist-lib/index.js +14 -14
  34. package/dist-lib/{peekDraftStore-bb4WroTA.js → peekDraftStore-D3sowXga.js} +1 -1
  35. package/dist-lib/{registry-CgeGoWpW.js → registry-p6CejATt.js} +3 -3
  36. package/dist-lib/testing.js +1 -1
  37. package/dist-lib/types/files.d.ts +3 -0
  38. package/dist-lib/types/ordmap.d.ts +9 -2
  39. package/dist-lib/types/schema.d.ts +2 -1
  40. package/dist-lib/{useCurrentScreen-D3XH5ptA.js → useCurrentScreen-74x5yJNb.js} +21 -14
  41. package/dist-lib/{useListQuery-CfuINl-0.js → useListQuery-D75bgLLz.js} +3 -3
  42. package/dist-lib/{useProperties-DNocaxBX.js → useProperties-C5fZp12D.js} +1 -1
  43. package/dist-lib/{useTabSearchMirror-d0BAUIcQ.js → useTabSearchMirror-D_wzoYRz.js} +2 -2
  44. package/dist-lib/{value-D71J0sJq.js → value-DKekzcjz.js} +1 -1
  45. package/package.json +20 -20
@@ -1,5 +1,5 @@
1
1
  import { s as e } from "./DynamicIcon-DW5krHuX.js";
2
- import { A as t, dr as n, fr as r, j as i, wn as a, zn as o } from "./useCurrentScreen-D3XH5ptA.js";
2
+ import { A as t, dr as n, fr as r, j as i, wn as a, zn as o } from "./useCurrentScreen-74x5yJNb.js";
3
3
  import { n as s, r as c, t as l } from "./dataTableStyles-vwD1mVOP.js";
4
4
  import { useCallback as u, useMemo as d, useRef as f } from "react";
5
5
  import { jsx as p, jsxs as m } from "react/jsx-runtime";
@@ -1,5 +1,5 @@
1
- import { B as e, I as t, L as n, P as r, R as i, z as a } from "./useCurrentScreen-D3XH5ptA.js";
2
- import { c as o, i as s, l as c, t as l } from "./value-D71J0sJq.js";
1
+ import { B as e, I as t, L as n, P as r, R as i, z as a } from "./useCurrentScreen-74x5yJNb.js";
2
+ import { c as o, i as s, l as c, t as l } from "./value-DKekzcjz.js";
3
3
  import { useCallback as u, useEffect as d, useMemo as f, useRef as p, useState as m } from "react";
4
4
  import { Fragment as h, jsx as g, jsxs as _ } from "react/jsx-runtime";
5
5
  import { DndContext as v, PointerSensor as y, closestCenter as b, useSensor as x, useSensors as ee } from "@dnd-kit/core";
@@ -1,9 +1,9 @@
1
1
  import { s as e, t } from "./DynamicIcon-DW5krHuX.js";
2
- import { $n as n, A as r, Cn as i, Dn as a, En as o, Gt as s, Jn as c, M as l, Mn as u, Nn as d, On as f, Rn as p, Sn as m, X as h, Z as g, _t as _, dr as v, f as y, fr as b, gn as x, j as S, kn as C, kt as w, rr as T, rt as E, sr as D, ur as O, vt as k, wn as A, yt as j, zn as M } from "./useCurrentScreen-D3XH5ptA.js";
3
- import { c as ee, d as N, f as P, l as F, o as I, r as L, s as R, t as z } from "./registry-CgeGoWpW.js";
4
- import { E as B, g as V, h as te, j as ne, m as re, n as ie, p as ae, t as oe, w as se } from "./field-classification-Bm0mgbwA.js";
5
- import { m as ce, p as le } from "./action-dispatch-hVrm3Hrg.js";
6
- import { f as ue } from "./cardProjection-BR-fXPvJ.js";
2
+ import { $n as n, A as r, Cn as i, Dn as a, En as o, Gt as s, Jn as c, M as l, Mn as u, Nn as d, On as f, Rn as p, Sn as m, X as h, Z as g, _t as _, dr as v, f as y, fr as b, gn as x, j as S, kn as C, kt as w, rr as T, rt as E, sr as D, ur as O, vt as k, wn as A, yt as j, zn as M } from "./useCurrentScreen-74x5yJNb.js";
3
+ import { c as ee, d as N, f as P, l as F, o as I, r as L, s as R, t as z } from "./registry-p6CejATt.js";
4
+ import { E as B, g as V, h as te, j as ne, m as re, n as ie, p as ae, t as oe, w as se } from "./field-classification-CeYJlsNq.js";
5
+ import { m as ce, p as le } from "./action-dispatch-C28UhXXA.js";
6
+ import { f as ue } from "./cardProjection-Bp_ZPLUE.js";
7
7
  import { n as de, r as fe, t as pe } from "./dataTableStyles-vwD1mVOP.js";
8
8
  import { Suspense as me, createContext as he, lazy as ge, useCallback as H, useContext as _e, useEffect as U, useId as ve, useLayoutEffect as ye, useMemo as W, useRef as G, useState as K } from "react";
9
9
  import { useInfiniteQuery as be, useMutation as xe, useQueryClient as Se } from "@tanstack/react-query";
@@ -2316,7 +2316,7 @@ function Ot({ config: t, childEntity: n, schema: i, rows: a, onChange: o, valida
2316
2316
  }
2317
2317
  //#endregion
2318
2318
  //#region src/components/detail-layout/ChildrenBlock.tsx
2319
- var kt = ge(() => import("./DraggableChildrenTable-Dar8C-Z9.js").then((e) => ({ default: e.DraggableChildrenTable })));
2319
+ var kt = ge(() => import("./DraggableChildrenTable-CJCjc_cd.js").then((e) => ({ default: e.DraggableChildrenTable })));
2320
2320
  function At({ node: e, ctx: n }) {
2321
2321
  let r = T(), i = e.children;
2322
2322
  if (!i) return null;
@@ -2521,7 +2521,7 @@ function Bt({ fields: e, ctx: t }) {
2521
2521
  return /* @__PURE__ */ J(Rt, {
2522
2522
  columns: d,
2523
2523
  children: e.map((e) => {
2524
- let r = e.name, d = `${i ?? "field"}-${r}`, p = `${d}-label`, m = n.fields.get(r), h = !!(m?.auto || m?.readonly || m?.source), g = ie(n, r), _ = g?.read === "denied", v = g?.write === "denied", y = s === "display" ? _ : v || _, b = h || s === "edit" && v ? "display" : s, x = y ? /* @__PURE__ */ J(N, {
2524
+ let r = e.code, d = `${i ?? "field"}-${r}`, p = `${d}-label`, m = n.fields.get(r), h = !!(m?.auto || m?.readonly || m?.source), g = ie(n, r), _ = g?.read === "denied", v = g?.write === "denied", y = s === "display" ? _ : v || _, b = h || s === "edit" && v ? "display" : s, x = y ? /* @__PURE__ */ J(N, {
2525
2525
  tier: g.classification,
2526
2526
  tierDef: oe(l, n, r),
2527
2527
  requiredPermission: g?.required_permission,
@@ -2540,7 +2540,8 @@ function Bt({ fields: e, ctx: t }) {
2540
2540
  locale: u,
2541
2541
  fieldId: d,
2542
2542
  labelId: p,
2543
- structure: e.structure
2543
+ structure: e.structure,
2544
+ detailScreen: e.detail_screen
2544
2545
  });
2545
2546
  if (!x) return null;
2546
2547
  let S = s === "display" && e.actions && e.actions.length > 0 ? /* @__PURE__ */ J(q, { children: e.actions.map((e, t) => /* @__PURE__ */ J(ee, {
@@ -1,8 +1,8 @@
1
- import { Dn as e, Tn as t, ur as n, zn as r } from "./useCurrentScreen-D3XH5ptA.js";
1
+ import { Dn as e, Tn as t, ur as n, zn as r } from "./useCurrentScreen-74x5yJNb.js";
2
2
  import { t as i } from "./Check-DAfMbQIw.js";
3
- import { f as a, m as o, p as s, r as c } from "./action-dispatch-hVrm3Hrg.js";
4
- import { t as l } from "./cardProjection-BR-fXPvJ.js";
5
- import { t as u } from "./SmartListPage.impl-CNdq5Vts.js";
3
+ import { f as a, m as o, p as s, r as c } from "./action-dispatch-C28UhXXA.js";
4
+ import { t as l } from "./cardProjection-Bp_ZPLUE.js";
5
+ import { t as u } from "./SmartListPage.impl-yKBK7a8b.js";
6
6
  import { jsx as d, jsxs as f } from "react/jsx-runtime";
7
7
  //#region src/components/pages/list/ListCardRow.tsx
8
8
  function p(t, n, r) {
@@ -1,4 +1,4 @@
1
- import { H as e, et as t } from "./useCurrentScreen-D3XH5ptA.js";
1
+ import { H as e, et as t } from "./useCurrentScreen-74x5yJNb.js";
2
2
  import { jsx as n, jsxs as r } from "react/jsx-runtime";
3
3
  import i, { defaultUrlTransform as a } from "react-markdown";
4
4
  import o from "remark-breaks";
@@ -1,6 +1,6 @@
1
1
  import { s as e } from "./DynamicIcon-DW5krHuX.js";
2
- import { $n as t, dr as n, ir as r, pt as i, rr as a, ur as o } from "./useCurrentScreen-D3XH5ptA.js";
3
- import { A as s, B as c, C as l } from "./field-classification-Bm0mgbwA.js";
2
+ import { $n as t, dr as n, ir as r, pt as i, rr as a, ur as o } from "./useCurrentScreen-74x5yJNb.js";
3
+ import { A as s, B as c, C as l } from "./field-classification-CeYJlsNq.js";
4
4
  import { useCallback as u, useEffect as d, useId as f, useMemo as p, useRef as m, useState as h } from "react";
5
5
  import { useLocation as g } from "react-router";
6
6
  import { Fragment as _, jsx as v, jsxs as y } from "react/jsx-runtime";
@@ -1,14 +1,14 @@
1
1
  import { s as e, t } from "./DynamicIcon-DW5krHuX.js";
2
- import { $ as n, $n as r, A as i, At as a, C as o, Cn as s, Ct as c, D as l, Dn as u, En as d, F as f, L as p, Ln as ee, N as m, Q as h, Rn as g, Sn as _, Tn as v, _ as y, bt as b, dr as x, dt as S, fr as C, gt as w, i as T, it as te, j as E, jn as D, jt as ne, kn as re, pt as ie, rr as ae, un as oe, ur as O, wn as se, wt as ce, xn as le, zn as k } from "./useCurrentScreen-D3XH5ptA.js";
3
- import { _ as A, m as j, r as ue, s as M, t as de } from "./RefreshControl-BS8WWL8i.js";
4
- import { a as fe, f as N, i as pe } from "./registry-CgeGoWpW.js";
2
+ import { $ as n, $n as r, A as i, At as a, C as o, Cn as s, Ct as c, D as l, Dn as u, En as d, F as f, L as p, Ln as ee, N as m, Q as h, Rn as g, Sn as _, Tn as v, _ as y, bt as b, dr as x, dt as S, fr as C, gt as w, i as T, it as te, j as E, jn as D, jt as ne, kn as re, pt as ie, rr as ae, un as oe, ur as O, wn as se, wt as ce, xn as le, zn as k } from "./useCurrentScreen-74x5yJNb.js";
3
+ import { _ as A, m as j, r as ue, s as M, t as de } from "./RefreshControl-C-8UCyau.js";
4
+ import { a as fe, f as N, i as pe } from "./registry-p6CejATt.js";
5
5
  import { n as me, t as he } from "./record-documents-key-8fdm7C10.js";
6
- import { A as ge, C as _e, F as ve, O as ye, c as be, d as xe, f as Se, j as Ce, l as we, m as Te, p as Ee, y as De } from "./field-classification-Bm0mgbwA.js";
7
- import { c as Oe, f as ke, h as Ae, m as je, o as Me, p as Ne, r as Pe, t as Fe, u as Ie } from "./action-dispatch-hVrm3Hrg.js";
8
- import { d as Le, m as Re, p as ze, t as Be } from "./cardProjection-BR-fXPvJ.js";
6
+ import { A as ge, C as _e, F as ve, O as ye, c as be, d as xe, f as Se, j as Ce, l as we, m as Te, p as Ee, y as De } from "./field-classification-CeYJlsNq.js";
7
+ import { c as Oe, f as ke, h as Ae, m as je, o as Me, p as Ne, r as Pe, t as Fe, u as Ie } from "./action-dispatch-C28UhXXA.js";
8
+ import { d as Le, m as Re, p as ze, t as Be } from "./cardProjection-Bp_ZPLUE.js";
9
9
  import { n as Ve, r as He, t as Ue } from "./dataTableStyles-vwD1mVOP.js";
10
- import { a as We, i as Ge, o as Ke, r as qe, s as P } from "./peekDraftStore-bb4WroTA.js";
11
- import { n as Je, t as Ye } from "./LayoutRenderer-Cic7IAop.js";
10
+ import { a as We, i as Ge, o as Ke, r as qe, s as P } from "./peekDraftStore-D3sowXga.js";
11
+ import { n as Je, t as Ye } from "./LayoutRenderer-DbdxC-Bq.js";
12
12
  import { Fragment as Xe, useCallback as F, useEffect as I, useMemo as L, useRef as Ze, useState as R } from "react";
13
13
  import { useLocation as Qe, useParams as $e, useSearchParams as et } from "react-router";
14
14
  import { useQuery as z, useQueryClient as tt } from "@tanstack/react-query";