@evoke-platform/context 1.0.0-dev.115 → 1.0.0-dev.117
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/objects/objects.d.ts +15 -19
- package/package.json +1 -1
|
@@ -4,33 +4,28 @@ export type BaseObjReference = {
|
|
|
4
4
|
objectId: string;
|
|
5
5
|
discriminatorValue: unknown;
|
|
6
6
|
};
|
|
7
|
-
export type
|
|
8
|
-
table?: DefaultTableViewLayout;
|
|
9
|
-
dropdown?: DefaultDropdownViewLayout;
|
|
10
|
-
};
|
|
11
|
-
export type ViewLayoutReference = {
|
|
7
|
+
export type ViewLayoutEntityReference = {
|
|
12
8
|
id: string;
|
|
13
9
|
objectId: string;
|
|
14
10
|
};
|
|
15
|
-
|
|
16
|
-
secondaryTextExpression: string;
|
|
17
|
-
};
|
|
18
|
-
export type DefaultTableViewLayout = {
|
|
19
|
-
properties: PropertyReference[];
|
|
20
|
-
sort?: Sort;
|
|
21
|
-
};
|
|
22
|
-
export type ViewLayout = {
|
|
11
|
+
type ViewLayoutEntity = {
|
|
23
12
|
id: string;
|
|
24
13
|
name: string;
|
|
25
14
|
objectId: string;
|
|
26
15
|
};
|
|
27
|
-
export type
|
|
28
|
-
|
|
29
|
-
|
|
16
|
+
export type TableViewLayoutEntity = ViewLayoutEntity & TableViewLayout;
|
|
17
|
+
export type DropdownViewLayoutEntity = ViewLayoutEntity & DropdownViewLayout;
|
|
18
|
+
export type ViewLayout = {
|
|
19
|
+
table?: TableViewLayout;
|
|
20
|
+
dropdown?: DropdownViewLayout;
|
|
30
21
|
};
|
|
31
|
-
export type DropdownViewLayout =
|
|
22
|
+
export type DropdownViewLayout = {
|
|
32
23
|
secondaryTextExpression: string;
|
|
33
24
|
};
|
|
25
|
+
export type TableViewLayout = {
|
|
26
|
+
properties: PropertyReference[];
|
|
27
|
+
sort?: Sort;
|
|
28
|
+
};
|
|
34
29
|
export type PropertyReference = {
|
|
35
30
|
id: string;
|
|
36
31
|
format?: string;
|
|
@@ -43,7 +38,7 @@ export type Obj = {
|
|
|
43
38
|
id: string;
|
|
44
39
|
name: string;
|
|
45
40
|
typeDiscriminatorProperty?: string;
|
|
46
|
-
viewLayout?:
|
|
41
|
+
viewLayout?: ViewLayout;
|
|
47
42
|
baseObject?: BaseObjReference;
|
|
48
43
|
properties?: Property[];
|
|
49
44
|
actions?: Action[];
|
|
@@ -165,7 +160,7 @@ export type DisplayConfiguration = {
|
|
|
165
160
|
mode?: 'default' | 'existingOnly';
|
|
166
161
|
relatedObjectDisplay?: 'dropdown' | 'dialogBox';
|
|
167
162
|
visibility?: VisibilityConfiguration | string;
|
|
168
|
-
viewLayout?:
|
|
163
|
+
viewLayout?: ViewLayoutEntityReference;
|
|
169
164
|
};
|
|
170
165
|
export type InputParameterReference = {
|
|
171
166
|
type: 'input';
|
|
@@ -329,3 +324,4 @@ export declare class ObjectStore {
|
|
|
329
324
|
instanceAction<T extends ObjectInstance = ObjectInstance>(id: string, input: ActionRequest, cb: Callback<T>): void;
|
|
330
325
|
}
|
|
331
326
|
export declare function useObject(objectId: string): ObjectStore;
|
|
327
|
+
export {};
|