@steedos-widgets/amis-lib 6.10.1-beta.33 → 6.10.1-beta.35

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.
@@ -30,6 +30,7 @@ export function getObjectListHeaderFirstLine(objectSchema: any, listViewName: an
30
30
  size?: undefined;
31
31
  hideCaret?: undefined;
32
32
  closeOnClick?: undefined;
33
+ visibleOn?: undefined;
33
34
  btnClassName?: undefined;
34
35
  buttons?: undefined;
35
36
  } | {
@@ -40,11 +41,26 @@ export function getObjectListHeaderFirstLine(objectSchema: any, listViewName: an
40
41
  size: string;
41
42
  hideCaret: boolean;
42
43
  closeOnClick: boolean;
44
+ visibleOn: string;
43
45
  btnClassName: string;
44
46
  buttons: any[];
45
47
  tpl?: undefined;
46
48
  inline?: undefined;
47
49
  wrapperComponent?: undefined;
50
+ } | {
51
+ type: string;
52
+ className: string;
53
+ tpl: string;
54
+ visibleOn: string;
55
+ inline?: undefined;
56
+ wrapperComponent?: undefined;
57
+ label?: undefined;
58
+ rightIcon?: undefined;
59
+ size?: undefined;
60
+ hideCaret?: undefined;
61
+ closeOnClick?: undefined;
62
+ btnClassName?: undefined;
63
+ buttons?: undefined;
48
64
  })[];
49
65
  md: string;
50
66
  columnClassName: string;
@@ -455,6 +471,7 @@ export function getObjectListHeader(objectSchema: any, listViewName: any, ctx: a
455
471
  size?: undefined;
456
472
  hideCaret?: undefined;
457
473
  closeOnClick?: undefined;
474
+ visibleOn?: undefined;
458
475
  btnClassName?: undefined;
459
476
  buttons?: undefined;
460
477
  } | {
@@ -465,11 +482,26 @@ export function getObjectListHeader(objectSchema: any, listViewName: any, ctx: a
465
482
  size: string;
466
483
  hideCaret: boolean;
467
484
  closeOnClick: boolean;
485
+ visibleOn: string;
468
486
  btnClassName: string;
469
487
  buttons: any[];
470
488
  tpl?: undefined;
471
489
  inline?: undefined;
472
490
  wrapperComponent?: undefined;
491
+ } | {
492
+ type: string;
493
+ className: string;
494
+ tpl: string;
495
+ visibleOn: string;
496
+ inline?: undefined;
497
+ wrapperComponent?: undefined;
498
+ label?: undefined;
499
+ rightIcon?: undefined;
500
+ size?: undefined;
501
+ hideCaret?: undefined;
502
+ closeOnClick?: undefined;
503
+ btnClassName?: undefined;
504
+ buttons?: undefined;
473
505
  })[];
474
506
  md: string;
475
507
  columnClassName: string;
@@ -38,6 +38,9 @@ export function getRecordDetailRelatedListSchema(objectName: any, recordId: any,
38
38
  relatedKey: any;
39
39
  listViewId: string;
40
40
  _isRelated: boolean;
41
+ record: {
42
+ recordPermissions: any;
43
+ };
41
44
  };
