@steedos/service-pages 2.4.0-beta.39 → 2.4.0-beta.40
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.
|
@@ -36,6 +36,13 @@
|
|
|
36
36
|
|
|
37
37
|
Steedos.Page.getPage = function (type, appId, objectApiName, recordId, pageId) {
|
|
38
38
|
let objectInfo = null;
|
|
39
|
+
let searchParams = FlowRouter.current().queryParams;
|
|
40
|
+
|
|
41
|
+
const display = searchParams['display']
|
|
42
|
+
const listViewId = searchParams['listview_id']
|
|
43
|
+
const sideObject = searchParams['side_object']
|
|
44
|
+
const sideListviewId = searchParams['side_listview_id']
|
|
45
|
+
|
|
39
46
|
if(!objectApiName){
|
|
40
47
|
objectApiName = ''
|
|
41
48
|
}
|
|
@@ -46,34 +53,19 @@
|
|
|
46
53
|
pageId = ''
|
|
47
54
|
}
|
|
48
55
|
const formFactor = Steedos.isMobile() ? "SMALL" : "LARGE";
|
|
49
|
-
|
|
50
|
-
if
|
|
51
|
-
return page;
|
|
52
|
-
}
|
|
53
|
-
else if(type === 'list'){
|
|
56
|
+
|
|
57
|
+
if(type === 'list'){
|
|
54
58
|
return {
|
|
55
59
|
render_engine: 'amis',
|
|
56
60
|
name: 'steedosListviewPage',
|
|
57
|
-
schema:
|
|
58
|
-
"type": "page",
|
|
59
|
-
|
|
60
|
-
"
|
|
61
|
-
|
|
62
|
-
"
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
showHeader: true,
|
|
66
|
-
"label": "列表视图",
|
|
67
|
-
"objectApiName": "${objectName}",
|
|
68
|
-
"columnsTogglable": false,
|
|
69
|
-
"listName": "all",
|
|
70
|
-
"id": "u:be7c6341cd11"
|
|
71
|
-
}
|
|
72
|
-
],
|
|
73
|
-
"regions": [
|
|
74
|
-
"body"
|
|
75
|
-
],
|
|
76
|
-
"id": "u:7b47b6042b0d"
|
|
61
|
+
schema:{
|
|
62
|
+
"type": "steedos-page-listview",
|
|
63
|
+
"showHeader": true,
|
|
64
|
+
"objectApiName": objectApiName,
|
|
65
|
+
"appId": appId,
|
|
66
|
+
"display": display,
|
|
67
|
+
"columnsTogglable": false,
|
|
68
|
+
"listName": "all",
|
|
77
69
|
}
|
|
78
70
|
}
|
|
79
71
|
}else if(type === 'record'){
|
|
@@ -81,24 +73,14 @@
|
|
|
81
73
|
render_engine: 'amis',
|
|
82
74
|
name: 'steedosRecordPage',
|
|
83
75
|
schema: {
|
|
84
|
-
"type": "
|
|
85
|
-
"
|
|
86
|
-
"
|
|
87
|
-
"
|
|
88
|
-
"
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
"recordId": "${recordId}",
|
|
93
|
-
appId: appId,
|
|
94
|
-
"id": "u:48d2c28eb755"
|
|
95
|
-
}
|
|
96
|
-
],
|
|
97
|
-
"regions": [
|
|
98
|
-
"body"
|
|
99
|
-
],
|
|
100
|
-
"id": "u:d138f5276481"
|
|
101
|
-
}
|
|
76
|
+
"type": "steedos-page-record-detail",
|
|
77
|
+
"objectApiName": objectApiName,
|
|
78
|
+
"sideObject": sideObject,
|
|
79
|
+
"sideListviewId": sideListviewId,
|
|
80
|
+
"recordId": recordId,
|
|
81
|
+
"display": display,
|
|
82
|
+
"appId": appId,
|
|
83
|
+
}
|
|
102
84
|
}
|
|
103
85
|
|
|
104
86
|
}else if(type === 'related_list'){
|
|
@@ -322,6 +304,7 @@
|
|
|
322
304
|
if (!modalRoot) {
|
|
323
305
|
modalRoot = document.createElement('div');
|
|
324
306
|
modalRoot.setAttribute('id', rootId);
|
|
307
|
+
modalRoot.setAttribute('class', 'h-full')
|
|
325
308
|
$(".page-list-view-root")[0].appendChild(modalRoot);
|
|
326
309
|
}
|
|
327
310
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@steedos/service-pages",
|
|
3
|
-
"version": "2.4.0-beta.
|
|
3
|
+
"version": "2.4.0-beta.40",
|
|
4
4
|
"main": "package.service.js",
|
|
5
5
|
"scripts": {},
|
|
6
6
|
"license": "MIT",
|
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
"publishConfig": {
|
|
9
9
|
"access": "public"
|
|
10
10
|
},
|
|
11
|
-
"gitHead": "
|
|
11
|
+
"gitHead": "19fb1590a63241875e23e7b83217e09bdc52162e",
|
|
12
12
|
"dependencies": {
|
|
13
13
|
"ejs": "^3.1.8"
|
|
14
14
|
}
|