@steedos-widgets/amis-object 1.3.4-beta.8 → 1.3.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.
package/dist/assets.json CHANGED
@@ -11,39 +11,39 @@
11
11
  {
12
12
  "package": "@steedos-widgets/fullcalendar",
13
13
  "urls": [
14
- "https://unpkg.com/@steedos-widgets/fullcalendar@1.3.4-beta.8/dist/fullcalendar.umd.js",
15
- "https://unpkg.com/@steedos-widgets/fullcalendar@1.3.4-beta.8/dist/fullcalendar.umd.css"
14
+ "https://unpkg.com/@steedos-widgets/fullcalendar@1.3.5/dist/fullcalendar.umd.js",
15
+ "https://unpkg.com/@steedos-widgets/fullcalendar@1.3.5/dist/fullcalendar.umd.css"
16
16
  ],
17
17
  "library": "BuilderFullCalendar"
18
18
  },
19
19
  {
20
20
  "package": "@steedos-widgets/reactflow",
21
21
  "urls": [
22
- "https://unpkg.com/@steedos-widgets/reactflow@1.3.4-beta.8/dist/reactflow.umd.js",
23
- "https://unpkg.com/@steedos-widgets/reactflow@1.3.4-beta.8/dist/reactflow.umd.css"
22
+ "https://unpkg.com/@steedos-widgets/reactflow@1.3.5/dist/reactflow.umd.js",
23
+ "https://unpkg.com/@steedos-widgets/reactflow@1.3.5/dist/reactflow.umd.css"
24
24
  ],
25
25
  "library": "BuilderReactFlow"
26
26
  },
27
27
  {
28
28
  "package": "@steedos-widgets/sortable",
29
29
  "urls": [
30
- "https://unpkg.com/@steedos-widgets/sortable@1.3.4-beta.8/dist/sortable.umd.js",
31
- "https://unpkg.com/@steedos-widgets/sortable@1.3.4-beta.8/dist/sortable.umd.css"
30
+ "https://unpkg.com/@steedos-widgets/sortable@1.3.5/dist/sortable.umd.js",
31
+ "https://unpkg.com/@steedos-widgets/sortable@1.3.5/dist/sortable.umd.css"
32
32
  ],
33
33
  "library": "BuilderSortable"
34
34
  },
35
35
  {
36
36
  "package": "steedos-lib",
37
37
  "urls": [
38
- "https://unpkg.com/@steedos-widgets/steedos-lib@1.3.4-beta.8/dist/index.umd.js"
38
+ "https://unpkg.com/@steedos-widgets/steedos-lib@1.3.5/dist/index.umd.js"
39
39
  ],
40
40
  "library": "SteedosLib"
41
41
  },
42
42
  {
43
43
  "package": "@steedos-widgets/amis-object",
44
44
  "urls": [
45
- "https://unpkg.com/@steedos-widgets/amis-object@1.3.4-beta.8/dist/amis-object.umd.js",
46
- "https://unpkg.com/@steedos-widgets/amis-object@1.3.4-beta.8/dist/amis-object.umd.css"
45
+ "https://unpkg.com/@steedos-widgets/amis-object@1.3.5/dist/amis-object.umd.js",
46
+ "https://unpkg.com/@steedos-widgets/amis-object@1.3.5/dist/amis-object.umd.css"
47
47
  ],
48
48
  "library": "BuilderAmisObject"
49
49
  }
@@ -54,10 +54,10 @@
54
54
  "npm": {
55
55
  "package": "@steedos-widgets/fullcalendar"
56
56
  },
57
- "url": "https://unpkg.com/@steedos-widgets/fullcalendar@1.3.4-beta.8/dist/meta.js",
57
+ "url": "https://unpkg.com/@steedos-widgets/fullcalendar@1.3.5/dist/meta.js",
58
58
  "urls": {
59
- "default": "https://unpkg.com/@steedos-widgets/fullcalendar@1.3.4-beta.8/dist/meta.js",
60
- "design": "https://unpkg.com/@steedos-widgets/fullcalendar@1.3.4-beta.8/dist/meta.js"
59
+ "default": "https://unpkg.com/@steedos-widgets/fullcalendar@1.3.5/dist/meta.js",
60
+ "design": "https://unpkg.com/@steedos-widgets/fullcalendar@1.3.5/dist/meta.js"
61
61
  }
62
62
  },
63
63
  {
@@ -65,10 +65,10 @@
65
65
  "npm": {
66
66
  "package": "@steedos-widgets/reactflow"
67
67
  },
68
- "url": "https://unpkg.com/@steedos-widgets/reactflow@1.3.4-beta.8/dist/meta.js",
68
+ "url": "https://unpkg.com/@steedos-widgets/reactflow@1.3.5/dist/meta.js",
69
69
  "urls": {
70
- "default": "https://unpkg.com/@steedos-widgets/reactflow@1.3.4-beta.8/dist/meta.js",
71
- "design": "https://unpkg.com/@steedos-widgets/reactflow@1.3.4-beta.8/dist/meta.js"
70
+ "default": "https://unpkg.com/@steedos-widgets/reactflow@1.3.5/dist/meta.js",
71
+ "design": "https://unpkg.com/@steedos-widgets/reactflow@1.3.5/dist/meta.js"
72
72
  }
73
73
  },
