@steedos-widgets/amis-object 0.0.13 → 0.0.15

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,8 +11,8 @@
11
11
  {
12
12
  "package": "@steedos-widgets/amis-object",
13
13
  "urls": [
14
- "https://unpkg.com/@steedos-widgets/amis-object@0.0.13/dist/amis-object.umd.js",
15
- "https://unpkg.com/@steedos-widgets/amis-object@0.0.13/dist/amis-object.umd.css"
14
+ "https://unpkg.com/@steedos-widgets/amis-object@0.0.15/dist/amis-object.umd.js",
15
+ "https://unpkg.com/@steedos-widgets/amis-object@0.0.15/dist/amis-object.umd.css"
16
16
  ],
17
17
  "library": "BuilderAmisObject"
18
18
  }
@@ -23,10 +23,10 @@
23
23
  "npm": {
24
24
  "package": "@steedos-widgets/amis-object"
25
25
  },
26
- "url": "https://unpkg.com/@steedos-widgets/amis-object@0.0.13/dist/meta.js",
26
+ "url": "https://unpkg.com/@steedos-widgets/amis-object@0.0.15/dist/meta.js",
27
27
  "urls": {
28
- "default": "https://unpkg.com/@steedos-widgets/amis-object@0.0.13/dist/meta.js",
29
- "design": "https://unpkg.com/@steedos-widgets/amis-object@0.0.13/dist/meta.js"
28
+ "default": "https://unpkg.com/@steedos-widgets/amis-object@0.0.15/dist/meta.js",
29
+ "design": "https://unpkg.com/@steedos-widgets/amis-object@0.0.15/dist/meta.js"
30
30
  }
31
31
  }
32
32
  ]
package/dist/meta.js CHANGED
@@ -37,7 +37,7 @@
37
37
  * @LastEditTime: 2022-09-02 09:04:33
38
38
  * @Description:
39
39
  */
40
- var config$9 = {
40
+ var config$a = {
41
41
  componentType: 'amisSchema',
42
42
  group: "华炎魔方",
43
43
  componentName: "AmisObjectForm",
@@ -95,38 +95,38 @@
95
95
  icon: "fa-fw fa fa-list-alt"
96
96
  }
97
97
  };
