@steedos-widgets/amis-object 1.1.9 → 1.1.11

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.1.9/dist/fullcalendar.umd.js",
15
- "https://unpkg.com/@steedos-widgets/fullcalendar@1.1.9/dist/fullcalendar.umd.css"
14
+ "https://unpkg.com/@steedos-widgets/fullcalendar@1.1.11/dist/fullcalendar.umd.js",
15
+ "https://unpkg.com/@steedos-widgets/fullcalendar@1.1.11/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.1.9/dist/index.umd.js"
22
+ "https://unpkg.com/@steedos-widgets/steedos-lib@1.1.11/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.1.9/dist/amis-object.umd.js",
30
- "https://unpkg.com/@steedos-widgets/amis-object@1.1.9/dist/amis-object.umd.css"
29
+ "https://unpkg.com/@steedos-widgets/amis-object@1.1.11/dist/amis-object.umd.js",
30
+ "https://unpkg.com/@steedos-widgets/amis-object@1.1.11/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.1.9/dist/meta.js",
41
+ "url": "https://unpkg.com/@steedos-widgets/fullcalendar@1.1.11/dist/meta.js",
42
42
  "urls": {
43
- "default": "https://unpkg.com/@steedos-widgets/fullcalendar@1.1.9/dist/meta.js",
44
- "design": "https://unpkg.com/@steedos-widgets/fullcalendar@1.1.9/dist/meta.js"
43
+ "default": "https://unpkg.com/@steedos-widgets/fullcalendar@1.1.11/dist/meta.js",
44
+ "design": "https://unpkg.com/@steedos-widgets/fullcalendar@1.1.11/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.1.9/dist/meta.js",
52
+ "url": "https://unpkg.com/@steedos-widgets/amis-object@1.1.11/dist/meta.js",
53
53
  "urls": {
54
- "default": "https://unpkg.com/@steedos-widgets/amis-object@1.1.9/dist/meta.js",
55
- "design": "https://unpkg.com/@steedos-widgets/amis-object@1.1.9/dist/meta.js"
54
+ "default": "https://unpkg.com/@steedos-widgets/amis-object@1.1.11/dist/meta.js",
55
+ "design": "https://unpkg.com/@steedos-widgets/amis-object@1.1.11/dist/meta.js"
56
56
  }
57
57
  }
58
58
  ]
package/dist/meta.js CHANGED
@@ -1465,8 +1465,8 @@
1465
1465
  /*
1466
1466
  * @Author: baozhoutao@steedos.com
1467
1467
  * @Date: 2022-08-31 16:32:35
1468
- * @LastEditors: baozhoutao@steedos.com
1469
- * @LastEditTime: 2023-03-06 14:31:14
1468
+ * @LastEditors: Please set LastEditors
1469
+ * @LastEditTime: 2023-04-13 11:24:17
1470
1470
  * @Description:
1471
1471
  */
1472
1472
  var config$k = {
@@ -1500,6 +1500,16 @@
1500
1500
  name: "relatedObjectApiName",
1501
1501
  propType: "string",
1502
1502
  description: '相关列表对象',
1503
+ },
1504
+ {
1505
+ name: "requestAdaptor",
1506
+ propType: "string",
1507
+ description: '发送适配器',
1508
+ },
1509
+ {
1510
+ name: "adaptor",
1511
+ propType: "string",
1512
+ description: '接收适配器',
1503
1513
  }
1504
1514
  ],
1505
1515
  preview: {},
@@ -1548,55 +1558,116 @@
1548
1558
  panelTitle: "设置",
