@steedos-widgets/amis-object 1.0.2 → 1.0.5

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.
package/LICENSE.md ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2022, Steedos Inc.
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
@@ -0,0 +1,77 @@
1
+ export declare const AmisAppLauncher: (props: any) => Promise<{
2
+ type: string;
3
+ label: string;
4
+ actionType: string;
5
+ className: string;
6
+ body: {
7
+ type: string;
8
+ 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
+ body: {
21
+ type: string;
22
+ id: string;
23
+ affixFooter: boolean;
24
+ body: {
25
+ type: string;
26
+ activeKey: string[];
27
+ body: ({
28
+ type: string;
29
+ key: string;
30
+ header: string;
31
+ body: {
32
+ type: string;
33
+ name: string;
34
+ items: {
35
+ type: string;
36
+ tpl: string;
37
+ inline: boolean;
38
+ style: {};
39
+ 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: {
51
+ type: string;
52
+ html: string;
53
+ className: string;
54
+ }[];
55
+ 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;
71
+ };
72
+ adaptor: string;
73
+ };
74
+ }[];
75
+ };
76
+ id: string;
77
+ }>;
@@ -0,0 +1,14 @@
1
+ export declare const AmisAppMenu: (props: any) => Promise<{
2
+ type: string;
3
+ stacked: any;
4
+ links: any[];
5
+ id: string;
6
+ source: {
7
+ method: string;
8
+ url: string;
9
+ adaptor: string;
10
+ headers: {
11
+ Authorization: string;
12
+ };
13
+ };
14
+ }>;
@@ -0,0 +1,5 @@
1
+ export declare const AmisLogo: (props: any) => Promise<{
2
+ type: string;
3
+ tpl: string;
4
+ id: string;
5
+ }>;
@@ -13,7 +13,7 @@ export declare const AmisRecordDetailRelatedLists: (props: any) => Promise<{
13
13
  relatedObjectApiName: any;
14
14
  foreign_key: any;
15
15
  relatedKey: any;
16
- top: any;
16
+ perPage: any;
17
17
  hiddenEmptyTable: boolean;
18
18
  appId: any;
19
19
  }[];
@@ -8,3 +8,6 @@ export * from './AmisRecordDetailRelatedList';
8
8
  export * from './AmisRecordDetailRelatedLists';
9
9
  export * from './AmisSelectUser';
10
10
  export * from './AmisProvider';
11
+ export * from './AmisAppLauncher';
12
+ export * from './AmisLogo';
13
+ export * from './AmisAppMenu';
@@ -6,6 +6,7 @@
6
6
  --Form-fontSize: 14px;
7
7
  --Form-selectValue-fontSize: 14px;
8
8
  --Table-toolbar-marginY: 0;
9
+ --Table-borderWidth: 1px;
9
10
  --Table-borderColor: #d9dcde;
10
11
  --Table-thead-fontSize: 13px;
11
12
  --Table-fontSize: 13px;
@@ -40,6 +41,14 @@
40
41
  --Nav-item-onActive-color: #000;
41
42
  }
42
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
+
43
52
  fieldset.antd-Collapse {
44
53
  margin-bottom: 1rem;
45
54
  }
@@ -56,41 +65,11 @@ fieldset.antd-Collapse > legend.antd-Collapse-header > .antd-Collapse-arrow:befo
56
65
  border-color: initial
57
66
  }
58
67
 
59
-
60
- main {
61
- background: var(--body-bg);
62
- }
63
-
64
-
65
- .ant-modal-root .amis-scope .antd-Panel-footerWrap{
66
- position: sticky;
67
- width: 100%;
68
- bottom: 0px;
69
- background: #ffffff
70
- }
71
-
72
68
  .amis-scope .antd-Select-option > label {
73
69
  display: block;
74
70
  min-width: 100px;
75
71
  }
76
72
 
77
- /* .steedos-related-listview.amis-scope .antd-Table-headToolbar{
78
- display: none;
79
- } */
80
-
81
- /* .steedos-listview.amis-scope .antd-Table-headToolbar{
82
- display: none;
83
- } */
84
-
85
- .antd-Crud-toolbar{
86
- margin-left: 1rem;
87
- margin-right: 1rem;
88
- }
89
-
90
- #__next .antd-Panel {
91
- box-shadow: none;
92
- }
93
-
94
73
  .is-inline .antd-Combo-items{
95
74
  justify-content: space-between !important;
96
75
  display: flex !important;
@@ -109,55 +88,10 @@ main {
109
88
  margin-top: 0 !important;
110
89
  }
111
90
 
112
- /*Table空状态高度调整*/
113
- .antd-Table-placeholder{
114
- height: 20px !important;
115
- }
116
-
117
- .antd-Table-placeholder-empty-icon.icon{
118
- height: 20px !important;
119
- }
120
-
121
91
  .steedos-listview .antd-List-toolbar{
122
92
  display: none;
123
93
  }
124
94
 
125
- /* .steedos-listview .antd-Crud-toolbar:first-child{
126
- display: none;
127
- } */
128
-
129
- .amis-scope .antd-Card{
130
- border-left: none !important;
131
- border-right: none !important;
132
- -o-border-image: none !important;
133
- border-image: none !important;
134
- border-bottom: none !important;
135
- }
136
-
137
- .amis-scope svg.icon {
138
- vertical-align: baseline;
139
- display: inline;
140
- }
141
-
142
- button.antd-Button--primary {
143
- color: #fff;
144
- border-color: #1890ff;
145
- background: #1890ff;
146
- /* background-color: var(--Button--primary-bg); */
147
- }
148
-
149
- #__next .antd-Table {
150
- margin-bottom: 0;
151
- }
152
-
153
- #__next .antd-Table-tr--even {
154
- background-color: #fcfdfe;
155
- }
156
-
157
- #__next .antd-Table-checkCell {
158
- border-right: 0;
159
- }
160
-
161
95
  body {
162
96
  font-family: -apple-system,BlinkMacSystemFont,Helvetica,Arial,Microsoft Yahei,SimHei;
163
97
  }