98
- var AmisObjectForm = __assign(__assign({}, config$9), { snippets: [
98
+ var AmisObjectForm = __assign(__assign({}, config$a), { snippets: [
99
99
  {
100
- title: config$9.title,
100
+ title: config$a.title,
101
101
  screenshot: "",
102
102
  schema: {
103
- componentName: config$9.componentName,
104
- props: config$9.preview
103
+ componentName: config$a.componentName,
104
+ props: config$a.preview
105
105
  }
106
106
  }
107
107
  ], amis: {
108
108
  render: {
109
- type: config$9.amis.name,
109
+ type: config$a.amis.name,
110
110
  usage: "renderer",
111
111
  weight: 1,
112
112
  framework: "react"
113
113
  },
114
114
  plugin: {
115
- rendererName: config$9.amis.name,
115
+ rendererName: config$a.amis.name,
116
116
  $schema: '/schemas/UnkownSchema.json',
117
- name: config$9.title,
118
- description: config$9.title,
119
- tags: [config$9.group],
117
+ name: config$a.title,
118
+ description: config$a.title,
119
+ tags: [config$a.group],
120
120
  order: -9999,
121
- icon: config$9.amis.icon,
121
+ icon: config$a.amis.icon,
122
122
  scaffold: {
123
- type: config$9.amis.name,
124
- label: config$9.title,
123
+ type: config$a.amis.name,
124
+ label: config$a.title,
125
125
  objectApiName: "${objectName}",
126
126
  recordId: "${recordId}"
127
127
  },
128
128
  previewSchema: {
129
- type: config$9.amis.name,
129
+ type: config$a.amis.name,
130
130
  objectApiName: 'space_users'
131
131
  },
132
132
  panelTitle: "设置",
@@ -221,7 +221,7 @@
221
221
  * @LastEditTime: 2022-09-15 10:40:37
222
222
  * @Description:
223
223
  */
224
- var config$8 = {
224
+ var config$9 = {
225
225
  componentType: 'amisSchema',
226
226
  group: "华炎魔方",
227
227
  componentName: "AmisObjectListView",
@@ -257,38 +257,38 @@
257
257
  icon: "fa-fw fa fa-list-alt"
258
258
  }
259
259
  };
260
- var AmisObjectListview = __assign(__assign({}, config$8), { snippets: [
260
+ var AmisObjectListview = __assign(__assign({}, config$9), { snippets: [
261
261
  {
262
- title: config$8.title,
262
+ title: config$9.title,
263
263
  screenshot: "",
264
264
  schema: {
265
- componentName: config$8.componentName,
266
- props: config$8.preview
265
+ componentName: config$9.componentName,
266
+ props: config$9.preview
267
267
  }
268
268
  }
269
269
  ], amis: {
270
270
  render: {
271
- type: config$8.amis.name,
271
+ type: config$9.amis.name,
272
272
  usage: "renderer",
273
273
  weight: 1,
274
274
  framework: "react"
275
275
  },
276
276
  plugin: {
277
- rendererName: config$8.amis.name,
277
+ rendererName: config$9.amis.name,
278
278
  $schema: '/schemas/UnkownSchema.json',
279
- name: config$8.title,
280
- description: config$8.title,
281
- tags: [config$8.group],
279
+ name: config$9.title,
280
+ description: config$9.title,
281
+ tags: [config$9.group],
282
282
  order: -9999,
283
- icon: config$8.amis.icon,
283
+ icon: config$9.amis.icon,
284
284
  scaffold: {
285
- type: config$8.amis.name,
286
- label: config$8.title,
285
+ type: config$9.amis.name,
286
+ label: config$9.title,
287
287
  objectApiName: "${objectName}",
288
288
  listName: "all"
289
289
  },
290
290
  previewSchema: {
291
- type: config$8.amis.name,
291
+ type: config$9.amis.name,
292
292
  objectApiName: 'space_users',
293
293
  listName: "all"
294
294
  },
@@ -361,7 +361,7 @@
361
361
  * @LastEditTime: 2022-09-15 10:40:37
362
362
  * @Description:
363
363
  */
364
- var config$7 = {
364
+ var config$8 = {
365
365
  componentType: 'amisSchema',
366
366
  group: "华炎魔方",
367
367
  componentName: "AmisObjectTable",
@@ -417,38 +417,38 @@
417
417
  icon: "fa-fw fa fa-list-alt"
418
418
  }
419
419
  };
420
- var AmisObjectTable = __assign(__assign({}, config$7), { snippets: [
420
+ var AmisObjectTable = __assign(__assign({}, config$8), { snippets: [
421
421
  {
422
- title: config$7.title,
422
+ title: config$8.title,
423
423
  screenshot: "",
424
424
  schema: {
425
- componentName: config$7.componentName,
426
- props: config$7.preview
425
+ componentName: config$8.componentName,
426
+ props: config$8.preview
427
427
  }
428
428
  }
429
429
  ], amis: {
430
430
  render: {
431
- type: config$7.amis.name,
431
+ type: config$8.amis.name,
432
432
  usage: "renderer",
433
433
  weight: 1,
434
434
  framework: "react"
435
435
  },
436
436
  plugin: {
437
- rendererName: config$7.amis.name,
437
+ rendererName: config$8.amis.name,
438
438
  $schema: '/schemas/UnkownSchema.json',
439
- name: config$7.title,
440
- description: config$7.title,
441
- tags: [config$7.group],
439
+ name: config$8.title,
440
+ description: config$8.title,
441
+ tags: [config$8.group],
442
442
  order: -9999,
443
- icon: config$7.amis.icon,
443
+ icon: config$8.amis.icon,
444
444
  scaffold: {
445
- type: config$7.amis.name,
446
- label: config$7.title,
445
+ type: config$8.amis.name,
446
+ label: config$8.title,
447
447
  objectApiName: "${objectName}",
448
448
  columns: [{ "field": "name" }]
449
449
  },
450
450
  previewSchema: {
451
- type: config$7.amis.name,
451
+ type: config$8.amis.name,
452
452
  objectApiName: 'space_users',
453
453
  columns: [{ "field": "name" }]
454
454
  },
@@ -542,7 +542,7 @@
542
542
  * @LastEditTime: 2022-09-15 10:40:37
543
543
  * @Description:
544
544
  */
545
- var config$6 = {
545
+ var config$7 = {
546
546
  componentType: 'amisSchema',
547
547
  group: "华炎魔方",
548
548
  componentName: "AmisRecordDetailHeader",
@@ -578,38 +578,38 @@
578
578
  icon: "fa-fw fa fa-list-alt"
579
579
  }
580
580
  };
581
- var AmisRecordDetailHeader = __assign(__assign({}, config$6), { snippets: [
581
+ var AmisRecordDetailHeader = __assign(__assign({}, config$7), { snippets: [
582
582
  {
583
- title: config$6.title,
583
+ title: config$7.title,
584
584
  screenshot: "",
585
585
  schema: {
586
- componentName: config$6.componentName,
587
- props: config$6.preview
586
+ componentName: config$7.componentName,
587
+ props: config$7.preview
588
588
  }
589
589
  }
590
590
  ], amis: {
591
591
  render: {
592
- type: config$6.amis.name,
592
+ type: config$7.amis.name,
593
593
  usage: "renderer",
594
594
  weight: 1,
595
595
  framework: "react"
596
596
  },
597
597
  plugin: {
598
- rendererName: config$6.amis.name,
598
+ rendererName: config$7.amis.name,
599
599
  $schema: '/schemas/UnkownSchema.json',
600
- name: config$6.title,
601
- description: config$6.title,
602
- tags: [config$6.group],
600
+ name: config$7.title,
601
+ description: config$7.title,
602
+ tags: [config$7.group],
603
603
  order: -9999,
604
- icon: config$6.amis.icon,
604
+ icon: config$7.amis.icon,
605
605
  scaffold: {
606
- type: config$6.amis.name,
607
- label: config$6.title,
606
+ type: config$7.amis.name,
607
+ label: config$7.title,
608
608
  objectApiName: "${objectName}",
609
609
  recordId: "${recordId}"
610
610
  },
611
611
  previewSchema: {
612
- type: config$6.amis.name,
612
+ type: config$7.amis.name,
613
613
  objectApiName: 'space_users'
614
614
  },
615
615
  panelTitle: "设置",
@@ -639,7 +639,7 @@
639
639
  }
640
640
  } });
641
641
 
642
- var config$5 = {
642
+ var config$6 = {
643
643
  componentType: 'amisSchema',
644
644
  group: "华炎魔方",
645
645
  componentName: "AmisSelectUser",
@@ -685,37 +685,37 @@
685
685
  icon: "fa-fw fa fa-list-alt"
686
686
  }
687
687
  };
688
- var AmisSelectUser = __assign(__assign({}, config$5), { snippets: [
688
+ var AmisSelectUser = __assign(__assign({}, config$6), { snippets: [
689
689
  {
690
- title: config$5.title,
690
+ title: config$6.title,
691
691
  screenshot: "",
692
692
  schema: {
693
- componentName: config$5.componentName,
694
- props: config$5.preview
693
+ componentName: config$6.componentName,
694
+ props: config$6.preview
695
695
  }
696
696
  }
697
697
  ], amis: {
698
698
  render: {
699
- type: config$5.amis.name,
699
+ type: config$6.amis.name,
700
700
  usage: "formitem",
701
701
  weight: 1,
702
702
  framework: "react"
703
703
  },
704
704
  plugin: {
705
- rendererName: config$5.amis.name,
705
+ rendererName: config$6.amis.name,
706
706
  $schema: '/schemas/UnkownSchema.json',
707
- name: config$5.title,
708
- description: config$5.title,
709
- tags: [config$5.group],
707
+ name: config$6.title,
708
+ description: config$6.title,
709
+ tags: [config$6.group],
710
710
  order: -9999,
711
- icon: config$5.amis.icon,
711
+ icon: config$6.amis.icon,
712
712
  scaffold: {
713
- type: config$5.amis.name,
714
- label: config$5.title,
713
+ type: config$6.amis.name,
714
+ label: config$6.title,
715
715
  name: ""
716
716
  },
717
717
  previewSchema: {
718
- type: config$5.amis.name,
718
+ type: config$6.amis.name,
719
719
  },
720
720
  panelTitle: "设置",
721
721
  panelControls: [
@@ -743,14 +743,14 @@
743
743
  * @Author: baozhoutao@steedos.com
744
744
  * @Date: 2022-08-31 16:32:35
745
745
  * @LastEditors: baozhoutao@steedos.com
746
- * @LastEditTime: 2022-09-15 10:40:37
746
+ * @LastEditTime: 2022-12-01 16:06:37
747
747
  * @Description:
748
748
  */
749
- var config$4 = {
749
+ var config$5 = {
750
750
  componentType: 'amisSchema',
751
751
  group: "华炎魔方",
752
752
  componentName: "AmisRecordDetailRelatedList",
753
- title: "相关列表",
753
+ title: "相关列表-单一",
754
754
  docUrl: "",
755
755
  screenshot: "",
756
756
  npm: {
@@ -787,39 +787,39 @@
787
787
  icon: "fa-fw fa fa-list-alt"
788
788
  }
789
789
  };
790
- var AmisRecordDetailRelatedList = __assign(__assign({}, config$4), { snippets: [
790
+ var AmisRecordDetailRelatedList = __assign(__assign({}, config$5), { snippets: [
791
791
  {
792
- title: config$4.title,
792
+ title: config$5.title,
793
793
  screenshot: "",
794
794
  schema: {
795
- componentName: config$4.componentName,
796
- props: config$4.preview
795
+ componentName: config$5.componentName,
796
+ props: config$5.preview
797
797
  }
798
798
  }
799
799
  ], amis: {
800
800
  render: {
801
- type: config$4.amis.name,
801
+ type: config$5.amis.name,
802
802
  usage: "renderer",
803
803
  weight: 1,
804
804
  framework: "react"
805
805
  },
806
806
  plugin: {
807
- rendererName: config$4.amis.name,
807
+ rendererName: config$5.amis.name,
808
808
  $schema: '/schemas/UnkownSchema.json',
809
- name: config$4.title,
810
- description: config$4.title,
811
- tags: [config$4.group],
809
+ name: config$5.title,
810
+ description: config$5.title,
811
+ tags: [config$5.group],
812
812
  order: -9999,
813
- icon: config$4.amis.icon,
813
+ icon: config$5.amis.icon,
814
814
  scaffold: {
815
- type: config$4.amis.name,
816
- label: config$4.title,
815
+ type: config$5.amis.name,
816
+ label: config$5.title,
817
817
  objectApiName: "${objectName}",
818
818
  recordId: "${recordId}",
819
819
  // relatedObjectApiName: "contacts"
820
820
  },
821
821
  previewSchema: {
822
- type: config$4.amis.name,
822
+ type: config$5.amis.name,
823
823
  objectApiName: "accounts",
824
824
  // relatedObjectApiName: "contacts"
825
825
  },
@@ -866,6 +866,110 @@
866
866
  }
867
867
  } });
868
868
 
869
+ /*
870
+ * @Author: baozhoutao@steedos.com
871
+ * @Date: 2022-08-31 16:32:35
872
+ * @LastEditors: baozhoutao@steedos.com
873
+ * @LastEditTime: 2022-12-01 16:08:49
874
+ * @Description:
875
+ */
876
+ var config$4 = {
877
+ componentType: 'amisSchema',
878
+ group: "华炎魔方",
879
+ componentName: "AmisRecordDetailRelatedLists",
880
+ title: "相关列表",
881
+ docUrl: "",
882
+ screenshot: "",
883
+ npm: {
884
+ package: "@steedos-widgets/amis-object",
885
+ version: "{{version}}",
886
+ exportName: "AmisRecordDetailRelatedLists",
887
+ main: "",
888
+ destructuring: true,
889
+ subName: ""
890
+ },
891
+ props: [
892
+ {
893
+ name: "objectApiName",
894
+ propType: "string",
895
+ description: '父级对象',
896
+ },
897
+ {
898
+ name: "recordId",
899
+ propType: "string",
900
+ description: '父级记录',
901
+ }
902
+ ],
903
+ preview: {},
904
+ targets: ["steedos__RecordPage", "steedos__AppPage", "steedos__HomePage"],
905
+ engines: ["amis"],
906
+ // settings for amis.
907
+ amis: {
908
+ name: 'steedos-object-related-lists',
909
+ icon: "fa-fw fa fa-list-alt"
910
+ }
911
+ };
912
+ var AmisRecordDetailRelatedLists = __assign(__assign({}, config$4), { snippets: [
913
+ {
914
+ title: config$4.title,
915
+ screenshot: "",
916
+ schema: {
917
+ componentName: config$4.componentName,
918
+ props: config$4.preview
919
+ }
920
+ }
921
+ ], amis: {
922
+ render: {
923
+ type: config$4.amis.name,
924
+ usage: "renderer",
925
+ weight: 1,
926
+ framework: "react"
927
+ },
928
+ plugin: {
929
+ rendererName: config$4.amis.name,
930
+ $schema: '/schemas/UnkownSchema.json',
931
+ name: config$4.title,
932
+ description: config$4.title,
933
+ tags: [config$4.group],
934
+ order: -9999,
935
+ icon: config$4.amis.icon,
936
+ scaffold: {
937
+ type: config$4.amis.name,
938
+ label: config$4.title,
939
+ objectApiName: "${objectName}",
940
+ recordId: "${recordId}",
941
+ },
942
+ previewSchema: {
943
+ type: config$4.amis.name,
944
+ objectApiName: "accounts",
945
+ },
946
+ panelTitle: "设置",
947
+ panelControls: [
948
+ {
949
+ "type": "select",
950
+ "label": "父级对象",
951
+ "name": "objectApiName",
952
+ "searchable": true,
953
+ "multiple": false,
954
+ "source": {
955
+ "method": "get",
956
+ "url": "/service/api/amis-design/objects",
957
+ "requestAdaptor": "console.log('api', api);api.url = Builder.settings.rootUrl + api.url; if(!api.headers){api.headers = {}};api.headers.Authorization='Bearer ' + Builder.settings.tenantId + ',' + Builder.settings.authToken ;return api;",
958
+ "adaptor": "\n let data = payload.data;\n payload.unshift({\n label: \"${objectName}\",\n name: \"${objectName}\"\n });\n return payload;\n "
959
+ },
960
+ "labelField": "label",
961
+ "valueField": "name",
962
+ "menuTpl": ""
963
+ },
964
+ {
965
+ type: "text",
966
+ name: "recordId",
967
+ label: "父级记录"
968
+ }
969
+ ]
970
+ }
971
+ } });
972
+
869
973
  /*
870
974
  * @Author: baozhoutao@steedos.com
871
975
  * @Date: 2022-08-31 16:32:35
@@ -1158,7 +1262,7 @@
1158
1262
  * @Author: baozhoutao@steedos.com
1159
1263
  * @Date: 2022-08-31 16:32:35
1160
1264
  * @LastEditors: baozhoutao@steedos.com
1161
- * @LastEditTime: 2022-10-26 15:58:26
1265
+ * @LastEditTime: 2022-12-01 15:51:11
1162
1266
  * @Description:
1163
1267
  */
1164
1268
  // import Hello from './metas/Hello';
@@ -1168,6 +1272,7 @@
1168
1272
  AmisRecordDetailHeader,
1169
1273
  AmisSelectUser,
1170
1274
  AmisRecordDetailRelatedList,
1275
+ AmisRecordDetailRelatedLists,
1171
1276
  AmisProvider,
1172
1277
  AmisObjectFieldLookup,
1173
1278
  AmisObjectTable,
@@ -1184,6 +1289,7 @@
1184
1289
  AmisRecordDetailHeader,
1185
1290
  AmisSelectUser,
1186
1291
  AmisRecordDetailRelatedList,
1292
+ AmisRecordDetailRelatedLists,
1187
1293
  AmisProvider,
1188
1294
  AmisObjectFieldLookup,
1189
1295
  AmisObjectTable,
@@ -0,0 +1,2 @@
1
+ declare const _default: any;
2
+ export default _default;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@steedos-widgets/amis-object",
3
3
  "private": false,
4
- "version": "0.0.13",
4
+ "version": "0.0.15",
5
5
  "main": "dist/amis-object.cjs.js",
6
6
  "module": "dist/amis-object.esm.js",
7
7
  "unpkg": "dist/amis-object.umd.js",
@@ -59,6 +59,6 @@
59
59
  "uglify-js": "^3.17.0"
60
60
  },
61
61
  "dependencies": {
62
- "@steedos-widgets/amis-lib": "0.0.10"
62
+ "@steedos-widgets/amis-lib": "0.0.12"
63
63
  }
64
64
  }