@steedos-widgets/amis-object 0.0.18 → 1.0.0-beta.29

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.
@@ -11,8 +11,8 @@
11
11
  {
12
12
  "package": "@steedos-widgets/amis-object",
13
13
  "urls": [
14
- "https://8080-steedos-steedoswebappne-pm96cp6i82c.ws-us77.gitpod.io/@steedos-widgets/amis-object/dist/amis-object.umd.js",
15
- "https://8080-steedos-steedoswebappne-pm96cp6i82c.ws-us77.gitpod.io/@steedos-widgets/amis-object/dist/amis-object.umd.css"
14
+ "https://8080-coffee-crayfish-i7ky9rs9.ws.vscode.steedos.cn/@steedos-widgets/amis-object/dist/amis-object.umd.js",
15
+ "https://8080-coffee-crayfish-i7ky9rs9.ws.vscode.steedos.cn/@steedos-widgets/amis-object/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://8080-steedos-steedoswebappne-pm96cp6i82c.ws-us77.gitpod.io/@steedos-widgets/amis-object/dist/meta.js",
26
+ "url": "https://8080-coffee-crayfish-i7ky9rs9.ws.vscode.steedos.cn/@steedos-widgets/amis-object/dist/meta.js",
27
27
  "urls": {
28
- "default": "https://8080-steedos-steedoswebappne-pm96cp6i82c.ws-us77.gitpod.io/@steedos-widgets/amis-object/dist/meta.js",
29
- "design": "https://8080-steedos-steedoswebappne-pm96cp6i82c.ws-us77.gitpod.io/@steedos-widgets/amis-object/dist/meta.js"
28
+ "default": "https://8080-coffee-crayfish-i7ky9rs9.ws.vscode.steedos.cn/@steedos-widgets/amis-object/dist/meta.js",
29
+ "design": "https://8080-coffee-crayfish-i7ky9rs9.ws.vscode.steedos.cn/@steedos-widgets/amis-object/dist/meta.js"
30
30
  }
31
31
  }
32
32
  ]
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.17/dist/amis-object.umd.js",
15
- "https://unpkg.com/@steedos-widgets/amis-object@0.0.17/dist/amis-object.umd.css"
14
+ "https://unpkg.com/@steedos-widgets/amis-object@1.0.0-beta.29/dist/amis-object.umd.js",
15
+ "https://unpkg.com/@steedos-widgets/amis-object@1.0.0-beta.29/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.17/dist/meta.js",
26
+ "url": "https://unpkg.com/@steedos-widgets/amis-object@1.0.0-beta.29/dist/meta.js",
27
27
  "urls": {
28
- "default": "https://unpkg.com/@steedos-widgets/amis-object@0.0.17/dist/meta.js",
29
- "design": "https://unpkg.com/@steedos-widgets/amis-object@0.0.17/dist/meta.js"
28
+ "default": "https://unpkg.com/@steedos-widgets/amis-object@1.0.0-beta.29/dist/meta.js",
29
+ "design": "https://unpkg.com/@steedos-widgets/amis-object@1.0.0-beta.29/dist/meta.js"
30
30
  }
31
31
  }
32
32
  ]
package/dist/index.d.ts CHANGED
@@ -1,3 +1,6 @@
1
+ import './styles/amis.css';
2
+ import './styles/tailwind.css';
3
+ import './styles/object.less';
1
4
  export * from './components';
2
5
  export * from './amis';
