@steedos-widgets/amis-object 1.0.35 → 1.0.37

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,23 +11,23 @@
11
11
  {
12
12
  "package": "@steedos-widgets/fullcalendar",
13
13
  "urls": [
14
- "http://127.0.0.1:8080/@steedos-widgets/fullcalendar/dist/fullcalendar.umd.js",
15
- "http://127.0.0.1:8080/@steedos-widgets/fullcalendar/dist/fullcalendar.umd.css"
14
+ "http://192.168.0.166:8080/@steedos-widgets/fullcalendar/dist/fullcalendar.umd.js",
15
+ "http://192.168.0.166:8080/@steedos-widgets/fullcalendar/dist/fullcalendar.umd.css"
16
16
  ],
17
17
  "library": "BuilderFullCalendar"
18
18
  },
19
19
  {
20
20
  "package": "steedos-lib",
21
21
  "urls": [
22
- "http://127.0.0.1:8080/@steedos-widgets/steedos-lib/dist/index.umd.js"
22
+ "http://192.168.0.166:8080/@steedos-widgets/steedos-lib/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
- "http://127.0.0.1:8080/@steedos-widgets/amis-object/dist/amis-object.umd.js",
30
- "http://127.0.0.1:8080/@steedos-widgets/amis-object/dist/amis-object.umd.css"
29
+ "http://192.168.0.166:8080/@steedos-widgets/amis-object/dist/amis-object.umd.js",
30
+ "http://192.168.0.166:8080/@steedos-widgets/amis-object/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": "http://127.0.0.1:8080/@steedos-widgets/fullcalendar/dist/meta.js",
41
+ "url": "http://192.168.0.166:8080/@steedos-widgets/fullcalendar/dist/meta.js",
42
42
  "urls": {
43
- "default": "http://127.0.0.1:8080/@steedos-widgets/fullcalendar/dist/meta.js",
44
- "design": "http://127.0.0.1:8080/@steedos-widgets/fullcalendar/dist/meta.js"
43
+ "default": "http://192.168.0.166:8080/@steedos-widgets/fullcalendar/dist/meta.js",
44
+ "design": "http://192.168.0.166:8080/@steedos-widgets/fullcalendar/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": "http://127.0.0.1:8080/@steedos-widgets/amis-object/dist/meta.js",
52
+ "url": "http://192.168.0.166:8080/@steedos-widgets/amis-object/dist/meta.js",
53
53
  "urls": {
54
- "default": "http://127.0.0.1:8080/@steedos-widgets/amis-object/dist/meta.js",
55
- "design": "http://127.0.0.1:8080/@steedos-widgets/amis-object/dist/meta.js"
54
+ "default": "http://192.168.0.166:8080/@steedos-widgets/amis-object/dist/meta.js",
55
+ "design": "http://192.168.0.166:8080/@steedos-widgets/amis-object/dist/meta.js"
56
56
  }
57
57
  }
58
58
  ]
package/dist/assets.json CHANGED
@@ -11,8 +11,8 @@
11
11
  {
12
12
  "package": "@steedos-widgets/fullcalendar",
13
13
  "urls": [
14
- "https://unpkg.com/@steedos-widgets/fullcalendar@1.0.35/dist/fullcalendar.umd.js",
15
- "https://unpkg.com/@steedos-widgets/fullcalendar@1.0.35/dist/fullcalendar.umd.css"
14
+ "https://unpkg.com/@steedos-widgets/fullcalendar@1.0.37/dist/fullcalendar.umd.js",
15
+ "https://unpkg.com/@steedos-widgets/fullcalendar@1.0.37/dist/fullcalendar.umd.css"
16
16
  ],
17
17
  "library": "BuilderFullCalendar"
18
18
  },
@@ -26,8 +26,8 @@
26
26
  {
27
27
  "package": "@steedos-widgets/amis-object",
28
28
  "urls": [
29
- "https://unpkg.com/@steedos-widgets/amis-object@1.0.35/dist/amis-object.umd.js",
30
- "https://unpkg.com/@steedos-widgets/amis-object@1.0.35/dist/amis-object.umd.css"
29
+ "https://unpkg.com/@steedos-widgets/amis-object@1.0.37/dist/amis-object.umd.js",
30
+ "https://unpkg.com/@steedos-widgets/amis-object@1.0.37/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.0.35/dist/meta.js",
41
+ "url": "https://unpkg.com/@steedos-widgets/fullcalendar@1.0.37/dist/meta.js",
42
42
  "urls": {
43
- "default": "https://unpkg.com/@steedos-widgets/fullcalendar@1.0.35/dist/meta.js",
44
- "design": "https://unpkg.com/@steedos-widgets/fullcalendar@1.0.35/dist/meta.js"
43
+ "default": "https://unpkg.com/@steedos-widgets/fullcalendar@1.0.37/dist/meta.js",
44
+ "design": "https://unpkg.com/@steedos-widgets/fullcalendar@1.0.37/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.0.35/dist/meta.js",
52
+ "url": "https://unpkg.com/@steedos-widgets/amis-object@1.0.37/dist/meta.js",
53
53
  "urls": {
54
- "default": "https://unpkg.com/@steedos-widgets/amis-object@1.0.35/dist/meta.js",
55
- "design": "https://unpkg.com/@steedos-widgets/amis-object@1.0.35/dist/meta.js"
54
+ "default": "https://unpkg.com/@steedos-widgets/amis-object@1.0.37/dist/meta.js",
55
+ "design": "https://unpkg.com/@steedos-widgets/amis-object@1.0.37/dist/meta.js"
56
56
  }
57
57
  }
58
58
  ]
package/dist/meta.js CHANGED
@@ -34,7 +34,7 @@
34
34
  * @Author: baozhoutao@steedos.com
35
35
  * @Date: 2022-08-31 16:32:35
36
36
  * @LastEditors: baozhoutao@steedos.com
37
- * @LastEditTime: 2023-03-07 16:30:11
37
+ * @LastEditTime: 2023-03-10 14:49:15
38
38
  * @Description:
39
39
  */
40
40
  var config$r = {
@@ -133,90 +133,273 @@
133
133
  panelTitle: "设置",
134
134
  panelControls: [
135
135
  {
136
- "type": "select",
137
- "label": "对象",
138
- "name": "objectApiName",
139
- "searchable": true,
140
- "multiple": false,
141
- "source": {
142
- "method": "get",
143
- "url": "/service/api/amis-design/objects",
144
- "requestAdaptor": "\n api.url = Builder.settings.rootUrl + api.url; \n if(!api.headers){\n api.headers = {}\n };\n api.headers.Authorization='Bearer ' + Builder.settings.tenantId + ',' + Builder.settings.authToken ;\n return api;\n ",
145
- "adaptor": "\n let data = payload.data;\n payload.unshift({\n label: \"\u5F53\u524D\u5BF9\u8C61\",\n name: \"${objectName}\"\n });\n return payload;\n "
146
- },
147
- "labelField": "label",
148
- "valueField": "name",
149
- "menuTpl": ""
150
- },
151
- {
152
- type: "text",
153
- name: "recordId",
154
- label: "记录ID"
155
- },
156
- {
157
- type: "button-group-select",
158
- name: "mode",
159
- label: "显示状态",
160
- value: "read",
161
- options: [
136
+ "type": "tabs",
137
+ tabsMode: 'line',
138
+ className: 'editor-prop-config-tabs',
139
+ linksClassName: 'editor-prop-config-tabs-links',
140
+ contentClassName: 'no-border editor-prop-config-tabs-cont',
141
+ "tabs": [
162
142
  {
163
- "label": "只读",
164
- "value": "read"
143
+ "title": "属性",
144
+ className: 'p-none',
145
+ "body": [
146
+ {
147
+ "type": "collapse-group",
148
+ expandIconPosition: 'right',
149
+ expandIcon: {
150
+ type: 'icon',
151
+ icon: 'chevron-right'
152
+ },
153
+ className: 'ae-formItemControl',
154
+ "activeKey": [
155
+ "1",
156
+ "2"
157
+ ],
158
+ "body": [
159
+ {
160
+ "type": "collapse",
161
+ headingClassName: 'ae-formItemControl-header',
162
+ bodyClassName: 'ae-formItemControl-body',
163
+ "key": "1",
164
+ "header": "基本",
165
+ "body": [
166
+ {
167
+ "type": "select",
168
+ mode: 'horizontal',
169
+ horizontal: {
170
+ left: 4,
171
+ right: 8,
172
+ justify: true
173
+ },
174
+ "label": "对象",
175
+ "name": "objectApiName",
176
+ "searchable": true,
177
+ "multiple": false,
178
+ "source": {
179
+ "method": "get",
180
+ "url": "/service/api/amis-design/objects",
181
+ "requestAdaptor": "\n api.url = Builder.settings.rootUrl + api.url; \n if(!api.headers){\n api.headers = {}\n };\n api.headers.Authorization='Bearer ' + Builder.settings.tenantId + ',' + Builder.settings.authToken ;\n return api;\n ",
182
+ "adaptor": "\n let data = payload.data;\n payload.unshift({\n label: \"\u5F53\u524D\u5BF9\u8C61\",\n name: \"${objectName}\"\n });\n return payload;\n "
183
+ },
184
+ "labelField": "label",
185
+ "valueField": "name",
186
+ "menuTpl": ""
187
+ },
188
+ {
189
+ type: "input-text",
190
+ name: "recordId",
191
+ label: "记录ID",
192
+ mode: 'horizontal',
193
+ horizontal: {
194
+ left: 4,
195
+ right: 8,
196
+ justify: true
197
+ },
198
+ },
199
+ {
200
+ type: "button-group-select",
201
+ mode: 'horizontal',
202
+ horizontal: {
203
+ left: 4,
204
+ right: 8,
205
+ justify: true
206
+ },
207
+ name: "mode",
208
+ label: "显示状态",
209
+ value: "read",
210
+ options: [
211
+ {
212
+ "label": "只读",
213
+ "value": "read"
214
+ },
215
+ {
216
+ "label": "编辑",
217
+ "value": "edit"
218
+ }
219
+ ]
220
+ },
221
+ {
222
+ type: "button-group-select",
223
+ name: "layout",
224
+ mode: 'horizontal',
225
+ horizontal: {
226
+ left: 4,
227
+ right: 8,
228
+ justify: true
229
+ },
230
+ label: "表单项布局",
231
+ options: [
232
+ {
233
+ "label": "纵向",
234
+ "value": "normal"
235
+ },
236
+ {
237
+ "label": "横向",
238
+ "value": "horizontal"
239
+ },
240
+ // {
241
+ // "label": "内联",
242
+ // "value": "inline"
243
+ // }
244
+ ]
245
+ },
246
+ /*
247
+ {
248
+ type: "button-group-select",
249
+ name: "labelAlign",
250
+ label: "表单项标签对齐方式",
251
+ hiddenOn: "this.layout !== 'horizontal'",
252
+ options: [
253
+ {
254
+ "label": "左",
255
+ "value": "left"
256
+ },
257
+ {
258
+ "label": "右",
259
+ "value": "right"
260
+ }
261
+ ]
262
+ },
263
+ */
264
+ ]
265
+ },
266
+ {
267
+ "type": "collapse",
268
+ headingClassName: 'ae-formItemControl-header',
269
+ bodyClassName: 'ae-formItemControl-body',
270
+ "key": "2",
271
+ "header": "字段",
272
+ "body": [
273
+ {
274
+ type: "transfer-picker",
275
+ name: "includedFields",
276
+ label: "显示的字段",
277
+ // mode: 'horizontal',
278
+ // horizontal: {
279
+ // left: 4,
280
+ // right: 8,
281
+ // justify: true
282
+ // },
283
+ // visibleOn: "this.fieldsControl === 'excluded'",
284
+ "options": [],
285
+ "multiple": true,
286
+ "source": {
287
+ "method": "get",
288
+ "url": "${context.rootUrl}/service/api/amis-metadata-objects/objects/${objectApiName}/fields/options",
289
+ "headers": {
290
+ "Authorization": "Bearer ${context.tenantId},${context.authToken}"
291
+ },
292
+ "data": null,
293
+ "requestAdaptor": "",
294
+ "adaptor": "",
295
+ "sendOn": "this.objectApiName"
296
+ },
297
+ "className": "col-span-2 m-0",
298
+ "checkAll": true,
299
+ "searchable": true,
300
+ "sortable": true,
301
+ "joinValues": false,
302
+ "extractValue": true,
303
+ },
304
+ {
305
+ type: "transfer-picker",
306
+ name: "excludedFields",
307
+ label: "排除的字段",
308
+ // mode: 'horizontal',
309
+ // horizontal: {
310
+ // left: 4,
311
+ // right: 8,
312
+ // justify: true
313
+ // },
314
+ // visibleOn: "this.fieldsControl === 'excluded'",
315
+ "options": [],
316
+ "multiple": true,
317
+ "source": {
318
+ "method": "get",
319
+ "url": "${context.rootUrl}/service/api/amis-metadata-objects/objects/${objectApiName}/fields/options",
320
+ "headers": {
321
+ "Authorization": "Bearer ${context.tenantId},${context.authToken}"
322
+ },
323
+ "data": null,
324
+ "requestAdaptor": "",
325
+ "adaptor": "",
326
+ "sendOn": "this.objectApiName"
327
+ },
328
+ "className": "col-span-2 m-0",
329
+ "checkAll": true,
330
+ "searchable": true,
331
+ "sortable": true,
332
+ "joinValues": false,
333
+ "extractValue": true,
334
+ },
335
+ {
336
+ type: "editor",
337
+ name: "fieldsExtend",
338
+ label: "重写字段配置",
339
+ "options": {
340
+ "lineNumbers": "off"
341
+ },
342
+ // mode: 'horizontal',
343
+ // horizontal: {
344
+ // left: 4,
345
+ // right: 8,
346
+ // justify: true
347
+ // },
348
+ language: "json",
349
+ // visibleOn: "this.fieldsControl === 'included'"
350
+ },
351
+ {
352
+ type: "markdown",
353
+ value: '重写字段配置. 例如\n```\n{\n "name": {\n "is_wide": true, //设置为宽字段\n "required": true, //设置为必填\n "amis": { // 设置渲染属性\n "type": "input-color" //将字段重写为 颜色选择器\n ...\n } \n }, \n "title": {\n "group": "分组1" // 设置分组\n ...\n }\n}\n```'
354
+ }
355
+ ]
356
+ }
357
+ ]
358
+ }
359
+ ]
165
360
  },
166
361
  {
167
- "label": "编辑",
168
- "value": "edit"
362
+ "title": "外观",
363
+ className: 'p-none',
364
+ "body": [
365
+ {
366
+ "type": "collapse-group",
367
+ expandIconPosition: 'right',
368
+ expandIcon: {
369
+ type: 'icon',
370
+ icon: 'chevron-right'
371
+ },
372
+ className: 'ae-formItemControl',
373
+ "activeKey": [
374
+ "1"
375
+ ],
376
+ "body": [
377
+ {
378
+ "type": "collapse",
379
+ headingClassName: 'ae-formItemControl-header',
380
+ bodyClassName: 'ae-formItemControl-body',
381
+ "key": "1",
382
+ "header": "CSS 类名",
383
+ "body": [
384
+ {
385
+ type: "input-text",
386
+ name: "className",
387
+ mode: 'horizontal',
388
+ horizontal: {
389
+ left: 4,
390
+ right: 8,
391
+ justify: true
392
+ },
393
+ label: "表单",
394
+ value: "mb-4"
395
+ }
396
+ ]
397
+ },
398
+ ]
399
+ }
400
+ ]
169
401
  }
170
402
  ]
171
- },
172
- {
173
- type: "button-group-select",
174
- name: "layout",
175
- label: "表单项布局",
176
- options: [
177
- {
178
- "label": "纵向",
179
- "value": "normal"
180
- },
181
- {
182
- "label": "横向",
183
- "value": "horizontal"
184
- },
185
- // {
186
- // "label": "内联",
187
- // "value": "inline"
188
- // }
189
- ]
190
- },
191
- /*
192
- {
193
- type: "button-group-select",
194
- name: "labelAlign",
195
- label: "表单项标签对齐方式",
196
- hiddenOn: "this.layout !== 'horizontal'",
197
- options: [
198
- {
199
- "label": "左",
200
- "value": "left"
201
- },
202
- {
203
- "label": "右",
204
- "value": "right"
205
- }
206
- ]
207
- },
208
- */
209
- {
210
- type: "text",
211
- name: "className",
212
- label: "CSS类名",
213
- value: "mb-4"
214
- },
215
- {
216
- type: "editor",
217
- name: "fields",
218
- label: "指定字段",
219
- language: "json"
220
403
  }
221
404
  ]
222
405
  }
@@ -2,5 +2,5 @@ export declare const PageRecordDetail: (props: any) => Promise<{
2
2
  type: string;
3
3
  data: any;
4
4
  className: string;
5
- body: {};
5
+ body: any;
6
6
  }>;
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.35",
4
+ "version": "1.0.37",
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.35",
63
+ "@steedos-widgets/amis-lib": "1.0.37",
64
64
  "autoprefixer": "^10.4.13",
65
65
  "postcss": "^8.4.19",
66
66
  "tailwindcss": "^3.2.4"
67
67
  },
68
- "gitHead": "54e431f0239dcb140be8658445c532ff5e9ef947"
68
+ "gitHead": "c3287912d6bd797f0fcd6160421ccd14a5343d7e"
69
69
  }