@steedos/service-core-objects 3.0.0-beta.37 → 3.0.0-beta.40

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.
@@ -172,7 +172,8 @@ fields:
172
172
  label: Customize
173
173
  groups:
174
174
  external_data_source: External data source
175
- switch: Switch
175
+ switch: Web Switch
176
+ feature: Feature toggle
176
177
  script: Script
177
178
  advanced: Advanced
178
179
  listviews:
@@ -53,7 +53,7 @@ fields:
53
53
  description:
54
54
  enable_form_tabs:
55
55
  label: 启用选项卡
56
- help: 在表单中以选项卡模式显示分组,只在编辑模式时识别该属性
56
+ help: 当对象拥有大量字段或需要分组归类时,默认使用分组模式,也可以切换为选项卡模式。
57
57
  description:
58
58
  enable_events:
59
59
  label: 允许添加日程
@@ -81,19 +81,19 @@ fields:
81
81
  description:
82
82
  enable_inline_edit:
83
83
  label: 允许编辑单个字段
84
- help:
84
+ help: 在列表页中直接对某些字段进行行内编辑,无需切换详情页即可完成快速录入或修改。
85
85
  description:
86
86
  enable_tree:
87
87
  label: 启用树状结构显示记录
88
- help: 当启用时,与此对象关联的查找字段将以树状结构的形式显示其选项。
88
+ help: 适用于存在层级关系或有父子关联的对象,让用户通过折叠、展开的方式查看数据层次。
89
89
  description:
90
90
  enable_enhanced_lookup:
91
91
  label: 启用弹出窗口查找模式
92
- help: 当启用时,与此对象关联的查找字段将以弹出窗口的形式显示其选项。
92
+ help: 当此对象被其他对象引用时,查找字段会以弹出窗口形式显示选项,便于在弹窗内快速搜索、筛选并选中所需数据。
93
93
  description:
94
94
  enable_split:
95
- label: 默认使用分栏视图
96
- help:
95
+ label: 启用分屏模式
96
+ help: 在列表页同时显示记录列表和所选记录的详情,实现快速切换、预览和编辑,常见于需要频繁查看多条记录的场景。
97
97
  description:
98
98
  enable_lock_detail:
99
99
  label: 锁定子表
@@ -171,7 +171,8 @@ fields:
171
171
  label: 自定义
172
172
  groups:
173
173
  external_data_source: 外部数据源
174
- switch: 界面
174
+ switch: 界面开关
175
+ feature: 功能开关
175
176
  advanced: 高级
176
177
  listviews:
177
178
  all:
@@ -5,6 +5,7 @@ hidden: true
5
5
  version: 2
6
6
  isMetadata: true
7
7
  enable_dataloader: false
8
+ enable_form_tabs: true
8
9
  fields:
9
10
  name:
10
11
  label: Name
@@ -80,23 +81,7 @@ fields:
80
81
  required: false
81
82
  group: Tabs
82
83
  visible_on: "{{global.mode ==='read' ? false : true}}"
83
- # tab_items.$:
84
- # label: Tabs
85
- # blackbox: true
86
- # type: object
87
- # tab_items.$.tab_name:
88
- # label: Tab Name
89
- # type: lookup
90
- # multiple: false
91
- # is_wide: false
92
- # required: true
93
- # reference_to: tabs
94
- # reference_to_field: name
95
- # tab_items.$.group:
96
- # label: Group
97
- # type: text
98
-
99
- # filterable: true
84
+ hidden: true
100
85
  is_creator:
101
86
  type: boolean
102
87
  label: Show this app for Desktop
@@ -117,7 +102,7 @@ fields:
117
102
  showSidebar:
118
103
  label: 显示左侧导航
119
104
  type: boolean
120
- defaultValue: false
105
+ defaultValue: true
121
106
 
122
107
  nav_schema:
123
108
  label: 自定义导航
@@ -145,12 +130,6 @@ fields:
145
130
  label: URL
146
131
  type: url
147
132
  group: External Application
148
- is_use_ie:
149
- type: boolean
150
- label: Open in IE (Using Steedos Desktop)
151
- defaultValue: false
152
- group: External Application
153
- filterable: true
154
133
  is_use_iframe:
