@declarion/react 0.36.6 → 0.37.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.
@@ -1,5 +1,5 @@
1
1
  import { s as e } from "./DynamicIcon-BWO6QtNF.js";
2
- import { Gn as t, Kn as n, bn as r, g as i, h as a, sn as o } from "./useCurrentScreen-Bgp6_vne.js";
2
+ import { Gn as t, Kn as n, bn as r, g as i, h as a, sn as o } from "./useCurrentScreen-CD6xJlyU.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";
@@ -62,7 +62,7 @@ function w({ config: t, childEntity: r, schema: i, rows: a, onChange: l, validat
62
62
  c.splice(s, 0, u), l([...c.map((e, t) => ({
63
63
  ...e,
64
64
  [E]: t,
65
- _dirty: e[E] === t ? e._dirty : !0
65
+ _dirty: e[E] !== t || e._dirty
66
66
  })), ...i]);
67
67
  }, [
68
68
  a,
@@ -1,5 +1,5 @@
1
- import { C as e, S as t, T as n, w as r, x as i, y as a } from "./useCurrentScreen-Bgp6_vne.js";
2
- import { c as o, i as s, l as c, t as l } from "./value-CUVtVjKI.js";
1
+ import { C as e, S as t, T as n, w as r, x as i, y as a } from "./useCurrentScreen-CD6xJlyU.js";
2
+ import { c as o, i as s, l as c, t as l } from "./value-DFxS49M5.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,6 +1,6 @@
1
1
  import { s as e, t } from "./DynamicIcon-BWO6QtNF.js";
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-C2vvLLHm.js";
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-CD6xJlyU.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-D6uzF1n6.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";
@@ -1890,7 +1890,7 @@ function ft({ config: t, childEntity: i, schema: a, rows: o, onChange: s, valida
1890
1890
  c.splice(a, 0, l), s([...c.map((e, t) => ({
1891
1891
  ...e,
1892
1892
  [g]: t,
1893
- _dirty: e[g] === t ? e._dirty : !0
1893
+ _dirty: e[g] !== t || e._dirty
1894
1894
  })), ...r]);
1895
1895
  }, [
1896
1896
  o,
@@ -2161,7 +2161,7 @@ function ft({ config: t, childEntity: i, schema: a, rows: o, onChange: s, valida
2161
2161
  }
2162
2162
  //#endregion
2163
2163
  //#region src/components/detail-layout/ChildrenBlock.tsx
2164
- var pt = H(() => import("./DraggableChildrenTable-BfErdVdt.js").then((e) => ({ default: e.DraggableChildrenTable })));
2164
+ var pt = H(() => import("./DraggableChildrenTable-_ZZcNOIn.js").then((e) => ({ default: e.DraggableChildrenTable })));
2165
2165
  function mt({ node: e, ctx: n }) {
2166
2166
  let r = A(), i = e.children;
2167
2167
  if (!i) return null;
@@ -2431,7 +2431,7 @@ var wt = /* @__PURE__ */ new Set([
2431
2431
  function Et({ node: e, ctx: t }) {
2432
2432
  let { entity: n, objectProperties: r, onSetProperty: i, isNew: a, mode: o, refs: s } = t, c = n.properties ?? {};
2433
2433
  if (a) return null;
2434
- let l = e.properties === !0 ? !0 : e.properties, u = l === !0 ? Object.entries(c).sort(([e], [t]) => e.localeCompare(t)) : l.filter((e) => c[e] != null).map((e) => [e, c[e]]);
2434
+ let l = e.properties === !0 || e.properties, u = l === !0 ? Object.entries(c).sort(([e], [t]) => e.localeCompare(t)) : l.filter((e) => c[e] != null).map((e) => [e, c[e]]);
2435
2435
  return u.length === 0 ? null : /* @__PURE__ */ Y(xt, {
2436
2436
  columns: 2,
2437
2437
  children: u.map(([e, a]) => {
@@ -2673,7 +2673,7 @@ var At = () => {};
2673
2673
  function jt({ node: e, ctx: t }) {
2674
2674
  let { entity: n, objectStatuses: r, onSetStatus: i, isStatusPending: a, isNew: o } = t, s = n.status_groups ?? {};
2675
2675
  if (o) return null;
2676
- let c = e.statuses === !0 ? !0 : e.statuses, l = Object.fromEntries(Object.entries(s).filter(([e]) => c === !0 || c.includes(e)));
2676
+ let c = e.statuses === !0 || e.statuses, l = Object.fromEntries(Object.entries(s).filter(([e]) => c === !0 || c.includes(e)));
2677
2677
  return Object.keys(l).length === 0 ? null : /* @__PURE__ */ Y(kt, {
2678
2678
  statusGroups: l,
2679
2679
  objectStatuses: r,
@@ -1,4 +1,4 @@
1
- import { D as e } from "./useCurrentScreen-Bgp6_vne.js";
1
+ import { D as e } from "./useCurrentScreen-CD6xJlyU.js";
2
2
  import { jsx as t, jsxs as n } from "react/jsx-runtime";
3
3
  import r, { defaultUrlTransform as i } from "react-markdown";
4
4
  import a from "remark-breaks";
@@ -1,5 +1,5 @@
1
1
  import { s as e } from "./DynamicIcon-BWO6QtNF.js";
2
- import { $ as t, Gn as n, Hn as r, Kn as i, Nn as a, Pn as o, Wn as s, _t as c, et as l, i as u, jt as d, ot as f, un as p, xn as m } from "./useCurrentScreen-Bgp6_vne.js";
2
+ import { $ as t, Gn as n, Hn as r, Kn as i, Nn as a, Pn as o, Wn as s, _t as c, et as l, i as u, jt as d, ot as f, un as p, xn as m } from "./useCurrentScreen-CD6xJlyU.js";
3
3
  import { useCallback as h, useEffect as g, useId as _, useMemo as v, useRef as y, useState as b } from "react";
4
4
  import { useLocation as x } from "react-router-dom";
5
5
  import { useQuery as S, useQueryClient as C } from "@tanstack/react-query";
@@ -1,9 +1,9 @@
1
1
  import { s as e, t } from "./DynamicIcon-BWO6QtNF.js";
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
- 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-C2vvLLHm.js";
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-CD6xJlyU.js";
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-BscVr98E.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-D6uzF1n6.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-BWMdYJy8.js";
6
+ import { n as We, t as Ge } from "./LayoutRenderer-C3pdqkHp.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";
@@ -834,7 +834,7 @@ function ht(e, t) {
834
834
  //#region src/components/pages/SmartDetailPage.impl.tsx
835
835
  var gt = () => {};
836
836
  function _t(e, t) {
837
- return e.length === t.length ? JSON.stringify(e) === JSON.stringify(t) : !1;
837
+ return e.length === t.length && JSON.stringify(e) === JSON.stringify(t);
838
838
  }
839
839
  function vt(e, t) {
840
840
  if (e) {
@@ -1,8 +1,8 @@
1
1
  import { s as e } from "./DynamicIcon-BWO6QtNF.js";
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-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";
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-CD6xJlyU.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-D6uzF1n6.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-BK4ilgGN.js";
5
+ import { t as N } from "./LayoutRenderer-C3pdqkHp.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";
@@ -25,4 +25,21 @@ export type AuthShellProps = {
25
25
  /** Optional override for the wordmark / app name shown in topbar + brand panel. */
26
26
  brandName?: string;
27
27
  };
28
+ /**
29
+ * The `Build …` half of the deploy-identity pill.
30
+ *
31
+ * - release build: `<tag>+<short-revision>`, e.g. "1.4.2+a9b2c0d"
32
+ * - dev build: VERSION is itself an abbreviation of the SAME commit (the
33
+ * Makefile falls back to `git rev-parse --short HEAD` when there is no
34
+ * tag), so a `+<short-rev>` suffix would print one commit twice.
35
+ *
36
+ * The two strings abbreviate that commit to DIFFERENT lengths - git sizes
37
+ * `--short` per repository (8 chars in this one) while the pill truncates the
38
+ * revision to 7 - so they are compared on their common prefix. Comparing them
39
+ * for equality reads as correct and never fires: it shipped the pill
40
+ * "Build 01385f9a+01385f9", the same commit rendered twice.
41
+ *
42
+ * Exported for tests.
43
+ */
44
+ export declare function formatBuildLabel(version?: string, revision?: string): string;
28
45
  export declare function AuthShell({ children, tenantSlug, tagline, subTagline, version, badges, brandName, }: AuthShellProps): import("react").JSX.Element;
@@ -75,6 +75,8 @@ export { ObjectActionBar, useObjectActions } from "./components/shared/ObjectAct
75
75
  export type { ObjectActionBarProps, ObjectActionBarSlot, ObjectActionSelection, UseObjectActionsResult, } from "./components/shared/ObjectActionBar";
76
76
  export { RefreshControl } from "./components/shared/RefreshControl";
77
77
  export type { RefreshControlProps } from "./components/shared/RefreshControl";
78
+ export { RefCombobox } from "./components/fields/RefCombobox";
79
+ export type { RefComboboxProps } from "./components/fields/RefCombobox";
78
80
  export { RowMenu } from "./components/list/RowMenu";
79
81
  export type { RowMenuProps, RowMenuEntry } from "./components/list/RowMenu";
80
82
  export { QuickPeek, QEField } from "./components/list/QuickPeek";