@steedos/standard-object-database 2.5.3-beta.9 → 2.5.5-beta.1
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/datasources.en/datasources.en.objectTranslation.yml +1 -1
- package/main/default/objectTranslations/object_fields.en/object_fields.en.objectTranslation.yml +9 -0
- package/main/default/objectTranslations/object_fields.zh-CN/object_fields.zh-CN.objectTranslation.yml +9 -0
- package/main/default/objectTranslations/object_triggers.en/object_triggers.en.objectTranslation.yml +1 -1
- package/main/default/objectTranslations/object_validation_rules.en/object_validation_rules.en.objectTranslation.yml +1 -1
- package/main/default/objectTranslations/objects.en/objects.en.objectTranslation.yml +7 -7
- package/main/default/objects/object_fields.object.yml +50 -1
- package/main/default/objects/object_listviews.object.yml +1 -1
- package/main/default/objects/object_related_list.object.yml +1 -1
- package/main/default/objects/objects.object.yml +7 -0
- package/main/default/pages/object_detail.page.amis.json +12 -12
- package/main/default/triggers/objects.trigger.js +5 -0
- package/package.json +2 -2
package/main/default/objectTranslations/object_fields.en/object_fields.en.objectTranslation.yml
CHANGED
|
@@ -256,6 +256,15 @@ fields:
|
|
|
256
256
|
label: Required
|
|
257
257
|
help:
|
|
258
258
|
description:
|
|
259
|
+
deleted_lookup_record_behavior:
|
|
260
|
+
label: What to do if the lookup record is deleted?
|
|
261
|
+
help:
|
|
262
|
+
description:
|
|
263
|
+
options:
|
|
264
|
+
- label: Clear the value of this field. You can't choose this option if you make this field required.
|
|
265
|
+
value: clear
|
|
266
|
+
- label: Don't allow deletion of the lookup record that's part of a lookup relationship.
|
|
267
|
+
value: retain
|
|
259
268
|
is_wide:
|
|
260
269
|
label: Is Wide
|
|
261
270
|
help:
|
|
@@ -236,6 +236,15 @@ fields:
|
|
|
236
236
|
label: 必填
|
|
237
237
|
help:
|
|
238
238
|
description:
|
|
239
|
+
deleted_lookup_record_behavior:
|
|
240
|
+
label: 如果相关表记录被删除怎么办?
|
|
241
|
+
help:
|
|
242
|
+
description:
|
|
243
|
+
options:
|
|
244
|
+
- label: 清除此字段的值。 如果您将此字段设为必填,您不能选择此选项。
|
|
245
|
+
value: clear
|
|
246
|
+
- label: 不允许删除"作为相关表关系的一部分的相关表记录"。
|
|
247
|
+
value: retain
|
|
239
248
|
is_wide:
|
|
240
249
|
label: 宽字段
|
|
241
250
|
help:
|
|
@@ -127,7 +127,7 @@ fields:
|
|
|
127
127
|
help:
|
|
128
128
|
description:
|
|
129
129
|
owner:
|
|
130
|
-
label:
|
|
130
|
+
label: Owner
|
|
131
131
|
help:
|
|
132
132
|
description:
|
|
133
133
|
app_unique_id:
|
|
@@ -147,7 +147,7 @@ fields:
|
|
|
147
147
|
help:
|
|
148
148
|
description:
|
|
149
149
|
is_deleted:
|
|
150
|
-
label:
|
|
150
|
+
label: Deleted
|
|
151
151
|
help:
|
|
152
152
|
description:
|
|
153
153
|
reload_time:
|
|
@@ -198,7 +198,7 @@ groups:
|
|
|
198
198
|
script: Script
|
|
199
199
|
listviews:
|
|
200
200
|
all:
|
|
201
|
-
label: All
|
|
201
|
+
label: All Objects
|
|
202
202
|
customize:
|
|
203
203
|
label: Customize
|
|
204
204
|
system:
|
|
@@ -215,7 +215,7 @@ actions:
|
|
|
215
215
|
CustomLabels:
|
|
216
216
|
objects_field_datasource_defaultValue: Default data source
|
|
217
217
|
objects_field_datasource_meteor: Meteor
|
|
218
|
-
objects_field_enable_approvals:
|
|
219
|
-
objects_field_enable_space_global:
|
|
220
|
-
objects_field_enable_web_forms:
|
|
221
|
-
object_object__error_name_invalid_format:
|
|
218
|
+
objects_field_enable_approvals: Display Request History Steps
|
|
219
|
+
objects_field_enable_space_global: Accessing Data Across Workspaces
|
|
220
|
+
objects_field_enable_web_forms: Allow Online Forms
|
|
221
|
+
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
|
|
@@ -94,10 +94,32 @@ fields:
|
|
|
94
94
|
- label: 累计汇总
|
|
95
95
|
value: summary
|
|
96
96
|
sort_no: 150
|
|
97
|
+
amis:
|
|
98
|
+
onEvent:
|
|
99
|
+
change:
|
|
100
|
+
weight: 0
|
|
101
|
+
actions:
|
|
102
|
+
- componentId: 'u:6a556d8a8514'
|
|
103
|
+
args:
|
|
104
|
+
value: '${"lookup"=== type}'
|
|
105
|
+
actionType: visibility
|
|
106
|
+
- componentId: 'u:6a556d8a8514'
|
|
107
|
+
args:
|
|
108
|
+
value: clear
|
|
109
|
+
groupType: component
|
|
110
|
+
actionType: setValue
|
|
111
|
+
expression: '${"lookup"=== type && required!=true}'
|
|
112
|
+
- componentId: 'u:6a556d8a8514'
|
|
113
|
+
args:
|
|
114
|
+
value: retain
|
|
115
|
+
groupType: component
|
|
116
|
+
actionType: setValue
|
|
117
|
+
expression: '${"lookup"=== type && required==true}'
|
|
97
118
|
language:
|
|
98
119
|
type: select
|
|
99
120
|
label: 语言
|
|
100
|
-
|
|
121
|
+
required: "{{['code'].indexOf(formData.type) > -1 ? true: false}}"
|
|
122
|
+
# defaultValue: javascript
|
|
101
123
|
options:
|
|
102
124
|
- label: bat
|
|
103
125
|
value: bat
|
|
@@ -618,6 +640,33 @@ fields:
|
|
|
618
640
|
# group: Advanced
|
|
619
641
|
visible_on: "{{['autonumber','summary','formula'].indexOf(formData.type) > -1 ? false: true}}"
|
|
620
642
|
sort_no: 390
|
|
643
|
+
amis:
|
|
644
|
+
onEvent:
|
|
645
|
+
change:
|
|
646
|
+
weight: 0
|
|
647
|
+
actions:
|
|
648
|
+
- componentId: 'u:6a556d8a8514'
|
|
649
|
+
args:
|
|
650
|
+
value: retain
|
|
651
|
+
groupType: component
|
|
652
|
+
actionType: setValue
|
|
653
|
+
expression: '${"lookup"=== type && required==true}'
|
|
654
|
+
deleted_lookup_record_behavior:
|
|
655
|
+
type: select
|
|
656
|
+
label: 如果相关表记录被删除怎么办?
|
|
657
|
+
required: true
|
|
658
|
+
visible_on: "{{ 'lookup' === formData.type ? true: false }}"
|
|
659
|
+
options:
|
|
660
|
+
- label: 清除此字段的值。 如果您将此字段设为必填,您不能选择此选项。
|
|
661
|
+
value: clear
|
|
662
|
+
- label: 不允许删除"作为相关表关系的一部分的相关表记录"。
|
|
663
|
+
value: retain
|
|
664
|
+
sort_no: 395
|
|
665
|
+
is_wide: true
|
|
666
|
+
defaultValue: clear
|
|
667
|
+
amis:
|
|
668
|
+
"id": "u:6a556d8a8514"
|
|
669
|
+
"disabledOn": "${required==true}"
|
|
621
670
|
is_wide:
|
|
622
671
|
type: boolean
|
|
623
672
|
label: Is Wide
|
|
@@ -28,10 +28,12 @@ fields:
|
|
|
28
28
|
required: true
|
|
29
29
|
is_name: true
|
|
30
30
|
searchable: true
|
|
31
|
+
filterable: true
|
|
31
32
|
name:
|
|
32
33
|
type: text
|
|
33
34
|
label: API Name
|
|
34
35
|
searchable: true
|
|
36
|
+
filterable: true
|
|
35
37
|
index: true
|
|
36
38
|
required: true
|
|
37
39
|
inlineHelpText: Can only contain lowercase letters and numbers, must start with a letter, cannot end with an underscore character or contain two consecutive underscore characters
|
|
@@ -131,6 +133,11 @@ fields:
|
|
|
131
133
|
inlineHelpText: When enabled, the lookup field associated with this object displays its options as a pop-up window.
|
|
132
134
|
group: Switch
|
|
133
135
|
defaultValue: false
|
|
136
|
+
# enable_audit:
|
|
137
|
+
# type: boolean
|
|
138
|
+
# label: Enable Audit
|
|
139
|
+
# group: Switch
|
|
140
|
+
# hidden: true
|
|
134
141
|
# enable_trash:
|
|
135
142
|
# type: boolean
|
|
136
143
|
# enable_space_global:
|
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
"type": "tabs",
|
|
13
13
|
"tabs": [
|
|
14
14
|
{
|
|
15
|
-
"title": "
|
|
15
|
+
"title": "${'objects_amis_details' | t}",
|
|
16
16
|
"body": [
|
|
17
17
|
{
|
|
18
18
|
"type": "steedos-object-form",
|
|
@@ -27,7 +27,7 @@
|
|
|
27
27
|
"id": "u:b2fbc13aabb8"
|
|
28
28
|
},
|
|
29
29
|
{
|
|
30
|
-
"title": "
|
|
30
|
+
"title": "${'objects_amis_field' | t}",
|
|
31
31
|
"body": [
|
|
32
32
|
{
|
|
33
33
|
"type": "steedos-object-related-listview",
|
|
@@ -42,7 +42,7 @@
|
|
|
42
42
|
"id": "u:f1a52545b642"
|
|
43
43
|
},
|
|
44
44
|
{
|
|
45
|
-
"title": "
|
|
45
|
+
"title": "${'objects_amis_list_view' | t}",
|
|
46
46
|
"body": [
|
|
47
47
|
{
|
|
48
48
|
"type": "steedos-object-related-listview",
|
|
@@ -56,7 +56,7 @@
|
|
|
56
56
|
"id": "u:df900c5f2119"
|
|
57
57
|
},
|
|
58
58
|
{
|
|
59
|
-
"title": "
|
|
59
|
+
"title": "${'objects_amis_action_button' | t}",
|
|
60
60
|
"body": [
|
|
61
61
|
{
|
|
62
62
|
"type": "steedos-object-related-listview",
|
|
@@ -70,7 +70,7 @@
|
|
|
70
70
|
"id": "u:d75b105f6d02"
|
|
71
71
|
},
|
|
72
72
|
{
|
|
73
|
-
"title": "
|
|
73
|
+
"title": "${'objects_amis_object_page' | t}",
|
|
74
74
|
"body": [
|
|
75
75
|
{
|
|
76
76
|
"type": "steedos-object-related-listview",
|
|
@@ -85,7 +85,7 @@
|
|
|
85
85
|
"id": "u:d75b105f6d042"
|
|
86
86
|
},
|
|
87
87
|
{
|
|
88
|
-
"title": "
|
|
88
|
+
"title": "${'objects_amis_page_layout' | t}",
|
|
89
89
|
"body": [
|
|
90
90
|
{
|
|
91
91
|
"type": "steedos-object-related-listview",
|
|
@@ -99,7 +99,7 @@
|
|
|
99
99
|
"id": "u:ee4ab13a92e6"
|
|
100
100
|
},
|
|
101
101
|
{
|
|
102
|
-
"title": "
|
|
102
|
+
"title": "${'objects_amis_object_permission' | t}",
|
|
103
103
|
"body": [
|
|
104
104
|
{
|
|
105
105
|
"type": "steedos-object-related-listview",
|
|
@@ -112,7 +112,7 @@
|
|
|
112
112
|
]
|
|
113
113
|
},
|
|
114
114
|
{
|
|
115
|
-
"title": "
|
|
115
|
+
"title": "${'objects_amis_trigger' | t}",
|
|
116
116
|
"body": [
|
|
117
117
|
{
|
|
118
118
|
"type": "steedos-object-related-listview",
|
|
@@ -125,7 +125,7 @@
|
|
|
125
125
|
]
|
|
126
126
|
},
|
|
127
127
|
{
|
|
128
|
-
"title": "
|
|
128
|
+
"title": "${'objects_amis_process_mapping' | t}",
|
|
129
129
|
"body": [
|
|
130
130
|
{
|
|
131
131
|
"type": "steedos-object-related-listview",
|
|
@@ -139,7 +139,7 @@
|
|
|
139
139
|
"id": "u:cbc13e1a7033"
|
|
140
140
|
},
|
|
141
141
|
{
|
|
142
|
-
"title": "
|
|
142
|
+
"title": "${'objects_amis_validation_rule' | t}",
|
|
143
143
|
"body": [
|
|
144
144
|
{
|
|
145
145
|
"type": "steedos-object-related-listview",
|
|
@@ -151,7 +151,7 @@
|
|
|
151
151
|
]
|
|
152
152
|
},
|
|
153
153
|
{
|
|
154
|
-
"title": "
|
|
154
|
+
"title": "${'objects_amis_limitation_rule' | t}",
|
|
155
155
|
"body": [
|
|
156
156
|
{
|
|
157
157
|
"type": "steedos-object-related-listview",
|
|
@@ -164,7 +164,7 @@
|
|
|
164
164
|
]
|
|
165
165
|
},
|
|
166
166
|
{
|
|
167
|
-
"title": "
|
|
167
|
+
"title": "${'objects_amis_sharing_rule' | t}",
|
|
168
168
|
"body": [
|
|
169
169
|
{
|
|
170
170
|
"type": "steedos-object-related-listview",
|
|
@@ -3,6 +3,8 @@ const _ = require('underscore');
|
|
|
3
3
|
const objectql = require('@steedos/objectql');
|
|
4
4
|
const objectTree = require('../objects/objects.tree.js');
|
|
5
5
|
|
|
6
|
+
const sleep = async (ms) => new Promise(resolve => setTimeout(resolve, ms));
|
|
7
|
+
|
|
6
8
|
module.exports = {
|
|
7
9
|
beforeFind: async function () {
|
|
8
10
|
delete this.query.fields;
|
|
@@ -97,6 +99,7 @@ module.exports = {
|
|
|
97
99
|
// }],
|
|
98
100
|
// space: this.spaceId
|
|
99
101
|
// })
|
|
102
|
+
await sleep(1000 * 2)
|
|
100
103
|
},
|
|
101
104
|
beforeUpdate: async function () {
|
|
102
105
|
const { doc, id, object_name } = this;
|
|
@@ -140,5 +143,7 @@ module.exports = {
|
|
|
140
143
|
await datasource.renameCollection(newObjName, oldObjName)
|
|
141
144
|
}
|
|
142
145
|
*/
|
|
146
|
+
|
|
147
|
+
await sleep(1000 * 2)
|
|
143
148
|
}
|
|
144
149
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@steedos/standard-object-database",
|
|
3
|
-
"version": "2.5.
|
|
3
|
+
"version": "2.5.5-beta.1",
|
|
4
4
|
"main": "package.service.js",
|
|
5
5
|
"private": false,
|
|
6
6
|
"publishConfig": {
|
|
@@ -15,5 +15,5 @@
|
|
|
15
15
|
},
|
|
16
16
|
"repository": {},
|
|
17
17
|
"license": "MIT",
|
|
18
|
-
"gitHead": "
|
|
18
|
+
"gitHead": "2d9b97fbe49148c4440eaf3d127e3344f10caede"
|
|
19
19
|
}
|