155
134
  type: boolean
156
135
  label: Open with iframe
@@ -170,31 +149,20 @@ fields:
170
149
  rows: 2
171
150
  is_wide: true
172
151
  group: External Application
152
+ hidden: true
173
153
 
174
154
  auth_name:
175
155
  label: Auth Name
176
156
  type: text
177
157
  group: External Application
158
+ hidden: true
178
159
  secret:
179
160
  label: API Secret Key
180
161
  type: text
181
162
  max: 16
182
163
  min: 16
183
164
  group: External Application
184
- objects:
185
- label: Desktop Menu(Invalid)
186
- type: lookup
187
- multiple: true
188
- group: other
189
- reference_to: objects
190
- reference_to_field: name
191
- mobile_objects:
192
- label: Mobile Menus(Invalid)
193
- type: lookup
194
- multiple: true
195
- group: other
196
- reference_to: objects
197
- reference_to_field: name
165
+ hidden: true
198
166
  visible_on:
199
167
  name: visible_on
200
168
  is_wide: true
@@ -331,14 +299,6 @@ actions:
331
299
  reset:
332
300
  label: Reset
333
301
  on: record_only
334
- createOAuth2App:
335
- label: 创建 OAuth 应用
336
- on: list
337
- sort: 180
338
- standard_edit:
339
- visible: false
340
- standard_new:
341
- visible: false
342
302
  list_views:
343
303
  all:
344
304
  label: All Apps
@@ -24,3 +24,4 @@ reference_to: object_fields
24
24
  reference_to_field: name
25
25
  sort_no: 120
26
26
  type: lookup
27
+ inlineHelpText: 指定若干个字段显示在记录详情页的顶部,让用户第一时间就能看到关键数据。
@@ -1,6 +1,8 @@
1
1
  name: enable_chatter
2
- hidden: true
2
+ hidden: false
3
+ group: feature
3
4
  label: Enable Chatter
4
5
  sort_no: 300
5
6
  type: boolean
6
7
  visible_on: '{{false}}'
8
+ inlineHelpText: 允许用户在记录中进行评论或反馈,便于团队之间的协作和沟通
@@ -1,6 +1,6 @@
1
1
  name: enable_enhanced_lookup
2
2
  defaultValue: true
3
- group: advanced
3
+ group: switch
4
4
  hidden: false # 为兼容老版本魔方,不可以设置为true,只能用visible_on隐藏,否则前端拿不到该属性值,会造成老版本魔方升级后字段上未配置enable_enhanced_lookup的lookup字段默认不是弹出选择
5
5
  inlineHelpText: >-
6
6
  When enabled, the lookup field associated with this object displays its
@@ -8,4 +8,3 @@ inlineHelpText: >-
8
8
  label: Enable Enhanced Lookup
9
9
  sort_no: 230
10
10
  type: boolean
11
- visible_on: '{{false}}'
@@ -1,6 +1,7 @@
1
1
  name: enable_events
2
- group: switch
2
+ group: feature
3
3
  hidden: false
4
4
  label: Enable Events
5
5
  sort_no: 160
6
6
  type: boolean
7
+ inlineHelpText: 在对象记录层面关联日历事件,适合需要基于时间轴对事件或活动进行安排的场景。
@@ -1,6 +1,7 @@
1
1
  name: enable_files
2
- group: switch
2
+ group: feature
3
3
  hidden: false
4
4
  label: Enable Files
5
5
  sort_no: 130
6
6
  type: boolean
7
+ inlineHelpText: 允许在记录中上传和下载附件,适用于需要存储文档、图像、合同等文件的场景。
@@ -1,7 +1,8 @@
1
1
  name: enable_inline_edit
2
2
  defaultValue: true
3
- group: advanced
3
+ group: switch
4
4
  hidden: false
5
5
  label: Enable Single Field Edit
6
6
  sort_no: 210
7
7
  type: boolean
8
+ inlineHelpText: 在列表页中直接对某些字段进行行内编辑,无需切换详情页即可完成快速录入或修改。
@@ -1,9 +1,9 @@
1
1
  name: enable_lock_detail
2
2
  defaultValue: true
3
3
  filters: []
4
- group: advanced
4
+ group: feature
5
5
  hidden: false
