@declarion/react 0.53.0 → 0.54.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.
- package/dist-lib/{DraggableChildrenTable-BQZTvZaU.js → DraggableChildrenTable-CPoUY99R.js} +1 -1
- package/dist-lib/{Grid-B9Tiytbd.js → Grid--QAEby8k.js} +2 -2
- package/dist-lib/{LayoutRenderer-D_v9OD_A.js → LayoutRenderer-BxZ7Nd9b.js} +6 -6
- package/dist-lib/{ListCardsBody-dRnXsQ7A.js → ListCardsBody-BPV4GPrv.js} +4 -4
- package/dist-lib/{MarkdownRenderer-BCyrsLrd.js → MarkdownRenderer-CIKuh_0i.js} +1 -1
- package/dist-lib/{RefreshControl-CV8nGACW.js → RefreshControl-DMLkZP3R.js} +2 -2
- package/dist-lib/{SmartDetailPage.impl-DWprVNMb.js → SmartDetailPage.impl-SnNu6Ug-.js} +8 -8
- package/dist-lib/{SmartListPage.impl-BwWURGwa.js → SmartListPage.impl-C73pR7Iw.js} +11 -11
- package/dist-lib/{SmartRecordListPage.impl-BKKBShAg.js → SmartRecordListPage.impl-rJjQZe1V.js} +9 -9
- package/dist-lib/{SortHeaderMenu-pgi4sxMs.js → SortHeaderMenu-DQ_KrkWk.js} +1 -1
- package/dist-lib/{action-dispatch-DlHTYag7.js → action-dispatch-DsuUS7ae.js} +3 -3
- package/dist-lib/api/agents.d.ts +0 -1
- package/dist-lib/{cardProjection-C7Orz841.js → cardProjection-BadzqyeQ.js} +2 -2
- package/dist-lib/components/actions/ObjectActionBar.d.ts +1 -1
- package/dist-lib/components/chrome/Breadcrumbs.d.ts +1 -1
- package/dist-lib/components/detail-layout/DetailAuditStrip.d.ts +1 -1
- package/dist-lib/components/detail-layout/DetailHighlights.d.ts +1 -1
- package/dist-lib/components/detail-layout/DraggableChildrenTable.d.ts +1 -1
- package/dist-lib/components/detail-layout/EditableChildrenTable.d.ts +1 -1
- package/dist-lib/components/detail-layout/LayoutRenderer.d.ts +1 -1
- package/dist-lib/components/file-widgets/host.d.ts +1 -1
- package/dist-lib/components/layout/Layout.d.ts +1 -1
- package/dist-lib/components/layout/TopBar.d.ts +1 -1
- package/dist-lib/components/list/InlineEditCell.d.ts +1 -1
- package/dist-lib/components/list/PeekFieldCell.d.ts +1 -1
- package/dist-lib/components/list/QuickPeek.d.ts +1 -1
- package/dist-lib/components/pages/auth/AuthShell.d.ts +1 -1
- package/dist-lib/components/pages/list/ListCardRow.d.ts +1 -1
- package/dist-lib/components/pages/list/ListCardsBody.d.ts +1 -1
- package/dist-lib/components/pages/list/ListFloatbar.d.ts +1 -1
- package/dist-lib/components/pages/list/ListHeader.d.ts +1 -1
- package/dist-lib/components/pages/list/columns.d.ts +1 -1
- package/dist-lib/components/pages/list/filter-meta.d.ts +1 -1
- package/dist-lib/components/pages/list/use-filter-value-labels.d.ts +1 -1
- package/dist-lib/components/pages/list/useListRowInteraction.d.ts +1 -1
- package/dist-lib/components/pages/list/useListViews.d.ts +1 -1
- package/dist-lib/components/pages/list/useRowMenu.d.ts +1 -1
- package/dist-lib/{field-classification-EY8CFF3P.js → field-classification-sMkkAEg9.js} +1 -1
- package/dist-lib/{format-count-BHkaDr9V.js → format-count-B5SLlNOb.js} +5 -5
- package/dist-lib/index.js +269 -250
- package/dist-lib/lib/action-dispatch.d.ts +1 -1
- package/dist-lib/{peekDraftStore-1pIajluX.js → peekDraftStore-CbHFwz_F.js} +1 -1
- package/dist-lib/{registry-C5ug25M8.js → registry-D0RhCnEL.js} +3 -3
- package/dist-lib/testing.js +1 -1
- package/dist-lib/types/api.d.ts +8 -4
- package/dist-lib/types/schema.d.ts +6 -0
- package/dist-lib/{useCurrentScreen-BdnZq8vZ.js → useCurrentScreen-DVTXCj_K.js} +350 -346
- package/dist-lib/{useListQuery-BxgrPZIB.js → useListQuery-C2nq58YV.js} +2 -2
- package/dist-lib/{useProperties-Bhi9Wn5O.js → useProperties-BcIz-MyO.js} +1 -1
- package/dist-lib/{useTabSearchMirror-Dl5x0xKu.js → useTabSearchMirror-UYCsopxP.js} +2 -2
- package/dist-lib/{value-Rp-5W3o8.js → value-CQzGOI0F.js} +1 -1
- package/package.json +9 -9
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { s as e } from "./DynamicIcon-DW5krHuX.js";
|
|
2
|
-
import { Dr as t, Ir as n, Mr as r, Yt as i, Zn as a, i as o, ur as s, wr as c } from "./useCurrentScreen-
|
|
2
|
+
import { Dr as t, Ir as n, Mr as r, Yt as i, Zn as a, i as o, ur as s, wr as c } from "./useCurrentScreen-DVTXCj_K.js";
|
|
3
3
|
import { useMemo as l, useRef as u, useState as d } from "react";
|
|
4
4
|
import { useQuery as f } from "@tanstack/react-query";
|
|
5
5
|
import { Fragment as p, jsx as m, jsxs as h } from "react/jsx-runtime";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { s as e, t } from "./DynamicIcon-DW5krHuX.js";
|
|
2
|
-
import { $t as n, A as r, Bn as i, Cr as a, Dr as o, Fr as s, Gt as c, I as l, Ir as u, Jn as d, Jt as f, K as p, Kn as m, Kt as h, L as g, Mr as _, Mt as v, Pr as y, Q as b, St as x, U as S, W as C, Xn as w, Y as T, Yt as E, Z as D, Zn as O, Zt as k, an as A, et as j, i as M, in as N, k as P, lr as F, nt as I, qn as L, qt as ee, rr as R, rt as z, ur as B, vr as V, vt as H, wr as U, xr as te, yn as W } from "./useCurrentScreen-
|
|
3
|
-
import { O as ne } from "./field-classification-
|
|
4
|
-
import { c as re, l as ie, o as ae, t as oe } from "./action-dispatch-
|
|
2
|
+
import { $t as n, A as r, Bn as i, Cr as a, Dr as o, Fr as s, Gt as c, I as l, Ir as u, Jn as d, Jt as f, K as p, Kn as m, Kt as h, L as g, Mr as _, Mt as v, Pr as y, Q as b, St as x, U as S, W as C, Xn as w, Y as T, Yt as E, Z as D, Zn as O, Zt as k, an as A, et as j, i as M, in as N, k as P, lr as F, nt as I, qn as L, qt as ee, rr as R, rt as z, ur as B, vr as V, vt as H, wr as U, xr as te, yn as W } from "./useCurrentScreen-DVTXCj_K.js";
|
|
3
|
+
import { O as ne } from "./field-classification-sMkkAEg9.js";
|
|
4
|
+
import { c as re, l as ie, o as ae, t as oe } from "./action-dispatch-DsuUS7ae.js";
|
|
5
5
|
import { n as se, r as ce, t as G } from "./dataTableStyles-vwD1mVOP.js";
|
|
6
6
|
import { Component as le, useCallback as K, useEffect as ue, useId as de, useMemo as q, useRef as J, useState as Y } from "react";
|
|
7
7
|
import { useInfiniteQuery as fe, useQuery as pe, useQueryClient as X } from "@tanstack/react-query";
|
package/dist-lib/testing.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Er as e, Jt as t, Vt as n, nn as r, on as i, r as a, rn as o, t as s, tn as c } from "./useCurrentScreen-
|
|
1
|
+
import { Er as e, Jt as t, Vt as n, nn as r, on as i, r as a, rn as o, t as s, tn as c } from "./useCurrentScreen-DVTXCj_K.js";
|
|
2
2
|
import { useState as l } from "react";
|
|
3
3
|
import { MemoryRouter as u, useLocation as d } from "react-router";
|
|
4
4
|
import { QueryClient as f, QueryClientProvider as p } from "@tanstack/react-query";
|
package/dist-lib/types/api.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { AccentDef, LocalizedString } from "./schema";
|
|
1
|
+
import type { AccentDef, EntityField, LocalizedString } from "./schema";
|
|
2
2
|
import type { HydratedFile } from "./files";
|
|
3
3
|
import type { FilterNode } from "../lib/filters";
|
|
4
4
|
export interface ListMeta {
|
|
@@ -398,7 +398,7 @@ export interface ParamLookup {
|
|
|
398
398
|
/**
|
|
399
399
|
* One entry of the bulk `GET /api/params` response (and per-code resolution).
|
|
400
400
|
* Carries the declaration facets the admin UIs need to compute attachment,
|
|
401
|
-
* render structure editors, and render
|
|
401
|
+
* render structure editors, and render member selects, so the bulk endpoint is
|
|
402
402
|
* self-sufficient without a second schema fetch.
|
|
403
403
|
*/
|
|
404
404
|
export interface ResolvedParam {
|
|
@@ -413,8 +413,12 @@ export interface ResolvedParam {
|
|
|
413
413
|
scopes?: string[];
|
|
414
414
|
/** Structure code when `type === "structure"`. */
|
|
415
415
|
structure?: string;
|
|
416
|
-
/**
|
|
417
|
-
|
|
416
|
+
/** Members of a closed type - `enum`, or an enum-backed `string_array`.
|
|
417
|
+
* Carried whole rather than as bare codes so the editor can show a name. */
|
|
418
|
+
values?: EntityField["values"];
|
|
419
|
+
/** Shared enum this parameter names, when it names one rather than listing
|
|
420
|
+
* its members inline. Present for display; `values` is what to render. */
|
|
421
|
+
enum?: string;
|
|
418
422
|
}
|
|
419
423
|
export interface ParamOverride {
|
|
420
424
|
param_code: string;
|
|
@@ -301,6 +301,12 @@ export interface ParameterDef {
|
|
|
301
301
|
category?: string;
|
|
302
302
|
/** Override scopes accepted on writes. Subset of: env, tenant, role, user, object. Empty = all. */
|
|
303
303
|
scopes?: string[];
|
|
304
|
+
/** Members of a closed type - `enum`, or an enum-backed `string_array`. Resolved
|
|
305
|
+
* at load whether declared inline or by naming a shared enum, so this is the set
|
|
306
|
+
* the platform enforces. Same shape a field's members have. */
|
|
307
|
+
values?: EntityField["values"];
|
|
308
|
+
/** The shared enum this parameter names, when it names one. `values` is what to render. */
|
|
309
|
+
enum?: string;
|
|
304
310
|
}
|
|
305
311
|
export interface AssociationDisplay {
|
|
306
312
|
name?: LocalizedString;
|