42
45
  body: {
43
46
  type: string;
@@ -29,6 +29,7 @@ export function getSchema(uiSchema: any, ctx: any): Promise<{
29
29
  _master: string;
30
30
  "_master._isRelated": string;
31
31
  "_master.relatedKey": string;
32
+ _lookupObjectName: string;
32
33
  };
33
34
  size: string;
34
35
  actions: ({
@@ -46,6 +46,7 @@ export function getSchema(uiSchema: any, ctx: any): Promise<{
46
46
  isLookup: string;
47
47
  listName: string;
48
48
  selectedRowResponseResult: string;
49
+ _lookupObjectName: string;
49
50
  };
50
51
  title: string;
51
52
  body: {
@@ -49,6 +49,7 @@ export namespace StandardButtons {
49
49
  isLookup: string;
50
50
  listName: string;
51
51
  selectedRowResponseResult: string;
52
+ _lookupObjectName: string;
52
53
  };
53
54
  title: string;
54
55
  body: {
@@ -149,6 +150,7 @@ export namespace StandardButtons {
149
150
  _master: string;
150
151
  "_master._isRelated": string;
151
152
  "_master.relatedKey": string;
153
+ _lookupObjectName: string;
152
154
  };
153
155
  size: string;
154
156
  actions: ({
@@ -10,7 +10,7 @@ export function getApprovalDrawerSchema(instance: any): Promise<{
10
10
  headerClassName: string;
11
11
  bodyClassName: string;
12
12
  footerClassName: string;
13
- drawerContainer: () => any;
13
+ drawerContainer: () => HTMLElement;
14
14
  body: {
15
15
  type: string;
16
16
  debug: boolean;
@@ -97,11 +97,7 @@ export function getAttachments(instance: any): Promise<{
97
97
  inline: boolean;
98
98
  tpl: string;
99
99
  }[];
100
- actions: {
101
- icon: string;
102
- type: string;
103
- id: string;
104
- }[];
100
+ actions: any[];
105
101
  id: string;
106
102
  };
107
103
  id: string;
@@ -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;
@@ -25,6 +26,25 @@ export function getFlowFormSchema(instance: any, box: any): Promise<{
25
26
  "font-size": string;
26
27
  "font-weight": string;
27
28
  };
29
+ ".steedos-object-record-detail-header .antd-Grid-col--mdAuto": {
30
+ padding: string;
31
+ };
32
+ ".steedos-amis-instance-view .antd-Page-body": {
33
+ width: string;
34
+ };
35
+ ".antd-List-placeholder": {
36
+ display: string;
37
+ };
38
+ ".steedos-amis-instance-view .antd-Table-fixedTop:after": {
39
+ "box-shadow": string;
40
+ };
41
+ ".antd-List-items": {
42
+ border: string;
43
+ };
44
+ ".antd-ListItem": {
45
+ "border-top": string;
46
+ background: string;
47
+ };
28
48
  };
29
49
  body: ({
30
50
  type: string;
@@ -125,11 +145,7 @@ export function getFlowFormSchema(instance: any, box: any): Promise<{
125
145
  inline: boolean;
126
146
  tpl: string;
127
147
  }[];
128
- actions: {
129
- icon: string;
130
- type: string;
131
- id: string;
132
- }[];
148
+ actions: any[];
133
149
  id: string;
134
150
  };
135
151
  id: string;
@@ -149,11 +165,7 @@ export function getFlowFormSchema(instance: any, box: any): Promise<{
149
165
  inline: boolean;
150
166
  tpl: string;
151
167
  }[];
152
- actions: {
153
- icon: string;
154
- type: string;
155
- id: string;
156
- }[];
168
+ actions: any[];
157
169
  id: string;
158
170
  };
159
171
  id: string;
@@ -207,7 +219,7 @@ export function getFlowFormSchema(instance: any, box: any): Promise<{
207
219
  headerClassName: string;
208
220
  bodyClassName: string;
209
221
  footerClassName: string;
210
- drawerContainer: () => any;
222
+ drawerContainer: () => HTMLElement;
211
223
  body: {
212
224
  type: string;
213
225
  debug: boolean;
@@ -559,31 +571,18 @@ export function getFlowFormSchema(instance: any, box: any): Promise<{
559
571
  className: string;
560
572
  trs: {
561
573
  background: string;
562
- tds: ({
574
+ tds: {
563
575
  className: string;
564
576
  background: string;
565
577
  align: string;
566
578
  width: string;
567
579
  colspan: string;
568
- body: {
569
- type: string;
570
- tpl: string;
571
- id: string;
572
- }[];
580
+ body: any[];
573
581
  id: string;
574
582
  style: {
575
583
  padding: string;
576
584
  };
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
- })[];
585
+ }[];
587
586
  }[];
588
587
  id: string;
589
588
  style: {
@@ -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;
@@ -13,11 +13,7 @@ export function getRelatedInstances(instance: any): Promise<{
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.33",
4
+ "version": "6.10.1-beta.35",
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": "0240f0fbc8786b2d35315a247734d511b51a486d"
64
+ "gitHead": "871e9eb653699ec752e24b7e249ec7703cea46d8"
65
65
  }