ilibras-widget 1.5.0 → 1.5.2
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/CHANGELOG.md +53 -0
- package/dist/ilibras-widget.cjs +98 -94
- package/dist/ilibras-widget.js +98 -94
- package/dist/ilibras-widget.mjs +98 -94
- package/package.json +1 -1
package/dist/ilibras-widget.mjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* iLibras Widget v1.5.
|
|
2
|
+
* iLibras Widget v1.5.2
|
|
3
3
|
* https://github.com/Dimendes-Solucoes/Ilibras_widget
|
|
4
4
|
* Licença MIT
|
|
5
5
|
*
|
|
@@ -27,28 +27,28 @@ var CSS = `/**
|
|
|
27
27
|
}
|
|
28
28
|
|
|
29
29
|
/* Posicionamento */
|
|
30
|
-
.ilibras-widget-bottom-right {
|
|
30
|
+
#ilibras-widget-container .ilibras-widget-bottom-right {
|
|
31
31
|
bottom: 30px;
|
|
32
32
|
right: 30px;
|
|
33
33
|
}
|
|
34
34
|
|
|
35
|
-
.ilibras-widget-bottom-left {
|
|
35
|
+
#ilibras-widget-container .ilibras-widget-bottom-left {
|
|
36
36
|
bottom: 30px;
|
|
37
37
|
left: 30px;
|
|
38
38
|
}
|
|
39
39
|
|
|
40
|
-
.ilibras-widget-top-right {
|
|
40
|
+
#ilibras-widget-container .ilibras-widget-top-right {
|
|
41
41
|
top: 30px;
|
|
42
42
|
right: 30px;
|
|
43
43
|
}
|
|
44
44
|
|
|
45
|
-
.ilibras-widget-top-left {
|
|
45
|
+
#ilibras-widget-container .ilibras-widget-top-left {
|
|
46
46
|
top: 30px;
|
|
47
47
|
left: 30px;
|
|
48
48
|
}
|
|
49
49
|
|
|
50
50
|
/* Botão flutuante (apenas ícone) */
|
|
51
|
-
.ilibras-widget-button {
|
|
51
|
+
#ilibras-widget-container .ilibras-widget-button {
|
|
52
52
|
position: relative;
|
|
53
53
|
border: none;
|
|
54
54
|
font: inherit;
|
|
@@ -70,23 +70,23 @@ var CSS = `/**
|
|
|
70
70
|
z-index: 10001;
|
|
71
71
|
}
|
|
72
72
|
|
|
73
|
-
.ilibras-widget-button img {
|
|
73
|
+
#ilibras-widget-container .ilibras-widget-button img {
|
|
74
74
|
width: 64px;
|
|
75
75
|
height: 64px;
|
|
76
76
|
}
|
|
77
77
|
|
|
78
78
|
.ilibras-widget-button:hover,
|
|
79
|
-
.ilibras-widget-button:active {
|
|
79
|
+
#ilibras-widget-container .ilibras-widget-button:active {
|
|
80
80
|
transform: none;
|
|
81
81
|
box-shadow: none;
|
|
82
82
|
}
|
|
83
83
|
|
|
84
|
-
.ilibras-widget-button svg {
|
|
84
|
+
#ilibras-widget-container .ilibras-widget-button svg {
|
|
85
85
|
filter: none;
|
|
86
86
|
}
|
|
87
87
|
|
|
88
88
|
/* Badge de notificação */
|
|
89
|
-
.ilibras-widget-badge {
|
|
89
|
+
#ilibras-widget-container .ilibras-widget-badge {
|
|
90
90
|
position: absolute;
|
|
91
91
|
top: -2px;
|
|
92
92
|
right: -2px;
|
|
@@ -114,7 +114,7 @@ var CSS = `/**
|
|
|
114
114
|
}
|
|
115
115
|
|
|
116
116
|
/* Modal */
|
|
117
|
-
.ilibras-widget-modal {
|
|
117
|
+
#ilibras-widget-container .ilibras-widget-modal {
|
|
118
118
|
position: fixed;
|
|
119
119
|
/* responsivo ao tamanho do monitor */
|
|
120
120
|
width: clamp(320px, 26vw, 480px);
|
|
@@ -131,7 +131,7 @@ var CSS = `/**
|
|
|
131
131
|
overflow: hidden;
|
|
132
132
|
}
|
|
133
133
|
|
|
134
|
-
.ilibras-widget-modal-open {
|
|
134
|
+
#ilibras-widget-container .ilibras-widget-modal-open {
|
|
135
135
|
opacity: 1;
|
|
136
136
|
visibility: visible;
|
|
137
137
|
transform: translateY(0) scale(1);
|
|
@@ -139,26 +139,26 @@ var CSS = `/**
|
|
|
139
139
|
|
|
140
140
|
/* Posicionamento do modal baseado na posição do botão */
|
|
141
141
|
.ilibras-widget-bottom-right .ilibras-widget-modal,
|
|
142
|
-
.ilibras-widget-bottom-left .ilibras-widget-modal {
|
|
142
|
+
#ilibras-widget-container .ilibras-widget-bottom-left .ilibras-widget-modal {
|
|
143
143
|
bottom: 105px;
|
|
144
144
|
}
|
|
145
145
|
|
|
146
146
|
.ilibras-widget-top-right .ilibras-widget-modal,
|
|
147
|
-
.ilibras-widget-top-left .ilibras-widget-modal {
|
|
147
|
+
#ilibras-widget-container .ilibras-widget-top-left .ilibras-widget-modal {
|
|
148
148
|
top: 105px;
|
|
149
149
|
}
|
|
150
150
|
|
|
151
151
|
.ilibras-widget-bottom-right .ilibras-widget-modal,
|
|
152
|
-
.ilibras-widget-top-right .ilibras-widget-modal {
|
|
152
|
+
#ilibras-widget-container .ilibras-widget-top-right .ilibras-widget-modal {
|
|
153
153
|
right: 0;
|
|
154
154
|
}
|
|
155
155
|
|
|
156
156
|
.ilibras-widget-bottom-left .ilibras-widget-modal,
|
|
157
|
-
.ilibras-widget-top-left .ilibras-widget-modal {
|
|
157
|
+
#ilibras-widget-container .ilibras-widget-top-left .ilibras-widget-modal {
|
|
158
158
|
left: 0;
|
|
159
159
|
}
|
|
160
160
|
|
|
161
|
-
.ilibras-widget-header {
|
|
161
|
+
#ilibras-widget-container .ilibras-widget-header {
|
|
162
162
|
background: white;
|
|
163
163
|
padding: 14px 24px;
|
|
164
164
|
display: flex;
|
|
@@ -169,18 +169,18 @@ var CSS = `/**
|
|
|
169
169
|
border-bottom: 2px solid rgba(53,122,189,0.06);
|
|
170
170
|
}
|
|
171
171
|
|
|
172
|
-
.ilibras-widget-header-content {
|
|
172
|
+
#ilibras-widget-container .ilibras-widget-header-content {
|
|
173
173
|
display: flex;
|
|
174
174
|
align-items: center;
|
|
175
175
|
gap: 16px;
|
|
176
176
|
flex: 1;
|
|
177
177
|
}
|
|
178
178
|
|
|
179
|
-
.ilibras-widget-logo {
|
|
179
|
+
#ilibras-widget-container .ilibras-widget-logo {
|
|
180
180
|
display: none !important;
|
|
181
181
|
}
|
|
182
182
|
|
|
183
|
-
.ilibras-widget-title {
|
|
183
|
+
#ilibras-widget-container .ilibras-widget-title {
|
|
184
184
|
padding-left: 0;
|
|
185
185
|
font-size: 17px;
|
|
186
186
|
font-weight: 700;
|
|
@@ -188,7 +188,7 @@ var CSS = `/**
|
|
|
188
188
|
color: #1f4f7a;
|
|
189
189
|
}
|
|
190
190
|
|
|
191
|
-
.ilibras-widget-close {
|
|
191
|
+
#ilibras-widget-container .ilibras-widget-close {
|
|
192
192
|
background: transparent;
|
|
193
193
|
border: none;
|
|
194
194
|
cursor: pointer;
|
|
@@ -203,22 +203,22 @@ var CSS = `/**
|
|
|
203
203
|
flex-shrink: 0;
|
|
204
204
|
}
|
|
205
205
|
|
|
206
|
-
.ilibras-widget-close:hover {
|
|
206
|
+
#ilibras-widget-container .ilibras-widget-close:hover {
|
|
207
207
|
background: rgba(53,122,189,0.08);
|
|
208
208
|
transform: translateY(-1px);
|
|
209
209
|
}
|
|
210
210
|
|
|
211
|
-
.ilibras-widget-close:active {
|
|
211
|
+
#ilibras-widget-container .ilibras-widget-close:active {
|
|
212
212
|
background: rgba(53,122,189,0.12);
|
|
213
213
|
}
|
|
214
214
|
|
|
215
215
|
/* Body do modal */
|
|
216
|
-
.ilibras-widget-body {
|
|
216
|
+
#ilibras-widget-container .ilibras-widget-body {
|
|
217
217
|
padding: 20px !important;
|
|
218
218
|
background: white; /* fundo branco do widget */
|
|
219
219
|
}
|
|
220
220
|
|
|
221
|
-
.ilibras-widget-message {
|
|
221
|
+
#ilibras-widget-container .ilibras-widget-message {
|
|
222
222
|
background: rgba(74,144,226,0.06); /* leve tom da cor da logo */
|
|
223
223
|
border-radius: 14px;
|
|
224
224
|
border: 1px solid rgba(74,144,226,0.08);
|
|
@@ -229,19 +229,19 @@ var CSS = `/**
|
|
|
229
229
|
}
|
|
230
230
|
|
|
231
231
|
/* Formulário */
|
|
232
|
-
.ilibras-widget-form {
|
|
232
|
+
#ilibras-widget-container .ilibras-widget-form {
|
|
233
233
|
display: flex;
|
|
234
234
|
flex-direction: column;
|
|
235
235
|
gap: 20px;
|
|
236
236
|
}
|
|
237
237
|
|
|
238
|
-
.ilibras-widget-form-group {
|
|
238
|
+
#ilibras-widget-container .ilibras-widget-form-group {
|
|
239
239
|
display: flex;
|
|
240
240
|
flex-direction: column;
|
|
241
241
|
gap: 8px;
|
|
242
242
|
}
|
|
243
243
|
|
|
244
|
-
.ilibras-widget-form-group label {
|
|
244
|
+
#ilibras-widget-container .ilibras-widget-form-group label {
|
|
245
245
|
font-size: 13px;
|
|
246
246
|
font-weight: 500;
|
|
247
247
|
color: #495057;
|
|
@@ -249,7 +249,7 @@ var CSS = `/**
|
|
|
249
249
|
}
|
|
250
250
|
|
|
251
251
|
.ilibras-widget-form-group input[type="text"],
|
|
252
|
-
.ilibras-widget-form-group input[type="tel"] {
|
|
252
|
+
#ilibras-widget-container .ilibras-widget-form-group input[type="tel"] {
|
|
253
253
|
background: #ffffff;
|
|
254
254
|
border: 1px solid rgba(20,30,45,0.06);
|
|
255
255
|
padding: 12px 14px !important;
|
|
@@ -258,7 +258,7 @@ var CSS = `/**
|
|
|
258
258
|
}
|
|
259
259
|
|
|
260
260
|
.ilibras-widget-form-group input[type="text"]:focus,
|
|
261
|
-
.ilibras-widget-form-group input[type="tel"]:focus {
|
|
261
|
+
#ilibras-widget-container .ilibras-widget-form-group input[type="tel"]:focus {
|
|
262
262
|
background: white;
|
|
263
263
|
border-color: #357ABD;
|
|
264
264
|
box-shadow: 0 6px 18px rgba(53,122,189,0.08);
|
|
@@ -266,12 +266,12 @@ var CSS = `/**
|
|
|
266
266
|
}
|
|
267
267
|
|
|
268
268
|
.ilibras-widget-form-group input[type="text"]::placeholder,
|
|
269
|
-
.ilibras-widget-form-group input[type="tel"]::placeholder {
|
|
269
|
+
#ilibras-widget-container .ilibras-widget-form-group input[type="tel"]::placeholder {
|
|
270
270
|
color: #6c757d;
|
|
271
271
|
}
|
|
272
272
|
|
|
273
273
|
/* Checkbox customizado */
|
|
274
|
-
.ilibras-widget-checkbox-label {
|
|
274
|
+
#ilibras-widget-container .ilibras-widget-checkbox-label {
|
|
275
275
|
display: flex;
|
|
276
276
|
align-items: flex-start;
|
|
277
277
|
gap: 10px;
|
|
@@ -283,7 +283,7 @@ var CSS = `/**
|
|
|
283
283
|
line-height: 1.4;
|
|
284
284
|
}
|
|
285
285
|
|
|
286
|
-
.ilibras-widget-checkbox-label input[type="checkbox"] {
|
|
286
|
+
#ilibras-widget-container .ilibras-widget-checkbox-label input[type="checkbox"] {
|
|
287
287
|
margin-top: 2px;
|
|
288
288
|
width: 18px;
|
|
289
289
|
height: 18px;
|
|
@@ -291,13 +291,13 @@ var CSS = `/**
|
|
|
291
291
|
accent-color: #357ABD;
|
|
292
292
|
}
|
|
293
293
|
|
|
294
|
-
.ilibras-widget-checkbox-label span {
|
|
294
|
+
#ilibras-widget-container .ilibras-widget-checkbox-label span {
|
|
295
295
|
flex: 1;
|
|
296
296
|
}
|
|
297
297
|
|
|
298
298
|
/* Botão de submit */
|
|
299
299
|
|
|
300
|
-
.ilibras-widget-submit {
|
|
300
|
+
#ilibras-widget-container .ilibras-widget-submit {
|
|
301
301
|
padding: 12px 14px !important;
|
|
302
302
|
border-radius: 10px;
|
|
303
303
|
font-size: 15px;
|
|
@@ -310,17 +310,17 @@ var CSS = `/**
|
|
|
310
310
|
transition: transform 0.14s ease, box-shadow 0.14s ease, opacity 0.12s;
|
|
311
311
|
}
|
|
312
312
|
|
|
313
|
-
.ilibras-widget-submit:hover {
|
|
313
|
+
#ilibras-widget-container .ilibras-widget-submit:hover {
|
|
314
314
|
transform: translateY(-2px);
|
|
315
315
|
box-shadow: 0 8px 22px rgba(53,122,189,0.18);
|
|
316
316
|
}
|
|
317
317
|
|
|
318
|
-
.ilibras-widget-submit:active {
|
|
318
|
+
#ilibras-widget-container .ilibras-widget-submit:active {
|
|
319
319
|
transform: translateY(0);
|
|
320
320
|
box-shadow: 0 4px 10px rgba(53,122,189,0.12);
|
|
321
321
|
}
|
|
322
322
|
|
|
323
|
-
.ilibras-widget-submit:disabled {
|
|
323
|
+
#ilibras-widget-container .ilibras-widget-submit:disabled {
|
|
324
324
|
opacity: 0.6;
|
|
325
325
|
cursor: not-allowed;
|
|
326
326
|
transform: none;
|
|
@@ -329,7 +329,7 @@ var CSS = `/**
|
|
|
329
329
|
/* Agendar é a segunda escolha, não a concorrente: contorno em vez de preenchido,
|
|
330
330
|
para a hierarquia entre "agora" e "depois" ficar visível antes da leitura. O
|
|
331
331
|
form tem gap de 20px; as margens negativas colam o botão na dica que o explica. */
|
|
332
|
-
.ilibras-widget-agendar {
|
|
332
|
+
#ilibras-widget-container .ilibras-widget-agendar {
|
|
333
333
|
padding: 11px 14px !important;
|
|
334
334
|
border-radius: 10px;
|
|
335
335
|
font-size: 15px;
|
|
@@ -343,73 +343,73 @@ var CSS = `/**
|
|
|
343
343
|
margin-top: -8px;
|
|
344
344
|
}
|
|
345
345
|
|
|
346
|
-
.ilibras-widget-agendar:hover:not(:disabled) {
|
|
346
|
+
#ilibras-widget-container .ilibras-widget-agendar:hover:not(:disabled) {
|
|
347
347
|
background: #F2F7FD;
|
|
348
348
|
border-color: #357ABD;
|
|
349
349
|
}
|
|
350
350
|
|
|
351
|
-
.ilibras-widget-agendar:disabled {
|
|
351
|
+
#ilibras-widget-container .ilibras-widget-agendar:disabled {
|
|
352
352
|
opacity: 0.6;
|
|
353
353
|
cursor: not-allowed;
|
|
354
354
|
}
|
|
355
355
|
|
|
356
|
-
.ilibras-widget-dica-agendar {
|
|
356
|
+
#ilibras-widget-container .ilibras-widget-dica-agendar {
|
|
357
357
|
margin-top: -14px;
|
|
358
358
|
text-align: center;
|
|
359
359
|
}
|
|
360
360
|
|
|
361
361
|
/* Responsividade */
|
|
362
362
|
@media (max-width: 480px) {
|
|
363
|
-
.ilibras-widget-modal {
|
|
363
|
+
#ilibras-widget-container .ilibras-widget-modal {
|
|
364
364
|
width: calc(100vw - 40px);
|
|
365
365
|
max-width: 100%;
|
|
366
366
|
}
|
|
367
367
|
|
|
368
368
|
.ilibras-widget-bottom-right,
|
|
369
|
-
.ilibras-widget-bottom-left {
|
|
369
|
+
#ilibras-widget-container .ilibras-widget-bottom-left {
|
|
370
370
|
bottom: 20px;
|
|
371
371
|
left: 20px !important;
|
|
372
372
|
right: 20px !important;
|
|
373
373
|
}
|
|
374
374
|
|
|
375
375
|
.ilibras-widget-top-right,
|
|
376
|
-
.ilibras-widget-top-left {
|
|
376
|
+
#ilibras-widget-container .ilibras-widget-top-left {
|
|
377
377
|
top: 20px;
|
|
378
378
|
left: 20px !important;
|
|
379
379
|
right: 20px !important;
|
|
380
380
|
}
|
|
381
381
|
|
|
382
|
-
.ilibras-widget-button {
|
|
382
|
+
#ilibras-widget-container .ilibras-widget-button {
|
|
383
383
|
width: 64px;
|
|
384
384
|
height: 64px;
|
|
385
385
|
}
|
|
386
386
|
|
|
387
|
-
.ilibras-widget-button svg {
|
|
387
|
+
#ilibras-widget-container .ilibras-widget-button svg {
|
|
388
388
|
width: 32px;
|
|
389
389
|
height: 32px;
|
|
390
390
|
}
|
|
391
391
|
|
|
392
|
-
.ilibras-widget-modal {
|
|
392
|
+
#ilibras-widget-container .ilibras-widget-modal {
|
|
393
393
|
bottom: 94px !important;
|
|
394
394
|
right: 0 !important;
|
|
395
395
|
left: 0 !important;
|
|
396
396
|
margin: 0 20px;
|
|
397
397
|
}
|
|
398
398
|
|
|
399
|
-
.ilibras-widget-body {
|
|
399
|
+
#ilibras-widget-container .ilibras-widget-body {
|
|
400
400
|
padding: 18px 16px;
|
|
401
401
|
}
|
|
402
402
|
}
|
|
403
403
|
|
|
404
404
|
@media (min-width: 1600px) {
|
|
405
|
-
.ilibras-widget-modal {
|
|
405
|
+
#ilibras-widget-container .ilibras-widget-modal {
|
|
406
406
|
width: clamp(360px, 20vw, 560px);
|
|
407
407
|
}
|
|
408
408
|
}
|
|
409
409
|
|
|
410
410
|
.ilibras-widget-button:focus-visible,
|
|
411
411
|
.ilibras-widget-close:focus-visible,
|
|
412
|
-
.ilibras-widget-submit:focus-visible {
|
|
412
|
+
#ilibras-widget-container .ilibras-widget-submit:focus-visible {
|
|
413
413
|
outline: 3px solid rgba(53,122,189,0.18);
|
|
414
414
|
outline-offset: 3px;
|
|
415
415
|
}
|
|
@@ -435,43 +435,43 @@ var CSS = `/**
|
|
|
435
435
|
/* Accessibilidade */
|
|
436
436
|
.ilibras-widget-button:focus-visible,
|
|
437
437
|
.ilibras-widget-close:focus-visible,
|
|
438
|
-
.ilibras-widget-submit:focus-visible {
|
|
438
|
+
#ilibras-widget-container .ilibras-widget-submit:focus-visible {
|
|
439
439
|
outline: 3px solid #4A90E2;
|
|
440
440
|
outline-offset: 2px;
|
|
441
441
|
}
|
|
442
442
|
|
|
443
443
|
/* Tema escuro (opcional) */
|
|
444
444
|
@media (prefers-color-scheme: dark) {
|
|
445
|
-
.ilibras-widget-modal {
|
|
445
|
+
#ilibras-widget-container .ilibras-widget-modal {
|
|
446
446
|
background: #1e1e1e;
|
|
447
447
|
}
|
|
448
448
|
|
|
449
|
-
.ilibras-widget-body {
|
|
449
|
+
#ilibras-widget-container .ilibras-widget-body {
|
|
450
450
|
background: #2d2d2d;
|
|
451
451
|
}
|
|
452
452
|
|
|
453
|
-
.ilibras-widget-message {
|
|
453
|
+
#ilibras-widget-container .ilibras-widget-message {
|
|
454
454
|
background: #363636;
|
|
455
455
|
color: #e0e0e0;
|
|
456
456
|
}
|
|
457
457
|
|
|
458
|
-
.ilibras-widget-form-group label {
|
|
458
|
+
#ilibras-widget-container .ilibras-widget-form-group label {
|
|
459
459
|
color: #b0b0b0;
|
|
460
460
|
}
|
|
461
461
|
|
|
462
462
|
.ilibras-widget-form-group input[type="text"],
|
|
463
|
-
.ilibras-widget-form-group input[type="tel"] {
|
|
463
|
+
#ilibras-widget-container .ilibras-widget-form-group input[type="tel"] {
|
|
464
464
|
background: #363636;
|
|
465
465
|
border-color: #4a4a4a;
|
|
466
466
|
color: #e0e0e0;
|
|
467
467
|
}
|
|
468
468
|
|
|
469
469
|
.ilibras-widget-form-group input[type="text"]::placeholder,
|
|
470
|
-
.ilibras-widget-form-group input[type="tel"]::placeholder {
|
|
470
|
+
#ilibras-widget-container .ilibras-widget-form-group input[type="tel"]::placeholder {
|
|
471
471
|
color: #6c6c6c;
|
|
472
472
|
}
|
|
473
473
|
|
|
474
|
-
.ilibras-widget-checkbox-label {
|
|
474
|
+
#ilibras-widget-container .ilibras-widget-checkbox-label {
|
|
475
475
|
color: #b0b0b0;
|
|
476
476
|
}
|
|
477
477
|
}
|
|
@@ -485,7 +485,7 @@ var CSS = `/**
|
|
|
485
485
|
|
|
486
486
|
/* Visível só para leitor de tela. Não usa display:none — o que some da tela
|
|
487
487
|
dessa forma some também da leitura. */
|
|
488
|
-
.ilibras-widget-sr-only {
|
|
488
|
+
#ilibras-widget-container .ilibras-widget-sr-only {
|
|
489
489
|
position: absolute !important;
|
|
490
490
|
width: 1px;
|
|
491
491
|
height: 1px;
|
|
@@ -499,7 +499,7 @@ var CSS = `/**
|
|
|
499
499
|
|
|
500
500
|
/* Armadilha do anti-robô: fora da tela e fora da leitura, mas presente no DOM
|
|
501
501
|
(bot que ignora display:none continua encontrando e preenchendo). */
|
|
502
|
-
.ilibras-widget-hp {
|
|
502
|
+
#ilibras-widget-container .ilibras-widget-hp {
|
|
503
503
|
position: absolute !important;
|
|
504
504
|
left: -9999px;
|
|
505
505
|
top: auto;
|
|
@@ -510,23 +510,23 @@ var CSS = `/**
|
|
|
510
510
|
|
|
511
511
|
/* O diálogo fechado não pode receber foco: com hidden, nada dentro dele entra
|
|
512
512
|
na ordem de tabulação. */
|
|
513
|
-
.ilibras-widget-modal[hidden] {
|
|
513
|
+
#ilibras-widget-container .ilibras-widget-modal[hidden] {
|
|
514
514
|
display: none !important;
|
|
515
515
|
}
|
|
516
516
|
|
|
517
|
-
.ilibras-widget-legenda {
|
|
517
|
+
#ilibras-widget-container .ilibras-widget-legenda {
|
|
518
518
|
font-size: 12px;
|
|
519
519
|
color: #495057;
|
|
520
520
|
margin: 0 0 -8px 4px;
|
|
521
521
|
}
|
|
522
522
|
|
|
523
|
-
.ilibras-widget-dica {
|
|
523
|
+
#ilibras-widget-container .ilibras-widget-dica {
|
|
524
524
|
font-size: 12px;
|
|
525
525
|
color: #495057;
|
|
526
526
|
padding-left: 4px;
|
|
527
527
|
}
|
|
528
528
|
|
|
529
|
-
.ilibras-widget-erro {
|
|
529
|
+
#ilibras-widget-container .ilibras-widget-erro {
|
|
530
530
|
font-size: 13px;
|
|
531
531
|
font-weight: 500;
|
|
532
532
|
color: #b02a37;
|
|
@@ -538,23 +538,23 @@ var CSS = `/**
|
|
|
538
538
|
|
|
539
539
|
/* A cor não pode ser o único sinal de erro: quem não distingue vermelho
|
|
540
540
|
precisa do símbolo e do texto. */
|
|
541
|
-
.ilibras-widget-erro::before {
|
|
541
|
+
#ilibras-widget-container .ilibras-widget-erro::before {
|
|
542
542
|
content: "\\26A0";
|
|
543
543
|
font-size: 13px;
|
|
544
544
|
line-height: 1.3;
|
|
545
545
|
}
|
|
546
546
|
|
|
547
|
-
.ilibras-widget-erro[hidden] {
|
|
547
|
+
#ilibras-widget-container .ilibras-widget-erro[hidden] {
|
|
548
548
|
display: none;
|
|
549
549
|
}
|
|
550
550
|
|
|
551
|
-
.ilibras-widget-form-group input.ilibras-widget-invalido {
|
|
551
|
+
#ilibras-widget-container .ilibras-widget-form-group input.ilibras-widget-invalido {
|
|
552
552
|
border-color: #b02a37;
|
|
553
553
|
border-width: 2px;
|
|
554
554
|
}
|
|
555
555
|
|
|
556
556
|
/* Aviso de falha de serviço / limite de uso. */
|
|
557
|
-
.ilibras-widget-aviso {
|
|
557
|
+
#ilibras-widget-container .ilibras-widget-aviso {
|
|
558
558
|
background: #fdf2f2;
|
|
559
559
|
border: 1px solid #f0c2c2;
|
|
560
560
|
border-left: 4px solid #b02a37;
|
|
@@ -566,47 +566,47 @@ var CSS = `/**
|
|
|
566
566
|
line-height: 1.5;
|
|
567
567
|
}
|
|
568
568
|
|
|
569
|
-
.ilibras-widget-aviso[hidden] {
|
|
569
|
+
#ilibras-widget-container .ilibras-widget-aviso[hidden] {
|
|
570
570
|
display: none;
|
|
571
571
|
}
|
|
572
572
|
|
|
573
|
-
.ilibras-widget-aviso:focus-visible {
|
|
573
|
+
#ilibras-widget-container .ilibras-widget-aviso:focus-visible {
|
|
574
574
|
outline: 3px solid #b02a37;
|
|
575
575
|
outline-offset: 2px;
|
|
576
576
|
}
|
|
577
577
|
|
|
578
|
-
.ilibras-widget-aviso-texto {
|
|
578
|
+
#ilibras-widget-container .ilibras-widget-aviso-texto {
|
|
579
579
|
margin: 0;
|
|
580
580
|
}
|
|
581
581
|
|
|
582
582
|
/* Plano de contingência: aparece quando a API não responde. */
|
|
583
|
-
.ilibras-widget-fallback {
|
|
583
|
+
#ilibras-widget-container .ilibras-widget-fallback {
|
|
584
584
|
margin-top: 10px;
|
|
585
585
|
padding-top: 10px;
|
|
586
586
|
border-top: 1px solid #f0c2c2;
|
|
587
587
|
font-size: 13px;
|
|
588
588
|
}
|
|
589
589
|
|
|
590
|
-
.ilibras-widget-fallback p {
|
|
590
|
+
#ilibras-widget-container .ilibras-widget-fallback p {
|
|
591
591
|
margin: 0 0 6px;
|
|
592
592
|
}
|
|
593
593
|
|
|
594
|
-
.ilibras-widget-fallback ul {
|
|
594
|
+
#ilibras-widget-container .ilibras-widget-fallback ul {
|
|
595
595
|
margin: 0;
|
|
596
596
|
padding-left: 18px;
|
|
597
597
|
list-style: disc;
|
|
598
598
|
}
|
|
599
599
|
|
|
600
|
-
.ilibras-widget-fallback li {
|
|
600
|
+
#ilibras-widget-container .ilibras-widget-fallback li {
|
|
601
601
|
margin: 2px 0;
|
|
602
602
|
}
|
|
603
603
|
|
|
604
|
-
.ilibras-widget-fallback a {
|
|
604
|
+
#ilibras-widget-container .ilibras-widget-fallback a {
|
|
605
605
|
color: #1f4f7a;
|
|
606
606
|
font-weight: 600;
|
|
607
607
|
}
|
|
608
608
|
|
|
609
|
-
.ilibras-widget-status {
|
|
609
|
+
#ilibras-widget-container .ilibras-widget-status {
|
|
610
610
|
font-size: 13px;
|
|
611
611
|
color: #495057;
|
|
612
612
|
margin: 0;
|
|
@@ -620,7 +620,7 @@ var CSS = `/**
|
|
|
620
620
|
.ilibras-widget-submit:focus-visible,
|
|
621
621
|
.ilibras-widget-form-group input:focus-visible,
|
|
622
622
|
.ilibras-widget-checkbox-label input:focus-visible,
|
|
623
|
-
.ilibras-widget-fallback a:focus-visible {
|
|
623
|
+
#ilibras-widget-container .ilibras-widget-fallback a:focus-visible {
|
|
624
624
|
outline: 3px solid #1f4f7a;
|
|
625
625
|
outline-offset: 2px;
|
|
626
626
|
}
|
|
@@ -631,14 +631,14 @@ var CSS = `/**
|
|
|
631
631
|
.ilibras-widget-modal,
|
|
632
632
|
.ilibras-widget-form-group input,
|
|
633
633
|
.ilibras-widget-submit,
|
|
634
|
-
.ilibras-widget-aviso {
|
|
634
|
+
#ilibras-widget-container .ilibras-widget-aviso {
|
|
635
635
|
border: 1px solid CanvasText;
|
|
636
636
|
}
|
|
637
637
|
|
|
638
638
|
.ilibras-widget-button:focus-visible,
|
|
639
639
|
.ilibras-widget-close:focus-visible,
|
|
640
640
|
.ilibras-widget-submit:focus-visible,
|
|
641
|
-
.ilibras-widget-form-group input:focus-visible {
|
|
641
|
+
#ilibras-widget-container .ilibras-widget-form-group input:focus-visible {
|
|
642
642
|
outline: 3px solid Highlight;
|
|
643
643
|
}
|
|
644
644
|
}
|
|
@@ -650,13 +650,13 @@ var CSS = `/**
|
|
|
650
650
|
.ilibras-widget-modal,
|
|
651
651
|
.ilibras-widget-submit,
|
|
652
652
|
.ilibras-widget-close,
|
|
653
|
-
.ilibras-widget-badge {
|
|
653
|
+
#ilibras-widget-container .ilibras-widget-badge {
|
|
654
654
|
animation: none !important;
|
|
655
655
|
transition: none !important;
|
|
656
656
|
}
|
|
657
657
|
|
|
658
658
|
.ilibras-widget-submit:hover,
|
|
659
|
-
.ilibras-widget-close:hover {
|
|
659
|
+
#ilibras-widget-container .ilibras-widget-close:hover {
|
|
660
660
|
transform: none;
|
|
661
661
|
}
|
|
662
662
|
}
|
|
@@ -664,44 +664,44 @@ var CSS = `/**
|
|
|
664
664
|
@media (prefers-color-scheme: dark) {
|
|
665
665
|
.ilibras-widget-legenda,
|
|
666
666
|
.ilibras-widget-dica,
|
|
667
|
-
.ilibras-widget-status {
|
|
667
|
+
#ilibras-widget-container .ilibras-widget-status {
|
|
668
668
|
color: #c9c9c9;
|
|
669
669
|
}
|
|
670
670
|
|
|
671
|
-
.ilibras-widget-erro {
|
|
671
|
+
#ilibras-widget-container .ilibras-widget-erro {
|
|
672
672
|
color: #ff9aa2;
|
|
673
673
|
}
|
|
674
674
|
|
|
675
|
-
.ilibras-widget-form-group input.ilibras-widget-invalido {
|
|
675
|
+
#ilibras-widget-container .ilibras-widget-form-group input.ilibras-widget-invalido {
|
|
676
676
|
border-color: #ff9aa2;
|
|
677
677
|
}
|
|
678
678
|
|
|
679
|
-
.ilibras-widget-aviso {
|
|
679
|
+
#ilibras-widget-container .ilibras-widget-aviso {
|
|
680
680
|
background: #3a2224;
|
|
681
681
|
border-color: #6b3a3f;
|
|
682
682
|
border-left-color: #ff9aa2;
|
|
683
683
|
color: #ffd9dc;
|
|
684
684
|
}
|
|
685
685
|
|
|
686
|
-
.ilibras-widget-fallback {
|
|
686
|
+
#ilibras-widget-container .ilibras-widget-fallback {
|
|
687
687
|
border-top-color: #6b3a3f;
|
|
688
688
|
}
|
|
689
689
|
|
|
690
|
-
.ilibras-widget-fallback a {
|
|
690
|
+
#ilibras-widget-container .ilibras-widget-fallback a {
|
|
691
691
|
color: #9ecbff;
|
|
692
692
|
}
|
|
693
693
|
|
|
694
|
-
.ilibras-widget-title {
|
|
694
|
+
#ilibras-widget-container .ilibras-widget-title {
|
|
695
695
|
color: #e6f0f8;
|
|
696
696
|
}
|
|
697
697
|
|
|
698
|
-
.ilibras-widget-header {
|
|
698
|
+
#ilibras-widget-container .ilibras-widget-header {
|
|
699
699
|
background: #1e1e1e;
|
|
700
700
|
border-left-color: #333;
|
|
701
701
|
border-bottom-color: #333;
|
|
702
702
|
}
|
|
703
703
|
|
|
704
|
-
.ilibras-widget-close {
|
|
704
|
+
#ilibras-widget-container .ilibras-widget-close {
|
|
705
705
|
color: #e0e0e0;
|
|
706
706
|
}
|
|
707
707
|
}
|
|
@@ -1105,8 +1105,12 @@ var ILibrasWidget = class {
|
|
|
1105
1105
|
const destino = resultado.link_fila || resultado.link || resultado.url || resultado.redirect;
|
|
1106
1106
|
if (!destino) throw new FalhaDeServico("resposta_inesperada");
|
|
1107
1107
|
this.anunciar(modo === "agendamento" ? "Cadastro feito. Abrindo o calendário para escolher data e horário." : "Atendimento criado. Abrindo a sala de atendimento.");
|
|
1108
|
-
const aba = window.open(destino, "_blank"
|
|
1109
|
-
if (
|
|
1108
|
+
const aba = window.open(destino, "_blank");
|
|
1109
|
+
if (aba) {
|
|
1110
|
+
aba.opener = null;
|
|
1111
|
+
} else {
|
|
1112
|
+
window.location.assign(destino);
|
|
1113
|
+
}
|
|
1110
1114
|
this.form.reset();
|
|
1111
1115
|
this.closeWidget();
|
|
1112
1116
|
} catch (erro) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "ilibras-widget",
|
|
3
|
-
"version": "1.5.
|
|
3
|
+
"version": "1.5.2",
|
|
4
4
|
"description": "Widget de acessibilidade em Libras: formulário embarcável que leva a pessoa surda ao atendimento com intérprete, ao vivo ou agendado",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/ilibras-widget.cjs",
|