@steedos/service-plugin-amis 2.6.2-beta.13 → 2.6.2-beta.14

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.
@@ -176,6 +176,7 @@ const getField = (objectName, fieldName, type, lng)=>{
176
176
  case 'autonumber':
177
177
  case 'url':
178
178
  case 'email':
179
+ case 'color':
179
180
  case 'text':
180
181
  field = {
181
182
  type: 'text',
@@ -6,6 +6,7 @@ const AmisFormInputs = [
6
6
  'text',
7
7
  'date',
8
8
  'file',
9
+ 'color',
9
10
  'avatar',
10
11
  'image',
11
12
  'datetime',
@@ -50,7 +51,7 @@ function getAmisStaticFieldType(type, readonly){
50
51
  }
51
52
  return type;
52
53
  }
53
- if(_.include(['text'], type)){
54
+ if(_.include(['text','color'], type)){
54
55
  return `static-${type}`;
55
56
  }else{
56
57
  return 'static';
@@ -67,6 +68,8 @@ function getAmisFieldType(sField){
67
68
  return 'html';
68
69
  case 'select':
69
70
  return 'select';
71
+ case 'color':
72
+ return 'color';
70
73
  case 'boolean':
71
74
  return 'checkbox';
72
75
  case 'date':
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@steedos/service-plugin-amis",
3
- "version": "2.6.2-beta.13",
3
+ "version": "2.6.2-beta.14",
4
4
  "main": "package.service.js",
5
5
  "scripts": {
6
6
  "build": "yarn build:tailwind-base && yarn build:tailwind",
@@ -13,7 +13,7 @@
13
13
  "publishConfig": {
14
14
  "access": "public"
15
15
  },
16
- "gitHead": "8b4dd42561a6499bdeb04a44fa628d78671405d6",
16
+ "gitHead": "d83f9ac489aa62196a2b1baf8f20129eade54d66",
17
17
  "devDependencies": {
18
18
  "tailwindcss": "3.2.4"
19
19
  }