@steedos-widgets/amis-lib 1.2.27 → 1.2.28

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.
@@ -28,6 +28,7 @@ export function getObjectDetailButtonsSchemas(objectSchema: any, recordId: any,
28
28
  drawer: {
29
29
  type: string;
30
30
  title: string;
31
+ id: string;
31
32
  body: {
32
33
  type: string;
33
34
  id: string;
@@ -44,7 +45,6 @@ export function getObjectDetailButtonsSchemas(objectSchema: any, recordId: any,
44
45
  btnClassName: string;
45
46
  size: string;
46
47
  }[];
47
- id: string;
48
48
  position: string;
49
49
  closeOnOutside: boolean;
50
50
  resizable: boolean;
@@ -55,7 +55,6 @@ export function getObjectDetailButtonsSchemas(objectSchema: any, recordId: any,
55
55
  }[];
56
56
  };
57
57
  };
58
- id: string;
59
58
  };
60
59
  export function getObjectListViewButtonsSchemas(objectSchema: any, ctx: any): {
61
60
  type: string;
@@ -73,6 +72,7 @@ export function getObjectListViewButtonsSchemas(objectSchema: any, ctx: any): {
73
72
  drawer: {
74
73
  type: string;
75
74
  title: string;
75
+ id: string;
76
76
  body: {
77
77
  type: string;
78
78
  id: string;
@@ -90,7 +90,6 @@ export function getObjectListViewButtonsSchemas(objectSchema: any, ctx: any): {
90
90
  btnClassName: string;
91
91
  size: string;
92
92
  }[];
93
- id: string;
94
93
  position: string;
95
94
  closeOnOutside: boolean;
96
95
  resizable: boolean;
@@ -101,7 +100,6 @@ export function getObjectListViewButtonsSchemas(objectSchema: any, ctx: any): {
101
100
  }[];
102
101
  };
103
102
  };
104
- id: string;
105
103
  };
106
104
  export function getObjectRecordDetailRelatedListButtonsSchemas(objectSchema: any, ctx: any): {
107
105
  type: string;
@@ -119,6 +117,7 @@ export function getObjectRecordDetailRelatedListButtonsSchemas(objectSchema: any
119
117
  drawer: {
120
118
  type: string;
121
119
  title: string;
120
+ id: string;
122
121
  body: {
123
122
  type: string;
124
123
  vertical: boolean;
@@ -1,12 +1,15 @@
1
1
  export function getMarkdownFieldSchema(field: any, readonly: any, ctx: any): {
2
2
  type: string;
3
- name: any;
4
- options: {
5
- linkify: boolean;
6
- html: boolean;
7
- breaks: boolean;
3
+ label: any;
4
+ body: {
5
+ type: string;
6
+ name: any;
7
+ options: {
8
+ linkify: boolean;
9
+ html: boolean;
10
+ breaks: boolean;
11
+ };
8
12
  };
9
- body?: undefined;
10
13
  } | {
11
14
  type: string;
12
15
  body: ({
@@ -24,8 +27,7 @@ export function getMarkdownFieldSchema(field: any, readonly: any, ctx: any): {
24
27
  };
25
28
  language?: undefined;
26
29
  })[];
27
- name?: undefined;
28
- options?: undefined;
30
+ label?: undefined;
29
31
  };
30
32
  export function getHtmlFieldSchema(field: any, readonly: any, ctx: any): {
31
33
  type: string;
@@ -66,7 +66,13 @@ export function getObjectListHeaderFirstLine(objectSchema: any, listViewName: an
66
66
  className: string;
67
67
  }[] | {
68
68
  type: string;
69
- icon: string;
69
+ icon: string; /**
70
+ * 点击记录详细界面相关表顶部标题进入的相关表页面的顶部amisSchema
71
+ * @param {*} objectSchema
72
+ * @param {*} recordId
73
+ * @param {*} relatedObjectName
74
+ * @returns amisSchema
75
+ */
70
76
  onEvent: {
71
77
  click: {
72
78
  actions: {
@@ -74,6 +80,7 @@ export function getObjectListHeaderFirstLine(objectSchema: any, listViewName: an
74
80
  drawer: {
75
81
  type: string;
76
82
  title: string;
83
+ id: string;
77
84
  body: {
78
85
  type: string;
79
86
  id: string;
@@ -91,7 +98,6 @@ export function getObjectListHeaderFirstLine(objectSchema: any, listViewName: an
91
98
  btnClassName: string;
92
99
  size: string;
93
100
  }[];
94
- id: string;
95
101
  position: string;
96
102
  closeOnOutside: boolean;
97
103
  resizable: boolean;
@@ -102,7 +108,6 @@ export function getObjectListHeaderFirstLine(objectSchema: any, listViewName: an
102
108
  }[];
103
109
  };
104
110
  };
105
- id: string;
106
111
  };
107
112
  };
108
113
  md: string;
@@ -438,7 +443,13 @@ export function getObjectListHeader(objectSchema: any, listViewName: any, ctx: a
438
443
  className: string;
439
444
  }[] | {
440
445
  type: string;
441
- icon: string;
446
+ icon: string; /**
447
+ * 点击记录详细界面相关表顶部标题进入的相关表页面的顶部amisSchema
448
+ * @param {*} objectSchema
449
+ * @param {*} recordId
450
+ * @param {*} relatedObjectName
451
+ * @returns amisSchema
452
+ */
442
453
  onEvent: {
443
454
  click: {
444
455
  actions: {
@@ -446,6 +457,7 @@ export function getObjectListHeader(objectSchema: any, listViewName: any, ctx: a
446
457
  drawer: {
447
458
  type: string;
448
459
  title: string;
460
+ id: string;
449
461
  body: {
450
462
  type: string;
451
463
  id: string;
@@ -463,7 +475,6 @@ export function getObjectListHeader(objectSchema: any, listViewName: any, ctx: a
463
475
  btnClassName: string;
464
476
  size: string;
465
477
  }[];
466
- id: string;
467
478
  position: string;
468
479
  closeOnOutside: boolean;
469
480
  resizable: boolean;
@@ -474,7 +485,6 @@ export function getObjectListHeader(objectSchema: any, listViewName: any, ctx: a
474
485
  }[];
475
486
  };
476
487
  };
477
- id: string;
478
488
  };
479
489
  };
480
490
  md: string;
@@ -587,6 +597,7 @@ export function getObjectRecordDetailHeader(objectSchema: any, recordId: any, op
587
597
  drawer: {
588
598
  type: string;
589
599
  title: string;
600
+ id: string;
590
601
  body: {
591
602
  type: string;
592
603
  id: string;
@@ -603,7 +614,6 @@ export function getObjectRecordDetailHeader(objectSchema: any, recordId: any, op
603
614
  btnClassName: string;
604
615
  size: string;
605
616
  }[];
606
- id: string;
607
617
  position: string;
608
618
  closeOnOutside: boolean;
609
619
  resizable: boolean;
@@ -614,7 +624,6 @@ export function getObjectRecordDetailHeader(objectSchema: any, recordId: any, op
614
624
  }[];
615
625
  };
616
626
  };
617
- id: string;
618
627
  };
619
628
  };
620
629
  md: string;
@@ -685,6 +694,7 @@ export function getObjectRecordDetailRelatedListHeader(relatedObjectSchema: any,
685
694
  drawer: {
686
695
  type: string;
687
696
  title: string;
697
+ id: string;
688
698
  body: {
689
699
  type: string;
690
700
  vertical: boolean;
@@ -12,6 +12,7 @@ export function getObjectCRUD(objectSchema: any, fields: any, options: any): Pro
12
12
  }>;
13
13
  export function getObjectForm(objectSchema: any, ctx: any): Promise<{
14
14
  type: string;
15
+ id: string;
15
16
  className: string;
16
17
  name: string;
17
18
  api: {
@@ -8,6 +8,7 @@ export function getFormSchema(objectName: any, ctx: any): Promise<{
8
8
  uiSchema: any;
9
9
  amisSchema: {
10
10
  type: string;
11
+ id: string;
11
12
  className: string;
12
13
  name: string;
13
14
  api: {
@@ -305,6 +306,7 @@ export function getRecordDetailHeaderSchema(objectName: any, recordId: any, opti
305
306
  drawer: {
306
307
  type: string;
307
308
  title: string;
309
+ id: string;
308
310
  body: {
309
311
  type: string;
310
312
  id: string;
@@ -321,7 +323,6 @@ export function getRecordDetailHeaderSchema(objectName: any, recordId: any, opti
321
323
  btnClassName: string;
322
324
  size: string;
323
325
  }[];
324
- id: string;
325
326
  position: string;
326
327
  closeOnOutside: boolean;
327
328
  resizable: boolean;
@@ -332,7 +333,6 @@ export function getRecordDetailHeaderSchema(objectName: any, recordId: any, opti
332
333
  }[];
333
334
  };
334
335
  };
335
- id: string;
336
336
  };
337
337
  };
338
338
  md: string;
@@ -5,6 +5,7 @@ export function getFormPageInitSchema(objectApiName: any): Promise<{
5
5
  regions: string[];
6
6
  body: {
7
7
  type: string;
8
+ id: string;
8
9
  className: string;
9
10
  name: string;
10
11
  api: {
@@ -25,6 +25,15 @@ export function getSchema(uiSchema: any, ctx: any): Promise<{
25
25
  closeOnOutside: boolean;
26
26
  showCloseButton: boolean;
27
27
  size: string;
28
+ onEvent: {
29
+ cancel: {
30
+ actions: {
31
+ actionType: string;
32
+ script: string;
33
+ expression: string;
34
+ }[];
35
+ };
36
+ };
28
37
  };
29
38
  }[];
30
39
  weight: number;
@@ -84,6 +84,7 @@ export function getSchema(uiSchema: any): {
84
84
  source?: undefined;
85
85
  size?: undefined;
86
86
  pickerSchema?: undefined;
87
+ accept?: undefined;
87
88
  useChunk?: undefined;
88
89
  receiver?: undefined;
89
90
  } | {
@@ -184,6 +185,7 @@ export function getSchema(uiSchema: any): {
184
185
  autoComplete?: undefined;
185
186
  multiple?: undefined;
186
187
  hidden?: undefined;
188
+ accept?: undefined;
187
189
  useChunk?: undefined;
188
190
  receiver?: undefined;
189
191
  } | {
@@ -191,6 +193,7 @@ export function getSchema(uiSchema: any): {
191
193
  label: string;
192
194
  required: boolean;
193
195
  type: string;
196
+ accept: string;
194
197
  className: string;
195
198
  labelClassName: string;
196
199
  clearValueOnHidden: boolean;
@@ -53,6 +53,15 @@ export function getSchema(uiSchema: any, ctx: any): Promise<{
53
53
  closeOnEsc: boolean;
54
54
  closeOnOutside: boolean;
55
55
  size: string;
56
+ onEvent: {
57
+ cancel: {
58
+ actions: {
59
+ actionType: string;
60
+ script: string;
61
+ expression: string;
62
+ }[];
63
+ };
64
+ };
56
65
  actions: ({
57
66
  type: string;
58
67
  actionType: string;
@@ -56,6 +56,15 @@ export namespace StandardButtons {
56
56
  closeOnEsc: boolean;
57
57
  closeOnOutside: boolean;
58
58
  size: string;
59
+ onEvent: {
60
+ cancel: {
61
+ actions: {
62
+ actionType: string;
63
+ script: string;
64
+ expression: string;
65
+ }[];
66
+ };
67
+ };
59
68
  actions: ({
60
69
  type: string;
61
70
  actionType: string;
@@ -117,6 +126,15 @@ export namespace StandardButtons {
117
126
  closeOnOutside: boolean;
118
127
  showCloseButton: boolean;
119
128
  size: string;
129
+ onEvent: {
130
+ cancel: {
131
+ actions: {
132
+ actionType: string;
133
+ script: string;
134
+ expression: string;
135
+ }[];
136
+ };
137
+ };
120
138
  };
121
139
  }[];
122
140
  weight: number;
@@ -283,6 +301,7 @@ export namespace StandardButtons {
283
301
  source?: undefined;
284
302
  size?: undefined;
285
303
  pickerSchema?: undefined;
304
+ accept?: undefined;
286
305
  useChunk?: undefined;
287
306
  receiver?: undefined;
288
307
  } | {
@@ -383,6 +402,7 @@ export namespace StandardButtons {
383
402
  autoComplete?: undefined;
384
403
  multiple?: undefined;
385
404
  hidden?: undefined;
405
+ accept?: undefined;
386
406
  useChunk?: undefined;
387
407
  receiver?: undefined;
388
408
  } | {
@@ -390,6 +410,7 @@ export namespace StandardButtons {
390
410
  label: string;
391
411
  required: boolean;
392
412
  type: string;
413
+ accept: string;
393
414
  className: string;
394
415
  labelClassName: string;
395
416
  clearValueOnHidden: boolean;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@steedos-widgets/amis-lib",
3
3
  "private": false,
4
- "version": "1.2.27",
4
+ "version": "1.2.28",
5
5
  "unpkg": "./dist/index.umd.js",
6
6
  "main": "./dist/index.cjs.js",
7
7
  "module": "./dist/index.esm.js",
@@ -61,5 +61,5 @@
61
61
  "lodash": "^4.17.21",
62
62
  "react-i18next": "12.3.1"
63
63
  },
64
- "gitHead": "9e8096ba3fa91b363cedf5e65d556bc9dff22dbb"
64
+ "gitHead": "6582f3589d8d98cf63fae5479aa1adca4be1ee5f"
65
65
  }