@steedos-widgets/amis-object 1.0.10 → 1.0.12

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/meta.js CHANGED
@@ -37,7 +37,7 @@
37
37
  * @LastEditTime: 2022-09-02 09:04:33
38
38
  * @Description:
39
39
  */
40
- var config$k = {
40
+ var config$l = {
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$k), { snippets: [
98
+ var AmisObjectForm = __assign(__assign({}, config$l), { snippets: [
99
99
  {
100
- title: config$k.title,
100
+ title: config$l.title,
101
101
  screenshot: "",
102
102
  schema: {
103
- componentName: config$k.componentName,
104
- props: config$k.preview
103
+ componentName: config$l.componentName,
104
+ props: config$l.preview
105
105
  }
106
106
  }
107
107
  ], amis: {
108
108
  render: {
109
- type: config$k.amis.name,
109
+ type: config$l.amis.name,
110
110
  usage: "renderer",
111
111
  weight: 1,
112
112
  framework: "react"
113
113
  },
114
114
  plugin: {
115
- rendererName: config$k.amis.name,
115
+ rendererName: config$l.amis.name,
116
116
  $schema: '/schemas/UnkownSchema.json',
117
- name: config$k.title,
118
- description: config$k.title,
119
- tags: [config$k.group],
117
+ name: config$l.title,
118
+ description: config$l.title,
119
+ tags: [config$l.group],
120
120
  order: -9999,
121
- icon: config$k.amis.icon,
121
+ icon: config$l.amis.icon,
122
122
  scaffold: {
123
- type: config$k.amis.name,
124
- label: config$k.title,
123
+ type: config$l.amis.name,
124
+ label: config$l.title,
125
125
  objectApiName: "${objectName}",
126
126
  recordId: "${recordId}"
127
127
  },
128
128
  previewSchema: {
129
- type: config$k.amis.name,
129
+ type: config$l.amis.name,
130
130
  objectApiName: 'space_users'
131
131
  },
132
132
  panelTitle: "设置",
@@ -221,11 +221,12 @@
221
221
  * @LastEditTime: 2022-09-15 10:40:37
222
222
  * @Description:
223
223
  */
224
- var config$j = {
224
+ var config$k = {
225
225
  componentType: 'amisSchema',
226
226
  group: "华炎魔方",
227
227
  componentName: "AmisObjectListView",
228
228
  title: "列表视图",
229
+ description: "显示指定对象的列表视图。",
229
230
  docUrl: "",
230
231
  screenshot: "",
231
232
  npm: {
@@ -257,40 +258,42 @@
257
258
  icon: "fa-fw fa fa-list-alt"
258
259
  }
259
260
  };
260
- var AmisObjectListview = __assign(__assign({}, config$j), { snippets: [
261
+ var AmisObjectListview = __assign(__assign({}, config$k), { snippets: [
261
262
  {
262
- title: config$j.title,
263
+ title: config$k.title,
263
264
  screenshot: "",
264
265
  schema: {
265
- componentName: config$j.componentName,
266
- props: config$j.preview
266
+ componentName: config$k.componentName,
267
+ props: config$k.preview
267
268
  }
268
269
  }
269
270
  ], amis: {
270
271
  render: {
271
- type: config$j.amis.name,
272
+ type: config$k.amis.name,
272
273
  usage: "renderer",
273
274
  weight: 1,
274
275
  framework: "react"
275
276
  },
276
277
  plugin: {
277
- rendererName: config$j.amis.name,
278
+ rendererName: config$k.amis.name,
278
279
  $schema: '/schemas/UnkownSchema.json',
279
- name: config$j.title,
280
- description: config$j.title,
281
- tags: [config$j.group],
280
+ name: config$k.title,
281
+ description: config$k.description,
282
+ tags: [config$k.group],
282
283
  order: -9999,
283
- icon: config$j.amis.icon,
284
+ icon: config$k.amis.icon,
284
285
  scaffold: {
285
- type: config$j.amis.name,
286
- label: config$j.title,
286
+ type: config$k.amis.name,
287
+ label: config$k.title,
287
288
  objectApiName: "${objectName}",
288
- listName: "all"
289
+ listName: "all",
290
+ showHeader: true,
289
291
  },
290
292
  previewSchema: {
291
- type: config$j.amis.name,
293
+ type: config$k.amis.name,
292
294
  objectApiName: 'space_users',
293
- listName: "all"
295
+ listName: "all",
296
+ showHeader: true,
294
297
  },
295
298
  panelTitle: "设置",
296
299
  panelControls: [
@@ -348,6 +351,155 @@
348
351
  }
349
352
  } });
350
353
 
354
+ var config$j = {
355
+ componentType: 'amisSchema',
356
+ group: "华炎魔方",
357
+ componentName: "AmisObjectCalendar",
358
+ title: "对象日历",
359
+ docUrl: "",
360
+ screenshot: "",
361
+ npm: {
362
+ package: "@steedos-widgets/amis-object",
363
+ version: "{{version}}",
364
+ exportName: "AmisObjectCalendar",
365
+ main: "",
366
+ destructuring: true,
367
+ subName: ""
368
+ },
369
+ props: [
370
+ {
371
+ name: "objectApiName",
372
+ propType: "string",
373
+ description: '对象名称',
374
+ },
375
+ {
376
+ name: "startDateExpr",
377
+ propType: "string",
378
+ description: '开始时间字段',
379
+ },
380
+ {
381
+ name: "endDateExpr",
382
+ propType: "string",
383
+ description: '结束时间字段',
384
+ },
385
+ {
386
+ name: "allDayExpr",
387
+ propType: "string",
388
+ description: '全天字段',
389
+ },
390
+ {
391
+ name: "textExpr",
392
+ propType: "string",
393
+ description: '标题字段',
394
+ },
395
+ {
396
+ name: "currentView",
397
+ propType: "string",
398
+ description: '默认视图',
399
+ }
400
+ ],
401
+ preview: {},
402
+ targets: ["steedos__RecordPage", "steedos__AppPage", "steedos__HomePage"],
403
+ engines: ["amis"],
404
+ // settings for amis.
405
+ amis: {
406
+ name: 'steedos-object-calendar',
407
+ icon: "fa-fw fa fa-list-alt"
408
+ }
409
+ };
410
+ var AmisObjectCalendar = __assign(__assign({}, config$j), { snippets: [
411
+ {
412
+ title: config$j.title,
413
+ screenshot: "",
414
+ schema: {
415
+ componentName: config$j.componentName,
416
+ props: config$j.preview
417
+ }
418
+ }
419
+ ], amis: {
420
+ render: {
421
+ type: config$j.amis.name,
422
+ usage: "renderer",
423
+ weight: 1,
424
+ framework: "react"
425
+ },
426
+ plugin: {
427
+ rendererName: config$j.amis.name,
428
+ $schema: '/schemas/UnkownSchema.json',
429
+ name: config$j.title,
430
+ description: config$j.title,
431
+ tags: [config$j.group],
432
+ order: -9999,
433
+ icon: config$j.amis.icon,
434
+ scaffold: {
435
+ type: config$j.amis.name,
436
+ label: config$j.title,
437
+ objectApiName: "${objectName}",
438
+ currentView: "timeGridWeek"
439
+ },
440
+ previewSchema: {
441
+ type: config$j.amis.name,
442
+ objectApiName: 'events',
443
+ currentView: "timeGridWeek"
444
+ },
445
+ panelTitle: "设置",
446
+ panelControls: [
447
+ {
448
+ "type": "select",
449
+ "label": "对象",
450
+ "name": "objectApiName",
451
+ "searchable": true,
452
+ "multiple": false,
453
+ "source": {
454
+ "method": "get",
455
+ "url": "/service/api/amis-design/objects",
456
+ "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;",
457
+ "adaptor": "\n let data = payload.data;\n payload.unshift({\n label: \"${objectName}\",\n name: \"${objectName}\"\n });\n return payload;\n "
458
+ },
459
+ "labelField": "label",
460
+ "valueField": "name",
461
+ "menuTpl": ""
462
+ },
463
+ {
464
+ "type": "input-text",
465
+ "name": "startDateExpr",
466
+ "label": "开始时间字段"
467
+ },
468
+ {
469
+ "type": "input-text",
470
+ "name": "endDateExpr",
471
+ "label": "结束时间字段"
472
+ },
473
+ {
474
+ "type": "input-text",
475
+ "name": "allDayExpr",
476
+ "label": "全天字段"
477
+ },
478
+ {
479
+ "type": "input-text",
480
+ "name": "textExpr",
481
+ "label": "标题字段"
482
+ },
483
+ {
484
+ "type": "select",
485
+ "name": "currentView",
486
+ "label": "默认视图",
487
+ "value": "timeGridWeek",
488
+ "options": [{
489
+ "label": "月",
490
+ "value": "dayGridMonth"
491
+ }, {
492
+ "label": "周",
493
+ "value": "timeGridWeek"
494
+ }, {
495
+ "label": "日",
496
+ "value": "timeGridDay"
497
+ }]
498
+ }
499
+ ]
500
+ }
501
+ } });
502
+
351
503
  /*
352
504
  * @Author: baozhoutao@steedos.com
353
505
  * @Date: 2022-08-31 16:32:35
@@ -541,6 +693,7 @@
541
693
  group: "华炎魔方",
542
694
  componentName: "AmisRecordDetailHeader",
543
695
  title: "标题面板",
696
+ description: "显示在记录详情页的标题面板,包括记录按钮。",
544
697
  docUrl: "",
545
698
  screenshot: "",
546
699
  npm: {
@@ -564,7 +717,7 @@
564
717
  }
565
718
  ],
566
719
  preview: {},
567
- targets: ["steedos__RecordPage", "steedos__AppPage", "steedos__HomePage"],
720
+ targets: ["steedos__RecordPage"],
568
721
  engines: ["amis"],
569
722
  // settings for amis.
570
723
  amis: {
@@ -592,7 +745,7 @@
592
745
  rendererName: config$h.amis.name,
593
746
  $schema: '/schemas/UnkownSchema.json',
594
747
  name: config$h.title,
595
- description: config$h.title,
748
+ description: config$h.description,
596
749
  tags: [config$h.group],
597
750
  order: -9999,
598
751
  icon: config$h.amis.icon,
@@ -692,7 +845,7 @@
692
845
  weight: 1,
693
846
  framework: "react"
694
847
  },
695
- plugin: {
848
+ plugin_disabled: {
696
849
  rendererName: config$g.amis.name,
697
850
  $schema: '/schemas/UnkownSchema.json',
698
851
  name: config$g.title,
@@ -739,7 +892,7 @@
739
892
 
740
893
  var config$f = {
741
894
  componentType: 'amisSchema',
742
- group: "华炎魔方",
895
+ group: "华炎魔方-界面",
743
896
  componentName: "AmisSelectUser",
744
897
  title: "选择用户",
745
898
  docUrl: "",
@@ -799,7 +952,7 @@
799
952
  weight: 1,
800
953
  framework: "react"
801
954
  },
802
- plugin: {
955
+ plugin_disabled: {
803
956
  rendererName: config$f.amis.name,
804
957
  $schema: '/schemas/UnkownSchema.json',
805
958
  name: config$f.title,
@@ -848,7 +1001,8 @@
848
1001
  componentType: 'amisSchema',
849
1002
  group: "华炎魔方",
850
1003
  componentName: "AmisRecordDetailRelatedList",
851
- title: "相关列表-单一",
1004
+ title: "相关表",
1005
+ description: "显示指定对象的相关某一个相关表。",
852
1006
  docUrl: "",
853
1007
  screenshot: "",
854
1008
  npm: {
@@ -905,7 +1059,7 @@
905
1059
  rendererName: config$e.amis.name,
906
1060
  $schema: '/schemas/UnkownSchema.json',
907
1061
  name: config$e.title,
908
- description: config$e.title,
1062
+ description: config$e.description,
909
1063
  tags: [config$e.group],
910
1064
  order: -9999,
911
1065
  icon: config$e.amis.icon,
@@ -914,12 +1068,12 @@
914
1068
  label: config$e.title,
915
1069
  objectApiName: "${objectName}",
916
1070
  recordId: "${recordId}",
917
- // relatedObjectApiName: "contacts"
1071
+ relatedObjectApiName: "contacts"
918
1072
  },
919
1073
  previewSchema: {
920
1074
  type: config$e.amis.name,
921
1075
  objectApiName: "accounts",
922
- // relatedObjectApiName: "contacts"
1076
+ relatedObjectApiName: "contacts"
923
1077
  },
924
1078
  panelTitle: "设置",
925
1079
  panelControls: [
@@ -988,7 +1142,8 @@
988
1142
  componentType: 'amisSchema',
989
1143
  group: "华炎魔方",
990
1144
  componentName: "AmisRecordDetailRelatedLists",
991
- title: "相关列表",
1145
+ title: "所有相关表",
1146
+ description: "显示指定对象的相关表,可基于页面布局配置相关表清单。",
992
1147
  docUrl: "",
993
1148
  screenshot: "",
994
1149
  npm: {
@@ -1040,7 +1195,7 @@
1040
1195
  rendererName: config$d.amis.name,
1041
1196
  $schema: '/schemas/UnkownSchema.json',
1042
1197
  name: config$d.title,
1043
- description: config$d.title,
1198
+ description: config$d.description,
1044
1199
  tags: [config$d.group],
1045
1200
  order: -9999,
1046
1201
  icon: config$d.amis.icon,
@@ -1129,7 +1284,7 @@
1129
1284
  weight: 1,
1130
1285
  framework: "react"
1131
1286
  },
1132
- plugin: {
1287
+ plugin_disabled: {
1133
1288
  rendererName: config$c.amis.name,
1134
1289
  $schema: '/schemas/UnkownSchema.json',
1135
1290
  name: config$c.title,
@@ -1161,7 +1316,7 @@
1161
1316
  * @Author: baozhoutao@steedos.com
1162
1317
  * @Date: 2022-10-11 09:39:38
1163
1318
  * @LastEditors: baozhoutao@steedos.com
1164
- * @LastEditTime: 2022-10-12 13:23:05
1319
+ * @LastEditTime: 2022-12-26 11:26:17
1165
1320
  * @Description:
1166
1321
  */
1167
1322
  var config$b = {
@@ -1204,27 +1359,28 @@
1204
1359
  weight: 1,
1205
1360
  framework: "react"
1206
1361
  },
1207
- plugin: {
1208
- rendererName: config$b.amis.name,
1209
- $schema: '/schemas/UnkownSchema.json',
1210
- name: config$b.title,
1211
- description: config$b.title,
1212
- tags: [config$b.group],
1213
- order: -9999,
1214
- icon: config$b.amis.icon,
1215
- scaffold: {
1216
- type: config$b.amis.name,
1217
- label: config$b.title,
1218
- name: 'board',
1219
- columns: 1,
1220
- vertical: false
1221
- },
1222
- previewSchema: {
1223
- type: config$b.amis.name,
1224
- },
1225
- panelTitle: "设置",
1226
- panelControls: []
1227
- }
1362
+ // plugin: {
1363
+ // rendererName: config.amis.name,
1364
+ // $schema: '/schemas/UnkownSchema.json',
1365
+ // name: config.title,
1366
+ // description: config.title,
1367
+ // tags: [config.group],
1368
+ // order: -9999,
1369
+ // icon: config.amis.icon,
1370
+ // scaffold: {
1371
+ // type: config.amis.name,
1372
+ // label: config.title,
1373
+ // name: 'board',
1374
+ // columns: 1,
1375
+ // vertical: false
1376
+ // },
1377
+ // previewSchema: {
1378
+ // type: config.amis.name,
1379
+ // },
1380
+ // panelTitle: "设置",
1381
+ // panelControls: [
1382
+ // ]
1383
+ // }
1228
1384
  } });
1229
1385
 
1230
1386
  /*
@@ -1416,7 +1572,7 @@
1416
1572
  weight: 1,
1417
1573
  framework: "react"
1418
1574
  },
1419
- plugin: {
1575
+ plugin_disabled: {
1420
1576
  rendererName: config$8.amis.name,
1421
1577
  $schema: '/schemas/UnkownSchema.json',
1422
1578
  name: config$8.title,
@@ -1486,7 +1642,7 @@
1486
1642
  weight: 1,
1487
1643
  framework: "react"
1488
1644
  },
1489
- plugin: {
1645
+ plugin_disabled: {
1490
1646
  rendererName: config$7.amis.name,
1491
1647
  $schema: '/schemas/UnkownSchema.json',
1492
1648
  name: config$7.title,
@@ -1563,7 +1719,7 @@
1563
1719
  weight: 1,
1564
1720
  framework: "react"
1565
1721
  },
1566
- plugin: {
1722
+ plugin_disabled: {
1567
1723
  rendererName: config$6.amis.name,
1568
1724
  $schema: '/schemas/UnkownSchema.json',
1569
1725
  name: config$6.title,
@@ -1606,9 +1762,9 @@
1606
1762
  */
1607
1763
  var config$5 = {
1608
1764
  // componentType: 'amisSchema',
1609
- group: "华炎魔方",
1765
+ group: "华炎魔方-界面",
1610
1766
  componentName: "SteedosIcon",
1611
- title: "Icon",
1767
+ title: "图标",
1612
1768
  docUrl: "",
1613
1769
  screenshot: "",
1614
1770
  npm: {
@@ -1644,7 +1800,7 @@
1644
1800
  weight: 1,
1645
1801
  framework: "react"
1646
1802
  },
1647
- plugin: {
1803
+ plugin_disabled: {
1648
1804
  rendererName: config$5.amis.name,
1649
1805
  $schema: '/schemas/UnkownSchema.json',
1650
1806
  name: config$5.title,
@@ -1795,7 +1951,7 @@
1795
1951
  weight: 1,
1796
1952
  framework: "react"
1797
1953
  },
1798
- plugin: {
1954
+ plugin_disabled: {
1799
1955
  rendererName: config$4.amis.name,
1800
1956
  $schema: '/schemas/UnkownSchema.json',
1801
1957
  name: config$4.title,
@@ -1983,7 +2139,7 @@
1983
2139
  weight: 1,
1984
2140
  framework: "react"
1985
2141
  },
1986
- plugin: {
2142
+ plugin_disabled: {
1987
2143
  rendererName: config$2.amis.name,
1988
2144
  $schema: '/schemas/UnkownSchema.json',
1989
2145
  name: config$2.title,
@@ -2052,7 +2208,7 @@
2052
2208
  weight: 1,
2053
2209
  framework: "react"
2054
2210
  },
2055
- plugin: {
2211
+ plugin_disabled: {
2056
2212
  rendererName: config$1.amis.name,
2057
2213
  $schema: '/schemas/UnkownSchema.json',
2058
2214
  name: config$1.title,
@@ -2188,7 +2344,7 @@
2188
2344
  weight: 1,
2189
2345
  framework: "react"
2190
2346
  },
2191
- plugin: {
2347
+ plugin_disabled: {
2192
2348
  rendererName: config.amis.name,
2193
2349
  $schema: '/schemas/UnkownSchema.json',
2194
2350
  name: config.title,
@@ -2246,21 +2402,22 @@
2246
2402
  AmisObjectListview,
2247
2403
  AmisRecordDetailHeader,
2248
2404
  AmisRecordDetail,
2249
- AmisSelectUser,
2250
2405
  AmisRecordDetailRelatedList,
2251
2406
  AmisRecordDetailRelatedLists,
2252
- AmisProvider,
2253
- AmisObjectFieldLookup,
2254
2407
  AmisObjectTable,
2408
+ AmisObjectCalendar,
2255
2409
  AmisObjectButton,
2410
+ AmisObjectFieldLookup,
2411
+ AmisSelectUser,
2256
2412
  SteedosDropdownButton,
2413
+ AmisGlobalHeader,
2257
2414
  AmisAppLauncher,
2415
+ AmisProvider,
2258
2416
  AmisLogo,
2259
2417
  AmisAppMenu,
2260
2418
  SteedosIcon,
2261
2419
  SteedosDropdown,
2262
2420
  FromNow,
2263
- AmisGlobalHeader,
2264
2421
  SteedosBadge,
2265
2422
  SteedosBadgeRibbon
2266
2423
  ];
@@ -2268,29 +2425,7 @@
2268
2425
  {
2269
2426
  title: "华炎魔方",
2270
2427
  icon: "",
2271
- children: [
2272
- AmisObjectForm,
2273
- AmisObjectListview,
2274
- AmisRecordDetailHeader,
2275
- AmisRecordDetail,
2276
- AmisSelectUser,
2277
- AmisRecordDetailRelatedList,
2278
- AmisRecordDetailRelatedLists,
2279
- AmisProvider,
2280
- AmisObjectFieldLookup,
2281
- AmisObjectTable,
2282
- AmisObjectButton,
2283
- SteedosDropdownButton,
2284
- AmisAppLauncher,
2285
- AmisLogo,
2286
- AmisAppMenu,
2287
- SteedosIcon,
2288
- SteedosDropdown,
2289
- FromNow,
2290
- AmisGlobalHeader,
2291
- SteedosBadge,
2292
- SteedosBadgeRibbon
2293
- ]
2428
+ children: components
2294
2429
  }
2295
2430
  ];
2296
2431
  var meta = {
@@ -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": "1.0.10",
4
+ "version": "1.0.12",
5
5
  "main": "dist/amis-object.cjs.js",
6
6
  "module": "dist/amis-object.esm.js",
7
7
  "unpkg": "dist/amis-object.umd.js",
@@ -60,10 +60,10 @@
60
60
  "uglify-js": "^3.17.0"
61
61
  },
62
62
  "dependencies": {
63
- "@steedos-widgets/amis-lib": "1.0.10",
63
+ "@steedos-widgets/amis-lib": "1.0.12",
64
64
  "autoprefixer": "^10.4.13",
65
65
  "postcss": "^8.4.19",
66
66
  "tailwindcss": "^3.2.4"
67
67
  },
68
- "gitHead": "3defe3a689449557ec240adaf3a9db146cb523ff"
68
+ "gitHead": "74590cccd4cad3a13c0a87256980bb00f95dadad"
69
69
  }