@steedos/standard-ui 2.3.6 → 2.3.8

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,13 +18,23 @@ amis_schema: |-
18
18
  "weight": 0
19
19
  }
20
20
  },
21
- "className": ""
21
+ "className": "slds-button slds-button--neutral p-0"
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": {}
28
38
  },
29
39
  "bodyClassName": "p-0",
30
40
  "id": "u:15c4ad9486da"
@@ -20,7 +20,7 @@ amis_schema: |-
20
20
  "weight": 0
21
21
  }
22
22
  },
23
- "className": "",
23
+ "className": "slds-button slds-button--neutral p-0",
24
24
  "level": "default"
25
25
  }
26
26
  ],
@@ -28,6 +28,16 @@ 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": {}
31
41
  },
32
42
  "bodyClassName": "p-0",
33
43
  "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: baozhoutao@steedos.com
5
- * @LastEditTime: 2022-12-20 16:51:05
4
+ * @LastEditors: sunhaolin@hotoa.com
5
+ * @LastEditTime: 2022-05-30 11:53:17
6
6
  * @Description:
7
7
  */
8
8
  module.exports = {
@@ -20,8 +20,7 @@ module.exports = {
20
20
  });
21
21
 
22
22
  },
23
- customizeVisible: function(object_name, record_id, record_permissions, data){
24
- var record = data && data.record;
23
+ customizeVisible: function(object_name, record_id, record_permissions, record){
25
24
  if(record._id === 'admin'){return false;}
26
25
  return Creator.baseObject.actions.standard_new.visible() && record.is_system && !record.from_code_id;
27
26
  },
@@ -42,37 +41,37 @@ module.exports = {
42
41
  }
43
42
  },
44
43
  createOAuth2App: function (object_name) {
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' })
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' })
76
75
  },
77
76
  createOAuth2AppVisible: function () {
78
77
  return false && Creator.baseObject.actions.standard_new.visible();
@@ -123,11 +123,6 @@ fields:
123
123
  type: boolean
124
124
  defaultValue: true
125
125
 
126
- showSidebar:
127
- label: Show Sidebar
128
- type: boolean
129
- defaultValue: false
130
-
131
126
  # members:
132
127
  # type: object
133
128
  # label: Members
@@ -18,14 +18,23 @@ amis_schema: |-
18
18
  "weight": 0
19
19
  }
20
20
  },
21
- "className": ""
21
+ "className": "slds-button slds-button--neutral p-0"
22
22
  }
23
23
  ],
24
24
  "regions": [
25
25
  "body"
26
26
  ],
27
27
  "data": {
28
- "context": "${context}"
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": {}
29
38
  },
30
39
  "id": "u:4bb4769d2fd7",
31
40
  "bodyClassName": "p-0"
@@ -69,6 +69,10 @@ 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
+ }
72
76
  filterable: true
73
77
  required: "{{'object' === formData.type ? true: false}}"
74
78
  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: 'off' # 2.4禁用图表功能
8
+ - permission: 'on'
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/all
21
+ url: /app/admin/permission_set/grid/permission_set
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@steedos/standard-ui",
3
- "version": "2.3.6",
3
+ "version": "2.3.8",
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": "3ef6bf3744c616d6a961b3264e5f204b9697ef6a"
15
+ "gitHead": "b2393877080bbb08d758ce883522d37bc0a12ba2"
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-12-09 13:41:00
5
+ * @LastEditTime: 2022-07-29 14:37:14
6
6
  * @Description:
7
7
  */
8
8
  "use strict";
@@ -22,8 +22,7 @@ module.exports = {
22
22
  settings: {
23
23
  packageInfo: {
24
24
  path: __dirname,
25
- name: packageName,
26
- isPackage: false
25
+ name: packageName
27
26
  }
28
27
  },
29
28