@steedos-widgets/amis-lib 6.10.1-beta.8 → 6.10.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.
Files changed (38) hide show
  1. package/dist/cjs/tsconfig.tsbuildinfo +1 -1
  2. package/dist/index.cjs.js +3659 -401
  3. package/dist/index.cjs.js.map +1 -1
  4. package/dist/index.esm.js +3659 -403
  5. package/dist/index.esm.js.map +1 -1
  6. package/dist/index.umd.js +440 -305
  7. package/dist/index.umd.js.map +1 -1
  8. package/dist/types/config/index.d.ts +3 -3
  9. package/dist/types/i18n.d.ts +2 -1
  10. package/dist/types/i18n_amis.d.ts +1 -0
  11. package/dist/types/index.d.ts +1 -0
  12. package/dist/types/lib/converter/amis/calendar.d.ts +4 -4
  13. package/dist/types/lib/converter/amis/fields/lookup.d.ts +2 -5
  14. package/dist/types/lib/converter/amis/fields_filter.d.ts +6 -18
  15. package/dist/types/lib/converter/amis/header.d.ts +37 -16
  16. package/dist/types/lib/converter/amis/toolbar.d.ts +5 -18
  17. package/dist/types/lib/converter/amis/toolbars/setting_listview/columns.d.ts +1 -4
  18. package/dist/types/lib/converter/amis/toolbars/setting_listview/copy.d.ts +7 -2
  19. package/dist/types/lib/converter/amis/toolbars/setting_listview/delete.d.ts +7 -0
  20. package/dist/types/lib/converter/amis/toolbars/setting_listview/filters.d.ts +1 -5
  21. package/dist/types/lib/converter/amis/toolbars/setting_listview/new.d.ts +7 -2
  22. package/dist/types/lib/converter/amis/toolbars/setting_listview/rename.d.ts +7 -2
  23. package/dist/types/lib/converter/amis/toolbars/setting_listview/sort.d.ts +1 -4
  24. package/dist/types/lib/converter/amis/toolbars/setting_listview.d.ts +31 -19
  25. package/dist/types/lib/objects.d.ts +6 -2
  26. package/dist/types/lib/objectsRelated.d.ts +3 -0
  27. package/dist/types/lib/router.d.ts +0 -22
  28. package/dist/types/schema/standard_delete.amis.d.ts +23 -0
  29. package/dist/types/schema/standard_edit.amis.d.ts +1 -0
  30. package/dist/types/schema/standard_new.amis.d.ts +2 -1
  31. package/dist/types/standard/button.d.ts +26 -1
  32. package/dist/types/workflow/approve.d.ts +53 -30
  33. package/dist/types/workflow/attachment.d.ts +9 -13
  34. package/dist/types/workflow/flow.d.ts +141 -65
  35. package/dist/types/workflow/history.d.ts +1 -1
  36. package/dist/types/workflow/instance.d.ts +2 -16
  37. package/dist/types/workflow/related.d.ts +2 -6
  38. package/package.json +3 -3
