@steedos-widgets/amis-object 1.0.10 → 1.0.11

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.
@@ -1,5 +1,6 @@
1
1
  export declare const AmisAppLauncher: (props: any) => Promise<{
2
2
  type: string;
3
+ className: any;
3
4
  body: {
4
5
  type: string;
5
6
  actionType: string;
@@ -81,12 +82,4 @@ export declare const AmisAppLauncher: (props: any) => Promise<{
81
82
  };
82
83
  id: string;
83
84
  }[];
84
- api: {
85
- method: string;
86
- url: string;
87
- headers: {
88
- Authorization: string;
89
- };
90
- sendOn: string;
91
- };
92
85
  }>;
@@ -3,251 +3,5 @@ export declare const AmisGlobalHeader: (props: any) => Promise<{
3
3
  id: string;
4
4
  className: string;
5
5
  size: string;
6
- body: ({
7
- type: string;
8
- id: string;
9
- onEvent: {
10
- click: {
11
- actions: {
12
- componentId: string;
13
- args: {
14
- url: string;
15
- };
16
- actionType: string;
17
- }[];
18
- };
19
- };
20
- body: {
21
- type: string;
22
- category: string;
23
- name: string;
24
- colorVariant: string;
25
- id: string;
26
- className: string;
27
- }[];
28
- label: string;
29
- placement?: undefined;
30
- trigger?: undefined;
31
- overlay?: undefined;
32
- className?: undefined;
33
- open?: undefined;
34
- } | {
35
- type: string;
36
- placement: string;
37
- trigger: string[];
38
- body: {
39
- type: string;
40
- body: {
41
- type: string;
42
- body: {
43
- type: string;
44
- category: string;
45
- name: string;
46
- colorVariant: string;
47
- className: string;
48
- }[];
49
- count: string;
50
- }[];
51
- id: string;
52
- messages: {};
53
- api: {
54
- method: string;
55
- url: string;
56
- data: {
57
- "&": string;
58
- context: string;
59
- userId: string;
60
- };
61
- dataType: string;
62
- requestAdaptor: string;
63
- headers: {
64
- Authorization: string;
65
- };
66
- adaptor: string;
67
- };
68
- interval: number;
69
- silentPolling: boolean;
70
- }[];
71
- overlay: {
72
- type: string;
73
- body: ({
74
- type: string;
75
- body: {
76
- type: string;
77
- tpl: string;
78
- inline: boolean;
79
- id: string;
80
- }[];
81
- className: string;
82
- id: string;
83
- size: string;
84
- name?: undefined;
85
- items?: undefined;
86
- label?: undefined;
87
- block?: undefined;
88
- onEvent?: undefined;
89
- } | {
90
- type: string;
91
- className: string;
92
- name: string;
93
- items: {
94
- type: string;
95
- tpl: string;
96
- id: string;
97
- };
98
- id: string;
99
- body?: undefined;
100
- size?: undefined;
101
- label?: undefined;
102
- block?: undefined;
103
- onEvent?: undefined;
104
- } | {
105
- type: string;
106
- label: string;
107
- id: string;
108
- block: boolean;
109
- size: string;
110
- onEvent: {
111
- click: {
112
- actions: {
113
- componentId: string;
114
- args: {
115
- api: {
116
- url: string;
117
- method: string;
118
- headers: {
119
- Authorization: string;
120
- };
121
- };
122
- messages: {
123
- success: string;
124
- };
125
- };
126
- actionType: string;
127
- }[];
128
- weight: number;
129
- };
130
- };
131
- body?: undefined;
132
- className?: undefined;
133
- name?: undefined;
134
- items?: undefined;
135
- })[];
136
- id: string;
137
- messages: {};
138
- api: {
139
- method: string;
140
- url: string;
141
- data: {
142
- "&": string;
143
- context: string;
144
- userId: string;
145
- };
146
- dataType: string;
147
- requestAdaptor: string;
148
- headers: {
149
- Authorization: string;
150
- };
151
- adaptor: string;
152
- };
153
- }[];
154
- id: string;
155
- className: string;
156
- open: boolean;
157
- onEvent?: undefined;
158
- label?: undefined;
159
- } | {
160
- type: string;
161
- placement: string;
162
- trigger: string[];
163
- body: {
164
- type: string;
165
- src: any;
166
- icon: string;
167
- id: string;
168
- style: {
169
- background: string;
170
- color: string;
171
- };
172
- size: number;
173
- }[];
174
- overlay: {
175
- type: string;
176
- className: string;
177
- body: ({
178
- type: string;
179
- valign: string;
180
- align: string;
181
- className: string;
182
- columns: ({
183
- columnClassName: string;
184
- md: number;
185
- body: {
186
- type: string;
187
- src: any;
188
- icon: string;
189
- id: string;
190
- style: {
191
- background: string;
192
- color: string;
193
- };
194
- }[];
195
- } | {
196
- columnClassName: string;
197
- md: number;
198
- body: {
199
- type: string;
200
- className: string;
201
- tpl: string;
202
- inline: boolean;
203
- }[];
204
- })[];
205
- label?: undefined;
206
- onEvent?: undefined;
207
- level?: undefined;
208
- } | {
209
- type: string;
210
- label: string;
211
- className: string;
212
- onEvent: {
213
- click: {
214
- actions: {
215
- args: {
216
- url: string;
217
- blank: boolean;
218
- };
219
- actionType: string;
220
- }[];
221
- };
222
- };
223
- level: string;
224
- valign?: undefined;
225
- align?: undefined;
226
- columns?: undefined;
227
- } | {
228
- type: string;
229
- label: string;
230
- className: string;
231
- onEvent: {
232
- click: {
233
- actions: {
234
- componentId: string;
235
- args: {};
236
- actionType: string;
237
- script: any;
238
- }[];
239
- };
240
- };
241
- level: string;
242
- valign?: undefined;
243
- align?: undefined;
244
- columns?: undefined;
245
- })[];
246
- }[];
247
- className: string;
248
- id?: undefined;
249
- onEvent?: undefined;
250
- label?: undefined;
251
- open?: undefined;
252
- })[];
6
+ body: any[];
253
7
  }>;
