@steedos/service-core-objects 3.0.0-beta.80 → 3.0.0-beta.82
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/objects.en/objects.en.objectTranslation.yml +10 -0
- package/main/default/objectTranslations/objects.zh-CN/objects.zh-CN.objectTranslation.yml +10 -0
- package/main/default/objects/objects/buttons/delete_object.button.yml +5 -4
- package/main/default/objects/objects/buttons/reset.button.yml +4 -4
- package/package.json +3 -3
- package/main/default/objects/objects/buttons/design_field_layout.button.js +0 -28
- package/main/default/objects/objects/buttons/design_field_layout.button.yml +0 -5
|
@@ -188,6 +188,12 @@ actions:
|
|
|
188
188
|
label: Copy OData URL
|
|
189
189
|
createDefaultRecordView:
|
|
190
190
|
label: Create Default Page Layout
|
|
191
|
+
design_fields_layout:
|
|
192
|
+
label: Design Fields
|
|
193
|
+
reset:
|
|
194
|
+
label: Reset
|
|
195
|
+
delete_object:
|
|
196
|
+
label: Delete
|
|
191
197
|
CustomLabels:
|
|
192
198
|
objects_field_datasource_defaultValue: Default data source
|
|
193
199
|
objects_field_datasource_meteor: Meteor
|
|
@@ -195,3 +201,7 @@ CustomLabels:
|
|
|
195
201
|
objects_field_enable_space_global: Accessing Data Across Workspaces
|
|
196
202
|
objects_field_enable_web_forms: Allow Online Forms
|
|
197
203
|
object_object__error_name_invalid_format: Can only contain lowercase letters and numbers, must start with a letter, cannot end with an underscore character or contain two consecutive underscore characters
|
|
204
|
+
objects_actions_delete_object_dialog_title_prefix: "Delete Object:"
|
|
205
|
+
objects_actions_delete_object_dialog_content: "<div>\n<div style=\"text-align: left;\">To delete a custom object, perform the following operations:</div>\n<ul>\n<li style=\"text-align: left;\">Delete the fields and buttons of the object</li>\n<li style=\"text-align: left;\">Delete the tabs and list views of the object</li>\n<li style=\"text-align: left;\">Delete the page layouts of the object</li>\n<li style=\"text-align: left;\">Delete the permission of the object</li>\n<li style=\"text-align: left;\">Delete the validation rules of the object</li>\n<li style=\"text-align: left;\">Delete the restriction rules of the object</li>\n<li style=\"text-align: left;\">Delete the sharing rules of the object</li>\n<li style=\"text-align: left;\">Delete the workflow mapping that uses this object</li>\n<li style=\"text-align: left;\">Delete the open processes that use this object</li>\n<li style=\"text-align: left;\">Delete the pages that uses this object</li>\n</ul>\n</div>"
|
|
206
|
+
objects_actions_reset_dialog_title_prefix: "Reset Object:"
|
|
207
|
+
objects_actions_reset_dialog_content: "<div>\n<div style=\"text-align: left;\">Reset a custom object by performing the following operations:</div>\n<ul>\n<li style=\"text-align: left;\">Delete the custom object</li>\n<li style=\"text-align: left;\">Delete the fields of the custom object</li>\n</ul>\n</div>"
|
|
@@ -193,6 +193,12 @@ actions:
|
|
|
193
193
|
label: 复制OData网址
|
|
194
194
|
createDefaultRecordView:
|
|
195
195
|
label: 创建默认页面布局
|
|
196
|
+
design_fields_layout:
|
|
197
|
+
label: 设计字段
|
|
198
|
+
reset:
|
|
199
|
+
label: 重置
|
|
200
|
+
delete_object:
|
|
201
|
+
label: 删除
|
|
196
202
|
CustomLabels:
|
|
197
203
|
objects_field_datasource_defaultValue: 默认数据源
|
|
198
204
|
objects_field_datasource_meteor: Meteor
|
|
@@ -200,3 +206,7 @@ CustomLabels:
|
|
|
200
206
|
objects_field_enable_space_global: 跨工作区访问数据
|
|
201
207
|
objects_field_enable_web_forms: 允许在线表单
|
|
202
208
|
object_object__error_name_invalid_format: API 名称只能包含小写字母、数字,必须以字母开头,不能以下划线字符结尾或包含两个连续的下划线字符
|
|
209
|
+
objects_actions_delete_object_dialog_title_prefix: "删除对象:"
|
|
210
|
+
objects_actions_delete_object_dialog_content: "<div>\n<div style=\"text-align: left;\">删除一个自定义对象进行以下操作:</div>\n<ul>\n<li style=\"text-align: left;\">删除对象的字段和按钮</li>\n<li style=\"text-align: left;\">删除对象的选项卡和列表视图</li>\n<li style=\"text-align: left;\">删除对象的页面布局</li>\n<li style=\"text-align: left;\">删除对象的权限</li>\n<li style=\"text-align: left;\">删除对象的验证规则</li>\n<li style=\"text-align: left;\">删除对象的限制规则</li>\n<li style=\"text-align: left;\">删除对象的共享规则</li>\n<li style=\"text-align: left;\">删除使用该对象的流程映射</li>\n<li style=\"text-align: left;\">删除使用该对象的开放流程</li>\n<li style=\"text-align: left;\">删除使用该对象的页面</li>\n</ul>\n</div>"
|
|
211
|
+
objects_actions_reset_dialog_title_prefix: "重置对象: "
|
|
212
|
+
objects_actions_reset_dialog_content: "<div>\n<div style=\"text-align: left;\">重置一个自定义对象进行以下操作:</div>\n<ul>\n<li style=\"text-align: left;\">删除自定义的对象</li>\n<li style=\"text-align: left;\">删除自定义对象的字段</li>\n</ul>\n</div>"
|
|
@@ -5,7 +5,7 @@ amis_schema: |-
|
|
|
5
5
|
"body": [
|
|
6
6
|
{
|
|
7
7
|
"type": "button",
|
|
8
|
-
"label": "
|
|
8
|
+
"label": "${'CustomAction.objects.delete_object' | t}",
|
|
9
9
|
"id": "u:delete_object",
|
|
10
10
|
"onEvent": {
|
|
11
11
|
"click": {
|
|
@@ -14,11 +14,11 @@ amis_schema: |-
|
|
|
14
14
|
"actionType": "dialog",
|
|
15
15
|
"dialog": {
|
|
16
16
|
"type": "dialog",
|
|
17
|
-
"title": "
|
|
17
|
+
"title": "${'CustomLabels.objects_actions_delete_object_dialog_title_prefix' | t} ${record.label}",
|
|
18
18
|
"body": [
|
|
19
19
|
{
|
|
20
20
|
"type": "tpl",
|
|
21
|
-
"tpl": "
|
|
21
|
+
"tpl": "${'CustomLabels.objects_actions_delete_object_dialog_content' | t}",
|
|
22
22
|
"inline": true,
|
|
23
23
|
"id": "u:6d0819fc0bda"
|
|
24
24
|
}
|
|
@@ -29,7 +29,8 @@ amis_schema: |-
|
|
|
29
29
|
"showCloseButton": true,
|
|
30
30
|
"data": {
|
|
31
31
|
"&": "$$",
|
|
32
|
-
"recordId": "${recordId}"
|
|
32
|
+
"recordId": "${recordId}",
|
|
33
|
+
"record": "${record}"
|
|
33
34
|
},
|
|
34
35
|
"onEvent": {
|
|
35
36
|
"confirm": {
|
|
@@ -5,8 +5,8 @@ amis_schema: |-
|
|
|
5
5
|
"body": [
|
|
6
6
|
{
|
|
7
7
|
"type": "button",
|
|
8
|
-
"label": "
|
|
9
|
-
"id": "u:
|
|
8
|
+
"label": "${'CustomAction.objects.reset' | t}",
|
|
9
|
+
"id": "u:reset",
|
|
10
10
|
"onEvent": {
|
|
11
11
|
"click": {
|
|
12
12
|
"actions": [
|
|
@@ -14,11 +14,11 @@ amis_schema: |-
|
|
|
14
14
|
"actionType": "dialog",
|
|
15
15
|
"dialog": {
|
|
16
16
|
"type": "dialog",
|
|
17
|
-
"title": "
|
|
17
|
+
"title": "${'CustomLabels.objects_actions_reset_dialog_title_prefix' | t} ${record.label}",
|
|
18
18
|
"body": [
|
|
19
19
|
{
|
|
20
20
|
"type": "tpl",
|
|
21
|
-
"tpl": "
|
|
21
|
+
"tpl": "${'CustomLabels.objects_actions_reset_dialog_content' | t}",
|
|
22
22
|
"inline": true,
|
|
23
23
|
"id": "u:6d0819fc0bda"
|
|
24
24
|
}
|
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.82",
|
|
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.82",
|
|
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": "cf3a9120e6ae74f435ca7a7f5272f0a7e1e428ee"
|
|
21
21
|
}
|
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
module.exports = {
|
|
2
|
-
|
|
3
|
-
design_field_layout: function(object_name, record_id, item_element) {
|
|
4
|
-
var record = this.record || Creator.getObjectById(record_id);
|
|
5
|
-
if (record && record.record) {
|
|
6
|
-
record = record.record;
|
|
7
|
-
}
|
|
8
|
-
if (!record) {
|
|
9
|
-
return toastr.error("未找到记录");
|
|
10
|
-
}
|
|
11
|
-
|
|
12
|
-
window.open(Steedos.getRelativeUrl("/api/page/view/design_field_layout?designObjectName=" + record.name));
|
|
13
|
-
},
|
|
14
|
-
design_field_layoutVisible: function(object_name, record_id, record_permissions, data) {
|
|
15
|
-
var record = data && data.record;
|
|
16
|
-
if (!Steedos.isSpaceAdmin()) {
|
|
17
|
-
return false
|
|
18
|
-
}
|
|
19
|
-
if (!record) {
|
|
20
|
-
return false;
|
|
21
|
-
}
|
|
22
|
-
|
|
23
|
-
if (record && !record.is_deleted && record.name != 'users' && record.created) {
|
|
24
|
-
return true;
|
|
25
|
-
}
|
|
26
|
-
}
|
|
27
|
-
|
|
28
|
-
}
|