@steedos/standard-ui 2.3.0-beta.3 → 2.3.0-beta.31

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.
@@ -22,8 +22,22 @@ fields:
22
22
  label: Description
23
23
  help:
24
24
  description:
25
+ objects:
26
+ label: Desktop Menus(Invalid)
27
+ help:
28
+ description:
29
+ mobile_objects:
30
+ label: Mobile Menus(Invalid)
31
+ help:
32
+ description:
25
33
  tabs:
26
34
  label: Tabs
35
+ tab_items:
36
+ label: Tabs
37
+ tab_items.$.tab_name:
38
+ label: Name
39
+ tab_items.$.group:
40
+ label: Group
27
41
  icon:
28
42
  label: Icon
29
43
  help:
@@ -33,11 +47,11 @@ fields:
33
47
  help:
34
48
  description:
35
49
  is_creator:
36
- label: Item of Menu
50
+ label: Show this app for Desktop
37
51
  help:
38
52
  description:
39
53
  mobile:
40
- label: Mobile App
54
+ label: Show this app for Mobile
41
55
  help:
42
56
  description:
43
57
  members:
@@ -157,7 +171,7 @@ fields:
157
171
  help:
158
172
  description:
159
173
  groups:
160
- business_object: Business object
174
+ tabs: Tabs
161
175
  external_application: External Application
162
176
  oauth2: OAuth2
163
177
  saml: SAML
@@ -16,6 +16,12 @@ fields:
16
16
  description:
17
17
  tabs:
18
18
  label: 选项卡
19
+ tab_items:
20
+ label: 选项卡
21
+ tab_items.$.tab_name:
22
+ label: 名称
23
+ tab_items.$.group:
24
+ label: 分组
19
25
  visible:
20
26
  label: 启用
21
27
  help:
@@ -25,11 +31,11 @@ fields:
25
31
  help:
26
32
  description:
27
33
  objects:
28
- label: 桌面主菜单
34
+ label: 桌面主菜单(已作废)
29
35
  help:
30
36
  description:
31
37
  mobile_objects:
32
- label: 手机主菜单
38
+ label: 手机主菜单(已作废)
33
39
  help:
34
40
  description:
35
41
  icon:
@@ -41,11 +47,11 @@ fields:
41
47
  help:
42
48
  description:
43
49
  is_creator:
44
- label: 显示在桌面菜单中
50
+ label: 在桌面中显示此应用
45
51
  help:
46
52
  description:
47
53
  mobile:
48
- label: 显示在手机菜单中
54
+ label: 在手机上显示此应用
49
55
  help:
50
56
  description:
51
57
  members:
@@ -172,7 +178,7 @@ fields:
172
178
  help:
173
179
  description:
174
180
  groups:
175
- business_object: 业务对象
181
+ tabs: 选项卡
176
182
  external_application: 外接应用
177
183
  oauth2: OAuth2
178
184
  saml: SAML
@@ -0,0 +1,46 @@
1
+ name: standard_edit
2
+ amis_schema: |-
3
+ {
4
+ "type": "service",
5
+ "body": [
6
+ {
7
+ "type": "button",
8
+ "label": "编辑",
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 = \"编辑 应用程序\";\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\": \"${object_name}\",\n \"recordId\": \"${record_id}\"\n }\n }],\n \"size\": \"lg\"\n }\n });\n}"
16
+ }
17
+ ],
18
+ "weight": 0
19
+ }
20
+ },
21
+ "className": "slds-button slds-button--neutral p-0"
22
+ }
23
+ ],
24
+ "regions": [
25
+ "body"
26
+ ],
27
+ "data": {
28
+ "context": {
29
+ "rootUrl": "http://127.0.0.1:5800"
30
+ },
31
+ "app_id": "",
32
+ "tab_id": "",
33
+ "object_name": "",
34
+ "dataComponentId": "",
35
+ "record_id": "",
36
+ "record": {},
37
+ "permissions": {}
38
+ },
39
+ "bodyClassName": "p-0",
40
+ "id": "u:15c4ad9486da"
41
+ }
42
+ is_enable: true
43
+ label: 编辑
44
+ 'on': record_only
45
+ type: amis_button
46
+ visible: true
@@ -0,0 +1,49 @@
1
+ name: standard_new
2
+ amis_schema: |-
3
+ {
4
+ "type": "service",
5
+ "body": [
6
+ {
7
+ "type": "button",
8
+ "label": "新建",
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 = \"新建 应用程序\";\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\": \"${object_name}\",\n \"recordId\": \"${record_id}\"\n }\n }],\n \"size\": \"lg\"\n }\n });\n}"
18
+ }
19
+ ],
20
+ "weight": 0
21
+ }
22
+ },
23
+ "className": "slds-button slds-button--neutral p-0",
24
+ "level": "default"
25
+ }
26
+ ],
27
+ "regions": [
28
+ "body"
29
+ ],
30
+ "data": {
31
+ "context": {
32
+ "rootUrl": "http://127.0.0.1:5800"
33
+ },
34
+ "app_id": "",
35
+ "tab_id": "",
36
+ "object_name": "",
37
+ "dataComponentId": "",
38
+ "record_id": "",
39
+ "record": {},
40
+ "permissions": {}
41
+ },
42
+ "bodyClassName": "p-0",
43
+ "id": "u:15c4ad9486da"
44
+ }
45
+ is_enable: true
46
+ label: 新建
47
+ 'on': list
48
+ type: amis_button
49
+ visible: true
@@ -38,10 +38,11 @@ fields:
38
38
  return options;
