@steedos-widgets/amis-lib 1.0.29 → 1.0.30

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,4 @@
1
- export function getSections(permissionFields: any, mergedSchema: any, ctx: any): Promise<{
1
+ export function getSections(permissionFields: any, formFields: any, ctx: any): Promise<{
2
2
  type: string;
3
3
  title: any;
4
4
  collapsable: boolean;
@@ -1,4 +1,4 @@
1
- export function getFormBody(permissionFields: any, objectConfig: any, ctx: any): Promise<{
1
+ export function getFormBody(permissionFields: any, formFields: any, ctx: any): Promise<{
2
2
  type: string;
3
3
  title: any;
4
4
  collapsable: boolean;
@@ -4,7 +4,6 @@ export function getObjectCRUD(objectSchema: any, fields: any, options: any): Pro
4
4
  id: string;
5
5
  name: string;
6
6
  data: {
7
- $master: string;
8
7
  objectName: any;
9
8
  _id: any;
10
9
  recordPermissions: any;
@@ -20,32 +20,64 @@ export function getObjectHeaderToolbar(mainObject: any, formFactor: any, { showD
20
20
  tpl?: undefined;
21
21
  align?: undefined;
22
22
  label?: undefined;
23
- icon?: undefined;
23
+ tooltipPlacement?: undefined;
24
+ tooltip?: undefined;
24
25
  onEvent?: undefined;
26
+ icon?: undefined;
25
27
  } | {
26
28
  type?: undefined;
27
29
  className?: undefined;
28
30
  tpl?: undefined;
29
31
  align?: undefined;
30
32
  label?: undefined;
31
- icon?: undefined;
33
+ tooltipPlacement?: undefined;
34
+ tooltip?: undefined;
32
35
  onEvent?: undefined;
36
+ icon?: undefined;
33
37
  } | {
34
38
  type: string;
35
39
  tpl: string;
36
40
  className?: undefined;
37
41
  align?: undefined;
38
42
  label?: undefined;
39
- icon?: undefined;
43
+ tooltipPlacement?: undefined;
44
+ tooltip?: undefined;
40
45
  onEvent?: undefined;
46
+ icon?: undefined;
41
47
  } | {
42
48
  type: string;
43
49
  align: string;
44
50
  className: string;
45
51
  tpl?: undefined;
46
52
  label?: undefined;
47
- icon?: undefined;
53
+ tooltipPlacement?: undefined;
54
+ tooltip?: undefined;
48
55
  onEvent?: undefined;
56
+ icon?: undefined;
57
+ } | {
58
+ type: string;
59
+ label: string;
60
+ align: string;
61
+ className: string;
62
+ tooltipPlacement: string;
63
+ tooltip: string;
64
+ onEvent: {
65
+ click: {
66
+ actions: {
67
+ args: {
68
+ api: {
69
+ url: string;
70
+ method: string;
71
+ responseType: string;
72
+ requestAdaptor: string;
73
+ };
74
+ };
75
+ actionType: string;
76
+ };
77
+ };
78
+ };
79
+ tpl?: undefined;
80
+ icon?: undefined;
49
81
  } | {
50
82
  label: string;
51
83
  icon: string;
@@ -61,6 +93,8 @@ export function getObjectHeaderToolbar(mainObject: any, formFactor: any, { showD
61
93
  };
62
94
  };
63
95
  tpl?: undefined;
96
+ tooltipPlacement?: undefined;
97
+ tooltip?: undefined;
64
98
  })[];
65
99
  export function getObjectFooterToolbar(mainObject: any, formFactor: any): string[];
66
100
  export function getObjectFilter(objectSchema: any, fields: any, options: any): Promise<{
@@ -175,7 +175,6 @@ export function getTableSchema(appName: any, objectName: any, columns: any, ctx?
175
175
  id: string;
176
176
  name: string;
177
177
  data: {
178
- $master: string;
179
178
  objectName: any;
180
179
  _id: any;
181
180
  recordPermissions: any;
@@ -440,6 +439,10 @@ export function getRecordDetailSchema(objectName: any, appId: any, props?: {}):
440
439
  };
441
440
  };
442
441
  })[];
442
+ data: {
443
+ "_master.objectName": string;
444
+ "_master.recordId": string;
445
+ };
443
446
  onEvent: any;
444
447
  };
445
448
  }>;
@@ -45,6 +45,7 @@ export function getRecordDetailRelatedListSchema(objectName: any, recordId: any,
45
45
  relatedKey: any;
46
46
  objectName: any;
47
47
  listViewId: string;
48
+ _isRelated: boolean;
48
49
  };
49
50
  body: {
50
51
  data: {
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@steedos-widgets/amis-lib",
3
3
  "private": false,
4
- "version": "1.0.29",
4
+ "version": "1.0.30",
5
5
  "unpkg": "./dist/index.umd.js",
6
6
  "main": "./dist/index.cjs.js",
7
7
  "module": "./dist/index.esm.js",
@@ -58,5 +58,5 @@
58
58
  "dependencies": {
59
59
  "lodash": "^4.17.21"
60
60
  },
61
- "gitHead": "dc0d23189fc89b7a957b98bb44946a51974929b9"
61
+ "gitHead": "a518ccb1e24bc980663bb9971861d383046097aa"
62
62
  }