@steedos-widgets/amis-object 1.2.3 → 1.2.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,23 +11,23 @@
11
11
  {
12
12
  "package": "@steedos-widgets/fullcalendar",
13
13
  "urls": [
14
- "https://unpkg.com/@steedos-widgets/fullcalendar@1.2.3/dist/fullcalendar.umd.js",
15
- "https://unpkg.com/@steedos-widgets/fullcalendar@1.2.3/dist/fullcalendar.umd.css"
14
+ "https://unpkg.com/@steedos-widgets/fullcalendar@1.2.5/dist/fullcalendar.umd.js",
15
+ "https://unpkg.com/@steedos-widgets/fullcalendar@1.2.5/dist/fullcalendar.umd.css"
16
16
  ],
17
17
  "library": "BuilderFullCalendar"
18
18
  },
19
19
  {
20
20
  "package": "steedos-lib",
21
21
  "urls": [
22
- "https://unpkg.com/@steedos-widgets/steedos-lib@1.2.3/dist/index.umd.js"
22
+ "https://unpkg.com/@steedos-widgets/steedos-lib@1.2.5/dist/index.umd.js"
23
23
  ],
24
24
  "library": "SteedosLib"
25
25
  },
26
26
  {
27
27
  "package": "@steedos-widgets/amis-object",
28
28
  "urls": [
29
- "https://unpkg.com/@steedos-widgets/amis-object@1.2.3/dist/amis-object.umd.js",
30
- "https://unpkg.com/@steedos-widgets/amis-object@1.2.3/dist/amis-object.umd.css"
29
+ "https://unpkg.com/@steedos-widgets/amis-object@1.2.5/dist/amis-object.umd.js",
30
+ "https://unpkg.com/@steedos-widgets/amis-object@1.2.5/dist/amis-object.umd.css"
31
31
  ],
32
32
  "library": "BuilderAmisObject"
33
33
  }
@@ -38,10 +38,10 @@
38
38
  "npm": {
39
39
  "package": "@steedos-widgets/fullcalendar"
40
40
  },
41
- "url": "https://unpkg.com/@steedos-widgets/fullcalendar@1.2.3/dist/meta.js",
41
+ "url": "https://unpkg.com/@steedos-widgets/fullcalendar@1.2.5/dist/meta.js",
42
42
  "urls": {
43
- "default": "https://unpkg.com/@steedos-widgets/fullcalendar@1.2.3/dist/meta.js",
44
- "design": "https://unpkg.com/@steedos-widgets/fullcalendar@1.2.3/dist/meta.js"
43
+ "default": "https://unpkg.com/@steedos-widgets/fullcalendar@1.2.5/dist/meta.js",
44
+ "design": "https://unpkg.com/@steedos-widgets/fullcalendar@1.2.5/dist/meta.js"
45
45
  }
46
46
  },
47
47
  {
@@ -49,10 +49,10 @@
49
49
  "npm": {
50
50
  "package": "@steedos-widgets/amis-object"
51
51
  },
52
- "url": "https://unpkg.com/@steedos-widgets/amis-object@1.2.3/dist/meta.js",
52
+ "url": "https://unpkg.com/@steedos-widgets/amis-object@1.2.5/dist/meta.js",
53
53
  "urls": {
54
- "default": "https://unpkg.com/@steedos-widgets/amis-object@1.2.3/dist/meta.js",
55
- "design": "https://unpkg.com/@steedos-widgets/amis-object@1.2.3/dist/meta.js"
54
+ "default": "https://unpkg.com/@steedos-widgets/amis-object@1.2.5/dist/meta.js",
55
+ "design": "https://unpkg.com/@steedos-widgets/amis-object@1.2.5/dist/meta.js"
56
56
  }
57
57
  }
58
58
  ]
package/dist/meta.js CHANGED
@@ -1576,8 +1576,8 @@
1576
1576
  /*
1577
1577
  * @Author: baozhoutao@steedos.com
1578
1578
  * @Date: 2022-08-31 16:32:35
1579
- * @LastEditors: baozhoutao@steedos.com
1580
- * @LastEditTime: 2023-03-06 14:31:14
1579
+ * @LastEditors: Please set LastEditors
1580
+ * @LastEditTime: 2023-04-13 11:24:17
1581
1581
  * @Description:
1582
1582
  */
