@steedos-widgets/amis-lib 6.10.53-beta.2 → 6.10.53-beta.25

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,4 @@
1
- export function getObjectHeaderToolbar(mainObject: any, fields: any, formFactor: any, { showDisplayAs, hiddenCount, headerToolbarItems, filterVisible, isLookup, keywordsSearchBoxName }?: {
1
+ export function getObjectHeaderToolbar(mainObject: any, fields: any, formFactor: any, { showDisplayAs, hiddenCount, headerToolbarItems, filterVisible, isLookup, keywordsSearchBoxName, displayAs }?: {
2
2
  showDisplayAs?: boolean;
3
3
  hiddenCount?: boolean;
4
4
  filterVisible?: boolean;
@@ -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;
@@ -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
+ };
@@ -17,6 +17,9 @@ export function getApprovalDrawerSchema(instance: any, events: any): Promise<{
17
17
  method: string;
18
18
  url: string;
19
19
  };
20
+ messages: {
21
+ validateFailed: string;
22
+ };
20
23
  debug: boolean;
21
24
  id: string;
22
25
  resetAfterSubmit: boolean;
@@ -259,13 +262,14 @@ export function getApprovalDrawerSchema(instance: any, events: any): Promise<{
259
262
  valign: string;
260
263
  columnClassName: string;
261
264
  } | {
262
- body: {
265
+ body: ({
263
266
  type: string;
264
267
  id: string;
265
268
  api: {
266
269
  url: string;
267
270
  method: string;
268
271
  sendOn: string;
272
+ trackExpression: string;
269
273
  messages: {};
270
274
  requestAdaptor: string;
271
275
  adaptor: string;
@@ -309,6 +313,7 @@ export function getApprovalDrawerSchema(instance: any, events: any): Promise<{
309
313
  url: string;
310
314
  method: string;
311
315
  sendOn: string;
316
+ trackExpression: string;
312
317
  messages: {};
313
318
  requestAdaptor: string;
314
319
  adaptor: string;
@@ -354,7 +359,16 @@ export function getApprovalDrawerSchema(instance: any, events: any): Promise<{
354
359
  joinValues?: undefined;
355
360
  extractValue?: undefined;
356
361
  })[];
357
- }[];
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
+ })[];
358
372
  id: string;
359
373
  valign: string;
360
374
  md?: undefined;
@@ -642,13 +656,14 @@ export function getApprovalDrawerSchema(instance: any, events: any): Promise<{
642
656
  valign: string;
643
657
  columnClassName: string;
644
658
  } | {
645
- body: {
659
+ body: ({
646
660
  type: string;
647
661
  id: string;
648
662
  api: {
649
663
  url: string;
650
664
  method: string;
651
665
  sendOn: string;
666
+ trackExpression: string;
652
667
  messages: {};
653
668
  requestAdaptor: string;
654
669
  adaptor: string;
@@ -692,6 +707,7 @@ export function getApprovalDrawerSchema(instance: any, events: any): Promise<{
692
707
  url: string;
693
708
  method: string;
694
709
  sendOn: string;
710
+ trackExpression: string;
695
711
  messages: {};
696
712
  requestAdaptor: string;
697
713
  adaptor: string;
@@ -737,7 +753,16 @@ export function getApprovalDrawerSchema(instance: any, events: any): Promise<{
737
753
  joinValues?: undefined;
738
754
  extractValue?: undefined;
739
755
  })[];
740
- }[];
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
+ })[];
741
766
  id: string;
742
767
  valign: string;
743
768
  md?: undefined;
@@ -65,7 +65,9 @@ export function getFlowFormSchema(instance: any, box: any, print: any): Promise<
65
65
  }[];
66
66
  id: string;
67
67
  messages: {};
68
- pullRefresh: {};
68
+ pullRefresh: {
69
+ disabled: boolean;
70
+ };
69
71
  regions: string[];
70
72
  onEvent: {
71
73
  "@data.@instanceDetail.changed": {
@@ -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;
@@ -6,6 +6,7 @@ export function getInstanceInfo(props: any): Promise<{
6
6
  space: any;
7
7
  flow: any;
8
8
  form: any;
9
+ is_hidden: any;
9
10
  applicant: any;
10
11
  applicant_name: any;
11
12
  submitter: any;
@@ -1,7 +1,12 @@
1
1
  export function getRelatedRecords(instance: any): Promise<{
2
2
  type: string;
3
- tpl: string;
4
- }[]>;
3
+ size: string;
4
+ className: string;
5
+ body: {
6
+ type: string;
7
+ tpl: string;
8
+ }[];
9
+ }>;
5
10
  export function getRelatedInstances(instance: any): Promise<{
6
11
  type: string;
7
12
  className: string;
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.2",
4
+ "version": "6.10.53-beta.25",
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": "c2f573648c342090e0f5f7a919ec93fe82e64dbc"
62
+ "gitHead": "c5cb1696b1a21c7a9f951020101c36d33ceb1ca2"
63
63
  }