6
- inlineHelpText: When the main watch is locked all sub tables are read only.
6
+ inlineHelpText: 当主表记录被锁定时,与之关联的子记录(子表)将只读。适合需要在特定阶段或节点对关联的数据做冻结的业务模式。
7
7
  label: Enable Lock Details
8
8
  sort_no: 220
9
9
  type: boolean
@@ -1,5 +1,5 @@
1
1
  name: enable_notes
2
- group: switch
2
+ group: feature
3
3
  hidden: false
4
4
  label: Enable Notes
5
5
  sort_no: 170
@@ -1,7 +1,8 @@
1
1
  name: enable_split
2
2
  defaultValue: false
3
- group: advanced
3
+ group: switch
4
4
  hidden: false
5
5
  label: Enable Split
6
6
  sort_no: 240
7
7
  type: boolean
8
+ inlineHelpText: 在列表页同时显示记录列表和所选记录的详情,实现快速切换、预览和编辑,常见于需要频繁查看多条记录的场景。
@@ -1,6 +1,7 @@
1
1
  name: enable_tasks
2
- group: switch
2
+ group: feature
3
3
  hidden: false
4
4
  label: Enable Tasks
5
5
  sort_no: 150
6
6
  type: boolean
7
+ inlineHelpText: 在对象记录层面关联任务,方便将后续工作跟踪在一起。
@@ -1,5 +1,5 @@
1
1
  name: enable_tree
2
- group: advanced
2
+ group: switch
3
3
  hidden: false
4
4
  inlineHelpText: Enable a tree structure to display records
5
5
  label: Enable Tree
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@steedos/service-core-objects",
3
- "version": "3.0.0-beta.37",
3
+ "version": "3.0.0-beta.40",
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.37",
13
+ "@steedos/service-package-loader": "3.0.0-beta.40",
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": "48d7235a946bc846886fca71a3520f761d4b170f"
20
+ "gitHead": "ec76285f37e717e2ac48077ea51665119dc5437a"
21
21
  }
@@ -1,5 +1,6 @@
1
1
  :root {
2
- --private: var(--colors-brand-5);
2
+ --tw-border-opacity: 1;
3
+ --private: rgb(14 165 233 / var(--tw-border-opacity));
3
4
  --primary-onHover: var(--colors-brand-9);
4
5
  }
5
6
 
@@ -81,8 +82,8 @@
81
82
  .steedos-apps-home .antd-Panel .antd-Panel-heading .antd-TplField{
82
83
  font-size: 16px;
83
84
  font-weight: 600;
84
- background: var(--private) !important;
85
- color: #fff;
85
+ background: #000000 !important;
86
+ color: #ffffff;
86
87
  padding: 0.45rem 1rem;
87
88
  border-radius: 6.7rem;
88
89
  }
@@ -94,7 +95,7 @@
94
95
 
95
96
 
96
97
  .steedos-apps-home .antd-Panel .antd-Panel-body .slds-app-launcher__tile-body .slds-link{
97
- color: var(--private) !important;
98
+ color: #000000 !important;
98
99
  font-weight: 600;
99
100
  }
100
101
 
@@ -112,13 +113,13 @@
112
113
  }
113
114
 
114
115
  .steedos-apps-home .antd-Panel .antd-Panel-body .app-item .slds-app-launcher__tile:hover{
115
- background: var(--primary-onHover);
116
+ background: #f5f5f5;
116
117
  }
117
118
 
