@steedos-widgets/amis-object 0.0.18 → 1.0.0-beta.29
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/amis/AmisObjectListview.d.ts +6 -1
- package/dist/amis/AmisObjectTable.d.ts +0 -5
- package/dist/amis/AmisRecordDetail.d.ts +42 -0
- package/dist/amis/AmisRecordDetailRelatedLists.d.ts +1 -0
- package/dist/amis/index.d.ts +1 -1
- package/dist/amis-object.cjs.css +316 -4
- package/dist/amis-object.cjs.js +82 -55
- package/dist/amis-object.cjs.js.map +1 -1
- package/dist/amis-object.esm.css +316 -4
- package/dist/amis-object.esm.js +82 -56
- package/dist/amis-object.esm.js.map +1 -1
- package/dist/amis-object.umd.css +316 -4
- package/dist/amis-object.umd.js +82 -55
- package/dist/amis-object.umd.js.map +1 -1
- package/dist/assets-dev.json +5 -5
- package/dist/assets.json +5 -5
- package/dist/index.d.ts +3 -0
- package/dist/meta.js +151 -46
- package/dist/metas/AmisRecordDetail.d.ts +2 -0
- package/package.json +10 -5
package/dist/assets-dev.json
CHANGED
|
@@ -11,8 +11,8 @@
|
|
|
11
11
|
{
|
|
12
12
|
"package": "@steedos-widgets/amis-object",
|
|
13
13
|
"urls": [
|
|
14
|
-
"https://8080-
|
|
15
|
-
"https://8080-
|
|
14
|
+
"https://8080-coffee-crayfish-i7ky9rs9.ws.vscode.steedos.cn/@steedos-widgets/amis-object/dist/amis-object.umd.js",
|
|
15
|
+
"https://8080-coffee-crayfish-i7ky9rs9.ws.vscode.steedos.cn/@steedos-widgets/amis-object/dist/amis-object.umd.css"
|
|
16
16
|
],
|
|
17
17
|
"library": "BuilderAmisObject"
|
|
18
18
|
}
|
|
@@ -23,10 +23,10 @@
|
|
|
23
23
|
"npm": {
|
|
24
24
|
"package": "@steedos-widgets/amis-object"
|
|
25
25
|
},
|
|
26
|
-
"url": "https://8080-
|
|
26
|
+
"url": "https://8080-coffee-crayfish-i7ky9rs9.ws.vscode.steedos.cn/@steedos-widgets/amis-object/dist/meta.js",
|
|
27
27
|
"urls": {
|
|
28
|
-
"default": "https://8080-
|
|
29
|
-
"design": "https://8080-
|
|
28
|
+
"default": "https://8080-coffee-crayfish-i7ky9rs9.ws.vscode.steedos.cn/@steedos-widgets/amis-object/dist/meta.js",
|
|
29
|
+
"design": "https://8080-coffee-crayfish-i7ky9rs9.ws.vscode.steedos.cn/@steedos-widgets/amis-object/dist/meta.js"
|
|
30
30
|
}
|
|
31
31
|
}
|
|
32
32
|
]
|
package/dist/assets.json
CHANGED
|
@@ -11,8 +11,8 @@
|
|
|
11
11
|
{
|
|
12
12
|
"package": "@steedos-widgets/amis-object",
|
|
13
13
|
"urls": [
|
|
14
|
-
"https://unpkg.com/@steedos-widgets/amis-object@0.0.
|
|
15
|
-
"https://unpkg.com/@steedos-widgets/amis-object@0.0.
|
|
14
|
+
"https://unpkg.com/@steedos-widgets/amis-object@1.0.0-beta.29/dist/amis-object.umd.js",
|
|
15
|
+
"https://unpkg.com/@steedos-widgets/amis-object@1.0.0-beta.29/dist/amis-object.umd.css"
|
|
16
16
|
],
|
|
17
17
|
"library": "BuilderAmisObject"
|
|
18
18
|
}
|
|
@@ -23,10 +23,10 @@
|
|
|
23
23
|
"npm": {
|
|
24
24
|
"package": "@steedos-widgets/amis-object"
|
|
25
25
|
},
|
|
26
|
-
"url": "https://unpkg.com/@steedos-widgets/amis-object@0.0.
|
|
26
|
+
"url": "https://unpkg.com/@steedos-widgets/amis-object@1.0.0-beta.29/dist/meta.js",
|
|
27
27
|
"urls": {
|
|
28
|
-
"default": "https://unpkg.com/@steedos-widgets/amis-object@0.0.
|
|
29
|
-
"design": "https://unpkg.com/@steedos-widgets/amis-object@0.0.
|
|
28
|
+
"default": "https://unpkg.com/@steedos-widgets/amis-object@1.0.0-beta.29/dist/meta.js",
|
|
29
|
+
"design": "https://unpkg.com/@steedos-widgets/amis-object@1.0.0-beta.29/dist/meta.js"
|
|
30
30
|
}
|
|
31
31
|
}
|
|
32
32
|
]
|
package/dist/index.d.ts
CHANGED
package/dist/meta.js
CHANGED
|
@@ -37,7 +37,7 @@
|
|
|
37
37
|
* @LastEditTime: 2022-09-02 09:04:33
|
|
38
38
|
* @Description:
|
|
39
39
|
*/
|
|
40
|
-
var config$
|
|
40
|
+
var config$b = {
|
|
41
41
|
componentType: 'amisSchema',
|
|
42
42
|
group: "华炎魔方",
|
|
43
43
|
componentName: "AmisObjectForm",
|
|
@@ -95,38 +95,38 @@
|
|
|
95
95
|
icon: "fa-fw fa fa-list-alt"
|
|
96
96
|
}
|
|
97
97
|
};
|
|
98
|
-
var AmisObjectForm = __assign(__assign({}, config$
|
|
98
|
+
var AmisObjectForm = __assign(__assign({}, config$b), { snippets: [
|
|
99
99
|
{
|
|
100
|
-
title: config$
|
|
100
|
+
title: config$b.title,
|
|
101
101
|
screenshot: "",
|
|
102
102
|
schema: {
|
|
103
|
-
componentName: config$
|
|
104
|
-
props: config$
|
|
103
|
+
componentName: config$b.componentName,
|
|
104
|
+
props: config$b.preview
|
|
105
105
|
}
|
|
106
106
|
}
|
|
107
107
|
], amis: {
|
|
108
108
|
render: {
|
|
109
|
-
type: config$
|
|
109
|
+
type: config$b.amis.name,
|
|
110
110
|
usage: "renderer",
|
|
111
111
|
weight: 1,
|
|
112
112
|
framework: "react"
|
|
113
113
|
},
|
|
114
114
|
plugin: {
|
|
115
|
-
rendererName: config$
|
|
115
|
+
rendererName: config$b.amis.name,
|
|
116
116
|
$schema: '/schemas/UnkownSchema.json',
|
|
117
|
-
name: config$
|
|
118
|
-
description: config$
|
|
119
|
-
tags: [config$
|
|
117
|
+
name: config$b.title,
|
|
118
|
+
description: config$b.title,
|
|
119
|
+
tags: [config$b.group],
|
|
120
120
|
order: -9999,
|
|
121
|
-
icon: config$
|
|
121
|
+
icon: config$b.amis.icon,
|
|
122
122
|
scaffold: {
|
|
123
|
-
type: config$
|
|
124
|
-
label: config$
|
|
123
|
+
type: config$b.amis.name,
|
|
124
|
+
label: config$b.title,
|
|
125
125
|
objectApiName: "${objectName}",
|
|
126
126
|
recordId: "${recordId}"
|
|
127
127
|
},
|
|
128
128
|
previewSchema: {
|
|
129
|
-
type: config$
|
|
129
|
+
type: config$b.amis.name,
|
|
130
130
|
objectApiName: 'space_users'
|
|
131
131
|
},
|
|
132
132
|
panelTitle: "设置",
|
|
@@ -221,7 +221,7 @@
|
|
|
221
221
|
* @LastEditTime: 2022-09-15 10:40:37
|
|
222
222
|
* @Description:
|
|
223
223
|
*/
|
|
224
|
-
var config$
|
|
224
|
+
var config$a = {
|
|
225
225
|
componentType: 'amisSchema',
|
|
226
226
|
group: "华炎魔方",
|
|
227
227
|
componentName: "AmisObjectListView",
|
|
@@ -257,38 +257,38 @@
|
|
|
257
257
|
icon: "fa-fw fa fa-list-alt"
|
|
258
258
|
}
|
|
259
259
|
};
|
|
260
|
-
var AmisObjectListview = __assign(__assign({}, config$
|
|
260
|
+
var AmisObjectListview = __assign(__assign({}, config$a), { snippets: [
|
|
261
261
|
{
|
|
262
|
-
title: config$
|
|
262
|
+
title: config$a.title,
|
|
263
263
|
screenshot: "",
|
|
264
264
|
schema: {
|
|
265
|
-
componentName: config$
|
|
266
|
-
props: config$
|
|
265
|
+
componentName: config$a.componentName,
|
|
266
|
+
props: config$a.preview
|
|
267
267
|
}
|
|
268
268
|
}
|
|
269
269
|
], amis: {
|
|
270
270
|
render: {
|
|
271
|
-
type: config$
|
|
271
|
+
type: config$a.amis.name,
|
|
272
272
|
usage: "renderer",
|
|
273
273
|
weight: 1,
|
|
274
274
|
framework: "react"
|
|
275
275
|
},
|
|
276
276
|
plugin: {
|
|
277
|
-
rendererName: config$
|
|
277
|
+
rendererName: config$a.amis.name,
|
|
278
278
|
$schema: '/schemas/UnkownSchema.json',
|
|
279
|
-
name: config$
|
|
280
|
-
description: config$
|
|
281
|
-
tags: [config$
|
|
279
|
+
name: config$a.title,
|
|
280
|
+
description: config$a.title,
|
|
281
|
+
tags: [config$a.group],
|
|
282
282
|
order: -9999,
|
|
283
|
-
icon: config$
|
|
283
|
+
icon: config$a.amis.icon,
|
|
284
284
|
scaffold: {
|
|
285
|
-
type: config$
|
|
286
|
-
label: config$
|
|
285
|
+
type: config$a.amis.name,
|
|
286
|
+
label: config$a.title,
|
|
287
287
|
objectApiName: "${objectName}",
|
|
288
288
|
listName: "all"
|
|
289
289
|
},
|
|
290
290
|
previewSchema: {
|
|
291
|
-
type: config$
|
|
291
|
+
type: config$a.amis.name,
|
|
292
292
|
objectApiName: 'space_users',
|
|
293
293
|
listName: "all"
|
|
294
294
|
},
|
|
@@ -315,7 +315,6 @@
|
|
|
315
315
|
name: "listName",
|
|
316
316
|
multiple: false,
|
|
317
317
|
label: "视图",
|
|
318
|
-
hiddenOn: "this.showHeader",
|
|
319
318
|
"source": {
|
|
320
319
|
"url": "/service/api/amis-design/object/${objectApiName}",
|
|
321
320
|
"method": "get",
|
|
@@ -351,7 +350,7 @@
|
|
|
351
350
|
* @LastEditTime: 2022-09-15 10:40:37
|
|
352
351
|
* @Description:
|
|
353
352
|
*/
|
|
354
|
-
var config$
|
|
353
|
+
var config$9 = {
|
|
355
354
|
componentType: 'amisSchema',
|
|
356
355
|
group: "华炎魔方",
|
|
357
356
|
componentName: "AmisObjectTable",
|
|
@@ -407,38 +406,38 @@
|
|
|
407
406
|
icon: "fa-fw fa fa-list-alt"
|
|
408
407
|
}
|
|
409
408
|
};
|
|
410
|
-
var AmisObjectTable = __assign(__assign({}, config$
|
|
409
|
+
var AmisObjectTable = __assign(__assign({}, config$9), { snippets: [
|
|
411
410
|
{
|
|
412
|
-
title: config$
|
|
411
|
+
title: config$9.title,
|
|
413
412
|
screenshot: "",
|
|
414
413
|
schema: {
|
|
415
|
-
componentName: config$
|
|
416
|
-
props: config$
|
|
414
|
+
componentName: config$9.componentName,
|
|
415
|
+
props: config$9.preview
|
|
417
416
|
}
|
|
418
417
|
}
|
|
419
418
|
], amis: {
|
|
420
419
|
render: {
|
|
421
|
-
type: config$
|
|
420
|
+
type: config$9.amis.name,
|
|
422
421
|
usage: "renderer",
|
|
423
422
|
weight: 1,
|
|
424
423
|
framework: "react"
|
|
425
424
|
},
|
|
426
425
|
plugin: {
|
|
427
|
-
rendererName: config$
|
|
426
|
+
rendererName: config$9.amis.name,
|
|
428
427
|
$schema: '/schemas/UnkownSchema.json',
|
|
429
|
-
name: config$
|
|
430
|
-
description: config$
|
|
431
|
-
tags: [config$
|
|
428
|
+
name: config$9.title,
|
|
429
|
+
description: config$9.title,
|
|
430
|
+
tags: [config$9.group],
|
|
432
431
|
order: -9999,
|
|
433
|
-
icon: config$
|
|
432
|
+
icon: config$9.amis.icon,
|
|
434
433
|
scaffold: {
|
|
435
|
-
type: config$
|
|
436
|
-
label: config$
|
|
434
|
+
type: config$9.amis.name,
|
|
435
|
+
label: config$9.title,
|
|
437
436
|
objectApiName: "${objectName}",
|
|
438
437
|
columns: [{ "field": "name" }]
|
|
439
438
|
},
|
|
440
439
|
previewSchema: {
|
|
441
|
-
type: config$
|
|
440
|
+
type: config$9.amis.name,
|
|
442
441
|
objectApiName: 'space_users',
|
|
443
442
|
columns: [{ "field": "name" }]
|
|
444
443
|
},
|
|
@@ -532,7 +531,7 @@
|
|
|
532
531
|
* @LastEditTime: 2022-09-15 10:40:37
|
|
533
532
|
* @Description:
|
|
534
533
|
*/
|
|
535
|
-
var config$
|
|
534
|
+
var config$8 = {
|
|
536
535
|
componentType: 'amisSchema',
|
|
537
536
|
group: "华炎魔方",
|
|
538
537
|
componentName: "AmisRecordDetailHeader",
|
|
@@ -568,7 +567,111 @@
|
|
|
568
567
|
icon: "fa-fw fa fa-list-alt"
|
|
569
568
|
}
|
|
570
569
|
};
|
|
571
|
-
var AmisRecordDetailHeader = __assign(__assign({}, config$
|
|
570
|
+
var AmisRecordDetailHeader = __assign(__assign({}, config$8), { snippets: [
|
|
571
|
+
{
|
|
572
|
+
title: config$8.title,
|
|
573
|
+
screenshot: "",
|
|
574
|
+
schema: {
|
|
575
|
+
componentName: config$8.componentName,
|
|
576
|
+
props: config$8.preview
|
|
577
|
+
}
|
|
578
|
+
}
|
|
579
|
+
], amis: {
|
|
580
|
+
render: {
|
|
581
|
+
type: config$8.amis.name,
|
|
582
|
+
usage: "renderer",
|
|
583
|
+
weight: 1,
|
|
584
|
+
framework: "react"
|
|
585
|
+
},
|
|
586
|
+
plugin: {
|
|
587
|
+
rendererName: config$8.amis.name,
|
|
588
|
+
$schema: '/schemas/UnkownSchema.json',
|
|
589
|
+
name: config$8.title,
|
|
590
|
+
description: config$8.title,
|
|
591
|
+
tags: [config$8.group],
|
|
592
|
+
order: -9999,
|
|
593
|
+
icon: config$8.amis.icon,
|
|
594
|
+
scaffold: {
|
|
595
|
+
type: config$8.amis.name,
|
|
596
|
+
label: config$8.title,
|
|
597
|
+
objectApiName: "${objectName}",
|
|
598
|
+
recordId: "${recordId}"
|
|
599
|
+
},
|
|
600
|
+
previewSchema: {
|
|
601
|
+
type: config$8.amis.name,
|
|
602
|
+
objectApiName: 'space_users'
|
|
603
|
+
},
|
|
604
|
+
panelTitle: "设置",
|
|
605
|
+
panelControls: [
|
|
606
|
+
{
|
|
607
|
+
"type": "select",
|
|
608
|
+
"label": "对象",
|
|
609
|
+
"name": "objectApiName",
|
|
610
|
+
"searchable": true,
|
|
611
|
+
"multiple": false,
|
|
612
|
+
"source": {
|
|
613
|
+
"method": "get",
|
|
614
|
+
"url": "/service/api/amis-design/objects",
|
|
615
|
+
"requestAdaptor": "api.url = Builder.settings.rootUrl + api.url; if(!api.headers){api.headers = {}};api.headers.Authorization='Bearer ' + Builder.settings.tenantId + ',' + Builder.settings.authToken ;return api;",
|
|
616
|
+
"adaptor": "\n let data = payload.data;\n payload.unshift({\n label: \"${objectName}\",\n name: \"${objectName}\"\n });\n return payload;\n "
|
|
617
|
+
},
|
|
618
|
+
"labelField": "label",
|
|
619
|
+
"valueField": "name",
|
|
620
|
+
"menuTpl": ""
|
|
621
|
+
},
|
|
622
|
+
{
|
|
623
|
+
type: "text",
|
|
624
|
+
name: "recordId",
|
|
625
|
+
label: "记录Id"
|
|
626
|
+
}
|
|
627
|
+
]
|
|
628
|
+
}
|
|
629
|
+
} });
|
|
630
|
+
|
|
631
|
+
/*
|
|
632
|
+
* @Author: baozhoutao@steedos.com
|
|
633
|
+
* @Date: 2022-08-31 16:32:35
|
|
634
|
+
* @LastEditors: baozhoutao@steedos.com
|
|
635
|
+
* @LastEditTime: 2022-12-08 10:37:45
|
|
636
|
+
* @Description:
|
|
637
|
+
*/
|
|
638
|
+
var config$7 = {
|
|
639
|
+
componentType: 'amisSchema',
|
|
640
|
+
group: "华炎魔方",
|
|
641
|
+
componentName: "AmisRecordDetail",
|
|
642
|
+
title: "记录详细",
|
|
643
|
+
docUrl: "",
|
|
644
|
+
screenshot: "",
|
|
645
|
+
npm: {
|
|
646
|
+
package: "@steedos-widgets/amis-object",
|
|
647
|
+
version: "{{version}}",
|
|
648
|
+
exportName: "AmisRecordDetail",
|
|
649
|
+
main: "",
|
|
650
|
+
destructuring: true,
|
|
651
|
+
subName: ""
|
|
652
|
+
},
|
|
653
|
+
props: [
|
|
654
|
+
{
|
|
655
|
+
name: "objectApiName",
|
|
656
|
+
propType: "string",
|
|
657
|
+
description: '对象名称',
|
|
658
|
+
},
|
|
659
|
+
{
|
|
660
|
+
name: "recordId",
|
|
661
|
+
propType: "string",
|
|
662
|
+
description: '记录Id',
|
|
663
|
+
}
|
|
664
|
+
],
|
|
665
|
+
preview: {},
|
|
666
|
+
targets: ["steedos__RecordPage", "steedos__AppPage", "steedos__HomePage"],
|
|
667
|
+
engines: ["amis"],
|
|
668
|
+
// settings for amis.
|
|
669
|
+
amis: {
|
|
670
|
+
name: 'steedos-record-detail',
|
|
671
|
+
icon: "fa-fw fa fa-list-alt"
|
|
672
|
+
}
|
|
673
|
+
};
|
|
674
|
+
var AmisRecordDetail = __assign(__assign({}, config$7), { snippets: [
|
|
572
675
|
{
|
|
573
676
|
title: config$7.title,
|
|
574
677
|
screenshot: "",
|
|
@@ -1255,7 +1358,7 @@
|
|
|
1255
1358
|
* @Author: baozhoutao@steedos.com
|
|
1256
1359
|
* @Date: 2022-08-31 16:32:35
|
|
1257
1360
|
* @LastEditors: baozhoutao@steedos.com
|
|
1258
|
-
* @LastEditTime: 2022-12-
|
|
1361
|
+
* @LastEditTime: 2022-12-08 10:39:35
|
|
1259
1362
|
* @Description:
|
|
1260
1363
|
*/
|
|
1261
1364
|
// import Hello from './metas/Hello';
|
|
@@ -1263,6 +1366,7 @@
|
|
|
1263
1366
|
AmisObjectForm,
|
|
1264
1367
|
AmisObjectListview,
|
|
1265
1368
|
AmisRecordDetailHeader,
|
|
1369
|
+
AmisRecordDetail,
|
|
1266
1370
|
AmisSelectUser,
|
|
1267
1371
|
AmisRecordDetailRelatedList,
|
|
1268
1372
|
AmisRecordDetailRelatedLists,
|
|
@@ -1280,6 +1384,7 @@
|
|
|
1280
1384
|
AmisObjectForm,
|
|
1281
1385
|
AmisObjectListview,
|
|
1282
1386
|
AmisRecordDetailHeader,
|
|
1387
|
+
AmisRecordDetail,
|
|
1283
1388
|
AmisSelectUser,
|
|
1284
1389
|
AmisRecordDetailRelatedList,
|
|
1285
1390
|
AmisRecordDetailRelatedLists,
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@steedos-widgets/amis-object",
|
|
3
3
|
"private": false,
|
|
4
|
-
"version": "0.0.
|
|
4
|
+
"version": "1.0.0-beta.29",
|
|
5
5
|
"main": "dist/amis-object.cjs.js",
|
|
6
6
|
"module": "dist/amis-object.esm.js",
|
|
7
7
|
"unpkg": "dist/amis-object.umd.js",
|
|
@@ -10,6 +10,7 @@
|
|
|
10
10
|
"dist"
|
|
11
11
|
],
|
|
12
12
|
"scripts": {
|
|
13
|
+
"watch": "rollup -c rollup.config.ts -w",
|
|
13
14
|
"prebuild": "rimraf dist",
|
|
14
15
|
"build": "yarn build:rollup",
|
|
15
16
|
"build:rollup": "rollup -c rollup.config.ts",
|
|
@@ -20,12 +21,12 @@
|
|
|
20
21
|
"access": "public"
|
|
21
22
|
},
|
|
22
23
|
"devDependencies": {
|
|
24
|
+
"@babel/core": "^7.18.13",
|
|
25
|
+
"@babel/plugin-proposal-class-properties": "^7.18.6",
|
|
23
26
|
"@babel/plugin-proposal-export-default-from": "^7.18.10",
|
|
24
27
|
"@babel/plugin-proposal-export-namespace-from": "^7.18.9",
|
|
25
28
|
"@babel/plugin-proposal-object-rest-spread": "^7.18.9",
|
|
26
29
|
"@babel/plugin-transform-runtime": "^7.18.10",
|
|
27
|
-
"@babel/core": "^7.18.13",
|
|
28
|
-
"@babel/plugin-proposal-class-properties": "^7.18.6",
|
|
29
30
|
"@babel/preset-env": "^7.18.10",
|
|
30
31
|
"@babel/preset-react": "^7.18.6",
|
|
31
32
|
"@rollup/plugin-babel": "^5.3.1",
|
|
@@ -59,6 +60,10 @@
|
|
|
59
60
|
"uglify-js": "^3.17.0"
|
|
60
61
|
},
|
|
61
62
|
"dependencies": {
|
|
62
|
-
"@steedos-widgets/amis-lib": "0.0.
|
|
63
|
-
|
|
63
|
+
"@steedos-widgets/amis-lib": "1.0.0-beta.29",
|
|
64
|
+
"autoprefixer": "^10.4.13",
|
|
65
|
+
"postcss": "^8.4.19",
|
|
66
|
+
"tailwindcss": "^3.2.4"
|
|
67
|
+
},
|
|
68
|
+
"gitHead": "62a446518c9f80a67a4c3f04ddb65165f30f3bae"
|
|
64
69
|
}
|