@steedos-widgets/amis-lib 1.0.18 → 1.0.19
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 +22 -9
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.esm.js +22 -9
- package/dist/index.esm.js.map +1 -1
- package/dist/index.umd.js +40 -27
- 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/lookup.d.ts +1 -0
- package/dist/types/lib/converter/amis/fields/table.d.ts +1 -0
- package/dist/types/lib/converter/amis/header.d.ts +39 -43
- package/dist/types/lib/objects.d.ts +40 -53
- package/dist/types/schema/standard_import_data.amis.d.ts +1 -1
- package/dist/types/standard/button.d.ts +1 -1
- 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" | "date" | "datetime" | "number" | "select" | "image" | "password" | "text" | "textarea" | "picker" | "table" | "
|
|
9
|
+
export function getAmisFieldType(sField: any): "url" | "date" | "datetime" | "number" | "select" | "image" | "password" | "text" | "textarea" | "picker" | "table" | "email" | "html" | "markdown" | "checkbox";
|
|
10
10
|
export function getObjectFieldSubFields(mainField: any, fields: any): any;
|
|
11
11
|
export function getGridFieldSubFields(mainField: any, fields: any): any;
|
|
12
12
|
/**
|
|
@@ -410,57 +410,53 @@ export function getObjectRecordDetailHeader(objectSchema: any, recordId: any, op
|
|
|
410
410
|
type: string;
|
|
411
411
|
body: {
|
|
412
412
|
type: string;
|
|
413
|
-
|
|
414
|
-
|
|
415
|
-
|
|
416
|
-
|
|
417
|
-
|
|
418
|
-
|
|
419
|
-
columns: ({
|
|
420
|
-
body: {
|
|
421
|
-
type: string;
|
|
422
|
-
className: string;
|
|
423
|
-
tpl: string;
|
|
424
|
-
};
|
|
425
|
-
md: string;
|
|
413
|
+
columns: ({
|
|
414
|
+
body: {
|
|
415
|
+
type: string;
|
|
416
|
+
columns: ({
|
|
417
|
+
body: {
|
|
418
|
+
type: string;
|
|
426
419
|
className: string;
|
|
427
|
-
|
|
428
|
-
}
|
|
429
|
-
|
|
430
|
-
type: string;
|
|
431
|
-
tpl: string;
|
|
432
|
-
inline: boolean;
|
|
433
|
-
wrapperComponent: string;
|
|
434
|
-
className: string;
|
|
435
|
-
}[];
|
|
436
|
-
columnClassName: string;
|
|
437
|
-
md?: undefined;
|
|
438
|
-
className?: undefined;
|
|
439
|
-
})[];
|
|
420
|
+
tpl: string;
|
|
421
|
+
};
|
|
422
|
+
md: string;
|
|
440
423
|
className: string;
|
|
441
|
-
|
|
442
|
-
|
|
443
|
-
|
|
444
|
-
} | {
|
|
445
|
-
body: {
|
|
446
|
-
type: string;
|
|
447
|
-
items: {
|
|
424
|
+
columnClassName: string;
|
|
425
|
+
} | {
|
|
426
|
+
body: {
|
|
448
427
|
type: string;
|
|
449
|
-
|
|
450
|
-
|
|
451
|
-
|
|
428
|
+
tpl: string;
|
|
429
|
+
inline: boolean;
|
|
430
|
+
wrapperComponent: string;
|
|
452
431
|
className: string;
|
|
453
432
|
}[];
|
|
454
|
-
|
|
455
|
-
|
|
456
|
-
|
|
457
|
-
|
|
458
|
-
|
|
459
|
-
|
|
460
|
-
|
|
433
|
+
columnClassName: string;
|
|
434
|
+
md?: undefined;
|
|
435
|
+
className?: undefined;
|
|
436
|
+
})[];
|
|
437
|
+
className: string;
|
|
438
|
+
}[];
|
|
439
|
+
md: string;
|
|
440
|
+
hiddenOn?: undefined;
|
|
441
|
+
} | {
|
|
442
|
+
body: {
|
|
443
|
+
type: string;
|
|
444
|
+
items: {
|
|
445
|
+
type: string;
|
|
446
|
+
name: any;
|
|
447
|
+
objectName: any;
|
|
448
|
+
visibleOn: any;
|
|
449
|
+
className: string;
|
|
450
|
+
}[];
|
|
451
|
+
};
|
|
452
|
+
md: string;
|
|
453
|
+
hiddenOn: string;
|
|
454
|
+
})[];
|
|
455
|
+
className: string;
|
|
461
456
|
}[];
|
|
462
457
|
messages: {};
|
|
463
458
|
}[];
|
|
459
|
+
className: string;
|
|
464
460
|
}>;
|
|
465
461
|
/**
|
|
466
462
|
* 记录详细界面中相关表顶部头amisSchema
|
|
@@ -260,16 +260,7 @@ export function getCalendarSchema(appName: any, objectName: any, calendarOptions
|
|
|
260
260
|
objectName: string;
|
|
261
261
|
$: {};
|
|
262
262
|
$self: string;
|
|
263
|
-
};
|
|
264
|
-
* localListViewProps规范来自crud请求api中api.data.$self参数值的。
|
|
265
|
-
* 比如:{"perPage":20,"page":1,"__searchable__name":"7","__searchable__between__n1__c":[null,null],"filter":[["name","contains","a"]]}
|
|
266
|
-
* __searchable__...:顶部放大镜搜索条件
|
|
267
|
-
* filter:右侧过滤器
|
|
268
|
-
* perPage:每页条数
|
|
269
|
-
* page:当前页码
|
|
270
|
-
* orderBy:排序字段
|
|
271
|
-
* orderDir:排序方向
|
|
272
|
-
*/
|
|
263
|
+
};
|
|
273
264
|
requestAdaptor: string;
|
|
274
265
|
adaptor: string;
|
|
275
266
|
headers: {
|
|
@@ -324,57 +315,53 @@ export function getRecordDetailHeaderSchema(objectName: any, recordId: any, opti
|
|
|
324
315
|
type: string;
|
|
325
316
|
body: {
|
|
326
317
|
type: string;
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
columns: ({
|
|
334
|
-
body: {
|
|
335
|
-
type: string;
|
|
336
|
-
className: string;
|
|
337
|
-
tpl: string;
|
|
338
|
-
};
|
|
339
|
-
md: string;
|
|
318
|
+
columns: ({
|
|
319
|
+
body: {
|
|
320
|
+
type: string;
|
|
321
|
+
columns: ({
|
|
322
|
+
body: {
|
|
323
|
+
type: string;
|
|
340
324
|
className: string;
|
|
341
|
-
|
|
342
|
-
}
|
|
343
|
-
|
|
344
|
-
type: string;
|
|
345
|
-
tpl: string;
|
|
346
|
-
inline: boolean;
|
|
347
|
-
wrapperComponent: string;
|
|
348
|
-
className: string;
|
|
349
|
-
}[];
|
|
350
|
-
columnClassName: string;
|
|
351
|
-
md?: undefined;
|
|
352
|
-
className?: undefined;
|
|
353
|
-
})[];
|
|
325
|
+
tpl: string;
|
|
326
|
+
};
|
|
327
|
+
md: string;
|
|
354
328
|
className: string;
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
} | {
|
|
359
|
-
body: {
|
|
360
|
-
type: string;
|
|
361
|
-
items: {
|
|
329
|
+
columnClassName: string;
|
|
330
|
+
} | {
|
|
331
|
+
body: {
|
|
362
332
|
type: string;
|
|
363
|
-
|
|
364
|
-
|
|
365
|
-
|
|
333
|
+
tpl: string;
|
|
334
|
+
inline: boolean;
|
|
335
|
+
wrapperComponent: string;
|
|
366
336
|
className: string;
|
|
367
337
|
}[];
|
|
368
|
-
|
|
369
|
-
|
|
370
|
-
|
|
371
|
-
|
|
372
|
-
|
|
373
|
-
|
|
374
|
-
|
|
338
|
+
columnClassName: string;
|
|
339
|
+
md?: undefined;
|
|
340
|
+
className?: undefined;
|
|
341
|
+
})[];
|
|
342
|
+
className: string;
|
|
343
|
+
}[];
|
|
344
|
+
md: string;
|
|
345
|
+
hiddenOn?: undefined;
|
|
346
|
+
} | {
|
|
347
|
+
body: {
|
|
348
|
+
type: string;
|
|
349
|
+
items: {
|
|
350
|
+
type: string;
|
|
351
|
+
name: any;
|
|
352
|
+
objectName: any;
|
|
353
|
+
visibleOn: any;
|
|
354
|
+
className: string;
|
|
355
|
+
}[];
|
|
356
|
+
};
|
|
357
|
+
md: string;
|
|
358
|
+
hiddenOn: string;
|
|
359
|
+
})[];
|
|
360
|
+
className: string;
|
|
375
361
|
}[];
|
|
376
362
|
messages: {};
|
|
377
363
|
}[];
|
|
364
|
+
className: string;
|
|
378
365
|
};
|
|
379
366
|
}>;
|
|
380
367
|
export function getRecordDetailSchema(objectName: any, appId: any): Promise<{
|
|
@@ -144,10 +144,10 @@ export function getSchema(uiSchema: any): {
|
|
|
144
144
|
label: string;
|
|
145
145
|
type: string;
|
|
146
146
|
className: string;
|
|
147
|
-
html: boolean;
|
|
148
147
|
width?: undefined;
|
|
149
148
|
placeholder?: undefined;
|
|
150
149
|
tpl?: undefined;
|
|
150
|
+
html?: undefined;
|
|
151
151
|
})[];
|
|
152
152
|
syncLocation: boolean;
|
|
153
153
|
keepItemSelectionOnPageChange: boolean;
|
|
@@ -301,10 +301,10 @@ export namespace StandardButtons {
|
|
|
301
301
|
label: string;
|
|
302
302
|
type: string;
|
|
303
303
|
className: string;
|
|
304
|
-
html: boolean;
|
|
305
304
|
width?: undefined;
|
|
306
305
|
placeholder?: undefined;
|
|
307
306
|
tpl?: undefined;
|
|
307
|
+
html?: undefined;
|
|
308
308
|
})[];
|
|
309
309
|
syncLocation: boolean;
|
|
310
310
|
keepItemSelectionOnPageChange: boolean;
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@steedos-widgets/amis-lib",
|
|
3
3
|
"private": false,
|
|
4
|
-
"version": "1.0.
|
|
4
|
+
"version": "1.0.19",
|
|
5
5
|
"unpkg": "./dist/index.umd.js",
|
|
6
6
|
"main": "./dist/index.cjs.js",
|
|
7
7
|
"module": "./dist/index.esm.js",
|
|
@@ -58,5 +58,5 @@
|
|
|
58
58
|
"dependencies": {
|
|
59
59
|
"lodash": "^4.17.21"
|
|
60
60
|
},
|
|
61
|
-
"gitHead": "
|
|
61
|
+
"gitHead": "7ea6c5301d0630b4b68b1da5c4146ea492ad8610"
|
|
62
62
|
}
|