118
- .steedos-apps-home .antd-Panel .antd-Panel-body .app-item.app-item-_add_admin .slds-app-launcher__tile{
119
+ /* .steedos-apps-home .antd-Panel .antd-Panel-body .app-item.app-item-_add_admin .slds-app-launcher__tile{
119
120
  box-shadow: 0 0 2px var(--private), 0 2px 4px rgba(0, 0, 0, 0.14);
120
121
  border: none;
121
- }
122
+ } */
122
123
 
123
124
  .sidebar-open .sidebar-wrapper .toggle-sidebar{
124
125
  padding-left: 0.35rem;
@@ -131,4 +132,9 @@
131
132
 
132
133
  .sidebar-open .sidebar-wrapper .steedos-app-service-readonly .toggle-sidebar{
133
134
  width: 50px;
135
+ }
136
+
137
+
138
+ .steedos-app-menu-plus .fa-cog{
139
+ margin-top: -6px;
134
140
  }
@@ -1,39 +0,0 @@
1
- name: amis_edit
2
- amis_schema: |-
3
- {
4
- "type": "service",
5
- "body": [
6
- {
7
- "type": "button",
8
- "label": "${'apps.amis_edit.edit' | t}",
9
- "id": "u:standard_edit",
10
- "onEvent": {
11
- "click": {
12
- "actions": [
13
- {
14
- "actionType": "custom",
15
- "script": "const appId = null;\nconst page = Steedos.Page.getPage('app', appId, null, null, \"apps_form\");\nif (page && page.schema) {\n const pageSchema = JSON.parse(page.schema);\n let formSchema = pageSchema.body[0];\n // 设置form的canAccessSuperData属性防止弹出窗口从父级取字段默认值\n formSchema.canAccessSuperData = false;\n // 设置form的wrapWithPanel属性隐藏其底部保存取消按钮\n formSchema.wrapWithPanel = false;\n formSchema.className = \"steedos-amis-form\";\n const title = t('apps.amis_edit.edit_apps');\n doAction({\n \"actionType\": \"dialog\",\n \"dialog\": {\n \"type\": \"dialog\",\n \"title\": title,\n \"body\": [formSchema],\n \"size\": \"lg\"\n }\n });\n}"
16
- }
17
- ],
18
- "weight": 0
19
- }
20
- },
21
- "className": ""
22
- }
23
- ],
24
- "regions": [
25
- "body"
26
- ],
27
- "data": {
28
- },
29
- "bodyClassName": "p-0",
30
- "id": "u:15c4ad9486da"
31
- }
32
- is_enable: true
33
- label: 编辑
34
- 'on': record_only
35
- type: amis_button
36
- visible: !!js/function |
37
- function (object_name, record_id, record_permissions, record) {
38
- return Steedos.Object.base.actions.standard_edit.visible.apply(this, arguments) && !record.is_system;
39
- }
@@ -1,43 +0,0 @@
1
- name: amis_new
2
- amis_schema: |-
3
- {
4
- "type": "service",
5
- "body": [
6
- {
7
- "type": "button",
8
- "label": "${'apps.amis_new.new' | t}",
9
- "id": "u:standard_new",
10
- "onEvent": {
11
- "click": {
12
- "actions": [
13
- {
14
- "actionType": "custom",
15
- "componentId": "",
16
- "args": {},
17
- "script": "const appId = null;\nconst page = Steedos.Page.getPage('app', appId, null, null, \"apps_form\");\nif (page && page.schema) {\n const pageSchema = JSON.parse(page.schema);\n let formSchema = pageSchema.body[0];\n // 设置form的canAccessSuperData属性防止弹出窗口从父级取字段默认值\n formSchema.canAccessSuperData = false;\n // 设置form的wrapWithPanel属性隐藏其底部保存取消按钮\n formSchema.wrapWithPanel = false;\n formSchema.className = \"steedos-amis-form\";\n const title = t('apps.amis_new.new_apps');\n doAction({\n \"actionType\": \"dialog\",\n \"dialog\": {\n \"type\": \"dialog\",\n \"title\": title,\n \"body\": [{\n \"type\": \"service\",\n \"body\": [formSchema],\n \"data\": {\n \"objectName\": \"${objectName}\",\n \"recordId\": \"${record_id}\"\n }\n }],\n \"size\": \"lg\"\n }\n });\n}"
18
- }
19
- ],
20
- "weight": 0
21
- }
22
- },
23
- "className": "",
24
- "level": "default"
25
- }
26
- ],
27
- "regions": [
28
- "body"
29
- ],
30
- "data": {
31
- },
32
- "bodyClassName": "p-0",
33
- "id": "u:15c4ad9486da"
34
- }
35
- is_enable: true
36
- label: 新建
37
- 'on': list
38
- type: amis_button
39
- visible: !!js/function |
40
- function (object_name) {
41
- return Steedos.Object.base.actions.standard_new.visible.apply(this, arguments);
42
- }
43
-