@declarion/react 0.38.1 → 0.39.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-CI5a0Emm.js → DraggableChildrenTable-DziCVhq6.js} +1 -1
- package/dist-lib/{Grid-BZEMUmjI.js → Grid-BTX2tkCT.js} +2 -2
- package/dist-lib/{LayoutRenderer-CnKUYh8M.js → LayoutRenderer-CwMERoPJ.js} +387 -285
- package/dist-lib/{MarkdownRenderer-DNmOqp_M.js → MarkdownRenderer-dHOTEhUa.js} +1 -1
- package/dist-lib/{RefreshControl-DsEXi6WF.js → RefreshControl--UAgflh7.js} +257 -175
- package/dist-lib/{SmartDetailPage.impl-DhSpZTLw.js → SmartDetailPage.impl-Bj7MtHxi.js} +474 -414
- package/dist-lib/{SmartRecordListPage.impl-Bi_FPbGy.js → SmartRecordListPage.impl-CZXzVhPC.js} +164 -164
- package/dist-lib/api/params.d.ts +12 -11
- package/dist-lib/components/columns/ColumnPicker.d.ts +11 -1
- package/dist-lib/components/detail-layout/EvidenceBlock.d.ts +6 -0
- package/dist-lib/components/detail-layout/useManualColumnResize.d.ts +25 -0
- package/dist-lib/components/list/QuickPeek.d.ts +11 -2
- package/dist-lib/components/pages/list/{ListBulkBar.d.ts → ListFloatbar.d.ts} +3 -3
- package/dist-lib/components/pages/list/RowActionsCell.d.ts +8 -10
- package/dist-lib/components/pages/list/RowContextMenu.d.ts +29 -0
- package/dist-lib/components/pages/list/SaveViewDialog.d.ts +5 -1
- package/dist-lib/components/pages/list/cardProjection.d.ts +1 -1
- package/dist-lib/components/pages/list/column-sizing.d.ts +15 -0
- package/dist-lib/components/pages/list/columns.d.ts +3 -0
- package/dist-lib/components/pages/list/useHeaderReorder.d.ts +26 -0
- package/dist-lib/components/pages/list/useRowMenu.d.ts +47 -0
- package/dist-lib/components/pages/profile/Profile.d.ts +3 -0
- package/dist-lib/components/pages/tenant-params/TenantParamsPage.d.ts +2 -0
- package/dist-lib/components/params/ParamsBlock.d.ts +25 -0
- package/dist-lib/components/params/param-editors.d.ts +28 -0
- package/dist-lib/components/primitives/Dropdown.d.ts +10 -1
- package/dist-lib/components/shared/ActionDialog.d.ts +2 -2
- package/dist-lib/components/shared/ActionRunner.d.ts +15 -0
- package/dist-lib/components/shared/ResponsiveActionBar.d.ts +45 -23
- package/dist-lib/declarion-react.css +1 -1
- package/dist-lib/hooks/useParams.d.ts +45 -1
- package/dist-lib/index.d.ts +0 -2
- package/dist-lib/index.js +3074 -2189
- package/dist-lib/lib/actions.d.ts +17 -3
- package/dist-lib/lib/evidence-verdict.d.ts +11 -0
- package/dist-lib/lib/rowClickGesture.d.ts +14 -0
- package/dist-lib/{registry-B_AmhRdj.js → registry-DXNFRlbB.js} +780 -559
- package/dist-lib/stores/list-layout.d.ts +86 -0
- package/dist-lib/testing.js +1 -1
- package/dist-lib/types/api.d.ts +29 -1
- package/dist-lib/types/schema.d.ts +15 -0
- package/dist-lib/{useCurrentScreen-CcsD2NAk.js → useCurrentScreen-BA2lb-d7.js} +860 -835
- package/dist-lib/{useProperties-CPtQIWXp.js → useProperties-Br2DeOQh.js} +81 -81
- package/dist-lib/{value-BCjHI_Ai.js → value-C91loRXp.js} +1 -1
- package/package.json +1 -1
- package/dist-lib/components/list/RowMenu.d.ts +0 -23
|
@@ -1,4 +1,17 @@
|
|
|
1
1
|
import type { Action, ActionCondition, Entity, LocalizedString, Schema } from "../types/schema";
|
|
2
|
+
/**
|
|
3
|
+
* Row-menu navigation platform-default action codes. The server injects them
|
|
4
|
+
* into every entity and (for explicit action_layout trees) prepends them so the
|
|
5
|
+
* Row Menu leads with navigation. `__peek` opens the Quick peek drawer (mode-less
|
|
6
|
+
* client verb); `__open` navigates to the record's detail page (href). Shared by
|
|
7
|
+
* the dispatcher, the nav-divider renderer, and client-side suppression (drop
|
|
8
|
+
* `__peek` where peek is unavailable, `__open` where the entity has no detail
|
|
9
|
+
* route). Kept as named constants because these codes are read in 3+ places.
|
|
10
|
+
*/
|
|
11
|
+
export declare const PEEK_ACTION_CODE = "__peek";
|
|
12
|
+
export declare const OPEN_ACTION_CODE = "__open";
|
|
13
|
+
/** True when the code is one of the leading row-menu navigation defaults. */
|
|
14
|
+
export declare function isNavDefaultCode(code: string): boolean;
|
|
2
15
|
/**
|
|
3
16
|
* rowDetailId builds the detail-route id for a row - the value an href's
|
|
4
17
|
* `${id}` placeholder and a detail screen's `:id` segment receive - addressing
|
|
@@ -22,9 +35,10 @@ export declare function actionConditionFieldValue(row: Record<string, unknown>,
|
|
|
22
35
|
export declare function withActionConditionFields<T extends Record<string, unknown>>(row: T): T;
|
|
23
36
|
/**
|
|
24
37
|
* Returns actions from an entity whose visibility array contains the given
|
|
25
|
-
* placement. Canonical values
|
|
26
|
-
*
|
|
27
|
-
*
|
|
38
|
+
* placement. Canonical values (the 9 the Go validator accepts): detail |
|
|
39
|
+
* detail_toolbar | list_row | list_toolbar | list_floatbar | quick_peek |
|
|
40
|
+
* app_menu | nav_create | command_palette. Schema validator rejects unknown
|
|
41
|
+
* values at load time so we don't need runtime alias handling here.
|
|
28
42
|
*/
|
|
29
43
|
export declare function getActionsByVisibility(actions: Record<string, Action> | undefined, visibility: string): Array<{
|
|
30
44
|
code: string;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { PillTone } from "../components/primitives/Pill";
|
|
2
|
+
export declare const EVIDENCE_VERDICT: {
|
|
3
|
+
readonly verified: "verified";
|
|
4
|
+
readonly unverified: "unverified";
|
|
5
|
+
readonly tampered: "tampered";
|
|
6
|
+
readonly erased: "erased";
|
|
7
|
+
readonly indeterminate: "indeterminate";
|
|
8
|
+
readonly outsideCoverage: "outside_coverage";
|
|
9
|
+
};
|
|
10
|
+
export declare function verdictLabel(verdict: string): string;
|
|
11
|
+
export declare function verdictTone(verdict: string): PillTone;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
/** Window to wait for a second click before committing to the single-click
|
|
2
|
+
* (peek) action. Comfortably inside the OS double-click interval so real
|
|
3
|
+
* double-clicks are caught, short enough that the peek does not feel laggy. */
|
|
4
|
+
export declare const ROW_DOUBLE_CLICK_MS = 250;
|
|
5
|
+
/** A deferred single click awaiting a possible second click. */
|
|
6
|
+
export type RowClickPending = {
|
|
7
|
+
rowId: string;
|
|
8
|
+
} | null;
|
|
9
|
+
/**
|
|
10
|
+
* Classify a click on `rowId` given the pending deferred-click state:
|
|
11
|
+
* "double" when the same row already has an undelivered deferred click (this is
|
|
12
|
+
* its second click), otherwise "single".
|
|
13
|
+
*/
|
|
14
|
+
export declare function classifyRowClick(pending: RowClickPending, rowId: string): "single" | "double";
|