@@ -1,5 +1,6 @@
1
1
  export declare const AmisLogo: (props: any) => Promise<{
2
2
  type: string;
3
+ className: any;
3
4
  tpl: string;
4
5
  id: string;
5
6
  }>;
@@ -0,0 +1,6 @@
1
+ export declare const AmisObjectCalendar: (props: any) => Promise<{
2
+ type: string;
3
+ body: any;
4
+ className: string;
5
+ data: any;
6
+ }>;
@@ -1,105 +1 @@
1
- export declare const AmisObjectForm: (props: any) => Promise<{
2
- type: string;
3
- className: string;
4
- name: string;
5
- api: {
6
- method: string;
7
- url: string;
8
- sendOn: string;
9
- cache: number;
10
- adaptor: string;
11
- data: {
12
- query: string;
13
- };
14
- headers: {
15
- Authorization: string;
16
- };
17
- };
18
- initApi: any;
19
- initFetch: any;
20
- body: {}[];
21
- } | {
22
- type: string;
23
- name: string;
24
- id: string;
25
- data: {
26
- global: {
27
- mode: any;
28
- user: {};
29
- spaceId: any;
30
- userId: any;
31
- };
32
- context: {
33
- rootUrl: any;
34
- tenantId: any;
35
- authToken: any;
36
- };
37
- };
38
- api: {
39
- method: string;
40
- url: string;
41
- cache: number;
42
- adaptor: string;
43
- data: {
44
- query: string;
45
- };
46
- headers: {
47
- Authorization: string;
48
- };
49
- };
50
- body: {
51
- type: string;
52
- mode: any;
53
- labelAlign: any;
54
- persistData: boolean;
55
- promptPageLeave: boolean;
56
- name: string;
57
- debug: boolean;
58
- title: string;
59
- data: {
60
- formData: string;
61
- };
62
- wrapWithPanel: boolean;
63
- body: {
64
- type: string;
65
- title: any;
66
- collapsable: boolean;
67
- body: ({
68
- name: any;
69
- label: any;
70
- labelRemark: any;
71
- required: any;
72
- } & {
73
- type: any;
74
- tpl: string;
75
- value: string | number | boolean;
76
- multiple: boolean;
77
- extractValue: boolean;
78
- className: any;
79
- labelClassName: string;
80
- quickEdit: boolean;
81
- visibleOn: string;
82
- } & {
83
- clearValueOnHidden: boolean;
84
- fieldName: any;
85
- })[];
86
- }[];
87
- className: string;
88
- actions: any[];
89
- }[];
90
- onEvent: {
91
- fetchInited: {
92
- weight: number;
93
- actions: {
94
- actionType: string;
95
- eventName: string;
96
- args: {
97
- eventName: string;
98
- };
99
- data: {
100
- record: string;
101
- };
102
- }[];
103
- };
104
- };
105
- }>;
1
+ export declare const AmisObjectForm: (props: any) => Promise<any>;
@@ -3,6 +3,9 @@ export declare const AmisRecordDetailRelatedList: (props: any) => Promise<{
3
3
  id: string;
4
4
  className: string;
5
5
  data: {
6
+ "&": string;
7
+ appId: string;
8
+ app_id: string;
6
9
  masterObjectName: any;
7
10
  masterRecordId: string;
8
11
  relatedKey: any;
@@ -2,6 +2,7 @@ import './AmisObjectForm.less';
2
2
  export * from './AmisObjectForm';
3
3
  export * from './AmisObjectListview';
4
4
  export * from './AmisObjectTable';
5
+ export * from './AmisObjectCalendar';
5
6
  export * from './AmisRecordDetailHeader';
6
7
  export * from './AmisRecordDetail';
7
8
  export * from './AmisRecordDetailRelatedList';
@@ -215,6 +215,9 @@ body {
215
215
  .m-1 {
216
216
  margin: 0.25rem
217
217
  }
218
+ .m-2 {
219
+ margin: 0.5rem
220
+ }
218
221
  .mt-3 {
219
222
  margin-top: 0.75rem
220
223
  }
@@ -269,6 +272,9 @@ body {
269
272
  .h-5 {
270
273
  height: 1.25rem
271
274
  }
275
+ .h-4 {
276
+ height: 1rem
277
+ }
272
278
  .h-12 {
273
279
  height: 3rem
274
280
  }
@@ -281,12 +287,12 @@ body {
281
287
  .h-7 {
282
288
  height: 1.75rem
283
289
  }
284
- .h-4 {
285
- height: 1rem
286
- }
287
290
  .max-h-96 {
288
291
  max-height: 24rem
289
292
  }
293
+ .w-4 {
294
+ width: 1rem
295
+ }
290
296
  .w-56 {
291
297
  width: 14rem
292
298
  }
@@ -305,15 +311,15 @@ body {
305
311
  .w-auto {
306
312
  width: auto
307
313
  }
308
- .w-4 {
309
- width: 1rem
310
- }
311
314
  .w-full {
312
315
  width: 100%
313
316
  }
314
317
  .\!min-w-\[160px\] {
315
318
  min-width: 160px !important
316
319
  }
320
+ .min-w-\[300px\] {
321
+ min-width: 300px
322
+ }
317
323
  .flex-none {
318
324
  flex: none
319
325
  }
@@ -628,23 +634,7 @@ body {
628
634
  overflow: hidden;
629
635
  }
630
636
 
631
- .header-dropdown{
632
- min-width: 24rem !important;
633
- }
634
637
 
635
- .header-dropdown> * {
636
- background-color: #fff;
637
- border-radius: 4px;
638
- box-shadow: 0 6px 16px -8px rgb(0 0 0 / 8%), 0 9px 28px 0 rgb(0 0 0 / 5%), 0 12px 48px 16px rgb(0 0 0 / 3%);
639
- }
640
- @media screen and (max-width: 480px) {
641
- .header-dropdown {
642
- width: 100% !important;
643
- }
644
- .header-dropdown > * {
645
- border-radius: 0 !important;
646
- }
647
- }
648
638
  @media (min-width: 767px) {
649
639
  .steedos-amis-form .antd-Collapse .antd-Form--normal,
650
640
  .steedos-amis-form .antd-Form--normal .antd-Tabs .antd-Tabs-content .antd-Tabs-pane .form-content {
@@ -664,6 +654,20 @@ body {
664
654
  }
665
655
  }
666
656
 
657
+ body.sidebar #sidebar {
658
+ margin-top: 50px;
659
+ }
660
+ body.sidebar.sidebar-open #main {
661
+ padding-left: 220px;
662
+ }
663
+ @media (max-width: 768px) {
664
+ body.sidebar.sidebar-open #sidebar {
665
+ margin-top: 50px;
666
+ }
667
+ body.sidebar.sidebar-open #main {
668
+ padding-left: 0;
669
+ }
670
+ }
667
671
  .steedos-context-bar .antd-Nav-list {
668
672
  border-bottom: 0px;
669
673
  height: 40px;
@@ -689,3 +693,7 @@ body {
689
693
  background: rgba(21, 137, 238, 0.1);
690
694
  border-top: solid rgb(14 165 233) 3px;
691
695
  }
696
+ .antd-Nav .antd-Nav-list--stacked .antd-Nav-item .antd-Nav-itemToggler,
697
+ .antd-Nav .antd-Nav-list--stacked .antd-Badge .antd-Nav-itemToggler {
698
+ height: auto;
699
+ }