@declarion/react 0.1.4 → 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.
- package/dist-lib/api/client.d.ts +6 -0
- package/dist-lib/components/pages/SmartListPage.d.ts +24 -0
- package/dist-lib/index.js +1855 -1824
- package/dist-lib/index.js.map +1 -1
- package/dist-lib/types/schema.d.ts +8 -0
- package/package.json +1 -1
|
@@ -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
|
}
|