@sankhyalabs/ezui 1.1.74 → 1.1.75
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/dist/cjs/ez-button_16.cjs.entry.js +48 -42
- package/dist/cjs/ez-time-input.cjs.entry.js +1 -1
- package/dist/cjs/ezui.cjs.js +1 -1
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/collection/components/ez-calendar/ez-calendar.css +64 -64
- package/dist/collection/components/ez-calendar/ez-calendar.js +12 -9
- package/dist/collection/components/ez-form/subcomponents/structure/Field.js +1 -1
- package/dist/collection/components/ez-time-input/ez-time-input.js +1 -1
- package/dist/collection/components/ez-upload/ez-upload.css +41 -41
- package/dist/collection/components/ez-upload/ez-upload.js +53 -50
- package/dist/custom-elements/index.js +50 -44
- package/dist/esm/ez-button_16.entry.js +48 -42
- package/dist/esm/ez-time-input.entry.js +1 -1
- package/dist/esm/ezui.js +1 -1
- package/dist/esm/loader.js +1 -1
- package/dist/ezui/ezui.esm.js +1 -1
- package/dist/ezui/{p-25953d44.entry.js → p-46d07e59.entry.js} +1 -1
- package/dist/ezui/p-7be54779.entry.js +1 -0
- package/dist/types/components/ez-calendar/ez-calendar.d.ts +4 -1
- package/dist/types/components/ez-upload/ez-upload.d.ts +10 -7
- package/dist/types/components.d.ts +20 -14
- package/package.json +1 -1
- package/dist/ezui/p-907de194.entry.js +0 -1
|
@@ -1,66 +1,66 @@
|
|
|
1
1
|
:host {
|
|
2
2
|
/*@doc Define a família da fonte do componente.*/
|
|
3
|
-
--
|
|
3
|
+
--ez-calendar--font-family: var(--font-pattern, Arial);
|
|
4
4
|
/*@doc Define a cor dos textos dentro do componente.*/
|
|
5
|
-
--
|
|
5
|
+
--ez-calendar--color: var(--title--primary, #626e82);
|
|
6
6
|
/*@doc Define a sombra dos textos dentro do componente.*/
|
|
7
|
-
--
|
|
7
|
+
--ez-calendar--text-shadow: var(--text-shadow, 0 0 0 #353535, 0 0 1px transparent);
|
|
8
8
|
|
|
9
9
|
/* cal__body */
|
|
10
10
|
/*@doc Define a cor de fundo do corpo do calendário.*/
|
|
11
|
-
--
|
|
11
|
+
--ez-calendar__body--background-color: var(--background--xlight, #FFF);
|
|
12
12
|
/*@doc Define o espaçamento do corpo do calendário.*/
|
|
13
|
-
--
|
|
13
|
+
--ez-calendar__body--padding: var(--space--medium, 12px);
|
|
14
14
|
/*@doc Define o raio da borda do corpo do calendário.*/
|
|
15
|
-
--
|
|
15
|
+
--ez-calendar__body--border-radius: var(--border--radius-medium, 12px);
|
|
16
16
|
/*@doc Define a sombra do corpo do calendário.*/
|
|
17
|
-
--
|
|
17
|
+
--ez-calendar__body--shadow: var(--shadow, 0px 0px 16px 0px #000);
|
|
18
18
|
|
|
19
19
|
/* cal__header */
|
|
20
20
|
/*@doc Define a espessura da borda inferior do header.*/
|
|
21
|
-
--
|
|
21
|
+
--ez-calendar__header-line--stroke: 2px;
|
|
22
22
|
/*@doc Define a cor da borda inferior do header.*/
|
|
23
|
-
--
|
|
23
|
+
--ez-calendar__header-line--color: var(--color--strokes, #C0C0C0);
|
|
24
24
|
|
|
25
25
|
/* nav buttons */
|
|
26
26
|
/*@doc Define a cor do ícone de navegação.*/
|
|
27
|
-
--
|
|
27
|
+
--ez-calendar__nav-btn--fill: var(--text--primary, #008561);
|
|
28
28
|
/*@doc Define a cor do ícone de navegação quando o cursor está sobre ele.*/
|
|
29
|
-
--
|
|
29
|
+
--ez-calendar__nav-btn--hover--fill: var(--color--primary, #350404);
|
|
30
30
|
/*@doc Define a largura do ícone de navegação.*/
|
|
31
|
-
--
|
|
31
|
+
--ez-calendar__nav-btn--width: 10px;
|
|
32
32
|
/*@doc Define a altura do ícone de navegação.*/
|
|
33
|
-
--
|
|
33
|
+
--ez-calendar__nav-btn--height: 16px;
|
|
34
34
|
/*@doc Contém a imagem do ícone de navegação à esquerda.*/
|
|
35
|
-
--
|
|
35
|
+
--ez-calendar__nav-btn--previous-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" version="1.1" height="16px" width="10px"><path d="M 9.7808475,13.860393 3.9204526,8.0000004 9.7808475,2.0624965 7.9301965,0.28895552 0.21915255,8.0000004 7.9301965,15.711044 Z"/></svg>');
|
|
36
36
|
/*@doc Contém a imagem do ícone de navegação à direita.*/
|
|
37
|
-
--
|
|
37
|
+
--ez-calendar__nav-btn--next-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" version="1.1" height="16px" width="10px"><path d="M 0.21915251,13.860393 6.0795475,8.0000007 0.21915251,2.0624968 2.0698036,0.28895588 9.7808475,8.0000007 2.0698036,15.711044 Z"/></svg>');
|
|
38
38
|
|
|
39
39
|
/* cell */
|
|
40
40
|
/*@doc Define o espaçamento vertical entre as células.*/
|
|
41
|
-
--
|
|
41
|
+
--ez-calendar__cell--margin: 0px var(--space--small, 12px);
|
|
42
42
|
/*@doc Define a largura das células.*/
|
|
43
|
-
--
|
|
43
|
+
--ez-calendar__cell--width: var(--space--large, 24px);
|
|
44
44
|
/*@doc Define o espaçamento horizontal entre as células.*/
|
|
45
|
-
--
|
|
45
|
+
--ez-calendar__cell--padding: var(--space--extra-small, 3px) 0px;
|
|
46
46
|
/*@doc Define o raio da borda das células.*/
|
|
47
|
-
--
|
|
47
|
+
--ez-calendar__cell--border-radius: var(--border--radius-small, 6px);
|
|
48
48
|
/*@doc Define a cor de fundo das células.*/
|
|
49
|
-
--
|
|
49
|
+
--ez-calendar__cell--over--background-color: var(--color--strokes, #C0C0C0);
|
|
50
50
|
/*@doc Define a cor do texto para células secundárias (fora do mês selecionado).*/
|
|
51
|
-
--
|
|
51
|
+
--ez-calendar__cell--outset--color: var(--color--strokes, #C0C0C0);
|
|
52
52
|
/*@doc Define a cor de fundo das células selecionadas.*/
|
|
53
|
-
--
|
|
53
|
+
--ez-calendar__cell--selected--background-color: var(--color--primary, #008561);
|
|
54
54
|
/*@doc Define a cor do texto da célula selecionada.*/
|
|
55
|
-
--
|
|
55
|
+
--ez-calendar__cell--selected--color: var(--color--inverted, #FFF);
|
|
56
56
|
|
|
57
57
|
/* btn today */
|
|
58
58
|
/*@doc Define a cor do texto do botão "Hoje".*/
|
|
59
|
-
--
|
|
59
|
+
--ez-calendar__btn-today--color: var(--color--primary);
|
|
60
60
|
/*@doc Define a cor de fundo do botão "Hoje" quando o cursor está sobre ele.*/
|
|
61
|
-
--
|
|
61
|
+
--ez-calendar__btn-today--hover--background-color: var(--color--strokes, #C0C0C0);
|
|
62
62
|
/*@doc Define o raio da borda do botão "Hoje".*/
|
|
63
|
-
--
|
|
63
|
+
--ez-calendar__btn-today--border-radius: var(--border--radius-small, 6px);
|
|
64
64
|
|
|
65
65
|
/***************
|
|
66
66
|
host style
|
|
@@ -78,10 +78,10 @@
|
|
|
78
78
|
flex-direction: column;
|
|
79
79
|
|
|
80
80
|
/*public*/
|
|
81
|
-
background-color: var(--
|
|
82
|
-
padding: var(--
|
|
83
|
-
border-radius: var(--
|
|
84
|
-
box-shadow: var(--
|
|
81
|
+
background-color: var(--ez-calendar__body--background-color);
|
|
82
|
+
padding: var(--ez-calendar__body--padding);
|
|
83
|
+
border-radius: var(--ez-calendar__body--border-radius);
|
|
84
|
+
box-shadow: var(--ez-calendar__body--shadow);
|
|
85
85
|
}
|
|
86
86
|
|
|
87
87
|
.calendar__header {
|
|
@@ -92,10 +92,10 @@
|
|
|
92
92
|
margin: var(--space--small, 6px) var(--space--, 12px);
|
|
93
93
|
|
|
94
94
|
/*public*/
|
|
95
|
-
font-family: var(--
|
|
96
|
-
color: var(--
|
|
97
|
-
text-shadow: var(--
|
|
98
|
-
border-bottom: solid var(--
|
|
95
|
+
font-family: var(--ez-calendar--font-family);
|
|
96
|
+
color: var(--ez-calendar--color);
|
|
97
|
+
text-shadow: var(--ez-calendar--text-shadow);
|
|
98
|
+
border-bottom: solid var(--ez-calendar__header-line--stroke) var(--ez-calendar__header-line--color);
|
|
99
99
|
}
|
|
100
100
|
|
|
101
101
|
.calendar__btn-next, .calendar__btn-previous {
|
|
@@ -113,27 +113,27 @@
|
|
|
113
113
|
display: flex;
|
|
114
114
|
|
|
115
115
|
/*public*/
|
|
116
|
-
background-color: var(--
|
|
116
|
+
background-color: var(--ez-calendar__nav-btn--fill);
|
|
117
117
|
/*parece estranho, mas o bg funciona como fill pq aplicaremos a mascara.*/
|
|
118
|
-
width: var(--
|
|
119
|
-
height: var(--
|
|
118
|
+
width: var(--ez-calendar__nav-btn--width);
|
|
119
|
+
height: var(--ez-calendar__nav-btn--height);
|
|
120
120
|
}
|
|
121
121
|
|
|
122
122
|
.calendar__btn-previous::after {
|
|
123
123
|
/*public*/
|
|
124
|
-
-webkit-mask-image: var(--
|
|
125
|
-
mask-image: var(--
|
|
124
|
+
-webkit-mask-image: var(--ez-calendar__nav-btn--previous-image);
|
|
125
|
+
mask-image: var(--ez-calendar__nav-btn--previous-image);
|
|
126
126
|
}
|
|
127
127
|
|
|
128
128
|
.calendar__btn-next::after {
|
|
129
129
|
/*public*/
|
|
130
|
-
-webkit-mask-image: var(--
|
|
131
|
-
mask-image: var(--
|
|
130
|
+
-webkit-mask-image: var(--ez-calendar__nav-btn--next-image);
|
|
131
|
+
mask-image: var(--ez-calendar__nav-btn--next-image);
|
|
132
132
|
}
|
|
133
133
|
|
|
134
134
|
.calendar__btn-next:hover::after, .calendar__btn-previous:hover::after {
|
|
135
135
|
/*public*/
|
|
136
|
-
background-color: var(--
|
|
136
|
+
background-color: var(--ez-calendar__nav-btn--hover--fill);
|
|
137
137
|
}
|
|
138
138
|
|
|
139
139
|
.calendar__lbl-month {
|
|
@@ -142,9 +142,9 @@
|
|
|
142
142
|
font-size: var(--title--medium, 16px);
|
|
143
143
|
|
|
144
144
|
/*public*/
|
|
145
|
-
font-family: var(--
|
|
146
|
-
color: var(--
|
|
147
|
-
text-shadow: var(--
|
|
145
|
+
font-family: var(--ez-calendar--font-family);
|
|
146
|
+
color: var(--ez-calendar--color);
|
|
147
|
+
text-shadow: var(--ez-calendar--text-shadow);
|
|
148
148
|
}
|
|
149
149
|
|
|
150
150
|
.calendar__line {
|
|
@@ -163,24 +163,24 @@
|
|
|
163
163
|
font-size: var(--text--small, 12px);
|
|
164
164
|
|
|
165
165
|
/*public*/
|
|
166
|
-
font-family: var(--
|
|
167
|
-
color: var(--
|
|
168
|
-
text-shadow: var(--
|
|
169
|
-
padding: var(--
|
|
170
|
-
margin: var(--
|
|
171
|
-
min-width: var(--
|
|
172
|
-
border-radius: var(--
|
|
166
|
+
font-family: var(--ez-calendar--font-family);
|
|
167
|
+
color: var(--ez-calendar--color);
|
|
168
|
+
text-shadow: var(--ez-calendar--text-shadow);
|
|
169
|
+
padding: var(--ez-calendar__cell--padding);
|
|
170
|
+
margin: var(--ez-calendar__cell--margin);
|
|
171
|
+
min-width: var(--ez-calendar__cell--width);
|
|
172
|
+
border-radius: var(--ez-calendar__cell--border-radius);
|
|
173
173
|
}
|
|
174
174
|
|
|
175
175
|
|
|
176
176
|
.calendar__cell:hover {
|
|
177
177
|
/*public*/
|
|
178
|
-
background-color: var(--
|
|
178
|
+
background-color: var(--ez-calendar__cell--over--background-color);
|
|
179
179
|
}
|
|
180
180
|
|
|
181
181
|
.calendar__cell--secondary {
|
|
182
182
|
/*public*/
|
|
183
|
-
color: var(--
|
|
183
|
+
color: var(--ez-calendar__cell--outset--color);
|
|
184
184
|
}
|
|
185
185
|
|
|
186
186
|
.calendar__cell--unselectable:hover {
|
|
@@ -195,15 +195,15 @@
|
|
|
195
195
|
font-weight: var(--text-weight--large, 600);
|
|
196
196
|
|
|
197
197
|
/*public*/
|
|
198
|
-
font-family: var(--
|
|
199
|
-
color: var(--
|
|
200
|
-
text-shadow: var(--
|
|
198
|
+
font-family: var(--ez-calendar--font-family);
|
|
199
|
+
color: var(--ez-calendar--color);
|
|
200
|
+
text-shadow: var(--ez-calendar--text-shadow);
|
|
201
201
|
}
|
|
202
202
|
|
|
203
203
|
.calendar__cell--selected, .calendar__cell--selected:hover {
|
|
204
204
|
/*public*/
|
|
205
|
-
background-color: var(--
|
|
206
|
-
color: var(--
|
|
205
|
+
background-color: var(--ez-calendar__cell--selected--background-color);
|
|
206
|
+
color: var(--ez-calendar__cell--selected--color);
|
|
207
207
|
}
|
|
208
208
|
|
|
209
209
|
.calendar__body {
|
|
@@ -227,13 +227,13 @@
|
|
|
227
227
|
padding: var(--space--extra-small, 6px);
|
|
228
228
|
|
|
229
229
|
/*public*/
|
|
230
|
-
font-family: var(--
|
|
231
|
-
text-shadow: var(--
|
|
232
|
-
color: var(--
|
|
233
|
-
border-radius: var(--
|
|
230
|
+
font-family: var(--ez-calendar--font-family);
|
|
231
|
+
text-shadow: var(--ez-calendar--text-shadow);
|
|
232
|
+
color: var(--ez-calendar__btn-today--color);
|
|
233
|
+
border-radius: var(--ez-calendar__btn-today--border-radius);
|
|
234
234
|
}
|
|
235
235
|
|
|
236
236
|
.calendar__btn-today:hover {
|
|
237
237
|
/*public*/
|
|
238
|
-
background-color: var(--
|
|
238
|
+
background-color: var(--ez-calendar__btn-today--hover--background-color);
|
|
239
239
|
}
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { FloatingManager } from
|
|
2
|
-
import { Component, forceUpdate, h, Prop, Method, Event, Watch } from
|
|
1
|
+
import { FloatingManager } from "@sankhyalabs/core";
|
|
2
|
+
import { Component, forceUpdate, h, Prop, Method, Event, Watch } from "@stencil/core";
|
|
3
3
|
export class EzCalendar {
|
|
4
4
|
constructor() {
|
|
5
5
|
this._firstRender = true;
|
|
6
|
-
this._todayLabel =
|
|
7
|
-
this._weekDayLabels = [
|
|
8
|
-
this._monthLabels = [
|
|
6
|
+
this._todayLabel = "Hoje";
|
|
7
|
+
this._weekDayLabels = ["D", "S", "T", "Q", "Q", "S", "S"];
|
|
8
|
+
this._monthLabels = ["Janeiro", "Fevereiro", "Março", "Abril", "Maio", "Junho", "Julho", "Agosto", "Setembro", "Outubro", "Novembro", "Dezembro"];
|
|
9
9
|
/**
|
|
10
10
|
* A data selecionada no calendário
|
|
11
11
|
*/
|
|
@@ -26,18 +26,21 @@ export class EzCalendar {
|
|
|
26
26
|
if (this.floating) {
|
|
27
27
|
this._floatingID = FloatingManager.float(this._box, this._container, { autoClose: true, top, left, bottom, right });
|
|
28
28
|
window.requestAnimationFrame(() => {
|
|
29
|
-
this._box.scrollIntoView({ behavior:
|
|
29
|
+
this._box.scrollIntoView({ behavior: "smooth", block: "nearest", inline: "nearest" });
|
|
30
30
|
});
|
|
31
31
|
}
|
|
32
32
|
}
|
|
33
|
+
/**
|
|
34
|
+
* Método necessário para ajustar o posicionamento do calendar acima ou abaixo do ez-date-input conforme a disponibilidade de espaço.
|
|
35
|
+
*/
|
|
33
36
|
async fitVertical(topOffset, bottomOffset) {
|
|
34
37
|
const neededHeight = this._container.getBoundingClientRect().bottom + this._calendarHeight;
|
|
35
38
|
const availableBottom = (window.innerHeight || document.documentElement.clientHeight) > neededHeight;
|
|
36
39
|
if (availableBottom) {
|
|
37
|
-
this.show(topOffset +
|
|
40
|
+
this.show(topOffset + "px", undefined, "unset");
|
|
38
41
|
}
|
|
39
42
|
else {
|
|
40
|
-
this.show(
|
|
43
|
+
this.show("unset", undefined, bottomOffset + "px");
|
|
41
44
|
}
|
|
42
45
|
}
|
|
43
46
|
/**
|
|
@@ -223,7 +226,7 @@ export class EzCalendar {
|
|
|
223
226
|
"return": "Promise<void>"
|
|
224
227
|
},
|
|
225
228
|
"docs": {
|
|
226
|
-
"text": "",
|
|
229
|
+
"text": "M\u00E9todo necess\u00E1rio para ajustar o posicionamento do calendar acima ou abaixo do ez-date-input conforme a disponibilidade de espa\u00E7o.",
|
|
227
230
|
"tags": []
|
|
228
231
|
}
|
|
229
232
|
},
|
|
@@ -69,7 +69,7 @@ export const Field = ({ dataUnit, field, forceScroll, enabled }) => {
|
|
|
69
69
|
const headers = strHeaders ? JSON.parse(strHeaders) : {};
|
|
70
70
|
const maxfiles = Number(getProp(properties, "maxfiles") || 0);
|
|
71
71
|
return (h("div", { class: "col col--sd-12 padding--small" }, loadingData ? h("place-holder", null) :
|
|
72
|
-
h("ez-upload", { value: value, label: formattedLabel, enabled: isEnabled, onEzChange: (event) => changeFieldHandler(event.detail),
|
|
72
|
+
h("ez-upload", { value: value, label: formattedLabel, enabled: isEnabled, onEzChange: (event) => changeFieldHandler(event.detail), urlUpload: target, requestHeaders: headers, maxFiles: maxfiles })));
|
|
73
73
|
case 'DATE':
|
|
74
74
|
return h("div", { class: "col col--sd-12 col--tb-3 padding--small" }, loadingData ? h("place-holder", null) :
|
|
75
75
|
h("ez-date-input", { value: !value ? null : DateUtils.clearTime(value), label: formattedLabel, enabled: isEnabled, onEzChange: (event) => changeFieldHandler(event.target['value']), errorMessage: errorMessage, ref: elem => scrollToView(forceScroll, elem), key: key }));
|
|
@@ -97,7 +97,7 @@ export class EzTimeInput {
|
|
|
97
97
|
render() {
|
|
98
98
|
return (h(Host, null,
|
|
99
99
|
h("ez-text-input", { ref: (el) => this._inputElem = el, value: this.viewValue, enabled: this.enabled, label: this.label, onInput: () => { this.handleChange(); }, onFocusout: () => { this.handleFocusout(); }, errorMessage: this.errorMessage },
|
|
100
|
-
h("ez-icon", { slot: "leftIcon", href: getAssetPath("
|
|
100
|
+
h("ez-icon", { slot: "leftIcon", href: getAssetPath("../assets/actions-sprite.svg") + "#timer-outline" }))));
|
|
101
101
|
}
|
|
102
102
|
static get is() { return "ez-time-input"; }
|
|
103
103
|
static get encapsulation() { return "shadow"; }
|
|
@@ -2,50 +2,50 @@
|
|
|
2
2
|
|
|
3
3
|
/* dimensions */
|
|
4
4
|
/*@doc Define a altura do componente.*/
|
|
5
|
-
--
|
|
5
|
+
--ez-upload--height: 42px;
|
|
6
6
|
/*@doc Define a largura do componente.*/
|
|
7
|
-
--
|
|
7
|
+
--ez-upload--width: 100%;
|
|
8
8
|
/*@doc Define a largura do slot que contém o ícone.*/
|
|
9
|
-
--
|
|
9
|
+
--ez-upload__icon--width: 48px;
|
|
10
10
|
|
|
11
11
|
/* box--container */
|
|
12
12
|
/*@doc Define a cor de fundo do container.*/
|
|
13
|
-
--
|
|
13
|
+
--ez-upload__container--background-color: var(--background--medium, #d2dce9);
|
|
14
14
|
|
|
15
15
|
/* colors */
|
|
16
16
|
/*@doc Define a cor de fundo do container.*/
|
|
17
|
-
--
|
|
17
|
+
--ez-upload__color--primary: var(--color--primary, #008561);
|
|
18
18
|
|
|
19
19
|
/* espaçamento */
|
|
20
20
|
/*@doc Define os espaçamentos extra pequenos no componente.*/
|
|
21
|
-
--
|
|
21
|
+
--ez-upload--padding--extra-small: var(--space--extra-small, 3px);
|
|
22
22
|
/*@doc Define os espaçamentos pequenos no componente.*/
|
|
23
|
-
--
|
|
23
|
+
--ez-upload--padding--small: var(--space--small, 6px);
|
|
24
24
|
/*@doc Define os espaçamentos médios no componente.*/
|
|
25
|
-
--
|
|
25
|
+
--ez-upload--padding--medium: var(--space--medium, 12px);
|
|
26
26
|
/*@doc Define os espaçamentos grandes no componente.*/
|
|
27
|
-
--
|
|
27
|
+
--ez-upload--padding--large: var(--space--large, 24px);
|
|
28
28
|
|
|
29
29
|
/* border */
|
|
30
30
|
/*@doc Define a cor das bordas no componente.*/
|
|
31
|
-
--
|
|
31
|
+
--ez-upload__border--color: var(--color-strokes, #DCE0E8);
|
|
32
32
|
|
|
33
33
|
/* text */
|
|
34
34
|
/*@doc Define as sombras dos textos do componente.*/
|
|
35
|
-
--
|
|
35
|
+
--ez-upload--text-shadow: var(--text-shadow, 0 0 0 #353535, 0 0 1px transparent);
|
|
36
36
|
/*@doc Define a cor dos textos do componente.*/
|
|
37
|
-
--
|
|
37
|
+
--ez-upload--text--primary: var(--text-primary, #626e82);
|
|
38
38
|
/*@doc Define o tamanho dos textos do componente.*/
|
|
39
|
-
--
|
|
39
|
+
--ez-upload--font-size: var(--text--medium, 14px);
|
|
40
40
|
/*@doc Define a família dos textos do componente.*/
|
|
41
|
-
--
|
|
41
|
+
--ez-upload--font-family: var(--font-pattern, Arial);
|
|
42
42
|
/*@doc Define o peso dos textos do componente.*/
|
|
43
|
-
--
|
|
43
|
+
--ez-upload--font-weight: var(--text-weight--large, 500);
|
|
44
44
|
|
|
45
45
|
/*@doc Contém o ícone de cancelamento.*/
|
|
46
|
-
--
|
|
46
|
+
--ez-upload__btn__cancel-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" version="1.1" height="8x" width="8px"><path d="M 8,0.8 7.2,0 4,3.2 0.8,0 0,0.8 3.2,4 0,7.2 0.8,8 4,4.8 7.2,8 8,7.2 4.8,4 Z"/></svg>');
|
|
47
47
|
/*@doc Contém o ícone de arquivo.*/
|
|
48
|
-
--
|
|
48
|
+
--ez-upload__file-icon-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" version="1.1" height="11x" width="9px"><path d="M 1.2272719,8.4999999 V 2.75 c 0,-1.1045695 1.4652499,-2 3.2727273,-2 1.8074777,0 3.2727281,0.8954305 3.2727281,2 V 8.9999999 C 7.7727273,9.690356 6.8569456,10.25 5.7272719,10.25 4.5975985,10.25 3.6818174,9.690356 3.6818174,8.9999999 V 3.75 c 0,-0.2761425 0.3663125,-0.5 0.8181818,-0.5 0.4518694,0 0.8181818,0.2238575 0.8181818,0.5 V 8.4999999 H 6.5454537 V 3.75 C 6.5454537,3.059644 5.6296725,2.5 4.4999992,2.5 3.3703258,2.5 2.4545446,3.059644 2.4545446,3.75 V 8.9999999 C 2.4545446,10.10457 3.9197945,11 5.7272719,11 7.5347496,11 9,10.10457 9,8.9999999 V 2.75 C 9,1.231217 6.9852809,0 4.4999992,0 2.0147181,5e-7 0,1.231217 0,2.75 v 5.7499999 z"/></svg>');
|
|
49
49
|
|
|
50
50
|
/*private*/
|
|
51
51
|
display: flex;
|
|
@@ -53,17 +53,17 @@
|
|
|
53
53
|
position: relative;
|
|
54
54
|
|
|
55
55
|
/*public*/
|
|
56
|
-
font-family: var(--
|
|
57
|
-
font-size: var(--
|
|
58
|
-
width: var(--
|
|
59
|
-
font-weight: var(--
|
|
56
|
+
font-family: var(--ez-upload--font-family);
|
|
57
|
+
font-size: var(--ez-upload--font-size);
|
|
58
|
+
width: var(--ez-upload--width);
|
|
59
|
+
font-weight: var(--ez-upload--font-weight);
|
|
60
60
|
}
|
|
61
61
|
|
|
62
62
|
.iu {
|
|
63
63
|
display: flex;
|
|
64
64
|
flex-wrap: wrap;
|
|
65
|
-
background-color: var(--
|
|
66
|
-
padding: var(--
|
|
65
|
+
background-color: var(--ez-upload__container--background-color);
|
|
66
|
+
padding: var(--ez-upload--padding--small);
|
|
67
67
|
width: 100%;
|
|
68
68
|
border-radius: 12px;
|
|
69
69
|
box-sizing: border-box;
|
|
@@ -75,7 +75,7 @@
|
|
|
75
75
|
flex-wrap: wrap;
|
|
76
76
|
justify-content: center;
|
|
77
77
|
align-items: center;
|
|
78
|
-
border: 2px dashed var(--
|
|
78
|
+
border: 2px dashed var(--ez-upload__border--color);
|
|
79
79
|
border-radius: 6px;
|
|
80
80
|
box-sizing: border-box;
|
|
81
81
|
}
|
|
@@ -85,7 +85,7 @@
|
|
|
85
85
|
flex-wrap: wrap;
|
|
86
86
|
justify-content: flex-start;
|
|
87
87
|
width: 100%;
|
|
88
|
-
padding: 0 var(--
|
|
88
|
+
padding: 0 var(--ez-upload--padding--medium) var(--ez-upload--padding--medium) var(--ez-upload--padding--medium);
|
|
89
89
|
box-sizing: border-box;
|
|
90
90
|
}
|
|
91
91
|
|
|
@@ -95,7 +95,7 @@
|
|
|
95
95
|
justify-content: flex-start;
|
|
96
96
|
align-items: center;
|
|
97
97
|
align-self: center;
|
|
98
|
-
padding-bottom: var(--
|
|
98
|
+
padding-bottom: var(--ez-upload--padding--extra-small);
|
|
99
99
|
box-sizing: border-box;
|
|
100
100
|
white-space: nowrap;
|
|
101
101
|
overflow: hidden;
|
|
@@ -118,7 +118,7 @@
|
|
|
118
118
|
justify-content: center;
|
|
119
119
|
align-items: center;
|
|
120
120
|
height: 100%;
|
|
121
|
-
border: 1px dashed var(--
|
|
121
|
+
border: 1px dashed var(--ez-upload__border--color);
|
|
122
122
|
border-radius: 6px;
|
|
123
123
|
box-sizing: border-box;
|
|
124
124
|
}
|
|
@@ -126,7 +126,7 @@
|
|
|
126
126
|
.box__container {
|
|
127
127
|
display: flex;
|
|
128
128
|
flex-wrap: wrap;
|
|
129
|
-
background-color: var(--
|
|
129
|
+
background-color: var(--ez-upload__container--background-color);
|
|
130
130
|
padding: 6px;
|
|
131
131
|
width: 100%;
|
|
132
132
|
border-radius: 12px;
|
|
@@ -145,7 +145,7 @@ progress[value] {
|
|
|
145
145
|
display: flex;
|
|
146
146
|
width: 100%;
|
|
147
147
|
appearance: none;
|
|
148
|
-
border: 1px solid var(--
|
|
148
|
+
border: 1px solid var(--ez-upload__border--color);
|
|
149
149
|
height: 12px;
|
|
150
150
|
justify-content: flex-start;
|
|
151
151
|
align-items: center;
|
|
@@ -165,7 +165,7 @@ progress[value]::-webkit-progress-bar {
|
|
|
165
165
|
progress[value]::-webkit-progress-value {
|
|
166
166
|
display: flex;
|
|
167
167
|
width: 100%;
|
|
168
|
-
background-color: var(--
|
|
168
|
+
background-color: var(--ez-upload__color--primary);
|
|
169
169
|
}
|
|
170
170
|
|
|
171
171
|
.text--center {
|
|
@@ -183,8 +183,8 @@ progress[value]::-webkit-progress-value {
|
|
|
183
183
|
}
|
|
184
184
|
|
|
185
185
|
.text--primary {
|
|
186
|
-
color: var(--
|
|
187
|
-
text-shadow: var(--
|
|
186
|
+
color: var(--ez-upload--text--primary);
|
|
187
|
+
text-shadow: var(--ez-upload--text-shadow);
|
|
188
188
|
}
|
|
189
189
|
|
|
190
190
|
.text--ellipsis {
|
|
@@ -214,8 +214,8 @@ progress[value]::-webkit-progress-value {
|
|
|
214
214
|
background-color: var(--text--primary, #008561);
|
|
215
215
|
width: 8px;
|
|
216
216
|
height: 8px;
|
|
217
|
-
-webkit-mask-image: var(--
|
|
218
|
-
mask-image: var(--
|
|
217
|
+
-webkit-mask-image: var(--ez-upload__btn__cancel-image);
|
|
218
|
+
mask-image: var(--ez-upload__btn__cancel-image);
|
|
219
219
|
}
|
|
220
220
|
|
|
221
221
|
.iu_header {
|
|
@@ -232,11 +232,11 @@ progress[value]::-webkit-progress-value {
|
|
|
232
232
|
white-space: nowrap;
|
|
233
233
|
|
|
234
234
|
/*public*/
|
|
235
|
-
font-family: var(--
|
|
235
|
+
font-family: var(--ez-upload--font-family);
|
|
236
236
|
font-size: var(--text--extra-small);
|
|
237
|
-
font-weight: var(--
|
|
238
|
-
color: var(--
|
|
239
|
-
text-shadow: var(--
|
|
237
|
+
font-weight: var(--ez-upload--font-weight);
|
|
238
|
+
color: var(--ez-upload--text--primary);
|
|
239
|
+
text-shadow: var(--ez-upload--text-shadow);
|
|
240
240
|
}
|
|
241
241
|
|
|
242
242
|
.iu__file-icon {
|
|
@@ -256,8 +256,8 @@ progress[value]::-webkit-progress-value {
|
|
|
256
256
|
background-color: var(--text--primary, #626e82);
|
|
257
257
|
width: 9px;
|
|
258
258
|
height: 11px;
|
|
259
|
-
-webkit-mask-image: var(--
|
|
260
|
-
mask-image: var(--
|
|
259
|
+
-webkit-mask-image: var(--ez-upload__file-icon-image);
|
|
260
|
+
mask-image: var(--ez-upload__file-icon-image);
|
|
261
261
|
}
|
|
262
262
|
|
|
263
263
|
.iu__file-icon:disabled::after {
|
|
@@ -268,7 +268,7 @@ progress[value]::-webkit-progress-value {
|
|
|
268
268
|
justify-content: center;
|
|
269
269
|
display: flex;
|
|
270
270
|
cursor: pointer;
|
|
271
|
-
padding: var(--
|
|
271
|
+
padding: var(--ez-upload--padding--large) 0px;
|
|
272
272
|
box-sizing: border-box;
|
|
273
273
|
}
|
|
274
274
|
|