@steedos/standard-ui 2.3.5 → 2.3.6

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.
@@ -18,23 +18,13 @@ amis_schema: |-
18
18
  "weight": 0
19
19
  }
20
20
  },
21
- "className": "slds-button slds-button--neutral p-0"
21
+ "className": ""
22
22
  }
23
23
  ],
24
24
  "regions": [
25
25
  "body"
26
26
  ],
27
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
28
  },
39
29
  "bodyClassName": "p-0",
40
30
  "id": "u:15c4ad9486da"
@@ -20,7 +20,7 @@ amis_schema: |-
20
20
  "weight": 0
21
21
  }
22
22
  },
23
- "className": "slds-button slds-button--neutral p-0",
23
+ "className": "",
24
24
  "level": "default"
25
25
  }
26
26
  ],
@@ -28,16 +28,6 @@ amis_schema: |-
28
28
  "body"
29
29
  ],
30
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
31
  },
42
32
  "bodyClassName": "p-0",
43
33
  "id": "u:15c4ad9486da"
@@ -1,8 +1,8 @@
1
1
  /*
2
2
  * @Author: baozhoutao@hotoa.com
3
3
  * @Date: 2021-12-27 10:49:33
4
- * @LastEditors: sunhaolin@hotoa.com
5
- * @LastEditTime: 2022-05-30 11:53:17
4
+ * @LastEditors: baozhoutao@steedos.com
5
+ * @LastEditTime: 2022-12-20 16:51:05
6
6
  * @Description:
7
7
  */
8
8
  module.exports = {
@@ -20,7 +20,8 @@ module.exports = {
20
20
  });
21
21
 
22
22
  },
23
- customizeVisible: function(object_name, record_id, record_permissions, record){
23
+ customizeVisible: function(object_name, record_id, record_permissions, data){
24
+ var record = data && data.record;
24
25
  if(record._id === 'admin'){return false;}
25
26
  return Creator.baseObject.actions.standard_new.visible() && record.is_system && !record.from_code_id;
26
27
  },
@@ -41,37 +42,37 @@ module.exports = {
41
42
  }
42
43
  },
43
44
  createOAuth2App: function (object_name) {
44
- const fields = Creator.getObject(object_name).fields;
45
- const oauthAppFields = {};
46
- _.map(fields, function (v, k) {
47
- if (k) {
48
- if (_.include(['name', 'code', 'visible', 'description', 'is_creator', 'mobile', 'sort', 'is_use_iframe', 'is_new_window'], k) || k.startsWith("oauth2")) {
49
- oauthAppFields[k] = v;
50
- }
51
- }
52
- });
53
- const onFinish = async (values = {}) => {
54
- return new Promise((resolve, reject) => {
55
- try {
56
- console.log(`values`, values)
57
- Creator.odata.insert(object_name, values)
58
- setTimeout(function () { FlowRouter.reload() }, 100)
59
- resolve(true);
60
- } catch (error) {
61
- console.error(`e2`, error);
62
- reject(false);
63
- }
64
- })
65
- }
66
- SteedosUI.showModal(stores.ComponentRegistry.components.ObjectForm, {
67
- name: "createOAuth2App",
68
- title: '创建 OAuth 应用',
69
- objectSchema: {
70
- fields: oauthAppFields
71
- },
72
- // initialValues: initialValues,
73
- onFinish: onFinish //onFinishByFrame
74
- }, null, { iconPath: '/assets/icons' })
45
+ // const fields = Creator.getObject(object_name).fields;
46
+ // const oauthAppFields = {};
47
+ // _.map(fields, function (v, k) {
48
+ // if (k) {
49
+ // if (_.include(['name', 'code', 'visible', 'description', 'is_creator', 'mobile', 'sort', 'is_use_iframe', 'is_new_window'], k) || k.startsWith("oauth2")) {
50
+ // oauthAppFields[k] = v;
51
+ // }
52
+ // }
53
+ // });
54
+ // const onFinish = async (values = {}) => {
55
+ // return new Promise((resolve, reject) => {
56
+ // try {
57
+ // console.log(`values`, values)
58
+ // Creator.odata.insert(object_name, values)
59
+ // setTimeout(function () { FlowRouter.reload() }, 100)
60
+ // resolve(true);
61
+ // } catch (error) {
62
+ // console.error(`e2`, error);
63
+ // reject(false);
64
+ // }
65
+ // })
66
+ // }
67
+ // SteedosUI.showModal(stores.ComponentRegistry.components.ObjectForm, {
68
+ // name: "createOAuth2App",
69
+ // title: '创建 OAuth 应用',
70
+ // objectSchema: {
71
+ // fields: oauthAppFields
72
+ // },
73
+ // // initialValues: initialValues,
74
+ // onFinish: onFinish //onFinishByFrame
75
+ // }, null, { iconPath: '/assets/icons' })
75
76
  },
