@steedos-widgets/amis-object 1.0.5 → 1.0.6

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,77 +1,98 @@
1
1
  export declare const AmisAppLauncher: (props: any) => Promise<{
2
2
  type: string;
3
- label: string;
4
- actionType: string;
5
- className: string;
6
- body: {
3
+ body: ({
7
4
  type: string;
5
+ actionType: string;
8
6
  className: string;
9
- tpl: string;
10
- id: string;
11
- }[];
12
- dialog: {
13
- size: string;
14
- title: {
15
- type: string;
16
- tpl: string;
17
- className: string;
18
- };
19
- actions: any[];
20
7
  body: {
21
8
  type: string;
9
+ className: string;
10
+ tpl: string;
22
11
  id: string;
23
- affixFooter: boolean;
12
+ }[];
13
+ dialog: {
14
+ size: string;
15
+ title: {
16
+ type: string;
17
+ tpl: string;
18
+ className: string;
19
+ };
20
+ actions: any[];
24
21
  body: {
25
22
  type: string;
26
- activeKey: string[];
27
- body: ({
23
+ id: string;
24
+ affixFooter: boolean;
25
+ body: {
28
26
  type: string;
29
- key: string;
30
- header: string;
31
- body: {
27
+ activeKey: string[];
28
+ body: ({
32
29
  type: string;
33
- name: string;
34
- items: {
30
+ key: string;
31
+ header: string;
32
+ body: {
35
33
  type: string;
36
- tpl: string;
37
- inline: boolean;
38
- style: {};
34
+ name: string;
35
+ items: {
36
+ type: string;
37
+ tpl: string;
38
+ inline: boolean;
39
+ style: {};
40
+ className: string;
41
+ };
42
+ id: string;
39
43
  className: string;
40
- };
41
- id: string;
42
- className: string;
43
- }[];
44
- id?: undefined;
45
- className?: undefined;
46
- } | {
47
- type: string;
48
- key: string;
49
- header: string;
50
- body: {
44
+ }[];
45
+ id?: undefined;
46
+ className?: undefined;
47
+ } | {
51
48
  type: string;
52
- html: string;
49
+ key: string;
50
+ header: string;
51
+ body: {
52
+ type: string;
53
+ html: string;
54
+ className: string;
55
+ }[];
56
+ id: string;
53
57
  className: string;
54
- }[];
58
+ })[];
55
59
  id: string;
56
- className: string;
57
- })[];
58
- id: string;
59
- }[];
60
- className: string;
61
- visibleOn: string;
62
- clearValueOnHidden: boolean;
63
- visible: boolean;
64
- messages: {};
65
- api: {
66
- method: string;
67
- url: string;
68
- data: any;
69
- headers: {
70
- Authorization: string;
60
+ }[];
61
+ className: string;
62
+ visibleOn: string;
63
+ clearValueOnHidden: boolean;
64
+ visible: boolean;
65
+ messages: {};
66
+ api: {
67
+ method: string;
68
+ url: string;
69
+ data: any;
70
+ headers: {
71
+ Authorization: string;
72
+ };
73
+ adaptor: string;
71
74
  };
72
- adaptor: string;
73
- };
74
- }[];
75
+ }[];
76
+ };
77
+ id: string;
78
+ tpl?: undefined;
79
+ hiddenOn?: undefined;
80
+ } | {
81
+ type: string;
82
+ className: string;
83
+ tpl: string;
84
+ hiddenOn: string;
85
+ actionType?: undefined;
86
+ body?: undefined;
87
+ dialog?: undefined;
88
+ id?: undefined;
89
+ })[];
90
+ api: {
91
+ method: string;
92
+ url: string;
93
+ headers: {
94
+ Authorization: string;
95
+ };
96
+ sendOn: string;
75
97
  };
76
- id: string;
77
98
  }>;
@@ -1,6 +1,7 @@
1
1
  export declare const AmisAppMenu: (props: any) => Promise<{
2
2
  type: string;
3
3
  stacked: any;
4
+ overflow: any;
4
5
  links: any[];
5
6
  id: string;
6
7
  source: {
@@ -0,0 +1,162 @@
1
+ export declare const AmisGlobalHeader: (props: any) => Promise<{
2
+ type: string;
3
+ id: string;
4
+ className: string;
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
+ category: string;
41
+ name: string;
42
+ colorVariant: string;
43
+ id: string;
44
+ className: string;
45
+ }[];
46
+ overlay: {
47
+ type: string;
48
+ label: string;
49
+ objectApiName: string;
50
+ className: string;
51
+ columns: {
52
+ field: string;
53
+ }[];
54
+ id: string;
55
+ }[];
56
+ id: string;
57
+ className: string;
58
+ open: boolean;
59
+ onEvent?: undefined;
60
+ label?: undefined;
61
+ } | {
62
+ type: string;
63
+ placement: string;
64
+ trigger: string[];
65
+ body: {
66
+ type: string;
67
+ src: any;
68
+ icon: string;
69
+ id: string;
70
+ style: {
71
+ background: string;
72
+ color: string;
73
+ };
74
+ size: number;
75
+ }[];
76
+ overlay: {
77
+ type: string;
78
+ className: string;
79
+ body: ({
80
+ type: string;
81
+ src: any;
82
+ icon: string;
83
+ id: string;
84
+ style: {
85
+ background: string;
86
+ color: string;
87
+ };
88
+ className?: undefined;
89
+ tpl?: undefined;
90
+ inline?: undefined;
91
+ label?: undefined;
92
+ onEvent?: undefined;
93
+ block?: undefined;
94
+ level?: undefined;
95
+ } | {
96
+ type: string;
97
+ className: string;
98
+ tpl: string;
99
+ inline: boolean;
100
+ src?: undefined;
101
+ icon?: undefined;
102
+ id?: undefined;
103
+ style?: undefined;
104
+ label?: undefined;
105
+ onEvent?: undefined;
106
+ block?: undefined;
107
+ level?: undefined;
108
+ } | {
109
+ type: string;
110
+ label: string;
111
+ onEvent: {
112
+ click: {
113
+ actions: {
114
+ args: {
115
+ url: string;
116
+ blank: boolean;
117
+ };
118
+ actionType: string;
119
+ }[];
120
+ };
121
+ };
122
+ id: string;
123
+ block: boolean;
124
+ level: string;
125
+ src?: undefined;
126
+ icon?: undefined;
127
+ style?: undefined;
128
+ className?: undefined;
129
+ tpl?: undefined;
130
+ inline?: undefined;
131
+ } | {
132
+ type: string;
133
+ label: string;
134
+ onEvent: {
135
+ click: {
136
+ actions: {
137
+ componentId: string;
138
+ args: {};
139
+ actionType: string;
140
+ script: any;
141
+ }[];
142
+ };
143
+ };
144
+ id: string;
145
+ block: boolean;
146
+ level: string;
147
+ src?: undefined;
148
+ icon?: undefined;
149
+ style?: undefined;
150
+ className?: undefined;
151
+ tpl?: undefined;
152
+ inline?: undefined;
153
+ })[];
154
+ id: string;
155
+ }[];
156
+ id: string;
157
+ className: string;
158
+ onEvent?: undefined;
159
+ label?: undefined;
160
+ open?: undefined;
161
+ })[];
162
+ }>;
@@ -11,3 +11,4 @@ export * from './AmisProvider';
11
11
  export * from './AmisAppLauncher';
