@steedos/standard-object-database 2.6.7 → 2.6.8-beta.3
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 +17 -1
- package/main/default/objectTranslations/object_fields.zh-CN/object_fields.zh-CN.objectTranslation.yml +17 -1
- package/main/default/objects/object_fields.object.yml +56 -1
- package/main/default/pages/object_fields_form.page.amis.json +1 -1
- package/main/default/pages/object_form.page.amis.json +7 -2
- package/package.json +4 -4
package/main/default/objectTranslations/object_fields.en/object_fields.en.objectTranslation.yml
CHANGED
|
@@ -29,7 +29,7 @@ fields:
|
|
|
29
29
|
value: text
|
|
30
30
|
- label: Textarea
|
|
31
31
|
value: textarea
|
|
32
|
-
- label:
|
|
32
|
+
- label: Rich text
|
|
33
33
|
value: html
|
|
34
34
|
- label: Code
|
|
35
35
|
value: code
|
|
@@ -163,6 +163,22 @@ fields:
|
|
|
163
163
|
label: Description
|
|
164
164
|
help:
|
|
165
165
|
description:
|
|
166
|
+
auto_fill_mapping:
|
|
167
|
+
label: Auto Fill Mapping
|
|
168
|
+
help: When the data is selected, the field values in the reference object are automatically filled into the current form field according to the following mapping.
|
|
169
|
+
description:
|
|
170
|
+
auto_fill_mapping.$:
|
|
171
|
+
label: Auto Fill Mapping
|
|
172
|
+
help:
|
|
173
|
+
description:
|
|
174
|
+
auto_fill_mapping.$.from:
|
|
175
|
+
label: From:Fields in object that reference to
|
|
176
|
+
help:
|
|
177
|
+
description:
|
|
178
|
+
auto_fill_mapping.$.to:
|
|
179
|
+
label: To:Fields in the current form
|
|
180
|
+
help:
|
|
181
|
+
description:
|
|
166
182
|
autonumber_enable_modify:
|
|
167
183
|
label: Allow modification of numbers
|
|
168
184
|
help:
|
|
@@ -30,7 +30,7 @@ fields:
|
|
|
30
30
|
value: text
|
|
31
31
|
- label: 长文本
|
|
32
32
|
value: textarea
|
|
33
|
-
- label:
|
|
33
|
+
- label: 富文本
|
|
34
34
|
value: html
|
|
35
35
|
- label: 代码
|
|
36
36
|
value: code
|
|
@@ -155,6 +155,22 @@ fields:
|
|
|
155
155
|
label: 描述
|
|
156
156
|
help:
|
|
157
157
|
description:
|
|
158
|
+
auto_fill_mapping:
|
|
159
|
+
label: 自动填充规则
|
|
160
|
+
help: 选择数据后,将按以下映射关系将引用对象中的字段值自动填充到当前表单字段中。
|
|
161
|
+
description:
|
|
162
|
+
auto_fill_mapping.$:
|
|
163
|
+
label: 自动填充规则
|
|
164
|
+
help:
|
|
165
|
+
description:
|
|
166
|
+
auto_fill_mapping.$.from:
|
|
167
|
+
label: 从:引用对象中的字段
|
|
168
|
+
help:
|
|
169
|
+
description:
|
|
170
|
+
auto_fill_mapping.$.to:
|
|
171
|
+
label: 填充到:当前表单字段
|
|
172
|
+
help:
|
|
173
|
+
description:
|
|
158
174
|
autonumber_enable_modify:
|
|
159
175
|
label: 允许修改编号
|
|
160
176
|
help:
|
|
@@ -448,6 +448,14 @@ fields:
|
|
|
448
448
|
amis:
|
|
449
449
|
showIndex: true
|
|
450
450
|
disabledOn: "${is_system == true}"
|
|
451
|
+
inlineEditMode: true
|
|
452
|
+
columns:
|
|
453
|
+
- label
|
|
454
|
+
- value
|
|
455
|
+
- name: color
|
|
456
|
+
width: 170
|
|
457
|
+
- name: description
|
|
458
|
+
width: 300
|
|
451
459
|
options.$:
|
|
452
460
|
label: Options
|
|
453
461
|
blackbox: true
|
|
@@ -468,6 +476,51 @@ fields:
|
|
|
468
476
|
label: Description
|
|
469
477
|
type: text
|
|
470
478
|
required: false
|
|
479
|
+
auto_fill_mapping:
|
|
480
|
+
type: table
|
|
481
|
+
label: Auto Fill Mapping
|
|
482
|
+
is_wide: true
|
|
483
|
+
inlineHelpText: When the data is selected, the field values in the reference object are automatically filled into the current form field according to the following mapping.
|
|
484
|
+
visible_on: "{{formData.type === 'lookup' || formData.type === 'master_detail'}}"
|
|
485
|
+
sort_no: 280
|
|
486
|
+
amis:
|
|
487
|
+
disabledOn: "${is_system == true}"
|
|
488
|
+
auto_fill_mapping.$:
|
|
489
|
+
label: Auto Fill Mapping
|
|
490
|
+
blackbox: true
|
|
491
|
+
type: object
|
|
492
|
+
auto_fill_mapping.$.from:
|
|
493
|
+
label: From:Fields in object that reference to
|
|
494
|
+
type: lookup
|
|
495
|
+
reference_to: object_fields
|
|
496
|
+
reference_to_field: name
|
|
497
|
+
required: true
|
|
498
|
+
depend_on:
|
|
499
|
+
- reference_to
|
|
500
|
+
filtersFunction: !<tag:yaml.org,2002:js/function> |-
|
|
501
|
+
function (filters, values) {
|
|
502
|
+
if(values && values.reference_to){
|
|
503
|
+
return ['object', '=', values.reference_to]
|
|
504
|
+
}else{
|
|
505
|
+
return ['_id', '=', 'no']
|
|
506
|
+
}
|
|
507
|
+
}
|
|
508
|
+
auto_fill_mapping.$.to:
|
|
509
|
+
label: To:Fields in the current form
|
|
510
|
+
type: lookup
|
|
511
|
+
reference_to: object_fields
|
|
512
|
+
reference_to_field: name
|
|
513
|
+
required: true
|
|
514
|
+
depend_on:
|
|
515
|
+
- object
|
|
516
|
+
filtersFunction: !<tag:yaml.org,2002:js/function> |-
|
|
517
|
+
function (filters, values) {
|
|
518
|
+
if(values && values.object){
|
|
519
|
+
return ['object', '=', values.object]
|
|
520
|
+
}else{
|
|
521
|
+
return ['_id', '=', 'no']
|
|
522
|
+
}
|
|
523
|
+
}
|
|
471
524
|
formula_blank_value:
|
|
472
525
|
type: select
|
|
473
526
|
label: Blank Field Handling
|
|
@@ -586,7 +639,7 @@ fields:
|
|
|
586
639
|
sort_no: 320
|
|
587
640
|
summary_filters:
|
|
588
641
|
label: Filter Criteria
|
|
589
|
-
type: '
|
|
642
|
+
type: 'table'
|
|
590
643
|
inlineHelpText: Only records meeting certain criteria should be included in the calculation, all records should be included in the calculation while the criteria is empty.
|
|
591
644
|
is_wide: true
|
|
592
645
|
depend_on:
|
|
@@ -595,6 +648,8 @@ fields:
|
|
|
595
648
|
sort_no: 330
|
|
596
649
|
amis:
|
|
597
650
|
disabledOn: "${is_system == true}"
|
|
651
|
+
inlineEditMode: true
|
|
652
|
+
showIndex: true
|
|
598
653
|
summary_filters.$:
|
|
599
654
|
label: Filter Criteria
|
|
600
655
|
blackbox: true
|
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
"className": "",
|
|
11
11
|
"enableTabs": true,
|
|
12
12
|
"mode": "edit",
|
|
13
|
-
"layout": "
|
|
13
|
+
"layout": "horizontal",
|
|
14
14
|
"apiRequestAdaptor": "console.log('api.data.query===', api.data.query);api.data.query = api.data.query.replace('objects__update', 'objects__upsert')",
|
|
15
15
|
"submitSuccActions": [
|
|
16
16
|
{
|
|
@@ -21,7 +21,12 @@
|
|
|
21
21
|
"position": "top-right"
|
|
22
22
|
}
|
|
23
23
|
}
|
|
24
|
-
]
|
|
24
|
+
],
|
|
25
|
+
"fieldsExtend": {
|
|
26
|
+
"compactLayouts": {
|
|
27
|
+
"label": ""
|
|
28
|
+
}
|
|
29
|
+
}
|
|
25
30
|
}
|
|
26
31
|
],
|
|
27
32
|
"data": {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@steedos/standard-object-database",
|
|
3
|
-
"version": "2.6.
|
|
3
|
+
"version": "2.6.8-beta.3",
|
|
4
4
|
"main": "package.service.js",
|
|
5
5
|
"private": false,
|
|
6
6
|
"publishConfig": {
|
|
@@ -12,10 +12,10 @@
|
|
|
12
12
|
"description": "steedos package",
|
|
13
13
|
"dependencies": {
|
|
14
14
|
"@steedos-widgets/amis-lib": "^1.0.22",
|
|
15
|
-
"@steedos/metadata-core": "2.6.
|
|
16
|
-
"@steedos/standard-objects": "2.6.
|
|
15
|
+
"@steedos/metadata-core": "2.6.8-beta.3",
|
|
16
|
+
"@steedos/standard-objects": "2.6.8-beta.3"
|
|
17
17
|
},
|
|
18
18
|
"repository": {},
|
|
19
19
|
"license": "MIT",
|
|
20
|
-
"gitHead": "
|
|
20
|
+
"gitHead": "fc0c3488501254ec402e770673de858e8d76df5a"
|
|
21
21
|
}
|