@steedos/standard-object-database 2.4.0-beta.23 → 2.4.0-beta.25

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.
@@ -13,22 +13,6 @@ fields:
13
13
  label: Object
14
14
  create: false
15
15
  sort_no: 110
16
- optionsFunction: !<tag:yaml.org,2002:js/function> |-
17
- function () {
18
- var _options;
19
-
20
- _options = [];
21
-
22
- _.forEach(Creator.objectsByName, function (o, k) {
23
- return _options.push({
24
- label: o.label,
25
- value: k,
26
- icon: o.icon
27
- });
28
- });
29
-
30
- return _options;
31
- }
32
16
  label:
33
17
  type: text
34
18
  label: Label
@@ -14,24 +14,7 @@ fields:
14
14
  reference_to_field: name
15
15
  required: true
16
16
  write_requires_master_read: true
17
- optionsFunction: !<tag:yaml.org,2002:js/function> |-
18
- function () {
19
- var _options;
20
-
21
- _options = [];
22
-
23
- _.forEach(Creator.objectsByName, function (o, k) {
24
- if(!['base','core','space_users_invite','_object_reload_logs'].includes(k)){
25
- return _options.push({
26
- label: o.label,
27
- value: k,
28
- icon: o.icon
29
- });
30
- }
31
- });
32
-
33
- return _options;
34
- }
17
+ filters: ['name', 'notcontains', ['base','core','space_users_invite','_object_reload_logs']]
35
18
  sort_no: 110
36
19
  label:
37
20
  type: text
@@ -124,10 +107,6 @@ fields:
124
107
  label: Reference to
125
108
  reference_to: objects
126
109
  reference_to_field: name
127
- optionsFunction: !<tag:yaml.org,2002:js/function> |-
128
- function () {
129
- return Steedos.getObjectsOptions();
130
- }
131
110
  visible_on: "{{['lookup', 'master_detail'].indexOf(formData.type) > -1 ? true: false}}"
132
111
  required: "{{['master_detail'].indexOf(formData.type) > -1 ? true: false}}"
133
112
  sort_no: 180
