@steedos-widgets/amis-lib 1.3.4-beta.1 → 1.3.4-beta.10

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.
@@ -21,6 +21,7 @@ export function getObjectDetailButtonsSchemas(objectSchema: any, recordId: any,
21
21
  }[] | {
22
22
  type: string;
23
23
  icon: string;
24
+ visibleOn: string;
24
25
  onEvent: {
25
26
  click: {
26
27
  actions: {
@@ -234,13 +234,7 @@ export function getObjectListHeaderFieldsFilterBar(objectSchema: any, listViewNa
234
234
  icon?: undefined;
235
235
  level?: undefined;
236
236
  } | {
237
- type: string; /**
238
- * 点击记录详细界面相关表顶部标题进入的相关表页面的顶部amisSchema
239
- * @param {*} objectSchema
240
- * @param {*} recordId
241
- * @param {*} relatedObjectName
242
- * @returns amisSchema
243
- */
237
+ type: string;
244
238
  label: string;
245
239
  onEvent: {
246
240
  click: {
@@ -588,6 +582,7 @@ export function getObjectRecordDetailHeader(objectSchema: any, recordId: any, op
588
582
  }[] | {
589
583
  type: string;
590
584
  icon: string;
585
+ visibleOn: string;
591
586
  onEvent: {
592
587
  click: {
593
588
  actions: {
@@ -297,6 +297,7 @@ export function getRecordDetailHeaderSchema(objectName: any, recordId: any, opti
297
297
  }[] | {
298
298
  type: string;
299
299
  icon: string;
300
+ visibleOn: string;
300
301
  onEvent: {
301
302
  click: {
302
303
  actions: {
@@ -8,7 +8,26 @@ export function getSchema(uiSchema: any, ctx: any): Promise<{
8
8
  onEvent: {
9
9
  click: {
10
10
  weight: number;
11
- actions: {
11
+ actions: ({
12
+ actionType: string;
13
+ script: string;
14
+ outputVar?: undefined;
15
+ args?: undefined;
16
+ expression?: undefined;
17
+ dialog?: undefined;
18
+ } | {
19
+ actionType: string;
20
+ outputVar: string;
21
+ args: {
22
+ api: {
23
+ url: string;
24
+ method: string;
25
+ };
26
+ };
27
+ expression: string;
28
+ script?: undefined;
29
+ dialog?: undefined;
30
+ } | {
12
31
  actionType: string;
13
32
  dialog: {
14
33
  type: string;
@@ -26,6 +45,7 @@ export function getSchema(uiSchema: any, ctx: any): Promise<{
26
45
  uiSchema: string;
27
46
  isLookup: string;
28
47
  listName: string;
48
+ selectedRowResponseResult: string;
29
49
  };
30
50
  title: string;
31
51
  body: {
@@ -37,6 +57,7 @@ export function getSchema(uiSchema: any, ctx: any): Promise<{
37
57
  isLookup: string;
38
58
  _master: string;
39
59
  url: string;
60
+ selectedRowResponseResult: string;
40
61
  };
41
62
  url: string;
42
63
  method: string;
@@ -85,7 +106,11 @@ export function getSchema(uiSchema: any, ctx: any): Promise<{
85
106
  id?: undefined;
86
107
  })[];
87
108
  };
88
- }[];
109
+ script?: undefined;
110
+ outputVar?: undefined;
111
+ args?: undefined;
112
+ expression?: undefined;
113
+ })[];
89
114
  };
90
115
  };
91
116
  }[];
@@ -11,7 +11,26 @@ export namespace StandardButtons {
11
11
  onEvent: {
12
12
  click: {
13
13
  weight: number;
14
- actions: {
14
+ actions: ({
15
+ actionType: string;
16
+ script: string;
17
+ outputVar?: undefined;
18
+ args?: undefined;
19
+ expression?: undefined;
20
+ dialog?: undefined;
21
+ } | {
22
+ actionType: string;
23
+ outputVar: string;
24
+ args: {
25
+ api: {
26
+ url: string;
27
+ method: string;
28
+ };
29
+ };
30
+ expression: string;
31
+ script?: undefined;
32
+ dialog?: undefined;
33
+ } | {
15
34
  actionType: string;
16
35
  dialog: {
17
36
  type: string;
@@ -29,6 +48,7 @@ export namespace StandardButtons {
29
48
  uiSchema: string;
30
49
  isLookup: string;
31
50
  listName: string;
51
+ selectedRowResponseResult: string;
32
52
  };
33
53
  title: string;
34
54
  body: {
@@ -40,6 +60,7 @@ export namespace StandardButtons {
40
60
  isLookup: string;
41
61
  _master: string;
42
62
  url: string;
63
+ selectedRowResponseResult: string;
43
64
  };
44
65
  url: string;
45
66
  method: string;
@@ -88,7 +109,11 @@ export namespace StandardButtons {
88
109
  id?: undefined;
89
110
  })[];
90
111
  };
91
- }[];
112
+ script?: undefined;
113
+ outputVar?: undefined;
114
+ args?: undefined;
115
+ expression?: undefined;
116
+ })[];
92
117
  };
93
118
  };
94
119
  }[];
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@steedos-widgets/amis-lib",
3
3
  "private": false,
4
- "version": "1.3.4-beta.1",
4
+ "version": "1.3.4-beta.10",
5
5
  "unpkg": "./dist/index.umd.js",
6
6
  "main": "./dist/index.cjs.js",
7
7
  "module": "./dist/index.esm.js",
@@ -61,5 +61,5 @@
61
61
  "lodash": "^4.17.21",
62
62
  "react-i18next": "12.3.1"
63
63
  },
64
- "gitHead": "9bdc96bf72620115fd444993bdd6eb842a25b640"
64
+ "gitHead": "a3588f996b1c8ee42deafdcf4eeb7fdb316d50c9"
65
65
  }