@steedos/service-package-registry 2.5.17-beta.4 → 2.5.17-beta.5

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.
@@ -14,21 +14,4 @@ label: 所有软件包
14
14
  scrolling_mode: standard
15
15
  shared: true
16
16
  show_count: false
17
- type: grid
18
- adaptor: |
19
- if(payload.data.rows.length){
20
- payload.data.rows.forEach(function(row){
21
- if(row.icon){
22
- if(!/^http(s?):\/\//.test(row.icon)){
23
- var iconCategory = "standard";
24
- var iconName = row.icon;
25
- var tags = row.icon.split(".");
26
- if(tags.length > 1){
27
- iconCategory = tags[0];
28
- iconName = tags[1];
29
- }
30
- row.icon = "https://unpkg.steedos.cn/@salesforce-ux/design-system@2.22.0/assets/icons/" + iconCategory + "/" + iconName + "_120.png";
31
- }
32
- }
33
- });
34
- }
17
+ type: grid
@@ -6,20 +6,3 @@ shared: true
6
6
  show_count: false
7
7
  type: grid
8
8
  filters: [["static","!=", true]]
9
- adaptor: |
10
- if(payload.data.rows.length){
11
- payload.data.rows.forEach(function(row){
12
- if(row.icon){
13
- if(!/^http(s?):\/\//.test(row.icon)){
14
- var iconCategory = "standard";
15
- var iconName = row.icon;
16
- var tags = row.icon.split(".");
17
- if(tags.length > 1){
18
- iconCategory = tags[0];
19
- iconName = tags[1];
20
- }
21
- row.icon = "https://unpkg.steedos.cn/@salesforce-ux/design-system@2.22.0/assets/icons/" + iconCategory + "/" + iconName + "_120.png";
22
- }
23
- }
24
- });
25
- }
@@ -6,20 +6,3 @@ shared: true
6
6
  show_count: false
7
7
  type: grid
8
8
  filters: [["static","=", true]]
9
- adaptor: |
10
- if(payload.data.rows.length){
11
- payload.data.rows.forEach(function(row){
12
- if(row.icon){
13
- if(!/^http(s?):\/\//.test(row.icon)){
14
- var iconCategory = "standard";
15
- var iconName = row.icon;
16
- var tags = row.icon.split(".");
17
- if(tags.length > 1){
18
- iconCategory = tags[0];
19
- iconName = tags[1];
20
- }
21
- row.icon = "https://unpkg.steedos.cn/@salesforce-ux/design-system@2.22.0/assets/icons/" + iconCategory + "/" + iconName + "_120.png";
22
- }
23
- }
24
- });
25
- }
@@ -9,6 +9,7 @@
9
9
  "showHeader": true,
10
10
  "className": "sm:border sm:rounded sm:border-gray-300 mb-4",
11
11
  "id": "u:70d5861033de",
12
+ "crudMode": "cards",
12
13
  "crud": {
13
14
  "columnsCount": 4,
14
15
  "id": "u:553974f9435b",
@@ -21,23 +22,18 @@
21
22
  "actionType": "link",
22
23
  "link": "/app/admin/steedos_packages/view/${_id}"
23
24
  },
24
- "header": {
25
- "avatar": "${icon}",
26
- "avatarText": "${label|split:/|last|substring:0:2|upperCase}",
27
- "avatarClassName": "pull-left thumb-md b-3x m-r slds-icon slds-icon_container slds-icon-standard-user",
28
- "avatarTextBackground": [
29
- "#34becd"
30
- ],
31
- "className": "bg-white",
32
- "title": "${label}",
33
- "subTitle": "${description}",
34
- "subTitlePlaceholder": "--",
35
- "description": "<span class=\"bg-${status === 'enable' ? 'green': 'gray'}-300 border rounded-full px-2 py-0.5 mt-2 inline-block\">$_display.status</span><span class='text-gray-600 px-2 py-0.5 mt-2 inline-block float-right'>${version}</span>"
36
- },
25
+ "useCardLabel": false,
26
+ "body": [
27
+ {
28
+ "type": "tpl",
29
+ "tpl": "<div class='antd-Card-heading bg-white'><span class='antd-Card-avtar pull-left thumb-md b-3x m-r slds-icon slds-icon_container slds-icon-${iconCategory}-${iconName}'><img class='antd-Card-img'src='${icon}' /></span><div class='antd-Card-meta'><div class='antd-Card-title'><span class='antd-TplField'><span>${label}</span></span></div><div class='antd-Card-subTitle'><span class='antd-TplField'><span>${description}</span></span></div><div class='antd-Card-desc'><span class='antd-TplField'><span><span class='bg-green-300 border rounded-full px-2 py-0.5 mt-2 inline-block'>${_display.status}</span><span class='text-gray-600 px-2 py-0.5 mt-2 inline-block float-right'>${version}</span></span></span></div></div></div>"
30
+ }
31
+ ],
37
32
  "actions": [
38
33
  {
39
34
  "label": "${uiSchema.actions.enable.label}",
40
35
  "disabledOn": "${status === 'enable'}",
36
+ "className": "mr-4",
41
37
  "onEvent": {
42
38
  "click": {
43
39
  "actions": [
@@ -63,13 +59,15 @@
63
59
  ]
64
60
  }
65
61
  },
66
- "id": "u:7e1db04924da"
62
+ "id": "u:7e1db04924da",
63
+ "className": "mr-4"
67
64
  }
68
65
  ],