1549
1559
  panelControls: [
1550
1560
  {
1551
- "type": "select",
1552
- "label": "父级对象",
1553
- "name": "objectApiName",
1554
- "searchable": true,
1555
- "multiple": false,
1556
- "source": {
1557
- "method": "get",
1558
- "url": "/service/api/amis-design/objects",
1559
- "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;",
1560
- "adaptor": "\n let data = payload.data;\n payload.unshift({\n label: \"\u5F53\u524D\u5BF9\u8C61\",\n name: \"${objectName}\"\n });\n return payload;\n "
1561
- },
1562
- "labelField": "label",
1563
- "valueField": "name",
1564
- "menuTpl": ""
1565
- },
1566
- {
1567
- type: "text",
1568
- name: "recordId",
1569
- label: "父级记录"
1570
- },
1571
- {
1572
- "type": "select",
1573
- "label": "相关列表对象",
1574
- "name": "relatedObjectApiName",
1575
- "searchable": true,
1576
- "multiple": false,
1577
- "source": {
1578
- "method": "get",
1579
- "data": {
1580
- "objectName": "${objectName}"
1581
- },
1582
- "url": "/service/api/amis-design/related_objects/${objectApiName}",
1583
- "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;",
1584
- "sendOn": "this.objectApiName"
1585
- },
1586
- "labelField": "label",
1587
- "valueField": "name",
1588
- "menuTpl": ""
1589
- },
1590
- {
1591
- "type": "number",
1592
- "name": "top",
1593
- "label": "显示的记录数量",
1594
- "labelRemark": "即TOP,配置该属性后不再支持翻页,始终显示该属性值配置的记录数"
1595
- },
1596
- {
1597
- "type": "number",
1598
- "name": "perPage",
1599
- "label": "每页显示记录数量",
1561
+ "type": "tabs",
1562
+ tabsMode: 'line',
1563
+ className: 'editor-prop-config-tabs',
1564
+ linksClassName: 'editor-prop-config-tabs-links',
1565
+ contentClassName: 'no-border editor-prop-config-tabs-cont',
1566
+ tabs: [
1567
+ {
1568
+ "title": "属性",
1569
+ className: 'p-none',
1570
+ "body": [
1571
+ {
1572
+ "type": "collapse-group",
1573
+ expandIconPosition: 'right',
1574
+ expandIcon: {
1575
+ type: 'icon',
1576
+ icon: 'chevron-right'
1577
+ },
1578
+ className: 'ae-formItemControl',
1579
+ "activeKey": [
1580
+ "1",
1581
+ ],
1582
+ "body": [
1583
+ {
1584
+ "type": "collapse",
1585
+ headingClassName: 'ae-formItemControl-header',
1586
+ bodyClassName: 'ae-formItemControl-body',
1587
+ "key": "1",
1588
+ "header": "基本属性",
1589
+ body: [
1590
+ {
1591
+ "type": "select",
1592
+ "label": "父级对象",
1593
+ "name": "objectApiName",
1594
+ "searchable": true,
1595
+ "multiple": false,
1596
+ "source": {
1597
+ "method": "get",
1598
+ "url": "/service/api/amis-design/objects",
1599
+ "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;",
1600
+ "adaptor": "\n let data = payload.data;\n payload.unshift({\n label: \"\u5F53\u524D\u5BF9\u8C61\",\n name: \"${objectName}\"\n });\n return payload;\n "
1601
+ },
1602
+ "labelField": "label",
1603
+ "valueField": "name",
1604
+ "menuTpl": ""
1605
+ },
1606
+ {
1607
+ type: "input-text",
1608
+ name: "recordId",
1609
+ label: "父级记录"
1610
+ },
1611
+ {
1612
+ "type": "select",
1613
+ "label": "相关列表对象",
1614
+ "name": "relatedObjectApiName",
1615
+ "searchable": true,
1616
+ "multiple": false,
1617
+ "source": {
1618
+ "method": "get",
1619
+ "data": {
1620
+ "objectName": "${objectName}"
1621
+ },
1622
+ "url": "/service/api/amis-design/related_objects/${objectApiName}",
1623
+ "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;",
1624
+ "sendOn": "this.objectApiName"
1625
+ },
1626
+ "labelField": "label",
1627
+ "valueField": "name",
1628
+ "menuTpl": ""
1629
+ },
1630
+ {
1631
+ "type": "input-number",
1632
+ "name": "top",
1633
+ "label": "显示的记录数量",
1634
+ "labelRemark": "即TOP,配置该属性后不再支持翻页,始终显示该属性值配置的记录数"
1635
+ },
1636
+ {
1637
+ "type": "input-number",
1638
+ "name": "perPage",
1639
+ "label": "每页显示记录数量",
1640
+ },
1641
+ ]
1642
+ },
1643
+ {
1644
+ "type": "collapse",
1645
+ headingClassName: 'ae-formItemControl-header',
1646
+ bodyClassName: 'ae-formItemControl-body',
1647
+ "key": "2",
1648
+ "header": "数据接口",
1649
+ "body": [
1650
+ {
1651
+ type: "editor",
1652
+ name: "requestAdaptor",
1653
+ label: "发送适配器",
1654
+ language: "javascript",
1655
+ description: "函数签名:(api) => api, 数据在 api.data 中,修改后返回 api 对象。"
1656
+ },
1657
+ {
1658
+ type: "editor",
1659
+ name: "adaptor",
1660
+ label: "接收适配器",
1661
+ language: "javascript",
1662
+ description: "函数签名: (payload, response, api) => payload"
1663
+ }
1664
+ ]
1665
+ }
1666
+ ]
1667
+ }
1668
+ ]
1669
+ }
1670
+ ]
1600
1671
  }
1601
1672
  ]
1602
1673
  }
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@steedos-widgets/amis-object",
3
3
  "private": false,
4
- "version": "1.1.9",
4
+ "version": "1.1.11",
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.1.9",
64
+ "@steedos-widgets/amis-lib": "1.1.11",
65
65
  "autoprefixer": "^10.4.13",
66
66
  "postcss": "^8.4.19",
67
67
  "tailwindcss": "^3.2.4"
68
68
  },
69
- "gitHead": "b54aac057fc718cb9d05e4aba1490c6c22898907"
69
+ "gitHead": "3a0d6a58c5278dea389c753a3af11a367f0806cc"
70
70
  }