@@ -16,6 +16,7 @@ module.exports = {
16
16
  customizeVisible: function(object_name, record_id, record_permissions, record){
17
17
  return Creator.baseObject.actions.standard_new.visible() && record.is_system;
18
18
  },
19
+ /*
19
20
  standard_new: function (object_name, record_id, fields){
20
21
  var object = Creator.getObject(object_name);
21
22
  var gridName = this.action.gridName;
@@ -48,6 +49,7 @@ module.exports = {
48
49
  });
49
50
  }
50
51
  },
52
+ */
51
53
  /*
52
54
  standard_edit: function (object_name, record_id, fields){
53
55
  var object = Creator.getObject(object_name);
@@ -22,18 +22,6 @@ fields:
22
22
  reference_to: objects
23
23
  reference_to_field: name
24
24
  write_requires_master_read: true
25
- optionsFunction: !<tag:yaml.org,2002:js/function> |-
26
- function () {
27
- var _options = [];
28
- _.forEach(Creator.objectsByName, function (o, k) {
29
- return _options.push({
30
- label: o.label,
31
- value: k,
32
- icon: o.icon
33
- });
34
- });
35
- return _options;
36
- }
37
25
  type:
38
26
  type: select
39
27
  options:
@@ -22,22 +22,6 @@ fields:
22
22
  required: true
23
23
  reference_to: objects
24
24
  reference_to_field: name
25
- optionsFunction: !<tag:yaml.org,2002:js/function> |-
26
- function () {
27
- var _options;
28
-
29
- _options = [];
30
-
31
- _.forEach(Creator.objectsByName, function (o, k) {
32
- return _options.push({
33
- label: o.label,
34
- value: k,
35
- icon: o.icon
36
- });
37
- });
38
-
39
- return _options;
40
- }
41
25
  filter_scope:
42
26
  label: Filter Scope
43
27
  type: select
@@ -9,22 +9,6 @@ fields:
9
9
  required: true
10
10
  reference_to: objects
11
11
  reference_to_field: name
12
- optionsFunction: !<tag:yaml.org,2002:js/function> |-
13
- function () {
14
- var _options;
15
-
16
- _options = [];
17
-
18
- _.forEach(Creator.objectsByName, function (o, k) {
19
- return _options.push({
20
- label: o.label,
21
- value: k,
22
- icon: o.icon
23
- });
24
- });
25
-
26
- return _options;
27
- }
28
12
  objectName:
29
13
  label: Related Object
30
14
  type: lookup
@@ -18,22 +18,6 @@ fields:
18
18
  reference_to: objects
19
19
  reference_to_field: name
20
20
  required: true
21
- optionsFunction: !<tag:yaml.org,2002:js/function> |-
22
- function () {
23
- var _options;
24
-
25
- _options = [];
26
-
27
- _.forEach(Creator.objectsByName, function (o, k) {
28
- return _options.push({
29
- label: o.label,
30
- value: k,
31
- icon: o.icon
32
- });
33
- });
34
-
35
- return _options;
36
- }
37
21
  # on:
38
22
  # label: 运行于
39
23
  # type: lookup
@@ -16,10 +16,6 @@ fields:
16
16
  write_requires_master_read: true
17
17
  reference_to_field: name
18
18
  required: true
19
- optionsFunction: !<tag:yaml.org,2002:js/function> |-
20
- function () {
21
- return Steedos.getObjectsOptions();
22
- }
23
19
 
24
20
  active:
25
21
  type: boolean
@@ -0,0 +1,192 @@
1
+ {
2
+ "type": "page",
3
+ "body": [
4
+ {
5
+ "type": "steedos-record-detail-header",
6
+ "label": "标题面板",
7
+ "objectApiName": "${objectName}",
8
+ "recordId": "${recordId}",
9
+ "onEvent": {
10
+ "recordLoaded": {
11
+ "actions": [
12
+ {
13
+ "actionType": "setValue",
14
+ "args": {
15
+ "value": {
16
+ "recordLoaded": true
17
+ }
18
+ }
19
+ },
20
+ {
21
+ "actionType": "reload",
22
+ "data": {
23
+ "name": "${record.label}",
24
+ "record": "${record}",
25
+ "recordLoaded": true
26
+ }
27
+ }
28
+ ]
29
+ }
30
+ },
31
+ "id": "u:bc56cf9d43bc"
32
+ },
33
+ {
34
+ "type": "tabs",
35
+ "tabs": [
36
+ {
37
+ "title": "详情",
38
+ "body": [
39
+ {
40
+ "type": "steedos-object-form",
41
+ "label": "对象表单",
42
+ "mode": "read",
43
+ "objectApiName": "${objectName}",
44
+ "recordId": "${recordId}",
45
+ "labelAlign": "left",
46
+ "id": "u:4eb5fa6f6fad"
47
+ }
48
+ ],
49
+ "id": "u:b2fbc13aabb8"
50
+ },
51
+ {
52
+ "title": "对象字段",
53
+ "body": [
54
+ {
55
+ "type": "steedos-object-related-listview",
56
+ "objectApiName": "objects",
57
+ "recordId": "${recordId}",
58
+ "relatedObjectApiName": "object_fields",
59
+ "id": "u:6bef459155bd",
60
+ "top": 2000
61
+ }
62
+ ],
63
+ "id": "u:f1a52545b642"
64
+ },
65
+ {
66
+ "title": "列表视图",
67
+ "body": [
68
+ {
69
+ "type": "steedos-object-related-listview",
70
+ "objectApiName": "objects",
71
+ "recordId": "${recordId}",
72
+ "relatedObjectApiName": "object_listviews",
73
+ "id": "u:c415f75c5557",
74
+ "perPage": 20
75
+ }
76
+ ],
77
+ "id": "u:df900c5f2119"
78
+ },
79
+ {
80
+ "title": "操作按钮",
81
+ "body": [
82
+ {
83
+ "type": "steedos-object-related-listview",
84
+ "objectApiName": "objects",
85
+ "recordId": "${recordId}",
86
+ "relatedObjectApiName": "object_actions",
87
+ "perPage": 20,
88
+ "id": "u:e1a8b77a140c"
89
+ }
90
+ ],
91
+ "id": "u:d75b105f6d02"
92
+ },
93
+ {
94
+ "title": "页面布局",
95
+ "body": [
96
+ {
97
+ "type": "steedos-object-related-listview",
98
+ "objectApiName": "objects",
99
+ "recordId": "${recordId}",
100
+ "relatedObjectApiName": "object_layouts",
101
+ "id": "u:ed9559f8aa86",
102
+ "perPage": 20
103
+ }
104
+ ],
105
+ "id": "u:ee4ab13a92e6"
106
+ },
107
+ {
108
+ "title": "对象权限",
109
+ "body": [
110
+ {
111
+ "type": "steedos-object-related-listview",
112
+ "objectApiName": "objects",
113
+ "recordId": "${recordId}",
114
+ "relatedObjectApiName": "permission_objects",
115
+ "perPage": 20
116
+ }
117
+ ]
118
+ },
119
+ {
120
+ "title": "流程映射",
121
+ "body": [
122
+ {
123
+ "type": "steedos-object-related-listview",
124
+ "objectApiName": "objects",
125
+ "recordId": "${recordId}",
126
+ "relatedObjectApiName": "object_workflows",
127
+ "perPage": 20,
128
+ "id": "u:e14df76cfa51"
129
+ }
130
+ ],
131
+ "id": "u:cbc13e1a7033"
132
+ },
133
+ {
134
+ "title": "验证规则",
135
+ "body": [
136
+ {
137
+ "type": "steedos-object-related-listview",
138
+ "objectApiName": "objects",
139
+ "recordId": "${recordId}",
140
+ "relatedObjectApiName": "object_validation_rules",
141
+ "perPage": 20
142
+ }
143
+ ]
144
+ },
145
+ {
146
+ "title": "限制规则",
147
+ "body": [
148
+ {
149
+ "type": "steedos-object-related-listview",
150
+ "objectApiName": "objects",
151
+ "recordId": "${recordId}",
152
+ "relatedObjectApiName": "restriction_rules",
153
+ "perPage": 20
154
+ }
155
+ ]
156
+ },
157
+ {
158
+ "title": "共享规则",
159
+ "body": [
160
+ {
161
+ "type": "steedos-object-related-listview",
162
+ "objectApiName": "objects",
163
+ "recordId": "${recordId}",
164
+ "relatedObjectApiName": "share_rules",
165
+ "perPage": 20
166
+ }
167
+ ]
168
+ }
169
+ ],
170
+ "id": "u:6a3b45d7adcf",
171
+ "tabsMode": "vertical",
172
+ "className": "object-detail-tabs mt-3 bg-white border-b sm:shadow sm:rounded sm:border border-slate-300",
173
+ "toolbarClassName": "",
174
+ "linksClassName": "",
175
+ "contentClassName": "bg-white"
176
+ }
177
+ ],
178
+ "regions": [
179
+ "body"
180
+ ],
181
+ "data": {
182
+ "objectName": "objects",
183
+ "recordId": "contract_bidding_information",
184
+ "context": {
185
+ "rootUrl": "http://127.0.0.1:5200"
186
+ }
187
+ },
188
+ "id": "page_objects_record_detail",
189
+ "name": "page_objects_record_detail",
190
+ "bodyClassName": "",
191
+ "className": "object-detail-page"
192
+ }
@@ -0,0 +1,12 @@
1
+ name: object_detail
2
+ is_active: true
3
+ label: 对象详细页面
4
+ object_name: objects
5
+ pageAssignments:
6
+ - type: orgDefault
7
+ page: object_detail
8
+ desktop: true
9
+ mobile: true
10
+ render_engine: amis
11
+ type: record
12
+ widgets: []
@@ -254,6 +254,7 @@ fields:
254
254
  group: script
255
255
  blackbox: true
256
256
  is_wide: true
257
+ visible_on: "{{false}}"
257
258
  form.onRendered:
258
259
  type: code
259
260
  language: javascript
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@steedos/standard-object-database",
3
- "version": "2.4.0-beta.23",
3
+ "version": "2.4.0-beta.25",
4
4
  "main": "package.service.js",
5
5
  "private": false,
6
6
  "publishConfig": {
@@ -11,9 +11,9 @@
11
11
  ],
12
12
  "description": "steedos package",
13
13
  "dependencies": {
14
- "@steedos-widgets/amis-lib": "^1.0.20"
14
+ "@steedos-widgets/amis-lib": "^1.0.21"
15
15
  },
16
16
  "repository": {},
17
17
  "license": "MIT",
18
- "gitHead": "02fd9ceab1405e0eddbb1752882168f0f4d660f0"
18
+ "gitHead": "1a46fbee4dd51269a59dc80ff30fde5572679c3a"
19
19
  }