74
74
  {
@@ -76,10 +76,10 @@
76
76
  "npm": {
77
77
  "package": "@steedos-widgets/sortable"
78
78
  },
79
- "url": "https://unpkg.com/@steedos-widgets/sortable@1.3.4-beta.8/dist/meta.js",
79
+ "url": "https://unpkg.com/@steedos-widgets/sortable@1.3.5/dist/meta.js",
80
80
  "urls": {
81
- "default": "https://unpkg.com/@steedos-widgets/sortable@1.3.4-beta.8/dist/meta.js",
82
- "design": "https://unpkg.com/@steedos-widgets/sortable@1.3.4-beta.8/dist/meta.js"
81
+ "default": "https://unpkg.com/@steedos-widgets/sortable@1.3.5/dist/meta.js",
82
+ "design": "https://unpkg.com/@steedos-widgets/sortable@1.3.5/dist/meta.js"
83
83
  }
84
84
  },
85
85
  {
@@ -87,10 +87,10 @@
87
87
  "npm": {
88
88
  "package": "@steedos-widgets/amis-object"
89
89
  },
90
- "url": "https://unpkg.com/@steedos-widgets/amis-object@1.3.4-beta.8/dist/meta.js",
90
+ "url": "https://unpkg.com/@steedos-widgets/amis-object@1.3.5/dist/meta.js",
91
91
  "urls": {
92
- "default": "https://unpkg.com/@steedos-widgets/amis-object@1.3.4-beta.8/dist/meta.js",
93
- "design": "https://unpkg.com/@steedos-widgets/amis-object@1.3.4-beta.8/dist/meta.js"
92
+ "default": "https://unpkg.com/@steedos-widgets/amis-object@1.3.5/dist/meta.js",
93
+ "design": "https://unpkg.com/@steedos-widgets/amis-object@1.3.5/dist/meta.js"
94
94
  }
95
95
  }
96
96
  ]
package/dist/meta.js CHANGED
@@ -33,8 +33,8 @@
33
33
  /*
34
34
  * @Author: baozhoutao@steedos.com
35
35
  * @Date: 2022-08-31 16:32:35
36
- * @LastEditors: 殷亮辉 yinlianghui@hotoa.com
37
- * @LastEditTime: 2023-06-26 11:48:44
36
+ * @LastEditors: liaodaxue
37
+ * @LastEditTime: 2023-10-27 17:53:35
38
38
  * @Description:
39
39
  */
40
40
  var config$w = {
@@ -369,6 +369,24 @@
369
369
  // right: 8,
370
370
  // justify: true
371
371
  // },
372
+ "pipeIn": function (value, data) {
373
+ if (value) {
374
+ return value;
375
+ }
376
+ return "";
377
+ },
378
+ "pipeOut": function (value, data) {
379
+ if (value) {
380
+ var v = JSON.parse(value);
381
+ if (JSON.stringify(v) === '{}') {
382
+ return "";
383
+ }
384
+ else {
385
+ return v;
386
+ }
387
+ }
388
+ return "";
389
+ },
372
390
  language: "json",
373
391
  // visibleOn: "this.fieldsControl === 'included'"
374
392
  },
@@ -451,6 +469,26 @@
451
469
  "visibleOn": "${enableTabs}"
452
470
  }
453
471
  ]
472
+ },
473
+ {
474
+ "type": "collapse",
475
+ headingClassName: 'ae-formItemControl-header',
476
+ bodyClassName: 'ae-formItemControl-body',
477
+ "key": "4",
478
+ "header": "高级",
479
+ "body": [
480
+ {
481
+ type: "editor",
482
+ name: "formDataFilter",
483
+ label: "FORM",
484
+ description: ""
485
+ },
486
+ {
487
+ "type": "markdown",
488
+ "value": "如果需要对组件原始返回的form进行加工,可以自己写一段函数脚本来实现。\n\n函数签名:(form, env, data) => form\n\n参数说明:\n\nform 组件原始返回的form schema\n\nenv amis env,可以调用env.fetcher函数实现异步请求\n\ndata 数据域中的data\n\n返回值:\n\n最后需要返回加工后的form schema\n\n示例:\n\n```\nconsole.log('data===>', data);\nconst api = ...;\nreturn env.fetcher(api, {}).then((result) => {\n console.log(result);\n form.body[0].tabs[0].title='基础信息';\n return form;\n});\n\n```\n",
489
+ "className": "text-gray-500"
490
+ }
491
+ ]
454
492
  }
455
493
  ]
456
494
  }
@@ -543,6 +581,7 @@
543
581
  bodyClassName: 'ae-formItemControl-body',
544
582
  "key": "4",
545
583
  "header": "保存数据接口",
