@steedos/service-core-objects 3.0.0-beta.96 → 3.0.0-beta.98
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/main/default/objectTranslations/instances.en/instances.en.objectTranslation.yml +12 -1
- package/main/default/objectTranslations/instances.zh-CN/instances.zh-CN.objectTranslation.yml +11 -0
- package/main/default/pages/apps_form.page.amis.json +0 -4
- package/main/default/pages/organizations.page.amis.json +0 -4
- package/main/default/pages/space_users_list.page.amis.json +127 -15
- package/main/default/routes/amis_button_design.router.js +1 -1
- package/main/default/routes/object_fields_design.router.js +1 -1
- package/package.json +3 -3
|
@@ -173,6 +173,8 @@ actions:
|
|
|
173
173
|
label: Request Forward
|
|
174
174
|
instance_cc:
|
|
175
175
|
label: Carbon Copy
|
|
176
|
+
instance_relocate:
|
|
177
|
+
label: Relocate
|
|
176
178
|
instance_new:
|
|
177
179
|
label: New Request
|
|
178
180
|
instance_delete:
|
|
@@ -197,4 +199,13 @@ CustomLabels:
|
|
|
197
199
|
instance_action_instance_cc_dialog_field_users: Carbon Copy To
|
|
198
200
|
instance_action_instance_cc_dialog_field_description: Carbon Copy Description
|
|
199
201
|
instance_action_instance_cc_dialog_sub_title: Forward the currently selected file to the new process and continue to execute the approval operation.
|
|
200
|
-
|
|
202
|
+
instance_action_terminate_dialog_title: Cancel Request
|
|
203
|
+
instance_action_terminate_dialog_content: Please fill in the reasons for canceling the application
|
|
204
|
+
instance_action_terminate_dialog_msg_success: The cancellation application has been successful!
|
|
205
|
+
instance_action_terminate_dialog_msg_failed: The cancellation application failed.
|
|
206
|
+
instance_action_instance_relocate_dialog_title: Relocate
|
|
207
|
+
instance_action_instance_relocate_dialog_title_prefix: "Current Step:"
|
|
208
|
+
instance_action_instance_relocate_dialog_field_reason: Please fill in the reasons for the Relocating
|
|
209
|
+
instance_action_relocate_dialog_msg_success: Relocated successful
|
|
210
|
+
instance_action_relocate_dialog_msg_failed: Relocated failed
|
|
211
|
+
|
package/main/default/objectTranslations/instances.zh-CN/instances.zh-CN.objectTranslation.yml
CHANGED
|
@@ -173,6 +173,8 @@ actions:
|
|
|
173
173
|
label: 转发
|
|
174
174
|
instance_cc:
|
|
175
175
|
label: 传阅
|
|
176
|
+
instance_relocate:
|
|
177
|
+
label: 重定位
|
|
176
178
|
instance_new:
|
|
177
179
|
label: 新建
|
|
178
180
|
instance_delete_many:
|
|
@@ -195,3 +197,12 @@ CustomLabels:
|
|
|
195
197
|
instance_action_instance_cc_dialog_field_users: 传阅对象
|
|
196
198
|
instance_action_instance_cc_dialog_field_description: 传阅说明
|
|
197
199
|
instance_action_instance_cc_dialog_sub_title: 将当前选中的文件转发到新的流程,继续执行审批操作
|
|
200
|
+
instance_action_terminate_dialog_title: 取消申请
|
|
201
|
+
instance_action_terminate_dialog_content: 请填写取消申请的理由
|
|
202
|
+
instance_action_terminate_dialog_msg_success: 取消申请成功!
|
|
203
|
+
instance_action_terminate_dialog_msg_failed: 取消申请失败
|
|
204
|
+
instance_action_instance_relocate_dialog_title: 重定位
|
|
205
|
+
instance_action_instance_relocate_dialog_title_prefix: 当前步骤:
|
|
206
|
+
instance_action_instance_relocate_dialog_field_reason: 请填写重定位的理由
|
|
207
|
+
instance_action_relocate_dialog_msg_success: 重定位成功
|
|
208
|
+
instance_action_relocate_dialog_msg_failed: 重定位失败
|
|
@@ -327,10 +327,6 @@
|
|
|
327
327
|
"appId": "builder",
|
|
328
328
|
"title": "",
|
|
329
329
|
"context": {
|
|
330
|
-
"rootUrl": "http://127.0.0.1:5800",
|
|
331
|
-
"tenantId": "64a4d6dd7fe9acaf8c330a37",
|
|
332
|
-
"userId": "683e09cd-8482-4034-bd29-5a30643e6c0f",
|
|
333
|
-
"authToken": "2906ff4353c25cfe291352f899ba3446aa5577f3de7ad60e1aa500c60dee7ca6fb446412f1c9693775b4cc"
|
|
334
330
|
}
|
|
335
331
|
},
|
|
336
332
|
"id": "u:de840f3523f2"
|
|
@@ -31,10 +31,6 @@
|
|
|
31
31
|
"data": {
|
|
32
32
|
"objectName": "organizations",
|
|
33
33
|
"context": {
|
|
34
|
-
"rootUrl": "http://127.0.0.1:5800",
|
|
35
|
-
"tenantId": "654300b5074594d15147bcfa",
|
|
36
|
-
"userId": "654300a4074594d15147bcf8",
|
|
37
|
-
"authToken": "e9bcdfdc56579ec21b9e520e1e1a903a42fa829de27c9eb70f7e6caf8599f95e705d5aedf2336fbb818d98"
|
|
38
34
|
}
|
|
39
35
|
},
|
|
40
36
|
"id": "u:b7fa9418ef38",
|
|
@@ -1,9 +1,8 @@
|
|
|
1
1
|
{
|
|
2
|
-
"type": "
|
|
2
|
+
"type": "page",
|
|
3
3
|
"body": [
|
|
4
4
|
{
|
|
5
5
|
"type": "service",
|
|
6
|
-
"messages": {},
|
|
7
6
|
"className": "h-full",
|
|
8
7
|
"body": [
|
|
9
8
|
{
|
|
@@ -14,7 +13,7 @@
|
|
|
14
13
|
{
|
|
15
14
|
"type": "wrapper",
|
|
16
15
|
"size": "none",
|
|
17
|
-
"className": "flex-shrink-0 min-w-[
|
|
16
|
+
"className": "space-users-list-sidebar-wrapper flex-shrink-0 min-w-[220px] overflow-y-auto sm:rounded shadow bg-white my-4 ml-4 mr-1 lg:order-first lg:flex lg:flex-col ",
|
|
18
17
|
"body": [
|
|
19
18
|
{
|
|
20
19
|
"type": "input-tree",
|
|
@@ -37,6 +36,21 @@
|
|
|
37
36
|
"onEvent": {
|
|
38
37
|
"change": {
|
|
39
38
|
"actions": [
|
|
39
|
+
{
|
|
40
|
+
"actionType": "custom",
|
|
41
|
+
"script": "document.querySelector('.space-users-list-custom-page').classList.toggle('space-users-list-sidebar-open');",
|
|
42
|
+
"expression": "${isMobile}"
|
|
43
|
+
},
|
|
44
|
+
{
|
|
45
|
+
"actionType": "setValue",
|
|
46
|
+
"componentId": "u:f6a209c8cf61",
|
|
47
|
+
"args": {
|
|
48
|
+
"value": {
|
|
49
|
+
"isVisible": "${!isVisible}"
|
|
50
|
+
}
|
|
51
|
+
},
|
|
52
|
+
"expression": "${isMobile}"
|
|
53
|
+
},
|
|
40
54
|
{
|
|
41
55
|
"actionType": "setValue",
|
|
42
56
|
"componentId": "u:f6a209c8cf61",
|
|
@@ -83,7 +97,41 @@
|
|
|
83
97
|
}
|
|
84
98
|
],
|
|
85
99
|
"id": "u:fd659f5c3657",
|
|
86
|
-
"visibleOn": "${isVisible}"
|
|
100
|
+
"visibleOn": "${isVisible}",
|
|
101
|
+
"isFixedHeight": false,
|
|
102
|
+
"isFixedWidth": false
|
|
103
|
+
},
|
|
104
|
+
{
|
|
105
|
+
"type": "button",
|
|
106
|
+
"className": "space-users-sidebar-overlay",
|
|
107
|
+
"id": "u:773b1d00aab2",
|
|
108
|
+
"visibleOn": "${isVisible && isMobile}",
|
|
109
|
+
"body": [],
|
|
110
|
+
"onEvent": {
|
|
111
|
+
"click": {
|
|
112
|
+
"actions": [
|
|
113
|
+
{
|
|
114
|
+
"actionType": "custom",
|
|
115
|
+
"script": "document.querySelector('.space-users-list-custom-page').classList.toggle('space-users-list-sidebar-open');"
|
|
116
|
+
},
|
|
117
|
+
{
|
|
118
|
+
"actionType": "wait",
|
|
119
|
+
"args": {
|
|
120
|
+
"time": 500
|
|
121
|
+
}
|
|
122
|
+
},
|
|
123
|
+
{
|
|
124
|
+
"actionType": "setValue",
|
|
125
|
+
"componentId": "u:f6a209c8cf61",
|
|
126
|
+
"args": {
|
|
127
|
+
"value": {
|
|
128
|
+
"isVisible": "${!isVisible}"
|
|
129
|
+
}
|
|
130
|
+
}
|
|
131
|
+
}
|
|
132
|
+
]
|
|
133
|
+
}
|
|
134
|
+
}
|
|
87
135
|
},
|
|
88
136
|
{
|
|
89
137
|
"type": "wrapper",
|
|
@@ -101,26 +149,37 @@
|
|
|
101
149
|
{
|
|
102
150
|
"type": "button",
|
|
103
151
|
"label": "",
|
|
104
|
-
"align": "
|
|
152
|
+
"align": "left",
|
|
105
153
|
"icon": "fa fa-bars",
|
|
106
154
|
"className": "bg-white p-2 rounded border-gray-300 text-gray-500",
|
|
107
|
-
"hiddenOn": "${window:innerWidth < 768}",
|
|
108
155
|
"onEvent": {
|
|
109
156
|
"click": {
|
|
110
157
|
"actions": [
|
|
111
158
|
{
|
|
112
159
|
"actionType": "setValue",
|
|
113
|
-
"componentId": "u:f6a209c8cf61",
|
|
114
160
|
"args": {
|
|
115
161
|
"value": {
|
|
116
162
|
"isVisible": "${!isVisible}"
|
|
117
163
|
}
|
|
118
|
-
}
|
|
164
|
+
},
|
|
165
|
+
"componentId": "u:f6a209c8cf61"
|
|
166
|
+
},
|
|
167
|
+
{
|
|
168
|
+
"actionType": "wait",
|
|
169
|
+
"args": {
|
|
170
|
+
"time": 50
|
|
171
|
+
},
|
|
172
|
+
"expression": "${!isMobile}"
|
|
173
|
+
},
|
|
174
|
+
{
|
|
175
|
+
"actionType": "custom",
|
|
176
|
+
"script": "document.querySelector('.space-users-list-custom-page').classList.toggle('space-users-list-sidebar-open');"
|
|
119
177
|
}
|
|
120
178
|
]
|
|
121
179
|
}
|
|
122
180
|
},
|
|
123
|
-
"id": "u:6f237cc36419"
|
|
181
|
+
"id": "u:6f237cc36419",
|
|
182
|
+
"hiddenOn": "${window:innerWidth < 768 && false}"
|
|
124
183
|
}
|
|
125
184
|
],
|
|
126
185
|
"className": "bg-gray-100",
|
|
@@ -143,9 +202,11 @@
|
|
|
143
202
|
}
|
|
144
203
|
],
|
|
145
204
|
"data": {
|
|
146
|
-
"isVisible":
|
|
205
|
+
"isVisible": "${window:innerWidth > 768}",
|
|
206
|
+
"isMobile": "${window:innerWidth <= 768}"
|
|
147
207
|
},
|
|
148
|
-
"id": "u:f6a209c8cf61"
|
|
208
|
+
"id": "u:f6a209c8cf61",
|
|
209
|
+
"dsType": "api"
|
|
149
210
|
}
|
|
150
211
|
],
|
|
151
212
|
"regions": [
|
|
@@ -155,15 +216,66 @@
|
|
|
155
216
|
"objectName": "space_users",
|
|
156
217
|
"context": {}
|
|
157
218
|
},
|
|
219
|
+
"id": "u:b7167e2fcaf0",
|
|
158
220
|
"name": "page_space_users_list",
|
|
159
221
|
"bodyClassName": "p-0",
|
|
160
|
-
"id": "u:b7167e2fcaf0",
|
|
161
222
|
"asideResizor": false,
|
|
162
223
|
"pullRefresh": {
|
|
163
224
|
"disabled": true
|
|
164
225
|
},
|
|
165
|
-
"className":
|
|
166
|
-
|
|
167
|
-
"
|
|
226
|
+
"className": {
|
|
227
|
+
"space-users-list-custom-page h-full": true,
|
|
228
|
+
"space-users-list-mobile": "${window:innerWidth < 768}",
|
|
229
|
+
"space-users-list-pc space-users-list-sidebar-open": "${window:innerWidth > 768}"
|
|
230
|
+
},
|
|
231
|
+
"style": {},
|
|
232
|
+
"dsType": "api",
|
|
233
|
+
"themeCss": {
|
|
234
|
+
"baseControlClassName": {
|
|
235
|
+
"padding-and-margin:default": {
|
|
236
|
+
"padding": "${displayAs == 'grid'?'':'0px'}"
|
|
237
|
+
}
|
|
238
|
+
}
|
|
239
|
+
},
|
|
240
|
+
"css": {
|
|
241
|
+
".space-users-list-custom-page.space-users-list-mobile .space-users-list-sidebar-wrapper": {
|
|
242
|
+
"z-index": "601",
|
|
243
|
+
"top": "50px",
|
|
244
|
+
"left": "0px",
|
|
245
|
+
"bottom": "0px",
|
|
246
|
+
"position": "fixed",
|
|
247
|
+
"margin": "0px"
|
|
248
|
+
},
|
|
249
|
+
".space-users-list-custom-page.space-users-list-mobile .space-users-sidebar-overlay": {
|
|
250
|
+
"z-index": "600",
|
|
251
|
+
"position": "fixed",
|
|
252
|
+
"bottom": "0px",
|
|
253
|
+
"right": "0px",
|
|
254
|
+
"left": "0px",
|
|
255
|
+
"top": "50px"
|
|
256
|
+
},
|
|
257
|
+
".space-users-list-custom-page .space-users-list-sidebar-wrapper": {
|
|
258
|
+
"transition": "0.5s ease transform",
|
|
259
|
+
"will-change": "transform",
|
|
260
|
+
"transform": "translate(-100%,0)",
|
|
261
|
+
"-webkit-transform": "translate(-100%,0)",
|
|
262
|
+
"-moz-transform": "translate(-100%,0)",
|
|
263
|
+
"-ms-transform": "translate(-100%,0)",
|
|
264
|
+
"-o-transform": "translate(-100%,0)"
|
|
265
|
+
},
|
|
266
|
+
".space-users-list-custom-page.space-users-list-sidebar-open .space-users-list-sidebar-wrapper": {
|
|
267
|
+
"transform": "translate(0,0)",
|
|
268
|
+
"-webkit-transform": "translate(0,0)",
|
|
269
|
+
"-moz-transform": "translate(0,0)",
|
|
270
|
+
"-ms-transform": "translate(0,0)",
|
|
271
|
+
"-o-transform": "translate(0,0)"
|
|
272
|
+
},
|
|
273
|
+
".space-users-list-custom-page.space-users-list-pc .space-users-list-sidebar-wrapper": {
|
|
274
|
+
"min-width": "0px",
|
|
275
|
+
"width": "0px"
|
|
276
|
+
},
|
|
277
|
+
".space-users-list-custom-page.space-users-list-pc.space-users-list-sidebar-open .space-users-list-sidebar-wrapper": {
|
|
278
|
+
"min-width": "220px"
|
|
279
|
+
}
|
|
168
280
|
}
|
|
169
281
|
}
|
|
@@ -34,7 +34,7 @@ router.get('/api/amisButtonDesign', auth.requireAuthentication, async function (
|
|
|
34
34
|
// authToken: userSession.authToken
|
|
35
35
|
// }
|
|
36
36
|
|
|
37
|
-
let locale = "zh-CN";
|
|
37
|
+
let locale = userSession.language || process.env.STEEDOS_DEFAULT_LANGUAGE || "zh-CN";
|
|
38
38
|
if (req.query.locale?.startsWith('en')) {
|
|
39
39
|
locale = "en-US";
|
|
40
40
|
} else if (req.query.locale == "zh-cn") {
|
|
@@ -36,7 +36,7 @@ router.get('/api/amisObjectFieldsDesign', auth.requireAuthentication, async func
|
|
|
36
36
|
// userId: userSession.userId,
|
|
37
37
|
// authToken: userSession.authToken
|
|
38
38
|
// }
|
|
39
|
-
let locale = "zh-CN";
|
|
39
|
+
let locale = userSession.language || process.env.STEEDOS_DEFAULT_LANGUAGE || "zh-CN";
|
|
40
40
|
if (req.query.locale?.startsWith('en')) {
|
|
41
41
|
locale = "en-US";
|
|
42
42
|
} else if (req.query?.locale == "zh-cn") {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@steedos/service-core-objects",
|
|
3
|
-
"version": "3.0.0-beta.
|
|
3
|
+
"version": "3.0.0-beta.98",
|
|
4
4
|
"main": "package.service.js",
|
|
5
5
|
"private": false,
|
|
6
6
|
"publishConfig": {
|
|
@@ -10,12 +10,12 @@
|
|
|
10
10
|
"steedos"
|
|
11
11
|
],
|
|
12
12
|
"dependencies": {
|
|
13
|
-
"@steedos/service-package-loader": "3.0.0-beta.
|
|
13
|
+
"@steedos/service-package-loader": "3.0.0-beta.98",
|
|
14
14
|
"json2xls": "^0.1.2",
|
|
15
15
|
"lodash": "^4.17.21"
|
|
16
16
|
},
|
|
17
17
|
"description": "steedos package",
|
|
18
18
|
"repository": {},
|
|
19
19
|
"license": "MIT",
|
|
20
|
-
"gitHead": "
|
|
20
|
+
"gitHead": "4b7a81157f9279ab1750ef877d94c9d64ae7968e"
|
|
21
21
|
}
|