@steedos-widgets/amis-lib 6.10.52-beta.9 → 6.10.53-beta.1

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.
@@ -15,49 +15,25 @@ export function getAttachments(instance: any): Promise<{
15
15
  title: string;
16
16
  body: ({
17
17
  type: string;
18
- labelClassName: string;
19
- className: string;
20
18
  label: string;
21
- mode: string;
22
- name: string;
23
- id: string;
24
19
  btnLabel: string;
25
- btnClassName: string;
26
20
  multiple: boolean;
27
- maxLength: number;
28
- submitType: string;
29
- uploadType: string;
30
- proxy: boolean;
31
- drag: boolean;
32
- autoUpload: boolean;
33
- useChunk: boolean;
34
- joinValues: boolean;
35
- extractValue: boolean;
36
- valueField: string;
37
- receiver: {
38
- url: string;
39
- headers: {
40
- Authorization: string;
41
- };
42
- method: string;
43
- messages: {};
44
- dataType: string;
45
- requestAdaptor: string;
21
+ maxCount: number;
22
+ action: string;
23
+ headers: {
24
+ Authorization: string;
25
+ };
26
+ extraData: {
27
+ space: any;
28
+ instance: any;
29
+ approve: any;
30
+ owner: any;
31
+ owner_name: any;
46
32
  };
47
33
  onEvent: {
48
- success: {
34
+ uploadSuccess: {
49
35
  weight: number;
50
36
  actions: ({
51
- componentId: string;
52
- args: {
53
- msgType?: undefined;
54
- position?: undefined;
55
- closeButton?: undefined;
56
- showIcon?: undefined;
57
- msg?: undefined;
58
- };
59
- actionType: string;
60
- } | {
61
37
  componentId: string;
62
38
  args: {
63
39
  msgType: string;
@@ -67,10 +43,21 @@ export function getAttachments(instance: any): Promise<{
67
43
  msg: string;
68
44
  };
69
45
  actionType: string;
46
+ } | {
47
+ componentId: string;
48
+ args: {
49
+ msgType?: undefined;
50
+ position?: undefined;
51
+ closeButton?: undefined;
52
+ showIcon?: undefined;
53
+ msg?: undefined;
54
+ };
55
+ actionType: string;
70
56
  })[];
71
57
  };
72
58
  click?: undefined;
73
59
  };
60
+ className?: undefined;
74
61
  } | {
75
62
  type: string;
76
63
  className: string;
@@ -83,27 +70,15 @@ export function getAttachments(instance: any): Promise<{
83
70
  actionType: string;
84
71
  }[];
85
72
  };
86
- success?: undefined;
73
+ uploadSuccess?: undefined;
87
74
  };
88
- labelClassName?: undefined;
89
75
  label?: undefined;
90
- mode?: undefined;
91
- name?: undefined;
92
- id?: undefined;
93
76
  btnLabel?: undefined;
94
- btnClassName?: undefined;
95
77
  multiple?: undefined;
96
- maxLength?: undefined;
97
- submitType?: undefined;
98
- uploadType?: undefined;
99
- proxy?: undefined;
100
- drag?: undefined;
101
- autoUpload?: undefined;
102
- useChunk?: undefined;
103
- joinValues?: undefined;
104
- extractValue?: undefined;
105
- valueField?: undefined;
106
- receiver?: undefined;
78
+ maxCount?: undefined;
79
+ action?: undefined;
80
+ headers?: undefined;
81
+ extraData?: undefined;
107
82
  })[];
108
83
  id: string;
109
84
  wrapWithPanel: boolean;
@@ -145,49 +120,25 @@ export function getAttachmentUploadInput(instance: any): Promise<{
145
120
  title: string;
146
121
  body: ({
147
122
  type: string;
148
- labelClassName: string;
149
- className: string;
150
123
  label: string;
151
- mode: string;
152
- name: string;
153
- id: string;
154
124
  btnLabel: string;
155
- btnClassName: string;
156
125
  multiple: boolean;
157
- maxLength: number;
158
- submitType: string;
159
- uploadType: string;
160
- proxy: boolean;
161
- drag: boolean;
162
- autoUpload: boolean;
163
- useChunk: boolean;
164
- joinValues: boolean;
165
- extractValue: boolean;
166
- valueField: string;
167
- receiver: {
168
- url: string;
169
- headers: {
170
- Authorization: string;
171
- };
172
- method: string;
173
- messages: {};
174
- dataType: string;
175
- requestAdaptor: string;
126
+ maxCount: number;
127
+ action: string;
128
+ headers: {
129
+ Authorization: string;
130
+ };
131
+ extraData: {
132
+ space: any;
133
+ instance: any;
134
+ approve: any;
135
+ owner: any;
136
+ owner_name: any;
176
137
  };
177
138
  onEvent: {
178
- success: {
139
+ uploadSuccess: {
179
140
  weight: number;
180
141
  actions: ({
181
- componentId: string;
182
- args: {
183
- msgType?: undefined;
184
- position?: undefined;
185
- closeButton?: undefined;
186
- showIcon?: undefined;
187
- msg?: undefined;
188
- };
189
- actionType: string;
190
- } | {
191
142
  componentId: string;
192
143
  args: {
193
144
  msgType: string;
@@ -197,10 +148,21 @@ export function getAttachmentUploadInput(instance: any): Promise<{
197
148
  msg: string;
198
149
  };
199
150
  actionType: string;
151
+ } | {
152
+ componentId: string;
153
+ args: {
154
+ msgType?: undefined;
155
+ position?: undefined;
156
+ closeButton?: undefined;
157
+ showIcon?: undefined;
158
+ msg?: undefined;
159
+ };
160
+ actionType: string;
200
161
  })[];
201
162
  };
202
163
  click?: undefined;
203
164
  };
165
+ className?: undefined;
204
166
  } | {
205
167
  type: string;
206
168
  className: string;
@@ -213,27 +175,15 @@ export function getAttachmentUploadInput(instance: any): Promise<{
213
175
  actionType: string;
214
176
  }[];
215
177
  };
216
- success?: undefined;
178
+ uploadSuccess?: undefined;
217
179
  };
218
- labelClassName?: undefined;
219
180
  label?: undefined;
220
- mode?: undefined;
221
- name?: undefined;
222
- id?: undefined;
223
181
  btnLabel?: undefined;
224
- btnClassName?: undefined;
225
182
  multiple?: undefined;
226
- maxLength?: undefined;
227
- submitType?: undefined;
228
- uploadType?: undefined;
229
- proxy?: undefined;
230
- drag?: undefined;
231
- autoUpload?: undefined;
232
- useChunk?: undefined;
233
- joinValues?: undefined;
234
- extractValue?: undefined;
235
- valueField?: undefined;
236
- receiver?: undefined;
183
+ maxCount?: undefined;
184
+ action?: undefined;
185
+ headers?: undefined;
186
+ extraData?: undefined;
237
187
  })[];
238
188
  id: string;
239
189
  wrapWithPanel: boolean;
@@ -30,6 +30,7 @@ export function getFlowFormSchema(instance: any, box: any, print: any): Promise<
30
30
  "font-weight": string;
31
31
  };
32
32
  ".steedos-amis-instance-view.steedos-instance-style-table .antd-Page-body .steedos-amis-instance-view-content": {
33
+ "min-width"?: string;
33
34
  "max-width": string;
34
35
  };
35
36
  ".steedos-amis-instance-view.steedos-instance-style-table .antd-Page-body .steedos-amis-instance-view-content .steedos-input-table": {
@@ -0,0 +1,3 @@
1
+ export function getSafeCode(code: any): any;
2
+ export function getTableFieldMap(fields: any): {};
3
+ export function mapFormula(formula: string, tableFieldMap: any): string | null;
@@ -1,4 +1,4 @@
1
- export function getInstanceApprovalHistory(): Promise<{
1
+ export function getInstanceApprovalHistory(box: any, isMobile: any): Promise<{
2
2
  type: string;
3
3
  className: string;
4
4
  template: string;
@@ -14,7 +14,7 @@ export function getStepsSchema(instance: any): {
14
14
  label: boolean;
15
15
  needConfirm: boolean;
16
16
  bordered: boolean;
17
- title: string;
17
+ title: boolean;
18
18
  quickSaveItemApi: {
19
19
  url: string;
20
20
  method: string;
@@ -4,18 +4,36 @@ export function getRelatedRecords(instance: any): Promise<{
4
4
  }[]>;
5
5
  export function getRelatedInstances(instance: any): Promise<{
6
6
  type: string;
7
- name: string;
8
7
  className: string;
9
- source: string;
10
- title: string;
11
- listItem: {
12
- body: {
13
- type: string;
14
- inline: boolean;
15
- tpl: string;
16
- }[];
17
- actions: any[];
18
- id: string;
8
+ headerClassName: string;
9
+ bodyClassName: string;
10
+ title: {
11
+ type: string;
12
+ tpl: string;
13
+ visibleOn: string;
19
14
  };
15
+ visibleOn: string;
16
+ body: ({
17
+ type: string;
18
+ template: string;
19
+ id: string;
20
+ className?: undefined;
21
+ onEvent?: undefined;
22
+ } | {
23
+ type: string;
24
+ className: string;
25
+ onEvent: {
26
+ click: {
27
+ weight: number;
28
+ actions: {
29
+ componentId: string;
30
+ args: {};
31
+ actionType: string;
32
+ }[];
33
+ };
34
+ };
35
+ template?: undefined;
36
+ id?: undefined;
37
+ })[];
20
38
  id: string;
21
39
  }>;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@steedos-widgets/amis-lib",
3
3
  "private": false,
4
- "version": "6.10.52-beta.9",
4
+ "version": "6.10.53-beta.1",
5
5
  "unpkg": "./dist/index.umd.js",
6
6
  "main": "./dist/index.cjs.js",
7
7
  "module": "./dist/index.esm.js",
@@ -59,5 +59,5 @@
59
59
  "i18next": "24.2.2",
60
60
  "lodash": "^4.17.21"
61
61
  },
62
- "gitHead": "44a447ece3877e28b67139fe5b16b1cf6c4fdd9f"
62
+ "gitHead": "4a05aa31f4e805e54a6325e5500783eae58a965a"
63
63
  }