@exmg/exm-upload 1.0.14 → 1.0.15
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/package.json +5 -5
- package/src/styles/exm-dialog-upload-css.d.ts +0 -1
- package/src/styles/exm-dialog-upload-css.js +251 -2
- package/src/styles/exm-upload-crop-styles-css.d.ts +0 -1
- package/src/styles/exm-upload-crop-styles-css.js +315 -3
- package/src/styles/exm-upload-drop-area-styles-css.d.ts +0 -1
- package/src/styles/exm-upload-drop-area-styles-css.js +51 -2
- package/src/styles/exm-upload-input-css.d.ts +0 -1
- package/src/styles/exm-upload-input-css.js +20 -2
- package/src/styles/exm-upload-item-styles-css.d.ts +0 -1
- package/src/styles/exm-upload-item-styles-css.js +122 -2
- package/src/styles/exm-upload-styles-css.d.ts +0 -1
- package/src/styles/exm-upload-styles-css.js +148 -2
- package/src/utils.js +1 -1
- package/src/styles/exm-dialog-upload.scss +0 -22
- package/src/styles/exm-upload-crop-styles.scss +0 -323
- package/src/styles/exm-upload-drop-area-styles.scss +0 -48
- package/src/styles/exm-upload-input.scss +0 -18
- package/src/styles/exm-upload-item-styles.scss +0 -119
- package/src/styles/exm-upload-styles.scss +0 -147
package/package.json
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@exmg/exm-upload",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.15",
|
|
4
4
|
"dependencies": {
|
|
5
|
-
"@exmg/exm-button": "^1.0.
|
|
6
|
-
"@exmg/exm-collapsed": "^1.0.
|
|
7
|
-
"@exmg/exm-dialogs": "^1.0.
|
|
5
|
+
"@exmg/exm-button": "^1.0.4",
|
|
6
|
+
"@exmg/exm-collapsed": "^1.0.3",
|
|
7
|
+
"@exmg/exm-dialogs": "^1.0.11",
|
|
8
8
|
"@exmg/lit-base": "^3.0.0",
|
|
9
9
|
"@material/web": "^2.2.0",
|
|
10
10
|
"cropperjs": "^1.5.13",
|
|
@@ -49,5 +49,5 @@
|
|
|
49
49
|
"publishConfig": {
|
|
50
50
|
"access": "public"
|
|
51
51
|
},
|
|
52
|
-
"gitHead": "
|
|
52
|
+
"gitHead": "e7086831faea0bdfe8628b0de9b7ddcc45174558"
|
|
53
53
|
}
|
|
@@ -1,4 +1,253 @@
|
|
|
1
1
|
import { css } from 'lit';
|
|
2
|
-
export const style = css
|
|
3
|
-
|
|
2
|
+
export const style = css `
|
|
3
|
+
:host {
|
|
4
|
+
border-start-start-radius: var(
|
|
5
|
+
--md-dialog-container-shape-start-start,
|
|
6
|
+
var(--md-dialog-container-shape, var(--md-sys-shape-corner-extra-large, 28px))
|
|
7
|
+
);
|
|
8
|
+
border-start-end-radius: var(
|
|
9
|
+
--md-dialog-container-shape-start-end,
|
|
10
|
+
var(--md-dialog-container-shape, var(--md-sys-shape-corner-extra-large, 28px))
|
|
11
|
+
);
|
|
12
|
+
border-end-end-radius: var(
|
|
13
|
+
--md-dialog-container-shape-end-end,
|
|
14
|
+
var(--md-dialog-container-shape, var(--md-sys-shape-corner-extra-large, 28px))
|
|
15
|
+
);
|
|
16
|
+
border-end-start-radius: var(
|
|
17
|
+
--md-dialog-container-shape-end-start,
|
|
18
|
+
var(--md-dialog-container-shape, var(--md-sys-shape-corner-extra-large, 28px))
|
|
19
|
+
);
|
|
20
|
+
display: contents;
|
|
21
|
+
margin: auto;
|
|
22
|
+
max-height: min(560px, 100% - 48px);
|
|
23
|
+
max-width: min(560px, 100% - 48px);
|
|
24
|
+
min-height: 140px;
|
|
25
|
+
min-width: 280px;
|
|
26
|
+
position: fixed;
|
|
27
|
+
height: fit-content;
|
|
28
|
+
width: fit-content;
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
dialog {
|
|
32
|
+
background: rgba(0, 0, 0, 0);
|
|
33
|
+
border: none;
|
|
34
|
+
border-radius: inherit;
|
|
35
|
+
flex-direction: column;
|
|
36
|
+
height: inherit;
|
|
37
|
+
margin: inherit;
|
|
38
|
+
max-height: inherit;
|
|
39
|
+
max-width: inherit;
|
|
40
|
+
min-height: inherit;
|
|
41
|
+
min-width: inherit;
|
|
42
|
+
outline: none;
|
|
43
|
+
overflow: visible;
|
|
44
|
+
padding: 0;
|
|
45
|
+
width: inherit;
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
dialog[open] {
|
|
49
|
+
display: flex;
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
::backdrop {
|
|
53
|
+
background: none;
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
.scrim {
|
|
57
|
+
background: var(--md-sys-color-scrim, #000);
|
|
58
|
+
display: none;
|
|
59
|
+
inset: 0;
|
|
60
|
+
opacity: 32%;
|
|
61
|
+
pointer-events: none;
|
|
62
|
+
position: fixed;
|
|
63
|
+
z-index: 1;
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
:host([open]) .scrim {
|
|
67
|
+
display: flex;
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
h2 {
|
|
71
|
+
all: unset;
|
|
72
|
+
align-self: stretch;
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
.headline {
|
|
76
|
+
align-items: center;
|
|
77
|
+
color: var(--md-dialog-headline-color, var(--md-sys-color-on-surface, #1d1b20));
|
|
78
|
+
display: flex;
|
|
79
|
+
flex-direction: column;
|
|
80
|
+
font-family: var(
|
|
81
|
+
--md-dialog-headline-font,
|
|
82
|
+
var(--md-sys-typescale-headline-small-font, var(--md-ref-typeface-brand, Roboto))
|
|
83
|
+
);
|
|
84
|
+
font-size: var(--md-dialog-headline-size, var(--md-sys-typescale-headline-small-size, 1.5rem));
|
|
85
|
+
line-height: var(--md-dialog-headline-line-height, var(--md-sys-typescale-headline-small-line-height, 2rem));
|
|
86
|
+
font-weight: var(
|
|
87
|
+
--md-dialog-headline-weight,
|
|
88
|
+
var(--md-sys-typescale-headline-small-weight, var(--md-ref-typeface-weight-regular, 400))
|
|
89
|
+
);
|
|
90
|
+
position: relative;
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
slot[name='headline']::slotted(*) {
|
|
94
|
+
align-items: center;
|
|
95
|
+
align-self: stretch;
|
|
96
|
+
box-sizing: border-box;
|
|
97
|
+
display: flex;
|
|
98
|
+
gap: 8px;
|
|
99
|
+
padding: 24px 24px 0;
|
|
100
|
+
}
|
|
101
|
+
|
|
102
|
+
.icon {
|
|
103
|
+
display: flex;
|
|
104
|
+
}
|
|
105
|
+
|
|
106
|
+
slot[name='icon']::slotted(*) {
|
|
107
|
+
color: var(--md-dialog-icon-color, var(--md-sys-color-secondary, #625b71));
|
|
108
|
+
fill: currentColor;
|
|
109
|
+
font-size: var(--md-dialog-icon-size, 24px);
|
|
110
|
+
margin-top: 24px;
|
|
111
|
+
height: var(--md-dialog-icon-size, 24px);
|
|
112
|
+
width: var(--md-dialog-icon-size, 24px);
|
|
113
|
+
}
|
|
114
|
+
|
|
115
|
+
.has-icon slot[name='headline']::slotted(*) {
|
|
116
|
+
justify-content: center;
|
|
117
|
+
padding-top: 16px;
|
|
118
|
+
}
|
|
119
|
+
|
|
120
|
+
.scrollable slot[name='headline']::slotted(*) {
|
|
121
|
+
padding-bottom: 16px;
|
|
122
|
+
}
|
|
123
|
+
|
|
124
|
+
.scrollable.has-headline slot[name='content']::slotted(*) {
|
|
125
|
+
padding-top: 8px;
|
|
126
|
+
}
|
|
127
|
+
|
|
128
|
+
.container {
|
|
129
|
+
border-radius: inherit;
|
|
130
|
+
display: flex;
|
|
131
|
+
flex-direction: column;
|
|
132
|
+
flex-grow: 1;
|
|
133
|
+
overflow: hidden;
|
|
134
|
+
position: relative;
|
|
135
|
+
transform-origin: top;
|
|
136
|
+
}
|
|
137
|
+
|
|
138
|
+
.container::before {
|
|
139
|
+
background: var(--md-dialog-container-color, var(--md-sys-color-surface-container-high, #ece6f0));
|
|
140
|
+
border-radius: inherit;
|
|
141
|
+
content: '';
|
|
142
|
+
inset: 0;
|
|
143
|
+
position: absolute;
|
|
144
|
+
}
|
|
145
|
+
|
|
146
|
+
.scroller {
|
|
147
|
+
display: flex;
|
|
148
|
+
flex: 1;
|
|
149
|
+
flex-direction: column;
|
|
150
|
+
overflow: hidden;
|
|
151
|
+
z-index: 1;
|
|
152
|
+
}
|
|
153
|
+
|
|
154
|
+
.scrollable .scroller {
|
|
155
|
+
overflow-y: scroll;
|
|
156
|
+
}
|
|
157
|
+
|
|
158
|
+
.content {
|
|
159
|
+
color: var(--md-dialog-supporting-text-color, var(--md-sys-color-on-surface-variant, #49454f));
|
|
160
|
+
font-family: var(
|
|
161
|
+
--md-dialog-supporting-text-font,
|
|
162
|
+
var(--md-sys-typescale-body-medium-font, var(--md-ref-typeface-plain, Roboto))
|
|
163
|
+
);
|
|
164
|
+
font-size: var(--md-dialog-supporting-text-size, var(--md-sys-typescale-body-medium-size, 0.875rem));
|
|
165
|
+
line-height: var(--md-dialog-supporting-text-line-height, var(--md-sys-typescale-body-medium-line-height, 1.25rem));
|
|
166
|
+
flex: 1;
|
|
167
|
+
font-weight: var(
|
|
168
|
+
--md-dialog-supporting-text-weight,
|
|
169
|
+
var(--md-sys-typescale-body-medium-weight, var(--md-ref-typeface-weight-regular, 400))
|
|
170
|
+
);
|
|
171
|
+
height: min-content;
|
|
172
|
+
position: relative;
|
|
173
|
+
}
|
|
174
|
+
|
|
175
|
+
slot[name='content']::slotted(*) {
|
|
176
|
+
box-sizing: border-box;
|
|
177
|
+
padding: 24px;
|
|
178
|
+
}
|
|
179
|
+
|
|
180
|
+
.anchor {
|
|
181
|
+
position: absolute;
|
|
182
|
+
}
|
|
183
|
+
|
|
184
|
+
.top.anchor {
|
|
185
|
+
top: 0;
|
|
186
|
+
}
|
|
187
|
+
|
|
188
|
+
.bottom.anchor {
|
|
189
|
+
bottom: 0;
|
|
190
|
+
}
|
|
191
|
+
|
|
192
|
+
.actions {
|
|
193
|
+
position: relative;
|
|
194
|
+
}
|
|
195
|
+
|
|
196
|
+
slot[name='actions']::slotted(*) {
|
|
197
|
+
box-sizing: border-box;
|
|
198
|
+
display: flex;
|
|
199
|
+
gap: 8px;
|
|
200
|
+
justify-content: flex-end;
|
|
201
|
+
padding: 16px 24px 24px;
|
|
202
|
+
}
|
|
203
|
+
|
|
204
|
+
.has-actions slot[name='content']::slotted(*) {
|
|
205
|
+
padding-bottom: 8px;
|
|
206
|
+
}
|
|
207
|
+
|
|
208
|
+
md-divider {
|
|
209
|
+
display: none;
|
|
210
|
+
position: absolute;
|
|
211
|
+
}
|
|
212
|
+
|
|
213
|
+
.has-headline.show-top-divider .headline md-divider,
|
|
214
|
+
.has-actions.show-bottom-divider .actions md-divider {
|
|
215
|
+
display: flex;
|
|
216
|
+
}
|
|
217
|
+
|
|
218
|
+
.headline md-divider {
|
|
219
|
+
bottom: 0;
|
|
220
|
+
}
|
|
221
|
+
|
|
222
|
+
.actions md-divider {
|
|
223
|
+
top: 0;
|
|
224
|
+
}
|
|
225
|
+
|
|
226
|
+
@media (forced-colors: active) {
|
|
227
|
+
dialog {
|
|
228
|
+
outline: 2px solid WindowText;
|
|
229
|
+
}
|
|
230
|
+
}
|
|
231
|
+
|
|
232
|
+
[slot='headline'] {
|
|
233
|
+
display: flex;
|
|
234
|
+
flex-direction: row-reverse;
|
|
235
|
+
align-items: center;
|
|
236
|
+
}
|
|
237
|
+
|
|
238
|
+
[showing-fullscreen] [slot='headline'] {
|
|
239
|
+
flex-direction: row;
|
|
240
|
+
}
|
|
241
|
+
|
|
242
|
+
.headline {
|
|
243
|
+
flex: 1;
|
|
244
|
+
display: block;
|
|
245
|
+
text-align: left;
|
|
246
|
+
}
|
|
247
|
+
|
|
248
|
+
exm-upload,
|
|
249
|
+
::slotted(exm-upload) {
|
|
250
|
+
width: 460px;
|
|
251
|
+
}
|
|
252
|
+
`;
|
|
4
253
|
//# sourceMappingURL=exm-dialog-upload-css.js.map
|
|
@@ -1,5 +1,21 @@
|
|
|
1
1
|
import { css } from 'lit';
|
|
2
|
-
export const style = css
|
|
2
|
+
export const style = css `
|
|
3
|
+
#image {
|
|
4
|
+
z-index: 99999;
|
|
5
|
+
display: flex;
|
|
6
|
+
max-width: 100%;
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
.image-container {
|
|
10
|
+
max-width: 300px;
|
|
11
|
+
max-height: 300px;
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
.actions {
|
|
15
|
+
margin-top: 8px;
|
|
16
|
+
display: flex;
|
|
17
|
+
justify-content: flex-end;
|
|
18
|
+
} /*!
|
|
3
19
|
* Cropper.js v1.5.13
|
|
4
20
|
* https://fengyuanchen.github.io/cropperjs
|
|
5
21
|
*
|
|
@@ -7,6 +23,302 @@ export const style = css `#image{z-index:99999;display:flex;max-width:100%}.imag
|
|
|
7
23
|
* Released under the MIT license
|
|
8
24
|
*
|
|
9
25
|
* Date: 2022-11-20T05:30:43.444Z
|
|
10
|
-
|
|
11
|
-
|
|
26
|
+
*/
|
|
27
|
+
.cropper-container {
|
|
28
|
+
direction: ltr;
|
|
29
|
+
font-size: 0;
|
|
30
|
+
line-height: 0;
|
|
31
|
+
position: relative;
|
|
32
|
+
-ms-touch-action: none;
|
|
33
|
+
touch-action: none;
|
|
34
|
+
-webkit-user-select: none;
|
|
35
|
+
-moz-user-select: none;
|
|
36
|
+
-ms-user-select: none;
|
|
37
|
+
user-select: none;
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
.cropper-container img {
|
|
41
|
+
-webkit-backface-visibility: hidden;
|
|
42
|
+
backface-visibility: hidden;
|
|
43
|
+
display: block;
|
|
44
|
+
height: 100%;
|
|
45
|
+
image-orientation: 0deg;
|
|
46
|
+
max-height: none !important;
|
|
47
|
+
max-width: none !important;
|
|
48
|
+
min-height: 0 !important;
|
|
49
|
+
min-width: 0 !important;
|
|
50
|
+
width: 100%;
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
.cropper-wrap-box,
|
|
54
|
+
.cropper-canvas,
|
|
55
|
+
.cropper-drag-box,
|
|
56
|
+
.cropper-crop-box,
|
|
57
|
+
.cropper-modal {
|
|
58
|
+
bottom: 0;
|
|
59
|
+
left: 0;
|
|
60
|
+
position: absolute;
|
|
61
|
+
right: 0;
|
|
62
|
+
top: 0;
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
.cropper-wrap-box,
|
|
66
|
+
.cropper-canvas {
|
|
67
|
+
overflow: hidden;
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
.cropper-drag-box {
|
|
71
|
+
background-color: #fff;
|
|
72
|
+
opacity: 0;
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
.cropper-modal {
|
|
76
|
+
background-color: #000;
|
|
77
|
+
opacity: 0.5;
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
.cropper-view-box {
|
|
81
|
+
display: block;
|
|
82
|
+
height: 100%;
|
|
83
|
+
outline: 1px solid #39f;
|
|
84
|
+
outline-color: rgba(51, 153, 255, 0.75);
|
|
85
|
+
overflow: hidden;
|
|
86
|
+
width: 100%;
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
.cropper-dashed {
|
|
90
|
+
border: 0 dashed #eee;
|
|
91
|
+
display: block;
|
|
92
|
+
opacity: 0.5;
|
|
93
|
+
position: absolute;
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
.cropper-dashed.dashed-h {
|
|
97
|
+
border-bottom-width: 1px;
|
|
98
|
+
border-top-width: 1px;
|
|
99
|
+
height: 33.3333333333%;
|
|
100
|
+
left: 0;
|
|
101
|
+
top: 33.3333333333%;
|
|
102
|
+
width: 100%;
|
|
103
|
+
}
|
|
104
|
+
|
|
105
|
+
.cropper-dashed.dashed-v {
|
|
106
|
+
border-left-width: 1px;
|
|
107
|
+
border-right-width: 1px;
|
|
108
|
+
height: 100%;
|
|
109
|
+
left: 33.3333333333%;
|
|
110
|
+
top: 0;
|
|
111
|
+
width: 33.3333333333%;
|
|
112
|
+
}
|
|
113
|
+
|
|
114
|
+
.cropper-center {
|
|
115
|
+
display: block;
|
|
116
|
+
height: 0;
|
|
117
|
+
left: 50%;
|
|
118
|
+
opacity: 0.75;
|
|
119
|
+
position: absolute;
|
|
120
|
+
top: 50%;
|
|
121
|
+
width: 0;
|
|
122
|
+
}
|
|
123
|
+
|
|
124
|
+
.cropper-center::before,
|
|
125
|
+
.cropper-center::after {
|
|
126
|
+
background-color: #eee;
|
|
127
|
+
content: ' ';
|
|
128
|
+
display: block;
|
|
129
|
+
position: absolute;
|
|
130
|
+
}
|
|
131
|
+
|
|
132
|
+
.cropper-center::before {
|
|
133
|
+
height: 1px;
|
|
134
|
+
left: -3px;
|
|
135
|
+
top: 0;
|
|
136
|
+
width: 7px;
|
|
137
|
+
}
|
|
138
|
+
|
|
139
|
+
.cropper-center::after {
|
|
140
|
+
height: 7px;
|
|
141
|
+
left: 0;
|
|
142
|
+
top: -3px;
|
|
143
|
+
width: 1px;
|
|
144
|
+
}
|
|
145
|
+
|
|
146
|
+
.cropper-face,
|
|
147
|
+
.cropper-line,
|
|
148
|
+
.cropper-point {
|
|
149
|
+
display: block;
|
|
150
|
+
height: 100%;
|
|
151
|
+
opacity: 0.1;
|
|
152
|
+
position: absolute;
|
|
153
|
+
width: 100%;
|
|
154
|
+
}
|
|
155
|
+
|
|
156
|
+
.cropper-face {
|
|
157
|
+
background-color: #fff;
|
|
158
|
+
left: 0;
|
|
159
|
+
top: 0;
|
|
160
|
+
}
|
|
161
|
+
|
|
162
|
+
.cropper-line {
|
|
163
|
+
background-color: #39f;
|
|
164
|
+
}
|
|
165
|
+
|
|
166
|
+
.cropper-line.line-e {
|
|
167
|
+
cursor: ew-resize;
|
|
168
|
+
right: -3px;
|
|
169
|
+
top: 0;
|
|
170
|
+
width: 5px;
|
|
171
|
+
}
|
|
172
|
+
|
|
173
|
+
.cropper-line.line-n {
|
|
174
|
+
cursor: ns-resize;
|
|
175
|
+
height: 5px;
|
|
176
|
+
left: 0;
|
|
177
|
+
top: -3px;
|
|
178
|
+
}
|
|
179
|
+
|
|
180
|
+
.cropper-line.line-w {
|
|
181
|
+
cursor: ew-resize;
|
|
182
|
+
left: -3px;
|
|
183
|
+
top: 0;
|
|
184
|
+
width: 5px;
|
|
185
|
+
}
|
|
186
|
+
|
|
187
|
+
.cropper-line.line-s {
|
|
188
|
+
bottom: -3px;
|
|
189
|
+
cursor: ns-resize;
|
|
190
|
+
height: 5px;
|
|
191
|
+
left: 0;
|
|
192
|
+
}
|
|
193
|
+
|
|
194
|
+
.cropper-point {
|
|
195
|
+
background-color: #39f;
|
|
196
|
+
height: 5px;
|
|
197
|
+
opacity: 0.75;
|
|
198
|
+
width: 5px;
|
|
199
|
+
}
|
|
200
|
+
|
|
201
|
+
.cropper-point.point-e {
|
|
202
|
+
cursor: ew-resize;
|
|
203
|
+
margin-top: -3px;
|
|
204
|
+
right: -3px;
|
|
205
|
+
top: 50%;
|
|
206
|
+
}
|
|
207
|
+
|
|
208
|
+
.cropper-point.point-n {
|
|
209
|
+
cursor: ns-resize;
|
|
210
|
+
left: 50%;
|
|
211
|
+
margin-left: -3px;
|
|
212
|
+
top: -3px;
|
|
213
|
+
}
|
|
214
|
+
|
|
215
|
+
.cropper-point.point-w {
|
|
216
|
+
cursor: ew-resize;
|
|
217
|
+
left: -3px;
|
|
218
|
+
margin-top: -3px;
|
|
219
|
+
top: 50%;
|
|
220
|
+
}
|
|
221
|
+
|
|
222
|
+
.cropper-point.point-s {
|
|
223
|
+
bottom: -3px;
|
|
224
|
+
cursor: s-resize;
|
|
225
|
+
left: 50%;
|
|
226
|
+
margin-left: -3px;
|
|
227
|
+
}
|
|
228
|
+
|
|
229
|
+
.cropper-point.point-ne {
|
|
230
|
+
cursor: nesw-resize;
|
|
231
|
+
right: -3px;
|
|
232
|
+
top: -3px;
|
|
233
|
+
}
|
|
234
|
+
|
|
235
|
+
.cropper-point.point-nw {
|
|
236
|
+
cursor: nwse-resize;
|
|
237
|
+
left: -3px;
|
|
238
|
+
top: -3px;
|
|
239
|
+
}
|
|
240
|
+
|
|
241
|
+
.cropper-point.point-sw {
|
|
242
|
+
bottom: -3px;
|
|
243
|
+
cursor: nesw-resize;
|
|
244
|
+
left: -3px;
|
|
245
|
+
}
|
|
246
|
+
|
|
247
|
+
.cropper-point.point-se {
|
|
248
|
+
bottom: -3px;
|
|
249
|
+
cursor: nwse-resize;
|
|
250
|
+
height: 20px;
|
|
251
|
+
opacity: 1;
|
|
252
|
+
right: -3px;
|
|
253
|
+
width: 20px;
|
|
254
|
+
}
|
|
255
|
+
|
|
256
|
+
@media (min-width: 768px) {
|
|
257
|
+
.cropper-point.point-se {
|
|
258
|
+
height: 15px;
|
|
259
|
+
width: 15px;
|
|
260
|
+
}
|
|
261
|
+
}
|
|
262
|
+
|
|
263
|
+
@media (min-width: 992px) {
|
|
264
|
+
.cropper-point.point-se {
|
|
265
|
+
height: 10px;
|
|
266
|
+
width: 10px;
|
|
267
|
+
}
|
|
268
|
+
}
|
|
269
|
+
|
|
270
|
+
@media (min-width: 1200px) {
|
|
271
|
+
.cropper-point.point-se {
|
|
272
|
+
height: 5px;
|
|
273
|
+
opacity: 0.75;
|
|
274
|
+
width: 5px;
|
|
275
|
+
}
|
|
276
|
+
}
|
|
277
|
+
|
|
278
|
+
.cropper-point.point-se::before {
|
|
279
|
+
background-color: #39f;
|
|
280
|
+
bottom: -50%;
|
|
281
|
+
content: ' ';
|
|
282
|
+
display: block;
|
|
283
|
+
height: 200%;
|
|
284
|
+
opacity: 0;
|
|
285
|
+
position: absolute;
|
|
286
|
+
right: -50%;
|
|
287
|
+
width: 200%;
|
|
288
|
+
}
|
|
289
|
+
|
|
290
|
+
.cropper-invisible {
|
|
291
|
+
opacity: 0;
|
|
292
|
+
}
|
|
293
|
+
|
|
294
|
+
.cropper-bg {
|
|
295
|
+
background-image: url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQAQMAAAAlPW0iAAAAA3NCSVQICAjb4U/gAAAABlBMVEXMzMz////TjRV2AAAACXBIWXMAAArrAAAK6wGCiw1aAAAAHHRFWHRTb2Z0d2FyZQBBZG9iZSBGaXJld29ya3MgQ1M26LyyjAAAABFJREFUCJlj+M/AgBVhF/0PAH6/D/HkDxOGAAAAAElFTkSuQmCC');
|
|
296
|
+
}
|
|
297
|
+
|
|
298
|
+
.cropper-hide {
|
|
299
|
+
display: block;
|
|
300
|
+
height: 0;
|
|
301
|
+
position: absolute;
|
|
302
|
+
width: 0;
|
|
303
|
+
}
|
|
304
|
+
|
|
305
|
+
.cropper-hidden {
|
|
306
|
+
display: none !important;
|
|
307
|
+
}
|
|
308
|
+
|
|
309
|
+
.cropper-move {
|
|
310
|
+
cursor: move;
|
|
311
|
+
}
|
|
312
|
+
|
|
313
|
+
.cropper-crop {
|
|
314
|
+
cursor: crosshair;
|
|
315
|
+
}
|
|
316
|
+
|
|
317
|
+
.cropper-disabled .cropper-drag-box,
|
|
318
|
+
.cropper-disabled .cropper-face,
|
|
319
|
+
.cropper-disabled .cropper-line,
|
|
320
|
+
.cropper-disabled .cropper-point {
|
|
321
|
+
cursor: not-allowed;
|
|
322
|
+
}
|
|
323
|
+
`;
|
|
12
324
|
//# sourceMappingURL=exm-upload-crop-styles-css.js.map
|
|
@@ -1,4 +1,53 @@
|
|
|
1
1
|
import { css } from 'lit';
|
|
2
|
-
export const style = css
|
|
3
|
-
|
|
2
|
+
export const style = css `
|
|
3
|
+
:host {
|
|
4
|
+
display: flex;
|
|
5
|
+
width: 100%;
|
|
6
|
+
}
|
|
7
|
+
|
|
8
|
+
.description {
|
|
9
|
+
font-size: 0.675rem;
|
|
10
|
+
text-transform: uppercase;
|
|
11
|
+
opacity: 0.3;
|
|
12
|
+
margin-top: 8px;
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
.drop {
|
|
16
|
+
display: flex;
|
|
17
|
+
width: 100%;
|
|
18
|
+
position: relative;
|
|
19
|
+
min-height: 160px;
|
|
20
|
+
background-color: var(--md-sys-color-surface-variant);
|
|
21
|
+
color: var(--md-sys-color-on-surface);
|
|
22
|
+
border: 1px dashed var(--md-sys-color-outline);
|
|
23
|
+
border-radius: 10px;
|
|
24
|
+
box-sizing: border-box;
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
.drop-container {
|
|
28
|
+
flex: 1;
|
|
29
|
+
display: flex;
|
|
30
|
+
padding: 1rem;
|
|
31
|
+
justify-content: center;
|
|
32
|
+
align-items: center;
|
|
33
|
+
flex-direction: column;
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
.drop-text {
|
|
37
|
+
font-size: 1rem;
|
|
38
|
+
margin-top: 8px;
|
|
39
|
+
width: 85%;
|
|
40
|
+
overflow: hidden;
|
|
41
|
+
text-overflow: ellipsis;
|
|
42
|
+
text-align: center;
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
.drop-text a {
|
|
46
|
+
color: var(--md-sys-color-primary);
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
.drop.dropHover {
|
|
50
|
+
background-image: url("data:image/svg+xml,%3csvg width='100%25' height='100%25' xmlns='http://www.w3.org/2000/svg'%3e%3crect width='100%25' height='100%25' fill='none' rx='10' ry='10' stroke='%230071dc' stroke-width='4' stroke-dasharray='6%2c 10' stroke-dashoffset='6' stroke-linecap='square'/%3e%3c/svg%3e");
|
|
51
|
+
}
|
|
52
|
+
`;
|
|
4
53
|
//# sourceMappingURL=exm-upload-drop-area-styles-css.js.map
|
|
@@ -1,4 +1,22 @@
|
|
|
1
1
|
import { css } from 'lit';
|
|
2
|
-
export const style = css
|
|
3
|
-
|
|
2
|
+
export const style = css `
|
|
3
|
+
:host {
|
|
4
|
+
display: inline-flex;
|
|
5
|
+
}
|
|
6
|
+
|
|
7
|
+
.input-wrapper {
|
|
8
|
+
display: flex;
|
|
9
|
+
flex-direction: column;
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
.icon {
|
|
13
|
+
margin-left: var(--exm-upload-input-icon-margin-left, 8px);
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
.icon svg {
|
|
17
|
+
width: var(--exm-upload-input-icon-size, 24px);
|
|
18
|
+
height: var(--exm-upload-input-icon-size, 24px);
|
|
19
|
+
fill: var(--exm-upload-input-icon-fill, #0071dc);
|
|
20
|
+
}
|
|
21
|
+
`;
|
|
4
22
|
//# sourceMappingURL=exm-upload-input-css.js.map
|