39
39
  }
40
40
  filterable: true
41
- visible:
42
- label: Visible
43
- type: boolean
44
- defaultValue: true
41
+ sort:
42
+ label: Sort Number
43
+ type: number
44
+ defaultValue: 9100
45
+ sortable: true
45
46
  description:
46
47
  label: Description
47
48
  type: textarea
@@ -54,21 +55,52 @@ fields:
54
55
  is_wide: true
55
56
  reference_to: tabs
56
57
  reference_to_field: name
58
+ hidden: true
59
+ tab_groups:
60
+ type: grid
61
+ blackbox: true
62
+ is_wide: true
63
+ hidden: true
64
+ tab_groups.$.group_name:
65
+ type: text
66
+ tab_items:
67
+ label: Tabs
68
+ type: object
69
+ blackbox: true
70
+ is_wide: true
71
+ required: false
72
+ group: Tabs
73
+ visible_on: "{{global.mode ==='read' ? false : true}}"
74
+ # tab_items.$:
75
+ # label: Tabs
76
+ # blackbox: true
77
+ # type: object
78
+ # tab_items.$.tab_name:
79
+ # label: Tab Name
80
+ # type: lookup
81
+ # multiple: false
82
+ # is_wide: false
83
+ # required: true
84
+ # reference_to: tabs
85
+ # reference_to_field: name
86
+ # tab_items.$.group:
87
+ # label: Group
88
+ # type: text
57
89
  objects:
58
- label: Objects
90
+ label: Desktop Menu(Invalid)
59
91
  type: lookup
60
92
  multiple: true
61
- group: Business object
93
+ group: Tabs
62
94
  optionsFunction: !!js/function |
63
95
  function () {
64
96
  return Steedos.getObjectsOptions()
65
97
  }
66
98
  filterable: true
67
99
  mobile_objects:
68
- label: Mobile Objects
100
+ label: Mobile Menus(Invalid)
69
101
  type: lookup
70
102
  multiple: true
71
- group: Business object
103
+ group: Tabs
72
104
  optionsFunction: !!js/function |
73
105
  function () {
74
106
  return Steedos.getObjectsOptions()
@@ -76,23 +108,20 @@ fields:
76
108
  filterable: true
77
109
  is_creator:
78
110
  type: boolean
79
- label: Item of Menu
111
+ label: Show this app for Desktop
80
112
  defaultValue: true
81
- group: Business object
82
113
  mobile:
83
114
  type: boolean
84
- label: Mobile App
115
+ label: Show this app for Mobile
85
116
  defaultValue: true
86
- group: Business object
87
117
  icon:
88
118
  label: Icon
89
119
  type: text
90
120
  hidden: true
91
- sort:
92
- label: Sort Number
93
- type: number
94
- defaultValue: 9100
95
- sortable: true
121
+ visible:
122
+ label: Visible
123
+ type: boolean
124
+ defaultValue: true
96
125
 
97
126
  # members:
98
127
  # type: object
@@ -0,0 +1,17 @@
1
+ module.exports = {
2
+ generateObjectTabs: function (object_name, record_id, fields) {
3
+ const appId = Session.get("app_id");
4
+ const page = Steedos.Page.getPage('app', appId, object_name, null, "generate_object_tabs");
5
+ const title = "选择需要生成选项卡的对象";
6
+ if (page && page.schema) {
7
+ Steedos.Page.render(SteedosUI.Modal, page, Object.assign({}, {
8
+ appId: appId,
9
+ objectName: object_name,
10
+ title: title
11
+ }));
12
+ }
13
+ },
14
+ generateObjectTabsVisible: function(object_name, record_id, record_permissions, record) {
15
+ return Creator.baseObject.actions.standard_new.visible()
16
+ }
17
+ }
@@ -119,6 +119,10 @@ list_views:
119
119
  - mobile
120
120
  - type
121
121
  - is_system
122
+ actions:
123
+ generateObjectTabs:
124
+ label: 对象选项卡
125
+ on: list
122
126
  permission_set:
123
127
  user:
124
128
  allowCreate: false
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@steedos/standard-ui",
3
- "version": "2.3.0-beta.3",
3
+ "version": "2.3.0-beta.31",
4
4
  "main": "package.service.js",
5
5
  "private": false,
6
6
  "publishConfig": {
@@ -12,5 +12,5 @@
12
12
  "description": "steedos package",
13
13
  "repository": {},
14
14
  "license": "MIT",
15
- "gitHead": "bb746c90035f38b361011e4b10f0993a390e8355"
15
+ "gitHead": "7cd0bd9b12852cf7e25e17a7d7345500401c3af5"
16
16
  }