1583
1583
  var config$m = {
@@ -1611,6 +1611,16 @@
1611
1611
  name: "relatedObjectApiName",
1612
1612
  propType: "string",
1613
1613
  description: '相关列表对象',
1614
+ },
1615
+ {
1616
+ name: "requestAdaptor",
1617
+ propType: "string",
1618
+ description: '发送适配器',
1619
+ },
1620
+ {
1621
+ name: "adaptor",
1622
+ propType: "string",
1623
+ description: '接收适配器',
1614
1624
  }
1615
1625
  ],
1616
1626
  preview: {},
@@ -1659,55 +1669,116 @@
1659
1669
  panelTitle: "设置",
1660
1670
  panelControls: [
1661
1671
  {
1662
- "type": "select",
1663
- "label": "父级对象",
1664
- "name": "objectApiName",
1665
- "searchable": true,
1666
- "multiple": false,
1667
- "source": {
1668
- "method": "get",
1669
- "url": "/service/api/amis-design/objects",
1670
- "requestAdaptor": "api.url = Builder.settings.rootUrl + api.url; if(!api.headers){api.headers = {}};api.headers.Authorization='Bearer ' + Builder.settings.tenantId + ',' + Builder.settings.authToken ;return api;",
1671
- "adaptor": "\n let data = payload.data;\n payload.unshift({\n label: \"\u5F53\u524D\u5BF9\u8C61\",\n name: \"${objectName}\"\n });\n return payload;\n "
1672
- },
1673
- "labelField": "label",
1674
- "valueField": "name",
1675
- "menuTpl": ""
1676
- },
1677
- {
1678
- type: "text",
1679
- name: "recordId",
1680
- label: "父级记录"
1681
- },
1682
- {
1683
- "type": "select",
1684
- "label": "相关列表对象",
1685
- "name": "relatedObjectApiName",
1686
- "searchable": true,
1687
- "multiple": false,
1688
- "source": {
1689
- "method": "get",
1690
- "data": {
1691
- "objectName": "${objectName}"
1692
- },
1693
- "url": "/service/api/amis-design/related_objects/${objectApiName}",
1694
- "requestAdaptor": "api.url = Builder.settings.rootUrl + api.url.replaceAll('${objectName}',api.body.objectName); if(!api.headers){api.headers = {}};api.headers.Authorization='Bearer ' + Builder.settings.tenantId + ',' + Builder.settings.authToken ;return api;",
1695
- "sendOn": "this.objectApiName"
1696
- },
1697
- "labelField": "label",
1698
- "valueField": "name",
1699
- "menuTpl": ""
1700
- },
1701
- {
1702
- "type": "number",
1703
- "name": "top",
1704
- "label": "显示的记录数量",
1705
- "labelRemark": "即TOP,配置该属性后不再支持翻页,始终显示该属性值配置的记录数"
1706
- },
1707
- {
1708
- "type": "number",
1709
- "name": "perPage",
1710
- "label": "每页显示记录数量",
1672
+ "type": "tabs",
1673
+ tabsMode: 'line',
1674
+ className: 'editor-prop-config-tabs',
1675
+ linksClassName: 'editor-prop-config-tabs-links',
1676
+ contentClassName: 'no-border editor-prop-config-tabs-cont',
1677
+ tabs: [
1678
+ {
1679
+ "title": "属性",
1680
+ className: 'p-none',
1681
+ "body": [
1682
+ {
1683
+ "type": "collapse-group",
1684
+ expandIconPosition: 'right',
1685
+ expandIcon: {
1686
+ type: 'icon',
1687
+ icon: 'chevron-right'
1688
+ },
1689
+ className: 'ae-formItemControl',
1690
+ "activeKey": [
1691
+ "1",
1692
+ ],
1693
+ "body": [
1694
+ {
1695
+ "type": "collapse",
1696
+ headingClassName: 'ae-formItemControl-header',
1697
+ bodyClassName: 'ae-formItemControl-body',
1698
+ "key": "1",
1699
+ "header": "基本属性",
1700
+ body: [
1701
+ {
1702
+ "type": "select",
1703
+ "label": "父级对象",
1704
+ "name": "objectApiName",
1705
+ "searchable": true,
1706
+ "multiple": false,
1707
+ "source": {
1708
+ "method": "get",
1709
+ "url": "/service/api/amis-design/objects",
1710
+ "requestAdaptor": "api.url = Builder.settings.rootUrl + api.url; if(!api.headers){api.headers = {}};api.headers.Authorization='Bearer ' + Builder.settings.tenantId + ',' + Builder.settings.authToken ;return api;",
1711
+ "adaptor": "\n let data = payload.data;\n payload.unshift({\n label: \"\u5F53\u524D\u5BF9\u8C61\",\n name: \"${objectName}\"\n });\n return payload;\n "
1712
+ },
1713
+ "labelField": "label",
1714
+ "valueField": "name",
1715
+ "menuTpl": ""
1716
+ },
1717
+ {
1718
+ type: "input-text",
1719
+ name: "recordId",
1720
+ label: "父级记录"
1721
+ },
1722
+ {
1723
+ "type": "select",
1724
+ "label": "相关列表对象",
1725
+ "name": "relatedObjectApiName",
1726
+ "searchable": true,
1727
+ "multiple": false,
1728
+ "source": {
1729
+ "method": "get",
1730
+ "data": {
1731
+ "objectName": "${objectName}"
1732
+ },
1733
+ "url": "/service/api/amis-design/related_objects/${objectApiName}",
1734
+ "requestAdaptor": "api.url = Builder.settings.rootUrl + api.url.replaceAll('${objectName}',api.body.objectName); if(!api.headers){api.headers = {}};api.headers.Authorization='Bearer ' + Builder.settings.tenantId + ',' + Builder.settings.authToken ;return api;",
1735
+ "sendOn": "this.objectApiName"
1736
+ },
1737
+ "labelField": "label",
1738
+ "valueField": "name",
1739
+ "menuTpl": ""
1740
+ },
1741
+ {
1742
+ "type": "input-number",
1743
+ "name": "top",
1744
+ "label": "显示的记录数量",
1745
+ "labelRemark": "即TOP,配置该属性后不再支持翻页,始终显示该属性值配置的记录数"
1746
+ },
1747
+ {
1748
+ "type": "input-number",
1749
+ "name": "perPage",
1750
+ "label": "每页显示记录数量",
1751
+ },
1752
+ ]
1753
+ },
1754
+ {
1755
+ "type": "collapse",
1756
+ headingClassName: 'ae-formItemControl-header',
1757
+ bodyClassName: 'ae-formItemControl-body',
1758
+ "key": "2",
1759
+ "header": "数据接口",
1760
+ "body": [
1761
+ {
1762
+ type: "editor",
1763
+ name: "requestAdaptor",
1764
+ label: "发送适配器",
1765
+ language: "javascript",
1766
+ description: "函数签名:(api) => api, 数据在 api.data 中,修改后返回 api 对象。"
1767
+ },
1768
+ {
1769
+ type: "editor",
1770
+ name: "adaptor",
1771
+ label: "接收适配器",
1772
+ language: "javascript",
1773
+ description: "函数签名: (payload, response, api) => payload"
1774
+ }
1775
+ ]
1776
+ }
1777
+ ]
1778
+ }
1779
+ ]
1780
+ }
1781
+ ]
1711
1782
  }
1712
1783
  ]
1713
1784
  }
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@steedos-widgets/amis-object",
3
3
  "private": false,
4
- "version": "1.2.3",
4
+ "version": "1.2.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.2.3",
64
+ "@steedos-widgets/amis-lib": "1.2.5",
65
65
  "autoprefixer": "^10.4.13",
66
66
  "postcss": "^8.4.19",
67
67
  "tailwindcss": "^3.2.4"
68
68
  },
69
- "gitHead": "6b959fd28fc7b2ac96ed8b148dcbaf9bca9b277c"
69
+ "gitHead": "fc6b5166b03c8d5817460137cb02c986bc9ce3c3"
70
70
  }