@steedos/standard-object-database 2.5.11-beta.9 → 2.5.11

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.
@@ -118,7 +118,7 @@ fields:
118
118
  group: Switch
119
119
  hidden: true
120
120
  enable_inline_edit:
121
- hidden: true
121
+ # hidden: true
122
122
  type: boolean
123
123
  defaultValue: true
124
124
  label: Enable Single Field Edit
@@ -1,6 +1,7 @@
1
1
  const InternalData = require('@steedos/standard-objects').internalData;
2
2
  const util = require('@steedos/standard-objects').util;
3
3
  const objectql = require('@steedos/objectql');
4
+ const auth = require("@steedos/auth");
4
5
 
5
6
  const getInternalListviews = async function(sourceListviews, filters, is_system){
6
7
  let collection = await objectql.getObject("object_listviews");
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@steedos/standard-object-database",
3
- "version": "2.5.11-beta.9",
3
+ "version": "2.5.11",
4
4
  "main": "package.service.js",
5
5
  "private": false,
6
6
  "publishConfig": {
@@ -15,5 +15,5 @@
15
15
  },
16
16
  "repository": {},
17
17
  "license": "MIT",
18
- "gitHead": "e1cca47d712bc36ed0748e257da560b24330b788"
18
+ "gitHead": "fa315255231ac336e95125366f6c4362a1a3200e"
19
19
  }
@@ -1,44 +0,0 @@
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('form', appId, null, null, \"object_layouts\");\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\": [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
- "context": {
29
- "rootUrl": "http://127.0.0.1:5000"
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
- }
41
- is_enable: true
42
- label: 编辑
43
- 'on': record_only
44
- type: amis_button