@steedos-widgets/amis-lib 1.3.15 → 1.3.17-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.
- package/dist/cjs/tsconfig.tsbuildinfo +1 -1
- package/dist/index.cjs.js +9758 -9578
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.esm.js +9755 -9577
- package/dist/index.esm.js.map +1 -1
- package/dist/index.umd.js +463 -446
- package/dist/index.umd.js.map +1 -1
- package/dist/types/lib/converter/amis/fields/index.d.ts +2 -1
- package/dist/types/lib/converter/amis/fields/lookup.d.ts +68 -56
- package/dist/types/lib/converter/amis/toolbar.d.ts +8 -1
- package/dist/types/lib/input_table.d.ts +3 -1
- package/package.json +2 -2
|
@@ -6,9 +6,10 @@ export function getBaseFields(readonly: any): {
|
|
|
6
6
|
className: string;
|
|
7
7
|
tpl: string;
|
|
8
8
|
}[];
|
|
9
|
-
export function getAmisFieldType(sField: any): "url" | "
|
|
9
|
+
export function getAmisFieldType(sField: any): "url" | "password" | "select" | "date" | "datetime" | "number" | "image" | "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
|
+
export function getTabledFieldSubFields(mainField: any, fields: any): any;
|
|
12
13
|
/**
|
|
13
14
|
* TODO 处理权限
|
|
14
15
|
* @param {*} object steedos object
|
|
@@ -1,3 +1,9 @@
|
|
|
1
|
+
export function getReferenceToSync(field: any): {
|
|
2
|
+
objectName: any;
|
|
3
|
+
valueField: any;
|
|
4
|
+
labelField: any;
|
|
5
|
+
NAME_FIELD_KEY: any;
|
|
6
|
+
};
|
|
1
7
|
export function getLookupSapceUserTreeSchema(isMobile: any): ({
|
|
2
8
|
type: string;
|
|
3
9
|
className: string;
|
|
@@ -212,34 +218,22 @@ export function lookupToAmisIdsPicker(field: any, readonly: any, ctx: any): Prom
|
|
|
212
218
|
size: string;
|
|
213
219
|
pickerSchema: {
|
|
214
220
|
mode: string;
|
|
221
|
+
perPageAvailable: number[];
|
|
215
222
|
name: string;
|
|
223
|
+
headerToolbarClassName: string;
|
|
224
|
+
className: string;
|
|
216
225
|
draggable: boolean;
|
|
217
|
-
headerToolbar: string[];
|
|
218
226
|
defaultParams: {
|
|
219
227
|
perPage: any;
|
|
220
228
|
};
|
|
229
|
+
card: any;
|
|
221
230
|
syncLocation: boolean;
|
|
222
231
|
keepItemSelectionOnPageChange: boolean;
|
|
223
232
|
checkOnItemClick: boolean;
|
|
224
233
|
labelTpl: string;
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
label: any;
|
|
229
|
-
sortable: any;
|
|
230
|
-
width: any;
|
|
231
|
-
type: string;
|
|
232
|
-
tpl: string;
|
|
233
|
-
toggled: any;
|
|
234
|
-
}[];
|
|
235
|
-
actions: {
|
|
236
|
-
icon: string;
|
|
237
|
-
label: string;
|
|
238
|
-
type: string;
|
|
239
|
-
actionType: string;
|
|
240
|
-
link: string;
|
|
241
|
-
}[];
|
|
242
|
-
};
|
|
234
|
+
autoFillHeight: boolean;
|
|
235
|
+
columnsTogglable: boolean;
|
|
236
|
+
columns?: undefined;
|
|
243
237
|
} | {
|
|
244
238
|
mode: string;
|
|
245
239
|
perPageAvailable: number[];
|
|
@@ -250,32 +244,44 @@ export function lookupToAmisIdsPicker(field: any, readonly: any, ctx: any): Prom
|
|
|
250
244
|
defaultParams: {
|
|
251
245
|
perPage: any;
|
|
252
246
|
};
|
|
253
|
-
|
|
247
|
+
columns: any[];
|
|
254
248
|
syncLocation: boolean;
|
|
255
249
|
keepItemSelectionOnPageChange: boolean;
|
|
256
250
|
checkOnItemClick: boolean;
|
|
257
251
|
labelTpl: string;
|
|
258
252
|
autoFillHeight: boolean;
|
|
259
253
|
columnsTogglable: boolean;
|
|
260
|
-
|
|
254
|
+
card?: undefined;
|
|
261
255
|
} | {
|
|
262
256
|
mode: string;
|
|
263
|
-
perPageAvailable: number[];
|
|
264
257
|
name: string;
|
|
265
|
-
headerToolbarClassName: string;
|
|
266
|
-
className: string;
|
|
267
258
|
draggable: boolean;
|
|
259
|
+
headerToolbar: string[];
|
|
268
260
|
defaultParams: {
|
|
269
261
|
perPage: any;
|
|
270
262
|
};
|
|
271
|
-
columns: any[];
|
|
272
263
|
syncLocation: boolean;
|
|
273
264
|
keepItemSelectionOnPageChange: boolean;
|
|
274
265
|
checkOnItemClick: boolean;
|
|
275
266
|
labelTpl: string;
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
267
|
+
listItem: {
|
|
268
|
+
body: {
|
|
269
|
+
name: any;
|
|
270
|
+
label: any;
|
|
271
|
+
sortable: any;
|
|
272
|
+
width: any;
|
|
273
|
+
type: string;
|
|
274
|
+
tpl: string;
|
|
275
|
+
toggled: any;
|
|
276
|
+
}[];
|
|
277
|
+
actions: {
|
|
278
|
+
icon: string;
|
|
279
|
+
label: string;
|
|
280
|
+
type: string;
|
|
281
|
+
actionType: string;
|
|
282
|
+
link: string;
|
|
283
|
+
}[];
|
|
284
|
+
};
|
|
279
285
|
};
|
|
280
286
|
joinValues: boolean;
|
|
281
287
|
extractValue: boolean;
|
|
@@ -303,34 +309,22 @@ export function getIdsPickerSchema(field: any, readonly: any, ctx: any): Promise
|
|
|
303
309
|
size: string;
|
|
304
310
|
pickerSchema: {
|
|
305
311
|
mode: string;
|
|
312
|
+
perPageAvailable: number[];
|
|
306
313
|
name: string;
|
|
314
|
+
headerToolbarClassName: string;
|
|
315
|
+
className: string;
|
|
307
316
|
draggable: boolean;
|
|
308
|
-
headerToolbar: string[];
|
|
309
317
|
defaultParams: {
|
|
310
318
|
perPage: any;
|
|
311
319
|
};
|
|
320
|
+
card: any;
|
|
312
321
|
syncLocation: boolean;
|
|
313
322
|
keepItemSelectionOnPageChange: boolean;
|
|
314
323
|
checkOnItemClick: boolean;
|
|
315
324
|
labelTpl: string;
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
label: any;
|
|
320
|
-
sortable: any;
|
|
321
|
-
width: any;
|
|
322
|
-
type: string;
|
|
323
|
-
tpl: string;
|
|
324
|
-
toggled: any;
|
|
325
|
-
}[];
|
|
326
|
-
actions: {
|
|
327
|
-
icon: string;
|
|
328
|
-
label: string;
|
|
329
|
-
type: string;
|
|
330
|
-
actionType: string;
|
|
331
|
-
link: string;
|
|
332
|
-
}[];
|
|
333
|
-
};
|
|
325
|
+
autoFillHeight: boolean;
|
|
326
|
+
columnsTogglable: boolean;
|
|
327
|
+
columns?: undefined;
|
|
334
328
|
} | {
|
|
335
329
|
mode: string;
|
|
336
330
|
perPageAvailable: number[];
|
|
@@ -341,36 +335,54 @@ export function getIdsPickerSchema(field: any, readonly: any, ctx: any): Promise
|
|
|
341
335
|
defaultParams: {
|
|
342
336
|
perPage: any;
|
|
343
337
|
};
|
|
344
|
-
|
|
338
|
+
columns: any[];
|
|
345
339
|
syncLocation: boolean;
|
|
346
340
|
keepItemSelectionOnPageChange: boolean;
|
|
347
341
|
checkOnItemClick: boolean;
|
|
348
342
|
labelTpl: string;
|
|
349
343
|
autoFillHeight: boolean;
|
|
350
344
|
columnsTogglable: boolean;
|
|
351
|
-
|
|
345
|
+
card?: undefined;
|
|
352
346
|
} | {
|
|
353
347
|
mode: string;
|
|
354
|
-
perPageAvailable: number[];
|
|
355
348
|
name: string;
|
|
356
|
-
headerToolbarClassName: string;
|
|
357
|
-
className: string;
|
|
358
349
|
draggable: boolean;
|
|
350
|
+
headerToolbar: string[];
|
|
359
351
|
defaultParams: {
|
|
360
352
|
perPage: any;
|
|
361
353
|
};
|
|
362
|
-
columns: any[];
|
|
363
354
|
syncLocation: boolean;
|
|
364
355
|
keepItemSelectionOnPageChange: boolean;
|
|
365
356
|
checkOnItemClick: boolean;
|
|
366
357
|
labelTpl: string;
|
|
367
|
-
|
|
368
|
-
|
|
369
|
-
|
|
358
|
+
listItem: {
|
|
359
|
+
body: {
|
|
360
|
+
name: any;
|
|
361
|
+
label: any;
|
|
362
|
+
sortable: any;
|
|
363
|
+
width: any;
|
|
364
|
+
type: string;
|
|
365
|
+
tpl: string;
|
|
366
|
+
toggled: any;
|
|
367
|
+
}[];
|
|
368
|
+
actions: {
|
|
369
|
+
icon: string;
|
|
370
|
+
label: string;
|
|
371
|
+
type: string;
|
|
372
|
+
actionType: string;
|
|
373
|
+
link: string;
|
|
374
|
+
}[];
|
|
375
|
+
};
|
|
370
376
|
};
|
|
371
377
|
joinValues: boolean;
|
|
372
378
|
extractValue: boolean;
|
|
373
379
|
}>;
|
|
380
|
+
export function getReferenceToFieldSchema(field: any, refObjectConfig: any): {
|
|
381
|
+
objectName: any;
|
|
382
|
+
valueField: any;
|
|
383
|
+
labelField: any;
|
|
384
|
+
NAME_FIELD_KEY: any;
|
|
385
|
+
};
|
|
374
386
|
export function getReferenceTo(field: any): Promise<{
|
|
375
387
|
objectName: any;
|
|
376
388
|
valueField: any;
|
|
@@ -1,7 +1,8 @@
|
|
|
1
|
-
export function getObjectHeaderToolbar(mainObject: any, fields: any, formFactor: any, { showDisplayAs, hiddenCount, headerToolbarItems, filterVisible, isLookup, keywordsSearchBoxName }?: {
|
|
1
|
+
export function getObjectHeaderToolbar(mainObject: any, fields: any, formFactor: any, { showDisplayAs, hiddenCount, headerToolbarItems, crudId, filterVisible, isLookup, keywordsSearchBoxName }?: {
|
|
2
2
|
showDisplayAs?: boolean;
|
|
3
3
|
hiddenCount?: boolean;
|
|
4
4
|
headerToolbarItems: any;
|
|
5
|
+
crudId: any;
|
|
5
6
|
filterVisible?: boolean;
|
|
6
7
|
isLookup?: boolean;
|
|
7
8
|
keywordsSearchBoxName: any;
|
|
@@ -226,5 +227,11 @@ export function getObjectFilter(objectSchema: any, fields: any, options: any): P
|
|
|
226
227
|
script: string;
|
|
227
228
|
}[];
|
|
228
229
|
};
|
|
230
|
+
change: {
|
|
231
|
+
actions: {
|
|
232
|
+
actionType: string;
|
|
233
|
+
script: string;
|
|
234
|
+
}[];
|
|
235
|
+
};
|
|
229
236
|
};
|
|
230
237
|
}>;
|
|
@@ -9,9 +9,11 @@ export function getAmisInputTableSchema(props: any, readonly: any): Promise<{
|
|
|
9
9
|
showIndex: any;
|
|
10
10
|
perPage: any;
|
|
11
11
|
id: any;
|
|
12
|
-
columns: any
|
|
12
|
+
columns: any;
|
|
13
13
|
strictMode: boolean;
|
|
14
14
|
showTableAddBtn: boolean;
|
|
15
15
|
showFooterAddBtn: boolean;
|
|
16
|
+
className: any;
|
|
16
17
|
}[];
|
|
18
|
+
className: any;
|
|
17
19
|
}>;
|
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
|
+
"version": "1.3.17-beta.1",
|
|
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": "570efdcea1034e79583076cf197d5e963deca77d"
|
|
65
65
|
}
|