76
77
  createOAuth2AppVisible: function () {
77
78
  return false && Creator.baseObject.actions.standard_new.visible();
@@ -123,6 +123,11 @@ fields:
123
123
  type: boolean
124
124
  defaultValue: true
125
125
 
126
+ showSidebar:
127
+ label: Show Sidebar
128
+ type: boolean
129
+ defaultValue: false
130
+
126
131
  # members:
127
132
  # type: object
128
133
  # label: Members
@@ -18,23 +18,14 @@ amis_schema: |-
18
18
  "weight": 0
19
19
  }
20
20
  },
21
- "className": "slds-button slds-button--neutral p-0"
21
+ "className": ""
22
22
  }
23
23
  ],
24
24
  "regions": [
25
25
  "body"
26
26
  ],
27
27
  "data": {
28
- "context": {
29
- "rootUrl": "https://5000-steedos-steedosplatform-uwiv6wkdp2o.ws-us77.gitpod.io"
30
- },
31
- "app_id": "",
32
- "tab_id": "",
33
- "object_name": "",
34
- "dataComponentId": "",
35
- "record_id": "",
36
- "record": {},
37
- "permissions": {}
28
+ "context": "${context}"
38
29
  },
39
30
  "id": "u:4bb4769d2fd7",
40
31
  "bodyClassName": "p-0"
@@ -69,10 +69,6 @@ fields:
69
69
  type: lookup
70
70
  reference_to: objects
71
71
  reference_to_field: name
72
- optionsFunction: !!js/function |
73
- function () {
74
- return Steedos.getObjectsOptions()
75
- }
76
72
  filterable: true
77
73
  required: "{{'object' === formData.type ? true: false}}"
78
74
  visible_on: "{{'object' === formData.type ? true: false}}"
@@ -5,7 +5,7 @@ is_new_window: false
5
5
  label: 图表
6
6
  mobile: true
7
7
  permissions:
8
- - permission: 'on'
8
+ - permission: 'off' # 2.4禁用图表功能
9
9
  permission_set: admin
10
10
  - permission: 'off'
11
11
  permission_set: user
@@ -2,7 +2,7 @@ name: admin_permission_set
2
2
  desktop: true
3
3
  icon: groups
4
4
  is_new_window: false
5
- label: 权限集
5
+ label: 简档 & 权限集
6
6
  mobile: true
7
7
  permissions:
8
8
  - permission: 'on'
@@ -18,4 +18,4 @@ permissions:
18
18
  - permission: 'off'
19
19
  permission_set: workflow_admin
20
20
  type: url
21
- url: /app/admin/permission_set/grid/permission_set
21
+ url: /app/admin/permission_set/grid/all
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@steedos/standard-ui",
3
- "version": "2.3.5",
3
+ "version": "2.3.6",
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": "a817e9bda1620c21a3da1876d01238b1fc1df828"
15
+ "gitHead": "3ef6bf3744c616d6a961b3264e5f204b9697ef6a"
16
16
  }
@@ -2,7 +2,7 @@
2
2
  * @Author: sunhaolin@hotoa.com
3
3
  * @Date: 2022-07-29 09:40:31
4
4
  * @LastEditors: sunhaolin@hotoa.com
5
- * @LastEditTime: 2022-07-29 14:37:14
5
+ * @LastEditTime: 2022-12-09 13:41:00
6
6
  * @Description:
7
7
  */
8
8
  "use strict";
@@ -22,7 +22,8 @@ module.exports = {
22
22
  settings: {
23
23
  packageInfo: {
24
24
  path: __dirname,
25
- name: packageName
25
+ name: packageName,
26
+ isPackage: false
26
27
  }
27
28
  },
28
29