@@ -180,11 +114,6 @@ body {
180
114
  outline: 0;
181
115
  }
182
116
 
183
- svg.icon {
184
- display: inherit;
185
- }
186
-
187
-
188
117
  /* fix: https://github.com/baidu/amis/issues/5073 */
189
118
  .antd-CBGroup-toolbar .antd-CBGroup-toolbarConditionAdd .antd-ButtonGroup>.antd-Button:first-child {
190
119
  margin-right: 1.5rem;
@@ -201,6 +130,10 @@ svg.icon {
201
130
  overflow: auto;
202
131
  }
203
132
 
133
+
134
+ .antd-Nav-item.is-active {
135
+ box-shadow:var(--link-color) 4px 0 0 inset;
136
+ }
204
137
  /* @tailwind base; */
205
138
  .container {
206
139
  width: 100%
@@ -233,6 +166,9 @@ svg.icon {
233
166
  .visible {
234
167
  visibility: visible
235
168
  }
169
+ .collapse {
170
+ visibility: collapse
171
+ }
236
172
  .static {
237
173
  position: static
238
174
  }
@@ -260,6 +196,12 @@ svg.icon {
260
196
  .ml-1 {
261
197
  margin-left: 0.25rem
262
198
  }
199
+ .-ml-px {
200
+ margin-left: -1px
201
+ }
202
+ .mr-1 {
203
+ margin-right: 0.25rem
204
+ }
263
205
  .mb-3 {
264
206
  margin-bottom: 0.75rem
265
207
  }
@@ -284,18 +226,42 @@ svg.icon {
284
226
  .hidden {
285
227
  display: none
286
228
  }
229
+ .h-12 {
230
+ height: 3rem
231
+ }
232
+ .h-6 {
233
+ height: 1.5rem
234
+ }
235
+ .h-7 {
236
+ height: 1.75rem
237
+ }
287
238
  .h-4 {
288
239
  height: 1rem
289
240
  }
290
241
  .w-56 {
291
242
  width: 14rem
292
243
  }
244
+ .w-20 {
245
+ width: 5rem
246
+ }
247
+ .w-12 {
248
+ width: 3rem
249
+ }
250
+ .w-6 {
251
+ width: 1.5rem
252
+ }
253
+ .w-auto {
254
+ width: auto
255
+ }
293
256
  .w-4 {
294
257
  width: 1rem
295
258
  }
296
259
  .w-full {
297
260
  width: 100%
298
261
  }
262
+ .flex-shrink-0 {
263
+ flex-shrink: 0
264
+ }
299
265
  @keyframes spin {
300
266
  to {
301
267
  transform: rotate(360deg)
@@ -330,6 +296,9 @@ svg.icon {
330
296
  .rounded-none {
331
297
  border-radius: 0px
332
298
  }
299
+ .rounded-md {
300
+ border-radius: 0.375rem
301
+ }
333
302
  .border {
334
303
  border-width: 1px
335
304
  }
@@ -368,6 +337,9 @@ svg.icon {
368
337
  --tw-bg-opacity: 1;
369
338
  background-color: rgb(243 244 246 / var(--tw-bg-opacity))
370
339
  }
340
+ .fill-slate-500 {
341
+ fill: #64748b
342
+ }
371
343
  .p-0 {
372
344
  padding: 0px
373
345
  }
@@ -407,13 +379,26 @@ svg.icon {
407
379
  .text-center {
408
380
  text-align: center
409
381
  }
382
+ .align-text-top {
383
+ vertical-align: text-top
384
+ }
410
385
  .text-xl {
411
386
  font-size: 1.25rem;
412
387
  line-height: 1.75rem
413
388
  }
389
+ .text-lg {
390
+ font-size: 1.125rem;
391
+ line-height: 1.75rem
392
+ }
393
+ .text-\[15px\] {
394
+ font-size: 15px
395
+ }
414
396
  .font-bold {
415
397
  font-weight: 700
416
398
  }
399
+ .font-medium {
400
+ font-weight: 500
401
+ }
417
402
  .leading-none {
418
403
  line-height: 1
419
404
  }
@@ -425,6 +410,17 @@ svg.icon {
425
410
  --tw-text-opacity: 1;
426
411
  color: rgb(0 0 0 / var(--tw-text-opacity))
427
412
  }
413
+ .text-blue-600 {
414
+ --tw-text-opacity: 1;
415
+ color: rgb(37 99 235 / var(--tw-text-opacity))
416
+ }
417
+ .text-slate-700 {
418
+ --tw-text-opacity: 1;
419
+ color: rgb(51 65 85 / var(--tw-text-opacity))
420
+ }
421
+ .no-underline {
422
+ text-decoration-line: none
423
+ }
428
424
  .shadow-none {
429
425
  --tw-shadow: 0 0 #0000;
430
426
  --tw-shadow-colored: 0 0 #0000;