@steedos/service-ui 2.6.2-beta.7 → 2.6.3

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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@steedos/service-ui",
3
- "version": "2.6.2-beta.7",
3
+ "version": "2.6.3",
4
4
  "main": "package.service.js",
5
5
  "keywords": [
6
6
  "steedos"
@@ -11,9 +11,9 @@
11
11
  "description": "steedos package",
12
12
  "repository": {},
13
13
  "dependencies": {
14
- "@steedos/core": "2.6.2-beta.7",
15
- "@steedos/i18n": "2.6.2-beta.7",
16
- "@steedos/objectql": "2.6.2-beta.7",
14
+ "@steedos/core": "2.6.3",
15
+ "@steedos/i18n": "2.6.3",
16
+ "@steedos/objectql": "2.6.3",
17
17
  "express": "4.18.1"
18
18
  },
19
19
  "license": "MIT",
@@ -21,5 +21,5 @@
21
21
  "publishConfig": {
22
22
  "access": "public"
23
23
  },
24
- "gitHead": "7efe905d52798207bdf2c92a5f3cf385e58aae3e"
24
+ "gitHead": "2b56101256aa6fa0069d86bd373e4e368bd7d073"
25
25
  }
@@ -1,8 +1,8 @@
1
1
  /*
2
2
  * @Author: baozhoutao@steedos.com
3
3
  * @Date: 2023-02-26 15:22:12
4
- * @LastEditors: baozhoutao@steedos.com
5
- * @LastEditTime: 2023-04-27 13:22:22
4
+ * @LastEditors: 殷亮辉 yinlianghui@hotoa.com
5
+ * @LastEditTime: 2024-01-04 16:44:08
6
6
  * @Description:
7
7
  */
8
8
  try {
@@ -138,7 +138,12 @@ try {
138
138
 
139
139
  window.getFirstListView = (objectName) => {
140
140
  const uiSchema = window.getUISchemaSync(objectName);
141
- return _.first(_.sortBy(_.values(uiSchema.list_views), "sort_no"));
141
+ const disabled_list_views = uiSchema.permissions.disabled_list_views;
142
+ return _.first(_.sortBy(_.values(
143
+ _.filter(uiSchema.list_views, function (o, k) {
144
+ return disabled_list_views.indexOf(o._id) < 0 && k !== "lookup";
145
+ })
146
+ ), "sort_no"));
142
147
  };
143
148
 
144
149
  window.getAppsSync = () => {