@steedos-widgets/amis-lib 3.6.3 → 3.6.4-beta.2

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.
@@ -18,6 +18,7 @@ export * from './lib/converter/amis/fields/lookup';
18
18
  export * from './lib/converter/amis/fields/user';
19
19
  export * from './lib/converter/amis/filters';
20
20
  export * from './lib/converter/amis/header';
21
+ export * from './lib/converter/amis/tpl';
21
22
  export * from './lib/converter/amis/fields_filter';
22
23
  export * from './lib/router';
23
24
  export * from './lib/assets';
@@ -56,7 +56,7 @@ export function getObjectDetailButtonsSchemas(objectSchema: any, recordId: any,
56
56
  }[];
57
57
  };
58
58
  };
59
- };
59
+ }[];
60
60
  export function getObjectListViewButtonsSchemas(objectSchema: any, ctx: any): {
61
61
  type: string;
62
62
  name: any;
@@ -22,6 +22,7 @@ export function getMarkdownFieldSchema(field: any, readonly: any, ctx: any): {
22
22
  tab: {
23
23
  type: string;
24
24
  name: any;
25
+ labelClassName: string;
25
26
  language: string;
26
27
  }[];
27
28
  } | {
@@ -536,10 +536,34 @@ export function getObjectRecordDetailHeader(objectSchema: any, recordId: any, op
536
536
  className: string;
537
537
  }[];
538
538
  }[];
539
+ } | {
540
+ type: string;
541
+ visibleOn: string;
542
+ className: string;
543
+ onEvent: {
544
+ click: {
545
+ actions: {
546
+ componentId: string;
547
+ args: {};
548
+ actionType: string;
549
+ }[];
550
+ };
551
+ };
552
+ body: {
553
+ type: string;
554
+ category: string;
555
+ name: string;
556
+ colorVariant: string;
557
+ className: string;
558
+ }[];
559
+ tpl?: undefined;
539
560
  } | {
540
561
  type: string;
541
562
  className: string;
542
563
  tpl: string;
564
+ visibleOn?: undefined;
565
+ onEvent?: undefined;
566
+ body?: undefined;
543
567
  })[];
544
568
  md: string;
545
569
  className: string;
@@ -25,5 +25,9 @@ export function getAmisInputTableSchema(props: any): Promise<{
25
25
  labelRemark: any;
26
26
  labelAlign: any;
27
27
  mode: any;
28
+ visibleOn: any;
29
+ visible: any;
30
+ hiddenOn: any;
31
+ hidden: any;
28
32
  className: string;
29
33
  }>;
@@ -171,10 +171,34 @@ export function getRecordDetailHeaderSchema(objectName: any, recordId: any, opti
171
171
  className: string;
172
172
  }[];
173
173
  }[];
174
+ } | {
175
+ type: string;
176
+ visibleOn: string;
177
+ className: string;
178
+ onEvent: {
179
+ click: {
180
+ actions: {
181
+ componentId: string;
182
+ args: {};
183
+ actionType: string;
184
+ }[];
185
+ };
186
+ };
187
+ body: {
188
+ type: string;
189
+ category: string;
190
+ name: string;
191
+ colorVariant: string;
192
+ className: string;
193
+ }[];
194
+ tpl?: undefined;
174
195
  } | {
175
196
  type: string;
176
197
  className: string;
177
198
  tpl: string;
199
+ visibleOn?: undefined;
200
+ onEvent?: undefined;
201
+ body?: undefined;
178
202
  })[];
179
203
  md: string;
180
204
  className: string;
@@ -255,6 +279,11 @@ export function getRecordServiceSchema(objectName: any, appId: any, props: {}, b
255
279
  componentId: string;
256
280
  expression: string;
257
281
  script?: undefined;
282
+ } | {
283
+ actionType: string;
284
+ expression: string;
285
+ componentId?: undefined;
286
+ script?: undefined;
258
287
  } | {
259
288
  actionType: string;
260
289
  script: string;
@@ -37,6 +37,7 @@ export function getSchema(uiSchema: any): {
37
37
  data: {
38
38
  objectName: string;
39
39
  __deletedRecord: boolean;
40
+ _inDrawer: string;
40
41
  _isRelated?: undefined;
41
42
  };
42
43
  expression?: undefined;
@@ -50,6 +51,7 @@ export function getSchema(uiSchema: any): {
50
51
  objectName: string;
51
52
  _isRelated: string;
52
53
  __deletedRecord?: undefined;
54
+ _inDrawer?: undefined;
53
55
  };
54
56
  expression: string;
55
57
  })[];
@@ -212,6 +212,7 @@ export namespace StandardButtons {
212
212
  data: {
213
213
  objectName: string;
214
214
  __deletedRecord: boolean;
215
+ _inDrawer: string;
215
216
  _isRelated?: undefined;
216
217
  };
217
218
  expression?: undefined;
@@ -225,6 +226,7 @@ export namespace StandardButtons {
225
226
  objectName: string;
226
227
  _isRelated: string;
227
228
  __deletedRecord?: undefined;
229
+ _inDrawer?: undefined;
228
230
  };
229
231
  expression: string;
230
232
  })[];
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@steedos-widgets/amis-lib",
3
3
  "private": false,
4
- "version": "3.6.3",
4
+ "version": "3.6.4-beta.2",
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": "7452deb6cf82a1c24e1f645cd2d243efa126521b"
64
+ "gitHead": "74e7975b7f134d1192dea186f90e0a1c6c11275c"
65
65
  }