@@ -3,6 +3,7 @@ export function getFlowFormSchema(instance: any, box: any): Promise<{
3
3
  name: string;
4
4
  className: string;
5
5
  bodyClassName: string;
6
+ headerClassName: string;
6
7
  title: {
7
8
  type: string;
8
9
  label: string;
@@ -13,6 +14,9 @@ export function getFlowFormSchema(instance: any, box: any): Promise<{
13
14
  className: string;
14
15
  };
15
16
  css: {
17
+ ".steedos-amis-instance-view-body": {
18
+ height: string;
19
+ };
16
20
  ".instance-approve-history .antd-Table-table thead": {
17
21
  display: string;
18
22
  };
@@ -25,6 +29,25 @@ export function getFlowFormSchema(instance: any, box: any): Promise<{
25
29
  "font-size": string;
26
30
  "font-weight": string;
27
31
  };
32
+ ".steedos-object-record-detail-header .antd-Grid-col--mdAuto": {
33
+ padding: string;
34
+ };
35
+ ".antd-List-placeholder": {
36
+ display: string;
37
+ };
38
+ ".steedos-amis-instance-view .antd-Table-fixedTop": {
39
+ top: string;
40
+ };
41
+ ".steedos-amis-instance-view .antd-Table-fixedTop:after": {
42
+ "box-shadow": string;
43
+ };
44
+ ".antd-List-items": {
45
+ border: string;
46
+ };
47
+ ".antd-ListItem": {
48
+ "border-top": string;
49
+ background: string;
50
+ };
28
51
  };
29
52
  body: ({
30
53
  type: string;
@@ -33,7 +56,7 @@ export function getFlowFormSchema(instance: any, box: any): Promise<{
33
56
  bodyClassName: string;
34
57
  title: ({
35
58
  type: string;
36
- tpl: string;
59
+ tpl: any;
37
60
  title?: undefined;
38
61
  body?: undefined;
39
62
  id?: undefined;
@@ -45,11 +68,11 @@ export function getFlowFormSchema(instance: any, box: any): Promise<{
45
68
  type: string;
46
69
  labelClassName: string;
47
70
  className: string;
48
- label: string;
71
+ label: any;
49
72
  mode: string;
50
73
  name: string;
51
74
  id: string;
52
- btnLabel: string;
75
+ btnLabel: any;
53
76
  btnClassName: string;
54
77
  multiple: boolean;
55
78
  maxLength: number;
@@ -92,7 +115,7 @@ export function getFlowFormSchema(instance: any, box: any): Promise<{
92
115
  position: string;
93
116
  closeButton: boolean;
94
117
  showIcon: boolean;
95
- msg: string;
118
+ msg: any;
96
119
  };
97
120
  actionType: string;
98
121
  })[];
@@ -125,11 +148,7 @@ export function getFlowFormSchema(instance: any, box: any): Promise<{
125
148
  inline: boolean;
126
149
  tpl: string;
127
150
  }[];
128
- actions: {
129
- icon: string;
130
- type: string;
131
- id: string;
132
- }[];
151
+ actions: any[];
133
152
  id: string;
134
153
  };
135
154
  id: string;
@@ -142,25 +161,21 @@ export function getFlowFormSchema(instance: any, box: any): Promise<{
142
161
  type: string;
143
162
  name: string;
144
163
  source: string;
145
- title: string;
164
+ title: any;
146
165
  listItem: {
147
166
  body: {
148
167
  type: string;
149
168
  inline: boolean;
150
169
  tpl: string;
151
170
  }[];
152
- actions: {
153
- icon: string;
154
- type: string;
155
- id: string;
156
- }[];
171
+ actions: any[];
157
172
  id: string;
158
173
  };
159
174
  id: string;
160
175
  } | {
161
176
  type: string;
162
177
  headerClassName: string;
163
- title: string;
178
+ title: any;
164
179
  source: string;
165
180
  className: string;
166
181
  columnsTogglable: boolean;
@@ -188,7 +203,7 @@ export function getFlowFormSchema(instance: any, box: any): Promise<{
188
203
  })[];
189
204
  } | {
190
205
  type: string;
191
- label: string;
206
+ label: any;
192
207
  onEvent: {
193
208
  click: {
194
209
  actions: {
@@ -207,7 +222,7 @@ export function getFlowFormSchema(instance: any, box: any): Promise<{
207
222
  headerClassName: string;
208
223
  bodyClassName: string;
209
224
  footerClassName: string;
210
- drawerContainer: () => any;
225
+ drawerContainer: () => HTMLElement;
211
226
  body: {
212
227
  type: string;
213
228
  debug: boolean;
@@ -221,7 +236,7 @@ export function getFlowFormSchema(instance: any, box: any): Promise<{
221
236
  name: string;
222
237
  value: string;
223
238
  options: {
224
- label: string;
239
+ label: any;
225
240
  value: string;
226
241
  }[];
227
242
  id: string;
@@ -256,7 +271,7 @@ export function getFlowFormSchema(instance: any, box: any): Promise<{
256
271
  columns: ({
257
272
  body: {
258
273
  type: string;
259
- tpl: string;
274
+ tpl: any;
260
275
  inline: boolean;
261
276
  wrapperComponent: string;
262
277
  id: string;
@@ -304,7 +319,7 @@ export function getFlowFormSchema(instance: any, box: any): Promise<{
304
319
  columns: ({
305
320
  body: {
306
321
  type: string;
307
- tpl: string;
322
+ tpl: any;
308
323
  inline: boolean;
309
324
  wrapperComponent: string;
310
325
  id: string;
@@ -313,41 +328,64 @@ export function getFlowFormSchema(instance: any, box: any): Promise<{
313
328
  md: string;
314
329
  valign: string;
315
330
  } | {
316
- body: (({
331
+ body: ({
317
332
  type: string;
318
- } & {
333
+ label: string;
319
334
  name: string;
320
335
  hiddenOn: string;
321
336
  required: boolean;
322
- }) | {
337
+ multiple?: undefined;
338
+ id?: undefined;
339
+ source?: undefined;
340
+ labelField?: undefined;
341
+ valueField?: undefined;
342
+ value?: undefined;
343
+ joinValues?: undefined;
344
+ extractValue?: undefined;
345
+ } | {
346
+ type: string;
347
+ label: string;
348
+ name: string;
349
+ hiddenOn: string;
350
+ required: boolean;
351
+ multiple: boolean;
352
+ id?: undefined;
353
+ source?: undefined;
354
+ labelField?: undefined;
355
+ valueField?: undefined;
356
+ value?: undefined;
357
+ joinValues?: undefined;
358
+ extractValue?: undefined;
359
+ } | {
323
360
  type: string;
324
361
  label: string;
325
362
  name: string;
326
363
  id: string;
327
364
  required: boolean;
328
365
  hiddenOn: string;
329
- amis: {
330
- multiple: string;
331
- source: {
332
- url: string;
333
- method: string;
334
- sendOn: string;
335
- headers: {
336
- Authorization: string;
337
- };
338
- messages: {};
339
- requestAdaptor: string;
340
- adaptor: string;
341
- data: {
342
- "&": string;
343
- $scopeId: string;
344
- context: string;
345
- next_step: string;
346
- };
366
+ multiple: boolean;
367
+ source: {
368
+ url: string;
369
+ method: string;
370
+ sendOn: string;
371
+ headers: {
372
+ Authorization: string;
373
+ };
374
+ messages: {};
375
+ requestAdaptor: string;
376
+ adaptor: string;
377
+ data: {
378
+ "&": string;
379
+ $scopeId: string;
380
+ context: string;
381
+ next_step: string;
347
382
  };
348
- labelField: string;
349
- valueField: string;
350
383
  };
384
+ labelField: string;
385
+ valueField: string;
386
+ value: string;
387
+ joinValues: boolean;
388
+ extractValue: boolean;
351
389
  })[];
352
390
  id: string;
353
391
  md?: undefined;
@@ -373,7 +411,7 @@ export function getFlowFormSchema(instance: any, box: any): Promise<{
373
411
  id: string;
374
412
  minRows: number;
375
413
  maxRows: number;
376
- placeholder: string;
414
+ placeholder: any;
377
415
  requiredOn: string;
378
416
  })[];
379
417
  onEvent: {
@@ -393,8 +431,8 @@ export function getFlowFormSchema(instance: any, box: any): Promise<{
393
431
  position: string;
394
432
  closeButton: boolean;
395
433
  showIcon: boolean;
396
- title: string;
397
- msg: string;
434
+ title: any;
435
+ msg: any;
398
436
  };
399
437
  actionType: string;
400
438
  }[];
@@ -554,36 +592,56 @@ export function getFlowFormSchema(instance: any, box: any): Promise<{
554
592
  })[];
555
593
  }[];
556
594
  id: string;
595
+ } | {
596
+ type: string;
597
+ className: string;
598
+ mode: any;
599
+ steps: {
600
+ title: any;
601
+ body: {
602
+ label: any;
603
+ name: any;
604
+ mode: string;
605
+ className: string;
606
+ }[];
607
+ }[];
608
+ actionFinishLabel: string;
609
+ id: string;
610
+ target: string;
611
+ onEvent: {
612
+ change: {
613
+ actions: {
614
+ actionType: string;
615
+ componentId: string;
616
+ args: {
617
+ value: string;
618
+ };
619
+ }[];
620
+ };
621
+ finished: {
622
+ actions: {
623
+ actionType: string;
624
+ componentId: string;
625
+ }[];
626
+ };
627
+ };
557
628
  } | {
558
629
  type: string;
559
630
  className: string;
560
631
  trs: {
561
632
  background: string;
562
- tds: ({
633
+ tds: {
563
634
  className: string;
564
635
  background: string;
565
636
  align: string;
566
637
  width: string;
567
638
  colspan: string;
568
- body: {
569
- type: string;
570
- tpl: string;
571
- id: string;
572
- }[];
639
+ body: any[];
573
640
  id: string;
574
641
  style: {
575
642
  padding: string;
576
643
  };
577
- } | {
578
- background: string;
579
- colspan: number;
580
- align: string;
581
- className: string;
582
- width: string;
583
- body: any[];
584
- id: string;
585
- style?: undefined;
586
- })[];
644
+ }[];
587
645
  }[];
588
646
  id: string;
589
647
  style: {
@@ -615,12 +673,20 @@ export function getFlowFormSchema(instance: any, box: any): Promise<{
615
673
  position: string;
616
674
  closeButton: boolean;
617
675
  showIcon: boolean;
618
- title: string;
619
- msg: string;
676
+ title: any;
677
+ msg: any;
620
678
  };
621
679
  actionType: string;
622
680
  }[];
623
681
  };
682
+ change: {
683
+ weight: number;
684
+ actions: {
685
+ actionType: string;
686
+ componentId: string;
687
+ args: {};
688
+ }[];
689
+ };
624
690
  };
625
691
  })[];
626
692
  id: string;
@@ -633,6 +699,16 @@ export function getFlowFormSchema(instance: any, box: any): Promise<{
633
699
  actionType: string;
634
700
  }[];
635
701
  };
702
+ inited: {
703
+ actions: {
704
+ actionType: string;
705
+ componentId: string;
706
+ args: {
707
+ value: string;
708
+ };
709
+ expression: string;
710
+ }[];
711
+ };
636
712
  };
637
713
  initApi: {
638
714
  url: string;
@@ -1,7 +1,7 @@
1
1
  export function getInstanceApprovalHistory(): Promise<{
2
2
  type: string;
3
3
  headerClassName: string;
4
- title: string;
4
+ title: any;
5
5
  source: string;
6
6
  className: string;
7
7
  columnsTogglable: boolean;
@@ -1,7 +1,4 @@
1
- export function getInstanceInfo({ instanceId, box }: {
2
- instanceId: any;
3
- box: any;
4
- }): Promise<{
1
+ export function getInstanceInfo(props: any): Promise<{
5
2
  box: any;
6
3
  _id: any;
7
4
  space: any;
@@ -29,16 +26,5 @@ export function getInstanceInfo({ instanceId, box }: {
29
26
  forward_from_instance: any;
30
27
  cc_users: any;
31
28
  traces: any;
32
- historyApproves: ({
33
- children: {
34
- name: string;
35
- user_name: any;
36
- finish_date: any;
37
- judge: any;
38
- opinion: any;
39
- }[];
40
- } & {
41
- name: any;
42
- judge: string;
43
- })[];
29
+ historyApproves: any;
44
30
  }>;
@@ -6,18 +6,14 @@ export function getRelatedInstances(instance: any): Promise<{
6
6
  type: string;
7
7
  name: string;
8
8
  source: string;
9
- title: string;
9
+ title: any;
10
10
  listItem: {
11
11
  body: {
12
12
  type: string;
13
13
  inline: boolean;
14
14
  tpl: string;
15
15
  }[];
16
- actions: {
17
- icon: string;
18
- type: string;
19
- id: string;
20
- }[];
16
+ actions: any[];
21
17
  id: string;
22
18
  };
23
19
  id: 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.1-beta.8",
4
+ "version": "6.10.1",
5
5
  "unpkg": "./dist/index.umd.js",
6
6
  "main": "./dist/index.cjs.js",
7
7
  "module": "./dist/index.esm.js",
@@ -53,7 +53,7 @@
53
53
  "tslint": "^5.8.0",
54
54
  "tslint-config-prettier": "^1.1.0",
55
55
  "tslint-config-standard": "^7.0.0",
56
- "typescript": "^4.6.2",
56
+ "typescript": "^5.6.2",
57
57
  "uglify-js": "^3.17.0"
58
58
  },
59
59
  "dependencies": {
@@ -61,5 +61,5 @@
61
61
  "lodash": "^4.17.21",
62
62
  "react-i18next": "12.3.1"
63
63
  },
64
- "gitHead": "33eb25a61f4092a5daf351e0ec9b5b62816a6c3e"
64
+ "gitHead": "0579e42e8db9f51a3aaea6cd7accd67af87600f2"
65
65
  }