@steedos-widgets/amis-lib 1.3.0-beta.12 → 1.3.0-beta.13
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/cjs/tsconfig.tsbuildinfo +1 -1
- package/dist/index.cjs.js +203 -300
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.esm.js +203 -300
- package/dist/index.esm.js.map +1 -1
- package/dist/index.umd.js +22 -20
- package/dist/index.umd.js.map +1 -1
- package/dist/types/lib/converter/amis/fields/editor.d.ts +19 -1
- package/dist/types/lib/converter/amis/fields/index.d.ts +1 -1
- package/dist/types/lib/converter/amis/fields/lookup.d.ts +87 -61
- package/dist/types/lib/converter/amis/fields/table.d.ts +1 -24
- package/dist/types/schema/standard_import_data.amis.d.ts +62 -227
- package/dist/types/standard/button.d.ts +62 -227
- package/package.json +2 -2
|
@@ -43,6 +43,12 @@ export function getHtmlFieldSchema(field: any, readonly: any, ctx: any): {
|
|
|
43
43
|
receiver: string;
|
|
44
44
|
name: any;
|
|
45
45
|
options: {
|
|
46
|
+
menu: {
|
|
47
|
+
insert: {
|
|
48
|
+
title: string;
|
|
49
|
+
items: string;
|
|
50
|
+
};
|
|
51
|
+
};
|
|
46
52
|
plugins: string[];
|
|
47
53
|
statusbar: boolean;
|
|
48
54
|
readonly: boolean;
|
|
@@ -52,6 +58,18 @@ export function getHtmlFieldSchema(field: any, readonly: any, ctx: any): {
|
|
|
52
58
|
} | {
|
|
53
59
|
type: string;
|
|
54
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
|
+
};
|
|
55
74
|
name: any;
|
|
56
|
-
options?: undefined;
|
|
57
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" | "
|
|
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;
|
|
@@ -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
|
-
|
|
22
|
-
|
|
23
|
-
|
|
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
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
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
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
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
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
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
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
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
|
-
|
|
166
|
-
|
|
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
|
-
|
|
253
|
-
|
|
254
|
-
|
|
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;
|