69
66
  "type": "card",
70
67
  "id": "u:2bb7748ac402"
71
68
  }
72
- }
69
+ },
70
+ "adaptor": "if (payload.data.rows.length) {\n payload.data.rows.forEach(function (row) {\n if (!row.icon) {\n row.icon = \"standard.default\";\n }\n if (row.icon) {\n if (!/^http(s?):\\/\\//.test(row.icon)) {\n var iconCategory = \"standard\";\n var iconName = row.icon;\n var tags = row.icon.split(\".\");\n if (tags.length > 1) {\n iconCategory = tags[0];\n iconName = tags[1];\n }\n row.iconCategory = iconCategory;\n row.iconName = iconName;\n row.icon = \"https://unpkg.steedos.cn/@salesforce-ux/design-system@2.22.0/assets/icons/\" + iconCategory + \"/\" + iconName.replace(\"-\", \"_\") + \"_120.png\";\n }\n else {\n /*http(s)://开头则给个默认的背景色*/\n row.iconCategory = \"standard\";\n row.iconName = \"default\";\n }\n }\n });\n}\nreturn payload;"
73
71
  }
74
72
  ],
75
73
  "regions": [
@@ -131,6 +129,16 @@
131
129
  "-webkit-line-clamp": "1",
132
130
  "max-height": "calc(var(--fontSizeBase) * var(--lineHeightBase) * 1)",
133
131
  "min-height": "calc(var(--fontSizeBase) * var(--lineHeightBase) * 1)"
132
+ },
133
+ ".steedos-object-table.steedos-crud-mode-cards .antd-Crud .antd-Cards .antd-Cards-body .antd-Card .antd-Card-body": {
134
+ "padding-left": "0px",
135
+ "padding-right": "0px",
136
+ "padding-top": "0px",
137
+ "margin-top": "0px",
138
+ "padding-bottom": "0px"
139
+ },
140
+ ".steedos-object-table.steedos-crud-mode-cards .antd-Crud .antd-Cards .antd-Cards-body .antd-Card": {
141
+ "padding-top": "2px"
134
142
  }
135
143
  }
136
144
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@steedos/service-package-registry",
3
- "version": "2.5.17-beta.4",
3
+ "version": "2.5.17-beta.5",
4
4
  "description": "",
5
5
  "main": "package.service.js",
6
6
  "scripts": {
@@ -9,11 +9,11 @@
9
9
  "author": "",
10
10
  "license": "ISC",
11
11
  "dependencies": {
12
- "@steedos/auth": "2.5.17-beta.4",
13
- "@steedos/core": "2.5.17-beta.4",
14
- "@steedos/metadata-core": "2.5.17-beta.4",
15
- "@steedos/objectql": "2.5.17-beta.4",
16
- "@steedos/service-package-loader": "2.5.17-beta.4",
12
+ "@steedos/auth": "2.5.17-beta.5",
13
+ "@steedos/core": "2.5.17-beta.5",
14
+ "@steedos/metadata-core": "2.5.17-beta.5",
15
+ "@steedos/objectql": "2.5.17-beta.5",
16
+ "@steedos/service-package-loader": "2.5.17-beta.5",
17
17
  "fs-extra": "8.1.0",
18
18
  "i18next": "20.3.2",
19
19
  "json-stringify-safe": "5.0.1",
@@ -31,5 +31,5 @@
31
31
  "publishConfig": {
32
32
  "access": "public"
33
33
  },
34
- "gitHead": "627c7718c27a375320941bdb1cb774c280991f54"
34
+ "gitHead": "838d5fe29d704ef8adf741774452743d912c224f"
35
35
  }