@steedos/standard-object-database 2.5.4 → 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/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/objects/object_fields.object.yml +48 -0
- 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:
|
|
@@ -94,6 +94,27 @@ 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: 语言
|
|
@@ -619,6 +640,33 @@ fields:
|
|
|
619
640
|
# group: Advanced
|
|
620
641
|
visible_on: "{{['autonumber','summary','formula'].indexOf(formData.type) > -1 ? false: true}}"
|
|
621
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}"
|
|
622
670
|
is_wide:
|
|
623
671
|
type: boolean
|
|
624
672
|
label: Is Wide
|
|
@@ -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
|
}
|