@steedos-widgets/amis-object 1.3.3 → 1.3.4-beta.10
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 +2 -0
- package/dist/amis/AmisObjectTable.d.ts +2 -6
- package/dist/amis/AmisRecordDetailHeader.d.ts +1 -0
- package/dist/amis-object.cjs.css +210 -41
- package/dist/amis-object.cjs.js +391 -261
- package/dist/amis-object.cjs.js.map +1 -1
- package/dist/amis-object.esm.css +210 -41
- package/dist/amis-object.esm.js +391 -261
- package/dist/amis-object.esm.js.map +1 -1
- package/dist/amis-object.umd.css +210 -41
- package/dist/amis-object.umd.js +141 -140
- package/dist/amis-object.umd.js.map +1 -1
- package/dist/assets-dev.json +19 -0
- package/dist/assets.json +35 -16
- package/dist/meta.js +49 -9
- package/dist/pages/PageObject.d.ts +2 -2
- package/package.json +3 -3
package/dist/assets-dev.json
CHANGED
|
@@ -24,6 +24,14 @@
|
|
|
24
24
|
],
|
|
25
25
|
"library": "BuilderReactFlow"
|
|
26
26
|
},
|
|
27
|
+
{
|
|
28
|
+
"package": "@steedos-widgets/sortable",
|
|
29
|
+
"urls": [
|
|
30
|
+
"http://127.0.0.1:8080/@steedos-widgets/sortable/dist/sortable.umd.js",
|
|
31
|
+
"http://127.0.0.1:8080/@steedos-widgets/sortable/dist/sortable.umd.css"
|
|
32
|
+
],
|
|
33
|
+
"library": "BuilderSortable"
|
|
34
|
+
},
|
|
27
35
|
{
|
|
28
36
|
"package": "steedos-lib",
|
|
29
37
|
"urls": [
|
|
@@ -63,6 +71,17 @@
|
|
|
63
71
|
"design": "http://127.0.0.1:8080/@steedos-widgets/reactflow/dist/meta.js"
|
|
64
72
|
}
|
|
65
73
|
},
|
|
74
|
+
{
|
|
75
|
+
"exportName": "BuilderSortableMeta",
|
|
76
|
+
"npm": {
|
|
77
|
+
"package": "@steedos-widgets/sortable"
|
|
78
|
+
},
|
|
79
|
+
"url": "http://127.0.0.1:8080/@steedos-widgets/sortable/dist/meta.js",
|
|
80
|
+
"urls": {
|
|
81
|
+
"default": "http://127.0.0.1:8080/@steedos-widgets/sortable/dist/meta.js",
|
|
82
|
+
"design": "http://127.0.0.1:8080/@steedos-widgets/sortable/dist/meta.js"
|
|
83
|
+
}
|
|
84
|
+
},
|
|
66
85
|
{
|
|
67
86
|
"exportName": "BuilderAmisObjectMeta",
|
|
68
87
|
"npm": {
|
package/dist/assets.json
CHANGED
|
@@ -11,31 +11,39 @@
|
|
|
11
11
|
{
|
|
12
12
|
"package": "@steedos-widgets/fullcalendar",
|
|
13
13
|
"urls": [
|
|
14
|
-
"https://unpkg.com/@steedos-widgets/fullcalendar@1.3.
|
|
15
|
-
"https://unpkg.com/@steedos-widgets/fullcalendar@1.3.
|
|
14
|
+
"https://unpkg.com/@steedos-widgets/fullcalendar@1.3.4-beta.10/dist/fullcalendar.umd.js",
|
|
15
|
+
"https://unpkg.com/@steedos-widgets/fullcalendar@1.3.4-beta.10/dist/fullcalendar.umd.css"
|
|
16
16
|
],
|
|
17
17
|
"library": "BuilderFullCalendar"
|
|
18
18
|
},
|
|
19
19
|
{
|
|
20
20
|
"package": "@steedos-widgets/reactflow",
|
|
21
21
|
"urls": [
|
|
22
|
-
"https://unpkg.com/@steedos-widgets/reactflow@1.3.
|
|
23
|
-
"https://unpkg.com/@steedos-widgets/reactflow@1.3.
|
|
22
|
+
"https://unpkg.com/@steedos-widgets/reactflow@1.3.4-beta.10/dist/reactflow.umd.js",
|
|
23
|
+
"https://unpkg.com/@steedos-widgets/reactflow@1.3.4-beta.10/dist/reactflow.umd.css"
|
|
24
24
|
],
|
|
25
25
|
"library": "BuilderReactFlow"
|
|
26
26
|
},
|
|
27
|
+
{
|
|
28
|
+
"package": "@steedos-widgets/sortable",
|
|
29
|
+
"urls": [
|
|
30
|
+
"https://unpkg.com/@steedos-widgets/sortable@1.3.4-beta.10/dist/sortable.umd.js",
|
|
31
|
+
"https://unpkg.com/@steedos-widgets/sortable@1.3.4-beta.10/dist/sortable.umd.css"
|
|
32
|
+
],
|
|
33
|
+
"library": "BuilderSortable"
|
|
34
|
+
},
|
|
27
35
|
{
|
|
28
36
|
"package": "steedos-lib",
|
|
29
37
|
"urls": [
|
|
30
|
-
"https://unpkg.com/@steedos-widgets/steedos-lib@1.3.
|
|
38
|
+
"https://unpkg.com/@steedos-widgets/steedos-lib@1.3.4-beta.10/dist/index.umd.js"
|
|
31
39
|
],
|
|
32
40
|
"library": "SteedosLib"
|
|
33
41
|
},
|
|
34
42
|
{
|
|
35
43
|
"package": "@steedos-widgets/amis-object",
|
|
36
44
|
"urls": [
|
|
37
|
-
"https://unpkg.com/@steedos-widgets/amis-object@1.3.
|
|
38
|
-
"https://unpkg.com/@steedos-widgets/amis-object@1.3.
|
|
45
|
+
"https://unpkg.com/@steedos-widgets/amis-object@1.3.4-beta.10/dist/amis-object.umd.js",
|
|
46
|
+
"https://unpkg.com/@steedos-widgets/amis-object@1.3.4-beta.10/dist/amis-object.umd.css"
|
|
39
47
|
],
|
|
40
48
|
"library": "BuilderAmisObject"
|
|
41
49
|
}
|
|
@@ -46,10 +54,10 @@
|
|
|
46
54
|
"npm": {
|
|
47
55
|
"package": "@steedos-widgets/fullcalendar"
|
|
48
56
|
},
|
|
49
|
-
"url": "https://unpkg.com/@steedos-widgets/fullcalendar@1.3.
|
|
57
|
+
"url": "https://unpkg.com/@steedos-widgets/fullcalendar@1.3.4-beta.10/dist/meta.js",
|
|
50
58
|
"urls": {
|
|
51
|
-
"default": "https://unpkg.com/@steedos-widgets/fullcalendar@1.3.
|
|
52
|
-
"design": "https://unpkg.com/@steedos-widgets/fullcalendar@1.3.
|
|
59
|
+
"default": "https://unpkg.com/@steedos-widgets/fullcalendar@1.3.4-beta.10/dist/meta.js",
|
|
60
|
+
"design": "https://unpkg.com/@steedos-widgets/fullcalendar@1.3.4-beta.10/dist/meta.js"
|
|
53
61
|
}
|
|
54
62
|
},
|
|
55
63
|
{
|
|
@@ -57,10 +65,21 @@
|
|
|
57
65
|
"npm": {
|
|
58
66
|
"package": "@steedos-widgets/reactflow"
|
|
59
67
|
},
|
|
60
|
-
"url": "https://unpkg.com/@steedos-widgets/reactflow@1.3.
|
|
68
|
+
"url": "https://unpkg.com/@steedos-widgets/reactflow@1.3.4-beta.10/dist/meta.js",
|
|
69
|
+
"urls": {
|
|
70
|
+
"default": "https://unpkg.com/@steedos-widgets/reactflow@1.3.4-beta.10/dist/meta.js",
|
|
71
|
+
"design": "https://unpkg.com/@steedos-widgets/reactflow@1.3.4-beta.10/dist/meta.js"
|
|
72
|
+
}
|
|
73
|
+
},
|
|
74
|
+
{
|
|
75
|
+
"exportName": "BuilderSortableMeta",
|
|
76
|
+
"npm": {
|
|
77
|
+
"package": "@steedos-widgets/sortable"
|
|
78
|
+
},
|
|
79
|
+
"url": "https://unpkg.com/@steedos-widgets/sortable@1.3.4-beta.10/dist/meta.js",
|
|
61
80
|
"urls": {
|
|
62
|
-
"default": "https://unpkg.com/@steedos-widgets/
|
|
63
|
-
"design": "https://unpkg.com/@steedos-widgets/
|
|
81
|
+
"default": "https://unpkg.com/@steedos-widgets/sortable@1.3.4-beta.10/dist/meta.js",
|
|
82
|
+
"design": "https://unpkg.com/@steedos-widgets/sortable@1.3.4-beta.10/dist/meta.js"
|
|
64
83
|
}
|
|
65
84
|
},
|
|
66
85
|
{
|
|
@@ -68,10 +87,10 @@
|
|
|
68
87
|
"npm": {
|
|
69
88
|
"package": "@steedos-widgets/amis-object"
|
|
70
89
|
},
|
|
71
|
-
"url": "https://unpkg.com/@steedos-widgets/amis-object@1.3.
|
|
90
|
+
"url": "https://unpkg.com/@steedos-widgets/amis-object@1.3.4-beta.10/dist/meta.js",
|
|
72
91
|
"urls": {
|
|
73
|
-
"default": "https://unpkg.com/@steedos-widgets/amis-object@1.3.
|
|
74
|
-
"design": "https://unpkg.com/@steedos-widgets/amis-object@1.3.
|
|
92
|
+
"default": "https://unpkg.com/@steedos-widgets/amis-object@1.3.4-beta.10/dist/meta.js",
|
|
93
|
+
"design": "https://unpkg.com/@steedos-widgets/amis-object@1.3.4-beta.10/dist/meta.js"
|
|
75
94
|
}
|
|
76
95
|
}
|
|
77
96
|
]
|
package/dist/meta.js
CHANGED
|
@@ -144,7 +144,7 @@
|
|
|
144
144
|
label: config$w.title,
|
|
145
145
|
objectApiName: "${objectName}",
|
|
146
146
|
recordId: "${recordId}",
|
|
147
|
-
className: "sm:border sm:
|
|
147
|
+
className: "sm:border sm:rounded sm:border-gray-300 bg-white p-4"
|
|
148
148
|
},
|
|
149
149
|
previewSchema: {
|
|
150
150
|
type: config$w.amis.name,
|
|
@@ -573,8 +573,8 @@
|
|
|
573
573
|
/*
|
|
574
574
|
* @Author: baozhoutao@steedos.com
|
|
575
575
|
* @Date: 2022-08-31 16:32:35
|
|
576
|
-
* @LastEditors:
|
|
577
|
-
* @LastEditTime: 2023-
|
|
576
|
+
* @LastEditors: 殷亮辉 yinlianghui@hotoa.com
|
|
577
|
+
* @LastEditTime: 2023-09-13 13:48:03
|
|
578
578
|
* @Description:
|
|
579
579
|
*/
|
|
580
580
|
var config$v = {
|
|
@@ -644,7 +644,7 @@
|
|
|
644
644
|
objectApiName: "${objectName}",
|
|
645
645
|
listName: "all",
|
|
646
646
|
showHeader: true,
|
|
647
|
-
className: "sm:border sm:
|
|
647
|
+
className: "sm:border sm:rounded sm:border-gray-300 mb-4"
|
|
648
648
|
},
|
|
649
649
|
previewSchema: {
|
|
650
650
|
type: config$v.amis.name,
|
|
@@ -725,6 +725,26 @@
|
|
|
725
725
|
type: "text",
|
|
726
726
|
name: "className",
|
|
727
727
|
label: "CSS类名"
|
|
728
|
+
},
|
|
729
|
+
{
|
|
730
|
+
"type": "collapse",
|
|
731
|
+
headingClassName: 'pl-0',
|
|
732
|
+
bodyClassName: '',
|
|
733
|
+
"collapsed": true,
|
|
734
|
+
"header": "高级",
|
|
735
|
+
"body": [
|
|
736
|
+
{
|
|
737
|
+
type: "editor",
|
|
738
|
+
name: "crudDataFilter",
|
|
739
|
+
label: "CRUD",
|
|
740
|
+
description: ""
|
|
741
|
+
},
|
|
742
|
+
{
|
|
743
|
+
"type": "markdown",
|
|
744
|
+
"value": "如果需要对组件原始返回的crud进行加工,可以自己写一段函数脚本来实现。\n\n函数签名:(crud, env, data) => crud\n\n参数说明:\n\ncrud 组件原始返回的crud schema\n\nenv amis env,可以调用env.fetcher函数实现异步请求\n\ndata 数据域中的data\n\n返回值:\n\n最后需要返回加工后的crud schema\n\n示例:\n\n```\nconsole.log('data===>', data);\nconst api = ...;\nreturn env.fetcher(api, {}).then((result) => {\n console.log(result);\n crud.columns.push({'label': 'xxx', name: 'xxx'});\n return crud;\n});\n\n```\n",
|
|
745
|
+
"className": "text-gray-500"
|
|
746
|
+
}
|
|
747
|
+
]
|
|
728
748
|
}
|
|
729
749
|
]
|
|
730
750
|
}
|
|
@@ -886,7 +906,7 @@
|
|
|
886
906
|
* @Author: baozhoutao@steedos.com
|
|
887
907
|
* @Date: 2022-08-31 16:32:35
|
|
888
908
|
* @LastEditors: 殷亮辉 yinlianghui@hotoa.com
|
|
889
|
-
* @LastEditTime: 2023-
|
|
909
|
+
* @LastEditTime: 2023-09-13 11:27:12
|
|
890
910
|
* @Description:
|
|
891
911
|
*/
|
|
892
912
|
var config$t = {
|
|
@@ -984,7 +1004,7 @@
|
|
|
984
1004
|
label: config$t.title,
|
|
985
1005
|
objectApiName: "${objectName}",
|
|
986
1006
|
fields: ["name"],
|
|
987
|
-
className: "sm:border sm:
|
|
1007
|
+
className: "sm:border sm:rounded sm:border-gray-300"
|
|
988
1008
|
},
|
|
989
1009
|
previewSchema: {
|
|
990
1010
|
type: config$t.amis.name,
|
|
@@ -1115,6 +1135,26 @@
|
|
|
1115
1135
|
description: "函数签名: (payload, response, api) => payload"
|
|
1116
1136
|
}
|
|
1117
1137
|
]
|
|
1138
|
+
},
|
|
1139
|
+
{
|
|
1140
|
+
"type": "collapse",
|
|
1141
|
+
headingClassName: 'ae-formItemControl-header',
|
|
1142
|
+
bodyClassName: 'ae-formItemControl-body',
|
|
1143
|
+
"key": "3",
|
|
1144
|
+
"header": "高级",
|
|
1145
|
+
"body": [
|
|
1146
|
+
{
|
|
1147
|
+
type: "editor",
|
|
1148
|
+
name: "crudDataFilter",
|
|
1149
|
+
label: "CRUD",
|
|
1150
|
+
description: ""
|
|
1151
|
+
},
|
|
1152
|
+
{
|
|
1153
|
+
"type": "markdown",
|
|
1154
|
+
"value": "如果需要对组件原始返回的crud进行加工,可以自己写一段函数脚本来实现。\n\n函数签名:(crud, env, data) => crud\n\n参数说明:\n\ncrud 组件原始返回的crud schema\n\nenv amis env,可以调用env.fetcher函数实现异步请求\n\ndata 数据域中的data\n\n返回值:\n\n最后需要返回加工后的crud schema\n\n示例:\n\n```\nconsole.log('data===>', data);\nconst api = ...;\nreturn env.fetcher(api, {}).then((result) => {\n console.log(result);\n crud.columns.push({'label': 'xxx', name: 'xxx'});\n return crud;\n});\n\n```\n",
|
|
1155
|
+
"className": "text-gray-500"
|
|
1156
|
+
}
|
|
1157
|
+
]
|
|
1118
1158
|
}
|
|
1119
1159
|
]
|
|
1120
1160
|
}
|
|
@@ -1335,7 +1375,7 @@
|
|
|
1335
1375
|
type: "text",
|
|
1336
1376
|
name: "className",
|
|
1337
1377
|
label: "CSS类名",
|
|
1338
|
-
value: "bg-gray-100 border-b sm:
|
|
1378
|
+
value: "bg-gray-100 border-b sm:rounded sm:border border-gray-300 p-4 mb-4"
|
|
1339
1379
|
}
|
|
1340
1380
|
]
|
|
1341
1381
|
}
|
|
@@ -1956,7 +1996,7 @@
|
|
|
1956
1996
|
"source": {
|
|
1957
1997
|
"method": "get",
|
|
1958
1998
|
"url": "/service/api/amis-design/objects",
|
|
1959
|
-
"requestAdaptor": "
|
|
1999
|
+
"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;",
|
|
1960
2000
|
"adaptor": "\n let data = payload.data;\n payload.unshift({\n label: \"\u5F53\u524D\u5BF9\u8C61\",\n name: \"${objectName}\"\n });\n return payload;\n "
|
|
1961
2001
|
},
|
|
1962
2002
|
"labelField": "label",
|
|
@@ -2659,7 +2699,7 @@
|
|
|
2659
2699
|
"data": {
|
|
2660
2700
|
"category": "${category}"
|
|
2661
2701
|
},
|
|
2662
|
-
"adaptor": "if (payload && payload.length) {\n let data = {};\n let sldsStandardIcons = _.find(payload, { name: api.body.category || \"standard\" });\n sldsStandardIcons = sldsStandardIcons && sldsStandardIcons.icons;\n data.options = sldsStandardIcons;\n payload.data = data;\n}\
|
|
2702
|
+
"adaptor": "if (payload && payload.length) {\n let data = {};\n let sldsStandardIcons = _.find(payload, { name: api.body.category || \"standard\" });\n sldsStandardIcons = sldsStandardIcons && sldsStandardIcons.icons;\n data.options = sldsStandardIcons;\n payload.data = data;\n}\nreturn payload;\n",
|
|
2663
2703
|
"headers": {
|
|
2664
2704
|
"Authorization": "Bearer ${context.tenantId},${context.authToken}"
|
|
2665
2705
|
},
|
|
@@ -15,7 +15,7 @@ export declare const PageObject: (props: any) => Promise<{
|
|
|
15
15
|
type: string;
|
|
16
16
|
size: string;
|
|
17
17
|
className: {
|
|
18
|
-
"p-0 flex-shrink-0 min-w-[388px] w-fit
|
|
18
|
+
"p-0 flex-shrink-0 min-w-[388px] w-fit lg:order-first lg:flex lg:flex-col": string;
|
|
19
19
|
'h-full': string;
|
|
20
20
|
"overflow-y-auto p-0 flex-1 focus:outline-none lg:order-last h-full"?: undefined;
|
|
21
21
|
};
|
|
@@ -38,7 +38,7 @@ export declare const PageObject: (props: any) => Promise<{
|
|
|
38
38
|
className: {
|
|
39
39
|
"overflow-y-auto p-0 flex-1 focus:outline-none lg:order-last h-full": string;
|
|
40
40
|
'h-full': string;
|
|
41
|
-
"p-0 flex-shrink-0 min-w-[388px] w-fit
|
|
41
|
+
"p-0 flex-shrink-0 min-w-[388px] w-fit lg:order-first lg:flex lg:flex-col"?: undefined;
|
|
42
42
|
};
|
|
43
43
|
body: {
|
|
44
44
|
name: string;
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@steedos-widgets/amis-object",
|
|
3
3
|
"private": false,
|
|
4
|
-
"version": "1.3.
|
|
4
|
+
"version": "1.3.4-beta.10",
|
|
5
5
|
"main": "dist/amis-object.cjs.js",
|
|
6
6
|
"module": "dist/amis-object.esm.js",
|
|
7
7
|
"unpkg": "dist/amis-object.umd.js",
|
|
@@ -61,10 +61,10 @@
|
|
|
61
61
|
"uglify-js": "^3.17.0"
|
|
62
62
|
},
|
|
63
63
|
"dependencies": {
|
|
64
|
-
"@steedos-widgets/amis-lib": "1.3.
|
|
64
|
+
"@steedos-widgets/amis-lib": "1.3.4-beta.10",
|
|
65
65
|
"autoprefixer": "^10.4.13",
|
|
66
66
|
"postcss": "^8.4.19",
|
|
67
67
|
"tailwindcss": "^3.2.4"
|
|
68
68
|
},
|
|
69
|
-
"gitHead": "
|
|
69
|
+
"gitHead": "a3588f996b1c8ee42deafdcf4eeb7fdb316d50c9"
|
|
70
70
|
}
|