@steedos-widgets/amis-lib 1.3.0-beta.9 → 1.3.0

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.
@@ -65,6 +65,7 @@ export function getObjectListViewButtonsSchemas(objectSchema: any, ctx: any): {
65
65
  }[] | {
66
66
  type: string;
67
67
  icon: string;
68
+ className: string;
68
69
  onEvent: {
69
70
  click: {
70
71
  actions: {
@@ -40,17 +40,36 @@ export function getMarkdownFieldSchema(field: any, readonly: any, ctx: any): {
40
40
  };
41
41
  export function getHtmlFieldSchema(field: any, readonly: any, ctx: any): {
42
42
  type: string;
43
- label: any;
44
- body: {
45
- type: string;
46
- name: any;
43
+ receiver: string;
44
+ name: any;
45
+ options: {
46
+ menu: {
47
+ insert: {
48
+ title: string;
49
+ items: string;
50
+ };
51
+ };
52
+ plugins: string[];
53
+ statusbar: boolean;
54
+ readonly: boolean;
55
+ toolbar: boolean;
56
+ menubar: boolean;
47
57
  };
48
- receiver?: undefined;
49
- name?: undefined;
50
58
  } | {
51
59
  type: string;
52
60
  receiver: string;
61
+ options: {
62
+ menu: {
63
+ insert: {
64
+ title: string;
65
+ items: string;
66
+ };
67
+ };
68
+ plugins?: undefined;
69
+ statusbar?: undefined;
70
+ readonly?: undefined;
71
+ toolbar?: undefined;
72
+ menubar?: undefined;
73
+ };
53
74
  name: any;
54
- label?: undefined;
55
- body?: undefined;
56
75
  };
@@ -6,7 +6,7 @@ export function getBaseFields(readonly: any): {
6
6
  className: string;
7
7
  tpl: string;
8
8
  }[];
9
- export function getAmisFieldType(sField: any): "url" | "password" | "select" | "date" | "datetime" | "number" | "image" | "text" | "picker" | "table" | "markdown" | "html" | "email" | "textarea" | "checkbox";
9
+ export function getAmisFieldType(sField: any): "url" | "password" | "select" | "date" | "datetime" | "number" | "image" | "text" | "picker" | "table" | "html" | "markdown" | "email" | "textarea" | "checkbox";
10
10
  export function getObjectFieldSubFields(mainField: any, fields: any): any;
11
11
  export function getGridFieldSubFields(mainField: any, fields: any): any;
12
12
  /**
@@ -1,8 +1,7 @@
1
- export function getLookupSapceUserTreeSchema(): {
1
+ export function getLookupSapceUserTreeSchema(isMobile: any): ({
2
2
  type: string;
3
3
  className: string;
4
4
  inputClassName: string;
5
- id: string;
6
5
  source: {
7
6
  method: string;
8
7
  url: string;
@@ -45,18 +44,91 @@ export function getLookupSapceUserTreeSchema(): {
45
44
  placeholder: string;
46
45
  };
47
46
  unfoldedLevel: number;
48
- style: {
49
- "max-height": string;
50
- position: string;
51
- left: string;
52
- width: string;
53
- bottom: number;
54
- top: string;
55
- overflow: string;
56
- "min-height": string;
57
- };
58
47
  originPosition: string;
59
- }[];
48
+ } | {
49
+ type: string;
50
+ body: {
51
+ type: string;
52
+ body: {
53
+ type: string;
54
+ className: string;
55
+ inputClassName: string;
56
+ source: {
57
+ method: string;
58
+ url: string;
59
+ headers: {
60
+ Authorization: string;
61
+ };
62
+ adaptor: string;
63
+ requestAdaptor: string;
64
+ data: {
65
+ query: string;
66
+ };
67
+ messages: {};
68
+ cache: number;
69
+ };
70
+ onEvent: {
71
+ change: {
72
+ actions: {
73
+ actionType: string;
74
+ script: string;
75
+ }[];
76
+ };
77
+ };
78
+ label: string;
79
+ name: string;
80
+ multiple: boolean;
81
+ joinValues: boolean;
82
+ clearValueOnHidden: boolean;
83
+ fieldName: string;
84
+ hideRoot: boolean;
85
+ initiallyOpen: boolean;
86
+ extractValue: boolean;
87
+ onlyChildren: boolean;
88
+ treeContainerClassName: string;
89
+ showIcon: boolean;
90
+ enableNodePath: boolean;
91
+ autoCheckChildren: boolean;
92
+ searchable: boolean;
93
+ searchConfig: {
94
+ sticky: boolean;
95
+ placeholder: string;
96
+ };
97
+ unfoldedLevel: number;
98
+ originPosition: string;
99
+ }[];
100
+ className: string;
101
+ }[];
102
+ className: string;
103
+ onEvent: {
104
+ click: {
105
+ actions: {
106
+ actionType: string;
107
+ script: string;
108
+ }[];
109
+ };
110
+ };
111
+ id: string;
112
+ label?: undefined;
113
+ icon?: undefined;
114
+ align?: undefined;
115
+ } | {
116
+ type: string;
117
+ label: string;
118
+ icon: string;
119
+ className: string;
120
+ align: string;
121
+ onEvent: {
122
+ click: {
123
+ actions: {
124
+ actionType: string;
125
+ script: string;
126
+ }[];
127
+ };
128
+ };
129
+ id: string;
130
+ body?: undefined;
131
+ })[];
60
132
  export function lookupToAmisPicker(field: any, readonly: any, ctx: any): Promise<{
61
133
  type: any;
62
134
  modalTitle: string;
@@ -201,30 +273,7 @@ export function lookupToAmisIdsPicker(field: any, readonly: any, ctx: any): Prom
201
273
  defaultParams: {
202
274
  perPage: any;
203
275
  };
204
- columns: {
205
- name: any;
206
- label: any;
207
- sortable: any;
208
- type: string;
209
- level: string;
210
- actionType: string;
211
- link: string;
212
- innerClassName: {
213
- "steedos-listview-item block text-gray-500": string;
214
- "max-w-[360px]": string;
215
- };
216
- body: {
217
- type: string;
218
- body: "type";
219
- size: string;
220
- className: string;
221
- };
222
- }[] | {
223
- name: string;
224
- type: string;
225
- width: number;
226
- placeholder: string;
227
- }[];
276
+ columns: any[];
228
277
  syncLocation: boolean;
229
278
  keepItemSelectionOnPageChange: boolean;
230
279
  checkOnItemClick: boolean;
@@ -295,30 +344,7 @@ export function getIdsPickerSchema(field: any, readonly: any, ctx: any): Promise
295
344
  defaultParams: {
296
345
  perPage: any;
297
346
  };
298
- columns: {
299
- name: any;
300
- label: any;
301
- sortable: any;
302
- type: string;
303
- level: string;
304
- actionType: string;
305
- link: string;
306
- innerClassName: {
307
- "steedos-listview-item block text-gray-500": string;
308
- "max-w-[360px]": string;
309
- };
310
- body: {
311
- type: string;
312
- body: "type";
313
- size: string;
314
- className: string;
315
- };
316
- }[] | {
317
- name: string;
318
- type: string;
319
- width: number;
320
- placeholder: string;
321
- }[];
347
+ columns: any[];
322
348
  syncLocation: boolean;
323
349
  keepItemSelectionOnPageChange: boolean;
324
350
  checkOnItemClick: boolean;
@@ -7,30 +7,7 @@ export function getTableSchema(fields: any, options: any): Promise<{
7
7
  defaultParams: {
8
8
  perPage: any;
9
9
  };
10
- columns: {
11
- name: any;
12
- label: any;
13
- sortable: any;
14
- type: string;
15
- level: string;
16
- actionType: string;
17
- link: string;
18
- innerClassName: {
19
- "steedos-listview-item block text-gray-500": string;
20
- "max-w-[360px]": string;
21
- };
22
- body: {
23
- type: string;
24
- body: "type";
25
- size: string;
26
- className: string;
27
- };
28
- }[] | {
29
- name: string;
30
- type: string;
31
- width: number;
32
- placeholder: string;
33
- }[];
10
+ columns: any[];
34
11
  syncLocation: boolean;
35
12
  keepItemSelectionOnPageChange: boolean;
36
13
  checkOnItemClick: boolean;
@@ -67,6 +67,7 @@ export function getObjectListHeaderFirstLine(objectSchema: any, listViewName: an
67
67
  }[] | {
68
68
  type: string;
69
69
  icon: string;
70
+ className: string;
70
71
  onEvent: {
71
72
  click: {
72
73
  actions: {
@@ -233,7 +234,13 @@ export function getObjectListHeaderFieldsFilterBar(objectSchema: any, listViewNa
233
234
  icon?: undefined;
234
235
  level?: undefined;
235
236
  } | {
236
- type: string;
237
+ type: string; /**
238
+ * 点击记录详细界面相关表顶部标题进入的相关表页面的顶部amisSchema
239
+ * @param {*} objectSchema
240
+ * @param {*} recordId
241
+ * @param {*} relatedObjectName
242
+ * @returns amisSchema
243
+ */
237
244
  label: string;
238
245
  onEvent: {
239
246
  click: {
@@ -439,6 +446,7 @@ export function getObjectListHeader(objectSchema: any, listViewName: any, ctx: a
439
446
  }[] | {
440
447
  type: string;
441
448
  icon: string;
449
+ className: string;
442
450
  onEvent: {
443
451
  click: {
444
452
  actions: {
@@ -1,2 +1,3 @@
1
1
  export function getSvgUrl(source: any, name: any): string;
2
2
  export function getContrastColor(bgColor: any): "#ffffff" | "#000000";
3
+ export function getLookupListView(refObjectConfig: any): undefined;
@@ -17,249 +17,84 @@ export function getSchema(uiSchema: any): {
17
17
  title: string;
18
18
  body: {
19
19
  type: string;
20
+ label: string;
21
+ objectApiName: string;
22
+ recordId: string;
20
23
  mode: string;
21
- persistData: boolean;
22
- promptPageLeave: boolean;
23
- name: string;
24
- debug: boolean;
25
- title: string;
26
- submitText: string;
27
- api: {
28
- method: string;
29
- url: string;
30
- data: {
31
- objectName: string;
32
- $: string;
33
- };
34
- requestAdaptor: string;
35
- responseData: {
36
- recordId: string;
37
- };
38
- adaptor: string;
39
- headers: {
40
- Authorization: string;
41
- };
42
- dataType: string;
24
+ layout: string;
25
+ defaultData: {
26
+ object_name: string;
43
27
  };
44
- initFetch: boolean;
45
- body: {
46
- type: string;
47
- title: string;
48
- collapsable: boolean;
49
- body: ({
50
- name: string;
51
- label: string;
52
- required: boolean;
53
- type: string;
54
- joinValues: boolean;
55
- extractValue: boolean;
56
- autoComplete: {
57
- method: string;
58
- url: string;
59
- data: {
60
- orderBy: string;
61
- orderDir: string;
62
- pageNo: string;
63
- pageSize: string;
64
- query: string;
65
- $term: string;
66
- $value: string;
67
- $: string;
68
- rfield: string;
69
- };
70
- headers: {
71
- Authorization: string;
72
- };
73
- requestAdaptor: string;
28
+ fieldsExtend: {
29
+ object_name: {
30
+ amis: {
31
+ hidden: boolean;
74
32
  };
75
- className: string;
76
- labelClassName: string;
77
- clearValueOnHidden: boolean;
78
- id: string;
79
- multiple: boolean;
80
- hidden: boolean;
81
- labelField?: undefined;
82
- valueField?: undefined;
83
- modalMode?: undefined;
84
- source?: undefined;
85
- size?: undefined;
86
- pickerSchema?: undefined;
87
- accept?: undefined;
88
- useChunk?: undefined;
89
- receiver?: undefined;
90
- } | {
91
- name: string;
92
- label: string;
93
- required: boolean;
94
- type: string;
95
- labelField: string;
96
- valueField: string;
97
- modalMode: string;
98
- source: {
99
- method: string;
100
- url: string;
101
- data: {
102
- orderBy: string;
103
- orderDir: string;
104
- pageNo: string;
105
- pageSize: string;
106
- query: string;
107
- $term: string;
108
- $self: string;
109
- };
110
- headers: {
111
- Authorization: string;
112
- };
113
- requestAdaptor: string;
114
- adaptor: string;
33
+ };
34
+ };
35
+ form: {
36
+ debug: boolean;
37
+ resetAfterSubmit: boolean;
38
+ initApi: {
39
+ url: string;
40
+ sendOn: string;
41
+ responseData: {
42
+ importState: string;
115
43
  };
116
- size: string;
117
- pickerSchema: {
118
- mode: string;
119
- name: string;
120
- draggable: boolean;
121
- headerToolbar: string[];
122
- defaultParams: {
123
- perPage: number;
124
- };
125
- columns: ({
126
- name: string;
127
- type: string;
128
- width: number;
129
- placeholder: string;
130
- label?: undefined;
131
- tpl?: undefined;
132
- className?: undefined;
133
- html?: undefined;
134
- buttons?: undefined;
135
- options?: undefined;
136
- } | {
137
- name: string;
138
- label: string;
139
- type: string;
140
- tpl: string;
141
- className: string;
142
- html: any;
143
- width?: undefined;
144
- placeholder?: undefined;
145
- buttons?: undefined;
146
- options?: undefined;
44
+ };
45
+ interval: number;
46
+ stopAutoRefreshWhen: string;
47
+ initFetch: boolean;
48
+ onEvent: {
49
+ inited: {
50
+ weight: number;
51
+ actions: ({
52
+ actionType: string;
53
+ args: {
54
+ eventName: string;
55
+ };
56
+ data: {
57
+ objectName: string;
58
+ displayAs: string;
59
+ recordId: string;
60
+ };
61
+ expression: string;
147
62
  } | {
148
- name: string;
149
- label: string;
150
- type: string;
151
- buttons: {
152
- type: string;
153
- label: string;
154
- visibleOn: string;
155
- level: string;
156
- actionType: string;
63
+ actionType: string;
64
+ expression: string;
65
+ args?: undefined;
66
+ data?: undefined;
67
+ })[];
68
+ };
69
+ submitSucc: {
70
+ weight: number;
71
+ actions: {
72
+ args: {
157
73
  api: {
158
74
  url: string;
159
75
  method: string;
76
+ data: {
77
+ eventData: string;
78
+ };
79
+ dataType: string;
80
+ requestAdaptor: string;
81
+ adaptor: string;
160
82
  headers: {
161
83
  Authorization: string;
162
84
  };
163
85
  };
164
- }[];
165
- options: {
166
- html: boolean;
167
- };
168
- className: string;
169
- width?: undefined;
170
- placeholder?: undefined;
171
- tpl?: undefined;
172
- html?: undefined;
173
- })[];
174
- syncLocation: boolean;
175
- keepItemSelectionOnPageChange: boolean;
176
- checkOnItemClick: boolean;
177
- autoFillHeight: boolean;
178
- };
179
- joinValues: boolean;
180
- extractValue: boolean;
181
- className: string;
182
- labelClassName: string;
183
- clearValueOnHidden: boolean;
184
- id: string;
185
- autoComplete?: undefined;
186
- multiple?: undefined;
187
- hidden?: undefined;
188
- accept?: undefined;
189
- useChunk?: undefined;
190
- receiver?: undefined;
191
- } | {
192
- name: string;
193
- label: string;
194
- required: boolean;
195
- type: string;
196
- accept: string;
197
- className: string;
198
- labelClassName: string;
199
- clearValueOnHidden: boolean;
200
- useChunk: boolean;
201
- receiver: {
202
- method: string;
203
- url: string;
204
- data: {
205
- $: string;
206
- context: string;
207
- };
208
- adaptor: string;
209
- headers: {
210
- Authorization: string;
211
- };
212
- };
213
- id: string;
214
- joinValues?: undefined;
215
- extractValue?: undefined;
216
- autoComplete?: undefined;
217
- multiple?: undefined;
218
- hidden?: undefined;
219
- labelField?: undefined;
220
- valueField?: undefined;
221
- modalMode?: undefined;
222
- source?: undefined;
223
- size?: undefined;
224
- pickerSchema?: undefined;
225
- })[];
226
- id: string;
227
- }[];
228
- panelClassName: string;
229
- bodyClassName: string;
230
- className: string;
231
- label: string;
232
- objectApiName: string;
233
- id: string;
234
- onEvent: {
235
- submitSucc: {
236
- weight: number;
237
- actions: {
238
- args: {
239
- api: {
240
- url: string;
241
- method: string;
242
- data: {
243
- eventData: string;
244
- };
245
- dataType: string;
246
- requestAdaptor: string;
247
- adaptor: string;
248
- headers: {
249
- Authorization: string;
86
+ messages: {
87
+ success: string;
88
+ failed: string;
250
89
  };
251
90
  };
252
- messages: {
253
- success: string;
254
- failed: string;
255
- };
256
- };
257
- actionType: string;
258
- expression: string;
259
- }[];
91
+ actionType: string;
92
+ expression: string;
93
+ }[];
94
+ };
260
95
  };
96
+ closeDialogOnSubmit: boolean;
261
97
  };
262
- closeDialogOnSubmit: boolean;
263
98
  }[];
264
99
  id: string;
265
100
  closeOnEsc: boolean;