3
6
  export * as AmisLib from '@steedos-widgets/amis-lib';
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$a = {
40
+ var config$b = {
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$a), { snippets: [
98
+ var AmisObjectForm = __assign(__assign({}, config$b), { snippets: [
99
99
  {
100
- title: config$a.title,
100
+ title: config$b.title,
101
101
  screenshot: "",
102
102
  schema: {
103
- componentName: config$a.componentName,
104
- props: config$a.preview
103
+ componentName: config$b.componentName,
104
+ props: config$b.preview
105
105
  }
106
106
  }
107
107
  ], amis: {
108
108
  render: {
109
- type: config$a.amis.name,
109
+ type: config$b.amis.name,
110
110
  usage: "renderer",
111
111
  weight: 1,
112
112
  framework: "react"
113
113
  },
114
114
  plugin: {
115
- rendererName: config$a.amis.name,
115
+ rendererName: config$b.amis.name,
116
116
  $schema: '/schemas/UnkownSchema.json',
117
- name: config$a.title,
118
- description: config$a.title,
119
- tags: [config$a.group],
117
+ name: config$b.title,
118
+ description: config$b.title,
119
+ tags: [config$b.group],
120
120
  order: -9999,
121
- icon: config$a.amis.icon,
121
+ icon: config$b.amis.icon,
122
122
  scaffold: {
123
- type: config$a.amis.name,
124
- label: config$a.title,
123
+ type: config$b.amis.name,
124
+ label: config$b.title,
125
125
  objectApiName: "${objectName}",
126
126
  recordId: "${recordId}"
127
127
  },
128
128
  previewSchema: {
129
- type: config$a.amis.name,
129
+ type: config$b.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$9 = {
224
+ var config$a = {
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$9), { snippets: [
260
+ var AmisObjectListview = __assign(__assign({}, config$a), { snippets: [
261
261
  {
262
- title: config$9.title,
262
+ title: config$a.title,
263
263
  screenshot: "",
264
264
  schema: {
265
- componentName: config$9.componentName,
266
- props: config$9.preview
265
+ componentName: config$a.componentName,
266
+ props: config$a.preview
267
267
  }
268
268
  }
269
269
  ], amis: {
270
270
  render: {
271
- type: config$9.amis.name,
271
+ type: config$a.amis.name,
272
272
  usage: "renderer",
273
273
  weight: 1,
274
274
  framework: "react"
275
275
  },
276
276
  plugin: {
277
- rendererName: config$9.amis.name,
277
+ rendererName: config$a.amis.name,
278
278
  $schema: '/schemas/UnkownSchema.json',
279
- name: config$9.title,
280
- description: config$9.title,
281
- tags: [config$9.group],
279
+ name: config$a.title,
280
+ description: config$a.title,
281
+ tags: [config$a.group],
282
282
  order: -9999,
283
- icon: config$9.amis.icon,
283
+ icon: config$a.amis.icon,
284
284
  scaffold: {
285
- type: config$9.amis.name,
286
- label: config$9.title,
285
+ type: config$a.amis.name,
286
+ label: config$a.title,
287
287
  objectApiName: "${objectName}",
288
288
  listName: "all"
289
289
  },
290
290
  previewSchema: {
291
- type: config$9.amis.name,
291
+ type: config$a.amis.name,
292
292
  objectApiName: 'space_users',
293
293
  listName: "all"
294
294
  },
@@ -315,7 +315,6 @@
315
315
  name: "listName",
316
316
  multiple: false,
317
317
  label: "视图",
318
- hiddenOn: "this.showHeader",
319
318
  "source": {
320
319
  "url": "/service/api/amis-design/object/${objectApiName}",
321
320
  "method": "get",
@@ -351,7 +350,7 @@
351
350
  * @LastEditTime: 2022-09-15 10:40:37
352
351
  * @Description:
353
352
  */
354
- var config$8 = {
353
+ var config$9 = {
355
354
  componentType: 'amisSchema',
356
355
  group: "华炎魔方",
357
356
  componentName: "AmisObjectTable",
@@ -407,38 +406,38 @@
407
406
  icon: "fa-fw fa fa-list-alt"
408
407
  }
409
408
  };
410
- var AmisObjectTable = __assign(__assign({}, config$8), { snippets: [
409
+ var AmisObjectTable = __assign(__assign({}, config$9), { snippets: [
411
410
  {
412
- title: config$8.title,
411
+ title: config$9.title,
413
412
  screenshot: "",
414
413
  schema: {
415
- componentName: config$8.componentName,
416
- props: config$8.preview
414
+ componentName: config$9.componentName,
415
+ props: config$9.preview
417
416
  }
418
417
  }
419
418
  ], amis: {
420
419
  render: {
421
- type: config$8.amis.name,
420
+ type: config$9.amis.name,
422
421
  usage: "renderer",
423
422
  weight: 1,
424
423
  framework: "react"
425
424
  },
426
425
  plugin: {
427
- rendererName: config$8.amis.name,
426
+ rendererName: config$9.amis.name,
428
427
  $schema: '/schemas/UnkownSchema.json',
429
- name: config$8.title,
430
- description: config$8.title,
431
- tags: [config$8.group],
428
+ name: config$9.title,
429
+ description: config$9.title,
430
+ tags: [config$9.group],
432
431
  order: -9999,
433
- icon: config$8.amis.icon,
432
+ icon: config$9.amis.icon,
434
433
  scaffold: {
435
- type: config$8.amis.name,
436
- label: config$8.title,
434
+ type: config$9.amis.name,
435
+ label: config$9.title,
437
436
  objectApiName: "${objectName}",
438
437
  columns: [{ "field": "name" }]
439
438
  },
440
439
  previewSchema: {
441
- type: config$8.amis.name,
440
+ type: config$9.amis.name,
442
441
  objectApiName: 'space_users',
443
442
  columns: [{ "field": "name" }]
444
443
  },
@@ -532,7 +531,7 @@
532
531
  * @LastEditTime: 2022-09-15 10:40:37
533
532
  * @Description:
534
533
  */
535
- var config$7 = {
534
+ var config$8 = {
536
535
  componentType: 'amisSchema',
537
536
  group: "华炎魔方",
538
537
  componentName: "AmisRecordDetailHeader",
@@ -568,7 +567,111 @@
568
567
  icon: "fa-fw fa fa-list-alt"
569
568
  }
570
569
  };
571
- var AmisRecordDetailHeader = __assign(__assign({}, config$7), { snippets: [
570
+ var AmisRecordDetailHeader = __assign(__assign({}, config$8), { snippets: [
571
+ {
572
+ title: config$8.title,
573
+ screenshot: "",
574
+ schema: {
575
+ componentName: config$8.componentName,
576
+ props: config$8.preview
577
+ }
578
+ }
579
+ ], amis: {
580
+ render: {
581
+ type: config$8.amis.name,
582
+ usage: "renderer",
583
+ weight: 1,
584
+ framework: "react"
585
+ },
586
+ plugin: {
587
+ rendererName: config$8.amis.name,
588
+ $schema: '/schemas/UnkownSchema.json',
589
+ name: config$8.title,
590
+ description: config$8.title,
591
+ tags: [config$8.group],
592
+ order: -9999,
593
+ icon: config$8.amis.icon,
594
+ scaffold: {
595
+ type: config$8.amis.name,
596
+ label: config$8.title,
597
+ objectApiName: "${objectName}",
598
+ recordId: "${recordId}"
599
+ },
600
+ previewSchema: {
601
+ type: config$8.amis.name,
602
+ objectApiName: 'space_users'
603
+ },
604
+ panelTitle: "设置",
605
+ panelControls: [
606
+ {
607
+ "type": "select",
608
+ "label": "对象",
609
+ "name": "objectApiName",
610
+ "searchable": true,
611
+ "multiple": false,
612
+ "source": {
613
+ "method": "get",
614
+ "url": "/service/api/amis-design/objects",
615
+ "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;",
616
+ "adaptor": "\n let data = payload.data;\n payload.unshift({\n label: \"${objectName}\",\n name: \"${objectName}\"\n });\n return payload;\n "
617
+ },
618
+ "labelField": "label",
619
+ "valueField": "name",
620
+ "menuTpl": ""
621
+ },
622
+ {
623
+ type: "text",
624
+ name: "recordId",
625
+ label: "记录Id"
626
+ }
627
+ ]
628
+ }
629
+ } });
630
+
631
+ /*
632
+ * @Author: baozhoutao@steedos.com
633
+ * @Date: 2022-08-31 16:32:35
634
+ * @LastEditors: baozhoutao@steedos.com
635
+ * @LastEditTime: 2022-12-08 10:37:45
636
+ * @Description:
637
+ */
638
+ var config$7 = {
639
+ componentType: 'amisSchema',
640
+ group: "华炎魔方",
641
+ componentName: "AmisRecordDetail",
642
+ title: "记录详细",
643
+ docUrl: "",
644
+ screenshot: "",
645
+ npm: {
646
+ package: "@steedos-widgets/amis-object",
647
+ version: "{{version}}",
648
+ exportName: "AmisRecordDetail",
649
+ main: "",
650
+ destructuring: true,
651
+ subName: ""
652
+ },
653
+ props: [
654
+ {
655
+ name: "objectApiName",
656
+ propType: "string",
657
+ description: '对象名称',
658
+ },
659
+ {
660
+ name: "recordId",
661
+ propType: "string",
662
+ description: '记录Id',
663
+ }
664
+ ],
665
+ preview: {},
666
+ targets: ["steedos__RecordPage", "steedos__AppPage", "steedos__HomePage"],
667
+ engines: ["amis"],
668
+ // settings for amis.
669
+ amis: {
670
+ name: 'steedos-record-detail',
671
+ icon: "fa-fw fa fa-list-alt"
672
+ }
673
+ };
674
+ var AmisRecordDetail = __assign(__assign({}, config$7), { snippets: [
572
675
  {
573
676
  title: config$7.title,
574
677
  screenshot: "",
@@ -1255,7 +1358,7 @@
1255
1358
  * @Author: baozhoutao@steedos.com
1256
1359
  * @Date: 2022-08-31 16:32:35
1257
1360
  * @LastEditors: baozhoutao@steedos.com
1258
- * @LastEditTime: 2022-12-01 15:51:11
1361
+ * @LastEditTime: 2022-12-08 10:39:35
1259
1362
  * @Description:
1260
1363
  */
1261
1364
  // import Hello from './metas/Hello';
@@ -1263,6 +1366,7 @@
1263
1366
  AmisObjectForm,
1264
1367
  AmisObjectListview,
1265
1368
  AmisRecordDetailHeader,
1369
+ AmisRecordDetail,
1266
1370
  AmisSelectUser,
1267
1371
  AmisRecordDetailRelatedList,
1268
1372
  AmisRecordDetailRelatedLists,
@@ -1280,6 +1384,7 @@
1280
1384
  AmisObjectForm,
1281
1385
  AmisObjectListview,
1282
1386
  AmisRecordDetailHeader,
1387
+ AmisRecordDetail,
1283
1388
  AmisSelectUser,
1284
1389
  AmisRecordDetailRelatedList,
1285
1390
  AmisRecordDetailRelatedLists,
@@ -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.18",
4
+ "version": "1.0.0-beta.29",
5
5
  "main": "dist/amis-object.cjs.js",
6
6
  "module": "dist/amis-object.esm.js",
7
7
  "unpkg": "dist/amis-object.umd.js",
@@ -10,6 +10,7 @@
10
10
  "dist"
11
11
  ],
12
12
  "scripts": {
13
+ "watch": "rollup -c rollup.config.ts -w",
13
14
  "prebuild": "rimraf dist",
14
15
  "build": "yarn build:rollup",
15
16
  "build:rollup": "rollup -c rollup.config.ts",
@@ -20,12 +21,12 @@
20
21
  "access": "public"
21
22
  },
22
23
  "devDependencies": {
24
+ "@babel/core": "^7.18.13",
25
+ "@babel/plugin-proposal-class-properties": "^7.18.6",
23
26
  "@babel/plugin-proposal-export-default-from": "^7.18.10",
24
27
  "@babel/plugin-proposal-export-namespace-from": "^7.18.9",
25
28
  "@babel/plugin-proposal-object-rest-spread": "^7.18.9",
26
29
  "@babel/plugin-transform-runtime": "^7.18.10",
27
- "@babel/core": "^7.18.13",
28
- "@babel/plugin-proposal-class-properties": "^7.18.6",
29
30
  "@babel/preset-env": "^7.18.10",
30
31
  "@babel/preset-react": "^7.18.6",
31
32
  "@rollup/plugin-babel": "^5.3.1",
@@ -59,6 +60,10 @@
59
60
  "uglify-js": "^3.17.0"
60
61
  },
61
62
  "dependencies": {
62
- "@steedos-widgets/amis-lib": "0.0.15"
63
- }
63
+ "@steedos-widgets/amis-lib": "1.0.0-beta.29",
64
+ "autoprefixer": "^10.4.13",
65
+ "postcss": "^8.4.19",
66
+ "tailwindcss": "^3.2.4"
67
+ },
68
+ "gitHead": "62a446518c9f80a67a4c3f04ddb65165f30f3bae"
64
69
  }