@steedos-widgets/amis-lib 6.3.13-beta.3 → 6.10.1-beta.11
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 +114 -252
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.esm.js +114 -252
- package/dist/index.esm.js.map +1 -1
- package/dist/index.umd.js +73 -113
- package/dist/index.umd.js.map +1 -1
- package/dist/types/lib/converter/amis/fields/index.d.ts +1 -1
- package/dist/types/lib/converter/amis/fields_filter.d.ts +10 -1
- package/dist/types/lib/converter/amis/header.d.ts +10 -1
- package/dist/types/lib/converter/amis/toolbar.d.ts +10 -1
- package/dist/types/lib/converter/amis/toolbars/setting_listview/columns.d.ts +1 -4
- package/dist/types/lib/converter/amis/toolbars/setting_listview/copy.d.ts +7 -2
- package/dist/types/lib/converter/amis/toolbars/setting_listview/delete.d.ts +7 -0
- package/dist/types/lib/converter/amis/toolbars/setting_listview/filters.d.ts +1 -4
- package/dist/types/lib/converter/amis/toolbars/setting_listview/new.d.ts +7 -2
- package/dist/types/lib/converter/amis/toolbars/setting_listview/rename.d.ts +7 -2
- package/dist/types/lib/converter/amis/toolbars/setting_listview/sort.d.ts +1 -4
- package/dist/types/lib/converter/amis/toolbars/setting_listview.d.ts +31 -18
- package/dist/types/lib/objects.d.ts +2 -2
- package/dist/types/schema/standard_delete.amis.d.ts +0 -13
- package/dist/types/standard/button.d.ts +0 -13
- package/package.json +2 -2
|
@@ -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" | "
|
|
9
|
+
export function getAmisFieldType(sField: any): "url" | "image" | "password" | "select" | "date" | "datetime" | "number" | "text" | "email" | "checkbox" | "html" | "textarea" | "table" | "picker" | "markdown" | "steedos-input-table";
|
|
10
10
|
export function getObjectFieldSubFields(mainField: any, fields: any): any;
|
|
11
11
|
export function getGridFieldSubFields(mainField: any, fields: any): any;
|
|
12
12
|
export function getTabledFieldSubFields(mainField: any, fields: any): any;
|
|
@@ -180,8 +180,17 @@ export function getObjectFieldsFilterBarSchema(objectSchema: any, ctx: any): Pro
|
|
|
180
180
|
componentId?: undefined;
|
|
181
181
|
args?: undefined;
|
|
182
182
|
} | {
|
|
183
|
+
actionType: string;
|
|
183
184
|
componentId: string;
|
|
184
|
-
args: {
|
|
185
|
+
args: {
|
|
186
|
+
__from_fields_filter_settings_confirm: boolean;
|
|
187
|
+
};
|
|
188
|
+
script?: undefined;
|
|
189
|
+
} | {
|
|
190
|
+
componentId: string;
|
|
191
|
+
args: {
|
|
192
|
+
__from_fields_filter_settings_confirm?: undefined;
|
|
193
|
+
};
|
|
185
194
|
actionType: string;
|
|
186
195
|
script?: undefined;
|
|
187
196
|
})[];
|
|
@@ -375,8 +375,17 @@ export function getObjectListHeaderFieldsFilterBar(objectSchema: any, listViewNa
|
|
|
375
375
|
componentId?: undefined;
|
|
376
376
|
args?: undefined;
|
|
377
377
|
} | {
|
|
378
|
+
actionType: string;
|
|
378
379
|
componentId: string;
|
|
379
|
-
args: {
|
|
380
|
+
args: {
|
|
381
|
+
__from_fields_filter_settings_confirm: boolean;
|
|
382
|
+
};
|
|
383
|
+
script?: undefined;
|
|
384
|
+
} | {
|
|
385
|
+
componentId: string;
|
|
386
|
+
args: {
|
|
387
|
+
__from_fields_filter_settings_confirm?: undefined;
|
|
388
|
+
};
|
|
380
389
|
actionType: string;
|
|
381
390
|
script?: undefined;
|
|
382
391
|
})[];
|
|
@@ -174,8 +174,17 @@ export function getObjectFilter(objectSchema: any, fields: any, options: any): P
|
|
|
174
174
|
componentId?: undefined;
|
|
175
175
|
args?: undefined;
|
|
176
176
|
} | {
|
|
177
|
+
actionType: string;
|
|
177
178
|
componentId: string;
|
|
178
|
-
args: {
|
|
179
|
+
args: {
|
|
180
|
+
__from_fields_filter_settings_confirm: boolean;
|
|
181
|
+
};
|
|
182
|
+
script?: undefined;
|
|
183
|
+
} | {
|
|
184
|
+
componentId: string;
|
|
185
|
+
args: {
|
|
186
|
+
__from_fields_filter_settings_confirm?: undefined;
|
|
187
|
+
};
|
|
179
188
|
actionType: string;
|
|
180
189
|
script?: undefined;
|
|
181
190
|
})[];
|
|
@@ -116,13 +116,18 @@ export function getCopyListviewButtonSchema(): {
|
|
|
116
116
|
onEvent: {
|
|
117
117
|
submitSucc: {
|
|
118
118
|
weight: number;
|
|
119
|
-
actions: {
|
|
119
|
+
actions: ({
|
|
120
120
|
args: {
|
|
121
121
|
url: string;
|
|
122
122
|
blank: boolean;
|
|
123
123
|
};
|
|
124
124
|
actionType: string;
|
|
125
|
-
|
|
125
|
+
script?: undefined;
|
|
126
|
+
} | {
|
|
127
|
+
actionType: string;
|
|
128
|
+
script: string;
|
|
129
|
+
args?: undefined;
|
|
130
|
+
})[];
|
|
126
131
|
};
|
|
127
132
|
};
|
|
128
133
|
}[];
|
|
@@ -29,6 +29,7 @@ export function getDeleteListviewButtonSchema(): {
|
|
|
29
29
|
blank?: undefined;
|
|
30
30
|
};
|
|
31
31
|
expression?: undefined;
|
|
32
|
+
script?: undefined;
|
|
32
33
|
} | {
|
|
33
34
|
actionType: string;
|
|
34
35
|
args: {
|
|
@@ -37,6 +38,12 @@ export function getDeleteListviewButtonSchema(): {
|
|
|
37
38
|
api?: undefined;
|
|
38
39
|
};
|
|
39
40
|
expression: string;
|
|
41
|
+
script?: undefined;
|
|
42
|
+
} | {
|
|
43
|
+
actionType: string;
|
|
44
|
+
script: string;
|
|
45
|
+
args?: undefined;
|
|
46
|
+
expression?: undefined;
|
|
40
47
|
})[];
|
|
41
48
|
};
|
|
42
49
|
};
|
|
@@ -149,13 +149,18 @@ export function getNewListviewButtonSchema(): {
|
|
|
149
149
|
onEvent: {
|
|
150
150
|
submitSucc: {
|
|
151
151
|
weight: number;
|
|
152
|
-
actions: {
|
|
152
|
+
actions: ({
|
|
153
153
|
args: {
|
|
154
154
|
url: string;
|
|
155
155
|
blank: boolean;
|
|
156
156
|
};
|
|
157
157
|
actionType: string;
|
|
158
|
-
|
|
158
|
+
script?: undefined;
|
|
159
|
+
} | {
|
|
160
|
+
actionType: string;
|
|
161
|
+
script: string;
|
|
162
|
+
args?: undefined;
|
|
163
|
+
})[];
|
|
159
164
|
};
|
|
160
165
|
};
|
|
161
166
|
messages: {
|
|
@@ -27,13 +27,18 @@ export function getRenameListviewButtonSchema(): {
|
|
|
27
27
|
onEvent: {
|
|
28
28
|
submitSucc: {
|
|
29
29
|
weight: number;
|
|
30
|
-
actions: {
|
|
30
|
+
actions: ({
|
|
31
31
|
args: {
|
|
32
32
|
url: string;
|
|
33
33
|
blank: boolean;
|
|
34
34
|
};
|
|
35
35
|
actionType: string;
|
|
36
|
-
|
|
36
|
+
script?: undefined;
|
|
37
|
+
} | {
|
|
38
|
+
actionType: string;
|
|
39
|
+
script: string;
|
|
40
|
+
args?: undefined;
|
|
41
|
+
})[];
|
|
37
42
|
};
|
|
38
43
|
};
|
|
39
44
|
}[];
|
|
@@ -158,13 +158,18 @@ export function getSettingListviewToolbarButtonSchema(): {
|
|
|
158
158
|
onEvent: {
|
|
159
159
|
submitSucc: {
|
|
160
160
|
weight: number;
|
|
161
|
-
actions: {
|
|
161
|
+
actions: ({
|
|
162
162
|
args: {
|
|
163
163
|
url: string;
|
|
164
164
|
blank: boolean;
|
|
165
165
|
};
|
|
166
166
|
actionType: string;
|
|
167
|
-
|
|
167
|
+
script?: undefined;
|
|
168
|
+
} | {
|
|
169
|
+
actionType: string;
|
|
170
|
+
script: string;
|
|
171
|
+
args?: undefined;
|
|
172
|
+
})[];
|
|
168
173
|
};
|
|
169
174
|
};
|
|
170
175
|
messages: {
|
|
@@ -301,13 +306,18 @@ export function getSettingListviewToolbarButtonSchema(): {
|
|
|
301
306
|
onEvent: {
|
|
302
307
|
submitSucc: {
|
|
303
308
|
weight: number;
|
|
304
|
-
actions: {
|
|
309
|
+
actions: ({
|
|
305
310
|
args: {
|
|
306
311
|
url: string;
|
|
307
312
|
blank: boolean;
|
|
308
313
|
};
|
|
309
314
|
actionType: string;
|
|
310
|
-
|
|
315
|
+
script?: undefined;
|
|
316
|
+
} | {
|
|
317
|
+
actionType: string;
|
|
318
|
+
script: string;
|
|
319
|
+
args?: undefined;
|
|
320
|
+
})[];
|
|
311
321
|
};
|
|
312
322
|
};
|
|
313
323
|
}[];
|
|
@@ -351,13 +361,18 @@ export function getSettingListviewToolbarButtonSchema(): {
|
|
|
351
361
|
onEvent: {
|
|
352
362
|
submitSucc: {
|
|
353
363
|
weight: number;
|
|
354
|
-
actions: {
|
|
364
|
+
actions: ({
|
|
355
365
|
args: {
|
|
356
366
|
url: string;
|
|
357
367
|
blank: boolean;
|
|
358
368
|
};
|
|
359
369
|
actionType: string;
|
|
360
|
-
|
|
370
|
+
script?: undefined;
|
|
371
|
+
} | {
|
|
372
|
+
actionType: string;
|
|
373
|
+
script: string;
|
|
374
|
+
args?: undefined;
|
|
375
|
+
})[];
|
|
361
376
|
};
|
|
362
377
|
};
|
|
363
378
|
}[];
|
|
@@ -468,11 +483,8 @@ export function getSettingListviewToolbarButtonSchema(): {
|
|
|
468
483
|
submitSucc: {
|
|
469
484
|
weight: number;
|
|
470
485
|
actions: {
|
|
471
|
-
args: {
|
|
472
|
-
url: string;
|
|
473
|
-
blank: boolean;
|
|
474
|
-
};
|
|
475
486
|
actionType: string;
|
|
487
|
+
script: string;
|
|
476
488
|
}[];
|
|
477
489
|
};
|
|
478
490
|
};
|
|
@@ -552,11 +564,8 @@ export function getSettingListviewToolbarButtonSchema(): {
|
|
|
552
564
|
submitSucc: {
|
|
553
565
|
weight: number;
|
|
554
566
|
actions: {
|
|
555
|
-
args: {
|
|
556
|
-
url: string;
|
|
557
|
-
blank: boolean;
|
|
558
|
-
};
|
|
559
567
|
actionType: string;
|
|
568
|
+
script: string;
|
|
560
569
|
}[];
|
|
561
570
|
};
|
|
562
571
|
};
|
|
@@ -602,11 +611,8 @@ export function getSettingListviewToolbarButtonSchema(): {
|
|
|
602
611
|
submitSucc: {
|
|
603
612
|
weight: number;
|
|
604
613
|
actions: {
|
|
605
|
-
args: {
|
|
606
|
-
url: string;
|
|
607
|
-
blank: boolean;
|
|
608
|
-
};
|
|
609
614
|
actionType: string;
|
|
615
|
+
script: string;
|
|
610
616
|
}[];
|
|
611
617
|
};
|
|
612
618
|
};
|
|
@@ -672,6 +678,7 @@ export function getSettingListviewToolbarButtonSchema(): {
|
|
|
672
678
|
blank?: undefined;
|
|
673
679
|
};
|
|
674
680
|
expression?: undefined;
|
|
681
|
+
script?: undefined;
|
|
675
682
|
} | {
|
|
676
683
|
actionType: string;
|
|
677
684
|
args: {
|
|
@@ -680,6 +687,12 @@ export function getSettingListviewToolbarButtonSchema(): {
|
|
|
680
687
|
api?: undefined;
|
|
681
688
|
};
|
|
682
689
|
expression: string;
|
|
690
|
+
script?: undefined;
|
|
691
|
+
} | {
|
|
692
|
+
actionType: string;
|
|
693
|
+
script: string;
|
|
694
|
+
args?: undefined;
|
|
695
|
+
expression?: undefined;
|
|
683
696
|
})[];
|
|
684
697
|
};
|
|
685
698
|
};
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
export function getListViewColumns(listView: any, formFactor: any): any;
|
|
2
2
|
export function getListViewSort(listView: any): string;
|
|
3
3
|
export function getListViewFilter(listView: any): any;
|
|
4
|
-
export function getUISchema(objectName: any, force: any):
|
|
5
|
-
export function getUISchemaSync(objectName: any, force: any): any;
|
|
4
|
+
export function getUISchema(objectName: any, force: any, retry?: boolean): any;
|
|
5
|
+
export function getUISchemaSync(objectName: any, force: any, retry?: boolean): any;
|
|
6
6
|
export function getField(objectName: any, fieldName: any): Promise<any>;
|
|
7
7
|
export function getFormSchema(objectName: any, ctx: any): Promise<{
|
|
8
8
|
uiSchema: any;
|
|
@@ -54,19 +54,6 @@ export function getSchema(uiSchema: any): {
|
|
|
54
54
|
_inDrawer?: undefined;
|
|
55
55
|
};
|
|
56
56
|
expression: string;
|
|
57
|
-
} | {
|
|
58
|
-
actionType: string;
|
|
59
|
-
args: {
|
|
60
|
-
eventName: string;
|
|
61
|
-
api?: undefined;
|
|
62
|
-
};
|
|
63
|
-
data: {
|
|
64
|
-
objectName: string;
|
|
65
|
-
__deletedRecord?: undefined;
|
|
66
|
-
_inDrawer?: undefined;
|
|
67
|
-
_isRelated?: undefined;
|
|
68
|
-
};
|
|
69
|
-
expression: string;
|
|
70
57
|
})[];
|
|
71
58
|
};
|
|
72
59
|
};
|
|
@@ -231,19 +231,6 @@ export namespace StandardButtons {
|
|
|
231
231
|
_inDrawer?: undefined;
|
|
232
232
|
};
|
|
233
233
|
expression: string;
|
|
234
|
-
} | {
|
|
235
|
-
actionType: string;
|
|
236
|
-
args: {
|
|
237
|
-
eventName: string;
|
|
238
|
-
api?: undefined;
|
|
239
|
-
};
|
|
240
|
-
data: {
|
|
241
|
-
objectName: string;
|
|
242
|
-
__deletedRecord?: undefined;
|
|
243
|
-
_inDrawer?: undefined;
|
|
244
|
-
_isRelated?: undefined;
|
|
245
|
-
};
|
|
246
|
-
expression: string;
|
|
247
234
|
})[];
|
|
248
235
|
};
|
|
249
236
|
};
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@steedos-widgets/amis-lib",
|
|
3
3
|
"private": false,
|
|
4
|
-
"version": "6.
|
|
4
|
+
"version": "6.10.1-beta.11",
|
|
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": "
|
|
64
|
+
"gitHead": "42d7f908186583e07958dc8140fc0b69ba422f1f"
|
|
65
65
|
}
|