@declarion/react 0.1.3 → 0.1.21

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,4 +1,10 @@
1
1
  export type LocalizedString = Record<string, string>;
2
+ /**
3
+ * Reserved sentinel value for Screen.detail_screen (list screens). Disables
4
+ * row-click navigation even when the entity declares a canonical detail. Paired
5
+ * with Go's engine.DetailScreenNone - keep the literal "none" in sync.
6
+ */
7
+ export declare const DETAIL_SCREEN_NONE = "none";
2
8
  export declare function loc(ls: LocalizedString | undefined, lang?: string): string;
3
9
  export declare function fieldDisplayName(field: EntityField, fieldName: string, entities?: Record<string, Entity>): string;
4
10
  export interface RefDisplay {
@@ -169,6 +175,7 @@ export interface Entity {
169
175
  actions?: Record<string, Action>;
170
176
  handlers?: Record<string, HandlerDef>;
171
177
  associations?: Record<string, AssociationDef>;
178
+ detail_screen?: string;
172
179
  }
173
180
  export declare function getPrimaryKeyFields(entity: Entity): string[];
174
181
  export type PkValues = Record<string, string>;
@@ -250,6 +257,7 @@ export interface Screen {
250
257
  self?: boolean;
251
258
  list_width?: string;
252
259
  list_resizable?: boolean;
260
+ detail_screen?: string;
253
261
  fixed_filters?: Record<string, unknown>;
254
262
  views?: ViewDefinition[];
255
263
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@declarion/react",
3
- "version": "0.1.3",
3
+ "version": "0.1.21",
4
4
  "private": false,
5
5
  "license": "MIT",
6
6
  "description": "React SDK for Declarion, the schema-driven business apps platform.",