@declarion/react 0.6.6 → 0.6.7
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-CdzxxoTe.js +259 -0
- package/dist-lib/Grid-Cwxca9aO.js +0 -2
- package/dist-lib/JsonEditor-KelPV-OQ.js +0 -2
- package/dist-lib/MarkdownRenderer-Dbl3AFDQ.js +0 -2
- package/dist-lib/api/data.d.ts +1 -1
- package/dist-lib/components/detail-layout/DetailAuditStrip.d.ts +2 -2
- package/dist-lib/components/detail-layout/DetailHighlights.d.ts +2 -2
- package/dist-lib/components/detail-layout/DraggableChildrenTable.d.ts +2 -2
- package/dist-lib/components/detail-layout/EditableChildrenTable.d.ts +2 -2
- package/dist-lib/components/detail-layout/LayoutRenderer.d.ts +2 -2
- package/dist-lib/components/fields/cells/registry.d.ts +4 -4
- package/dist-lib/components/fields/index.d.ts +3 -3
- package/dist-lib/components/file-widgets/host.d.ts +2 -2
- package/dist-lib/components/filters/FilterDrawer.d.ts +1 -1
- package/dist-lib/components/list/PeekFieldCell.d.ts +2 -2
- package/dist-lib/components/list/QuickPeek.d.ts +2 -2
- package/dist-lib/components/mass-edit/PropertyGridEditor.d.ts +1 -1
- package/dist-lib/components/pages/SmartListPage.d.ts +1 -25
- package/dist-lib/components/pages/list/DataCell.d.ts +1 -2
- package/dist-lib/components/pages/list/columns.d.ts +3 -3
- package/dist-lib/components/primitives/index.d.ts +0 -1
- package/dist-lib/components/shared/ActionRunner.d.ts +3 -2
- package/dist-lib/components/shared/Breadcrumbs.d.ts +1 -1
- package/dist-lib/{dataTableStyles-BwnbXviH.js → dataTableStyles-zH3M7xdm.js} +765 -793
- package/dist-lib/index.d.ts +1 -6
- package/dist-lib/index.js +2844 -3271
- package/dist-lib/lib/display-value.d.ts +1 -0
- package/dist-lib/lib/filters.d.ts +0 -4
- package/dist-lib/lib/timestamp.d.ts +16 -3
- package/dist-lib/rich-text-CJpzFOG5.js +0 -2
- package/dist-lib/types/api.d.ts +10 -3
- package/dist-lib/value-CrpaObP_.js +0 -2
- package/dist-lib/vite/index.js +0 -2
- package/package.json +4 -2
- package/dist-lib/DraggableChildrenTable-DhcSXQfV.js +0 -261
- package/dist-lib/DraggableChildrenTable-DhcSXQfV.js.map +0 -1
- package/dist-lib/Grid-Cwxca9aO.js.map +0 -1
- package/dist-lib/JsonEditor-KelPV-OQ.js.map +0 -1
- package/dist-lib/MarkdownRenderer-Dbl3AFDQ.js.map +0 -1
- package/dist-lib/components/list/BulkBar.d.ts +0 -18
- package/dist-lib/components/list/ListPage.d.ts +0 -34
- package/dist-lib/components/list/resolveActions.d.ts +0 -53
- package/dist-lib/components/primitives/cx.d.ts +0 -1
- package/dist-lib/dataTableStyles-BwnbXviH.js.map +0 -1
- package/dist-lib/index.js.map +0 -1
- package/dist-lib/rich-text-CJpzFOG5.js.map +0 -1
- package/dist-lib/value-CrpaObP_.js.map +0 -1
- package/dist-lib/vite/index.js.map +0 -1
|
@@ -1,53 +0,0 @@
|
|
|
1
|
-
import type { Action, Screen } from "../../types/schema";
|
|
2
|
-
export declare const VISIBILITY_LIST_TOOLBAR = "list_toolbar";
|
|
3
|
-
export declare const VISIBILITY_LIST_BULK_BAR = "list_floatbar";
|
|
4
|
-
/** Headed entry: action plus its registry code (entity- or globally-scoped). */
|
|
5
|
-
export interface ActionEntry {
|
|
6
|
-
code: string;
|
|
7
|
-
action: Action;
|
|
8
|
-
}
|
|
9
|
-
export interface ResolveInput {
|
|
10
|
-
actions: Record<string, Action>;
|
|
11
|
-
screen?: Screen;
|
|
12
|
-
/**
|
|
13
|
-
* Permission gate. Receives the action code (without entity prefix as stored
|
|
14
|
-
* in the actions map). Caller wires this to the existing RBAC helper.
|
|
15
|
-
* Default: allow all (useful in tests; real callers MUST pass this).
|
|
16
|
-
*/
|
|
17
|
-
hasPermission?: (code: string) => boolean;
|
|
18
|
-
selectionCount: number;
|
|
19
|
-
/** Maximum primary buttons promoted per slot. Spec locks to 2. */
|
|
20
|
-
maxPrimary?: number;
|
|
21
|
-
}
|
|
22
|
-
export interface ToolbarResolution {
|
|
23
|
-
/** Promoted to header buttons (max `maxPrimary`, default 2). */
|
|
24
|
-
primary: ActionEntry[];
|
|
25
|
-
/** Global (non-bulk) actions to render in Actions ▾ "Global" group. */
|
|
26
|
-
global: ActionEntry[];
|
|
27
|
-
/**
|
|
28
|
-
* Bulk-required actions to render in Actions ▾ "Needs selection" group.
|
|
29
|
-
* Always present in the menu; UI greys them out when selectionCount === 0.
|
|
30
|
-
*/
|
|
31
|
-
needsSelection: ActionEntry[];
|
|
32
|
-
/** Live count badge value next to "Needs selection" label. */
|
|
33
|
-
selectionCount: number;
|
|
34
|
-
}
|
|
35
|
-
export interface BulkBarResolution {
|
|
36
|
-
/** All actions for the floating bulk bar (primary inline + overflow). */
|
|
37
|
-
entries: ActionEntry[];
|
|
38
|
-
/** Subset promoted as inline buttons (max `maxPrimary`, default 2). */
|
|
39
|
-
primaryCodes: Set<string>;
|
|
40
|
-
}
|
|
41
|
-
export declare function resolveToolbarActions(input: ResolveInput): ToolbarResolution;
|
|
42
|
-
/**
|
|
43
|
-
* Resolve actions for the list_floatbar slot (floating pill on selection).
|
|
44
|
-
*
|
|
45
|
-
* Slot rules (plan section C):
|
|
46
|
-
* - Take actions where Visibility includes "list_floatbar" AND user has perm.
|
|
47
|
-
* - If `screen.primary_bulk_actions` is set, it overrides `primary:` for
|
|
48
|
-
* promotion. Order preserved, capped at maxPrimary.
|
|
49
|
-
* - Else: actions with `primary: true` are promoted (capped).
|
|
50
|
-
* - All resolved actions returned in `entries`; UI splits inline vs ⋯ More
|
|
51
|
-
* using `primaryCodes`.
|
|
52
|
-
*/
|
|
53
|
-
export declare function resolveBulkBarActions(input: ResolveInput): BulkBarResolution;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare function cx(...a: Array<string | false | null | undefined>): string;
|