12
12
  export * from './AmisLogo';
13
13
  export * from './AmisAppMenu';
14
+ export * from './AmisGlobalHeader';
@@ -41,14 +41,6 @@
41
41
  --Nav-item-onActive-color: #000;
42
42
  }
43
43
 
44
- @media only screen and (min-width: 600px) {
45
- body {
46
- background: url(/images/defaultBackground.png);
47
- background-size: contain;
48
- background-repeat: no-repeat;
49
- }
50
- }
51
-
52
44
  fieldset.antd-Collapse {
53
45
  margin-bottom: 1rem;
54
46
  }
@@ -134,6 +126,43 @@ body {
134
126
  .antd-Nav-item.is-active {
135
127
  box-shadow:var(--link-color) 4px 0 0 inset;
136
128
  }
129
+
130
+ .ant-dropdown-menu {
131
+ border: 1px solid #e5e5e5;
132
+ border-radius: 0.25rem;
133
+ padding: 0.25rem 0;
134
+ box-shadow: 0 2px 3px 0 rgb(0 0 0 / 16%);
135
+ }
136
+
137
+ .ant-dropdown-menu-item {
138
+ padding: 0;
139
+ }
140
+
141
+ .ant-dropdown-menu-item .antd-Button.antd-Button--default{
142
+ border: none;
143
+ width: 100%;
144
+ text-align: left;
145
+ background: transparent;
146
+ background-color: transparent;
147
+ }
148
+
149
+ .ant-dropdown-menu-item .antd-Button--default:not(:disabled):not(.is-disabled):hover {
150
+ background: transparent;
151
+ background-color: transparent;
152
+ }
153
+
154
+
155
+ .ant-message{
156
+ z-index: 2600;
157
+ }
158
+
159
+ .ant-modal-root .amis-scope .antd-Panel-footerWrap{
160
+ position: sticky;
161
+ width: 100%;
162
+ bottom: 0px;
163
+ background: #ffffff
164
+ }
165
+
137
166
  /* @tailwind base; */
138
167
  .container {
139
168
  width: 100%
@@ -196,6 +225,9 @@ body {
196
225
  .ml-1 {
197
226
  margin-left: 0.25rem
198
227
  }
228
+ .ml-4 {
229
+ margin-left: 1rem
230
+ }
199
231
  .-ml-px {
200
232
  margin-left: -1px
201
233
  }
@@ -259,6 +291,9 @@ body {
259
291
  .w-full {
260
292
  width: 100%
261
293
  }
294
+ .\!min-w-\[160px\] {
295
+ min-width: 160px !important
296
+ }
262
297
  .flex-shrink-0 {
263
298
  flex-shrink: 0
264
299
  }
@@ -426,6 +461,11 @@ body {
426
461
  --tw-shadow-colored: 0 0 #0000;
427
462
  box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow)
428
463
  }
464
+ .shadow {
465
+ --tw-shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);
466
+ --tw-shadow-colored: 0 1px 3px 0 var(--tw-shadow-color), 0 1px 2px -1px var(--tw-shadow-color);
467
+ box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow)
468
+ }
429
469
  .filter {
430
470
  filter: var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)
431
471
  }
@@ -544,6 +584,23 @@ body {
544
584
  overflow: hidden;
545
585
  }
546
586
 
587
+ .header-dropdown{
588
+ min-width: 24rem !important;
589
+ }
590
+
591
+ .header-dropdown> * {
592
+ background-color: #fff;
593
+ border-radius: 4px;
594
+ 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%);
595
+ }
596
+ @media screen and (max-width: 480px) {
597
+ .header-dropdown {
598
+ width: 100% !important;
599
+ }
600
+ .header-dropdown > * {
601
+ border-radius: 0 !important;
602
+ }
603
+ }
547
604
  @media (min-width: 767px) {
548
605
  .steedos-amis-form .antd-Collapse .antd-Form--normal,
549
606
  .steedos-amis-form .antd-Form--normal .antd-Tabs .antd-Tabs-content .antd-Tabs-pane .form-content {