584
+ "visibleOn": "${mode == 'edit'}",
546
585
  "body": [
547
586
  {
548
587
  type: "editor",
@@ -573,8 +612,8 @@
573
612
  /*
574
613
  * @Author: baozhoutao@steedos.com
575
614
  * @Date: 2022-08-31 16:32:35
576
- * @LastEditors: 殷亮辉 yinlianghui@hotoa.com
577
- * @LastEditTime: 2023-09-13 13:48:03
615
+ * @LastEditors: liaodaxue
616
+ * @LastEditTime: 2023-10-20 13:24:39
578
617
  * @Description:
579
618
  */
580
619
  var config$v = {
@@ -603,6 +642,16 @@
603
642
  name: "listName",
604
643
  propType: "string",
605
644
  description: '视图名称',
645
+ },
646
+ {
647
+ name: "requestAdaptor",
648
+ propType: "string",
649
+ description: '发送适配器',
650
+ },
651
+ {
652
+ name: "adaptor",
653
+ propType: "string",
654
+ description: '接收适配器',
606
655
  }
607
656
  ],
608
657
  preview: {},
@@ -705,19 +754,35 @@
705
754
  "name": "showHeader",
706
755
  "label": "显示表头",
707
756
  },
757
+ // {
758
+ // type: "button-group-select",
759
+ // name: "formFactor",
760
+ // label: "显示样式",
761
+ // value: "LARGE",
762
+ // options: [
763
+ // {
764
+ // "label": "表格",
765
+ // "value": "LARGE"
766
+ // },
767
+ // {
768
+ // "label": "手机",
769
+ // "value": "SMALL"
770
+ // }
771
+ // ]
772
+ // },
708
773
  {
709
774
  type: "button-group-select",
710
- name: "formFactor",
711
- label: "显示样式",
712
- value: "LARGE",
775
+ name: "crudMode",
776
+ label: "显示模式",
777
+ value: "table",
713
778
  options: [
714
779
  {
715
780
  "label": "表格",
716
- "value": "LARGE"
781
+ "value": "table"
717
782
  },
718
783
  {
719
- "label": "手机",
720
- "value": "SMALL"
784
+ "label": "卡片",
785
+ "value": "cards"
721
786
  }
722
787
  ]
723
788
  },
@@ -726,6 +791,29 @@
726
791
  name: "className",
727
792
  label: "CSS类名"
728
793
  },
794
+ {
795
+ "type": "collapse",
796
+ headingClassName: 'pl-0',
797
+ bodyClassName: '',
798
+ "collapsed": true,
799
+ "header": "数据接口",
800
+ "body": [
801
+ {
802
+ type: "editor",
803
+ name: "requestAdaptor",
804
+ label: "发送适配器",
805
+ language: "javascript",
806
+ description: "函数签名:(api) => api, 数据在 api.data 中,修改后返回 api 对象。"
807
+ },
808
+ {
809
+ type: "editor",
810
+ name: "adaptor",
811
+ label: "接收适配器",
812
+ language: "javascript",
813
+ description: "函数签名: (payload, response, api) => payload"
814
+ }
815
+ ]
816
+ },
729
817
  {
730
818
  "type": "collapse",
731
819
  headingClassName: 'pl-0',
@@ -906,7 +994,7 @@
906
994
  * @Author: baozhoutao@steedos.com
907
995
  * @Date: 2022-08-31 16:32:35
908
996
  * @LastEditors: 殷亮辉 yinlianghui@hotoa.com
909
- * @LastEditTime: 2023-09-13 11:27:12
997
+ * @LastEditTime: 2023-10-19 14:04:12
910
998
  * @Description:
911
999
  */
912
1000
  var config$t = {
@@ -1110,6 +1198,22 @@
1110
1198
  // },
1111
1199
  language: "json",
1112
1200
  // visibleOn: "this.fieldsControl === 'included'"
1201
+ },
1202
+ {
1203
+ type: "button-group-select",
1204
+ name: "crudMode",
1205
+ label: "显示模式",
1206
+ value: "table",
1207
+ options: [
1208
+ {
1209
+ "label": "表格",
1210
+ "value": "table"
1211
+ },
1212
+ {
1213
+ "label": "卡片",
1214
+ "value": "cards"
1215
+ }
1216
+ ]
1113
1217
  }
1114
1218
  ]
1115
1219
  },
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@steedos-widgets/amis-object",
3
3
  "private": false,
4
- "version": "1.3.4-beta.8",
4
+ "version": "1.3.5",
5
5
  "main": "dist/amis-object.cjs.js",
6
6
  "module": "dist/amis-object.esm.js",
7
7
  "unpkg": "dist/amis-object.umd.js",
@@ -61,10 +61,10 @@
61
61
  "uglify-js": "^3.17.0"
62
62
  },
63
63
  "dependencies": {
64
- "@steedos-widgets/amis-lib": "1.3.4-beta.8",
64
+ "@steedos-widgets/amis-lib": "1.3.5",
65
65
  "autoprefixer": "^10.4.13",
66
66
  "postcss": "^8.4.19",
67
67
  "tailwindcss": "^3.2.4"
68
68
  },
69
- "gitHead": "5a2f9de4ec64c0673b8c796367bd642d14d45aaf"
69
+ "gitHead": "696396061c57decfde1f9d8f14c36fff7f4316b9"
70
70
  }