@steedos-widgets/amis-lib 6.10.53-beta.9 → 6.10.54-beta.1

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.
@@ -247,7 +247,7 @@ export function lookupToAmisIdsPicker(field: any, readonly: any, ctx: any): Prom
247
247
  } | {
248
248
  perPage: any;
249
249
  expandConfig: {
250
- expand: string;
250
+ expand: any;
251
251
  };
252
252
  mode: string;
253
253
  perPageAvailable: number[];
@@ -334,7 +334,7 @@ export function getIdsPickerSchema(field: any, readonly: any, ctx: any): Promise
334
334
  } | {
335
335
  perPage: any;
336
336
  expandConfig: {
337
- expand: string;
337
+ expand: any;
338
338
  };
339
339
  mode: string;
340
340
  perPageAvailable: number[];
@@ -17,7 +17,7 @@ export function getTableSchema(object: any, fields: any, options: any): Promise<
17
17
  } | {
18
18
  perPage: any;
19
19
  expandConfig: {
20
- expand: string;
20
+ expand: any;
21
21
  };
22
22
  mode: string;
23
23
  perPageAvailable: number[];
@@ -1,4 +1,29 @@
1
1
  export function getAmisInputTableSchema(props: any): Promise<{
2
+ type: string;
3
+ label: any;
4
+ labelClassName: any;
5
+ labelRemark: any;
6
+ labelAlign: any;
7
+ mode: any;
8
+ visibleOn: any;
9
+ visible: any;
10
+ hiddenOn: any;
11
+ hidden: any;
12
+ required: any;
13
+ className: string;
14
+ body: {
15
+ type: string;
16
+ className: string;
17
+ dataProvider: (data: any, setData: any) => void;
18
+ body: {
19
+ type: string;
20
+ className: string;
21
+ border: boolean;
22
+ padding: string;
23
+ trs: string;
24
+ };
25
+ };
26
+ } | {
2
27
  type: string;
3
28
  body: {
4
29
  type: string;
@@ -111,6 +111,7 @@ export function getListSchema(appName: any, objectName: any, listViewName: any,
111
111
  onCrudDataFilter: any;
112
112
  searchable_default: any;
113
113
  filter_required: any;
114
+ auto_open_filter: any;
114
115
  };
115
116
  isCustomAmisSchema?: undefined;
116
117
  isCalendar?: undefined;
@@ -328,7 +329,52 @@ export function getRecordServiceSchema(objectName: any, appId: any, props: {}, b
328
329
  hiddenOn?: string;
329
330
  type: string;
330
331
  className: string;
331
- body: any;
332
+ body: ({
333
+ type: string;
334
+ className: string;
335
+ style: {
336
+ minHeight: string;
337
+ };
338
+ visibleOn: string;
339
+ body: ({
340
+ type: string;
341
+ html: string;
342
+ tpl?: undefined;
343
+ className?: undefined;
344
+ label?: undefined;
345
+ level?: undefined;
346
+ onEvent?: undefined;
347
+ } | {
348
+ type: string;
349
+ tpl: string;
350
+ className: string;
351
+ html?: undefined;
352
+ label?: undefined;
353
+ level?: undefined;
354
+ onEvent?: undefined;
355
+ } | {
356
+ type: string;
357
+ label: string;
358
+ level: string;
359
+ className: string;
360
+ onEvent: {
361
+ click: {
362
+ actions: {
363
+ actionType: string;
364
+ script: string;
365
+ }[];
366
+ };
367
+ };
368
+ html?: undefined;
369
+ tpl?: undefined;
370
+ })[];
371
+ } | {
372
+ type: string;
373
+ className: string;
374
+ body: any;
375
+ visibleOn: string;
376
+ style?: undefined;
377
+ })[];
332
378
  };
333
379
  data: any;
334
380
  style: any;
@@ -427,6 +473,7 @@ export function getObjectRelated({ appName, masterObjectName, objectName, relate
427
473
  onCrudDataFilter: any;
428
474
  searchable_default: any;
429
475
  filter_required: any;
476
+ auto_open_filter: any;
430
477
  };
431
478
  isCustomAmisSchema?: undefined;
432
479
  isCalendar?: undefined;
@@ -0,0 +1,23 @@
1
+ export function buildPrintCellSchema(fieldSpec: any, value: any, display: any): {
2
+ type: string;
3
+ value: any;
4
+ } | {
5
+ type: string;
6
+ tpl: string;
7
+ };
8
+ export function getPrintCellStyleForType(type: any): {
9
+ whiteSpace: string;
10
+ } | {
11
+ whiteSpace?: undefined;
12
+ };
13
+ export function normalizeFieldSpecForPrint(f: any): {
14
+ name: any;
15
+ type: any;
16
+ label: any;
17
+ multiple: boolean;
18
+ precision: any;
19
+ format: any;
20
+ prefix: any;
21
+ suffix: any;
22
+ options: any;
23
+ };
@@ -262,13 +262,14 @@ export function getApprovalDrawerSchema(instance: any, events: any): Promise<{
262
262
  valign: string;
263
263
  columnClassName: string;
264
264
  } | {
265
- body: {
265
+ body: ({
266
266
  type: string;
267
267
  id: string;
268
268
  api: {
269
269
  url: string;
270
270
  method: string;
271
271
  sendOn: string;
272
+ trackExpression: string;
272
273
  messages: {};
273
274
  requestAdaptor: string;
274
275
  adaptor: string;
@@ -358,7 +359,16 @@ export function getApprovalDrawerSchema(instance: any, events: any): Promise<{
358
359
  joinValues?: undefined;
359
360
  extractValue?: undefined;
360
361
  })[];
361
- }[];
362
+ tpl?: undefined;
363
+ visibleOn?: undefined;
364
+ } | {
365
+ type: string;
366
+ tpl: string;
367
+ visibleOn: string;
368
+ id?: undefined;
369
+ api?: undefined;
370
+ body?: undefined;
371
+ })[];
362
372
  id: string;
363
373
  valign: string;
364
374
  md?: undefined;
@@ -646,13 +656,14 @@ export function getApprovalDrawerSchema(instance: any, events: any): Promise<{
646
656
  valign: string;
647
657
  columnClassName: string;
648
658
  } | {
649
- body: {
659
+ body: ({
650
660
  type: string;
651
661
  id: string;
652
662
  api: {
653
663
  url: string;
654
664
  method: string;
655
665
  sendOn: string;
666
+ trackExpression: string;
656
667
  messages: {};
657
668
  requestAdaptor: string;
658
669
  adaptor: string;
@@ -742,7 +753,16 @@ export function getApprovalDrawerSchema(instance: any, events: any): Promise<{
742
753
  joinValues?: undefined;
743
754
  extractValue?: undefined;
744
755
  })[];
745
- }[];
756
+ tpl?: undefined;
757
+ visibleOn?: undefined;
758
+ } | {
759
+ type: string;
760
+ tpl: string;
761
+ visibleOn: string;
762
+ id?: undefined;
763
+ api?: undefined;
764
+ body?: undefined;
765
+ })[];
746
766
  id: string;
747
767
  valign: string;
748
768
  md?: undefined;
@@ -1,7 +1,59 @@
1
1
  export function getInstanceApprovalHistory(box: any, isMobile: any): Promise<{
2
2
  type: string;
3
+ id: string;
3
4
  className: string;
4
- template: string;
5
+ onEvent: {
6
+ "approval.detail.show": {
7
+ weight: number;
8
+ actions: {
9
+ actionType: string;
10
+ data: {
11
+ stepName: string;
12
+ userName: string;
13
+ organizationName: string;
14
+ signatureUrl: string;
15
+ startDate: string;
16
+ finishDate: string;
17
+ finishDateDisplay: string;
18
+ judge: string;
19
+ judgeValue: string;
20
+ judgeDisplay: string;
21
+ isFinished: string;
22
+ isRead: string;
23
+ opinion: string;
24
+ autoSubmitted: string;
25
+ approveType: string;
26
+ };
27
+ dialog: {
28
+ type: string;
29
+ title: string;
30
+ size: string;
31
+ showCloseButton: boolean;
32
+ closeOnEsc: boolean;
33
+ actions: {
34
+ type: string;
35
+ label: string;
36
+ actionType: string;
37
+ level: string;
38
+ }[];
39
+ body: {
40
+ type: string;
41
+ className: string;
42
+ body: ({
43
+ type: string;
44
+ tpl: string;
45
+ visibleOn?: undefined;
46
+ } | {
47
+ type: string;
48
+ visibleOn: string;
49
+ tpl: string;
50
+ })[];
51
+ };
52
+ };
53
+ }[];
54
+ };
55
+ };
56
+ body: any[];
5
57
  }>;
6
58
  export function getINstanceApproveHistory2(instance: any): Promise<{
7
59
  type: string;
@@ -1,3 +1,4 @@
1
+ export function shouldUseAllStepSelection(instance: any): boolean;
1
2
  export function getOpinionFieldStepsName(field: any, top_keywords: any): any[];
2
3
  export function getTraceApprovesByStep(instance: any, flow: any, stepName: any, only_cc_opinion: any): any[];
3
4
  export function isOpinionOfField(approve: any, field: any): boolean;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@steedos-widgets/amis-lib",
3
3
  "private": false,
4
- "version": "6.10.53-beta.9",
4
+ "version": "6.10.54-beta.1",
5
5
  "unpkg": "./dist/index.umd.js",
6
6
  "main": "./dist/index.cjs.js",
7
7
  "module": "./dist/index.esm.js",
@@ -59,5 +59,5 @@
59
59
  "i18next": "24.2.2",
60
60
  "lodash": "^4.17.21"
61
61
  },
62
- "gitHead": "5c22c7a4ec588c163c247bdf7d57c6d3d7ccdc82"
62
+ "gitHead": "8260e94206098a2bb9a9946152bff96f96d2eafa"
63
63
  }