@declarion/react 0.1.93 → 0.2.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/components/detail-layout/AssociatedBlock.d.ts +1 -0
- package/dist-lib/components/detail-layout/LayoutTabs.d.ts +3 -1
- package/dist-lib/index.js +1320 -1240
- package/dist-lib/index.js.map +1 -1
- package/dist-lib/lib/child-config.d.ts +1 -1
- package/dist-lib/types/schema.d.ts +8 -3
- package/dist-lib/useUserLocale-GBIXbEE6.js.map +1 -1
- package/package.json +1 -1
|
@@ -13,7 +13,7 @@ export interface ResolvedChildConfig {
|
|
|
13
13
|
quick_add?: ChildQuickAdd;
|
|
14
14
|
editable: boolean;
|
|
15
15
|
position_field?: string;
|
|
16
|
-
interaction: "navigate" | "inline_edit" | "readonly";
|
|
16
|
+
interaction: "navigate" | "inline_edit" | "row_edit" | "readonly";
|
|
17
17
|
}
|
|
18
18
|
export declare function resolveChildConfig(relation: ChildRelation, childEntity: Entity, screenNode?: LayoutNode): ResolvedChildConfig;
|
|
19
19
|
export declare function inferSort(entity: Entity): string;
|
|
@@ -142,10 +142,15 @@ export interface ChildDisplay {
|
|
|
142
142
|
* - `navigate`: identity cell (first column) is a link to the child's
|
|
143
143
|
* detail; other cells read-only. Default for associated entities
|
|
144
144
|
* (child has its own detail screen).
|
|
145
|
-
* - `inline_edit`:
|
|
145
|
+
* - `inline_edit`: click a cell to edit it; typing auto-saves after a
|
|
146
|
+
* 500ms debounce. One active cell at a time.
|
|
147
|
+
* - `row_edit`: a per-row Edit button puts the whole row into edit mode
|
|
148
|
+
* (all editable cells become inputs); an explicit Confirm/Cancel pair
|
|
149
|
+
* commits or discards. Nothing persists until Confirm - same flow as
|
|
150
|
+
* the "Add row" draft.
|
|
146
151
|
* - `readonly`: pure display.
|
|
147
152
|
*/
|
|
148
|
-
interaction?: "navigate" | "inline_edit" | "readonly";
|
|
153
|
+
interaction?: "navigate" | "inline_edit" | "row_edit" | "readonly";
|
|
149
154
|
}
|
|
150
155
|
export interface ChildRelation {
|
|
151
156
|
entity: string;
|
|
@@ -382,7 +387,7 @@ export interface LayoutNode {
|
|
|
382
387
|
searchable?: boolean;
|
|
383
388
|
filters?: string[];
|
|
384
389
|
position_field?: string;
|
|
385
|
-
interaction?: "navigate" | "inline_edit" | "readonly";
|
|
390
|
+
interaction?: "navigate" | "inline_edit" | "row_edit" | "readonly";
|
|
386
391
|
}
|
|
387
392
|
export interface Screen {
|
|
388
393
|
type: "list" | "detail" | "custom" | "record_list";
|