@steedos-widgets/sortable 1.3.21 → 1.3.22-beta.1

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/dist/assets.json CHANGED
@@ -3,8 +3,8 @@
3
3
  {
4
4
  "package": "@steedos-widgets/sortable",
5
5
  "urls": [
6
- "https://unpkg.com/@steedos-widgets/sortable@1.3.21/dist/sortable.umd.js",
7
- "https://unpkg.com/@steedos-widgets/sortable@1.3.21/dist/sortable.umd.css"
6
+ "https://unpkg.com/@steedos-widgets/sortable@1.3.22-beta.1/dist/sortable.umd.js",
7
+ "https://unpkg.com/@steedos-widgets/sortable@1.3.22-beta.1/dist/sortable.umd.css"
8
8
  ],
9
9
  "library": "BuilderSortable"
10
10
  }
@@ -15,10 +15,10 @@
15
15
  "npm": {
16
16
  "package": "@steedos-widgets/sortable"
17
17
  },
18
- "url": "https://unpkg.com/@steedos-widgets/sortable@1.3.21/dist/meta.js",
18
+ "url": "https://unpkg.com/@steedos-widgets/sortable@1.3.22-beta.1/dist/meta.js",
19
19
  "urls": {
20
- "default": "https://unpkg.com/@steedos-widgets/sortable@1.3.21/dist/meta.js",
21
- "design": "https://unpkg.com/@steedos-widgets/sortable@1.3.21/dist/meta.js"
20
+ "default": "https://unpkg.com/@steedos-widgets/sortable@1.3.22-beta.1/dist/meta.js",
21
+ "design": "https://unpkg.com/@steedos-widgets/sortable@1.3.22-beta.1/dist/meta.js"
22
22
  }
23
23
  }
24
24
  ]
@@ -55105,21 +55105,21 @@ async function getQuickEditSchema(field, options){
55105
55105
  break;
55106
55106
  case "avatar":
55107
55107
  case "image":
55108
- quickEditSchema.body[0].receiver.adaptor = `
55109
- const { context } = api.body;
55110
- var rootUrl = context.rootUrl + "/api/files/${field.type}s/";
55111
- payload = {
55112
- status: response.status == 200 ? 0 : response.status,
55113
- msg: response.statusText,
55114
- data: {
55115
- value: rootUrl + payload._id,//为了实现图片crud的回显,需要将value从id改为url,当保存数据数据时,再在发送适配器内重新将id提取出来
55116
- name: payload.original.name,
55117
- url: rootUrl + payload._id,
55108
+ quickEditSchema.body[0].receiver.adaptor = `
55109
+ const { context } = api.body;
55110
+ var rootUrl = context.rootUrl + "/api/files/${field.type}s/";
55111
+ payload = {
55112
+ status: response.status == 200 ? 0 : response.status,
55113
+ msg: response.statusText,
55114
+ data: {
55115
+ value: rootUrl + payload._id,//为了实现图片crud的回显,需要将value从id改为url,当保存数据数据时,再在发送适配器内重新将id提取出来
55116
+ name: payload.original.name,
55117
+ url: rootUrl + payload._id,
55118
+ }
55118
55119
  }
55119
- }
55120
- return payload;
55121
- `;
55122
- break;
55120
+ return payload;
55121
+ `;
55122
+ break;
55123
55123
  }
55124
55124
  quickEditSchema.body[0].visibleOn = "${quickedit_record_permissions.allowEdit && quickedit_record_permissions_loading == false}";
55125
55125
  quickEditSchema.body.push({
@@ -55326,6 +55326,11 @@ async function getQuickEditSchema(field, options){
55326
55326
  if(field.type == "location"){
55327
55327
  quickEditSchema = false;
55328
55328
  }
55329
+ if(field.type == "color"){
55330
+ quickEditSchema = {
55331
+ type: "input-color"
55332
+ };
55333
+ }
55329
55334
  }
55330
55335
  return quickEditSchema;
55331
55336
  }
@@ -60041,6 +60046,13 @@ async function convertSFieldToAmisField(field, readonly, ctx) {
60041
60046
  };
60042
60047
  if(readonly){
60043
60048
  convertData.defaultColor = null;
60049
+ }else {
60050
+ convertData.pipeIn = (value, data) => {
60051
+ if(value && value.indexOf('#')<0){
60052
+ return '#'+value;
60053
+ }
60054
+ return value;
60055
+ };
60044
60056
  }
60045
60057
  break;
60046
60058
  case 'boolean':